@100mslive/roomkit-react 0.1.0 → 0.1.2-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. package/README.md +18 -0
  2. package/dist/Accordion/Accordion.d.ts +62 -138
  3. package/dist/Accordion/index.d.ts +62 -138
  4. package/dist/{ActiveSpeakerView-H3VYXANB.js → ActiveSpeakerView-4XPIRZOK.js} +6 -6
  5. package/dist/{HLSView-6BVBCQM7.css → ActiveSpeakerView-ADEYHQMU.css} +2 -2
  6. package/dist/{PinnedTrackView-QQ5FDXJX.css.map → ActiveSpeakerView-ADEYHQMU.css.map} +2 -2
  7. package/dist/Avatar/Avatar.d.ts +31 -69
  8. package/dist/Button/Button.d.ts +31 -69
  9. package/dist/Checkbox/Checkbox.d.ts +62 -138
  10. package/dist/Collapsible/Collapsible.d.ts +93 -207
  11. package/dist/Divider/Divider.d.ts +62 -138
  12. package/dist/Dropdown/Dropdown.d.ts +372 -828
  13. package/dist/Fieldset/Fieldset.d.ts +31 -69
  14. package/dist/Footer/Footer.d.ts +248 -552
  15. package/dist/{conference-KN6OKGDU.css → HLSView-DWEEMZ6Z.css} +2 -2
  16. package/dist/{HLSView-6BVBCQM7.css.map → HLSView-DWEEMZ6Z.css.map} +2 -2
  17. package/dist/{HLSView-3RDXRV7Y.js → HLSView-I26CVF5U.js} +16 -16
  18. package/dist/HLSView-I26CVF5U.js.map +7 -0
  19. package/dist/IconButton/IconButton.d.ts +31 -69
  20. package/dist/Input/Input.d.ts +189 -417
  21. package/dist/Label/Label.d.ts +31 -69
  22. package/dist/Layout/Box.d.ts +31 -69
  23. package/dist/Layout/Flex.d.ts +31 -69
  24. package/dist/Link/Link.d.ts +31 -69
  25. package/dist/Modal/Dialog.d.ts +248 -552
  26. package/dist/Modal/DialogContent.d.ts +217 -483
  27. package/dist/Pagination/StyledPagination.d.ts +124 -276
  28. package/dist/{PinnedTrackView-QQ5FDXJX.css → PinnedTrackView-5DPVVOZW.css} +2 -2
  29. package/dist/{conference-KN6OKGDU.css.map → PinnedTrackView-5DPVVOZW.css.map} +2 -2
  30. package/dist/{PinnedTrackView-453PELNU.js → PinnedTrackView-GGTCNH5V.js} +6 -6
  31. package/dist/Popover/index.d.ts +93 -207
  32. package/dist/Prebuilt/provider/roomLayoutProvider/constants/index.d.ts +2 -0
  33. package/dist/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.d.ts +9 -0
  34. package/dist/Prebuilt/provider/roomLayoutProvider/index.d.ts +9 -0
  35. package/dist/Progress/index.d.ts +62 -138
  36. package/dist/RadioGroup/RadioGroup.d.ts +93 -207
  37. package/dist/ReactSelect/ReactSelect.d.ts +310 -690
  38. package/dist/Select/Select.d.ts +93 -207
  39. package/dist/Slider/Slider.d.ts +31 -69
  40. package/dist/Stats/StyledStats.d.ts +186 -414
  41. package/dist/Switch/Switch.d.ts +31 -69
  42. package/dist/Tabs/Tabs.d.ts +124 -276
  43. package/dist/Text/Text.d.ts +31 -69
  44. package/dist/Theme/ThemeProvider.d.ts +63 -140
  45. package/dist/Theme/base.config.d.ts +31 -53
  46. package/dist/Theme/index.d.ts +0 -1
  47. package/dist/Theme/stitches.config.d.ts +404 -915
  48. package/dist/TileMenu/StyledMenuTile.d.ts +217 -483
  49. package/dist/Toast/Toast.d.ts +187 -415
  50. package/dist/Video/Video.d.ts +31 -69
  51. package/dist/VideoList/StyledVideoList.d.ts +93 -207
  52. package/dist/VideoTile/StyledVideoTile.d.ts +279 -621
  53. package/dist/{VirtualBackground-LHYBWUT5.js → VirtualBackground-ZRRE4DUA.js} +4 -3
  54. package/dist/{VirtualBackground-LHYBWUT5.js.map → VirtualBackground-ZRRE4DUA.js.map} +2 -2
  55. package/dist/{chunk-KYYP6ZVK.js → chunk-4ISMCWQA.js} +49 -146
  56. package/dist/chunk-4ISMCWQA.js.map +7 -0
  57. package/dist/{chunk-7YUYZ64D.js → chunk-KKLZ7K2L.js} +577 -898
  58. package/dist/chunk-KKLZ7K2L.js.map +7 -0
  59. package/dist/{chunk-HCAGFNXW.js → chunk-LUND6FLY.js} +1490 -1134
  60. package/dist/chunk-LUND6FLY.js.map +7 -0
  61. package/dist/chunk-MYK3T45M.js +58 -0
  62. package/dist/chunk-MYK3T45M.js.map +7 -0
  63. package/dist/{chunk-XRJXE6UO.js → chunk-THORW2WT.js} +4 -4
  64. package/dist/{chunk-XRJXE6UO.js.map → chunk-THORW2WT.js.map} +1 -1
  65. package/dist/{conference-IDNRO4WK.js → conference-5TDUAQ6K.js} +593 -532
  66. package/dist/conference-5TDUAQ6K.js.map +7 -0
  67. package/dist/{ActiveSpeakerView-REZLWPPI.css → conference-BDCDGBIS.css} +2 -2
  68. package/dist/{ActiveSpeakerView-REZLWPPI.css.map → conference-BDCDGBIS.css.map} +2 -2
  69. package/dist/index.cjs.css +1 -1
  70. package/dist/index.cjs.css.map +2 -2
  71. package/dist/index.cjs.js +3450 -3418
  72. package/dist/index.cjs.js.map +4 -4
  73. package/dist/index.css +1 -1
  74. package/dist/index.css.map +2 -2
  75. package/dist/index.js +4 -8
  76. package/dist/meta.cjs.json +761 -490
  77. package/dist/meta.esbuild.json +857 -589
  78. package/dist/{transcription-BTSB7FZH.js → transcription-PYTSSAOB.js} +3 -3
  79. package/package.json +14 -9
  80. package/src/Accordion/Accordion.tsx +3 -3
  81. package/src/AudioLevel/AudioLevel.tsx +1 -1
  82. package/src/Avatar/Avatar.tsx +8 -3
  83. package/src/Button/Button.tsx +76 -20
  84. package/src/Checkbox/Checkbox.tsx +4 -4
  85. package/src/Collapsible/Collapsible.tsx +1 -1
  86. package/src/Divider/Divider.tsx +2 -2
  87. package/src/Divider/HorizontalDivider.stories.tsx +2 -2
  88. package/src/Divider/VerticalDivider.stories.tsx +1 -1
  89. package/src/Dropdown/Dropdown.stories.tsx +3 -3
  90. package/src/Dropdown/Dropdown.tsx +16 -14
  91. package/src/IconButton/IconButton.tsx +8 -7
  92. package/src/Input/Input.tsx +9 -8
  93. package/src/Input/PasswordInput.stories.tsx +2 -2
  94. package/src/Label/Label.tsx +1 -1
  95. package/src/Link/Link.tsx +4 -4
  96. package/src/Loading/Loading.tsx +7 -10
  97. package/src/Modal/Dialog.stories.tsx +2 -2
  98. package/src/Modal/DialogContent.tsx +3 -3
  99. package/src/Pagination/StyledPagination.tsx +4 -4
  100. package/src/Popover/Popover.stories.tsx +5 -5
  101. package/src/Popover/index.tsx +1 -1
  102. package/src/Prebuilt/App.jsx +101 -68
  103. package/src/Prebuilt/IconButton.jsx +2 -2
  104. package/src/Prebuilt/Prebuilt.stories.tsx +8 -2
  105. package/src/Prebuilt/common/constants.js +0 -1
  106. package/src/Prebuilt/common/utils.js +0 -6
  107. package/src/Prebuilt/components/AppData/AppData.jsx +7 -4
  108. package/src/Prebuilt/components/AppData/useUISettings.js +0 -4
  109. package/src/Prebuilt/components/AudioVideoToggle.jsx +73 -20
  110. package/src/Prebuilt/components/BottomActionSheet/BottomActionSheet.jsx +1 -1
  111. package/src/Prebuilt/components/Chat/Chat.jsx +6 -2
  112. package/src/Prebuilt/components/Chat/ChatBody.jsx +13 -11
  113. package/src/Prebuilt/components/Chat/ChatFooter.jsx +2 -2
  114. package/src/Prebuilt/components/Chat/ChatHeader.jsx +3 -3
  115. package/src/Prebuilt/components/Chat/ChatSelector.jsx +2 -2
  116. package/src/Prebuilt/components/Chat/useEmojiPickerStyles.js +6 -6
  117. package/src/Prebuilt/components/Chip.jsx +24 -0
  118. package/src/Prebuilt/components/Connection/ConnectionIndicator.jsx +6 -6
  119. package/src/Prebuilt/components/Connection/TileConnection.jsx +2 -2
  120. package/src/Prebuilt/components/Connection/connectionQualityUtils.js +4 -4
  121. package/src/Prebuilt/components/EmojiReaction.jsx +13 -10
  122. package/src/Prebuilt/components/ErrorBoundary.jsx +2 -2
  123. package/src/Prebuilt/components/FullPageProgress.jsx +5 -3
  124. package/src/Prebuilt/components/GoLiveButton.jsx +1 -4
  125. package/src/Prebuilt/components/HMSVideo/HLSQualitySelector.jsx +2 -2
  126. package/src/Prebuilt/components/HMSVideo/PlayButton.jsx +1 -1
  127. package/src/Prebuilt/components/HMSVideo/VideoProgress.jsx +3 -3
  128. package/src/Prebuilt/components/HMSVideo/VideoTime.jsx +3 -1
  129. package/src/Prebuilt/components/HMSVideo/VolumeControl.jsx +1 -1
  130. package/src/Prebuilt/components/Header/AdditionalRoomState.jsx +17 -17
  131. package/src/Prebuilt/components/Header/AmbientMusic.jsx +1 -1
  132. package/src/Prebuilt/components/Header/ConferencingHeader.jsx +4 -6
  133. package/src/Prebuilt/components/Header/HeaderComponents.jsx +10 -5
  134. package/src/Prebuilt/components/Header/ParticipantFilter.jsx +2 -2
  135. package/src/Prebuilt/components/Header/ParticipantList.jsx +2 -2
  136. package/src/Prebuilt/components/Header/StreamActions.jsx +9 -19
  137. package/src/Prebuilt/components/Header/StreamingHeader.jsx +5 -6
  138. package/src/Prebuilt/components/HlsStatsOverlay.jsx +2 -2
  139. package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx +102 -0
  140. package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.stories.tsx +40 -0
  141. package/src/Prebuilt/components/LeaveRoom.jsx +11 -11
  142. package/src/Prebuilt/components/MetaActions.jsx +2 -2
  143. package/src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx +2 -2
  144. package/src/Prebuilt/components/MoreSettings/ChangeSelfRole.jsx +1 -1
  145. package/src/Prebuilt/components/MoreSettings/MoreSettings.jsx +1 -0
  146. package/src/Prebuilt/components/Notifications/HLSFailureModal.jsx +69 -0
  147. package/src/Prebuilt/components/Notifications/Notifications.jsx +1 -3
  148. package/src/Prebuilt/components/Notifications/PermissionErrorModal.jsx +108 -26
  149. package/src/Prebuilt/components/Notifications/ReconnectNotifications.jsx +1 -1
  150. package/src/Prebuilt/components/PIP/pipUtils.js +2 -2
  151. package/src/Prebuilt/components/Playlist/Playlist.jsx +4 -4
  152. package/src/Prebuilt/components/Playlist/PlaylistControls.jsx +3 -3
  153. package/src/Prebuilt/components/Playlist/PlaylistItem.jsx +3 -3
  154. package/src/Prebuilt/components/Playlist/VideoPlayer.jsx +4 -4
  155. package/src/Prebuilt/components/PostLeave.jsx +4 -4
  156. package/src/Prebuilt/components/Preview/PreviewContainer.jsx +17 -6
  157. package/src/Prebuilt/components/Preview/PreviewForm.jsx +74 -0
  158. package/src/Prebuilt/components/Preview/PreviewJoin.jsx +100 -37
  159. package/src/Prebuilt/components/RoleChangeModal.jsx +3 -3
  160. package/src/Prebuilt/components/ScreenshareDisplay.jsx +2 -2
  161. package/src/Prebuilt/components/Settings/DeviceSettings.jsx +3 -9
  162. package/src/Prebuilt/components/Settings/SettingsModal.jsx +8 -32
  163. package/src/Prebuilt/components/Settings/StartRecording.jsx +4 -12
  164. package/src/Prebuilt/components/Settings/SwitchWithLabel.jsx +2 -3
  165. package/src/Prebuilt/components/Settings/common.js +26 -0
  166. package/src/Prebuilt/components/StatsForNerds.jsx +5 -5
  167. package/src/Prebuilt/components/Streaming/Common.jsx +11 -11
  168. package/src/Prebuilt/components/Streaming/HLSStreaming.jsx +6 -12
  169. package/src/Prebuilt/components/Streaming/RTMPStreaming.jsx +4 -6
  170. package/src/Prebuilt/components/Streaming/StreamingLanding.jsx +4 -4
  171. package/src/Prebuilt/components/TileMenu.jsx +7 -7
  172. package/src/Prebuilt/components/Toast/ToastConfig.jsx +12 -20
  173. package/src/Prebuilt/components/conference.jsx +9 -2
  174. package/src/Prebuilt/components/hooks/useDropdownSelection.jsx +1 -4
  175. package/src/Prebuilt/components/pdfAnnotator/pdfErrorView.jsx +2 -2
  176. package/src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx +1 -1
  177. package/src/Prebuilt/components/pdfAnnotator/pdfHeader.jsx +1 -1
  178. package/src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx +2 -2
  179. package/src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx +12 -20
  180. package/src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx +4 -4
  181. package/src/Prebuilt/images/Logo.svg +8 -0
  182. package/src/Prebuilt/images/first_person.png +0 -0
  183. package/src/Prebuilt/images/rtmp.png +0 -0
  184. package/src/Prebuilt/index.d.ts +6 -1
  185. package/src/Prebuilt/layouts/HLSView.jsx +1 -1
  186. package/src/Prebuilt/layouts/InsetView.jsx +0 -3
  187. package/src/Prebuilt/layouts/NonPublisherView.jsx +2 -2
  188. package/src/Prebuilt/layouts/SidePane.jsx +1 -1
  189. package/src/Prebuilt/layouts/WaitingView.jsx +2 -2
  190. package/src/Prebuilt/layouts/mainView.jsx +42 -5
  191. package/src/Prebuilt/plugins/FlyingEmoji.jsx +2 -2
  192. package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +1 -0
  193. package/src/Prebuilt/plugins/whiteboard/ToggleWhiteboard.jsx +1 -3
  194. package/src/Prebuilt/primitives/DialogContent.jsx +4 -4
  195. package/src/Prebuilt/primitives/DropdownTrigger.jsx +3 -3
  196. package/src/Prebuilt/provider/roomLayoutProvider/constants/index.ts +33 -0
  197. package/src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts +57 -0
  198. package/src/Prebuilt/provider/roomLayoutProvider/index.tsx +26 -0
  199. package/src/Progress/index.tsx +2 -2
  200. package/src/RadioGroup/RadioGroup.tsx +3 -3
  201. package/src/ReactSelect/ReactSelect.stories.tsx +7 -7
  202. package/src/ReactSelect/ReactSelect.tsx +8 -8
  203. package/src/Select/Select.tsx +6 -6
  204. package/src/Slider/Slider.tsx +5 -5
  205. package/src/Stats/Stats.tsx +12 -2
  206. package/src/Stats/StyledStats.tsx +3 -3
  207. package/src/Switch/Switch.tsx +5 -5
  208. package/src/Tabs/Tabs.stories.tsx +2 -2
  209. package/src/Tabs/Tabs.tsx +2 -2
  210. package/src/Text/Text.tsx +2 -2
  211. package/src/Theme/ThemeProvider.tsx +4 -7
  212. package/src/Theme/ThemeStory.jsx +17 -19
  213. package/src/Theme/base.config.ts +31 -59
  214. package/src/Theme/index.tsx +0 -1
  215. package/src/Theme/stitches.config.ts +2 -7
  216. package/src/TileMenu/StyledMenuTile.tsx +11 -8
  217. package/src/Toast/Toast.tsx +10 -9
  218. package/src/Tooltip/Tooltip.stories.tsx +1 -1
  219. package/src/Tooltip/Tooltip.tsx +4 -4
  220. package/src/Video/Video.tsx +1 -1
  221. package/src/VideoTile/StyledVideoTile.tsx +12 -12
  222. package/src/assets/android-perm-0.png +0 -0
  223. package/src/assets/android-perm-1.png +0 -0
  224. package/src/assets/ios-perm-0.png +0 -0
  225. package/src/fixtures/chats.ts +1 -1
  226. package/dist/HLSView-3RDXRV7Y.js.map +0 -7
  227. package/dist/Theme/themes.d.ts +0 -64
  228. package/dist/chunk-7YUYZ64D.js.map +0 -7
  229. package/dist/chunk-HCAGFNXW.js.map +0 -7
  230. package/dist/chunk-KYYP6ZVK.js.map +0 -7
  231. package/dist/chunk-ULXGBUSC.js +0 -65
  232. package/dist/chunk-ULXGBUSC.js.map +0 -7
  233. package/dist/conference-IDNRO4WK.js.map +0 -7
  234. package/src/Prebuilt/components/Preview/PreviewName.jsx +0 -37
  235. package/src/Prebuilt/components/Streaming/RTMPIcon.jsx +0 -24
  236. package/src/Prebuilt/hms.js +0 -7
  237. package/src/Prebuilt/plugins/confetti.jsx +0 -60
  238. package/src/Theme/themes.ts +0 -70
  239. /package/dist/{ActiveSpeakerView-H3VYXANB.js.map → ActiveSpeakerView-4XPIRZOK.js.map} +0 -0
  240. /package/dist/{PinnedTrackView-453PELNU.js.map → PinnedTrackView-GGTCNH5V.js.map} +0 -0
  241. /package/dist/{transcription-BTSB7FZH.js.map → transcription-PYTSSAOB.js.map} +0 -0
@@ -13,7 +13,7 @@ const BottomActionSheet = ({
13
13
  sideOffset = -50,
14
14
  defaultHeight = 50,
15
15
  }) => {
16
- const MINIMUM_HEIGHT = 20; // vh
16
+ const MINIMUM_HEIGHT = 40; // vh
17
17
  const [sheetOpen, setSheetOpen] = useState(false);
18
18
  const [sheetHeight, setSheetHeight] = useState(`${Math.min(Math.max(MINIMUM_HEIGHT, defaultHeight), 100)}vh`);
19
19
  const closeRef = useRef(null);
@@ -27,14 +27,18 @@ const PinnedMessage = ({ clearPinnedMessage }) => {
27
27
  const pinnedMessage = useHMSStore(selectSessionStore(SESSION_STORE_KEY.PINNED_MESSAGE));
28
28
 
29
29
  return pinnedMessage ? (
30
- <Flex css={{ p: '$8', color: '$textMedEmp', bg: '$surfaceLight', r: '$1' }} align="center" justify="between">
30
+ <Flex
31
+ css={{ p: '$8', color: '$on_surface_medium', bg: '$surface_bright', r: '$1' }}
32
+ align="center"
33
+ justify="between"
34
+ >
31
35
  <Box>
32
36
  <PinIcon />
33
37
  </Box>
34
38
  <Box
35
39
  css={{
36
40
  ml: '$8',
37
- color: '$textMedEmp',
41
+ color: '$on_surface_medium',
38
42
  w: '100%',
39
43
  maxHeight: '$18',
40
44
  overflowY: 'auto',
@@ -46,16 +46,16 @@ const MessageTypeContainer = ({ left, right }) => {
46
46
  ml: 'auto',
47
47
  mr: '$4',
48
48
  p: '$2 $4',
49
- border: '1px solid $textDisabled',
49
+ border: '1px solid $on_surface_low',
50
50
  r: '$0',
51
51
  }}
52
52
  >
53
53
  {left && (
54
- <SenderName variant="tiny" as="span" css={{ color: '$textMedEmp' }}>
54
+ <SenderName variant="tiny" as="span" css={{ color: '$on_surface_medium' }}>
55
55
  {left}
56
56
  </SenderName>
57
57
  )}
58
- {left && right && <Box css={{ borderLeft: '1px solid $textDisabled', mx: '$4', h: '$8' }} />}
58
+ {left && right && <Box css={{ borderLeft: '1px solid $on_surface_low', mx: '$4', h: '$8' }} />}
59
59
  {right && (
60
60
  <SenderName as="span" variant="tiny">
61
61
  {right}
@@ -87,7 +87,7 @@ const URL_REGEX =
87
87
  /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
88
88
 
89
89
  const Link = styled('a', {
90
- color: '$brandDefault',
90
+ color: '$primary_default',
91
91
  wordBreak: 'break-word',
92
92
  '&:hover': {
93
93
  textDecoration: 'underline',
@@ -132,14 +132,16 @@ const ChatActions = ({ onPin }) => {
132
132
  <Dropdown.Trigger asChild>
133
133
  <IconButton>
134
134
  <Tooltip title="More options">
135
- <Box>
136
- <HorizontalMenuIcon />
137
- </Box>
135
+ <HorizontalMenuIcon />
138
136
  </Tooltip>
139
137
  </IconButton>
140
138
  </Dropdown.Trigger>
141
139
  <Dropdown.Portal>
142
- <Dropdown.Content sideOffset={5} align="end" css={{ width: '$48' }}>
140
+ <Dropdown.Content
141
+ sideOffset={5}
142
+ align="end"
143
+ css={{ width: '$48', backgroundColor: '$surface_bright', py: '$0' }}
144
+ >
143
145
  <Dropdown.Item data-testid="pin_message_btn" onClick={onPin}>
144
146
  <PinIcon />
145
147
  <Text variant="sm" css={{ ml: '$4' }}>
@@ -192,7 +194,7 @@ const ChatMessage = React.memo(({ index, style = {}, message, setRowHeight, onPi
192
194
  align="center"
193
195
  css={{
194
196
  flexWrap: 'wrap',
195
- bg: messageType ? '$surfaceLight' : undefined,
197
+ bg: messageType ? '$surface_bright' : undefined,
196
198
  r: messageType ? '$1' : undefined,
197
199
  px: messageType ? '$4' : '$2',
198
200
  py: messageType ? '$4' : 0,
@@ -203,7 +205,7 @@ const ChatMessage = React.memo(({ index, style = {}, message, setRowHeight, onPi
203
205
  >
204
206
  <Text
205
207
  css={{
206
- color: '$textHighEmp',
208
+ color: '$on_surface_high',
207
209
  fontWeight: '$semiBold',
208
210
  display: 'inline-flex',
209
211
  alignItems: 'center',
@@ -225,7 +227,7 @@ const ChatMessage = React.memo(({ index, style = {}, message, setRowHeight, onPi
225
227
  variant="sm"
226
228
  css={{
227
229
  ml: '$4',
228
- color: '$textSecondary',
230
+ color: '$on_primary_medium',
229
231
  flexShrink: 0,
230
232
  }}
231
233
  >
@@ -11,7 +11,7 @@ import { useEmojiPickerStyles } from './useEmojiPickerStyles';
11
11
  const TextArea = styled('textarea', {
12
12
  width: '100%',
13
13
  bg: 'transparent',
14
- color: '$textPrimary',
14
+ color: '$on_primary_high',
15
15
  resize: 'none',
16
16
  lineHeight: '1rem',
17
17
  position: 'relative',
@@ -105,7 +105,7 @@ export const ChatFooter = ({ role, peerId, onSend, children }) => {
105
105
  <Flex
106
106
  align="center"
107
107
  css={{
108
- bg: '$surfaceLight',
108
+ bg: '$surface_bright',
109
109
  minHeight: '$16',
110
110
  maxHeight: '$24',
111
111
  position: 'relative',
@@ -13,7 +13,7 @@ export const ChatHeader = React.memo(({ selection, selectorOpen, onToggle, onSel
13
13
  onClick={onToggle}
14
14
  align="center"
15
15
  css={{
16
- color: '$textPrimary',
16
+ color: '$on_primary_high',
17
17
  h: '$16',
18
18
  mb: '$2',
19
19
  }}
@@ -24,7 +24,7 @@ export const ChatHeader = React.memo(({ selection, selectorOpen, onToggle, onSel
24
24
  asChild
25
25
  data-testid="participant_list_filter"
26
26
  css={{
27
- border: '1px solid $textDisabled',
27
+ border: '1px solid $on_surface_low',
28
28
  r: '$0',
29
29
  p: '$2 $4',
30
30
  ml: '$8',
@@ -35,7 +35,7 @@ export const ChatHeader = React.memo(({ selection, selectorOpen, onToggle, onSel
35
35
  <Text variant="sm" css={{ ...textEllipsis(80) }}>
36
36
  {selection}
37
37
  </Text>
38
- <Box css={{ ml: '$2', color: '$textDisabled' }}>
38
+ <Box css={{ ml: '$2', color: '$on_surface_low' }}>
39
39
  {open ? <ChevronUpIcon width={14} height={14} /> : <ChevronDownIcon width={14} height={14} />}
40
40
  </Box>
41
41
  </Flex>
@@ -14,14 +14,14 @@ import { ParticipantSearch } from '../Header/ParticipantList';
14
14
  import { useFilteredRoles } from '../../common/hooks';
15
15
 
16
16
  const ChatDotIcon = () => {
17
- return <Box css={{ size: '$6', bg: '$brandDefault', mx: '$2', r: '$round' }} />;
17
+ return <Box css={{ size: '$6', bg: '$primary_default', mx: '$2', r: '$round' }} />;
18
18
  };
19
19
 
20
20
  const SelectorItem = ({ value, active, onClick, unreadCount }) => {
21
21
  return (
22
22
  <Dropdown.Item data-testid="chat_members" css={{ align: 'center', px: '$10' }} onClick={onClick}>
23
23
  <Text variant="sm">{value}</Text>
24
- <Flex align="center" css={{ ml: 'auto', color: '$textPrimary' }}>
24
+ <Flex align="center" css={{ ml: 'auto', color: '$on_primary_high' }}>
25
25
  {unreadCount > 0 && (
26
26
  <Tooltip title={`${unreadCount} unread`}>
27
27
  <Box css={{ mr: active ? '$3' : 0 }}>
@@ -9,16 +9,16 @@ export const useEmojiPickerStyles = showing => {
9
9
  const style = document.createElement('style');
10
10
  style.textContent = `
11
11
  #root {
12
- --em-rgb-color: var(--hms-ui-colors-textPrimary);
13
- --em-rgb-input: var(--hms-ui-colors-textPrimary);
14
- --em-color-border: var(--hms-ui-colors-surfaceDefault);
15
- --color-b: var(--hms-ui-colors-textPrimary);
12
+ --em-rgb-color: var(--hms-ui-colors-on_primary_high);
13
+ --em-rgb-input: var(--hms-ui-colors-on_primary_high);
14
+ --em-color-border: var(--hms-ui-colors-surface_default);
15
+ --color-b: var(--hms-ui-colors-on_primary_high);
16
16
  --rgb-background: transparent;
17
- color: var(--hms-ui-colors-textPrimary);
17
+ color: var(--hms-ui-colors-on_primary_high);
18
18
  font-family: var(--hms-ui-fonts-sans);
19
19
  }
20
20
  .sticky {
21
- background-color: var(--hms-ui-colors-surfaceLight);
21
+ background-color: var(--hms-ui-colors-surface_bright);
22
22
  }
23
23
  `;
24
24
  root?.appendChild(style);
@@ -0,0 +1,24 @@
1
+ import { Flex } from '../../Layout';
2
+ import { Text } from '../../Text';
3
+
4
+ const Chip = ({
5
+ icon = <></>,
6
+ content = '',
7
+ backgroundColor = '$surface_default',
8
+ textColor = '$on_surface_high',
9
+ hideIfNoContent = false,
10
+ }) => {
11
+ if (hideIfNoContent && !content) {
12
+ return;
13
+ }
14
+ return (
15
+ <Flex align="center" css={{ backgroundColor, p: '$4 $6', borderRadius: '$4' }}>
16
+ {icon}
17
+ <Text variant="sm" css={{ fontWeight: '$semiBold', color: textColor, ml: '$2' }}>
18
+ {content}
19
+ </Text>
20
+ </Flex>
21
+ );
22
+ };
23
+
24
+ export default Chip;
@@ -10,7 +10,7 @@ const Wrapper = styled('span', {
10
10
  display: 'flex',
11
11
  alignItems: 'center',
12
12
  justifyContent: 'center',
13
- backgroundColor: '$transparentBg',
13
+ backgroundColor: '$background_dim',
14
14
  borderRadius: '$round',
15
15
  variants: {
16
16
  isTile: {
@@ -25,7 +25,7 @@ const Wrapper = styled('span', {
25
25
  export const ConnectionIndicator = ({ peerId, isTile = false }) => {
26
26
  const downlinkQuality = useHMSStore(selectConnectionQualityByPeerID(peerId))?.downlinkQuality;
27
27
  const { theme } = useTheme();
28
- const defaultColor = theme.colors.bgTertiary;
28
+ const defaultColor = theme.colors.surface_brighter;
29
29
  if (downlinkQuality === -1 || downlinkQuality === undefined) {
30
30
  return null;
31
31
  }
@@ -57,21 +57,21 @@ export const ConnectionIndicator = ({ peerId, isTile = false }) => {
57
57
  >
58
58
  <path
59
59
  d="M6.875 0c2.549.035 4.679.902 6.445 2.648.366.362.45.796.216 1.096-.239.306-.714.34-1.142.072a2.28 2.28 0 0 1-.341-.271C9.24.862 4.924.775 1.992 3.346c-.284.249-.594.419-.983.393-.272-.019-.49-.135-.613-.388-.125-.261-.05-.498.114-.713.073-.092.156-.177.245-.254C2.516.804 4.591.039 6.875 0Z"
60
- fill={getColor(4, downlinkQuality, defaultColor)}
60
+ fill={getColor(4, downlinkQuality, defaultColor, theme)}
61
61
  transform="translate(-.333)"
62
62
  />
63
63
  <path
64
64
  d="M7.056 2.964c1.756.035 3.208.7 4.499 1.763.162.134.277.315.354.512.098.251.114.503-.075.72-.193.222-.452.259-.725.198-.293-.066-.518-.247-.738-.443a4.859 4.859 0 0 0-6.198-.26c-.166.127-.318.271-.475.409-.242.211-.513.343-.843.317-.43-.034-.679-.397-.561-.81.062-.211.181-.4.345-.546 1.265-1.162 2.733-1.836 4.417-1.86Z"
65
- fill={getColor(3, downlinkQuality, defaultColor)}
65
+ fill={getColor(3, downlinkQuality, defaultColor, theme)}
66
66
  transform="translate(-.333)"
67
67
  />
68
68
  <path
69
69
  d="M7.384,6.052C8.293,6.068 9.157,6.449 9.783,7.108C10.005,7.339 10.157,7.6 10.07,7.942C9.959,8.377 9.435,8.581 9.071,8.243C7.935,7.191 6.356,7.183 5.152,8.183C4.816,8.462 4.6,8.485 4.332,8.27C4.063,8.055 3.998,7.691 4.177,7.358C4.273,7.179 4.414,7.038 4.57,6.911C5.26,6.349 6.149,6.05 7.384,6.052L7.384,6.052Z"
70
- fill={getColor(2, downlinkQuality, defaultColor)}
70
+ fill={getColor(2, downlinkQuality, defaultColor, theme)}
71
71
  />
72
72
  <path
73
73
  d="M8.214,9.941C8.214,10.234 8.097,10.515 7.888,10.721C7.68,10.928 7.398,11.042 7.104,11.039C6.471,11.036 5.982,10.541 5.993,9.912C6.004,9.259 6.499,8.766 7.133,8.779C7.744,8.791 8.22,9.301 8.214,9.941Z"
74
- fill={getColor(1, downlinkQuality, defaultColor)}
74
+ fill={getColor(1, downlinkQuality, defaultColor, theme)}
75
75
  />
76
76
  </svg>
77
77
  </Wrapper>
@@ -8,7 +8,7 @@ const TileConnection = ({ name, peerId, hideLabel, width }) => {
8
8
  {!hideLabel ? (
9
9
  <Text
10
10
  css={{
11
- c: '$textHighEmp',
11
+ c: '$on_surface_high',
12
12
  ...textEllipsis(width - 60),
13
13
  }}
14
14
  variant="xs"
@@ -28,7 +28,7 @@ const Wrapper = styled('div', {
28
28
  position: 'absolute',
29
29
  bottom: '$2',
30
30
  left: '$2',
31
- backgroundColor: '$backgroundDark',
31
+ backgroundColor: '$background_dim',
32
32
  borderRadius: '$1',
33
33
  maxWidth: '85%',
34
34
  zIndex: 1,
@@ -23,17 +23,17 @@ export const getTooltipText = connectionScore => {
23
23
  * @param connectionScore -> 0 to 5, 0 means disconnected
24
24
  * @param defaultColor -> color for components not taking the connection color
25
25
  */
26
- export const getColor = (position, connectionScore, defaultColor) => {
26
+ export const getColor = (position, connectionScore, defaultColor, theme) => {
27
27
  const shouldBeColored = position <= connectionScore;
28
28
  if (!shouldBeColored) {
29
29
  return defaultColor;
30
30
  }
31
31
  if (connectionScore >= 4) {
32
- return '#37F28D';
32
+ return theme.colors.alert_success;
33
33
  } else if (connectionScore >= 3) {
34
- return '#FAC919';
34
+ return theme.colors.alert_warning;
35
35
  } else if (connectionScore >= 1) {
36
- return '#ED4C5A';
36
+ return theme.colors.alert_default;
37
37
  }
38
38
  return defaultColor;
39
39
  };
@@ -13,7 +13,7 @@ import {
13
13
  } from '@100mslive/react-sdk';
14
14
  import { EmojiIcon } from '@100mslive/react-icons';
15
15
  import { Dropdown } from '../../Dropdown';
16
- import { Box, Flex } from '../../Layout';
16
+ import { Flex } from '../../Layout';
17
17
  import { Text } from '../../Text';
18
18
  import { styled } from '../../Theme';
19
19
  import { Tooltip } from '../../Tooltip';
@@ -79,13 +79,11 @@ export const EmojiReaction = () => {
79
79
  <Dropdown.Trigger asChild data-testid="emoji_reaction_btn">
80
80
  <IconButton>
81
81
  <Tooltip title="Emoji reaction">
82
- <Box>
83
- <EmojiIcon />
84
- </Box>
82
+ <EmojiIcon />
85
83
  </Tooltip>
86
84
  </IconButton>
87
85
  </Dropdown.Trigger>
88
- <Dropdown.Content sideOffset={5} align="center" css={{ p: '$8', bg: '$surfaceDefault' }}>
86
+ <Dropdown.Content sideOffset={5} align="center" css={{ p: '$8', bg: '$surface_default' }}>
89
87
  {emojiReactionList.map((emojiLine, index) => (
90
88
  <Flex key={index} justify="between" css={{ mb: '$8' }}>
91
89
  {emojiLine.map(emoji => (
@@ -100,7 +98,7 @@ export const EmojiReaction = () => {
100
98
  variant="sm"
101
99
  inline={true}
102
100
  css={{
103
- color: '$textSecondary',
101
+ color: '$on_primary_medium',
104
102
  }}
105
103
  >
106
104
  Reactions will be timed for Live Streaming viewers.{' '}
@@ -109,12 +107,17 @@ export const EmojiReaction = () => {
109
107
  variant="sm"
110
108
  inline={true}
111
109
  css={{
112
- color: '$primaryLight',
110
+ color: '$primary_bright',
113
111
  fontWeight: '$semiBold',
114
112
  }}
115
113
  >
116
- <a href={HLS_TIMED_METADATA_DOC_URL} target="_blank" rel="noopener noreferrer">
117
- {'Learn more ->'}
114
+ <a
115
+ href={HLS_TIMED_METADATA_DOC_URL}
116
+ target="_blank"
117
+ rel="noopener noreferrer"
118
+ style={{ color: 'inherit', textDecoration: 'none' }}
119
+ >
120
+ Learn more.
118
121
  </a>
119
122
  </Text>
120
123
  </div>
@@ -132,7 +135,7 @@ const EmojiContainer = styled('span', {
132
135
  p: '$4',
133
136
  '&:hover': {
134
137
  p: '7px',
135
- bg: '$surfaceLighter',
138
+ bg: '$surface_brighter',
136
139
  borderRadius: '$1',
137
140
  },
138
141
  });
@@ -37,8 +37,8 @@ export class ErrorBoundary extends Component {
37
37
  size: '100%',
38
38
  height: '100vh',
39
39
  width: '100%',
40
- color: '$textPrimary',
41
- backgroundColor: 'black',
40
+ color: '$on_primary_high',
41
+ backgroundColor: '$background_default',
42
42
  }}
43
43
  >
44
44
  <Box css={{ position: 'relative', overflow: 'hidden', r: '$3', height: '100%', width: '100%' }}>
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
2
  import { Flex } from '../../Layout';
3
3
  import { Loading } from '../../Loading';
4
+ import { Text } from '../../Text';
4
5
 
5
- const FullPageProgress = () => (
6
- <Flex justify="center" align="center" css={{ size: '100%' }}>
7
- <Loading size={100} />
6
+ const FullPageProgress = ({ loaderColor = '$primary_default', loadingText = '' }) => (
7
+ <Flex direction="column" justify="center" align="center" css={{ size: '100%', color: loaderColor }}>
8
+ <Loading color="currentColor" size={100} />
9
+ {loadingText ? <Text css={{ mt: '$10', color: '$on_surface_high' }}>{loadingText}</Text> : null}
8
10
  </Flex>
9
11
  );
10
12
 
@@ -27,10 +27,7 @@ const GoLiveButton = () => {
27
27
  <Button
28
28
  data-testid="go_live"
29
29
  variant={isStreamingSidepaneOpen ? 'standard' : 'primary'}
30
- onClick={() => {
31
- toggleStreaming();
32
- window.sessionStorage.setItem('userStartedStream', 'true');
33
- }}
30
+ onClick={toggleStreaming}
34
31
  icon
35
32
  loading={isRTMPStartedFromUI || isHLSStartedFromUI}
36
33
  disabled={isBrowserRecordingOn && !isStreamingOn}
@@ -10,7 +10,7 @@ export function HLSQualitySelector({ layers, onQualityChange, selection, isAuto
10
10
  <Dropdown.Trigger asChild data-testid="quality_selector">
11
11
  <Flex
12
12
  css={{
13
- color: '$textPrimary',
13
+ color: '$on_primary_high',
14
14
  r: '$1',
15
15
  cursor: 'pointer',
16
16
  p: '$2',
@@ -44,7 +44,7 @@ export function HLSQualitySelector({ layers, onQualityChange, selection, isAuto
44
44
  mx: '$2',
45
45
  w: '$2',
46
46
  h: '$2',
47
- background: '$textPrimary',
47
+ background: '$on_primary_high',
48
48
  r: '$1',
49
49
  }}
50
50
  />
@@ -4,7 +4,7 @@ import { IconButton, Tooltip } from '../../../';
4
4
 
5
5
  export const PlayButton = ({ onClick, isPaused }) => {
6
6
  return (
7
- <Tooltip title={`${isPaused ? 'Play' : 'Pause'}`} side="top">
7
+ <Tooltip title={isPaused ? 'Play' : 'Pause'} side="top">
8
8
  <IconButton onClick={onClick} data-testid="play_pause_btn">
9
9
  {isPaused ? <PlayIcon width={32} height={32} /> : <PauseIcon width={32} height={32} />}
10
10
  </IconButton>
@@ -52,7 +52,7 @@ export const VideoProgress = ({ onValueChange, hlsPlayer }) => {
52
52
  css={{
53
53
  display: 'inline',
54
54
  width: `${videoProgress}%`,
55
- background: '$primaryDefault',
55
+ background: '$primary_default',
56
56
  height: '0.3rem',
57
57
  }}
58
58
  />
@@ -60,7 +60,7 @@ export const VideoProgress = ({ onValueChange, hlsPlayer }) => {
60
60
  id="video-buffer"
61
61
  css={{
62
62
  width: `${bufferProgress - videoProgress}%`,
63
- background: '$primaryDark',
63
+ background: '$primary_dim',
64
64
  height: '0.3rem',
65
65
  }}
66
66
  />
@@ -68,7 +68,7 @@ export const VideoProgress = ({ onValueChange, hlsPlayer }) => {
68
68
  id="video-rest"
69
69
  css={{
70
70
  width: `${100 - bufferProgress}%`,
71
- background: '$grayLight',
71
+ background: '$surface_brighter',
72
72
  height: '0.3rem',
73
73
  }}
74
74
  />
@@ -26,6 +26,8 @@ export const VideoTime = ({ hlsPlayer }) => {
26
26
  variant={{
27
27
  '@sm': 'xs',
28
28
  }}
29
- >{`${videoTime}`}</Text>
29
+ >
30
+ {videoTime}
31
+ </Text>
30
32
  ) : null;
31
33
  };
@@ -6,7 +6,7 @@ export const VolumeControl = ({ hlsPlayer }) => {
6
6
  const [volume, setVolume] = useState(hlsPlayer?.volume ?? 100);
7
7
 
8
8
  return (
9
- <Flex align="center" css={{ color: '$white' }}>
9
+ <Flex align="center" css={{ color: '$on_primary_high' }}>
10
10
  <SpeakerIcon
11
11
  style={{ cursor: 'pointer' }}
12
12
  onClick={() => {
@@ -76,9 +76,9 @@ export const AdditionalRoomState = () => {
76
76
  <Flex
77
77
  align="center"
78
78
  css={{
79
- color: '$textPrimary',
79
+ color: '$on_primary_high',
80
80
  borderRadius: '$1',
81
- border: '1px solid $textDisabled',
81
+ border: '1px solid $on_surface_low',
82
82
  padding: '$4',
83
83
  '@sm': { display: 'none' },
84
84
  }}
@@ -86,47 +86,47 @@ export const AdditionalRoomState = () => {
86
86
  >
87
87
  {!isAudioshareInactive && (
88
88
  <Tooltip title="Screenshare Audio">
89
- <Flex align="center" css={{ color: '$textPrimary', mx: '$2' }}>
89
+ <Flex align="center" css={{ color: '$on_primary_high', mx: '$2' }}>
90
90
  <MusicIcon width={24} height={24} />
91
91
  </Flex>
92
92
  </Tooltip>
93
93
  )}
94
94
  {shouldShowScreenShareState && (
95
95
  <Tooltip title="Screenshare">
96
- <Flex align="center" css={{ color: '$textPrimary', mx: '$2' }}>
96
+ <Flex align="center" css={{ color: '$on_primary_high', mx: '$2' }}>
97
97
  <ShareScreenIcon width={24} height={24} />
98
98
  </Flex>
99
99
  </Tooltip>
100
100
  )}
101
101
  {shouldShowVideoState && (
102
102
  <Tooltip title="video playlist">
103
- <Flex align="center" css={{ color: '$textPrimary', mx: '$2' }}>
103
+ <Flex align="center" css={{ color: '$on_primary_high', mx: '$2' }}>
104
104
  <VideoPlayerIcon width={24} height={24} />
105
105
  </Flex>
106
106
  </Tooltip>
107
107
  )}
108
108
  {!isPlaylistInactive && (
109
109
  <Tooltip title="Playlist Music">
110
- <Flex align="center" css={{ color: '$textPrimary', mx: '$2' }}>
110
+ <Flex align="center" css={{ color: '$on_primary_high', mx: '$2' }}>
111
111
  <AudioPlayerIcon width={24} height={24} />
112
112
  </Flex>
113
113
  </Tooltip>
114
114
  )}
115
115
  {whiteboardOwner && (
116
116
  <Tooltip title="Whiteboard">
117
- <Flex align="center" css={{ color: '$textPrimary', mx: '$2' }}>
117
+ <Flex align="center" css={{ color: '$on_primary_high', mx: '$2' }}>
118
118
  <PencilDrawIcon width={24} height={24} />
119
119
  </Flex>
120
120
  </Tooltip>
121
121
  )}
122
- <Box css={{ '@lg': { display: 'none' }, color: '$textDisabled' }}>
122
+ <Box css={{ '@lg': { display: 'none' }, color: '$on_surface_low' }}>
123
123
  {open ? <ChevronUpIcon /> : <ChevronDownIcon />}
124
124
  </Box>
125
125
  </Flex>
126
126
  </Dropdown.Trigger>
127
127
  <Dropdown.Content sideOffset={5} align="end" css={{ w: '$60' }}>
128
128
  {!isPlaylistInactive && (
129
- <Dropdown.Item css={{ color: '$textPrimary' }}>
129
+ <Dropdown.Item css={{ color: '$on_primary_high' }}>
130
130
  <AudioPlayerIcon width={24} height={24} />
131
131
  <Text variant="sm" css={{ ml: '$2', flex: '1 1 0' }}>
132
132
  Playlist is playing
@@ -134,7 +134,7 @@ export const AdditionalRoomState = () => {
134
134
  {playlist.peer.isLocal ? (
135
135
  <Text
136
136
  variant="sm"
137
- css={{ color: '$error', cursor: 'pointer', ml: '$2' }}
137
+ css={{ color: '$alert_error_default', cursor: 'pointer', ml: '$2' }}
138
138
  onClick={e => {
139
139
  e.preventDefault();
140
140
  playlist.selection.playing ? playlist.pause() : playlist.play(playlist.selection.id);
@@ -145,7 +145,7 @@ export const AdditionalRoomState = () => {
145
145
  ) : (
146
146
  <Text
147
147
  variant="sm"
148
- css={{ color: '$error', ml: '$2', cursor: 'pointer' }}
148
+ css={{ color: '$alert_error_default', ml: '$2', cursor: 'pointer' }}
149
149
  onClick={e => {
150
150
  e.preventDefault();
151
151
  playlist.setVolume(!playlist.track.volume ? 100 : 0);
@@ -157,14 +157,14 @@ export const AdditionalRoomState = () => {
157
157
  </Dropdown.Item>
158
158
  )}
159
159
  {!isAudioshareInactive && (
160
- <Dropdown.Item css={{ color: '$textPrimary' }}>
160
+ <Dropdown.Item css={{ color: '$on_primary_high' }}>
161
161
  <MusicIcon width={24} height={24} />
162
162
  <Text variant="sm" css={{ ml: '$2', flex: '1 1 0' }}>
163
163
  Music is playing
164
164
  </Text>
165
165
  <Text
166
166
  variant="sm"
167
- css={{ color: '$error', ml: '$2', cursor: 'pointer' }}
167
+ css={{ color: '$alert_error_default', ml: '$2', cursor: 'pointer' }}
168
168
  onClick={e => {
169
169
  e.preventDefault();
170
170
  screenshareAudio.onToggle();
@@ -175,7 +175,7 @@ export const AdditionalRoomState = () => {
175
175
  </Dropdown.Item>
176
176
  )}
177
177
  {shouldShowScreenShareState && (
178
- <Dropdown.Item css={{ color: '$textPrimary' }}>
178
+ <Dropdown.Item css={{ color: '$on_primary_high' }}>
179
179
  <ShareScreenIcon width={24} height={24} />
180
180
  <Text variant="sm" css={{ ml: '$2', flex: '1 1 0' }}>
181
181
  {`Shared by: ${screenSharingPeerId === localPeerID ? 'You' : screenSharingPeerName}`}
@@ -183,7 +183,7 @@ export const AdditionalRoomState = () => {
183
183
  </Dropdown.Item>
184
184
  )}
185
185
  {shouldShowVideoState && (
186
- <Dropdown.Item css={{ color: '$textPrimary' }}>
186
+ <Dropdown.Item css={{ color: '$on_primary_high' }}>
187
187
  <VideoPlayerIcon width={24} height={24} />
188
188
  <Text variant="sm" css={{ ml: '$2', flex: '1 1 0' }}>
189
189
  {`Shared by: ${peerSharingPlaylist.id === localPeerID ? 'You' : peerSharingPlaylist.name}`}
@@ -191,7 +191,7 @@ export const AdditionalRoomState = () => {
191
191
  </Dropdown.Item>
192
192
  )}
193
193
  {whiteboardOwner && (
194
- <Dropdown.Item css={{ color: '$textPrimary' }}>
194
+ <Dropdown.Item css={{ color: '$on_primary_high' }}>
195
195
  <PencilDrawIcon width={24} height={24} />
196
196
  <Text variant="sm" css={{ ml: '$2', flex: '1 1 0' }}>
197
197
  Whiteboard Owner - {whiteboardOwner.name}
@@ -200,7 +200,7 @@ export const AdditionalRoomState = () => {
200
200
  {amIWhiteboardOwner && (
201
201
  <Text
202
202
  variant="sm"
203
- css={{ color: '$error', ml: '$2', cursor: 'pointer' }}
203
+ css={{ color: '$alert_error_default', ml: '$2', cursor: 'pointer' }}
204
204
  onClick={e => {
205
205
  e.preventDefault();
206
206
  toggleWhiteboard();
@@ -79,7 +79,7 @@ export const AmbientMusic = () => {
79
79
  }
80
80
 
81
81
  return (
82
- <Tooltip title={`${playing ? `Disable Ambient Music` : `Play Ambient Music`}`} key="ambient-music">
82
+ <Tooltip title={playing ? `Disable Ambient Music` : `Play Ambient Music`} key="ambient-music">
83
83
  <IconButton css={{ mx: '$4' }} onClick={toggleAmbientMusic} active={!playing}>
84
84
  <MusicIcon />
85
85
  </IconButton>