@pie-element/passage 7.1.2-next.4 → 7.1.2-next.6

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.
@@ -10,7 +10,8 @@ import c from "@mui/material/DialogTitle";
10
10
  import l from "@mui/material/DialogContent";
11
11
  import u from "@mui/material/DialogContentText";
12
12
  import d from "@mui/material/DialogActions";
13
- var f = t(({ label: e, type: t = "add", onClick: s }) => /* @__PURE__ */ r(i, {
13
+ //#region src/author/common.tsx
14
+ var f = ({ label: e, type: t = "add", onClick: s }) => /* @__PURE__ */ r(i, {
14
15
  color: "primary",
15
16
  size: "small",
16
17
  onClick: s,
@@ -19,7 +20,7 @@ var f = t(({ label: e, type: t = "add", onClick: s }) => /* @__PURE__ */ r(i, {
19
20
  color: "primary",
20
21
  style: { marginRight: 4 }
21
22
  }), e]
22
- }))({
23
+ }), p = t(f)({
23
24
  textDecoration: "underline",
24
25
  "&:hover": {
25
26
  textDecoration: "underline",
@@ -27,7 +28,7 @@ var f = t(({ label: e, type: t = "add", onClick: s }) => /* @__PURE__ */ r(i, {
27
28
  },
28
29
  display: "flex",
29
30
  alignItems: "center"
30
- }), p = ({ content: e, cancel: t, title: a, ok: o, open: f, onOk: p, onCancel: m }) => /* @__PURE__ */ r(s, {
31
+ }), m = ({ content: e, cancel: t, title: a, ok: o, open: f, onOk: p, onCancel: m }) => /* @__PURE__ */ r(s, {
31
32
  open: f,
32
33
  children: [
33
34
  /* @__PURE__ */ n(c, { children: a }),
@@ -43,7 +44,7 @@ var f = t(({ label: e, type: t = "add", onClick: s }) => /* @__PURE__ */ r(i, {
43
44
  })] })
44
45
  ]
45
46
  });
46
- p.propTypes = {
47
+ m.propTypes = {
47
48
  content: e.string.isRequired,
48
49
  title: e.string.isRequired,
49
50
  cancel: e.string.isRequired,
@@ -53,4 +54,4 @@ p.propTypes = {
53
54
  onOk: e.func.isRequired
54
55
  };
55
56
  //#endregion
56
- export { p as ConfirmationDialog, f as PassageButton };
57
+ export { m as ConfirmationDialog, p as PassageButton, f as RemoveAddButton };
@@ -1,5 +1,5 @@
1
1
  import { ConfirmationDialog as e, PassageButton as t } from "./common.js";
2
- import n from "./passage.js";
2
+ import { PassageComponent as n } from "./passage.js";
3
3
  import r from "react";
4
4
  import i from "prop-types";
5
5
  import { styled as a } from "@mui/material/styles";
@@ -117,4 +117,4 @@ var { Panel: d, toggle: f, dropdown: p } = l, m = a(u)(({ theme: e }) => ({
117
117
  }
118
118
  };
119
119
  //#endregion
120
- export { h as default };
120
+ export { h as Main, h as default };
@@ -1,4 +1,4 @@
1
- import e from "./design.js";
1
+ import { Main as e } from "./design.js";
2
2
  import t from "./defaults.js";
3
3
  import n from "react";
4
4
  import { createRoot as r } from "react-dom/client";
@@ -59,7 +59,7 @@ var l = class l extends HTMLElement {
59
59
  }
60
60
  }
61
61
  disconnectedCallback() {
62
- this._root && this._root.unmount();
62
+ this._root &&= (this._root.unmount(), null);
63
63
  }
64
64
  };
65
65
  //#endregion
@@ -124,4 +124,4 @@ var c = n(a)(({ theme: e }) => ({
124
124
  }
125
125
  };
126
126
  //#endregion
127
- export { u as default };
127
+ export { u as PassageComponent, u as default };