ywana-core8 0.0.67 → 0.0.68

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
@@ -1785,6 +1785,36 @@ var KanbanCard = function KanbanCard(_ref3) {
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
+ src = props.src,
1796
+ _props$size = props.size,
1797
+ size = _props$size === void 0 ? "small" : _props$size,
1798
+ _props$clickable = props.clickable,
1799
+ clickable = _props$clickable === void 0 ? false : _props$clickable,
1800
+ action = props.action;
1801
+
1802
+ function click() {
1803
+ if (clickable) {
1804
+ action(id);
1805
+ }
1806
+ }
1807
+
1808
+ var style = clickable ? 'clickable' : '';
1809
+ var className = "avatar " + size + " " + style;
1810
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1811
+ className: className,
1812
+ onClick: click
1813
+ }, src ? /*#__PURE__*/React__default["default"].createElement("img", {
1814
+ src: src
1815
+ }) : /*#__PURE__*/React__default["default"].createElement("span", null, name));
1816
+ };
1817
+
1788
1818
  /**
1789
1819
  * Page Context
1790
1820
  */
@@ -4487,7 +4517,6 @@ var TableAPI = function TableAPI(url) {
4487
4517
  param = param.concat(key + "=" + item + "&");
4488
4518
  return param;
4489
4519
  }, "");
4490
- console.log(param);
4491
4520
  return query.concat(param);
4492
4521
  } else {
4493
4522
  return query.concat(key + "=%" + filters[key] + "%&");
@@ -4834,6 +4863,7 @@ var isFunction = function isFunction(value) {
4834
4863
  return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
4835
4864
  };
4836
4865
 
4866
+ exports.Avatar = Avatar;
4837
4867
  exports.Button = Button$1;
4838
4868
  exports.CheckBox = CheckBox;
4839
4869
  exports.Chip = Chip;