@plastic-js/tsumiki 0.1.26 → 0.1.27

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.
@@ -35,10 +35,7 @@ function ConfirmDialog(props) {
35
35
  const handleConfirm = () => {
36
36
  local.onConfirm?.();
37
37
  };
38
- return jsx(Dialog, mergeProps({
39
- get mode() {
40
- return local.mode;
41
- },
38
+ return jsx(Dialog, mergeProps(() => local.mode ? { mode: local.mode } : {}, {
42
39
  get cancelText() {
43
40
  return local.cancelText;
44
41
  },
@@ -112,10 +109,7 @@ function ensureInit() {
112
109
  renderApp(container, () => {
113
110
  const s = state();
114
111
  if (!s) return null;
115
- return jsx(Dialog, mergeProps({
116
- get mode() {
117
- return s.mode;
118
- },
112
+ return jsx(Dialog, mergeProps(() => s.mode ? { mode: s.mode } : {}, {
119
113
  get open() {
120
114
  return s.open;
121
115
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plastic-js/tsumiki",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "A UI component library for Plastic JS.",
5
5
  "license": "MIT",
6
6
  "author": "tigre",