@fangzsx/component-library 0.0.22 → 0.0.24

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.
@@ -1,67 +1,71 @@
1
- import { jsx as i, jsxs as n } from "react/jsx-runtime";
2
- import { c as f } from "../../createSvgIcon-C0YrvByi.js";
3
- import { Slide as x, Dialog as u, DialogTitle as g, IconButton as h, DialogContent as D, DialogActions as C } from "@mui/material";
4
- import { forwardRef as j } from "react";
5
- const y = f(/* @__PURE__ */ i("path", {
1
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { c as x } from "../../createSvgIcon-C0YrvByi.js";
3
+ import { Slide as d, Dialog as u, DialogTitle as g, IconButton as h, DialogContent as D, DialogActions as C } from "@mui/material";
4
+ import { forwardRef as S } from "react";
5
+ const j = x(/* @__PURE__ */ t("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(o, t) {
8
- return /* @__PURE__ */ i(x, { direction: "up", ref: t, ...o });
7
+ }), "Close"), y = S(function(i, e) {
8
+ return /* @__PURE__ */ t(d, { direction: "up", ref: e, ...i });
9
9
  });
10
- function w({
11
- open: e,
12
- onClose: o,
13
- title: t,
10
+ function v({
11
+ open: o,
12
+ onClose: i,
13
+ title: e,
14
14
  children: l,
15
15
  actions: r,
16
16
  maxWidth: s = "sm",
17
17
  fullWidth: a = !0,
18
- showCloseButton: c = !0,
19
- dividers: p = !0,
18
+ showCloseButton: p = !0,
19
+ dividers: c = !0,
20
20
  fullScreen: m = !1,
21
- slideTransition: d = !1
21
+ slideTransition: f = !1
22
22
  }) {
23
23
  return /* @__PURE__ */ n(
24
24
  u,
25
25
  {
26
- open: e,
27
- onClose: o,
26
+ open: o,
27
+ onClose: i,
28
28
  maxWidth: s,
29
29
  fullWidth: a,
30
30
  fullScreen: m,
31
31
  scroll: "paper",
32
- slots: d ? { transition: I } : void 0,
32
+ slots: f ? { transition: y } : void 0,
33
33
  sx: {
34
34
  "& .MuiDialog-paper": {
35
35
  maxWidth: {
36
- xs: "100%",
37
- md: "600px"
36
+ md: "496px"
37
+ },
38
+ maxHeight: {
39
+ md: "415px"
38
40
  }
39
41
  }
40
42
  },
41
43
  children: [
42
44
  /* @__PURE__ */ n(g, { sx: {
43
45
  display: "flex",
46
+ fontWeight: 700,
44
47
  justifyContent: "space-between",
45
48
  alignItems: "center",
49
+ fontSize: "19px",
46
50
  pr: 1
47
51
  }, children: [
48
- t,
49
- c && /* @__PURE__ */ i(
52
+ e,
53
+ p && /* @__PURE__ */ t(
50
54
  h,
51
55
  {
52
- onClick: o,
56
+ onClick: i,
53
57
  size: "small",
54
58
  sx: { ml: 2 },
55
- children: /* @__PURE__ */ i(y, {})
59
+ children: /* @__PURE__ */ t(j, {})
56
60
  }
57
61
  )
58
62
  ] }),
59
- /* @__PURE__ */ i(D, { dividers: p, children: l }),
60
- r && /* @__PURE__ */ i(C, { sx: { px: 3, py: 2 }, children: r })
63
+ /* @__PURE__ */ t(D, { dividers: c, children: l }),
64
+ r && /* @__PURE__ */ t(C, { sx: { px: 3, py: 2 }, children: r })
61
65
  ]
62
66
  }
63
67
  );
64
68
  }
65
69
  export {
66
- w as ScrollableDialog
70
+ v as ScrollableDialog
67
71
  };
@@ -6547,7 +6547,7 @@ function Gr({
6547
6547
  f(v), i && i(v);
6548
6548
  }, g = () => {
6549
6549
  N(!0);
6550
- }, R = E.trim() === "", c = h && o && R;
6550
+ }, R = String(E || "").trim() === "", c = h && o && R;
6551
6551
  return /* @__PURE__ */ I(
6552
6552
  Fn,
6553
6553
  {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fangzsx/component-library",
3
3
  "author": "Jay Gilbert Garzon",
4
4
  "private": false,
5
- "version": "0.0.22",
5
+ "version": "0.0.24",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",