emoji-picker-react 4.15.2 → 4.16.1
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/README.md +3 -0
- package/dist/config/config.d.ts +2 -0
- package/dist/config/useConfig.d.ts +1 -0
- package/dist/emoji-picker-react.cjs.development.js +131 -109
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +131 -109
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/context/PickerConfigContext.tsx +1 -0
- package/src/components/header/Search/BtnClearSearch.tsx +4 -2
- package/src/config/compareConfig.ts +1 -0
- package/src/config/config.ts +3 -0
- package/src/config/useConfig.ts +6 -0
package/README.md
CHANGED
|
@@ -73,6 +73,7 @@ The following props are accepted by the picker:
|
|
|
73
73
|
| lazyLoadEmojis | boolean | `false` | Controls whether the emojis are loaded lazily or not. |
|
|
74
74
|
| previewConfig | object | `{}` | Controls the preview of the emoji. See below for more information. |
|
|
75
75
|
| searchPlaceholder | string | `Search` | Controls the placeholder of the search input. |
|
|
76
|
+
| searchClearButtonLabel | string | 'Clear' | Controls the `aria-label` and `title` of the Clear button of the search input. |
|
|
76
77
|
| suggestedEmojisMode | string | `frequent` | Controls the suggested emojis mode. Possible values are `frequent` and `recent`. |
|
|
77
78
|
| skinTonesDisabled | boolean | `false` | Controls whether the skin tones are disabled or not. |
|
|
78
79
|
| searchDisabled | boolean | `false` | Controls whether the search is disabled or not. When disabled, the skin tone picker will be shown in the preview component. |
|
|
@@ -166,6 +167,8 @@ import { SkinTones } from 'emoji-picker-react';
|
|
|
166
167
|
|
|
167
168
|
- `searchPlaceholder`: `string` - The placeholder text for the search input. Defaults to `Search`.
|
|
168
169
|
|
|
170
|
+
- `searchClearButtonLabel`: `string` - The `aria-label` and `title` text for the search input clear button. Defaults to `Clear`.
|
|
171
|
+
|
|
169
172
|
- categories: Allows full config over ordering, naming and display of categories.
|
|
170
173
|
To only sort/omit categories, you can simply pass an array of category names to display:
|
|
171
174
|
|
package/dist/config/config.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { EmojiClickData, EmojiStyle, SkinTonePickerLocation, SkinTones, Suggesti
|
|
|
4
4
|
import { CategoriesConfig } from './categoryConfig';
|
|
5
5
|
import { CustomEmoji } from './customEmojiConfig';
|
|
6
6
|
export declare const DEFAULT_SEARCH_PLACEHOLDER = "Search";
|
|
7
|
+
export declare const DEFAULT_SEARCH_CLEAR_BUTTON_LABEL = "Clear";
|
|
7
8
|
export declare const SEARCH_RESULTS_NO_RESULTS_FOUND = "No results found";
|
|
8
9
|
export declare const SEARCH_RESULTS_SUFFIX = " found. Use up and down arrow keys to navigate.";
|
|
9
10
|
export declare const SEARCH_RESULTS_ONE_RESULT_FOUND: string;
|
|
@@ -14,6 +15,7 @@ export declare type PickerConfigInternal = {
|
|
|
14
15
|
emojiVersion: string | null;
|
|
15
16
|
searchPlaceHolder: string;
|
|
16
17
|
searchPlaceholder: string;
|
|
18
|
+
searchClearButtonLabel: string;
|
|
17
19
|
defaultSkinTone: SkinTones;
|
|
18
20
|
skinTonesDisabled: boolean;
|
|
19
21
|
autoFocusSearch: boolean;
|
|
@@ -8,6 +8,7 @@ export declare enum MOUSE_EVENT_SOURCE {
|
|
|
8
8
|
PICKER = "picker"
|
|
9
9
|
}
|
|
10
10
|
export declare function useSearchPlaceHolderConfig(): string;
|
|
11
|
+
export declare function useSearchClearButtonLabelConfig(): string;
|
|
11
12
|
export declare function useDefaultSkinToneConfig(): SkinTones;
|
|
12
13
|
export declare function useAllowExpandReactions(): boolean;
|
|
13
14
|
export declare function useSkinTonesDisabledConfig(): boolean;
|
|
@@ -8,60 +8,74 @@ var React = require('react');
|
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var flairup = require('flairup');
|
|
10
10
|
|
|
11
|
-
function _arrayLikeToArray(r, a) {
|
|
12
|
-
(null == a || a > r.length) && (a = r.length);
|
|
13
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
function _createForOfIteratorHelperLoose(r, e) {
|
|
17
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
18
|
-
if (t) return (t = t.call(r)).next.bind(t);
|
|
19
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
20
|
-
t && (r = t);
|
|
21
|
-
var o = 0;
|
|
22
|
-
return function () {
|
|
23
|
-
return o >= r.length ? {
|
|
24
|
-
done: !0
|
|
25
|
-
} : {
|
|
26
|
-
done: !1,
|
|
27
|
-
value: r[o++]
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32
|
-
}
|
|
33
11
|
function _extends() {
|
|
34
|
-
|
|
35
|
-
for (var
|
|
36
|
-
var
|
|
37
|
-
for (var
|
|
12
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
13
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
+
var source = arguments[i];
|
|
15
|
+
for (var key in source) {
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
+
target[key] = source[key];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
38
20
|
}
|
|
39
|
-
return
|
|
40
|
-
}
|
|
21
|
+
return target;
|
|
22
|
+
};
|
|
23
|
+
return _extends.apply(this, arguments);
|
|
41
24
|
}
|
|
42
|
-
function _inheritsLoose(
|
|
43
|
-
|
|
25
|
+
function _inheritsLoose(subClass, superClass) {
|
|
26
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
27
|
+
subClass.prototype.constructor = subClass;
|
|
28
|
+
_setPrototypeOf(subClass, superClass);
|
|
29
|
+
}
|
|
30
|
+
function _setPrototypeOf(o, p) {
|
|
31
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
32
|
+
o.__proto__ = p;
|
|
33
|
+
return o;
|
|
34
|
+
};
|
|
35
|
+
return _setPrototypeOf(o, p);
|
|
44
36
|
}
|
|
45
|
-
function _objectWithoutPropertiesLoose(
|
|
46
|
-
if (
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
38
|
+
if (source == null) return {};
|
|
39
|
+
var target = {};
|
|
40
|
+
var sourceKeys = Object.keys(source);
|
|
41
|
+
var key, i;
|
|
42
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
43
|
+
key = sourceKeys[i];
|
|
44
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
45
|
+
target[key] = source[key];
|
|
51
46
|
}
|
|
52
|
-
return
|
|
47
|
+
return target;
|
|
53
48
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
50
|
+
if (!o) return;
|
|
51
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
52
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
53
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
54
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
55
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
58
56
|
}
|
|
59
|
-
function
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
function _arrayLikeToArray(arr, len) {
|
|
58
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
59
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
60
|
+
return arr2;
|
|
61
|
+
}
|
|
62
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
63
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
64
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
65
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
66
|
+
if (it) o = it;
|
|
67
|
+
var i = 0;
|
|
68
|
+
return function () {
|
|
69
|
+
if (i >= o.length) return {
|
|
70
|
+
done: true
|
|
71
|
+
};
|
|
72
|
+
return {
|
|
73
|
+
done: false,
|
|
74
|
+
value: o[i++]
|
|
75
|
+
};
|
|
76
|
+
};
|
|
64
77
|
}
|
|
78
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
79
|
}
|
|
66
80
|
|
|
67
81
|
var ClassNames;
|
|
@@ -177,7 +191,7 @@ function compareConfig(prev, next) {
|
|
|
177
191
|
var _prev$customEmojis, _next$customEmojis;
|
|
178
192
|
var prevCustomEmojis = (_prev$customEmojis = prev.customEmojis) != null ? _prev$customEmojis : [];
|
|
179
193
|
var nextCustomEmojis = (_next$customEmojis = next.customEmojis) != null ? _next$customEmojis : [];
|
|
180
|
-
return prev.open === next.open && prev.emojiVersion === next.emojiVersion && prev.reactionsDefaultOpen === next.reactionsDefaultOpen && prev.searchPlaceHolder === next.searchPlaceHolder && prev.searchPlaceholder === next.searchPlaceholder && prev.defaultSkinTone === next.defaultSkinTone && prev.skinTonesDisabled === next.skinTonesDisabled && prev.autoFocusSearch === next.autoFocusSearch && prev.emojiStyle === next.emojiStyle && prev.theme === next.theme && prev.suggestedEmojisMode === next.suggestedEmojisMode && prev.lazyLoadEmojis === next.lazyLoadEmojis && prev.className === next.className && prev.height === next.height && prev.width === next.width && prev.style === next.style && prev.searchDisabled === next.searchDisabled && prev.skinTonePickerLocation === next.skinTonePickerLocation && prevCustomEmojis.length === nextCustomEmojis.length;
|
|
194
|
+
return prev.open === next.open && prev.emojiVersion === next.emojiVersion && prev.reactionsDefaultOpen === next.reactionsDefaultOpen && prev.searchPlaceHolder === next.searchPlaceHolder && prev.searchPlaceholder === next.searchPlaceholder && prev.searchClearButtonLabel === next.searchClearButtonLabel && prev.defaultSkinTone === next.defaultSkinTone && prev.skinTonesDisabled === next.skinTonesDisabled && prev.autoFocusSearch === next.autoFocusSearch && prev.emojiStyle === next.emojiStyle && prev.theme === next.theme && prev.suggestedEmojisMode === next.suggestedEmojisMode && prev.lazyLoadEmojis === next.lazyLoadEmojis && prev.className === next.className && prev.height === next.height && prev.width === next.width && prev.style === next.style && prev.searchDisabled === next.searchDisabled && prev.skinTonePickerLocation === next.skinTonePickerLocation && prevCustomEmojis.length === nextCustomEmojis.length;
|
|
181
195
|
}
|
|
182
196
|
|
|
183
197
|
var DEFAULT_REACTIONS = ['1f44d', '2764-fe0f', '1f603', '1f622', '1f64f', '1f44e', '1f621' // 😡
|
|
@@ -420,23 +434,23 @@ function useEmojiVariationPickerState() {
|
|
|
420
434
|
return emojiVariationPickerState;
|
|
421
435
|
}
|
|
422
436
|
function useSkinToneFanOpenState() {
|
|
423
|
-
var _React$
|
|
424
|
-
skinToneFanOpenState = _React$
|
|
437
|
+
var _React$useContext10 = React.useContext(PickerContext),
|
|
438
|
+
skinToneFanOpenState = _React$useContext10.skinToneFanOpenState;
|
|
425
439
|
return skinToneFanOpenState;
|
|
426
440
|
}
|
|
427
441
|
function useVisibleCategoriesState() {
|
|
428
|
-
var _React$
|
|
429
|
-
visibleCategoriesState = _React$
|
|
442
|
+
var _React$useContext12 = React.useContext(PickerContext),
|
|
443
|
+
visibleCategoriesState = _React$useContext12.visibleCategoriesState;
|
|
430
444
|
return visibleCategoriesState;
|
|
431
445
|
}
|
|
432
446
|
function useEmojiSizeState() {
|
|
433
|
-
var _React$
|
|
434
|
-
emojiSizeState = _React$
|
|
447
|
+
var _React$useContext13 = React.useContext(PickerContext),
|
|
448
|
+
emojiSizeState = _React$useContext13.emojiSizeState;
|
|
435
449
|
return emojiSizeState;
|
|
436
450
|
}
|
|
437
451
|
function useUpdateSuggested() {
|
|
438
|
-
var _React$
|
|
439
|
-
suggestedUpdateState = _React$
|
|
452
|
+
var _React$useContext14 = React.useContext(PickerContext),
|
|
453
|
+
suggestedUpdateState = _React$useContext14.suggestedUpdateState;
|
|
440
454
|
var suggestedUpdated = suggestedUpdateState[0],
|
|
441
455
|
setsuggestedUpdate = suggestedUpdateState[1];
|
|
442
456
|
return [suggestedUpdated, function updateSuggested() {
|
|
@@ -17539,6 +17553,7 @@ function activeVariationFromUnified(unified) {
|
|
|
17539
17553
|
|
|
17540
17554
|
var KNOWN_FAILING_EMOJIS = ['2640-fe0f', '2642-fe0f', '2695-fe0f'];
|
|
17541
17555
|
var DEFAULT_SEARCH_PLACEHOLDER = 'Search';
|
|
17556
|
+
var DEFAULT_SEARCH_CLEAR_BUTTON_LABEL = 'Clear';
|
|
17542
17557
|
var SEARCH_RESULTS_NO_RESULTS_FOUND = 'No results found';
|
|
17543
17558
|
var SEARCH_RESULTS_SUFFIX = ' found. Use up and down arrow keys to navigate.';
|
|
17544
17559
|
var SEARCH_RESULTS_ONE_RESULT_FOUND = '1 result' + SEARCH_RESULTS_SUFFIX;
|
|
@@ -17581,6 +17596,7 @@ function basePickerConfig() {
|
|
|
17581
17596
|
searchDisabled: false,
|
|
17582
17597
|
searchPlaceHolder: DEFAULT_SEARCH_PLACEHOLDER,
|
|
17583
17598
|
searchPlaceholder: DEFAULT_SEARCH_PLACEHOLDER,
|
|
17599
|
+
searchClearButtonLabel: DEFAULT_SEARCH_CLEAR_BUTTON_LABEL,
|
|
17584
17600
|
skinTonePickerLocation: exports.SkinTonePickerLocation.SEARCH,
|
|
17585
17601
|
skinTonesDisabled: false,
|
|
17586
17602
|
style: {},
|
|
@@ -17602,7 +17618,7 @@ var basePreviewConfig = {
|
|
|
17602
17618
|
};
|
|
17603
17619
|
|
|
17604
17620
|
var _excluded = ["children"];
|
|
17605
|
-
var ConfigContext = /*#__PURE__*/React.createContext(/*#__PURE__*/basePickerConfig());
|
|
17621
|
+
var ConfigContext = /*#__PURE__*/React.createContext( /*#__PURE__*/basePickerConfig());
|
|
17606
17622
|
function PickerConfigProvider(_ref) {
|
|
17607
17623
|
var children = _ref.children,
|
|
17608
17624
|
config = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
@@ -17625,7 +17641,7 @@ function useSetConfig(config) {
|
|
|
17625
17641
|
setMergedConfig(mergeConfig(config));
|
|
17626
17642
|
// not gonna...
|
|
17627
17643
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17628
|
-
}, [(_config$customEmojis = config.customEmojis) == null ? void 0 : _config$customEmojis.length, config.open, config.emojiVersion, config.reactionsDefaultOpen, config.searchPlaceHolder, config.searchPlaceholder, config.defaultSkinTone, config.skinTonesDisabled, config.autoFocusSearch, config.emojiStyle, config.theme, config.suggestedEmojisMode, config.lazyLoadEmojis, config.className, config.height, config.width, config.searchDisabled, config.skinTonePickerLocation, config.allowExpandReactions]);
|
|
17644
|
+
}, [(_config$customEmojis = config.customEmojis) == null ? void 0 : _config$customEmojis.length, config.open, config.emojiVersion, config.reactionsDefaultOpen, config.searchPlaceHolder, config.searchPlaceholder, config.searchClearButtonLabel, config.defaultSkinTone, config.skinTonesDisabled, config.autoFocusSearch, config.emojiStyle, config.theme, config.suggestedEmojisMode, config.lazyLoadEmojis, config.className, config.height, config.width, config.searchDisabled, config.skinTonePickerLocation, config.allowExpandReactions]);
|
|
17629
17645
|
return mergedConfig;
|
|
17630
17646
|
}
|
|
17631
17647
|
function usePickerConfig() {
|
|
@@ -17668,44 +17684,49 @@ function useSearchPlaceHolderConfig() {
|
|
|
17668
17684
|
return p !== DEFAULT_SEARCH_PLACEHOLDER;
|
|
17669
17685
|
})) != null ? _find : DEFAULT_SEARCH_PLACEHOLDER;
|
|
17670
17686
|
}
|
|
17671
|
-
function
|
|
17687
|
+
function useSearchClearButtonLabelConfig() {
|
|
17672
17688
|
var _usePickerConfig2 = usePickerConfig(),
|
|
17673
|
-
|
|
17689
|
+
searchClearButtonLabel = _usePickerConfig2.searchClearButtonLabel;
|
|
17690
|
+
return searchClearButtonLabel != null ? searchClearButtonLabel : DEFAULT_SEARCH_CLEAR_BUTTON_LABEL;
|
|
17691
|
+
}
|
|
17692
|
+
function useDefaultSkinToneConfig() {
|
|
17693
|
+
var _usePickerConfig3 = usePickerConfig(),
|
|
17694
|
+
defaultSkinTone = _usePickerConfig3.defaultSkinTone;
|
|
17674
17695
|
return defaultSkinTone;
|
|
17675
17696
|
}
|
|
17676
17697
|
function useAllowExpandReactions() {
|
|
17677
|
-
var
|
|
17678
|
-
allowExpandReactions =
|
|
17698
|
+
var _usePickerConfig4 = usePickerConfig(),
|
|
17699
|
+
allowExpandReactions = _usePickerConfig4.allowExpandReactions;
|
|
17679
17700
|
return allowExpandReactions;
|
|
17680
17701
|
}
|
|
17681
17702
|
function useSkinTonesDisabledConfig() {
|
|
17682
|
-
var
|
|
17683
|
-
skinTonesDisabled =
|
|
17703
|
+
var _usePickerConfig5 = usePickerConfig(),
|
|
17704
|
+
skinTonesDisabled = _usePickerConfig5.skinTonesDisabled;
|
|
17684
17705
|
return skinTonesDisabled;
|
|
17685
17706
|
}
|
|
17686
17707
|
function useEmojiStyleConfig() {
|
|
17687
|
-
var
|
|
17688
|
-
emojiStyle =
|
|
17708
|
+
var _usePickerConfig6 = usePickerConfig(),
|
|
17709
|
+
emojiStyle = _usePickerConfig6.emojiStyle;
|
|
17689
17710
|
return emojiStyle;
|
|
17690
17711
|
}
|
|
17691
17712
|
function useAutoFocusSearchConfig() {
|
|
17692
|
-
var
|
|
17693
|
-
autoFocusSearch =
|
|
17713
|
+
var _usePickerConfig7 = usePickerConfig(),
|
|
17714
|
+
autoFocusSearch = _usePickerConfig7.autoFocusSearch;
|
|
17694
17715
|
return autoFocusSearch;
|
|
17695
17716
|
}
|
|
17696
17717
|
function useCategoriesConfig() {
|
|
17697
|
-
var
|
|
17698
|
-
categories =
|
|
17718
|
+
var _usePickerConfig8 = usePickerConfig(),
|
|
17719
|
+
categories = _usePickerConfig8.categories;
|
|
17699
17720
|
return categories;
|
|
17700
17721
|
}
|
|
17701
17722
|
function useCustomEmojisConfig() {
|
|
17702
|
-
var
|
|
17703
|
-
customEmojis =
|
|
17723
|
+
var _usePickerConfig9 = usePickerConfig(),
|
|
17724
|
+
customEmojis = _usePickerConfig9.customEmojis;
|
|
17704
17725
|
return customEmojis;
|
|
17705
17726
|
}
|
|
17706
17727
|
function useOpenConfig() {
|
|
17707
|
-
var
|
|
17708
|
-
open =
|
|
17728
|
+
var _usePickerConfig10 = usePickerConfig(),
|
|
17729
|
+
open = _usePickerConfig10.open;
|
|
17709
17730
|
return open;
|
|
17710
17731
|
}
|
|
17711
17732
|
function useOnEmojiClickConfig(mouseEventSource) {
|
|
@@ -17746,73 +17767,73 @@ function useOnSkinToneChangeConfig() {
|
|
|
17746
17767
|
return current.onSkinToneChange || function () {};
|
|
17747
17768
|
}
|
|
17748
17769
|
function usePreviewConfig() {
|
|
17749
|
-
var
|
|
17750
|
-
previewConfig =
|
|
17770
|
+
var _usePickerConfig11 = usePickerConfig(),
|
|
17771
|
+
previewConfig = _usePickerConfig11.previewConfig;
|
|
17751
17772
|
return previewConfig;
|
|
17752
17773
|
}
|
|
17753
17774
|
function useThemeConfig() {
|
|
17754
|
-
var
|
|
17755
|
-
theme =
|
|
17775
|
+
var _usePickerConfig12 = usePickerConfig(),
|
|
17776
|
+
theme = _usePickerConfig12.theme;
|
|
17756
17777
|
return theme;
|
|
17757
17778
|
}
|
|
17758
17779
|
function useSuggestedEmojisModeConfig() {
|
|
17759
|
-
var
|
|
17760
|
-
suggestedEmojisMode =
|
|
17780
|
+
var _usePickerConfig13 = usePickerConfig(),
|
|
17781
|
+
suggestedEmojisMode = _usePickerConfig13.suggestedEmojisMode;
|
|
17761
17782
|
return suggestedEmojisMode;
|
|
17762
17783
|
}
|
|
17763
17784
|
function useLazyLoadEmojisConfig() {
|
|
17764
|
-
var
|
|
17765
|
-
lazyLoadEmojis =
|
|
17785
|
+
var _usePickerConfig14 = usePickerConfig(),
|
|
17786
|
+
lazyLoadEmojis = _usePickerConfig14.lazyLoadEmojis;
|
|
17766
17787
|
return lazyLoadEmojis;
|
|
17767
17788
|
}
|
|
17768
17789
|
function useClassNameConfig() {
|
|
17769
|
-
var
|
|
17770
|
-
className =
|
|
17790
|
+
var _usePickerConfig15 = usePickerConfig(),
|
|
17791
|
+
className = _usePickerConfig15.className;
|
|
17771
17792
|
return className;
|
|
17772
17793
|
}
|
|
17773
17794
|
function useStyleConfig() {
|
|
17774
|
-
var
|
|
17775
|
-
height =
|
|
17776
|
-
width =
|
|
17777
|
-
style =
|
|
17795
|
+
var _usePickerConfig16 = usePickerConfig(),
|
|
17796
|
+
height = _usePickerConfig16.height,
|
|
17797
|
+
width = _usePickerConfig16.width,
|
|
17798
|
+
style = _usePickerConfig16.style;
|
|
17778
17799
|
return _extends({
|
|
17779
17800
|
height: getDimension(height),
|
|
17780
17801
|
width: getDimension(width)
|
|
17781
17802
|
}, style);
|
|
17782
17803
|
}
|
|
17783
17804
|
function useReactionsOpenConfig() {
|
|
17784
|
-
var
|
|
17785
|
-
reactionsDefaultOpen =
|
|
17805
|
+
var _usePickerConfig17 = usePickerConfig(),
|
|
17806
|
+
reactionsDefaultOpen = _usePickerConfig17.reactionsDefaultOpen;
|
|
17786
17807
|
return reactionsDefaultOpen;
|
|
17787
17808
|
}
|
|
17788
17809
|
function useEmojiVersionConfig() {
|
|
17789
|
-
var
|
|
17790
|
-
emojiVersion =
|
|
17810
|
+
var _usePickerConfig18 = usePickerConfig(),
|
|
17811
|
+
emojiVersion = _usePickerConfig18.emojiVersion;
|
|
17791
17812
|
return emojiVersion;
|
|
17792
17813
|
}
|
|
17793
17814
|
function useSearchDisabledConfig() {
|
|
17794
|
-
var
|
|
17795
|
-
searchDisabled =
|
|
17815
|
+
var _usePickerConfig19 = usePickerConfig(),
|
|
17816
|
+
searchDisabled = _usePickerConfig19.searchDisabled;
|
|
17796
17817
|
return searchDisabled;
|
|
17797
17818
|
}
|
|
17798
17819
|
function useSkinTonePickerLocationConfig() {
|
|
17799
|
-
var
|
|
17800
|
-
skinTonePickerLocation =
|
|
17820
|
+
var _usePickerConfig20 = usePickerConfig(),
|
|
17821
|
+
skinTonePickerLocation = _usePickerConfig20.skinTonePickerLocation;
|
|
17801
17822
|
return skinTonePickerLocation;
|
|
17802
17823
|
}
|
|
17803
17824
|
function useUnicodeToHide() {
|
|
17804
|
-
var
|
|
17805
|
-
unicodeToHide =
|
|
17825
|
+
var _usePickerConfig21 = usePickerConfig(),
|
|
17826
|
+
unicodeToHide = _usePickerConfig21.unicodeToHide;
|
|
17806
17827
|
return unicodeToHide;
|
|
17807
17828
|
}
|
|
17808
17829
|
function useReactionsConfig() {
|
|
17809
|
-
var
|
|
17810
|
-
reactions =
|
|
17830
|
+
var _usePickerConfig22 = usePickerConfig(),
|
|
17831
|
+
reactions = _usePickerConfig22.reactions;
|
|
17811
17832
|
return reactions;
|
|
17812
17833
|
}
|
|
17813
17834
|
function useGetEmojiUrlConfig() {
|
|
17814
|
-
var
|
|
17815
|
-
getEmojiUrl =
|
|
17835
|
+
var _usePickerConfig23 = usePickerConfig(),
|
|
17836
|
+
getEmojiUrl = _usePickerConfig23.getEmojiUrl;
|
|
17816
17837
|
return getEmojiUrl;
|
|
17817
17838
|
}
|
|
17818
17839
|
function getDimension(dimensionConfig) {
|
|
@@ -19607,7 +19628,7 @@ function BtnPlus() {
|
|
|
19607
19628
|
}
|
|
19608
19629
|
});
|
|
19609
19630
|
}
|
|
19610
|
-
var styles$5 = /*#__PURE__*/stylesheet.create(/*#__PURE__*/_extends({
|
|
19631
|
+
var styles$5 = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
19611
19632
|
plusSign: {
|
|
19612
19633
|
fontSize: '20px',
|
|
19613
19634
|
padding: '17px',
|
|
@@ -20198,7 +20219,7 @@ function useVariationPickerTop(VariationPickerRef) {
|
|
|
20198
20219
|
return emojiOffsetTop - height;
|
|
20199
20220
|
}
|
|
20200
20221
|
}
|
|
20201
|
-
var styles$9 = /*#__PURE__*/stylesheet.create(/*#__PURE__*/_extends({
|
|
20222
|
+
var styles$9 = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
20202
20223
|
variationPicker: {
|
|
20203
20224
|
'.': ClassNames.variationPicker,
|
|
20204
20225
|
position: 'absolute',
|
|
@@ -20810,7 +20831,7 @@ var DarkInactivePosition = {
|
|
|
20810
20831
|
}
|
|
20811
20832
|
}
|
|
20812
20833
|
};
|
|
20813
|
-
var styles$f = /*#__PURE__*/stylesheet.create(/*#__PURE__*/_extends({
|
|
20834
|
+
var styles$f = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
20814
20835
|
catBtn: {
|
|
20815
20836
|
'.': 'epr-cat-btn',
|
|
20816
20837
|
display: 'inline-block',
|
|
@@ -20939,11 +20960,12 @@ var SVGTimes = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz
|
|
|
20939
20960
|
|
|
20940
20961
|
function BtnClearSearch() {
|
|
20941
20962
|
var clearSearch = useClearSearch();
|
|
20963
|
+
var searchClearButtonLabel = useSearchClearButtonLabelConfig();
|
|
20942
20964
|
return React.createElement(Button, {
|
|
20943
20965
|
className: flairup.cx(styles$h.btnClearSearch, commonInteractionStyles.visibleOnSearchOnly),
|
|
20944
20966
|
onClick: clearSearch,
|
|
20945
|
-
"aria-label":
|
|
20946
|
-
title:
|
|
20967
|
+
"aria-label": searchClearButtonLabel,
|
|
20968
|
+
title: searchClearButtonLabel
|
|
20947
20969
|
}, React.createElement("div", {
|
|
20948
20970
|
className: flairup.cx(styles$h.icnClearnSearch)
|
|
20949
20971
|
}));
|
|
@@ -20955,7 +20977,7 @@ var HoverDark = {
|
|
|
20955
20977
|
}
|
|
20956
20978
|
}
|
|
20957
20979
|
};
|
|
20958
|
-
var styles$h = /*#__PURE__*/stylesheet.create(/*#__PURE__*/_extends({
|
|
20980
|
+
var styles$h = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
20959
20981
|
btnClearSearch: {
|
|
20960
20982
|
'.': 'epr-btn-clear-search',
|
|
20961
20983
|
position: 'absolute',
|
|
@@ -21002,7 +21024,7 @@ function IcnSearch() {
|
|
|
21002
21024
|
className: flairup.cx(styles$i.icnSearch)
|
|
21003
21025
|
});
|
|
21004
21026
|
}
|
|
21005
|
-
var styles$i = /*#__PURE__*/stylesheet.create(/*#__PURE__*/_extends({
|
|
21027
|
+
var styles$i = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
21006
21028
|
icnSearch: {
|
|
21007
21029
|
'.': 'epr-icn-search',
|
|
21008
21030
|
content: '',
|
|
@@ -21066,7 +21088,7 @@ function Search() {
|
|
|
21066
21088
|
"aria-atomic": "true"
|
|
21067
21089
|
}, statusSearchResults) : null, React.createElement(IcnSearch, null), React.createElement(BtnClearSearch, null));
|
|
21068
21090
|
}
|
|
21069
|
-
var styles$j = /*#__PURE__*/stylesheet.create(/*#__PURE__*/_extends({
|
|
21091
|
+
var styles$j = /*#__PURE__*/stylesheet.create( /*#__PURE__*/_extends({
|
|
21070
21092
|
overlay: {
|
|
21071
21093
|
padding: 'var(--epr-header-padding)',
|
|
21072
21094
|
zIndex: 'var(--epr-header-overlay-z-index)'
|