@100mslive/roomkit-react 0.1.8-alpha.0 → 0.1.9-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-IQRPLYNH.js → HLSView-U53QN3AC.js} +3 -3
- package/dist/Modal/Dialog.d.ts +402 -1706
- package/dist/Prebuilt/App.d.ts +6 -0
- package/dist/Prebuilt/AppContext.d.ts +2 -0
- package/dist/Prebuilt/AppStateContext.d.ts +16 -0
- package/dist/Prebuilt/components/ConferenceScreen.d.ts +2 -0
- package/dist/Prebuilt/components/Footer/PaginatedParticipants.d.ts +5 -0
- package/dist/Prebuilt/components/Footer/PollsToggle.d.ts +2 -0
- package/dist/Prebuilt/components/Footer/RoleAccordion.d.ts +10 -3
- package/dist/Prebuilt/components/LeaveScreen.d.ts +2 -0
- package/dist/Prebuilt/components/MwebLandscapePrompt.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/AutoplayBlockedModal.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/HLSFailureModal.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/InitErrorModal.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/Notifications.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/PeerNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/PermissionErrorModal.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/ReconnectNotifications.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/TrackBulkUnmuteModal.d.ts +2 -0
- package/dist/Prebuilt/components/Notifications/TrackNotifications.d.ts +1 -0
- package/dist/Prebuilt/components/Notifications/TrackUnmuteModal.d.ts +2 -0
- package/dist/Prebuilt/components/Polls/Polls.d.ts +2 -0
- package/dist/Prebuilt/components/Preview/PreviewJoin.d.ts +1 -2
- package/dist/Prebuilt/components/Preview/PreviewScreen.d.ts +2 -0
- package/dist/Prebuilt/components/hooks/useRedirectToLeave.d.ts +1 -1
- package/dist/{VirtualBackground-GP4ATXD3.js → VirtualBackground-PMLQPJB6.js} +3 -5
- package/dist/{VirtualBackground-GP4ATXD3.js.map → VirtualBackground-PMLQPJB6.js.map} +1 -1
- package/dist/chunk-ANQRGVIX.js +14441 -0
- package/dist/chunk-ANQRGVIX.js.map +7 -0
- package/dist/{chunk-Z3O2WGWV.js → chunk-XQ2NRKIW.js} +66 -3
- package/dist/chunk-XQ2NRKIW.js.map +7 -0
- package/dist/context/DialogContext.d.ts +6 -0
- package/dist/hooks/useDialogContainerSelector.d.ts +1 -0
- package/dist/index.cjs.js +10956 -9818
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/dist/meta.cjs.json +4076 -3201
- package/dist/meta.esbuild.json +4391 -3623
- package/dist/utils/animations.d.ts +11 -0
- package/package.json +6 -7
- package/src/AudioLevel/AudioLevel.tsx +1 -1
- package/src/Modal/Dialog.tsx +31 -3
- package/src/Prebuilt/App.tsx +49 -97
- package/src/Prebuilt/AppContext.tsx +6 -0
- package/src/Prebuilt/AppStateContext.tsx +71 -0
- package/src/Prebuilt/common/constants.js +36 -1
- package/src/Prebuilt/common/utils.js +47 -0
- package/src/Prebuilt/components/AppData/AppData.jsx +6 -1
- package/src/Prebuilt/components/AppData/useSidepane.js +23 -1
- package/src/Prebuilt/components/AppData/useUISettings.js +49 -5
- package/src/Prebuilt/components/Chip.tsx +6 -2
- package/src/Prebuilt/components/{conference.jsx → ConferenceScreen.tsx} +34 -46
- package/src/Prebuilt/components/Footer/Footer.tsx +5 -0
- package/src/Prebuilt/components/Footer/PaginatedParticipants.tsx +125 -0
- package/src/Prebuilt/components/Footer/ParticipantList.jsx +55 -24
- package/src/Prebuilt/components/Footer/PollsToggle.tsx +22 -0
- package/src/Prebuilt/components/Footer/RoleAccordion.tsx +87 -85
- package/src/Prebuilt/components/Footer/RoleOptions.tsx +1 -1
- package/src/Prebuilt/components/Header/StreamActions.tsx +5 -3
- package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +4 -5
- package/src/Prebuilt/components/Leave/LeaveRoom.tsx +0 -4
- package/src/Prebuilt/components/{PostLeave.jsx → LeaveScreen.tsx} +6 -13
- package/src/Prebuilt/components/MoreSettings/ChangeNameModal.jsx +2 -3
- package/src/Prebuilt/components/MoreSettings/EmbedUrl.jsx +2 -3
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +18 -1
- package/src/Prebuilt/components/{MwebLandscapePrompt.jsx → MwebLandscapePrompt.tsx} +10 -11
- package/src/Prebuilt/components/Notifications/{AutoplayBlockedModal.jsx → AutoplayBlockedModal.tsx} +2 -1
- package/src/Prebuilt/components/Notifications/{HLSFailureModal.jsx → HLSFailureModal.tsx} +10 -8
- package/src/Prebuilt/components/Notifications/{InitErrorModal.jsx → InitErrorModal.tsx} +5 -2
- package/src/Prebuilt/components/Notifications/{Notifications.jsx → Notifications.tsx} +41 -27
- package/src/Prebuilt/components/Notifications/{PeerNotifications.jsx → PeerNotifications.tsx} +3 -0
- package/src/Prebuilt/components/Notifications/{PermissionErrorModal.jsx → PermissionErrorModal.tsx} +6 -4
- package/src/Prebuilt/components/Notifications/{ReconnectNotifications.jsx → ReconnectNotifications.tsx} +11 -6
- package/src/Prebuilt/components/Notifications/{TrackBulkUnmuteModal.jsx → TrackBulkUnmuteModal.tsx} +9 -3
- package/src/Prebuilt/components/Notifications/{TrackUnmuteModal.jsx → TrackUnmuteModal.tsx} +9 -3
- package/src/Prebuilt/components/Notifications/index.tsx +1 -0
- package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.jsx +229 -0
- package/src/Prebuilt/components/Polls/CreatePollQuiz/Timer.jsx +71 -0
- package/src/Prebuilt/components/Polls/CreateQuestions/CreateQuestions.jsx +132 -0
- package/src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.jsx +66 -0
- package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.jsx +251 -0
- package/src/Prebuilt/components/Polls/CreateQuestions/SavedQuestion.jsx +57 -0
- package/src/Prebuilt/components/Polls/Polls.tsx +28 -0
- package/src/Prebuilt/components/Polls/Voting/PollResultSummary.jsx +125 -0
- package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +249 -0
- package/src/Prebuilt/components/Polls/Voting/StandardVoting.jsx +40 -0
- package/src/Prebuilt/components/Polls/Voting/TimedVoting.jsx +36 -0
- package/src/Prebuilt/components/Polls/Voting/Voting.jsx +99 -0
- package/src/Prebuilt/components/Polls/common/MultipleChoiceOptions.jsx +101 -0
- package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.jsx +25 -0
- package/src/Prebuilt/components/Polls/common/SingleChoiceOptions.jsx +125 -0
- package/src/Prebuilt/components/Polls/common/StatusIndicator.jsx +47 -0
- package/src/Prebuilt/components/Polls/common/VoteCount.jsx +28 -0
- package/src/Prebuilt/components/Polls/common/VoteProgress.jsx +17 -0
- package/src/Prebuilt/components/Polls/common/VoterList.jsx +22 -0
- package/src/Prebuilt/components/Polls/common/Votes.jsx +72 -0
- package/src/Prebuilt/components/Preview/PreviewForm.tsx +3 -2
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +29 -21
- package/src/Prebuilt/components/Preview/{PreviewContainer.tsx → PreviewScreen.tsx} +2 -19
- package/src/Prebuilt/components/RaiseHand.jsx +1 -1
- package/src/Prebuilt/components/RoleChangeModal.jsx +2 -3
- package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +2 -3
- package/src/Prebuilt/components/Settings/SettingsModal.jsx +2 -3
- package/src/Prebuilt/components/Settings/StartRecording.jsx +15 -4
- package/src/Prebuilt/components/SidePaneTabs.tsx +32 -6
- package/src/Prebuilt/components/StatsForNerds.jsx +2 -3
- package/src/Prebuilt/components/Streaming/Common.jsx +31 -21
- package/src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx +8 -9
- package/src/Prebuilt/components/VideoTile.jsx +28 -39
- package/src/Prebuilt/components/hooks/useAutoStartStreaming.tsx +3 -3
- package/src/Prebuilt/components/hooks/useDropdownSelection.jsx +1 -1
- package/src/Prebuilt/components/hooks/useRedirectToLeave.tsx +9 -17
- package/src/Prebuilt/components/pdfAnnotator/pdfFileOptions.jsx +2 -3
- package/src/Prebuilt/components/pdfAnnotator/submitPdf.jsx +1 -1
- package/src/Prebuilt/components/pdfAnnotator/uploadedFile.jsx +2 -3
- package/src/Prebuilt/layouts/EmbedView.jsx +47 -60
- package/src/Prebuilt/layouts/PDFView.jsx +49 -99
- package/src/Prebuilt/layouts/SidePane.tsx +9 -4
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +2 -2
- package/src/Prebuilt/primitives/DialogContent.jsx +4 -5
- package/src/context/DialogContext.tsx +13 -0
- package/src/hooks/useDialogContainerSelector.tsx +7 -0
- package/src/index.ts +1 -0
- package/src/utils/animations.ts +6 -0
- package/dist/Prebuilt/components/PrebuiltDialogPortal.d.ts +0 -4
- package/dist/Prebuilt/components/Preview/PreviewContainer.d.ts +0 -3
- package/dist/chunk-2H5NIZB7.js +0 -70
- package/dist/chunk-2H5NIZB7.js.map +0 -7
- package/dist/chunk-GLYGPYNS.js +0 -7125
- package/dist/chunk-GLYGPYNS.js.map +0 -7
- package/dist/chunk-Z3O2WGWV.js.map +0 -7
- package/dist/conference-JD35TNH4.js +0 -6503
- package/dist/conference-JD35TNH4.js.map +0 -7
- package/src/Prebuilt/components/GoLiveButton.jsx +0 -42
- package/src/Prebuilt/components/PrebuiltDialogPortal.tsx +0 -6
- package/src/Prebuilt/components/Streaming/HLSStreaming.jsx +0 -220
- package/src/Prebuilt/components/Streaming/RTMPStreaming.jsx +0 -334
- package/src/Prebuilt/components/Streaming/StreamingLanding.jsx +0 -76
- /package/dist/{HLSView-IQRPLYNH.js.map → HLSView-U53QN3AC.js.map} +0 -0
- /package/{src/Prebuilt/components/Notifications/index.jsx → dist/Prebuilt/components/Notifications/index.d.ts} +0 -0
- /package/src/Prebuilt/components/Notifications/{TrackNotifications.jsx → TrackNotifications.tsx} +0 -0
@@ -2,15 +2,15 @@ import React from 'react';
|
|
2
2
|
import { useMedia } from 'react-use';
|
3
3
|
import { ConferencingScreen } from '@100mslive/types-prebuilt';
|
4
4
|
import { selectAppData, selectVideoTrackByPeerID, useHMSStore } from '@100mslive/react-sdk';
|
5
|
+
import { Polls } from '../components/Polls/Polls';
|
5
6
|
import { SidePaneTabs } from '../components/SidePaneTabs';
|
6
|
-
// @ts-ignore: No implicit Any
|
7
|
-
import { StreamingLanding } from '../components/Streaming/StreamingLanding';
|
8
7
|
import { TileCustomisationProps } from '../components/VideoLayouts/GridLayout';
|
9
8
|
// @ts-ignore: No implicit Any
|
10
9
|
import VideoTile from '../components/VideoTile';
|
11
10
|
import { Box, Flex } from '../../Layout';
|
12
11
|
import { config as cssConfig } from '../../Theme';
|
13
12
|
import { useRoomLayoutConferencingScreen } from '../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
|
13
|
+
import { translateAcross } from '../../utils';
|
14
14
|
// @ts-ignore: No implicit Any
|
15
15
|
import { APP_DATA, SIDE_PANE_OPTIONS } from '../common/constants';
|
16
16
|
|
@@ -29,10 +29,11 @@ const SidePane = ({
|
|
29
29
|
const trackId = useHMSStore(selectVideoTrackByPeerID(activeScreensharePeerId))?.id;
|
30
30
|
const { elements } = useRoomLayoutConferencingScreen();
|
31
31
|
let ViewComponent;
|
32
|
+
if (sidepane === SIDE_PANE_OPTIONS.POLLS) {
|
33
|
+
ViewComponent = <Polls />;
|
34
|
+
}
|
32
35
|
if (sidepane === SIDE_PANE_OPTIONS.PARTICIPANTS || sidepane === SIDE_PANE_OPTIONS.CHAT) {
|
33
36
|
ViewComponent = <SidePaneTabs screenType={screenType} hideControls={hideControls} active={sidepane} />;
|
34
|
-
} else if (sidepane === SIDE_PANE_OPTIONS.STREAMING) {
|
35
|
-
ViewComponent = <StreamingLanding />;
|
36
37
|
}
|
37
38
|
if (!ViewComponent && !trackId) {
|
38
39
|
return null;
|
@@ -64,6 +65,7 @@ const SidePane = ({
|
|
64
65
|
<VideoTile
|
65
66
|
peerId={activeScreensharePeerId}
|
66
67
|
trackId={trackId}
|
68
|
+
width="100%"
|
67
69
|
height={225}
|
68
70
|
rootCSS={{ p: 0, alignSelf: 'start', flexShrink: 0 }}
|
69
71
|
{...tileLayout}
|
@@ -96,6 +98,9 @@ const SidePane = ({
|
|
96
98
|
'@md': {
|
97
99
|
p: '$6 $8',
|
98
100
|
pb: mwebStreamingChat ? '$20' : '$12',
|
101
|
+
borderTopLeftRadius: sidepane === SIDE_PANE_OPTIONS.POLLS ? '$2' : '0',
|
102
|
+
borderTopRightRadius: sidepane === SIDE_PANE_OPTIONS.POLLS ? '$2' : '0',
|
103
|
+
animation: `${translateAcross({ yFrom: '100%' })} 150ms cubic-bezier(0.22, 1, 0.36, 1)`,
|
99
104
|
},
|
100
105
|
}}
|
101
106
|
>
|
@@ -18,7 +18,7 @@ import SidePane from './SidePane';
|
|
18
18
|
import { WaitingView } from './WaitingView';
|
19
19
|
// import { useWhiteboardMetadata } from '../plugins/whiteboard';
|
20
20
|
import {
|
21
|
-
|
21
|
+
usePDFConfig,
|
22
22
|
useUrlToEmbed,
|
23
23
|
useWaitingViewerRole,
|
24
24
|
// @ts-ignore: No implicit Any
|
@@ -45,7 +45,7 @@ export const VideoStreamingSection = ({
|
|
45
45
|
const hmsActions = useHMSActions();
|
46
46
|
const waitingViewerRole = useWaitingViewerRole();
|
47
47
|
const urlToIframe = useUrlToEmbed();
|
48
|
-
const pdfAnnotatorActive =
|
48
|
+
const pdfAnnotatorActive = usePDFConfig();
|
49
49
|
|
50
50
|
useEffect(() => {
|
51
51
|
if (!isConnected) {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import React, { useRef } from 'react';
|
2
2
|
import { CheckIcon, CloudUploadIcon, CrossIcon } from '@100mslive/react-icons';
|
3
|
-
import { PrebuiltDialogPortal } from '../components/PrebuiltDialogPortal';
|
4
3
|
import { Button } from '../../Button';
|
5
4
|
import { Checkbox } from '../../Checkbox';
|
6
5
|
import { HorizontalDivider } from '../../Divider';
|
@@ -15,7 +14,7 @@ import { Text } from '../../Text';
|
|
15
14
|
|
16
15
|
export const DialogContent = ({ Icon, title, closeable = true, children, css, iconCSS = {}, ...props }) => {
|
17
16
|
return (
|
18
|
-
<
|
17
|
+
<Dialog.Portal>
|
19
18
|
<Dialog.Overlay />
|
20
19
|
<Dialog.Content css={{ width: 'min(600px, 100%)', ...css }} {...props}>
|
21
20
|
<Dialog.Title>
|
@@ -36,7 +35,7 @@ export const DialogContent = ({ Icon, title, closeable = true, children, css, ic
|
|
36
35
|
<HorizontalDivider css={{ mt: '0.8rem' }} />
|
37
36
|
<Box>{children}</Box>
|
38
37
|
</Dialog.Content>
|
39
|
-
</
|
38
|
+
</Dialog.Portal>
|
40
39
|
);
|
41
40
|
};
|
42
41
|
|
@@ -61,7 +60,7 @@ export const ErrorDialog = ({ open = true, onOpenChange, title, children, ...pro
|
|
61
60
|
|
62
61
|
export const RequestDialog = ({ open = true, onOpenChange, title, body, actionText = 'Accept', onAction, Icon }) => (
|
63
62
|
<Dialog.Root open={open} onOpenChange={onOpenChange}>
|
64
|
-
<
|
63
|
+
<Dialog.Portal>
|
65
64
|
<Dialog.Overlay />
|
66
65
|
<Dialog.Content css={{ width: 'min(400px,80%)', p: '$10' }}>
|
67
66
|
<Dialog.Title css={{ p: 0, display: 'flex', flexDirection: 'row', gap: '$md' }}>
|
@@ -98,7 +97,7 @@ export const RequestDialog = ({ open = true, onOpenChange, title, body, actionTe
|
|
98
97
|
</Box>
|
99
98
|
</Flex>
|
100
99
|
</Dialog.Content>
|
101
|
-
</
|
100
|
+
</Dialog.Portal>
|
102
101
|
</Dialog.Root>
|
103
102
|
);
|
104
103
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React, { createContext, ReactNode } from 'react';
|
2
|
+
|
3
|
+
export const DialogContainerContext = createContext('');
|
4
|
+
|
5
|
+
export function DialogContainerProvider({
|
6
|
+
children,
|
7
|
+
dialogContainerSelector,
|
8
|
+
}: {
|
9
|
+
children: ReactNode;
|
10
|
+
dialogContainerSelector: string;
|
11
|
+
}) {
|
12
|
+
return <DialogContainerContext.Provider value={dialogContainerSelector}>{children}</DialogContainerContext.Provider>;
|
13
|
+
}
|
package/src/index.ts
CHANGED
package/src/utils/animations.ts
CHANGED
@@ -12,6 +12,12 @@ export const slideUp = (controller: string) =>
|
|
12
12
|
to: { height: 0 },
|
13
13
|
});
|
14
14
|
|
15
|
+
export const translateAcross = ({ xFrom = '0', yFrom = '0', zFrom = '0', xTo = '0', yTo = '0', zTo = '0' }) =>
|
16
|
+
keyframes({
|
17
|
+
from: { transform: `translate3d(${xFrom}, ${yFrom}, ${zFrom})` },
|
18
|
+
to: { transform: `translate3d(${xTo}, ${yTo}, ${zTo}` },
|
19
|
+
});
|
20
|
+
|
15
21
|
export const dialogOpen = keyframes({
|
16
22
|
'0%': { opacity: 0, transform: 'translate(-50%, -48%) scale(.90)' },
|
17
23
|
'100%': { opacity: 1, transform: 'translate(-50%, -50%) scale(1)' },
|
package/dist/chunk-2H5NIZB7.js
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Flex,
|
3
|
-
Text,
|
4
|
-
__objRest,
|
5
|
-
__spreadProps,
|
6
|
-
__spreadValues,
|
7
|
-
styled
|
8
|
-
} from "./chunk-Z3O2WGWV.js";
|
9
|
-
|
10
|
-
// src/Prebuilt/components/MoreSettings/ActionTile.jsx
|
11
|
-
import React from "react";
|
12
|
-
var ActionTileRoot = (_a) => {
|
13
|
-
var _b = _a, { active, disabled = false, children, onClick } = _b, props = __objRest(_b, ["active", "disabled", "children", "onClick"]);
|
14
|
-
return /* @__PURE__ */ React.createElement(
|
15
|
-
Flex,
|
16
|
-
__spreadProps(__spreadValues({}, props), {
|
17
|
-
css: {
|
18
|
-
flexDirection: "column",
|
19
|
-
alignItems: "center",
|
20
|
-
p: "$4 $2",
|
21
|
-
position: "relative",
|
22
|
-
bg: active ? "$surface_bright" : "",
|
23
|
-
color: disabled ? "$on_surface_low" : "$on_surface_high",
|
24
|
-
gap: "$4",
|
25
|
-
r: "$1",
|
26
|
-
"&:hover": {
|
27
|
-
bg: "$surface_bright"
|
28
|
-
}
|
29
|
-
},
|
30
|
-
onClick: () => {
|
31
|
-
if (!disabled) {
|
32
|
-
onClick();
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}),
|
36
|
-
children
|
37
|
-
);
|
38
|
-
};
|
39
|
-
var ActionTileCount = styled(Text, {
|
40
|
-
position: "absolute",
|
41
|
-
top: 0,
|
42
|
-
right: 0,
|
43
|
-
fontWeight: "$semiBold",
|
44
|
-
color: "$on_surface_high",
|
45
|
-
p: "$1 $2",
|
46
|
-
minWidth: "$9",
|
47
|
-
textAlign: "center",
|
48
|
-
boxSizing: "border-box",
|
49
|
-
bg: "$surface_bright",
|
50
|
-
r: "$round",
|
51
|
-
letterSpacing: "1.5px",
|
52
|
-
fontSize: "$tiny !important",
|
53
|
-
lineHeight: "$tiny !important"
|
54
|
-
});
|
55
|
-
var ActionTileTitle = styled(Text, {
|
56
|
-
fontWeight: "$semiBold",
|
57
|
-
color: "inherit",
|
58
|
-
textAlign: "center",
|
59
|
-
fontSize: "$xs !important"
|
60
|
-
});
|
61
|
-
var ActionTile = {
|
62
|
-
Root: ActionTileRoot,
|
63
|
-
Title: ActionTileTitle,
|
64
|
-
Count: ActionTileCount
|
65
|
-
};
|
66
|
-
|
67
|
-
export {
|
68
|
-
ActionTile
|
69
|
-
};
|
70
|
-
//# sourceMappingURL=chunk-2H5NIZB7.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../src/Prebuilt/components/MoreSettings/ActionTile.jsx"],
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\nimport { styled } from '../../../Theme';\n\nconst ActionTileRoot = ({ active, disabled = false, children, onClick, ...props }) => (\n <Flex\n {...props}\n css={{\n flexDirection: 'column',\n alignItems: 'center',\n p: '$4 $2',\n position: 'relative',\n bg: active ? '$surface_bright' : '',\n color: disabled ? '$on_surface_low' : '$on_surface_high',\n gap: '$4',\n r: '$1',\n '&:hover': {\n bg: '$surface_bright',\n },\n }}\n onClick={() => {\n if (!disabled) {\n onClick();\n }\n }}\n >\n {children}\n </Flex>\n);\n\nconst ActionTileCount = styled(Text, {\n position: 'absolute',\n top: 0,\n right: 0,\n fontWeight: '$semiBold',\n color: '$on_surface_high',\n p: '$1 $2',\n minWidth: '$9',\n textAlign: 'center',\n boxSizing: 'border-box',\n bg: '$surface_bright',\n r: '$round',\n letterSpacing: '1.5px',\n fontSize: '$tiny !important',\n lineHeight: '$tiny !important',\n});\n\nconst ActionTileTitle = styled(Text, {\n fontWeight: '$semiBold',\n color: 'inherit',\n textAlign: 'center',\n fontSize: '$xs !important',\n});\n\nexport const ActionTile = {\n Root: ActionTileRoot,\n Title: ActionTileTitle,\n Count: ActionTileCount,\n};\n"],
|
5
|
-
"mappings": ";;;;;;;;;;AAAA,OAAO,WAAW;AAKlB,IAAM,iBAAiB,CAAC,OAA2D;AAA3D,eAAE,UAAQ,WAAW,OAAO,UAAU,QAL9D,IAKwB,IAAkD,kBAAlD,IAAkD,CAAhD,UAAQ,YAAkB,YAAU;AAC5D;AAAA,IAAC;AAAA,qCACK,QADL;AAAA,MAEC,KAAK;AAAA,QACH,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,GAAG;AAAA,QACH,UAAU;AAAA,QACV,IAAI,SAAS,oBAAoB;AAAA,QACjC,OAAO,WAAW,oBAAoB;AAAA,QACtC,KAAK;AAAA,QACL,GAAG;AAAA,QACH,WAAW;AAAA,UACT,IAAI;AAAA,QACN;AAAA,MACF;AAAA,MACA,SAAS,MAAM;AACb,YAAI,CAAC,UAAU;AACb,kBAAQ;AAAA,QACV;AAAA,MACF;AAAA;AAAA,IAEC;AAAA,EACH;AAAA;AAGF,IAAM,kBAAkB,OAAO,MAAM;AAAA,EACnC,UAAU;AAAA,EACV,KAAK;AAAA,EACL,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,GAAG;AAAA,EACH,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,eAAe;AAAA,EACf,UAAU;AAAA,EACV,YAAY;AACd,CAAC;AAED,IAAM,kBAAkB,OAAO,MAAM;AAAA,EACnC,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AACZ,CAAC;AAEM,IAAM,aAAa;AAAA,EACxB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AACT;",
|
6
|
-
"names": []
|
7
|
-
}
|