@expressms/smartapp-ui 2.2.1 → 2.2.2
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.
|
@@ -10,6 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect } from 'react';
|
|
13
14
|
import Avatar from '../../Avatar';
|
|
14
15
|
import ContactInfo from '../ContactInfo/ContactInfo';
|
|
15
16
|
import { getClassNames } from '../../../helpers';
|
|
@@ -18,6 +19,14 @@ import { ReactComponent as TrustUserIcon } from '../../../assets/icons/trust-use
|
|
|
18
19
|
import '../../../styles/styles.scss';
|
|
19
20
|
var ContactBottomSheet = function (_a) {
|
|
20
21
|
var theme = _a.theme, isTrustUser = _a.isTrustUser, avatar = _a.avatar, name = _a.name, email = _a.email, serverName = _a.serverName, company = _a.company, department = _a.department, companyPosition = _a.companyPosition;
|
|
22
|
+
useEffect(function () {
|
|
23
|
+
var modalContent = document.querySelector('.smartapp-modal__content');
|
|
24
|
+
var handlePreventDefault = function (event) { return event.preventDefault(); };
|
|
25
|
+
modalContent === null || modalContent === void 0 ? void 0 : modalContent.addEventListener('touchend', handlePreventDefault);
|
|
26
|
+
return function () {
|
|
27
|
+
modalContent === null || modalContent === void 0 ? void 0 : modalContent.removeEventListener('touchend', handlePreventDefault);
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
21
30
|
return (_jsxs("div", __assign({ className: getClassNames({ className: 'smartapp-contact-bottom-sheet', delimiter: '__', additionalClassName: theme }) }, { children: [_jsxs("div", __assign({ className: "smartapp-contact-bottom-sheet__header" }, { children: [_jsx(Avatar, { username: name, avatar: avatar, size: 48 }), _jsxs("div", __assign({ className: "smartapp-contact-bottom-sheet__header--text" }, { children: [_jsxs("div", __assign({ className: "smartapp-contact-bottom-sheet__header--text__name" }, { children: [isTrustUser ? _jsx(TrustUserIcon, {}) : _jsx(CorporateUserIcon, {}), _jsx("div", { children: name })] })), _jsx("div", __assign({ className: "smartapp-contact-bottom-sheet__header--text__email" }, { children: email }))] }))] })), _jsx("div", __assign({ className: "smartapp-contact-bottom-sheet__body" }, { children: _jsx(ContactInfo, { theme: theme, serverName: serverName, company: company, department: department, companyPosition: companyPosition }) }))] })));
|
|
22
31
|
};
|
|
23
32
|
export default ContactBottomSheet;
|
package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactBottomSheet.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.tsx"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ContactBottomSheet.js","sourceRoot":"","sources":["../../../../../src/сomponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,MAAM,MAAM,cAAc,CAAA;AACjC,OAAO,WAAW,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC9F,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO,6BAA6B,CAAA;AAEpC,IAAM,kBAAkB,GAAG,UAAC,EAAkH;QAAhH,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,qBAAA;IACrH,SAAS,CAAC;QACR,IAAM,YAAY,GAA0B,QAAQ,CAAC,a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