emoji-picker-react 4.22.3 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +331 -49
- package/dist/DomUtils/categoryNameFromDom.d.ts +1 -1
- package/dist/DomUtils/classNames.d.ts +24 -23
- package/dist/DomUtils/detectEmojyPartiallyBelowFold.d.ts +2 -2
- package/dist/DomUtils/elementPositionInRow.d.ts +5 -5
- package/dist/DomUtils/eventBelongsToPicker.d.ts +2 -0
- package/dist/DomUtils/focusElement.d.ts +5 -5
- package/dist/DomUtils/getActiveElement.d.ts +2 -2
- package/dist/DomUtils/isJsdom.d.ts +1 -0
- package/dist/DomUtils/isRtl.d.ts +1 -0
- package/dist/DomUtils/keyboardNavigation.d.ts +7 -8
- package/dist/DomUtils/scrollTo.d.ts +4 -5
- package/dist/DomUtils/selectors.d.ts +31 -35
- package/dist/EmojiPickerReact.d.ts +5 -5
- package/dist/Stylesheet/DedupedStyle.d.ts +13 -0
- package/dist/Stylesheet/stylesheet.d.ts +40 -37
- package/dist/components/ErrorBoundary.d.ts +15 -15
- package/dist/components/Layout/Absolute.d.ts +8 -8
- package/dist/components/Layout/Flex.d.ts +13 -13
- package/dist/components/Layout/Relative.d.ts +8 -8
- package/dist/components/Layout/Space.d.ts +7 -7
- package/dist/components/Reactions/BtnPlus.d.ts +2 -2
- package/dist/components/Reactions/DEFAULT_REACTIONS.d.ts +1 -1
- package/dist/components/Reactions/Reactions.d.ts +3 -2
- package/dist/components/atoms/Button.d.ts +11 -6
- package/dist/components/body/EmojiCategory.d.ts +13 -12
- package/dist/components/body/EmojiList.d.ts +7 -4
- package/dist/components/body/EmojiVariationPicker.d.ts +2 -2
- package/dist/components/body/MeasureEmoji.d.ts +2 -2
- package/dist/components/body/listComponents.d.ts +47 -0
- package/dist/components/context/ElementRefContext.d.ts +18 -16
- package/dist/components/context/PickerConfigContext.d.ts +14 -9
- package/dist/components/context/PickerContext.d.ts +57 -25
- package/dist/components/context/PickerDataContext.d.ts +23 -17
- package/dist/components/emoji/BaseEmojiProps.d.ts +14 -13
- package/dist/components/emoji/ClickableEmojiButton.d.ts +23 -15
- package/dist/components/emoji/Emoji.d.ts +18 -15
- package/dist/components/emoji/EmojiImg.d.ts +11 -11
- package/dist/components/emoji/ExportedEmoji.d.ts +11 -11
- package/dist/components/emoji/NativeEmoji.d.ts +6 -6
- package/dist/components/emoji/ViewOnlyEmoji.d.ts +3 -3
- package/dist/components/emoji/emojiStyles.d.ts +6 -1
- package/dist/components/footer/Preview.d.ts +7 -7
- package/dist/components/header/Header.d.ts +2 -2
- package/dist/components/header/Search/BtnClearSearch.d.ts +2 -2
- package/dist/components/header/Search/IcnSearch.d.ts +2 -2
- package/dist/components/header/Search/Search.d.ts +11 -3
- package/dist/components/header/SkinTonePicker/BtnSkinToneVariation.d.ts +12 -12
- package/dist/components/header/SkinTonePicker/SkinTonePicker.d.ts +11 -11
- package/dist/components/icons/svgIcons.d.ts +4 -0
- package/dist/components/main/PickerMainBehaviors.d.ts +4 -0
- package/dist/components/main/defaultAppearance.d.ts +12 -0
- package/dist/components/main/labelHeight.d.ts +1 -0
- package/dist/components/navigation/CategoryButton.d.ts +12 -12
- package/dist/components/navigation/CategoryNavIcon.d.ts +4 -4
- package/dist/components/navigation/CategoryNavigation.d.ts +19 -2
- package/dist/config/categoryConfig.d.ts +34 -34
- package/dist/config/cdnUrls.d.ts +2 -2
- package/dist/config/compareConfig.d.ts +10 -2
- package/dist/config/config.d.ts +166 -64
- package/dist/config/customEmojiConfig.d.ts +14 -14
- package/dist/config/defaultPickerConfiguration.d.ts +10 -0
- package/dist/config/mutableConfig.d.ts +32 -10
- package/dist/config/useConfig.d.ts +48 -36
- package/dist/data/defaultEmojiData.d.ts +9 -0
- package/dist/data/defaultEmojiData.js +40 -0
- package/dist/data/emojis-bn.d.mts +39 -0
- package/dist/data/emojis-bn.d.ts +38 -2
- package/dist/data/emojis-bn.js +25 -2
- package/dist/data/emojis-bn.mjs +2 -0
- package/dist/data/emojis-da.d.mts +39 -0
- package/dist/data/emojis-da.d.ts +38 -2
- package/dist/data/emojis-da.js +25 -2
- package/dist/data/emojis-da.mjs +2 -0
- package/dist/data/emojis-de.d.mts +39 -0
- package/dist/data/emojis-de.d.ts +38 -2
- package/dist/data/emojis-de.js +25 -2
- package/dist/data/emojis-de.mjs +2 -0
- package/dist/data/emojis-en-gb.d.mts +39 -0
- package/dist/data/emojis-en-gb.d.ts +38 -2
- package/dist/data/emojis-en-gb.js +25 -2
- package/dist/data/emojis-en-gb.mjs +2 -0
- package/dist/data/emojis-en.d.mts +39 -0
- package/dist/data/emojis-en.d.ts +38 -2
- package/dist/data/emojis-en.js +25 -2
- package/dist/data/emojis-en.mjs +2 -0
- package/dist/data/emojis-es-mx.d.mts +39 -0
- package/dist/data/emojis-es-mx.d.ts +38 -2
- package/dist/data/emojis-es-mx.js +25 -2
- package/dist/data/emojis-es-mx.mjs +2 -0
- package/dist/data/emojis-es.d.mts +39 -0
- package/dist/data/emojis-es.d.ts +38 -2
- package/dist/data/emojis-es.js +25 -2
- package/dist/data/emojis-es.mjs +2 -0
- package/dist/data/emojis-et.d.mts +39 -0
- package/dist/data/emojis-et.d.ts +38 -2
- package/dist/data/emojis-et.js +25 -2
- package/dist/data/emojis-et.mjs +2 -0
- package/dist/data/emojis-fi.d.mts +39 -0
- package/dist/data/emojis-fi.d.ts +38 -2
- package/dist/data/emojis-fi.js +25 -2
- package/dist/data/emojis-fi.mjs +2 -0
- package/dist/data/emojis-fr.d.mts +39 -0
- package/dist/data/emojis-fr.d.ts +38 -2
- package/dist/data/emojis-fr.js +25 -2
- package/dist/data/emojis-fr.mjs +2 -0
- package/dist/data/emojis-hi.d.mts +39 -0
- package/dist/data/emojis-hi.d.ts +38 -2
- package/dist/data/emojis-hi.js +25 -2
- package/dist/data/emojis-hi.mjs +2 -0
- package/dist/data/emojis-hu.d.mts +39 -0
- package/dist/data/emojis-hu.d.ts +38 -2
- package/dist/data/emojis-hu.js +25 -2
- package/dist/data/emojis-hu.mjs +2 -0
- package/dist/data/emojis-it.d.mts +39 -0
- package/dist/data/emojis-it.d.ts +38 -2
- package/dist/data/emojis-it.js +25 -2
- package/dist/data/emojis-it.mjs +2 -0
- package/dist/data/emojis-ja.d.mts +39 -0
- package/dist/data/emojis-ja.d.ts +38 -2
- package/dist/data/emojis-ja.js +25 -2
- package/dist/data/emojis-ja.mjs +2 -0
- package/dist/data/emojis-ko.d.mts +39 -0
- package/dist/data/emojis-ko.d.ts +38 -2
- package/dist/data/emojis-ko.js +25 -2
- package/dist/data/emojis-ko.mjs +2 -0
- package/dist/data/emojis-lt.d.mts +39 -0
- package/dist/data/emojis-lt.d.ts +38 -2
- package/dist/data/emojis-lt.js +25 -2
- package/dist/data/emojis-lt.mjs +2 -0
- package/dist/data/emojis-ms.d.mts +39 -0
- package/dist/data/emojis-ms.d.ts +38 -2
- package/dist/data/emojis-ms.js +25 -2
- package/dist/data/emojis-ms.mjs +2 -0
- package/dist/data/emojis-nb.d.mts +39 -0
- package/dist/data/emojis-nb.d.ts +38 -2
- package/dist/data/emojis-nb.js +25 -2
- package/dist/data/emojis-nb.mjs +2 -0
- package/dist/data/emojis-nl.d.mts +39 -0
- package/dist/data/emojis-nl.d.ts +38 -2
- package/dist/data/emojis-nl.js +25 -2
- package/dist/data/emojis-nl.mjs +2 -0
- package/dist/data/emojis-pl.d.mts +39 -0
- package/dist/data/emojis-pl.d.ts +38 -2
- package/dist/data/emojis-pl.js +25 -2
- package/dist/data/emojis-pl.mjs +2 -0
- package/dist/data/emojis-pt.d.mts +39 -0
- package/dist/data/emojis-pt.d.ts +38 -2
- package/dist/data/emojis-pt.js +25 -2
- package/dist/data/emojis-pt.mjs +2 -0
- package/dist/data/emojis-ru.d.mts +39 -0
- package/dist/data/emojis-ru.d.ts +38 -2
- package/dist/data/emojis-ru.js +25 -2
- package/dist/data/emojis-ru.mjs +2 -0
- package/dist/data/emojis-sv.d.mts +39 -0
- package/dist/data/emojis-sv.d.ts +38 -2
- package/dist/data/emojis-sv.js +25 -2
- package/dist/data/emojis-sv.mjs +2 -0
- package/dist/data/emojis-th.d.mts +39 -0
- package/dist/data/emojis-th.d.ts +38 -2
- package/dist/data/emojis-th.js +25 -2
- package/dist/data/emojis-th.mjs +2 -0
- package/dist/data/emojis-uk.d.mts +39 -0
- package/dist/data/emojis-uk.d.ts +38 -2
- package/dist/data/emojis-uk.js +25 -2
- package/dist/data/emojis-uk.mjs +2 -0
- package/dist/data/emojis-vi.d.mts +39 -0
- package/dist/data/emojis-vi.d.ts +38 -2
- package/dist/data/emojis-vi.js +25 -2
- package/dist/data/emojis-vi.mjs +2 -0
- package/dist/data/emojis-zh-hant.d.mts +39 -0
- package/dist/data/emojis-zh-hant.d.ts +38 -2
- package/dist/data/emojis-zh-hant.js +25 -2
- package/dist/data/emojis-zh-hant.mjs +2 -0
- package/dist/data/emojis-zh.d.mts +39 -0
- package/dist/data/emojis-zh.d.ts +38 -2
- package/dist/data/emojis-zh.js +25 -2
- package/dist/data/emojis-zh.mjs +2 -0
- package/dist/data/index.js +1 -0
- package/dist/data/registerDefaultEmojiData.d.ts +1 -0
- package/dist/data/registerDefaultEmojiData.js +3 -0
- package/dist/data-core/pickerData.d.ts +12 -0
- package/dist/data-core/prepare.d.ts +23 -0
- package/dist/data-core/search.d.ts +13 -0
- package/dist/data-core/types.d.ts +23 -0
- package/dist/data.d.mts +72 -0
- package/dist/data.d.ts +72 -0
- package/dist/dataUtils/DataTypes.d.ts +23 -19
- package/dist/dataUtils/emojiSelectors.d.ts +15 -16
- package/dist/dataUtils/emojiUtils.d.ts +1 -12
- package/dist/dataUtils/nativeEmojiSequenceSupport.d.ts +10 -0
- package/dist/dataUtils/nativeEmojiSupport.d.ts +40 -0
- package/dist/dataUtils/parseNativeEmoji.d.ts +1 -1
- package/dist/dataUtils/suggested.d.ts +11 -11
- package/dist/dataUtils/suggestedEmojis.d.ts +7 -0
- package/dist/esm/chunks/chunk-46BUDQLE.mjs +228 -0
- package/dist/esm/chunks/chunk-7ZGTUZFB.mjs +16 -0
- package/dist/esm/chunks/chunk-FQIJ4HBW.mjs +25 -0
- package/dist/esm/chunks/chunk-KQPOIRSC.mjs +9305 -0
- package/dist/esm/chunks/chunk-LO4TPPLH.mjs +43 -0
- package/dist/esm/chunks/emojis-6L3GRBAP.mjs +9 -0
- package/dist/esm/data.mjs +18 -0
- package/dist/esm/index.mjs +389 -0
- package/dist/esm/primitives/index.mjs +67 -0
- package/dist/hooks/preloadEmoji.d.ts +9 -9
- package/dist/hooks/useActiveCategoryScrollDetection.d.ts +11 -11
- package/dist/hooks/useCategoryHeight.d.ts +6 -5
- package/dist/hooks/useCloseAllOpenToggles.d.ts +2 -2
- package/dist/hooks/useDataIdentityStabilityWarning.d.ts +13 -0
- package/dist/hooks/useDebouncedState.d.ts +1 -1
- package/dist/hooks/useDisallowMouseMove.d.ts +4 -4
- package/dist/hooks/useDisallowedEmojis.d.ts +2 -3
- package/dist/hooks/useEmojiPreviewEvents.d.ts +3 -3
- package/dist/hooks/useEmojiVirtualization.d.ts +21 -17
- package/dist/hooks/useFilter.d.ts +10 -16
- package/dist/hooks/useFocus.d.ts +3 -3
- package/dist/hooks/useInitialLoad.d.ts +2 -2
- package/dist/hooks/useIsEmojiHidden.d.ts +8 -8
- package/dist/hooks/useIsMounted.d.ts +1 -1
- package/dist/hooks/useIsSearchMode.d.ts +1 -1
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -2
- package/dist/hooks/useKeyboardNavigation.d.ts +3 -1
- package/dist/hooks/useMouseDownHandlers.d.ts +8 -4
- package/dist/hooks/useOnFocus.d.ts +1 -1
- package/dist/hooks/useOnScroll.d.ts +2 -2
- package/dist/hooks/useReactionsFocus.d.ts +1 -0
- package/dist/hooks/useRegisterRegion.d.ts +24 -0
- package/dist/hooks/useResolvedEmojiData.d.ts +37 -0
- package/dist/hooks/useScrollCategoryIntoView.d.ts +1 -1
- package/dist/hooks/useSearchController.d.ts +17 -0
- package/dist/hooks/useSearchResults.d.ts +8 -0
- package/dist/hooks/useSetVariationPicker.d.ts +2 -2
- package/dist/hooks/useShouldHideCustomEmojis.d.ts +1 -1
- package/dist/hooks/useShouldShowSkinTonePicker.d.ts +4 -4
- package/dist/index.d.mts +376 -0
- package/dist/index.d.ts +376 -9
- package/dist/index.js +2 -8
- package/dist/primitives/CategoryNav.d.ts +4 -0
- package/dist/primitives/Empty.d.ts +6 -0
- package/dist/primitives/List.d.ts +4 -0
- package/dist/primitives/LoadError.d.ts +8 -0
- package/dist/primitives/Loading.d.ts +4 -0
- package/dist/primitives/Panel.d.ts +3 -0
- package/dist/primitives/Preview.d.ts +3 -0
- package/dist/primitives/Reactions.d.ts +2 -0
- package/dist/primitives/Root.d.ts +26 -0
- package/dist/primitives/Search.d.ts +5 -0
- package/dist/primitives/SearchInput.d.ts +3 -0
- package/dist/primitives/SkinTone.d.ts +4 -0
- package/dist/primitives/Viewport.d.ts +19 -0
- package/dist/primitives/appearance.d.ts +3 -0
- package/dist/primitives/components.d.ts +27 -0
- package/dist/primitives/hooks.d.ts +48 -0
- package/dist/primitives/index.d.mts +561 -0
- package/dist/primitives/index.d.ts +561 -0
- package/dist/primitives/index.js +2 -0
- package/dist/primitives/nativeProps.d.ts +15 -0
- package/dist/primitives/scope.d.ts +13 -0
- package/dist/primitives/structuralStyles.d.ts +16 -0
- package/dist/primitives/tokens.d.ts +18 -0
- package/dist/primitives/types.d.ts +85 -0
- package/dist/state/activeEmojiStore.d.ts +7 -0
- package/dist/state/navigationRegistry.d.ts +61 -0
- package/dist/state/regionTraversal.d.ts +20 -0
- package/dist/typeRefinements/typeRefinements.d.ts +6 -6
- package/dist/types/exposedTypes.d.ts +16 -6
- package/dist/types/exposedTypes.js +5 -0
- package/dist/virtualization/virtualizationHelpers.d.ts +20 -18
- package/llms-full.txt +3680 -0
- package/llms.txt +66 -480
- package/package.json +180 -66
- package/src/DomUtils/categoryNameFromDom.ts +1 -1
- package/src/DomUtils/classNames.ts +1 -0
- package/src/DomUtils/elementPositionInRow.ts +26 -4
- package/src/DomUtils/eventBelongsToPicker.ts +17 -0
- package/src/DomUtils/getActiveElement.ts +7 -1
- package/src/DomUtils/isJsdom.ts +12 -0
- package/src/DomUtils/isRtl.ts +5 -0
- package/src/DomUtils/keyboardNavigation.ts +105 -149
- package/src/DomUtils/scrollTo.ts +18 -16
- package/src/DomUtils/selectors.ts +20 -111
- package/src/EmojiPickerReact.tsx +155 -48
- package/src/Stylesheet/DedupedStyle.tsx +80 -0
- package/src/Stylesheet/stylesheet.tsx +128 -59
- package/src/components/Layout/Flex.tsx +12 -11
- package/src/components/Reactions/BtnPlus.tsx +61 -51
- package/src/components/Reactions/Reactions.tsx +113 -55
- package/src/components/atoms/Button.tsx +18 -15
- package/src/components/body/EmojiCategory.tsx +77 -40
- package/src/components/body/EmojiList.tsx +55 -23
- package/src/components/body/EmojiVariationPicker.tsx +113 -66
- package/src/components/body/MeasureEmoji.tsx +9 -2
- package/src/components/body/listComponents.tsx +79 -0
- package/src/components/context/ElementRefContext.tsx +46 -35
- package/src/components/context/PickerConfigContext.tsx +55 -40
- package/src/components/context/PickerContext.tsx +567 -92
- package/src/components/context/PickerDataContext.tsx +110 -99
- package/src/components/emoji/BaseEmojiProps.ts +5 -4
- package/src/components/emoji/ClickableEmojiButton.tsx +148 -63
- package/src/components/emoji/Emoji.tsx +24 -2
- package/src/components/emoji/EmojiImg.tsx +13 -12
- package/src/components/emoji/ExportedEmoji.tsx +5 -4
- package/src/components/emoji/NativeEmoji.tsx +19 -16
- package/src/components/emoji/ViewOnlyEmoji.tsx +55 -30
- package/src/components/emoji/emojiStyles.ts +12 -11
- package/src/components/footer/Preview.tsx +86 -91
- package/src/components/header/Header.tsx +21 -6
- package/src/components/header/Search/BtnClearSearch.tsx +69 -55
- package/src/components/header/Search/IcnSearch.tsx +21 -21
- package/src/components/header/Search/Search.tsx +77 -137
- package/src/components/header/SkinTonePicker/BtnSkinToneVariation.tsx +99 -62
- package/src/components/header/SkinTonePicker/SkinTonePicker.tsx +84 -46
- package/src/components/icons/svgIcons.ts +17 -0
- package/src/components/main/PickerMainBehaviors.tsx +163 -0
- package/src/components/main/defaultAppearance.tsx +188 -0
- package/src/components/main/labelHeight.ts +5 -0
- package/src/components/navigation/CategoryButton.tsx +83 -57
- package/src/components/navigation/CategoryNavIcon.tsx +73 -194
- package/src/components/navigation/CategoryNavigation.tsx +118 -46
- package/src/config/categoryConfig.ts +7 -3
- package/src/config/cdnUrls.ts +11 -21
- package/src/config/compareConfig.ts +128 -30
- package/src/config/config.ts +228 -24
- package/src/config/defaultPickerConfiguration.ts +7 -0
- package/src/config/mutableConfig.ts +44 -20
- package/src/config/useConfig.ts +130 -37
- package/src/data/defaultEmojiData.ts +49 -0
- package/src/data/registerDefaultEmojiData.ts +8 -0
- package/src/data-core/pickerData.ts +173 -0
- package/src/data-core/prepare.ts +178 -0
- package/src/data-core/search.ts +122 -0
- package/src/data-core/types.ts +36 -0
- package/src/data.ts +10 -0
- package/src/dataUtils/DataTypes.ts +4 -0
- package/src/dataUtils/emojiSelectors.ts +58 -63
- package/src/dataUtils/emojiUtils.ts +17 -74
- package/src/dataUtils/nativeEmojiSequenceSupport.ts +116 -0
- package/src/dataUtils/nativeEmojiSupport.ts +160 -0
- package/src/dataUtils/suggested.ts +8 -4
- package/src/dataUtils/suggestedEmojis.ts +92 -0
- package/src/env.d.ts +4 -0
- package/src/hooks/preloadEmoji.ts +3 -3
- package/src/hooks/useActiveCategoryScrollDetection.ts +10 -1
- package/src/hooks/useCategoryHeight.ts +82 -8
- package/src/hooks/useDataIdentityStabilityWarning.ts +86 -0
- package/src/hooks/useDebouncedState.ts +13 -1
- package/src/hooks/useDisallowedEmojis.ts +26 -42
- package/src/hooks/useEmojiPreviewEvents.ts +43 -10
- package/src/hooks/useEmojiVirtualization.tsx +38 -4
- package/src/hooks/useFilter.ts +85 -127
- package/src/hooks/useFocus.ts +14 -24
- package/src/hooks/useIsEmojiHidden.ts +10 -6
- package/src/hooks/useKeyboardNavigation.ts +322 -429
- package/src/hooks/useMouseDownHandlers.ts +91 -16
- package/src/hooks/useOnFocus.ts +12 -3
- package/src/hooks/useOnScroll.ts +18 -2
- package/src/hooks/useReactionsFocus.ts +118 -0
- package/src/hooks/useRegisterRegion.ts +92 -0
- package/src/hooks/useResolvedEmojiData.ts +200 -0
- package/src/hooks/useScrollCategoryIntoView.ts +74 -12
- package/src/hooks/useSearchController.ts +369 -0
- package/src/hooks/useSearchResults.ts +51 -0
- package/src/hooks/useSetVariationPicker.ts +4 -1
- package/src/index.tsx +67 -5
- package/src/primitives/CategoryNav.tsx +40 -0
- package/src/primitives/Empty.tsx +68 -0
- package/src/primitives/List.tsx +61 -0
- package/src/primitives/LoadError.tsx +38 -0
- package/src/primitives/Loading.tsx +60 -0
- package/src/primitives/Panel.tsx +47 -0
- package/src/primitives/Preview.tsx +38 -0
- package/src/primitives/Reactions.tsx +2 -0
- package/src/primitives/Root.tsx +398 -0
- package/src/primitives/Search.tsx +41 -0
- package/src/primitives/SearchInput.tsx +110 -0
- package/src/primitives/SkinTone.tsx +76 -0
- package/src/primitives/Viewport.tsx +204 -0
- package/src/primitives/appearance.tsx +7 -0
- package/src/primitives/components.tsx +30 -0
- package/src/primitives/hooks.ts +165 -0
- package/src/primitives/index.ts +94 -0
- package/src/primitives/nativeProps.ts +90 -0
- package/src/primitives/scope.tsx +109 -0
- package/src/primitives/structuralStyles.tsx +133 -0
- package/src/primitives/tokens.ts +149 -0
- package/src/primitives/types.ts +192 -0
- package/src/state/activeEmojiStore.ts +39 -0
- package/src/state/navigationRegistry.ts +209 -0
- package/src/state/regionTraversal.ts +116 -0
- package/src/svg.d.ts +2 -2
- package/src/types/exposedTypes.ts +28 -1
- package/src/virtualization/virtualizationHelpers.ts +20 -6
- package/dist/components/body/Body.d.ts +0 -2
- package/dist/components/main/PickerMain.d.ts +0 -7
- package/dist/dataUtils/alphaNumericEmojiIndex.d.ts +0 -5
- package/dist/emoji-picker-react.cjs.development.js +0 -31413
- package/dist/emoji-picker-react.cjs.development.js.map +0 -1
- package/dist/emoji-picker-react.cjs.production.min.js +0 -2
- package/dist/emoji-picker-react.cjs.production.min.js.map +0 -1
- package/dist/emoji-picker-react.esm.js +0 -31411
- package/dist/emoji-picker-react.esm.js.map +0 -1
- package/dist/hooks/useHideEmojisByUniocode.d.ts +0 -1
- package/src/components/body/Body.tsx +0 -43
- package/src/components/main/PickerMain.tsx +0 -249
- package/src/dataUtils/alphaNumericEmojiIndex.ts +0 -21
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CustomEmoji } from '../../config/customEmojiConfig';
|
|
2
|
-
import { DataEmoji } from '../../dataUtils/DataTypes';
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
emoji?: DataEmoji | CustomEmoji;
|
|
6
|
-
emojiStyle:
|
|
7
|
-
unified: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { CustomEmoji } from '../../config/customEmojiConfig';
|
|
2
|
+
import { DataEmoji } from '../../dataUtils/DataTypes';
|
|
3
|
+
import { EmojiStyleValue } from '../../types/exposedTypes';
|
|
4
|
+
export type BaseEmojiProps = {
|
|
5
|
+
emoji?: DataEmoji | CustomEmoji;
|
|
6
|
+
emojiStyle: EmojiStyleValue;
|
|
7
|
+
unified: string;
|
|
8
|
+
/** Pixels, or any CSS length (e.g. a `var(--epr-*)` token). */
|
|
9
|
+
size?: number | string;
|
|
10
|
+
lazyLoad?: boolean;
|
|
11
|
+
getEmojiUrl?: GetEmojiUrl;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export type GetEmojiUrl = (unified: string, style: EmojiStyleValue) => string;
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { EmojiRenderProps, ListEmoji } from '../body/listComponents';
|
|
3
|
+
type ClickableEmojiButtonProps = Readonly<{
|
|
4
|
+
hidden?: boolean;
|
|
5
|
+
showVariations?: boolean;
|
|
6
|
+
hiddenOnSearch?: boolean;
|
|
7
|
+
emojiNames: string[];
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
hasVariations: boolean;
|
|
10
|
+
unified?: string;
|
|
11
|
+
noBackground?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
tabIndex?: number;
|
|
15
|
+
/** Consumer cell (List `components.Emoji`) replacing the default button. */
|
|
16
|
+
as?: React.ComponentType<EmojiRenderProps>;
|
|
17
|
+
emojiInfo?: Omit<ListEmoji, 'isActive'>;
|
|
18
|
+
/** `gridcell` inside the emoji grid; native button role elsewhere. */
|
|
19
|
+
role?: 'gridcell';
|
|
20
|
+
index?: number;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function ClickableEmojiButton({ emojiNames, unified, hidden, hiddenOnSearch, showVariations, hasVariations, children, className, noBackground, style, tabIndex, as: Custom, emojiInfo, role, index, }: ClickableEmojiButtonProps): React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DataEmoji } from '../../dataUtils/DataTypes';
|
|
3
|
-
import { BaseEmojiProps } from './BaseEmojiProps';
|
|
4
|
-
|
|
5
|
-
hidden?: boolean;
|
|
6
|
-
showVariations?: boolean;
|
|
7
|
-
hiddenOnSearch?: boolean;
|
|
8
|
-
emoji: DataEmoji;
|
|
9
|
-
className?: string;
|
|
10
|
-
buttonClassName?: string;
|
|
11
|
-
noBackground?: boolean;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DataEmoji } from '../../dataUtils/DataTypes';
|
|
3
|
+
import { BaseEmojiProps } from './BaseEmojiProps';
|
|
4
|
+
type ClickableEmojiProps = Readonly<BaseEmojiProps & {
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
showVariations?: boolean;
|
|
7
|
+
hiddenOnSearch?: boolean;
|
|
8
|
+
emoji: DataEmoji;
|
|
9
|
+
className?: string;
|
|
10
|
+
buttonClassName?: string;
|
|
11
|
+
noBackground?: boolean;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
tabIndex?: number;
|
|
14
|
+
role?: 'gridcell';
|
|
15
|
+
index?: number;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function ClickableEmoji({ emoji, unified, hidden, hiddenOnSearch, emojiStyle, showVariations, size, lazyLoad, getEmojiUrl, className, buttonClassName, noBackground, style, tabIndex, role, index, }: ClickableEmojiProps): React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare function EmojiImg({ emojiName, style, lazyLoad, imgUrl, onError, className, }: {
|
|
4
|
-
emojiName: string;
|
|
5
|
-
emojiStyle:
|
|
6
|
-
style: React.CSSProperties;
|
|
7
|
-
lazyLoad?: boolean;
|
|
8
|
-
imgUrl: string;
|
|
9
|
-
onError: () => void;
|
|
10
|
-
className?: string;
|
|
11
|
-
}): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { EmojiStyleValue } from '../../types/exposedTypes';
|
|
3
|
+
export declare function EmojiImg({ emojiName, style, lazyLoad, imgUrl, onError, className, }: {
|
|
4
|
+
emojiName: string;
|
|
5
|
+
emojiStyle: EmojiStyleValue;
|
|
6
|
+
style: React.CSSProperties;
|
|
7
|
+
lazyLoad?: boolean;
|
|
8
|
+
imgUrl: string;
|
|
9
|
+
onError: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}): React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { GetEmojiUrl } from './BaseEmojiProps';
|
|
4
|
-
export declare function ExportedEmoji({ unified, size, emojiStyle, lazyLoad, getEmojiUrl, emojiUrl, }: {
|
|
5
|
-
unified: string;
|
|
6
|
-
emojiStyle?:
|
|
7
|
-
size?: number;
|
|
8
|
-
lazyLoad?: boolean;
|
|
9
|
-
getEmojiUrl?: GetEmojiUrl;
|
|
10
|
-
emojiUrl?: string;
|
|
11
|
-
}): JSX.Element | null;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { EmojiStyleValue } from '../../types/exposedTypes';
|
|
3
|
+
import { GetEmojiUrl } from './BaseEmojiProps';
|
|
4
|
+
export declare function ExportedEmoji({ unified, size, emojiStyle, lazyLoad, getEmojiUrl, emojiUrl, }: {
|
|
5
|
+
unified: string;
|
|
6
|
+
emojiStyle?: EmojiStyleValue;
|
|
7
|
+
size?: number;
|
|
8
|
+
lazyLoad?: boolean;
|
|
9
|
+
getEmojiUrl?: GetEmojiUrl;
|
|
10
|
+
emojiUrl?: string;
|
|
11
|
+
}): React.JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function NativeEmoji({ unified, style, className, }: {
|
|
3
|
-
unified: string;
|
|
4
|
-
style: React.CSSProperties;
|
|
5
|
-
className?: string;
|
|
6
|
-
}): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function NativeEmoji({ unified, style, className, }: {
|
|
3
|
+
unified: string;
|
|
4
|
+
style: React.CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
}): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseEmojiProps } from './BaseEmojiProps';
|
|
3
|
-
export declare function ViewOnlyEmoji({ emoji, unified, emojiStyle, size, lazyLoad, getEmojiUrl, className, }: BaseEmojiProps): JSX.Element | null;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseEmojiProps } from './BaseEmojiProps';
|
|
3
|
+
export declare function ViewOnlyEmoji({ emoji, unified, emojiStyle, size, lazyLoad, getEmojiUrl, className, }: BaseEmojiProps): React.JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ActiveEmojiState } from '../context/PickerContext';
|
|
3
|
+
export declare function Preview({ children }: {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export declare function PreviewBody(): React.JSX.Element | null;
|
|
7
|
+
export type PreviewEmoji = ActiveEmojiState;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function Header(): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function Header(): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function BtnClearSearch(): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function BtnClearSearch(): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function IcnSearch(): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function IcnSearch(): React.JSX.Element;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SearchProps } from '../../../primitives/types';
|
|
3
|
+
export declare function SearchContainer({ children, inputProps, inputRef, }?: {
|
|
4
|
+
inputProps?: SearchProps['inputProps'];
|
|
5
|
+
inputRef?: SearchProps['inputRef'];
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
export declare function Search({ inputProps, inputRef, }?: {
|
|
9
|
+
inputProps?: SearchProps['inputProps'];
|
|
10
|
+
inputRef?: SearchProps['inputRef'];
|
|
11
|
+
}): React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SkinTones } from '../../../types/exposedTypes';
|
|
3
|
-
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
isActive: boolean;
|
|
7
|
-
skinToneVariation: SkinTones;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
tabIndex?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare function BtnSkinToneVariation({ isOpen, onClick, isActive, skinToneVariation, style, tabIndex, }: Props): JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SkinTones } from '../../../types/exposedTypes';
|
|
3
|
+
type Props = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
skinToneVariation: SkinTones;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
tabIndex?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function BtnSkinToneVariation({ isOpen, onClick, isActive, skinToneVariation, style, tabIndex, }: Props): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
direction?: SkinTonePickerDirection;
|
|
4
|
-
};
|
|
5
|
-
export declare function SkinTonePickerMenu(): JSX.Element;
|
|
6
|
-
export declare function SkinTonePicker({ direction, }: Props): JSX.Element | null;
|
|
7
|
-
export declare enum SkinTonePickerDirection {
|
|
8
|
-
VERTICAL = "epr-vertical",
|
|
9
|
-
HORIZONTAL = "epr-horizontal"
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
direction?: SkinTonePickerDirection;
|
|
4
|
+
};
|
|
5
|
+
export declare function SkinTonePickerMenu(): React.JSX.Element;
|
|
6
|
+
export declare function SkinTonePicker({ direction, }: Props): React.JSX.Element | null;
|
|
7
|
+
export declare enum SkinTonePickerDirection {
|
|
8
|
+
VERTICAL = "epr-vertical",
|
|
9
|
+
HORIZONTAL = "epr-horizontal"
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PLUS_ICON = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='80px' viewBox='0 0 20 80'%3E%3Cpath fill='%23868686' d='M5.7,10.4c0,.1,.1,.3,.2,.4C6,10.9,6.1,11,6.3,11h3.4v3.4c0,.1,.1,.3,.2,.4c.1,.1,.2,.2,.4,.2c.3,0,.5-.2,.5-.5v-3.4h3.4c.3,0,.5-.2,.5-.5s-.2-.5-.5-.5h-3.4V6.7c0-.3-.2-.5-.5-.5C9.8,6,9.6,6.2,9.6,6.5v3.4H6.2C5.9,9.9,5.7,10.1,5.7,10.4L5.7,10.4z'/%3E%3Cpath fill='%233371B7' d='M5.7,30.4c0,.1,.1,.3,.2,.4S6.1,31,6.3,31h3.4v3.4c0,.1,.1,.3,.2,.4c.1,.1,.2,.2,.4,.2c.3,0,.5-.2,.5-.5v-3.4h3.4c.3,0,.5-.2,.5-.5s-.2-.5-.5-.5h-3.4v-3.4c0-.3-.2-.5-.5-.5s-.5,.2-.5,.5v3.4H6.2C5.9,29.9,5.7,30.1,5.7,30.4L5.7,30.4z'/%3E%3Cpath fill='%23C0C0BF' d='M5.7,50.4c0,.1,.1,.3,.2,.4C6,50.9,6.1,51,6.3,51h3.4v3.4c0,.1,.1,.3,.2,.4c.1,.1,.2,.2,.4,.2c.3,0,.5-.2,.5-.5v-3.4h3.4c.3,0,.5-.2,.5-.5s-.2-.5-.5-.5h-3.4v-3.4c0-.3-.2-.5-.5-.5s-.5,.2-.5,.5v3.4H6.2C5.9,49.9,5.7,50.1,5.7,50.4L5.7,50.4z'/%3E%3Cpath fill='%236AA9DD' d='M5.7,70.4c0,.1,.1,.3,.2,.4S6.1,71,6.3,71h3.4v3.4c0,.1,.1,.3,.2,.4c.1,.1,.2,.2,.4,.2c.3,0,.5-.2,.5-.5v-3.4h3.4c.3,0,.5-.2,.5-.5s-.2-.5-.5-.5h-3.4v-3.4c0-.3-.2-.5-.5-.5s-.5,.2-.5,.5v3.4H6.4C5.9,69.9,5.7,70.1,5.7,70.4L5.7,70.4z'/%3E%3C/svg%3E";
|
|
2
|
+
export declare const TRIANGLE_ICON = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50px' height='15px' viewBox='0 0 50 15'%3E%3Cg%3E%3Cpath fill='%23FFFFFF' stroke='%23E8E7E7' stroke-miterlimit='10' d='M1.86-.43l9.83,11.53c.59,.69,1.56,.69,2.14,0l9.83-11.53'/%3E%3Cpath fill='%23010202' stroke='%23151617' stroke-miterlimit='10' d='M26.86-.43l9.83,11.53c.59,.69,1.56,.69,2.14,0l9.83-11.53'/%3E%3C/g%3E%3C/svg%3E";
|
|
3
|
+
export declare const MAGNIFIER_ICON = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='40px' viewBox='0 0 20 40'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23868686' d='M12,8.81c0,2.08-1.68,3.76-3.76,3.76c-2.08,0-3.76-1.68-3.76-3.76c0-2.08,1.68-3.76,3.76-3.76C10.32,5.05,12,6.73,12,8.81zM11.23,12.72c-.83,.64-1.87,1.01-2.99,1.01c-2.72,0-4.92-2.2-4.92-4.92c0-2.72,2.2-4.92,4.92-4.92c2.72,0,4.92,2.2,4.92,4.92c0,1.13-.38,2.16-1.01,2.99l3.94,3.93c.25,.25,.25,.66,0,.92c-.25,.25-.66,.25-.92,0L11.23,12.72z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23C0C0BF' d='M12,28.81c0,2.08-1.68,3.76-3.76,3.76c-2.08,0-3.76-1.68-3.76-3.76c0-2.08,1.68-3.76,3.76-3.76C10.32,25.05,12,26.73,12,28.81zM11.23,32.72c-.83,.64-1.87,1.01-2.99,1.01c-2.72,0-4.92-2.2-4.92-4.92c0-2.72,2.2-4.92,4.92-4.92c2.72,0,4.92,2.2,4.92,4.92c0,1.13-.38,2.16-1.01,2.99l3.94,3.93c.25,.25,.25,.66,0,.92c-.25,.25-.66,.25-.92,0L11.23,32.72z'/%3E%3C/svg%3E";
|
|
4
|
+
export declare const TIMES_ICON = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='80px' viewBox='0 0 20 80'%3E%3Cpath fill='%23868686' d='M6.98,13.59c.1,.1,.24,.15,.37,.15s.27-.05,.37-.15l2.42-2.42l2.43,2.43c.1,.1,.24,.15,.37,.15c.14,0,.27-.05,.37-.15c.21-.21,.21-.54,0-.75l-2.43-2.43L13.32,8c.21-.21,.21-.54,0-.75c-.21-.21-.54-.21-.75,0l-2.42,2.42L7.74,7.27c-.21-.21-.54-.21-.75,0c-.21,.21-.21,.54,0,.75l2.41,2.41l-2.42,2.42C6.77,13.05,6.77,13.39,6.98,13.59L6.98,13.59z'/%3E%3Cpath fill='%23868686' d='M10.15,18.43c4.41,0,8-3.59,8-8c0-4.41-3.59-8-8-8c-4.41,0-8,3.59-8,8C2.15,14.84,5.74,18.43,10.15,18.43zM10.15,3.49c3.83,0,6.94,3.11,6.94,6.94c0,3.83-3.11,6.94-6.94,6.94c-3.83,0-6.94-3.11-6.94-6.94C3.21,6.6,6.33,3.49,10.15,3.49L10.15,3.49z'/%3E%3Cpath fill='%233371B7' d='M6.98,33.59c.1,.1,.24,.15,.37,.15s.27-.05,.37-.15l2.42-2.42l2.43,2.43c.1,.1,.24,.15,.37,.15c.14,0,.27-.05,.37-.15c.21-.21,.21-.54,0-.75l-2.43-2.43L13.32,28c.21-.21,.21-.54,0-.75c-.21-.21-.54-.21-.75,0l-2.42,2.42l-2.41-2.41c-.21-.21-.54-.21-.75,0c-.21,.21-.21,.54,0,.75l2.41,2.41l-2.42,2.42C6.77,33.05,6.77,33.39,6.98,33.59L6.98,33.59z'/%3E%3Cpath fill='%233371B7' d='M10.15,38.43c4.41,0,8-3.59,8-8c0-4.41-3.59-8-8-8c-4.41,0-8,3.59-8,8C2.15,34.84,5.74,38.43,10.15,38.43zM10.15,23.49c3.83,0,6.94,3.11,6.94,6.94c0,3.83-3.11,6.94-6.94,6.94c-3.83,0-6.94-3.11-6.94-6.94C3.21,26.6,6.33,23.49,10.15,23.49L10.15,23.49z'/%3E%3Cpath fill='%23C0C0BF' d='M6.98,53.59c.1,.1,.24,.15,.37,.15s.27-.05,.37-.15l2.42-2.42l2.43,2.43c.1,.1,.24,.15,.37,.15c.14,0,.27-.05,.37-.15c.21-.21,.21-.54,0-.75l-2.43-2.43L13.32,48c.21-.21,.21-.54,0-.75c-.21-.21-.54-.21-.75,0l-2.42,2.42l-2.41-2.41c-.21-.21-.54-.21-.75,0c-.21,.21-.21,.54,0,.75l2.41,2.41l-2.42,2.42C6.77,53.05,6.77,53.39,6.98,53.59L6.98,53.59z'/%3E%3Cpath fill='%23C0C0BF' d='M10.15,58.43c4.41,0,8-3.59,8-8c0-4.41-3.59-8-8-8c-4.41,0-8,3.59-8,8C2.15,54.84,5.74,58.43,10.15,58.43zM10.15,43.49c3.83,0,6.94,3.11,6.94,6.94c0,3.83-3.11,6.94-6.94,6.94c-3.83,0-6.94-3.11-6.94-6.94C3.21,46.6,6.33,43.49,10.15,43.49L10.15,43.49z'/%3E%3Cpath fill='%236AA9DD' d='M6.98,73.59c.1,.1,.24,.15,.37,.15s.27-.05,.37-.15l2.42-2.42l2.43,2.43c.1,.1,.24,.15,.37,.15c.14,0,.27-.05,.37-.15c.21-.21,.21-.54,0-.75l-2.43-2.43L13.32,68c.21-.21,.21-.54,0-.75c-.21-.21-.54-.21-.75,0l-2.42,2.42l-2.41-2.41c-.21-.21-.54-.21-.75,0c-.21,.21-.21,.54,0,.75l2.41,2.41l-2.42,2.42C6.77,73.05,6.77,73.39,6.98,73.59L6.98,73.59z'/%3E%3Cpath fill='%236AA9DD' d='M10.15,78.43c4.41,0,8-3.59,8-8c0-4.41-3.59-8-8-8c-4.41,0-8,3.59-8,8C2.15,74.84,5.74,78.43,10.15,78.43zM10.15,63.49c3.83,0,6.94,3.11,6.94,6.94c0,3.83-3.11,6.94-6.94,6.94c-3.83,0-6.94-3.11-6.94-6.94C3.21,66.6,6.33,63.49,10.15,63.49L10.15,63.49z'/%3E%3C/svg%3E";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ThemeValue } from '../../types/exposedTypes';
|
|
3
|
+
export declare function DefaultAppearance({ children }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export declare function defaultRootClassName(theme: ThemeValue | undefined, className?: string, unstyled?: boolean): string;
|
|
7
|
+
export declare function defaultRootStyle({ width, height, style, columns, }: {
|
|
8
|
+
width: string | number | undefined;
|
|
9
|
+
height: string | number | undefined;
|
|
10
|
+
style: React.CSSProperties | undefined;
|
|
11
|
+
columns?: number;
|
|
12
|
+
}): React.CSSProperties;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_LABEL_HEIGHT = 40;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CategoryConfig } from '../../types/exposedTypes';
|
|
3
|
-
|
|
4
|
-
isActiveCategory: boolean;
|
|
5
|
-
category: string;
|
|
6
|
-
allowNavigation: boolean;
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
categoryConfig: CategoryConfig;
|
|
9
|
-
customIcon?: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export declare function CategoryButton({ isActiveCategory, category, allowNavigation, categoryConfig, onClick, customIcon, }: Props): JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CategoryConfig } from '../../types/exposedTypes';
|
|
3
|
+
type Props = {
|
|
4
|
+
isActiveCategory: boolean;
|
|
5
|
+
category: string;
|
|
6
|
+
allowNavigation: boolean;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
categoryConfig: CategoryConfig;
|
|
9
|
+
customIcon?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare function CategoryButton({ isActiveCategory, category, allowNavigation, categoryConfig, onClick, customIcon, }: Props): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function CategoryNavIcon({ category }: {
|
|
3
|
-
category: string;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function CategoryNavIcon({ category }: {
|
|
3
|
+
category: string;
|
|
4
|
+
}): React.JSX.Element;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function ActiveCategoryProvider({ children, }: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}): React.JSX.Element;
|
|
5
|
+
export declare function useActiveCategory(): {
|
|
6
|
+
activeCategory: string | null;
|
|
7
|
+
setActiveCategory: (category: string | null) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Scroll a section to the top and highlight its tab. The highlight is set
|
|
11
|
+
* explicitly: trailing sections too short to reach the viewport top would
|
|
12
|
+
* otherwise leave an earlier section active.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useJumpToCategory(): (categoryId: string) => void;
|
|
15
|
+
export declare function useVisibleCategoryConfigs(): import("../../types/exposedTypes").CategoryConfig[];
|
|
16
|
+
export type NavOrientation = 'horizontal' | 'vertical';
|
|
17
|
+
export declare function CategoryNavigation({ orientation, }?: {
|
|
18
|
+
orientation?: NavOrientation;
|
|
19
|
+
}): React.JSX.Element | null;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { Categories, CategoryConfig, EmojiData,
|
|
2
|
-
import { CustomEmoji } from './customEmojiConfig';
|
|
3
|
-
export { Categories };
|
|
4
|
-
export declare const SuggestedRecent: CategoryConfig;
|
|
5
|
-
export
|
|
6
|
-
category: Categories.CUSTOM;
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* Selects the `CustomEmoji` group rendered in this section. Each entry
|
|
10
|
-
* may carry its own `name` and `icon`, so multiple custom sections can
|
|
11
|
-
* coexist — each placed wherever its entry sits in `categories`.
|
|
12
|
-
* Entries without a group share the ungrouped customs bucket.
|
|
13
|
-
*/
|
|
14
|
-
group?: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Stable identity for a category entry. Custom groups are namespaced so
|
|
18
|
-
* duplicate `{ category: CUSTOM }` configs no longer collide in React
|
|
19
|
-
* keys, scroll targets, and active-tab detection.
|
|
20
|
-
*/
|
|
21
|
-
export declare function categoryIdFromCategoryConfig(categoryConfig: CategoryConfig): string;
|
|
22
|
-
/**
|
|
23
|
-
* The `CustomEmoji` group rendered by a category entry, if any.
|
|
24
|
-
*/
|
|
25
|
-
export declare function customGroupFromCategoryConfig(categoryConfig: CategoryConfig): string | undefined;
|
|
26
|
-
export declare function baseCategoriesConfig(modifiers?: Record<Categories, CategoryConfig>): CategoriesConfig;
|
|
27
|
-
export declare function categoryFromCategoryConfig(category: CategoryConfig): Categories;
|
|
28
|
-
export declare function categoryNameFromCategoryConfig(category: CategoryConfig): string;
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export declare function mergeCategoriesConfig(userCategoriesConfig?: UserCategoryConfig, modifiers?: CategoryConfigModifiers, emojiData?: EmojiData, customEmojis?: CustomEmoji[]): CategoriesConfig;
|
|
32
|
-
|
|
33
|
-
suggestionMode?:
|
|
34
|
-
};
|
|
1
|
+
import { Categories, CategoryConfig, EmojiData, SuggestionModeValue } from '../types/exposedTypes';
|
|
2
|
+
import { CustomEmoji } from './customEmojiConfig';
|
|
3
|
+
export { Categories };
|
|
4
|
+
export declare const SuggestedRecent: CategoryConfig;
|
|
5
|
+
export type CustomCategoryConfig = {
|
|
6
|
+
category: Categories.CUSTOM;
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Selects the `CustomEmoji` group rendered in this section. Each entry
|
|
10
|
+
* may carry its own `name` and `icon`, so multiple custom sections can
|
|
11
|
+
* coexist — each placed wherever its entry sits in `categories`.
|
|
12
|
+
* Entries without a group share the ungrouped customs bucket.
|
|
13
|
+
*/
|
|
14
|
+
group?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Stable identity for a category entry. Custom groups are namespaced so
|
|
18
|
+
* duplicate `{ category: CUSTOM }` configs no longer collide in React
|
|
19
|
+
* keys, scroll targets, and active-tab detection.
|
|
20
|
+
*/
|
|
21
|
+
export declare function categoryIdFromCategoryConfig(categoryConfig: CategoryConfig): string;
|
|
22
|
+
/**
|
|
23
|
+
* The `CustomEmoji` group rendered by a category entry, if any.
|
|
24
|
+
*/
|
|
25
|
+
export declare function customGroupFromCategoryConfig(categoryConfig: CategoryConfig): string | undefined;
|
|
26
|
+
export declare function baseCategoriesConfig(modifiers?: Record<Categories, CategoryConfig>): CategoriesConfig;
|
|
27
|
+
export declare function categoryFromCategoryConfig(category: CategoryConfig): Categories;
|
|
28
|
+
export declare function categoryNameFromCategoryConfig(category: CategoryConfig): string;
|
|
29
|
+
export type CategoriesConfig = CategoryConfig[];
|
|
30
|
+
export type UserCategoryConfig = Array<Categories | CategoryConfig>;
|
|
31
|
+
export declare function mergeCategoriesConfig(userCategoriesConfig?: UserCategoryConfig, modifiers?: CategoryConfigModifiers, emojiData?: EmojiData, customEmojis?: CustomEmoji[]): CategoriesConfig;
|
|
32
|
+
type CategoryConfigModifiers = {
|
|
33
|
+
suggestionMode?: SuggestionModeValue;
|
|
34
|
+
};
|
package/dist/config/cdnUrls.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function cdnUrl(emojiStyle:
|
|
1
|
+
import { EmojiStyleValue } from '../types/exposedTypes';
|
|
2
|
+
export declare function cdnUrl(emojiStyle: EmojiStyleValue): string;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import { PickerConfig } from './config';
|
|
2
|
-
|
|
1
|
+
import { PickerConfig } from './config';
|
|
2
|
+
/**
|
|
3
|
+
* Content equality over every config key. Iterating the union of keys
|
|
4
|
+
* (rather than a hand-maintained list) means a prop added later is
|
|
5
|
+
* compared by default instead of being silently ignored after mount —
|
|
6
|
+
* which is how `reactions`, `previewConfig`, `hiddenEmojis`,
|
|
7
|
+
* `allowExpandReactions`, `categoryIcons`, `getEmojiUrl` and `nonce`
|
|
8
|
+
* updates used to be dropped.
|
|
9
|
+
*/
|
|
10
|
+
export declare function compareConfig(prev: PickerConfig, next: PickerConfig): boolean;
|