@expressms/smartapp-ui 2.2.2 → 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.
Files changed (44) hide show
  1. package/build/main/constants/constants.d.ts +12 -1
  2. package/build/main/constants/constants.js +14 -1
  3. package/build/main/constants/constants.js.map +1 -1
  4. package/build/main/helpers/index.d.ts +3 -0
  5. package/build/main/helpers/index.js +4 -1
  6. package/build/main/helpers/index.js.map +1 -1
  7. package/build/main/styles/styles.scss +2 -2
  8. package/build/main//321/201omponents/Notification/Notification.d.ts +5 -1
  9. package/build/main//321/201omponents/Notification/Notification.js +13 -6
  10. package/build/main//321/201omponents/Notification/Notification.js.map +1 -1
  11. package/build/main//321/201omponents/Notification/types.d.ts +1 -1
  12. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +1 -1
  13. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +2 -3
  14. package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -1
  15. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +1 -1
  16. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +2 -2
  17. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -1
  18. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +3 -0
  19. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +57 -0
  20. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
  21. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +2 -1
  22. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +23 -4
  23. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
  24. package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +2 -1
  25. package/build/main//321/201omponents/UserDropdown/Option/Option.js +4 -6
  26. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -1
  27. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +1 -1
  28. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +78 -53
  29. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
  30. package/build/main//321/201omponents/UserDropdown/colors.d.ts +2 -2
  31. package/build/main//321/201omponents/UserDropdown/colors.js +2 -2
  32. package/build/main//321/201omponents/UserDropdown/colors.js.map +1 -1
  33. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +34 -12
  34. package/build/main//321/201omponents/UserDropdown/helpers.js +21 -36
  35. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -1
  36. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -3
  37. package/build/main//321/201omponents/UserDropdown/selectStyles.js +13 -12
  38. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
  39. package/build/main//321/201omponents/UserDropdown/types.d.ts +51 -22
  40. package/package.json +1 -1
  41. package/build/main/assets/icons/trust-user.svg +0 -10
  42. package/build/main//321/201omponents/UserDropdown/GroupHeading/GroupHeading.d.ts +0 -2
  43. package/build/main//321/201omponents/UserDropdown/GroupHeading/GroupHeading.js +0 -20
  44. package/build/main//321/201omponents/UserDropdown/GroupHeading/GroupHeading.js.map +0 -1
@@ -19,44 +19,49 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
- import { useEffect, useRef, useState } from 'react';
22
+ import { useCallback, useEffect, useRef, useState } from 'react';
23
23
  import Select, { components } from 'react-select';
24
- import { debounce, isNil, isNull, uniqBy, flatten, isEmpty, omit } from 'lodash';
24
+ import { debounce, isNil, isNull, uniqBy, isEmpty, omit } from 'lodash';
25
25
  import classNames from 'classnames';
26
26
  import LoadingMessage from './LoadingMessage/LoadingMessage';
27
27
  import MultiValueLabel from './MultiValueLabel/MultiValueLabel';
28
- import GroupHeading from './GroupHeading/GroupHeading';
29
28
  import Option from './Option/Option';
29
+ import MenuList from './MenuList/MenuList';
30
30
  import { IndicatorSeparator, DropdownIndicator, LoadingIndicator, MultiValueRemove, generateCorporateOptionsToSelect, generateContactsOptionsToSelect, generateCorporateOption, generateContactsOption, generateEnteredByUserOption, } from './helpers';
31
- import { getClassNames } from '../../helpers';
32
- import { DEFAULT_INPUT_PADDING, ENTER_KEY, INPUT_BORDER_TYPE, INPUT_COUNTER_TIMEOUT, MASK_INPUT_PL, PLATFORM, THEME } from '../../constants';
31
+ import { getClassNames, isIosPlatform } from '../../helpers';
32
+ import { DEFAULT_INPUT_PADDING, ENTER_KEY, INPUT_BORDER_TYPE, INPUT_COUNTER_TIMEOUT, LAYOUT_TYPE, MASK_INPUT_PL, PLATFORM, THEME, } from '../../constants';
33
33
  import selectStyles from './selectStyles';
34
34
  import '../../styles/styles.scss';
35
35
  var MIN_INPUT_SYMBOLS = 3;
36
- var GROUP_MY_CONTACTS = 'Мои контакты';
37
36
  var EMAIL_FIELD = 'email';
37
+ var TOP_MENU_POSITION = 'top';
38
38
  var EXCLUDED_FIELDS;
39
39
  (function (EXCLUDED_FIELDS) {
40
40
  EXCLUDED_FIELDS["value"] = "value";
41
41
  EXCLUDED_FIELDS["label"] = "label";
42
42
  EXCLUDED_FIELDS["theme"] = "theme";
43
+ EXCLUDED_FIELDS["layoutType"] = "layoutType";
43
44
  EXCLUDED_FIELDS["platform"] = "platform";
44
- EXCLUDED_FIELDS["isTrustUser"] = "isTrustUser";
45
45
  EXCLUDED_FIELDS["isMyContacts"] = "isMyContacts";
46
46
  EXCLUDED_FIELDS["isEnteredByUser"] = "isEnteredByUser";
47
+ EXCLUDED_FIELDS["isChipsCollapsable"] = "isChipsCollapsable";
48
+ EXCLUDED_FIELDS["isInputFocused"] = "isInputFocused";
47
49
  EXCLUDED_FIELDS["setIsSearchable"] = "setIsSearchable";
48
50
  EXCLUDED_FIELDS["selectRef"] = "selectRef";
49
51
  })(EXCLUDED_FIELDS || (EXCLUDED_FIELDS = {}));
50
52
  var Input = function (props) { return _jsx(components.Input, __assign({}, props, { enterkeyhint: "done" })); };
51
53
  var UserDropdown = function (_a) {
52
- var _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, _d = _a.isFullScreen, isFullScreen = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, _g = _a.isChipsVisible, isChipsVisible = _g === void 0 ? true : _g, _h = _a.isMenuCloseOnSelect, isMenuCloseOnSelect = _h === void 0 ? true : _h, title = _a.title, mask = _a.mask, placeholder = _a.placeholder, hint = _a.hint, noOptionsMessage = _a.noOptionsMessage, maxMembersCount = _a.maxMembersCount, _j = _a.borderType, borderType = _j === void 0 ? INPUT_BORDER_TYPE.intense : _j, _k = _a.selectedEntries, selectedEntries = _k === void 0 ? [] : _k, corporateEntries = _a.corporateEntries, myContactsEntries = _a.myContactsEntries, onInputChange = _a.onInputChange, onChange = _a.onChange, onMenuClose = _a.onMenuClose, _l = _a.menuPosition, menuPosition = _l === void 0 ? 'top' : _l;
53
- var _m = useState([]), selectedUsers = _m[0], setSelectedUsers = _m[1];
54
- var _o = useState(null), timeoutId = _o[0], setTimeoutId = _o[1];
55
- var _p = useState(''), paddingLeft = _p[0], setPaddingLeft = _p[1];
56
- var _q = useState(false), isError = _q[0], setIsError = _q[1];
57
- var _r = useState(true), isSearchable = _r[0], setIsSearchable = _r[1];
54
+ var _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isLoading, isLoading = _e === void 0 ? false : _e, _f = _a.isChipsVisible, isChipsVisible = _f === void 0 ? true : _f, _g = _a.isChipsCollapsable, isChipsCollapsable = _g === void 0 ? false : _g, _h = _a.isMenuCloseOnSelect, isMenuCloseOnSelect = _h === void 0 ? true : _h, _j = _a.hasNextPage, hasNextPage = _j === void 0 ? false : _j, _k = _a.isNextPageLoading, isNextPageLoading = _k === void 0 ? false : _k, _l = _a.layoutType, layoutType = _l === void 0 ? LAYOUT_TYPE.minimal : _l, title = _a.title, mask = _a.mask, placeholder = _a.placeholder, hint = _a.hint, noOptionsMessage = _a.noOptionsMessage, maxMembersCount = _a.maxMembersCount, _m = _a.borderType, borderType = _m === void 0 ? INPUT_BORDER_TYPE.intense : _m, _o = _a.selectedEntries, selectedEntries = _o === void 0 ? [] : _o, corporateEntries = _a.corporateEntries, myContactsEntries = _a.myContactsEntries, onInputChange = _a.onInputChange, onChange = _a.onChange, onMenuClose = _a.onMenuClose, onLoadNextPage = _a.onLoadNextPage, _p = _a.menuPosition, menuPosition = _p === void 0 ? TOP_MENU_POSITION : _p;
55
+ var _q = useState([]), selectedUsers = _q[0], setSelectedUsers = _q[1];
56
+ var _r = useState(null), timeoutId = _r[0], setTimeoutId = _r[1];
57
+ var _s = useState(''), paddingLeft = _s[0], setPaddingLeft = _s[1];
58
+ var _t = useState(false), isError = _t[0], setIsError = _t[1];
59
+ var _u = useState(true), isSearchable = _u[0], setIsSearchable = _u[1];
60
+ var _v = useState(false), isUserTyping = _v[0], setIsUserTyping = _v[1];
61
+ var isInputFocused = useRef(false);
58
62
  var selectRef = useRef(null);
59
63
  var maskRef = useRef(null);
64
+ var menuScrollFromTop = useRef(0);
60
65
  var generatePaddingLeft = function () {
61
66
  var _a, _b;
62
67
  var maskWidth = ((_b = (_a = maskRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width) || null;
@@ -64,8 +69,6 @@ var UserDropdown = function (_a) {
64
69
  };
65
70
  var generateStyles = function () {
66
71
  return selectStyles({
67
- isLoading: isLoading,
68
- isFullScreen: isFullScreen,
69
72
  isChipsVisible: isChipsVisible,
70
73
  isMaxMembersAdded: maxMembersCount && isChipsVisible ? selectedUsers.length === maxMembersCount : false,
71
74
  isDisabled: isDisabled,
@@ -74,40 +77,24 @@ var UserDropdown = function (_a) {
74
77
  paddingLeft: paddingLeft,
75
78
  borderType: borderType,
76
79
  theme: theme,
80
+ layoutType: layoutType,
77
81
  });
78
82
  };
79
83
  var generateNoOptionsMessage = function (_a) {
80
84
  var inputValue = _a.inputValue;
81
85
  return inputValue.length >= MIN_INPUT_SYMBOLS && !isNull(corporateEntries) && !isNull(myContactsEntries) ? noOptionsMessage : null;
82
86
  };
83
- var generateOptions = function () { return [
84
- {
85
- options: __spreadArray(__spreadArray([], generateCorporateOptionsToSelect({
86
- options: (corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.corpPhonebookEntries) || [],
87
- theme: theme,
88
- platform: platform,
89
- setIsSearchable: setIsSearchable,
90
- selectRef: selectRef,
91
- }), true), generateCorporateOptionsToSelect({
92
- options: (corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.trustSearchEntries) || [],
93
- theme: theme,
94
- platform: platform,
95
- isTrustUser: true,
96
- setIsSearchable: setIsSearchable,
97
- selectRef: selectRef,
98
- }), true),
99
- },
100
- {
101
- label: GROUP_MY_CONTACTS,
102
- options: __spreadArray([], generateContactsOptionsToSelect({ options: myContactsEntries || [], theme: theme }), true),
103
- },
104
- ]; };
87
+ var generateOptions = function () {
88
+ var commonFields = { theme: theme, platform: platform, layoutType: layoutType, isChipsCollapsable: isChipsCollapsable, isInputFocused: isInputFocused, selectRef: selectRef, setIsSearchable: setIsSearchable };
89
+ return __spreadArray(__spreadArray(__spreadArray([], generateCorporateOptionsToSelect(__assign({ options: (corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.corpPhonebookEntries) || [] }, commonFields)), true), generateCorporateOptionsToSelect(__assign({ options: (corporateEntries === null || corporateEntries === void 0 ? void 0 : corporateEntries.trustSearchEntries) || [] }, commonFields)), true), generateContactsOptionsToSelect(__assign({ options: myContactsEntries || [] }, commonFields)), true);
90
+ };
105
91
  var handleSetTimeoutForCounter = function () {
106
92
  var id = setTimeout(function () { return setTimeoutId(null); }, INPUT_COUNTER_TIMEOUT);
107
93
  setTimeoutId(id);
108
94
  };
109
95
  var requestDebounce = debounce(function (inputValue) {
110
96
  onInputChange(inputValue);
97
+ setIsUserTyping(false);
111
98
  }, 300);
112
99
  var handleResetError = function () { return isError && setIsError(false); };
113
100
  var handleMenuClose = function () {
@@ -115,15 +102,21 @@ var UserDropdown = function (_a) {
115
102
  onMenuClose && onMenuClose();
116
103
  };
117
104
  var handleInputChange = function (inputValue) {
105
+ setIsUserTyping(true);
118
106
  handleResetError();
119
107
  if (inputValue.length >= MIN_INPUT_SYMBOLS) {
120
108
  requestDebounce(inputValue);
121
109
  }
110
+ else {
111
+ debounce(function () {
112
+ setIsUserTyping(false);
113
+ }, 300);
114
+ }
122
115
  };
123
116
  var handleAddUser = function (needToShowError) {
124
117
  if (needToShowError === void 0) { needToShowError = true; }
125
118
  var selectRefCurrent = selectRef.current;
126
- var _a = selectRefCurrent.props, selectOptions = _a.options, inputValue = _a.inputValue, onChange = _a.onChange, onInputChange = _a.onInputChange;
119
+ var _a = selectRefCurrent.props, options = _a.options, inputValue = _a.inputValue, onChange = _a.onChange, onInputChange = _a.onInputChange;
127
120
  var trimInputValue = inputValue.trim();
128
121
  var regex = new RegExp(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/);
129
122
  if (regex.test(trimInputValue)) {
@@ -131,15 +124,14 @@ var UserDropdown = function (_a) {
131
124
  var email = _a.email;
132
125
  return email === trimInputValue;
133
126
  });
134
- var options = flatten(selectOptions.map(function (_a) {
135
- var options = _a.options;
136
- return options;
137
- }));
138
127
  var existingUser = options.find(function (_a) {
139
128
  var email = _a.email;
140
129
  return email === trimInputValue;
141
130
  });
142
- onChange(__spreadArray(__spreadArray([], selectedUsers, true), [existingUser || generateEnteredByUserOption({ email: trimInputValue, theme: theme })], false));
131
+ onChange(__spreadArray(__spreadArray([], selectedUsers, true), [
132
+ existingUser ||
133
+ generateEnteredByUserOption({ email: trimInputValue, theme: theme, platform: platform, layoutType: layoutType, isChipsCollapsable: isChipsCollapsable, isInputFocused: isInputFocused, selectRef: selectRef }),
134
+ ], false));
143
135
  isUserAlreadySelected && needToShowError ? setIsError(true) : onInputChange('');
144
136
  }
145
137
  else {
@@ -157,10 +149,18 @@ var UserDropdown = function (_a) {
157
149
  var users = [];
158
150
  uniqNewSelectedUsers.forEach(function (user) {
159
151
  var isEnteredByUser = user.isEnteredByUser, isMyContacts = user.isMyContacts;
160
- var userToAdd = omit(user, [EXCLUDED_FIELDS.value, EXCLUDED_FIELDS.label, EXCLUDED_FIELDS.theme]);
161
- var entryFieldsToExclude = isMyContacts
162
- ? [EXCLUDED_FIELDS.isMyContacts]
163
- : [EXCLUDED_FIELDS.isTrustUser, EXCLUDED_FIELDS.platform, EXCLUDED_FIELDS.setIsSearchable, EXCLUDED_FIELDS.selectRef];
152
+ var userToAdd = omit(user, [
153
+ EXCLUDED_FIELDS.value,
154
+ EXCLUDED_FIELDS.label,
155
+ EXCLUDED_FIELDS.theme,
156
+ EXCLUDED_FIELDS.platform,
157
+ EXCLUDED_FIELDS.layoutType,
158
+ EXCLUDED_FIELDS.isChipsCollapsable,
159
+ EXCLUDED_FIELDS.isInputFocused,
160
+ EXCLUDED_FIELDS.selectRef,
161
+ EXCLUDED_FIELDS.setIsSearchable,
162
+ ]);
163
+ var entryFieldsToExclude = isMyContacts ? [EXCLUDED_FIELDS.isMyContacts] : [];
164
164
  var fieldsToExclude = isEnteredByUser ? [EXCLUDED_FIELDS.isEnteredByUser] : entryFieldsToExclude;
165
165
  users.push(omit(userToAdd, fieldsToExclude));
166
166
  });
@@ -188,6 +188,19 @@ var UserDropdown = function (_a) {
188
188
  var isContainsInputValue = label.toLowerCase().includes(inputValue.toLowerCase()) || optionEmail.toLowerCase().includes(inputValue.toLowerCase());
189
189
  return !isEmpty(selectedUsers) ? !isUserAlreadySelected && isContainsInputValue : isContainsInputValue;
190
190
  };
191
+ var handleBlur = function () {
192
+ handleAddUser(false);
193
+ isInputFocused.current = false;
194
+ };
195
+ var handleFocus = function () {
196
+ if (isIosPlatform(platform)) {
197
+ new Promise(function (resolve) { return resolve(); }).then(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
198
+ }
199
+ else {
200
+ setTimeout(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 100);
201
+ }
202
+ isInputFocused.current = true;
203
+ };
191
204
  var renderCounter = function () {
192
205
  return !isNil(maxMembersCount) && (_jsx("div", __assign({ className: classNames('smartapp-user-dropdown__title--counter', { 'smartapp-user-dropdown__title--counter__error': !isNull(timeoutId) }) }, { children: "".concat(selectedUsers.length, "/").concat(maxMembersCount) })));
193
206
  };
@@ -202,20 +215,32 @@ var UserDropdown = function (_a) {
202
215
  setPaddingLeft(generatePaddingLeft());
203
216
  }, [mask]);
204
217
  useEffect(function () {
205
- setSelectedUsers(function (prevSelectedUsers) { return prevSelectedUsers.map(function (selectedUser) { return (__assign(__assign({}, selectedUser), { theme: theme })); }); });
206
- }, [theme]);
218
+ setSelectedUsers(function (prevSelectedUsers) { return prevSelectedUsers.map(function (selectedUser) { return (__assign(__assign({}, selectedUser), { theme: theme, layoutType: layoutType, isChipsCollapsable: isChipsCollapsable })); }); });
219
+ }, [theme, layoutType, isChipsCollapsable]);
207
220
  useEffect(function () {
208
221
  if (!isEmpty(selectedEntries)) {
209
222
  setSelectedUsers(selectedEntries.map(function (entity) {
223
+ var commonFields = { theme: theme, platform: platform, layoutType: layoutType, isChipsCollapsable: isChipsCollapsable, isInputFocused: isInputFocused, selectRef: selectRef };
210
224
  var generatedNotCorporateEntity = Object.keys(entity).length === 1
211
- ? generateEnteredByUserOption({ email: entity.email, theme: theme })
212
- : generateContactsOption({ option: entity, theme: theme });
213
- return 'contacts' in entity ? generateCorporateOption({ option: entity, theme: theme }) : generatedNotCorporateEntity;
225
+ ? generateEnteredByUserOption(__assign({ email: entity.email }, commonFields))
226
+ : generateContactsOption(__assign({ option: entity }, commonFields));
227
+ return 'contacts' in entity ? generateCorporateOption(__assign({ option: entity }, commonFields)) : generatedNotCorporateEntity;
214
228
  }));
215
229
  }
216
230
  // eslint-disable-next-line
217
231
  }, [selectedEntries]);
218
- return (_jsxs("div", __assign({ className: getClassNames({ className: 'smartapp-user-dropdown', delimiter: '__', additionalClassName: theme }) }, { children: [renderTitle(), _jsxs("div", __assign({ className: "smartapp-user-dropdown__container" }, { children: [renderMask(), _jsx(Select, { ref: selectRef, isMulti: true, isSearchable: isSearchable, menuPlacement: menuPosition, controlShouldRenderValue: isChipsVisible, backspaceRemovesValue: isChipsVisible, isDisabled: isDisabled, closeMenuOnSelect: isMenuCloseOnSelect, isLoading: isLoading, isClearable: false, styles: generateStyles(), placeholder: placeholder || '', noOptionsMessage: generateNoOptionsMessage, loadingMessage: function () { return _jsx(LoadingMessage, { theme: theme }); }, value: selectedUsers, options: !isNull(corporateEntries) || !isNull(myContactsEntries) ? generateOptions() : undefined, filterOption: handleFilterOption, onInputChange: handleInputChange, onChange: handleChange, onMenuClose: handleMenuClose, onKeyDown: handleKeyDown, onBlur: function () { return handleAddUser(false); }, onFocus: function () { return setTimeout(function () { var _a; return (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 100); }, components: { Input: Input, MultiValueLabel: MultiValueLabel, MultiValueRemove: MultiValueRemove, GroupHeading: GroupHeading, Option: Option, IndicatorSeparator: IndicatorSeparator, DropdownIndicator: DropdownIndicator, LoadingIndicator: LoadingIndicator } })] })), renderHint()] })));
232
+ var OptionComponent = useCallback(function (props) { return _jsx(Option, __assign({}, props, { children: props.children })); }, []);
233
+ var MenuListComponent = useCallback(function (props) { return (_jsx(MenuList, __assign({}, props, { children: props.children, appTheme: theme, selectRef: selectRef, scrollFromTop: menuScrollFromTop, hasNextPage: hasNextPage, isLoading: isLoading, isUserTyping: isUserTyping, isNextPageLoading: isNextPageLoading, onLoadNextPage: function (inputValue) { return onLoadNextPage && onLoadNextPage(inputValue); } }))); }, [hasNextPage, isLoading, isNextPageLoading, isUserTyping, onLoadNextPage, theme]);
234
+ return (_jsxs("div", __assign({ className: getClassNames({ className: 'smartapp-user-dropdown', delimiter: '__', additionalClassName: theme }) }, { children: [renderTitle(), _jsxs("div", __assign({ className: "smartapp-user-dropdown__container" }, { children: [renderMask(), _jsx(Select, { ref: selectRef, isMulti: true, openMenuOnFocus: true, isSearchable: isSearchable, menuPlacement: menuPosition, controlShouldRenderValue: isChipsVisible, backspaceRemovesValue: isChipsVisible, isDisabled: isDisabled, closeMenuOnSelect: isMenuCloseOnSelect, isLoading: isLoading, isClearable: false, styles: generateStyles(), placeholder: placeholder || '', noOptionsMessage: generateNoOptionsMessage, loadingMessage: function () { return _jsx(LoadingMessage, { theme: theme }); }, value: selectedUsers, options: !isNull(corporateEntries) || !isNull(myContactsEntries) ? generateOptions() : undefined, filterOption: handleFilterOption, onInputChange: handleInputChange, onChange: handleChange, onMenuClose: handleMenuClose, onKeyDown: handleKeyDown, onBlur: handleBlur, onFocus: handleFocus, components: {
235
+ Input: Input,
236
+ MultiValueLabel: MultiValueLabel,
237
+ MultiValueRemove: MultiValueRemove,
238
+ Option: OptionComponent,
239
+ IndicatorSeparator: IndicatorSeparator,
240
+ DropdownIndicator: DropdownIndicator,
241
+ LoadingIndicator: LoadingIndicator,
242
+ MenuList: MenuListComponent,
243
+ } })] })), renderHint()] })));
219
244
  };
220
245
  export default UserDropdown;
221
246
  //# sourceMappingURL=UserDropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserDropdown.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/UserDropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;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AAA;4BACjB,gBAAgB,kBAAA;4BAChB,QAAQ,EAAE,iBAAiB;yBAC5B,GACD,KACE,EACL,UAAU,EAAE,KACT,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -3,7 +3,6 @@ export declare const lightBlueColor = "rgba(71, 153, 227, 0.5)";
3
3
  export declare const lighterGrayColor = "rgba(241, 241, 242, 1)";
4
4
  export declare const lightGrayColor = "rgba(17, 17, 17, 0.3)";
5
5
  export declare const grayColor = "rgba(183, 183, 183, 1)";
6
- export declare const darkGrayColor = "rgba(158, 158, 158, 1)";
7
6
  export declare const lighterBlackColor = "rgba(86, 86, 86, 1)";
8
7
  export declare const lightBlackColor = "rgba(49, 49, 49, 1)";
9
8
  export declare const blackColor = "rgba(26, 26, 26, 1)";
@@ -11,10 +10,11 @@ export declare const whiteBackgroundColor = "rgba(255, 255, 255, 1)";
11
10
  export declare const grayBackgroundColor = "rgba(249, 249, 249, 1)";
12
11
  export declare const darkGrayBackgroundColor = "rgba(0, 0, 0, 0.04)";
13
12
  export declare const darkerGrayBackgroundColor = "rgba(0, 0, 0, 0.3)";
14
- export declare const lighterBlackBackgroundColor = "rgba(66, 66, 66, 1)";
13
+ export declare const lighterBlackBackgroundColor = "rgba(43, 43, 43, 1)";
15
14
  export declare const lightBlackBackgroundColor = "rgba(61, 61, 61, 1)";
16
15
  export declare const blackBackgroundColor = "rgba(36, 36, 36, 1)";
17
16
  export declare const intenseBorderColor = "rgba(217, 217, 217, 1)";
18
17
  export declare const hoverBorderColor = "rgba(128, 128, 128, 1)";
19
18
  export declare const redBorderColor = "rgba(237, 71, 71, 1)";
20
19
  export declare const boxShadowColor = "rgba(0, 0, 0, 0.25)";
20
+ export declare const transparent = "transparent";
@@ -3,7 +3,6 @@ export var lightBlueColor = 'rgba(71, 153, 227, 0.5)';
3
3
  export var lighterGrayColor = 'rgba(241, 241, 242, 1)';
4
4
  export var lightGrayColor = 'rgba(17, 17, 17, 0.3)';
5
5
  export var grayColor = 'rgba(183, 183, 183, 1)';
6
- export var darkGrayColor = 'rgba(158, 158, 158, 1)';
7
6
  export var lighterBlackColor = 'rgba(86, 86, 86, 1)';
8
7
  export var lightBlackColor = 'rgba(49, 49, 49, 1)';
9
8
  export var blackColor = 'rgba(26, 26, 26, 1)';
@@ -11,11 +10,12 @@ export var whiteBackgroundColor = 'rgba(255, 255, 255, 1)';
11
10
  export var grayBackgroundColor = 'rgba(249, 249, 249, 1)';
12
11
  export var darkGrayBackgroundColor = 'rgba(0, 0, 0, 0.04)';
13
12
  export var darkerGrayBackgroundColor = 'rgba(0, 0, 0, 0.3)';
14
- export var lighterBlackBackgroundColor = 'rgba(66, 66, 66, 1)';
13
+ export var lighterBlackBackgroundColor = 'rgba(43, 43, 43, 1)';
15
14
  export var lightBlackBackgroundColor = 'rgba(61, 61, 61, 1)';
16
15
  export var blackBackgroundColor = 'rgba(36, 36, 36, 1)';
17
16
  export var intenseBorderColor = 'rgba(217, 217, 217, 1)';
18
17
  export var hoverBorderColor = 'rgba(128, 128, 128, 1)';
19
18
  export var redBorderColor = 'rgba(237, 71, 71, 1)';
20
19
  export var boxShadowColor = 'rgba(0, 0, 0, 0.25)';
20
+ export var transparent = 'transparent';
21
21
  //# sourceMappingURL=colors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/colors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,SAAS,GAAG,uBAAuB,CAAA;AAChD,MAAM,CAAC,IAAM,cAAc,GAAG,yBAAyB,CAAA;AACvD,MAAM,CAAC,IAAM,gBAAgB,GAAG,wBAAwB,CAAA;AACxD,MAAM,CAAC,IAAM,cAAc,GAAG,uBAAuB,CAAA;AACrD,MAAM,CAAC,IAAM,SAAS,GAAG,wBAAwB,CAAA;AACjD,MAAM,CAAC,IAAM,aAAa,GAAG,wBAAwB,CAAA;AACrD,MAAM,CAAC,IAAM,iBAAiB,GAAG,qBA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,wBAAwB,CAAA;AAC5D,MAAM,CAAC,IAAM,mBAAmB,GAAG,wBAAwB,CAAA;AAC3D,MAAM,CAAC,IAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAC5D,MAAM,CAAC,IAAM,yBAAyB,GAAG,oBAAoB,CAAA;AAC7D,MAAM,CAAC,IAAM,2BAA2B,GAAG,qBAAqB,CAAA;AAChE,MAAM,CAAC,IAAM,yBAAyB,GAAG,qBAAqB,CAAA;AAC9D,MAAM,CAAC,IAAM,oBAAoB,GAAG,qBAAqB,CAAA;AAEzD,MAAM,CAAC,IAAM,kBAAkB,GAAG,wBAAwB,CAAA;AAC1D,MAAM,CAAC,IAAM,gBAAgB,GAAG,wBAAwB,CAAA;AACxD,MAAM,CAAC,IAAM,cAAc,GAAG,sBAAsB,CAAA;AAEpD,MAAM,CAAC,IAAM,cAAc,GAAG,qBAAqB,CAAA;AAEnD,MAAM,CAAC,IAAM,WAAW,GAAG,aAAa,CAAA"}
@@ -1,6 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { TGenerateContactsOption, TGenerateContactsOptionsToSelect, TGenerateCorporateOption, TGenerateCorporateOptionsToSelect, TGenerateEnteredByUserOption } from './types';
3
- export declare const generateCorporateOption: ({ option: { name, avatar, email, contacts, serverName, company, department, companyPosition }, theme, }: TGenerateCorporateOption) => {
3
+ export declare const generateCorporateOption: ({ option: { name, avatar, email, contacts, serverName, company, department, companyPosition }, ...remainingFields }: TGenerateCorporateOption) => {
4
+ theme: string;
5
+ platform: string;
6
+ layoutType: string;
7
+ isChipsCollapsable: boolean;
8
+ isInputFocused: import("react").MutableRefObject<boolean>;
9
+ selectRef: import("react").MutableRefObject<any>;
4
10
  value: string;
5
11
  label: string;
6
12
  name: string;
@@ -14,12 +20,14 @@ export declare const generateCorporateOption: ({ option: { name, avatar, email,
14
20
  company: string | null;
15
21
  department: string | null;
16
22
  companyPosition: string | null;
17
- theme: string;
18
23
  };
19
- export declare const generateCorporateOptionsToSelect: ({ options, theme, platform, isTrustUser, setIsSearchable, selectRef, }: TGenerateCorporateOptionsToSelect) => {
20
- isTrustUser: boolean | undefined;
21
- platform: string;
24
+ export declare const generateCorporateOptionsToSelect: ({ options, setIsSearchable, ...remainingFields }: TGenerateCorporateOptionsToSelect) => {
22
25
  setIsSearchable: (isSearchable: boolean) => void;
26
+ theme: string;
27
+ platform: string;
28
+ layoutType: string;
29
+ isChipsCollapsable: boolean;
30
+ isInputFocused: import("react").MutableRefObject<boolean>;
23
31
  selectRef: import("react").MutableRefObject<any>;
24
32
  value: string;
25
33
  label: string;
@@ -34,32 +42,46 @@ export declare const generateCorporateOptionsToSelect: ({ options, theme, platfo
34
42
  company: string | null;
35
43
  department: string | null;
36
44
  companyPosition: string | null;
37
- theme: string;
38
45
  }[];
39
- export declare const generateContactsOption: ({ option: { name, avatar, email }, theme }: TGenerateContactsOption) => {
46
+ export declare const generateContactsOption: ({ option: { name, avatar, email }, ...remainingFields }: TGenerateContactsOption) => {
47
+ theme: string;
48
+ platform: string;
49
+ layoutType: string;
50
+ isChipsCollapsable: boolean;
51
+ isInputFocused: import("react").MutableRefObject<boolean>;
52
+ selectRef: import("react").MutableRefObject<any>;
40
53
  value: string;
41
54
  label: string;
42
55
  name: string | null;
43
56
  avatar: string | null;
44
57
  email: string;
45
58
  isMyContacts: boolean;
46
- theme: string;
47
59
  };
48
- export declare const generateContactsOptionsToSelect: ({ options, theme }: TGenerateContactsOptionsToSelect) => {
60
+ export declare const generateContactsOptionsToSelect: ({ options, ...remainingFields }: TGenerateContactsOptionsToSelect) => {
61
+ theme: string;
62
+ platform: string;
63
+ layoutType: string;
64
+ isChipsCollapsable: boolean;
65
+ isInputFocused: import("react").MutableRefObject<boolean>;
66
+ selectRef: import("react").MutableRefObject<any>;
49
67
  value: string;
50
68
  label: string;
51
69
  name: string | null;
52
70
  avatar: string | null;
53
71
  email: string;
54
72
  isMyContacts: boolean;
55
- theme: string;
56
73
  }[];
57
- export declare const generateEnteredByUserOption: ({ email, theme }: TGenerateEnteredByUserOption) => {
74
+ export declare const generateEnteredByUserOption: ({ email, ...remainingFields }: TGenerateEnteredByUserOption) => {
75
+ theme: string;
76
+ platform: string;
77
+ layoutType: string;
78
+ isChipsCollapsable: boolean;
79
+ isInputFocused: import("react").MutableRefObject<boolean>;
80
+ selectRef: import("react").MutableRefObject<any>;
58
81
  value: string;
59
82
  label: string;
60
83
  email: string;
61
84
  isEnteredByUser: boolean;
62
- theme: string;
63
85
  };
64
86
  export declare const IndicatorSeparator: () => null;
65
87
  export declare const DropdownIndicator: () => null;
@@ -9,51 +9,36 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
12
23
  export var generateCorporateOption = function (_a) {
13
- var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, contacts = _b.contacts, serverName = _b.serverName, company = _b.company, department = _b.department, companyPosition = _b.companyPosition, theme = _a.theme;
14
- return ({
15
- value: contacts[0].userHuid,
16
- label: name,
17
- name: name,
18
- avatar: avatar,
19
- email: email || contacts[0].contact,
20
- contacts: contacts,
21
- serverName: serverName,
22
- company: company,
23
- department: department,
24
- companyPosition: companyPosition,
25
- theme: theme,
26
- });
24
+ var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, contacts = _b.contacts, serverName = _b.serverName, company = _b.company, department = _b.department, companyPosition = _b.companyPosition, remainingFields = __rest(_a, ["option"]);
25
+ return (__assign({ value: contacts[0].userHuid, label: name, name: name, avatar: avatar, email: email || contacts[0].contact, contacts: contacts, serverName: serverName, company: company, department: department, companyPosition: companyPosition }, remainingFields));
27
26
  };
28
27
  export var generateCorporateOptionsToSelect = function (_a) {
29
- var options = _a.options, theme = _a.theme, platform = _a.platform, isTrustUser = _a.isTrustUser, setIsSearchable = _a.setIsSearchable, selectRef = _a.selectRef;
30
- return options.map(function (option) { return (__assign(__assign({}, generateCorporateOption({ option: option, theme: theme })), { isTrustUser: isTrustUser, platform: platform, setIsSearchable: setIsSearchable, selectRef: selectRef })); });
28
+ var options = _a.options, setIsSearchable = _a.setIsSearchable, remainingFields = __rest(_a, ["options", "setIsSearchable"]);
29
+ return options.map(function (option) { return (__assign(__assign({}, generateCorporateOption(__assign({ option: option }, remainingFields))), { setIsSearchable: setIsSearchable })); });
31
30
  };
32
31
  export var generateContactsOption = function (_a) {
33
- var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, theme = _a.theme;
34
- return ({
35
- value: email,
36
- label: name || email,
37
- name: name,
38
- avatar: avatar,
39
- email: email,
40
- isMyContacts: true,
41
- theme: theme,
42
- });
32
+ var _b = _a.option, name = _b.name, avatar = _b.avatar, email = _b.email, remainingFields = __rest(_a, ["option"]);
33
+ return (__assign({ value: email, label: name || email, name: name, avatar: avatar, email: email, isMyContacts: true }, remainingFields));
43
34
  };
44
35
  export var generateContactsOptionsToSelect = function (_a) {
45
- var options = _a.options, theme = _a.theme;
46
- return options.map(function (option) { return generateContactsOption({ option: option, theme: theme }); });
36
+ var options = _a.options, remainingFields = __rest(_a, ["options"]);
37
+ return options.map(function (option) { return generateContactsOption(__assign({ option: option }, remainingFields)); });
47
38
  };
48
39
  export var generateEnteredByUserOption = function (_a) {
49
- var email = _a.email, theme = _a.theme;
50
- return ({
51
- value: email,
52
- label: email,
53
- email: email,
54
- isEnteredByUser: true,
55
- theme: theme,
56
- });
40
+ var email = _a.email, remainingFields = __rest(_a, ["email"]);
41
+ return (__assign({ value: email, label: email, email: email, isEnteredByUser: true }, remainingFields));
57
42
  };
58
43
  export var IndicatorSeparator = function () { return null; };
59
44
  export var DropdownIndicator = function () { return null; };
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;AAQA,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,EAGb;QAFzB,cAA2F,EAAjF,IAAI,UAAA,EAAE,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,qBAAA,EACzF,KAAK,WAAA;IACyB,OAAA,CAAC;QAC/B,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ;QAC3B,KAAK,EAAE,IAAI;QACX,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,KAAK,EAAE,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;QACnC,QAAQ,UAAA;QACR,UAAU,YAAA;QACV,OAAO,SAAA;QACP,UAAU,YAAA;QACV,eAAe,iBAAA;QACf,KAAK,OAAA;KACN,CAAC;AAZ8B,CAY9B,CAAA;AAEF,MAAM,CAAC,IAAM,gCAAgC,GAAG,UAAC,EAOb;QANlC,OAAO,aAAA,EACP,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,SAAS,eAAA;IAET,OAAA,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,uBACnB,uBAAuB,CAAC,EAAE,MAAM,QAAA,EAAE,KAAK,OAAA,EAAE,CAAC,KAC7C,WAAW,aAAA,EACX,QAAQ,UAAA,EACR,eAAe,iBAAA,EACf,SAAS,WAAA,IACT,EANsB,CAMtB,CAAC;AANH,CAMG,CAAA;AAEL,MAAM,CAAC,IAAM,sBAAsB,GAAG,UAAC,EAAmE;QAAjE,cAA+B,EAArB,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AiE;IAA/D,IAAA,OAAO,aAAA,EAAK,eAAe,cAA7B,WAA+B,CAAF;IAC3E,OAAA,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,sBAAsB,YAAG,MAAM,QAAA,IAAK,eAAe,EAAG,EAAtD,CAAsD,CAAC,CAAA;CAAA,CAAA;AAEjF,MAAM,CAAC,IAAM,2BAA2B,GAAG,UAAC,EAA2D;IAAzD,IAAA,KAAK,WAAA,EAAK,eAAe,cAA3B,SAA6B,CAAF;IAAqC,OAAA,YAC1G,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,KAAK,OAAA,EACL,eAAe,EAAE,IAAI,IAClB,eAAe,EAClB,CAAA;CAAA,CAAA;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAA;AAC5C,MAAM,CAAC,IAAM,iBAAiB,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAA;AAC3C,MAAM,CAAC,IAAM,gBAAgB,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAA;AAC1C,MAAM,CAAC,IAAM,gBAAgB,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAA"}
@@ -1,9 +1,7 @@
1
1
  import { TSelectStyles } from './types';
2
- declare const _default: ({ isLoading, isFullScreen, isChipsVisible, isMaxMembersAdded, isDisabled, isError, lastRowNumber, paddingLeft, borderType, theme, }: TSelectStyles) => {
2
+ declare const _default: ({ isChipsVisible, isMaxMembersAdded, isDisabled, isError, lastRowNumber, paddingLeft, borderType, theme, layoutType, }: TSelectStyles) => {
3
3
  control: (provided: any, { menuIsOpen }: any) => any;
4
4
  menu: (provided: any) => any;
5
- group: (provided: any) => any;
6
- groupHeading: (provided: any) => any;
7
5
  menuList: (provided: any) => any;
8
6
  valueContainer: (provided: any, { hasValue }: any) => any;
9
7
  placeholder: (provided: any) => any;
@@ -9,12 +9,12 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { isDarkTheme } from '../../helpers';
12
+ import { isDarkTheme, isFullScreen, isHalfLayoutType } from '../../helpers';
13
13
  import { INPUT_BORDER_TYPE } from '../../constants';
14
14
  import * as colors from './colors';
15
15
  // eslint-disable-next-line import/no-anonymous-default-export
16
16
  export default (function (_a) {
17
- var isLoading = _a.isLoading, isFullScreen = _a.isFullScreen, isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft, borderType = _a.borderType, theme = _a.theme;
17
+ var isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft, borderType = _a.borderType, theme = _a.theme, layoutType = _a.layoutType;
18
18
  return ({
19
19
  control: function (provided, _a) {
20
20
  var menuIsOpen = _a.menuIsOpen;
@@ -30,21 +30,19 @@ export default (function (_a) {
30
30
  borderColor: isError ? colors.redBorderColor : hoverBorderColor,
31
31
  } });
32
32
  },
33
- menu: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen ? '384px' : '100%', left: isFullScreen ? '55px' : 0, borderRadius: '4px', boxShadow: isDarkTheme(theme) ? "0 4px 17px 0 ".concat(colors.boxShadowColor) : "0 2px 4px 0 ".concat(colors.boxShadowColor), margin: '4px 0', zIndex: 2 })); },
34
- group: function (provided) { return (__assign(__assign({}, provided), { padding: 0, '& > div:last-child > div:last-child': {
33
+ menu: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen(layoutType) ? '384px' : '100%', left: isFullScreen(layoutType) ? '55px' : 0, borderRadius: '4px', boxShadow: isDarkTheme(theme) ? "0 4px 17px 0 ".concat(colors.boxShadowColor) : "0 2px 4px 0 ".concat(colors.boxShadowColor), margin: '4px 0', zIndex: 2, '& > div:last-child > div:last-child': {
35
34
  '.smartapp-option__container': {
36
35
  borderBottom: 'none',
37
36
  },
38
37
  }, '[role=option]:has(+[role=option]:hover)': {
39
38
  '.smartapp-option__container': {
40
- borderBottomColor: 'transparent',
39
+ borderBottomColor: colors.transparent,
41
40
  },
42
41
  } })); },
43
- groupHeading: function (provided) { return (__assign(__assign({}, provided), { fontSize: '12px', fontWeight: 600, lineHeight: '16px', color: isDarkTheme(theme) ? colors.darkGrayColor : colors.darkGrayColor, background: isDarkTheme(theme) ? colors.lighterBlackBackgroundColor : colors.grayBackgroundColor, textTransform: 'unset', padding: '8px 16px', margin: 0 })); },
44
- menuList: function (provided) { return (__assign(__assign({}, provided), { maxHeight: isLoading ? 'fit-content' : '356px', background: isDarkTheme(theme) ? colors.lightBlackColor : colors.whiteBackgroundColor, borderRadius: '4px', padding: 0, scrollbarColor: "".concat(colors.lightBlueColor, " transparent"), '::-webkit-scrollbar-thumb': {
42
+ menuList: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '356px', background: isDarkTheme(theme) ? colors.lightBlackColor : colors.whiteBackgroundColor, borderRadius: '4px', padding: 0, scrollbarColor: "".concat(colors.lightBlueColor, " ").concat(colors.transparent), '::-webkit-scrollbar-thumb': {
45
43
  background: colors.lightBlueColor,
46
44
  }, '::-webkit-scrollbar-track': {
47
- background: 'transparent',
45
+ background: colors.transparent,
48
46
  } })); },
49
47
  valueContainer: function (provided, _a) {
50
48
  var hasValue = _a.hasValue;
@@ -53,16 +51,19 @@ export default (function (_a) {
53
51
  },
54
52
  placeholder: function (provided) { return (__assign(__assign({}, provided), { fontFamily: "Open Sans, 'sans-serif'", fontSize: '14px', fontWeight: '400', lineHeight: '19px', color: isDarkTheme(theme) ? colors.lighterBlackColor : colors.grayColor, margin: 0 })); },
55
53
  input: function (provided) { return (__assign(__assign({}, provided), { display: isMaxMembersAdded || isDisabled ? 'none' : 'grid', fontSize: '14px', fontWeight: '400', lineHeight: '19px', color: isDarkTheme(theme) ? colors.grayBackgroundColor : colors.blackColor, caretColor: colors.blueColor, padding: 0, margin: 0, overflow: 'auto' })); },
56
- multiValue: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen ? 'auto' : 'calc(50% - 4px)', background: 'unset', borderRadius: '20px', margin: 0 })); },
54
+ multiValue: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen(layoutType) ? 'auto' : isHalfLayoutType(layoutType) ? 'calc((100% - 16px) / 3)' : 'calc(50% - 4px)', background: 'unset', borderRadius: '20px', margin: 0, '&:empty, &:has(.multi-value-label-counter)': {
55
+ width: 'fit-content',
56
+ cursor: 'default',
57
+ } })); },
57
58
  multiValueLabel: function (provided) { return (__assign(__assign({}, provided), { width: '100%', padding: '0 !important', '.smartapp-chip': {
58
59
  maxWidth: '100%',
59
60
  } })); },
60
61
  noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '12px', fontWeight: 400, color: isDarkTheme(theme) ? colors.grayColor : colors.lightGrayColor, padding: '8px 16px' })); },
61
62
  loadingMessage: function (provided) { return (__assign(__assign({}, provided), { padding: 0 })); },
62
- option: function (provided) { return (__assign(__assign({}, provided), { background: isDarkTheme(theme) ? colors.lightBlackColor : colors.whiteBackgroundColor, padding: '0 0 0 16px', cursor: 'pointer', '&:hover': {
63
- background: isDarkTheme(theme) ? colors.lightBlackBackgroundColor : colors.darkGrayBackgroundColor,
63
+ option: function (provided) { return (__assign(__assign({}, provided), { background: isDarkTheme(theme) ? colors.lighterBlackBackgroundColor : colors.whiteBackgroundColor, padding: '0 0 0 16px', cursor: 'pointer', '&:hover': {
64
+ background: isDarkTheme(theme) ? colors.lightBlackColor : colors.darkGrayBackgroundColor,
64
65
  '.smartapp-option__container': {
65
- borderBottomColor: 'transparent',
66
+ borderBottomColor: colors.transparent,
66
67
  },
67
68
  } })); },
68
69
  });