@q9labsai/chalk-react-native 4.1.17 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -29
- package/android/build.gradle +35 -0
- package/android/compatibility/ModuleApiCompatibility.java +215 -0
- package/android/src/main/AndroidManifest.xml +2 -1
- package/android/src/main/java/ai/q9labs/chalk/reactnative/ChalkSpaceForegroundService.java +105 -31
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkAndroidConnectionServicePackage.kt +2 -0
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkAudioRouteModule.kt +137 -0
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkCallServiceModule.kt +32 -0
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/CommunicationDeviceListener.kt +23 -0
- package/android/src/test/kotlin/ai/q9labs/chalk/compatibility/UnsafeSignatures.kt +29 -0
- package/dist/android/call-service.d.ts +4 -0
- package/dist/android/call-service.d.ts.map +1 -0
- package/dist/avatar/FaceAvatar.d.ts +19 -0
- package/dist/avatar/FaceAvatar.d.ts.map +1 -0
- package/dist/avatar/tile-avatar-size.d.ts +3 -0
- package/dist/avatar/tile-avatar-size.d.ts.map +1 -0
- package/dist/chunk-GYVZSOGQ.js +30 -0
- package/dist/chunk-IHE6EA3T.js +25 -0
- package/dist/chunk-OIBT2FNM.js +1479 -0
- package/dist/client.d.ts +1 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +185 -2
- package/dist/components/EmbeddedWhiteboard.d.ts.map +1 -1
- package/dist/components/native-media-visibility.d.ts +3 -2
- package/dist/components/native-media-visibility.d.ts.map +1 -1
- package/dist/components/useAndroidCallService.d.ts +8 -0
- package/dist/components/useAndroidCallService.d.ts.map +1 -0
- package/dist/dev.d.ts +10 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/dev.js +10 -0
- package/dist/dock/Dock.d.ts +23 -0
- package/dist/dock/Dock.d.ts.map +1 -0
- package/dist/dock/LeaveMenu.d.ts +12 -0
- package/dist/dock/LeaveMenu.d.ts.map +1 -0
- package/dist/dock/MoreSheet.d.ts +17 -0
- package/dist/dock/MoreSheet.d.ts.map +1 -0
- package/dist/dock/ReactionBurst.d.ts +8 -0
- package/dist/dock/ReactionBurst.d.ts.map +1 -0
- package/dist/dock/RoutePicker.d.ts +16 -0
- package/dist/dock/RoutePicker.d.ts.map +1 -0
- package/dist/dock/audio-route.d.ts +25 -0
- package/dist/dock/audio-route.d.ts.map +1 -0
- package/dist/error-YOPTEH5N.wav +0 -0
- package/dist/frame/CallFrame.d.ts +17 -0
- package/dist/frame/CallFrame.d.ts.map +1 -0
- package/dist/frame/Chalk.d.ts +40 -0
- package/dist/frame/Chalk.d.ts.map +1 -0
- package/dist/frame/back-handler.d.ts +6 -0
- package/dist/frame/back-handler.d.ts.map +1 -0
- package/dist/frame/dev-scenario.d.ts +28 -0
- package/dist/frame/dev-scenario.d.ts.map +1 -0
- package/dist/frame/device-layout.d.ts +16 -0
- package/dist/frame/device-layout.d.ts.map +1 -0
- package/dist/frame/measurement.d.ts +28 -0
- package/dist/frame/measurement.d.ts.map +1 -0
- package/dist/frame/portal.d.ts +24 -0
- package/dist/frame/portal.d.ts.map +1 -0
- package/dist/frame/preferences.d.ts +21 -0
- package/dist/frame/preferences.d.ts.map +1 -0
- package/dist/frame/regions.d.ts +25 -0
- package/dist/frame/regions.d.ts.map +1 -0
- package/dist/hand-DFWVXPH2.wav +0 -0
- package/dist/haptics/haptics.d.ts +12 -0
- package/dist/haptics/haptics.d.ts.map +1 -0
- package/dist/header/CallDetailsSheet.d.ts +18 -0
- package/dist/header/CallDetailsSheet.d.ts.map +1 -0
- package/dist/header/Header.d.ts +17 -0
- package/dist/header/Header.d.ts.map +1 -0
- package/dist/header/QrCode.d.ts +6 -0
- package/dist/header/QrCode.d.ts.map +1 -0
- package/dist/icons/Icon.d.ts +12 -0
- package/dist/icons/Icon.d.ts.map +1 -0
- package/dist/icons/icon-element.d.ts +24 -0
- package/dist/icons/icon-element.d.ts.map +1 -0
- package/dist/icons/icon-paths.d.ts +530 -0
- package/dist/icons/icon-paths.d.ts.map +1 -0
- package/dist/index.d.ts +6 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2956 -38
- package/dist/join-Z6RL5AHE.wav +0 -0
- package/dist/knock-4VBQSHK4.wav +0 -0
- package/dist/leave-MQLZOWQD.wav +0 -0
- package/dist/limbo/Limbo.d.ts +25 -0
- package/dist/limbo/Limbo.d.ts.map +1 -0
- package/dist/limbo/Veil.d.ts +10 -0
- package/dist/limbo/Veil.d.ts.map +1 -0
- package/dist/media/native-capture-error.d.ts +7 -0
- package/dist/media/native-capture-error.d.ts.map +1 -0
- package/dist/message-6Y6WJGTB.wav +0 -0
- package/dist/motion/MovingFrame.d.ts +36 -0
- package/dist/motion/MovingFrame.d.ts.map +1 -0
- package/dist/motion/motion.d.ts +82 -0
- package/dist/motion/motion.d.ts.map +1 -0
- package/dist/motion/presence.d.ts +6 -0
- package/dist/motion/presence.d.ts.map +1 -0
- package/dist/motion/press.d.ts +15 -0
- package/dist/motion/press.d.ts.map +1 -0
- package/dist/mute-H5SJFXVI.wav +0 -0
- package/dist/primitives/BottomSheet.d.ts +36 -0
- package/dist/primitives/BottomSheet.d.ts.map +1 -0
- package/dist/primitives/ChalkText.d.ts +13 -0
- package/dist/primitives/ChalkText.d.ts.map +1 -0
- package/dist/primitives/CopyButton.d.ts +11 -0
- package/dist/primitives/CopyButton.d.ts.map +1 -0
- package/dist/primitives/IconButton.d.ts +26 -0
- package/dist/primitives/IconButton.d.ts.map +1 -0
- package/dist/primitives/Menu.d.ts +39 -0
- package/dist/primitives/Menu.d.ts.map +1 -0
- package/dist/primitives/NameTag.d.ts +19 -0
- package/dist/primitives/NameTag.d.ts.map +1 -0
- package/dist/primitives/PillButton.d.ts +19 -0
- package/dist/primitives/PillButton.d.ts.map +1 -0
- package/dist/primitives/SegmentedControl.d.ts +17 -0
- package/dist/primitives/SegmentedControl.d.ts.map +1 -0
- package/dist/primitives/SheetGroup.d.ts +24 -0
- package/dist/primitives/SheetGroup.d.ts.map +1 -0
- package/dist/primitives/Switch.d.ts +9 -0
- package/dist/primitives/Switch.d.ts.map +1 -0
- package/dist/primitives/TileShell.d.ts +18 -0
- package/dist/primitives/TileShell.d.ts.map +1 -0
- package/dist/primitives/announce.d.ts +3 -0
- package/dist/primitives/announce.d.ts.map +1 -0
- package/dist/primitives/menu-placement.d.ts +32 -0
- package/dist/primitives/menu-placement.d.ts.map +1 -0
- package/dist/primitives/toast/Toast.d.ts +8 -0
- package/dist/primitives/toast/Toast.d.ts.map +1 -0
- package/dist/primitives/toast/ToastStack.d.ts +18 -0
- package/dist/primitives/toast/ToastStack.d.ts.map +1 -0
- package/dist/primitives/toast/toast-store.d.ts +39 -0
- package/dist/primitives/toast/toast-store.d.ts.map +1 -0
- package/dist/recording-Q4GB77Y4.wav +0 -0
- package/dist/sheets/people-chat/ChatNotices.d.ts +14 -0
- package/dist/sheets/people-chat/ChatNotices.d.ts.map +1 -0
- package/dist/sheets/people-chat/ChatTab.d.ts +6 -0
- package/dist/sheets/people-chat/ChatTab.d.ts.map +1 -0
- package/dist/sheets/people-chat/Composer.d.ts +7 -0
- package/dist/sheets/people-chat/Composer.d.ts.map +1 -0
- package/dist/sheets/people-chat/PeopleChatSheet.d.ts +17 -0
- package/dist/sheets/people-chat/PeopleChatSheet.d.ts.map +1 -0
- package/dist/sheets/people-chat/PeopleTab.d.ts +3 -0
- package/dist/sheets/people-chat/PeopleTab.d.ts.map +1 -0
- package/dist/sheets/people-chat/PhotoViewer.d.ts +19 -0
- package/dist/sheets/people-chat/PhotoViewer.d.ts.map +1 -0
- package/dist/sheets/people-chat/TextField.d.ts +4 -0
- package/dist/sheets/people-chat/TextField.d.ts.map +1 -0
- package/dist/sheets/people-chat/attachments.d.ts +33 -0
- package/dist/sheets/people-chat/attachments.d.ts.map +1 -0
- package/dist/sheets/people-chat/chat-model.d.ts +64 -0
- package/dist/sheets/people-chat/chat-model.d.ts.map +1 -0
- package/dist/sheets/people-chat/people-model.d.ts +43 -0
- package/dist/sheets/people-chat/people-model.d.ts.map +1 -0
- package/dist/sounds/sounds.d.ts +33 -0
- package/dist/sounds/sounds.d.ts.map +1 -0
- package/dist/space-client/create-native-space-client.d.ts +0 -4
- package/dist/space-client/create-native-space-client.d.ts.map +1 -1
- package/dist/space-client/random-uuid.d.ts +7 -0
- package/dist/space-client/random-uuid.d.ts.map +1 -0
- package/dist/stage/ContentTile.d.ts +18 -0
- package/dist/stage/ContentTile.d.ts.map +1 -0
- package/dist/stage/ParticipantTile.d.ts +18 -0
- package/dist/stage/ParticipantTile.d.ts.map +1 -0
- package/dist/stage/Stage.d.ts +14 -0
- package/dist/stage/Stage.d.ts.map +1 -0
- package/dist/stage/TileSheet.d.ts +12 -0
- package/dist/stage/TileSheet.d.ts.map +1 -0
- package/dist/stage/camera.d.ts +7 -0
- package/dist/stage/camera.d.ts.map +1 -0
- package/dist/stage/layout.d.ts +57 -0
- package/dist/stage/layout.d.ts.map +1 -0
- package/dist/stage/space-selector.d.ts +10 -0
- package/dist/stage/space-selector.d.ts.map +1 -0
- package/dist/stage/stage-view.d.ts +23 -0
- package/dist/stage/stage-view.d.ts.map +1 -0
- package/dist/status/CallOverlays.d.ts +17 -0
- package/dist/status/CallOverlays.d.ts.map +1 -0
- package/dist/status/ChalkArrival.d.ts +24 -0
- package/dist/status/ChalkArrival.d.ts.map +1 -0
- package/dist/status/StatusPage.d.ts +14 -0
- package/dist/status/StatusPage.d.ts.map +1 -0
- package/dist/status/call-screen.d.ts +20 -0
- package/dist/status/call-screen.d.ts.map +1 -0
- package/dist/test-VD2KAM4D.wav +0 -0
- package/dist/theme/theme.d.ts +15 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/theme/tokens.d.ts +248 -0
- package/dist/theme/tokens.d.ts.map +1 -0
- package/dist/toasts/CallEventToasts.d.ts +21 -0
- package/dist/toasts/CallEventToasts.d.ts.map +1 -0
- package/dist/toasts/notices.d.ts +34 -0
- package/dist/toasts/notices.d.ts.map +1 -0
- package/dist/ui/ChalkUI.d.ts +12 -0
- package/dist/ui/ChalkUI.d.ts.map +1 -0
- package/dist/ui.d.ts +25 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +77 -0
- package/dist/unmute-2XR2LICU.wav +0 -0
- package/embedded/chalk-whiteboard/asset-manifest.json +2 -2
- package/embedded/chalk-whiteboard/renderer.js +510 -510
- package/ios/ChalkAudioRouteModule.swift +93 -0
- package/ios/ChalkAudioRouteModuleBridge.m +9 -0
- package/package.json +46 -76
- package/src/android/call-service.ts +19 -0
- package/src/avatar/FaceAvatar.tsx +145 -0
- package/src/avatar/tile-avatar-size.ts +4 -0
- package/src/client.ts +1 -5
- package/src/components/EmbeddedWhiteboard.tsx +14 -71
- package/src/components/native-media-visibility.ts +1 -2
- package/src/components/useAndroidCallService.ts +41 -0
- package/src/dev.ts +9 -0
- package/src/dock/Dock.tsx +95 -0
- package/src/dock/LeaveMenu.tsx +21 -0
- package/src/dock/MoreSheet.tsx +233 -0
- package/src/dock/ReactionBurst.tsx +55 -0
- package/src/dock/RoutePicker.tsx +42 -0
- package/src/dock/audio-route.ts +69 -0
- package/src/frame/CallFrame.tsx +209 -0
- package/src/frame/Chalk.tsx +83 -0
- package/src/frame/back-handler.ts +19 -0
- package/src/frame/dev-scenario.ts +48 -0
- package/src/frame/device-layout.tsx +31 -0
- package/src/frame/measurement.ts +44 -0
- package/src/frame/portal.tsx +107 -0
- package/src/frame/preferences.tsx +48 -0
- package/src/frame/regions.test.ts +38 -0
- package/src/frame/regions.ts +60 -0
- package/src/haptics/haptics.ts +19 -0
- package/src/header/CallDetailsSheet.tsx +139 -0
- package/src/header/Header.tsx +107 -0
- package/src/header/QrCode.tsx +34 -0
- package/src/icons/Icon.tsx +35 -0
- package/src/icons/icon-element.ts +11 -0
- package/src/icons/icon-paths.ts +199 -0
- package/src/index.ts +6 -9
- package/src/limbo/Limbo.tsx +159 -0
- package/src/limbo/Veil.tsx +36 -0
- package/src/media/native-capture-error.test.ts +19 -0
- package/src/media/native-capture-error.ts +13 -0
- package/src/motion/MovingFrame.tsx +101 -0
- package/src/motion/motion.ts +33 -0
- package/src/motion/presence.ts +20 -0
- package/src/motion/press.ts +35 -0
- package/src/primitives/BottomSheet.tsx +211 -0
- package/src/primitives/ChalkText.tsx +23 -0
- package/src/primitives/CopyButton.tsx +78 -0
- package/src/primitives/IconButton.tsx +90 -0
- package/src/primitives/Menu.tsx +212 -0
- package/src/primitives/NameTag.tsx +68 -0
- package/src/primitives/PillButton.tsx +56 -0
- package/src/primitives/SegmentedControl.tsx +55 -0
- package/src/primitives/SheetGroup.tsx +72 -0
- package/src/primitives/Switch.tsx +39 -0
- package/src/primitives/TileShell.tsx +53 -0
- package/src/primitives/announce.ts +7 -0
- package/src/primitives/menu-placement.test.ts +50 -0
- package/src/primitives/menu-placement.ts +43 -0
- package/src/primitives/toast/Toast.tsx +50 -0
- package/src/primitives/toast/ToastStack.tsx +89 -0
- package/src/primitives/toast/toast-store.ts +86 -0
- package/src/sheets/people-chat/ChatNotices.tsx +69 -0
- package/src/sheets/people-chat/ChatTab.tsx +186 -0
- package/src/sheets/people-chat/Composer.tsx +182 -0
- package/src/sheets/people-chat/PeopleChatSheet.tsx +100 -0
- package/src/sheets/people-chat/PeopleTab.tsx +326 -0
- package/src/sheets/people-chat/PhotoViewer.tsx +132 -0
- package/src/sheets/people-chat/TextField.tsx +14 -0
- package/src/sheets/people-chat/attachments.tsx +183 -0
- package/src/sheets/people-chat/chat-model.ts +157 -0
- package/src/sheets/people-chat/people-chat-model.test.ts +98 -0
- package/src/sheets/people-chat/people-model.ts +68 -0
- package/src/sounds/assets/error.wav +0 -0
- package/src/sounds/assets/hand.wav +0 -0
- package/src/sounds/assets/join.wav +0 -0
- package/src/sounds/assets/knock.wav +0 -0
- package/src/sounds/assets/leave.wav +0 -0
- package/src/sounds/assets/message.wav +0 -0
- package/src/sounds/assets/mute.wav +0 -0
- package/src/sounds/assets/recording.wav +0 -0
- package/src/sounds/assets/test.wav +0 -0
- package/src/sounds/assets/unmute.wav +0 -0
- package/src/sounds/assets.d.ts +5 -0
- package/src/sounds/sounds.ts +50 -0
- package/src/space-client/create-native-space-client.ts +20 -181
- package/src/space-client/random-uuid.ts +17 -0
- package/src/space-client/whiteboard-watchdog.test.ts +23 -0
- package/src/stage/ContentTile.tsx +100 -0
- package/src/stage/ParticipantTile.tsx +140 -0
- package/src/stage/Stage.tsx +152 -0
- package/src/stage/TileSheet.tsx +116 -0
- package/src/stage/camera.ts +20 -0
- package/src/stage/layout.test.ts +77 -0
- package/src/stage/layout.ts +226 -0
- package/src/stage/space-selector.ts +31 -0
- package/src/stage/stage-view.tsx +68 -0
- package/src/status/CallOverlays.tsx +47 -0
- package/src/status/ChalkArrival.tsx +53 -0
- package/src/status/StatusPage.tsx +123 -0
- package/src/status/call-screen.test.ts +42 -0
- package/src/status/call-screen.ts +29 -0
- package/src/theme/theme.tsx +28 -0
- package/src/theme/tokens.ts +247 -0
- package/src/toasts/CallEventToasts.tsx +192 -0
- package/src/toasts/notices.test.ts +92 -0
- package/src/toasts/notices.ts +62 -0
- package/src/ui/ChalkUI.tsx +49 -0
- package/src/ui.ts +24 -0
- package/dist/android.d.ts +0 -2
- package/dist/android.d.ts.map +0 -1
- package/dist/android.js +0 -62
- package/dist/chunk-2OS7SSXE.js +0 -552
- package/dist/chunk-5DQ4KBRH.js +0 -690
- package/dist/chunk-ITLUHTVS.js +0 -5271
- package/dist/chunk-JB4LNWVP.js +0 -247
- package/dist/components/Chalk.d.ts +0 -79
- package/dist/components/Chalk.d.ts.map +0 -1
- package/dist/components/ChatMessageList.d.ts +0 -11
- package/dist/components/ChatMessageList.d.ts.map +0 -1
- package/dist/components/Entrance.d.ts +0 -22
- package/dist/components/Entrance.d.ts.map +0 -1
- package/dist/components/EntranceView.android.d.ts +0 -4
- package/dist/components/EntranceView.android.d.ts.map +0 -1
- package/dist/components/EntranceView.d.ts +0 -18
- package/dist/components/EntranceView.d.ts.map +0 -1
- package/dist/components/EntranceView.ios-pad.d.ts +0 -3
- package/dist/components/EntranceView.ios-pad.d.ts.map +0 -1
- package/dist/components/EntranceView.ios-phone.d.ts +0 -3
- package/dist/components/EntranceView.ios-phone.d.ts.map +0 -1
- package/dist/components/EntranceView.macos.d.ts +0 -4
- package/dist/components/EntranceView.macos.d.ts.map +0 -1
- package/dist/components/FaceAvatar.d.ts +0 -16
- package/dist/components/FaceAvatar.d.ts.map +0 -1
- package/dist/components/GradientSurface.d.ts +0 -14
- package/dist/components/GradientSurface.d.ts.map +0 -1
- package/dist/components/MediaView.d.ts +0 -14
- package/dist/components/MediaView.d.ts.map +0 -1
- package/dist/components/ReactionPicker.d.ts +0 -10
- package/dist/components/ReactionPicker.d.ts.map +0 -1
- package/dist/components/SpaceView.android.d.ts +0 -2
- package/dist/components/SpaceView.android.d.ts.map +0 -1
- package/dist/components/SpaceView.d.ts +0 -33
- package/dist/components/SpaceView.d.ts.map +0 -1
- package/dist/components/SpaceView.ios-pad.d.ts +0 -2
- package/dist/components/SpaceView.ios-pad.d.ts.map +0 -1
- package/dist/components/SpaceView.ios-phone.d.ts +0 -2
- package/dist/components/SpaceView.ios-phone.d.ts.map +0 -1
- package/dist/components/SpaceView.macos.d.ts +0 -2
- package/dist/components/SpaceView.macos.d.ts.map +0 -1
- package/dist/components/SpaceView.shared.d.ts +0 -3
- package/dist/components/SpaceView.shared.d.ts.map +0 -1
- package/dist/components/episode-diagnostic-render-observer.d.ts +0 -2
- package/dist/components/episode-diagnostic-render-observer.d.ts.map +0 -1
- package/dist/components/logo/Logo.d.ts +0 -11
- package/dist/components/logo/Logo.d.ts.map +0 -1
- package/dist/components/native-animation-controller.d.ts +0 -7
- package/dist/components/native-animation-controller.d.ts.map +0 -1
- package/dist/components/native-chat.d.ts +0 -8
- package/dist/components/native-chat.d.ts.map +0 -1
- package/dist/components/native-entrance/entrance-controller-store.d.ts +0 -34
- package/dist/components/native-entrance/entrance-controller-store.d.ts.map +0 -1
- package/dist/components/native-entrance/useEntranceController.d.ts +0 -19
- package/dist/components/native-entrance/useEntranceController.d.ts.map +0 -1
- package/dist/components/native-joining-loading-animation.d.ts +0 -9
- package/dist/components/native-joining-loading-animation.d.ts.map +0 -1
- package/dist/components/native-space-view/AppearanceSettings.d.ts +0 -2
- package/dist/components/native-space-view/AppearanceSettings.d.ts.map +0 -1
- package/dist/components/native-space-view/FeedbackSheet.d.ts +0 -12
- package/dist/components/native-space-view/FeedbackSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/ParticipantActionSheet.d.ts +0 -9
- package/dist/components/native-space-view/ParticipantActionSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SettingsSheet.d.ts +0 -7
- package/dist/components/native-space-view/SettingsSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceActionMenu.d.ts +0 -10
- package/dist/components/native-space-view/SpaceActionMenu.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceBottomDock.android.d.ts +0 -4
- package/dist/components/native-space-view/SpaceBottomDock.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceChatAttachment.d.ts +0 -8
- package/dist/components/native-space-view/SpaceChatAttachment.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceChatSheet.d.ts +0 -5
- package/dist/components/native-space-view/SpaceChatSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceGrid.android.d.ts +0 -8
- package/dist/components/native-space-view/SpaceGrid.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceMoreSheet.d.ts +0 -7
- package/dist/components/native-space-view/SpaceMoreSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpacePanelSheet.d.ts +0 -5
- package/dist/components/native-space-view/SpacePanelSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpacePeopleSheet.d.ts +0 -5
- package/dist/components/native-space-view/SpacePeopleSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceStage.android.d.ts +0 -29
- package/dist/components/native-space-view/SpaceStage.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceSurfacePrimitives.d.ts +0 -30
- package/dist/components/native-space-view/SpaceSurfacePrimitives.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceTopBar.android.d.ts +0 -11
- package/dist/components/native-space-view/SpaceTopBar.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceWhiteboardSurface.d.ts +0 -15
- package/dist/components/native-space-view/SpaceWhiteboardSurface.d.ts.map +0 -1
- package/dist/components/native-space-view/diagnostics.d.ts +0 -48
- package/dist/components/native-space-view/diagnostics.d.ts.map +0 -1
- package/dist/components/native-space-view/format-space-duration.d.ts +0 -2
- package/dist/components/native-space-view/format-space-duration.d.ts.map +0 -1
- package/dist/components/native-space-view/native-space-grid-keys.d.ts +0 -3
- package/dist/components/native-space-view/native-space-grid-keys.d.ts.map +0 -1
- package/dist/components/native-space-view/native-space-page-store.d.ts +0 -8
- package/dist/components/native-space-view/native-space-page-store.d.ts.map +0 -1
- package/dist/components/native-space-view/space-chat-attachments.d.ts +0 -15
- package/dist/components/native-space-view/space-chat-attachments.d.ts.map +0 -1
- package/dist/components/native-space-view/space-panel-layout.d.ts +0 -10
- package/dist/components/native-space-view/space-panel-layout.d.ts.map +0 -1
- package/dist/components/native-space-view/space-progressive-surface-helpers.d.ts +0 -16
- package/dist/components/native-space-view/space-progressive-surface-helpers.d.ts.map +0 -1
- package/dist/components/native-space-view/space-progressive-surface-types.d.ts +0 -3
- package/dist/components/native-space-view/space-progressive-surface-types.d.ts.map +0 -1
- package/dist/components/native-space-view/types.d.ts +0 -24
- package/dist/components/native-space-view/types.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewController.contract.d.ts +0 -41
- package/dist/components/native-space-view/useSpaceViewController.contract.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewController.d.ts +0 -156
- package/dist/components/native-space-view/useSpaceViewController.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewDerived.d.ts +0 -12
- package/dist/components/native-space-view/useSpaceViewDerived.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewPanels.d.ts +0 -70
- package/dist/components/native-space-view/useSpaceViewPanels.d.ts.map +0 -1
- package/dist/feedback/native-capture.d.ts +0 -9
- package/dist/feedback/native-capture.d.ts.map +0 -1
- package/dist/feedback/native-evidence.d.ts +0 -3
- package/dist/feedback/native-evidence.d.ts.map +0 -1
- package/dist/hooks/entrance-preview-store.d.ts +0 -16
- package/dist/hooks/entrance-preview-store.d.ts.map +0 -1
- package/dist/hooks/useEntrancePreview.d.ts +0 -7
- package/dist/hooks/useEntrancePreview.d.ts.map +0 -1
- package/dist/hooks/useLayout.d.ts +0 -16
- package/dist/hooks/useLayout.d.ts.map +0 -1
- package/dist/hooks/usePanels.d.ts +0 -12
- package/dist/hooks/usePanels.d.ts.map +0 -1
- package/dist/ios-pad.d.ts +0 -2
- package/dist/ios-pad.d.ts.map +0 -1
- package/dist/ios-pad.js +0 -62
- package/dist/ios-phone.d.ts +0 -2
- package/dist/ios-phone.d.ts.map +0 -1
- package/dist/ios-phone.js +0 -62
- package/dist/ios.d.ts +0 -2
- package/dist/ios.d.ts.map +0 -1
- package/dist/ios.js +0 -62
- package/dist/macos.d.ts +0 -2
- package/dist/macos.d.ts.map +0 -1
- package/dist/macos.js +0 -62
- package/dist/space-client/cloudflare-rtk-native.d.ts +0 -3
- package/dist/space-client/cloudflare-rtk-native.d.ts.map +0 -1
- package/dist/telemetry.d.ts +0 -63
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/ui/appearance.d.ts +0 -246
- package/dist/ui/appearance.d.ts.map +0 -1
- package/dist/ui/appearance.js +0 -14
- package/dist/ui/native-appearance-context.d.ts +0 -15
- package/dist/ui/native-appearance-context.d.ts.map +0 -1
- package/dist/ui/native-theme.d.ts +0 -17
- package/dist/ui/native-theme.d.ts.map +0 -1
- package/dist/ui/native-types.d.ts +0 -38
- package/dist/ui/native-types.d.ts.map +0 -1
- package/dist/ui/participant-avatar.d.ts +0 -21
- package/dist/ui/participant-avatar.d.ts.map +0 -1
- package/dist/ui/theme-tokens.d.ts +0 -25
- package/dist/ui/theme-tokens.d.ts.map +0 -1
- package/dist/ui/theme.d.ts +0 -404
- package/dist/ui/theme.d.ts.map +0 -1
- package/dist/ui/theme.js +0 -8
- package/dist/utils/native-space-layout.d.ts +0 -42
- package/dist/utils/native-space-layout.d.ts.map +0 -1
- package/src/android.ts +0 -1
- package/src/components/Chalk.tsx +0 -363
- package/src/components/ChatMessageList.tsx +0 -209
- package/src/components/Entrance.tsx +0 -42
- package/src/components/EntranceView.android.tsx +0 -274
- package/src/components/EntranceView.ios-pad.tsx +0 -326
- package/src/components/EntranceView.ios-phone.tsx +0 -271
- package/src/components/EntranceView.macos.tsx +0 -278
- package/src/components/EntranceView.tsx +0 -38
- package/src/components/FaceAvatar.tsx +0 -120
- package/src/components/GradientSurface.tsx +0 -23
- package/src/components/MediaView.tsx +0 -76
- package/src/components/ReactionPicker.tsx +0 -98
- package/src/components/SpaceView.android.tsx +0 -1
- package/src/components/SpaceView.ios-pad.tsx +0 -1
- package/src/components/SpaceView.ios-phone.tsx +0 -1
- package/src/components/SpaceView.macos.tsx +0 -1
- package/src/components/SpaceView.shared.tsx +0 -98
- package/src/components/SpaceView.tsx +0 -54
- package/src/components/episode-diagnostic-render-observer.ts +0 -12
- package/src/components/logo/Logo.tsx +0 -309
- package/src/components/native-animation-controller.ts +0 -36
- package/src/components/native-chat.ts +0 -23
- package/src/components/native-entrance/entrance-controller-store.ts +0 -112
- package/src/components/native-entrance/useEntranceController.ts +0 -60
- package/src/components/native-joining-loading-animation.ts +0 -26
- package/src/components/native-space-view/AppearanceSettings.tsx +0 -114
- package/src/components/native-space-view/FeedbackSheet.tsx +0 -296
- package/src/components/native-space-view/ParticipantActionSheet.tsx +0 -99
- package/src/components/native-space-view/SettingsSheet.tsx +0 -164
- package/src/components/native-space-view/SpaceActionMenu.tsx +0 -109
- package/src/components/native-space-view/SpaceBottomDock.android.tsx +0 -115
- package/src/components/native-space-view/SpaceChatAttachment.tsx +0 -105
- package/src/components/native-space-view/SpaceChatSheet.tsx +0 -184
- package/src/components/native-space-view/SpaceGrid.android.tsx +0 -323
- package/src/components/native-space-view/SpaceMoreSheet.tsx +0 -190
- package/src/components/native-space-view/SpacePanelSheet.tsx +0 -45
- package/src/components/native-space-view/SpacePeopleSheet.tsx +0 -116
- package/src/components/native-space-view/SpaceStage.android.tsx +0 -372
- package/src/components/native-space-view/SpaceSurfacePrimitives.tsx +0 -75
- package/src/components/native-space-view/SpaceTopBar.android.tsx +0 -113
- package/src/components/native-space-view/SpaceWhiteboardSurface.tsx +0 -69
- package/src/components/native-space-view/diagnostics.ts +0 -84
- package/src/components/native-space-view/format-space-duration.ts +0 -3
- package/src/components/native-space-view/native-space-grid-keys.ts +0 -6
- package/src/components/native-space-view/native-space-page-store.ts +0 -41
- package/src/components/native-space-view/space-chat-attachments.test.ts +0 -26
- package/src/components/native-space-view/space-chat-attachments.ts +0 -37
- package/src/components/native-space-view/space-panel-layout.ts +0 -10
- package/src/components/native-space-view/space-progressive-surface-helpers.ts +0 -33
- package/src/components/native-space-view/space-progressive-surface-types.ts +0 -3
- package/src/components/native-space-view/types.ts +0 -25
- package/src/components/native-space-view/useSpaceViewController.contract.ts +0 -34
- package/src/components/native-space-view/useSpaceViewController.ts +0 -416
- package/src/components/native-space-view/useSpaceViewDerived.ts +0 -29
- package/src/components/native-space-view/useSpaceViewPanels.ts +0 -170
- package/src/feedback/native-capture.ts +0 -62
- package/src/feedback/native-evidence.ts +0 -37
- package/src/hooks/entrance-preview-store.ts +0 -99
- package/src/hooks/useEntrancePreview.ts +0 -26
- package/src/hooks/useLayout.ts +0 -37
- package/src/hooks/usePanels.ts +0 -30
- package/src/ios-pad.ts +0 -1
- package/src/ios-phone.ts +0 -1
- package/src/ios.ts +0 -1
- package/src/macos.ts +0 -1
- package/src/space-client/cloudflare-rtk-native.ts +0 -104
- package/src/telemetry.ts +0 -234
- package/src/types/hugeicons-direct.d.ts +0 -4
- package/src/types/react-native-safe-area-context.d.ts +0 -8
- package/src/ui/appearance.ts +0 -808
- package/src/ui/native-appearance-context.tsx +0 -74
- package/src/ui/native-theme.tsx +0 -54
- package/src/ui/native-types.ts +0 -40
- package/src/ui/participant-avatar.ts +0 -47
- package/src/ui/theme-tokens.ts +0 -41
- package/src/ui/theme.ts +0 -214
- package/src/utils/native-space-layout.ts +0 -135
package/dist/chunk-5DQ4KBRH.js
DELETED
|
@@ -1,690 +0,0 @@
|
|
|
1
|
-
// src/ui/appearance.ts
|
|
2
|
-
function createShadow(color, offsetY, radius, opacity, elevation) {
|
|
3
|
-
return {
|
|
4
|
-
color,
|
|
5
|
-
offset: { width: 0, height: offsetY },
|
|
6
|
-
opacity,
|
|
7
|
-
radius,
|
|
8
|
-
elevation
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function createShadows(color, values) {
|
|
12
|
-
return {
|
|
13
|
-
xs: createShadow(color, ...values.xs),
|
|
14
|
-
sm: createShadow(color, ...values.sm),
|
|
15
|
-
control: createShadow(color, ...values.control)
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function createTokens(values) {
|
|
19
|
-
return values;
|
|
20
|
-
}
|
|
21
|
-
var LIGHT_SHADOWS = createShadows("#0c0e12", {
|
|
22
|
-
xs: [1, 2, 0.08, 1],
|
|
23
|
-
sm: [8, 30, 0.06, 8],
|
|
24
|
-
control: [5, 16, 0.1, 5]
|
|
25
|
-
});
|
|
26
|
-
var DARK_SHADOWS = createShadows("#000000", {
|
|
27
|
-
xs: [1, 2, 0.3, 1],
|
|
28
|
-
sm: [10, 34, 0.24, 8],
|
|
29
|
-
control: [6, 18, 0.34, 6]
|
|
30
|
-
});
|
|
31
|
-
var COOL_DARK_SHADOWS = createShadows("#000000", {
|
|
32
|
-
xs: [1, 2, 0.34, 1],
|
|
33
|
-
sm: [12, 36, 0.3, 10],
|
|
34
|
-
control: [6, 18, 0.4, 6]
|
|
35
|
-
});
|
|
36
|
-
var INK_DARK_SHADOWS = createShadows("#000000", {
|
|
37
|
-
xs: [1, 2, 0.4, 1],
|
|
38
|
-
sm: [12, 38, 0.34, 10],
|
|
39
|
-
control: [7, 20, 0.48, 7]
|
|
40
|
-
});
|
|
41
|
-
var ESPRESSO_DARK_SHADOWS = createShadows("#000000", {
|
|
42
|
-
xs: [1, 2, 0.38, 1],
|
|
43
|
-
sm: [12, 38, 0.32, 10],
|
|
44
|
-
control: [7, 20, 0.44, 7]
|
|
45
|
-
});
|
|
46
|
-
var ATELIER_DARK_SHADOWS = createShadows("#000000", {
|
|
47
|
-
xs: [1, 2, 0.34, 1],
|
|
48
|
-
sm: [12, 36, 0.28, 10],
|
|
49
|
-
control: [6, 18, 0.4, 6]
|
|
50
|
-
});
|
|
51
|
-
var PRISM_DARK_SHADOWS = createShadows("#000000", {
|
|
52
|
-
xs: [1, 2, 0.4, 1],
|
|
53
|
-
sm: [14, 42, 0.35, 12],
|
|
54
|
-
control: [7, 24, 0.46, 7]
|
|
55
|
-
});
|
|
56
|
-
var COSMIC_DARK_SHADOWS = createShadows("#000000", {
|
|
57
|
-
xs: [1, 2, 0.32, 1],
|
|
58
|
-
sm: [12, 40, 0.3, 10],
|
|
59
|
-
control: [6, 20, 0.4, 6]
|
|
60
|
-
});
|
|
61
|
-
var OLED_SHADOWS = createShadows("#000000", {
|
|
62
|
-
xs: [0, 0, 0, 0],
|
|
63
|
-
sm: [0, 0, 0, 0],
|
|
64
|
-
control: [6, 18, 0.7, 6]
|
|
65
|
-
});
|
|
66
|
-
var THEME_PALETTES = [
|
|
67
|
-
{
|
|
68
|
-
value: "light",
|
|
69
|
-
label: "Chalk Light",
|
|
70
|
-
family: "Chalk",
|
|
71
|
-
mode: "light",
|
|
72
|
-
swatch: ["#f7f6f2", "#ffffff", "#202329"],
|
|
73
|
-
tokens: createTokens({
|
|
74
|
-
canvas: "#f7f6f2",
|
|
75
|
-
chrome: "#fbfaf7",
|
|
76
|
-
stage: "#fbfaf7",
|
|
77
|
-
panel: "#ffffff",
|
|
78
|
-
tileBase: "#f1f0eb",
|
|
79
|
-
tileColorStrength: 0.22,
|
|
80
|
-
text: "#0c0e12",
|
|
81
|
-
textMuted: "#555b65",
|
|
82
|
-
line: "#deddd7",
|
|
83
|
-
lineStrong: "#c9c8c2",
|
|
84
|
-
control: "#ffffff",
|
|
85
|
-
controlHover: "#f1f0eb",
|
|
86
|
-
controlGroup: "#f0efeb",
|
|
87
|
-
controlPrimary: "#202329",
|
|
88
|
-
controlPrimaryHover: "#343840",
|
|
89
|
-
controlActive: "#dff2f7",
|
|
90
|
-
controlActiveLine: "#9dcfe1",
|
|
91
|
-
controlActiveText: "#202329",
|
|
92
|
-
messageRemote: "#f3f2ee",
|
|
93
|
-
messageLocal: "#202329",
|
|
94
|
-
messageLocalText: "#ffffff",
|
|
95
|
-
input: "#fbfaf7",
|
|
96
|
-
shadows: LIGHT_SHADOWS
|
|
97
|
-
})
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
value: "warm-porcelain",
|
|
101
|
-
label: "Warm Porcelain",
|
|
102
|
-
family: "Warm",
|
|
103
|
-
mode: "light",
|
|
104
|
-
swatch: ["#f6f0e7", "#eadfd2", "#51443c"],
|
|
105
|
-
tokens: createTokens({
|
|
106
|
-
canvas: "#f2ebe2",
|
|
107
|
-
chrome: "#f8f3ec",
|
|
108
|
-
stage: "#eee4dc",
|
|
109
|
-
panel: "#fffaf5",
|
|
110
|
-
tileBase: "#eee4dc",
|
|
111
|
-
tileColorStrength: 0.18,
|
|
112
|
-
text: "#352f2b",
|
|
113
|
-
textMuted: "#70655e",
|
|
114
|
-
line: "#ded2c7",
|
|
115
|
-
lineStrong: "#c8b8aa",
|
|
116
|
-
control: "#fffaf5",
|
|
117
|
-
controlHover: "#eee5dd",
|
|
118
|
-
controlGroup: "#eadfd5",
|
|
119
|
-
controlPrimary: "#51443c",
|
|
120
|
-
controlPrimaryHover: "#66564b",
|
|
121
|
-
controlActive: "#dceef2",
|
|
122
|
-
controlActiveLine: "#6aa8ba",
|
|
123
|
-
controlActiveText: "#29383d",
|
|
124
|
-
messageRemote: "#eee7e0",
|
|
125
|
-
messageLocal: "#51443c",
|
|
126
|
-
messageLocalText: "#fffaf5",
|
|
127
|
-
input: "#fffdf9",
|
|
128
|
-
shadows: createShadows("#48372b", {
|
|
129
|
-
xs: [1, 2, 0.08, 1],
|
|
130
|
-
sm: [10, 30, 0.08, 8],
|
|
131
|
-
control: [6, 18, 0.13, 6]
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
value: "cool-mist",
|
|
137
|
-
label: "Cool Mist",
|
|
138
|
-
family: "Graphite",
|
|
139
|
-
mode: "light",
|
|
140
|
-
swatch: ["#f2f6f8", "#dfe8ee", "#34414d"],
|
|
141
|
-
tokens: createTokens({
|
|
142
|
-
canvas: "#edf2f5",
|
|
143
|
-
chrome: "#f6f8fa",
|
|
144
|
-
stage: "#e7eef2",
|
|
145
|
-
panel: "#fbfdfe",
|
|
146
|
-
tileBase: "#e7eef2",
|
|
147
|
-
tileColorStrength: 0.18,
|
|
148
|
-
text: "#24313b",
|
|
149
|
-
textMuted: "#65727e",
|
|
150
|
-
line: "#d4dde3",
|
|
151
|
-
lineStrong: "#b8c6cf",
|
|
152
|
-
control: "#fbfdfe",
|
|
153
|
-
controlHover: "#e6edf1",
|
|
154
|
-
controlGroup: "#e1e9ee",
|
|
155
|
-
controlPrimary: "#34414d",
|
|
156
|
-
controlPrimaryHover: "#465563",
|
|
157
|
-
controlActive: "#dceff7",
|
|
158
|
-
controlActiveLine: "#5599b5",
|
|
159
|
-
controlActiveText: "#21343d",
|
|
160
|
-
messageRemote: "#e9eef1",
|
|
161
|
-
messageLocal: "#34414d",
|
|
162
|
-
messageLocalText: "#f8fbfc",
|
|
163
|
-
input: "#ffffff",
|
|
164
|
-
shadows: createShadows("#233643", {
|
|
165
|
-
xs: [1, 2, 0.08, 1],
|
|
166
|
-
sm: [10, 32, 0.08, 8],
|
|
167
|
-
control: [6, 18, 0.13, 6]
|
|
168
|
-
})
|
|
169
|
-
})
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
value: "paper-and-ink",
|
|
173
|
-
label: "Paper & Ink",
|
|
174
|
-
family: "Ink",
|
|
175
|
-
mode: "light",
|
|
176
|
-
swatch: ["#fafaf7", "#e8e8e2", "#15171a"],
|
|
177
|
-
tokens: createTokens({
|
|
178
|
-
canvas: "#f4f4f0",
|
|
179
|
-
chrome: "#fafaf7",
|
|
180
|
-
stage: "#efefea",
|
|
181
|
-
panel: "#ffffff",
|
|
182
|
-
tileBase: "#eeeeea",
|
|
183
|
-
tileColorStrength: 0.14,
|
|
184
|
-
text: "#101214",
|
|
185
|
-
textMuted: "#555b62",
|
|
186
|
-
line: "#d7d8d5",
|
|
187
|
-
lineStrong: "#b8bab8",
|
|
188
|
-
control: "#ffffff",
|
|
189
|
-
controlHover: "#e9e9e5",
|
|
190
|
-
controlGroup: "#e8e8e3",
|
|
191
|
-
controlPrimary: "#15171a",
|
|
192
|
-
controlPrimaryHover: "#2b2e32",
|
|
193
|
-
controlActive: "#e3eff8",
|
|
194
|
-
controlActiveLine: "#196da8",
|
|
195
|
-
controlActiveText: "#101214",
|
|
196
|
-
messageRemote: "#eeeeea",
|
|
197
|
-
messageLocal: "#15171a",
|
|
198
|
-
messageLocalText: "#ffffff",
|
|
199
|
-
input: "#ffffff",
|
|
200
|
-
shadows: createShadows("#101214", {
|
|
201
|
-
xs: [1, 2, 0.1, 1],
|
|
202
|
-
sm: [8, 26, 0.08, 8],
|
|
203
|
-
control: [5, 16, 0.14, 5]
|
|
204
|
-
})
|
|
205
|
-
})
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
value: "cream-and-clay",
|
|
209
|
-
label: "Cream & Clay",
|
|
210
|
-
family: "Espresso",
|
|
211
|
-
mode: "light",
|
|
212
|
-
swatch: ["#fbf2e7", "#e8c8b0", "#7a4329"],
|
|
213
|
-
tokens: createTokens({
|
|
214
|
-
canvas: "#f6eadf",
|
|
215
|
-
chrome: "#fbf3ea",
|
|
216
|
-
stage: "#f1ddcd",
|
|
217
|
-
panel: "#fffaf4",
|
|
218
|
-
tileBase: "#efddcf",
|
|
219
|
-
tileColorStrength: 0.22,
|
|
220
|
-
text: "#432d24",
|
|
221
|
-
textMuted: "#7d6458",
|
|
222
|
-
line: "#e2cfc0",
|
|
223
|
-
lineStrong: "#c8ab97",
|
|
224
|
-
control: "#fffaf4",
|
|
225
|
-
controlHover: "#f0dfd1",
|
|
226
|
-
controlGroup: "#ead6c6",
|
|
227
|
-
controlPrimary: "#5c3828",
|
|
228
|
-
controlPrimaryHover: "#744733",
|
|
229
|
-
controlActive: "#e8e8d5",
|
|
230
|
-
controlActiveLine: "#87945e",
|
|
231
|
-
controlActiveText: "#354025",
|
|
232
|
-
messageRemote: "#f1e5da",
|
|
233
|
-
messageLocal: "#5c3828",
|
|
234
|
-
messageLocalText: "#fffaf4",
|
|
235
|
-
input: "#fffdf8",
|
|
236
|
-
shadows: createShadows("#563222", {
|
|
237
|
-
xs: [1, 2, 0.1, 1],
|
|
238
|
-
sm: [10, 32, 0.09, 8],
|
|
239
|
-
control: [6, 18, 0.15, 6]
|
|
240
|
-
})
|
|
241
|
-
})
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
value: "studio-canvas",
|
|
245
|
-
label: "Studio Canvas",
|
|
246
|
-
family: "Atelier",
|
|
247
|
-
mode: "light",
|
|
248
|
-
swatch: ["#f7f3e9", "#dce6d5", "#48594b"],
|
|
249
|
-
tokens: createTokens({
|
|
250
|
-
canvas: "#f0eee5",
|
|
251
|
-
chrome: "#f8f5ec",
|
|
252
|
-
stage: "#ebe9de",
|
|
253
|
-
panel: "#fdfbf5",
|
|
254
|
-
tileBase: "#e9e7dc",
|
|
255
|
-
tileColorStrength: 0.22,
|
|
256
|
-
text: "#303832",
|
|
257
|
-
textMuted: "#657067",
|
|
258
|
-
line: "#d8d7ca",
|
|
259
|
-
lineStrong: "#b9bdad",
|
|
260
|
-
control: "#fdfbf5",
|
|
261
|
-
controlHover: "#e8e7dc",
|
|
262
|
-
controlGroup: "#e4e4d8",
|
|
263
|
-
controlPrimary: "#48594b",
|
|
264
|
-
controlPrimaryHover: "#5a6e5d",
|
|
265
|
-
controlActive: "#dceff2",
|
|
266
|
-
controlActiveLine: "#5e9bab",
|
|
267
|
-
controlActiveText: "#294047",
|
|
268
|
-
messageRemote: "#ecebe2",
|
|
269
|
-
messageLocal: "#48594b",
|
|
270
|
-
messageLocalText: "#fbfaf4",
|
|
271
|
-
input: "#fffef9",
|
|
272
|
-
shadows: createShadows("#303832", {
|
|
273
|
-
xs: [1, 2, 0.08, 1],
|
|
274
|
-
sm: [10, 30, 0.08, 8],
|
|
275
|
-
control: [6, 18, 0.13, 6]
|
|
276
|
-
})
|
|
277
|
-
})
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
value: "prism-daylight",
|
|
281
|
-
label: "Prism Daylight",
|
|
282
|
-
family: "Prism",
|
|
283
|
-
mode: "light",
|
|
284
|
-
swatch: ["#faf9ff", "#e8ddfa", "#4c2e78"],
|
|
285
|
-
tokens: createTokens({
|
|
286
|
-
canvas: "#f4f1fb",
|
|
287
|
-
chrome: "#fbf9ff",
|
|
288
|
-
stage: "#eee8fa",
|
|
289
|
-
panel: "#fefcff",
|
|
290
|
-
tileBase: "#eee8f7",
|
|
291
|
-
tileColorStrength: 0.26,
|
|
292
|
-
text: "#2b2037",
|
|
293
|
-
textMuted: "#71657e",
|
|
294
|
-
line: "#ded5ea",
|
|
295
|
-
lineStrong: "#c4b4d8",
|
|
296
|
-
control: "#fefcff",
|
|
297
|
-
controlHover: "#ebe3f5",
|
|
298
|
-
controlGroup: "#e9e1f2",
|
|
299
|
-
controlPrimary: "#4c2e78",
|
|
300
|
-
controlPrimaryHover: "#614091",
|
|
301
|
-
controlActive: "#e5dcfb",
|
|
302
|
-
controlActiveLine: "#7651d2",
|
|
303
|
-
controlActiveText: "#34204f",
|
|
304
|
-
messageRemote: "#eee9f4",
|
|
305
|
-
messageLocal: "#3b245c",
|
|
306
|
-
messageLocalText: "#ffffff",
|
|
307
|
-
input: "#ffffff",
|
|
308
|
-
shadows: createShadows("#36214e", {
|
|
309
|
-
xs: [1, 2, 0.09, 1],
|
|
310
|
-
sm: [12, 36, 0.1, 10],
|
|
311
|
-
control: [7, 20, 0.16, 7]
|
|
312
|
-
})
|
|
313
|
-
})
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
value: "signal-white",
|
|
317
|
-
label: "Signal White",
|
|
318
|
-
family: "Signal",
|
|
319
|
-
mode: "light",
|
|
320
|
-
swatch: ["#ffffff", "#ddecf9", "#0879d9"],
|
|
321
|
-
tokens: createTokens({
|
|
322
|
-
canvas: "#f3f7fb",
|
|
323
|
-
chrome: "#ffffff",
|
|
324
|
-
stage: "#edf4fa",
|
|
325
|
-
panel: "#ffffff",
|
|
326
|
-
tileBase: "#eef4f8",
|
|
327
|
-
tileColorStrength: 0.22,
|
|
328
|
-
text: "#0c1117",
|
|
329
|
-
textMuted: "#596674",
|
|
330
|
-
line: "#d8e0e7",
|
|
331
|
-
lineStrong: "#b5c2cd",
|
|
332
|
-
control: "#ffffff",
|
|
333
|
-
controlHover: "#e8f0f6",
|
|
334
|
-
controlGroup: "#e5edf3",
|
|
335
|
-
controlPrimary: "#111820",
|
|
336
|
-
controlPrimaryHover: "#28323d",
|
|
337
|
-
controlActive: "#e1f0ff",
|
|
338
|
-
controlActiveLine: "#1684e2",
|
|
339
|
-
controlActiveText: "#0b4f87",
|
|
340
|
-
messageRemote: "#edf1f4",
|
|
341
|
-
messageLocal: "#111820",
|
|
342
|
-
messageLocalText: "#ffffff",
|
|
343
|
-
input: "#ffffff",
|
|
344
|
-
shadows: createShadows("#0c263e", {
|
|
345
|
-
xs: [1, 2, 0.09, 1],
|
|
346
|
-
sm: [10, 32, 0.08, 8],
|
|
347
|
-
control: [6, 18, 0.14, 6]
|
|
348
|
-
})
|
|
349
|
-
})
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
value: "warm-charcoal",
|
|
353
|
-
label: "Warm Charcoal",
|
|
354
|
-
family: "Warm",
|
|
355
|
-
mode: "dark",
|
|
356
|
-
swatch: ["#151513", "#292925", "#65b4d0"],
|
|
357
|
-
tokens: createTokens({
|
|
358
|
-
canvas: "#151513",
|
|
359
|
-
chrome: "#191917",
|
|
360
|
-
stage: "#1d1d1a",
|
|
361
|
-
panel: "#21211d",
|
|
362
|
-
tileBase: "#1c1c19",
|
|
363
|
-
tileColorStrength: 0.2,
|
|
364
|
-
text: "#f4f3ee",
|
|
365
|
-
textMuted: "#a8a79f",
|
|
366
|
-
line: "#34342e",
|
|
367
|
-
lineStrong: "#4b4a42",
|
|
368
|
-
control: "#292925",
|
|
369
|
-
controlHover: "#34342e",
|
|
370
|
-
controlGroup: "#20201c",
|
|
371
|
-
controlPrimary: "#252823",
|
|
372
|
-
controlPrimaryHover: "#353a33",
|
|
373
|
-
controlActive: "#263941",
|
|
374
|
-
controlActiveLine: "#65b4d0",
|
|
375
|
-
controlActiveText: "#f4f3ee",
|
|
376
|
-
messageRemote: "#2a2a25",
|
|
377
|
-
messageLocal: "#27323a",
|
|
378
|
-
messageLocalText: "#f4f3ee",
|
|
379
|
-
input: "#1a1a17",
|
|
380
|
-
shadows: DARK_SHADOWS
|
|
381
|
-
})
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
value: "cool-graphite",
|
|
385
|
-
label: "Cool Graphite",
|
|
386
|
-
family: "Graphite",
|
|
387
|
-
mode: "dark",
|
|
388
|
-
swatch: ["#101318", "#202632", "#55aac9"],
|
|
389
|
-
tokens: createTokens({
|
|
390
|
-
canvas: "#101318",
|
|
391
|
-
chrome: "#141820",
|
|
392
|
-
stage: "#171c24",
|
|
393
|
-
panel: "#1b2028",
|
|
394
|
-
tileBase: "#18202a",
|
|
395
|
-
tileColorStrength: 0.22,
|
|
396
|
-
text: "#f3f6f8",
|
|
397
|
-
textMuted: "#9da6b2",
|
|
398
|
-
line: "#303744",
|
|
399
|
-
lineStrong: "#46505f",
|
|
400
|
-
control: "#202632",
|
|
401
|
-
controlHover: "#2a3240",
|
|
402
|
-
controlGroup: "#191f28",
|
|
403
|
-
controlPrimary: "#242b35",
|
|
404
|
-
controlPrimaryHover: "#313b49",
|
|
405
|
-
controlActive: "#172f43",
|
|
406
|
-
controlActiveLine: "#55aac9",
|
|
407
|
-
controlActiveText: "#f3f6f8",
|
|
408
|
-
messageRemote: "#272e39",
|
|
409
|
-
messageLocal: "#141c25",
|
|
410
|
-
messageLocalText: "#f3f6f8",
|
|
411
|
-
input: "#151a22",
|
|
412
|
-
shadows: COOL_DARK_SHADOWS
|
|
413
|
-
})
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
value: "high-contrast-ink",
|
|
417
|
-
label: "High-contrast Ink",
|
|
418
|
-
family: "Ink",
|
|
419
|
-
mode: "dark",
|
|
420
|
-
swatch: ["#0c0e12", "#242932", "#63b9d7"],
|
|
421
|
-
tokens: createTokens({
|
|
422
|
-
canvas: "#0c0e12",
|
|
423
|
-
chrome: "#12151a",
|
|
424
|
-
stage: "#151920",
|
|
425
|
-
panel: "#191d23",
|
|
426
|
-
tileBase: "#171b22",
|
|
427
|
-
tileColorStrength: 0.19,
|
|
428
|
-
text: "#fafaf7",
|
|
429
|
-
textMuted: "#a3a8b0",
|
|
430
|
-
line: "#343941",
|
|
431
|
-
lineStrong: "#4b525d",
|
|
432
|
-
control: "#242932",
|
|
433
|
-
controlHover: "#303640",
|
|
434
|
-
controlGroup: "#171b21",
|
|
435
|
-
controlPrimary: "#1f242c",
|
|
436
|
-
controlPrimaryHover: "#2c333d",
|
|
437
|
-
controlActive: "#163247",
|
|
438
|
-
controlActiveLine: "#63b9d7",
|
|
439
|
-
controlActiveText: "#fafaf7",
|
|
440
|
-
messageRemote: "#252a32",
|
|
441
|
-
messageLocal: "#10141a",
|
|
442
|
-
messageLocalText: "#fafaf7",
|
|
443
|
-
input: "#14181e",
|
|
444
|
-
shadows: INK_DARK_SHADOWS
|
|
445
|
-
})
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
value: "espresso-night",
|
|
449
|
-
label: "Espresso Night",
|
|
450
|
-
family: "Espresso",
|
|
451
|
-
mode: "dark",
|
|
452
|
-
swatch: ["#15110f", "#2c211d", "#c98656"],
|
|
453
|
-
tokens: createTokens({
|
|
454
|
-
canvas: "#15110f",
|
|
455
|
-
chrome: "#1a1512",
|
|
456
|
-
stage: "#1e1714",
|
|
457
|
-
panel: "#211916",
|
|
458
|
-
tileBase: "#1d1614",
|
|
459
|
-
tileColorStrength: 0.2,
|
|
460
|
-
text: "#f5ede3",
|
|
461
|
-
textMuted: "#b8a79a",
|
|
462
|
-
line: "#4a3930",
|
|
463
|
-
lineStrong: "#664b3d",
|
|
464
|
-
control: "#2c211d",
|
|
465
|
-
controlHover: "#3a2a24",
|
|
466
|
-
controlGroup: "#211916",
|
|
467
|
-
controlPrimary: "#2a211e",
|
|
468
|
-
controlPrimaryHover: "#3b2d28",
|
|
469
|
-
controlActive: "#3d2c24",
|
|
470
|
-
controlActiveLine: "#c98656",
|
|
471
|
-
controlActiveText: "#f5ede3",
|
|
472
|
-
messageRemote: "#35271f",
|
|
473
|
-
messageLocal: "#1d252b",
|
|
474
|
-
messageLocalText: "#f5ede3",
|
|
475
|
-
input: "#1a1412",
|
|
476
|
-
shadows: ESPRESSO_DARK_SHADOWS
|
|
477
|
-
})
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
value: "chalkboard-atelier",
|
|
481
|
-
label: "Chalkboard Atelier",
|
|
482
|
-
family: "Atelier",
|
|
483
|
-
mode: "dark",
|
|
484
|
-
swatch: ["#0d1714", "#20332c", "#76bed1"],
|
|
485
|
-
tokens: createTokens({
|
|
486
|
-
canvas: "#0d1714",
|
|
487
|
-
chrome: "#111d19",
|
|
488
|
-
stage: "#14221d",
|
|
489
|
-
panel: "#1b2c26",
|
|
490
|
-
tileBase: "#15241f",
|
|
491
|
-
tileColorStrength: 0.18,
|
|
492
|
-
text: "#eff3e9",
|
|
493
|
-
textMuted: "#9bab9f",
|
|
494
|
-
line: "#30473d",
|
|
495
|
-
lineStrong: "#466355",
|
|
496
|
-
control: "#20332c",
|
|
497
|
-
controlHover: "#2a4138",
|
|
498
|
-
controlGroup: "#172720",
|
|
499
|
-
controlPrimary: "#1e3029",
|
|
500
|
-
controlPrimaryHover: "#2c443a",
|
|
501
|
-
controlActive: "#1c3b40",
|
|
502
|
-
controlActiveLine: "#76bed1",
|
|
503
|
-
controlActiveText: "#eff3e9",
|
|
504
|
-
messageRemote: "#263a32",
|
|
505
|
-
messageLocal: "#182d2f",
|
|
506
|
-
messageLocalText: "#eff3e9",
|
|
507
|
-
input: "#13211c",
|
|
508
|
-
shadows: ATELIER_DARK_SHADOWS
|
|
509
|
-
})
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
value: "prism-nocturne",
|
|
513
|
-
label: "Prism Nocturne",
|
|
514
|
-
family: "Prism",
|
|
515
|
-
mode: "dark",
|
|
516
|
-
swatch: ["#100d17", "#231b30", "#9a63e6"],
|
|
517
|
-
tokens: createTokens({
|
|
518
|
-
canvas: "#100d17",
|
|
519
|
-
chrome: "#14101d",
|
|
520
|
-
stage: "#17131e",
|
|
521
|
-
panel: "#1a1424",
|
|
522
|
-
tileBase: "#18121f",
|
|
523
|
-
tileColorStrength: 0.26,
|
|
524
|
-
text: "#f5f0fa",
|
|
525
|
-
textMuted: "#a99db3",
|
|
526
|
-
line: "#3b3049",
|
|
527
|
-
lineStrong: "#58446d",
|
|
528
|
-
control: "#231b30",
|
|
529
|
-
controlHover: "#302340",
|
|
530
|
-
controlGroup: "#1b1525",
|
|
531
|
-
controlPrimary: "#251b32",
|
|
532
|
-
controlPrimaryHover: "#352549",
|
|
533
|
-
controlActive: "#2b1743",
|
|
534
|
-
controlActiveLine: "#9a63e6",
|
|
535
|
-
controlActiveText: "#f5f0fa",
|
|
536
|
-
messageRemote: "#2b2334",
|
|
537
|
-
messageLocal: "#191321",
|
|
538
|
-
messageLocalText: "#f5f0fa",
|
|
539
|
-
input: "#17111f",
|
|
540
|
-
shadows: PRISM_DARK_SHADOWS
|
|
541
|
-
})
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
value: "cosmic-chalk",
|
|
545
|
-
label: "Cosmic Chalk",
|
|
546
|
-
family: "Cosmic",
|
|
547
|
-
mode: "dark",
|
|
548
|
-
swatch: ["#080f20", "#10182b", "#8fdcff"],
|
|
549
|
-
tokens: createTokens({
|
|
550
|
-
canvas: "#080f20",
|
|
551
|
-
chrome: "#10182b",
|
|
552
|
-
stage: "#0b1427",
|
|
553
|
-
panel: "#10182b",
|
|
554
|
-
tileBase: "#0f1d35",
|
|
555
|
-
tileColorStrength: 0.2,
|
|
556
|
-
text: "#f4ecd7",
|
|
557
|
-
textMuted: "#aeb8c9",
|
|
558
|
-
line: "#2c3d59",
|
|
559
|
-
lineStrong: "#435a7d",
|
|
560
|
-
control: "#10182b",
|
|
561
|
-
controlHover: "#192845",
|
|
562
|
-
controlGroup: "#0d172b",
|
|
563
|
-
controlPrimary: "#8fdcff",
|
|
564
|
-
controlPrimaryHover: "#b5edff",
|
|
565
|
-
controlActive: "#18354c",
|
|
566
|
-
controlActiveLine: "#8fdcff",
|
|
567
|
-
controlActiveText: "#f4ecd7",
|
|
568
|
-
messageRemote: "#13223a",
|
|
569
|
-
messageLocal: "#8fdcff",
|
|
570
|
-
messageLocalText: "#080f20",
|
|
571
|
-
input: "#0d172b",
|
|
572
|
-
shadows: COSMIC_DARK_SHADOWS
|
|
573
|
-
})
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
value: "oled-signal",
|
|
577
|
-
label: "OLED Signal",
|
|
578
|
-
family: "Signal",
|
|
579
|
-
mode: "dark",
|
|
580
|
-
swatch: ["#000000", "#11151a", "#2f86ff"],
|
|
581
|
-
tokens: createTokens({
|
|
582
|
-
canvas: "#000000",
|
|
583
|
-
chrome: "#030405",
|
|
584
|
-
stage: "#000000",
|
|
585
|
-
panel: "#07090c",
|
|
586
|
-
tileBase: "#07090c",
|
|
587
|
-
tileColorStrength: 0.12,
|
|
588
|
-
text: "#f7f8fa",
|
|
589
|
-
textMuted: "#8b949e",
|
|
590
|
-
line: "#242a31",
|
|
591
|
-
lineStrong: "#3a424c",
|
|
592
|
-
control: "#11151a",
|
|
593
|
-
controlHover: "#1a2027",
|
|
594
|
-
controlGroup: "#080a0d",
|
|
595
|
-
controlPrimary: "#11151a",
|
|
596
|
-
controlPrimaryHover: "#20262e",
|
|
597
|
-
controlActive: "#081b32",
|
|
598
|
-
controlActiveLine: "#2f86ff",
|
|
599
|
-
controlActiveText: "#f7f8fa",
|
|
600
|
-
messageRemote: "#14171b",
|
|
601
|
-
messageLocal: "#090b0f",
|
|
602
|
-
messageLocalText: "#f7f8fa",
|
|
603
|
-
input: "#080a0d",
|
|
604
|
-
shadows: OLED_SHADOWS
|
|
605
|
-
})
|
|
606
|
-
}
|
|
607
|
-
];
|
|
608
|
-
var THEME_TEXTURES = [
|
|
609
|
-
{
|
|
610
|
-
value: "none",
|
|
611
|
-
label: "Clean",
|
|
612
|
-
description: "Pure color with no material overlay.",
|
|
613
|
-
descriptor: {
|
|
614
|
-
kind: "none",
|
|
615
|
-
blendMode: "normal",
|
|
616
|
-
opacity: 0,
|
|
617
|
-
tileSize: null
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
value: "paper",
|
|
622
|
-
label: "Paper Grain",
|
|
623
|
-
description: "A fine organic grain over the selected palette.",
|
|
624
|
-
descriptor: {
|
|
625
|
-
kind: "paper-grain",
|
|
626
|
-
blendMode: "soft-light",
|
|
627
|
-
opacity: 0.24,
|
|
628
|
-
tileSize: 180,
|
|
629
|
-
grain: { baseFrequency: 0.74, octaves: 4, opacity: 0.24 }
|
|
630
|
-
}
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
value: "slate",
|
|
634
|
-
label: "Slate",
|
|
635
|
-
description: "A subtle directional mineral texture.",
|
|
636
|
-
descriptor: {
|
|
637
|
-
kind: "slate",
|
|
638
|
-
blendMode: "soft-light",
|
|
639
|
-
opacity: 0.2,
|
|
640
|
-
tileSize: 220,
|
|
641
|
-
grain: { baseFrequency: 0.36, octaves: 5, opacity: 0.2 },
|
|
642
|
-
lines: { angle: 7, period: 19, width: 1, color: "#ffffff", opacity: 0.018 }
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
];
|
|
646
|
-
var DARK_THEME_PALETTES = new Set(THEME_PALETTES.filter((palette) => palette.mode === "dark").map((palette) => palette.value));
|
|
647
|
-
function isDarkThemePalette(palette) {
|
|
648
|
-
return DARK_THEME_PALETTES.has(palette);
|
|
649
|
-
}
|
|
650
|
-
function getThemeMode(palette) {
|
|
651
|
-
return isDarkThemePalette(palette) ? "dark" : "light";
|
|
652
|
-
}
|
|
653
|
-
function resolvePalette(palette) {
|
|
654
|
-
return THEME_PALETTES.find((entry) => entry.value === palette);
|
|
655
|
-
}
|
|
656
|
-
function resolveTexture(texture) {
|
|
657
|
-
return THEME_TEXTURES.find((entry) => entry.value === texture);
|
|
658
|
-
}
|
|
659
|
-
function resolveTextureDescriptor(texture, mode) {
|
|
660
|
-
const descriptor = resolveTexture(texture).descriptor;
|
|
661
|
-
if (texture !== "slate") return descriptor;
|
|
662
|
-
const light = mode === "light";
|
|
663
|
-
return {
|
|
664
|
-
...descriptor,
|
|
665
|
-
blendMode: light ? "multiply" : "soft-light",
|
|
666
|
-
opacity: light ? 0.16 : 0.2,
|
|
667
|
-
grain: { ...descriptor.grain, opacity: light ? 0.16 : 0.2 },
|
|
668
|
-
lines: { ...descriptor.lines, color: light ? "#0c0e12" : "#ffffff", opacity: light ? 0.022 : 0.018 }
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
function resolveNativeAppearance(appearance = {}) {
|
|
672
|
-
const palette = resolvePalette(appearance.palette ?? "light");
|
|
673
|
-
const mode = getThemeMode(palette.value);
|
|
674
|
-
const texture = appearance.texture ?? "none";
|
|
675
|
-
return {
|
|
676
|
-
palette: palette.value,
|
|
677
|
-
mode,
|
|
678
|
-
texture,
|
|
679
|
-
tokens: palette.tokens,
|
|
680
|
-
textureDescriptor: resolveTextureDescriptor(texture, mode)
|
|
681
|
-
};
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
export {
|
|
685
|
-
THEME_PALETTES,
|
|
686
|
-
THEME_TEXTURES,
|
|
687
|
-
isDarkThemePalette,
|
|
688
|
-
getThemeMode,
|
|
689
|
-
resolveNativeAppearance
|
|
690
|
-
};
|