@fangzsx/component-library 0.0.22 → 0.0.23
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/Dialog/index.js +16 -14
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { Slide as
|
|
2
|
+
import { c as x } from "../../createSvgIcon-C0YrvByi.js";
|
|
3
|
+
import { Slide as f, Dialog as u, DialogTitle as g, IconButton as h, DialogContent as D, DialogActions as C } from "@mui/material";
|
|
4
4
|
import { forwardRef as j } from "react";
|
|
5
|
-
const y =
|
|
5
|
+
const y = x(/* @__PURE__ */ i("path", {
|
|
6
6
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
7
|
-
}), "Close"), I = j(function(
|
|
8
|
-
return /* @__PURE__ */ i(
|
|
7
|
+
}), "Close"), I = j(function(t, e) {
|
|
8
|
+
return /* @__PURE__ */ i(f, { direction: "up", ref: e, ...t });
|
|
9
9
|
});
|
|
10
10
|
function w({
|
|
11
|
-
open:
|
|
12
|
-
onClose:
|
|
13
|
-
title:
|
|
11
|
+
open: o,
|
|
12
|
+
onClose: t,
|
|
13
|
+
title: e,
|
|
14
14
|
children: l,
|
|
15
15
|
actions: r,
|
|
16
16
|
maxWidth: s = "sm",
|
|
@@ -23,8 +23,8 @@ function w({
|
|
|
23
23
|
return /* @__PURE__ */ n(
|
|
24
24
|
u,
|
|
25
25
|
{
|
|
26
|
-
open:
|
|
27
|
-
onClose:
|
|
26
|
+
open: o,
|
|
27
|
+
onClose: t,
|
|
28
28
|
maxWidth: s,
|
|
29
29
|
fullWidth: a,
|
|
30
30
|
fullScreen: m,
|
|
@@ -33,8 +33,10 @@ function w({
|
|
|
33
33
|
sx: {
|
|
34
34
|
"& .MuiDialog-paper": {
|
|
35
35
|
maxWidth: {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
md: "496px"
|
|
37
|
+
},
|
|
38
|
+
maxHeight: {
|
|
39
|
+
md: "415px"
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
},
|
|
@@ -45,11 +47,11 @@ function w({
|
|
|
45
47
|
alignItems: "center",
|
|
46
48
|
pr: 1
|
|
47
49
|
}, children: [
|
|
48
|
-
|
|
50
|
+
e,
|
|
49
51
|
c && /* @__PURE__ */ i(
|
|
50
52
|
h,
|
|
51
53
|
{
|
|
52
|
-
onClick:
|
|
54
|
+
onClick: t,
|
|
53
55
|
size: "small",
|
|
54
56
|
sx: { ml: 2 },
|
|
55
57
|
children: /* @__PURE__ */ i(y, {})
|