@stream-io/video-react-native-sdk 1.3.7 → 1.4.0

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 (510) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/commonjs/components/Call/CallContent/CallContent.js +25 -20
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +8 -6
  5. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallControls/CallControls.js +2 -2
  7. package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -18
  9. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +8 -13
  11. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +5 -1
  13. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallControls/LobbyControls.js +16 -9
  15. package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
  16. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +3 -3
  17. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
  18. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +8 -6
  19. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  20. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
  21. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  22. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +10 -10
  23. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  24. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +9 -6
  25. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  26. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +10 -6
  27. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  28. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +10 -10
  29. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  30. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +9 -6
  31. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  32. package/dist/commonjs/components/Call/CallControls/index.js +0 -11
  33. package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
  34. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +32 -28
  35. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  36. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
  37. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  38. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +31 -25
  39. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  40. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
  41. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  42. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +21 -14
  43. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  44. package/dist/commonjs/components/Call/Lobby/Lobby.js +66 -94
  45. package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
  46. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +60 -23
  47. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
  48. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +6 -7
  49. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  50. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +6 -7
  51. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  52. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +0 -4
  53. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  54. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
  55. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  56. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +1 -1
  57. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  58. package/dist/commonjs/components/Call/index.js +0 -11
  59. package/dist/commonjs/components/Call/index.js.map +1 -1
  60. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +31 -20
  61. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  62. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
  63. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  64. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
  65. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  66. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +7 -5
  67. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  68. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
  69. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  70. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +7 -5
  71. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  72. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  73. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  74. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
  75. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  76. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
  77. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  78. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
  79. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  80. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
  81. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  82. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
  83. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  84. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
  85. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  86. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
  87. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  88. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +16 -5
  89. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  90. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  91. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +6 -5
  92. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
  93. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +72 -49
  94. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  95. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
  96. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  97. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +28 -15
  98. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  99. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
  100. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  101. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +29 -21
  102. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  103. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +86 -0
  104. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
  105. package/dist/commonjs/components/utility/Avatar.js +1 -1
  106. package/dist/commonjs/components/utility/Avatar.js.map +1 -1
  107. package/dist/commonjs/components/utility/ScreenShareOverlay.js +6 -5
  108. package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
  109. package/dist/commonjs/constants/TestIds.js +1 -1
  110. package/dist/commonjs/constants/TestIds.js.map +1 -1
  111. package/dist/commonjs/constants/index.js +24 -5
  112. package/dist/commonjs/constants/index.js.map +1 -1
  113. package/dist/commonjs/icons/CameraSwitch.js +6 -3
  114. package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
  115. package/dist/commonjs/icons/IconWrapper.js +25 -0
  116. package/dist/commonjs/icons/IconWrapper.js.map +1 -0
  117. package/dist/commonjs/icons/Lock.js +26 -0
  118. package/dist/commonjs/icons/Lock.js.map +1 -0
  119. package/dist/commonjs/icons/Mic.js +6 -6
  120. package/dist/commonjs/icons/Mic.js.map +1 -1
  121. package/dist/commonjs/icons/MicOff.js +6 -3
  122. package/dist/commonjs/icons/MicOff.js.map +1 -1
  123. package/dist/commonjs/icons/Phone.js +13 -3
  124. package/dist/commonjs/icons/Phone.js.map +1 -1
  125. package/dist/commonjs/icons/PhoneDown.js +6 -3
  126. package/dist/commonjs/icons/PhoneDown.js.map +1 -1
  127. package/dist/commonjs/icons/PinVertical.js +5 -2
  128. package/dist/commonjs/icons/PinVertical.js.map +1 -1
  129. package/dist/commonjs/icons/Reaction.js +3 -1
  130. package/dist/commonjs/icons/Reaction.js.map +1 -1
  131. package/dist/commonjs/icons/ScreenShare.js +6 -3
  132. package/dist/commonjs/icons/ScreenShare.js.map +1 -1
  133. package/dist/commonjs/icons/StopScreenShare.js +5 -2
  134. package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
  135. package/dist/commonjs/icons/Video.js +6 -3
  136. package/dist/commonjs/icons/Video.js.map +1 -1
  137. package/dist/commonjs/icons/VideoSlash.js +6 -3
  138. package/dist/commonjs/icons/VideoSlash.js.map +1 -1
  139. package/dist/commonjs/icons/index.js +11 -22
  140. package/dist/commonjs/icons/index.js.map +1 -1
  141. package/dist/commonjs/theme/colors.js +22 -39
  142. package/dist/commonjs/theme/colors.js.map +1 -1
  143. package/dist/commonjs/theme/constants.js +44 -44
  144. package/dist/commonjs/theme/constants.js.map +1 -1
  145. package/dist/commonjs/theme/index.js +11 -10
  146. package/dist/commonjs/theme/index.js.map +1 -1
  147. package/dist/commonjs/theme/theme.js +46 -9
  148. package/dist/commonjs/theme/theme.js.map +1 -1
  149. package/dist/commonjs/translations/en.json +7 -3
  150. package/dist/commonjs/version.js +1 -1
  151. package/dist/module/components/Call/CallContent/CallContent.js +26 -21
  152. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  153. package/dist/module/components/Call/CallControls/AcceptCallButton.js +9 -7
  154. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  155. package/dist/module/components/Call/CallControls/CallControls.js +2 -2
  156. package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
  157. package/dist/module/components/Call/CallControls/CallControlsButton.js +11 -18
  158. package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
  159. package/dist/module/components/Call/CallControls/HangupCallButton.js +8 -13
  160. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  161. package/dist/module/components/Call/CallControls/IncomingCallControls.js +5 -1
  162. package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  163. package/dist/module/components/Call/CallControls/LobbyControls.js +14 -8
  164. package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
  165. package/dist/module/components/Call/CallControls/ReactionsButton.js +4 -4
  166. package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
  167. package/dist/module/components/Call/CallControls/RejectCallButton.js +9 -7
  168. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  169. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
  170. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  171. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +11 -11
  172. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  173. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +10 -7
  174. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  175. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +11 -7
  176. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  177. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +11 -11
  178. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  179. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +10 -7
  180. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  181. package/dist/module/components/Call/CallControls/index.js +0 -1
  182. package/dist/module/components/Call/CallControls/index.js.map +1 -1
  183. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +33 -29
  184. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  185. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
  186. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  187. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +29 -24
  188. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  189. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
  190. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  191. package/dist/module/components/Call/Lobby/JoinCallButton.js +19 -13
  192. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  193. package/dist/module/components/Call/Lobby/Lobby.js +64 -93
  194. package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
  195. package/dist/module/components/Call/Lobby/LobbyFooter.js +58 -22
  196. package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
  197. package/dist/module/components/Call/RingingCallContent/IncomingCall.js +6 -7
  198. package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  199. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +6 -7
  200. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  201. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +0 -4
  202. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  203. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
  204. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  205. package/dist/module/components/Call/RingingCallContent/UserInfo.js +1 -1
  206. package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  207. package/dist/module/components/Call/index.js +0 -1
  208. package/dist/module/components/Call/index.js.map +1 -1
  209. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +32 -21
  210. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  211. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
  212. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  213. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
  214. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  215. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +8 -6
  216. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  217. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
  218. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  219. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +8 -6
  220. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  221. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  222. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  223. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
  224. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  225. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
  226. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  227. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
  228. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  229. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
  230. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  231. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
  232. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  233. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
  234. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  235. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
  236. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  237. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +17 -6
  238. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  239. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  240. package/dist/module/components/Participant/FloatingParticipantView/index.js +6 -5
  241. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
  242. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +70 -49
  243. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  244. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
  245. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  246. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +29 -16
  247. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  248. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
  249. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  250. package/dist/module/components/Participant/ParticipantView/ParticipantView.js +27 -20
  251. package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  252. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +78 -0
  253. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
  254. package/dist/module/components/utility/Avatar.js +1 -1
  255. package/dist/module/components/utility/Avatar.js.map +1 -1
  256. package/dist/module/components/utility/ScreenShareOverlay.js +6 -5
  257. package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
  258. package/dist/module/constants/TestIds.js +1 -1
  259. package/dist/module/constants/TestIds.js.map +1 -1
  260. package/dist/module/constants/index.js +23 -4
  261. package/dist/module/constants/index.js.map +1 -1
  262. package/dist/module/icons/CameraSwitch.js +6 -3
  263. package/dist/module/icons/CameraSwitch.js.map +1 -1
  264. package/dist/module/icons/IconWrapper.js +17 -0
  265. package/dist/module/icons/IconWrapper.js.map +1 -0
  266. package/dist/module/icons/Lock.js +16 -0
  267. package/dist/module/icons/Lock.js.map +1 -0
  268. package/dist/module/icons/Mic.js +6 -6
  269. package/dist/module/icons/Mic.js.map +1 -1
  270. package/dist/module/icons/MicOff.js +6 -3
  271. package/dist/module/icons/MicOff.js.map +1 -1
  272. package/dist/module/icons/Phone.js +13 -3
  273. package/dist/module/icons/Phone.js.map +1 -1
  274. package/dist/module/icons/PhoneDown.js +6 -3
  275. package/dist/module/icons/PhoneDown.js.map +1 -1
  276. package/dist/module/icons/PinVertical.js +5 -2
  277. package/dist/module/icons/PinVertical.js.map +1 -1
  278. package/dist/module/icons/Reaction.js +3 -1
  279. package/dist/module/icons/Reaction.js.map +1 -1
  280. package/dist/module/icons/ScreenShare.js +6 -3
  281. package/dist/module/icons/ScreenShare.js.map +1 -1
  282. package/dist/module/icons/StopScreenShare.js +5 -2
  283. package/dist/module/icons/StopScreenShare.js.map +1 -1
  284. package/dist/module/icons/Video.js +6 -3
  285. package/dist/module/icons/Video.js.map +1 -1
  286. package/dist/module/icons/VideoSlash.js +6 -3
  287. package/dist/module/icons/VideoSlash.js.map +1 -1
  288. package/dist/module/icons/index.js +1 -2
  289. package/dist/module/icons/index.js.map +1 -1
  290. package/dist/module/theme/colors.js +22 -39
  291. package/dist/module/theme/colors.js.map +1 -1
  292. package/dist/module/theme/constants.js +44 -44
  293. package/dist/module/theme/constants.js.map +1 -1
  294. package/dist/module/theme/index.js +1 -5
  295. package/dist/module/theme/index.js.map +1 -1
  296. package/dist/module/theme/theme.js +46 -9
  297. package/dist/module/theme/theme.js.map +1 -1
  298. package/dist/module/translations/en.json +7 -3
  299. package/dist/module/version.js +1 -1
  300. package/dist/typescript/components/Call/CallContent/CallContent.d.ts +2 -7
  301. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  302. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
  303. package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts +4 -0
  304. package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
  305. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
  306. package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -1
  307. package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts.map +1 -1
  308. package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts.map +1 -1
  309. package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -1
  310. package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
  311. package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -1
  312. package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -1
  313. package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts +6 -1
  314. package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -1
  315. package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -1
  316. package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -1
  317. package/dist/typescript/components/Call/CallControls/index.d.ts +0 -1
  318. package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
  319. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
  320. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
  321. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
  322. package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
  323. package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
  324. package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
  325. package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts +2 -6
  326. package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
  327. package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts +1 -6
  328. package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
  329. package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts +0 -5
  330. package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
  331. package/dist/typescript/components/Call/index.d.ts +0 -1
  332. package/dist/typescript/components/Call/index.d.ts.map +1 -1
  333. package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
  334. package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts.map +1 -1
  335. package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts.map +1 -1
  336. package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
  337. package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
  338. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
  339. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -1
  340. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
  341. package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
  342. package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +1 -1
  343. package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
  344. package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -1
  345. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
  346. package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts +18 -0
  347. package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts.map +1 -0
  348. package/dist/typescript/components/utility/Avatar.d.ts.map +1 -1
  349. package/dist/typescript/constants/TestIds.d.ts +2 -2
  350. package/dist/typescript/constants/TestIds.d.ts.map +1 -1
  351. package/dist/typescript/constants/index.d.ts +0 -1
  352. package/dist/typescript/constants/index.d.ts.map +1 -1
  353. package/dist/typescript/icons/CameraSwitch.d.ts +2 -1
  354. package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -1
  355. package/dist/typescript/icons/IconWrapper.d.ts +6 -0
  356. package/dist/typescript/icons/IconWrapper.d.ts.map +1 -0
  357. package/dist/typescript/icons/{Chat.d.ts → Lock.d.ts} +3 -2
  358. package/dist/typescript/icons/Lock.d.ts.map +1 -0
  359. package/dist/typescript/icons/Mic.d.ts +2 -1
  360. package/dist/typescript/icons/Mic.d.ts.map +1 -1
  361. package/dist/typescript/icons/MicOff.d.ts +2 -1
  362. package/dist/typescript/icons/MicOff.d.ts.map +1 -1
  363. package/dist/typescript/icons/Phone.d.ts +2 -1
  364. package/dist/typescript/icons/Phone.d.ts.map +1 -1
  365. package/dist/typescript/icons/PhoneDown.d.ts +2 -1
  366. package/dist/typescript/icons/PhoneDown.d.ts.map +1 -1
  367. package/dist/typescript/icons/PinVertical.d.ts +2 -1
  368. package/dist/typescript/icons/PinVertical.d.ts.map +1 -1
  369. package/dist/typescript/icons/ScreenShare.d.ts +2 -1
  370. package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
  371. package/dist/typescript/icons/StopScreenShare.d.ts +2 -1
  372. package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -1
  373. package/dist/typescript/icons/Video.d.ts +2 -1
  374. package/dist/typescript/icons/Video.d.ts.map +1 -1
  375. package/dist/typescript/icons/VideoSlash.d.ts +2 -1
  376. package/dist/typescript/icons/VideoSlash.d.ts.map +1 -1
  377. package/dist/typescript/icons/index.d.ts +1 -2
  378. package/dist/typescript/icons/index.d.ts.map +1 -1
  379. package/dist/typescript/theme/colors.d.ts +5 -38
  380. package/dist/typescript/theme/colors.d.ts.map +1 -1
  381. package/dist/typescript/theme/constants.d.ts +44 -44
  382. package/dist/typescript/theme/constants.d.ts.map +1 -1
  383. package/dist/typescript/theme/index.d.ts +1 -2
  384. package/dist/typescript/theme/index.d.ts.map +1 -1
  385. package/dist/typescript/theme/theme.d.ts +23 -31
  386. package/dist/typescript/theme/theme.d.ts.map +1 -1
  387. package/dist/typescript/theme/types.d.ts +65 -18
  388. package/dist/typescript/theme/types.d.ts.map +1 -1
  389. package/dist/typescript/translations/index.d.ts +5 -1
  390. package/dist/typescript/translations/index.d.ts.map +1 -1
  391. package/dist/typescript/version.d.ts +1 -1
  392. package/package.json +3 -3
  393. package/src/components/Call/CallContent/CallContent.tsx +25 -33
  394. package/src/components/Call/CallControls/AcceptCallButton.tsx +7 -5
  395. package/src/components/Call/CallControls/CallControls.tsx +2 -2
  396. package/src/components/Call/CallControls/CallControlsButton.tsx +14 -20
  397. package/src/components/Call/CallControls/HangupCallButton.tsx +6 -11
  398. package/src/components/Call/CallControls/IncomingCallControls.tsx +5 -1
  399. package/src/components/Call/CallControls/LobbyControls.tsx +16 -8
  400. package/src/components/Call/CallControls/ReactionsButton.tsx +4 -2
  401. package/src/components/Call/CallControls/RejectCallButton.tsx +7 -5
  402. package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +18 -7
  403. package/src/components/Call/CallControls/ToggleAudioPreviewButton.tsx +11 -13
  404. package/src/components/Call/CallControls/ToggleAudioPublishingButton.tsx +12 -8
  405. package/src/components/Call/CallControls/ToggleCameraFaceButton.tsx +23 -10
  406. package/src/components/Call/CallControls/ToggleVideoPreviewButton.tsx +11 -14
  407. package/src/components/Call/CallControls/ToggleVideoPublishingButton.tsx +15 -8
  408. package/src/components/Call/CallControls/index.tsx +0 -1
  409. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +34 -32
  410. package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +2 -4
  411. package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +29 -23
  412. package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +34 -15
  413. package/src/components/Call/Lobby/JoinCallButton.tsx +21 -15
  414. package/src/components/Call/Lobby/Lobby.tsx +74 -121
  415. package/src/components/Call/Lobby/LobbyFooter.tsx +63 -41
  416. package/src/components/Call/RingingCallContent/IncomingCall.tsx +4 -14
  417. package/src/components/Call/RingingCallContent/OutgoingCall.tsx +4 -14
  418. package/src/components/Call/RingingCallContent/RingingCallContent.tsx +3 -17
  419. package/src/components/Call/RingingCallContent/TextBasedIndicator.tsx +3 -3
  420. package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
  421. package/src/components/Call/index.ts +0 -1
  422. package/src/components/Livestream/HostLivestream/HostLivestream.tsx +34 -23
  423. package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +1 -1
  424. package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +4 -4
  425. package/src/components/Livestream/LivestreamControls/LivestreamAudioControlButton.tsx +9 -7
  426. package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +4 -4
  427. package/src/components/Livestream/LivestreamControls/LivestreamVideoControlButton.tsx +9 -7
  428. package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +2 -4
  429. package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +1 -3
  430. package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
  431. package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
  432. package/src/components/Livestream/LivestreamTopView/FollowerCount.tsx +2 -2
  433. package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +1 -1
  434. package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +2 -2
  435. package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +1 -1
  436. package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +19 -6
  437. package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +0 -1
  438. package/src/components/Participant/FloatingParticipantView/index.tsx +4 -6
  439. package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +87 -87
  440. package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +5 -5
  441. package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +36 -26
  442. package/src/components/Participant/ParticipantView/ParticipantVideoFallback.tsx +2 -6
  443. package/src/components/Participant/ParticipantView/ParticipantView.tsx +33 -22
  444. package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +103 -0
  445. package/src/components/utility/Avatar.tsx +2 -4
  446. package/src/components/utility/ScreenShareOverlay.tsx +5 -5
  447. package/src/constants/TestIds.ts +1 -1
  448. package/src/constants/index.ts +27 -5
  449. package/src/icons/CameraSwitch.tsx +4 -3
  450. package/src/icons/IconWrapper.tsx +15 -0
  451. package/src/icons/Lock.tsx +19 -0
  452. package/src/icons/Mic.tsx +4 -7
  453. package/src/icons/MicOff.tsx +4 -3
  454. package/src/icons/Phone.tsx +11 -3
  455. package/src/icons/PhoneDown.tsx +9 -3
  456. package/src/icons/PinVertical.tsx +3 -2
  457. package/src/icons/Reaction.tsx +1 -1
  458. package/src/icons/ScreenShare.tsx +9 -3
  459. package/src/icons/StopScreenShare.tsx +3 -2
  460. package/src/icons/Video.tsx +4 -3
  461. package/src/icons/VideoSlash.tsx +9 -3
  462. package/src/icons/index.tsx +1 -2
  463. package/src/theme/colors.ts +27 -42
  464. package/src/theme/constants.ts +51 -44
  465. package/src/theme/index.ts +1 -8
  466. package/src/theme/theme.ts +77 -40
  467. package/src/theme/types.ts +72 -21
  468. package/src/translations/en.json +7 -3
  469. package/src/version.ts +1 -1
  470. package/dist/commonjs/components/Call/CallControls/ChatButton.js +0 -84
  471. package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +0 -1
  472. package/dist/commonjs/components/Call/CallTopView/CallTopView.js +0 -120
  473. package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +0 -1
  474. package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -105
  475. package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
  476. package/dist/commonjs/components/Call/CallTopView/index.js +0 -28
  477. package/dist/commonjs/components/Call/CallTopView/index.js.map +0 -1
  478. package/dist/commonjs/icons/Chat.js +0 -19
  479. package/dist/commonjs/icons/Chat.js.map +0 -1
  480. package/dist/commonjs/icons/Participants.js +0 -21
  481. package/dist/commonjs/icons/Participants.js.map +0 -1
  482. package/dist/module/components/Call/CallControls/ChatButton.js +0 -77
  483. package/dist/module/components/Call/CallControls/ChatButton.js.map +0 -1
  484. package/dist/module/components/Call/CallTopView/CallTopView.js +0 -111
  485. package/dist/module/components/Call/CallTopView/CallTopView.js.map +0 -1
  486. package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -98
  487. package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
  488. package/dist/module/components/Call/CallTopView/index.js +0 -3
  489. package/dist/module/components/Call/CallTopView/index.js.map +0 -1
  490. package/dist/module/icons/Chat.js +0 -11
  491. package/dist/module/icons/Chat.js.map +0 -1
  492. package/dist/module/icons/Participants.js +0 -13
  493. package/dist/module/icons/Participants.js.map +0 -1
  494. package/dist/typescript/components/Call/CallControls/ChatButton.d.ts +0 -22
  495. package/dist/typescript/components/Call/CallControls/ChatButton.d.ts.map +0 -1
  496. package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts +0 -29
  497. package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts.map +0 -1
  498. package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +0 -12
  499. package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts.map +0 -1
  500. package/dist/typescript/components/Call/CallTopView/index.d.ts +0 -3
  501. package/dist/typescript/components/Call/CallTopView/index.d.ts.map +0 -1
  502. package/dist/typescript/icons/Chat.d.ts.map +0 -1
  503. package/dist/typescript/icons/Participants.d.ts +0 -8
  504. package/dist/typescript/icons/Participants.d.ts.map +0 -1
  505. package/src/components/Call/CallControls/ChatButton.tsx +0 -90
  506. package/src/components/Call/CallTopView/CallTopView.tsx +0 -162
  507. package/src/components/Call/CallTopView/ParticipantsInfoBadge.tsx +0 -119
  508. package/src/components/Call/CallTopView/index.ts +0 -2
  509. package/src/icons/Chat.tsx +0 -16
  510. package/src/icons/Participants.tsx +0 -18
@@ -1,7 +1,7 @@
1
1
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
2
2
  import React from 'react';
3
3
  import { CallControlsButton } from './CallControlsButton';
4
- import { PhoneDown } from '../../../icons';
4
+ import { IconWrapper, PhoneDown } from '../../../icons';
5
5
  import { CallingState, getLogger } from '@stream-io/video-client';
6
6
  import { useTheme } from '../../../contexts/ThemeContext';
7
7
 
@@ -54,7 +54,7 @@ export const RejectCallButton = ({
54
54
  theme: {
55
55
  colors,
56
56
  rejectCallButton,
57
- variants: { buttonSizes },
57
+ variants: { buttonSizes, iconSizes },
58
58
  },
59
59
  } = useTheme();
60
60
  const rejectCallHandler = async () => {
@@ -79,13 +79,15 @@ export const RejectCallButton = ({
79
79
  return (
80
80
  <CallControlsButton
81
81
  onPress={rejectCallHandler}
82
- color={colors.error}
83
- size={size ?? buttonSizes.lg}
82
+ color={colors.buttonWarning}
83
+ size={size ?? buttonSizes.md}
84
84
  // TODO: check what to do about this random style prop
85
85
  // svgContainerStyle={theme.icon.lg}
86
86
  style={rejectCallButton}
87
87
  >
88
- <PhoneDown color={colors.static_white} />
88
+ <IconWrapper>
89
+ <PhoneDown color={colors.iconPrimary} size={iconSizes.lg} />
90
+ </IconWrapper>
89
91
  </CallControlsButton>
90
92
  );
91
93
  };
@@ -6,6 +6,7 @@ import { StopScreenShare } from '../../../icons/StopScreenShare';
6
6
  import { CallControlsButton } from './CallControlsButton';
7
7
  import { useTheme } from '../../../contexts/ThemeContext';
8
8
  import { useScreenShareButton } from '../../../hooks/useScreenShareButton';
9
+ import { IconWrapper } from '../../../icons';
9
10
 
10
11
  /**
11
12
  * The props for the Screen Share button in the Call Controls.
@@ -32,7 +33,7 @@ export const ScreenShareToggleButton = ({
32
33
  onScreenShareStoppedHandler,
33
34
  }: ScreenShareToggleButtonProps) => {
34
35
  const {
35
- theme: { colors, screenShareToggleButton },
36
+ theme: { colors, screenShareToggleButton, variants },
36
37
  } = useTheme();
37
38
 
38
39
  const screenCapturePickerViewiOSRef = useRef(null);
@@ -48,17 +49,27 @@ export const ScreenShareToggleButton = ({
48
49
  return (
49
50
  <CallControlsButton
50
51
  onPress={onPress}
51
- color={hasPublishedScreenShare ? colors.error : colors.static_white}
52
+ color={
53
+ hasPublishedScreenShare ? colors.buttonWarning : colors.buttonSecondary
54
+ }
52
55
  style={{
53
56
  container: screenShareToggleButton.container,
54
57
  svgContainer: screenShareToggleButton.svgContainer,
55
58
  }}
56
59
  >
57
- {hasPublishedScreenShare ? (
58
- <StopScreenShare color={colors.static_black} />
59
- ) : (
60
- <ScreenShare color={colors.static_black} />
61
- )}
60
+ <IconWrapper>
61
+ {hasPublishedScreenShare ? (
62
+ <StopScreenShare
63
+ size={variants.iconSizes.md}
64
+ color={colors.iconPrimary}
65
+ />
66
+ ) : (
67
+ <ScreenShare
68
+ size={variants.iconSizes.md}
69
+ color={colors.iconPrimary}
70
+ />
71
+ )}
72
+ </IconWrapper>
62
73
  {Platform.OS === 'ios' && (
63
74
  <ScreenCapturePickerView ref={screenCapturePickerViewiOSRef} />
64
75
  )}
@@ -1,7 +1,7 @@
1
1
  import { useCallStateHooks } from '@stream-io/video-react-bindings';
2
2
  import React from 'react';
3
3
  import { useTheme } from '../../../contexts';
4
- import { Mic, MicOff } from '../../../icons';
4
+ import { IconWrapper, Mic, MicOff } from '../../../icons';
5
5
  import { CallControlsButton } from './CallControlsButton';
6
6
 
7
7
  /**
@@ -26,6 +26,7 @@ export const ToggleAudioPreviewButton = ({
26
26
  colors,
27
27
  toggleAudioPreviewButton,
28
28
  variants: { buttonSizes },
29
+ defaults,
29
30
  },
30
31
  } = useTheme();
31
32
  const { useMicrophoneState } = useCallStateHooks();
@@ -42,23 +43,20 @@ export const ToggleAudioPreviewButton = ({
42
43
  return (
43
44
  <CallControlsButton
44
45
  onPress={onPress}
45
- color={!optimisticIsMute ? colors.static_white : colors.static_black}
46
+ color={!optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning}
46
47
  size={buttonSizes.md}
47
48
  style={{
48
- container: {
49
- shadowColor: !optimisticIsMute
50
- ? colors.static_white
51
- : colors.static_black,
52
- ...toggleAudioPreviewButton.container,
53
- },
49
+ container: toggleAudioPreviewButton.container,
54
50
  svgContainer: toggleAudioPreviewButton.svgContainer,
55
51
  }}
56
52
  >
57
- {!optimisticIsMute ? (
58
- <Mic color={colors.static_black} />
59
- ) : (
60
- <MicOff color={colors.static_white} />
61
- )}
53
+ <IconWrapper>
54
+ {!optimisticIsMute ? (
55
+ <Mic color={colors.iconPrimary} size={defaults.iconSize} />
56
+ ) : (
57
+ <MicOff color={colors.iconPrimary} size={defaults.iconSize} />
58
+ )}
59
+ </IconWrapper>
62
60
  </CallControlsButton>
63
61
  );
64
62
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { OwnCapability } from '@stream-io/video-client';
3
3
  import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
4
4
  import { CallControlsButton } from './CallControlsButton';
5
- import { Mic, MicOff } from '../../../icons';
5
+ import { IconWrapper, Mic, MicOff } from '../../../icons';
6
6
  import { useTheme } from '../../../contexts/ThemeContext';
7
7
 
8
8
  /**
@@ -26,7 +26,7 @@ export const ToggleAudioPublishingButton = ({
26
26
  const { optimisticIsMute, microphone } = useMicrophoneState();
27
27
 
28
28
  const {
29
- theme: { colors, toggleAudioPublishingButton },
29
+ theme: { colors, toggleAudioPublishingButton, defaults },
30
30
  } = useTheme();
31
31
  const onPress = async () => {
32
32
  if (onPressHandler) {
@@ -41,14 +41,18 @@ export const ToggleAudioPublishingButton = ({
41
41
  <Restricted requiredGrants={[OwnCapability.SEND_AUDIO]}>
42
42
  <CallControlsButton
43
43
  onPress={onPress}
44
- color={!optimisticIsMute ? colors.static_white : colors.overlay_dark}
44
+ color={
45
+ !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning
46
+ }
45
47
  style={toggleAudioPublishingButton}
46
48
  >
47
- {!optimisticIsMute ? (
48
- <Mic color={colors.static_black} />
49
- ) : (
50
- <MicOff color={colors.static_white} />
51
- )}
49
+ <IconWrapper>
50
+ {!optimisticIsMute ? (
51
+ <Mic color={colors.iconPrimary} size={defaults.iconSize} />
52
+ ) : (
53
+ <MicOff color={colors.iconPrimary} size={defaults.iconSize} />
54
+ )}
55
+ </IconWrapper>
52
56
  </CallControlsButton>
53
57
  </Restricted>
54
58
  );
@@ -2,8 +2,9 @@ import { OwnCapability } from '@stream-io/video-client';
2
2
  import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
3
3
  import React from 'react';
4
4
  import { CallControlsButton } from './CallControlsButton';
5
- import { CameraSwitch } from '../../../icons';
5
+ import { CameraSwitch, IconWrapper } from '../../../icons';
6
6
  import { useTheme } from '../../../contexts/ThemeContext';
7
+ import { ColorValue } from 'react-native';
7
8
 
8
9
  /**
9
10
  * Props for the Toggle Camera face button.
@@ -14,6 +15,11 @@ export type ToggleCameraFaceButtonProps = {
14
15
  * @returns void
15
16
  */
16
17
  onPressHandler?: () => void;
18
+
19
+ /**
20
+ * Background color of the button.
21
+ */
22
+ backgroundColor?: ColorValue;
17
23
  };
18
24
 
19
25
  /**
@@ -21,6 +27,7 @@ export type ToggleCameraFaceButtonProps = {
21
27
  */
22
28
  export const ToggleCameraFaceButton = ({
23
29
  onPressHandler,
30
+ backgroundColor,
24
31
  }: ToggleCameraFaceButtonProps) => {
25
32
  const { useCameraState, useCallSettings } = useCallStateHooks();
26
33
  const { camera, optimisticIsMute, direction } = useCameraState();
@@ -28,7 +35,7 @@ export const ToggleCameraFaceButton = ({
28
35
  const isVideoEnabledInCall = callSettings?.video.enabled;
29
36
 
30
37
  const {
31
- theme: { colors, toggleCameraFaceButton },
38
+ theme: { colors, toggleCameraFaceButton, variants },
32
39
  } = useTheme();
33
40
  const onPress = async () => {
34
41
  if (onPressHandler) {
@@ -47,17 +54,23 @@ export const ToggleCameraFaceButton = ({
47
54
  <Restricted requiredGrants={[OwnCapability.SEND_VIDEO]}>
48
55
  <CallControlsButton
49
56
  onPress={onPress}
50
- color={direction === 'back' ? colors.overlay_dark : colors.static_white}
57
+ color={backgroundColor || colors.buttonSecondary}
58
+ disabledColor={backgroundColor || colors.sheetSecondary}
51
59
  disabled={optimisticIsMute}
52
60
  style={toggleCameraFaceButton}
53
61
  >
54
- <CameraSwitch
55
- color={
56
- direction === 'front' || direction === undefined
57
- ? colors.static_black
58
- : colors.static_white
59
- }
60
- />
62
+ <IconWrapper>
63
+ <CameraSwitch
64
+ size={variants.iconSizes.md}
65
+ color={
66
+ optimisticIsMute
67
+ ? colors.buttonDisabled
68
+ : direction === 'front' || direction === undefined
69
+ ? colors.iconPrimary
70
+ : colors.buttonPrimary
71
+ }
72
+ />
73
+ </IconWrapper>
61
74
  </CallControlsButton>
62
75
  </Restricted>
63
76
  );
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useCallStateHooks } from '@stream-io/video-react-bindings';
3
3
  import { useTheme } from '../../../contexts';
4
4
  import { CallControlsButton } from './CallControlsButton';
5
- import { Video, VideoSlash } from '../../../icons';
5
+ import { IconWrapper, Video, VideoSlash } from '../../../icons';
6
6
 
7
7
  /**
8
8
  * Props for the Toggle Video preview button
@@ -25,7 +25,7 @@ export const ToggleVideoPreviewButton = ({
25
25
  theme: {
26
26
  colors,
27
27
  toggleVideoPreviewButton,
28
- variants: { buttonSizes },
28
+ variants: { buttonSizes, iconSizes },
29
29
  },
30
30
  } = useTheme();
31
31
  const { useCameraState, useCallSettings } = useCallStateHooks();
@@ -47,23 +47,20 @@ export const ToggleVideoPreviewButton = ({
47
47
  return (
48
48
  <CallControlsButton
49
49
  onPress={onPress}
50
- color={!optimisticIsMute ? colors.static_white : colors.static_black}
50
+ color={!optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning}
51
51
  size={buttonSizes.md}
52
52
  style={{
53
- container: {
54
- shadowColor: !optimisticIsMute
55
- ? colors.static_white
56
- : colors.static_black,
57
- ...toggleVideoPreviewButton.container,
58
- },
53
+ container: toggleVideoPreviewButton.container,
59
54
  svgContainer: toggleVideoPreviewButton.svgContainer,
60
55
  }}
61
56
  >
62
- {!optimisticIsMute ? (
63
- <Video color={colors.static_black} />
64
- ) : (
65
- <VideoSlash color={colors.static_white} />
66
- )}
57
+ <IconWrapper>
58
+ {!optimisticIsMute ? (
59
+ <Video color={colors.iconPrimary} size={iconSizes.lg} />
60
+ ) : (
61
+ <VideoSlash color={colors.iconPrimary} size={iconSizes.lg} />
62
+ )}
63
+ </IconWrapper>
67
64
  </CallControlsButton>
68
65
  );
69
66
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { OwnCapability } from '@stream-io/video-client';
3
3
  import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
4
4
  import { CallControlsButton } from './CallControlsButton';
5
- import { Video, VideoSlash } from '../../../icons';
5
+ import { IconWrapper, Video, VideoSlash } from '../../../icons';
6
6
  import { useTheme } from '../../../contexts/ThemeContext';
7
7
 
8
8
  /**
@@ -27,7 +27,7 @@ export const ToggleVideoPublishingButton = ({
27
27
  const callSettings = useCallSettings();
28
28
  const isVideoEnabledInCall = callSettings?.video.enabled;
29
29
  const {
30
- theme: { colors },
30
+ theme: { colors, variants },
31
31
  } = useTheme();
32
32
  const onPress = async () => {
33
33
  if (onPressHandler) {
@@ -45,13 +45,20 @@ export const ToggleVideoPublishingButton = ({
45
45
  <Restricted requiredGrants={[OwnCapability.SEND_VIDEO]}>
46
46
  <CallControlsButton
47
47
  onPress={onPress}
48
- color={!optimisticIsMute ? colors.static_white : colors.overlay_dark}
48
+ color={
49
+ !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning
50
+ }
49
51
  >
50
- {!optimisticIsMute ? (
51
- <Video color={colors.static_black} />
52
- ) : (
53
- <VideoSlash color={colors.static_white} />
54
- )}
52
+ <IconWrapper>
53
+ {!optimisticIsMute ? (
54
+ <Video color={colors.iconPrimary} size={variants.iconSizes.md} />
55
+ ) : (
56
+ <VideoSlash
57
+ color={colors.iconPrimary}
58
+ size={variants.iconSizes.md}
59
+ />
60
+ )}
61
+ </IconWrapper>
55
62
  </CallControlsButton>
56
63
  </Restricted>
57
64
  );
@@ -6,7 +6,6 @@ export * from './ToggleVideoPreviewButton';
6
6
  export * from './ToggleAudioPublishingButton';
7
7
  export * from './ToggleVideoPublishingButton';
8
8
  export * from './ToggleCameraFaceButton';
9
- export * from './ChatButton';
10
9
  export * from './ReactionsButton';
11
10
  export * from './CallControls';
12
11
  export * from './CallControlsButton';
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useRef } from 'react';
1
+ import React, { useEffect, useMemo, useRef } from 'react';
2
2
  import {
3
3
  LayoutRectangle,
4
4
  Pressable,
@@ -18,26 +18,24 @@ type ReactionPickerProps = Pick<ReactionsButtonProps, 'supportedReactions'> & {
18
18
  onRequestedClose: () => void;
19
19
  };
20
20
 
21
- const TOP_PADDING = 4;
22
- const REACTION_MARGIN_BOTTOM = 4;
23
-
24
21
  export const ReactionsPicker = ({
25
22
  supportedReactions = defaultEmojiReactions,
26
23
  reactionsButtonLayoutRectangle,
27
24
  onRequestedClose,
28
25
  }: ReactionPickerProps) => {
29
26
  const {
30
- theme: { colors, reactionsPicker },
27
+ theme: { colors, reactionsPicker, variants },
31
28
  } = useTheme();
29
+ const styles = useStyles();
32
30
  const call = useCall();
33
31
  const size = reactionsButtonLayoutRectangle?.width ?? 0;
34
32
  const reactionItemSize = size * 0.8;
35
33
 
36
34
  const popupHeight =
37
35
  // the top padding
38
- TOP_PADDING +
36
+ variants.spacingSizes.xs +
39
37
  // take margins into account
40
- REACTION_MARGIN_BOTTOM * supportedReactions.length +
38
+ variants.spacingSizes.xs * supportedReactions.length +
41
39
  // the size of the reaction icon items (same size as reactions button * amount of reactions)
42
40
  reactionItemSize * supportedReactions.length;
43
41
 
@@ -104,7 +102,7 @@ export const ReactionsPicker = ({
104
102
  styles.reactionsPopup,
105
103
  reactionsPopupStyle,
106
104
  {
107
- backgroundColor: colors.static_grey,
105
+ backgroundColor: colors.sheetSecondary,
108
106
  },
109
107
  reactionsPicker.reactionsPopup,
110
108
  ]}
@@ -119,10 +117,7 @@ export const ReactionsPicker = ({
119
117
  style={[
120
118
  styles.reactionItem,
121
119
  reactionItemStyle,
122
- {
123
- // temporary background color until we have theming
124
- backgroundColor: colors.overlay,
125
- },
120
+ { backgroundColor: colors.buttonSecondary },
126
121
  reactionsPicker.reactionItem,
127
122
  ]}
128
123
  onPress={() => {
@@ -159,7 +154,7 @@ export const ReactionsPicker = ({
159
154
  style={[
160
155
  reactionsButtonDimmerStyle,
161
156
  {
162
- backgroundColor: colors.static_grey,
157
+ backgroundColor: colors.sheetSecondary,
163
158
  },
164
159
  reactionsPicker.reactionsButtonDimmer,
165
160
  ]}
@@ -169,22 +164,29 @@ export const ReactionsPicker = ({
169
164
  );
170
165
  };
171
166
 
172
- const styles = StyleSheet.create({
173
- reactionsPopup: {
174
- position: 'absolute',
175
- alignItems: 'center',
176
- paddingTop: TOP_PADDING,
177
- },
178
- reactionsButtonDimmer: {
179
- position: 'absolute',
180
- opacity: 0.5,
181
- },
182
- reactionItem: {
183
- alignItems: 'center',
184
- justifyContent: 'center',
185
- marginBottom: REACTION_MARGIN_BOTTOM,
186
- },
187
- reactionText: {
188
- fontSize: 18.5,
189
- },
190
- });
167
+ const useStyles = () => {
168
+ const { theme } = useTheme();
169
+ return useMemo(
170
+ () =>
171
+ StyleSheet.create({
172
+ reactionsPopup: {
173
+ position: 'absolute',
174
+ alignItems: 'center',
175
+ paddingTop: theme.variants.spacingSizes.xs,
176
+ },
177
+ reactionsButtonDimmer: {
178
+ position: 'absolute',
179
+ opacity: 0.5,
180
+ },
181
+ reactionItem: {
182
+ alignItems: 'center',
183
+ justifyContent: 'center',
184
+ marginBottom: theme.variants.spacingSizes.xs,
185
+ },
186
+ reactionText: {
187
+ fontSize: 18.5,
188
+ },
189
+ }),
190
+ [theme]
191
+ );
192
+ };
@@ -100,7 +100,7 @@ export const CallParticipantsGrid = ({
100
100
  style={[
101
101
  styles.container,
102
102
  landscapeStyles,
103
- { backgroundColor: colors.dark_gray },
103
+ { backgroundColor: colors.sheetPrimary },
104
104
  callParticipantsGrid.container,
105
105
  ]}
106
106
  testID={ComponentTestIds.CALL_PARTICIPANTS_GRID}
@@ -118,7 +118,5 @@ export const CallParticipantsGrid = ({
118
118
  };
119
119
 
120
120
  const styles = StyleSheet.create({
121
- container: {
122
- flex: 1,
123
- },
121
+ container: { flex: 1 },
124
122
  });
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import {
3
3
  hasScreenShare,
4
4
  speakerLayoutSortPreset,
@@ -56,8 +56,9 @@ export const CallParticipantsSpotlight = ({
56
56
  disablePictureInPicture,
57
57
  }: CallParticipantsSpotlightProps) => {
58
58
  const {
59
- theme: { colors, callParticipantsSpotlight },
59
+ theme: { callParticipantsSpotlight, variants },
60
60
  } = useTheme();
61
+ const styles = useStyles();
61
62
  const { useParticipants } = useCallStateHooks();
62
63
  const _allParticipants = useParticipants({
63
64
  sortBy: speakerLayoutSortPreset,
@@ -88,7 +89,7 @@ export const CallParticipantsSpotlight = ({
88
89
  };
89
90
 
90
91
  const spotlightContainerLandscapeStyles: ViewStyle = {
91
- marginHorizontal: landscape ? 0 : 8,
92
+ marginHorizontal: landscape ? 0 : variants.spacingSizes.xs,
92
93
  };
93
94
 
94
95
  const showShareScreenOverlay =
@@ -102,9 +103,6 @@ export const CallParticipantsSpotlight = ({
102
103
  style={[
103
104
  styles.container,
104
105
  landscapeStyles,
105
- {
106
- backgroundColor: colors.dark_gray,
107
- },
108
106
  callParticipantsSpotlight.container,
109
107
  ]}
110
108
  >
@@ -160,20 +158,28 @@ export const CallParticipantsSpotlight = ({
160
158
  );
161
159
  };
162
160
 
163
- const styles = StyleSheet.create({
164
- container: {
165
- flex: 1,
166
- },
167
- fullScreenSpotlightContainer: {
168
- flex: 1,
169
- },
170
- spotlightContainer: {
171
- flex: 2,
172
- overflow: 'hidden',
173
- borderRadius: 10,
174
- marginHorizontal: 8,
175
- },
176
- callParticipantsListContainer: {
177
- flex: 1,
178
- },
179
- });
161
+ const useStyles = () => {
162
+ const { theme } = useTheme();
163
+ return useMemo(
164
+ () =>
165
+ StyleSheet.create({
166
+ container: {
167
+ flex: 1,
168
+ backgroundColor: theme.colors.sheetPrimary,
169
+ },
170
+ fullScreenSpotlightContainer: {
171
+ flex: 1,
172
+ },
173
+ spotlightContainer: {
174
+ flex: 2,
175
+ overflow: 'hidden',
176
+ borderRadius: theme.variants.borderRadiusSizes.sm,
177
+ marginHorizontal: theme.variants.spacingSizes.sm,
178
+ },
179
+ callParticipantsListContainer: {
180
+ flex: 1,
181
+ },
182
+ }),
183
+ [theme]
184
+ );
185
+ };
@@ -21,6 +21,7 @@ import {
21
21
  ParticipantViewProps,
22
22
  } from '../../Participant/ParticipantView';
23
23
  import { CallContentProps } from '../CallContent';
24
+ import { useTheme } from '../../../contexts';
24
25
 
25
26
  type FlatListProps = React.ComponentProps<
26
27
  typeof FlatList<StreamVideoParticipant>
@@ -83,6 +84,7 @@ export const CallParticipantsList = ({
83
84
  supportedReactions,
84
85
  landscape,
85
86
  }: CallParticipantsListProps) => {
87
+ const styles = useStyles();
86
88
  const [containerLayout, setContainerLayout] = useState({
87
89
  width: 0,
88
90
  height: 0,
@@ -163,10 +165,15 @@ export const CallParticipantsList = ({
163
165
  participantsLength: participants.length,
164
166
  numberOfColumns,
165
167
  horizontal,
168
+ margin: styles.participant.margin,
166
169
  });
167
170
 
168
171
  const itemContainerStyle = useMemo<StyleProp<ViewStyle>>(() => {
169
- const style = { width: itemWidth, height: itemHeight };
172
+ const style = {
173
+ width: itemWidth,
174
+ height: itemHeight,
175
+ margin: styles.participant.margin,
176
+ };
170
177
  if (horizontal) {
171
178
  return [styles.participantWrapperHorizontal, style];
172
179
  }
@@ -174,7 +181,7 @@ export const CallParticipantsList = ({
174
181
  return [styles.landScapeStyle, style];
175
182
  }
176
183
  return style;
177
- }, [itemWidth, itemHeight, horizontal, landscape]);
184
+ }, [itemWidth, itemHeight, horizontal, landscape, styles]);
178
185
 
179
186
  const participantProps: ParticipantViewComponentProps = {
180
187
  ParticipantLabel,
@@ -251,19 +258,27 @@ export const CallParticipantsList = ({
251
258
  );
252
259
  };
253
260
 
254
- const styles = StyleSheet.create({
255
- flexed: {
256
- flex: 1,
257
- },
258
- participantWrapperHorizontal: {
259
- // note: if marginHorizontal is changed, be sure to change the width calculation in calculateParticipantViewSize function
260
- marginHorizontal: 8,
261
- borderRadius: 10,
262
- },
263
- landScapeStyle: {
264
- borderRadius: 10,
265
- },
266
- });
261
+ const useStyles = () => {
262
+ const { theme } = useTheme();
263
+ return useMemo(
264
+ () =>
265
+ StyleSheet.create({
266
+ flexed: { flex: 1 },
267
+ participantWrapperHorizontal: {
268
+ // note: if marginHorizontal is changed, be sure to change the width calculation in calculateParticipantViewSize function
269
+ marginHorizontal: theme.variants.spacingSizes.sm,
270
+ borderRadius: theme.variants.borderRadiusSizes.sm,
271
+ },
272
+ landScapeStyle: {
273
+ borderRadius: theme.variants.borderRadiusSizes.sm,
274
+ },
275
+ participant: {
276
+ margin: theme.variants.spacingSizes.xs,
277
+ },
278
+ }),
279
+ [theme]
280
+ );
281
+ };
267
282
 
268
283
  /**
269
284
  * This function calculates the size of the participant view based on the size of the container (the phone's screen size) and the number of participants.
@@ -280,12 +295,14 @@ function calculateParticipantViewSize({
280
295
  participantsLength,
281
296
  numberOfColumns,
282
297
  horizontal,
298
+ margin,
283
299
  }: {
284
300
  containerHeight: number;
285
301
  containerWidth: number;
286
302
  participantsLength: number;
287
303
  numberOfColumns: number;
288
304
  horizontal: boolean | undefined;
305
+ margin: number;
289
306
  }) {
290
307
  let itemHeight = containerHeight;
291
308
  // in vertical mode, we calculate the height of the participant view based on the containerHeight (aka the phone's screen height)
@@ -305,5 +322,7 @@ function calculateParticipantViewSize({
305
322
  itemWidth = itemWidth - 8 * 2;
306
323
  }
307
324
 
325
+ itemHeight = itemHeight - margin;
326
+ itemWidth = itemWidth - margin;
308
327
  return { itemHeight, itemWidth };
309
328
  }