@100mslive/roomkit-react 0.3.22-alpha.3 → 0.3.22-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +322 -134
- package/dist/Accordion/index.d.ts +322 -134
- package/dist/Avatar/Avatar.d.ts +141 -47
- package/dist/Button/Button.d.ts +141 -47
- package/dist/Checkbox/Checkbox.d.ts +322 -134
- package/dist/Collapsible/Collapsible.d.ts +483 -201
- package/dist/Divider/Divider.d.ts +322 -134
- package/dist/Dropdown/Dropdown.d.ts +1932 -804
- package/dist/Fieldset/Fieldset.d.ts +141 -47
- package/dist/Footer/Footer.d.ts +1288 -536
- package/dist/{PDFView-RMR33QH4.css → HLSView-CNAJ5SBZ.css} +3 -3
- package/dist/{LeaveScreen-ZAG5UJZL.css.map → HLSView-CNAJ5SBZ.css.map} +1 -1
- package/dist/{HLSView-EYGGK6BH.js → HLSView-YIWJTBCT.js} +24 -38
- package/dist/HLSView-YIWJTBCT.js.map +7 -0
- package/dist/IconButton/IconButton.d.ts +141 -47
- package/dist/Input/Input.d.ts +926 -362
- package/dist/Label/Label.d.ts +141 -47
- package/dist/Layout/Box.d.ts +141 -47
- package/dist/Layout/Flex.d.ts +141 -47
- package/dist/Link/Link.d.ts +141 -47
- package/dist/Modal/Dialog.d.ts +987 -329
- package/dist/Modal/DialogContent.d.ts +1127 -469
- package/dist/Pagination/StyledPagination.d.ts +644 -268
- package/dist/Popover/index.d.ts +483 -201
- package/dist/Prebuilt/IconButton.d.ts +322 -134
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +322 -134
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +805 -335
- package/dist/Prebuilt/components/Settings/common.d.ts +322 -134
- package/dist/Progress/index.d.ts +322 -134
- package/dist/RadioGroup/RadioGroup.d.ts +483 -201
- package/dist/ReactSelect/ReactSelect.d.ts +1610 -670
- package/dist/Select/Select.d.ts +483 -201
- package/dist/Sheet/Sheet.d.ts +987 -329
- package/dist/Slider/Slider.d.ts +141 -47
- package/dist/Stats/StyledStats.d.ts +966 -402
- package/dist/Switch/Switch.d.ts +141 -47
- package/dist/Tabs/Tabs.d.ts +644 -268
- package/dist/Text/Text.d.ts +141 -47
- package/dist/TextArea/TextArea.d.ts +141 -47
- package/dist/Theme/base.config.d.ts +78 -26
- package/dist/Theme/stitches.config.d.ts +1514 -1067
- package/dist/TileMenu/StyledMenuTile.d.ts +1127 -469
- package/dist/Toast/Toast.d.ts +946 -382
- package/dist/Video/Video.d.ts +141 -47
- package/dist/VideoList/StyledVideoList.d.ts +483 -201
- package/dist/VideoTile/StyledVideoTile.d.ts +1610 -670
- package/dist/chunk-4UCH4XSJ.js +34759 -0
- package/dist/chunk-4UCH4XSJ.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +22367 -22558
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +15 -25
- package/dist/meta.cjs.json +5076 -5434
- package/dist/meta.esbuild.json +6290 -9146
- package/package.json +8 -8
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/Popover/Popover.stories.tsx +1 -1
- package/src/Prebuilt/App.tsx +2 -6
- package/src/Prebuilt/components/Chat/Chat.tsx +8 -12
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +171 -13
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +2 -9
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +5 -1
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +5 -7
- package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +1 -23
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +5 -13
- package/src/Prebuilt/components/StatsForNerds.jsx +3 -32
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +31 -43
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +1 -3
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +0 -6
- package/src/Prebuilt/layouts/HLSView.jsx +0 -1
- package/src/Prebuilt/layouts/PDFView.jsx +0 -1
- package/src/Prebuilt/layouts/SidePane.tsx +6 -12
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +34 -35
- package/dist/ConferenceScreen-CSVWECB5.js +0 -1778
- package/dist/ConferenceScreen-CSVWECB5.js.map +0 -7
- package/dist/ConferenceScreen-YRURU3RV.css +0 -2780
- package/dist/ConferenceScreen-YRURU3RV.css.map +0 -7
- package/dist/EmbedView-N2E4DZQA.js +0 -17
- package/dist/EmbedView-N2E4DZQA.js.map +0 -7
- package/dist/EmbedView-S54NTHF5.css +0 -2780
- package/dist/EmbedView-S54NTHF5.css.map +0 -7
- package/dist/EmojiReaction-3X4ST4AU.js +0 -11
- package/dist/EmojiReaction-3X4ST4AU.js.map +0 -7
- package/dist/HLSView-EYGGK6BH.js.map +0 -7
- package/dist/HLSView-LBTFLMI4.css +0 -2780
- package/dist/HLSView-LBTFLMI4.css.map +0 -7
- package/dist/LeaveScreen-D6XU64JL.js +0 -556
- package/dist/LeaveScreen-D6XU64JL.js.map +0 -7
- package/dist/LeaveScreen-ZAG5UJZL.css +0 -2780
- package/dist/MoreSettings-R7B4BSNT.css +0 -2780
- package/dist/MoreSettings-R7B4BSNT.css.map +0 -7
- package/dist/MoreSettings-TBJVM7OY.js +0 -16
- package/dist/MoreSettings-TBJVM7OY.js.map +0 -7
- package/dist/PDFView-JOIJDP65.js +0 -84
- package/dist/PDFView-JOIJDP65.js.map +0 -7
- package/dist/PDFView-RMR33QH4.css.map +0 -7
- package/dist/Polls-IN3V2HFI.js +0 -1584
- package/dist/Polls-IN3V2HFI.js.map +0 -7
- package/dist/Polls-JW7JWGTE.css +0 -2780
- package/dist/Polls-JW7JWGTE.css.map +0 -7
- package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +0 -1
- package/dist/RaiseHand-WES4KKMD.js +0 -10
- package/dist/RaiseHand-WES4KKMD.js.map +0 -7
- package/dist/RoleProminence-4ZBDBCMU.css +0 -2780
- package/dist/RoleProminence-4ZBDBCMU.css.map +0 -7
- package/dist/RoleProminence-PB32DLIB.js +0 -116
- package/dist/RoleProminence-PB32DLIB.js.map +0 -7
- package/dist/RoomDetailsPane-CZH2SNLE.js +0 -53
- package/dist/RoomDetailsPane-CZH2SNLE.js.map +0 -7
- package/dist/RoomDetailsPane-XWH2KEFI.css +0 -2780
- package/dist/RoomDetailsPane-XWH2KEFI.css.map +0 -7
- package/dist/ScreenshareLayout-XVENPVK3.js +0 -358
- package/dist/ScreenshareLayout-XVENPVK3.js.map +0 -7
- package/dist/ScreenshareLayout-YUW3KHAB.css +0 -2780
- package/dist/ScreenshareLayout-YUW3KHAB.css.map +0 -7
- package/dist/SidePaneTabs-QXCDHOGG.js +0 -1354
- package/dist/SidePaneTabs-QXCDHOGG.js.map +0 -7
- package/dist/SidePaneTabs-WQGVOWRP.css +0 -2780
- package/dist/SidePaneTabs-WQGVOWRP.css.map +0 -7
- package/dist/VBPicker-XN74N67R.js +0 -322
- package/dist/VBPicker-XN74N67R.js.map +0 -7
- package/dist/VBPicker-YDM2YIOM.css +0 -2780
- package/dist/VBPicker-YDM2YIOM.css.map +0 -7
- package/dist/WaitingView-77PRTIBV.js +0 -10
- package/dist/WaitingView-77PRTIBV.js.map +0 -7
- package/dist/WhiteboardLayout-FZC7SOSG.js +0 -96
- package/dist/WhiteboardLayout-FZC7SOSG.js.map +0 -7
- package/dist/WhiteboardLayout-MNTUWEVK.css +0 -2780
- package/dist/WhiteboardLayout-MNTUWEVK.css.map +0 -7
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-26D5FDBW.js +0 -16812
- package/dist/chunk-26D5FDBW.js.map +0 -7
- package/dist/chunk-2J5WS52X.js +0 -2595
- package/dist/chunk-2J5WS52X.js.map +0 -7
- package/dist/chunk-2LWOQMYY.js +0 -30
- package/dist/chunk-2LWOQMYY.js.map +0 -7
- package/dist/chunk-3MRQJSIY.js +0 -171
- package/dist/chunk-3MRQJSIY.js.map +0 -7
- package/dist/chunk-4X4WB7X3.js +0 -98
- package/dist/chunk-4X4WB7X3.js.map +0 -7
- package/dist/chunk-7QZJMUHM.js +0 -90
- package/dist/chunk-7QZJMUHM.js.map +0 -7
- package/dist/chunk-ABCV7TX5.js +0 -71
- package/dist/chunk-ABCV7TX5.js.map +0 -7
- package/dist/chunk-BQOT4DK7.js +0 -418
- package/dist/chunk-BQOT4DK7.js.map +0 -7
- package/dist/chunk-ENHSO6YN.js +0 -6337
- package/dist/chunk-ENHSO6YN.js.map +0 -7
- package/dist/chunk-JKWX7W4K.js +0 -161
- package/dist/chunk-JKWX7W4K.js.map +0 -7
- package/dist/chunk-LO4BXA4G.js +0 -114
- package/dist/chunk-LO4BXA4G.js.map +0 -7
- package/dist/chunk-MRVWNFXC.js +0 -59
- package/dist/chunk-MRVWNFXC.js.map +0 -7
- package/dist/chunk-OA4HW7HW.js +0 -262
- package/dist/chunk-OA4HW7HW.js.map +0 -7
- package/dist/chunk-PJQSPAFZ.js +0 -178
- package/dist/chunk-PJQSPAFZ.js.map +0 -7
- package/dist/chunk-QHQKY35W.js +0 -830
- package/dist/chunk-QHQKY35W.js.map +0 -7
- package/dist/chunk-QKXHQ6DV.js +0 -254
- package/dist/chunk-QKXHQ6DV.js.map +0 -7
- package/dist/chunk-RTWNTT77.js +0 -62
- package/dist/chunk-RTWNTT77.js.map +0 -7
- package/dist/chunk-TBXRX6MK.js +0 -576
- package/dist/chunk-TBXRX6MK.js.map +0 -7
- package/dist/chunk-TCOPR3BK.js +0 -487
- package/dist/chunk-TCOPR3BK.js.map +0 -7
- package/dist/chunk-VKORP2LF.js +0 -41
- package/dist/chunk-VKORP2LF.js.map +0 -7
- package/dist/chunk-YYVDCP5Z.js +0 -136
- package/dist/chunk-YYVDCP5Z.js.map +0 -7
- package/dist/empty-chat.svg +0 -12
- package/dist/ios-perm-0.png +0 -0
- package/dist/pdf-share.png +0 -0
- package/dist/screen-share.png +0 -0
- package/dist/transaction_error.svg +0 -12
- package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +0 -18
- package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +0 -56
- package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +0 -24
- package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +0 -71
- package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +0 -24
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../src/Prebuilt/components/VirtualBackground/VBPicker.tsx", "../src/Prebuilt/components/VirtualBackground/VBCollection.tsx", "../src/Prebuilt/components/VirtualBackground/VBOption.tsx"],
|
4
|
-
"sourcesContent": ["import React, { useEffect, useRef, useState } from 'react';\nimport { useMedia } from 'react-use';\nimport {\n HMSMediaStreamPlugin,\n selectAppData,\n selectEffectsKey,\n selectIsEffectsEnabled,\n selectLocalPeerRole,\n} from '@100mslive/hms-video-store';\n// Open issue with eslint-plugin-import https://github.com/import-js/eslint-plugin-import/issues/1810\n// eslint-disable-next-line\nimport { HMSVBPlugin, HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background/hmsvbplugin';\nimport { VirtualBackgroundMedia } from '@100mslive/types-prebuilt/elements/virtual_background';\nimport {\n HMSRoomState,\n selectIsLargeRoom,\n selectIsLocalVideoEnabled,\n selectIsLocalVideoPluginPresent,\n selectLocalPeer,\n selectRoomState,\n selectVideoTrackByID,\n useHMSActions,\n useHMSStore,\n} from '@100mslive/react-sdk';\nimport { BlurPersonHighIcon, CrossCircleIcon, CrossIcon } from '@100mslive/react-icons';\nimport { Box, config as cssConfig, Flex, Loading, Slider, Video } from '../../../index';\nimport { Text } from '../../../Text';\nimport { VBCollection } from './VBCollection';\nimport { VBHandler } from './VBHandler';\n// @ts-ignore\nimport { useSidepaneToggle } from '../AppData/useSidepane';\nimport { useSidepaneResetOnLayoutUpdate } from '../AppData/useSidepaneResetOnLayoutUpdate';\n// @ts-ignore\nimport { useSetAppDataByKey, useUISettings } from '../AppData/useUISettings';\nimport { APP_DATA, SIDE_PANE_OPTIONS, UI_SETTINGS } from '../../common/constants';\n\nconst iconDims = { height: '40px', width: '40px' };\n\nexport const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBackgroundMedia[] }) => {\n const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);\n const hmsActions = useHMSActions();\n const localPeer = useHMSStore(selectLocalPeer);\n const role = useHMSStore(selectLocalPeerRole);\n const isVideoOn = useHMSStore(selectIsLocalVideoEnabled);\n const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);\n const trackSelector = selectVideoTrackByID(localPeer?.videoTrack);\n const track = useHMSStore(trackSelector);\n const [blurAmount, setBlurAmount] = useState(VBHandler.getBlurAmount() || 0.5);\n const roomState = useHMSStore(selectRoomState);\n const isLargeRoom = useHMSStore(selectIsLargeRoom);\n const isEffectsSupported = VBHandler.isEffectsSupported();\n const isEffectsEnabled = useHMSStore(selectIsEffectsEnabled);\n const effectsKey = useHMSStore(selectEffectsKey);\n const isMobile = useMedia(cssConfig.media.md);\n const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);\n const isPluginAdded = useHMSStore(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ''));\n const background = useHMSStore(selectAppData(APP_DATA.background));\n const mediaList = backgroundMedia.map((media: VirtualBackgroundMedia) => media.url || '');\n const pluginLoadingRef = useRef(false);\n const isBlurSupported = VBHandler?.isBlurSupported();\n\n const inPreview = roomState === HMSRoomState.Preview;\n // Hidden in preview as the effect will be visible in the preview tile\n const showVideoTile = isVideoOn && isLargeRoom && !inPreview;\n\n useEffect(() => {\n const addHMSVBPlugin = async () => {\n setLoadingEffects(false);\n if (!role) {\n return;\n }\n await VBHandler.initialisePlugin();\n await hmsActions.addPluginToVideoTrack(\n VBHandler.getVBObject() as HMSVBPlugin,\n Math.floor(role.publishParams.video.frameRate / 2),\n );\n };\n const initializeVirtualBackground = async () => {\n if (!track?.id || pluginLoadingRef.current || isPluginAdded) {\n return;\n }\n\n try {\n pluginLoadingRef.current = true;\n if (isEffectsEnabled && isEffectsSupported && effectsKey) {\n setLoadingEffects(true);\n await VBHandler.initialisePlugin(effectsKey, () => {\n setLoadingEffects(false);\n });\n const vbInstance = VBHandler.getVBObject();\n if (vbInstance.getName() === 'HMSEffects') {\n hmsActions.addPluginsToVideoStream([VBHandler.getVBObject() as HMSMediaStreamPlugin]);\n } else {\n await addHMSVBPlugin();\n }\n } else {\n await addHMSVBPlugin();\n }\n\n const handleDefaultBackground = async () => {\n switch (background) {\n case HMSVirtualBackgroundTypes.NONE:\n break;\n case HMSVirtualBackgroundTypes.BLUR:\n await VBHandler.setBlur(blurAmount);\n break;\n default:\n await VBHandler.setBackground(background);\n }\n };\n\n await handleDefaultBackground();\n } catch (error) {\n console.error('Error initializing virtual background:', error);\n setLoadingEffects(false);\n }\n };\n\n initializeVirtualBackground();\n }, [\n hmsActions,\n role,\n isPluginAdded,\n isEffectsEnabled,\n isEffectsSupported,\n effectsKey,\n track?.id,\n background,\n blurAmount,\n setLoadingEffects,\n ]);\n\n useEffect(() => {\n if (!isVideoOn) {\n toggleVB();\n }\n return () => setLoadingEffects(false);\n }, [isVideoOn, setLoadingEffects, toggleVB]);\n\n useSidepaneResetOnLayoutUpdate('virtual_background', SIDE_PANE_OPTIONS.VB);\n\n return (\n <Flex css={{ pr: '$6', size: '100%' }} direction=\"column\">\n <Flex align=\"center\" justify=\"between\" css={{ w: '100%', background: '$surface_dim', pb: '$4' }}>\n <Text variant=\"h6\" css={{ color: '$on_surface_high', display: 'flex', alignItems: 'center' }}>\n Virtual Background {isMobile && loadingEffects ? <Loading size={18} style={{ marginLeft: '0.5rem' }} /> : ''}\n </Text>\n <Box\n css={{ color: '$on_surface_high', '&:hover': { color: '$on_surface_medium' }, cursor: 'pointer' }}\n onClick={toggleVB}\n >\n <CrossIcon />\n </Box>\n </Flex>\n\n {showVideoTile ? (\n <Video\n mirror={track?.facingMode !== 'environment' && mirrorLocalVideo}\n trackId={localPeer?.videoTrack}\n data-testid=\"preview_tile\"\n css={{ width: '100%', height: '16rem' }}\n />\n ) : null}\n <Box\n css={{\n mt: '$4',\n overflowY: 'auto',\n flex: '1 1 0',\n mr: '-$10',\n pr: '$10',\n }}\n >\n <VBCollection\n title=\"Effects\"\n options={[\n {\n title: 'No effect',\n icon: <CrossCircleIcon style={iconDims} />,\n value: HMSVirtualBackgroundTypes.NONE,\n onClick: async () => {\n await VBHandler.removeEffects();\n hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.NONE);\n if (isMobile) {\n toggleVB();\n }\n },\n supported: true,\n },\n {\n title: 'Blur',\n icon: <BlurPersonHighIcon style={iconDims} />,\n value: HMSVirtualBackgroundTypes.BLUR,\n onClick: async () => {\n await VBHandler?.setBlur(blurAmount);\n hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.BLUR);\n },\n supported: isBlurSupported,\n },\n ]}\n activeBackground={background}\n />\n\n {/* Slider */}\n <Flex direction=\"column\" css={{ w: '100%', gap: '$8', mt: '$8' }}>\n {background === HMSVirtualBackgroundTypes.BLUR && isBlurSupported ? (\n <Box>\n <Text variant=\"sm\" css={{ color: '$on_surface_high', fontWeight: '$semiBold', mb: '$4' }}>\n Blur intensity\n </Text>\n <Flex css={{ w: '100%', justifyContent: 'space-between', alignItems: 'center', gap: '$4' }}>\n <Text variant=\"caption\" css={{ fontWeight: '$medium', color: '$on_surface_medium' }}>\n Low\n </Text>\n <Slider\n showTooltip={false}\n value={[blurAmount]}\n onValueChange={async e => {\n setBlurAmount(e[0]);\n await VBHandler.setBlur(e[0]);\n }}\n step={0.1}\n min={0.1}\n max={1}\n />\n <Text variant=\"caption\" css={{ fontWeight: '$medium', color: '$on_surface_medium' }}>\n High\n </Text>\n </Flex>\n </Box>\n ) : null}\n </Flex>\n\n <VBCollection\n title=\"Backgrounds\"\n options={mediaList.map(mediaURL => ({\n mediaURL,\n value: mediaURL,\n onClick: async () => {\n await VBHandler?.setBackground(mediaURL);\n hmsActions.setAppData(APP_DATA.background, mediaURL);\n if (isMobile) {\n toggleVB();\n }\n },\n supported: true,\n }))}\n activeBackground={background}\n />\n </Box>\n </Flex>\n );\n};\n", "import React from 'react';\n// Open issue with eslint-plugin-import https://github.com/import-js/eslint-plugin-import/issues/1810\n// eslint-disable-next-line\nimport { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background/hmsvbplugin';\nimport { Box } from '../../../Layout';\nimport { Text } from '../../../Text';\nimport { VBOption } from './VBOption';\n\nexport const VBCollection = ({\n options,\n title,\n activeBackground = '',\n}: {\n options: {\n title?: string;\n icon?: React.JSX.Element;\n onClick?: () => Promise<void>;\n mediaURL?: string;\n value: string | HMSVirtualBackgroundTypes;\n supported?: boolean;\n }[];\n title: string;\n activeBackground: string;\n}) => {\n if (options.length === 0) {\n return null;\n }\n return (\n <Box css={{ mt: '$10' }}>\n <Text variant=\"sm\" css={{ color: '$on_surface_high', fontWeight: '$semiBold' }}>\n {title}\n </Text>\n <Box css={{ py: '$4', display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '$8' }}>\n {options.map((option, index) =>\n option.supported ? (\n <VBOption.Root\n key={option.value}\n testid={option.value === HMSVirtualBackgroundTypes.IMAGE ? `virtual_bg_option-${index}` : option.value}\n {...option}\n isActive={activeBackground === option.value}\n >\n <VBOption.Icon>{option?.icon}</VBOption.Icon>\n <VBOption.Title>{option?.title}</VBOption.Title>\n </VBOption.Root>\n ) : (\n ''\n ),\n )}\n </Box>\n </Box>\n );\n};\n", "import React from 'react';\nimport { Box, Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\n\nconst Root = ({\n onClick,\n mediaURL,\n isActive,\n children,\n testid = '',\n}: {\n onClick?: () => Promise<void>;\n mediaURL?: string;\n isActive: boolean;\n children?: React.JSX.Element[];\n testid: string;\n}) => (\n <Flex\n data-testid={testid}\n direction=\"column\"\n align=\"center\"\n css={{\n p: '$5',\n borderRadius: '$1',\n bg: '$surface_bright',\n border: `4px solid ${isActive ? '$primary_default' : '$surface_dim'}`,\n cursor: 'pointer',\n '@media (hover:hover)': {\n '&:hover': { border: '4px solid $primary_dim' },\n },\n ...(mediaURL ? { height: '$20', backgroundImage: `url(\"${mediaURL}\")`, backgroundSize: 'cover' } : {}),\n }}\n onClick={async () => {\n await onClick?.();\n }}\n >\n {children}\n </Flex>\n);\n\nconst Title = ({ children }: { children?: string }) => {\n return children ? (\n <Text variant=\"xs\" css={{ color: '$on_surface_medium' }}>\n {children}\n </Text>\n ) : null;\n};\n\nconst Icon = ({ children }: { children?: React.JSX.Element }) => {\n return children ? <Box css={{ color: '$on_surface_high' }}>{children}</Box> : null;\n};\n\nexport const VBOption = {\n Root,\n Title,\n Icon,\n};\n"],
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,OAAOA,UAAS,WAAW,QAAQ,gBAAgB;AACnD,SAAS,gBAAgB;AAUzB,SAAsB,6BAAAC,kCAAiC;AAEvD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB,iBAAiB,iBAAiB;;;ACxB/D;AAAA,OAAOC,YAAW;AAGlB,SAAS,iCAAiC;;;ACH1C;AAAA,OAAO,WAAW;AAIlB,IAAM,OAAO,CAAC;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