@expressms/smartapp-ui 2.9.19-alpha.1 → 3.0.0-alpha.10
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/build/main/assets/icons/arrow-down.svg +2 -2
- package/build/main/assets/icons/arrow-up.svg +2 -2
- package/build/main/assets/icons/attachment-loader.svg +2 -2
- package/build/main/assets/icons/avatar-arrow-down.svg +3 -0
- package/build/main/assets/icons/avatar-arrow-up.svg +3 -0
- package/build/main/assets/icons/{loader-medium.svg → avatar-loader.svg} +1 -1
- package/build/main/assets/icons/button-loader.svg +2 -2
- package/build/main/assets/icons/check-mark-square.svg +4 -0
- package/build/main/assets/icons/check-mark.svg +3 -3
- package/build/main/assets/icons/chip-info.svg +3 -1
- package/build/main/assets/icons/clear.svg +2 -2
- package/build/main/assets/icons/close-modal.svg +3 -0
- package/build/main/assets/icons/close.svg +2 -9
- package/build/main/assets/icons/contact-info.svg +3 -10
- package/build/main/assets/icons/corporate-user.svg +2 -9
- package/build/main/assets/icons/delete-chip.svg +2 -2
- package/build/main/assets/icons/doc-small.svg +11 -0
- package/build/main/assets/icons/doc.svg +11 -0
- package/build/main/assets/icons/eye-off.svg +4 -9
- package/build/main/assets/icons/eye-on.svg +4 -0
- package/build/main/assets/icons/file-small.svg +11 -0
- package/build/main/assets/icons/file.svg +10 -2
- package/build/main/assets/icons/global-address-book-user.svg +3 -9
- package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
- package/build/main/assets/icons/input-arrow-down.svg +3 -0
- package/build/main/assets/icons/input-arrow-up.svg +3 -0
- package/build/main/assets/icons/magnifying-glass.svg +2 -2
- package/build/main/assets/icons/notification-close.svg +1 -1
- package/build/main/assets/icons/notification-failure.svg +2 -2
- package/build/main/assets/icons/notification-info.svg +4 -4
- package/build/main/assets/icons/notification-success.svg +3 -3
- package/build/main/assets/icons/pdf-small.svg +11 -0
- package/build/main/assets/icons/pdf.svg +11 -0
- package/build/main/assets/icons/play-small.svg +3 -0
- package/build/main/assets/icons/play.svg +3 -0
- package/build/main/assets/icons/ppt-small.svg +11 -0
- package/build/main/assets/icons/ppt.svg +11 -0
- package/build/main/assets/icons/txt-small.svg +11 -0
- package/build/main/assets/icons/txt.svg +11 -0
- package/build/main/assets/icons/warning-avatar.svg +1 -1
- package/build/main/assets/icons/xls-small.svg +11 -0
- package/build/main/assets/icons/xls.svg +11 -0
- package/build/main/assets/storybook/index.d.ts +3 -1
- package/build/main/assets/storybook/index.js +3 -1
- package/build/main/assets/storybook/index.js.map +1 -1
- package/build/main/constants/constants.d.ts +44 -26
- package/build/main/constants/constants.js +43 -26
- package/build/main/constants/constants.js.map +1 -1
- package/build/main/constants/types.d.ts +26 -0
- package/build/main/helpers/index.d.ts +13 -7
- package/build/main/helpers/index.js +72 -13
- package/build/main/helpers/index.js.map +1 -1
- package/build/main/hooks/useModal.d.ts +2 -1
- package/build/main/hooks/useModal.js +5 -8
- package/build/main/hooks/useModal.js.map +1 -1
- package/build/main/styles/styles.scss +2 -2
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +1 -1
- package/build/main//321/201omponents/ActionModal/ActionModal.js +13 -15
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -1
- package/build/main//321/201omponents/ActionModal/types.d.ts +2 -3
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +1 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +116 -33
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -1
- package/build/main//321/201omponents/AttachedFile/types.d.ts +7 -10
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +1 -1
- package/build/main//321/201omponents/Avatar/Avatar.js +24 -25
- package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -1
- package/build/main//321/201omponents/Avatar/types.d.ts +4 -4
- package/build/main//321/201omponents/Button/Button.d.ts +1 -1
- package/build/main//321/201omponents/Button/Button.js +13 -19
- package/build/main//321/201omponents/Button/Button.js.map +1 -1
- package/build/main//321/201omponents/Button/types.d.ts +7 -11
- package/build/main//321/201omponents/Button/types.js +1 -0
- package/build/main//321/201omponents/Button/types.js.map +1 -1
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +1 -1
- package/build/main//321/201omponents/Calendar/Calendar.js +13 -12
- package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -1
- package/build/main//321/201omponents/Calendar/types.d.ts +2 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +1 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +8 -7
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +1 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +8 -7
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +1 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +9 -8
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -1
- package/build/main//321/201omponents/Charts/constants.d.ts +0 -4
- package/build/main//321/201omponents/Charts/constants.js +1 -2
- package/build/main//321/201omponents/Charts/constants.js.map +1 -1
- package/build/main//321/201omponents/Charts/helpers.d.ts +2 -2
- package/build/main//321/201omponents/Charts/helpers.js +1 -1
- package/build/main//321/201omponents/Charts/helpers.js.map +1 -1
- package/build/main//321/201omponents/Charts/types.d.ts +3 -2
- package/build/main//321/201omponents/Charts/usePieEvents.js +1 -1
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +5 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.js +24 -14
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -1
- package/build/main//321/201omponents/Checkbox/types.d.ts +2 -0
- package/build/main//321/201omponents/Chip/Chip.d.ts +1 -1
- package/build/main//321/201omponents/Chip/Chip.js +69 -25
- package/build/main//321/201omponents/Chip/Chip.js.map +1 -1
- package/build/main//321/201omponents/Chip/types.d.ts +5 -2
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +19 -26
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -1
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +2 -2
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +1 -1
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +3 -3
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -1
- package/build/main//321/201omponents/ContextMenu/types.d.ts +2 -2
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +1 -1
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +26 -21
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +2 -2
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +22 -19
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +5 -4
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -1
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +3 -3
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +1 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +6 -7
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -1
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +6 -5
- package/build/main//321/201omponents/Error/Error.d.ts +1 -1
- package/build/main//321/201omponents/Error/Error.js +3 -3
- package/build/main//321/201omponents/Error/Error.js.map +1 -1
- package/build/main//321/201omponents/Error/types.d.ts +2 -2
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +1 -1
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -1
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +1 -1
- package/build/main//321/201omponents/Header/Header.d.ts +1 -1
- package/build/main//321/201omponents/Header/Header.js +4 -4
- package/build/main//321/201omponents/Header/Header.js.map +1 -1
- package/build/main//321/201omponents/Header/types.d.ts +2 -2
- package/build/main//321/201omponents/Input/Input.d.ts +1 -1
- package/build/main//321/201omponents/Input/Input.js +68 -92
- package/build/main//321/201omponents/Input/Input.js.map +1 -1
- package/build/main//321/201omponents/Input/types.d.ts +6 -8
- package/build/main//321/201omponents/ListItem/ListItem.js +4 -4
- package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -1
- package/build/main//321/201omponents/ListItem/types.d.ts +2 -2
- package/build/main//321/201omponents/Loader/Loader.d.ts +1 -1
- package/build/main//321/201omponents/Loader/Loader.js +3 -3
- package/build/main//321/201omponents/Loader/Loader.js.map +1 -1
- package/build/main//321/201omponents/Loader/types.d.ts +2 -2
- package/build/main//321/201omponents/Modal/Modal.d.ts +1 -1
- package/build/main//321/201omponents/Modal/Modal.js +110 -43
- package/build/main//321/201omponents/Modal/Modal.js.map +1 -1
- package/build/main//321/201omponents/Modal/types.d.ts +6 -7
- package/build/main//321/201omponents/Notification/Notification.d.ts +1 -1
- package/build/main//321/201omponents/Notification/Notification.js +42 -76
- package/build/main//321/201omponents/Notification/Notification.js.map +1 -1
- package/build/main//321/201omponents/Notification/types.d.ts +3 -4
- package/build/main//321/201omponents/Profile/Profile.js +2 -2
- package/build/main//321/201omponents/Profile/Profile.js.map +1 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +3 -3
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -1
- package/build/main//321/201omponents/ProgressBar/types.d.ts +2 -2
- package/build/main//321/201omponents/RadioButton/RadioButton.js +9 -13
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -1
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +2 -2
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -1
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -1
- package/build/main//321/201omponents/Skeleton/types.d.ts +2 -2
- package/build/main//321/201omponents/Stories/Stories.js +15 -15
- package/build/main//321/201omponents/Stories/Stories.js.map +1 -1
- package/build/main//321/201omponents/Stories/types.d.ts +2 -3
- package/build/main//321/201omponents/Switcher/Switcher.js +1 -1
- package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -1
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +4 -4
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -1
- package/build/main//321/201omponents/SyncLoader/types.d.ts +2 -3
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +1 -1
- package/build/main//321/201omponents/Textarea/Textarea.js +13 -50
- package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +6 -5
- package/build/main//321/201omponents/Toggle/Toggle.js +11 -14
- package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +5 -6
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +5 -7
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +20 -14
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +6 -10
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +2 -2
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +41 -55
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/helpers.js +1 -4
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +22 -37
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +12 -6
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
- package/package.json +1 -1
- package/build/main/assets/icons/cancel-cross.svg +0 -3
- package/build/main/assets/icons/download.svg +0 -4
- package/build/main/assets/icons/eye.svg +0 -10
- package/build/main/assets/icons/notification-error.svg +0 -3
- package/build/main/assets/icons/notification-warning.svg +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,IAAI,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,IAAI,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC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A/B,CAA+B,CAAC;SAC/E,GAAG,CAAC,UAAC,EAAW;YAAT,OAAO,aAAA;QAAO,OAAA,OAAO;IAAP,CAAO,CAAC,CAAA;AAClC,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TSelectStyles } from './types';
|
|
2
|
-
declare const _default: ({ isChipsVisible, isMaxMembersAdded, isDisabled, isError, lastRowNumber, paddingLeft,
|
|
2
|
+
declare const _default: ({ isChipsVisible, isMaxMembersAdded, isDisabled, isError, lastRowNumber, paddingLeft, platform, layoutType, isInputHidden, isDisabledMenuOffsetAtFullscreen, isMaskRepresented, fontFamilyStyle: { fontFamily }, containerPadding, }: TSelectStyles) => {
|
|
3
3
|
control: (provided: any, { isFocused }: any) => any;
|
|
4
4
|
menu: (provided: any) => any;
|
|
5
5
|
menuList: (provided: any) => any;
|
|
@@ -9,73 +9,58 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { isFullScreen,
|
|
12
|
+
import { isFullScreen, isWebPlatform } from '../../helpers';
|
|
13
13
|
import { COLORS } from '../../constants';
|
|
14
14
|
// eslint-disable-next-line import/no-anonymous-default-export
|
|
15
15
|
export default (function (_a) {
|
|
16
|
-
var isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft,
|
|
16
|
+
var isChipsVisible = _a.isChipsVisible, isMaxMembersAdded = _a.isMaxMembersAdded, isDisabled = _a.isDisabled, isError = _a.isError, lastRowNumber = _a.lastRowNumber, paddingLeft = _a.paddingLeft, platform = _a.platform, layoutType = _a.layoutType, isInputHidden = _a.isInputHidden, isDisabledMenuOffsetAtFullscreen = _a.isDisabledMenuOffsetAtFullscreen, isMaskRepresented = _a.isMaskRepresented, fontFamily = _a.fontFamilyStyle.fontFamily, containerPadding = _a.containerPadding;
|
|
17
17
|
return ({
|
|
18
18
|
control: function (provided, _a) {
|
|
19
19
|
var isFocused = _a.isFocused;
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
return __assign(__assign({}, provided), { background: isDisabled ?
|
|
25
|
-
borderColor: isWebPlatform(platform) && (isError ?
|
|
20
|
+
var focusedBorderColor = 'var(--color-border-focused)';
|
|
21
|
+
var errorBorderColor = 'var(--color-border-error)';
|
|
22
|
+
var borderColor = isFocused ? focusedBorderColor : 'var(--color-border-primary)';
|
|
23
|
+
var hoverBorderColor = isFocused ? focusedBorderColor : 'var(--color-border-primary-hover)';
|
|
24
|
+
return __assign(__assign({}, provided), { background: isDisabled ? 'var(--color-bg-light-transparent)' : 'transparent', display: isInputHidden ? 'none' : 'block', borderRadius: '10px', borderColor: isError ? errorBorderColor : borderColor, boxShadow: 'none', cursor: 'text', transition: 'border-color 250ms ease-in-out, background 250ms ease-in-out', '&:hover': {
|
|
25
|
+
borderColor: isWebPlatform(platform) && (isError ? errorBorderColor : hoverBorderColor),
|
|
26
26
|
} });
|
|
27
27
|
},
|
|
28
|
-
menu: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen(layoutType) ? '384px' : '100%', left: isFullScreen(layoutType) && !isDisabledMenuOffsetAtFullscreen ? '55px' : 0, background: COLORS.transparent, borderRadius: '10px', boxShadow: "
|
|
28
|
+
menu: function (provided) { return (__assign(__assign({}, provided), { width: isFullScreen(layoutType) ? '384px' : '100%', left: isFullScreen(layoutType) && !isDisabledMenuOffsetAtFullscreen ? '55px' : 0, background: COLORS.transparent, borderRadius: '10px', boxShadow: "0px 2px 24px 0px ".concat(COLORS.selectBoxShadow), margin: '4px 0', zIndex: 2, '&:has(.smartapp-menu-list__char-hint)': {
|
|
29
29
|
width: '316px',
|
|
30
30
|
right: '0',
|
|
31
31
|
marginLeft: isFullScreen(layoutType) ? 0 : 'auto',
|
|
32
32
|
marginRight: isFullScreen(layoutType) ? 0 : 'auto',
|
|
33
|
-
}, '& > div:last-child > div:first-child > div:last-child > div:last-child > div:last-child > div:last-child': {
|
|
34
|
-
'.smartapp-option__container': {
|
|
35
|
-
borderBottom: 'none',
|
|
36
|
-
},
|
|
37
|
-
}, '[role=option]:has(+[role=option]:hover)': {
|
|
38
|
-
'.smartapp-option__container': {
|
|
39
|
-
borderBottomColor: isWebPlatform(platform) && COLORS.transparent,
|
|
40
|
-
},
|
|
41
33
|
} })); },
|
|
42
|
-
menuList: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '
|
|
34
|
+
menuList: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '220px', background: 'var(--color-bg-element-on-top)', borderRadius: '10px', padding: 0, '::-webkit-scrollbar-thumb': {
|
|
43
35
|
background: 'var(--color-scrollbar-thumb)',
|
|
44
36
|
}, '::-webkit-scrollbar-track': {
|
|
45
37
|
background: COLORS.transparent,
|
|
46
38
|
} })); },
|
|
47
39
|
valueContainer: function (provided, _a) {
|
|
48
40
|
var hasValue = _a.hasValue;
|
|
49
|
-
var
|
|
41
|
+
var valueContainerPadding = lastRowNumber === 1 ? "10.5px 12px 10.5px ".concat(paddingLeft) : "3px 4px 3px ".concat(isMaskRepresented ? paddingLeft : '4px');
|
|
42
|
+
var padding = containerPadding || valueContainerPadding;
|
|
50
43
|
return hasValue && isChipsVisible ? __assign(__assign({}, provided), { display: 'flex', gap: '8px', padding: padding }) : __assign(__assign({}, provided), { padding: padding });
|
|
51
44
|
},
|
|
52
|
-
placeholder: function (provided) { return (__assign(__assign({}, provided), { fontFamily:
|
|
53
|
-
input: function (provided) { return (__assign(__assign({}, provided), { display: isMaxMembersAdded || isDisabled ? 'none' : 'grid', fontSize: '14px', fontWeight: '400', lineHeight: '
|
|
54
|
-
multiValue: function (provided) { return (__assign(__assign({}, provided), { width: 'auto', background: 'unset', borderRadius: '
|
|
45
|
+
placeholder: function (provided) { return (__assign(__assign({}, provided), { fontFamily: fontFamily, fontSize: '14px', fontWeight: '400', lineHeight: '17px', color: 'var(--color-text-tertiary)', margin: 0 })); },
|
|
46
|
+
input: function (provided) { return (__assign(__assign({}, provided), { display: isMaxMembersAdded || isDisabled ? 'none' : 'grid', fontSize: '14px', fontWeight: '400', lineHeight: '17px', color: 'var(--color-text-primary)', caretColor: 'var(--color-icon-accent)', padding: 0, margin: 0, overflow: 'auto', gridTemplateColumns: 'max-content' })); },
|
|
47
|
+
multiValue: function (provided) { return (__assign(__assign({}, provided), { width: 'auto', background: 'unset', borderRadius: '1000px', margin: 0, '& > div:first-child': {
|
|
48
|
+
maxWidth: '100%',
|
|
49
|
+
}, '&:has(.multi-value-label-counter)': {
|
|
55
50
|
width: 'fit-content',
|
|
56
51
|
cursor: 'default',
|
|
57
|
-
},
|
|
58
|
-
// multiValue wraps the chip in another div that cannot be assigned a class
|
|
59
|
-
'&:has(.smartapp-chip) > div': {
|
|
60
|
-
maxWidth: '100%',
|
|
61
52
|
}, '&:empty': {
|
|
62
53
|
display: 'none',
|
|
63
54
|
} })); },
|
|
64
55
|
multiValueLabel: function (provided) { return (__assign(__assign({}, provided), { width: '100%', padding: '0 !important', '.smartapp-chip': {
|
|
65
56
|
maxWidth: '100%',
|
|
66
57
|
} })); },
|
|
67
|
-
noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '
|
|
68
|
-
loadingMessage: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '
|
|
69
|
-
option: function (provided) { return (__assign(__assign({}, provided), { height: '
|
|
70
|
-
background: isWebPlatform(platform) && 'var(--color-
|
|
71
|
-
'.smartapp-option__container::before': {
|
|
72
|
-
borderBottomColor: isWebPlatform(platform) && COLORS.transparent,
|
|
73
|
-
},
|
|
74
|
-
'.smartapp-option__container::after': {
|
|
75
|
-
borderBottomColor: isWebPlatform(platform) && 'var(--color-item)',
|
|
76
|
-
},
|
|
58
|
+
noOptionsMessage: function (provided) { return (__assign(__assign({}, provided), { fontSize: '14px', fontWeight: 400, color: 'var(--color-text-secondary)', background: 'var(--color-bg-element-on-top)', borderRadius: '10px', padding: '16px 12px' })); },
|
|
59
|
+
loadingMessage: function (provided) { return (__assign(__assign({}, provided), { maxHeight: '220px', borderRadius: '10px', padding: 0, overflow: 'hidden' })); },
|
|
60
|
+
option: function (provided) { return (__assign(__assign({}, provided), { height: '45px', background: 'var(--color-bg-element-on-top)', borderRadius: '10px', padding: '0', cursor: isWebPlatform(platform) && 'pointer', marginBottom: '2px', transition: 'background 250ms ease-in-out', '&:hover': {
|
|
61
|
+
background: isWebPlatform(platform) && 'var(--color-bg-element-on-top-hover)',
|
|
77
62
|
}, '&:active': {
|
|
78
|
-
background:
|
|
63
|
+
background: 'var(--color-bg-element-on-top-pressed)',
|
|
79
64
|
}, '&:focus-visible': {
|
|
80
65
|
outline: 'none',
|
|
81
66
|
} })); },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/selectStyles.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"selectStyles.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/selectStyles.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,8DAA8D;AAC9D,gBAAe,UAAC,EAcA;QAbd,cAAc,oBAAA,EACd,iBAAiB,uBAAA,EACjB,UAAU,gBAAA,EACV,OAAO,aAAA,EACP,aAAa,mBAAA,EACb,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,aAAa,mBAAA,EACb,gCAAgC,sCAAA,EAChC,iBAAiB,uBAAA,EACE,UAAU,gCAAA,EAC7B,gBAAgB,sBAAA;IACG,OAAA,CAAC;QACpB,OAAO,EAAE,UAAC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ACX,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,CAAC,EACV,QAAQ,EAAE,QAAQ,IAClB,EANiC,CAMjC;QAEF,MAAM,EAAE,UAAC,QAAa,IAAK,OAAA,uBACtB,QAAQ,KACX,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,gCAAgC,EAC5C,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,SAAS,EAC5C,YAAY,EAAE,KAAK,EACnB,UAAU,EAAE,8BAA8B,EAE1C,SAAS,EAAE;gBACT,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,sCAAsC;aAC9E,EAED,UAAU,EAAE;gBACV,UAAU,EAAE,wCAAwC;aACrD,EAED,iBAAiB,EAAE;gBACjB,OAAO,EAAE,MAAM;aAChB,IACD,EArByB,CAqBzB;KACH,CAAC;AA9JmB,CA8JnB,EAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactElement, RefObject } from 'react';
|
|
2
2
|
import { MenuListProps, OptionProps } from 'react-select';
|
|
3
|
-
import {
|
|
3
|
+
import { IFontFamilyProps, ILanguageProps, ILayoutTypeProps, IPlatformProps, TFontFamilyStyle, TStyles } from '../../constants';
|
|
4
4
|
import { CONTACT_TYPES } from './constants';
|
|
5
5
|
import { MenuItem } from '../ContextMenu/types';
|
|
6
6
|
export interface IContactBottomSheet extends ILanguageProps {
|
|
7
|
+
fontFamily?: string;
|
|
7
8
|
avatar: string | null;
|
|
8
9
|
name: string;
|
|
9
10
|
email: string;
|
|
@@ -48,6 +49,7 @@ type TData = ILanguageProps & {
|
|
|
48
49
|
companyPosition: string | null;
|
|
49
50
|
isMyContacts: boolean;
|
|
50
51
|
platform: 'web' | 'ios' | 'android';
|
|
52
|
+
fontFamily: string;
|
|
51
53
|
setIsSearchable: (isSearchable: boolean) => void;
|
|
52
54
|
setModalData: (modalData: TModalData | null) => void;
|
|
53
55
|
userType?: CONTACT_TYPES;
|
|
@@ -104,12 +106,13 @@ export type TSelectStyles = {
|
|
|
104
106
|
isError: boolean;
|
|
105
107
|
lastRowNumber: number;
|
|
106
108
|
paddingLeft: string;
|
|
107
|
-
fillType: string;
|
|
108
109
|
platform: string;
|
|
109
110
|
layoutType: string;
|
|
110
111
|
isInputHidden: boolean;
|
|
111
112
|
isDisabledMenuOffsetAtFullscreen: boolean;
|
|
112
|
-
|
|
113
|
+
isMaskRepresented: boolean;
|
|
114
|
+
fontFamilyStyle: TFontFamilyStyle;
|
|
115
|
+
containerPadding?: string;
|
|
113
116
|
};
|
|
114
117
|
export type TGenerateNoOptionsMessage = {
|
|
115
118
|
inputValue: string;
|
|
@@ -147,6 +150,7 @@ export type TMyContactsEntries = {
|
|
|
147
150
|
isBusyAtSelectedTime?: boolean;
|
|
148
151
|
isPrivateSchedule?: boolean;
|
|
149
152
|
isNotRemovable?: boolean;
|
|
153
|
+
isOrganizer?: boolean;
|
|
150
154
|
name: string | null;
|
|
151
155
|
email: string;
|
|
152
156
|
avatar: string | null;
|
|
@@ -166,6 +170,7 @@ export type TCorporateEntity = {
|
|
|
166
170
|
isBusyAtSelectedTime?: boolean;
|
|
167
171
|
isPrivateSchedule?: boolean;
|
|
168
172
|
isNotRemovable?: boolean;
|
|
173
|
+
isOrganizer?: boolean;
|
|
169
174
|
avatar: string | null;
|
|
170
175
|
uid?: string;
|
|
171
176
|
isResetChipsToInputValue?: boolean;
|
|
@@ -193,14 +198,16 @@ export type TUser = TCorporateEntity | TMyContactsEntries | {
|
|
|
193
198
|
isResetChipsToInputValue?: boolean;
|
|
194
199
|
isPrivateSchedule?: boolean;
|
|
195
200
|
isNotRemovable?: boolean;
|
|
201
|
+
isOrganizer?: boolean;
|
|
196
202
|
isWarning?: boolean;
|
|
197
203
|
isLoading?: boolean;
|
|
198
204
|
userType?: CONTACT_TYPES;
|
|
199
205
|
contextMenuItems?: MenuItem[];
|
|
200
206
|
};
|
|
201
|
-
export interface IUserDropdownProps extends
|
|
207
|
+
export interface IUserDropdownProps extends IPlatformProps, ILayoutTypeProps, IFontFamilyProps, ILanguageProps {
|
|
202
208
|
isDisabled?: boolean;
|
|
203
209
|
isLoading?: boolean;
|
|
210
|
+
isChipsOutline?: boolean;
|
|
204
211
|
isChipsVisible?: boolean;
|
|
205
212
|
isChipsCollapsable?: boolean;
|
|
206
213
|
isSelectedChipHasTooltip?: boolean;
|
|
@@ -210,7 +217,6 @@ export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps, ILan
|
|
|
210
217
|
isBackspaceChipToInput?: boolean;
|
|
211
218
|
isInputHidden?: boolean;
|
|
212
219
|
isDisabledMenuOffsetAtFullscreen?: boolean;
|
|
213
|
-
isDisabledCheckUniqueEmails?: boolean;
|
|
214
220
|
hasNextPage?: boolean;
|
|
215
221
|
isNextPageLoading?: boolean;
|
|
216
222
|
title?: string;
|
|
@@ -219,11 +225,11 @@ export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps, ILan
|
|
|
219
225
|
hint?: ReactElement | string;
|
|
220
226
|
noOptionsMessage?: string;
|
|
221
227
|
maxMembersCount?: number;
|
|
222
|
-
fillType?: 'primary' | 'secondary';
|
|
223
228
|
menuPosition?: 'bottom' | 'auto' | 'top';
|
|
224
229
|
autoFocus?: boolean;
|
|
225
230
|
externalInputValue?: string;
|
|
226
231
|
containerClassName?: string;
|
|
232
|
+
containerPadding?: string;
|
|
227
233
|
containerStyles?: TStyles;
|
|
228
234
|
selectedEntries?: TUser[];
|
|
229
235
|
corporateEntries: TCorporateEntries | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AAkRA,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,iBAAiB,EAAE,CAAC;IACpB,cAAc,EAAE,CAAC;IACjB,2BAA2B,EAAE,CAAC;IAC9B,yBAAyB,EAAE,CAAC;IAC5B,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC;CACH,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.3137 10.5858L16.5563 6.34315C16.9469 5.95262 17.58 5.95262 17.9706 6.34315C18.3611 6.73367 18.3611 7.36684 17.9706 7.75736L13.7279 12L17.9706 16.2426C18.3611 16.6332 18.3611 17.2663 17.9706 17.6569C17.58 18.0474 16.9469 18.0474 16.5563 17.6569L12.3137 13.4142L8.07107 17.6569C7.68054 18.0474 7.04738 18.0474 6.65685 17.6569C6.26633 17.2663 6.26633 16.6332 6.65685 16.2426L10.8995 12L6.65685 7.75736C6.26633 7.36684 6.26633 6.73367 6.65685 6.34315C7.04738 5.95262 7.68054 5.95262 8.07107 6.34315L12.3137 10.5858Z" fill="currentColor"/>
|
|
3
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M4.5 19L4.5 19.5L5 19.5L19 19.5L19.5 19.5L19.5 19L19.5 13C19.5 12.7261 19.7261 12.5 20 12.5C20.2739 12.5 20.5 12.7261 20.5 13L20.5 19C20.5 19.8239 19.8239 20.5 19 20.5L5 20.5C4.17614 20.5 3.5 19.8239 3.5 19L3.5 13C3.5 12.7261 3.72614 12.5 4 12.5C4.27386 12.5 4.5 12.7261 4.5 13L4.5 19Z" fill="currentColor" stroke="currentColor"/>
|
|
3
|
-
<path d="M12.35 14.8587L15.14 12.0687C15.46 11.7487 15.24 11.2087 14.79 11.2087L13 11.2087L13 4.20873C13 3.65873 12.55 3.20873 12 3.20873C11.45 3.20873 11 3.65873 11 4.20873L11 11.2087L9.20997 11.2087C8.75997 11.2087 8.53997 11.7487 8.85997 12.0587L11.65 14.8487C11.84 15.0487 12.16 15.0487 12.35 14.8587Z" fill="currentColor"/>
|
|
4
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_6152_8870)">
|
|
3
|
-
<path d="M15.7926 7.43915C15.6521 7.27344 12.2935 3.38635 8.0001 3.38635C3.70652 3.38635 0.348111 7.27344 0.20725 7.43932C-0.0691104 7.76426 -0.0691104 8.23574 0.207413 8.56101C0.348111 8.72673 3.70652 12.6136 8.0001 12.6136C12.2935 12.6136 15.6521 8.7264 15.7928 8.56068C16.0691 8.23574 16.0691 7.76426 15.7926 7.43915ZM9.31155 5.72136C9.60026 5.56377 10.0029 5.7446 10.2107 6.1251C10.4185 6.50577 10.3528 6.94216 10.0641 7.09976C9.77556 7.25751 9.3728 7.07652 9.16484 6.69602C8.95721 6.31535 9.02268 5.87896 9.31155 5.72136ZM8.0001 11.2054C5.00091 11.2054 2.47695 8.90203 1.60335 8C2.19328 7.39074 3.53641 6.14314 5.2698 5.39708C4.9317 5.91145 4.73349 6.52608 4.73349 7.18765C4.73349 8.99171 6.19587 10.4541 7.99994 10.4541C9.804 10.4541 11.2665 8.99171 11.2665 7.18765C11.2665 6.52608 11.0685 5.91145 10.7304 5.39708C12.4638 6.1433 13.8068 7.39074 14.3967 8C13.5231 8.90252 10.9991 11.2054 8.0001 11.2054Z" fill="currentColor"/>
|
|
4
|
-
</g>
|
|
5
|
-
<defs>
|
|
6
|
-
<clipPath id="clip0_6152_8870">
|
|
7
|
-
<rect width="16" height="16" fill="white"/>
|
|
8
|
-
</clipPath>
|
|
9
|
-
</defs>
|
|
10
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M11.5314 5.99017L19.0614 19.0002L4.00137 19.0002L11.5314 5.99017ZM2.27137 18.0002C1.50137 19.3302 2.46137 21.0002 4.00137 21.0002L19.0614 21.0002C20.6014 21.0002 21.5614 19.3302 20.7914 18.0002L13.2614 4.99017C12.4914 3.66017 10.5714 3.66017 9.80137 4.99017L2.27137 18.0002ZM10.5314 11.0002L10.5314 13.0002C10.5314 13.5502 10.9814 14.0002 11.5314 14.0002C12.0814 14.0002 12.5314 13.5502 12.5314 13.0002L12.5314 11.0002C12.5314 10.4502 12.0814 10.0002 11.5314 10.0002C10.9814 10.0002 10.5314 10.4502 10.5314 11.0002ZM10.5314 16.0002L12.5314 16.0002L12.5314 18.0002L10.5314 18.0002L10.5314 16.0002Z" fill="currentColor"/>
|
|
3
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g id="icon/info">
|
|
3
|
-
<path id="Vector" d="M11.9951 17C12.5451 17 12.9951 16.55 12.9951 16V12C12.9951 11.45 12.5451 11 11.9951 11C11.4451 11 10.9951 11.45 10.9951 12V16C10.9951 16.55 11.4451 17 11.9951 17ZM11.9851 22.0001C6.46512 22.0001 1.99512 17.52 1.99512 12C1.99512 6.48 6.46512 2 11.9851 2C17.515 2 21.9951 6.48 21.9951 12C21.9951 17.52 17.515 22.0001 11.9851 22.0001ZM11.9951 4.00001C7.57512 4.00001 3.99513 7.58 3.99513 12C3.99513 16.42 7.57512 20 11.9951 20C16.4151 20 19.9951 16.42 19.9951 12C19.9951 7.58 16.4151 4.00001 11.9951 4.00001ZM12.9951 7.00001H10.9951V9H12.9951V7.00001Z" fill="currentColor"/>
|
|
4
|
-
</g>
|
|
5
|
-
</svg>
|