@skbkontur/markdown 2.2.3 → 2.2.4
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/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import styled from '../../styles/styled-components';
|
|
|
9
9
|
* https://github.com/missive/emoji-mart/blob/main/packages/emoji-mart-website/example-custom-styles.html
|
|
10
10
|
*/
|
|
11
11
|
/* stylelint-disable function-name-case */
|
|
12
|
-
export var EmojiPickerWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n em-emoji-picker {\n --font-family: inherit;\n --shadow: unset;\n --rgb-accent: ", ";\n --color-border: ", ";\n --rgb-background: ", ";\n --rgb-input: ", ";\n --rgb-color: ", ";\n\n max-height: 300px;\n
|
|
12
|
+
export var EmojiPickerWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n em-emoji-picker {\n --font-family: inherit;\n --shadow: unset;\n --rgb-accent: ", ";\n --color-border: ", ";\n --rgb-background: ", ";\n --rgb-input: ", ";\n --rgb-color: ", ";\n\n max-height: 300px;\n width: 100%;\n }\n"], ["\n em-emoji-picker {\n --font-family: inherit;\n --shadow: unset;\n --rgb-accent: ", ";\n --color-border: ", ";\n --rgb-background: ", ";\n --rgb-input: ", ";\n --rgb-color: ", ";\n\n max-height: 300px;\n width: 100%;\n }\n"])), function (_a) {
|
|
13
13
|
var theme = _a.theme;
|
|
14
14
|
return getColor(theme.colors.brand);
|
|
15
15
|
}, function (_a) {
|
|
@@ -16,7 +16,7 @@ export var EmojiDropdown = function (_a) {
|
|
|
16
16
|
return (React.createElement(DropdownMenu, { ref: dropdownMenuRef, caption: function (_a) {
|
|
17
17
|
var toggleMenu = _a.toggleMenu;
|
|
18
18
|
return (React.createElement(MarkdownFormatButton, { showShortKey: showShortKey, hintText: "Emoji", disabled: isPreviewMode, icon: React.createElement(EmojiFace, null), text: "Emoji", onClick: toggleMenu }));
|
|
19
|
-
}, positions: ['bottom right', 'bottom left', 'top right', 'top right'] },
|
|
19
|
+
}, menuWidth: 300, positions: ['bottom right', 'bottom left', 'top right', 'top right'] },
|
|
20
20
|
React.createElement(EmojiPickerWrapper, null,
|
|
21
21
|
React.createElement(EmojiPicker, { dynamicWidth: true, data: data, i18n: emojiLocale, locale: "ru", theme: currentTheme.themeMode, skinTonePosition: "none", previewPosition: "none", onEmojiSelect: handleSelectEmoji }))));
|
|
22
22
|
}));
|