@alpic-ai/ui 1.152.0 → 1.154.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion-card.d.mts +4 -25
- package/dist/components/accordion.d.mts +4 -18
- package/dist/components/alert.d.mts +5 -24
- package/dist/components/area-chart.d.mts +1 -22
- package/dist/components/attachment-tile.d.mts +1 -8
- package/dist/components/avatar.d.mts +4 -27
- package/dist/components/badge.d.mts +1 -8
- package/dist/components/bar-chart.d.mts +1 -21
- package/dist/components/bar-list.d.mts +1 -13
- package/dist/components/breadcrumb.d.mts +8 -35
- package/dist/components/button.d.mts +1 -14
- package/dist/components/card.d.mts +7 -30
- package/dist/components/chart-card.d.mts +1 -12
- package/dist/components/chart-container.d.mts +1 -6
- package/dist/components/chart-legend.d.mts +1 -8
- package/dist/components/chart-tooltip.d.mts +1 -11
- package/dist/components/checkbox.d.mts +1 -5
- package/dist/components/collapsible.d.mts +3 -10
- package/dist/components/combobox.d.mts +9 -45
- package/dist/components/command.d.mts +8 -32
- package/dist/components/copyable.d.mts +2 -9
- package/dist/components/description-list.d.mts +4 -17
- package/dist/components/dialog.d.mts +10 -42
- package/dist/components/donut-chart.d.mts +1 -16
- package/dist/components/dropdown-menu.d.mts +13 -55
- package/dist/components/form.d.mts +15 -115
- package/dist/components/github-button.d.mts +1 -6
- package/dist/components/heatmap-chart.d.mts +1 -23
- package/dist/components/input-group.d.mts +3 -15
- package/dist/components/input.d.mts +1 -14
- package/dist/components/label.d.mts +1 -5
- package/dist/components/line-chart.d.mts +1 -21
- package/dist/components/page-loader.d.mts +1 -3
- package/dist/components/pagination.d.mts +1 -8
- package/dist/components/popover.d.mts +4 -16
- package/dist/components/radio-group.d.mts +2 -9
- package/dist/components/scroll-area.d.mts +2 -11
- package/dist/components/select.d.mts +8 -35
- package/dist/components/separator.d.mts +1 -7
- package/dist/components/sheet.d.mts +9 -35
- package/dist/components/shimmer-text.d.mts +1 -5
- package/dist/components/sidebar.d.mts +22 -113
- package/dist/components/skeleton.d.mts +1 -6
- package/dist/components/sonner.d.mts +1 -8
- package/dist/components/spinner.d.mts +2 -14
- package/dist/components/stat.d.mts +1 -10
- package/dist/components/stat.mjs +2 -2
- package/dist/components/status-dot.d.mts +1 -7
- package/dist/components/switch.d.mts +1 -5
- package/dist/components/table.d.mts +11 -34
- package/dist/components/table.mjs +2 -2
- package/dist/components/tabs.d.mts +7 -36
- package/dist/components/tag.d.mts +3 -20
- package/dist/components/task-progress.d.mts +1 -7
- package/dist/components/textarea.d.mts +1 -11
- package/dist/components/toggle-group.d.mts +2 -15
- package/dist/components/tooltip-icon-button.d.mts +0 -1
- package/dist/components/tooltip.d.mts +4 -17
- package/dist/components/typography.d.mts +4 -17
- package/dist/components/wizard.d.mts +1 -7
- package/dist/hooks/use-copy-to-clipboard.d.mts +1 -3
- package/dist/lib/chart-palette.mjs +39 -21
- package/dist/lib/chart.d.mts +1 -0
- package/dist/lib/cn.d.mts +0 -1
- package/package.json +19 -19
- package/src/components/stat.tsx +2 -2
- package/src/components/table.tsx +11 -2
|
@@ -1,37 +1,13 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Command as Command$1 } from "cmdk";
|
|
3
|
-
|
|
4
3
|
//#region src/components/command.d.ts
|
|
5
|
-
declare function Command({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}: React$1.ComponentProps<typeof Command$1>): React$1.JSX.Element;
|
|
9
|
-
declare function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}: React$1.ComponentProps<
|
|
13
|
-
declare function CommandList({
|
|
14
|
-
className,
|
|
15
|
-
...props
|
|
16
|
-
}: React$1.ComponentProps<typeof Command$1.List>): React$1.JSX.Element;
|
|
17
|
-
declare function CommandEmpty({
|
|
18
|
-
...props
|
|
19
|
-
}: React$1.ComponentProps<typeof Command$1.Empty>): React$1.JSX.Element;
|
|
20
|
-
declare function CommandGroup({
|
|
21
|
-
className,
|
|
22
|
-
...props
|
|
23
|
-
}: React$1.ComponentProps<typeof Command$1.Group>): React$1.JSX.Element;
|
|
24
|
-
declare function CommandSeparator({
|
|
25
|
-
className,
|
|
26
|
-
...props
|
|
27
|
-
}: React$1.ComponentProps<typeof Command$1.Separator>): React$1.JSX.Element;
|
|
28
|
-
declare function CommandItem({
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}: React$1.ComponentProps<typeof Command$1.Item>): React$1.JSX.Element;
|
|
32
|
-
declare function CommandShortcut({
|
|
33
|
-
className,
|
|
34
|
-
...props
|
|
35
|
-
}: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
4
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): React$1.JSX.Element;
|
|
5
|
+
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): React$1.JSX.Element;
|
|
6
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): React$1.JSX.Element;
|
|
7
|
+
declare function CommandEmpty({ ...props }: React$1.ComponentProps<typeof Command$1.Empty>): React$1.JSX.Element;
|
|
8
|
+
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): React$1.JSX.Element;
|
|
9
|
+
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): React$1.JSX.Element;
|
|
10
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): React$1.JSX.Element;
|
|
11
|
+
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
36
12
|
//#endregion
|
|
37
13
|
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/components/copyable.d.ts
|
|
4
3
|
interface CopyableProps {
|
|
5
4
|
content: string;
|
|
6
5
|
children: ReactNode;
|
|
7
6
|
className?: string;
|
|
8
7
|
}
|
|
9
|
-
declare function Copyable({
|
|
10
|
-
content,
|
|
11
|
-
children,
|
|
12
|
-
className
|
|
13
|
-
}: CopyableProps): import("react").JSX.Element;
|
|
8
|
+
declare function Copyable({ content, children, className }: CopyableProps): import("react").JSX.Element;
|
|
14
9
|
interface CopyableUrlProps {
|
|
15
10
|
url: URL;
|
|
16
11
|
}
|
|
17
|
-
declare function CopyableUrl({
|
|
18
|
-
url
|
|
19
|
-
}: CopyableUrlProps): import("react").JSX.Element;
|
|
12
|
+
declare function CopyableUrl({ url }: CopyableUrlProps): import("react").JSX.Element;
|
|
20
13
|
//#endregion
|
|
21
14
|
export { Copyable, type CopyableProps, CopyableUrl, type CopyableUrlProps };
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/components/description-list.d.ts
|
|
4
|
-
declare function DescriptionList({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}: React$1.ComponentProps<"
|
|
8
|
-
declare function DescriptionItem({
|
|
9
|
-
className,
|
|
10
|
-
...props
|
|
11
|
-
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
12
|
-
declare function DescriptionTitle({
|
|
13
|
-
className,
|
|
14
|
-
...props
|
|
15
|
-
}: React$1.ComponentProps<"dt">): React$1.JSX.Element;
|
|
16
|
-
declare function DescriptionValue({
|
|
17
|
-
className,
|
|
18
|
-
...props
|
|
19
|
-
}: React$1.ComponentProps<"dd">): React$1.JSX.Element;
|
|
3
|
+
declare function DescriptionList({ className, ...props }: React$1.ComponentProps<"dl">): React$1.JSX.Element;
|
|
4
|
+
declare function DescriptionItem({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
5
|
+
declare function DescriptionTitle({ className, ...props }: React$1.ComponentProps<"dt">): React$1.JSX.Element;
|
|
6
|
+
declare function DescriptionValue({ className, ...props }: React$1.ComponentProps<"dd">): React$1.JSX.Element;
|
|
20
7
|
//#endregion
|
|
21
8
|
export { DescriptionItem, DescriptionList, DescriptionTitle, DescriptionValue };
|
|
@@ -2,58 +2,26 @@ import { ButtonProps } from "./button.mjs";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
|
|
6
5
|
//#region src/components/dialog.d.ts
|
|
7
|
-
declare function Dialog({
|
|
8
|
-
|
|
9
|
-
}: React$1.ComponentProps<typeof DialogPrimitive.
|
|
10
|
-
declare function
|
|
11
|
-
...props
|
|
12
|
-
}: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): React$1.JSX.Element;
|
|
13
|
-
declare function DialogPortal({
|
|
14
|
-
...props
|
|
15
|
-
}: React$1.ComponentProps<typeof DialogPrimitive.Portal>): React$1.JSX.Element;
|
|
16
|
-
declare function DialogOverlay({
|
|
17
|
-
className,
|
|
18
|
-
...props
|
|
19
|
-
}: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): React$1.JSX.Element;
|
|
6
|
+
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): React$1.JSX.Element;
|
|
7
|
+
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): React$1.JSX.Element;
|
|
8
|
+
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): React$1.JSX.Element;
|
|
9
|
+
declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): React$1.JSX.Element;
|
|
20
10
|
declare const dialogContentVariants: (props?: ({
|
|
21
11
|
size?: "sm" | "lg" | null | undefined;
|
|
22
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
23
13
|
interface DialogContentProps extends React$1.ComponentProps<typeof DialogPrimitive.Content>, VariantProps<typeof dialogContentVariants> {
|
|
24
14
|
showCloseButton?: boolean;
|
|
25
15
|
}
|
|
26
|
-
declare function DialogContent({
|
|
27
|
-
|
|
28
|
-
children,
|
|
29
|
-
size,
|
|
30
|
-
showCloseButton,
|
|
31
|
-
...props
|
|
32
|
-
}: DialogContentProps): React$1.JSX.Element;
|
|
33
|
-
declare function DialogHeader({
|
|
34
|
-
className,
|
|
35
|
-
...props
|
|
36
|
-
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
16
|
+
declare function DialogContent({ className, children, size, showCloseButton, ...props }: DialogContentProps): React$1.JSX.Element;
|
|
17
|
+
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
37
18
|
declare const dialogFooterVariants: (props?: ({
|
|
38
19
|
layout?: "horizontal" | "vertical" | null | undefined;
|
|
39
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
40
21
|
interface DialogFooterProps extends React$1.ComponentProps<"div">, VariantProps<typeof dialogFooterVariants> {}
|
|
41
|
-
declare function DialogFooter({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}: DialogFooterProps): React$1.JSX.Element;
|
|
46
|
-
declare function DialogTitle({
|
|
47
|
-
className,
|
|
48
|
-
...props
|
|
49
|
-
}: React$1.ComponentProps<typeof DialogPrimitive.Title>): React$1.JSX.Element;
|
|
50
|
-
declare function DialogClose({
|
|
51
|
-
children,
|
|
52
|
-
...props
|
|
53
|
-
}: Omit<ButtonProps, "variant" | "asChild">): React$1.JSX.Element;
|
|
54
|
-
declare function DialogDescription({
|
|
55
|
-
className,
|
|
56
|
-
...props
|
|
57
|
-
}: React$1.ComponentProps<typeof DialogPrimitive.Description>): React$1.JSX.Element;
|
|
22
|
+
declare function DialogFooter({ className, layout, ...props }: DialogFooterProps): React$1.JSX.Element;
|
|
23
|
+
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): React$1.JSX.Element;
|
|
24
|
+
declare function DialogClose({ children, ...props }: Omit<ButtonProps, "variant" | "asChild">): React$1.JSX.Element;
|
|
25
|
+
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): React$1.JSX.Element;
|
|
58
26
|
//#endregion
|
|
59
27
|
export { Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, dialogContentVariants, dialogFooterVariants };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChartPaletteName } from "../lib/chart-palette.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/components/donut-chart.d.ts
|
|
5
4
|
declare const GEOMETRY: {
|
|
6
5
|
readonly donut: {
|
|
@@ -27,20 +26,6 @@ interface DonutChartProps {
|
|
|
27
26
|
labelFormatter?: (label: string | number) => string;
|
|
28
27
|
className?: string;
|
|
29
28
|
}
|
|
30
|
-
declare function DonutChart({
|
|
31
|
-
data,
|
|
32
|
-
index,
|
|
33
|
-
dataKey,
|
|
34
|
-
variant,
|
|
35
|
-
legend,
|
|
36
|
-
paddingAngle,
|
|
37
|
-
height,
|
|
38
|
-
palette,
|
|
39
|
-
centerLabel,
|
|
40
|
-
loading,
|
|
41
|
-
valueFormatter,
|
|
42
|
-
labelFormatter,
|
|
43
|
-
className
|
|
44
|
-
}: DonutChartProps): React$1.JSX.Element;
|
|
29
|
+
declare function DonutChart({ data, index, dataKey, variant, legend, paddingAngle, height, palette, centerLabel, loading, valueFormatter, labelFormatter, className }: DonutChartProps): React$1.JSX.Element;
|
|
45
30
|
//#endregion
|
|
46
31
|
export { DonutChart, DonutChartProps };
|
|
@@ -1,70 +1,28 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
4
|
-
|
|
5
4
|
//#region src/components/dropdown-menu.d.ts
|
|
6
|
-
declare function DropdownMenu({
|
|
7
|
-
|
|
8
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.
|
|
9
|
-
declare function
|
|
10
|
-
|
|
11
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React$1.JSX.Element;
|
|
12
|
-
declare function DropdownMenuTrigger({
|
|
13
|
-
...props
|
|
14
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React$1.JSX.Element;
|
|
15
|
-
declare function DropdownMenuContent({
|
|
16
|
-
className,
|
|
17
|
-
sideOffset,
|
|
18
|
-
...props
|
|
19
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): React$1.JSX.Element;
|
|
20
|
-
declare function DropdownMenuGroup({
|
|
21
|
-
...props
|
|
22
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): React$1.JSX.Element;
|
|
5
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): React$1.JSX.Element;
|
|
6
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React$1.JSX.Element;
|
|
7
|
+
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React$1.JSX.Element;
|
|
8
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): React$1.JSX.Element;
|
|
9
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): React$1.JSX.Element;
|
|
23
10
|
declare const dropdownMenuItemVariants: (props?: ({
|
|
24
11
|
variant?: "default" | "destructive" | null | undefined;
|
|
25
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
|
-
declare function DropdownMenuItem({
|
|
27
|
-
className,
|
|
28
|
-
inset,
|
|
29
|
-
variant,
|
|
30
|
-
...props
|
|
31
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & VariantProps<typeof dropdownMenuItemVariants> & {
|
|
13
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & VariantProps<typeof dropdownMenuItemVariants> & {
|
|
32
14
|
inset?: boolean;
|
|
33
15
|
}): React$1.JSX.Element;
|
|
34
|
-
declare function DropdownMenuLabel({
|
|
35
|
-
className,
|
|
36
|
-
inset,
|
|
37
|
-
...props
|
|
38
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
16
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
39
17
|
inset?: boolean;
|
|
40
18
|
}): React$1.JSX.Element;
|
|
41
|
-
declare function DropdownMenuHeader({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}: React$1.
|
|
46
|
-
declare function DropdownMenuSeparator({
|
|
47
|
-
className,
|
|
48
|
-
...props
|
|
49
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React$1.JSX.Element;
|
|
50
|
-
declare function DropdownMenuShortcut({
|
|
51
|
-
className,
|
|
52
|
-
...props
|
|
53
|
-
}: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
54
|
-
declare function DropdownMenuSub({
|
|
55
|
-
...props
|
|
56
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React$1.JSX.Element;
|
|
57
|
-
declare function DropdownMenuSubTrigger({
|
|
58
|
-
className,
|
|
59
|
-
inset,
|
|
60
|
-
children,
|
|
61
|
-
...props
|
|
62
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
19
|
+
declare function DropdownMenuHeader({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
20
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React$1.JSX.Element;
|
|
21
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
22
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React$1.JSX.Element;
|
|
23
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
63
24
|
inset?: boolean;
|
|
64
25
|
}): React$1.JSX.Element;
|
|
65
|
-
declare function DropdownMenuSubContent({
|
|
66
|
-
className,
|
|
67
|
-
...props
|
|
68
|
-
}: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React$1.JSX.Element;
|
|
26
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React$1.JSX.Element;
|
|
69
27
|
//#endregion
|
|
70
28
|
export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, dropdownMenuItemVariants };
|
|
@@ -4,31 +4,9 @@ import { TextareaProps } from "./textarea.mjs";
|
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
6
|
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
7
|
-
|
|
8
7
|
//#region src/components/form.d.ts
|
|
9
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({
|
|
10
|
-
|
|
11
|
-
watch,
|
|
12
|
-
getValues,
|
|
13
|
-
getFieldState,
|
|
14
|
-
setError,
|
|
15
|
-
clearErrors,
|
|
16
|
-
setValue,
|
|
17
|
-
setValues,
|
|
18
|
-
trigger,
|
|
19
|
-
formState,
|
|
20
|
-
resetField,
|
|
21
|
-
reset,
|
|
22
|
-
handleSubmit,
|
|
23
|
-
unregister,
|
|
24
|
-
control,
|
|
25
|
-
register,
|
|
26
|
-
setFocus,
|
|
27
|
-
subscribe
|
|
28
|
-
}: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
29
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
30
|
-
...props
|
|
31
|
-
}: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
|
|
8
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
9
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
|
|
32
10
|
declare const useFormField: () => {
|
|
33
11
|
invalid: boolean;
|
|
34
12
|
isDirty: boolean;
|
|
@@ -41,46 +19,21 @@ declare const useFormField: () => {
|
|
|
41
19
|
formDescriptionId: string;
|
|
42
20
|
formMessageId: string;
|
|
43
21
|
};
|
|
44
|
-
declare function FormItem({
|
|
45
|
-
className,
|
|
46
|
-
...props
|
|
47
|
-
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
22
|
+
declare function FormItem({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
48
23
|
interface FormLabelProps extends React$1.ComponentProps<typeof Label> {
|
|
49
24
|
required?: boolean;
|
|
50
25
|
tooltip?: string;
|
|
51
26
|
}
|
|
52
|
-
declare function FormLabel({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
children,
|
|
57
|
-
...props
|
|
58
|
-
}: FormLabelProps): React$1.JSX.Element;
|
|
59
|
-
declare function FormControl({
|
|
60
|
-
...props
|
|
61
|
-
}: React$1.ComponentProps<typeof Slot>): React$1.JSX.Element;
|
|
62
|
-
declare function FormDescription({
|
|
63
|
-
className,
|
|
64
|
-
...props
|
|
65
|
-
}: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
66
|
-
declare function FormMessage({
|
|
67
|
-
className,
|
|
68
|
-
...props
|
|
69
|
-
}: React$1.ComponentProps<"p">): React$1.JSX.Element | null;
|
|
27
|
+
declare function FormLabel({ className, required, tooltip, children, ...props }: FormLabelProps): React$1.JSX.Element;
|
|
28
|
+
declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot>): React$1.JSX.Element;
|
|
29
|
+
declare function FormDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
30
|
+
declare function FormMessage({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element | null;
|
|
70
31
|
interface FormHeaderProps extends React$1.ComponentProps<"div"> {
|
|
71
32
|
title: string;
|
|
72
33
|
description?: string;
|
|
73
34
|
}
|
|
74
|
-
declare function FormHeader({
|
|
75
|
-
|
|
76
|
-
description,
|
|
77
|
-
className,
|
|
78
|
-
...props
|
|
79
|
-
}: FormHeaderProps): React$1.JSX.Element;
|
|
80
|
-
declare function FormFields({
|
|
81
|
-
className,
|
|
82
|
-
...props
|
|
83
|
-
}: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
35
|
+
declare function FormHeader({ title, description, className, ...props }: FormHeaderProps): React$1.JSX.Element;
|
|
36
|
+
declare function FormFields({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
84
37
|
interface FormFieldBaseProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> {
|
|
85
38
|
control: ControllerProps<TFieldValues, TName>["control"];
|
|
86
39
|
name: TName;
|
|
@@ -91,27 +44,9 @@ interface FormFieldBaseProps<TFieldValues extends FieldValues, TName extends Fie
|
|
|
91
44
|
tooltip?: string;
|
|
92
45
|
}
|
|
93
46
|
interface InputFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> extends FormFieldBaseProps<TFieldValues, TName>, Omit<InputProps, "name" | "label"> {}
|
|
94
|
-
declare function InputField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({
|
|
95
|
-
control,
|
|
96
|
-
name,
|
|
97
|
-
rules,
|
|
98
|
-
required,
|
|
99
|
-
label,
|
|
100
|
-
description,
|
|
101
|
-
tooltip,
|
|
102
|
-
...inputProps
|
|
103
|
-
}: InputFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
47
|
+
declare function InputField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, required, label, description, tooltip, ...inputProps }: InputFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
104
48
|
interface TextareaFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> extends FormFieldBaseProps<TFieldValues, TName>, Omit<TextareaProps, "name" | "label"> {}
|
|
105
|
-
declare function TextareaField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({
|
|
106
|
-
control,
|
|
107
|
-
name,
|
|
108
|
-
rules,
|
|
109
|
-
required,
|
|
110
|
-
label,
|
|
111
|
-
description,
|
|
112
|
-
tooltip,
|
|
113
|
-
...textareaProps
|
|
114
|
-
}: TextareaFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
49
|
+
declare function TextareaField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, required, label, description, tooltip, ...textareaProps }: TextareaFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
115
50
|
interface SelectFieldOption {
|
|
116
51
|
value: string;
|
|
117
52
|
label: string;
|
|
@@ -121,51 +56,16 @@ interface SelectFieldProps<TFieldValues extends FieldValues, TName extends Field
|
|
|
121
56
|
options: SelectFieldOption[];
|
|
122
57
|
placeholder?: string;
|
|
123
58
|
}
|
|
124
|
-
declare function SelectField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({
|
|
125
|
-
control,
|
|
126
|
-
name,
|
|
127
|
-
rules,
|
|
128
|
-
required,
|
|
129
|
-
label,
|
|
130
|
-
description,
|
|
131
|
-
tooltip,
|
|
132
|
-
options,
|
|
133
|
-
placeholder
|
|
134
|
-
}: SelectFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
59
|
+
declare function SelectField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, required, label, description, tooltip, options, placeholder }: SelectFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
135
60
|
interface RadioFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> extends FormFieldBaseProps<TFieldValues, TName> {
|
|
136
61
|
options: SelectFieldOption[];
|
|
137
62
|
}
|
|
138
|
-
declare function RadioField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({
|
|
139
|
-
control,
|
|
140
|
-
name,
|
|
141
|
-
rules,
|
|
142
|
-
required,
|
|
143
|
-
label,
|
|
144
|
-
description,
|
|
145
|
-
tooltip,
|
|
146
|
-
options
|
|
147
|
-
}: RadioFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
63
|
+
declare function RadioField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, required, label, description, tooltip, options }: RadioFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
148
64
|
interface ChecklistFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> extends FormFieldBaseProps<TFieldValues, TName> {
|
|
149
65
|
options: SelectFieldOption[];
|
|
150
66
|
}
|
|
151
|
-
declare function ChecklistField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({
|
|
152
|
-
control,
|
|
153
|
-
name,
|
|
154
|
-
rules,
|
|
155
|
-
required,
|
|
156
|
-
label,
|
|
157
|
-
description,
|
|
158
|
-
tooltip,
|
|
159
|
-
options
|
|
160
|
-
}: ChecklistFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
67
|
+
declare function ChecklistField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, required, label, description, tooltip, options }: ChecklistFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
161
68
|
interface CheckboxFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> extends Omit<FormFieldBaseProps<TFieldValues, TName>, "required"> {}
|
|
162
|
-
declare function CheckboxField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({
|
|
163
|
-
control,
|
|
164
|
-
name,
|
|
165
|
-
rules,
|
|
166
|
-
label,
|
|
167
|
-
description,
|
|
168
|
-
tooltip
|
|
169
|
-
}: CheckboxFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
69
|
+
declare function CheckboxField<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ control, name, rules, label, description, tooltip }: CheckboxFieldProps<TFieldValues, TName>): React$1.JSX.Element;
|
|
170
70
|
//#endregion
|
|
171
71
|
export { CheckboxField, ChecklistField, Form, FormControl, FormDescription, FormField, FormFields, FormHeader, FormItem, FormLabel, FormMessage, InputField, RadioField, SelectField, type SelectFieldOption, TextareaField, useFormField };
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { Button } from "./button.mjs";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/components/github-button.d.ts
|
|
5
4
|
type GitHubButtonProps = Omit<ComponentProps<typeof Button>, "variant" | "icon">;
|
|
6
|
-
declare function GitHubButton({
|
|
7
|
-
className,
|
|
8
|
-
children,
|
|
9
|
-
...props
|
|
10
|
-
}: GitHubButtonProps): import("react").JSX.Element;
|
|
5
|
+
declare function GitHubButton({ className, children, ...props }: GitHubButtonProps): import("react").JSX.Element;
|
|
11
6
|
//#endregion
|
|
12
7
|
export { GitHubButton, type GitHubButtonProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChartPaletteName } from "../lib/chart-palette.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/components/heatmap-chart.d.ts
|
|
5
4
|
interface HeatmapChartProps {
|
|
6
5
|
data: ReadonlyArray<Record<string, string | number | null | undefined>>;
|
|
@@ -28,27 +27,6 @@ interface HeatmapChartProps {
|
|
|
28
27
|
ariaLabel?: string;
|
|
29
28
|
className?: string;
|
|
30
29
|
}
|
|
31
|
-
declare function HeatmapChart({
|
|
32
|
-
data,
|
|
33
|
-
xKey,
|
|
34
|
-
yKey,
|
|
35
|
-
dataKey,
|
|
36
|
-
variant,
|
|
37
|
-
palette,
|
|
38
|
-
xLabels,
|
|
39
|
-
yLabels,
|
|
40
|
-
showAllXLabels,
|
|
41
|
-
highlightPeak,
|
|
42
|
-
loading,
|
|
43
|
-
valueFormatter,
|
|
44
|
-
xTickFormatter,
|
|
45
|
-
yTickFormatter,
|
|
46
|
-
tooltipMetrics,
|
|
47
|
-
tooltipTitleKey,
|
|
48
|
-
colorScale,
|
|
49
|
-
showLegend,
|
|
50
|
-
ariaLabel,
|
|
51
|
-
className
|
|
52
|
-
}: HeatmapChartProps): React$1.JSX.Element;
|
|
30
|
+
declare function HeatmapChart({ data, xKey, yKey, dataKey, variant, palette, xLabels, yLabels, showAllXLabels, highlightPeak, loading, valueFormatter, xTickFormatter, yTickFormatter, tooltipMetrics, tooltipTitleKey, colorScale, showLegend, ariaLabel, className }: HeatmapChartProps): React$1.JSX.Element;
|
|
53
31
|
//#endregion
|
|
54
32
|
export { HeatmapChart, HeatmapChartProps };
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/components/input-group.d.ts
|
|
5
|
-
declare function InputGroup({
|
|
6
|
-
className,
|
|
7
|
-
children,
|
|
8
|
-
...props
|
|
9
|
-
}: React$1.ComponentProps<"fieldset">): React$1.JSX.Element;
|
|
4
|
+
declare function InputGroup({ className, children, ...props }: React$1.ComponentProps<"fieldset">): React$1.JSX.Element;
|
|
10
5
|
declare const inputGroupAddonVariants: (props?: ({
|
|
11
6
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
12
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
-
declare function InputGroupAddon({
|
|
14
|
-
|
|
15
|
-
align,
|
|
16
|
-
...props
|
|
17
|
-
}: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
18
|
-
declare function InputGroupTextarea({
|
|
19
|
-
className,
|
|
20
|
-
...props
|
|
21
|
-
}: React$1.ComponentProps<"textarea">): React$1.JSX.Element;
|
|
8
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
9
|
+
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): React$1.JSX.Element;
|
|
22
10
|
//#endregion
|
|
23
11
|
export { InputGroup, InputGroupAddon, InputGroupTextarea };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/components/input.d.ts
|
|
4
3
|
interface InputProps extends Omit<React$1.ComponentProps<"input">, "size"> {
|
|
5
4
|
label?: string;
|
|
@@ -11,18 +10,6 @@ interface InputProps extends Omit<React$1.ComponentProps<"input">, "size"> {
|
|
|
11
10
|
leadingIcon?: React$1.ReactNode;
|
|
12
11
|
size?: "sm" | "md";
|
|
13
12
|
}
|
|
14
|
-
declare function Input({
|
|
15
|
-
className,
|
|
16
|
-
id,
|
|
17
|
-
label,
|
|
18
|
-
required,
|
|
19
|
-
hint,
|
|
20
|
-
error,
|
|
21
|
-
tooltip,
|
|
22
|
-
leadingText,
|
|
23
|
-
leadingIcon,
|
|
24
|
-
size,
|
|
25
|
-
...props
|
|
26
|
-
}: InputProps): React$1.JSX.Element;
|
|
13
|
+
declare function Input({ className, id, label, required, hint, error, tooltip, leadingText, leadingIcon, size, ...props }: InputProps): React$1.JSX.Element;
|
|
27
14
|
//#endregion
|
|
28
15
|
export { Input, type InputProps };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
-
|
|
4
3
|
//#region src/components/label.d.ts
|
|
5
|
-
declare function Label({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}: React$1.ComponentProps<typeof LabelPrimitive.Root>): React$1.JSX.Element;
|
|
4
|
+
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): React$1.JSX.Element;
|
|
9
5
|
//#endregion
|
|
10
6
|
export { Label };
|
|
@@ -2,7 +2,6 @@ import { ChartSeries } from "../lib/chart.mjs";
|
|
|
2
2
|
import { ChartPaletteName } from "../lib/chart-palette.mjs";
|
|
3
3
|
import { ChartMarker } from "./area-chart.mjs";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/components/line-chart.d.ts
|
|
7
6
|
declare const CURVE_TYPE: {
|
|
8
7
|
readonly monotone: "monotone";
|
|
@@ -33,25 +32,6 @@ interface LineChartProps {
|
|
|
33
32
|
labelFormatter?: (label: string | number) => string;
|
|
34
33
|
className?: string;
|
|
35
34
|
}
|
|
36
|
-
declare function LineChart({
|
|
37
|
-
data,
|
|
38
|
-
index,
|
|
39
|
-
series,
|
|
40
|
-
curve,
|
|
41
|
-
legend,
|
|
42
|
-
legendAlign,
|
|
43
|
-
valueFlags,
|
|
44
|
-
dots,
|
|
45
|
-
height,
|
|
46
|
-
yAxisWidth,
|
|
47
|
-
palette,
|
|
48
|
-
referenceLine,
|
|
49
|
-
markers,
|
|
50
|
-
lastValueLabel,
|
|
51
|
-
loading,
|
|
52
|
-
valueFormatter,
|
|
53
|
-
labelFormatter,
|
|
54
|
-
className
|
|
55
|
-
}: LineChartProps): React$1.JSX.Element;
|
|
35
|
+
declare function LineChart({ data, index, series, curve, legend, legendAlign, valueFlags, dots, height, yAxisWidth, palette, referenceLine, markers, lastValueLabel, loading, valueFormatter, labelFormatter, className }: LineChartProps): React$1.JSX.Element;
|
|
56
36
|
//#endregion
|
|
57
37
|
export { LineChart, LineChartProps };
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
interface PageLoaderProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
declare function PageLoader({
|
|
6
|
-
className
|
|
7
|
-
}: PageLoaderProps): import("react").JSX.Element;
|
|
5
|
+
declare function PageLoader({ className }: PageLoaderProps): import("react").JSX.Element;
|
|
8
6
|
//#endregion
|
|
9
7
|
export { PageLoader, type PageLoaderProps };
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/components/pagination.d.ts
|
|
4
3
|
interface PaginationProps extends React$1.ComponentProps<"nav"> {
|
|
5
4
|
currentPage: number;
|
|
6
5
|
totalPages: number;
|
|
7
6
|
onPageChange: (page: number) => void;
|
|
8
7
|
}
|
|
9
|
-
declare function Pagination({
|
|
10
|
-
currentPage,
|
|
11
|
-
totalPages,
|
|
12
|
-
onPageChange,
|
|
13
|
-
className,
|
|
14
|
-
...props
|
|
15
|
-
}: PaginationProps): React$1.JSX.Element | null;
|
|
8
|
+
declare function Pagination({ currentPage, totalPages, onPageChange, className, ...props }: PaginationProps): React$1.JSX.Element | null;
|
|
16
9
|
//#endregion
|
|
17
10
|
export { Pagination, type PaginationProps };
|