Update gh-pages

release
Etienne Lemay 2018-01-09 15:32:10 -05:00
parent 68a4711658
commit e698358ea7
1 changed files with 66 additions and 34 deletions

View File

@ -1748,7 +1748,7 @@ function search(value) {
if (results) {
if (emojisToShowFilter) {
results = results.filter(function (result) {
return emojisToShowFilter(__WEBPACK_IMPORTED_MODULE_0__data__["a" /* default */].emojis[result.id]);
return emojisToShowFilter(pool[result.id]);
});
}
@ -23148,6 +23148,26 @@ var _handleLeave = function _handleLeave(e, props) {
onLeave(emoji, e);
};
var _isNumeric = function _isNumeric(value) {
return !isNaN(value - parseFloat(value));
};
var _convertStyleToCSS = function _convertStyleToCSS(style) {
var div = document.createElement('div');
for (var key in style) {
var value = style[key];
if (_isNumeric(value)) {
value += 'px';
}
div.style[key] = value;
}
return div.getAttribute('style');
};
var Emoji = function Emoji(props) {
for (var k in Emoji.defaultProps) {
if (props[k] == undefined && Emoji.defaultProps[k] != undefined) {
@ -23200,9 +23220,13 @@ var Emoji = function Emoji(props) {
var setHasEmoji = _getData(props)['has_img_' + props.set];
if (!setHasEmoji) {
if (props.fallback) {
style = { fontSize: props.size };
children = props.fallback(data);
} else {
return null;
}
} else {
style = {
width: props.size,
height: props.size,
@ -23212,7 +23236,12 @@ var Emoji = function Emoji(props) {
backgroundPosition: _getPosition(props)
};
}
}
if (props.html) {
style = _convertStyleToCSS(style);
return '<span style=\'' + style + '\' ' + (title ? 'title=\'' + title + '\'' : '') + ' class=\'' + className + '\'>' + (children || '') + '</span>';
} else {
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
'span',
{
@ -23235,6 +23264,7 @@ var Emoji = function Emoji(props) {
children
)
);
}
};
Emoji.defaultProps = {
@ -23249,7 +23279,8 @@ Emoji.defaultProps = {
},
onOver: function onOver() {},
onLeave: function onLeave() {},
onClick: function onClick() {}
onClick: function onClick() {},
fallback: function fallback(emoji) {}
};
/* harmony default export */ __webpack_exports__["a"] = (Emoji);
@ -23386,7 +23417,8 @@ var Picker = function (_React$PureComponent) {
if (newEmojis.length) {
var newCategory = {
emojis: newEmojis,
name: category.name
name: category.name,
id: category.id
};
_this.categories.push(newCategory);