@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.
- package/README.md +18 -0
- package/dist/Accordion/Accordion.d.ts +62 -138
- package/dist/Accordion/index.d.ts +62 -138
- package/dist/{ActiveSpeakerView-H3VYXANB.js → ActiveSpeakerView-4XPIRZOK.js} +6 -6
- package/dist/{HLSView-6BVBCQM7.css → ActiveSpeakerView-ADEYHQMU.css} +2 -2
- package/dist/{PinnedTrackView-QQ5FDXJX.css.map → ActiveSpeakerView-ADEYHQMU.css.map} +2 -2
- package/dist/Avatar/Avatar.d.ts +31 -69
- package/dist/Button/Button.d.ts +31 -69
- package/dist/Checkbox/Checkbox.d.ts +62 -138
- package/dist/Collapsible/Collapsible.d.ts +93 -207
- package/dist/Divider/Divider.d.ts +62 -138
- package/dist/Dropdown/Dropdown.d.ts +372 -828
- package/dist/Fieldset/Fieldset.d.ts +31 -69
- package/dist/Footer/Footer.d.ts +248 -552
- package/dist/{conference-KN6OKGDU.css → HLSView-DWEEMZ6Z.css} +2 -2
- package/dist/{HLSView-6BVBCQM7.css.map → HLSView-DWEEMZ6Z.css.map} +2 -2
- package/dist/{HLSView-3RDXRV7Y.js → HLSView-I26CVF5U.js} +16 -16
- package/dist/HLSView-I26CVF5U.js.map +7 -0
- package/dist/IconButton/IconButton.d.ts +31 -69
- package/dist/Input/Input.d.ts +189 -417
- package/dist/Label/Label.d.ts +31 -69
- package/dist/Layout/Box.d.ts +31 -69
- package/dist/Layout/Flex.d.ts +31 -69
- package/dist/Link/Link.d.ts +31 -69
- package/dist/Modal/Dialog.d.ts +248 -552
- package/dist/Modal/DialogContent.d.ts +217 -483
- package/dist/Pagination/StyledPagination.d.ts +124 -276
- package/dist/{PinnedTrackView-QQ5FDXJX.css → PinnedTrackView-5DPVVOZW.css} +2 -2
- package/dist/{conference-KN6OKGDU.css.map → PinnedTrackView-5DPVVOZW.css.map} +2 -2
- package/dist/{PinnedTrackView-453PELNU.js → PinnedTrackView-GGTCNH5V.js} +6 -6
- package/dist/Popover/index.d.ts +93 -207
- package/dist/Prebuilt/provider/roomLayoutProvider/constants/index.d.ts +2 -0
- package/dist/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.d.ts +9 -0
- package/dist/Prebuilt/provider/roomLayoutProvider/index.d.ts +9 -0
- package/dist/Progress/index.d.ts +62 -138
- package/dist/RadioGroup/RadioGroup.d.ts +93 -207
- package/dist/ReactSelect/ReactSelect.d.ts +310 -690
- package/dist/Select/Select.d.ts +93 -207
- package/dist/Slider/Slider.d.ts +31 -69
- package/dist/Stats/StyledStats.d.ts +186 -414
- package/dist/Switch/Switch.d.ts +31 -69
- package/dist/Tabs/Tabs.d.ts +124 -276
- package/dist/Text/Text.d.ts +31 -69
- package/dist/Theme/ThemeProvider.d.ts +63 -140
- package/dist/Theme/base.config.d.ts +31 -53
- package/dist/Theme/index.d.ts +0 -1
- package/dist/Theme/stitches.config.d.ts +404 -915
- package/dist/TileMenu/StyledMenuTile.d.ts +217 -483
- package/dist/Toast/Toast.d.ts +187 -415
- package/dist/Video/Video.d.ts +31 -69
- package/dist/VideoList/StyledVideoList.d.ts +93 -207
- package/dist/VideoTile/StyledVideoTile.d.ts +279 -621
- package/dist/{VirtualBackground-LHYBWUT5.js → VirtualBackground-ZRRE4DUA.js} +4 -3
- package/dist/{VirtualBackground-LHYBWUT5.js.map → VirtualBackground-ZRRE4DUA.js.map} +2 -2
- package/dist/{chunk-KYYP6ZVK.js → chunk-4ISMCWQA.js} +49 -146
- package/dist/chunk-4ISMCWQA.js.map +7 -0
- package/dist/{chunk-7YUYZ64D.js → chunk-KKLZ7K2L.js} +577 -898
- package/dist/chunk-KKLZ7K2L.js.map +7 -0
- package/dist/{chunk-HCAGFNXW.js → chunk-LUND6FLY.js} +1490 -1134
- package/dist/chunk-LUND6FLY.js.map +7 -0
- package/dist/chunk-MYK3T45M.js +58 -0
- package/dist/chunk-MYK3T45M.js.map +7 -0
- package/dist/{chunk-XRJXE6UO.js → chunk-THORW2WT.js} +4 -4
- package/dist/{chunk-XRJXE6UO.js.map → chunk-THORW2WT.js.map} +1 -1
- package/dist/{conference-IDNRO4WK.js → conference-5TDUAQ6K.js} +593 -532
- package/dist/conference-5TDUAQ6K.js.map +7 -0
- package/dist/{ActiveSpeakerView-REZLWPPI.css → conference-BDCDGBIS.css} +2 -2
- package/dist/{ActiveSpeakerView-REZLWPPI.css.map → conference-BDCDGBIS.css.map} +2 -2
- package/dist/index.cjs.css +1 -1
- package/dist/index.cjs.css.map +2 -2
- package/dist/index.cjs.js +3450 -3418
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.js +4 -8
- package/dist/meta.cjs.json +761 -490
- package/dist/meta.esbuild.json +857 -589
- package/dist/{transcription-BTSB7FZH.js → transcription-PYTSSAOB.js} +3 -3
- package/package.json +14 -9
- package/src/Accordion/Accordion.tsx +3 -3
- package/src/AudioLevel/AudioLevel.tsx +1 -1
- package/src/Avatar/Avatar.tsx +8 -3
- package/src/Button/Button.tsx +76 -20
- package/src/Checkbox/Checkbox.tsx +4 -4
- package/src/Collapsible/Collapsible.tsx +1 -1
- package/src/Divider/Divider.tsx +2 -2
- package/src/Divider/HorizontalDivider.stories.tsx +2 -2
- package/src/Divider/VerticalDivider.stories.tsx +1 -1
- package/src/Dropdown/Dropdown.stories.tsx +3 -3
- package/src/Dropdown/Dropdown.tsx +16 -14
- package/src/IconButton/IconButton.tsx +8 -7
- package/src/Input/Input.tsx +9 -8
- package/src/Input/PasswordInput.stories.tsx +2 -2
- package/src/Label/Label.tsx +1 -1
- package/src/Link/Link.tsx +4 -4
- package/src/Loading/Loading.tsx +7 -10
- package/src/Modal/Dialog.stories.tsx +2 -2
- package/src/Modal/DialogContent.tsx +3 -3
- package/src/Pagination/StyledPagination.tsx +4 -4
- package/src/Popover/Popover.stories.tsx +5 -5
- package/src/Popover/index.tsx +1 -1
- package/src/Prebuilt/App.jsx +101 -68
- package/src/Prebuilt/IconButton.jsx +2 -2
- package/src/Prebuilt/Prebuilt.stories.tsx +8 -2
- package/src/Prebuilt/common/constants.js +0 -1
- package/src/Prebuilt/common/utils.js +0 -6
- package/src/Prebuilt/components/AppData/AppData.jsx +7 -4
- package/src/Prebuilt/components/AppData/useUISettings.js +0 -4
- package/src/Prebuilt/components/AudioVideoToggle.jsx +73 -20
- package/src/Prebuilt/components/BottomActionSheet/BottomActionSheet.jsx +1 -1
- package/src/Prebuilt/components/Chat/Chat.jsx +6 -2
- package/src/Prebuilt/components/Chat/ChatBody.jsx +13 -11
- package/src/Prebuilt/components/Chat/ChatFooter.jsx +2 -2
- package/src/Prebuilt/components/Chat/ChatHeader.jsx +3 -3
- package/src/Prebuilt/components/Chat/ChatSelector.jsx +2 -2
- package/src/Prebuilt/components/Chat/useEmojiPickerStyles.js +6 -6
- package/src/Prebuilt/components/Chip.jsx +24 -0
- package/src/Prebuilt/components/Connection/ConnectionIndicator.jsx +6 -6
- package/src/Prebuilt/components/Connection/TileConnection.jsx +2 -2
- package/src/Prebuilt/components/Connection/connectionQualityUtils.js +4 -4
- package/src/Prebuilt/components/EmojiReaction.jsx +13 -10
- package/src/Prebuilt/components/ErrorBoundary.jsx +2 -2
- package/src/Prebuilt/components/FullPageProgress.jsx +5 -3
- package/src/Prebuilt/components/GoLiveButton.jsx +1 -4
- package/src/Prebuilt/components/HMSVideo/HLSQualitySelector.jsx +2 -2
- package/src/Prebuilt/components/HMSVideo/PlayButton.jsx +1 -1
- package/src/Prebuilt/components/HMSVideo/VideoProgress.jsx +3 -3
- package/src/Prebuilt/components/HMSVideo/VideoTime.jsx +3 -1
- package/src/Prebuilt/components/HMSVideo/VolumeControl.jsx +1 -1
- package/src/Prebuilt/components/Header/AdditionalRoomState.jsx +17 -17
- package/src/Prebuilt/components/Header/AmbientMusic.jsx +1 -1
- package/src/Prebuilt/components/Header/ConferencingHeader.jsx +4 -6
- package/src/Prebuilt/components/Header/HeaderComponents.jsx +10 -5
- package/src/Prebuilt/components/Header/ParticipantFilter.jsx +2 -2
- package/src/Prebuilt/components/Header/ParticipantList.jsx +2 -2
- package/src/Prebuilt/components/Header/StreamActions.jsx +9 -19
- package/src/Prebuilt/components/Header/StreamingHeader.jsx +5 -6
- package/src/Prebuilt/components/HlsStatsOverlay.jsx +2 -2
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx +102 -0
- package/src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.stories.tsx +40 -0
- package/src/Prebuilt/components/LeaveRoom.jsx +11 -11
- package/src/Prebuilt/components/MetaActions.jsx +2 -2
- package/src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx +2 -2
- package/src/Prebuilt/components/MoreSettings/ChangeSelfRole.jsx +1 -1
- package/src/Prebuilt/components/MoreSettings/MoreSettings.jsx +1 -0
- package/src/Prebuilt/components/Notifications/HLSFailureModal.jsx +69 -0
- package/src/Prebuilt/components/Notifications/Notifications.jsx +1 -3
- package/src/Prebuilt/components/Notifications/PermissionErrorModal.jsx +108 -26
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.jsx +1 -1
- package/src/Prebuilt/components/PIP/pipUtils.js +2 -2
- package/src/Prebuilt/components/Playlist/Playlist.jsx +4 -4
- package/src/Prebuilt/components/Playlist/PlaylistControls.jsx +3 -3
- package/src/Prebuilt/components/Playlist/PlaylistItem.jsx +3 -3
- package/src/Prebuilt/components/Playlist/VideoPlayer.jsx +4 -4
- package/src/Prebuilt/components/PostLeave.jsx +4 -4
- package/src/Prebuilt/components/Preview/PreviewContainer.jsx +17 -6
- package/src/Prebuilt/components/Preview/PreviewForm.jsx +74 -0
- package/src/Prebuilt/components/Preview/PreviewJoin.jsx +100 -37
- package/src/Prebuilt/components/RoleChangeModal.jsx +3 -3
- package/src/Prebuilt/components/ScreenshareDisplay.jsx +2 -2
- package/src/Prebuilt/components/Settings/DeviceSettings.jsx +3 -9
- package/src/Prebuilt/components/Settings/SettingsModal.jsx +8 -32
- package/src/Prebuilt/components/Settings/StartRecording.jsx +4 -12
- package/src/Prebuilt/components/Settings/SwitchWithLabel.jsx +2 -3
- package/src/Prebuilt/components/Settings/common.js +26 -0
- package/src/Prebuilt/components/StatsForNerds.jsx +5 -5
- package/src/Prebuilt/components/Streaming/Common.jsx +11 -11
- package/src/Prebuilt/components/Streaming/HLSStreaming.jsx +6 -12
- package/src/Prebuilt/components/Streaming/RTMPStreaming.jsx +4 -6
- package/src/Prebuilt/components/Streaming/StreamingLanding.jsx +4 -4
- package/src/Prebuilt/components/TileMenu.jsx +7 -7
- package/src/Prebuilt/components/Toast/ToastConfig.jsx +12 -20
- package/src/Prebuilt/components/conference.jsx +9 -2
- package/src/Prebuilt/components/hooks/useDropdownSelection.jsx +1 -4
- package/src/Prebuilt/components/pdfAnnotator/pdfErrorView.jsx +2 -2
- package/src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx +1 -1
- package/src/Prebuilt/components/pdfAnnotator/pdfHeader.jsx +1 -1
- package/src/Prebuilt/components/pdfAnnotator/pdfInfo.jsx +2 -2
- package/src/Prebuilt/components/pdfAnnotator/shareScreenOptions.jsx +12 -20
- package/src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx +4 -4
- package/src/Prebuilt/images/Logo.svg +8 -0
- package/src/Prebuilt/images/first_person.png +0 -0
- package/src/Prebuilt/images/rtmp.png +0 -0
- package/src/Prebuilt/index.d.ts +6 -1
- package/src/Prebuilt/layouts/HLSView.jsx +1 -1
- package/src/Prebuilt/layouts/InsetView.jsx +0 -3
- package/src/Prebuilt/layouts/NonPublisherView.jsx +2 -2
- package/src/Prebuilt/layouts/SidePane.jsx +1 -1
- package/src/Prebuilt/layouts/WaitingView.jsx +2 -2
- package/src/Prebuilt/layouts/mainView.jsx +42 -5
- package/src/Prebuilt/plugins/FlyingEmoji.jsx +2 -2
- package/src/Prebuilt/plugins/VirtualBackground/VirtualBackground.jsx +1 -0
- package/src/Prebuilt/plugins/whiteboard/ToggleWhiteboard.jsx +1 -3
- package/src/Prebuilt/primitives/DialogContent.jsx +4 -4
- package/src/Prebuilt/primitives/DropdownTrigger.jsx +3 -3
- package/src/Prebuilt/provider/roomLayoutProvider/constants/index.ts +33 -0
- package/src/Prebuilt/provider/roomLayoutProvider/hooks/useFetchRoomLayout.ts +57 -0
- package/src/Prebuilt/provider/roomLayoutProvider/index.tsx +26 -0
- package/src/Progress/index.tsx +2 -2
- package/src/RadioGroup/RadioGroup.tsx +3 -3
- package/src/ReactSelect/ReactSelect.stories.tsx +7 -7
- package/src/ReactSelect/ReactSelect.tsx +8 -8
- package/src/Select/Select.tsx +6 -6
- package/src/Slider/Slider.tsx +5 -5
- package/src/Stats/Stats.tsx +12 -2
- package/src/Stats/StyledStats.tsx +3 -3
- package/src/Switch/Switch.tsx +5 -5
- package/src/Tabs/Tabs.stories.tsx +2 -2
- package/src/Tabs/Tabs.tsx +2 -2
- package/src/Text/Text.tsx +2 -2
- package/src/Theme/ThemeProvider.tsx +4 -7
- package/src/Theme/ThemeStory.jsx +17 -19
- package/src/Theme/base.config.ts +31 -59
- package/src/Theme/index.tsx +0 -1
- package/src/Theme/stitches.config.ts +2 -7
- package/src/TileMenu/StyledMenuTile.tsx +11 -8
- package/src/Toast/Toast.tsx +10 -9
- package/src/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/Tooltip/Tooltip.tsx +4 -4
- package/src/Video/Video.tsx +1 -1
- package/src/VideoTile/StyledVideoTile.tsx +12 -12
- package/src/assets/android-perm-0.png +0 -0
- package/src/assets/android-perm-1.png +0 -0
- package/src/assets/ios-perm-0.png +0 -0
- package/src/fixtures/chats.ts +1 -1
- package/dist/HLSView-3RDXRV7Y.js.map +0 -7
- package/dist/Theme/themes.d.ts +0 -64
- package/dist/chunk-7YUYZ64D.js.map +0 -7
- package/dist/chunk-HCAGFNXW.js.map +0 -7
- package/dist/chunk-KYYP6ZVK.js.map +0 -7
- package/dist/chunk-ULXGBUSC.js +0 -65
- package/dist/chunk-ULXGBUSC.js.map +0 -7
- package/dist/conference-IDNRO4WK.js.map +0 -7
- package/src/Prebuilt/components/Preview/PreviewName.jsx +0 -37
- package/src/Prebuilt/components/Streaming/RTMPIcon.jsx +0 -24
- package/src/Prebuilt/hms.js +0 -7
- package/src/Prebuilt/plugins/confetti.jsx +0 -60
- package/src/Theme/themes.ts +0 -70
- /package/dist/{ActiveSpeakerView-H3VYXANB.js.map → ActiveSpeakerView-4XPIRZOK.js.map} +0 -0
- /package/dist/{PinnedTrackView-453PELNU.js.map → PinnedTrackView-GGTCNH5V.js.map} +0 -0
- /package/dist/{transcription-BTSB7FZH.js.map → transcription-PYTSSAOB.js.map} +0 -0
@@ -1,37 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { Button, Input, styled } from '../../../';
|
3
|
-
import { isStreamingKit } from '../../common/utils';
|
4
|
-
|
5
|
-
const PreviewName = ({ name, onChange, onJoin, enableJoin }) => {
|
6
|
-
const formSubmit = e => {
|
7
|
-
e.preventDefault();
|
8
|
-
};
|
9
|
-
return (
|
10
|
-
<Form onSubmit={formSubmit}>
|
11
|
-
<Input
|
12
|
-
required
|
13
|
-
id="name"
|
14
|
-
css={{ w: '100%' }}
|
15
|
-
value={name}
|
16
|
-
onChange={e => onChange(e.target.value)}
|
17
|
-
placeholder="Enter your name"
|
18
|
-
autoFocus
|
19
|
-
autoComplete="name"
|
20
|
-
/>
|
21
|
-
<Button type="submit" disabled={!name || !enableJoin} onClick={onJoin}>
|
22
|
-
{isStreamingKit() ? 'Join Studio' : 'Join Room'}
|
23
|
-
</Button>
|
24
|
-
</Form>
|
25
|
-
);
|
26
|
-
};
|
27
|
-
|
28
|
-
const Form = styled('form', {
|
29
|
-
width: '100%',
|
30
|
-
display: 'flex',
|
31
|
-
alignItems: 'center',
|
32
|
-
gap: '$4',
|
33
|
-
mt: '$10',
|
34
|
-
mb: '$10',
|
35
|
-
});
|
36
|
-
|
37
|
-
export default PreviewName;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
export const RTMPIcon = props => {
|
2
|
-
return (
|
3
|
-
<svg width="49" height="50" viewBox="0 0 49 50" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
4
|
-
<rect x="1.368" y="22.63" width="21.148" height="21.148" rx="10.574" fill="#fff" />
|
5
|
-
<rect x="1.368" y="22.63" width="21.148" height="21.148" rx="10.574" fill="url(#a)" />
|
6
|
-
<rect x="1.368" y="22.63" width="21.148" height="21.148" rx="10.574" stroke="#1B1F26" />
|
7
|
-
<rect x="12.286" y=".786" width="26.527" height="27.423" rx="13.263" fill="url(#b)" stroke="#1B1F26" />
|
8
|
-
<rect x="20.243" y="21.029" width="27.893" height="27.893" rx="13.946" fill="#9146FF" />
|
9
|
-
<rect x="20.243" y="21.029" width="27.893" height="27.893" rx="13.946" fill="url(#c)" />
|
10
|
-
<rect x="20.243" y="21.029" width="27.893" height="27.893" rx="13.946" stroke="#1B1F26" />
|
11
|
-
<defs>
|
12
|
-
<pattern id="a" patternContentUnits="objectBoundingBox" width="1" height="1">
|
13
|
-
<use transform="matrix(.001 0 0 .001 .094 .095)" />
|
14
|
-
</pattern>
|
15
|
-
<pattern id="b" patternContentUnits="objectBoundingBox" width="1" height="1">
|
16
|
-
<use transform="matrix(.00065 0 0 .00063 -.018 0)" />
|
17
|
-
</pattern>
|
18
|
-
<pattern id="c" patternContentUnits="objectBoundingBox" width="1" height="1">
|
19
|
-
<use transform="translate(.078 .094) scale(.00117)" />
|
20
|
-
</pattern>
|
21
|
-
</defs>
|
22
|
-
</svg>
|
23
|
-
);
|
24
|
-
};
|
package/src/Prebuilt/hms.js
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
import { HMSReactiveStore } from '@100mslive/react-sdk';
|
2
|
-
|
3
|
-
const hms = new HMSReactiveStore();
|
4
|
-
export const hmsStore = hms.getStore();
|
5
|
-
export const hmsActions = hms.getActions();
|
6
|
-
export const hmsNotifications = hms.getNotifications();
|
7
|
-
export const hmsStats = hms.getStats();
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import React, { useCallback, useEffect, useRef } from 'react';
|
2
|
-
import { useMedia } from 'react-use';
|
3
|
-
import JSConfetti from 'js-confetti';
|
4
|
-
import { useCustomEvent } from '@100mslive/react-sdk';
|
5
|
-
|
6
|
-
const confettiMsgType = 'CONFETTI';
|
7
|
-
|
8
|
-
const emojiCollections = {
|
9
|
-
hearts: ['❤️', '😍', '♥️'],
|
10
|
-
birthday: ['🎂', '🍰', '🎁'],
|
11
|
-
yes: ['🙌', '✨', '🔥', '❤️'],
|
12
|
-
no: ['🙅', '⛔', '❌'],
|
13
|
-
};
|
14
|
-
|
15
|
-
/**
|
16
|
-
* This component shows a reference implementation of using [custom events](https://www.100ms.live/docs/javascript/v2/features/chat#custom-events).
|
17
|
-
* One downside of the current implementation is that it doesn't take into account tab not in focus.
|
18
|
-
* In this case multiple messages might accumulate leading to a lot of confetti when user comes back on the tab.
|
19
|
-
*/
|
20
|
-
export function Confetti() {
|
21
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
|
22
|
-
const disableMotion = useMedia('(prefers-reduced-motion: reduce)');
|
23
|
-
const jsConfetti = useRef(null);
|
24
|
-
|
25
|
-
useEffect(() => {
|
26
|
-
jsConfetti.current = new JSConfetti();
|
27
|
-
});
|
28
|
-
|
29
|
-
const onConfettiMsg = useCallback(
|
30
|
-
config => {
|
31
|
-
if (!disableMotion && jsConfetti.current) {
|
32
|
-
jsConfetti.current.addConfetti(config);
|
33
|
-
}
|
34
|
-
},
|
35
|
-
[disableMotion],
|
36
|
-
);
|
37
|
-
|
38
|
-
const { sendEvent } = useCustomEvent({
|
39
|
-
type: confettiMsgType,
|
40
|
-
onEvent: onConfettiMsg,
|
41
|
-
});
|
42
|
-
|
43
|
-
// e.g. sendConfetti(), sendConfetti({type: "hearts"}), sendConfetti({emojis: ["🔥"]})
|
44
|
-
const sendConfetti = useCallback(
|
45
|
-
({ type, emojis } = {}) => {
|
46
|
-
if (type && emojiCollections[type]) {
|
47
|
-
emojis = emojiCollections[type];
|
48
|
-
}
|
49
|
-
sendEvent({ emojis });
|
50
|
-
},
|
51
|
-
[sendEvent],
|
52
|
-
);
|
53
|
-
|
54
|
-
// putting the function to send on window for quick access
|
55
|
-
useEffect(() => {
|
56
|
-
window.sendConfetti = sendConfetti;
|
57
|
-
}, [sendConfetti]);
|
58
|
-
|
59
|
-
return <></>;
|
60
|
-
}
|
package/src/Theme/themes.ts
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
export const darkTheme = {
|
2
|
-
colors: {
|
3
|
-
bgPrimary: '#0B0F15',
|
4
|
-
bgSecondary: '#1D232B',
|
5
|
-
bgTertiary: '#303740',
|
6
|
-
surfaceLight: '#1E232A',
|
7
|
-
surfaceLighter: '#282F39',
|
8
|
-
textPrimary: '#FFFFFFE6',
|
9
|
-
textSecondary: '#FFFFFFB8',
|
10
|
-
textDisabled: '#FFFFFF61',
|
11
|
-
textInvert: 'rgba(0,0,0,0.9)',
|
12
|
-
textHighEmp: '#F5F9FFF2',
|
13
|
-
textMedEmp: 'rgba(224, 236, 255, 0.8)',
|
14
|
-
iconBtn: '$white',
|
15
|
-
iconHoverBg: 'rgba(255, 255, 255, 0.25)',
|
16
|
-
transparentBg: 'rgba(0, 0, 0, 0.22)',
|
17
|
-
mainBg: '$black',
|
18
|
-
tileBg: '#0F1115',
|
19
|
-
secondaryDisabled: '#242A33',
|
20
|
-
previewBg: '#111111',
|
21
|
-
statsBg: 'rgba(0,0,0,0.75)',
|
22
|
-
menuBg: '$grayDark',
|
23
|
-
inputBg: '$bgSecondary',
|
24
|
-
toastBg: '$menuBg',
|
25
|
-
borderDefault: '#1B1F26',
|
26
|
-
backgroundDefault: '#0B0D0F',
|
27
|
-
borderLighter: '#2D3440',
|
28
|
-
},
|
29
|
-
};
|
30
|
-
|
31
|
-
// TODO: Update light theme colors from design
|
32
|
-
export const lightTheme = {
|
33
|
-
colors: {
|
34
|
-
bgPrimary: '$white',
|
35
|
-
bgSecondary: '#F5F5F5',
|
36
|
-
bgTertiary: '#FFFFFF61',
|
37
|
-
twinYellow: '#ECC502',
|
38
|
-
textPrimary: 'rgba(0,0,0, 0.9)',
|
39
|
-
textSecondary: 'rgba(0,0,0, 0.72)',
|
40
|
-
textInvert: '#FFFFFFE6',
|
41
|
-
iconBtn: '#3b3b3b',
|
42
|
-
iconHoverBg: 'rgba(0, 0, 0, 0.22)',
|
43
|
-
transparentBg: '#FFFFFF38',
|
44
|
-
mainBg: '$white',
|
45
|
-
tileBg: '#F2F2F2',
|
46
|
-
previewBg: '#FAFAFA',
|
47
|
-
statsBg: '#FFFFFFBF',
|
48
|
-
menuBg: '#d9d9d9',
|
49
|
-
inputBg: '$tileBg',
|
50
|
-
toastBg: '$menuBg',
|
51
|
-
secondaryDisabled: '#F6F7F9',
|
52
|
-
// text variants
|
53
|
-
textHighEmp: '#000000F2',
|
54
|
-
textMedEmp: '#000000CC',
|
55
|
-
textDisabled: '#00000066',
|
56
|
-
|
57
|
-
borderDefault: '#DDE2E9',
|
58
|
-
borderLight: '#BCC4D2',
|
59
|
-
borderLighter: '#DFE4EC',
|
60
|
-
surfaceDefault: '#EDEFF3',
|
61
|
-
surfaceLight: '#F6F7F9',
|
62
|
-
surfaceLighter: '#FCFCFD',
|
63
|
-
surfaceDark: '$surfaceLight',
|
64
|
-
backgroundDefault: '#E0E4EB',
|
65
|
-
backgroundDark: '#DADFE7',
|
66
|
-
backgroundDarker: '#D4DAE2',
|
67
|
-
},
|
68
|
-
};
|
69
|
-
|
70
|
-
// Modals -> surface light/er
|
File without changes
|
File without changes
|
File without changes
|