frst-components 0.22.4 → 0.22.6
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
|
@@ -3655,12 +3655,12 @@ const Container$j = styled__default["default"].div `
|
|
|
3655
3655
|
box-shadow: 4px 8px 10px 0 #BDBDBD;
|
|
3656
3656
|
|
|
3657
3657
|
::-webkit-scrollbar {
|
|
3658
|
-
width:
|
|
3658
|
+
width: 17px;
|
|
3659
3659
|
}
|
|
3660
3660
|
|
|
3661
3661
|
::-webkit-scrollbar-thumb {
|
|
3662
|
-
width:
|
|
3663
|
-
border:
|
|
3662
|
+
width: 15px;
|
|
3663
|
+
border: 6px solid rgba(0, 0, 0, 0);
|
|
3664
3664
|
background-clip: padding-box;
|
|
3665
3665
|
border-radius: 9999px;
|
|
3666
3666
|
background-color: #757575;
|
|
@@ -3751,17 +3751,19 @@ const CompanyName = styled__default["default"].span `
|
|
|
3751
3751
|
white-space: nowrap;
|
|
3752
3752
|
overflow: hidden;
|
|
3753
3753
|
text-overflow: ellipsis;
|
|
3754
|
-
width: 90%;
|
|
3755
3754
|
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
width:
|
|
3755
|
+
|
|
3756
|
+
@media (min-width: 1024px) {
|
|
3757
|
+
width: 58%
|
|
3759
3758
|
}
|
|
3760
|
-
@media (
|
|
3759
|
+
@media (min-width: 1440px) {
|
|
3761
3760
|
/* Styles for screens with a minimum width of 768px */
|
|
3762
3761
|
width: 48%;
|
|
3763
3762
|
}
|
|
3764
|
-
|
|
3763
|
+
@media (min-width: 1750px) {
|
|
3764
|
+
/* Styles for screens with a minimum width of 768px */
|
|
3765
|
+
width: 90%;
|
|
3766
|
+
}
|
|
3765
3767
|
|
|
3766
3768
|
`;
|
|
3767
3769
|
|
|
@@ -3815,9 +3817,10 @@ const Mentions = (mention) => {
|
|
|
3815
3817
|
|
|
3816
3818
|
function InputComment$1({ placeholder, onChange, limit, users, showCharacterCounter, styles, onSendMentions, onContentFormat, onContentUnformat, disabled, className, value, replyMentionedUser, group_uuid, limitMessageExceeded }) {
|
|
3817
3819
|
const { handleInput, isPlaceholder, focus, setFocus, divInputRef, handleMentionUser, mentionTopPosition, setShowMention, showMention, textLength, styleLimitExceeded } = useInputHook({ limit, placeholder, onContentFormat, onContentUnformat, onSendMentions, onChange, value, replyMentionedUser });
|
|
3820
|
+
const showMentions = showMention && ['b1005836-b0a6-4a50-8147-537ebdc64a75', '413c2f36-9195-4fef-86fe-572c49049007'].includes(group_uuid);
|
|
3818
3821
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { minHeight: '48px', ...styles }, tabIndex: 0, children: [jsxRuntime.jsxs(InputWrapper$2, { focus: focus, tabIndex: 1, isPlaceholder: isPlaceholder, isInputLimit: styleLimitExceeded, children: [jsxRuntime.jsx(InputText$4, { tabIndex: 2, contentEditable: true, ref: divInputRef, onFocus: () => setFocus(true), onBlur: () => setFocus(false), onKeyUpCapture: (event) => {
|
|
3819
3822
|
handleInput(event);
|
|
3820
|
-
}, "data-text": "enter", isPlaceholder: isPlaceholder, suppressContentEditableWarning: true, children: jsxRuntime.jsx("p", { children: jsxRuntime.jsx("br", {}) }) }),
|
|
3823
|
+
}, "data-text": "enter", isPlaceholder: isPlaceholder, suppressContentEditableWarning: true, children: jsxRuntime.jsx("p", { children: jsxRuntime.jsx("br", {}) }) }), showMentions && users && users.length > 0 && jsxRuntime.jsx(Mentions, { users: users, top: mentionTopPosition, onSelect: (user) => {
|
|
3821
3824
|
setShowMention(false);
|
|
3822
3825
|
handleMentionUser(user);
|
|
3823
3826
|
} })] }), jsxRuntime.jsx(HelperContainer, { children: !isPlaceholder ?
|
|
@@ -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;SAiChG,CAAA;AAED,eAAO,MAAM,YAAY,sEAAiB,CAAA;AAE1C,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,WAAW;aAAyB,OAAO;SAkBvD,CAAA;AAGD,eAAO,MAAM,aAAa,oEAIzB,CAAA;AAED,eAAO,MAAM,aAAa,oEAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAQhC,CAAA;AAED,eAAO,MAAM,eAAe,qEAI3B,CAAA;AAED,eAAO,MAAM,wBAAwB,oEAOpC,CAAA;AAED,eAAO,MAAM,mBAAmB,qEAM/B,CAAA;AACD,eAAO,MAAM,MAAM,oEAQlB,CAAA;AACD,eAAO,MAAM,WAAW,
|
|
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;SAiChG,CAAA;AAED,eAAO,MAAM,YAAY,sEAAiB,CAAA;AAE1C,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,WAAW;aAAyB,OAAO;SAkBvD,CAAA;AAGD,eAAO,MAAM,aAAa,oEAIzB,CAAA;AAED,eAAO,MAAM,aAAa,oEAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAQhC,CAAA;AAED,eAAO,MAAM,eAAe,qEAI3B,CAAA;AAED,eAAO,MAAM,wBAAwB,oEAOpC,CAAA;AAED,eAAO,MAAM,mBAAmB,qEAM/B,CAAA;AACD,eAAO,MAAM,MAAM,oEAQlB,CAAA;AACD,eAAO,MAAM,WAAW,qEAkBvB,CAAA"}
|