@widergy/energy-ui 1.117.2 → 1.117.5
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,25 @@
|
|
|
1
|
+
## [1.117.5](https://github.com/widergy/energy-ui/compare/v1.117.4...v1.117.5) (2022-04-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* picker fixes ([#279](https://github.com/widergy/energy-ui/issues/279)) ([6ee6c2a](https://github.com/widergy/energy-ui/commit/6ee6c2a13eeff8f5a72d955e519613eafaa0e241))
|
|
7
|
+
* picker fixes ([#279](https://github.com/widergy/energy-ui/issues/279)) ([af3e3ed](https://github.com/widergy/energy-ui/commit/af3e3ed4187db3331414811307d6c33b1c9ec716))
|
|
8
|
+
|
|
9
|
+
## [1.117.4](https://github.com/widergy/energy-ui/compare/v1.117.3...v1.117.4) (2022-04-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* excluded emojis ([#281](https://github.com/widergy/energy-ui/issues/281)) ([18e3cc4](https://github.com/widergy/energy-ui/commit/18e3cc4d6530ad508db21b64708c267f17031fff))
|
|
15
|
+
|
|
16
|
+
## [1.117.3](https://github.com/widergy/energy-ui/compare/v1.117.2...v1.117.3) (2022-04-25)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* classes in sticky header ([#280](https://github.com/widergy/energy-ui/issues/280)) ([db5f924](https://github.com/widergy/energy-ui/commit/db5f9244f33f87df7e1c394f66edaca0b45745c3))
|
|
22
|
+
|
|
1
23
|
## [1.117.2](https://github.com/widergy/energy-ui/compare/v1.117.1...v1.117.2) (2022-04-18)
|
|
2
24
|
|
|
3
25
|
|
|
@@ -168,7 +168,7 @@ Flags.defaultProps = {
|
|
|
168
168
|
strokeLinecap: "round",
|
|
169
169
|
strokeLinejoin: "round"
|
|
170
170
|
};
|
|
171
|
-
var DEFAULT_EXCLUDED_EMOJIS = ['smiling_face'];
|
|
171
|
+
var DEFAULT_EXCLUDED_EMOJIS = ['smiling_face', 'spade_suit', 'heart_suit', 'diamond_suit', 'club_suit', 'up_down_arrow', 'left_right_arrow', 'female_sign', 'male_sign', 'double_exclamation_mark', 'copyright', 'registered', 'trade_mark', 'black_small_square', 'white_small_square', 'man_in_suit_levitating', 'baby_bottle', 'fork_and_knife', 'bus_stop', 'thermometer', 'heavy_dollar_sign', 'round_pushpin', 'paperclip', 'exclamation_question_mark', 'white_exclamation_mark', 'exclamation_mark', 'information', 'black_medium_square', 'white_medium_square', 'black_medium_small_square', 'white_medium_small_square', 'smiling face with tear', 'disguised face', 'pinched fingers', 'anatomical heart', 'lungs', 'ninja', 'people hugging', 'bison', 'mammoth', 'beaver', 'dodo', 'feather', 'seal', 'beetle', 'cockroach', 'fly', 'worm', 'potted plant', 'blueberries', 'olive', 'bell pepper', 'flatbread', 'tamale', 'fondue', 'teapot', 'bubble tea', 'rock', 'wood', 'hut', 'pickup truck', 'roller skate', 'magic wand', 'pinata', 'nesting dolls', 'sewing needle', 'knot', 'thong sandal', 'military helmet', 'accordion', 'long drum', 'coin', 'boomerang', 'carpentry saw', 'screwdriver', 'hook', 'ladder', 'elevator', 'mirror', 'window', 'plunger', 'mouse trap', 'bucket', 'toothbrush', 'headstone', 'placard', 'transgender symbol'];
|
|
172
172
|
exports.DEFAULT_EXCLUDED_EMOJIS = DEFAULT_EXCLUDED_EMOJIS;
|
|
173
173
|
var DEFAULT_VIRTUALIZED_LIST_CONFIG = {
|
|
174
174
|
overscan: 10,
|
|
@@ -56,6 +56,8 @@ var UTEmojiPicker = function UTEmojiPicker(_ref) {
|
|
|
56
56
|
ButtonComponent = _ref$ButtonComponent === void 0 ? _UTTouchableWithoutFeedback.default : _ref$ButtonComponent,
|
|
57
57
|
themeClasses = _ref.classes,
|
|
58
58
|
classNames = _ref.classNames,
|
|
59
|
+
_ref$closeOnPick = _ref.closeOnPick,
|
|
60
|
+
closeOnPick = _ref$closeOnPick === void 0 ? true : _ref$closeOnPick,
|
|
59
61
|
excludedEmojis = _ref.excludedEmojis,
|
|
60
62
|
groupsModifier = _ref.groupsModifier,
|
|
61
63
|
handlePick = _ref.handlePick,
|
|
@@ -93,11 +95,12 @@ var UTEmojiPicker = function UTEmojiPicker(_ref) {
|
|
|
93
95
|
role: "button",
|
|
94
96
|
onMouseDown: function onMouseDown(e) {
|
|
95
97
|
e.preventDefault();
|
|
98
|
+
if (closeOnPick) setIsOpen(false);
|
|
96
99
|
handlePick(emojiData);
|
|
97
100
|
},
|
|
98
101
|
className: "".concat(_stylesModule.default.emoji, " ").concat(classes.emoji)
|
|
99
102
|
}, (0, _utils.getEmoji)(emojiData));
|
|
100
|
-
}, []);
|
|
103
|
+
}, [handlePick]);
|
|
101
104
|
var groupEmojiRenderer = (0, _react.useCallback)(function (_ref2) {
|
|
102
105
|
var Icon = _ref2.Icon,
|
|
103
106
|
key = _ref2.key;
|
|
@@ -144,6 +147,7 @@ UTEmojiPicker.propTypes = {
|
|
|
144
147
|
ButtonComponent: _propTypes.element,
|
|
145
148
|
handlePick: _propTypes.func,
|
|
146
149
|
popperPosition: _propTypes.string,
|
|
150
|
+
closeOnPick: _propTypes.bool,
|
|
147
151
|
classNames: _types.classesPropTypes,
|
|
148
152
|
classes: (0, _propTypes.objectOf)(_propTypes.string)
|
|
149
153
|
};
|
|
@@ -401,7 +401,7 @@ var UTTable = function UTTable(_ref) {
|
|
|
401
401
|
GeneralActions: GeneralActions,
|
|
402
402
|
disabled: disableReloadRows
|
|
403
403
|
}), Filters, !isResponsive && /*#__PURE__*/_react.default.createElement("div", {
|
|
404
|
-
className: stickyHeader && _stylesModule.default.stickyHeader
|
|
404
|
+
className: stickyHeader && "".concat(_stylesModule.default.stickyHeader, " ").concat(classes.stickyHeader || '')
|
|
405
405
|
}, /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, {
|
|
406
406
|
onSync: handleScrollbarSync,
|
|
407
407
|
onScroll: handleSinchronizeContent,
|