Export NimbleEmojiIndex
parent
a8b81f1858
commit
446fdf9544
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import NimbleEmojiIndex from '../../utils/emoji-index'
|
import NimbleEmojiIndex from '../../utils/emoji-index/nimble-emoji-index'
|
||||||
import { SearchPropTypes, SearchDefaultProps } from '../../utils/shared-props'
|
import { SearchPropTypes, SearchDefaultProps } from '../../utils/shared-props'
|
||||||
|
|
||||||
export default class NimbleSearch extends React.PureComponent {
|
export default class NimbleSearch extends React.PureComponent {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import emojiIndex from './utils/parent-emoji-index'
|
import emojiIndex from './utils/emoji-index/emoji-index'
|
||||||
import store from './utils/store'
|
import store from './utils/store'
|
||||||
import frequently from './utils/frequently'
|
import frequently from './utils/frequently'
|
||||||
|
|
||||||
export { Picker, Emoji, Category } from './components'
|
export { Picker, Emoji, Category } from './components'
|
||||||
|
export { NimbleEmojiIndex } from './utils/emoji-index/nimble-emoji-index'
|
||||||
export { emojiIndex, store, frequently }
|
export { emojiIndex, store, frequently }
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
import data from '../data'
|
import data from '../../data'
|
||||||
import NimbleEmojiIndex from './emoji-index'
|
import NimbleEmojiIndex from './nimble-emoji-index'
|
||||||
|
|
||||||
const emojiIndex = new NimbleEmojiIndex(data)
|
const emojiIndex = new NimbleEmojiIndex(data)
|
||||||
const emojis = emojiIndex.emojis
|
const { emojis, emoticons } = emojiIndex
|
||||||
const emoticons = emojiIndex.emoticons
|
|
||||||
|
|
||||||
function search() {
|
function search() {
|
||||||
return emojiIndex.search(...arguments)
|
return emojiIndex.search(...arguments)
|
|
@ -1,4 +1,4 @@
|
||||||
import { getData, getSanitizedData, intersect } from '.'
|
import { getData, getSanitizedData, intersect } from '..'
|
||||||
|
|
||||||
export default class NimbleEmojiIndex {
|
export default class NimbleEmojiIndex {
|
||||||
constructor(data) {
|
constructor(data) {
|
Loading…
Reference in New Issue