@oneplatformdev/ui 0.0.1-beta.47 → 0.0.1-beta.49
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/Button/buttonVariants.mjs +2 -2
- package/Command/Command.mjs +3 -4
- package/Dialog/Dialog.d.ts +19 -3
- package/Dialog/Dialog.mjs +96 -15
- package/Dialog/index.d.ts +0 -1
- package/Dialog/index.mjs +10 -12
- package/index.css +1 -1
- package/index.mjs +267 -269
- package/package.json +1 -1
- package/Dialog/Dialog.types.d.ts +0 -6
- package/Dialog/DialogRoot.d.ts +0 -19
- package/Dialog/DialogRoot.mjs +0 -100
package/Dialog/DialogRoot.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
3
|
-
declare const DialogRoot: React.FC<DialogPrimitive.DialogProps>;
|
4
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
5
|
-
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
6
|
-
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
7
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
8
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
9
|
-
declare const DialogHeader: {
|
10
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
11
|
-
displayName: string;
|
12
|
-
};
|
13
|
-
declare const DialogFooter: {
|
14
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
15
|
-
displayName: string;
|
16
|
-
};
|
17
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
18
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
19
|
-
export { DialogRoot, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
package/Dialog/DialogRoot.mjs
DELETED
@@ -1,100 +0,0 @@
|
|
1
|
-
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
2
|
-
import * as l from "react";
|
3
|
-
import * as e from "@radix-ui/react-dialog";
|
4
|
-
import { X as c } from "lucide-react";
|
5
|
-
import { cn as i } from "@oneplatformdev/utils";
|
6
|
-
const b = e.Root, h = e.Trigger, m = e.Portal, v = e.Close, d = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
7
|
-
e.Overlay,
|
8
|
-
{
|
9
|
-
ref: s,
|
10
|
-
className: i(
|
11
|
-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
12
|
-
a
|
13
|
-
),
|
14
|
-
...t
|
15
|
-
}
|
16
|
-
));
|
17
|
-
d.displayName = e.Overlay.displayName;
|
18
|
-
const f = l.forwardRef(({ className: a, children: t, ...s }, r) => /* @__PURE__ */ n(m, { children: [
|
19
|
-
/* @__PURE__ */ o(d, {}),
|
20
|
-
/* @__PURE__ */ n(
|
21
|
-
e.Content,
|
22
|
-
{
|
23
|
-
ref: r,
|
24
|
-
className: i(
|
25
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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%] sm:rounded-lg",
|
26
|
-
a
|
27
|
-
),
|
28
|
-
...s,
|
29
|
-
children: [
|
30
|
-
t,
|
31
|
-
/* @__PURE__ */ n(e.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
32
|
-
/* @__PURE__ */ o(c, { className: "h-4 w-4" }),
|
33
|
-
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
34
|
-
] })
|
35
|
-
]
|
36
|
-
}
|
37
|
-
)
|
38
|
-
] }));
|
39
|
-
f.displayName = e.Content.displayName;
|
40
|
-
const p = ({
|
41
|
-
className: a,
|
42
|
-
...t
|
43
|
-
}) => /* @__PURE__ */ o(
|
44
|
-
"div",
|
45
|
-
{
|
46
|
-
className: i(
|
47
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
48
|
-
a
|
49
|
-
),
|
50
|
-
...t
|
51
|
-
}
|
52
|
-
);
|
53
|
-
p.displayName = "DialogHeader";
|
54
|
-
const g = ({
|
55
|
-
className: a,
|
56
|
-
...t
|
57
|
-
}) => /* @__PURE__ */ o(
|
58
|
-
"div",
|
59
|
-
{
|
60
|
-
className: i(
|
61
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
62
|
-
a
|
63
|
-
),
|
64
|
-
...t
|
65
|
-
}
|
66
|
-
);
|
67
|
-
g.displayName = "DialogFooter";
|
68
|
-
const u = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
69
|
-
e.Title,
|
70
|
-
{
|
71
|
-
ref: s,
|
72
|
-
className: i(
|
73
|
-
"text-lg font-semibold leading-none tracking-tight",
|
74
|
-
a
|
75
|
-
),
|
76
|
-
...t
|
77
|
-
}
|
78
|
-
));
|
79
|
-
u.displayName = e.Title.displayName;
|
80
|
-
const y = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
81
|
-
e.Description,
|
82
|
-
{
|
83
|
-
ref: s,
|
84
|
-
className: i("text-sm text-muted-foreground", a),
|
85
|
-
...t
|
86
|
-
}
|
87
|
-
));
|
88
|
-
y.displayName = e.Description.displayName;
|
89
|
-
export {
|
90
|
-
v as DialogClose,
|
91
|
-
f as DialogContent,
|
92
|
-
y as DialogDescription,
|
93
|
-
g as DialogFooter,
|
94
|
-
p as DialogHeader,
|
95
|
-
d as DialogOverlay,
|
96
|
-
m as DialogPortal,
|
97
|
-
b as DialogRoot,
|
98
|
-
u as DialogTitle,
|
99
|
-
h as DialogTrigger
|
100
|
-
};
|