@arcadeai/design-system 0.6.5 → 0.7.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slot } from '@radix-ui/react-slot';
|
|
2
|
-
import { ControllerProps, FieldPath, FieldValues
|
|
2
|
+
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
import type * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
@@ -21,4 +21,5 @@ declare function FormLabel({ className, ...props }: React.ComponentProps<typeof
|
|
|
21
21
|
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
declare function FormDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
declare function FormMessage({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField,
|
|
24
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
25
|
+
export { useFormContext } from 'react-hook-form';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { R as d, T as c, C as r, a as u, X as
|
|
2
|
+
import { R as d, T as c, C as r, a as u, X as m, b as f, D as h, P as g, O as p } from "../../../index-CL4N9wMT.js";
|
|
3
3
|
import { c as o } from "../../../utils-Dy2WjYNJ.js";
|
|
4
|
-
function
|
|
4
|
+
function N({ ...t }) {
|
|
5
5
|
return /* @__PURE__ */ e(d, { "data-slot": "sheet", ...t });
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function v({
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
10
|
return /* @__PURE__ */ e(c, { "data-slot": "sheet-trigger", ...t });
|
|
@@ -14,17 +14,17 @@ function C({
|
|
|
14
14
|
}) {
|
|
15
15
|
return /* @__PURE__ */ e(r, { "data-slot": "sheet-close", ...t });
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function x({
|
|
18
18
|
...t
|
|
19
19
|
}) {
|
|
20
|
-
return /* @__PURE__ */ e(
|
|
20
|
+
return /* @__PURE__ */ e(g, { "data-slot": "sheet-portal", ...t });
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function b({
|
|
23
23
|
className: t,
|
|
24
24
|
...a
|
|
25
25
|
}) {
|
|
26
26
|
return /* @__PURE__ */ e(
|
|
27
|
-
|
|
27
|
+
p,
|
|
28
28
|
{
|
|
29
29
|
className: o(
|
|
30
30
|
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
@@ -39,29 +39,29 @@ function T({
|
|
|
39
39
|
className: t,
|
|
40
40
|
children: a,
|
|
41
41
|
side: s = "right",
|
|
42
|
-
variant:
|
|
43
|
-
...
|
|
42
|
+
variant: l = "inset",
|
|
43
|
+
...i
|
|
44
44
|
}) {
|
|
45
|
-
return /* @__PURE__ */ n(
|
|
46
|
-
/* @__PURE__ */ e(
|
|
45
|
+
return /* @__PURE__ */ n(x, { children: [
|
|
46
|
+
/* @__PURE__ */ e(b, {}),
|
|
47
47
|
/* @__PURE__ */ n(
|
|
48
48
|
u,
|
|
49
49
|
{
|
|
50
50
|
className: o(
|
|
51
51
|
"fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
52
|
-
s === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-
|
|
53
|
-
s === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-
|
|
52
|
+
s === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-full border-l sm:max-w-sm lg:max-w-lg xl:max-w-xl",
|
|
53
|
+
s === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-full border-r sm:max-w-sm lg:max-w-lg xl:max-w-xl",
|
|
54
54
|
s === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
55
55
|
s === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
56
|
-
|
|
56
|
+
l === "inset" && "mt-0 mr-0 h-[calc(100svh-1rem)] rounded-lg border shadow-lg sm:mt-2 sm:mr-2",
|
|
57
57
|
t
|
|
58
58
|
),
|
|
59
59
|
"data-slot": "sheet-content",
|
|
60
|
-
...
|
|
60
|
+
...i,
|
|
61
61
|
children: [
|
|
62
62
|
a,
|
|
63
63
|
/* @__PURE__ */ n(r, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
64
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e(m, { className: "size-4" }),
|
|
65
65
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
66
66
|
] })
|
|
67
67
|
]
|
|
@@ -94,7 +94,7 @@ function D({
|
|
|
94
94
|
...a
|
|
95
95
|
}) {
|
|
96
96
|
return /* @__PURE__ */ e(
|
|
97
|
-
|
|
97
|
+
f,
|
|
98
98
|
{
|
|
99
99
|
className: o("font-semibold text-foreground", t),
|
|
100
100
|
"data-slot": "sheet-title",
|
|
@@ -107,7 +107,7 @@ function O({
|
|
|
107
107
|
...a
|
|
108
108
|
}) {
|
|
109
109
|
return /* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
h,
|
|
111
111
|
{
|
|
112
112
|
className: o("text-muted-foreground text-sm", t),
|
|
113
113
|
"data-slot": "sheet-description",
|
|
@@ -116,12 +116,12 @@ function O({
|
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
118
|
export {
|
|
119
|
-
|
|
119
|
+
N as Sheet,
|
|
120
120
|
C as SheetClose,
|
|
121
121
|
T as SheetContent,
|
|
122
122
|
O as SheetDescription,
|
|
123
123
|
z as SheetFooter,
|
|
124
124
|
k as SheetHeader,
|
|
125
125
|
D as SheetTitle,
|
|
126
|
-
|
|
126
|
+
v as SheetTrigger
|
|
127
127
|
};
|