@alpic-ai/ui 0.0.0-dev.g876f5e9 → 0.0.0-dev.g8868278
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/accordion-card.d.mts +5 -5
- package/dist/components/accordion.d.mts +5 -5
- package/dist/components/alert.d.mts +8 -8
- package/dist/components/attachment-tile.d.mts +1 -1
- package/dist/components/avatar.d.mts +7 -7
- package/dist/components/badge.d.mts +1 -1
- package/dist/components/breadcrumb.d.mts +10 -10
- package/dist/components/button.d.mts +5 -5
- package/dist/components/card.d.mts +9 -9
- package/dist/components/checkbox.d.mts +2 -2
- package/dist/components/collapsible.d.mts +4 -4
- package/dist/components/combobox.d.mts +10 -10
- package/dist/components/command.d.mts +9 -9
- package/dist/components/copyable.d.mts +2 -2
- package/dist/components/description-list.d.mts +5 -5
- package/dist/components/dialog.d.mts +13 -13
- package/dist/components/dropdown-menu.d.mts +17 -17
- package/dist/components/form.d.mts +18 -18
- package/dist/components/form.mjs +6 -6
- package/dist/components/github-button.d.mts +1 -1
- package/dist/components/input-group.d.mts +4 -4
- package/dist/components/input.d.mts +4 -4
- package/dist/components/input.mjs +2 -2
- package/dist/components/label.d.mts +2 -2
- package/dist/components/page-loader.d.mts +1 -1
- package/dist/components/pagination.d.mts +3 -3
- package/dist/components/popover.d.mts +5 -5
- package/dist/components/radio-group.d.mts +3 -3
- package/dist/components/scroll-area.d.mts +3 -3
- package/dist/components/select.d.mts +9 -9
- package/dist/components/separator.d.mts +2 -2
- package/dist/components/sheet.d.mts +11 -11
- package/dist/components/shimmer-text.d.mts +3 -1
- package/dist/components/sidebar.d.mts +33 -33
- package/dist/components/sidebar.mjs +10 -10
- package/dist/components/skeleton.d.mts +1 -1
- package/dist/components/sonner.d.mts +5 -5
- package/dist/components/spinner.d.mts +2 -2
- package/dist/components/status-dot.d.mts +1 -1
- package/dist/components/switch.d.mts +2 -2
- package/dist/components/table.d.mts +10 -10
- package/dist/components/tabs.d.mts +10 -10
- package/dist/components/tag.d.mts +3 -3
- package/dist/components/task-progress.d.mts +1 -1
- package/dist/components/textarea.d.mts +3 -3
- package/dist/components/textarea.mjs +2 -2
- package/dist/components/toggle-group.d.mts +3 -3
- package/dist/components/toggle-group.mjs +3 -3
- package/dist/components/tooltip.d.mts +5 -5
- package/dist/components/typography.d.mts +4 -4
- package/dist/components/wizard.d.mts +4 -4
- package/dist/hooks/use-mobile.mjs +3 -3
- package/package.json +22 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "./button.mjs";
|
|
2
2
|
import { TooltipContent } from "./tooltip.mjs";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as React from "react";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/sidebar.d.ts
|
|
7
7
|
type SidebarContextProps = {
|
|
@@ -22,11 +22,11 @@ declare function SidebarProvider({
|
|
|
22
22
|
style,
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<"div"> & {
|
|
25
|
+
}: React$1.ComponentProps<"div"> & {
|
|
26
26
|
defaultOpen?: boolean;
|
|
27
27
|
open?: boolean;
|
|
28
28
|
onOpenChange?: (open: boolean) => void;
|
|
29
|
-
}):
|
|
29
|
+
}): React$1.JSX.Element;
|
|
30
30
|
declare function Sidebar({
|
|
31
31
|
side,
|
|
32
32
|
variant,
|
|
@@ -34,26 +34,26 @@ declare function Sidebar({
|
|
|
34
34
|
className,
|
|
35
35
|
children,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<"div"> & {
|
|
37
|
+
}: React$1.ComponentProps<"div"> & {
|
|
38
38
|
side?: "left" | "right";
|
|
39
39
|
variant?: "sidebar" | "floating" | "inset";
|
|
40
40
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
41
|
-
}):
|
|
41
|
+
}): React$1.JSX.Element;
|
|
42
42
|
declare function SidebarTrigger({
|
|
43
43
|
className,
|
|
44
44
|
onClick,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof Button>):
|
|
46
|
+
}: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
47
47
|
declare function SidebarRail({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<"button">):
|
|
50
|
+
}: React$1.ComponentProps<"button">): React$1.JSX.Element;
|
|
51
51
|
declare function SidebarInset({
|
|
52
52
|
className,
|
|
53
53
|
...props
|
|
54
|
-
}: React.ComponentProps<"main">):
|
|
55
|
-
interface SidebarHeaderProps extends React.ComponentProps<"div"> {
|
|
56
|
-
icon?: React.ReactNode;
|
|
54
|
+
}: React$1.ComponentProps<"main">): React$1.JSX.Element;
|
|
55
|
+
interface SidebarHeaderProps extends React$1.ComponentProps<"div"> {
|
|
56
|
+
icon?: React$1.ReactNode;
|
|
57
57
|
title?: string;
|
|
58
58
|
}
|
|
59
59
|
declare function SidebarHeader({
|
|
@@ -62,48 +62,48 @@ declare function SidebarHeader({
|
|
|
62
62
|
title,
|
|
63
63
|
children,
|
|
64
64
|
...props
|
|
65
|
-
}: SidebarHeaderProps):
|
|
65
|
+
}: SidebarHeaderProps): React$1.JSX.Element;
|
|
66
66
|
declare function SidebarFooter({
|
|
67
67
|
className,
|
|
68
68
|
...props
|
|
69
|
-
}: React.ComponentProps<"div">):
|
|
69
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
70
70
|
declare function SidebarSeparator({
|
|
71
71
|
className
|
|
72
|
-
}: React.ComponentProps<"div">):
|
|
72
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
73
73
|
declare function SidebarContent({
|
|
74
74
|
className,
|
|
75
75
|
...props
|
|
76
|
-
}: React.ComponentProps<"div">):
|
|
76
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
77
77
|
declare function SidebarGroup({
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
|
-
}: React.ComponentProps<"div">):
|
|
80
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
81
81
|
declare function SidebarGroupLabel({
|
|
82
82
|
className,
|
|
83
83
|
asChild,
|
|
84
84
|
...props
|
|
85
|
-
}: React.ComponentProps<"div"> & {
|
|
85
|
+
}: React$1.ComponentProps<"div"> & {
|
|
86
86
|
asChild?: boolean;
|
|
87
|
-
}):
|
|
87
|
+
}): React$1.JSX.Element;
|
|
88
88
|
declare function SidebarGroupAction({
|
|
89
89
|
className,
|
|
90
90
|
asChild,
|
|
91
91
|
...props
|
|
92
|
-
}: React.ComponentProps<"button"> & {
|
|
92
|
+
}: React$1.ComponentProps<"button"> & {
|
|
93
93
|
asChild?: boolean;
|
|
94
|
-
}):
|
|
94
|
+
}): React$1.JSX.Element;
|
|
95
95
|
declare function SidebarGroupContent({
|
|
96
96
|
className,
|
|
97
97
|
...props
|
|
98
|
-
}: React.ComponentProps<"div">):
|
|
98
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
99
99
|
declare function SidebarMenu({
|
|
100
100
|
className,
|
|
101
101
|
...props
|
|
102
|
-
}: React.ComponentProps<"ul">):
|
|
102
|
+
}: React$1.ComponentProps<"ul">): React$1.JSX.Element;
|
|
103
103
|
declare function SidebarMenuItem({
|
|
104
104
|
className,
|
|
105
105
|
...props
|
|
106
|
-
}: React.ComponentProps<"li">):
|
|
106
|
+
}: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
107
107
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
108
108
|
variant?: "default" | "outline" | null | undefined;
|
|
109
109
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -116,46 +116,46 @@ declare function SidebarMenuButton({
|
|
|
116
116
|
tooltip,
|
|
117
117
|
className,
|
|
118
118
|
...props
|
|
119
|
-
}: React.ComponentProps<"button"> & {
|
|
119
|
+
}: React$1.ComponentProps<"button"> & {
|
|
120
120
|
asChild?: boolean;
|
|
121
121
|
isActive?: boolean;
|
|
122
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
123
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
122
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
123
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): React$1.JSX.Element;
|
|
124
124
|
declare function SidebarMenuAction({
|
|
125
125
|
className,
|
|
126
126
|
asChild,
|
|
127
127
|
showOnHover,
|
|
128
128
|
...props
|
|
129
|
-
}: React.ComponentProps<"button"> & {
|
|
129
|
+
}: React$1.ComponentProps<"button"> & {
|
|
130
130
|
asChild?: boolean;
|
|
131
131
|
showOnHover?: boolean;
|
|
132
|
-
}):
|
|
132
|
+
}): React$1.JSX.Element;
|
|
133
133
|
declare function SidebarMenuBadge({
|
|
134
134
|
className,
|
|
135
135
|
...props
|
|
136
|
-
}: React.ComponentProps<"div">):
|
|
136
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
137
137
|
declare function SidebarMenuSkeleton({
|
|
138
138
|
className,
|
|
139
139
|
...props
|
|
140
|
-
}: React.ComponentProps<"div">):
|
|
140
|
+
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
141
141
|
declare function SidebarMenuSub({
|
|
142
142
|
className,
|
|
143
143
|
...props
|
|
144
|
-
}: React.ComponentProps<"ul">):
|
|
144
|
+
}: React$1.ComponentProps<"ul">): React$1.JSX.Element;
|
|
145
145
|
declare function SidebarMenuSubItem({
|
|
146
146
|
className,
|
|
147
147
|
...props
|
|
148
|
-
}: React.ComponentProps<"li">):
|
|
148
|
+
}: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
149
149
|
declare function SidebarMenuSubButton({
|
|
150
150
|
asChild,
|
|
151
151
|
size,
|
|
152
152
|
isActive,
|
|
153
153
|
className,
|
|
154
154
|
...props
|
|
155
|
-
}: React.ComponentProps<"a"> & {
|
|
155
|
+
}: React$1.ComponentProps<"a"> & {
|
|
156
156
|
asChild?: boolean;
|
|
157
157
|
size?: "sm" | "md";
|
|
158
158
|
isActive?: boolean;
|
|
159
|
-
}):
|
|
159
|
+
}): React$1.JSX.Element;
|
|
160
160
|
//#endregion
|
|
161
161
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarMenuButtonVariants, useSidebar };
|
|
@@ -8,7 +8,7 @@ import { useIsMobile } from "../hooks/use-mobile.mjs";
|
|
|
8
8
|
import { Skeleton } from "./skeleton.mjs";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
11
|
-
import * as React from "react";
|
|
11
|
+
import * as React$1 from "react";
|
|
12
12
|
import { Slot } from "@radix-ui/react-slot";
|
|
13
13
|
//#region src/components/sidebar.tsx
|
|
14
14
|
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
@@ -29,27 +29,27 @@ const INTERACTIVE_SIDEBAR_ELEMENT_SELECTOR = [
|
|
|
29
29
|
"[contenteditable='true']",
|
|
30
30
|
"[tabindex]:not([tabindex='-1'])"
|
|
31
31
|
].join(", ");
|
|
32
|
-
const SidebarContext = React.createContext(null);
|
|
32
|
+
const SidebarContext = React$1.createContext(null);
|
|
33
33
|
function useSidebar() {
|
|
34
|
-
const context = React.useContext(SidebarContext);
|
|
34
|
+
const context = React$1.useContext(SidebarContext);
|
|
35
35
|
if (!context) throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
36
36
|
return context;
|
|
37
37
|
}
|
|
38
38
|
function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }) {
|
|
39
39
|
const isMobile = useIsMobile();
|
|
40
|
-
const [openMobile, setOpenMobile] = React.useState(false);
|
|
41
|
-
const [_open, _setOpen] = React.useState(defaultOpen);
|
|
40
|
+
const [openMobile, setOpenMobile] = React$1.useState(false);
|
|
41
|
+
const [_open, _setOpen] = React$1.useState(defaultOpen);
|
|
42
42
|
const open = openProp ?? _open;
|
|
43
|
-
const setOpen = React.useCallback((value) => {
|
|
43
|
+
const setOpen = React$1.useCallback((value) => {
|
|
44
44
|
const openState = typeof value === "function" ? value(open) : value;
|
|
45
45
|
if (setOpenProp) setOpenProp(openState);
|
|
46
46
|
else _setOpen(openState);
|
|
47
47
|
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
48
48
|
}, [setOpenProp, open]);
|
|
49
|
-
const toggleSidebar = React.useCallback(() => {
|
|
49
|
+
const toggleSidebar = React$1.useCallback(() => {
|
|
50
50
|
return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
|
|
51
51
|
}, [isMobile, setOpen]);
|
|
52
|
-
React.useEffect(() => {
|
|
52
|
+
React$1.useEffect(() => {
|
|
53
53
|
const handleKeyDown = (event) => {
|
|
54
54
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
55
55
|
event.preventDefault();
|
|
@@ -60,7 +60,7 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
60
60
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
61
61
|
}, [toggleSidebar]);
|
|
62
62
|
const state = open ? "expanded" : "collapsed";
|
|
63
|
-
const contextValue = React.useMemo(() => ({
|
|
63
|
+
const contextValue = React$1.useMemo(() => ({
|
|
64
64
|
state,
|
|
65
65
|
open,
|
|
66
66
|
setOpen,
|
|
@@ -380,7 +380,7 @@ function SidebarMenuBadge({ className, ...props }) {
|
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
function SidebarMenuSkeleton({ className, ...props }) {
|
|
383
|
-
const [width] = React.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
383
|
+
const [width] = React$1.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
384
384
|
return /* @__PURE__ */ jsx("div", {
|
|
385
385
|
"data-slot": "sidebar-menu-skeleton",
|
|
386
386
|
"data-sidebar": "menu-skeleton",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import { Toaster as Toaster$1, toast } from "sonner";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sonner.d.ts
|
|
5
|
-
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
6
|
-
declare function Toaster(props: ToasterProps):
|
|
5
|
+
type ToasterProps = React$1.ComponentProps<typeof Toaster$1>;
|
|
6
|
+
declare function Toaster(props: ToasterProps): React$1.JSX.Element;
|
|
7
7
|
interface ActionToastProps {
|
|
8
8
|
toastId: string | number;
|
|
9
9
|
title: string;
|
|
@@ -11,7 +11,7 @@ interface ActionToastProps {
|
|
|
11
11
|
onDismiss?: () => void;
|
|
12
12
|
confirm: {
|
|
13
13
|
label: string;
|
|
14
|
-
icon?: React.ReactNode;
|
|
14
|
+
icon?: React$1.ReactNode;
|
|
15
15
|
onClick: () => void;
|
|
16
16
|
loading?: boolean;
|
|
17
17
|
disabled?: boolean;
|
|
@@ -23,6 +23,6 @@ declare function ActionToast({
|
|
|
23
23
|
description,
|
|
24
24
|
onDismiss,
|
|
25
25
|
confirm
|
|
26
|
-
}: ActionToastProps):
|
|
26
|
+
}: ActionToastProps): React$1.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ActionToast, type ActionToastProps, Toaster, type ToasterProps, toast };
|
|
@@ -11,7 +11,7 @@ declare function Spinner({
|
|
|
11
11
|
variant,
|
|
12
12
|
size,
|
|
13
13
|
...props
|
|
14
|
-
}: SpinnerProps): import("react
|
|
14
|
+
}: SpinnerProps): import("react").JSX.Element;
|
|
15
15
|
interface SpinnerBlockProps extends VariantProps<typeof spinnerVariants> {
|
|
16
16
|
className?: string;
|
|
17
17
|
fullscreen?: boolean;
|
|
@@ -23,6 +23,6 @@ declare function SpinnerBlock({
|
|
|
23
23
|
size,
|
|
24
24
|
fullscreen,
|
|
25
25
|
withLabel
|
|
26
|
-
}: SpinnerBlockProps): import("react
|
|
26
|
+
}: SpinnerBlockProps): import("react").JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { Spinner, SpinnerBlock, type SpinnerBlockProps, type SpinnerProps, spinnerVariants };
|
|
@@ -11,7 +11,7 @@ declare function StatusDot({
|
|
|
11
11
|
variant,
|
|
12
12
|
pulse,
|
|
13
13
|
...props
|
|
14
|
-
}: StatusDotProps): import("react
|
|
14
|
+
}: StatusDotProps): import("react").JSX.Element;
|
|
15
15
|
type StatusDotVariantProps = Required<Pick<VariantProps<typeof statusDotVariants>, "variant" | "pulse">>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { StatusDot, type StatusDotVariantProps, statusDotVariants };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
3
3
|
|
|
4
4
|
//#region src/components/switch.d.ts
|
|
5
5
|
declare function Switch({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof SwitchPrimitive.Root>):
|
|
8
|
+
}: React$1.ComponentProps<typeof SwitchPrimitive.Root>): React$1.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Switch };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/table.d.ts
|
|
4
4
|
declare function Table({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"table">):
|
|
7
|
+
}: React$1.ComponentProps<"table">): React$1.JSX.Element;
|
|
8
8
|
declare function TableHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<"thead">):
|
|
11
|
+
}: React$1.ComponentProps<"thead">): React$1.JSX.Element;
|
|
12
12
|
declare function TableBody({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<"tbody">):
|
|
15
|
+
}: React$1.ComponentProps<"tbody">): React$1.JSX.Element;
|
|
16
16
|
declare function TableFooter({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<"tfoot">):
|
|
19
|
+
}: React$1.ComponentProps<"tfoot">): React$1.JSX.Element;
|
|
20
20
|
declare function TableRow({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<"tr">):
|
|
23
|
+
}: React$1.ComponentProps<"tr">): React$1.JSX.Element;
|
|
24
24
|
declare function TableHead({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<"th">):
|
|
28
|
-
interface TableCellProps extends React.ComponentProps<"td"> {
|
|
27
|
+
}: React$1.ComponentProps<"th">): React$1.JSX.Element;
|
|
28
|
+
interface TableCellProps extends React$1.ComponentProps<"td"> {
|
|
29
29
|
/**
|
|
30
30
|
* When true, the cell renders edge-to-edge so the child can act as the
|
|
31
31
|
* interactive surface (e.g. a button or popover trigger filling the cell).
|
|
@@ -37,10 +37,10 @@ declare function TableCell({
|
|
|
37
37
|
className,
|
|
38
38
|
interactive,
|
|
39
39
|
...props
|
|
40
|
-
}: TableCellProps):
|
|
40
|
+
}: TableCellProps): React$1.JSX.Element;
|
|
41
41
|
declare function TableCaption({
|
|
42
42
|
className,
|
|
43
43
|
...props
|
|
44
|
-
}: React.ComponentProps<"caption">):
|
|
44
|
+
}: React$1.ComponentProps<"caption">): React$1.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as React from "react";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
3
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tabs.d.ts
|
|
@@ -10,7 +10,7 @@ declare function Tabs({
|
|
|
10
10
|
className,
|
|
11
11
|
orientation,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof TabsPrimitive.Root>):
|
|
13
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.Root>): React$1.JSX.Element;
|
|
14
14
|
declare const tabsListVariants: (props?: ({
|
|
15
15
|
variant?: "default" | "line" | null | undefined;
|
|
16
16
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -18,15 +18,15 @@ declare function TabsList({
|
|
|
18
18
|
className,
|
|
19
19
|
variant,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>):
|
|
21
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React$1.JSX.Element;
|
|
22
22
|
declare function TabsTrigger({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>):
|
|
25
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): React$1.JSX.Element;
|
|
26
26
|
declare function TabsContent({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>):
|
|
29
|
+
}: React$1.ComponentProps<typeof TabsPrimitive.Content>): React$1.JSX.Element;
|
|
30
30
|
type TabsNavVariant = "line" | "pill";
|
|
31
31
|
type TabsNavOrientation = "horizontal" | "vertical";
|
|
32
32
|
declare function TabsNav({
|
|
@@ -34,23 +34,23 @@ declare function TabsNav({
|
|
|
34
34
|
variant,
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<"nav"> & {
|
|
37
|
+
}: React$1.ComponentProps<"nav"> & {
|
|
38
38
|
orientation?: TabsNavOrientation;
|
|
39
39
|
variant?: TabsNavVariant;
|
|
40
|
-
}):
|
|
40
|
+
}): React$1.JSX.Element;
|
|
41
41
|
declare function TabsNavList({
|
|
42
42
|
className,
|
|
43
43
|
...props
|
|
44
|
-
}: React.ComponentProps<"ul">):
|
|
44
|
+
}: React$1.ComponentProps<"ul">): React$1.JSX.Element;
|
|
45
45
|
declare function TabsNavTrigger({
|
|
46
46
|
className,
|
|
47
47
|
active,
|
|
48
48
|
asChild,
|
|
49
49
|
children,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<"a"> & {
|
|
51
|
+
}: React$1.ComponentProps<"a"> & {
|
|
52
52
|
active?: boolean;
|
|
53
53
|
asChild?: boolean;
|
|
54
|
-
}):
|
|
54
|
+
}): React$1.JSX.Element;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Tabs, TabsContent, TabsList, TabsNav, TabsNavList, TabsNavTrigger, TabsTrigger, tabsListVariants, tabsTriggerVariants };
|
|
@@ -8,7 +8,7 @@ declare function Tag({
|
|
|
8
8
|
icon,
|
|
9
9
|
children,
|
|
10
10
|
...props
|
|
11
|
-
}: TagProps): import("react
|
|
11
|
+
}: TagProps): import("react").JSX.Element;
|
|
12
12
|
interface TagDismissibleProps extends React.ComponentProps<"span">, TagBaseProps {
|
|
13
13
|
onDismiss?: () => void;
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@ declare function TagDismissible({
|
|
|
18
18
|
children,
|
|
19
19
|
onDismiss,
|
|
20
20
|
...props
|
|
21
|
-
}: TagDismissibleProps): import("react
|
|
21
|
+
}: TagDismissibleProps): import("react").JSX.Element;
|
|
22
22
|
interface TagCountProps extends React.ComponentProps<"span">, TagBaseProps {
|
|
23
23
|
count: number;
|
|
24
24
|
}
|
|
@@ -28,6 +28,6 @@ declare function TagCount({
|
|
|
28
28
|
children,
|
|
29
29
|
count,
|
|
30
30
|
...props
|
|
31
|
-
}: TagCountProps): import("react
|
|
31
|
+
}: TagCountProps): import("react").JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Tag, TagCount, TagDismissible };
|
|
@@ -20,6 +20,6 @@ declare function TaskProgress({
|
|
|
20
20
|
stepRevealDelayMs,
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: TaskProgressProps): import("react
|
|
23
|
+
}: TaskProgressProps): import("react").JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { TaskProgress, type TaskProgressStatus, type TaskProgressStep };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/textarea.d.ts
|
|
4
|
-
interface TextareaProps extends React.ComponentProps<"textarea"> {
|
|
4
|
+
interface TextareaProps extends React$1.ComponentProps<"textarea"> {
|
|
5
5
|
label?: string;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
hint?: string;
|
|
@@ -17,6 +17,6 @@ declare function Textarea({
|
|
|
17
17
|
error,
|
|
18
18
|
tooltip,
|
|
19
19
|
...props
|
|
20
|
-
}: TextareaProps):
|
|
20
|
+
}: TextareaProps): React$1.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Textarea, type TextareaProps };
|
|
@@ -4,10 +4,10 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
|
|
|
4
4
|
import { Label } from "./label.mjs";
|
|
5
5
|
import { Info } from "lucide-react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import * as React from "react";
|
|
7
|
+
import * as React$1 from "react";
|
|
8
8
|
//#region src/components/textarea.tsx
|
|
9
9
|
function Textarea({ className, id, label, required, hint, error, tooltip, ...props }) {
|
|
10
|
-
const generatedId = React.useId();
|
|
10
|
+
const generatedId = React$1.useId();
|
|
11
11
|
const fieldId = id ?? generatedId;
|
|
12
12
|
const textarea = /* @__PURE__ */ jsx("textarea", {
|
|
13
13
|
id: fieldId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as React from "react";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
3
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4
4
|
|
|
5
5
|
//#region src/components/toggle-group.d.ts
|
|
@@ -14,13 +14,13 @@ declare function ToggleGroup({
|
|
|
14
14
|
size,
|
|
15
15
|
children,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & ToggleGroupContextValue):
|
|
17
|
+
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & ToggleGroupContextValue): React$1.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 toggleGroupItemVariants>):
|
|
24
|
+
}: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleGroupItemVariants>): React$1.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ToggleGroup, ToggleGroupItem, toggleGroupItemVariants };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cn } from "../lib/cn.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
import * as React from "react";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
6
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
7
7
|
//#region src/components/toggle-group.tsx
|
|
8
8
|
const toggleGroupItemVariants = cva([
|
|
@@ -36,7 +36,7 @@ const toggleGroupItemVariants = cva([
|
|
|
36
36
|
size: "default"
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
const ToggleGroupContext = React.createContext({
|
|
39
|
+
const ToggleGroupContext = React$1.createContext({
|
|
40
40
|
size: "default",
|
|
41
41
|
variant: "default"
|
|
42
42
|
});
|
|
@@ -55,7 +55,7 @@ function ToggleGroup({ className, variant, size, children, ...props }) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function ToggleGroupItem({ className, children, variant, size, ...props }) {
|
|
58
|
-
const context = React.useContext(ToggleGroupContext);
|
|
58
|
+
const context = React$1.useContext(ToggleGroupContext);
|
|
59
59
|
const resolvedVariant = context.variant ?? variant;
|
|
60
60
|
const resolvedSize = context.size ?? size;
|
|
61
61
|
return /* @__PURE__ */ jsx(ToggleGroupPrimitive.Item, {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tooltip.d.ts
|
|
5
5
|
declare function TooltipProvider({
|
|
6
6
|
delayDuration,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Provider>):
|
|
8
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): React$1.JSX.Element;
|
|
9
9
|
declare function Tooltip({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
11
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Root>): React$1.JSX.Element;
|
|
12
12
|
declare function TooltipTrigger({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>):
|
|
14
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): React$1.JSX.Element;
|
|
15
15
|
declare function TooltipContent({
|
|
16
16
|
className,
|
|
17
17
|
sideOffset,
|
|
18
18
|
children,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
20
|
+
}: React$1.ComponentProps<typeof TooltipPrimitive.Content>): React$1.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -7,27 +7,27 @@ declare function H1({
|
|
|
7
7
|
}: {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
className?: string;
|
|
10
|
-
}): import("react
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
11
|
declare function H2({
|
|
12
12
|
children,
|
|
13
13
|
className
|
|
14
14
|
}: {
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
className?: string;
|
|
17
|
-
}): import("react
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
18
|
declare function H3({
|
|
19
19
|
children,
|
|
20
20
|
className
|
|
21
21
|
}: {
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
className?: string;
|
|
24
|
-
}): import("react
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
25
|
declare function H4({
|
|
26
26
|
children,
|
|
27
27
|
className
|
|
28
28
|
}: {
|
|
29
29
|
children: ReactNode;
|
|
30
30
|
className?: string;
|
|
31
|
-
}): import("react
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { H1, H2, H3, H4 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/wizard.d.ts
|
|
4
4
|
interface WizardStep {
|
|
@@ -18,8 +18,8 @@ declare function WizardSteps({
|
|
|
18
18
|
onSelect,
|
|
19
19
|
ariaLabel,
|
|
20
20
|
className
|
|
21
|
-
}: WizardStepsProps):
|
|
22
|
-
interface WizardProgressProps extends React.ComponentProps<"div"> {
|
|
21
|
+
}: WizardStepsProps): React$1.JSX.Element;
|
|
22
|
+
interface WizardProgressProps extends React$1.ComponentProps<"div"> {
|
|
23
23
|
current: number;
|
|
24
24
|
total: number;
|
|
25
25
|
}
|
|
@@ -28,6 +28,6 @@ declare function WizardProgress({
|
|
|
28
28
|
total,
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: WizardProgressProps):
|
|
31
|
+
}: WizardProgressProps): React$1.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { WizardProgress, type WizardStep, WizardSteps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
//#region src/hooks/use-mobile.ts
|
|
3
3
|
const MOBILE_BREAKPOINT = 768;
|
|
4
4
|
function useIsMobile() {
|
|
5
|
-
const [isMobile, setIsMobile] = React.useState(void 0);
|
|
6
|
-
React.useEffect(() => {
|
|
5
|
+
const [isMobile, setIsMobile] = React$1.useState(void 0);
|
|
6
|
+
React$1.useEffect(() => {
|
|
7
7
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
8
8
|
const onChange = () => setIsMobile(mql.matches);
|
|
9
9
|
mql.addEventListener("change", onChange);
|