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.
Files changed (177) hide show
  1. package/dist/CommonTypes/CommonTypes.d.ts +12 -0
  2. package/dist/Data/source/remote/RemoteDataSource.d.ts +5 -0
  3. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.d.ts +1 -1
  4. package/dist/Presentation/Views/Flow/CreateDialog/CreateDialog.d.ts +1 -0
  5. package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.d.ts +3 -3
  6. package/dist/Presentation/ui-components/Header/Header.d.ts +1 -1
  7. package/dist/index-ui.d.ts +47 -3
  8. package/dist/index-ui.js +25470 -17586
  9. package/dist/index-ui.js.map +1 -1
  10. package/global.d.ts +3 -202
  11. package/package.json +1 -1
  12. package/src/App.scss +5 -0
  13. package/src/App.tsx +58 -33
  14. package/src/CommonTypes/CommonTypes.ts +13 -0
  15. package/src/Data/DefaultConfigurations.ts +4 -0
  16. package/src/Data/source/remote/RemoteDataSource.ts +210 -148
  17. package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -1
  18. package/src/Domain/use_cases/ForwardMessagesUseCase.ts +0 -1
  19. package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -1
  20. package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -2
  21. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -1
  22. package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -1
  23. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -2
  24. package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -1
  25. package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -1
  26. package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -1
  27. package/src/Domain/use_cases/ReplyMessagesUseCase.ts +0 -2
  28. package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -3
  29. package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -26
  30. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -1
  31. package/src/Domain/use_cases/SyncDialogsUseCase.ts +1 -2
  32. package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +0 -2
  33. package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -2
  34. package/src/Domain/use_cases/UploadFileUseCase.ts +0 -2
  35. package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -2
  36. package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -2
  37. package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -3
  38. package/src/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.ts +0 -2
  39. package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -3
  40. package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -3
  41. package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -2
  42. package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -3
  43. package/src/Domain/use_cases/ai/AITranslateWithSDKUseCase.ts +0 -3
  44. package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -1
  45. package/src/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.tsx +1 -1
  46. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.scss +12 -6
  47. package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +4 -2
  48. package/src/Presentation/Views/Dialog/Dialog.scss +7 -1
  49. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.scss +17 -29
  50. package/src/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogListItem/DialogListItem.tsx +8 -13
  51. package/src/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.scss +9 -9
  52. package/src/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.scss +11 -0
  53. package/src/Presentation/Views/Dialog/MessageContextMenu/MessageContextMenu.tsx +3 -2
  54. package/src/Presentation/Views/Dialog/useDialogViewModel.ts +10 -21
  55. package/src/Presentation/Views/DialogInfo/DialogInfo.scss +19 -25
  56. package/src/Presentation/Views/DialogInfo/DialogInfo.tsx +2 -2
  57. package/src/Presentation/Views/DialogInfo/DialogMemberButton/DialogMembersButton.scss +0 -17
  58. package/src/Presentation/Views/DialogInfo/MembersList/MembersList.scss +9 -1
  59. package/src/Presentation/Views/DialogInfo/UsersList/SingleUser/SingleUser.scss +0 -1
  60. package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +2 -4
  61. package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +0 -1
  62. package/src/Presentation/Views/EditDialog/EditDialog.scss +1 -38
  63. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.scss +17 -42
  64. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +45 -39
  65. package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +6 -2
  66. package/src/Presentation/Views/InviteMembers/InviteMembers.scss +4 -33
  67. package/src/Presentation/Views/InviteMembers/InviteMembers.tsx +23 -4
  68. package/src/Presentation/Views/PreviewDialog/PreviewDialog.scss +8 -0
  69. package/src/Presentation/Views/PreviewDialog/PreviewDialog.tsx +8 -5
  70. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.css +5 -10
  71. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -5
  72. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +1 -10
  73. package/src/Presentation/layouts/TestStage/LoginView/Login.scss +6 -3
  74. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +1 -33
  75. package/src/Presentation/themes/styles/_theme_colors_scheme.scss +1 -1
  76. package/src/Presentation/themes/styles/_theme_dark.scss +5 -4
  77. package/src/Presentation/themes/styles/_theme_light.scss +3 -2
  78. package/src/Presentation/ui-components/Avatar/Avatar.scss +8 -5
  79. package/src/Presentation/ui-components/Avatar/Avatar.tsx +2 -1
  80. package/src/Presentation/ui-components/Badge/Badge.tsx +1 -0
  81. package/src/Presentation/ui-components/Button/Button.scss +5 -6
  82. package/src/Presentation/ui-components/Button/Button.tsx +7 -2
  83. package/src/Presentation/ui-components/CheckBox/CheckBox.scss +23 -0
  84. package/src/Presentation/ui-components/CheckBox/CheckBox.tsx +19 -7
  85. package/src/Presentation/ui-components/DialogBanner/DialogBanner.tsx +1 -0
  86. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss +3 -3
  87. package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +3 -3
  88. package/src/Presentation/ui-components/DialogWindow/DialogWindow.scss +7 -4
  89. package/src/Presentation/ui-components/DialogWindow/DialogWindow.tsx +1 -1
  90. package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +1 -1
  91. package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +2 -1
  92. package/src/Presentation/ui-components/Header/Header.scss +9 -2
  93. package/src/Presentation/ui-components/Header/Header.tsx +1 -1
  94. package/src/Presentation/ui-components/Loader/Loader.tsx +1 -0
  95. package/src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss +1 -0
  96. package/src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.tsx +1 -0
  97. package/src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.tsx +1 -0
  98. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss +13 -3
  99. package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.tsx +1 -0
  100. package/src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.tsx +1 -0
  101. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.scss +0 -3
  102. package/src/Presentation/ui-components/Message/FileUrl/FileUrl.tsx +1 -0
  103. package/src/Presentation/ui-components/Message/Message.scss +5 -1
  104. package/src/Presentation/ui-components/MessageInput/MessageInput.scss +5 -1
  105. package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +1 -1
  106. package/src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.tsx +1 -1
  107. package/src/Presentation/ui-components/MessageSeparator/MessageSeparator.scss +13 -13
  108. package/src/Presentation/ui-components/Placeholder/Placeholder.scss +5 -0
  109. package/src/Presentation/ui-components/Placeholder/Placeholder.tsx +1 -1
  110. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss +4 -1
  111. package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx +1 -0
  112. package/src/Presentation/ui-components/SettingsItem/SettingsItem.scss +5 -1
  113. package/src/Presentation/ui-components/SettingsItem/SettingsItem.tsx +1 -1
  114. package/src/Presentation/ui-components/TextField/TextField.scss +5 -3
  115. package/src/Presentation/ui-components/Toast/Toast.scss +3 -3
  116. package/src/Presentation/ui-components/Toast/ToastProvider.tsx +2 -2
  117. package/src/Presentation/ui-components/UserListItem/UserListItem.scss +11 -3
  118. package/src/Presentation/ui-components/UserListItem/UserListItem.tsx +1 -0
  119. package/src/QBconfig.ts +2 -0
  120. package/src/hooks/useQuickBloxUIKit.ts +101 -18
  121. package/src/index-ui.ts +111 -18
  122. package/src/qb-api-calls/index.ts +52 -3
  123. package/storybook-static/{217.3c66ff1e.iframe.bundle.js → 217.07d5c7a3.iframe.bundle.js} +3 -3
  124. package/storybook-static/{217.3c66ff1e.iframe.bundle.js.map → 217.07d5c7a3.iframe.bundle.js.map} +1 -1
  125. package/storybook-static/735.6ee62079.iframe.bundle.js +2 -0
  126. package/storybook-static/{844.6041e1a5.iframe.bundle.js → 844.e8bfd664.iframe.bundle.js} +3 -3
  127. package/storybook-static/{844.6041e1a5.iframe.bundle.js.map → 844.e8bfd664.iframe.bundle.js.map} +1 -1
  128. package/storybook-static/{961.c94da456.iframe.bundle.js → 961.d47fc2bc.iframe.bundle.js} +2 -2
  129. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js +2 -0
  130. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js +2 -0
  131. package/storybook-static/Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js +2 -0
  132. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js +2 -0
  133. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js +2 -0
  134. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js +2 -0
  135. package/storybook-static/Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js +2 -0
  136. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js +2 -0
  137. package/storybook-static/Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js +2 -0
  138. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.be8aa2d9.iframe.bundle.js +1 -0
  139. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js +2 -0
  140. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js +2 -0
  141. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.4f00432b.iframe.bundle.js +1 -0
  142. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js +2 -0
  143. package/storybook-static/iframe.html +2 -2
  144. package/storybook-static/project.json +1 -1
  145. package/storybook-static/{runtime~main.5a7ba727.iframe.bundle.js → runtime~main.17766d00.iframe.bundle.js} +1 -1
  146. package/storybook-static/sb-manager/globals-runtime.js +1 -1
  147. package/storybook-static/735.82f96f8a.iframe.bundle.js +0 -2
  148. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js +0 -2
  149. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js +0 -2
  150. package/storybook-static/Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js +0 -2
  151. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js +0 -2
  152. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js +0 -2
  153. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js +0 -2
  154. package/storybook-static/Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js +0 -2
  155. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js +0 -2
  156. package/storybook-static/Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js +0 -2
  157. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.4aa88de3.iframe.bundle.js +0 -1
  158. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js +0 -2
  159. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js +0 -2
  160. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.5e19f10e.iframe.bundle.js +0 -1
  161. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js +0 -2
  162. /package/storybook-static/{217.3c66ff1e.iframe.bundle.js.LICENSE.txt → 217.07d5c7a3.iframe.bundle.js.LICENSE.txt} +0 -0
  163. /package/storybook-static/{735.82f96f8a.iframe.bundle.js.LICENSE.txt → 735.6ee62079.iframe.bundle.js.LICENSE.txt} +0 -0
  164. /package/storybook-static/{844.6041e1a5.iframe.bundle.js.LICENSE.txt → 844.e8bfd664.iframe.bundle.js.LICENSE.txt} +0 -0
  165. /package/storybook-static/{961.c94da456.iframe.bundle.js.LICENSE.txt → 961.d47fc2bc.iframe.bundle.js.LICENSE.txt} +0 -0
  166. /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
  167. /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
  168. /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
  169. /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
  170. /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
  171. /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
  172. /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
  173. /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
  174. /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
  175. /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
  176. /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
  177. /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: 700;
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(--secondary-background);
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-elements);
57
- color: var(--main-elements);
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(--secondary-background);
80
+ color: var(--system);
82
81
 
83
82
  &:focus {
84
83
  outline: 2px solid var(--error-secondary);
@@ -1,4 +1,9 @@
1
- import { ButtonHTMLAttributes, DetailedHTMLProps, ReactElement } from 'react';
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
- <input
16
- className="qb-checkbox"
17
- type="checkbox"
18
- checked={checked}
19
- disabled={disabled}
20
- onChange={() => onChange?.(!checked)}
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
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ReactComponent as DownSvg } from '../../icons/navigation/down.svg';
2
3
  import './DialogBanner.scss';
3
4
 
@@ -27,7 +27,7 @@
27
27
  justify-content: space-between;
28
28
 
29
29
  &-title {
30
- font: var(--label-label-medium, 500 12px/16px "Roboto", sans-serif);
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, 500 11px/16px "Roboto", sans-serif);
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, 400 12px/16px "Roboto", sans-serif);
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: ReactElement;
8
- title: string;
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: rgba(19, 29, 40, 0.8);
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
- 0 9px 46px 0 rgba(0, 0, 0, 0.08);
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" />
@@ -1,4 +1,4 @@
1
- import {
1
+ import React, {
2
2
  ReactElement,
3
3
  useEffect,
4
4
  useRef,
@@ -1,4 +1,5 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
+
2
3
  import cn from 'classnames';
3
4
 
4
5
  export interface Option {
@@ -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-elements);
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-medium);
57
+ font: var(--title-title-large);
51
58
  overflow: hidden;
52
59
  white-space: nowrap;
53
60
  text-overflow: ellipsis;
@@ -1,4 +1,4 @@
1
- import { Children, ReactElement } from 'react';
1
+ import React, { Children, ReactElement } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { FunctionTypeVoidToVoid } from '../../../CommonTypes/BaseViewModel';
4
4
  import { BackSvg } from '../../icons';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import cn from 'classnames';
2
3
 
3
4
  import { LoaderSvg } from '../../icons';
@@ -39,6 +39,7 @@
39
39
  align-items: flex-end;
40
40
  justify-content: flex-start;
41
41
  position: relative;
42
+ height: 12px;
42
43
 
43
44
  &__rectangle {
44
45
  background: var(--main-elements, #636d78);
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './FileBubble.scss';
2
3
  import FileUrl from '../../FileUrl/FileUrl';
3
4
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './ImageBubble.scss';
2
3
 
3
4
  interface ImageBubbleProps {
@@ -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-tex, #0b1b0f);
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
- border-radius: 22px 22px 22px 0px;
15
- padding: 8px 12px 8px 12px;
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
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
3
  import {
3
4
  HighLightLink,
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './VideoBubble.scss';
2
3
 
3
4
  interface VideoBubbleProps {
@@ -33,9 +33,6 @@
33
33
  justify-content: center;
34
34
  width: 24px;
35
35
  height: 24px;
36
- position: absolute;
37
- left: 4px;
38
- top: 4px;
39
36
  }
40
37
  }
41
38
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ReactComponent as FileSvg } from '../../../icons/media/file.svg';
2
3
  import './FileUrl.scss';
3
4
 
@@ -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(--input-elements);
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,
@@ -49,7 +49,7 @@ const VoiceRecordingProgress: React.FC<VoiceRecordingProgressProps> = ({
49
49
  stopTimer();
50
50
  }, longRec * 1000);
51
51
 
52
- if (timerId === undefined) {
52
+ if (!timerId) {
53
53
  timerId = setInterval(() => {
54
54
  setCurrentTime(Date.now());
55
55
  }, 1000);
@@ -5,26 +5,26 @@
5
5
 
6
6
  background: var(--incoming-background);
7
7
  border-radius: 30px;
8
- padding: 2px 8px 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, 500 11px/16px "Roboto", sans-serif);
15
+ font: var(--label-label-small);
16
+
16
17
  }
17
18
 
18
19
  .system-message-chat-banner {
19
- padding: 2px 8px 2px 8px;
20
- display: flex;
21
- flex-direction: row;
22
- gap: 10px;
23
- align-items: center;
24
- justify-content: center;
25
- flex-shrink: 0;
26
- color: var(--secondary-text);
27
- text-align: center;
28
- font: var(--label-label-small, 500 11px/16px "Roboto", sans-serif);
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
-
@@ -24,6 +24,11 @@
24
24
  margin-bottom: 16px;
25
25
 
26
26
  fill: var(--caption);
27
+
28
+ svg {
29
+ width: 52px;
30
+ height: 52px;
31
+ }
27
32
  }
28
33
 
29
34
  &__retry {
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  import { RefreshSvg } from '../../icons';
@@ -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
- padding: 6px;
20
+ width: 16px;
21
+ height: 16px;
19
22
  }
20
23
 
21
24
  &__name {
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import cn from 'classnames';
2
3
  import { TextDocumentSvg, AudioFileSvg, PlaySvg } from '../../icons';
3
4
  import './PreviewFileMessage.scss';
@@ -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
  }
@@ -1,4 +1,4 @@
1
- import { ReactElement, useState } from 'react';
1
+ import React, { ReactElement, useState } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  import { DownSvg } from '../../icons';
@@ -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(--toast-color);
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(--main-background);
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
- background-color: var(--color-background);
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
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import cn from 'classnames';
2
3
 
3
4
  import Avatar from '../Avatar/Avatar';