ywana-core8 0.0.589 → 0.0.592

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.
@@ -200,8 +200,7 @@ var Accordion = function Accordion(props) {
200
200
  var className = props.className,
201
201
  _props$sections = props.sections,
202
202
  sections = _props$sections === void 0 ? [] : _props$sections,
203
- onCheck = props.onCheck,
204
- children = props.children;
203
+ onCheck = props.onCheck;
205
204
 
206
205
  var _useState = useState([]),
207
206
  openSections = _useState[0],
@@ -253,7 +252,7 @@ var Accordion = function Accordion(props) {
253
252
  onCheck: function onCheck() {
254
253
  return check(index);
255
254
  }
256
- }), section.children, children);
255
+ }), section.children);
257
256
  }));
258
257
  };
259
258
  /**
@@ -6400,7 +6399,8 @@ var TablePage = function TablePage(props) {
6400
6399
  setPageContext = _useContext[1];
6401
6400
 
6402
6401
  var context = TableContext$2(url, field, host, urlQuery, params);
6403
- var selected = pageContext.selected;
6402
+ var all = pageContext.all,
6403
+ selected = pageContext.selected;
6404
6404
  var timer = useRef(null);
6405
6405
 
6406
6406
  var _useState = useState(selected),
@@ -6527,9 +6527,11 @@ var TablePage = function TablePage(props) {
6527
6527
  });
6528
6528
  }
6529
6529
 
6530
+ var total = all ? all.length : 0;
6531
+ var title2 = "[" + total + "] " + title;
6530
6532
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Header, {
6531
6533
  className: "table-page",
6532
- title: /*#__PURE__*/React.createElement(Text, null, title)
6534
+ title: /*#__PURE__*/React.createElement(Text, null, title2)
6533
6535
  }, canAdd ? /*#__PURE__*/React.createElement(Button, {
6534
6536
  icon: "add",
6535
6537
  label: "A\xF1adir",