@alpic-ai/ui 0.0.0-dev.fffc79a → 0.0.0-dev.g01173d7
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 +4 -5
- package/dist/components/accordion.d.mts +4 -5
- package/dist/components/alert.d.mts +6 -8
- package/dist/components/attachment-tile.d.mts +1 -3
- package/dist/components/avatar.d.mts +5 -7
- package/dist/components/badge.d.mts +2 -4
- package/dist/components/breadcrumb.d.mts +8 -9
- package/dist/components/button.d.mts +2 -4
- package/dist/components/card.d.mts +7 -8
- package/dist/components/checkbox.d.mts +1 -2
- package/dist/components/collapsible.d.mts +3 -4
- package/dist/components/combobox.d.mts +12 -11
- package/dist/components/combobox.mjs +7 -4
- package/dist/components/command.d.mts +8 -9
- package/dist/components/copyable.d.mts +2 -3
- package/dist/components/description-list.d.mts +4 -5
- package/dist/components/dialog.d.mts +12 -14
- package/dist/components/dropdown-menu.d.mts +14 -16
- package/dist/components/form.d.mts +68 -16
- package/dist/components/form.mjs +114 -4
- package/dist/components/github-button.d.mts +1 -2
- package/dist/components/input-group.d.mts +4 -6
- package/dist/components/input.d.mts +1 -2
- package/dist/components/label.d.mts +1 -2
- package/dist/components/page-loader.d.mts +1 -3
- package/dist/components/pagination.d.mts +1 -2
- package/dist/components/popover.d.mts +4 -5
- package/dist/components/radio-group.d.mts +2 -3
- package/dist/components/scroll-area.d.mts +2 -3
- package/dist/components/select-trigger-variants.d.mts +1 -3
- package/dist/components/select.d.mts +8 -9
- package/dist/components/separator.d.mts +1 -2
- package/dist/components/sheet.d.mts +9 -10
- package/dist/components/shimmer-text.d.mts +10 -0
- package/dist/components/shimmer-text.mjs +22 -0
- package/dist/components/sidebar.d.mts +23 -25
- package/dist/components/skeleton.d.mts +2 -4
- package/dist/components/sonner.d.mts +2 -3
- package/dist/components/spinner.d.mts +3 -5
- package/dist/components/status-dot.d.mts +2 -4
- package/dist/components/switch.d.mts +1 -2
- package/dist/components/table.d.mts +8 -9
- package/dist/components/table.mjs +3 -3
- package/dist/components/tabs.d.mts +9 -11
- package/dist/components/tabs.mjs +4 -4
- package/dist/components/tag.d.mts +3 -5
- package/dist/components/task-progress.d.mts +25 -0
- package/dist/components/task-progress.mjs +66 -0
- package/dist/components/textarea.d.mts +1 -2
- package/dist/components/toggle-group.d.mts +3 -5
- package/dist/components/tooltip-icon-button.d.mts +1 -2
- package/dist/components/tooltip.d.mts +4 -5
- package/dist/components/tooltip.mjs +1 -1
- package/dist/components/typography.d.mts +4 -5
- package/dist/components/wizard.d.mts +33 -0
- package/dist/components/wizard.mjs +46 -0
- package/package.json +13 -13
- package/src/components/combobox.tsx +9 -2
- package/src/components/form.tsx +164 -3
- package/src/components/shimmer-text.tsx +23 -0
- package/src/components/table.tsx +2 -3
- package/src/components/tabs.tsx +4 -4
- package/src/components/task-progress.tsx +107 -0
- package/src/components/tooltip.tsx +1 -1
- package/src/components/wizard.tsx +69 -0
- package/src/stories/form.stories.tsx +64 -2
- package/src/stories/tabs.stories.tsx +4 -2
- package/src/stories/task-progress.stories.tsx +81 -0
- package/src/stories/wizard.stories.tsx +64 -0
- package/src/styles/tokens.css +11 -4
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
4
3
|
|
|
5
4
|
//#region src/components/sheet.d.ts
|
|
6
5
|
declare function Sheet({
|
|
7
6
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof SheetPrimitive.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
declare function SheetTrigger({
|
|
10
9
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SheetPrimitive.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
declare function SheetClose({
|
|
13
12
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof SheetPrimitive.Close>):
|
|
13
|
+
}: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
declare function SheetPortal({
|
|
16
15
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof SheetPrimitive.Portal>):
|
|
16
|
+
}: React.ComponentProps<typeof SheetPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
declare function SheetContent({
|
|
19
18
|
className,
|
|
20
19
|
children,
|
|
@@ -22,22 +21,22 @@ declare function SheetContent({
|
|
|
22
21
|
...props
|
|
23
22
|
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
24
23
|
side?: "top" | "right" | "bottom" | "left";
|
|
25
|
-
}):
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
25
|
declare function SheetHeader({
|
|
27
26
|
className,
|
|
28
27
|
...props
|
|
29
|
-
}: React.ComponentProps<"div">):
|
|
28
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
30
29
|
declare function SheetFooter({
|
|
31
30
|
className,
|
|
32
31
|
...props
|
|
33
|
-
}: React.ComponentProps<"div">):
|
|
32
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
34
33
|
declare function SheetTitle({
|
|
35
34
|
className,
|
|
36
35
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof SheetPrimitive.Title>):
|
|
36
|
+
}: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
38
37
|
declare function SheetDescription({
|
|
39
38
|
className,
|
|
40
39
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof SheetPrimitive.Description>):
|
|
40
|
+
}: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
42
41
|
//#endregion
|
|
43
42
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetPortal, SheetTitle, SheetTrigger };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/cn.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/shimmer-text.tsx
|
|
5
|
+
const shimmerStyle = {
|
|
6
|
+
background: `linear-gradient(90deg, #0000 calc(50% - 60px), var(--color-foreground), #0000 calc(50% + 60px)), linear-gradient(color-mix(in oklab, var(--color-muted-foreground) 70%, transparent), color-mix(in oklab, var(--color-muted-foreground) 70%, transparent))`,
|
|
7
|
+
backgroundSize: "250% 100%, auto",
|
|
8
|
+
backgroundRepeat: "no-repeat, padding-box",
|
|
9
|
+
WebkitBackgroundClip: "text",
|
|
10
|
+
WebkitTextFillColor: "transparent",
|
|
11
|
+
backgroundClip: "text",
|
|
12
|
+
animation: "shimmer-text 2.5s linear infinite"
|
|
13
|
+
};
|
|
14
|
+
function ShimmerText({ children, className }) {
|
|
15
|
+
return /* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: cn(className),
|
|
17
|
+
style: shimmerStyle,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ShimmerText };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Button } from "./button.mjs";
|
|
2
2
|
import { TooltipContent } from "./tooltip.mjs";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import { VariantProps } from "class-variance-authority";
|
|
5
4
|
import * as React from "react";
|
|
6
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
7
5
|
|
|
8
6
|
//#region src/components/sidebar.d.ts
|
|
9
7
|
type SidebarContextProps = {
|
|
@@ -28,7 +26,7 @@ declare function SidebarProvider({
|
|
|
28
26
|
defaultOpen?: boolean;
|
|
29
27
|
open?: boolean;
|
|
30
28
|
onOpenChange?: (open: boolean) => void;
|
|
31
|
-
}):
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
32
30
|
declare function Sidebar({
|
|
33
31
|
side,
|
|
34
32
|
variant,
|
|
@@ -40,20 +38,20 @@ declare function Sidebar({
|
|
|
40
38
|
side?: "left" | "right";
|
|
41
39
|
variant?: "sidebar" | "floating" | "inset";
|
|
42
40
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
43
|
-
}):
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
44
42
|
declare function SidebarTrigger({
|
|
45
43
|
className,
|
|
46
44
|
onClick,
|
|
47
45
|
...props
|
|
48
|
-
}: React.ComponentProps<typeof Button>):
|
|
46
|
+
}: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
49
47
|
declare function SidebarRail({
|
|
50
48
|
className,
|
|
51
49
|
...props
|
|
52
|
-
}: React.ComponentProps<"button">):
|
|
50
|
+
}: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
53
51
|
declare function SidebarInset({
|
|
54
52
|
className,
|
|
55
53
|
...props
|
|
56
|
-
}: React.ComponentProps<"main">):
|
|
54
|
+
}: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
|
|
57
55
|
interface SidebarHeaderProps extends React.ComponentProps<"div"> {
|
|
58
56
|
icon?: React.ReactNode;
|
|
59
57
|
title?: string;
|
|
@@ -64,52 +62,52 @@ declare function SidebarHeader({
|
|
|
64
62
|
title,
|
|
65
63
|
children,
|
|
66
64
|
...props
|
|
67
|
-
}: SidebarHeaderProps):
|
|
65
|
+
}: SidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
68
66
|
declare function SidebarFooter({
|
|
69
67
|
className,
|
|
70
68
|
...props
|
|
71
|
-
}: React.ComponentProps<"div">):
|
|
69
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
72
70
|
declare function SidebarSeparator({
|
|
73
71
|
className
|
|
74
|
-
}: React.ComponentProps<"div">):
|
|
72
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
75
73
|
declare function SidebarContent({
|
|
76
74
|
className,
|
|
77
75
|
...props
|
|
78
|
-
}: React.ComponentProps<"div">):
|
|
76
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
79
77
|
declare function SidebarGroup({
|
|
80
78
|
className,
|
|
81
79
|
...props
|
|
82
|
-
}: React.ComponentProps<"div">):
|
|
80
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
83
81
|
declare function SidebarGroupLabel({
|
|
84
82
|
className,
|
|
85
83
|
asChild,
|
|
86
84
|
...props
|
|
87
85
|
}: React.ComponentProps<"div"> & {
|
|
88
86
|
asChild?: boolean;
|
|
89
|
-
}):
|
|
87
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
90
88
|
declare function SidebarGroupAction({
|
|
91
89
|
className,
|
|
92
90
|
asChild,
|
|
93
91
|
...props
|
|
94
92
|
}: React.ComponentProps<"button"> & {
|
|
95
93
|
asChild?: boolean;
|
|
96
|
-
}):
|
|
94
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
97
95
|
declare function SidebarGroupContent({
|
|
98
96
|
className,
|
|
99
97
|
...props
|
|
100
|
-
}: React.ComponentProps<"div">):
|
|
98
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
101
99
|
declare function SidebarMenu({
|
|
102
100
|
className,
|
|
103
101
|
...props
|
|
104
|
-
}: React.ComponentProps<"ul">):
|
|
102
|
+
}: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
105
103
|
declare function SidebarMenuItem({
|
|
106
104
|
className,
|
|
107
105
|
...props
|
|
108
|
-
}: React.ComponentProps<"li">):
|
|
106
|
+
}: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
109
107
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
110
108
|
variant?: "default" | "outline" | null | undefined;
|
|
111
109
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
112
|
-
} &
|
|
110
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
113
111
|
declare function SidebarMenuButton({
|
|
114
112
|
asChild,
|
|
115
113
|
isActive,
|
|
@@ -122,7 +120,7 @@ declare function SidebarMenuButton({
|
|
|
122
120
|
asChild?: boolean;
|
|
123
121
|
isActive?: boolean;
|
|
124
122
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
125
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
123
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
126
124
|
declare function SidebarMenuAction({
|
|
127
125
|
className,
|
|
128
126
|
asChild,
|
|
@@ -131,23 +129,23 @@ declare function SidebarMenuAction({
|
|
|
131
129
|
}: React.ComponentProps<"button"> & {
|
|
132
130
|
asChild?: boolean;
|
|
133
131
|
showOnHover?: boolean;
|
|
134
|
-
}):
|
|
132
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
135
133
|
declare function SidebarMenuBadge({
|
|
136
134
|
className,
|
|
137
135
|
...props
|
|
138
|
-
}: React.ComponentProps<"div">):
|
|
136
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
139
137
|
declare function SidebarMenuSkeleton({
|
|
140
138
|
className,
|
|
141
139
|
...props
|
|
142
|
-
}: React.ComponentProps<"div">):
|
|
140
|
+
}: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
143
141
|
declare function SidebarMenuSub({
|
|
144
142
|
className,
|
|
145
143
|
...props
|
|
146
|
-
}: React.ComponentProps<"ul">):
|
|
144
|
+
}: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
147
145
|
declare function SidebarMenuSubItem({
|
|
148
146
|
className,
|
|
149
147
|
...props
|
|
150
|
-
}: React.ComponentProps<"li">):
|
|
148
|
+
}: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
151
149
|
declare function SidebarMenuSubButton({
|
|
152
150
|
asChild,
|
|
153
151
|
size,
|
|
@@ -158,6 +156,6 @@ declare function SidebarMenuSubButton({
|
|
|
158
156
|
asChild?: boolean;
|
|
159
157
|
size?: "sm" | "md";
|
|
160
158
|
isActive?: boolean;
|
|
161
|
-
}):
|
|
159
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
162
160
|
//#endregion
|
|
163
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 };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
2
|
|
|
5
3
|
//#region src/components/skeleton.d.ts
|
|
6
4
|
declare const skeletonVariants: (props?: ({
|
|
7
5
|
shape?: "rectangle" | "circle" | null | undefined;
|
|
8
|
-
} &
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
7
|
interface SkeletonProps extends React.ComponentProps<"div">, VariantProps<typeof skeletonVariants> {}
|
|
10
8
|
declare function Skeleton({
|
|
11
9
|
className,
|
|
12
10
|
shape,
|
|
13
11
|
...props
|
|
14
|
-
}: SkeletonProps):
|
|
12
|
+
}: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
//#endregion
|
|
16
14
|
export { Skeleton, skeletonVariants };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { Toaster as Toaster$1, toast } from "sonner";
|
|
4
3
|
|
|
5
4
|
//#region src/components/sonner.d.ts
|
|
6
5
|
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
7
|
-
declare function Toaster(props: ToasterProps):
|
|
6
|
+
declare function Toaster(props: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
interface ActionToastProps {
|
|
9
8
|
toastId: string | number;
|
|
10
9
|
title: string;
|
|
@@ -24,6 +23,6 @@ declare function ActionToast({
|
|
|
24
23
|
description,
|
|
25
24
|
onDismiss,
|
|
26
25
|
confirm
|
|
27
|
-
}: ActionToastProps):
|
|
26
|
+
}: ActionToastProps): import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
//#endregion
|
|
29
28
|
export { ActionToast, type ActionToastProps, Toaster, type ToasterProps, toast };
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
2
|
|
|
5
3
|
//#region src/components/spinner.d.ts
|
|
6
4
|
declare const spinnerVariants: (props?: ({
|
|
7
5
|
variant?: "secondary" | "primary" | null | undefined;
|
|
8
6
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
-
} &
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
8
|
interface SpinnerProps extends Omit<React.ComponentProps<"svg">, "children">, VariantProps<typeof spinnerVariants> {}
|
|
11
9
|
declare function Spinner({
|
|
12
10
|
className,
|
|
13
11
|
variant,
|
|
14
12
|
size,
|
|
15
13
|
...props
|
|
16
|
-
}: SpinnerProps):
|
|
14
|
+
}: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
15
|
interface SpinnerBlockProps extends VariantProps<typeof spinnerVariants> {
|
|
18
16
|
className?: string;
|
|
19
17
|
fullscreen?: boolean;
|
|
@@ -25,6 +23,6 @@ declare function SpinnerBlock({
|
|
|
25
23
|
size,
|
|
26
24
|
fullscreen,
|
|
27
25
|
withLabel
|
|
28
|
-
}: SpinnerBlockProps):
|
|
26
|
+
}: SpinnerBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
29
27
|
//#endregion
|
|
30
28
|
export { Spinner, SpinnerBlock, type SpinnerBlockProps, type SpinnerProps, spinnerVariants };
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
2
|
|
|
5
3
|
//#region src/components/status-dot.d.ts
|
|
6
4
|
declare const statusDotVariants: (props?: ({
|
|
7
5
|
variant?: "destructive" | "warning" | "success" | "muted" | null | undefined;
|
|
8
6
|
pulse?: boolean | null | undefined;
|
|
9
|
-
} &
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
8
|
interface StatusDotProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statusDotVariants> {}
|
|
11
9
|
declare function StatusDot({
|
|
12
10
|
className,
|
|
13
11
|
variant,
|
|
14
12
|
pulse,
|
|
15
13
|
...props
|
|
16
|
-
}: StatusDotProps):
|
|
14
|
+
}: StatusDotProps): import("react/jsx-runtime").JSX.Element;
|
|
17
15
|
type StatusDotVariantProps = Required<Pick<VariantProps<typeof statusDotVariants>, "variant" | "pulse">>;
|
|
18
16
|
//#endregion
|
|
19
17
|
export { StatusDot, type StatusDotVariantProps, statusDotVariants };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4
3
|
|
|
@@ -6,6 +5,6 @@ import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
|
6
5
|
declare function Switch({
|
|
7
6
|
className,
|
|
8
7
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof SwitchPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { Switch };
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
|
|
4
3
|
//#region src/components/table.d.ts
|
|
5
4
|
declare function Table({
|
|
6
5
|
className,
|
|
7
6
|
...props
|
|
8
|
-
}: React.ComponentProps<"table">):
|
|
7
|
+
}: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
declare function TableHeader({
|
|
10
9
|
className,
|
|
11
10
|
...props
|
|
12
|
-
}: React.ComponentProps<"thead">):
|
|
11
|
+
}: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
declare function TableBody({
|
|
14
13
|
className,
|
|
15
14
|
...props
|
|
16
|
-
}: React.ComponentProps<"tbody">):
|
|
15
|
+
}: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
declare function TableFooter({
|
|
18
17
|
className,
|
|
19
18
|
...props
|
|
20
|
-
}: React.ComponentProps<"tfoot">):
|
|
19
|
+
}: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
|
|
21
20
|
declare function TableRow({
|
|
22
21
|
className,
|
|
23
22
|
...props
|
|
24
|
-
}: React.ComponentProps<"tr">):
|
|
23
|
+
}: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
|
|
25
24
|
declare function TableHead({
|
|
26
25
|
className,
|
|
27
26
|
...props
|
|
28
|
-
}: React.ComponentProps<"th">):
|
|
27
|
+
}: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
|
|
29
28
|
interface TableCellProps extends React.ComponentProps<"td"> {
|
|
30
29
|
/**
|
|
31
30
|
* When true, the cell renders edge-to-edge so the child can act as the
|
|
@@ -38,10 +37,10 @@ declare function TableCell({
|
|
|
38
37
|
className,
|
|
39
38
|
interactive,
|
|
40
39
|
...props
|
|
41
|
-
}: TableCellProps):
|
|
40
|
+
}: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
42
41
|
declare function TableCaption({
|
|
43
42
|
className,
|
|
44
43
|
...props
|
|
45
|
-
}: React.ComponentProps<"caption">):
|
|
44
|
+
}: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
|
|
46
45
|
//#endregion
|
|
47
46
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -36,21 +36,21 @@ function TableFooter({ className, ...props }) {
|
|
|
36
36
|
function TableRow({ className, ...props }) {
|
|
37
37
|
return /* @__PURE__ */ jsx("tr", {
|
|
38
38
|
"data-slot": "table-row",
|
|
39
|
-
className: cn("border-b border-border-secondary transition-colors", "data-[state=selected]:bg-muted", "[@media(hover:hover)]:hover:bg-background-hover dark:[@media(hover:hover)]:hover:bg-muted",
|
|
39
|
+
className: cn("border-b border-border-secondary transition-colors", "data-[state=selected]:bg-muted", "[@media(hover:hover)]:hover:bg-background-hover dark:[@media(hover:hover)]:hover:bg-muted", className),
|
|
40
40
|
...props
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
function TableHead({ className, ...props }) {
|
|
44
44
|
return /* @__PURE__ */ jsx("th", {
|
|
45
45
|
"data-slot": "table-head",
|
|
46
|
-
className: cn("h-11 px-6 py-3 bg-muted text-left align-middle type-text-xs font-semibold text-placeholder dark:text-subtle-foreground whitespace-nowrap", "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:
|
|
46
|
+
className: cn("h-11 px-6 py-3 bg-muted text-left align-middle type-text-xs font-semibold text-placeholder dark:text-subtle-foreground whitespace-nowrap", "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:px-0", className),
|
|
47
47
|
...props
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
function TableCell({ className, interactive = false, ...props }) {
|
|
51
51
|
return /* @__PURE__ */ jsx("td", {
|
|
52
52
|
"data-slot": "table-cell",
|
|
53
|
-
className: cn("align-middle", interactive ? "h-px p-0" : "px-6 py-2", "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:
|
|
53
|
+
className: cn("align-middle", interactive ? "h-px p-0" : "px-6 py-2", "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:px-0", className),
|
|
54
54
|
...props
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { VariantProps } from "class-variance-authority";
|
|
3
2
|
import * as React from "react";
|
|
4
3
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5
|
-
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
4
|
|
|
7
5
|
//#region src/components/tabs.d.ts
|
|
8
6
|
declare const tabsTriggerVariants: (props?: ({
|
|
9
7
|
variant?: "default" | "pill" | "line" | null | undefined;
|
|
10
|
-
} &
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
9
|
declare function Tabs({
|
|
12
10
|
className,
|
|
13
11
|
orientation,
|
|
14
12
|
...props
|
|
15
|
-
}: React.ComponentProps<typeof TabsPrimitive.Root>):
|
|
13
|
+
}: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
16
14
|
declare const tabsListVariants: (props?: ({
|
|
17
15
|
variant?: "default" | "line" | null | undefined;
|
|
18
|
-
} &
|
|
16
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
17
|
declare function TabsList({
|
|
20
18
|
className,
|
|
21
19
|
variant,
|
|
22
20
|
...props
|
|
23
|
-
}: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>):
|
|
21
|
+
}: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
24
22
|
declare function TabsTrigger({
|
|
25
23
|
className,
|
|
26
24
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>):
|
|
25
|
+
}: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
28
26
|
declare function TabsContent({
|
|
29
27
|
className,
|
|
30
28
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>):
|
|
29
|
+
}: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
32
30
|
type TabsNavVariant = "line" | "pill";
|
|
33
31
|
type TabsNavOrientation = "horizontal" | "vertical";
|
|
34
32
|
declare function TabsNav({
|
|
@@ -39,11 +37,11 @@ declare function TabsNav({
|
|
|
39
37
|
}: React.ComponentProps<"nav"> & {
|
|
40
38
|
orientation?: TabsNavOrientation;
|
|
41
39
|
variant?: TabsNavVariant;
|
|
42
|
-
}):
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
43
41
|
declare function TabsNavList({
|
|
44
42
|
className,
|
|
45
43
|
...props
|
|
46
|
-
}: React.ComponentProps<"ul">):
|
|
44
|
+
}: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
47
45
|
declare function TabsNavTrigger({
|
|
48
46
|
className,
|
|
49
47
|
active,
|
|
@@ -53,6 +51,6 @@ declare function TabsNavTrigger({
|
|
|
53
51
|
}: React.ComponentProps<"a"> & {
|
|
54
52
|
active?: boolean;
|
|
55
53
|
asChild?: boolean;
|
|
56
|
-
}):
|
|
54
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
57
55
|
//#endregion
|
|
58
56
|
export { Tabs, TabsContent, TabsList, TabsNav, TabsNavList, TabsNavTrigger, TabsTrigger, tabsListVariants, tabsTriggerVariants };
|
package/dist/components/tabs.mjs
CHANGED
|
@@ -21,10 +21,10 @@ const tabsTriggerVariants = cva([
|
|
|
21
21
|
"data-[state=active]:border-b-2 data-[state=active]:border-foreground data-[state=active]:text-foreground"
|
|
22
22
|
],
|
|
23
23
|
pill: [
|
|
24
|
-
"rounded-
|
|
25
|
-
"text-
|
|
26
|
-
"[@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-
|
|
27
|
-
"data-[state=active]:bg-accent data-[state=active]:text-
|
|
24
|
+
"rounded-md px-2 py-1.5",
|
|
25
|
+
"text-quaternary-foreground",
|
|
26
|
+
"[@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-muted-foreground",
|
|
27
|
+
"data-[state=active]:bg-accent data-[state=active]:text-muted-foreground"
|
|
28
28
|
]
|
|
29
29
|
} },
|
|
30
30
|
defaultVariants: { variant: "default" }
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
1
|
//#region src/components/tag.d.ts
|
|
4
2
|
interface TagBaseProps {
|
|
5
3
|
icon?: React.ReactNode;
|
|
@@ -10,7 +8,7 @@ declare function Tag({
|
|
|
10
8
|
icon,
|
|
11
9
|
children,
|
|
12
10
|
...props
|
|
13
|
-
}: TagProps):
|
|
11
|
+
}: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
interface TagDismissibleProps extends React.ComponentProps<"span">, TagBaseProps {
|
|
15
13
|
onDismiss?: () => void;
|
|
16
14
|
}
|
|
@@ -20,7 +18,7 @@ declare function TagDismissible({
|
|
|
20
18
|
children,
|
|
21
19
|
onDismiss,
|
|
22
20
|
...props
|
|
23
|
-
}: TagDismissibleProps):
|
|
21
|
+
}: TagDismissibleProps): import("react/jsx-runtime").JSX.Element;
|
|
24
22
|
interface TagCountProps extends React.ComponentProps<"span">, TagBaseProps {
|
|
25
23
|
count: number;
|
|
26
24
|
}
|
|
@@ -30,6 +28,6 @@ declare function TagCount({
|
|
|
30
28
|
children,
|
|
31
29
|
count,
|
|
32
30
|
...props
|
|
33
|
-
}: TagCountProps):
|
|
31
|
+
}: TagCountProps): import("react/jsx-runtime").JSX.Element;
|
|
34
32
|
//#endregion
|
|
35
33
|
export { Tag, TagCount, TagDismissible };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/components/task-progress.d.ts
|
|
2
|
+
type TaskProgressStatus = "pending" | "running" | "done";
|
|
3
|
+
interface TaskProgressStep {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
status: TaskProgressStatus;
|
|
7
|
+
}
|
|
8
|
+
interface TaskProgressProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
9
|
+
steps: readonly TaskProgressStep[];
|
|
10
|
+
trailingLabel?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional mount-time stagger: each row fades + slides in with `animation-delay = index × stepRevealDelayMs`.
|
|
13
|
+
* Pure CSS, runs once on mount. Omit for no animation.
|
|
14
|
+
*/
|
|
15
|
+
stepRevealDelayMs?: number;
|
|
16
|
+
}
|
|
17
|
+
declare function TaskProgress({
|
|
18
|
+
steps,
|
|
19
|
+
trailingLabel,
|
|
20
|
+
stepRevealDelayMs,
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}: TaskProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { TaskProgress, type TaskProgressStatus, type TaskProgressStep };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/cn.mjs";
|
|
3
|
+
import { Separator } from "./separator.mjs";
|
|
4
|
+
import { CheckIcon } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/task-progress.tsx
|
|
7
|
+
const REVEAL_CLASSES = "animate-in fade-in slide-in-from-bottom-2 duration-300";
|
|
8
|
+
function TaskProgress({ steps, trailingLabel, stepRevealDelayMs, className, ...props }) {
|
|
9
|
+
const total = steps.length;
|
|
10
|
+
const doneCount = steps.filter((step) => step.status === "done").length;
|
|
11
|
+
const percent = total > 0 ? Math.round(doneCount / total * 100) : 0;
|
|
12
|
+
const stagger = stepRevealDelayMs != null;
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
14
|
+
className: cn("flex flex-col gap-4", className),
|
|
15
|
+
...props,
|
|
16
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
17
|
+
className: "bg-muted h-2 w-full overflow-hidden rounded-full",
|
|
18
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
19
|
+
className: "h-full rounded-full bg-success transition-all duration-500",
|
|
20
|
+
style: { width: `${percent}%` }
|
|
21
|
+
})
|
|
22
|
+
}), /* @__PURE__ */ jsxs("div", { children: [steps.map((step, idx) => /* @__PURE__ */ jsxs("div", {
|
|
23
|
+
className: stagger ? REVEAL_CLASSES : void 0,
|
|
24
|
+
style: stagger ? {
|
|
25
|
+
animationDelay: `${idx * (stepRevealDelayMs ?? 0)}ms`,
|
|
26
|
+
animationFillMode: "both"
|
|
27
|
+
} : void 0,
|
|
28
|
+
children: [/* @__PURE__ */ jsx(TaskProgressRow, {
|
|
29
|
+
label: step.label,
|
|
30
|
+
status: step.status
|
|
31
|
+
}), idx < steps.length - 1 && /* @__PURE__ */ jsx(Separator, {})]
|
|
32
|
+
}, step.id)), trailingLabel && /* @__PURE__ */ jsxs("div", {
|
|
33
|
+
className: stagger ? REVEAL_CLASSES : void 0,
|
|
34
|
+
children: [/* @__PURE__ */ jsx(Separator, {}), /* @__PURE__ */ jsx(TaskProgressRow, {
|
|
35
|
+
label: trailingLabel,
|
|
36
|
+
status: "running",
|
|
37
|
+
muted: true
|
|
38
|
+
})]
|
|
39
|
+
})] })]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function TaskProgressRow({ label, status, muted }) {
|
|
43
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: "flex items-center justify-between py-2",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ jsx("span", {
|
|
47
|
+
className: cn("type-text-sm", muted && "text-muted-foreground"),
|
|
48
|
+
children: label
|
|
49
|
+
}),
|
|
50
|
+
status === "done" && /* @__PURE__ */ jsxs("span", {
|
|
51
|
+
className: "flex items-center gap-1 type-text-sm text-success",
|
|
52
|
+
children: [/* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" }), /* @__PURE__ */ jsx("span", { children: "done" })]
|
|
53
|
+
}),
|
|
54
|
+
status === "running" && /* @__PURE__ */ jsxs("span", {
|
|
55
|
+
className: "flex items-center gap-1.5 type-text-sm text-warning",
|
|
56
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-2 rounded-full bg-warning" }), /* @__PURE__ */ jsx("span", { children: "running…" })]
|
|
57
|
+
}),
|
|
58
|
+
status === "pending" && /* @__PURE__ */ jsxs("span", {
|
|
59
|
+
className: "flex items-center gap-1.5 type-text-sm text-muted-foreground",
|
|
60
|
+
children: [/* @__PURE__ */ jsx("span", { className: "size-2 rounded-full border border-muted-foreground" }), /* @__PURE__ */ jsx("span", { children: "pending" })]
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { TaskProgress };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
|
|
4
3
|
//#region src/components/textarea.d.ts
|
|
@@ -18,6 +17,6 @@ declare function Textarea({
|
|
|
18
17
|
error,
|
|
19
18
|
tooltip,
|
|
20
19
|
...props
|
|
21
|
-
}: TextareaProps):
|
|
20
|
+
}: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
//#endregion
|
|
23
22
|
export { Textarea, type TextareaProps };
|