tabler-react-2 0.1.142 → 0.1.144

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.
@@ -117,7 +117,7 @@ var DropdownInput = exports.DropdownInput = function DropdownInput(_ref) {
117
117
  className: "dropdown"
118
118
  }, props), /*#__PURE__*/_react["default"].createElement("a", _extends({
119
119
  href: "javascript:void(0)",
120
- className: "btn dropdown-toggle ".concat(props.disabled ? "disabled" : "", " ").concat(color ? "btn-".concat(outline ? "outline-" : "").concat(color) : "", " ").concat(props.className || ""),
120
+ className: "btn dropdown-toggle ".concat(props.disabled ? "disabled" : "", " ").concat(color ? "btn-".concat(outline ? "outline-" : "").concat(color) : "", " ").concat(props.className || "", " ").concat(props.invalid ? "is-invalid" : ""),
121
121
  "data-bs-toggle": "dropdown"
122
122
  }, aprops), /*#__PURE__*/_react["default"].createElement(_util.Row, {
123
123
  gap: 0.5
@@ -156,7 +156,7 @@ var DropdownInput = exports.DropdownInput = function DropdownInput(_ref) {
156
156
  var isActive = (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.id) === v.id;
157
157
  var isItemDisabled = v.disabled === true;
158
158
  return /*#__PURE__*/_react["default"].createElement("a", {
159
- key: (_v$id = v.id) !== null && _v$id !== void 0 ? _v$id : i,
159
+ key: ((_v$id = v.id) !== null && _v$id !== void 0 ? _v$id : i) + "__" + i,
160
160
  className: "dropdown-item".concat(isActive ? " active" : "").concat(isItemDisabled ? " disabled" : ""),
161
161
  onClick: function onClick() {
162
162
  return !isItemDisabled && handleSelection(v);
@@ -2,6 +2,14 @@
2
2
  title: Changelog
3
3
  ---
4
4
 
5
+ # 0.1.143
6
+
7
+ - Added `invalid` prop to the `DropdownInput` component.
8
+
9
+ # 0.1.142
10
+
11
+ - Added `invalid` prop to the `Input` component.
12
+
5
13
  # 0.1.141
6
14
 
7
15
  - Fix button formatting in confirm modals
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabler-react-2",
3
- "version": "0.1.142",
3
+ "version": "0.1.144",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {