ywana-core8 0.0.588 → 0.0.591

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 CHANGED
@@ -208,8 +208,7 @@ var Accordion = function Accordion(props) {
208
208
  var className = props.className,
209
209
  _props$sections = props.sections,
210
210
  sections = _props$sections === void 0 ? [] : _props$sections,
211
- onCheck = props.onCheck,
212
- children = props.children;
211
+ onCheck = props.onCheck;
213
212
 
214
213
  var _useState = React.useState([]),
215
214
  openSections = _useState[0],
@@ -261,7 +260,7 @@ var Accordion = function Accordion(props) {
261
260
  onCheck: function onCheck() {
262
261
  return check(index);
263
262
  }
264
- }), section.children, children);
263
+ }), section.children);
265
264
  }));
266
265
  };
267
266
  /**
@@ -6408,7 +6407,8 @@ var TablePage = function TablePage(props) {
6408
6407
  setPageContext = _useContext[1];
6409
6408
 
6410
6409
  var context = TableContext$2(url, field, host, urlQuery, params);
6411
- var selected = pageContext.selected;
6410
+ var all = pageContext.all,
6411
+ selected = pageContext.selected;
6412
6412
  var timer = React.useRef(null);
6413
6413
 
6414
6414
  var _useState = React.useState(selected),
@@ -6535,9 +6535,11 @@ var TablePage = function TablePage(props) {
6535
6535
  });
6536
6536
  }
6537
6537
 
6538
+ var total = all ? all.length : 0;
6539
+ var title2 = "[" + total + "] " + title;
6538
6540
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement(Header, {
6539
6541
  className: "table-page",
6540
- title: /*#__PURE__*/React__default["default"].createElement(Text, null, title)
6542
+ title: /*#__PURE__*/React__default["default"].createElement(Text, null, title2)
6541
6543
  }, canAdd ? /*#__PURE__*/React__default["default"].createElement(Button, {
6542
6544
  icon: "add",
6543
6545
  label: "A\xF1adir",