@widergy/energy-ui 1.116.0 → 1.117.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.117.0](https://github.com/widergy/energy-ui/compare/v1.116.0...v1.117.0) (2022-04-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * rich text ([#277](https://github.com/widergy/energy-ui/issues/277)) ([2caf2c7](https://github.com/widergy/energy-ui/commit/2caf2c74dcb8561be7c90ee9e734444fc24e2a2e))
7
+
1
8
  # [1.116.0](https://github.com/widergy/energy-ui/compare/v1.115.5...v1.116.0) (2022-04-11)
2
9
 
3
10
 
@@ -180,7 +180,9 @@ var DEFAULT_BUTTON_EMOJI_INDEX = 0;
180
180
  exports.DEFAULT_BUTTON_EMOJI_INDEX = DEFAULT_BUTTON_EMOJI_INDEX;
181
181
  var DEFAULT_POSITIONS = {
182
182
  BOTTOM_LEFT: 'bottomLeft',
183
- BOTTOM_RIGHT: 'bottomRight'
183
+ BOTTOM_RIGHT: 'bottomRight',
184
+ TOP_LEFT: 'topLeft',
185
+ TOP_RIGHT: 'topRight'
184
186
  };
185
187
  exports.DEFAULT_POSITIONS = DEFAULT_POSITIONS;
186
188
  var GROUPS = [{
@@ -107,3 +107,19 @@
107
107
  top: 100% !important;
108
108
  }
109
109
  }
110
+
111
+ .topRight {
112
+ @media #{$desktop-tablet} {
113
+ left: 100% !important;
114
+ bottom: 0 !important;
115
+ }
116
+ }
117
+
118
+ .topLeft {
119
+ @media #{$desktop-tablet} {
120
+ left: auto !important;
121
+ right: 100% !important;
122
+ bottom: 0 !important;
123
+ }
124
+ }
125
+
@@ -53,13 +53,17 @@ var TooltipTab = function TooltipTab(_ref) {
53
53
  interactive: false
54
54
  }, tooltipProps);
55
55
 
56
+ var buttonOnClick = function buttonOnClick() {
57
+ if (!isDisabled) return onClick();
58
+ };
59
+
56
60
  return /*#__PURE__*/_react.default.createElement(_UTTooltip.default, {
57
61
  content: tooltip,
58
62
  tippyProps: tippyProps
59
63
  }, /*#__PURE__*/_react.default.createElement("button", _extends({
60
64
  className: "".concat(className, " ").concat(_stylesModule.default.button),
61
65
  ref: buttonRef,
62
- onClick: !isDisabled && onClick
66
+ onClick: buttonOnClick
63
67
  }, props), children));
64
68
  };
65
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "1.116.0",
3
+ "version": "1.117.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",