@levo-so/react 0.1.40 → 0.1.44
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/{Sonner-5IAqCkBs.js → Sonner-BzW9wsXf.js} +11 -14
- package/dist/Spinner-DBvVyDMF.js +119 -0
- package/dist/Tooltip-BeY_STLA.js +281 -0
- package/dist/cn-C9QoOYNG.js +6 -0
- package/dist/components/Dialog.d.ts +2 -0
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/DialogWrapper.d.ts +1 -0
- package/dist/components/DialogWrapper.d.ts.map +1 -1
- package/dist/components/Sonner.d.ts.map +1 -1
- package/dist/components/index.js +20 -19
- package/dist/index.css +1 -1
- package/dist/index.js +57 -54
- package/dist/isEmptyObject-BoIi0jMB.js +21 -0
- package/dist/membership/components/Button.d.ts.map +1 -1
- package/dist/membership/components/Container.d.ts +1 -0
- package/dist/membership/components/Container.d.ts.map +1 -1
- package/dist/membership/index.d.ts +1 -0
- package/dist/membership/index.d.ts.map +1 -1
- package/dist/membership/index.js +155 -81
- package/dist/membership/useLevoOAuth.d.ts +17 -0
- package/dist/membership/useLevoOAuth.d.ts.map +1 -0
- package/dist/utils/errorHandler.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +5 -49
- package/dist/Tooltip-DcdGb876.js +0 -383
- package/dist/isEmptyObject-B9yh0nbg.js +0 -19
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const m = (...t) => a(e(t)), d = ({ ...t }) => /* @__PURE__ */ u.jsx(
|
|
7
|
-
n,
|
|
2
|
+
import { j as a } from "./jsx-runtime-D0AQ1Mn7.js";
|
|
3
|
+
import { Toaster as o, toast as e } from "sonner";
|
|
4
|
+
const g = ({ ...t }) => /* @__PURE__ */ a.jsx(
|
|
5
|
+
o,
|
|
8
6
|
{
|
|
9
7
|
closeButton: !0,
|
|
10
8
|
richColors: !0,
|
|
@@ -19,15 +17,15 @@ const m = (...t) => a(e(t)), d = ({ ...t }) => /* @__PURE__ */ u.jsx(
|
|
|
19
17
|
},
|
|
20
18
|
...t
|
|
21
19
|
}
|
|
22
|
-
),
|
|
23
|
-
|
|
20
|
+
), c = (t, s = "Error", r = {}) => {
|
|
21
|
+
r != null && r.id && e.dismiss(r == null ? void 0 : r.id), e.error(s, {
|
|
24
22
|
description: t,
|
|
25
23
|
duration: 4e3,
|
|
26
24
|
position: "bottom-right",
|
|
27
25
|
...r
|
|
28
26
|
});
|
|
29
|
-
},
|
|
30
|
-
|
|
27
|
+
}, m = (t, s = "Success", r = {}) => {
|
|
28
|
+
r != null && r.id && e.dismiss(r == null ? void 0 : r.id), e.success(s, {
|
|
31
29
|
description: t,
|
|
32
30
|
duration: 4e3,
|
|
33
31
|
position: "bottom-right",
|
|
@@ -35,8 +33,7 @@ const m = (...t) => a(e(t)), d = ({ ...t }) => /* @__PURE__ */ u.jsx(
|
|
|
35
33
|
});
|
|
36
34
|
};
|
|
37
35
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
b as s
|
|
36
|
+
g as T,
|
|
37
|
+
c as e,
|
|
38
|
+
m as s
|
|
42
39
|
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { j as d } from "./jsx-runtime-D0AQ1Mn7.js";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { c as v } from "./cn-C9QoOYNG.js";
|
|
4
|
+
var p = {
|
|
5
|
+
color: void 0,
|
|
6
|
+
size: void 0,
|
|
7
|
+
className: void 0,
|
|
8
|
+
style: void 0,
|
|
9
|
+
attr: void 0
|
|
10
|
+
}, f = a.createContext && /* @__PURE__ */ a.createContext(p), O = ["attr", "size", "title"];
|
|
11
|
+
function y(t, e) {
|
|
12
|
+
if (t == null) return {};
|
|
13
|
+
var r = h(t, e), n, i;
|
|
14
|
+
if (Object.getOwnPropertySymbols) {
|
|
15
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
16
|
+
for (i = 0; i < o.length; i++)
|
|
17
|
+
n = o[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
|
|
18
|
+
}
|
|
19
|
+
return r;
|
|
20
|
+
}
|
|
21
|
+
function h(t, e) {
|
|
22
|
+
if (t == null) return {};
|
|
23
|
+
var r = {};
|
|
24
|
+
for (var n in t)
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
26
|
+
if (e.indexOf(n) >= 0) continue;
|
|
27
|
+
r[n] = t[n];
|
|
28
|
+
}
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
function l() {
|
|
32
|
+
return l = Object.assign ? Object.assign.bind() : function(t) {
|
|
33
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
34
|
+
var r = arguments[e];
|
|
35
|
+
for (var n in r)
|
|
36
|
+
Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
|
|
37
|
+
}
|
|
38
|
+
return t;
|
|
39
|
+
}, l.apply(this, arguments);
|
|
40
|
+
}
|
|
41
|
+
function m(t, e) {
|
|
42
|
+
var r = Object.keys(t);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
45
|
+
e && (n = n.filter(function(i) {
|
|
46
|
+
return Object.getOwnPropertyDescriptor(t, i).enumerable;
|
|
47
|
+
})), r.push.apply(r, n);
|
|
48
|
+
}
|
|
49
|
+
return r;
|
|
50
|
+
}
|
|
51
|
+
function u(t) {
|
|
52
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
53
|
+
var r = arguments[e] != null ? arguments[e] : {};
|
|
54
|
+
e % 2 ? m(Object(r), !0).forEach(function(n) {
|
|
55
|
+
j(t, n, r[n]);
|
|
56
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : m(Object(r)).forEach(function(n) {
|
|
57
|
+
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
function j(t, e, r) {
|
|
63
|
+
return e = w(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
64
|
+
}
|
|
65
|
+
function w(t) {
|
|
66
|
+
var e = P(t, "string");
|
|
67
|
+
return typeof e == "symbol" ? e : e + "";
|
|
68
|
+
}
|
|
69
|
+
function P(t, e) {
|
|
70
|
+
if (typeof t != "object" || !t) return t;
|
|
71
|
+
var r = t[Symbol.toPrimitive];
|
|
72
|
+
if (r !== void 0) {
|
|
73
|
+
var n = r.call(t, e || "default");
|
|
74
|
+
if (typeof n != "object") return n;
|
|
75
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
76
|
+
}
|
|
77
|
+
return (e === "string" ? String : Number)(t);
|
|
78
|
+
}
|
|
79
|
+
function g(t) {
|
|
80
|
+
return t && t.map((e, r) => /* @__PURE__ */ a.createElement(e.tag, u({
|
|
81
|
+
key: r
|
|
82
|
+
}, e.attr), g(e.child)));
|
|
83
|
+
}
|
|
84
|
+
function x(t) {
|
|
85
|
+
return (e) => /* @__PURE__ */ a.createElement(E, l({
|
|
86
|
+
attr: u({}, t.attr)
|
|
87
|
+
}, e), g(t.child));
|
|
88
|
+
}
|
|
89
|
+
function E(t) {
|
|
90
|
+
var e = (r) => {
|
|
91
|
+
var {
|
|
92
|
+
attr: n,
|
|
93
|
+
size: i,
|
|
94
|
+
title: o
|
|
95
|
+
} = t, b = y(t, O), s = i || r.size || "1em", c;
|
|
96
|
+
return r.className && (c = r.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ a.createElement("svg", l({
|
|
97
|
+
stroke: "currentColor",
|
|
98
|
+
fill: "currentColor",
|
|
99
|
+
strokeWidth: "0"
|
|
100
|
+
}, r.attr, n, b, {
|
|
101
|
+
className: c,
|
|
102
|
+
style: u(u({
|
|
103
|
+
color: t.color || r.color
|
|
104
|
+
}, r.style), t.style),
|
|
105
|
+
height: s,
|
|
106
|
+
width: s,
|
|
107
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
108
|
+
}), o && /* @__PURE__ */ a.createElement("title", null, o), t.children);
|
|
109
|
+
};
|
|
110
|
+
return f !== void 0 ? /* @__PURE__ */ a.createElement(f.Consumer, null, (r) => e(r)) : e(p);
|
|
111
|
+
}
|
|
112
|
+
function _(t) {
|
|
113
|
+
return x({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 22c5.421 0 10-4.579 10-10h-2c0 4.337-3.663 8-8 8s-8-3.663-8-8c0-4.336 3.663-8 8-8V2C6.579 2 2 6.58 2 12c0 5.421 4.579 10 10 10z" }, child: [] }] })(t);
|
|
114
|
+
}
|
|
115
|
+
const z = ({ className: t }) => /* @__PURE__ */ d.jsx(_, { className: v("h-8 w-8 animate-spin font-light", t) });
|
|
116
|
+
export {
|
|
117
|
+
_ as B,
|
|
118
|
+
z as S
|
|
119
|
+
};
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "./jsx-runtime-D0AQ1Mn7.js";
|
|
3
|
+
import { Slot as w } from "@radix-ui/react-slot";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { B as T } from "./Spinner-DBvVyDMF.js";
|
|
6
|
+
import { twMerge as D } from "tailwind-merge";
|
|
7
|
+
import { c as r } from "./cn-C9QoOYNG.js";
|
|
8
|
+
import { cva as C } from "class-variance-authority";
|
|
9
|
+
import * as s from "@radix-ui/react-dialog";
|
|
10
|
+
import { X as R } from "lucide-react";
|
|
11
|
+
import * as c from "@radix-ui/react-tabs";
|
|
12
|
+
import * as f from "@radix-ui/react-tooltip";
|
|
13
|
+
const k = C(
|
|
14
|
+
"inline-flex items-center justify-center text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",
|
|
15
|
+
{
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
19
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
20
|
+
destructiveOutline: "border border-red-500 text-destructive bg-transparent shadow-sm hover:bg-destructive hover:text-destructive-foreground",
|
|
21
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
22
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
23
|
+
secondaryOutline: "bg-transparent border-[1px] border-solid border-white hover:bg-white hover:border-input",
|
|
24
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
25
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
default: "h-10 px-4 py-2",
|
|
29
|
+
xs: "h-8 px-3 text-xs",
|
|
30
|
+
sm: "h-9 px-3",
|
|
31
|
+
lg: "h-11 px-8",
|
|
32
|
+
icon: "h-10 w-10",
|
|
33
|
+
"icon-small": "h-8 w-8"
|
|
34
|
+
},
|
|
35
|
+
rounded: {
|
|
36
|
+
small: "rounded",
|
|
37
|
+
default: "rounded-md",
|
|
38
|
+
large: "rounded-lg",
|
|
39
|
+
full: "rounded-full"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
variant: "default",
|
|
44
|
+
size: "default",
|
|
45
|
+
rounded: "default"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
), z = n.forwardRef(
|
|
49
|
+
({
|
|
50
|
+
className: a,
|
|
51
|
+
variant: t,
|
|
52
|
+
size: o,
|
|
53
|
+
rounded: i,
|
|
54
|
+
asChild: l = !1,
|
|
55
|
+
isLoading: d = !1,
|
|
56
|
+
loadingText: m,
|
|
57
|
+
disabled: y,
|
|
58
|
+
...u
|
|
59
|
+
}, N) => {
|
|
60
|
+
const j = l ? w : "button";
|
|
61
|
+
return /* @__PURE__ */ e.jsx(
|
|
62
|
+
j,
|
|
63
|
+
{
|
|
64
|
+
className: r(k({ variant: t, size: o, rounded: i, className: a })),
|
|
65
|
+
ref: N,
|
|
66
|
+
disabled: y || d,
|
|
67
|
+
type: "button",
|
|
68
|
+
...u,
|
|
69
|
+
children: d ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
70
|
+
/* @__PURE__ */ e.jsx(
|
|
71
|
+
T,
|
|
72
|
+
{
|
|
73
|
+
className: D(
|
|
74
|
+
"h-4 w-4 animate-spin",
|
|
75
|
+
m ? "mr-2" : ""
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
m
|
|
80
|
+
] }) : u.children
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
z.displayName = "Button";
|
|
86
|
+
const P = s.Root, J = s.Trigger, O = s.Portal, K = s.Close, g = n.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e.jsx(
|
|
87
|
+
s.Overlay,
|
|
88
|
+
{
|
|
89
|
+
ref: o,
|
|
90
|
+
className: r(
|
|
91
|
+
"fixed inset-0 z-50 grid max-h-screen place-items-center overflow-y-auto bg-background/80 py-10 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
92
|
+
a
|
|
93
|
+
),
|
|
94
|
+
...t
|
|
95
|
+
}
|
|
96
|
+
));
|
|
97
|
+
g.displayName = s.Overlay.displayName;
|
|
98
|
+
const p = n.forwardRef(
|
|
99
|
+
({
|
|
100
|
+
className: a,
|
|
101
|
+
children: t,
|
|
102
|
+
container: o,
|
|
103
|
+
hideCloseButton: i,
|
|
104
|
+
overlayStyles: l,
|
|
105
|
+
...d
|
|
106
|
+
}, m) => /* @__PURE__ */ e.jsx(O, { container: o, children: /* @__PURE__ */ e.jsx(g, { className: l, children: /* @__PURE__ */ e.jsxs(
|
|
107
|
+
s.Content,
|
|
108
|
+
{
|
|
109
|
+
ref: m,
|
|
110
|
+
className: r(
|
|
111
|
+
"relative z-50 grid w-full max-w-lg 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 sm:rounded-lg",
|
|
112
|
+
a
|
|
113
|
+
),
|
|
114
|
+
...d,
|
|
115
|
+
children: [
|
|
116
|
+
t,
|
|
117
|
+
!i && /* @__PURE__ */ e.jsxs(
|
|
118
|
+
s.Close,
|
|
119
|
+
{
|
|
120
|
+
type: "button",
|
|
121
|
+
className: "absolute right-4 top-4 rounded-sm p-1 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",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ e.jsx(R, { className: "h-4 w-4" }),
|
|
124
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
) }) })
|
|
131
|
+
);
|
|
132
|
+
p.displayName = s.Content.displayName;
|
|
133
|
+
const x = ({
|
|
134
|
+
className: a,
|
|
135
|
+
...t
|
|
136
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
className: r(
|
|
140
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
141
|
+
a
|
|
142
|
+
),
|
|
143
|
+
...t
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
x.displayName = "DialogHeader";
|
|
147
|
+
const B = ({
|
|
148
|
+
className: a,
|
|
149
|
+
...t
|
|
150
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
className: r(
|
|
154
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
155
|
+
a
|
|
156
|
+
),
|
|
157
|
+
...t
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
B.displayName = "DialogFooter";
|
|
161
|
+
const b = n.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e.jsx(
|
|
162
|
+
s.Title,
|
|
163
|
+
{
|
|
164
|
+
ref: o,
|
|
165
|
+
className: r(
|
|
166
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
167
|
+
a
|
|
168
|
+
),
|
|
169
|
+
...t
|
|
170
|
+
}
|
|
171
|
+
));
|
|
172
|
+
b.displayName = s.Title.displayName;
|
|
173
|
+
const v = n.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e.jsx(
|
|
174
|
+
s.Description,
|
|
175
|
+
{
|
|
176
|
+
ref: o,
|
|
177
|
+
className: r("text-sm text-muted-foreground", a),
|
|
178
|
+
...t
|
|
179
|
+
}
|
|
180
|
+
));
|
|
181
|
+
v.displayName = s.Description.displayName;
|
|
182
|
+
const Q = ({
|
|
183
|
+
isOpen: a,
|
|
184
|
+
onClose: t,
|
|
185
|
+
children: o,
|
|
186
|
+
title: i,
|
|
187
|
+
description: l = "",
|
|
188
|
+
contentClassName: d,
|
|
189
|
+
modal: m = !0
|
|
190
|
+
}) => /* @__PURE__ */ e.jsx(P, { open: a, onOpenChange: t, modal: m, children: /* @__PURE__ */ e.jsxs(p, { className: d, children: [
|
|
191
|
+
i && /* @__PURE__ */ e.jsxs(x, { className: "flex-1 font-medium", children: [
|
|
192
|
+
/* @__PURE__ */ e.jsx(b, { children: i }),
|
|
193
|
+
/* @__PURE__ */ e.jsx(v, { children: l })
|
|
194
|
+
] }),
|
|
195
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-full", children: o })
|
|
196
|
+
] }) }), U = c.Root, F = n.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e.jsx(
|
|
197
|
+
c.List,
|
|
198
|
+
{
|
|
199
|
+
ref: o,
|
|
200
|
+
className: r(
|
|
201
|
+
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
|
|
202
|
+
a
|
|
203
|
+
),
|
|
204
|
+
...t
|
|
205
|
+
}
|
|
206
|
+
));
|
|
207
|
+
F.displayName = c.List.displayName;
|
|
208
|
+
const L = n.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e.jsx(
|
|
209
|
+
c.Trigger,
|
|
210
|
+
{
|
|
211
|
+
ref: o,
|
|
212
|
+
className: r(
|
|
213
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
214
|
+
a
|
|
215
|
+
),
|
|
216
|
+
"data-levo-studio-interactive": "true",
|
|
217
|
+
...t
|
|
218
|
+
}
|
|
219
|
+
));
|
|
220
|
+
L.displayName = c.Trigger.displayName;
|
|
221
|
+
const S = n.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e.jsx(
|
|
222
|
+
c.Content,
|
|
223
|
+
{
|
|
224
|
+
ref: o,
|
|
225
|
+
className: r(
|
|
226
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
227
|
+
a
|
|
228
|
+
),
|
|
229
|
+
...t
|
|
230
|
+
}
|
|
231
|
+
));
|
|
232
|
+
S.displayName = c.Content.displayName;
|
|
233
|
+
const Y = f.Provider, H = f.Root, V = f.Trigger, W = f.Portal, h = n.forwardRef(({ className: a, sideOffset: t = 4, ...o }, i) => /* @__PURE__ */ e.jsx(
|
|
234
|
+
f.Content,
|
|
235
|
+
{
|
|
236
|
+
ref: i,
|
|
237
|
+
sideOffset: t,
|
|
238
|
+
className: r(
|
|
239
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
240
|
+
a
|
|
241
|
+
),
|
|
242
|
+
...o
|
|
243
|
+
}
|
|
244
|
+
));
|
|
245
|
+
h.displayName = f.Content.displayName;
|
|
246
|
+
const Z = ({
|
|
247
|
+
children: a,
|
|
248
|
+
label: t,
|
|
249
|
+
labelClassName: o,
|
|
250
|
+
contentClassName: i,
|
|
251
|
+
asChild: l = !0,
|
|
252
|
+
contentProps: d = {}
|
|
253
|
+
}) => /* @__PURE__ */ e.jsxs(H, { children: [
|
|
254
|
+
t && /* @__PURE__ */ e.jsx(W, { children: /* @__PURE__ */ e.jsx(h, { className: o, ...d, children: /* @__PURE__ */ e.jsx("p", { className: i, children: t }) }) }),
|
|
255
|
+
/* @__PURE__ */ e.jsx(V, { asChild: l, children: a })
|
|
256
|
+
] });
|
|
257
|
+
export {
|
|
258
|
+
z as B,
|
|
259
|
+
P as D,
|
|
260
|
+
Z as S,
|
|
261
|
+
U as T,
|
|
262
|
+
O as a,
|
|
263
|
+
k as b,
|
|
264
|
+
g as c,
|
|
265
|
+
J as d,
|
|
266
|
+
p as e,
|
|
267
|
+
x as f,
|
|
268
|
+
B as g,
|
|
269
|
+
b as h,
|
|
270
|
+
v as i,
|
|
271
|
+
K as j,
|
|
272
|
+
Q as k,
|
|
273
|
+
F as l,
|
|
274
|
+
L as m,
|
|
275
|
+
S as n,
|
|
276
|
+
H as o,
|
|
277
|
+
V as p,
|
|
278
|
+
h as q,
|
|
279
|
+
Y as r,
|
|
280
|
+
W as s
|
|
281
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DialogPortalProps } from '@radix-ui/react-dialog';
|
|
1
2
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
@@ -8,6 +9,7 @@ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitiv
|
|
|
8
9
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
10
|
hideCloseButton?: boolean;
|
|
10
11
|
overlayStyles?: string;
|
|
12
|
+
container?: DialogPortalProps["container"];
|
|
11
13
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
14
|
declare const DialogHeader: {
|
|
13
15
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAIH,QAAA,MAAM,aAAa;sBAGG,OAAO;oBACT,MAAM;gBACV,iBAAiB,CAAC,WAAW,CAAC;wCAsC7C,CAAC;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAIF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAIH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAIH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogWrapper.d.ts","sourceRoot":"","sources":["../../src/components/DialogWrapper.tsx"],"names":[],"mappings":"AAQA,UAAU,gBAAgB;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DialogWrapper.d.ts","sourceRoot":"","sources":["../../src/components/DialogWrapper.tsx"],"names":[],"mappings":"AAQA,UAAU,gBAAgB;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoBpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sonner.d.ts","sourceRoot":"","sources":["../../src/components/Sonner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEtE,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,OAAO,GAAI,cAAc,YAAY,4CAkBjD,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,SAAS,MAAM,EACf,cAAe,EACf,UAAS,aAAkB,
|
|
1
|
+
{"version":3,"file":"Sonner.d.ts","sourceRoot":"","sources":["../../src/components/Sonner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEtE,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,OAAO,GAAI,cAAc,YAAY,4CAkBjD,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,SAAS,MAAM,EACf,cAAe,EACf,UAAS,aAAkB,SAY5B,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,SAAS,MAAM,EACf,cAAiB,EACjB,UAAS,aAAkB,SAY5B,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { B as s, D as
|
|
2
|
-
import { T as
|
|
3
|
-
import {
|
|
1
|
+
import { B as s, D as r, j as t, e as i, i as e, g as l, f as T, c as g, a as p, h as n, d as D, k as b, S as m, T as f, n as c, l as x, m as C, o as S, q as d, s as u, r as P, p as v, b as B } from "../Tooltip-BeY_STLA.js";
|
|
2
|
+
import { T as h, e as j, s as k } from "../Sonner-BzW9wsXf.js";
|
|
3
|
+
import { S as y } from "../Spinner-DBvVyDMF.js";
|
|
4
|
+
import { toast as H } from "sonner";
|
|
4
5
|
export {
|
|
5
6
|
s as Button,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
r as Dialog,
|
|
8
|
+
t as DialogClose,
|
|
8
9
|
i as DialogContent,
|
|
9
10
|
e as DialogDescription,
|
|
10
11
|
l as DialogFooter,
|
|
@@ -15,19 +16,19 @@ export {
|
|
|
15
16
|
D as DialogTrigger,
|
|
16
17
|
b as DialogWrapper,
|
|
17
18
|
m as SimpleTooltipWrapper,
|
|
18
|
-
|
|
19
|
+
y as Spinner,
|
|
19
20
|
f as Tabs,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
c as TabsContent,
|
|
22
|
+
x as TabsList,
|
|
23
|
+
C as TabsTrigger,
|
|
24
|
+
h as Toaster,
|
|
25
|
+
S as Tooltip,
|
|
26
|
+
d as TooltipContent,
|
|
27
|
+
u as TooltipPortal,
|
|
28
|
+
P as TooltipProvider,
|
|
29
|
+
v as TooltipTrigger,
|
|
30
|
+
B as buttonVariants,
|
|
31
|
+
j as errorToast,
|
|
32
|
+
k as successToast,
|
|
33
|
+
H as toast
|
|
33
34
|
};
|