quickblox-react-ui-kit 0.1.0 → 0.1.2
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/README.md +288 -255
- package/dist/Presentation/Views/Dialogs/Dialogs.d.ts +3 -0
- package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +3 -1
- package/dist/Presentation/{components/UI → assets}/ DefaultThemes/DefaultTheme.d.ts +2 -2
- package/dist/Presentation/assets/DarkTheme.d.ts +2 -2
- package/dist/Presentation/assets/LightTheme.d.ts +2 -2
- package/dist/Presentation/assets/{Theme.d.ts → UiKitTheme.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts +2 -2
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/{useMessagesViewModelWithMockUseCase.d.ts → useMessagesViewModel.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.d.ts +2 -2
- package/dist/Presentation/components/layouts/Desktop/{DesktopLayoutForMockModels.d.ts → DesktopLayout.d.ts} +2 -2
- package/dist/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.d.ts +7 -0
- package/dist/index-ui.d.ts +6 -5
- package/dist/index-ui.js +49 -93
- package/package.json +9 -2
- package/.prettierignore +0 -4
- package/.prettierrc +0 -8
- package/dist/MyButton/MyButton.d.ts +0 -9
- package/dist/MyInput/MyInput.d.ts +0 -10
- package/dist/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.d.ts +0 -4
- package/dist/Presentation/components/layouts/Desktop/Desktop.d.ts +0 -4
- package/dist/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.d.ts +0 -3
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -47
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/quickblox.js +0 -54609
- package/public/robots.txt +0 -3
- package/src/App.scss +0 -0
- package/src/App.tsx +0 -230
- package/src/CommonTypes/FunctionResult.ts +0 -4
- package/src/Data/Stubs.ts +0 -1131
- package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
- package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
- package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
- package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
- package/src/Data/dto/file/LocalFileDTO.ts +0 -26
- package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
- package/src/Data/dto/message/LocalMessageDTO.ts +0 -51
- package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
- package/src/Data/dto/message/RemoteMessageDTO.ts +0 -51
- package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
- package/src/Data/dto/user/LocalUserDTO.ts +0 -37
- package/src/Data/dto/user/LocalUsersDTO.ts +0 -23
- package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
- package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
- package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -742
- package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -776
- package/src/Data/mapper/FileLocalDTOMapper.ts +0 -253
- package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -265
- package/src/Data/mapper/IMapper.ts +0 -14
- package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -425
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -430
- package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
- package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
- package/src/Data/repository/ConnectionRepository.ts +0 -128
- package/src/Data/repository/DialogsRepository.ts +0 -422
- package/src/Data/repository/EventMessagesRepository.ts +0 -291
- package/src/Data/repository/FileRepository.ts +0 -110
- package/src/Data/repository/MessagesRepository.ts +0 -288
- package/src/Data/repository/UsersRepository.ts +0 -324
- package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
- package/src/Data/source/exception/MapperDTOException.ts +0 -19
- package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
- package/src/Data/source/exception/RepositoryException.ts +0 -27
- package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -262
- package/src/Data/source/local/ILocalDataSource.ts +0 -45
- package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
- package/src/Data/source/local/LocalDataSource.ts +0 -377
- package/src/Data/source/local/LocalFileDataSource.ts +0 -22
- package/src/Data/source/remote/IRemoteDataSource.ts +0 -112
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -401
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -276
- package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -399
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
- package/src/Data/source/remote/RemoteDataSource.ts +0 -1278
- package/src/Domain/entity/Chat.ts +0 -4
- package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
- package/src/Domain/entity/CustomDataEntity.ts +0 -3
- package/src/Domain/entity/DialogEntity.ts +0 -15
- package/src/Domain/entity/DialogEventInfo.ts +0 -15
- package/src/Domain/entity/DialogTypes.ts +0 -7
- package/src/Domain/entity/EventMessageType.ts +0 -7
- package/src/Domain/entity/FileEntity.ts +0 -11
- package/src/Domain/entity/FileTypes.ts +0 -9
- package/src/Domain/entity/GroupDialogEntity.ts +0 -54
- package/src/Domain/entity/LastMessageEntity.ts +0 -5
- package/src/Domain/entity/MessageEntity.ts +0 -25
- package/src/Domain/entity/NotificationTypes.ts +0 -7
- package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
- package/src/Domain/entity/PublicDialogEntity.ts +0 -72
- package/src/Domain/entity/UserEntity.ts +0 -22
- package/src/Domain/exception/domain/DomainExecption.ts +0 -5
- package/src/Domain/repository/IDialogsRepository.ts +0 -40
- package/src/Domain/repository/IFileRepository.ts +0 -9
- package/src/Domain/repository/IMessagesRepository.ts +0 -28
- package/src/Domain/repository/IUsersRepository.ts +0 -13
- package/src/Domain/repository/Pagination.ts +0 -48
- package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -73
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -45
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -28
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -109
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -103
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -26
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -141
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -69
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -61
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -246
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -65
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
- package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
- package/src/Domain/use_cases/base/IUseCase.ts +0 -5
- package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -143
- package/src/MyButton/MyButton.scss +0 -11
- package/src/MyButton/MyButton.tsx +0 -25
- package/src/MyInput/MyInput.scss +0 -9
- package/src/MyInput/MyInput.tsx +0 -36
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Base/BaseViewModel.ts +0 -66
- package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -187
- package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -23
- package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -66
- package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -372
- package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -136
- package/src/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.ts +0 -345
- package/src/Presentation/Views/Navigation/More.svg +0 -7
- package/src/Presentation/assets/DarkTheme.ts +0 -58
- package/src/Presentation/assets/LightTheme.ts +0 -58
- package/src/Presentation/assets/Theme.ts +0 -143
- package/src/Presentation/assets/ThemeScheme.ts +0 -83
- package/src/Presentation/assets/fonts/.gitkeep +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
- package/src/Presentation/assets/img/bee-img.png +0 -0
- package/src/Presentation/assets/styles/_fonts.scss +0 -32
- package/src/Presentation/assets/styles/_reset-styles.scss +0 -435
- package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
- package/src/Presentation/assets/styles/_theme_dark.scss +0 -33
- package/src/Presentation/assets/styles/_theme_light.scss +0 -33
- package/src/Presentation/assets/styles/_variables.scss +0 -2
- package/src/Presentation/components/Button.js +0 -5
- package/src/Presentation/components/Navbar.tsx +0 -45
- package/src/Presentation/components/TextInput.js +0 -10
- package/src/Presentation/components/UI/ DefaultThemes/CustomTheme.ts +0 -13
- package/src/Presentation/components/UI/ DefaultThemes/DefaultTheme.ts +0 -58
- package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.scss +0 -127
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +0 -45
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +0 -77
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +0 -429
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +0 -646
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +0 -26
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +0 -95
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +0 -60
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +0 -65
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +0 -13
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +0 -81
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +0 -183
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -262
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +0 -32
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +0 -67
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +0 -112
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +0 -146
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -374
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +0 -18
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -113
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -87
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +0 -12
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -37
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
- package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +0 -116
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +0 -128
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +0 -27
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -137
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -327
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -794
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +0 -33
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -86
- package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModelWithMockUseCase.ts +0 -452
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -100
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -405
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +0 -89
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -72
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -41
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -41
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -6
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -24
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -95
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -97
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -97
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -46
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
- package/src/Presentation/components/layouts/Desktop/Desktop.tsx +0 -103
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
- package/src/Presentation/components/layouts/Desktop/DesktopLayoutForMockModels.tsx +0 -31
- package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -116
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
- package/src/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.tsx +0 -209
- package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +0 -71
- package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +0 -131
- package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
- package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +0 -39
- package/src/Presentation/components/providers/ProviderProps.ts +0 -5
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -255
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -38
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext.ts +0 -82
- package/src/QBconfig.ts +0 -41
- package/src/index-ui.ts +0 -60
- package/src/index.scss +0 -74
- package/src/index.tsx +0 -25
- package/src/logo.svg +0 -1
- package/src/qb-api-calls/index.ts +0 -543
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/utils/DateTimeFormatter.ts +0 -35
- package/src/utils/parse.ts +0 -74
- package/tsconfig.json +0 -33
- package/typedoc.json +0 -4
- package/webpack.config.js +0 -56
- /package/dist/Presentation/{components/UI → assets}/ DefaultThemes/CustomTheme.d.ts +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
@import "../../../../../index";
|
|
2
|
-
|
|
3
|
-
$preview-dialog-color-divider: var(--color-divider);
|
|
4
|
-
$row-center-container-base-font-size: 12px;
|
|
5
|
-
$row-center-container-base-font-line-height: 24px;
|
|
6
|
-
$row--main-container-min-height: 72px;
|
|
7
|
-
$row--main-container-min-width: 320px;
|
|
8
|
-
$row--main-container-text-title-width: 120px;
|
|
9
|
-
$row--main-container-text-content-long-width: 200px;
|
|
10
|
-
$row--main-container-text-content-short-width: 180px;
|
|
11
|
-
|
|
12
|
-
$preview-dialog-avatar-wrapper-background-color-public: var(--color-background-modal);
|
|
13
|
-
$preview-dialog-avatar-wrapper-background-color-private: var(--caption);
|
|
14
|
-
|
|
15
|
-
.preview-dialog-container{
|
|
16
|
-
height: $row--main-container-min-height;
|
|
17
|
-
min-height: $row--main-container-min-height;
|
|
18
|
-
min-width: $row--main-container-min-width;
|
|
19
|
-
|
|
20
|
-
padding: 8px 16px;
|
|
21
|
-
//padding-left: 16px;
|
|
22
|
-
//padding-right: 16px;
|
|
23
|
-
//padding-top: 8px;
|
|
24
|
-
//padding-bottom: 8px;
|
|
25
|
-
|
|
26
|
-
border: 1px solid $preview-dialog-color-divider;
|
|
27
|
-
&.preview-selected{
|
|
28
|
-
background-color: $preview-dialog-color-divider;
|
|
29
|
-
}
|
|
30
|
-
&__text-title{
|
|
31
|
-
text-align: left;
|
|
32
|
-
max-width: $row--main-container-text-title-width;
|
|
33
|
-
text-overflow: ellipsis;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
}
|
|
37
|
-
&__text {
|
|
38
|
-
position: relative;
|
|
39
|
-
font-size: $row-center-container-base-font-size;
|
|
40
|
-
font-family: 'Roboto';
|
|
41
|
-
color: var(--color-font);
|
|
42
|
-
width: $row--main-container-text-content-long-width; /* Could be anything you like. */
|
|
43
|
-
}
|
|
44
|
-
&__text-left {
|
|
45
|
-
position: relative;
|
|
46
|
-
font-size: $row-center-container-base-font-size;
|
|
47
|
-
font-family: 'Roboto';
|
|
48
|
-
color: var(--color-font);
|
|
49
|
-
width: $row--main-container-text-content-short-width; /* Could be anything you like. */
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&__text-concat {
|
|
53
|
-
position: relative;
|
|
54
|
-
display: inline-block;
|
|
55
|
-
word-wrap: break-word;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
max-height: $row-center-container-base-font-line-height; /* (Number of lines you want visible) * (line-height) */
|
|
58
|
-
line-height: $row-center-container-base-font-size;
|
|
59
|
-
text-align:justify;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
//&__text.ellipsis::after {
|
|
63
|
-
// content: "...";
|
|
64
|
-
// position: absolute;
|
|
65
|
-
// right: -6px;
|
|
66
|
-
// // bottom: -1px;
|
|
67
|
-
//}
|
|
68
|
-
//&__text-left.ellipsis::after {
|
|
69
|
-
// content: "...";
|
|
70
|
-
// position: absolute;
|
|
71
|
-
// right: -6px;
|
|
72
|
-
// // bottom: -1px;
|
|
73
|
-
//}
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.avatar-wrapper{
|
|
78
|
-
background: $preview-dialog-avatar-wrapper-background-color-private;
|
|
79
|
-
&.public_avatar{
|
|
80
|
-
background: $preview-dialog-avatar-wrapper-background-color-public;
|
|
81
|
-
}
|
|
82
|
-
width: 55px;
|
|
83
|
-
height: 55px;
|
|
84
|
-
border-radius: 50%;
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
text-align: center;
|
|
88
|
-
margin: 0 auto;
|
|
89
|
-
&.icon_colors{
|
|
90
|
-
color: var(--color-icon);
|
|
91
|
-
background-color: var(--secondary-text);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.badge-text-style{
|
|
95
|
-
align-items: center;
|
|
96
|
-
text-align: center;
|
|
97
|
-
margin: 0 auto;
|
|
98
|
-
padding-top: 2px;
|
|
99
|
-
}
|
|
100
|
-
|
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import './PreviewDialog.scss';
|
|
4
|
-
import ColumnContainer from '../../../containers/ColumnContainer/ColumnContainer';
|
|
5
|
-
import RowCenterContainer from '../../../containers/RowCenterContainer/RowCenterContainer';
|
|
6
|
-
import PublicChannel from '../../svgs/Icons/Contents/PublicChannel';
|
|
7
|
-
import { IconTheme } from '../../svgs/Icons/IconsCommonTypes';
|
|
8
|
-
import ThemeScheme from '../../../../assets/ThemeScheme';
|
|
9
|
-
import { DialogType } from '../../../../../Domain/entity/DialogTypes';
|
|
10
|
-
import User from '../../svgs/Icons/Contents/User';
|
|
11
|
-
import GroupChat from '../../svgs/Icons/Contents/GroupChat';
|
|
12
|
-
import RowLeftContainer from '../../../containers/RowLeftContainer/RowLeftContainer';
|
|
13
|
-
import PreviewDialogViewModel from './PreviewDialogViewModel';
|
|
14
|
-
import NotifyOff from '../../svgs/Icons/Toggle/NotifyOff';
|
|
15
|
-
import EditDots from '../../svgs/Icons/Actions/EditDots';
|
|
16
|
-
import Theme from '../../../../assets/Theme';
|
|
17
|
-
|
|
18
|
-
export type ThemeNames = 'light' | 'dark' | 'custom';
|
|
19
|
-
type PreviewDialogsColorTheme = {
|
|
20
|
-
backgroundColorMainSection: string;
|
|
21
|
-
backgroundColorAvatarSection: string;
|
|
22
|
-
colorAvatarIcon: string;
|
|
23
|
-
fontColorTitle: string;
|
|
24
|
-
fontColorMessage: string;
|
|
25
|
-
divider: string;
|
|
26
|
-
};
|
|
27
|
-
type PreviewDialogsTheme = {
|
|
28
|
-
themeName?: ThemeNames;
|
|
29
|
-
colorTheme?: Theme;
|
|
30
|
-
selected: boolean;
|
|
31
|
-
muted: boolean;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type PreviewDialogSettings = {
|
|
35
|
-
showAvatarSection: boolean;
|
|
36
|
-
showTitleSection: boolean;
|
|
37
|
-
showMessageSection: boolean;
|
|
38
|
-
|
|
39
|
-
showPublicIconInTitle: boolean;
|
|
40
|
-
showNotifyIconInTitle: boolean;
|
|
41
|
-
showTimeInTitle: boolean;
|
|
42
|
-
showBadgePlaceholderInMessage: boolean;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
type PreviewDialogsProps = {
|
|
46
|
-
typeDialog: DialogType;
|
|
47
|
-
dialogAvatar?: JSX.Element;
|
|
48
|
-
dialogViewModel?: PreviewDialogViewModel;
|
|
49
|
-
title?: string;
|
|
50
|
-
previewMessage?: string;
|
|
51
|
-
unreadMessageCount?: number;
|
|
52
|
-
message_date_time_sent?: string;
|
|
53
|
-
theme?: PreviewDialogsTheme;
|
|
54
|
-
additionalSettings?: PreviewDialogSettings;
|
|
55
|
-
};
|
|
56
|
-
// eslint-disable-next-line react/function-component-definition
|
|
57
|
-
const PreviewDialog: React.FC<PreviewDialogsProps> = ({
|
|
58
|
-
typeDialog,
|
|
59
|
-
dialogViewModel,
|
|
60
|
-
dialogAvatar,
|
|
61
|
-
title,
|
|
62
|
-
previewMessage,
|
|
63
|
-
unreadMessageCount,
|
|
64
|
-
message_date_time_sent,
|
|
65
|
-
theme = undefined,
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
|
-
additionalSettings = undefined,
|
|
68
|
-
}: PreviewDialogsProps) => {
|
|
69
|
-
// const colorIcon = window
|
|
70
|
-
// .getComputedStyle(document.documentElement)
|
|
71
|
-
// .getPropertyValue('--color-icon')
|
|
72
|
-
// .trim();
|
|
73
|
-
|
|
74
|
-
const colorIcon = 'var(--color-icon)';
|
|
75
|
-
|
|
76
|
-
const defaultLightTheme: PreviewDialogsColorTheme = {
|
|
77
|
-
backgroundColorMainSection: 'var(--main-background)', // ThemeScheme.primary_a_100,
|
|
78
|
-
backgroundColorAvatarSection: 'var(--disabled-elements)', // ThemeScheme.secondary_100,
|
|
79
|
-
colorAvatarIcon: 'var(--secondary-text)', // ThemeScheme.secondary_300,
|
|
80
|
-
fontColorMessage: 'var(--input-elements)', // ThemeScheme.secondary_500,
|
|
81
|
-
fontColorTitle: 'var(--main-text)', // ThemeScheme.secondary_900,
|
|
82
|
-
divider: 'var(--divider)', // ThemeScheme.primary_50,
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
const darkDefaultTheme: PreviewDialogsColorTheme = {
|
|
86
|
-
backgroundColorMainSection: 'var(--main-background)', // ThemeScheme.primary_a_100,
|
|
87
|
-
backgroundColorAvatarSection: 'var(--disabled-elements)', // ThemeScheme.secondary_100,
|
|
88
|
-
colorAvatarIcon: 'var(--secondary-text)', // ThemeScheme.secondary_300,
|
|
89
|
-
fontColorMessage: 'var(--input-elements)', // ThemeScheme.secondary_500,
|
|
90
|
-
fontColorTitle: 'var(--main-text)', // ThemeScheme.secondary_900,
|
|
91
|
-
divider: 'var(--color-divider)', // ThemeScheme.secondary_400,
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const hoverTheme: PreviewDialogsColorTheme = darkDefaultTheme;
|
|
95
|
-
|
|
96
|
-
if (theme?.themeName === 'light') {
|
|
97
|
-
hoverTheme.backgroundColorMainSection = 'var(--chat-input)'; // ThemeScheme.primary_a_200;
|
|
98
|
-
hoverTheme.divider = 'var(--divider)'; // ThemeScheme.primary_50;
|
|
99
|
-
} else {
|
|
100
|
-
hoverTheme.backgroundColorMainSection = 'var(--field-border)'; // ThemeScheme.secondary_200;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const workTheme: PreviewDialogsColorTheme =
|
|
104
|
-
theme?.themeName === 'light' ? defaultLightTheme : darkDefaultTheme;
|
|
105
|
-
|
|
106
|
-
if (theme?.colorTheme) {
|
|
107
|
-
workTheme.colorAvatarIcon = theme?.colorTheme.secondaryText();
|
|
108
|
-
workTheme.backgroundColorAvatarSection =
|
|
109
|
-
theme?.colorTheme.disabledElements();
|
|
110
|
-
workTheme.backgroundColorMainSection = theme?.colorTheme.mainBackground();
|
|
111
|
-
workTheme.fontColorMessage = theme?.colorTheme.inputElements();
|
|
112
|
-
workTheme.fontColorTitle = theme?.colorTheme.mainText();
|
|
113
|
-
workTheme.divider = theme?.colorTheme.divider();
|
|
114
|
-
hoverTheme.backgroundColorMainSection = 'var(--field-border)'; // ThemeScheme.secondary_200;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const avatarSectionStyles = {
|
|
118
|
-
backgroundColor: `${workTheme.backgroundColorAvatarSection}`,
|
|
119
|
-
};
|
|
120
|
-
const titleDialogStyles = theme?.colorTheme
|
|
121
|
-
? {
|
|
122
|
-
border: `1px solid ${workTheme.divider}`,
|
|
123
|
-
backgroundColor: `${workTheme.backgroundColorMainSection}`,
|
|
124
|
-
color: `${workTheme.fontColorTitle}`,
|
|
125
|
-
}
|
|
126
|
-
: {};
|
|
127
|
-
|
|
128
|
-
const messageDialogStyles = theme?.colorTheme
|
|
129
|
-
? { color: `${workTheme.colorAvatarIcon}` }
|
|
130
|
-
: {};
|
|
131
|
-
|
|
132
|
-
const publicIconTheme: IconTheme = {
|
|
133
|
-
color: colorIcon || ThemeScheme.primary_400,
|
|
134
|
-
width: '42',
|
|
135
|
-
height: '42',
|
|
136
|
-
};
|
|
137
|
-
const itemTheme: IconTheme = {
|
|
138
|
-
color: workTheme.colorAvatarIcon,
|
|
139
|
-
width: '42',
|
|
140
|
-
height: '42',
|
|
141
|
-
};
|
|
142
|
-
const previewDialogContainerStyles = [
|
|
143
|
-
'preview-dialog-container',
|
|
144
|
-
theme && theme.selected ? 'preview-selected' : '',
|
|
145
|
-
].join(' ');
|
|
146
|
-
|
|
147
|
-
const avatarWrapperStyles = [
|
|
148
|
-
'avatar-wrapper',
|
|
149
|
-
typeDialog === DialogType.public ? 'public_avatar' : '',
|
|
150
|
-
].join(' ');
|
|
151
|
-
const textWrapperContainer = [
|
|
152
|
-
unreadMessageCount && unreadMessageCount > 0
|
|
153
|
-
? 'preview-dialog-container__text-left'
|
|
154
|
-
: 'preview-dialog-container__text',
|
|
155
|
-
previewMessage?.length && previewMessage?.length > 40 ? 'ellipsis' : '',
|
|
156
|
-
].join(' ');
|
|
157
|
-
let avatar: JSX.Element;
|
|
158
|
-
|
|
159
|
-
switch (typeDialog) {
|
|
160
|
-
case DialogType.public:
|
|
161
|
-
avatar = (
|
|
162
|
-
<PublicChannel
|
|
163
|
-
color={publicIconTheme.color}
|
|
164
|
-
width={publicIconTheme.width}
|
|
165
|
-
height={publicIconTheme.height}
|
|
166
|
-
/>
|
|
167
|
-
);
|
|
168
|
-
break;
|
|
169
|
-
case DialogType.group:
|
|
170
|
-
avatar = (
|
|
171
|
-
<GroupChat
|
|
172
|
-
color={itemTheme.color}
|
|
173
|
-
width={itemTheme.width}
|
|
174
|
-
height={itemTheme.height}
|
|
175
|
-
/>
|
|
176
|
-
);
|
|
177
|
-
break;
|
|
178
|
-
case DialogType.private:
|
|
179
|
-
avatar = (
|
|
180
|
-
<User
|
|
181
|
-
color={itemTheme.color}
|
|
182
|
-
width={itemTheme.width}
|
|
183
|
-
height={itemTheme.height}
|
|
184
|
-
/>
|
|
185
|
-
);
|
|
186
|
-
break;
|
|
187
|
-
default:
|
|
188
|
-
avatar = (
|
|
189
|
-
<GroupChat
|
|
190
|
-
color={itemTheme.color}
|
|
191
|
-
width={itemTheme.width}
|
|
192
|
-
height={itemTheme.height}
|
|
193
|
-
/>
|
|
194
|
-
);
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
avatar = dialogAvatar || avatar;
|
|
198
|
-
const [haveHover, setHaveHover] = React.useState(false);
|
|
199
|
-
|
|
200
|
-
const avatarSectionContainer = {
|
|
201
|
-
flexBasis: '56px',
|
|
202
|
-
minWidth: '56px',
|
|
203
|
-
maxWidth: '56px',
|
|
204
|
-
minHeight: '56px',
|
|
205
|
-
maxHeight: '56px',
|
|
206
|
-
};
|
|
207
|
-
const titleContainer = {
|
|
208
|
-
flexBasis: '150px',
|
|
209
|
-
minHeight: '20px',
|
|
210
|
-
maxHeight: '20px',
|
|
211
|
-
maxWidth: '150px',
|
|
212
|
-
minWidth: '150px',
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
const badgeContainer = {
|
|
216
|
-
flexBasis: '18px',
|
|
217
|
-
minHeight: '29px',
|
|
218
|
-
maxHeight: '29px',
|
|
219
|
-
maxWidth: '18px',
|
|
220
|
-
minWidth: '18px',
|
|
221
|
-
};
|
|
222
|
-
const badgeItemStyle = {
|
|
223
|
-
width: '19px',
|
|
224
|
-
height: '20px',
|
|
225
|
-
borderRadius: '50%',
|
|
226
|
-
backgroundColor: `${
|
|
227
|
-
publicIconTheme.color ? publicIconTheme.color : 'blue'
|
|
228
|
-
}`,
|
|
229
|
-
color: 'white',
|
|
230
|
-
fontSize: '12px',
|
|
231
|
-
lineHeight: '16px',
|
|
232
|
-
};
|
|
233
|
-
const hoverItemStyle = {
|
|
234
|
-
width: '19px',
|
|
235
|
-
height: '20px',
|
|
236
|
-
borderRadius: '50%',
|
|
237
|
-
color: 'white',
|
|
238
|
-
fontSize: '12px',
|
|
239
|
-
lineHeight: '16px',
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
const messageMinContainer = {
|
|
243
|
-
flexBasis: '182px',
|
|
244
|
-
minHeight: '29px',
|
|
245
|
-
maxHeight: '29px',
|
|
246
|
-
maxWidth: '182px',
|
|
247
|
-
minWidth: '182px',
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
const messageMaxContainer = {
|
|
251
|
-
flexBasis: '182px',
|
|
252
|
-
minHeight: '29px',
|
|
253
|
-
maxHeight: '29px',
|
|
254
|
-
maxWidth: '182px',
|
|
255
|
-
minWidth: '182px',
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
return (
|
|
259
|
-
<div
|
|
260
|
-
onMouseEnter={() => setHaveHover(true)}
|
|
261
|
-
onMouseLeave={() => setHaveHover(false)}
|
|
262
|
-
style={
|
|
263
|
-
haveHover
|
|
264
|
-
? {
|
|
265
|
-
...titleDialogStyles,
|
|
266
|
-
background: hoverTheme.backgroundColorMainSection,
|
|
267
|
-
border: `1px solid ${hoverTheme.divider}`,
|
|
268
|
-
}
|
|
269
|
-
: titleDialogStyles
|
|
270
|
-
}
|
|
271
|
-
className={previewDialogContainerStyles}
|
|
272
|
-
onClick={() => {
|
|
273
|
-
if (dialogViewModel && dialogViewModel.itemClickActionHandler) {
|
|
274
|
-
const it = dialogViewModel?.item;
|
|
275
|
-
|
|
276
|
-
dialogViewModel.itemClickActionHandler(it);
|
|
277
|
-
}
|
|
278
|
-
}}
|
|
279
|
-
onTouchStart={() => {
|
|
280
|
-
if (dialogViewModel && dialogViewModel.itemTouchActionHandler) {
|
|
281
|
-
const it = dialogViewModel?.item;
|
|
282
|
-
|
|
283
|
-
dialogViewModel.itemTouchActionHandler(it);
|
|
284
|
-
}
|
|
285
|
-
}}
|
|
286
|
-
>
|
|
287
|
-
<RowCenterContainer
|
|
288
|
-
minWidthContainer="288px"
|
|
289
|
-
minHeightContainer="56px"
|
|
290
|
-
gapBetweenItem="16px"
|
|
291
|
-
LeftItem={
|
|
292
|
-
<div style={avatarSectionStyles} className={avatarWrapperStyles}>
|
|
293
|
-
<div
|
|
294
|
-
style={{
|
|
295
|
-
margin: '0 auto',
|
|
296
|
-
}}
|
|
297
|
-
>
|
|
298
|
-
<div>{avatar}</div>
|
|
299
|
-
</div>
|
|
300
|
-
</div>
|
|
301
|
-
}
|
|
302
|
-
LeftContainerSize={avatarSectionContainer}
|
|
303
|
-
CenterItem={
|
|
304
|
-
<ColumnContainer gapBetweenItem="3px" maxWidth="213px">
|
|
305
|
-
<RowLeftContainer
|
|
306
|
-
RightItem={
|
|
307
|
-
<div style={{ textAlign: 'right' }}>
|
|
308
|
-
{!haveHover ? message_date_time_sent : ''}
|
|
309
|
-
</div>
|
|
310
|
-
}
|
|
311
|
-
CenterContainerSize={titleContainer}
|
|
312
|
-
CenterItem={
|
|
313
|
-
<div className="row-left-layout-main-container">
|
|
314
|
-
{typeDialog === DialogType.public && (
|
|
315
|
-
<div>
|
|
316
|
-
<PublicChannel
|
|
317
|
-
color={publicIconTheme.color}
|
|
318
|
-
width="20px"
|
|
319
|
-
height="20px"
|
|
320
|
-
applyZoom
|
|
321
|
-
/>
|
|
322
|
-
</div>
|
|
323
|
-
)}
|
|
324
|
-
<div className="preview-dialog-container__text-title">
|
|
325
|
-
{title}
|
|
326
|
-
</div>
|
|
327
|
-
{theme?.muted && (
|
|
328
|
-
<div>
|
|
329
|
-
<NotifyOff
|
|
330
|
-
color={publicIconTheme.color}
|
|
331
|
-
width="20px"
|
|
332
|
-
height="20px"
|
|
333
|
-
applyZoom
|
|
334
|
-
/>
|
|
335
|
-
</div>
|
|
336
|
-
)}
|
|
337
|
-
</div>
|
|
338
|
-
}
|
|
339
|
-
/>
|
|
340
|
-
{haveHover ? (
|
|
341
|
-
<RowLeftContainer
|
|
342
|
-
gapBetweenItem="7px"
|
|
343
|
-
RightContainerSize={badgeContainer}
|
|
344
|
-
RightItem={
|
|
345
|
-
<div>
|
|
346
|
-
<div style={hoverItemStyle}>
|
|
347
|
-
<EditDots />
|
|
348
|
-
</div>
|
|
349
|
-
</div>
|
|
350
|
-
}
|
|
351
|
-
CenterContainerSize={messageMinContainer}
|
|
352
|
-
CenterItem={
|
|
353
|
-
<div className="preview-dialog-container__text-left">
|
|
354
|
-
<span className="preview-dialog-container__text-concat">
|
|
355
|
-
{previewMessage}
|
|
356
|
-
</span>
|
|
357
|
-
</div>
|
|
358
|
-
}
|
|
359
|
-
/>
|
|
360
|
-
) : (
|
|
361
|
-
<RowLeftContainer
|
|
362
|
-
gapBetweenItem="7px"
|
|
363
|
-
RightContainerSize={badgeContainer}
|
|
364
|
-
RightItem={
|
|
365
|
-
unreadMessageCount && (
|
|
366
|
-
<div>
|
|
367
|
-
<div className="badge-text-style" style={badgeItemStyle}>
|
|
368
|
-
{unreadMessageCount &&
|
|
369
|
-
unreadMessageCount.toString().length > 1
|
|
370
|
-
? '9+'
|
|
371
|
-
: unreadMessageCount}
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
)
|
|
375
|
-
}
|
|
376
|
-
CenterContainerSize={
|
|
377
|
-
unreadMessageCount && unreadMessageCount > 0
|
|
378
|
-
? messageMinContainer
|
|
379
|
-
: messageMaxContainer
|
|
380
|
-
}
|
|
381
|
-
CenterItem={
|
|
382
|
-
<div
|
|
383
|
-
style={messageDialogStyles}
|
|
384
|
-
className={textWrapperContainer}
|
|
385
|
-
>
|
|
386
|
-
<span className="preview-d ialog-container__text-concat">
|
|
387
|
-
{previewMessage}
|
|
388
|
-
</span>
|
|
389
|
-
</div>
|
|
390
|
-
}
|
|
391
|
-
/>
|
|
392
|
-
)}
|
|
393
|
-
</ColumnContainer>
|
|
394
|
-
}
|
|
395
|
-
CenterContainerSize={{
|
|
396
|
-
flexBasis: '50px',
|
|
397
|
-
minHeight: '50px',
|
|
398
|
-
maxHeight: '50px',
|
|
399
|
-
}}
|
|
400
|
-
/>
|
|
401
|
-
</div>
|
|
402
|
-
);
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
export default PreviewDialog;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import BaseViewModel, {
|
|
2
|
-
FunctionTypeViewModelToVoid,
|
|
3
|
-
} from '../../../../Views/Base/BaseViewModel';
|
|
4
|
-
import { DialogEntity } from '../../../../../Domain/entity/DialogEntity';
|
|
5
|
-
|
|
6
|
-
export default class PreviewDialogViewModel extends BaseViewModel<DialogEntity> {
|
|
7
|
-
get item(): BaseViewModel<DialogEntity> {
|
|
8
|
-
return this;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
protected _isSelected: boolean;
|
|
12
|
-
|
|
13
|
-
get isSelected(): boolean {
|
|
14
|
-
return this._isSelected;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
set isSelected(value: boolean) {
|
|
18
|
-
this._isSelected = value;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
constructor(
|
|
22
|
-
itemClickActionHandler:
|
|
23
|
-
| FunctionTypeViewModelToVoid<DialogEntity>
|
|
24
|
-
| undefined,
|
|
25
|
-
itemTouchActionHandler:
|
|
26
|
-
| FunctionTypeViewModelToVoid<DialogEntity>
|
|
27
|
-
| undefined,
|
|
28
|
-
// id: number,
|
|
29
|
-
// name: string,
|
|
30
|
-
dialogEntity: DialogEntity,
|
|
31
|
-
) {
|
|
32
|
-
// super(id, name, dialogEntity);
|
|
33
|
-
super(dialogEntity);
|
|
34
|
-
this.itemClickActionHandler = itemClickActionHandler;
|
|
35
|
-
this.itemTouchActionHandler = itemTouchActionHandler;
|
|
36
|
-
this._isSelected = false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
public itemClickActionHandler?: FunctionTypeViewModelToVoid<DialogEntity>;
|
|
40
|
-
|
|
41
|
-
public itemTouchActionHandler?: FunctionTypeViewModelToVoid<DialogEntity>;
|
|
42
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
$yesno-container-background-color: var(--main-background);
|
|
2
|
-
$yesno-container-message-text-color: var(--caption);
|
|
3
|
-
$yesno-container-divider: var(--divider);
|
|
4
|
-
|
|
5
|
-
.yesno-container-wrapper {
|
|
6
|
-
min-width: 336px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.yesno-container {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-flow: column nowrap;
|
|
12
|
-
min-width: 380px;
|
|
13
|
-
min-height: 176px;
|
|
14
|
-
margin: 0 auto;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
gap: 16px;
|
|
18
|
-
background-color: $yesno-container-background-color;
|
|
19
|
-
|
|
20
|
-
&__message-text {
|
|
21
|
-
min-height: 24px;
|
|
22
|
-
font-family: 'Roboto';
|
|
23
|
-
font-style: normal;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
line-height: 24px;
|
|
27
|
-
text-align: center;
|
|
28
|
-
letter-spacing: 0.15px;
|
|
29
|
-
color: $yesno-container-message-text-color;
|
|
30
|
-
}
|
|
31
|
-
&__footer{
|
|
32
|
-
//border: 2px solid brown;
|
|
33
|
-
min-width: 336px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import './YesNoQuestion.scss';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { FunctionTypeVoidToVoid } from '../../../../Views/Base/BaseViewModel';
|
|
4
|
-
import ColumnContainer from '../../../containers/ColumnContainer/ColumnContainer';
|
|
5
|
-
import RowRightContainer from '../../../containers/RowRightContainer/RowRightContainer';
|
|
6
|
-
import MainButton, { TypeButton } from '../../Buttons/MainButton/MainButton';
|
|
7
|
-
|
|
8
|
-
type YesNoQuestionProps = {
|
|
9
|
-
messageText?: string;
|
|
10
|
-
ClickYesActionHandler?: FunctionTypeVoidToVoid;
|
|
11
|
-
TouchYesActionHandler?: FunctionTypeVoidToVoid;
|
|
12
|
-
ClickNoActionHandler?: FunctionTypeVoidToVoid;
|
|
13
|
-
TouchNoActionHandler?: FunctionTypeVoidToVoid;
|
|
14
|
-
yesActionCaption?: string;
|
|
15
|
-
noActionCaption?: string;
|
|
16
|
-
};
|
|
17
|
-
// eslint-disable-next-line react/function-component-definition
|
|
18
|
-
const YesNoQuestionComponent: React.FC<YesNoQuestionProps> = ({
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
|
-
messageText,
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
22
|
-
ClickYesActionHandler,
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
24
|
-
TouchYesActionHandler,
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26
|
-
ClickNoActionHandler,
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28
|
-
TouchNoActionHandler,
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
|
-
yesActionCaption = undefined,
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
32
|
-
noActionCaption = undefined,
|
|
33
|
-
}: YesNoQuestionProps) => {
|
|
34
|
-
return (
|
|
35
|
-
<div className="yesno-container-wrapper">
|
|
36
|
-
<ColumnContainer>
|
|
37
|
-
<div className="yesno-container__message-text">{messageText}</div>
|
|
38
|
-
<div className="yesno-container__footer">
|
|
39
|
-
<RowRightContainer
|
|
40
|
-
minHeightContainer="32px"
|
|
41
|
-
gapBetweenItem="8px"
|
|
42
|
-
RightContainerSize={{
|
|
43
|
-
flexBasis: '63px',
|
|
44
|
-
minWidth: '63px',
|
|
45
|
-
maxWidth: '63px',
|
|
46
|
-
minHeight: '32px',
|
|
47
|
-
maxHeight: '32px',
|
|
48
|
-
}}
|
|
49
|
-
RightItem={
|
|
50
|
-
<div>
|
|
51
|
-
<MainButton
|
|
52
|
-
clickHandler={() => {
|
|
53
|
-
if (ClickYesActionHandler) {
|
|
54
|
-
ClickYesActionHandler();
|
|
55
|
-
}
|
|
56
|
-
}}
|
|
57
|
-
title={yesActionCaption || 'Yes'}
|
|
58
|
-
typeButton={TypeButton.danger}
|
|
59
|
-
/>
|
|
60
|
-
</div>
|
|
61
|
-
}
|
|
62
|
-
CenterContainerSize={{
|
|
63
|
-
flexBasis: '78px',
|
|
64
|
-
minWidth: '78px',
|
|
65
|
-
maxWidth: '78px',
|
|
66
|
-
minHeight: '32px',
|
|
67
|
-
maxHeight: '32px',
|
|
68
|
-
}}
|
|
69
|
-
CenterItem={
|
|
70
|
-
<div>
|
|
71
|
-
<MainButton
|
|
72
|
-
title={noActionCaption || 'No'}
|
|
73
|
-
clickHandler={() => {
|
|
74
|
-
if (ClickNoActionHandler) {
|
|
75
|
-
ClickNoActionHandler();
|
|
76
|
-
}
|
|
77
|
-
}}
|
|
78
|
-
typeButton={TypeButton.outlined}
|
|
79
|
-
/>
|
|
80
|
-
</div>
|
|
81
|
-
}
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
</ColumnContainer>
|
|
85
|
-
</div>
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export default YesNoQuestionComponent;
|