@pixpilot/shadcn 0.10.1 → 0.11.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/ui/OrContinueWithSeparator.d.ts +2 -2
- package/dist/components/ui/alert-dialog.d.ts +12 -12
- package/dist/components/ui/alert-dialog.js +0 -2
- package/dist/components/ui/alert.d.ts +4 -4
- package/dist/components/ui/alert.js +0 -1
- package/dist/components/ui/avatar.d.ts +4 -4
- package/dist/components/ui/avatar.js +0 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.js +0 -1
- package/dist/components/ui/button-group.d.ts +4 -4
- package/dist/components/ui/button-group.js +0 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +0 -1
- package/dist/components/ui/calendar.d.ts +3 -3
- package/dist/components/ui/calendar.js +0 -1
- package/dist/components/ui/card.d.ts +8 -8
- package/dist/components/ui/card.js +0 -1
- package/dist/components/ui/checkbox.d.ts +2 -2
- package/dist/components/ui/checkbox.js +0 -1
- package/dist/components/ui/color-picker.d.ts +11 -11
- package/dist/components/ui/color-picker.js +0 -1
- package/dist/components/ui/command.d.ts +10 -10
- package/dist/components/ui/command.js +0 -1
- package/dist/components/ui/dialog.d.ts +11 -11
- package/dist/components/ui/dialog.js +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.js +0 -1
- package/dist/components/ui/file-upload.d.ts +11 -11
- package/dist/components/ui/file-upload.js +0 -1
- package/dist/components/ui/form.d.ts +45 -0
- package/dist/components/ui/form.js +88 -0
- package/dist/components/ui/input-group.d.ts +7 -7
- package/dist/components/ui/input-group.js +0 -1
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/input.js +0 -1
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.js +0 -1
- package/dist/components/ui/pagination.d.ts +8 -8
- package/dist/components/ui/pagination.js +0 -2
- package/dist/components/ui/popover.d.ts +5 -5
- package/dist/components/ui/popover.js +0 -1
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/radio-group.js +0 -1
- package/dist/components/ui/select.d.ts +11 -11
- package/dist/components/ui/select.js +0 -1
- package/dist/components/ui/separator.d.ts +2 -2
- package/dist/components/ui/separator.js +0 -1
- package/dist/components/ui/shadcn-io/tags/index.d.ts +9 -9
- package/dist/components/ui/shadcn-io/tags/index.js +0 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.ts +7 -7
- package/dist/components/ui/sheet.d.ts +9 -9
- package/dist/components/ui/sheet.js +0 -1
- package/dist/components/ui/slider.d.ts +2 -2
- package/dist/components/ui/slider.js +0 -1
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/switch.js +0 -1
- package/dist/components/ui/tabs.d.ts +5 -5
- package/dist/components/ui/tabs.js +0 -1
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/textarea.js +0 -1
- package/dist/components/ui/toggle-group.d.ts +3 -3
- package/dist/components/ui/toggle-group.js +0 -1
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/toggle.js +0 -1
- package/dist/components/ui/tooltip.d.ts +5 -5
- package/dist/components/ui/tooltip.js +0 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +3 -0
- package/dist/index.js +0 -2
- package/package.json +6 -1
- package/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/components/index.cjs +0 -34
- package/dist/components/index.d.cts +0 -34
- package/dist/components/index.js +0 -34
- package/dist/components/ui/OrContinueWithSeparator.cjs +0 -30
- package/dist/components/ui/OrContinueWithSeparator.d.cts +0 -11
- package/dist/components/ui/alert-dialog.cjs +0 -101
- package/dist/components/ui/alert-dialog.d.cts +0 -48
- package/dist/components/ui/alert.cjs +0 -45
- package/dist/components/ui/alert.d.cts +0 -24
- package/dist/components/ui/avatar.cjs +0 -37
- package/dist/components/ui/avatar.d.cts +0 -19
- package/dist/components/ui/badge.cjs +0 -33
- package/dist/components/ui/badge.d.cts +0 -19
- package/dist/components/ui/button-group.cjs +0 -48
- package/dist/components/ui/button-group.d.cts +0 -28
- package/dist/components/ui/button.cjs +0 -56
- package/dist/components/ui/button.d.cts +0 -21
- package/dist/components/ui/calendar.cjs +0 -113
- package/dist/components/ui/calendar.d.cts +0 -26
- package/dist/components/ui/card.cjs +0 -67
- package/dist/components/ui/card.d.cts +0 -34
- package/dist/components/ui/checkbox.cjs +0 -31
- package/dist/components/ui/checkbox.d.cts +0 -11
- package/dist/components/ui/color-picker.cjs +0 -1171
- package/dist/components/ui/color-picker.d.cts +0 -94
- package/dist/components/ui/command.cjs +0 -104
- package/dist/components/ui/command.d.cts +0 -52
- package/dist/components/ui/dialog.cjs +0 -102
- package/dist/components/ui/dialog.d.cts +0 -47
- package/dist/components/ui/dropdown-menu.cjs +0 -144
- package/dist/components/ui/dropdown-menu.d.cts +0 -77
- package/dist/components/ui/file-upload.cjs +0 -926
- package/dist/components/ui/file-upload.d.cts +0 -95
- package/dist/components/ui/index.cjs +0 -33
- package/dist/components/ui/index.d.cts +0 -33
- package/dist/components/ui/index.js +0 -33
- package/dist/components/ui/input-group.cjs +0 -90
- package/dist/components/ui/input-group.d.cts +0 -43
- package/dist/components/ui/input.cjs +0 -20
- package/dist/components/ui/input.d.cts +0 -12
- package/dist/components/ui/label.cjs +0 -21
- package/dist/components/ui/label.d.cts +0 -11
- package/dist/components/ui/pagination.cjs +0 -92
- package/dist/components/ui/pagination.d.cts +0 -40
- package/dist/components/ui/popover.cjs +0 -44
- package/dist/components/ui/popover.d.cts +0 -22
- package/dist/components/ui/radio-group.cjs +0 -36
- package/dist/components/ui/radio-group.d.cts +0 -15
- package/dist/components/ui/select.cjs +0 -116
- package/dist/components/ui/select.d.cts +0 -52
- package/dist/components/ui/separator.cjs +0 -23
- package/dist/components/ui/separator.d.cts +0 -13
- package/dist/components/ui/shadcn-io/tags/index.cjs +0 -146
- package/dist/components/ui/shadcn-io/tags/index.d.cts +0 -70
- package/dist/components/ui/shadcn-io/tags-input-inline/index.cjs +0 -66
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.cts +0 -31
- package/dist/components/ui/sheet.cjs +0 -96
- package/dist/components/ui/sheet.d.cts +0 -40
- package/dist/components/ui/slider.cjs +0 -42
- package/dist/components/ui/slider.d.cts +0 -15
- package/dist/components/ui/switch.cjs +0 -28
- package/dist/components/ui/switch.d.cts +0 -11
- package/dist/components/ui/tabs.cjs +0 -65
- package/dist/components/ui/tabs.d.cts +0 -33
- package/dist/components/ui/textarea.cjs +0 -19
- package/dist/components/ui/textarea.d.cts +0 -10
- package/dist/components/ui/toggle-group.cjs +0 -59
- package/dist/components/ui/toggle-group.d.cts +0 -30
- package/dist/components/ui/toggle.cjs +0 -45
- package/dist/components/ui/toggle.d.cts +0 -19
- package/dist/components/ui/tooltip.cjs +0 -45
- package/dist/components/ui/tooltip.d.cts +0 -23
- package/dist/components/visually-hidden-input.cjs +0 -116
- package/dist/hooks/use-as-ref.cjs +0 -16
- package/dist/hooks/use-isomorphic-layout-effect.cjs +0 -9
- package/dist/hooks/use-lazy-ref.cjs +0 -13
- package/dist/index.cjs +0 -211
- package/dist/index.d.cts +0 -37
- package/dist/lib/compose-refs.cjs +0 -44
- package/dist/lib/index.cjs +0 -1
- package/dist/lib/index.d.cts +0 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/utils.cjs +0 -13
- package/dist/lib/utils.d.cts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/file-upload.d.ts
|
|
5
5
|
type Direction = 'ltr' | 'rtl';
|
|
@@ -44,36 +44,36 @@ interface FileUploadRootProps extends Omit<React.ComponentProps<'div'>, 'default
|
|
|
44
44
|
multiple?: boolean;
|
|
45
45
|
required?: boolean;
|
|
46
46
|
}
|
|
47
|
-
declare function FileUploadRoot(props: FileUploadRootProps):
|
|
47
|
+
declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime85.JSX.Element;
|
|
48
48
|
interface FileUploadDropzoneProps extends React.ComponentProps<'div'> {
|
|
49
49
|
asChild?: boolean;
|
|
50
50
|
}
|
|
51
|
-
declare function FileUploadDropzone(props: FileUploadDropzoneProps):
|
|
51
|
+
declare function FileUploadDropzone(props: FileUploadDropzoneProps): react_jsx_runtime85.JSX.Element;
|
|
52
52
|
interface FileUploadTriggerProps extends React.ComponentProps<'button'> {
|
|
53
53
|
asChild?: boolean;
|
|
54
54
|
}
|
|
55
|
-
declare function FileUploadTrigger(props: FileUploadTriggerProps):
|
|
55
|
+
declare function FileUploadTrigger(props: FileUploadTriggerProps): react_jsx_runtime85.JSX.Element;
|
|
56
56
|
interface FileUploadListProps extends React.ComponentProps<'div'> {
|
|
57
57
|
orientation?: 'horizontal' | 'vertical';
|
|
58
58
|
asChild?: boolean;
|
|
59
59
|
forceMount?: boolean;
|
|
60
60
|
}
|
|
61
|
-
declare function FileUploadList(props: FileUploadListProps):
|
|
61
|
+
declare function FileUploadList(props: FileUploadListProps): react_jsx_runtime85.JSX.Element | null;
|
|
62
62
|
interface FileUploadItemProps extends React.ComponentProps<'div'> {
|
|
63
63
|
value: File;
|
|
64
64
|
asChild?: boolean;
|
|
65
65
|
}
|
|
66
|
-
declare function FileUploadItem(props: FileUploadItemProps):
|
|
66
|
+
declare function FileUploadItem(props: FileUploadItemProps): react_jsx_runtime85.JSX.Element | null;
|
|
67
67
|
interface FileUploadItemPreviewProps extends React.ComponentProps<'div'> {
|
|
68
68
|
render?: (file: File, fallback: () => React.ReactNode) => React.ReactNode;
|
|
69
69
|
asChild?: boolean;
|
|
70
70
|
}
|
|
71
|
-
declare function FileUploadItemPreview(props: FileUploadItemPreviewProps):
|
|
71
|
+
declare function FileUploadItemPreview(props: FileUploadItemPreviewProps): react_jsx_runtime85.JSX.Element | null;
|
|
72
72
|
interface FileUploadItemMetadataProps extends React.ComponentProps<'div'> {
|
|
73
73
|
asChild?: boolean;
|
|
74
74
|
size?: 'default' | 'sm';
|
|
75
75
|
}
|
|
76
|
-
declare function FileUploadItemMetadata(props: FileUploadItemMetadataProps):
|
|
76
|
+
declare function FileUploadItemMetadata(props: FileUploadItemMetadataProps): react_jsx_runtime85.JSX.Element | null;
|
|
77
77
|
interface FileUploadItemProgressProps extends React.ComponentProps<'div'> {
|
|
78
78
|
variant?: 'linear' | 'circular' | 'fill';
|
|
79
79
|
size?: number;
|
|
@@ -81,15 +81,15 @@ interface FileUploadItemProgressProps extends React.ComponentProps<'div'> {
|
|
|
81
81
|
asChild?: boolean;
|
|
82
82
|
forceMount?: boolean;
|
|
83
83
|
}
|
|
84
|
-
declare function FileUploadItemProgress(props: FileUploadItemProgressProps):
|
|
84
|
+
declare function FileUploadItemProgress(props: FileUploadItemProgressProps): react_jsx_runtime85.JSX.Element | null;
|
|
85
85
|
interface FileUploadItemDeleteProps extends React.ComponentProps<'button'> {
|
|
86
86
|
asChild?: boolean;
|
|
87
87
|
}
|
|
88
|
-
declare function FileUploadItemDelete(props: FileUploadItemDeleteProps):
|
|
88
|
+
declare function FileUploadItemDelete(props: FileUploadItemDeleteProps): react_jsx_runtime85.JSX.Element | null;
|
|
89
89
|
interface FileUploadClearProps extends React.ComponentProps<'button'> {
|
|
90
90
|
forceMount?: boolean;
|
|
91
91
|
asChild?: boolean;
|
|
92
92
|
}
|
|
93
|
-
declare function FileUploadClear(props: FileUploadClearProps):
|
|
93
|
+
declare function FileUploadClear(props: FileUploadClearProps): react_jsx_runtime85.JSX.Element | null;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
5
|
+
import * as react_hook_form0 from "react-hook-form";
|
|
6
|
+
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ui/form.d.ts
|
|
9
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
10
|
+
declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
11
|
+
...props
|
|
12
|
+
}: ControllerProps<TFieldValues, TName>): react_jsx_runtime0.JSX.Element;
|
|
13
|
+
declare function useFormField(): {
|
|
14
|
+
invalid: boolean;
|
|
15
|
+
isDirty: boolean;
|
|
16
|
+
isTouched: boolean;
|
|
17
|
+
isValidating: boolean;
|
|
18
|
+
error?: react_hook_form0.FieldError;
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
formItemId: string;
|
|
22
|
+
formDescriptionId: string;
|
|
23
|
+
formMessageId: string;
|
|
24
|
+
};
|
|
25
|
+
declare function FormItem({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
|
|
29
|
+
declare function FormLabel({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime0.JSX.Element;
|
|
33
|
+
declare function FormControl({
|
|
34
|
+
...props
|
|
35
|
+
}: React.ComponentProps<typeof Slot>): react_jsx_runtime0.JSX.Element;
|
|
36
|
+
declare function FormDescription({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime0.JSX.Element;
|
|
40
|
+
declare function FormMessage({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime0.JSX.Element | null;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { Label } from "./label.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
import { Controller, FormProvider, useFormContext, useFormState } from "react-hook-form";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ui/form.tsx
|
|
9
|
+
const Form = FormProvider;
|
|
10
|
+
const FormFieldContext = React.createContext({});
|
|
11
|
+
function FormField({ ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx(FormFieldContext, {
|
|
13
|
+
value: { name: props.name },
|
|
14
|
+
children: /* @__PURE__ */ jsx(Controller, { ...props })
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function useFormField() {
|
|
18
|
+
const fieldContext = React.use(FormFieldContext);
|
|
19
|
+
const itemContext = React.use(FormItemContext);
|
|
20
|
+
const { getFieldState } = useFormContext();
|
|
21
|
+
const formState = useFormState({ name: fieldContext.name });
|
|
22
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
23
|
+
if (!fieldContext) throw new Error("useFormField should be used within <FormField>");
|
|
24
|
+
const { id } = itemContext;
|
|
25
|
+
return {
|
|
26
|
+
id,
|
|
27
|
+
name: fieldContext.name,
|
|
28
|
+
formItemId: `${id}-form-item`,
|
|
29
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
30
|
+
formMessageId: `${id}-form-item-message`,
|
|
31
|
+
...fieldState
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const FormItemContext = React.createContext({});
|
|
35
|
+
function FormItem({ className,...props }) {
|
|
36
|
+
return /* @__PURE__ */ jsx(FormItemContext, {
|
|
37
|
+
value: { id: React.useId() },
|
|
38
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
39
|
+
"data-slot": "form-item",
|
|
40
|
+
className: cn("grid gap-2", className),
|
|
41
|
+
...props
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function FormLabel({ className,...props }) {
|
|
46
|
+
const { error, formItemId } = useFormField();
|
|
47
|
+
return /* @__PURE__ */ jsx(Label, {
|
|
48
|
+
"data-slot": "form-label",
|
|
49
|
+
"data-error": Boolean(error),
|
|
50
|
+
className: cn("data-[error=true]:text-destructive", className),
|
|
51
|
+
htmlFor: formItemId,
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function FormControl({ ...props }) {
|
|
56
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
57
|
+
return /* @__PURE__ */ jsx(Slot, {
|
|
58
|
+
"data-slot": "form-control",
|
|
59
|
+
id: formItemId,
|
|
60
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
61
|
+
"aria-invalid": Boolean(error),
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function FormDescription({ className,...props }) {
|
|
66
|
+
const { formDescriptionId } = useFormField();
|
|
67
|
+
return /* @__PURE__ */ jsx("p", {
|
|
68
|
+
"data-slot": "form-description",
|
|
69
|
+
id: formDescriptionId,
|
|
70
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function FormMessage({ className,...props }) {
|
|
75
|
+
const { error, formMessageId } = useFormField();
|
|
76
|
+
const body = error ? String(error?.message ?? "") : props.children;
|
|
77
|
+
if (!body) return null;
|
|
78
|
+
return /* @__PURE__ */ jsx("p", {
|
|
79
|
+
"data-slot": "form-message",
|
|
80
|
+
id: formMessageId,
|
|
81
|
+
className: cn("text-destructive text-sm", className),
|
|
82
|
+
...props,
|
|
83
|
+
children: body
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime96 from "react/jsx-runtime";
|
|
5
5
|
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/input-group.d.ts
|
|
8
8
|
declare function InputGroup({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'div'>):
|
|
11
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime96.JSX.Element;
|
|
12
12
|
declare const inputGroupAddonVariants: (props?: ({
|
|
13
13
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
@@ -16,7 +16,7 @@ declare function InputGroupAddon({
|
|
|
16
16
|
className,
|
|
17
17
|
align,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>):
|
|
19
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime96.JSX.Element;
|
|
20
20
|
declare const inputGroupButtonVariants: (props?: ({
|
|
21
21
|
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
22
22
|
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
@@ -26,18 +26,18 @@ declare function InputGroupButton({
|
|
|
26
26
|
variant,
|
|
27
27
|
size,
|
|
28
28
|
...props
|
|
29
|
-
}: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>):
|
|
29
|
+
}: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime96.JSX.Element;
|
|
30
30
|
declare function InputGroupText({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<'span'>):
|
|
33
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime96.JSX.Element;
|
|
34
34
|
declare function InputGroupInput({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<'input'>):
|
|
37
|
+
}: React.ComponentProps<'input'>): react_jsx_runtime96.JSX.Element;
|
|
38
38
|
declare function InputGroupTextarea({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<'textarea'>):
|
|
41
|
+
}: React.ComponentProps<'textarea'>): react_jsx_runtime96.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime95 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/input.d.ts
|
|
5
5
|
type InputProps = React.ComponentProps<'input'>;
|
|
@@ -7,6 +7,6 @@ declare function Input({
|
|
|
7
7
|
className,
|
|
8
8
|
type,
|
|
9
9
|
...props
|
|
10
|
-
}: InputProps):
|
|
10
|
+
}: InputProps): react_jsx_runtime95.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Input, InputProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
3
3
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/label.d.ts
|
|
6
6
|
declare function Label({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof LabelPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime102.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Label };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/pagination.d.ts
|
|
7
7
|
declare function Pagination({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<'nav'>):
|
|
10
|
+
}: React.ComponentProps<'nav'>): react_jsx_runtime104.JSX.Element;
|
|
11
11
|
declare function PaginationContent({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<'ul'>):
|
|
14
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime104.JSX.Element;
|
|
15
15
|
declare function PaginationItem({
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<'li'>):
|
|
17
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime104.JSX.Element;
|
|
18
18
|
type PaginationLinkProps = {
|
|
19
19
|
isActive?: boolean;
|
|
20
20
|
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
@@ -23,18 +23,18 @@ declare function PaginationLink({
|
|
|
23
23
|
isActive,
|
|
24
24
|
size,
|
|
25
25
|
...props
|
|
26
|
-
}: PaginationLinkProps):
|
|
26
|
+
}: PaginationLinkProps): react_jsx_runtime104.JSX.Element;
|
|
27
27
|
declare function PaginationPrevious({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<typeof PaginationLink>):
|
|
30
|
+
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime104.JSX.Element;
|
|
31
31
|
declare function PaginationNext({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: React.ComponentProps<typeof PaginationLink>):
|
|
34
|
+
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime104.JSX.Element;
|
|
35
35
|
declare function PaginationEllipsis({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<'span'>):
|
|
38
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime104.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.js";
|
|
2
|
-
import "../../lib/index.js";
|
|
3
2
|
import { buttonVariants } from "./button.js";
|
|
4
|
-
import "../../index.js";
|
|
5
3
|
import "react";
|
|
6
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
5
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime111 from "react/jsx-runtime";
|
|
3
3
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/popover.d.ts
|
|
6
6
|
declare function Popover({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime111.JSX.Element;
|
|
9
9
|
declare function PopoverTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
11
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime111.JSX.Element;
|
|
12
12
|
declare function PopoverContent({
|
|
13
13
|
className,
|
|
14
14
|
align,
|
|
15
15
|
sideOffset,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
17
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime111.JSX.Element;
|
|
18
18
|
declare function PopoverAnchor({
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
20
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime111.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
3
3
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/radio-group.d.ts
|
|
6
6
|
declare function RadioGroup({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime115.JSX.Element;
|
|
10
10
|
declare function RadioGroupItem({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>):
|
|
13
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime115.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime117 from "react/jsx-runtime";
|
|
3
3
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/select.d.ts
|
|
6
6
|
declare function Select({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof SelectPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime117.JSX.Element;
|
|
9
9
|
declare function SelectGroup({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SelectPrimitive.Group>):
|
|
11
|
+
}: React.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime117.JSX.Element;
|
|
12
12
|
declare function SelectValue({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof SelectPrimitive.Value>):
|
|
14
|
+
}: React.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime117.JSX.Element;
|
|
15
15
|
declare function SelectTrigger({
|
|
16
16
|
className,
|
|
17
17
|
size,
|
|
@@ -19,34 +19,34 @@ declare function SelectTrigger({
|
|
|
19
19
|
...props
|
|
20
20
|
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
21
21
|
size?: 'sm' | 'default';
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime117.JSX.Element;
|
|
23
23
|
declare function SelectContent({
|
|
24
24
|
className,
|
|
25
25
|
children,
|
|
26
26
|
position,
|
|
27
27
|
align,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof SelectPrimitive.Content>):
|
|
29
|
+
}: React.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime117.JSX.Element;
|
|
30
30
|
declare function SelectLabel({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof SelectPrimitive.Label>):
|
|
33
|
+
}: React.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime117.JSX.Element;
|
|
34
34
|
declare function SelectItem({
|
|
35
35
|
className,
|
|
36
36
|
children,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof SelectPrimitive.Item>):
|
|
38
|
+
}: React.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime117.JSX.Element;
|
|
39
39
|
declare function SelectSeparator({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React.ComponentProps<typeof SelectPrimitive.Separator>):
|
|
42
|
+
}: React.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime117.JSX.Element;
|
|
43
43
|
declare function SelectScrollUpButton({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>):
|
|
46
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime117.JSX.Element;
|
|
47
47
|
declare function SelectScrollDownButton({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>):
|
|
50
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime117.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime127 from "react/jsx-runtime";
|
|
3
3
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/separator.d.ts
|
|
@@ -8,6 +8,6 @@ declare function Separator({
|
|
|
8
8
|
orientation,
|
|
9
9
|
decorative,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
11
|
+
}: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime127.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Separator };
|
|
@@ -3,7 +3,7 @@ import { Button } from "../../button.js";
|
|
|
3
3
|
import { PopoverContent } from "../../popover.js";
|
|
4
4
|
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../../command.js";
|
|
5
5
|
import { ComponentProps, ReactNode } from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime128 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ui/shadcn-io/tags/index.d.ts
|
|
9
9
|
interface TagsProps {
|
|
@@ -21,13 +21,13 @@ declare function Tags({
|
|
|
21
21
|
onOpenChange: controlledOnOpenChange,
|
|
22
22
|
children,
|
|
23
23
|
className
|
|
24
|
-
}: TagsProps):
|
|
24
|
+
}: TagsProps): react_jsx_runtime128.JSX.Element;
|
|
25
25
|
type TagsTriggerProps = ComponentProps<typeof Button>;
|
|
26
26
|
declare function TagsTrigger({
|
|
27
27
|
className,
|
|
28
28
|
children,
|
|
29
29
|
...props
|
|
30
|
-
}: TagsTriggerProps):
|
|
30
|
+
}: TagsTriggerProps): react_jsx_runtime128.JSX.Element;
|
|
31
31
|
type TagsValueProps = ComponentProps<typeof Badge>;
|
|
32
32
|
declare function TagsValue({
|
|
33
33
|
className,
|
|
@@ -36,35 +36,35 @@ declare function TagsValue({
|
|
|
36
36
|
...props
|
|
37
37
|
}: TagsValueProps & {
|
|
38
38
|
onRemove?: () => void;
|
|
39
|
-
}):
|
|
39
|
+
}): react_jsx_runtime128.JSX.Element;
|
|
40
40
|
type TagsContentProps = ComponentProps<typeof PopoverContent>;
|
|
41
41
|
declare function TagsContent({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: TagsContentProps):
|
|
45
|
+
}: TagsContentProps): react_jsx_runtime128.JSX.Element;
|
|
46
46
|
type TagsInputProps = ComponentProps<typeof CommandInput>;
|
|
47
47
|
declare function TagsInput({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: TagsInputProps):
|
|
50
|
+
}: TagsInputProps): react_jsx_runtime128.JSX.Element;
|
|
51
51
|
type TagsListProps = ComponentProps<typeof CommandList>;
|
|
52
52
|
declare function TagsList({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: TagsListProps):
|
|
55
|
+
}: TagsListProps): react_jsx_runtime128.JSX.Element;
|
|
56
56
|
type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
57
57
|
declare function TagsEmpty({
|
|
58
58
|
children,
|
|
59
59
|
className,
|
|
60
60
|
...props
|
|
61
|
-
}: TagsEmptyProps):
|
|
61
|
+
}: TagsEmptyProps): react_jsx_runtime128.JSX.Element;
|
|
62
62
|
type TagsGroupProps = ComponentProps<typeof CommandGroup>;
|
|
63
63
|
declare const TagsGroup: typeof CommandGroup;
|
|
64
64
|
type TagsItemProps = ComponentProps<typeof CommandItem>;
|
|
65
65
|
declare function TagsItem({
|
|
66
66
|
className,
|
|
67
67
|
...props
|
|
68
|
-
}: TagsItemProps):
|
|
68
|
+
}: TagsItemProps): react_jsx_runtime128.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime136 from "react/jsx-runtime";
|
|
3
3
|
import * as TagsInputPrimitive from "@diceui/tags-input";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/shadcn-io/tags-input-inline/index.d.ts
|
|
6
6
|
declare function TagsInputInLineRoot({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof TagsInputPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof TagsInputPrimitive.Root>): react_jsx_runtime136.JSX.Element;
|
|
10
10
|
declare function TagsInputInLineLabel({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof TagsInputPrimitive.Label>):
|
|
13
|
+
}: React.ComponentProps<typeof TagsInputPrimitive.Label>): react_jsx_runtime136.JSX.Element;
|
|
14
14
|
declare function TagsInputInLineList({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<'div'>):
|
|
17
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime136.JSX.Element;
|
|
18
18
|
declare function TagsInputInLineInput({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TagsInputPrimitive.Input>):
|
|
21
|
+
}: React.ComponentProps<typeof TagsInputPrimitive.Input>): react_jsx_runtime136.JSX.Element;
|
|
22
22
|
declare function TagsInputInLineItem({
|
|
23
23
|
className,
|
|
24
24
|
children,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<typeof TagsInputPrimitive.Item>):
|
|
26
|
+
}: React.ComponentProps<typeof TagsInputPrimitive.Item>): react_jsx_runtime136.JSX.Element;
|
|
27
27
|
declare function TagsInputInLineClear({
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof TagsInputPrimitive.Clear>):
|
|
29
|
+
}: React.ComponentProps<typeof TagsInputPrimitive.Clear>): react_jsx_runtime136.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot };
|