Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data property to any components that import data.js, and use that…
… under the hood
- Loading branch information
1 parent
19d875e
commit 892096e
Showing
16 changed files
with
446 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
export { default as Anchors } from './anchors' | ||
export { default as Category } from './category' | ||
export { default as Emoji } from './emoji' | ||
export { default as Picker } from './picker' | ||
export { default as Preview } from './preview' | ||
export { default as Search } from './search' | ||
export { default as Category } from './parent-category' | ||
export { default as Emoji } from './parent-emoji' | ||
export { default as Picker } from './parent-picker' | ||
export { default as Preview } from './parent-preview' | ||
export { default as Search } from './parent-search' | ||
export { default as Skins } from './skins' | ||
export { default as NimbleCategory } from './category' | ||
export { default as NimbleEmoji } from './emoji' | ||
export { default as NimblePicker } from './picker' | ||
export { default as NimblePreview } from './preview' | ||
export { default as NimbleSearch } from './search' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import data from '../data' | ||
import { CategoryPropTypes, CategoryDefaultProps } from '../utils/shared-props' | ||
import NimbleCategory from './category' | ||
|
||
export default class Category extends React.Component { | ||
render() { | ||
return <NimbleCategory {...this.props} {...this.state}/> | ||
} | ||
} | ||
|
||
Category.propTypes = { ...CategoryPropTypes } | ||
Category.defaultProps = { ...CategoryDefaultProps, data } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import data from '../data' | ||
import { EmojiPropTypes, EmojiDefaultProps } from '../utils/shared-props' | ||
import NimbleEmoji from './emoji' | ||
|
||
export default class Emoji extends React.PureComponent { | ||
render() { | ||
return <NimbleEmoji {...this.props} {...this.state}/> | ||
} | ||
} | ||
|
||
Emoji.propTypes = EmojiPropTypes | ||
Emoji.defaultProps = { ...EmojiDefaultProps, data } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import '../vendor/raf-polyfill' | ||
|
||
import React from 'react' | ||
import data from '../data' | ||
import { PickerPropTypes, PickerDefaultProps } from '../utils/shared-props' | ||
import NimblePicker from './picker' | ||
|
||
export default class Picker extends React.PureComponent { | ||
render() { | ||
return <NimblePicker {...this.props} {...this.state}/> | ||
} | ||
} | ||
|
||
Picker.propTypes = PickerPropTypes | ||
Picker.defaultProps = { ...PickerDefaultProps, data } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import data from '../data' | ||
import { PreviewPropTypes, PreviewDefaultProps } from '../utils/shared-props' | ||
import NimblePreview from './preview' | ||
|
||
export default class Preview extends React.PureComponent { | ||
render() { | ||
return <NimblePreview {...this.props} {...this.state}/> | ||
} | ||
} | ||
|
||
Preview.propTypes = PreviewPropTypes | ||
Preview.defaultProps = { ...PreviewDefaultProps, data } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import data from '../data' | ||
import { SearchPropTypes, SearchDefaultProps } from '../utils/shared-props' | ||
import NimbleSearch from './search' | ||
|
||
export default class Search extends React.PureComponent { | ||
render() { | ||
return <NimbleSearch {...this.props} {...this.state}/> | ||
} | ||
} | ||
|
||
Search.propTypes = SearchPropTypes | ||
Search.defaultProps = { ...SearchDefaultProps, data } |
Oops, something went wrong.