@alpic-ai/ui 1.153.0 → 1.154.1
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/area-chart.mjs +20 -109
- 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-chart.mjs +10 -68
- 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-primitives.d.mts +69 -0
- package/dist/components/chart-primitives.mjs +134 -0
- 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/field.d.mts +14 -0
- package/dist/components/field.mjs +41 -0
- 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/input.mjs +25 -49
- package/dist/components/label.d.mts +1 -5
- package/dist/components/line-chart.d.mts +1 -21
- package/dist/components/line-chart.mjs +20 -102
- 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/status-dot.d.mts +1 -7
- package/dist/components/switch.d.mts +1 -5
- package/dist/components/table.d.mts +8 -35
- 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/textarea.mjs +17 -41
- 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 +6 -1
- package/dist/lib/cn.d.mts +0 -1
- package/package.json +19 -19
- package/src/components/area-chart.tsx +21 -142
- package/src/components/bar-chart.tsx +12 -81
- package/src/components/chart-primitives.tsx +188 -0
- package/src/components/field.tsx +57 -0
- package/src/components/input.tsx +3 -33
- package/src/components/line-chart.tsx +21 -133
- package/src/components/textarea.tsx +3 -33
- package/src/stories/area-chart.stories.tsx +8 -6
- package/src/stories/bar-chart.stories.tsx +8 -6
- package/src/stories/donut-chart.stories.tsx +8 -6
- package/src/stories/line-chart.stories.tsx +8 -6
- package/src/stories/stat.stories.tsx +8 -6
|
@@ -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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
//#region src/components/field.d.ts
|
|
3
|
+
interface FieldProps {
|
|
4
|
+
fieldId: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
hint?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
children: React$1.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare function Field({ fieldId, label, required, hint, error, tooltip, children }: FieldProps): React$1.JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Field, type FieldProps };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/cn.mjs";
|
|
3
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
|
|
4
|
+
import { Label } from "./label.mjs";
|
|
5
|
+
import { Info } from "lucide-react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/field.tsx
|
|
8
|
+
function Field({ fieldId, label, required, hint, error, tooltip, children }) {
|
|
9
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
className: "flex flex-col gap-1.5",
|
|
11
|
+
children: [
|
|
12
|
+
label && /* @__PURE__ */ jsxs("div", {
|
|
13
|
+
className: "flex items-center gap-0.5",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ jsx(Label, {
|
|
16
|
+
htmlFor: fieldId,
|
|
17
|
+
className: "type-text-sm font-medium text-muted-foreground",
|
|
18
|
+
children: label
|
|
19
|
+
}),
|
|
20
|
+
required && /* @__PURE__ */ jsx("span", {
|
|
21
|
+
"aria-hidden": true,
|
|
22
|
+
className: "type-text-sm font-medium text-required",
|
|
23
|
+
children: "*"
|
|
24
|
+
}),
|
|
25
|
+
tooltip && /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
26
|
+
asChild: true,
|
|
27
|
+
children: /* @__PURE__ */ jsx(Info, { className: "size-4 text-muted-foreground" })
|
|
28
|
+
}), /* @__PURE__ */ jsx(TooltipContent, { children: tooltip })] })
|
|
29
|
+
]
|
|
30
|
+
}),
|
|
31
|
+
children,
|
|
32
|
+
(hint || error) && /* @__PURE__ */ jsx("p", {
|
|
33
|
+
id: fieldId ? `${fieldId}-description` : void 0,
|
|
34
|
+
className: cn("type-text-sm", error ? "text-destructive" : "text-subtle-foreground"),
|
|
35
|
+
children: error ?? hint
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Field };
|
|
@@ -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,8 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../lib/cn.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { Label } from "./label.mjs";
|
|
5
|
-
import { Info } from "lucide-react";
|
|
3
|
+
import { Field } from "./field.mjs";
|
|
6
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
5
|
import * as React$1 from "react";
|
|
8
6
|
//#region src/components/input.tsx
|
|
@@ -47,52 +45,30 @@ function Input({ className, id, label, required, hint, error, tooltip, leadingTe
|
|
|
47
45
|
"aria-describedby": fieldId && (hint || error) ? `${fieldId}-description` : void 0,
|
|
48
46
|
...props
|
|
49
47
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
htmlFor: fieldId,
|
|
75
|
-
className: "type-text-sm font-medium text-muted-foreground",
|
|
76
|
-
children: label
|
|
77
|
-
}),
|
|
78
|
-
required && /* @__PURE__ */ jsx("span", {
|
|
79
|
-
"aria-hidden": true,
|
|
80
|
-
className: "type-text-sm font-medium text-required",
|
|
81
|
-
children: "*"
|
|
82
|
-
}),
|
|
83
|
-
tooltip && /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
84
|
-
asChild: true,
|
|
85
|
-
children: /* @__PURE__ */ jsx(Info, { className: "size-4 text-muted-foreground" })
|
|
86
|
-
}), /* @__PURE__ */ jsx(TooltipContent, { children: tooltip })] })
|
|
87
|
-
]
|
|
88
|
-
}),
|
|
89
|
-
wrappedInput,
|
|
90
|
-
(hint || error) && /* @__PURE__ */ jsx("p", {
|
|
91
|
-
id: fieldId ? `${fieldId}-description` : void 0,
|
|
92
|
-
className: cn("type-text-sm", error ? "text-destructive" : "text-subtle-foreground"),
|
|
93
|
-
children: error ?? hint
|
|
94
|
-
})
|
|
95
|
-
]
|
|
48
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
49
|
+
fieldId,
|
|
50
|
+
label,
|
|
51
|
+
required,
|
|
52
|
+
hint,
|
|
53
|
+
error,
|
|
54
|
+
tooltip,
|
|
55
|
+
children: hasAddons ? /* @__PURE__ */ jsxs("div", {
|
|
56
|
+
className: cn("flex items-center w-full overflow-hidden", sizes.wrapper, "bg-background border border-border rounded-md", "transition-colors", "has-[input:focus-visible]:border-ring has-[input:focus-visible]:border-2", "has-[input:disabled]:bg-disabled has-[input:disabled]:text-disabled-foreground has-[input:disabled]:cursor-not-allowed", error && "border-border-error"),
|
|
57
|
+
children: [
|
|
58
|
+
leadingIcon && /* @__PURE__ */ jsx("span", {
|
|
59
|
+
className: cn("flex items-center text-subtle-foreground [&_svg]:shrink-0", sizes.leadingIcon),
|
|
60
|
+
children: leadingIcon
|
|
61
|
+
}),
|
|
62
|
+
leadingText && /* @__PURE__ */ jsx("span", {
|
|
63
|
+
className: cn("flex items-center text-subtle-foreground whitespace-nowrap border-r border-border self-stretch", sizes.leadingText),
|
|
64
|
+
children: leadingText
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsx("div", {
|
|
67
|
+
className: cn("flex flex-1 items-center min-w-0", sizes.inner),
|
|
68
|
+
children: inputElement
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}) : inputElement
|
|
96
72
|
});
|
|
97
73
|
}
|
|
98
74
|
//#endregion
|
|
@@ -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 };
|