emoji-picker-react 4.2.0 → 4.3.0

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.
@@ -16905,8 +16905,8 @@ function usePickerSizeConfig() {
16905
16905
  width = _usePickerConfig12.width;
16906
16906
 
16907
16907
  return {
16908
- height: height,
16909
- width: width
16908
+ height: getDimension(height),
16909
+ width: getDimension(width)
16910
16910
  };
16911
16911
  }
16912
16912
  function useEmojiVersionConfig() {
@@ -16922,6 +16922,10 @@ function useGetEmojiUrlConfig() {
16922
16922
  return getEmojiUrl;
16923
16923
  }
16924
16924
 
16925
+ function getDimension(dimensionConfig) {
16926
+ return typeof dimensionConfig === 'number' ? dimensionConfig + "px" : dimensionConfig;
16927
+ }
16928
+
16925
16929
  var alphaNumericEmojiIndex = {};
16926
16930
  setTimeout(function () {
16927
16931
  allEmojis.reduce(function (searchIndex, emoji) {
@@ -19459,8 +19463,8 @@ function PickerRootElement(_ref2) {
19459
19463
  useKeyboardNavigation();
19460
19464
  useOnFocus();
19461
19465
  var style = {
19462
- height: height + "px",
19463
- width: width + "px"
19466
+ height: height,
19467
+ width: width
19464
19468
  };
19465
19469
  return createElement("aside", {
19466
19470
  className: clsx(ClassNames.emojiPicker, 'epr-main', (_clsx = {}, _clsx[ClassNames.searchActive] = searchModeActive, _clsx['epr-dark-theme'] = theme === Theme.DARK, _clsx)),