emoji-picker-react 4.0.3 → 4.0.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.
@@ -16073,7 +16073,7 @@ function useApplySearch() {
16073
16073
  var PickerMainRef = usePickerMainRef();
16074
16074
  return function applySearch(searchTerm) {
16075
16075
  requestAnimationFrame(function () {
16076
- setSearchTerm(searchTerm).then(function () {
16076
+ setSearchTerm(searchTerm.toLowerCase()).then(function () {
16077
16077
  scrollTo(PickerMainRef.current, 0);
16078
16078
  });
16079
16079
  });
@@ -16108,7 +16108,7 @@ function useIsEmojiFiltered() {
16108
16108
  searchTerm = _useSearchTermState3[0];
16109
16109
 
16110
16110
  return function (unified) {
16111
- return isEmojiFilteredBySearchTerm(unified, filter, searchTerm);
16111
+ return isEmojiFilteredBySearchTerm(unified, filter, searchTerm.toLowerCase());
16112
16112
  };
16113
16113
  }
16114
16114
 
@@ -16212,7 +16212,8 @@ function ClickableEmoji(_ref) {
16212
16212
  className: clsx(ClassNames.emoji, (_clsx = {}, _clsx[ClassNames.hidden] = hidden, _clsx[ClassNames.hiddenOnSearch] = hiddenOnSearch, _clsx[ClassNames.visible] = !hidden && !hiddenOnSearch, _clsx[ClassNames.emojiHasVariatios] = hasVariations && showVariations, _clsx)),
16213
16213
  "data-unified": unified,
16214
16214
  "aria-label": emojiName(emoji),
16215
- "data-full-name": emojiNames(emoji)
16215
+ "data-full-name": emojiNames(emoji),
16216
+ type: "button"
16216
16217
  }, createElement(ViewOnlyEmoji, {
16217
16218
  unified: unified,
16218
16219
  emoji: emoji,
@@ -16808,6 +16809,7 @@ function CategoryNavigation() {
16808
16809
 
16809
16810
  var category = categoryFromCategoryConfig(categoryConfig);
16810
16811
  return createElement("button", {
16812
+ type: "button",
16811
16813
  className: clsx('epr-cat-btn', "epr-icn-" + category, (_clsx = {}, _clsx[ClassNames.active] = category === activeCategory, _clsx)),
16812
16814
  key: category,
16813
16815
  onClick: function onClick() {
@@ -16863,13 +16865,14 @@ function Search() {
16863
16865
  className: "epr-icn-search"
16864
16866
  }), createElement("button", {
16865
16867
  className: clsx('epr-btn-clear-search', 'epr-visible-on-search-only'),
16866
- onClick: clearSearch
16868
+ onClick: clearSearch,
16869
+ type: "button"
16867
16870
  }));
16868
16871
  }
16869
16872
 
16870
16873
  function CssSearch(_ref) {
16871
16874
  var value = _ref.value;
16872
- return value ? createElement("style", null, "\n .EmojiPickerReact button.epr-emoji:not([data-full-name*=\"" + value + "\"]) {\n display: none;\n }\n ") : null;
16875
+ return value ? createElement("style", null, "\n .EmojiPickerReact button.epr-emoji:not([data-full-name*=\"" + value.toLowerCase() + "\"]) {\n display: none;\n }\n ") : null;
16873
16876
  }
16874
16877
 
16875
16878
  function useFocusSearchInput() {
@@ -16933,6 +16936,7 @@ function SkinTonePicker() {
16933
16936
 
16934
16937
  var active = skinToneVariation === activeSkinTone;
16935
16938
  return createElement("button", {
16939
+ type: "button",
16936
16940
  style: {
16937
16941
  transform: clsx("translateX(-" + i * (isOpen ? 28 : 0) + "px)", isOpen && active && 'scale(1.3)')
16938
16942
  },