tabler-react-2 0.1.134 → 0.1.136
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/input/dropdown.js +2 -2
- package/dist/util/hr.js +6 -1
- package/docs/src/docs/changelog.mdx +8 -0
- package/package.json +1 -1
package/dist/input/dropdown.js
CHANGED
|
@@ -114,9 +114,9 @@ var DropdownInput = exports.DropdownInput = function DropdownInput(_ref) {
|
|
|
114
114
|
className: "dropdown"
|
|
115
115
|
}, props), /*#__PURE__*/_react["default"].createElement("a", _extends({
|
|
116
116
|
href: "javascript:void(0)",
|
|
117
|
-
className: "btn dropdown-toggle ".concat(props.disabled ? "disabled" : "", " ").concat(color ? "btn-".concat(outline ? "outline-" : "").concat(color) : ""),
|
|
117
|
+
className: "btn dropdown-toggle ".concat(props.disabled ? "disabled" : "", " ").concat(color ? "btn-".concat(outline ? "outline-" : "").concat(color) : "", " ").concat(props.className || ""),
|
|
118
118
|
"data-bs-toggle": "dropdown"
|
|
119
|
-
}, aprops), selectedValue ? selectedValue.label : prompt), /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
|
+
}, aprops), selectedValue && props.showIconInPrompt ? selectedValue.icon : null, selectedValue ? selectedValue.label : prompt), /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
120
|
className: "dropdown-menu"
|
|
121
121
|
}, showSearch && /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
122
|
className: "px-2 py-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,14 @@
|
|
|
2
2
|
title: Changelog
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
# 0.1.135
|
|
6
|
+
|
|
7
|
+
- Fixed awkward sizing of Hr's without text.
|
|
8
|
+
|
|
9
|
+
# 0.1.134
|
|
10
|
+
|
|
11
|
+
- Fixed issue with `useModal` where the `resolve` function was not being set correctly, preventing the modal from opening after being closed.
|
|
12
|
+
|
|
5
13
|
# 0.1.133
|
|
6
14
|
|
|
7
15
|
- Fixed issue with `useModal` where the `resolve` function was not being set correctly, preventing the modal from being automatically closed.
|