Commit Graph

43 Commits (d496014be7b89a22e4d71d1a2dbba46ff468e0f3)

Author SHA1 Message Date
mashirozx d496014be7 Release 3.0.1-k 2021-11-29 15:57:01 +08:00
Etienne Lemay 2dacd30dc8
Don’t use `getDerivedStateFromProps`
This is pretty much considered an anti-pattern (https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html), especially for a PureComponent.
2020-03-16 14:41:30 -04:00
Etienne Lemay d1138c00e8
Update theme handling [Fix #404]
- Defaults to “light”
- “auto” picks light/dark based on `prefers-color-scheme: dark` media query (and actually updates automatically)
2020-03-16 14:09:14 -04:00
Etienne Lemay 17cf50f7ba
Add an option to disable use of <button>
i.e. Latest version of Chrome (~v80) can’t render Pirate Flag (🏴‍☠️) on a <button>
2020-03-16 11:44:02 -04:00
Etienne Lemay 56ae7b49c5
Don’t sort frequent emojis by default 2020-03-16 11:08:13 -04:00
SaraRandolph 6ca158bb36 forgot to run prettier, now I did 2020-03-16 11:03:31 -04:00
SaraRandolph cdb6c26a08 adds functionality to disable the frequent emoji sorting, updates storybook for visibility 2020-03-16 11:03:31 -04:00
Nolan Lawson 835c2e9c36 fix: remove rAF polyfill, add SSR test 2020-01-12 09:59:07 -08:00
Nolan Lawson 6bb1932db8 fix: remove core-js dependency 2019-12-29 11:52:13 -08:00
Eugen Rochko 1a9d5f97b6 Add support for more than one custom category
Fix #224
2019-12-21 10:24:49 -08:00
Nolan Lawson 8cff39f6fd fix: dark mode CSS tweaks, add storybook/matchMedia/docs 2019-12-21 09:49:29 -08:00
Mohan Raj 848fc76396 feat: Add Dark Mode 2019-12-21 09:49:29 -08:00
Hiro-Aki Hotta 208099c2dc fix: Use getDerivedStateFromProps instead of componentWillReceiveProps (#372)
* use getDerivedStateFromProps instead of componentWillReceiveProps

* code formatting
2019-12-21 08:43:35 -08:00
Alex Brioux 76ac008169 Fix: Allowing emoji selection on enter (#386) 2019-12-21 08:38:25 -08:00
Hinaloe 39fc02bfe3 test: add test for short_names in custom emoji 2019-03-23 09:25:51 -07:00
Nolan Lawson 058cdec053 fix: improve accessible page structure
Makes some progress on #294
2019-03-12 09:36:28 -07:00
Nolan Lawson 5ef7a2a7da
Merge pull request #289 from nolanlawson/nolan/issue-201
fix: fix emoji.id undefined error
2019-03-12 08:20:55 -07:00
Nolan Lawson 92c5399ab5
Merge pull request #284 from nolanlawson/issue-218
fix: improve a11y of emoji list
2019-03-12 08:14:54 -07:00
Nolan Lawson 0f35206687 fix: improve a11y of emoji list
fixes #218
2019-03-12 08:14:29 -07:00
Nolan Lawson 740eccb6d0 fix: makes skin tone picker more accessible
fixes #220
2019-03-12 08:12:33 -07:00
Nolan Lawson c2c7092fc4
Merge pull request #282 from nolanlawson/nolan/issue-219
fix: make categories into accessible nav buttons
2019-03-12 08:08:46 -07:00
Nolan Lawson f3cff33eda refactor, add code comment 2019-03-10 10:57:43 -07:00
Nolan Lawson 12c2abba9d fix: fix emoji.id undefined error
fixes #201
2019-03-10 10:47:28 -07:00
Nolan Lawson e77c63bc9a fix: make categories into accessible nav buttons
fixes #219
2019-03-09 13:59:09 -08:00
Nolan Lawson 5052ecd399 fix: improve search/clear a11y
fixes #221
2019-03-09 13:03:00 -08:00
Nolan Lawson a871cacbf2
Merge pull request #277 from kayleemann/master
Support case where showPreview is false but showSkinTones is true. Also add prepare script.
2019-03-08 07:32:23 -08:00
Kaylee Mann caba7d0b34 Show preview panel when showPreview is false but showSkinTones is true.
This is necessary in order to be able to show skin tone picker even when
one desires for the mouseover preview to be invisible. This is an
important case because mouseover displays must be disabled in order to
enable single click emoji typing on iOS without disabling the skin tone
picker.
2019-03-08 14:00:50 +09:00
Nolan Lawson c27e62456f
Merge pull request #258 from nolanlawson/remove-proptypes
fix: allow prop-types to be removed in production
2019-03-07 18:18:53 -08:00
Nolan Lawson f60220870e fix: allow prop-types to be removed in production
fixes #257
2019-03-07 18:12:37 -08:00
Dimitri Wijesinghe 17db4cc913 Fixed bug where selecting the first emoji search result with the ENTER key ignores skin-tone selection. 2019-02-13 14:56:42 -05:00
Ross Khanas 9cad93d015
Update nimble-picker.js 2018-11-13 19:19:16 +09:00
Justine De Caires c6b36947d3 Fixes display of non-52x52 sheets in the preview bar 2018-08-14 22:29:20 -07:00
Etienne Lemay 2c060c56bc
Rename “skinIcon” => “skinEmoji”
More consistent with other props
2018-08-10 14:11:28 -04:00
Etienne Lemay 757f1b023c
Merge branch 'master' into rena/customskin 2018-08-10 14:06:41 -04:00
Etienne Lemay 9b523425c6
💄 2018-08-10 14:02:33 -04:00
Justine De Caires 385cb8f8c2 Add sheetColumns and sheetRows props for non-square sprite sheets 2018-08-06 14:31:02 -07:00
Rena Ryumae f1d5bc0095 Custom emoji for skin tone selector
Currently, the skin tone selector
is a row of colored dots

We propose creating a skinIcon field
that uses the emoji-mart dots on
default but otherwise uses the emoji
passed in by the user
2018-08-02 10:42:46 -04:00
Etienne Lemay 0021d6ff38
Merge branch 'master' into rena/categoryiconprops 2018-07-31 15:01:34 -04:00
Rena Ryumae 31cc0ab215 Customizable Category Icons
Currently, the default emoji-mart
category icons cannot be changed.

We propose creating a categories
object that uses the emoji-mart
category icons on default but
otherwise uses custom imgs/svgs
passed in by the user
2018-07-31 11:09:38 -04:00
Etienne Lemay 4bb41b9796
Add notFoundEmoji props to Picker 2018-07-30 17:06:23 -04:00
Rena Ryumae 8e6d363d8b Not Found Component for emoji search
If a user's search returns no results,
the sleuth_or_spy emoji appears. We would
instead like for a custom image to appear.

We propose creating a NotFound component
that uses the the sleuth_or_spy emoji
on default when a user's search returns
no results but otherwise uses what the
user passes through
2018-07-13 13:58:17 -04:00
Etienne Lemay 2e97b1faa6
Restructure data and components 2018-04-29 21:06:32 -04:00
Etienne Lemay a8b81f1858
Restructure components 2018-04-26 12:10:52 -04:00