@topconsultnpm/sdkui-react-beta 6.8.29 → 6.8.31

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.
@@ -197,7 +197,7 @@ const TMButton = ({ width, height, keyGesture, btnStyle = 'normal', advancedColo
197
197
  };
198
198
  const renderTooltip = () => {
199
199
  return (showTooltip &&
200
- _jsxs(_Fragment, { children: [caption && _jsxs(StyledButtonTooltipHeader, { "$description": description, children: [_jsx(StyledButtonTooltipIcon, { "$color": color, children: icon }), _jsx(StyledButtonTooltipItem, { "$color": color, children: caption })] }), description && _jsx(StyledButtonTooltipItem, { children: description })] }));
200
+ _jsxs(_Fragment, { children: [caption && _jsxs(StyledButtonTooltipHeader, { "$description": description, children: [_jsx("div", { style: { color: 'black' }, children: icon }), _jsx(StyledButtonTooltipItem, { "$color": color, children: caption })] }), description && _jsx(StyledButtonTooltipItem, { children: description })] }));
201
201
  };
202
202
  return (_jsx("div", { style: elementStyle, children: showTooltip ? _jsx(TMTooltip, { hideAfterDelay: true, content: renderTooltip(), children: renderedButton() }) : renderedButton() }));
203
203
  };
@@ -160,8 +160,8 @@ export const TMSaveFormButtonSave = ({ btnStyle, errorsCount, isModified, iconCo
160
160
  catch (ex) {
161
161
  TMExceptionBoxManager.show({ exception: ex });
162
162
  } };
163
- return (_jsx(TMButton, { btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Save, icon: _jsx(IconSave, { color: iconColor }), keyGesture: "alt+s", backgroundColor: errorsCount > 0 ? TMColors.error : isModified ? TMColors.success : TMColors.disabled, onClick: doSaveAsync, color: "success", disabled: !(isModified && errorsCount <= 0) }));
163
+ return (_jsx(TMButton, { showTooltip: false, btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Save, icon: _jsx(IconSave, { color: iconColor }), keyGesture: "alt+s", backgroundColor: errorsCount > 0 ? TMColors.error : isModified ? TMColors.success : TMColors.disabled, onClick: doSaveAsync, color: "success", disabled: !(isModified && errorsCount <= 0) }));
164
164
  };
165
165
  export const TMSaveFormButtonUndo = ({ btnStyle, isModified, iconColor, width, advancedColor, advancedType, onUndo }) => {
166
- return (_jsx(TMButton, { btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Undo, icon: _jsx(IconUndo, { color: iconColor }), keyGesture: "alt+z", color: "tertiary", disabled: !isModified, onClick: onUndo }));
166
+ return (_jsx(TMButton, { showTooltip: false, btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Undo, icon: _jsx(IconUndo, { color: iconColor }), keyGesture: "alt+z", color: "tertiary", disabled: !isModified, onClick: onUndo }));
167
167
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.8.29",
3
+ "version": "6.8.31",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",