tabler-react-2 0.1.72 → 0.1.73

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.
@@ -40,9 +40,7 @@ var EnclosedSelectGroup = exports.EnclosedSelectGroup = function EnclosedSelectG
40
40
  direction = _ref$direction === void 0 ? "row" : _ref$direction,
41
41
  itemClassName = _ref.itemClassName,
42
42
  style = _ref.style,
43
- itemStyle = _ref.itemStyle,
44
- _ref$disabled = _ref.disabled,
45
- disabled = _ref$disabled === void 0 ? false : _ref$disabled;
43
+ itemStyle = _ref.itemStyle;
46
44
  var multiple = false;
47
45
  var handleChange = function handleChange(selectedItem) {
48
46
  if (multiple) {
@@ -74,11 +72,11 @@ var EnclosedSelectGroup = exports.EnclosedSelectGroup = function EnclosedSelectG
74
72
  }, style)
75
73
  }, items.map(function (item) {
76
74
  return /*#__PURE__*/_react["default"].createElement("label", {
77
- className: "form-selectgroup-item flex-fill ".concat(itemClassName, " ").concat(disabled && "bg-gray-600"),
75
+ className: "form-selectgroup-item flex-fill ".concat(itemClassName, " ").concat((item === null || item === void 0 ? void 0 : item.disabled) && "bg-gray-600"),
78
76
  key: item.value,
79
77
  style: _objectSpread({
80
- pointerEvents: disabled,
81
- cursor: disabled ? "not-allowed" : null
78
+ pointerEvents: item === null || item === void 0 ? void 0 : item.disabled,
79
+ cursor: item !== null && item !== void 0 && item.disabled ? "not-allowed" : null
82
80
  }, itemStyle)
83
81
  }, /*#__PURE__*/_react["default"].createElement("input", {
84
82
  type: "radio",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabler-react-2",
3
- "version": "0.1.72",
3
+ "version": "0.1.73",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {