tabler-react-2 0.1.90 → 0.1.91
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/timeline/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
var i = function i(Icon) {
|
|
12
|
+
return typeof Icon === "function" ? /*#__PURE__*/_react["default"].createElement(Icon, null) : Icon;
|
|
12
13
|
var isComponent = typeof Icon === "function" || /*#__PURE__*/_react["default"].isValidElement(Icon);
|
|
13
14
|
console.log(isComponent, typeof Icon === "function", /*#__PURE__*/_react["default"].isValidElement(Icon), Icon);
|
|
14
15
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isComponent ? /*#__PURE__*/_react["default"].createElement(Icon, null) : Icon);
|
package/docs/package.json
CHANGED
|
@@ -43,23 +43,11 @@ The `events` prop is an array of objects that define the events to display. Each
|
|
|
43
43
|
<Timeline
|
|
44
44
|
events={[
|
|
45
45
|
{
|
|
46
|
-
icon: IconCheck
|
|
46
|
+
icon: <IconCheck />,
|
|
47
47
|
time: "10 hrs ago",
|
|
48
48
|
title: "+1150 Followers",
|
|
49
49
|
description: "Joined the community",
|
|
50
50
|
},
|
|
51
|
-
{
|
|
52
|
-
icon: IconMessage,
|
|
53
|
-
time: "1 hr ago",
|
|
54
|
-
title: "New message",
|
|
55
|
-
description: "You have 1 new message",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
icon: IconUser,
|
|
59
|
-
time: "1 hr ago",
|
|
60
|
-
title: "New user",
|
|
61
|
-
description: "You have 1 new user",
|
|
62
|
-
},
|
|
63
51
|
]}
|
|
64
52
|
/>
|
|
65
53
|
</div>
|