@expressms/smartapp-ui 3.0.0-alpha.21 → 3.0.0-alpha.210
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/accepted-invite-status.svg +4 -0
- package/build/main/assets/icons/chevron.svg +3 -0
- package/build/main/assets/icons/close-modal.svg +1 -1
- package/build/main/assets/icons/copy.svg +3 -0
- package/build/main/assets/icons/declined-invite-status.svg +4 -0
- package/build/main/assets/icons/department.svg +3 -0
- package/build/main/assets/icons/doc-small.svg +5 -5
- package/build/main/assets/icons/download.svg +3 -0
- package/build/main/assets/icons/file-small.svg +5 -5
- package/build/main/assets/icons/file.svg +1 -1
- package/build/main/assets/icons/image-no-preview-small.svg +11 -0
- package/build/main/assets/icons/image-no-preview.svg +11 -0
- package/build/main/assets/icons/job-position.svg +3 -0
- package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
- package/build/main/assets/icons/notification-close.svg +1 -1
- package/build/main/assets/icons/notification-error.svg +5 -0
- package/build/main/assets/icons/notification-failure-filled.svg +3 -0
- package/build/main/assets/icons/notification-info-filled.svg +5 -0
- package/build/main/assets/icons/notification-success-filled.svg +4 -0
- package/build/main/assets/icons/office.svg +3 -0
- package/build/main/assets/icons/pdf-small.svg +5 -5
- package/build/main/assets/icons/ppt-small.svg +5 -5
- package/build/main/assets/icons/private.svg +4 -11
- package/build/main/assets/icons/search.svg +1 -1
- package/build/main/assets/icons/select-arrow-down.svg +3 -0
- package/build/main/assets/icons/select-arrow-up.svg +3 -0
- package/build/main/assets/icons/server.svg +3 -0
- package/build/main/assets/icons/txt-small.svg +5 -5
- package/build/main/assets/icons/video-no-preview-small.svg +11 -0
- package/build/main/assets/icons/video-no-preview.svg +11 -0
- package/build/main/assets/icons/xls-small.svg +5 -5
- package/build/main/assets/storybook/index.d.ts +3 -0
- package/build/main/assets/storybook/index.js +3 -0
- package/build/main/assets/storybook/index.js.map +1 -1
- package/build/main/constants/constants.d.ts +92 -47
- package/build/main/constants/constants.js +132 -49
- package/build/main/constants/constants.js.map +1 -1
- package/build/main/constants/types.d.ts +13 -2
- package/build/main/helpers/index.d.ts +7 -5
- package/build/main/helpers/index.js +28 -7
- package/build/main/helpers/index.js.map +1 -1
- package/build/main/hooks/useCharHintDisplay.d.ts +9 -0
- package/build/main/hooks/useCharHintDisplay.js +35 -0
- package/build/main/hooks/useCharHintDisplay.js.map +1 -0
- package/build/main/hooks/useMobileLongTap.d.ts +16 -0
- package/build/main/hooks/useMobileLongTap.js +65 -0
- package/build/main/hooks/useMobileLongTap.js.map +1 -0
- package/build/main/hooks/useModal.d.ts +18 -10
- package/build/main/hooks/useModal.js +226 -13
- package/build/main/hooks/useModal.js.map +1 -1
- package/build/main/index.d.ts +2 -0
- package/build/main/index.js +2 -0
- package/build/main/index.js.map +1 -1
- package/build/main/styles/main.js +0 -6
- package/build/main/styles/styles.scss +2 -2
- package/build/main//321/201omponents/ActionModal/ActionModal.js +1 -1
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +1 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +81 -26
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -1
- package/build/main//321/201omponents/AttachedFile/types.d.ts +1 -0
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +3 -2
- package/build/main//321/201omponents/Avatar/Avatar.js +55 -27
- package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -1
- package/build/main//321/201omponents/Avatar/types.d.ts +9 -5
- package/build/main//321/201omponents/Avatar/types.js +5 -2
- package/build/main//321/201omponents/Avatar/types.js.map +1 -1
- package/build/main//321/201omponents/Button/Button.d.ts +1 -1
- package/build/main//321/201omponents/Button/Button.js +16 -10
- package/build/main//321/201omponents/Button/Button.js.map +1 -1
- package/build/main//321/201omponents/Button/types.d.ts +9 -2
- package/build/main//321/201omponents/Button/types.js +3 -0
- package/build/main//321/201omponents/Button/types.js.map +1 -1
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +14 -2
- package/build/main//321/201omponents/Calendar/Calendar.js +201 -52
- package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -1
- package/build/main//321/201omponents/Calendar/types.d.ts +16 -3
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +1 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +1 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +1 -1
- package/build/main//321/201omponents/Chip/Chip.d.ts +3 -2
- package/build/main//321/201omponents/Chip/Chip.js +211 -47
- package/build/main//321/201omponents/Chip/Chip.js.map +1 -1
- package/build/main//321/201omponents/Chip/types.d.ts +15 -4
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
- package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
- package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
- package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +3 -2
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -1
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +5 -2
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +1 -1
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +68 -27
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -1
- package/build/main//321/201omponents/ContextMenu/types.d.ts +14 -7
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
- package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
- package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
- package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
- package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +1 -1
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +55 -22
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +1 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +33 -26
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +21 -4
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +1 -1
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +33 -24
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -1
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +41 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +6 -5
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +2 -2
- 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 +24 -18
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -1
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +8 -8
- package/build/main//321/201omponents/Flex/Flex.d.ts +1 -1
- package/build/main//321/201omponents/Flex/Flex.js +2 -2
- package/build/main//321/201omponents/Flex/Flex.js.map +1 -1
- package/build/main//321/201omponents/Flex/types.d.ts +2 -0
- package/build/main//321/201omponents/Input/Input.d.ts +1 -1
- package/build/main//321/201omponents/Input/Input.js +92 -31
- package/build/main//321/201omponents/Input/Input.js.map +1 -1
- package/build/main//321/201omponents/Input/types.d.ts +13 -3
- package/build/main//321/201omponents/ListItem/ListItem.js +21 -10
- package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -1
- package/build/main//321/201omponents/ListItem/types.d.ts +8 -2
- package/build/main//321/201omponents/Modal/Modal.d.ts +3 -2
- package/build/main//321/201omponents/Modal/Modal.js +219 -81
- package/build/main//321/201omponents/Modal/Modal.js.map +1 -1
- package/build/main//321/201omponents/Modal/types.d.ts +38 -2
- package/build/main//321/201omponents/Notification/Notification.d.ts +4 -6
- package/build/main//321/201omponents/Notification/Notification.js +88 -30
- package/build/main//321/201omponents/Notification/Notification.js.map +1 -1
- package/build/main//321/201omponents/Notification/types.d.ts +23 -5
- 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 +1 -1
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -1
- package/build/main//321/201omponents/Stories/Stories.js +76 -8
- package/build/main//321/201omponents/Stories/Stories.js.map +1 -1
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +1 -1
- package/build/main//321/201omponents/Textarea/Textarea.js +2 -2
- package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +2 -2
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +12 -3
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +23 -13
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +2 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +4 -3
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +37 -60
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -2
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +34 -38
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +18 -13
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +6 -9
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +3 -3
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +245 -266
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/constants.d.ts +57 -0
- package/build/main//321/201omponents/UserDropdown/constants.js +73 -0
- package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +84 -41
- package/build/main//321/201omponents/UserDropdown/helpers.js +184 -14
- 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 +58 -27
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +146 -62
- package/build/main//321/201omponents/UserDropdown/types.js +1 -8
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
- package/package.json +13 -8
- package/build/main/assets/icons/avatar-arrow-down.svg +0 -3
- package/build/main/assets/icons/avatar-arrow-up.svg +0 -3
- package/build/main/hooks/useLongTap.d.ts +0 -12
- package/build/main/hooks/useLongTap.js +0 -29
- package/build/main/hooks/useLongTap.js.map +0 -1
|
@@ -1,48 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
inactiveAvatarGradientStart
|
|
21
|
-
inactiveAvatarGradientEnd
|
|
22
|
-
bgBlackoutTransparent
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
import { TTextWithLocale } from './types';
|
|
2
|
+
export declare const COLORS: {
|
|
3
|
+
readonly lighterBlue: "#4799E30D";
|
|
4
|
+
readonly lightBlue: "#5AA0E0";
|
|
5
|
+
readonly blue: "#4799E3";
|
|
6
|
+
readonly darkBlue: "#408ACD";
|
|
7
|
+
readonly darkerBlue: "#3C82C1";
|
|
8
|
+
readonly darkestBlue: "#000276";
|
|
9
|
+
readonly purple: "#9370db";
|
|
10
|
+
readonly white: "#FFFFFF";
|
|
11
|
+
readonly white3: "#FFFFFF03";
|
|
12
|
+
readonly lightestGray: "#FCFCFC";
|
|
13
|
+
readonly lighterGray: "#E0E4EC66";
|
|
14
|
+
readonly gray: "#1111114D";
|
|
15
|
+
readonly darkerGray: "#808080";
|
|
16
|
+
readonly brightBlack: "#3D3D3D";
|
|
17
|
+
readonly black: "#111111";
|
|
18
|
+
readonly darkBlack: "#1A1A1A";
|
|
19
|
+
readonly skeletonBg: "#F1F1F2";
|
|
20
|
+
readonly inactiveAvatarGradientStart: "#C2C2C2";
|
|
21
|
+
readonly inactiveAvatarGradientEnd: "#6F6F6F";
|
|
22
|
+
readonly bgBlackoutTransparent: "rgba(0, 0, 0, 0.3)";
|
|
23
|
+
readonly transparent: "transparent";
|
|
24
|
+
readonly textPrimary: "var(--color-text-primary)";
|
|
25
|
+
readonly textSecondary: "var(--color-text-secondary)";
|
|
26
|
+
readonly textTertiary: "var(--color-text-tertiary)";
|
|
27
|
+
readonly borderPrimary: "var(--color-border-primary)";
|
|
28
|
+
readonly borderPrimaryHover: "var(--color-border-primary-hover)";
|
|
29
|
+
readonly borderFocused: "var(--color-border-focused)";
|
|
30
|
+
readonly borderError: "var(--color-border-error)";
|
|
31
|
+
readonly iconAccent: "var(--color-icon-accent)";
|
|
32
|
+
readonly iconContrast: "var(--color-icon-contrast)";
|
|
33
|
+
readonly iconPrimary: "var(--color-icon-primary)";
|
|
34
|
+
readonly iconSecondary: "var(--color-icon-secondary)";
|
|
35
|
+
readonly iconNegative: "var(--color-icon-negative)";
|
|
36
|
+
readonly iconTransparentPressed: "var(--color-icon-transparent-pressed)";
|
|
37
|
+
readonly bgAccent: "var(--color-bg-accent)";
|
|
38
|
+
readonly bgAccentHover: "var(--color-bg-accent-hover)";
|
|
39
|
+
readonly bgAccentPressed: "var(--color-bg-accent-pressed)";
|
|
40
|
+
readonly bgPopUp: "var(--color-bg-pop-up)";
|
|
41
|
+
readonly bgElementOnTop: "var(--color-bg-element-on-top)";
|
|
42
|
+
readonly bgElementOnTopHover: "var(--color-bg-element-on-top-hover)";
|
|
43
|
+
readonly bgElementOnTopPressed: "var(--color-bg-element-on-top-pressed)";
|
|
44
|
+
readonly bgPrimary: "var(--color-bg-primary)";
|
|
45
|
+
readonly bgPrimarySelected: "var(--color-bg-primary-selected)";
|
|
46
|
+
readonly bgLightTransparent: "var(--color-bg-light-transparent)";
|
|
47
|
+
readonly colorBgBlackoutTransparent: "var(--color-bg-blackout-transparent)";
|
|
48
|
+
readonly chip: "var(--color-chip)";
|
|
49
|
+
readonly buttonPrimary: "var(--color-button-primary)";
|
|
50
|
+
readonly buttonPrimaryHover: "var(--color-button-primary-hover)";
|
|
51
|
+
readonly buttonPrimaryPressed: "var(--color-button-primary-pressed)";
|
|
52
|
+
readonly scrollbarThumb: "var(--color-scrollbar-thumb)";
|
|
53
|
+
readonly mShadowClick: "var(--m-shadow-click)";
|
|
54
|
+
};
|
|
41
55
|
export declare const INPUT_TYPE_PASSWORD = "password";
|
|
42
56
|
export declare const INPUT_TYPE_TEXT = "text";
|
|
43
57
|
export declare const INPUT_TYPE_NUMBER = "number";
|
|
44
58
|
export declare const DEFAULT_INPUT_PADDING = 12;
|
|
45
|
-
export declare const
|
|
59
|
+
export declare const AFFIX_INPUT_PH = 20;
|
|
46
60
|
export declare const ADDITIONAL_INPUT_PR = 18;
|
|
47
61
|
export declare const ENTER_KEY = "Enter";
|
|
48
62
|
export declare const BACKSPACE_KEY = "Backspace";
|
|
@@ -65,7 +79,8 @@ export declare enum TITLE_SIZE {
|
|
|
65
79
|
export declare enum PLATFORM {
|
|
66
80
|
web = "web",
|
|
67
81
|
ios = "ios",
|
|
68
|
-
android = "android"
|
|
82
|
+
android = "android",
|
|
83
|
+
aurora = "aurora"
|
|
69
84
|
}
|
|
70
85
|
export declare enum THEME {
|
|
71
86
|
default = "default",
|
|
@@ -76,7 +91,8 @@ export declare enum FONT_FAMILY {
|
|
|
76
91
|
caveat = "Caveat",
|
|
77
92
|
oswald = "Oswald",
|
|
78
93
|
roboto = "Roboto",
|
|
79
|
-
onest = "Onest"
|
|
94
|
+
onest = "Onest",
|
|
95
|
+
inter = "Inter"
|
|
80
96
|
}
|
|
81
97
|
export declare const CANCEL_ACTION_TEXT = "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C";
|
|
82
98
|
export declare const NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
|
|
@@ -134,7 +150,8 @@ export declare enum LANGUAGES {
|
|
|
134
150
|
ms = "ms",
|
|
135
151
|
tr = "tr",
|
|
136
152
|
id = "id",
|
|
137
|
-
uz = "uz"
|
|
153
|
+
uz = "uz",
|
|
154
|
+
kk = "kk"
|
|
138
155
|
}
|
|
139
156
|
export declare enum HEADER_COLOR_BG {
|
|
140
157
|
grey = "grey",
|
|
@@ -165,7 +182,11 @@ export declare enum EVENT_LISTENER_TYPES {
|
|
|
165
182
|
touchcancel = "touchcancel",
|
|
166
183
|
blur = "blur",
|
|
167
184
|
visibilityChange = "visibilitychange",
|
|
168
|
-
resize = "resize"
|
|
185
|
+
resize = "resize",
|
|
186
|
+
focus = "focus",
|
|
187
|
+
scroll = "scroll",
|
|
188
|
+
focusIn = "focusin",
|
|
189
|
+
focusOut = "focusout"
|
|
169
190
|
}
|
|
170
191
|
export declare enum POPUP_ON_EVENT_TYPE {
|
|
171
192
|
hover = "hover"
|
|
@@ -189,9 +210,33 @@ export declare enum FILE_FORMATS {
|
|
|
189
210
|
mov = "mov",
|
|
190
211
|
mp4 = "mp4",
|
|
191
212
|
webm = "webm",
|
|
192
|
-
wmv = "wmv"
|
|
213
|
+
wmv = "wmv",
|
|
214
|
+
jpeg = "jpeg",
|
|
215
|
+
jpg = "jpg",
|
|
216
|
+
png = "png"
|
|
193
217
|
}
|
|
194
218
|
export declare const VIDEO_FORMATS: string[];
|
|
195
|
-
export declare const MODAL_ICONS_PADDING_LEFT =
|
|
219
|
+
export declare const MODAL_ICONS_PADDING_LEFT = 16;
|
|
196
220
|
export declare const DRAGGABLE_KEY = "handle";
|
|
197
221
|
export declare const BUTTON = "button";
|
|
222
|
+
export declare const INPUT_CHAR_HINT: TTextWithLocale;
|
|
223
|
+
export declare const USER_DROPDOWN_CHAR_HINT: TTextWithLocale;
|
|
224
|
+
export declare const SEARCH_PLACEHOLDER: TTextWithLocale;
|
|
225
|
+
export declare const MIN_INPUT_SYMBOLS = 3;
|
|
226
|
+
export declare const SMARTAPP_MODAL_ID = "SMARTAPP_MODAL";
|
|
227
|
+
export declare const EMAIL_FIELD = "email";
|
|
228
|
+
export declare const OVERLAYS = "overlays";
|
|
229
|
+
export declare const RENDER_DELAY = 50;
|
|
230
|
+
export declare enum PERSISTENT_POSITION_FULLSCREEN {
|
|
231
|
+
right = "right",
|
|
232
|
+
left = "left"
|
|
233
|
+
}
|
|
234
|
+
export declare enum BOTTOM_SHEET_SCROLL_POSITION {
|
|
235
|
+
top = "top",
|
|
236
|
+
bottom = "bottom"
|
|
237
|
+
}
|
|
238
|
+
export declare enum ENTER_KEY_HINT {
|
|
239
|
+
done = "done",
|
|
240
|
+
enter = "enter"
|
|
241
|
+
}
|
|
242
|
+
export declare const EMPTY_STRING = "";
|
|
@@ -1,49 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
var _a, _b, _c;
|
|
2
|
+
export var COLORS = {
|
|
3
|
+
lighterBlue: '#4799E30D',
|
|
4
|
+
lightBlue: '#5AA0E0',
|
|
5
|
+
blue: '#4799E3',
|
|
6
|
+
darkBlue: '#408ACD',
|
|
7
|
+
darkerBlue: '#3C82C1',
|
|
8
|
+
darkestBlue: '#000276',
|
|
9
|
+
purple: '#9370db',
|
|
10
|
+
white: '#FFFFFF',
|
|
11
|
+
white3: '#FFFFFF03',
|
|
12
|
+
lightestGray: '#FCFCFC',
|
|
13
|
+
lighterGray: '#E0E4EC66',
|
|
14
|
+
gray: '#1111114D',
|
|
15
|
+
darkerGray: '#808080',
|
|
16
|
+
brightBlack: '#3D3D3D',
|
|
17
|
+
black: '#111111',
|
|
18
|
+
darkBlack: '#1A1A1A',
|
|
19
|
+
skeletonBg: '#F1F1F2',
|
|
20
|
+
inactiveAvatarGradientStart: '#C2C2C2',
|
|
21
|
+
inactiveAvatarGradientEnd: '#6F6F6F',
|
|
22
|
+
bgBlackoutTransparent: 'rgba(0, 0, 0, 0.3)',
|
|
23
|
+
transparent: 'transparent',
|
|
24
|
+
textPrimary: 'var(--color-text-primary)',
|
|
25
|
+
textSecondary: 'var(--color-text-secondary)',
|
|
26
|
+
textTertiary: 'var(--color-text-tertiary)',
|
|
27
|
+
borderPrimary: 'var(--color-border-primary)',
|
|
28
|
+
borderPrimaryHover: 'var(--color-border-primary-hover)',
|
|
29
|
+
borderFocused: 'var(--color-border-focused)',
|
|
30
|
+
borderError: 'var(--color-border-error)',
|
|
31
|
+
iconAccent: 'var(--color-icon-accent)',
|
|
32
|
+
iconContrast: 'var(--color-icon-contrast)',
|
|
33
|
+
iconPrimary: 'var(--color-icon-primary)',
|
|
34
|
+
iconSecondary: 'var(--color-icon-secondary)',
|
|
35
|
+
iconNegative: 'var(--color-icon-negative)',
|
|
36
|
+
iconTransparentPressed: 'var(--color-icon-transparent-pressed)',
|
|
37
|
+
bgAccent: 'var(--color-bg-accent)',
|
|
38
|
+
bgAccentHover: 'var(--color-bg-accent-hover)',
|
|
39
|
+
bgAccentPressed: 'var(--color-bg-accent-pressed)',
|
|
40
|
+
bgPopUp: 'var(--color-bg-pop-up)',
|
|
41
|
+
bgElementOnTop: 'var(--color-bg-element-on-top)',
|
|
42
|
+
bgElementOnTopHover: 'var(--color-bg-element-on-top-hover)',
|
|
43
|
+
bgElementOnTopPressed: 'var(--color-bg-element-on-top-pressed)',
|
|
44
|
+
bgPrimary: 'var(--color-bg-primary)',
|
|
45
|
+
bgPrimarySelected: 'var(--color-bg-primary-selected)',
|
|
46
|
+
bgLightTransparent: 'var(--color-bg-light-transparent)',
|
|
47
|
+
colorBgBlackoutTransparent: 'var(--color-bg-blackout-transparent)',
|
|
48
|
+
chip: 'var(--color-chip)',
|
|
49
|
+
buttonPrimary: 'var(--color-button-primary)',
|
|
50
|
+
buttonPrimaryHover: 'var(--color-button-primary-hover)',
|
|
51
|
+
buttonPrimaryPressed: 'var(--color-button-primary-pressed)',
|
|
52
|
+
scrollbarThumb: 'var(--color-scrollbar-thumb)',
|
|
53
|
+
mShadowClick: 'var(--m-shadow-click)',
|
|
54
|
+
};
|
|
42
55
|
export var INPUT_TYPE_PASSWORD = 'password';
|
|
43
56
|
export var INPUT_TYPE_TEXT = 'text';
|
|
44
57
|
export var INPUT_TYPE_NUMBER = 'number';
|
|
45
58
|
export var DEFAULT_INPUT_PADDING = 12;
|
|
46
|
-
export var
|
|
59
|
+
export var AFFIX_INPUT_PH = 20;
|
|
47
60
|
export var ADDITIONAL_INPUT_PR = 18;
|
|
48
61
|
export var ENTER_KEY = 'Enter';
|
|
49
62
|
export var BACKSPACE_KEY = 'Backspace';
|
|
@@ -71,6 +84,7 @@ export var PLATFORM;
|
|
|
71
84
|
PLATFORM["web"] = "web";
|
|
72
85
|
PLATFORM["ios"] = "ios";
|
|
73
86
|
PLATFORM["android"] = "android";
|
|
87
|
+
PLATFORM["aurora"] = "aurora";
|
|
74
88
|
})(PLATFORM || (PLATFORM = {}));
|
|
75
89
|
export var THEME;
|
|
76
90
|
(function (THEME) {
|
|
@@ -84,6 +98,7 @@ export var FONT_FAMILY;
|
|
|
84
98
|
FONT_FAMILY["oswald"] = "Oswald";
|
|
85
99
|
FONT_FAMILY["roboto"] = "Roboto";
|
|
86
100
|
FONT_FAMILY["onest"] = "Onest";
|
|
101
|
+
FONT_FAMILY["inter"] = "Inter";
|
|
87
102
|
})(FONT_FAMILY || (FONT_FAMILY = {}));
|
|
88
103
|
export var CANCEL_ACTION_TEXT = 'Отменить';
|
|
89
104
|
export var NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
|
|
@@ -94,12 +109,12 @@ export var WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM = 24;
|
|
|
94
109
|
export var MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM = 40;
|
|
95
110
|
export var DEFAULT_HEADER_AVATAR_INDEX = 4;
|
|
96
111
|
export var AVATAR_DEGREES = [180, 178.34, 180, 180, 180, 180];
|
|
97
|
-
export var AVATAR_COLOR_TOP = ['#FBDA43', '#FFA285', '#
|
|
98
|
-
export var AVATAR_COLOR_TOP_PERCENTS = [-18.75, -3.03, 0, 0, -
|
|
99
|
-
export var AVATAR_COLOR_MIDDLE = [null, '#FC6B6B',
|
|
100
|
-
export var AVATAR_COLOR_MIDDLE_PERCENTS = [null, 65.88,
|
|
101
|
-
export var AVATAR_COLOR_BOTTOM = ['#F57953', '#F446B2', '#
|
|
102
|
-
export var AVATAR_COLOR_BOTTOM_PERCENTS = [108.93, 116.81, 120.91, 100,
|
|
112
|
+
export var AVATAR_COLOR_TOP = ['#FBDA43', '#FFA285', '#FF92D3', '#ACB3FF', '#D39FFF', '#94CBFF'];
|
|
113
|
+
export var AVATAR_COLOR_TOP_PERCENTS = [-18.75, -3.03, 0, 0, -8.04, -8.04];
|
|
114
|
+
export var AVATAR_COLOR_MIDDLE = [null, '#FC6B6B', null, null, null, null];
|
|
115
|
+
export var AVATAR_COLOR_MIDDLE_PERCENTS = [null, 65.88, null, null, null, null];
|
|
116
|
+
export var AVATAR_COLOR_BOTTOM = ['#F57953', '#F446B2', '#E54799', '#706AE6', '#9140D9', '#2463EA'];
|
|
117
|
+
export var AVATAR_COLOR_BOTTOM_PERCENTS = [108.93, 116.81, 120.91, 100, 112.5, 112.5];
|
|
103
118
|
export var MAX_NUMBER_OF_CHARACTERS_IN_INITIALS = 2;
|
|
104
119
|
export var LAYOUT_TYPE;
|
|
105
120
|
(function (LAYOUT_TYPE) {
|
|
@@ -148,6 +163,7 @@ export var LANGUAGES;
|
|
|
148
163
|
LANGUAGES["tr"] = "tr";
|
|
149
164
|
LANGUAGES["id"] = "id";
|
|
150
165
|
LANGUAGES["uz"] = "uz";
|
|
166
|
+
LANGUAGES["kk"] = "kk";
|
|
151
167
|
})(LANGUAGES || (LANGUAGES = {}));
|
|
152
168
|
export var HEADER_COLOR_BG;
|
|
153
169
|
(function (HEADER_COLOR_BG) {
|
|
@@ -182,6 +198,10 @@ export var EVENT_LISTENER_TYPES;
|
|
|
182
198
|
EVENT_LISTENER_TYPES["blur"] = "blur";
|
|
183
199
|
EVENT_LISTENER_TYPES["visibilityChange"] = "visibilitychange";
|
|
184
200
|
EVENT_LISTENER_TYPES["resize"] = "resize";
|
|
201
|
+
EVENT_LISTENER_TYPES["focus"] = "focus";
|
|
202
|
+
EVENT_LISTENER_TYPES["scroll"] = "scroll";
|
|
203
|
+
EVENT_LISTENER_TYPES["focusIn"] = "focusin";
|
|
204
|
+
EVENT_LISTENER_TYPES["focusOut"] = "focusout";
|
|
185
205
|
})(EVENT_LISTENER_TYPES || (EVENT_LISTENER_TYPES = {}));
|
|
186
206
|
export var POPUP_ON_EVENT_TYPE;
|
|
187
207
|
(function (POPUP_ON_EVENT_TYPE) {
|
|
@@ -209,9 +229,72 @@ export var FILE_FORMATS;
|
|
|
209
229
|
FILE_FORMATS["mp4"] = "mp4";
|
|
210
230
|
FILE_FORMATS["webm"] = "webm";
|
|
211
231
|
FILE_FORMATS["wmv"] = "wmv";
|
|
232
|
+
FILE_FORMATS["jpeg"] = "jpeg";
|
|
233
|
+
FILE_FORMATS["jpg"] = "jpg";
|
|
234
|
+
FILE_FORMATS["png"] = "png";
|
|
212
235
|
})(FILE_FORMATS || (FILE_FORMATS = {}));
|
|
213
236
|
export var VIDEO_FORMATS = [FILE_FORMATS.mov, FILE_FORMATS.mp4, FILE_FORMATS.webm, FILE_FORMATS.wmv];
|
|
214
|
-
export var MODAL_ICONS_PADDING_LEFT =
|
|
237
|
+
export var MODAL_ICONS_PADDING_LEFT = 16;
|
|
215
238
|
export var DRAGGABLE_KEY = 'handle';
|
|
216
239
|
export var BUTTON = 'button';
|
|
240
|
+
export var INPUT_CHAR_HINT = (_a = {},
|
|
241
|
+
_a[LANGUAGES.ru] = 'Запрос должен содержать не менее 3-х символов',
|
|
242
|
+
_a[LANGUAGES.en] = 'The query must contain at least 3 characters',
|
|
243
|
+
_a[LANGUAGES.de] = 'Die Anfrage muss mindestens 3 Zeichen enthalten',
|
|
244
|
+
_a[LANGUAGES.es] = 'La consulta debe contener al menos 3 caracteres',
|
|
245
|
+
_a[LANGUAGES.fr] = 'Il faut au moins 3 caractères pour la recherche',
|
|
246
|
+
_a[LANGUAGES.ar] = 'الاستفسار يجب أن يحتوي على 3 حروف على الأقل',
|
|
247
|
+
_a[LANGUAGES.ms] = 'Pertanyaan harus mengandungi sekurang-kurangnya 3 aksara',
|
|
248
|
+
_a[LANGUAGES.tr] = 'Sorgu en az 3 karakter içermelidir',
|
|
249
|
+
_a[LANGUAGES.id] = 'Kueri harus berisi minimal 3 karakter',
|
|
250
|
+
_a[LANGUAGES.uz] = 'So‘rov kamida 3 ta belgi bo‘lishi kerak',
|
|
251
|
+
_a[LANGUAGES.kk] = 'Сұрау кемінде 3 таңбадан тұруы керек',
|
|
252
|
+
_a);
|
|
253
|
+
export var USER_DROPDOWN_CHAR_HINT = (_b = {},
|
|
254
|
+
_b[LANGUAGES.ru] = 'Для поиска введите не менее 3-х символов',
|
|
255
|
+
_b[LANGUAGES.en] = 'Enter at least 3 characters to search',
|
|
256
|
+
_b[LANGUAGES.de] = 'Für die Suche mind. 3 Zeichen eingeben',
|
|
257
|
+
_b[LANGUAGES.es] = 'Ingresa al menos 3 caracteres',
|
|
258
|
+
_b[LANGUAGES.fr] = 'Saisissez min. 3 caractères',
|
|
259
|
+
_b[LANGUAGES.ar] = 'أدخل 3 أحرف على الأقل للبحث',
|
|
260
|
+
_b[LANGUAGES.ms] = 'Masukkan minimum 3 aksara',
|
|
261
|
+
_b[LANGUAGES.tr] = 'En az 3 karakter girin',
|
|
262
|
+
_b[LANGUAGES.id] = 'Masukkan minimal 3 karakter',
|
|
263
|
+
_b[LANGUAGES.uz] = 'Kamida 3 ta belgi kiriting',
|
|
264
|
+
_b[LANGUAGES.kk] = 'Іздеу үшін кемінде 3 таңба енгізіңіз',
|
|
265
|
+
_b);
|
|
266
|
+
export var SEARCH_PLACEHOLDER = (_c = {},
|
|
267
|
+
_c[LANGUAGES.ru] = 'Поиск от 3-х символов',
|
|
268
|
+
_c[LANGUAGES.en] = 'Search from 3 characters',
|
|
269
|
+
_c[LANGUAGES.de] = 'Suche ab 3 Zeichen',
|
|
270
|
+
_c[LANGUAGES.es] = 'Buscar con al menos 3 caracteres',
|
|
271
|
+
_c[LANGUAGES.fr] = 'Recherche à partir de 3 caractères',
|
|
272
|
+
_c[LANGUAGES.ar] = 'بحث من أول 3 أحرف',
|
|
273
|
+
_c[LANGUAGES.ms] = 'Cari daripada 3 aksara',
|
|
274
|
+
_c[LANGUAGES.tr] = '3 karakterden arama',
|
|
275
|
+
_c[LANGUAGES.id] = 'Cari dari 3 karakter',
|
|
276
|
+
_c[LANGUAGES.uz] = 'Qidirish (3 ta belgidan boshlab)',
|
|
277
|
+
_c[LANGUAGES.kk] = 'Іздеу үшін кемінде 3 таңба керек',
|
|
278
|
+
_c);
|
|
279
|
+
export var MIN_INPUT_SYMBOLS = 3;
|
|
280
|
+
export var SMARTAPP_MODAL_ID = 'SMARTAPP_MODAL';
|
|
281
|
+
export var EMAIL_FIELD = 'email';
|
|
282
|
+
export var OVERLAYS = 'overlays';
|
|
283
|
+
export var RENDER_DELAY = 50;
|
|
284
|
+
export var PERSISTENT_POSITION_FULLSCREEN;
|
|
285
|
+
(function (PERSISTENT_POSITION_FULLSCREEN) {
|
|
286
|
+
PERSISTENT_POSITION_FULLSCREEN["right"] = "right";
|
|
287
|
+
PERSISTENT_POSITION_FULLSCREEN["left"] = "left";
|
|
288
|
+
})(PERSISTENT_POSITION_FULLSCREEN || (PERSISTENT_POSITION_FULLSCREEN = {}));
|
|
289
|
+
export var BOTTOM_SHEET_SCROLL_POSITION;
|
|
290
|
+
(function (BOTTOM_SHEET_SCROLL_POSITION) {
|
|
291
|
+
BOTTOM_SHEET_SCROLL_POSITION["top"] = "top";
|
|
292
|
+
BOTTOM_SHEET_SCROLL_POSITION["bottom"] = "bottom";
|
|
293
|
+
})(BOTTOM_SHEET_SCROLL_POSITION || (BOTTOM_SHEET_SCROLL_POSITION = {}));
|
|
294
|
+
export var ENTER_KEY_HINT;
|
|
295
|
+
(function (ENTER_KEY_HINT) {
|
|
296
|
+
ENTER_KEY_HINT["done"] = "done";
|
|
297
|
+
ENTER_KEY_HINT["enter"] = "enter";
|
|
298
|
+
})(ENTER_KEY_HINT || (ENTER_KEY_HINT = {}));
|
|
299
|
+
export var EMPTY_STRING = '';
|
|
217
300
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants/constants.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,IAAM,MAAM,GAAG;IACpB,WAAW,EAAE,WAAW;IACxB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,WAAW;IACnB,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;IACrB,2BAA2B,EAAE,SAAS;IACtC,yBAAyB,EAAE,SAAS;IACpC,qBAAqB,EAAE,oBAAoB;IAC3C,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,2BAA2B;IACxC,aAAa,EAAE,6BAA6B;IAC5C,YAAY,EAAE,4BAA4B;IAC1C,aAAa,EAAE,6BAA6B;IAC5C,kBAAkB,EAAE,mCAAmC;IACvD,aAAa,EAAE,6BAA6B;IAC5C,WAAW,EAAE,2BAA2B;IACxC,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AG,kCAAkC;IAClD,GAAC,SAAS,CAAC,EAAE,IAAG,kCAAkC;OACnD,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,CAAC,CAAA;AAClC,MAAM,CAAC,IAAM,iBAAiB,GAAG,gBAAgB,CAAA;AACjD,MAAM,CAAC,IAAM,WAAW,GAAG,OAAO,CAAA;AAClC,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAU,CAAA;AAClC,MAAM,CAAC,IAAM,YAAY,GAAG,EAAE,CAAA;AAE9B,MAAM,CAAN,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,iDAAe,CAAA;IACf,+CAAa,CAAA;AACf,CAAC,EAHW,8BAA8B,KAA9B,8BAA8B,QAGzC;AAED,MAAM,CAAN,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,2CAAW,CAAA;IACX,iDAAiB,CAAA;AACnB,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,QAGvC;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAC,IAAM,YAAY,GAAG,EAAE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { ReactElement, RefObject } from 'react';
|
|
3
|
+
import { MouseEvent, TouchEvent } from 'react';
|
|
3
4
|
import { CONTACT_TYPES } from '../сomponents/UserDropdown/constants';
|
|
4
5
|
export type TStyles = {
|
|
5
6
|
[key: string]: number | string;
|
|
@@ -8,13 +9,13 @@ export interface IThemeProps {
|
|
|
8
9
|
theme?: 'default' | 'dark';
|
|
9
10
|
}
|
|
10
11
|
export interface IPlatformProps {
|
|
11
|
-
platform?: 'web' | 'ios' | 'android';
|
|
12
|
+
platform?: 'web' | 'ios' | 'android' | 'aurora';
|
|
12
13
|
}
|
|
13
14
|
export interface ILayoutTypeProps {
|
|
14
15
|
layoutType?: 'minimal' | 'half' | 'full';
|
|
15
16
|
}
|
|
16
17
|
export interface ILanguageProps {
|
|
17
|
-
language?: 'ru' | 'en' | 'de' | 'es' | 'fr' | 'ar' | 'ms' | 'tr' | 'id' | 'uz';
|
|
18
|
+
language?: 'ru' | 'en' | 'de' | 'es' | 'fr' | 'ar' | 'ms' | 'tr' | 'id' | 'uz' | 'kk';
|
|
18
19
|
}
|
|
19
20
|
export interface IFontFamilyProps {
|
|
20
21
|
fontFamily?: string;
|
|
@@ -35,6 +36,7 @@ export type TTextWithLocale = {
|
|
|
35
36
|
[key: string]: string;
|
|
36
37
|
};
|
|
37
38
|
export type TTimeout = number | NodeJS.Timeout | undefined;
|
|
39
|
+
export type TNodejsTimeout = NodeJS.Timeout | null;
|
|
38
40
|
export type TRenderStoryComponent = {
|
|
39
41
|
component: ReactElement;
|
|
40
42
|
componentDarkTheme?: ReactElement;
|
|
@@ -42,6 +44,7 @@ export type TRenderStoryComponent = {
|
|
|
42
44
|
};
|
|
43
45
|
export type TTarget = {
|
|
44
46
|
target: any;
|
|
47
|
+
stopPropagation(): void;
|
|
45
48
|
};
|
|
46
49
|
export type TFontFamilyStyle = {
|
|
47
50
|
fontFamily: string;
|
|
@@ -53,6 +56,14 @@ export type TRenderCloseIconSpace = {
|
|
|
53
56
|
};
|
|
54
57
|
export type TRenderUserIcon = {
|
|
55
58
|
isMyContacts?: boolean;
|
|
59
|
+
isLocalContact?: boolean;
|
|
60
|
+
isCachedContact?: boolean;
|
|
56
61
|
userType?: CONTACT_TYPES;
|
|
57
62
|
style?: TStyles;
|
|
58
63
|
};
|
|
64
|
+
export type TCoords = {
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
};
|
|
68
|
+
export type TClickEvent = MouseEvent | TouchEvent;
|
|
69
|
+
export type TAvatar = ReactElement | string | null;
|
|
@@ -2,10 +2,10 @@ import { RefObject } from 'react';
|
|
|
2
2
|
import { TCalculatePercentageOfValue, TGenerateClassNames, TRenderCloseIconSpace, TRenderStoryComponent, TRenderUserIcon } from '../constants';
|
|
3
3
|
import { CONTACT_TYPES } from '../сomponents/UserDropdown/constants';
|
|
4
4
|
export declare const generateColor: (color?: string, defaultColor?: string) => string;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
5
|
+
export declare const checkIsWebPlatform: (platform: string) => boolean;
|
|
6
|
+
export declare const checkIsIosPlatform: (platform: string) => boolean;
|
|
7
|
+
export declare const checkIsAndroidPlatform: (platform: string) => boolean;
|
|
8
|
+
export declare const checkIsMobilePlatform: (platform: string) => boolean;
|
|
9
9
|
export declare const isDarkTheme: (theme?: string) => boolean;
|
|
10
10
|
export declare const generateClassNames: ({ className, delimiter, additionalClassName }: TGenerateClassNames) => string;
|
|
11
11
|
export declare const userNameToColor: (userName?: string) => string;
|
|
@@ -19,7 +19,7 @@ export declare const checkIfContentIsCentered: (elementRef: RefObject<HTMLElemen
|
|
|
19
19
|
export declare const generateBottomSheetClassName: (platform: string, shouldUseBottomSheet: boolean) => string[];
|
|
20
20
|
export declare const generateId: () => string;
|
|
21
21
|
export declare const generateAvatarIcon: (userType?: CONTACT_TYPES) => import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
-
export declare const renderUserIcon: ({ isMyContacts, userType, style }: TRenderUserIcon) => import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
export declare const renderUserIcon: ({ isMyContacts, isLocalContact, isCachedContact, userType, style }: TRenderUserIcon) => import("react/jsx-runtime").JSX.Element | null;
|
|
23
23
|
export declare const extractFileExtensionRegex: (filename: string) => string;
|
|
24
24
|
export declare const generateFileIcon: (fileName: string, displaySize: string) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export declare const renderCloseIconSpace: ({ elementRef, closeIconRef, isContent }: TRenderCloseIconSpace) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,3 +29,5 @@ export declare const generateFontFamilyStyle: (fontFamily?: string) => {
|
|
|
29
29
|
export declare const createSanitizedHtml: (str: string) => {
|
|
30
30
|
__html: string;
|
|
31
31
|
};
|
|
32
|
+
export declare const clickOutsideTheModal: (closeModal: () => void, clickOutside?: () => void) => void;
|
|
33
|
+
export declare const checkIfContactTypeIsGroup: (contactType?: CONTACT_TYPES) => boolean;
|
|
@@ -26,6 +26,8 @@ import { ReactComponent as FileSmallIcon } from '../assets/icons/file-small.svg'
|
|
|
26
26
|
import { ReactComponent as FileIcon } from '../assets/icons/file.svg';
|
|
27
27
|
import { ReactComponent as GlobalAddressBookIcon } from '../assets/icons/global-address-book-user.svg';
|
|
28
28
|
import { ReactComponent as GroupIcon } from '../assets/icons/group.svg';
|
|
29
|
+
import { ReactComponent as ImageFileSmallIcon } from '../assets/icons/image-no-preview-small.svg';
|
|
30
|
+
import { ReactComponent as ImageFileIcon } from '../assets/icons/image-no-preview.svg';
|
|
29
31
|
import { ReactComponent as MeetingRoomIcon } from '../assets/icons/meeting-room.svg';
|
|
30
32
|
import { ReactComponent as MyContactsUserIcon } from '../assets/icons/my-contacts-user.svg';
|
|
31
33
|
import { ReactComponent as PdfFileSmallIcon } from '../assets/icons/pdf-small.svg';
|
|
@@ -34,16 +36,20 @@ import { ReactComponent as PptFileSmallIcon } from '../assets/icons/ppt-small.sv
|
|
|
34
36
|
import { ReactComponent as PptFileIcon } from '../assets/icons/ppt.svg';
|
|
35
37
|
import { ReactComponent as TxtFileSmallIcon } from '../assets/icons/txt-small.svg';
|
|
36
38
|
import { ReactComponent as TxtFileIcon } from '../assets/icons/txt.svg';
|
|
39
|
+
import { ReactComponent as VideoFileSmallIcon } from '../assets/icons/video-no-preview-small.svg';
|
|
40
|
+
import { ReactComponent as VideoFileIcon } from '../assets/icons/video-no-preview.svg';
|
|
37
41
|
import { ReactComponent as XlsFileSmallIcon } from '../assets/icons/xls-small.svg';
|
|
38
42
|
import { ReactComponent as XlsFileIcon } from '../assets/icons/xls.svg';
|
|
39
43
|
export var generateColor = function (color, defaultColor) {
|
|
40
44
|
if (defaultColor === void 0) { defaultColor = ''; }
|
|
41
45
|
return (color && CSS.supports('color', color) ? color : defaultColor);
|
|
42
46
|
};
|
|
43
|
-
export var
|
|
44
|
-
export var
|
|
45
|
-
export var
|
|
46
|
-
export var
|
|
47
|
+
export var checkIsWebPlatform = function (platform) { return platform === PLATFORM.web; };
|
|
48
|
+
export var checkIsIosPlatform = function (platform) { return platform === PLATFORM.ios; };
|
|
49
|
+
export var checkIsAndroidPlatform = function (platform) { return platform === PLATFORM.android; };
|
|
50
|
+
export var checkIsMobilePlatform = function (platform) {
|
|
51
|
+
return checkIsAndroidPlatform(platform) || checkIsIosPlatform(platform) || platform === PLATFORM.aurora;
|
|
52
|
+
};
|
|
47
53
|
export var isDarkTheme = function (theme) { return theme === THEME.dark; };
|
|
48
54
|
export var generateClassNames = function (_a) {
|
|
49
55
|
var className = _a.className, delimiter = _a.delimiter, additionalClassName = _a.additionalClassName;
|
|
@@ -96,7 +102,7 @@ export var renderStoryComponent = function (_a) {
|
|
|
96
102
|
return (_jsxs("div", __assign({ style: { display: 'flex', flexDirection: 'column', gap: '16px' } }, { children: [_jsxs("div", __assign({ style: __assign({ border: '1px dashed #9747FF', borderRadius: '5px', padding: '0 16px 16px' }, styles) }, { children: [_jsx("h3", { children: "Light Theme" }), component] })), _jsxs("div", __assign({ style: __assign({ background: '#242424', borderRadius: '5px', padding: '0 16px 16px' }, styles) }, { children: [_jsx("h3", __assign({ style: { color: '#F9F9F9' } }, { children: "Dark Theme" })), _jsx("div", __assign({ "data-theme": "dark" }, { children: componentDarkTheme || component }))] }))] })));
|
|
97
103
|
};
|
|
98
104
|
export var generateIsCloseIconHidden = function (platform, isCloseIconHidden) {
|
|
99
|
-
return isNil(isCloseIconHidden) ?
|
|
105
|
+
return isNil(isCloseIconHidden) ? checkIsMobilePlatform(platform) : isCloseIconHidden;
|
|
100
106
|
};
|
|
101
107
|
var isTextAlignEqualToCenter = function (element) { return (element ? window.getComputedStyle(element).textAlign === CENTER : false); };
|
|
102
108
|
export var checkIfContentIsCentered = function (elementRef) {
|
|
@@ -121,9 +127,11 @@ export var generateAvatarIcon = function (userType) {
|
|
|
121
127
|
}
|
|
122
128
|
};
|
|
123
129
|
export var renderUserIcon = function (_a) {
|
|
124
|
-
var isMyContacts = _a.isMyContacts, userType = _a.userType, style = _a.style;
|
|
130
|
+
var isMyContacts = _a.isMyContacts, isLocalContact = _a.isLocalContact, isCachedContact = _a.isCachedContact, userType = _a.userType, style = _a.style;
|
|
125
131
|
if (isMyContacts)
|
|
126
132
|
return _jsx(MyContactsUserIcon, { color: COLORS.iconSecondary, style: style });
|
|
133
|
+
if (isLocalContact || isCachedContact)
|
|
134
|
+
return _jsx(GlobalAddressBookIcon, { color: COLORS.iconPrimary, style: style });
|
|
127
135
|
switch (userType) {
|
|
128
136
|
case CONTACT_TYPES.myContact:
|
|
129
137
|
case CONTACT_TYPES.privateDL:
|
|
@@ -158,6 +166,15 @@ export var generateFileIcon = function (fileName, displaySize) {
|
|
|
158
166
|
return isSmallDisplaySize ? _jsx(PptFileSmallIcon, {}) : _jsx(PptFileIcon, {});
|
|
159
167
|
case FILE_FORMATS.txt:
|
|
160
168
|
return isSmallDisplaySize ? _jsx(TxtFileSmallIcon, {}) : _jsx(TxtFileIcon, {});
|
|
169
|
+
case FILE_FORMATS.mov:
|
|
170
|
+
case FILE_FORMATS.mp4:
|
|
171
|
+
case FILE_FORMATS.webm:
|
|
172
|
+
case FILE_FORMATS.wmv:
|
|
173
|
+
return isSmallDisplaySize ? _jsx(VideoFileSmallIcon, {}) : _jsx(VideoFileIcon, {});
|
|
174
|
+
case FILE_FORMATS.jpg:
|
|
175
|
+
case FILE_FORMATS.jpeg:
|
|
176
|
+
case FILE_FORMATS.png:
|
|
177
|
+
return isSmallDisplaySize ? _jsx(ImageFileSmallIcon, {}) : _jsx(ImageFileIcon, {});
|
|
161
178
|
default:
|
|
162
179
|
return isSmallDisplaySize ? _jsx(FileSmallIcon, {}) : _jsx(FileIcon, {});
|
|
163
180
|
}
|
|
@@ -172,7 +189,7 @@ export var renderCloseIconSpace = function (_a) {
|
|
|
172
189
|
}) }));
|
|
173
190
|
};
|
|
174
191
|
export var generateFontFamilyStyle = function (fontFamily) {
|
|
175
|
-
if (fontFamily === void 0) { fontFamily = FONT_FAMILY.
|
|
192
|
+
if (fontFamily === void 0) { fontFamily = FONT_FAMILY.inter; }
|
|
176
193
|
return ({ fontFamily: "".concat(fontFamily, ", sans-serif") });
|
|
177
194
|
};
|
|
178
195
|
export var createSanitizedHtml = function (str) {
|
|
@@ -180,4 +197,8 @@ export var createSanitizedHtml = function (str) {
|
|
|
180
197
|
var html = DOMPurify.sanitize(preparedHtml);
|
|
181
198
|
return { __html: html };
|
|
182
199
|
};
|
|
200
|
+
export var clickOutsideTheModal = function (closeModal, clickOutside) { return (clickOutside ? clickOutside() : closeModal()); };
|
|
201
|
+
export var checkIfContactTypeIsGroup = function (contactType) {
|
|
202
|
+
return contactType === CONTACT_TYPES.publicDL || contactType === CONTACT_TYPES.privateDL;
|
|
203
|
+
};
|
|
183
204
|
//# sourceMappingURL=index.js.map
|