frst-components 0.21.66 → 0.21.68
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
CHANGED
|
@@ -3578,22 +3578,27 @@ const MentionUserContainer = styled__default["default"].div `
|
|
|
3578
3578
|
align-items: baseline;
|
|
3579
3579
|
flex-direction: column;
|
|
3580
3580
|
padding: 0 8px 0 16px;
|
|
3581
|
+
white-space: nowrap;
|
|
3582
|
+
overflow: hidden;
|
|
3581
3583
|
`;
|
|
3582
3584
|
const MentionUserName = styled__default["default"].span `
|
|
3583
3585
|
font-weight: 400;
|
|
3584
3586
|
font-size: 16px;
|
|
3587
|
+
width: 100%;
|
|
3585
3588
|
`;
|
|
3586
3589
|
const MentionSubTitle = styled__default["default"].div `
|
|
3587
3590
|
display: flex;
|
|
3588
3591
|
justify-content: center;
|
|
3589
3592
|
align-items: center;
|
|
3593
|
+
width: 100%;
|
|
3590
3594
|
`;
|
|
3591
3595
|
const MentionSubTitleText = styled__default["default"].span `
|
|
3592
|
-
width: 400px;
|
|
3593
3596
|
font-size: 12px;
|
|
3594
3597
|
display:flex;
|
|
3595
3598
|
align-items: center;
|
|
3596
3599
|
justify-content: flex-start;
|
|
3600
|
+
width: 100%;
|
|
3601
|
+
|
|
3597
3602
|
`;
|
|
3598
3603
|
const Circle = styled__default["default"].div `
|
|
3599
3604
|
width: 2px;
|
|
@@ -4683,7 +4688,7 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
|
|
|
4683
4688
|
const [users, setUsers] = React.useState([]);
|
|
4684
4689
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
4685
4690
|
const inputRef = React.useRef(null);
|
|
4686
|
-
|
|
4691
|
+
({
|
|
4687
4692
|
user_uuid: replyMentionedUser.uuid,
|
|
4688
4693
|
name: replyMentionedUser.name,
|
|
4689
4694
|
profile: {
|
|
@@ -4691,7 +4696,7 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
|
|
|
4691
4696
|
company_name: replyMentionedUser.company_name,
|
|
4692
4697
|
role_name: replyMentionedUser.role_name
|
|
4693
4698
|
}
|
|
4694
|
-
};
|
|
4699
|
+
});
|
|
4695
4700
|
const [userMentionedOnReplied, setUserMentionedOnReply] = React.useState(false);
|
|
4696
4701
|
const handleClickOutside = (event) => {
|
|
4697
4702
|
if (inputRef.current && !inputRef.current.contains(event.target) && comment.length === 0) {
|
|
@@ -4732,7 +4737,9 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
|
|
|
4732
4737
|
};
|
|
4733
4738
|
return (jsxRuntime.jsxs(Container$g, { children: [jsxRuntime.jsx(Avatar, { src: imgProfile, size: "32px", style: { marginTop: '55px', marginRight: '8px' } }), jsxRuntime.jsxs(InputContainer, { ref: inputRef, style: { ...styles }, children: [jsxRuntime.jsx(InputComment$1, { styles: { width: '100%', marginTop: '22.5px' }, className: "userComment", onChange: (e) => {
|
|
4734
4739
|
handleSearchUsers(e);
|
|
4735
|
-
}, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users,
|
|
4740
|
+
}, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users,
|
|
4741
|
+
//replyMentionedUser={!userMentionedOnReplied && user}
|
|
4742
|
+
group_uuid: group_uuid }), jsxRuntime.jsx(MiniButton, { disabled: comment.length <= 0 || isLoading, label: publishButtonText, onClick: () => handlePublish(), variant: "primary", styles: { marginLeft: 'auto', marginTop: '15px' } }), isLoading && jsxRuntime.jsx(Loading, {})] })] }));
|
|
4736
4743
|
};
|
|
4737
4744
|
|
|
4738
4745
|
const ThreadComments = ({ mainComment, listReplyComments, placeHolderText, onClickPublishButton, showReplysButtonText, publishButtonText, limitInputs, answerButtonText, loggedUserProfileImg, group_uuid, getSearchUsers, showMoreButtonText, showLessButtonText, styles, relationToPhaseText }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mentionsStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/mentionsStyle.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;UAAsB,OAAO;SAAO,MAAM;YAAU,MAAM;aAAW,MAAM;SA6BhG,CAAA;AAED,eAAO,MAAM,YAAY,sEAAiB,CAAA;AAE1C,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,WAAW;aAAyB,OAAO;SAoBvD,CAAA;AAED,eAAO,MAAM,gBAAgB,oEAI5B,CAAA;AAED,eAAO,MAAM,aAAa,oEAIzB,CAAA;AAED,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"mentionsStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/mentionsStyle.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;UAAsB,OAAO;SAAO,MAAM;YAAU,MAAM;aAAW,MAAM;SA6BhG,CAAA;AAED,eAAO,MAAM,YAAY,sEAAiB,CAAA;AAE1C,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,WAAW;aAAyB,OAAO;SAoBvD,CAAA;AAED,eAAO,MAAM,gBAAgB,oEAI5B,CAAA;AAED,eAAO,MAAM,aAAa,oEAIzB,CAAA;AAED,eAAO,MAAM,oBAAoB,oEAQhC,CAAA;AAED,eAAO,MAAM,eAAe,qEAI3B,CAAA;AAED,eAAO,MAAM,eAAe,oEAK3B,CAAA;AAED,eAAO,MAAM,mBAAmB,qEAO/B,CAAA;AACD,eAAO,MAAM,MAAM,oEAMlB,CAAA"}
|