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.
@@ -16071,7 +16071,7 @@ function useApplySearch() {
16071
16071
  var PickerMainRef = usePickerMainRef();
16072
16072
  return function applySearch(searchTerm) {
16073
16073
  requestAnimationFrame(function () {
16074
- setSearchTerm(searchTerm).then(function () {
16074
+ setSearchTerm(searchTerm.toLowerCase()).then(function () {
16075
16075
  scrollTo(PickerMainRef.current, 0);
16076
16076
  });
16077
16077
  });
@@ -16106,7 +16106,7 @@ function useIsEmojiFiltered() {
16106
16106
  searchTerm = _useSearchTermState3[0];
16107
16107
 
16108
16108
  return function (unified) {
16109
- return isEmojiFilteredBySearchTerm(unified, filter, searchTerm);
16109
+ return isEmojiFilteredBySearchTerm(unified, filter, searchTerm.toLowerCase());
16110
16110
  };
16111
16111
  }
16112
16112
 
@@ -16180,7 +16180,8 @@ function ClickableEmoji(_ref) {
16180
16180
  className: clsx(ClassNames.emoji, (_clsx = {}, _clsx[ClassNames.hidden] = hidden, _clsx[ClassNames.hiddenOnSearch] = hiddenOnSearch, _clsx[ClassNames.visible] = !hidden && !hiddenOnSearch, _clsx[ClassNames.emojiHasVariatios] = hasVariations && showVariations, _clsx)),
16181
16181
  "data-unified": unified,
16182
16182
  "aria-label": emojiName(emoji),
16183
- "data-full-name": emojiNames(emoji)
16183
+ "data-full-name": emojiNames(emoji),
16184
+ type: "button"
16184
16185
  }, React.createElement(ViewOnlyEmoji, {
16185
16186
  unified: unified,
16186
16187
  emoji: emoji,
@@ -16755,6 +16756,7 @@ function CategoryNavigation() {
16755
16756
 
16756
16757
  var category = categoryFromCategoryConfig(categoryConfig);
16757
16758
  return React.createElement("button", {
16759
+ type: "button",
16758
16760
  className: clsx('epr-cat-btn', "epr-icn-" + category, (_clsx = {}, _clsx[ClassNames.active] = category === activeCategory, _clsx)),
16759
16761
  key: category,
16760
16762
  onClick: function onClick() {
@@ -16807,13 +16809,14 @@ function Search() {
16807
16809
  className: "epr-icn-search"
16808
16810
  }), React.createElement("button", {
16809
16811
  className: clsx('epr-btn-clear-search', 'epr-visible-on-search-only'),
16810
- onClick: clearSearch
16812
+ onClick: clearSearch,
16813
+ type: "button"
16811
16814
  }));
16812
16815
  }
16813
16816
 
16814
16817
  function CssSearch(_ref) {
16815
16818
  var value = _ref.value;
16816
- return value ? React.createElement("style", null, "\n .EmojiPickerReact button.epr-emoji:not([data-full-name*=\"" + value + "\"]) {\n display: none;\n }\n ") : null;
16819
+ return value ? React.createElement("style", null, "\n .EmojiPickerReact button.epr-emoji:not([data-full-name*=\"" + value.toLowerCase() + "\"]) {\n display: none;\n }\n ") : null;
16817
16820
  }
16818
16821
 
16819
16822
  function useFocusSearchInput() {
@@ -16874,6 +16877,7 @@ function SkinTonePicker() {
16874
16877
 
16875
16878
  var active = skinToneVariation === activeSkinTone;
16876
16879
  return React.createElement("button", {
16880
+ type: "button",
16877
16881
  style: {
16878
16882
  transform: clsx("translateX(-" + i * (isOpen ? 28 : 0) + "px)", isOpen && active && 'scale(1.3)')
16879
16883
  },