@szum-tech/design-system 2.1.1 → 2.3.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/{chunk-5ENMEB5L.cjs → chunk-25X5IOB3.cjs} +6 -6
- package/dist/{chunk-LI7IHIOM.cjs → chunk-3DSBDIFJ.cjs} +6 -6
- package/dist/chunk-3PV6NLP5.js +31 -0
- package/dist/{chunk-KPB3CBHE.cjs → chunk-4NO6IM75.cjs} +2 -2
- package/dist/{chunk-5EN2HNFU.js → chunk-5MJPZUTO.js} +7 -19
- package/dist/{chunk-WTVBTZ3P.js → chunk-5PBHBOXI.js} +1 -1
- package/dist/{chunk-TD2KDWNP.js → chunk-5U55UIDY.js} +9 -16
- package/dist/chunk-6L3QPLRR.cjs +33 -0
- package/dist/{chunk-463KEXY6.cjs → chunk-6VVDXGYO.cjs} +16 -19
- package/dist/{chunk-VQMM75HD.cjs → chunk-6YLG3PWU.cjs} +9 -16
- package/dist/{chunk-IFBQNWVG.js → chunk-75T7KAAY.js} +7 -7
- package/dist/{chunk-AO4TMCYJ.js → chunk-CLBOIGDQ.js} +2 -2
- package/dist/{chunk-PB3EGVTV.cjs → chunk-CN3NQLTK.cjs} +5 -5
- package/dist/{chunk-HFHADY43.js → chunk-EU7G37IS.js} +2 -2
- package/dist/{chunk-XGA2F5GG.cjs → chunk-FPK72OV4.cjs} +7 -7
- package/dist/{chunk-LND2W67K.cjs → chunk-FVSO3RHT.cjs} +2 -3
- package/dist/{chunk-4YZSPNLW.cjs → chunk-GR37JJQK.cjs} +3 -3
- package/dist/{chunk-HXC3EALP.js → chunk-HJJPEVIH.js} +3 -3
- package/dist/{chunk-J56UDYA3.js → chunk-IV5F734M.js} +16 -19
- package/dist/{chunk-YXTTED5V.cjs → chunk-P4J2TTH7.cjs} +1 -1
- package/dist/{chunk-RF5YR553.cjs → chunk-Q2IKZZ3U.cjs} +1 -1
- package/dist/{chunk-QRSQCHBO.cjs → chunk-QQ7CBNSR.cjs} +14 -11
- package/dist/{chunk-J264N6AZ.js → chunk-RXYZURP4.js} +1 -1
- package/dist/{chunk-V4POHGAW.cjs → chunk-TMXVL5CV.cjs} +7 -19
- package/dist/{chunk-YHU2OW52.js → chunk-UW6GOD7J.js} +1 -1
- package/dist/{chunk-XPM62WMM.js → chunk-V5OVQTDR.js} +6 -6
- package/dist/{chunk-US32J7DK.js → chunk-VZKTT6CG.js} +2 -3
- package/dist/{chunk-HIWVHD4V.js → chunk-WIOOP3VE.js} +14 -11
- package/dist/{chunk-C5YRMEKV.js → chunk-XDTI4DFM.js} +6 -6
- package/dist/{chunk-VFRIU5CV.cjs → chunk-YWG7TML6.cjs} +1 -1
- package/dist/components/alert-dialog/index.cjs +10 -10
- package/dist/components/alert-dialog/index.d.cts +5 -5
- package/dist/components/alert-dialog/index.d.ts +5 -5
- package/dist/components/alert-dialog/index.js +1 -1
- package/dist/components/avatar/index.cjs +4 -4
- package/dist/components/avatar/index.d.cts +2 -2
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.cjs +2 -2
- package/dist/components/button/index.d.cts +2 -2
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/index.cjs +8 -7
- package/dist/components/card/index.js +2 -1
- package/dist/components/dialog/index.cjs +10 -9
- package/dist/components/dialog/index.d.cts +2 -2
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/index.js +2 -1
- package/dist/components/form/index.cjs +23 -23
- package/dist/components/form/index.js +16 -16
- package/dist/components/header/index.cjs +2 -2
- package/dist/components/header/index.js +1 -1
- package/dist/components/helper-text/index.cjs +2 -2
- package/dist/components/helper-text/index.d.cts +2 -2
- package/dist/components/helper-text/index.d.ts +2 -2
- package/dist/components/helper-text/index.js +1 -1
- package/dist/components/index.cjs +68 -68
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +16 -16
- package/dist/components/input/index.cjs +2 -2
- package/dist/components/input/index.js +1 -1
- package/dist/components/label/index.cjs +3 -2
- package/dist/components/label/index.js +2 -1
- package/dist/components/select/index.cjs +4 -3
- package/dist/components/select/index.d.cts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +2 -1
- package/dist/components/separator/index.cjs +2 -2
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.cjs +10 -9
- package/dist/components/sheet/index.d.cts +2 -2
- package/dist/components/sheet/index.d.ts +2 -2
- package/dist/components/sheet/index.js +2 -1
- package/dist/components/textarea/index.cjs +2 -2
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/tooltip/index.cjs +3 -3
- package/dist/components/tooltip/index.d.cts +2 -4
- package/dist/components/tooltip/index.d.ts +2 -4
- package/dist/components/tooltip/index.js +1 -1
- package/package.json +34 -35
- package/tailwind/palette.css +131 -113
- package/dist/chunk-N7DXGCBJ.cjs +0 -31
- package/dist/chunk-UZBZFCWX.js +0 -29
|
@@ -62,8 +62,8 @@ var buttonCva = classVarianceAuthority.cva(
|
|
|
62
62
|
color: "neutral",
|
|
63
63
|
class: [
|
|
64
64
|
"text-gray-100",
|
|
65
|
-
"hover:border-gray-
|
|
66
|
-
"active:border-gray-
|
|
65
|
+
"hover:border-gray-500 hover:bg-gray-500 hover:text-app-foreground",
|
|
66
|
+
"active:border-gray-600 active:bg-gray-600"
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
{
|
|
@@ -106,7 +106,7 @@ var buttonCva = classVarianceAuthority.cva(
|
|
|
106
106
|
{
|
|
107
107
|
variant: "outlined",
|
|
108
108
|
color: "neutral",
|
|
109
|
-
class: ["border-gray-
|
|
109
|
+
class: ["border-gray-500 text-gray-100", "hover:bg-gray-500 hover:text-app-foreground", "active:bg-gray-600"]
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
variant: "outlined",
|
|
@@ -149,9 +149,9 @@ var buttonCva = classVarianceAuthority.cva(
|
|
|
149
149
|
variant: "contained",
|
|
150
150
|
color: "neutral",
|
|
151
151
|
class: [
|
|
152
|
-
"border-gray-
|
|
153
|
-
"hover:border-gray-
|
|
154
|
-
"active:border-gray-
|
|
152
|
+
"border-gray-500 bg-gray-500 text-gray-100",
|
|
153
|
+
"hover:border-gray-400 hover:bg-gray-400 hover:text-app-foreground",
|
|
154
|
+
"active:border-gray-600 active:bg-gray-600"
|
|
155
155
|
]
|
|
156
156
|
},
|
|
157
157
|
{
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
3
4
|
var tailwindMerge = require('tailwind-merge');
|
|
4
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
6
|
|
|
6
|
-
// src/components/card/card.tsx
|
|
7
7
|
function Card({ className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("bg-app-foreground h-full rounded border border-gray-
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("bg-app-foreground h-full rounded border border-gray-800", className), ...props });
|
|
9
9
|
}
|
|
10
10
|
function CardHeader({ className, ...props }) {
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("flex flex-col p-6", className), ...props });
|
|
12
12
|
}
|
|
13
13
|
function CardTitle({ className, ...props }) {
|
|
14
14
|
return /* @__PURE__ */ jsxRuntime.jsx("h3", { className: tailwindMerge.twMerge("text-heading-5", className), ...props });
|
|
15
15
|
}
|
|
16
16
|
function CardDescription({ className, ...props }) {
|
|
17
|
-
return /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: chunkH2BWO3SI_cjs.cn("text-body-2 text-gray-300", className), ...props });
|
|
18
18
|
}
|
|
19
19
|
function CardContent({ className, ...props }) {
|
|
20
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("p-6 pt-0", className), ...props });
|
|
21
21
|
}
|
|
22
22
|
function CardFooter({ className, ...props }) {
|
|
23
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
23
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("flex items-center p-6 pt-0", className), ...props });
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
exports.Card = Card;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
// src/components/textarea/textarea.styles.tsx
|
|
5
|
+
var textareaCva = cva(
|
|
6
|
+
[
|
|
7
|
+
"bg-app-foreground font-poppins h-28 min-h-10 w-full appearance-none border py-2 px-3 outline-0 transition-colors duration-300 ease-in-out",
|
|
8
|
+
"placeholder:select-none placeholder:text-gray-400",
|
|
9
|
+
"invalid:border-error-500",
|
|
10
|
+
"focus:border-primary-500",
|
|
11
|
+
"active:border-primary-500",
|
|
12
|
+
"disabled:border-gray-800 disabled:text-gray-300 disabled:placeholder:text-gray-600 disabled:cursor-not-allowed"
|
|
13
|
+
],
|
|
14
|
+
{
|
|
15
|
+
variants: {
|
|
16
|
+
invalid: {
|
|
17
|
+
true: ["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],
|
|
18
|
+
false: ["border-gray-600 hover:border-primary-600 text-gray-100"]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
invalid: false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
function Textarea({ invalid = false, ...props }) {
|
|
27
|
+
const textareaStyles = textareaCva({ invalid });
|
|
28
|
+
return /* @__PURE__ */ jsx("textarea", { "aria-invalid": invalid || void 0, className: textareaStyles, ...props });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Textarea };
|
|
@@ -17,7 +17,7 @@ var avatarCva = classVarianceAuthority.cva("relative flex shrink-0 overflow-hidd
|
|
|
17
17
|
size: "md"
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
function Avatar({ className, size, ref, ...props }) {
|
|
20
|
+
function Avatar({ className, size = "md", ref, ...props }) {
|
|
21
21
|
const avatarStyles = avatarCva({ size });
|
|
22
22
|
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Avatar.Root, { ref, className: chunkH2BWO3SI_cjs.cn(avatarStyles, className), ...props });
|
|
23
23
|
}
|
|
@@ -29,7 +29,7 @@ function AvatarFallback({ className, ref, ...props }) {
|
|
|
29
29
|
radixUi.Avatar.Fallback,
|
|
30
30
|
{
|
|
31
31
|
ref,
|
|
32
|
-
className: chunkH2BWO3SI_cjs.cn("
|
|
32
|
+
className: chunkH2BWO3SI_cjs.cn("flex h-full w-full items-center justify-center bg-gray-600", className),
|
|
33
33
|
...props
|
|
34
34
|
}
|
|
35
35
|
);
|
|
@@ -5,26 +5,14 @@ import { twMerge } from 'tailwind-merge';
|
|
|
5
5
|
|
|
6
6
|
var AlertDialog = AlertDialog$1.Root;
|
|
7
7
|
var AlertDialogTrigger = AlertDialog$1.Trigger;
|
|
8
|
-
function AlertDialogOverlay({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
AlertDialog$1.Overlay,
|
|
11
|
-
{
|
|
12
|
-
className: cn(
|
|
13
|
-
"bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs",
|
|
14
|
-
className
|
|
15
|
-
),
|
|
16
|
-
...props
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
8
|
function AlertDialogContent({ className, ...props }) {
|
|
21
9
|
return /* @__PURE__ */ jsxs(AlertDialog$1.Portal, { children: [
|
|
22
|
-
/* @__PURE__ */ jsx(
|
|
10
|
+
/* @__PURE__ */ jsx(AlertDialog$1.Overlay, { className: "bg-app-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs" }),
|
|
23
11
|
/* @__PURE__ */ jsx(
|
|
24
12
|
AlertDialog$1.Content,
|
|
25
13
|
{
|
|
26
14
|
className: cn(
|
|
27
|
-
"bg-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-1/2 left-1/2 z-50 flex w-full max-w-lg -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-
|
|
15
|
+
"bg-app-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-1/2 left-1/2 z-50 flex w-full max-w-lg -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-800 p-4 shadow-lg duration-200",
|
|
28
16
|
className
|
|
29
17
|
),
|
|
30
18
|
...props
|
|
@@ -32,9 +20,7 @@ function AlertDialogContent({ className, ...props }) {
|
|
|
32
20
|
)
|
|
33
21
|
] });
|
|
34
22
|
}
|
|
35
|
-
|
|
36
|
-
return /* @__PURE__ */ jsx("div", { className: twMerge("mb-4 flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
37
|
-
}
|
|
23
|
+
var AlertDialogAction = AlertDialog$1.Action;
|
|
38
24
|
function AlertDialogFooter({ className, ...props }) {
|
|
39
25
|
return /* @__PURE__ */ jsx("div", { className: twMerge("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
|
|
40
26
|
}
|
|
@@ -42,9 +28,11 @@ function AlertDialogTitle({ className, ref, ...props }) {
|
|
|
42
28
|
return /* @__PURE__ */ jsx(AlertDialog$1.Title, { ref, className: cn("text-heading-6", className), ...props });
|
|
43
29
|
}
|
|
44
30
|
function AlertDialogDescription({ className, ...props }) {
|
|
45
|
-
return /* @__PURE__ */ jsx(AlertDialog$1.Description, { className: cn("text-body-2 text-gray-
|
|
31
|
+
return /* @__PURE__ */ jsx(AlertDialog$1.Description, { className: cn("text-body-2 text-gray-300", className), ...props });
|
|
46
32
|
}
|
|
47
|
-
var AlertDialogAction = AlertDialog$1.Action;
|
|
48
33
|
var AlertDialogCancel = AlertDialog$1.Cancel;
|
|
34
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsx("div", { className: cn("mb-4 flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
36
|
+
}
|
|
49
37
|
|
|
50
38
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { cn } from './chunk-ZD2QRAOX.js';
|
|
1
2
|
import { Dialog } from 'radix-ui';
|
|
2
|
-
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
import { Cross1Icon } from '@radix-ui/react-icons';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
// src/components/sheet/sheet.tsx
|
|
8
7
|
var Sheet = Dialog.Root;
|
|
9
8
|
var SheetTrigger = Dialog.Trigger;
|
|
10
9
|
var SheetClose = Dialog.Close;
|
|
11
10
|
var sheetContentStyles = cva(
|
|
12
|
-
"bg-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-
|
|
11
|
+
"bg-app-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-800 p-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
13
12
|
{
|
|
14
13
|
variants: {
|
|
15
14
|
side: {
|
|
@@ -26,16 +25,10 @@ var sheetContentStyles = cva(
|
|
|
26
25
|
);
|
|
27
26
|
function SheetContent({ side = "right", className, children, ...props }) {
|
|
28
27
|
return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
className: "bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm",
|
|
33
|
-
...props
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ jsxs(Dialog.Content, { className: twMerge(sheetContentStyles({ side }), className), ...props, children: [
|
|
28
|
+
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "bg-app-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm" }),
|
|
29
|
+
/* @__PURE__ */ jsxs(Dialog.Content, { className: cn(sheetContentStyles({ side }), className), ...props, children: [
|
|
37
30
|
children,
|
|
38
|
-
/* @__PURE__ */ jsxs(Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-foreground data-[state=open]:bg-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
|
|
31
|
+
/* @__PURE__ */ jsxs(Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-app-foreground data-[state=open]:bg-app-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
|
|
39
32
|
/* @__PURE__ */ jsx(Cross1Icon, { className: "size-4" }),
|
|
40
33
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
41
34
|
] })
|
|
@@ -43,16 +36,16 @@ function SheetContent({ side = "right", className, children, ...props }) {
|
|
|
43
36
|
] });
|
|
44
37
|
}
|
|
45
38
|
function SheetHeader({ className, ...props }) {
|
|
46
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
39
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
47
40
|
}
|
|
48
41
|
function SheetFooter({ className, ...props }) {
|
|
49
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
42
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
50
43
|
}
|
|
51
44
|
function SheetTitle({ className, ...props }) {
|
|
52
|
-
return /* @__PURE__ */ jsx(Dialog.Title, { className:
|
|
45
|
+
return /* @__PURE__ */ jsx(Dialog.Title, { className: cn("typography-heading-6", className), ...props });
|
|
53
46
|
}
|
|
54
47
|
function SheetDescription({ className, ...props }) {
|
|
55
|
-
return /* @__PURE__ */ jsx(Dialog.Description, { className:
|
|
48
|
+
return /* @__PURE__ */ jsx(Dialog.Description, { className: cn("typography-body-2 text-gray-300", className), ...props });
|
|
56
49
|
}
|
|
57
50
|
|
|
58
51
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
// src/components/textarea/textarea.styles.tsx
|
|
7
|
+
var textareaCva = classVarianceAuthority.cva(
|
|
8
|
+
[
|
|
9
|
+
"bg-app-foreground font-poppins h-28 min-h-10 w-full appearance-none border py-2 px-3 outline-0 transition-colors duration-300 ease-in-out",
|
|
10
|
+
"placeholder:select-none placeholder:text-gray-400",
|
|
11
|
+
"invalid:border-error-500",
|
|
12
|
+
"focus:border-primary-500",
|
|
13
|
+
"active:border-primary-500",
|
|
14
|
+
"disabled:border-gray-800 disabled:text-gray-300 disabled:placeholder:text-gray-600 disabled:cursor-not-allowed"
|
|
15
|
+
],
|
|
16
|
+
{
|
|
17
|
+
variants: {
|
|
18
|
+
invalid: {
|
|
19
|
+
true: ["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],
|
|
20
|
+
false: ["border-gray-600 hover:border-primary-600 text-gray-100"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
invalid: false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
function Textarea({ invalid = false, ...props }) {
|
|
29
|
+
const textareaStyles = textareaCva({ invalid });
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { "aria-invalid": invalid || void 0, className: textareaStyles, ...props });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.Textarea = Textarea;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
3
4
|
var radixUi = require('radix-ui');
|
|
4
5
|
var tailwindMerge = require('tailwind-merge');
|
|
5
6
|
var reactIcons = require('@radix-ui/react-icons');
|
|
6
7
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
9
|
|
|
9
|
-
// src/components/dialog/dialog.tsx
|
|
10
10
|
var Dialog = radixUi.Dialog.Root;
|
|
11
11
|
var DialogClose = radixUi.Dialog.Close;
|
|
12
12
|
var dialogContentStyles = classVarianceAuthority.cva(
|
|
13
13
|
[
|
|
14
|
-
"bg-foreground fixed left-1/2 top-1/2 z-50 flex w-full -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-
|
|
14
|
+
"bg-app-foreground fixed left-1/2 top-1/2 z-50 flex w-full -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-800 p-4 shadow-lg",
|
|
15
15
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] duration-200"
|
|
16
16
|
],
|
|
17
17
|
{
|
|
@@ -35,39 +35,36 @@ var dialogContentStyles = classVarianceAuthority.cva(
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
|
-
function DialogOverlay(props) {
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
radixUi.Dialog.Overlay,
|
|
41
|
-
{
|
|
42
|
-
className: "bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs",
|
|
43
|
-
...props
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
38
|
function DialogContent({ className, children, width = "md", ...props }) {
|
|
48
39
|
return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Portal, { children: [
|
|
49
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
-
|
|
40
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
radixUi.Dialog.Overlay,
|
|
42
|
+
{
|
|
43
|
+
className: "bg-app-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs",
|
|
44
|
+
...props
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Content, { "aria-modal": "true", className: tailwindMerge.twMerge(dialogContentStyles({ width }), className), ...props, children: [
|
|
51
48
|
children,
|
|
52
|
-
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-foreground data-[state=open]:bg-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
|
|
49
|
+
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-app-foreground data-[state=open]:bg-app-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
|
|
53
50
|
/* @__PURE__ */ jsxRuntime.jsx(reactIcons.Cross1Icon, { className: "size-4" }),
|
|
54
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
51
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close dialog" })
|
|
55
52
|
] })
|
|
56
53
|
] })
|
|
57
54
|
] });
|
|
58
55
|
}
|
|
59
56
|
var DialogTrigger = radixUi.Dialog.Trigger;
|
|
60
57
|
function DialogHeader({ className, ...props }) {
|
|
61
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("mb-4 flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
62
59
|
}
|
|
63
60
|
function DialogFooter({ className, ...props }) {
|
|
64
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
61
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("mt-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
|
|
65
62
|
}
|
|
66
63
|
function DialogTitle({ className, ...props }) {
|
|
67
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Title, { className:
|
|
64
|
+
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Title, { className: chunkH2BWO3SI_cjs.cn("text-heading-6", className), ...props });
|
|
68
65
|
}
|
|
69
66
|
function DialogDescription({ className, ...props }) {
|
|
70
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Description, { className:
|
|
67
|
+
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Description, { className: chunkH2BWO3SI_cjs.cn("text-body-2 text-gray-300", className), ...props });
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
exports.Dialog = Dialog;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
3
4
|
var radixUi = require('radix-ui');
|
|
4
|
-
var tailwindMerge = require('tailwind-merge');
|
|
5
5
|
var reactIcons = require('@radix-ui/react-icons');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
|
-
// src/components/sheet/sheet.tsx
|
|
10
9
|
var Sheet = radixUi.Dialog.Root;
|
|
11
10
|
var SheetTrigger = radixUi.Dialog.Trigger;
|
|
12
11
|
var SheetClose = radixUi.Dialog.Close;
|
|
13
12
|
var sheetContentStyles = classVarianceAuthority.cva(
|
|
14
|
-
"bg-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-
|
|
13
|
+
"bg-app-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-800 p-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
15
14
|
{
|
|
16
15
|
variants: {
|
|
17
16
|
side: {
|
|
@@ -28,16 +27,10 @@ var sheetContentStyles = classVarianceAuthority.cva(
|
|
|
28
27
|
);
|
|
29
28
|
function SheetContent({ side = "right", className, children, ...props }) {
|
|
30
29
|
return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Portal, { children: [
|
|
31
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
className: "bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm",
|
|
35
|
-
...props
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Content, { className: tailwindMerge.twMerge(sheetContentStyles({ side }), className), ...props, children: [
|
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Overlay, { className: "bg-app-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm" }),
|
|
31
|
+
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Content, { className: chunkH2BWO3SI_cjs.cn(sheetContentStyles({ side }), className), ...props, children: [
|
|
39
32
|
children,
|
|
40
|
-
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-foreground data-[state=open]:bg-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
|
|
33
|
+
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-app-foreground data-[state=open]:bg-app-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
|
|
41
34
|
/* @__PURE__ */ jsxRuntime.jsx(reactIcons.Cross1Icon, { className: "size-4" }),
|
|
42
35
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
43
36
|
] })
|
|
@@ -45,16 +38,16 @@ function SheetContent({ side = "right", className, children, ...props }) {
|
|
|
45
38
|
] });
|
|
46
39
|
}
|
|
47
40
|
function SheetHeader({ className, ...props }) {
|
|
48
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
49
42
|
}
|
|
50
43
|
function SheetFooter({ className, ...props }) {
|
|
51
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
52
45
|
}
|
|
53
46
|
function SheetTitle({ className, ...props }) {
|
|
54
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Title, { className:
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Title, { className: chunkH2BWO3SI_cjs.cn("typography-heading-6", className), ...props });
|
|
55
48
|
}
|
|
56
49
|
function SheetDescription({ className, ...props }) {
|
|
57
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Description, { className:
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Description, { className: chunkH2BWO3SI_cjs.cn("typography-body-2 text-gray-300", className), ...props });
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
exports.Sheet = Sheet;
|
|
@@ -5,15 +5,15 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
5
5
|
var inputCva = cva(
|
|
6
6
|
[
|
|
7
7
|
"bg-app-foreground font-poppins h-10 w-full appearance-none border py-2 outline-0 transition-colors duration-300 ease-in-out",
|
|
8
|
-
"placeholder:select-none placeholder:text-gray-
|
|
9
|
-
"invalid:border-error-500 focus:border-primary-
|
|
10
|
-
"disabled:border-gray-
|
|
8
|
+
"placeholder:select-none placeholder:text-gray-400",
|
|
9
|
+
"invalid:border-error-500 focus:border-primary-500 active:border-primary-500",
|
|
10
|
+
"disabled:border-gray-800 disabled:text-gray-300 disabled:placeholder:text-gray-600 disabled:cursor-not-allowed"
|
|
11
11
|
],
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
invalid: {
|
|
15
15
|
true: ["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],
|
|
16
|
-
false: ["border-gray-
|
|
16
|
+
false: ["border-gray-600 hover:border-primary-600 text-gray-100"]
|
|
17
17
|
},
|
|
18
18
|
withStartIcon: {
|
|
19
19
|
true: "pl-11",
|
|
@@ -36,11 +36,11 @@ var inputIconContainerCva = cva(
|
|
|
36
36
|
{
|
|
37
37
|
variants: {
|
|
38
38
|
disabled: {
|
|
39
|
-
true: "text-gray-
|
|
39
|
+
true: "text-gray-300"
|
|
40
40
|
},
|
|
41
41
|
site: {
|
|
42
|
-
right: "right-0 border-l border-l-gray-
|
|
43
|
-
left: "left-0 border-r border-r-gray-
|
|
42
|
+
right: "right-0 border-l border-l-gray-800 pr-1",
|
|
43
|
+
left: "left-0 border-r border-r-gray-800 pl-1"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
defaultVariants: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HelperText } from './chunk-
|
|
2
|
-
import { Label } from './chunk-
|
|
1
|
+
import { HelperText } from './chunk-5PBHBOXI.js';
|
|
2
|
+
import { Label } from './chunk-VZKTT6CG.js';
|
|
3
3
|
import { useFormContext, FormProvider, Controller } from 'react-hook-form';
|
|
4
4
|
import * as React2 from 'react';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkP4J2TTH7_cjs = require('./chunk-P4J2TTH7.cjs');
|
|
4
|
+
var chunkFVSO3RHT_cjs = require('./chunk-FVSO3RHT.cjs');
|
|
5
5
|
var reactHookForm = require('react-hook-form');
|
|
6
6
|
var React2 = require('react');
|
|
7
7
|
var tailwindMerge = require('tailwind-merge');
|
|
@@ -64,7 +64,7 @@ var FormLabel = React2__namespace.forwardRef(
|
|
|
64
64
|
const { error, formItemId } = useFormField();
|
|
65
65
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row items-end justify-between", children: [
|
|
66
66
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
-
|
|
67
|
+
chunkFVSO3RHT_cjs.Label,
|
|
68
68
|
{
|
|
69
69
|
ref,
|
|
70
70
|
className: tailwindMerge.twMerge(error ? "text-error-500" : null, className),
|
|
@@ -98,12 +98,12 @@ var FormMessage = React2__namespace.forwardRef(function({ children, ...props },
|
|
|
98
98
|
if (!body) {
|
|
99
99
|
return null;
|
|
100
100
|
}
|
|
101
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkP4J2TTH7_cjs.HelperText, { ref, type: "error", id: formMessageId, ...props, children: body });
|
|
102
102
|
});
|
|
103
103
|
FormMessage.displayName = "FormMessage";
|
|
104
104
|
var FormDescription = React2__namespace.forwardRef(function(props, ref) {
|
|
105
105
|
const { formDescriptionId } = useFormField();
|
|
106
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkP4J2TTH7_cjs.HelperText, { ref, id: formDescriptionId, ...props });
|
|
107
107
|
});
|
|
108
108
|
FormDescription.displayName = "FormDescription";
|
|
109
109
|
|
|
@@ -15,7 +15,7 @@ var avatarCva = cva("relative flex shrink-0 overflow-hidden rounded text-gray-10
|
|
|
15
15
|
size: "md"
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
function Avatar({ className, size, ref, ...props }) {
|
|
18
|
+
function Avatar({ className, size = "md", ref, ...props }) {
|
|
19
19
|
const avatarStyles = avatarCva({ size });
|
|
20
20
|
return /* @__PURE__ */ jsx(Avatar$1.Root, { ref, className: cn(avatarStyles, className), ...props });
|
|
21
21
|
}
|
|
@@ -27,7 +27,7 @@ function AvatarFallback({ className, ref, ...props }) {
|
|
|
27
27
|
Avatar$1.Fallback,
|
|
28
28
|
{
|
|
29
29
|
ref,
|
|
30
|
-
className: cn("
|
|
30
|
+
className: cn("flex h-full w-full items-center justify-center bg-gray-600", className),
|
|
31
31
|
...props
|
|
32
32
|
}
|
|
33
33
|
);
|
|
@@ -7,15 +7,15 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var inputCva = classVarianceAuthority.cva(
|
|
8
8
|
[
|
|
9
9
|
"bg-app-foreground font-poppins h-10 w-full appearance-none border py-2 outline-0 transition-colors duration-300 ease-in-out",
|
|
10
|
-
"placeholder:select-none placeholder:text-gray-
|
|
11
|
-
"invalid:border-error-500 focus:border-primary-
|
|
12
|
-
"disabled:border-gray-
|
|
10
|
+
"placeholder:select-none placeholder:text-gray-400",
|
|
11
|
+
"invalid:border-error-500 focus:border-primary-500 active:border-primary-500",
|
|
12
|
+
"disabled:border-gray-800 disabled:text-gray-300 disabled:placeholder:text-gray-600 disabled:cursor-not-allowed"
|
|
13
13
|
],
|
|
14
14
|
{
|
|
15
15
|
variants: {
|
|
16
16
|
invalid: {
|
|
17
17
|
true: ["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],
|
|
18
|
-
false: ["border-gray-
|
|
18
|
+
false: ["border-gray-600 hover:border-primary-600 text-gray-100"]
|
|
19
19
|
},
|
|
20
20
|
withStartIcon: {
|
|
21
21
|
true: "pl-11",
|
|
@@ -38,11 +38,11 @@ var inputIconContainerCva = classVarianceAuthority.cva(
|
|
|
38
38
|
{
|
|
39
39
|
variants: {
|
|
40
40
|
disabled: {
|
|
41
|
-
true: "text-gray-
|
|
41
|
+
true: "text-gray-300"
|
|
42
42
|
},
|
|
43
43
|
site: {
|
|
44
|
-
right: "right-0 border-l border-l-gray-
|
|
45
|
-
left: "left-0 border-r border-r-gray-
|
|
44
|
+
right: "right-0 border-l border-l-gray-800 pr-1",
|
|
45
|
+
left: "left-0 border-r border-r-gray-800 pl-1"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
defaultVariants: {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
3
4
|
var radixUi = require('radix-ui');
|
|
4
|
-
var tailwindMerge = require('tailwind-merge');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
7
|
-
// src/components/label/label.tsx
|
|
8
7
|
function Label({ className, ...props }) {
|
|
9
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
9
|
radixUi.Label.Root,
|
|
11
10
|
{
|
|
12
|
-
className:
|
|
11
|
+
className: chunkH2BWO3SI_cjs.cn("text-subtitle-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className),
|
|
13
12
|
...props
|
|
14
13
|
}
|
|
15
14
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var radixUi = require('radix-ui');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
|
|
6
|
-
// src/components/tooltip/
|
|
6
|
+
// src/components/tooltip/tooltip.tsx
|
|
7
7
|
function Tooltip({
|
|
8
8
|
defaultOpen,
|
|
9
9
|
content,
|
|
@@ -35,8 +35,8 @@ function Tooltip({
|
|
|
35
35
|
) }) : null
|
|
36
36
|
] });
|
|
37
37
|
}
|
|
38
|
-
function TooltipProvider({ children }) {
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Provider, { skipDelayDuration
|
|
38
|
+
function TooltipProvider({ children, skipDelayDuration = 500, ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Provider, { skipDelayDuration, ...props, children });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
exports.Tooltip = Tooltip;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
// src/components/tooltip/
|
|
4
|
+
// src/components/tooltip/tooltip.tsx
|
|
5
5
|
function Tooltip({
|
|
6
6
|
defaultOpen,
|
|
7
7
|
content,
|
|
@@ -33,8 +33,8 @@ function Tooltip({
|
|
|
33
33
|
) }) : null
|
|
34
34
|
] });
|
|
35
35
|
}
|
|
36
|
-
function TooltipProvider({ children }) {
|
|
37
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Provider, { skipDelayDuration
|
|
36
|
+
function TooltipProvider({ children, skipDelayDuration = 500, ...props }) {
|
|
37
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Provider, { skipDelayDuration, ...props, children });
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export { Tooltip, TooltipProvider };
|