frst-components 0.21.73 → 0.21.75
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/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3659,7 +3659,7 @@ const Mentions = (mention) => {
|
|
|
3659
3659
|
|
|
3660
3660
|
function InputComment$1({ placeholder, onChange, limit, users, showCharacterCounter, styles, onSendMentions, onContentFormat, onContentUnformat, disabled, className, value, replyMentionedUser, group_uuid }) {
|
|
3661
3661
|
const { handleInput, isPlaceholder, focus, setFocus, divInputRef, handleMentionUser, mentionTopPosition, setShowMention, showMention, textLength } = useInputHook({ limit, placeholder, onContentFormat, onContentUnformat, onSendMentions, onChange, value, replyMentionedUser });
|
|
3662
|
-
const showMentions = showMention &&
|
|
3662
|
+
const showMentions = showMention && ['b1005836-b0a6-4a50-8147-537ebdc64a75', '413c2f36-9195-4fef-86fe-572c49049007'].includes(group_uuid);
|
|
3663
3663
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { ...styles }, tabIndex: 0, children: [jsxRuntime.jsxs(InputWrapper$2, { focus: focus, tabIndex: 1, isPlaceholder: isPlaceholder, children: [jsxRuntime.jsx(InputText$4, { tabIndex: 2, contentEditable: true, ref: divInputRef, onFocus: () => setFocus(true), onBlur: () => setFocus(false), onKeyUpCapture: (event) => {
|
|
3664
3664
|
handleInput(event);
|
|
3665
3665
|
}, "data-text": "enter", isPlaceholder: isPlaceholder, suppressContentEditableWarning: true, children: jsxRuntime.jsx("p", { children: jsxRuntime.jsx("br", {}) }) }), showMentions && jsxRuntime.jsx(Mentions, { users: users, top: mentionTopPosition, onSelect: (user) => {
|
|
@@ -10028,7 +10028,7 @@ const WrapperIconNotification = styled__default["default"].div `
|
|
|
10028
10028
|
display: flex;
|
|
10029
10029
|
justify-content: center;
|
|
10030
10030
|
align-items: center;
|
|
10031
|
-
min-width:
|
|
10031
|
+
min-width: 140px;
|
|
10032
10032
|
font-size: 16px;
|
|
10033
10033
|
font-weight: 400;
|
|
10034
10034
|
color: #fff;
|
|
@@ -10037,10 +10037,10 @@ const WrapperIconNotification = styled__default["default"].div `
|
|
|
10037
10037
|
`;
|
|
10038
10038
|
const WrapperIconNotificationText = styled__default["default"].p `
|
|
10039
10039
|
|
|
10040
|
-
text-align:
|
|
10041
|
-
left:
|
|
10040
|
+
text-align: right;
|
|
10041
|
+
left: 0px;
|
|
10042
10042
|
position: absolute;
|
|
10043
|
-
width:
|
|
10043
|
+
width: 113px;
|
|
10044
10044
|
`;
|
|
10045
10045
|
const WrapperIconNotificationMobile = styled__default["default"].div `
|
|
10046
10046
|
cursor: pointer;
|
|
@@ -11208,7 +11208,7 @@ function GlobalMenu({ variant, menu, customMenu, user, search, notification, lan
|
|
|
11208
11208
|
justifyContent: 'flex-start',
|
|
11209
11209
|
alignItems: 'center',
|
|
11210
11210
|
flexDirection: 'row-reverse',
|
|
11211
|
-
width: '
|
|
11211
|
+
width: '140px',
|
|
11212
11212
|
}, onClick: handleOpenNotification, children: [jsxRuntime.jsx(IconNotification, { fill: FRSTTheme['colors'].shadeWhite }), hasNewNotification ? (jsxRuntime.jsx("div", { style: { position: 'absolute', top: '0' }, children: jsxRuntime.jsx(HasNotificationIcon, {}) })) : null, ' ', jsxRuntime.jsx(WrapperIconNotificationText, { children: textNotification })] }), jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotification, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: false, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification() })] })] })), isMobileVersion && notification && (jsxRuntime.jsxs(WrapperIconNotificationMobile, { onClick: onClickNotification, style: {
|
|
11213
11213
|
borderBottom: openNotificationMobile && windowSize[0] <= 650
|
|
11214
11214
|
? `4px solid ${FRSTTheme['colors'].primary1}`
|