quickblox-react-ui-kit 0.4.6-beta.4 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CommonTypes/CommonTypes.d.ts +12 -0
- package/dist/Data/source/remote/RemoteDataSource.d.ts +5 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.d.ts +1 -1
- package/dist/Presentation/Views/Flow/CreateDialog/CreateDialog.d.ts +1 -0
- package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.d.ts +3 -3
- package/dist/Presentation/ui-components/Header/Header.d.ts +1 -1
- package/dist/index-ui.d.ts +47 -3
- package/dist/index-ui.js +25470 -17586
- package/dist/index-ui.js.map +1 -1
- package/global.d.ts +3 -202
- package/package.json +1 -1
- package/src/App.scss +5 -0
- package/src/App.tsx +58 -33
- package/src/CommonTypes/CommonTypes.ts +13 -0
- package/src/Data/DefaultConfigurations.ts +4 -0
- package/src/Data/source/remote/RemoteDataSource.ts +210 -148
- package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -1
- package/src/Domain/use_cases/ForwardMessagesUseCase.ts +0 -1
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -1
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -2
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -1
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -1
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -2
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -1
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -1
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -1
- package/src/Domain/use_cases/ReplyMessagesUseCase.ts +0 -2
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -3
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -26
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -1
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +1 -2
- package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +0 -2
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -2
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -2
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -3
- package/src/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -3
- package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -3
- package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -3
- package/src/Domain/use_cases/ai/AITranslateWithSDKUseCase.ts +0 -3
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -1
- package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +1 -1
- package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.scss +12 -6
- package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +4 -2
- package/src/Presentation/Views/Dialog/Dialog.scss +7 -1
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +17 -29
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.tsx +8 -13
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.scss +9 -9
- package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +11 -0
- package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +3 -2
- package/src/Presentation/Views/Dialog/useDialogViewModel.ts +10 -21
- package/src/Presentation/Views/DialogInfo/DialogInfo.scss +19 -25
- package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +2 -2
- package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.scss +0 -17
- package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +9 -1
- package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.scss +0 -1
- package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +2 -4
- package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +0 -1
- package/src/Presentation/Views/EditDialog/EditDialog.scss +1 -38
- package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.scss +17 -42
- package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +45 -39
- package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +6 -2
- package/src/Presentation/Views/InviteMembers/InviteMembers.scss +4 -33
- package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +23 -4
- package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +8 -0
- package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +8 -5
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.css +5 -10
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -5
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +1 -10
- package/src/Presentation/layouts/TestStage/LoginView/Login.scss +6 -3
- package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +1 -33
- package/src/Presentation/themes/styles/_theme_colors_scheme.scss +1 -1
- package/src/Presentation/themes/styles/_theme_dark.scss +5 -4
- package/src/Presentation/themes/styles/_theme_light.scss +3 -2
- package/src/Presentation/ui-components/Avatar/Avatar.scss +8 -5
- package/src/Presentation/ui-components/Avatar/Avatar.tsx +2 -1
- package/src/Presentation/ui-components/Badge/Badge.tsx +1 -0
- package/src/Presentation/ui-components/Button/Button.scss +5 -6
- package/src/Presentation/ui-components/Button/Button.tsx +7 -2
- package/src/Presentation/ui-components/CheckBox/CheckBox.scss +23 -0
- package/src/Presentation/ui-components/CheckBox/CheckBox.tsx +19 -7
- package/src/Presentation/ui-components/DialogBanner/DialogBanner.tsx +1 -0
- package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss +3 -3
- package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +3 -3
- package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +7 -4
- package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +1 -1
- package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +1 -1
- package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +2 -1
- package/src/Presentation/ui-components/Header/Header.scss +9 -2
- package/src/Presentation/ui-components/Header/Header.tsx +1 -1
- package/src/Presentation/ui-components/Loader/Loader.tsx +1 -0
- package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +1 -0
- package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx +1 -0
- package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx +1 -0
- package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss +13 -3
- package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx +1 -0
- package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +1 -0
- package/src/Presentation/ui-components/Message/FileUrl/FileUrl.scss +0 -3
- package/src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx +1 -0
- package/src/Presentation/ui-components/Message/Message.scss +5 -1
- package/src/Presentation/ui-components/MessageInput/MessageInput.scss +5 -1
- package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +1 -1
- package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +1 -1
- package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +13 -13
- package/src/Presentation/ui-components/Placeholder/Placeholder.scss +5 -0
- package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +1 -1
- package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss +4 -1
- package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +1 -0
- package/src/Presentation/ui-components/SettingsItem/SettingsItem.scss +5 -1
- package/src/Presentation/ui-components/SettingsItem/SettingsItem.tsx +1 -1
- package/src/Presentation/ui-components/TextField/TextField.scss +5 -3
- package/src/Presentation/ui-components/Toast/Toast.scss +3 -3
- package/src/Presentation/ui-components/Toast/ToastProvider.tsx +2 -2
- package/src/Presentation/ui-components/UserListItem/UserListItem.scss +11 -3
- package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +1 -0
- package/src/QBconfig.ts +2 -0
- package/src/hooks/useQuickBloxUIKit.ts +101 -18
- package/src/index-ui.ts +111 -18
- package/src/qb-api-calls/index.ts +52 -3
- package/storybook-static/{217.3c66ff1e.iframe.bundle.js → 217.07d5c7a3.iframe.bundle.js} +3 -3
- package/storybook-static/{217.3c66ff1e.iframe.bundle.js.map → 217.07d5c7a3.iframe.bundle.js.map} +1 -1
- package/storybook-static/735.6ee62079.iframe.bundle.js +2 -0
- package/storybook-static/{844.6041e1a5.iframe.bundle.js → 844.e8bfd664.iframe.bundle.js} +3 -3
- package/storybook-static/{844.6041e1a5.iframe.bundle.js.map → 844.e8bfd664.iframe.bundle.js.map} +1 -1
- package/storybook-static/{961.c94da456.iframe.bundle.js → 961.d47fc2bc.iframe.bundle.js} +2 -2
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.be8aa2d9.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.4f00432b.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js +2 -0
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.5a7ba727.iframe.bundle.js → runtime~main.17766d00.iframe.bundle.js} +1 -1
- package/storybook-static/sb-manager/globals-runtime.js +1 -1
- package/storybook-static/735.82f96f8a.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.4aa88de3.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.5e19f10e.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js +0 -2
- /package/storybook-static/{217.3c66ff1e.iframe.bundle.js.LICENSE.txt → 217.07d5c7a3.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{735.82f96f8a.iframe.bundle.js.LICENSE.txt → 735.6ee62079.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{844.6041e1a5.iframe.bundle.js.LICENSE.txt → 844.e8bfd664.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{961.c94da456.iframe.bundle.js.LICENSE.txt → 961.d47fc2bc.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js.LICENSE.txt} +0 -0
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
order: 1;
|
|
16
16
|
flex-grow: 0;
|
|
17
17
|
|
|
18
|
-
font-family: 'Roboto';
|
|
19
18
|
font-style: normal;
|
|
20
|
-
font-weight:
|
|
19
|
+
font-weight: 500;
|
|
21
20
|
font-size: 14px;
|
|
22
21
|
line-height: 16px;
|
|
23
22
|
letter-spacing: 0.4px;
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
@include applyBorderBox;
|
|
29
28
|
|
|
30
29
|
&--default {
|
|
31
|
-
color: var(--
|
|
30
|
+
color: var(--system);
|
|
32
31
|
background-color: var(--main-elements);
|
|
33
32
|
|
|
34
33
|
&:hover {
|
|
@@ -53,8 +52,8 @@
|
|
|
53
52
|
|
|
54
53
|
&--outlined {
|
|
55
54
|
background-color: inherit;
|
|
56
|
-
border: 1px solid var(--main-
|
|
57
|
-
color: var(--main-
|
|
55
|
+
border: 1px solid var(--main-text);
|
|
56
|
+
color: var(--main-text);
|
|
58
57
|
|
|
59
58
|
&:hover {
|
|
60
59
|
background-color: var(--outgoing-background);
|
|
@@ -78,7 +77,7 @@
|
|
|
78
77
|
|
|
79
78
|
&--danger {
|
|
80
79
|
background-color: var(--error);
|
|
81
|
-
color: var(--
|
|
80
|
+
color: var(--system);
|
|
82
81
|
|
|
83
82
|
&:focus {
|
|
84
83
|
outline: 2px solid var(--error-secondary);
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, {
|
|
2
|
+
ButtonHTMLAttributes,
|
|
3
|
+
DetailedHTMLProps,
|
|
4
|
+
ReactElement,
|
|
5
|
+
} from 'react';
|
|
6
|
+
|
|
2
7
|
import cn from 'classnames';
|
|
3
8
|
|
|
4
9
|
import Loader from '../Loader/Loader';
|
|
@@ -39,7 +44,7 @@ export default function Button({
|
|
|
39
44
|
>
|
|
40
45
|
{loading && !disabled ? (
|
|
41
46
|
<Loader
|
|
42
|
-
className={cn('button__loader', `button__loader--${variant}`)}
|
|
47
|
+
className={cn('qb-button__loader', `qb-button__loader--${variant}`)}
|
|
43
48
|
/>
|
|
44
49
|
) : (
|
|
45
50
|
children
|
|
@@ -5,6 +5,29 @@
|
|
|
5
5
|
border-radius: 4px;
|
|
6
6
|
padding: 4px;
|
|
7
7
|
justify-content: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.checkbox-field > input {
|
|
11
|
+
z-index: -1;
|
|
12
|
+
opacity: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.checkbox-field .icon-checkmark {
|
|
16
|
+
width: 18px;
|
|
17
|
+
height: 18px;
|
|
18
|
+
fill: var(--main-elements);
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.checkbox-field .icon-check {
|
|
8
23
|
width: 18px;
|
|
9
24
|
height: 18px;
|
|
25
|
+
fill: var(--secondary-elements);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.checkbox-field.disabled .icon-check{
|
|
29
|
+
fill: var(--disabled-elements);
|
|
30
|
+
cursor: not-allowed;
|
|
10
31
|
}
|
|
32
|
+
|
|
33
|
+
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './CheckBox.scss';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import { CheckOffSvg, CheckOnSvg } from '../../icons';
|
|
2
5
|
|
|
3
6
|
interface CheckBoxProps {
|
|
4
7
|
disabled: boolean;
|
|
@@ -12,12 +15,21 @@ export default function CheckBox({
|
|
|
12
15
|
onChange,
|
|
13
16
|
}: CheckBoxProps) {
|
|
14
17
|
return (
|
|
15
|
-
<
|
|
16
|
-
className=
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
<label
|
|
19
|
+
className={cn('checkbox-field', {
|
|
20
|
+
disabled,
|
|
21
|
+
})}
|
|
22
|
+
>
|
|
23
|
+
{checked ? (
|
|
24
|
+
<CheckOnSvg className="icon-checkmark" />
|
|
25
|
+
) : (
|
|
26
|
+
<CheckOffSvg className="icon-check" />
|
|
27
|
+
)}
|
|
28
|
+
<input
|
|
29
|
+
type="checkbox"
|
|
30
|
+
onChange={() => onChange?.(!checked)}
|
|
31
|
+
disabled={disabled}
|
|
32
|
+
/>
|
|
33
|
+
</label>
|
|
22
34
|
);
|
|
23
35
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
justify-content: space-between;
|
|
28
28
|
|
|
29
29
|
&-title {
|
|
30
|
-
font: var(--label-label-medium
|
|
30
|
+
font: var(--label-label-medium);
|
|
31
31
|
color: var(--main-text, #0b1b0f);
|
|
32
32
|
overflow: hidden;
|
|
33
33
|
white-space: nowrap;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
&-date {
|
|
38
38
|
color: var(--tertiary-elements, #636d78);
|
|
39
|
-
font: var(--label-label-small
|
|
39
|
+
font: var(--label-label-small);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
&-message {
|
|
50
50
|
color: var(--secondary-text, #636d78);
|
|
51
51
|
text-align: left;
|
|
52
|
-
font: var(--body-body-small
|
|
52
|
+
font: var(--body-body-small);
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
display: -webkit-box;
|
|
55
55
|
-webkit-line-clamp: 2;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
|
|
4
4
|
import './DialogItemPreview.scss';
|
|
5
5
|
|
|
6
6
|
export type DialogItemPreviewProps = {
|
|
7
|
-
avatar
|
|
8
|
-
title
|
|
7
|
+
avatar?: ReactElement;
|
|
8
|
+
title?: string;
|
|
9
9
|
active?: boolean;
|
|
10
10
|
date?: string;
|
|
11
11
|
lastMessage?: ReactElement | string;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
z-index: 100;
|
|
11
11
|
position: fixed;
|
|
12
|
-
background-color:
|
|
12
|
+
background-color: var(--color-background-modal);
|
|
13
13
|
|
|
14
14
|
&--disable {
|
|
15
15
|
position: absolute;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
border-radius: 4px;
|
|
35
35
|
background-color: var(--main-background);
|
|
36
36
|
box-shadow: 0 9px 15px 0 rgba(0, 0, 0, 0.04),
|
|
37
|
-
|
|
37
|
+
0 9px 46px 0 rgba(0, 0, 0, 0.08);
|
|
38
38
|
|
|
39
39
|
@media (max-width: 767px) {
|
|
40
40
|
width: 300px;
|
|
@@ -44,13 +44,16 @@
|
|
|
44
44
|
&__header {
|
|
45
45
|
margin-bottom: 28px;
|
|
46
46
|
padding: 0px !important;
|
|
47
|
+
|
|
48
|
+
svg {
|
|
49
|
+
fill: var(--main-text);
|
|
50
|
+
}
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
&__close {
|
|
50
54
|
width: 24px;
|
|
51
55
|
height: 24px;
|
|
52
|
-
|
|
53
|
-
fill: var(--secondary-elements);
|
|
56
|
+
fill: var(--main-text);
|
|
54
57
|
cursor: pointer;
|
|
55
58
|
}
|
|
56
59
|
}
|
|
@@ -31,7 +31,7 @@ export default function DialogWindow({
|
|
|
31
31
|
<div className="dialog-window__content">
|
|
32
32
|
<Header
|
|
33
33
|
className="dialog-window__header"
|
|
34
|
-
onGoBack={onClose}
|
|
34
|
+
// onGoBack={onClose}
|
|
35
35
|
title={title}
|
|
36
36
|
>
|
|
37
37
|
<CloseSvg onClick={onClose} className="dialog-window__close" />
|
|
@@ -14,10 +14,17 @@
|
|
|
14
14
|
width: 24px;
|
|
15
15
|
height: 24px;
|
|
16
16
|
flex-shrink: 0;
|
|
17
|
+
|
|
18
|
+
svg {
|
|
19
|
+
width: 24px;
|
|
20
|
+
height: 24px;
|
|
21
|
+
fill: var(--main-elements);
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
&__back {
|
|
20
|
-
color: var(--main-
|
|
26
|
+
color: var(--main-text);
|
|
27
|
+
fill: var(--main-text);
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
&__body {
|
|
@@ -47,7 +54,7 @@
|
|
|
47
54
|
&__title {
|
|
48
55
|
color: var(--main-text, #0b1b0f);
|
|
49
56
|
text-align: left;
|
|
50
|
-
font: var(--title-title-
|
|
57
|
+
font: var(--title-title-large);
|
|
51
58
|
overflow: hidden;
|
|
52
59
|
white-space: nowrap;
|
|
53
60
|
text-overflow: ellipsis;
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
.bubble-content-text {
|
|
2
2
|
overflow-wrap: break-word;
|
|
3
3
|
max-width: calc(var(--max-width-message-bubble) - 20px);
|
|
4
|
+
padding: 0 12px 0 12px;
|
|
4
5
|
|
|
5
|
-
color: var(--main-
|
|
6
|
+
color: var(--main-text, #0b1b0f);
|
|
6
7
|
text-align: left;
|
|
7
8
|
font: var(--body-body-medium, 400 14px/20px "Roboto-Regular", sans-serif);
|
|
8
9
|
}
|
|
9
10
|
|
|
11
|
+
.reply-forward-message {
|
|
12
|
+
.bubble-content-text {
|
|
13
|
+
color: var(--secondary-text);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
.text-bubble-background {
|
|
11
18
|
|
|
12
19
|
&__incoming {
|
|
13
20
|
background: var(--incoming-background, #e4e6e8);
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
color: var(--main-text);
|
|
22
|
+
border-radius: 22px 22px 22px 0;
|
|
23
|
+
padding: 8px 0 8px 0;
|
|
16
24
|
display: flex;
|
|
17
25
|
flex-direction: row;
|
|
18
26
|
gap: 10px;
|
|
@@ -25,6 +33,7 @@
|
|
|
25
33
|
|
|
26
34
|
&__outgoing {
|
|
27
35
|
background: var(--outgoing-background, #E7EFFF);
|
|
36
|
+
color: var(--main-text);
|
|
28
37
|
border-radius: 22px 22px 0px 22px;
|
|
29
38
|
padding: 8px 12px 8px 12px;
|
|
30
39
|
display: flex;
|
|
@@ -34,6 +43,7 @@
|
|
|
34
43
|
justify-content: flex-start;
|
|
35
44
|
flex-shrink: 0;
|
|
36
45
|
position: relative;
|
|
46
|
+
width: 100%;
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
}
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&__outgoing {
|
|
51
|
-
background: var(--main-background, #ffffff);
|
|
52
51
|
padding: 0px 8px 8px 16px;
|
|
53
52
|
display: flex;
|
|
54
53
|
flex-direction: row;
|
|
@@ -79,6 +78,11 @@
|
|
|
79
78
|
justify-content: flex-start;
|
|
80
79
|
flex-shrink: 0;
|
|
81
80
|
position: relative;
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
.reply-forward-message {
|
|
84
|
+
color: var(--secondary-text);
|
|
85
|
+
width: 100%;
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
88
|
}
|
|
@@ -2,6 +2,10 @@ $message-view-container-header-min-height: 64px;
|
|
|
2
2
|
$message-view-container-chat-input-min-height: 54px;
|
|
3
3
|
.chat-container{
|
|
4
4
|
width: 100%;
|
|
5
|
+
&__send-icon {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
5
9
|
&__icon{
|
|
6
10
|
width: 24px;
|
|
7
11
|
height: 24px;
|
|
@@ -120,7 +124,7 @@ $message-view-container-chat-input-min-height: 54px;
|
|
|
120
124
|
justify-content: flex-start;
|
|
121
125
|
}
|
|
122
126
|
.type-message textarea{
|
|
123
|
-
color: var(--
|
|
127
|
+
color: var(--main-text);
|
|
124
128
|
font: var(--body-body-large);
|
|
125
129
|
border: none;
|
|
126
130
|
outline: none;
|
|
@@ -124,7 +124,7 @@ const MessageInput: React.FC<MessageInputProps> = ({
|
|
|
124
124
|
/>
|
|
125
125
|
)}
|
|
126
126
|
{!isVoiceMessage && !loading && (
|
|
127
|
-
<div>
|
|
127
|
+
<div className="chat-container__send-icon">
|
|
128
128
|
<SendSvg
|
|
129
129
|
className={cn('chat-container__icon__send', {
|
|
130
130
|
'chat-container__icon--mute': loading,
|
|
@@ -5,26 +5,26 @@
|
|
|
5
5
|
|
|
6
6
|
background: var(--incoming-background);
|
|
7
7
|
border-radius: 30px;
|
|
8
|
-
padding: 2px 8px
|
|
8
|
+
padding: 2px 8px;
|
|
9
9
|
display: flex;
|
|
10
10
|
gap: 10px;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
color: var(--secondary-text);
|
|
14
14
|
text-align: center;
|
|
15
|
-
font: var(--label-label-small
|
|
15
|
+
font: var(--label-label-small);
|
|
16
|
+
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.system-message-chat-banner {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
padding: 2px 8px;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
gap: 10px;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
color: var(--secondary-text);
|
|
28
|
+
text-align: center;
|
|
29
|
+
font: var(--label-label-small);
|
|
29
30
|
}
|
|
30
|
-
|
|
@@ -11,11 +11,14 @@
|
|
|
11
11
|
background: var(--incoming-background, #e4e6e8);
|
|
12
12
|
border-radius: 8px;
|
|
13
13
|
flex-shrink: 0;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
&__icon {
|
|
17
19
|
fill: var(--caption);
|
|
18
|
-
|
|
20
|
+
width: 16px;
|
|
21
|
+
height: 16px;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
&__name {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
.settings-item {
|
|
4
4
|
@include applyBorderBox;
|
|
5
|
-
background-color: var(--color-background);
|
|
6
5
|
|
|
7
6
|
&__body {
|
|
8
7
|
display: flex;
|
|
@@ -65,5 +64,10 @@
|
|
|
65
64
|
&__icon {
|
|
66
65
|
width: 24px;
|
|
67
66
|
height: 24px;
|
|
67
|
+
|
|
68
|
+
svg {
|
|
69
|
+
width: 24px;
|
|
70
|
+
height: 24px;
|
|
71
|
+
}
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
@include applyBorderBox;
|
|
5
5
|
|
|
6
6
|
&__label {
|
|
7
|
-
font-family: 'Roboto';
|
|
8
7
|
font-weight: 400;
|
|
9
8
|
font-size: 14px;
|
|
10
9
|
line-height: 20px;
|
|
@@ -12,7 +11,6 @@
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
&__wrapper {
|
|
15
|
-
background-color: var(----color-background);
|
|
16
14
|
|
|
17
15
|
display: flex;
|
|
18
16
|
align-items: center;
|
|
@@ -29,6 +27,9 @@
|
|
|
29
27
|
|
|
30
28
|
&__icon {
|
|
31
29
|
margin-right: 6px;
|
|
30
|
+
padding: 0;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
&__input {
|
|
@@ -36,11 +37,12 @@
|
|
|
36
37
|
border: none;
|
|
37
38
|
outline: none;
|
|
38
39
|
|
|
39
|
-
font-family: 'Roboto';
|
|
40
40
|
font-weight: 400;
|
|
41
41
|
font-size: 16px;
|
|
42
42
|
line-height: 24px;
|
|
43
43
|
letter-spacing: 0.15px;
|
|
44
|
+
background: var(--main-background);
|
|
45
|
+
color: var(--color-font);
|
|
44
46
|
|
|
45
47
|
&:disabled {
|
|
46
48
|
background-color: transparent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.container {
|
|
1
|
+
.qb-container {
|
|
2
2
|
width: 25%;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
padding: 4px 12px;
|
|
8
8
|
opacity: 60% !important;
|
|
9
9
|
border-radius: 4px;
|
|
10
|
-
background-color: var(--
|
|
10
|
+
background-color: var(--caption);
|
|
11
11
|
|
|
12
12
|
&__body {
|
|
13
13
|
padding: 0;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
font-size: 12px;
|
|
17
17
|
line-height: 16px;
|
|
18
18
|
letter-spacing: 0.5px;
|
|
19
|
-
color: var(--
|
|
19
|
+
color: var(--secondary-elements);
|
|
20
20
|
text-align: center;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, createContext } from 'react';
|
|
1
|
+
import React, { ReactNode, createContext } from 'react';
|
|
2
2
|
import { ToastContainer } from 'react-toastify';
|
|
3
3
|
|
|
4
4
|
import 'react-toastify/dist/ReactToastify.css';
|
|
@@ -14,7 +14,7 @@ export default function ToastProvider({ children }: ToastProps) {
|
|
|
14
14
|
return (
|
|
15
15
|
<ToastContext.Provider value={undefined}>
|
|
16
16
|
<ToastContainer
|
|
17
|
-
className="container"
|
|
17
|
+
className="qb-container"
|
|
18
18
|
position="top-center"
|
|
19
19
|
autoClose={3000}
|
|
20
20
|
bodyClassName="qb-toast__body"
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
height: 56px;
|
|
7
7
|
padding: 8px 19px 8px 16px;
|
|
8
8
|
gap: 16px;
|
|
9
|
-
|
|
9
|
+
border-bottom: 1px solid var(--divider);
|
|
10
|
+
|
|
10
11
|
|
|
11
12
|
&--disabled {
|
|
12
13
|
cursor: not-allowed;
|
|
@@ -22,12 +23,19 @@
|
|
|
22
23
|
|
|
23
24
|
&__name {
|
|
24
25
|
margin-left: 16px;
|
|
25
|
-
|
|
26
|
-
font-family: 'Roboto';
|
|
27
26
|
font-weight: 400;
|
|
28
27
|
font-size: 16px;
|
|
29
28
|
line-height: 24px;
|
|
30
29
|
letter-spacing: 0.15px;
|
|
31
30
|
color: var(--main-text);
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
width: 180px;
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@media only screen and (max-width: 980px) {
|
|
38
|
+
width: 130px;
|
|
39
|
+
}
|
|
32
40
|
}
|
|
33
41
|
}
|