emoji-picker-react 4.0.0-rc.17 → 4.0.0-rc.18

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.
@@ -3,5 +3,5 @@ import { CategoryConfig } from '../../config/categoryConfig';
3
3
  declare type Props = Readonly<{
4
4
  categoryConfig: CategoryConfig;
5
5
  }>;
6
- export declare function Suggested({ categoryConfig }: Props): JSX.Element | null;
6
+ export declare function Suggested({ categoryConfig }: Props): JSX.Element;
7
7
  export {};
@@ -16379,21 +16379,16 @@ function Suggested(_ref) {
16379
16379
 
16380
16380
  var suggestedEmojisModeConfig = useSuggestedEmojisModeConfig();
16381
16381
  var suggested = React.useMemo(function () {
16382
- return getSeggested(suggestedEmojisModeConfig);
16382
+ var _getSeggested;
16383
+
16384
+ return (_getSeggested = getSeggested(suggestedEmojisModeConfig)) != null ? _getSeggested : [];
16383
16385
  }, [suggestedUpdated]);
16384
16386
  var emojiStyle = useEmojiStyleConfig();
16385
-
16386
- if (searchTerm) {
16387
- return null;
16388
- }
16389
-
16390
- if (suggested.length === 0) {
16391
- return null;
16392
- }
16393
-
16387
+ var hidden = !!(searchTerm || suggested.length === 0);
16394
16388
  return React.createElement(EmojiCategory, {
16395
16389
  categoryConfig: categoryConfig,
16396
- hiddenOnSearch: true
16390
+ hiddenOnSearch: true,
16391
+ hidden: hidden
16397
16392
  }, suggested.map(function (suggestedItem) {
16398
16393
  var emoji = emojiByUnified(suggestedItem.original);
16399
16394