Unicode-Emoji-Picker

Customizable emoji picker web component, based on the Unicode Emoji specification

MIT License

Downloads
583
Stars
29
Committers
1

Bot releases are visible (Hide)

Unicode-Emoji-Picker - v1.4.0 Latest Release

Published by Julien-Marcou 9 months ago

  • Updated to Unicode Emoji v15.1
  • Added new css variable to fully customize the component
    • --outer-padding
    • --filter-padding
    • --filter-gap
    • --filter-size
    • --content-scrollbar-width
    • --title-bar-height
    • --title-bar-horizontal-padding
    • --title-bar-font-size
    • --search-input-font-size
    • --search-input-line-height
    • --emoji-gap
    • --emoji-size
    • --emoji-font-size
Unicode-Emoji-Picker - v2.0.0-next.1

Published by Julien-Marcou about 2 years ago

Updated to Unicode Emoji v15.0

Unicode-Emoji-Picker - v1.3.0

Published by Julien-Marcou about 2 years ago

  • Updated to Unicode Emoji v15.0
  • Updated scrollable-component dependency to v1.2.1
Unicode-Emoji-Picker - v2.0.0-next.0

Published by Julien-Marcou over 2 years ago

This is a breaking change release as scrollable-component (the component used to have a nice custom scrollbar) now targets es2022 which may not work on old browsers. But because custom scrollbars are only supported on modern browsers anyway, you should not use this component if you target old browsers.

  • Updated scrollable-component dependency to v2.0.0-next.0
  • Added selectedGroup readonly property, which gives you the current group key (e.g. search, face-emotion, food-drink, ...)
  • Added clearSearch() method to clear the search input/results
  • Added focusHeader() method to focus the component's header
  • Added focusContent(skipSearchInput = false) method to focus the component's content
    • If skipSearchInput is set to false (default value), it focuses the search input when the search tab is selected, otherwise it focuses the first emoji
    • If skipSearchInput is set to true, it focuses the first emoji
Unicode-Emoji-Picker - v1.2.1

Published by Julien-Marcou over 2 years ago

Fix setTranslation not working when only setting the tab emojis.

So you can now do:

const emojiPicker = document.querySelector('unicode-emoji-picker');

window.customElements.whenDefined('unicode-emoji-picker').then(() => {
  emojiPicker.setTranslation({
    'search': {
      emoji: '🔎',
    },
    'face-emotion': {
      emoji: '😀️',
    },
    'food-drink': {
      emoji: '🥕️',
    },
    'animals-nature': {
      emoji: '🦜️',
    },
    'activities-events': {
      emoji: '♟️',
    },
    'person-people': {
      emoji: '🧍',
    },
    'travel-places': {
      emoji: '✈️',
    },
    'objects': {
      emoji: '👒',
    },
    'symbols': {
      emoji: '💬️',
    },
    'flags': {
      emoji: '🚩',
    },
  });
});
Unicode-Emoji-Picker - v1.2.0

Published by Julien-Marcou almost 3 years ago

Updated to Unicode Emoji v14.0

Unicode-Emoji-Picker - v1.1.4

Published by Julien-Marcou over 3 years ago

Fix critical issue : undefined 'version' variable

Unicode-Emoji-Picker - v1.1.3

Published by Julien-Marcou over 3 years ago

Updated unicode-emoji dependency to v2.2.1

Unicode-Emoji-Picker - v1.1.2

Published by Julien-Marcou over 3 years ago

  • Updated unicode-emoji dependency to v2.2.0
  • Updated scrollable-component dependency to v1.1.2
Unicode-Emoji-Picker - v1.1.1

Published by Julien-Marcou over 3 years ago

  • Added missing typing for the HTML element tag <unicode-emoji-picker>
  • Updated unicode-emoji dependency to v2.1.1
Unicode-Emoji-Picker - v1.1.0

Published by Julien-Marcou over 3 years ago

  • Added support for Unicode Emoji v13.1
  • Updated unicode-emoji dependency to v2.1.0
  • Updated scrollable-component dependency to v1.1.1
Unicode-Emoji-Picker - v1.0.0

Published by Julien-Marcou over 3 years ago

Initial release