-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow prop-types to be removed in production
fixes #257
- Loading branch information
1 parent
bae7afb
commit f602208
Showing
18 changed files
with
97 additions
and
77 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
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
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
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
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
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,46 @@ | ||
const EmojiDefaultProps = { | ||
skin: 1, | ||
set: 'apple', | ||
sheetSize: 64, | ||
sheetColumns: 52, | ||
sheetRows: 52, | ||
native: false, | ||
forceSize: false, | ||
tooltip: false, | ||
backgroundImageFn: (set, sheetSize) => | ||
`https://unpkg.com/emoji-datasource-${set}@${EMOJI_DATASOURCE_VERSION}/img/${set}/sheets-256/${sheetSize}.png`, | ||
onOver: () => {}, | ||
onLeave: () => {}, | ||
onClick: () => {}, | ||
} | ||
|
||
const PickerDefaultProps = { | ||
onClick: () => {}, | ||
onSelect: () => {}, | ||
onSkinChange: () => {}, | ||
emojiSize: 24, | ||
perLine: 9, | ||
i18n: {}, | ||
style: {}, | ||
title: 'Emoji Mart™', | ||
emoji: 'department_store', | ||
color: '#ae65c5', | ||
set: EmojiDefaultProps.set, | ||
skin: null, | ||
defaultSkin: EmojiDefaultProps.skin, | ||
native: EmojiDefaultProps.native, | ||
sheetSize: EmojiDefaultProps.sheetSize, | ||
backgroundImageFn: EmojiDefaultProps.backgroundImageFn, | ||
emojisToShowFilter: null, | ||
showPreview: true, | ||
showSkinTones: true, | ||
emojiTooltip: EmojiDefaultProps.tooltip, | ||
autoFocus: false, | ||
custom: [], | ||
skinEmoji: '', | ||
notFound: () => {}, | ||
notFoundEmoji: 'sleuth_or_spy', | ||
icons: {}, | ||
} | ||
|
||
export { PickerDefaultProps, EmojiDefaultProps } |
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