@adamosuiteservices/ui 2.10.2 → 2.10.4
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/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +10 -9
- package/dist/dialog.js +38 -37
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/dialog.cjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),e=require("./index-BFyr34mw.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),e=require("./index-BFyr34mw.cjs"),r=require("./icon-Bg5HV6Ls.cjs"),d=require("./index-DoxiiusW.cjs");require("react");function c({...a}){return t.jsxRuntimeExports.jsx(e.Root,{"data-slot":"dialog",...a})}function x({...a}){return t.jsxRuntimeExports.jsx(e.Trigger,{"data-slot":"dialog-trigger",...a})}function s({...a}){return t.jsxRuntimeExports.jsx(e.Portal,{"data-slot":"dialog-portal",...a})}function u({...a}){return t.jsxRuntimeExports.jsx(e.Close,{"data-slot":"dialog-close",...a})}function n({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Overlay,{"data-slot":"dialog-overlay",className:d.cn(`
|
|
2
2
|
adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50
|
|
3
3
|
adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0
|
|
4
4
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
5
|
-
`,a),...o})}function
|
|
6
|
-
adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:
|
|
7
|
-
adm:max-
|
|
8
|
-
adm:translate-
|
|
9
|
-
adm:bg-background adm:p-6 adm:shadow-xs
|
|
5
|
+
`,a),...o})}function g({className:a,children:o,showCloseButton:i=!0,theme:l,...m}){return t.jsxRuntimeExports.jsxs(s,{"data-slot":"dialog-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(e.Content,{"data-theme":l,"data-slot":"dialog-content",className:d.cn(`
|
|
6
|
+
adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:flex
|
|
7
|
+
adm:max-h-[calc(100dvh-32px)] adm:w-full adm:max-w-[calc(100%-2rem)]
|
|
8
|
+
adm:translate-x-[-50%] adm:translate-y-[-50%] adm:flex-col adm:gap-4
|
|
9
|
+
adm:rounded-lg adm:border adm:bg-background adm:p-6 adm:shadow-xs
|
|
10
|
+
adm:duration-200
|
|
10
11
|
adm:data-[state=closed]:animate-out
|
|
11
12
|
adm:data-[state=closed]:fade-out-0
|
|
12
13
|
adm:data-[state=closed]:zoom-out-95
|
|
13
14
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
14
15
|
adm:data-[state=open]:zoom-in-95
|
|
15
16
|
adm:sm:max-w-lg
|
|
16
|
-
`,a),...
|
|
17
|
+
`,a),...m,children:[o,i&&t.jsxRuntimeExports.jsxs(e.Close,{"data-slot":"dialog-close",className:`
|
|
17
18
|
adm:absolute adm:top-4 adm:right-4 adm:flex adm:rounded-xs
|
|
18
19
|
adm:opacity-70 adm:ring-offset-background adm:transition-opacity
|
|
19
20
|
adm:hover:opacity-100
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
28
29
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
29
30
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
30
|
-
`,children:[t.jsxRuntimeExports.jsx(
|
|
31
|
+
`,children:[t.jsxRuntimeExports.jsx(r.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:d.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:d.cn(`
|
|
31
32
|
adm:flex adm:gap-2
|
|
32
33
|
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:
|
|
34
|
+
`,a),...o})}function j({className:a,...o}){return t.jsxRuntimeExports.jsx(e.Title,{"data-slot":"dialog-title",className:d.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:d.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:d.cn("adm:mt-2 adm:mb-6",a),...o})}exports.Dialog=c;exports.DialogBody=R;exports.DialogClose=u;exports.DialogContent=g;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=p;exports.DialogOverlay=n;exports.DialogPortal=s;exports.DialogTitle=j;exports.DialogTrigger=x;
|
package/dist/dialog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { R as l, C as e, a as
|
|
2
|
+
import { R as l, C as e, a as i, 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
|
|
@@ -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,30 +39,31 @@ 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
|
+
i,
|
|
57
57
|
{
|
|
58
|
-
"data-theme":
|
|
58
|
+
"data-theme": n,
|
|
59
59
|
"data-slot": "dialog-content",
|
|
60
|
-
className:
|
|
60
|
+
className: o(
|
|
61
61
|
`
|
|
62
|
-
adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:
|
|
63
|
-
adm:max-
|
|
64
|
-
adm:translate-
|
|
65
|
-
adm:bg-background adm:p-6 adm:shadow-xs
|
|
62
|
+
adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:flex
|
|
63
|
+
adm:max-h-[calc(100dvh-32px)] adm:w-full adm:max-w-[calc(100%-2rem)]
|
|
64
|
+
adm:translate-x-[-50%] adm:translate-y-[-50%] adm:flex-col adm:gap-4
|
|
65
|
+
adm:rounded-lg adm:border adm:bg-background adm:p-6 adm:shadow-xs
|
|
66
|
+
adm:duration-200
|
|
66
67
|
adm:data-[state=closed]:animate-out
|
|
67
68
|
adm:data-[state=closed]:fade-out-0
|
|
68
69
|
adm:data-[state=closed]:zoom-out-95
|
|
@@ -72,10 +73,10 @@ function _({
|
|
|
72
73
|
`,
|
|
73
74
|
a
|
|
74
75
|
),
|
|
75
|
-
...
|
|
76
|
+
...m,
|
|
76
77
|
children: [
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
d,
|
|
79
|
+
s && /* @__PURE__ */ t.jsxs(
|
|
79
80
|
e,
|
|
80
81
|
{
|
|
81
82
|
"data-slot": "dialog-close",
|
|
@@ -105,68 +106,68 @@ function _({
|
|
|
105
106
|
)
|
|
106
107
|
] });
|
|
107
108
|
}
|
|
108
|
-
function k({ className: a, ...
|
|
109
|
+
function k({ className: a, ...d }) {
|
|
109
110
|
return /* @__PURE__ */ t.jsx(
|
|
110
111
|
"div",
|
|
111
112
|
{
|
|
112
113
|
"data-slot": "dialog-header",
|
|
113
|
-
className:
|
|
114
|
-
...
|
|
114
|
+
className: o("adm:flex adm:flex-col adm:gap-2", a),
|
|
115
|
+
...d
|
|
115
116
|
}
|
|
116
117
|
);
|
|
117
118
|
}
|
|
118
|
-
function w({ className: a, ...
|
|
119
|
+
function w({ className: a, ...d }) {
|
|
119
120
|
return /* @__PURE__ */ t.jsx(
|
|
120
121
|
"div",
|
|
121
122
|
{
|
|
122
123
|
"data-slot": "dialog-footer",
|
|
123
|
-
className:
|
|
124
|
+
className: o(
|
|
124
125
|
`
|
|
125
126
|
adm:flex adm:gap-2
|
|
126
127
|
adm:sm:flex-row adm:sm:justify-start
|
|
127
128
|
`,
|
|
128
129
|
a
|
|
129
130
|
),
|
|
130
|
-
...
|
|
131
|
+
...d
|
|
131
132
|
}
|
|
132
133
|
);
|
|
133
134
|
}
|
|
134
135
|
function T({
|
|
135
136
|
className: a,
|
|
136
|
-
...
|
|
137
|
+
...d
|
|
137
138
|
}) {
|
|
138
139
|
return /* @__PURE__ */ t.jsx(
|
|
139
140
|
u,
|
|
140
141
|
{
|
|
141
142
|
"data-slot": "dialog-title",
|
|
142
|
-
className:
|
|
143
|
-
...
|
|
143
|
+
className: o("adm:leading-none adm:font-semibold adm:text-neutral-700", a),
|
|
144
|
+
...d
|
|
144
145
|
}
|
|
145
146
|
);
|
|
146
147
|
}
|
|
147
148
|
function O({
|
|
148
149
|
className: a,
|
|
149
|
-
...
|
|
150
|
+
...d
|
|
150
151
|
}) {
|
|
151
152
|
return /* @__PURE__ */ t.jsx(
|
|
152
|
-
|
|
153
|
+
r,
|
|
153
154
|
{
|
|
154
155
|
"data-slot": "dialog-description",
|
|
155
|
-
className:
|
|
156
|
-
...
|
|
156
|
+
className: o("adm:text-sm adm:text-muted-foreground", a),
|
|
157
|
+
...d
|
|
157
158
|
}
|
|
158
159
|
);
|
|
159
160
|
}
|
|
160
161
|
function P({
|
|
161
162
|
className: a,
|
|
162
|
-
...
|
|
163
|
+
...d
|
|
163
164
|
}) {
|
|
164
165
|
return /* @__PURE__ */ t.jsx(
|
|
165
|
-
|
|
166
|
+
"div",
|
|
166
167
|
{
|
|
167
|
-
"data-slot": "dialog-
|
|
168
|
-
className:
|
|
169
|
-
...
|
|
168
|
+
"data-slot": "dialog-body",
|
|
169
|
+
className: o("adm:mt-2 adm:mb-6", a),
|
|
170
|
+
...d
|
|
170
171
|
}
|
|
171
172
|
);
|
|
172
173
|
}
|