tabler-react-2 0.1.72 → 0.1.74

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.disabled,
79
+ cursor: item.disabled ? "not-allowed" : null
82
80
  }, itemStyle)
83
81
  }, /*#__PURE__*/_react["default"].createElement("input", {
84
82
  type: "radio",
@@ -102,7 +100,9 @@ var EnclosedSelectGroup = exports.EnclosedSelectGroup = function EnclosedSelectG
102
100
  style: {
103
101
  textAlign: "left"
104
102
  }
105
- }, item.content)));
103
+ }, item.content, " ", JSON.stringify({
104
+ disabled: item.disabled
105
+ }))));
106
106
  }));
107
107
  };
108
108
  EnclosedSelectGroup.propTypes = {
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.74",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {