@adamosuiteservices/ui 2.10.2 → 2.10.3
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/components/ui/dialog/dialog.d.ts +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +34 -34
- package/package.json +1 -1
|
@@ -14,5 +14,5 @@ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div
|
|
|
14
14
|
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
declare function DialogBody({ className, ...props }: React.ComponentProps<
|
|
17
|
+
declare function DialogBody({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogBody, DialogTrigger, };
|
package/dist/dialog.cjs
CHANGED
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
`,children:[t.jsxRuntimeExports.jsx(m.Icon,{symbol:"close"}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:a,...o}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:s.cn("adm:flex adm:flex-col adm:gap-2",a),...o})}function f({className:a,...o}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:s.cn(`
|
|
31
31
|
adm:flex adm:gap-2
|
|
32
32
|
adm:sm:flex-row adm:sm:justify-start
|
|
33
|
-
`,a),...o})}function j({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Title,{"data-slot":"dialog-title",className:s.cn("adm:leading-none adm:font-semibold adm:text-neutral-700",a),...o})}function D({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Description,{"data-slot":"dialog-description",className:s.cn("adm:text-sm adm:text-muted-foreground",a),...o})}function R({className:a,...o}){return t.jsxRuntimeExports.jsx(
|
|
33
|
+
`,a),...o})}function j({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Title,{"data-slot":"dialog-title",className:s.cn("adm:leading-none adm:font-semibold adm:text-neutral-700",a),...o})}function D({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Description,{"data-slot":"dialog-description",className:s.cn("adm:text-sm adm:text-muted-foreground",a),...o})}function R({className:a,...o}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-body",className:s.cn("adm:mt-2 adm:mb-6",a),...o})}exports.Dialog=c;exports.DialogBody=R;exports.DialogClose=g;exports.DialogContent=x;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=d;exports.DialogTitle=j;exports.DialogTrigger=u;
|
package/dist/dialog.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { R as
|
|
2
|
+
import { R as i, C as e, a as l, D as r, O as c, P as g, b as u, T as f } from "./index-DniCthJA.js";
|
|
3
3
|
import { I as x } from "./icon-DG_i4bz2.js";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as o } from "./index-CRiPKpXj.js";
|
|
5
5
|
import "react";
|
|
6
6
|
function N({
|
|
7
7
|
...a
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */ t.jsx(
|
|
9
|
+
return /* @__PURE__ */ t.jsx(i, { "data-slot": "dialog", ...a });
|
|
10
10
|
}
|
|
11
11
|
function z({
|
|
12
12
|
...a
|
|
@@ -25,13 +25,13 @@ function C({
|
|
|
25
25
|
}
|
|
26
26
|
function j({
|
|
27
27
|
className: a,
|
|
28
|
-
...
|
|
28
|
+
...d
|
|
29
29
|
}) {
|
|
30
30
|
return /* @__PURE__ */ t.jsx(
|
|
31
31
|
c,
|
|
32
32
|
{
|
|
33
33
|
"data-slot": "dialog-overlay",
|
|
34
|
-
className:
|
|
34
|
+
className: o(
|
|
35
35
|
`
|
|
36
36
|
adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50
|
|
37
37
|
adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0
|
|
@@ -39,25 +39,25 @@ function j({
|
|
|
39
39
|
`,
|
|
40
40
|
a
|
|
41
41
|
),
|
|
42
|
-
...
|
|
42
|
+
...d
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
function _({
|
|
47
47
|
className: a,
|
|
48
|
-
children:
|
|
49
|
-
showCloseButton:
|
|
50
|
-
theme:
|
|
51
|
-
...
|
|
48
|
+
children: d,
|
|
49
|
+
showCloseButton: s = !0,
|
|
50
|
+
theme: n,
|
|
51
|
+
...m
|
|
52
52
|
}) {
|
|
53
53
|
return /* @__PURE__ */ t.jsxs(p, { "data-slot": "dialog-portal", children: [
|
|
54
54
|
/* @__PURE__ */ t.jsx(j, {}),
|
|
55
55
|
/* @__PURE__ */ t.jsxs(
|
|
56
|
-
|
|
56
|
+
l,
|
|
57
57
|
{
|
|
58
|
-
"data-theme":
|
|
58
|
+
"data-theme": n,
|
|
59
59
|
"data-slot": "dialog-content",
|
|
60
|
-
className:
|
|
60
|
+
className: o(
|
|
61
61
|
`
|
|
62
62
|
adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:grid adm:w-full
|
|
63
63
|
adm:max-w-[calc(100%-2rem)] adm:translate-x-[-50%]
|
|
@@ -72,10 +72,10 @@ function _({
|
|
|
72
72
|
`,
|
|
73
73
|
a
|
|
74
74
|
),
|
|
75
|
-
...
|
|
75
|
+
...m,
|
|
76
76
|
children: [
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
d,
|
|
78
|
+
s && /* @__PURE__ */ t.jsxs(
|
|
79
79
|
e,
|
|
80
80
|
{
|
|
81
81
|
"data-slot": "dialog-close",
|
|
@@ -105,68 +105,68 @@ function _({
|
|
|
105
105
|
)
|
|
106
106
|
] });
|
|
107
107
|
}
|
|
108
|
-
function k({ className: a, ...
|
|
108
|
+
function k({ className: a, ...d }) {
|
|
109
109
|
return /* @__PURE__ */ t.jsx(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
112
|
"data-slot": "dialog-header",
|
|
113
|
-
className:
|
|
114
|
-
...
|
|
113
|
+
className: o("adm:flex adm:flex-col adm:gap-2", a),
|
|
114
|
+
...d
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
|
-
function w({ className: a, ...
|
|
118
|
+
function w({ className: a, ...d }) {
|
|
119
119
|
return /* @__PURE__ */ t.jsx(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
122
122
|
"data-slot": "dialog-footer",
|
|
123
|
-
className:
|
|
123
|
+
className: o(
|
|
124
124
|
`
|
|
125
125
|
adm:flex adm:gap-2
|
|
126
126
|
adm:sm:flex-row adm:sm:justify-start
|
|
127
127
|
`,
|
|
128
128
|
a
|
|
129
129
|
),
|
|
130
|
-
...
|
|
130
|
+
...d
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
134
|
function T({
|
|
135
135
|
className: a,
|
|
136
|
-
...
|
|
136
|
+
...d
|
|
137
137
|
}) {
|
|
138
138
|
return /* @__PURE__ */ t.jsx(
|
|
139
139
|
u,
|
|
140
140
|
{
|
|
141
141
|
"data-slot": "dialog-title",
|
|
142
|
-
className:
|
|
143
|
-
...
|
|
142
|
+
className: o("adm:leading-none adm:font-semibold adm:text-neutral-700", a),
|
|
143
|
+
...d
|
|
144
144
|
}
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
147
|
function O({
|
|
148
148
|
className: a,
|
|
149
|
-
...
|
|
149
|
+
...d
|
|
150
150
|
}) {
|
|
151
151
|
return /* @__PURE__ */ t.jsx(
|
|
152
|
-
|
|
152
|
+
r,
|
|
153
153
|
{
|
|
154
154
|
"data-slot": "dialog-description",
|
|
155
|
-
className:
|
|
156
|
-
...
|
|
155
|
+
className: o("adm:text-sm adm:text-muted-foreground", a),
|
|
156
|
+
...d
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
160
|
function P({
|
|
161
161
|
className: a,
|
|
162
|
-
...
|
|
162
|
+
...d
|
|
163
163
|
}) {
|
|
164
164
|
return /* @__PURE__ */ t.jsx(
|
|
165
|
-
|
|
165
|
+
"div",
|
|
166
166
|
{
|
|
167
|
-
"data-slot": "dialog-
|
|
168
|
-
className:
|
|
169
|
-
...
|
|
167
|
+
"data-slot": "dialog-body",
|
|
168
|
+
className: o("adm:mt-2 adm:mb-6", a),
|
|
169
|
+
...d
|
|
170
170
|
}
|
|
171
171
|
);
|
|
172
172
|
}
|