ywana-core8 0.0.66 → 0.0.70

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.umd.js CHANGED
@@ -804,7 +804,7 @@
804
804
  });
805
805
  });
806
806
  return /*#__PURE__*/React__default["default"].createElement("div", {
807
- "class": "tabs"
807
+ className: "tabs"
808
808
  }, tabs, /*#__PURE__*/React__default["default"].createElement("div", {
809
809
  className: "tab-filler"
810
810
  }));
@@ -1785,6 +1785,37 @@
1785
1785
  }, children);
1786
1786
  };
1787
1787
 
1788
+ /**
1789
+ * Avatar
1790
+ */
1791
+
1792
+ var Avatar = function Avatar(props) {
1793
+ var id = props.id,
1794
+ name = props.name,
1795
+ className = props.className,
1796
+ src = props.src,
1797
+ _props$size = props.size,
1798
+ size = _props$size === void 0 ? "small" : _props$size,
1799
+ _props$clickable = props.clickable,
1800
+ clickable = _props$clickable === void 0 ? false : _props$clickable,
1801
+ action = props.action;
1802
+
1803
+ function click() {
1804
+ if (clickable) {
1805
+ action(id);
1806
+ }
1807
+ }
1808
+
1809
+ var clickableStyle = clickable ? 'clickable' : '';
1810
+ var style = "avatar " + size + " " + clickableStyle + " " + className;
1811
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1812
+ className: style,
1813
+ onClick: click
1814
+ }, src ? /*#__PURE__*/React__default["default"].createElement("img", {
1815
+ src: src
1816
+ }) : /*#__PURE__*/React__default["default"].createElement("span", null, name));
1817
+ };
1818
+
1788
1819
  /**
1789
1820
  * Page Context
1790
1821
  */
@@ -4330,11 +4361,14 @@
4330
4361
  table.columns.push({
4331
4362
  id: "actions"
4332
4363
  });
4364
+ var groupSize = groups[groupName].length;
4333
4365
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
4334
4366
  key: groupName
4335
4367
  }, /*#__PURE__*/React__default["default"].createElement(Header, {
4336
4368
  title: groupName
4337
- }), /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
4369
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
4370
+ className: "size"
4371
+ }, groupSize)), /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
4338
4372
  onRowSelection: select,
4339
4373
  editable: editable
4340
4374
  })));
@@ -4484,7 +4518,6 @@
4484
4518
  param = param.concat(key + "=" + item + "&");
4485
4519
  return param;
4486
4520
  }, "");
4487
- console.log(param);
4488
4521
  return query.concat(param);
4489
4522
  } else {
4490
4523
  return query.concat(key + "=%" + filters[key] + "%&");
@@ -4831,6 +4864,7 @@
4831
4864
  return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
4832
4865
  };
4833
4866
 
4867
+ exports.Avatar = Avatar;
4834
4868
  exports.Button = Button$1;
4835
4869
  exports.CheckBox = CheckBox;
4836
4870
  exports.Chip = Chip;