@oneplatformdev/ui 0.0.1-beta.95 → 0.0.1-beta.96
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/Sheet/Sheet.d.ts +5 -2
- package/Sheet/Sheet.mjs +33 -33
- package/package.json +1 -1
package/Sheet/Sheet.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
-
import * as React from
|
3
|
-
import * as SheetPrimitive from
|
2
|
+
import * as React from 'react';
|
3
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
4
4
|
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
5
5
|
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
6
6
|
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
@@ -10,6 +10,9 @@ declare const sheetVariants: (props?: ({
|
|
10
10
|
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
11
11
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
12
12
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
13
|
+
slotProps?: {
|
14
|
+
overlay?: React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>;
|
15
|
+
};
|
13
16
|
}
|
14
17
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
15
18
|
declare const SheetHeader: {
|
package/Sheet/Sheet.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { jsx as o, jsxs as
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
2
2
|
import * as r from "react";
|
3
3
|
import * as e from "@radix-ui/react-dialog";
|
4
|
-
import { cva as
|
5
|
-
import { X as
|
4
|
+
import { cva as f } from "class-variance-authority";
|
5
|
+
import { X as p } from "lucide-react";
|
6
6
|
import { cn as i } from "@oneplatformdev/utils";
|
7
|
-
const
|
7
|
+
const R = e.Root, T = e.Trigger, j = e.Close, h = e.Portal, l = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
|
8
8
|
e.Overlay,
|
9
9
|
{
|
10
10
|
className: i(
|
@@ -15,8 +15,8 @@ const C = e.Root, R = e.Trigger, T = e.Close, p = e.Portal, d = r.forwardRef(({
|
|
15
15
|
ref: s
|
16
16
|
}
|
17
17
|
));
|
18
|
-
|
19
|
-
const
|
18
|
+
l.displayName = e.Overlay.displayName;
|
19
|
+
const g = f(
|
20
20
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
21
21
|
{
|
22
22
|
variants: {
|
@@ -31,17 +31,17 @@ const h = c(
|
|
31
31
|
side: "right"
|
32
32
|
}
|
33
33
|
}
|
34
|
-
),
|
35
|
-
/* @__PURE__ */ o(
|
36
|
-
/* @__PURE__ */
|
34
|
+
), u = r.forwardRef(({ side: t = "right", className: a, children: s, slotProps: n, ...m }, c) => /* @__PURE__ */ d(h, { children: [
|
35
|
+
/* @__PURE__ */ o(l, { ...(n == null ? void 0 : n.overlay) || {} }),
|
36
|
+
/* @__PURE__ */ d(
|
37
37
|
e.Content,
|
38
38
|
{
|
39
|
-
ref:
|
40
|
-
className: i(
|
41
|
-
...
|
39
|
+
ref: c,
|
40
|
+
className: i(g({ side: t }), a),
|
41
|
+
...m,
|
42
42
|
children: [
|
43
|
-
/* @__PURE__ */
|
44
|
-
/* @__PURE__ */ o(
|
43
|
+
/* @__PURE__ */ d(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-secondary", children: [
|
44
|
+
/* @__PURE__ */ o(p, { className: "h-4 w-4" }),
|
45
45
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
46
46
|
] }),
|
47
47
|
s
|
@@ -49,8 +49,8 @@ const h = c(
|
|
49
49
|
}
|
50
50
|
)
|
51
51
|
] }));
|
52
|
-
|
53
|
-
const
|
52
|
+
u.displayName = e.Content.displayName;
|
53
|
+
const y = ({
|
54
54
|
className: t,
|
55
55
|
...a
|
56
56
|
}) => /* @__PURE__ */ o(
|
@@ -63,8 +63,8 @@ const u = ({
|
|
63
63
|
...a
|
64
64
|
}
|
65
65
|
);
|
66
|
-
|
67
|
-
const
|
66
|
+
y.displayName = "SheetHeader";
|
67
|
+
const x = ({
|
68
68
|
className: t,
|
69
69
|
...a
|
70
70
|
}) => /* @__PURE__ */ o(
|
@@ -77,8 +77,8 @@ const y = ({
|
|
77
77
|
...a
|
78
78
|
}
|
79
79
|
);
|
80
|
-
|
81
|
-
const
|
80
|
+
x.displayName = "SheetFooter";
|
81
|
+
const N = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
|
82
82
|
e.Title,
|
83
83
|
{
|
84
84
|
ref: s,
|
@@ -86,8 +86,8 @@ const x = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
|
|
86
86
|
...a
|
87
87
|
}
|
88
88
|
));
|
89
|
-
|
90
|
-
const
|
89
|
+
N.displayName = e.Title.displayName;
|
90
|
+
const b = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
|
91
91
|
e.Description,
|
92
92
|
{
|
93
93
|
ref: s,
|
@@ -95,16 +95,16 @@ const N = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
|
|
95
95
|
...a
|
96
96
|
}
|
97
97
|
));
|
98
|
-
|
98
|
+
b.displayName = e.Description.displayName;
|
99
99
|
export {
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
100
|
+
R as Sheet,
|
101
|
+
j as SheetClose,
|
102
|
+
u as SheetContent,
|
103
|
+
b as SheetDescription,
|
104
|
+
x as SheetFooter,
|
105
|
+
y as SheetHeader,
|
106
|
+
l as SheetOverlay,
|
107
|
+
h as SheetPortal,
|
108
|
+
N as SheetTitle,
|
109
|
+
T as SheetTrigger
|
110
110
|
};
|