ywana-core8 0.0.51 → 0.0.55
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/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.css +4 -0
- package/src/domain/TablePage.js +1 -1
- package/src/html/button.js +1 -1
- package/src/site/dialog.js +2 -2
package/dist/index.cjs
CHANGED
@@ -194,7 +194,9 @@ var Button$1 = function Button(_ref) {
|
|
194
194
|
onClick: click
|
195
195
|
}, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
196
196
|
icon: icon,
|
197
|
-
size: "small"
|
197
|
+
size: "small",
|
198
|
+
clickable: true,
|
199
|
+
action: click
|
198
200
|
}) : null, /*#__PURE__*/React__default["default"].createElement("span", null, label));
|
199
201
|
};
|
200
202
|
|
@@ -2111,7 +2113,8 @@ var Dialog = function Dialog(props) {
|
|
2111
2113
|
_props$title = props.title,
|
2112
2114
|
title = _props$title === void 0 ? "Dialog" : _props$title,
|
2113
2115
|
children = props.children,
|
2114
|
-
actions = props.actions
|
2116
|
+
actions = props.actions,
|
2117
|
+
className = props.className;
|
2115
2118
|
|
2116
2119
|
function close() {
|
2117
2120
|
site.closeDialog();
|
@@ -2125,7 +2128,7 @@ var Dialog = function Dialog(props) {
|
|
2125
2128
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
2126
2129
|
className: "overlay"
|
2127
2130
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
2128
|
-
className: "dialog",
|
2131
|
+
className: "dialog " + className,
|
2129
2132
|
onClick: close
|
2130
2133
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
2131
2134
|
className: "dialog-panel",
|
@@ -4287,7 +4290,7 @@ var TableEditor = function TableEditor(props) {
|
|
4287
4290
|
clickable: true,
|
4288
4291
|
size: "small",
|
4289
4292
|
action: function action() {
|
4290
|
-
_action.action(item.id);
|
4293
|
+
_action.action(item.id, pageContext);
|
4291
4294
|
}
|
4292
4295
|
});
|
4293
4296
|
}) : [];
|