@pebble-software/bonsai 0.0.3 → 0.0.4
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/README.md +21 -45
- package/dist/index.css +453 -0
- package/dist/index.d.ts +100 -4
- package/package.json +17 -8
- package/dist/components/core/bonsai.d.ts +0 -17
- package/dist/components/ui/a.d.ts +0 -3
- package/dist/components/ui/accordion.d.ts +0 -17
- package/dist/components/ui/alert-dialog.d.ts +0 -23
- package/dist/components/ui/alert.d.ts +0 -12
- package/dist/components/ui/avatar.d.ts +0 -21
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/breadcrumb.d.ts +0 -10
- package/dist/components/ui/button.d.ts +0 -14
- package/dist/components/ui/calendar.d.ts +0 -9
- package/dist/components/ui/card.d.ts +0 -15
- package/dist/components/ui/chart.d.ts +0 -44
- package/dist/components/ui/checkbox.d.ts +0 -7
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/combobox.d.ts +0 -31
- package/dist/components/ui/command.d.ts +0 -23
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/drawer.d.ts +0 -22
- package/dist/components/ui/dropdown-menu.d.ts +0 -29
- package/dist/components/ui/form.d.ts +0 -24
- package/dist/components/ui/h.d.ts +0 -10
- package/dist/components/ui/input-group.d.ts +0 -18
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/label.d.ts +0 -10
- package/dist/components/ui/loader.d.ts +0 -14
- package/dist/components/ui/map.d.ts +0 -30
- package/dist/components/ui/p.d.ts +0 -11
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/progress.d.ts +0 -31
- package/dist/components/ui/scroll-area.d.ts +0 -13
- package/dist/components/ui/select.d.ts +0 -17
- package/dist/components/ui/separator.d.ts +0 -8
- package/dist/components/ui/sidebar.d.ts +0 -70
- package/dist/components/ui/signature-pad.d.ts +0 -7
- package/dist/components/ui/skeleton.d.ts +0 -7
- package/dist/components/ui/switch.d.ts +0 -8
- package/dist/components/ui/table.d.ts +0 -14
- package/dist/components/ui/tabs.d.ts +0 -15
- package/dist/components/ui/textarea.d.ts +0 -5
- package/dist/components/ui/toast.d.ts +0 -46
- package/dist/components/ui/tooltip.d.ts +0 -15
- package/dist/hooks/haptics.d.ts +0 -8
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/lib/ast/cache.d.ts +0 -8
- package/dist/lib/ast/evaluator.d.ts +0 -2
- package/dist/lib/ast/helpers.d.ts +0 -2
- package/dist/lib/ast/index.d.ts +0 -4
- package/dist/lib/ast/setup.d.ts +0 -2
- package/dist/lib/ast/types.d.ts +0 -1
- package/dist/lib/ast/utils.d.ts +0 -3
- package/dist/lib/haptics.d.ts +0 -8
- package/dist/lib/ui/registry.d.ts +0 -8
- package/dist/lib/utils.d.ts +0 -3
- package/dist/tests/ast.bugs.test.d.ts +0 -1
- package/dist/tests/ast.engine.test.d.ts +0 -1
- package/dist/tests/ast.helpers.test.d.ts +0 -1
- package/dist/tests/fixtures/examples.d.ts +0 -8
- package/dist/tests/helpers.d.ts +0 -4
- package/dist/tests/render.bindings.test.d.ts +0 -1
- package/dist/tests/render.controlled.test.d.ts +0 -1
- package/dist/tests/render.examples.test.d.ts +0 -1
- package/dist/tests/render.granularity.test.d.ts +0 -1
- package/dist/tests/render.ssr-client.test.d.ts +0 -1
- package/dist/tests/render.structural.test.d.ts +0 -1
- package/dist/tests/schema.contract.test.d.ts +0 -1
- package/dist/tests/schema.examples.test.d.ts +0 -1
- package/dist/tests/schema.kitchen-sink.test.d.ts +0 -1
- package/dist/tests/setup.d.ts +0 -1
- package/dist/tests/store.paths.test.d.ts +0 -1
- package/dist/tests/ui.contracts.test.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export declare function Bonsai(props: BonsaiProps): JSX.Element;
|
|
5
|
+
|
|
6
|
+
declare interface BonsaiProps {
|
|
7
|
+
captureUrl: string;
|
|
8
|
+
expiry: string;
|
|
9
|
+
template: Config;
|
|
10
|
+
data?: any;
|
|
11
|
+
status?: "pending" | "captured" | "completed" | "error" | "revoked";
|
|
12
|
+
render?: "web" | "pdf" | "preview";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare enum COMPONENT {
|
|
16
|
+
A = "a",
|
|
17
|
+
P = "p",
|
|
18
|
+
H = "h",
|
|
19
|
+
OL = "ol",
|
|
20
|
+
UL = "ul",
|
|
21
|
+
LI = "li",
|
|
22
|
+
MAP = "map",
|
|
23
|
+
DIV = "div",
|
|
24
|
+
SPAN = "span",
|
|
25
|
+
ACCORDION = "accordion",
|
|
26
|
+
ACCORDION_ITEM = "accordion-item",
|
|
27
|
+
ACCORDION_TRIGGER = "accordion-trigger",
|
|
28
|
+
ACCORDION_CONTENT = "accordion-content",
|
|
29
|
+
ALERT = "alert",
|
|
30
|
+
AVATAR = "avatar",
|
|
31
|
+
BADGE = "badge",
|
|
32
|
+
BUTTON = "button",
|
|
33
|
+
CARD = "card",
|
|
34
|
+
CARD_HEADER = "card-header",
|
|
35
|
+
CARD_TITLE = "card-title",
|
|
36
|
+
CARD_DESCRIPTION = "card-description",
|
|
37
|
+
CARD_CONTENT = "card-content",
|
|
38
|
+
CARD_FOOTER = "card-footer",
|
|
39
|
+
CARD_ACTION = "card-action",
|
|
40
|
+
CARD_ICON = "card-icon",
|
|
41
|
+
CALENDAR = "calendar",
|
|
42
|
+
CHECKBOX = "checkbox",
|
|
43
|
+
COLLAPSIBLE = "collapsible",
|
|
44
|
+
COLLAPSIBLE_TRIGGER = "collapsible-trigger",
|
|
45
|
+
COLLAPSIBLE_CONTENT = "collapsible-content",
|
|
46
|
+
IMAGE = "image",
|
|
47
|
+
OTP = "otp",
|
|
48
|
+
INPUT = "input",
|
|
49
|
+
INPUT_GROUP = "input-group",
|
|
50
|
+
INPUT_GROUP_TEXT = "input-group-text",
|
|
51
|
+
INPUT_GROUP_ADDON = "input-group-addon",
|
|
52
|
+
INPUT_GROUP_BUTTON = "input-group-button",
|
|
53
|
+
INPUT_GROUP_INPUT = "input-group-input",
|
|
54
|
+
INPUT_GROUP_TEXTAREA = "input-group-textarea",
|
|
55
|
+
LABEL = "label",
|
|
56
|
+
LOADER = "loader",
|
|
57
|
+
PROGRESS = "progress",
|
|
58
|
+
SEPARATOR = "separator",
|
|
59
|
+
SKELETON = "skeleton",
|
|
60
|
+
SWITCH = "switch",
|
|
61
|
+
TABLE = "table",
|
|
62
|
+
TABLE_HEADER = "table-header",
|
|
63
|
+
TABLE_BODY = "table-body",
|
|
64
|
+
TABLE_FOOTER = "table-footer",
|
|
65
|
+
TABLE_HEAD = "table-head",
|
|
66
|
+
TABLE_ROW = "table-row",
|
|
67
|
+
TABLE_CELL = "table-cell",
|
|
68
|
+
TABLE_CAPTION = "table-caption",
|
|
69
|
+
TEXTAREA = "textarea",
|
|
70
|
+
SIGNATURE = "signature",
|
|
71
|
+
EACH = "each",
|
|
72
|
+
IF = "if",
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export declare const componentMap: Record<COMPONENT[number], any>;
|
|
76
|
+
|
|
77
|
+
export declare const Config = Node;
|
|
78
|
+
|
|
79
|
+
export declare type Config = z.infer<typeof Node_2>;
|
|
80
|
+
|
|
81
|
+
declare interface ControlledInput {
|
|
82
|
+
valueProp: string;
|
|
83
|
+
changeProp: string;
|
|
84
|
+
extractor: (eventOrValue: any) => any;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare const controlledInputMap: Record<COMPONENT[number], Record<string, ControlledInput> | ControlledInput>;
|
|
88
|
+
|
|
89
|
+
declare const Node_2: z.ZodType<any> = z.lazy(() => z.union([z.string(), ComponentNode]));
|
|
90
|
+
|
|
91
|
+
export declare type SignatureProps = {
|
|
92
|
+
value?: string | null;
|
|
93
|
+
onChange?: (value: string | null) => void;
|
|
94
|
+
canvasClassname?: string;
|
|
95
|
+
imageType?: "image/png" | "image/jpeg" | "image/webp";
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export declare function useUpdateData(): (path: string, value: any) => void;
|
|
99
|
+
|
|
100
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pebble-software/bonsai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/PebbleSoftwareInc/pebble-bonsai.git"
|
|
8
8
|
},
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
9
|
"scripts": {
|
|
13
10
|
"build": "vite build",
|
|
14
11
|
"type-check": "tsc --noEmit",
|
|
@@ -50,10 +47,10 @@
|
|
|
50
47
|
"react-signature-canvas": "1.1.0-alpha.2",
|
|
51
48
|
"recharts": "^3.8.1",
|
|
52
49
|
"tailwind-merge": "^3.3.1",
|
|
53
|
-
"tailwindcss": "^4.1.11",
|
|
54
|
-
"tw-animate-css": "^1.3.5",
|
|
55
50
|
"valtio": "^2.1.7",
|
|
56
|
-
"web-haptics": "^0.0.6"
|
|
51
|
+
"web-haptics": "^0.0.6",
|
|
52
|
+
"zod": "^4.4.3",
|
|
53
|
+
"zod-validation-error": "^4.0.2"
|
|
57
54
|
},
|
|
58
55
|
"devDependencies": {
|
|
59
56
|
"@bonsai/constants": "workspace:*",
|
|
@@ -62,6 +59,8 @@
|
|
|
62
59
|
"@tailwindcss/vite": "^4.1.11",
|
|
63
60
|
"@testing-library/jest-dom": "^6.9.1",
|
|
64
61
|
"@testing-library/react": "^16.3.2",
|
|
62
|
+
"tailwindcss": "^4.1.11",
|
|
63
|
+
"tw-animate-css": "^1.3.5",
|
|
65
64
|
"@types/react": "^19.1.8",
|
|
66
65
|
"@types/react-dom": "^19.1.6",
|
|
67
66
|
"@vitejs/plugin-react": "^4.6.0",
|
|
@@ -81,6 +80,16 @@
|
|
|
81
80
|
},
|
|
82
81
|
"peerDependencies": {
|
|
83
82
|
"react": "^18.0.0 || ^19.0.0",
|
|
84
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
83
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
84
|
+
"tailwindcss": "^4.0.0",
|
|
85
|
+
"tw-animate-css": "^1.0.0"
|
|
86
|
+
},
|
|
87
|
+
"peerDependenciesMeta": {
|
|
88
|
+
"tailwindcss": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"tw-animate-css": {
|
|
92
|
+
"optional": true
|
|
93
|
+
}
|
|
85
94
|
}
|
|
86
95
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Config } from '../../../../../library/schemas/src/index.ts';
|
|
2
|
-
export declare function useUpdateData(): (path: string, value: any) => void;
|
|
3
|
-
export declare function getValue(data: any, path: string, def?: undefined): any;
|
|
4
|
-
export declare function setValue(obj: any, path: string, value: any): void;
|
|
5
|
-
interface BonsaiProps {
|
|
6
|
-
captureUrl: string;
|
|
7
|
-
expiry: string;
|
|
8
|
-
template: Config;
|
|
9
|
-
data?: any;
|
|
10
|
-
status?: "pending" | "captured" | "completed" | "error" | "revoked";
|
|
11
|
-
render?: "web" | "pdf" | "preview";
|
|
12
|
-
}
|
|
13
|
-
export declare function BonsaiSSR({ template, expiry, data, status, render, }: BonsaiProps): import("react").JSX.Element;
|
|
14
|
-
export declare function BonsaiClient({ captureUrl, template, render, }: BonsaiProps): import("react").JSX.Element;
|
|
15
|
-
export declare function Bonsai(props: BonsaiProps): import("react").JSX.Element;
|
|
16
|
-
export declare function BonsaiProvider(props: BonsaiProps): import("react").JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
2
|
-
import { IconProps } from '@tabler/icons-react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
declare const accordionVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "contained" | "separated" | null | undefined;
|
|
6
|
-
raised?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
7
|
-
extrude?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
interface AccordionProps extends AccordionPrimitive.Root.Props, VariantProps<typeof accordionVariants> {
|
|
10
|
-
}
|
|
11
|
-
declare function Accordion({ className, variant, raised, extrude, ...props }: AccordionProps): import("react").JSX.Element;
|
|
12
|
-
declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): import("react").JSX.Element;
|
|
13
|
-
declare function AccordionTrigger({ className, children, disabled, icon: Icon, onClick, ...props }: AccordionPrimitive.Trigger.Props & {
|
|
14
|
-
icon?: React.ElementType<IconProps>;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
16
|
-
declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): import("react").JSX.Element;
|
|
17
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, accordionVariants, };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
2
|
-
import { Button } from './button';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
declare function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props): React.JSX.Element;
|
|
6
|
-
declare function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props): React.JSX.Element;
|
|
7
|
-
declare function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props): React.JSX.Element;
|
|
8
|
-
declare function AlertDialogOverlay({ className, ...props }: AlertDialogPrimitive.Backdrop.Props): React.JSX.Element;
|
|
9
|
-
declare const alertDialogContentVariants: (props?: ({
|
|
10
|
-
variant?: "success" | "default" | "warning" | "destructive" | null | undefined;
|
|
11
|
-
size?: "default" | "sm" | null | undefined;
|
|
12
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
-
interface AlertDialogContentProps extends AlertDialogPrimitive.Popup.Props, VariantProps<typeof alertDialogContentVariants> {
|
|
14
|
-
}
|
|
15
|
-
declare function AlertDialogContent({ className, size, variant, ...props }: AlertDialogContentProps): React.JSX.Element;
|
|
16
|
-
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
17
|
-
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
18
|
-
declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
19
|
-
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
|
|
20
|
-
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
|
|
21
|
-
declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
|
|
22
|
-
declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialogPrimitive.Close.Props & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
|
|
23
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, alertDialogContentVariants, };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "success" | "default" | "warning" | "destructive" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
-
raised?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function Alert({ className, variant, size, raised, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
|
|
9
|
-
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
-
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
-
declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
-
export { Alert, AlertTitle, AlertDescription, AlertAction, alertVariants };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare const avatarVariants: (props?: ({
|
|
5
|
-
size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
6
|
-
raised?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
7
|
-
rounded?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
type AvatarProps = Omit<AvatarPrimitive.Root.Props, "children"> & VariantProps<typeof avatarVariants> & {
|
|
10
|
-
src?: string;
|
|
11
|
-
alt?: string;
|
|
12
|
-
fallback?: React.ReactNode;
|
|
13
|
-
badge?: React.ReactNode;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
};
|
|
16
|
-
declare function Avatar({ className, size, rounded, raised, src, alt, fallback, badge, children, ...props }: AvatarProps): React.JSX.Element;
|
|
17
|
-
type AvatarGroupProps = React.ComponentProps<"div"> & {
|
|
18
|
-
max?: number;
|
|
19
|
-
};
|
|
20
|
-
declare function AvatarGroup({ className, max, children, ...props }: AvatarGroupProps): React.JSX.Element;
|
|
21
|
-
export { Avatar, AvatarGroup };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
5
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
-
raised?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
7
|
-
extrude?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
declare function Badge({ className, variant, size, raised, extrude, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
10
|
-
export { Badge, badgeVariants };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
4
|
-
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
|
|
5
|
-
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
6
|
-
declare function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
7
|
-
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
8
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
9
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
10
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Button as ButtonPrimitive } from '@base-ui/react/button';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "warning" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
5
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
6
|
-
icon?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
7
|
-
raised?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
8
|
-
extrude?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
interface ButtonProps extends ButtonPrimitive.Props, VariantProps<typeof buttonVariants> {
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare function Button({ className, variant, size, icon, raised, extrude, loading, onClick, children, ...props }: ButtonProps): import("react").JSX.Element;
|
|
14
|
-
export { Button, buttonVariants };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DayPicker } from 'react-day-picker';
|
|
2
|
-
import { Button } from './button';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
type CalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
5
|
-
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
|
-
hideWeekends?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, hideWeekdays, buttonVariant, hideWeekends, formatters, components, ...props }: CalendarProps): React.JSX.Element;
|
|
9
|
-
export { Calendar };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const cardVariants: (props?: ({
|
|
4
|
-
size?: "sm" | "md" | null | undefined;
|
|
5
|
-
raised?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare function Card({ className, size, raised, ...props }: React.ComponentProps<"div"> & VariantProps<typeof cardVariants>): React.JSX.Element;
|
|
8
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
9
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
-
declare function CardIcon({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
13
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardIcon, CardDescription, CardContent, cardVariants, };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as RechartsPrimitive from "recharts";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare const THEMES: {
|
|
5
|
-
readonly light: "";
|
|
6
|
-
readonly dark: ".dark";
|
|
7
|
-
};
|
|
8
|
-
declare const chartContainerVariants: (props?: ({
|
|
9
|
-
variant?: "raised" | "flat" | "inset" | null | undefined;
|
|
10
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
-
export type ChartConfig = {
|
|
12
|
-
[k in string]: {
|
|
13
|
-
label?: React.ReactNode;
|
|
14
|
-
icon?: React.ComponentType;
|
|
15
|
-
} & ({
|
|
16
|
-
color?: string;
|
|
17
|
-
theme?: never;
|
|
18
|
-
} | {
|
|
19
|
-
color?: never;
|
|
20
|
-
theme: Record<keyof typeof THEMES, string>;
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
declare function ChartContainer({ id, className, children, variant, config, ...props }: React.ComponentProps<"div"> & VariantProps<typeof chartContainerVariants> & {
|
|
24
|
-
config: ChartConfig;
|
|
25
|
-
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
26
|
-
}): React.JSX.Element;
|
|
27
|
-
declare const ChartStyle: {
|
|
28
|
-
({ id, config }: {
|
|
29
|
-
id: string;
|
|
30
|
-
config: ChartConfig;
|
|
31
|
-
}): React.JSX.Element | null;
|
|
32
|
-
displayName: string;
|
|
33
|
-
};
|
|
34
|
-
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
35
|
-
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
|
|
36
|
-
payload?: any;
|
|
37
|
-
label?: string;
|
|
38
|
-
hideLabel?: boolean;
|
|
39
|
-
hideIndicator?: boolean;
|
|
40
|
-
indicator?: "line" | "dot" | "dashed";
|
|
41
|
-
nameKey?: string;
|
|
42
|
-
labelKey?: string;
|
|
43
|
-
}): React.JSX.Element | null;
|
|
44
|
-
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartStyle };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
declare const checkboxVariants: (props?: ({
|
|
4
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
declare function Checkbox({ className, size, onCheckedChange, ...props }: CheckboxPrimitive.Root.Props & VariantProps<typeof checkboxVariants>): import("react").JSX.Element;
|
|
7
|
-
export { Checkbox, checkboxVariants };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
|
|
2
|
-
declare function Collapsible({ className, ...props }: CollapsiblePrimitive.Root.Props): import("react").JSX.Element;
|
|
3
|
-
declare function CollapsibleTrigger({ className, ...props }: CollapsiblePrimitive.Trigger.Props): import("react").JSX.Element;
|
|
4
|
-
declare function CollapsibleContent({ className, children, ...props }: CollapsiblePrimitive.Panel.Props): import("react").JSX.Element;
|
|
5
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const Combobox: typeof ComboboxPrimitive.Root;
|
|
4
|
-
declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): React.JSX.Element;
|
|
5
|
-
declare function ComboboxTriggerIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
6
|
-
declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): React.JSX.Element;
|
|
7
|
-
declare function ComboboxClear({ className, render, ...props }: ComboboxPrimitive.Clear.Props): React.JSX.Element;
|
|
8
|
-
declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
|
|
9
|
-
showTrigger?: boolean;
|
|
10
|
-
showClear?: boolean;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
|
-
declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">): React.JSX.Element;
|
|
13
|
-
declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): React.JSX.Element;
|
|
14
|
-
declare function ComboboxItemIndicator({ className, ...props }: ComboboxPrimitive.ItemIndicator.Props): React.JSX.Element;
|
|
15
|
-
declare function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.Props): React.JSX.Element;
|
|
16
|
-
declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): React.JSX.Element;
|
|
17
|
-
declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): React.JSX.Element;
|
|
18
|
-
declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): React.JSX.Element;
|
|
19
|
-
declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): React.JSX.Element;
|
|
20
|
-
declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): React.JSX.Element;
|
|
21
|
-
declare function ComboboxChips({ className, children, disabled, showTrigger, showClear, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props & {
|
|
22
|
-
showTrigger?: boolean;
|
|
23
|
-
showClear?: boolean;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
}): React.JSX.Element;
|
|
26
|
-
declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
27
|
-
showRemove?: boolean;
|
|
28
|
-
}): React.JSX.Element;
|
|
29
|
-
declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): React.JSX.Element;
|
|
30
|
-
declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
31
|
-
export { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxItemIndicator, ComboboxGroup, ComboboxLabel, ComboboxCollection, ComboboxEmpty, ComboboxSeparator, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxTrigger, ComboboxTriggerIcon, ComboboxValue, ComboboxClear, useComboboxAnchor, };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
-
import { Dialog } from './dialog';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
declare const commandVariants: (props?: ({
|
|
6
|
-
raised?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function Command({ className, raised, ...props }: React.ComponentProps<typeof CommandPrimitive> & VariantProps<typeof commandVariants>): React.JSX.Element;
|
|
9
|
-
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
showCloseButton?: boolean;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
|
|
17
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
|
|
18
|
-
declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
|
|
19
|
-
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
|
|
20
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
|
|
21
|
-
declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
|
|
22
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
23
|
-
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, commandVariants, };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare function Dialog({ ...props }: DialogPrimitive.Root.Props): React.JSX.Element;
|
|
5
|
-
declare function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props): React.JSX.Element;
|
|
6
|
-
declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): React.JSX.Element;
|
|
7
|
-
declare function DialogClose({ className, ...props }: DialogPrimitive.Close.Props): React.JSX.Element;
|
|
8
|
-
declare function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props): React.JSX.Element;
|
|
9
|
-
declare const dialogContentVariants: (props?: ({
|
|
10
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
|
-
fullscreen?: boolean | null | undefined;
|
|
12
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
-
declare function DialogContent({ className, children, showCloseButton, fullscreen, size, ...props }: DialogPrimitive.Popup.Props & {
|
|
14
|
-
showCloseButton?: boolean;
|
|
15
|
-
} & VariantProps<typeof dialogContentVariants>): React.JSX.Element;
|
|
16
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
17
|
-
declare function DialogBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
18
|
-
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
|
|
19
|
-
showCloseButton?: boolean;
|
|
20
|
-
}): React.JSX.Element;
|
|
21
|
-
declare function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props): React.JSX.Element;
|
|
22
|
-
declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): React.JSX.Element;
|
|
23
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogBody, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, dialogContentVariants, };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Drawer as DrawerPrimitive } from '@base-ui/react/drawer';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
5
|
-
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
-
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
|
|
7
|
-
declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
|
|
8
|
-
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Backdrop>): React.JSX.Element;
|
|
9
|
-
declare const drawerContentVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "inset" | "unstyled" | null | undefined;
|
|
11
|
-
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
12
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
13
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
-
interface DrawerContentProps extends DrawerPrimitive.Popup.Props, VariantProps<typeof drawerContentVariants> {
|
|
15
|
-
showCloseButton?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare function DrawerContent({ className, children, side, size, variant, showCloseButton, ...props }: DrawerContentProps): React.JSX.Element;
|
|
18
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
19
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
|
|
21
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
|
|
22
|
-
export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): React.JSX.Element;
|
|
4
|
-
declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
|
|
5
|
-
declare function DropdownMenuTrigger({ className, ...props }: MenuPrimitive.Trigger.Props): React.JSX.Element;
|
|
6
|
-
declare const dropdownMenuContentVariants: (props?: ({
|
|
7
|
-
align?: "center" | "end" | "start" | null | undefined;
|
|
8
|
-
side?: "inline-start" | "inline-end" | "top" | "bottom" | "left" | "right" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
declare function DropdownMenuContent({ alignOffset, sideOffset, align, side, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
|
|
11
|
-
declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): React.JSX.Element;
|
|
12
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & {
|
|
13
|
-
inset?: boolean;
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
declare function DropdownMenuItem({ className, inset, variant, onClick, ...props }: MenuPrimitive.Item.Props & {
|
|
16
|
-
inset?: boolean;
|
|
17
|
-
variant?: "default" | "destructive";
|
|
18
|
-
}): React.JSX.Element;
|
|
19
|
-
declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): React.JSX.Element;
|
|
20
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
|
|
21
|
-
inset?: boolean;
|
|
22
|
-
}): React.JSX.Element;
|
|
23
|
-
declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): React.JSX.Element;
|
|
24
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: MenuPrimitive.CheckboxItem.Props): React.JSX.Element;
|
|
25
|
-
declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): React.JSX.Element;
|
|
26
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: MenuPrimitive.RadioItem.Props): React.JSX.Element;
|
|
27
|
-
declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): React.JSX.Element;
|
|
28
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
29
|
-
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, dropdownMenuContentVariants, };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
3
|
-
import { Label } from './label';
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
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.JSX.Element;
|
|
6
|
-
declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): React.JSX.Element;
|
|
7
|
-
declare const useFormField: () => {
|
|
8
|
-
invalid: boolean;
|
|
9
|
-
isDirty: boolean;
|
|
10
|
-
isTouched: boolean;
|
|
11
|
-
isValidating: boolean;
|
|
12
|
-
error?: import('react-hook-form').FieldError;
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
formItemId: string;
|
|
16
|
-
formDescriptionId: string;
|
|
17
|
-
formMessageId: string;
|
|
18
|
-
};
|
|
19
|
-
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
-
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof Label>): React.JSX.Element;
|
|
21
|
-
declare function FormControl({ className, render, ...props }: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
22
|
-
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
|
|
23
|
-
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element | null;
|
|
24
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const hVariants: (props?: ({
|
|
4
|
-
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof hVariants> {
|
|
7
|
-
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
8
|
-
}
|
|
9
|
-
declare const H: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
-
export { H, hVariants };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Button } from './button';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
5
|
-
declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
-
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
|
|
9
|
-
declare const inputGroupButtonVariants: (props?: ({
|
|
10
|
-
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
11
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
-
declare function InputGroupButton({ className, type, variant, extrude, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
13
|
-
type?: "button" | "submit" | "reset";
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
16
|
-
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): React.JSX.Element;
|
|
17
|
-
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
|
|
18
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, inputGroupAddonVariants, };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OTPInput } from 'input-otp';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
|
|
4
|
-
containerClassName?: string;
|
|
5
|
-
}): React.JSX.Element;
|
|
6
|
-
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
|
-
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
8
|
-
index: number;
|
|
9
|
-
}): React.JSX.Element;
|
|
10
|
-
declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
-
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const labelVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "underline" | null | undefined;
|
|
5
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare function Label({ size, variant, className, htmlFor, ...props }: React.ComponentProps<"label"> & VariantProps<typeof labelVariants> & {
|
|
8
|
-
htmlFor: string;
|
|
9
|
-
}): React.JSX.Element;
|
|
10
|
-
export { Label, labelVariants };
|