tabler-react-2 0.1.134 → 0.1.135
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/util/hr.js +6 -1
- package/docs/src/docs/changelog.mdx +4 -0
- package/package.json +1 -1
package/dist/util/hr.js
CHANGED
|
@@ -8,13 +8,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _ = require(".");
|
|
9
9
|
var _excluded = ["children", "text"];
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
12
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
12
13
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
13
14
|
var Hr = exports.Hr = function Hr(_ref) {
|
|
14
15
|
var children = _ref.children,
|
|
15
16
|
text = _ref.text,
|
|
16
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
return !text ? /*#__PURE__*/_react["default"].createElement("hr",
|
|
18
|
+
return !text ? /*#__PURE__*/_react["default"].createElement("hr", _extends({
|
|
19
|
+
style: {
|
|
20
|
+
margin: "1rem 0"
|
|
21
|
+
}
|
|
22
|
+
}, props)) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
18
23
|
className: "hr-text",
|
|
19
24
|
style: {
|
|
20
25
|
margin: "1rem 0"
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
title: Changelog
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
# 0.1.134
|
|
6
|
+
|
|
7
|
+
- Fixed issue with `useModal` where the `resolve` function was not being set correctly, preventing the modal from opening after being closed.
|
|
8
|
+
|
|
5
9
|
# 0.1.133
|
|
6
10
|
|
|
7
11
|
- Fixed issue with `useModal` where the `resolve` function was not being set correctly, preventing the modal from being automatically closed.
|