linear-react-components-ui 1.1.3-beta.2 → 1.1.3-beta.3

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.
@@ -131,7 +131,6 @@ const DefaultButton = _ref => {
131
131
  if (dropdown && showDropdown) showDropdown();
132
132
  if (onClick && toggleable) setActiveButton(!activeButton);
133
133
  },
134
- disabled: isDisabled,
135
134
  className: "".concat(getClass(), " ").concat(activeButton ? '-toggleable' : '', " ").concat(skeletonize ? '-skeletonized' : ''),
136
135
  ref: r => {
137
136
  if (buttonRef) {
package/lib/list/Item.js CHANGED
@@ -53,17 +53,23 @@ const Item = props => {
53
53
  const navigate = (0, _reactRouterDom.useNavigate)();
54
54
  const disabledByPermission = onDenied.disabled;
55
55
  const shouldDisable = () => disabled || onDenied.disabled;
56
+ const disabledIconColor = 'rgb(193, 193, 193)';
56
57
  const getClass = () => "item ".concat(customClass, " ").concat(separator && 'list-separator', " ").concat(shouldDisable() && 'disabled', "\n ").concat(displayCheckbox && 'list-checkbox');
57
58
  const getIcon = (iconName, icon) => {
59
+ const noIconDisabledByPermission = !icon && !displayCheckbox && !leftElement && !leftIconName && !leftIcon && onDenied.disabled;
58
60
  if (icon) {
59
61
  return icon;
62
+ } else if (noIconDisabledByPermission) {
63
+ return /*#__PURE__*/_react.default.createElement(_icons.default, {
64
+ name: "padlock",
65
+ color: disabledIconColor
66
+ });
60
67
  } else if (iconName) {
61
68
  return /*#__PURE__*/_react.default.createElement(_icons.default, {
62
- name: !disabledByPermission ? iconName : 'padlock'
69
+ name: !disabledByPermission ? iconName : 'padlock',
70
+ color: !disabledByPermission ? '' : disabledIconColor
63
71
  });
64
- } else if (!icon && !displayCheckbox && !leftElement && !leftIconName && !leftIcon && onDenied.disabled) return /*#__PURE__*/_react.default.createElement(_icons.default, {
65
- name: "padlock"
66
- });
72
+ }
67
73
  return null;
68
74
  };
69
75
  const handleOnSelectItem = e => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.3-beta.2",
3
+ "version": "1.1.3-beta.3",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",