@luckylca/react-native-liquid-glass 0.0.0-stage → 0.3.0
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/LICENSE +21 -0
- package/README.md +294 -2
- package/README.zh-CN.md +297 -0
- package/THIRD_PARTY_NOTICES.md +98 -0
- package/android/build.gradle +19 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/expo/modules/liquidglass/EffectiveScrollInputBridge.kt +47 -0
- package/android/src/main/java/expo/modules/liquidglass/GlassCaptureView.kt +1125 -0
- package/android/src/main/java/expo/modules/liquidglass/GlassRegistry.kt +75 -0
- package/android/src/main/java/expo/modules/liquidglass/GlassSurfaceView.kt +571 -0
- package/android/src/main/java/expo/modules/liquidglass/LiquidGlassModule.kt +205 -0
- package/android/src/main/java/expo/modules/liquidglass/LocalMaterialView.kt +138 -0
- package/android/src/main/java/expo/modules/liquidglass/PassSurfaceSuppression.kt +39 -0
- package/android/src/main/java/expo/modules/liquidglass/SharedGlassPassProbeLog.kt +23 -0
- package/android/src/main/java/expo/modules/liquidglass/SharedGlassPassWiring.kt +59 -0
- package/android-core/build.gradle +36 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/BackdropRecorder.kt +930 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/FrozenBackdrop.kt +66 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/GlassBackdropCoordinator.kt +624 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/GlassBackdropSourceHandle.kt +8 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/GlassScrollSource.kt +13 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/GlassViewController.kt +1002 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/LiquidGlassProviderLayout.kt +340 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/LiquidGlassView.kt +103 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/ReferenceSourceWindowPolicy.kt +13 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/StableSceneTexturePolicy.kt +43 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/SurfaceFrameBuilder.kt +278 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/SurfaceInteraction.kt +359 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/GlassFrame.kt +110 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/GlassViewRenderer.kt +728 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/ReferenceParityPasses.kt +705 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/ReferenceTabSampling.kt +15 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/backdrop/internal/SharedSceneCapture.kt +163 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassCapabilities.kt +21 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassEngine.kt +131 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassMaterial.kt +89 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassMath.kt +131 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassOpticalInsets.kt +8 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassRenderTier.kt +54 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassShapePacker.kt +77 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassSurfaceState.kt +11 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/GlassUniforms.kt +113 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/LiquidGlassShaders.kt +234 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/SharedGlassPass.kt +456 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/geometry/G2RoundedRectangle.kt +207 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/geometry/ReferenceG2MaskTexture.kt +334 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/HeightFieldGlassShader.kt +7 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/ReferenceBackdropBlurShader.kt +58 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/ReferenceGaussianDiscBackdropBlur.kt +42 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/ReferenceGlassUniforms.kt +111 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/ReferenceParityGlassShader.kt +613 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/ReferenceParityMultiShapeShader.kt +128 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/core/shader/SdfScaleLensShader.kt +144 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/local/LocalGlassHardwareLayerExperiment.kt +29 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/local/LocalGlassMaterial.kt +14 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/local/LocalGlassRenderer.kt +126 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/local/LocalGlassRuntimeShader.kt +50 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/local/LocalGlassShader.kt +59 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/local/LocalGlassView.kt +47 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/motion/GlassMotionDriver.kt +824 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/motion/GlassMotionState.kt +359 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/motion/PointerVelocityTracker.kt +109 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/motion/SpringSpec.kt +209 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/G2Corner.kt +194 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/GlassMaterial.kt +250 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/GlassOpticsShader.kt +696 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/GlassParityProbe.kt +342 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/GlassShapeGeometry.kt +317 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/GlassUniformBinder.kt +308 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/PixelDiff.kt +363 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/optics/ReferenceOptics.kt +568 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/rendering/GlassSurfaceHost.kt +317 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/rendering/GlassSurfaceRenderer.kt +847 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/rendering/RetainedBackdropLayer.kt +83 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/scheduler/GlassFrameScheduler.kt +27 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/telemetry/EffectiveScrollFpsProbe.kt +965 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/telemetry/GlassTelemetry.kt +16 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/telemetry/LiquidGlassPerfTelemetry.kt +676 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/telemetry/LiquidGlassTrace.kt +30 -0
- package/android-core/src/main/java/io/github/luckylca/liquidglass/telemetry/LocalGlassTelemetry.kt +55 -0
- package/app.plugin.js +25 -0
- package/docs/architecture.md +61 -0
- package/docs/images/buttons.webp +0 -0
- package/docs/images/controls.webp +0 -0
- package/docs/images/tabs.webp +0 -0
- package/docs/migration-0.3.md +19 -0
- package/docs/publishing.md +106 -0
- package/expo-module.config.json +10 -0
- package/lib/commonjs/GlassSurface.js +404 -0
- package/lib/commonjs/GlassSurface.js.map +1 -0
- package/lib/commonjs/GlassTabBar.js +37 -0
- package/lib/commonjs/GlassTabBar.js.map +1 -0
- package/lib/commonjs/GlassTabLens.js +67 -0
- package/lib/commonjs/GlassTabLens.js.map +1 -0
- package/lib/commonjs/LiquidGlassProvider.js +40 -0
- package/lib/commonjs/LiquidGlassProvider.js.map +1 -0
- package/lib/commonjs/LocalGlassMaterial.js +188 -0
- package/lib/commonjs/LocalGlassMaterial.js.map +1 -0
- package/lib/commonjs/adaptiveLuminance.js +14 -0
- package/lib/commonjs/adaptiveLuminance.js.map +1 -0
- package/lib/commonjs/badgePalette.js +46 -0
- package/lib/commonjs/badgePalette.js.map +1 -0
- package/lib/commonjs/buttonGesturePolicy.js +22 -0
- package/lib/commonjs/buttonGesturePolicy.js.map +1 -0
- package/lib/commonjs/components/AdaptiveLuminance.js +20 -0
- package/lib/commonjs/components/AdaptiveLuminance.js.map +1 -0
- package/lib/commonjs/components/BottomSheet.js +222 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/Button.js +20 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/Card.js +206 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +123 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/ControlPressContext.js +8 -0
- package/lib/commonjs/components/ControlPressContext.js.map +1 -0
- package/lib/commonjs/components/Dialog.js +122 -0
- package/lib/commonjs/components/Dialog.js.map +1 -0
- package/lib/commonjs/components/DialogAction.js +124 -0
- package/lib/commonjs/components/DialogAction.js.map +1 -0
- package/lib/commonjs/components/DialogContent.js +23 -0
- package/lib/commonjs/components/DialogContent.js.map +1 -0
- package/lib/commonjs/components/GlassButton.js +96 -0
- package/lib/commonjs/components/GlassButton.js.map +1 -0
- package/lib/commonjs/components/GlassFab.js +43 -0
- package/lib/commonjs/components/GlassFab.js.map +1 -0
- package/lib/commonjs/components/GlassMagnifier.js +135 -0
- package/lib/commonjs/components/GlassMagnifier.js.map +1 -0
- package/lib/commonjs/components/GlassPlayground.js +158 -0
- package/lib/commonjs/components/GlassPlayground.js.map +1 -0
- package/lib/commonjs/components/GlassSlider.js +364 -0
- package/lib/commonjs/components/GlassSlider.js.map +1 -0
- package/lib/commonjs/components/GlassSwitch.js +334 -0
- package/lib/commonjs/components/GlassSwitch.js.map +1 -0
- package/lib/commonjs/components/GlassTabBar.js +387 -0
- package/lib/commonjs/components/GlassTabBar.js.map +1 -0
- package/lib/commonjs/components/Input.js +180 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/ListRow.js +64 -0
- package/lib/commonjs/components/ListRow.js.map +1 -0
- package/lib/commonjs/components/Menu.js +214 -0
- package/lib/commonjs/components/Menu.js.map +1 -0
- package/lib/commonjs/components/NavigationBar.js +20 -0
- package/lib/commonjs/components/NavigationBar.js.map +1 -0
- package/lib/commonjs/components/NumberWheel.js +273 -0
- package/lib/commonjs/components/NumberWheel.js.map +1 -0
- package/lib/commonjs/components/PageFeedList.js +25 -0
- package/lib/commonjs/components/PageFeedList.js.map +1 -0
- package/lib/commonjs/components/PageScaffold.js +161 -0
- package/lib/commonjs/components/PageScaffold.js.map +1 -0
- package/lib/commonjs/components/PreferenceGroup.js +34 -0
- package/lib/commonjs/components/PreferenceGroup.js.map +1 -0
- package/lib/commonjs/components/ProgressIndicator.js +79 -0
- package/lib/commonjs/components/ProgressIndicator.js.map +1 -0
- package/lib/commonjs/components/ProgressiveBlur.js +29 -0
- package/lib/commonjs/components/ProgressiveBlur.js.map +1 -0
- package/lib/commonjs/components/ReferenceSlider.js +304 -0
- package/lib/commonjs/components/ReferenceSlider.js.map +1 -0
- package/lib/commonjs/components/ReferenceTabBar.js +381 -0
- package/lib/commonjs/components/ReferenceTabBar.js.map +1 -0
- package/lib/commonjs/components/SearchBar.js +200 -0
- package/lib/commonjs/components/SearchBar.js.map +1 -0
- package/lib/commonjs/components/SegmentedControl.js +62 -0
- package/lib/commonjs/components/SegmentedControl.js.map +1 -0
- package/lib/commonjs/components/Slider.js +12 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Snackbar.js +11 -0
- package/lib/commonjs/components/Snackbar.js.map +1 -0
- package/lib/commonjs/components/SurfaceEnvironmentContext.js +35 -0
- package/lib/commonjs/components/SurfaceEnvironmentContext.js.map +1 -0
- package/lib/commonjs/components/SurfaceGroup.js +39 -0
- package/lib/commonjs/components/SurfaceGroup.js.map +1 -0
- package/lib/commonjs/components/Switch.js +11 -0
- package/lib/commonjs/components/Switch.js.map +1 -0
- package/lib/commonjs/components/Toast.js +110 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/TopAppBar.js +107 -0
- package/lib/commonjs/components/TopAppBar.js.map +1 -0
- package/lib/commonjs/components/bottomSheetMotion.js +14 -0
- package/lib/commonjs/components/bottomSheetMotion.js.map +1 -0
- package/lib/commonjs/components/glassControlMaterial.js +22 -0
- package/lib/commonjs/components/glassControlMaterial.js.map +1 -0
- package/lib/commonjs/components/menuPosition.js +42 -0
- package/lib/commonjs/components/menuPosition.js.map +1 -0
- package/lib/commonjs/components/pages/FeedPage.js +15 -0
- package/lib/commonjs/components/pages/FeedPage.js.map +1 -0
- package/lib/commonjs/components/pages/PageBenchmarkContext.js +123 -0
- package/lib/commonjs/components/pages/PageBenchmarkContext.js.map +1 -0
- package/lib/commonjs/components/pages/SettingsPage.js +47 -0
- package/lib/commonjs/components/pages/SettingsPage.js.map +1 -0
- package/lib/commonjs/components/pages/SettingsSection.js +14 -0
- package/lib/commonjs/components/pages/SettingsSection.js.map +1 -0
- package/lib/commonjs/components/pages/StaticSettingsPage.js +16 -0
- package/lib/commonjs/components/pages/StaticSettingsPage.js.map +1 -0
- package/lib/commonjs/fallbackKnobGeometry.js +19 -0
- package/lib/commonjs/fallbackKnobGeometry.js.map +1 -0
- package/lib/commonjs/glassController.js +61 -0
- package/lib/commonjs/glassController.js.map +1 -0
- package/lib/commonjs/glassNativeEngine.js +16 -0
- package/lib/commonjs/glassNativeEngine.js.map +1 -0
- package/lib/commonjs/glassRuntime.js +15 -0
- package/lib/commonjs/glassRuntime.js.map +1 -0
- package/lib/commonjs/index.js +218 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/inputPresentation.js +17 -0
- package/lib/commonjs/inputPresentation.js.map +1 -0
- package/lib/commonjs/localGlassTelemetry.js +104 -0
- package/lib/commonjs/localGlassTelemetry.js.map +1 -0
- package/lib/commonjs/motion/MotionProvider.js +15 -0
- package/lib/commonjs/motion/MotionProvider.js.map +1 -0
- package/lib/commonjs/motion/easings.js +71 -0
- package/lib/commonjs/motion/easings.js.map +1 -0
- package/lib/commonjs/motion/folmeSpring.js +24 -0
- package/lib/commonjs/motion/folmeSpring.js.map +1 -0
- package/lib/commonjs/motion/folmeSpringByResponse.js +22 -0
- package/lib/commonjs/motion/folmeSpringByResponse.js.map +1 -0
- package/lib/commonjs/motion/index.js +57 -0
- package/lib/commonjs/motion/index.js.map +1 -0
- package/lib/commonjs/motion/presets.js +101 -0
- package/lib/commonjs/motion/presets.js.map +1 -0
- package/lib/commonjs/nativeGlassViews.js +30 -0
- package/lib/commonjs/nativeGlassViews.js.map +1 -0
- package/lib/commonjs/performanceTelemetry.js +24 -0
- package/lib/commonjs/performanceTelemetry.js.map +1 -0
- package/lib/commonjs/pointerEventBridge.js +17 -0
- package/lib/commonjs/pointerEventBridge.js.map +1 -0
- package/lib/commonjs/pointerGeometry.js +12 -0
- package/lib/commonjs/pointerGeometry.js.map +1 -0
- package/lib/commonjs/pressVelocity.js +34 -0
- package/lib/commonjs/pressVelocity.js.map +1 -0
- package/lib/commonjs/primitives/Divider.js +32 -0
- package/lib/commonjs/primitives/Divider.js.map +1 -0
- package/lib/commonjs/primitives/Icon.js +22 -0
- package/lib/commonjs/primitives/Icon.js.map +1 -0
- package/lib/commonjs/primitives/PressIndication.js +58 -0
- package/lib/commonjs/primitives/PressIndication.js.map +1 -0
- package/lib/commonjs/primitives/Pressable.js +28 -0
- package/lib/commonjs/primitives/Pressable.js.map +1 -0
- package/lib/commonjs/primitives/PressableScale.js +64 -0
- package/lib/commonjs/primitives/PressableScale.js.map +1 -0
- package/lib/commonjs/primitives/Surface.js +122 -0
- package/lib/commonjs/primitives/Surface.js.map +1 -0
- package/lib/commonjs/primitives/Text.js +43 -0
- package/lib/commonjs/primitives/Text.js.map +1 -0
- package/lib/commonjs/primitives/index.js +18 -0
- package/lib/commonjs/primitives/index.js.map +1 -0
- package/lib/commonjs/renderer.js +58 -0
- package/lib/commonjs/renderer.js.map +1 -0
- package/lib/commonjs/sliderValue.js +28 -0
- package/lib/commonjs/sliderValue.js.map +1 -0
- package/lib/commonjs/surface/InlineSurface.js +134 -0
- package/lib/commonjs/surface/InlineSurface.js.map +1 -0
- package/lib/commonjs/surface/MaterialProvider.js +78 -0
- package/lib/commonjs/surface/MaterialProvider.js.map +1 -0
- package/lib/commonjs/surface/NativeSurface.js +55 -0
- package/lib/commonjs/surface/NativeSurface.js.map +1 -0
- package/lib/commonjs/surface/PortalLayers.js +331 -0
- package/lib/commonjs/surface/PortalLayers.js.map +1 -0
- package/lib/commonjs/surface/contexts.js +108 -0
- package/lib/commonjs/surface/contexts.js.map +1 -0
- package/lib/commonjs/surface/registry.js +113 -0
- package/lib/commonjs/surface/registry.js.map +1 -0
- package/lib/commonjs/surface/styles.js +34 -0
- package/lib/commonjs/surface/styles.js.map +1 -0
- package/lib/commonjs/surface/types.js +3 -0
- package/lib/commonjs/surface/types.js.map +1 -0
- package/lib/commonjs/surfaceRendererPolicy.js +32 -0
- package/lib/commonjs/surfaceRendererPolicy.js.map +1 -0
- package/lib/commonjs/tabs/GlassTabItem.js +66 -0
- package/lib/commonjs/tabs/GlassTabItem.js.map +1 -0
- package/lib/commonjs/tabs/InlineTabBar.js +867 -0
- package/lib/commonjs/tabs/InlineTabBar.js.map +1 -0
- package/lib/commonjs/tabs/tabConstants.js +22 -0
- package/lib/commonjs/tabs/tabConstants.js.map +1 -0
- package/lib/commonjs/tabs/tabDebug.js +50 -0
- package/lib/commonjs/tabs/tabDebug.js.map +1 -0
- package/lib/commonjs/tabs/tabStyles.js +107 -0
- package/lib/commonjs/tabs/tabStyles.js.map +1 -0
- package/lib/commonjs/tabs/useInlineTabGesture.js +227 -0
- package/lib/commonjs/tabs/useInlineTabGesture.js.map +1 -0
- package/lib/commonjs/theme/ThemeProvider.js +37 -0
- package/lib/commonjs/theme/ThemeProvider.js.map +1 -0
- package/lib/commonjs/theme/buildTheme.js +157 -0
- package/lib/commonjs/theme/buildTheme.js.map +1 -0
- package/lib/commonjs/theme/glassColors.js +17 -0
- package/lib/commonjs/theme/glassColors.js.map +1 -0
- package/lib/commonjs/theme/index.js +38 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/theme/liquidGlass.js +24 -0
- package/lib/commonjs/theme/liquidGlass.js.map +1 -0
- package/lib/commonjs/theme/presentation.js +14 -0
- package/lib/commonjs/theme/presentation.js.map +1 -0
- package/lib/commonjs/theme/registry.js +17 -0
- package/lib/commonjs/theme/registry.js.map +1 -0
- package/lib/commonjs/theme/selectVariant.js +13 -0
- package/lib/commonjs/theme/selectVariant.js.map +1 -0
- package/lib/commonjs/theme/tokens.js +266 -0
- package/lib/commonjs/theme/tokens.js.map +1 -0
- package/lib/commonjs/theme/types.js +3 -0
- package/lib/commonjs/theme/types.js.map +1 -0
- package/lib/commonjs/theme/wallpaper.js +91 -0
- package/lib/commonjs/theme/wallpaper.js.map +1 -0
- package/lib/commonjs/types.js +3 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/useButtonGesture.js +135 -0
- package/lib/commonjs/useButtonGesture.js.map +1 -0
- package/lib/commonjs/useGlassKnobMotion.js +115 -0
- package/lib/commonjs/useGlassKnobMotion.js.map +1 -0
- package/lib/commonjs/useGlassPressMotion.js +147 -0
- package/lib/commonjs/useGlassPressMotion.js.map +1 -0
- package/lib/module/GlassSurface.js +354 -0
- package/lib/module/GlassSurface.js.map +1 -0
- package/lib/module/GlassTabBar.js +32 -0
- package/lib/module/GlassTabBar.js.map +1 -0
- package/lib/module/GlassTabLens.js +64 -0
- package/lib/module/GlassTabLens.js.map +1 -0
- package/lib/module/LiquidGlassProvider.js +37 -0
- package/lib/module/LiquidGlassProvider.js.map +1 -0
- package/lib/module/LocalGlassMaterial.js +185 -0
- package/lib/module/LocalGlassMaterial.js.map +1 -0
- package/lib/module/adaptiveLuminance.js +11 -0
- package/lib/module/adaptiveLuminance.js.map +1 -0
- package/lib/module/badgePalette.js +40 -0
- package/lib/module/badgePalette.js.map +1 -0
- package/lib/module/buttonGesturePolicy.js +17 -0
- package/lib/module/buttonGesturePolicy.js.map +1 -0
- package/lib/module/components/AdaptiveLuminance.js +16 -0
- package/lib/module/components/AdaptiveLuminance.js.map +1 -0
- package/lib/module/components/BottomSheet.js +186 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/Button.js +17 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/Card.js +170 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/Checkbox.js +84 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/ControlPressContext.js +4 -0
- package/lib/module/components/ControlPressContext.js.map +1 -0
- package/lib/module/components/Dialog.js +86 -0
- package/lib/module/components/Dialog.js.map +1 -0
- package/lib/module/components/DialogAction.js +88 -0
- package/lib/module/components/DialogAction.js.map +1 -0
- package/lib/module/components/DialogContent.js +20 -0
- package/lib/module/components/DialogContent.js.map +1 -0
- package/lib/module/components/GlassButton.js +93 -0
- package/lib/module/components/GlassButton.js.map +1 -0
- package/lib/module/components/GlassFab.js +37 -0
- package/lib/module/components/GlassFab.js.map +1 -0
- package/lib/module/components/GlassMagnifier.js +99 -0
- package/lib/module/components/GlassMagnifier.js.map +1 -0
- package/lib/module/components/GlassPlayground.js +122 -0
- package/lib/module/components/GlassPlayground.js.map +1 -0
- package/lib/module/components/GlassSlider.js +328 -0
- package/lib/module/components/GlassSlider.js.map +1 -0
- package/lib/module/components/GlassSwitch.js +298 -0
- package/lib/module/components/GlassSwitch.js.map +1 -0
- package/lib/module/components/GlassTabBar.js +351 -0
- package/lib/module/components/GlassTabBar.js.map +1 -0
- package/lib/module/components/Input.js +144 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/ListRow.js +61 -0
- package/lib/module/components/ListRow.js.map +1 -0
- package/lib/module/components/Menu.js +178 -0
- package/lib/module/components/Menu.js.map +1 -0
- package/lib/module/components/NavigationBar.js +14 -0
- package/lib/module/components/NavigationBar.js.map +1 -0
- package/lib/module/components/NumberWheel.js +238 -0
- package/lib/module/components/NumberWheel.js.map +1 -0
- package/lib/module/components/PageFeedList.js +19 -0
- package/lib/module/components/PageFeedList.js.map +1 -0
- package/lib/module/components/PageScaffold.js +114 -0
- package/lib/module/components/PageScaffold.js.map +1 -0
- package/lib/module/components/PreferenceGroup.js +28 -0
- package/lib/module/components/PreferenceGroup.js.map +1 -0
- package/lib/module/components/ProgressIndicator.js +44 -0
- package/lib/module/components/ProgressIndicator.js.map +1 -0
- package/lib/module/components/ProgressiveBlur.js +26 -0
- package/lib/module/components/ProgressiveBlur.js.map +1 -0
- package/lib/module/components/ReferenceSlider.js +268 -0
- package/lib/module/components/ReferenceSlider.js.map +1 -0
- package/lib/module/components/ReferenceTabBar.js +344 -0
- package/lib/module/components/ReferenceTabBar.js.map +1 -0
- package/lib/module/components/SearchBar.js +164 -0
- package/lib/module/components/SearchBar.js.map +1 -0
- package/lib/module/components/SegmentedControl.js +26 -0
- package/lib/module/components/SegmentedControl.js.map +1 -0
- package/lib/module/components/Slider.js +9 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Snackbar.js +8 -0
- package/lib/module/components/Snackbar.js.map +1 -0
- package/lib/module/components/SurfaceEnvironmentContext.js +27 -0
- package/lib/module/components/SurfaceEnvironmentContext.js.map +1 -0
- package/lib/module/components/SurfaceGroup.js +33 -0
- package/lib/module/components/SurfaceGroup.js.map +1 -0
- package/lib/module/components/Switch.js +8 -0
- package/lib/module/components/Switch.js.map +1 -0
- package/lib/module/components/Toast.js +74 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/TopAppBar.js +68 -0
- package/lib/module/components/TopAppBar.js.map +1 -0
- package/lib/module/components/bottomSheetMotion.js +11 -0
- package/lib/module/components/bottomSheetMotion.js.map +1 -0
- package/lib/module/components/glassControlMaterial.js +19 -0
- package/lib/module/components/glassControlMaterial.js.map +1 -0
- package/lib/module/components/menuPosition.js +37 -0
- package/lib/module/components/menuPosition.js.map +1 -0
- package/lib/module/components/pages/FeedPage.js +12 -0
- package/lib/module/components/pages/FeedPage.js.map +1 -0
- package/lib/module/components/pages/PageBenchmarkContext.js +84 -0
- package/lib/module/components/pages/PageBenchmarkContext.js.map +1 -0
- package/lib/module/components/pages/SettingsPage.js +11 -0
- package/lib/module/components/pages/SettingsPage.js.map +1 -0
- package/lib/module/components/pages/SettingsSection.js +8 -0
- package/lib/module/components/pages/SettingsSection.js.map +1 -0
- package/lib/module/components/pages/StaticSettingsPage.js +10 -0
- package/lib/module/components/pages/StaticSettingsPage.js.map +1 -0
- package/lib/module/fallbackKnobGeometry.js +16 -0
- package/lib/module/fallbackKnobGeometry.js.map +1 -0
- package/lib/module/glassController.js +54 -0
- package/lib/module/glassController.js.map +1 -0
- package/lib/module/glassNativeEngine.js +11 -0
- package/lib/module/glassNativeEngine.js.map +1 -0
- package/lib/module/glassRuntime.js +10 -0
- package/lib/module/glassRuntime.js.map +1 -0
- package/lib/module/index.js +80 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/inputPresentation.js +14 -0
- package/lib/module/inputPresentation.js.map +1 -0
- package/lib/module/localGlassTelemetry.js +94 -0
- package/lib/module/localGlassTelemetry.js.map +1 -0
- package/lib/module/motion/MotionProvider.js +11 -0
- package/lib/module/motion/MotionProvider.js.map +1 -0
- package/lib/module/motion/easings.js +64 -0
- package/lib/module/motion/easings.js.map +1 -0
- package/lib/module/motion/folmeSpring.js +21 -0
- package/lib/module/motion/folmeSpring.js.map +1 -0
- package/lib/module/motion/folmeSpringByResponse.js +19 -0
- package/lib/module/motion/folmeSpringByResponse.js.map +1 -0
- package/lib/module/motion/index.js +6 -0
- package/lib/module/motion/index.js.map +1 -0
- package/lib/module/motion/presets.js +98 -0
- package/lib/module/motion/presets.js.map +1 -0
- package/lib/module/nativeGlassViews.js +24 -0
- package/lib/module/nativeGlassViews.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/performanceTelemetry.js +19 -0
- package/lib/module/performanceTelemetry.js.map +1 -0
- package/lib/module/pointerEventBridge.js +14 -0
- package/lib/module/pointerEventBridge.js.map +1 -0
- package/lib/module/pointerGeometry.js +9 -0
- package/lib/module/pointerGeometry.js.map +1 -0
- package/lib/module/pressVelocity.js +31 -0
- package/lib/module/pressVelocity.js.map +1 -0
- package/lib/module/primitives/Divider.js +29 -0
- package/lib/module/primitives/Divider.js.map +1 -0
- package/lib/module/primitives/Icon.js +19 -0
- package/lib/module/primitives/Icon.js.map +1 -0
- package/lib/module/primitives/PressIndication.js +22 -0
- package/lib/module/primitives/PressIndication.js.map +1 -0
- package/lib/module/primitives/Pressable.js +25 -0
- package/lib/module/primitives/Pressable.js.map +1 -0
- package/lib/module/primitives/PressableScale.js +28 -0
- package/lib/module/primitives/PressableScale.js.map +1 -0
- package/lib/module/primitives/Surface.js +83 -0
- package/lib/module/primitives/Surface.js.map +1 -0
- package/lib/module/primitives/Text.js +40 -0
- package/lib/module/primitives/Text.js.map +1 -0
- package/lib/module/primitives/index.js +8 -0
- package/lib/module/primitives/index.js.map +1 -0
- package/lib/module/renderer.js +22 -0
- package/lib/module/renderer.js.map +1 -0
- package/lib/module/sliderValue.js +25 -0
- package/lib/module/sliderValue.js.map +1 -0
- package/lib/module/surface/InlineSurface.js +97 -0
- package/lib/module/surface/InlineSurface.js.map +1 -0
- package/lib/module/surface/MaterialProvider.js +74 -0
- package/lib/module/surface/MaterialProvider.js.map +1 -0
- package/lib/module/surface/NativeSurface.js +47 -0
- package/lib/module/surface/NativeSurface.js.map +1 -0
- package/lib/module/surface/PortalLayers.js +292 -0
- package/lib/module/surface/PortalLayers.js.map +1 -0
- package/lib/module/surface/contexts.js +96 -0
- package/lib/module/surface/contexts.js.map +1 -0
- package/lib/module/surface/registry.js +103 -0
- package/lib/module/surface/registry.js.map +1 -0
- package/lib/module/surface/styles.js +31 -0
- package/lib/module/surface/styles.js.map +1 -0
- package/lib/module/surface/types.js +2 -0
- package/lib/module/surface/types.js.map +1 -0
- package/lib/module/surfaceRendererPolicy.js +27 -0
- package/lib/module/surfaceRendererPolicy.js.map +1 -0
- package/lib/module/tabs/GlassTabItem.js +30 -0
- package/lib/module/tabs/GlassTabItem.js.map +1 -0
- package/lib/module/tabs/InlineTabBar.js +829 -0
- package/lib/module/tabs/InlineTabBar.js.map +1 -0
- package/lib/module/tabs/tabConstants.js +19 -0
- package/lib/module/tabs/tabConstants.js.map +1 -0
- package/lib/module/tabs/tabDebug.js +13 -0
- package/lib/module/tabs/tabDebug.js.map +1 -0
- package/lib/module/tabs/tabStyles.js +104 -0
- package/lib/module/tabs/tabStyles.js.map +1 -0
- package/lib/module/tabs/useInlineTabGesture.js +221 -0
- package/lib/module/tabs/useInlineTabGesture.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +32 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/buildTheme.js +153 -0
- package/lib/module/theme/buildTheme.js.map +1 -0
- package/lib/module/theme/glassColors.js +14 -0
- package/lib/module/theme/glassColors.js.map +1 -0
- package/lib/module/theme/index.js +9 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/liquidGlass.js +21 -0
- package/lib/module/theme/liquidGlass.js.map +1 -0
- package/lib/module/theme/presentation.js +11 -0
- package/lib/module/theme/presentation.js.map +1 -0
- package/lib/module/theme/registry.js +13 -0
- package/lib/module/theme/registry.js.map +1 -0
- package/lib/module/theme/selectVariant.js +10 -0
- package/lib/module/theme/selectVariant.js.map +1 -0
- package/lib/module/theme/tokens.js +262 -0
- package/lib/module/theme/tokens.js.map +1 -0
- package/lib/module/theme/types.js +2 -0
- package/lib/module/theme/types.js.map +1 -0
- package/lib/module/theme/wallpaper.js +83 -0
- package/lib/module/theme/wallpaper.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/useButtonGesture.js +132 -0
- package/lib/module/useButtonGesture.js.map +1 -0
- package/lib/module/useGlassKnobMotion.js +112 -0
- package/lib/module/useGlassKnobMotion.js.map +1 -0
- package/lib/module/useGlassPressMotion.js +143 -0
- package/lib/module/useGlassPressMotion.js.map +1 -0
- package/lib/types/GlassSurface.d.ts +147 -0
- package/lib/types/GlassTabBar.d.ts +36 -0
- package/lib/types/GlassTabLens.d.ts +11 -0
- package/lib/types/LiquidGlassProvider.d.ts +47 -0
- package/lib/types/LocalGlassMaterial.d.ts +21 -0
- package/lib/types/adaptiveLuminance.d.ts +2 -0
- package/lib/types/badgePalette.d.ts +9 -0
- package/lib/types/buttonGesturePolicy.d.ts +4 -0
- package/lib/types/components/AdaptiveLuminance.d.ts +23 -0
- package/lib/types/components/BottomSheet.d.ts +33 -0
- package/lib/types/components/Button.d.ts +16 -0
- package/lib/types/components/Card.d.ts +25 -0
- package/lib/types/components/Checkbox.d.ts +11 -0
- package/lib/types/components/ControlPressContext.d.ts +9 -0
- package/lib/types/components/Dialog.d.ts +12 -0
- package/lib/types/components/DialogAction.d.ts +4 -0
- package/lib/types/components/DialogContent.d.ts +12 -0
- package/lib/types/components/GlassButton.d.ts +38 -0
- package/lib/types/components/GlassFab.d.ts +15 -0
- package/lib/types/components/GlassMagnifier.d.ts +41 -0
- package/lib/types/components/GlassPlayground.d.ts +12 -0
- package/lib/types/components/GlassSlider.d.ts +48 -0
- package/lib/types/components/GlassSwitch.d.ts +46 -0
- package/lib/types/components/GlassTabBar.d.ts +44 -0
- package/lib/types/components/Input.d.ts +47 -0
- package/lib/types/components/ListRow.d.ts +17 -0
- package/lib/types/components/Menu.d.ts +41 -0
- package/lib/types/components/NavigationBar.d.ts +14 -0
- package/lib/types/components/NumberWheel.d.ts +11 -0
- package/lib/types/components/PageFeedList.d.ts +6 -0
- package/lib/types/components/PageScaffold.d.ts +64 -0
- package/lib/types/components/PreferenceGroup.d.ts +12 -0
- package/lib/types/components/ProgressIndicator.d.ts +9 -0
- package/lib/types/components/ProgressiveBlur.d.ts +12 -0
- package/lib/types/components/ReferenceSlider.d.ts +31 -0
- package/lib/types/components/ReferenceTabBar.d.ts +61 -0
- package/lib/types/components/SearchBar.d.ts +52 -0
- package/lib/types/components/SegmentedControl.d.ts +10 -0
- package/lib/types/components/Slider.d.ts +19 -0
- package/lib/types/components/Snackbar.d.ts +5 -0
- package/lib/types/components/SurfaceEnvironmentContext.d.ts +17 -0
- package/lib/types/components/SurfaceGroup.d.ts +17 -0
- package/lib/types/components/Switch.d.ts +12 -0
- package/lib/types/components/Toast.d.ts +14 -0
- package/lib/types/components/TopAppBar.d.ts +49 -0
- package/lib/types/components/bottomSheetMotion.d.ts +2 -0
- package/lib/types/components/glassControlMaterial.d.ts +3 -0
- package/lib/types/components/menuPosition.d.ts +22 -0
- package/lib/types/components/pages/FeedPage.d.ts +31 -0
- package/lib/types/components/pages/PageBenchmarkContext.d.ts +30 -0
- package/lib/types/components/pages/SettingsPage.d.ts +20 -0
- package/lib/types/components/pages/SettingsSection.d.ts +9 -0
- package/lib/types/components/pages/StaticSettingsPage.d.ts +18 -0
- package/lib/types/fallbackKnobGeometry.d.ts +7 -0
- package/lib/types/glassController.d.ts +20 -0
- package/lib/types/glassNativeEngine.d.ts +5 -0
- package/lib/types/glassRuntime.d.ts +10 -0
- package/lib/types/index.d.ts +124 -0
- package/lib/types/inputPresentation.d.ts +12 -0
- package/lib/types/localGlassTelemetry.d.ts +28 -0
- package/lib/types/motion/MotionProvider.d.ts +7 -0
- package/lib/types/motion/easings.d.ts +33 -0
- package/lib/types/motion/folmeSpring.d.ts +15 -0
- package/lib/types/motion/folmeSpringByResponse.d.ts +14 -0
- package/lib/types/motion/index.d.ts +7 -0
- package/lib/types/motion/presets.d.ts +103 -0
- package/lib/types/nativeGlassViews.d.ts +112 -0
- package/lib/types/performanceTelemetry.d.ts +65 -0
- package/lib/types/pointerEventBridge.d.ts +17 -0
- package/lib/types/pointerGeometry.d.ts +2 -0
- package/lib/types/pressVelocity.d.ts +11 -0
- package/lib/types/primitives/Divider.d.ts +19 -0
- package/lib/types/primitives/Icon.d.ts +29 -0
- package/lib/types/primitives/PressIndication.d.ts +26 -0
- package/lib/types/primitives/Pressable.d.ts +9 -0
- package/lib/types/primitives/PressableScale.d.ts +19 -0
- package/lib/types/primitives/Surface.d.ts +63 -0
- package/lib/types/primitives/Text.d.ts +35 -0
- package/lib/types/primitives/index.d.ts +14 -0
- package/lib/types/renderer.d.ts +32 -0
- package/lib/types/sliderValue.d.ts +2 -0
- package/lib/types/surface/InlineSurface.d.ts +42 -0
- package/lib/types/surface/MaterialProvider.d.ts +46 -0
- package/lib/types/surface/NativeSurface.d.ts +11 -0
- package/lib/types/surface/PortalLayers.d.ts +33 -0
- package/lib/types/surface/contexts.d.ts +66 -0
- package/lib/types/surface/registry.d.ts +6 -0
- package/lib/types/surface/styles.d.ts +74 -0
- package/lib/types/surface/types.d.ts +118 -0
- package/lib/types/surfaceRendererPolicy.d.ts +14 -0
- package/lib/types/tabs/GlassTabItem.d.ts +20 -0
- package/lib/types/tabs/InlineTabBar.d.ts +5 -0
- package/lib/types/tabs/tabConstants.d.ts +34 -0
- package/lib/types/tabs/tabDebug.d.ts +15 -0
- package/lib/types/tabs/tabStyles.d.ts +119 -0
- package/lib/types/tabs/useInlineTabGesture.d.ts +34 -0
- package/lib/types/theme/ThemeProvider.d.ts +26 -0
- package/lib/types/theme/buildTheme.d.ts +6 -0
- package/lib/types/theme/glassColors.d.ts +13 -0
- package/lib/types/theme/index.d.ts +11 -0
- package/lib/types/theme/liquidGlass.d.ts +5 -0
- package/lib/types/theme/presentation.d.ts +3 -0
- package/lib/types/theme/registry.d.ts +7 -0
- package/lib/types/theme/selectVariant.d.ts +10 -0
- package/lib/types/theme/tokens.d.ts +18 -0
- package/lib/types/theme/types.d.ts +305 -0
- package/lib/types/theme/wallpaper.d.ts +32 -0
- package/lib/types/types.d.ts +127 -0
- package/lib/types/useButtonGesture.d.ts +30 -0
- package/lib/types/useGlassKnobMotion.d.ts +40 -0
- package/lib/types/useGlassPressMotion.d.ts +61 -0
- package/licenses/Apache-2.0-Kyant0-Shapes.txt +191 -0
- package/package.json +131 -4
- package/src/GlassSurface.tsx +676 -0
- package/src/GlassTabBar.tsx +106 -0
- package/src/GlassTabLens.tsx +92 -0
- package/src/LiquidGlassProvider.tsx +135 -0
- package/src/LocalGlassMaterial.tsx +256 -0
- package/src/adaptiveLuminance.ts +15 -0
- package/src/badgePalette.ts +54 -0
- package/src/buttonGesturePolicy.ts +15 -0
- package/src/components/AdaptiveLuminance.tsx +40 -0
- package/src/components/BottomSheet.tsx +291 -0
- package/src/components/Button.tsx +30 -0
- package/src/components/Card.tsx +343 -0
- package/src/components/Checkbox.tsx +141 -0
- package/src/components/ControlPressContext.ts +11 -0
- package/src/components/Dialog.tsx +129 -0
- package/src/components/DialogAction.tsx +109 -0
- package/src/components/DialogContent.tsx +52 -0
- package/src/components/GlassButton.tsx +225 -0
- package/src/components/GlassFab.tsx +98 -0
- package/src/components/GlassMagnifier.tsx +178 -0
- package/src/components/GlassPlayground.tsx +190 -0
- package/src/components/GlassSlider.tsx +448 -0
- package/src/components/GlassSwitch.tsx +391 -0
- package/src/components/GlassTabBar.tsx +522 -0
- package/src/components/Input.tsx +277 -0
- package/src/components/ListRow.tsx +124 -0
- package/src/components/Menu.tsx +322 -0
- package/src/components/NavigationBar.tsx +27 -0
- package/src/components/NumberWheel.tsx +344 -0
- package/src/components/PageFeedList.tsx +37 -0
- package/src/components/PageScaffold.tsx +266 -0
- package/src/components/PreferenceGroup.tsx +65 -0
- package/src/components/ProgressIndicator.tsx +63 -0
- package/src/components/ProgressiveBlur.tsx +56 -0
- package/src/components/ReferenceSlider.tsx +364 -0
- package/src/components/ReferenceTabBar.tsx +564 -0
- package/src/components/SearchBar.tsx +340 -0
- package/src/components/SegmentedControl.tsx +45 -0
- package/src/components/Slider.tsx +25 -0
- package/src/components/Snackbar.tsx +10 -0
- package/src/components/SurfaceEnvironmentContext.tsx +46 -0
- package/src/components/SurfaceGroup.tsx +60 -0
- package/src/components/Switch.tsx +18 -0
- package/src/components/Toast.tsx +110 -0
- package/src/components/TopAppBar.tsx +272 -0
- package/src/components/bottomSheetMotion.ts +10 -0
- package/src/components/glassControlMaterial.ts +20 -0
- package/src/components/menuPosition.ts +58 -0
- package/src/components/pages/FeedPage.tsx +96 -0
- package/src/components/pages/PageBenchmarkContext.tsx +105 -0
- package/src/components/pages/SettingsPage.tsx +55 -0
- package/src/components/pages/SettingsSection.tsx +20 -0
- package/src/components/pages/StaticSettingsPage.tsx +50 -0
- package/src/fallbackKnobGeometry.ts +15 -0
- package/src/glassController.ts +70 -0
- package/src/glassNativeEngine.ts +16 -0
- package/src/glassRuntime.ts +11 -0
- package/src/index.ts +199 -0
- package/src/inputPresentation.ts +32 -0
- package/src/localGlassTelemetry.ts +129 -0
- package/src/motion/MotionProvider.tsx +12 -0
- package/src/motion/easings.ts +71 -0
- package/src/motion/folmeSpring.ts +22 -0
- package/src/motion/folmeSpringByResponse.ts +19 -0
- package/src/motion/index.ts +47 -0
- package/src/motion/presets.ts +128 -0
- package/src/nativeGlassViews.ts +144 -0
- package/src/performanceTelemetry.ts +91 -0
- package/src/pointerEventBridge.ts +27 -0
- package/src/pointerGeometry.ts +8 -0
- package/src/pressVelocity.ts +36 -0
- package/src/primitives/Divider.tsx +42 -0
- package/src/primitives/Icon.tsx +44 -0
- package/src/primitives/PressIndication.tsx +43 -0
- package/src/primitives/Pressable.tsx +75 -0
- package/src/primitives/PressableScale.tsx +50 -0
- package/src/primitives/Surface.tsx +171 -0
- package/src/primitives/Text.tsx +80 -0
- package/src/primitives/index.ts +14 -0
- package/src/renderer.ts +70 -0
- package/src/sliderValue.ts +19 -0
- package/src/surface/InlineSurface.tsx +299 -0
- package/src/surface/MaterialProvider.tsx +235 -0
- package/src/surface/NativeSurface.tsx +115 -0
- package/src/surface/PortalLayers.tsx +574 -0
- package/src/surface/contexts.tsx +188 -0
- package/src/surface/registry.ts +109 -0
- package/src/surface/styles.ts +31 -0
- package/src/surface/types.ts +139 -0
- package/src/surfaceRendererPolicy.ts +32 -0
- package/src/tabs/GlassTabItem.tsx +100 -0
- package/src/tabs/InlineTabBar.tsx +1193 -0
- package/src/tabs/tabConstants.ts +35 -0
- package/src/tabs/tabDebug.ts +29 -0
- package/src/tabs/tabStyles.ts +104 -0
- package/src/tabs/useInlineTabGesture.ts +306 -0
- package/src/theme/ThemeProvider.tsx +52 -0
- package/src/theme/buildTheme.ts +160 -0
- package/src/theme/glassColors.ts +13 -0
- package/src/theme/index.ts +34 -0
- package/src/theme/liquidGlass.ts +25 -0
- package/src/theme/presentation.ts +12 -0
- package/src/theme/registry.ts +16 -0
- package/src/theme/selectVariant.ts +12 -0
- package/src/theme/tokens.ts +309 -0
- package/src/theme/types.ts +345 -0
- package/src/theme/wallpaper.ts +94 -0
- package/src/types.ts +95 -0
- package/src/useButtonGesture.ts +134 -0
- package/src/useGlassKnobMotion.ts +155 -0
- package/src/useGlassPressMotion.ts +209 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { findNodeHandle, View } from 'react-native';
|
|
4
|
+
import Animated from 'react-native-reanimated';
|
|
5
|
+
import { forwardPointerToSurface, forwardValueToSurface } from '../glassController';
|
|
6
|
+
import { NativeGlassCaptureSource, NativeGlassSurfaceView } from '../nativeGlassViews';
|
|
7
|
+
export const AnimatedNativeGlassSurfaceView = NativeGlassSurfaceView
|
|
8
|
+
? Animated.createAnimatedComponent(NativeGlassSurfaceView)
|
|
9
|
+
: null;
|
|
10
|
+
export function NativeBackdropSurface({ opticsModel, sdfDisplacementMapDebug, sdfContrast, sdfBrightness, sdfSaturation, sdfOuterShadowAlpha, sdfOuterShadowBlurRadius, sdfOuterShadowOffsetY, sdfInnerShadowAlpha, sdfInnerShadowExtent, shapeMaskText, shapeMaskFontSize, shapeMaskFontWeight, sharedPassOrder, sharedPassZIndex, pointerEventSink, valueEventSink, syncContentTransform, renderingEnabled = true, ...props }) {
|
|
11
|
+
const nativeViewRef = useRef(null);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
const viewTag = nativeViewRef.current ? findNodeHandle(nativeViewRef.current) : null;
|
|
14
|
+
if (pointerEventSink) {
|
|
15
|
+
pointerEventSink.current =
|
|
16
|
+
viewTag == null ? null : (payload) => forwardPointerToSurface(viewTag, payload);
|
|
17
|
+
}
|
|
18
|
+
if (valueEventSink) {
|
|
19
|
+
valueEventSink.current =
|
|
20
|
+
viewTag == null ? null : (payload) => forwardValueToSurface(viewTag, payload);
|
|
21
|
+
}
|
|
22
|
+
return () => {
|
|
23
|
+
if (pointerEventSink)
|
|
24
|
+
pointerEventSink.current = null;
|
|
25
|
+
if (valueEventSink)
|
|
26
|
+
valueEventSink.current = null;
|
|
27
|
+
};
|
|
28
|
+
}, [pointerEventSink, valueEventSink]);
|
|
29
|
+
// Android owns live backdrop optics. Other platforms keep the material fallback.
|
|
30
|
+
{
|
|
31
|
+
if (props.animatedProps == null && NativeGlassSurfaceView) {
|
|
32
|
+
const { animatedProps: _unused, ...staticProps } = props;
|
|
33
|
+
return (_jsx(NativeGlassSurfaceView, { ref: nativeViewRef, renderingEnabled: renderingEnabled, ...staticProps, sharedPassOrder: sharedPassOrder, sharedPassZIndex: sharedPassZIndex, opticsModel: opticsModel, sdfDisplacementMapDebug: sdfDisplacementMapDebug, sdfContrast: sdfContrast, sdfBrightness: sdfBrightness, sdfSaturation: sdfSaturation, sdfOuterShadowAlpha: sdfOuterShadowAlpha, sdfOuterShadowBlurRadius: sdfOuterShadowBlurRadius, sdfOuterShadowOffsetY: sdfOuterShadowOffsetY, sdfInnerShadowAlpha: sdfInnerShadowAlpha, sdfInnerShadowExtent: sdfInnerShadowExtent, shapeMaskText: shapeMaskText, shapeMaskFontSize: shapeMaskFontSize, shapeMaskFontWeight: shapeMaskFontWeight, syncContentTransform: syncContentTransform }));
|
|
34
|
+
}
|
|
35
|
+
if (AnimatedNativeGlassSurfaceView) {
|
|
36
|
+
return (_jsx(AnimatedNativeGlassSurfaceView, { ref: nativeViewRef, renderingEnabled: renderingEnabled, ...props, sharedPassOrder: sharedPassOrder, sharedPassZIndex: sharedPassZIndex, opticsModel: opticsModel, sdfDisplacementMapDebug: sdfDisplacementMapDebug, sdfContrast: sdfContrast, sdfBrightness: sdfBrightness, sdfSaturation: sdfSaturation, sdfOuterShadowAlpha: sdfOuterShadowAlpha, sdfOuterShadowBlurRadius: sdfOuterShadowBlurRadius, sdfOuterShadowOffsetY: sdfOuterShadowOffsetY, sdfInnerShadowAlpha: sdfInnerShadowAlpha, sdfInnerShadowExtent: sdfInnerShadowExtent, shapeMaskText: shapeMaskText, shapeMaskFontSize: shapeMaskFontSize, shapeMaskFontWeight: shapeMaskFontWeight, syncContentTransform: syncContentTransform }));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return _jsx(View, { ...props, style: [props.style, !renderingEnabled ? { opacity: 0 } : undefined] });
|
|
40
|
+
}
|
|
41
|
+
export function GlassCaptureSourceView({ children, ...props }) {
|
|
42
|
+
if (NativeGlassCaptureSource) {
|
|
43
|
+
return _jsx(NativeGlassCaptureSource, { ...props, children: children });
|
|
44
|
+
}
|
|
45
|
+
return _jsx(View, { ...props, children: children });
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=NativeSurface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeSurface.js","sourceRoot":"","s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EAAE,aAAa,EAClB,gBAAgB,EAAE,gBAAgB,KAC9B,KAAK,EACT,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,WAAW,EACxB,uBAAuB,EAAE,uBAAuB,EAChD,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB,EACxC,wBAAwB,EAAE,wBAAwB,EAClD,qBAAqB,EAAE,qBAAqB,EAC5C,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;QACN,CAAC;IACL,CAAC;IACD,OAAO,KAAC,IAAI,OAAK,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GAAI,CAAC;AACrG,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAA2B;IAClF,IAAI,wBAAwB,EAAE,CAAC;QAC3B,OAAO,KAAC,wBAAwB,OAAK,KAAK,YAAG,QAAQ,GAA4B,CAAC;IACtF,CAAC;IACD,OAAO,KAAC,IAAI,OAAK,KAAK,YAAG,QAAQ,GAAQ,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useContext, useMemo } from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import Animated, { useAnimatedProps, useAnimatedStyle } from 'react-native-reanimated';
|
|
5
|
+
import { GlassRuntimeContext } from './contexts';
|
|
6
|
+
import { useRegistrySnapshot, selectBalancedShaderSurfaces } from './registry';
|
|
7
|
+
import { NativeBackdropSurface } from './NativeSurface';
|
|
8
|
+
import { styles } from './styles';
|
|
9
|
+
export function GlassSurfacePortalLayer({ registry, tokens, }) {
|
|
10
|
+
const entries = useRegistrySnapshot(registry);
|
|
11
|
+
const balancedShaderSurfaces = useMemo(() => selectBalancedShaderSurfaces(entries), [entries]);
|
|
12
|
+
const groups = useMemo(() => {
|
|
13
|
+
const list = [];
|
|
14
|
+
const byKey = new Map();
|
|
15
|
+
for (let i = 0; i < entries.length; i += 1) {
|
|
16
|
+
const pair = entries[i];
|
|
17
|
+
const entry = pair[1];
|
|
18
|
+
const routeId = getSharedValueId(entry.routeTransitionX);
|
|
19
|
+
const key = `${entry.zIndex}::${entry.scrollGroupKey}::${routeId}`;
|
|
20
|
+
let group = byKey.get(key);
|
|
21
|
+
if (!group) {
|
|
22
|
+
group = {
|
|
23
|
+
key,
|
|
24
|
+
zIndex: entry.zIndex,
|
|
25
|
+
offsets: entry.scrollOffsets,
|
|
26
|
+
routeTransitionX: entry.routeTransitionX,
|
|
27
|
+
items: [],
|
|
28
|
+
};
|
|
29
|
+
byKey.set(key, group);
|
|
30
|
+
list.push(group);
|
|
31
|
+
}
|
|
32
|
+
group.items.push(pair);
|
|
33
|
+
}
|
|
34
|
+
return list;
|
|
35
|
+
}, [entries]);
|
|
36
|
+
if (!tokens.enabled)
|
|
37
|
+
return null;
|
|
38
|
+
return (_jsx(View, { pointerEvents: "box-none", style: StyleSheet.absoluteFill, children: groups.map((group) => {
|
|
39
|
+
const content = group.items.map(([id, entry]) => (_jsx(PortalGlassSurface, { providerId: entry.samplingProviderId, entry: entry, drawOrder: 0, shaderEnabled: tokens.quality === 'high' ||
|
|
40
|
+
(tokens.quality === 'balanced' && balancedShaderSurfaces.has(id)) }, id)));
|
|
41
|
+
if (group.offsets.length === 0 && !group.routeTransitionX) {
|
|
42
|
+
return (_jsx(View, { pointerEvents: "box-none", style: [StyleSheet.absoluteFill, { zIndex: group.zIndex }], children: content }, group.key));
|
|
43
|
+
}
|
|
44
|
+
return (_jsx(PortalScrollGroupContainer, { offsets: group.offsets, routeTransitionX: group.routeTransitionX, zIndex: group.zIndex, children: content }, group.key));
|
|
45
|
+
}) }));
|
|
46
|
+
}
|
|
47
|
+
export const sharedValueGroupIds = new WeakMap();
|
|
48
|
+
export let nextSharedValueGroupId = 1;
|
|
49
|
+
export function getSharedValueId(value) {
|
|
50
|
+
if (!value)
|
|
51
|
+
return 0;
|
|
52
|
+
let id = sharedValueGroupIds.get(value);
|
|
53
|
+
if (id == null) {
|
|
54
|
+
id = nextSharedValueGroupId++;
|
|
55
|
+
sharedValueGroupIds.set(value, id);
|
|
56
|
+
}
|
|
57
|
+
return id;
|
|
58
|
+
}
|
|
59
|
+
export const PortalScrollGroupContainer = React.memo(function PortalScrollGroupContainer({ offsets, routeTransitionX, zIndex, children, }) {
|
|
60
|
+
const groupTransformStyle = useAnimatedStyle(() => {
|
|
61
|
+
let scrollY = 0;
|
|
62
|
+
for (let index = 0; index < offsets.length; index += 1) {
|
|
63
|
+
scrollY += offsets[index].value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
transform: [{ translateX: routeTransitionX?.value ?? 0 }, { translateY: -scrollY }],
|
|
67
|
+
};
|
|
68
|
+
}, [offsets, routeTransitionX]);
|
|
69
|
+
return (_jsx(Animated.View, { pointerEvents: "box-none", style: [StyleSheet.absoluteFill, groupTransformStyle, { zIndex }], children: children }));
|
|
70
|
+
});
|
|
71
|
+
export function GlassRouteOverlayLayer({ registry, enabled, }) {
|
|
72
|
+
const entries = useRegistrySnapshot(registry);
|
|
73
|
+
if (!enabled)
|
|
74
|
+
return null;
|
|
75
|
+
return (_jsx(View, { pointerEvents: "box-none", style: StyleSheet.absoluteFill, children: entries.map(([id, entry]) => (_jsx(RouteOverlayView, { entry: entry }, id))) }));
|
|
76
|
+
}
|
|
77
|
+
export const RouteOverlayView = React.memo(function RouteOverlayView({ entry }) {
|
|
78
|
+
const offsets = entry.scrollOffsets;
|
|
79
|
+
const routeTransitionX = entry.routeTransitionX;
|
|
80
|
+
const scrollTransformStyle = useAnimatedStyle(() => {
|
|
81
|
+
let scrollY = 0;
|
|
82
|
+
if (offsets) {
|
|
83
|
+
for (let index = 0; index < offsets.length; index += 1) {
|
|
84
|
+
scrollY += offsets[index].value;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
transform: [{ translateX: routeTransitionX?.value ?? 0 }, { translateY: -scrollY }],
|
|
89
|
+
};
|
|
90
|
+
}, [offsets, routeTransitionX]);
|
|
91
|
+
const hasScrollOrRoute = (offsets != null && offsets.length > 0) || routeTransitionX != null;
|
|
92
|
+
return (_jsx(Animated.View, { pointerEvents: "box-none", style: [StyleSheet.absoluteFill, entry.style, { zIndex: entry.zIndex }], children: entry.frame ? (_jsx(Animated.View, { pointerEvents: "box-none", style: [
|
|
93
|
+
{
|
|
94
|
+
position: 'absolute',
|
|
95
|
+
left: entry.frame.x,
|
|
96
|
+
top: entry.frame.y,
|
|
97
|
+
width: entry.frame.width,
|
|
98
|
+
height: entry.frame.height,
|
|
99
|
+
},
|
|
100
|
+
hasScrollOrRoute ? scrollTransformStyle : undefined,
|
|
101
|
+
entry.portalOffsetStyle,
|
|
102
|
+
], children: entry.children })) : (entry.children) }));
|
|
103
|
+
});
|
|
104
|
+
export const PortalGlassSurface = React.memo(function PortalGlassSurface({ providerId, entry, drawOrder, shaderEnabled, }) {
|
|
105
|
+
const runtime = useContext(GlassRuntimeContext);
|
|
106
|
+
const opticalProgress = entry.opticalProgress;
|
|
107
|
+
const pointerEvent = entry.pointerEvent;
|
|
108
|
+
const pointerEventValue = entry.pointerEventValue;
|
|
109
|
+
const pointerEventSink = entry.pointerEventSink;
|
|
110
|
+
const valueEvent = entry.valueEvent;
|
|
111
|
+
const valueEventSink = entry.valueEventSink;
|
|
112
|
+
const opticalToggleFraction = entry.opticalToggleFraction;
|
|
113
|
+
const opticalProgressValue = entry.opticalProgressValue;
|
|
114
|
+
const opticalPointX = entry.opticalPointX;
|
|
115
|
+
const opticalPointY = entry.opticalPointY;
|
|
116
|
+
const opticalVelocityX = entry.opticalVelocityX;
|
|
117
|
+
const opticalVelocityY = entry.opticalVelocityY;
|
|
118
|
+
const opticalMotionX = entry.opticalMotionX;
|
|
119
|
+
const opticalMotionY = entry.opticalMotionY;
|
|
120
|
+
const hasAnimatedOptics = Boolean(opticalPointX ||
|
|
121
|
+
opticalPointY ||
|
|
122
|
+
opticalVelocityX ||
|
|
123
|
+
opticalVelocityY ||
|
|
124
|
+
opticalProgressValue != null ||
|
|
125
|
+
opticalProgress ||
|
|
126
|
+
opticalToggleFraction ||
|
|
127
|
+
opticalMotionX ||
|
|
128
|
+
opticalMotionY);
|
|
129
|
+
const animatedOptics = useAnimatedProps(() => ({
|
|
130
|
+
interactionVelocityX: opticalVelocityX?.value,
|
|
131
|
+
interactionVelocityY: opticalVelocityY?.value,
|
|
132
|
+
interactionPointX: opticalPointX?.value,
|
|
133
|
+
interactionPointY: opticalPointY?.value,
|
|
134
|
+
interactionProgress: opticalProgressValue ?? opticalProgress?.value ?? 0,
|
|
135
|
+
toggleFraction: opticalToggleFraction?.value ?? 0,
|
|
136
|
+
motionX: opticalMotionX ? Math.max(-1, Math.min(1, opticalMotionX.value / 1800)) : undefined,
|
|
137
|
+
motionY: opticalMotionY ? Math.max(-1, Math.min(1, opticalMotionY.value / 1800)) : undefined,
|
|
138
|
+
}), [
|
|
139
|
+
opticalPointX,
|
|
140
|
+
opticalPointY,
|
|
141
|
+
opticalVelocityX,
|
|
142
|
+
opticalVelocityY,
|
|
143
|
+
opticalProgress,
|
|
144
|
+
pointerEventValue,
|
|
145
|
+
valueEvent,
|
|
146
|
+
opticalToggleFraction,
|
|
147
|
+
opticalProgressValue,
|
|
148
|
+
opticalMotionX,
|
|
149
|
+
opticalMotionY,
|
|
150
|
+
]);
|
|
151
|
+
if (!runtime)
|
|
152
|
+
return null;
|
|
153
|
+
const { tokens, dark, reducedMotion } = runtime;
|
|
154
|
+
// Backdrop glass is drawn in a sibling overlay, above the actual control.
|
|
155
|
+
// Some native render backends still participate in Android hit testing even
|
|
156
|
+
// with pointerEvents="none" on the native view itself, so make the whole
|
|
157
|
+
// portal subtree untargetable for passive lenses. Keep box-none where its
|
|
158
|
+
// React content or an explicitly interactive surface needs to receive input.
|
|
159
|
+
const portalPointerEvents = entry.interactive || entry.portalContent || entry.contentAboveGlass ? 'box-none' : 'none';
|
|
160
|
+
const material = entry.materialOverrides
|
|
161
|
+
? { ...tokens.materials[entry.variant], ...entry.materialOverrides }
|
|
162
|
+
: tokens.materials[entry.variant];
|
|
163
|
+
const qualityScale = material.opticsModel === 'referenceParity'
|
|
164
|
+
? 1
|
|
165
|
+
: tokens.quality === 'high'
|
|
166
|
+
? 1.2
|
|
167
|
+
: tokens.quality === 'fallback'
|
|
168
|
+
? 0.45
|
|
169
|
+
: 1;
|
|
170
|
+
if (!shaderEnabled)
|
|
171
|
+
return _jsx(PortalFallbackSurface, { entry: entry });
|
|
172
|
+
const nativeSurface = (_jsx(NativeBackdropSurface, { providerId: providerId, sharedPassZIndex: entry.zIndex, sharedPassOrder: drawOrder, opticsModel: material.opticsModel, shapeMaskText: entry.shapeMaskText, shapeMaskFontSize: entry.shapeMaskFontSize, shapeMaskFontWeight: entry.shapeMaskFontWeight, progressiveBlurIntensity: entry.progressiveBlurIntensity, depthEffect: material.referenceDepthEffect ?? false, highlightStyle: material.referenceHighlightStyle, interactionProfile: material.referenceInteractionProfile, contentScaleX: material.referenceContentScaleX, contentScaleY: material.referenceContentScaleY, sampleOffsetX: material.referenceSampleOffsetX, sampleOffsetY: material.referenceSampleOffsetY, toggleTrackColorOff: material.referenceToggleTrackColorOff, toggleTrackColorOn: material.referenceToggleTrackColorOn, toggleTrackWidth: material.referenceToggleTrackWidth, toggleTrackHeight: material.referenceToggleTrackHeight, toggleSolidBackdropColor: material.referenceToggleSolidBackdropColor, brightness: material.brightness ?? 0, contrast: material.contrast ?? 1, highlightFalloff: material.highlightFalloff ?? 1, sdfContrast: material.sdfScaleLens?.contrast, sdfBrightness: material.sdfScaleLens?.brightness, sdfSaturation: material.sdfScaleLens?.saturation, sdfOuterShadowAlpha: material.sdfScaleLens?.outerShadowAlpha, sdfOuterShadowBlurRadius: material.sdfScaleLens?.outerShadowBlurRadius, sdfOuterShadowOffsetY: material.sdfScaleLens?.outerShadowOffsetY, sdfInnerShadowAlpha: material.sdfScaleLens?.innerShadowAlpha, sdfInnerShadowExtent: material.sdfScaleLens?.innerShadowExtent, cornerRadius: material.radius, blurRadius: material.blurRadius * qualityScale, refractionHeight: material.refractionHeight * qualityScale, refractionAmount: material.refractionAmount * qualityScale, bodyRefractionAmount: (material.refractionBodyAmount ?? 2.5) * qualityScale, interactionProgress: opticalProgressValue ?? 0,
|
|
173
|
+
// The pointer stream must be a real prop, not only an animated one:
|
|
174
|
+
// Reanimated's animatedProps path does not reach an Expo Modules view's
|
|
175
|
+
// prop setter, so a gesture sent only there is silently dropped and the
|
|
176
|
+
// native driver never sees a single event.
|
|
177
|
+
pointerEvent: entry.pointerEventValue, pointerEventSink: pointerEventSink, valueEvent: entry.valueEvent, valueEventSink: valueEventSink, saturation: material.saturation, chromaticAberration: material.opticsModel === 'referenceParity' ||
|
|
178
|
+
tokens.quality === 'high' ||
|
|
179
|
+
entry.variant === 'tabSelectionLens'
|
|
180
|
+
? material.chromaticAberration
|
|
181
|
+
: 0, highlightAlpha: material.highlightAlpha, highlightWidth: material.highlightWidth, lightAngle: material.highlightAngle ?? 45, highlightColor: material.highlightColor
|
|
182
|
+
? dark
|
|
183
|
+
? material.highlightColor.dark
|
|
184
|
+
: material.highlightColor.light
|
|
185
|
+
: undefined, tintAlpha: material.tintAlpha ?? 1, specularStrength: material.specularStrength ?? 1, fresnelStrength: material.fresnelStrength ?? 0.85, innerShadowStrength: material.innerShadowStrength ?? (material.opticsModel === 'referenceParity' ? 0 : 0.18), shadowOpacity: material.shadowOpacity ?? (material.opticsModel === 'referenceParity' ? 0 : 0.1), shadowRadius: material.shadowRadius ?? (material.opticsModel === 'referenceParity' ? 0 : 24), shadowOffsetY: material.shadowOffsetY ?? (material.opticsModel === 'referenceParity' ? 0 : 4), tint: entry.tintColor ?? (dark ? tokens.tint.dark : tokens.tint.light), surfaceColor: material.surfaceColor
|
|
186
|
+
? dark
|
|
187
|
+
? material.surfaceColor.dark
|
|
188
|
+
: material.surfaceColor.light
|
|
189
|
+
: undefined, interactive: entry.interactive && tokens.interaction.enabled && !reducedMotion, pointerEvents: entry.interactive && tokens.interaction.enabled && !reducedMotion ? 'auto' : 'none', continuous: entry.continuous, sharedSource: entry.sharedSource, captureProbe: entry.captureProbe, motionX: undefined, motionY: undefined, displacementOnlyDebug: entry.displacementOnlyDebug, syncContentTransform: entry.syncContentTransform, animatedProps: hasAnimatedOptics ? animatedOptics : undefined, style: [
|
|
190
|
+
styles.nativeSurface,
|
|
191
|
+
entry.placement === 'layout'
|
|
192
|
+
? StyleSheet.absoluteFill
|
|
193
|
+
: { width: entry.frame.width > 0 ? entry.frame.width : undefined },
|
|
194
|
+
{ borderRadius: material.radius },
|
|
195
|
+
] }));
|
|
196
|
+
if (entry.placement === 'bottom' || entry.placement === 'center') {
|
|
197
|
+
const hasMotion = entry.animatedStyle != null || entry.portalOffsetStyle != null;
|
|
198
|
+
if (!hasMotion) {
|
|
199
|
+
return (_jsx(View, { pointerEvents: portalPointerEvents, style: [
|
|
200
|
+
StyleSheet.absoluteFill,
|
|
201
|
+
entry.placement === 'center' ? styles.centerPlacement : styles.bottomPlacement,
|
|
202
|
+
entry.placement === 'bottom' && entry.bottomInset != null
|
|
203
|
+
? { paddingBottom: entry.bottomInset }
|
|
204
|
+
: undefined,
|
|
205
|
+
], children: nativeSurface }));
|
|
206
|
+
}
|
|
207
|
+
return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, style: [
|
|
208
|
+
StyleSheet.absoluteFill,
|
|
209
|
+
entry.placement === 'center' ? styles.centerPlacement : styles.bottomPlacement,
|
|
210
|
+
entry.placement === 'bottom' && entry.bottomInset != null
|
|
211
|
+
? { paddingBottom: entry.bottomInset }
|
|
212
|
+
: undefined,
|
|
213
|
+
entry.animatedStyle,
|
|
214
|
+
entry.portalOffsetStyle,
|
|
215
|
+
], children: nativeSurface }));
|
|
216
|
+
}
|
|
217
|
+
const portalContent = entry.portalContent && entry.placement === 'layout' ? (_jsx(View, { pointerEvents: "box-none", accessible: false, accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", style: [
|
|
218
|
+
StyleSheet.absoluteFill,
|
|
219
|
+
styles.portalContentOverlay,
|
|
220
|
+
{ borderRadius: material.radius },
|
|
221
|
+
], children: entry.portalContent })) : null;
|
|
222
|
+
const innerContent = (_jsxs(_Fragment, { children: [nativeSurface, entry.contentAboveGlass && entry.content ? (_jsx(View, { pointerEvents: "box-none", style: [
|
|
223
|
+
StyleSheet.absoluteFill,
|
|
224
|
+
{ borderRadius: material.radius },
|
|
225
|
+
styles.contentAboveGlass,
|
|
226
|
+
], children: _jsx(View, { style: entry.contentStyle, children: entry.content }) })) : null, portalContent] }));
|
|
227
|
+
const hasMotion = (entry.positioning === 'floating' && entry.animatedStyle != null) || entry.portalOffsetStyle != null;
|
|
228
|
+
if (!hasMotion) {
|
|
229
|
+
return (_jsx(View, { pointerEvents: portalPointerEvents, collapsable: !entry.syncContentTransform, style: [
|
|
230
|
+
styles.portalSurface,
|
|
231
|
+
{
|
|
232
|
+
left: entry.frame.x,
|
|
233
|
+
top: entry.frame.y,
|
|
234
|
+
width: entry.frame.width,
|
|
235
|
+
height: entry.frame.height,
|
|
236
|
+
},
|
|
237
|
+
], children: innerContent }));
|
|
238
|
+
}
|
|
239
|
+
return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, collapsable: !entry.syncContentTransform, style: [
|
|
240
|
+
styles.portalSurface,
|
|
241
|
+
{
|
|
242
|
+
left: entry.frame.x,
|
|
243
|
+
top: entry.frame.y,
|
|
244
|
+
width: entry.frame.width,
|
|
245
|
+
height: entry.frame.height,
|
|
246
|
+
},
|
|
247
|
+
entry.positioning === 'floating' ? entry.animatedStyle : undefined,
|
|
248
|
+
entry.portalOffsetStyle,
|
|
249
|
+
], children: innerContent }));
|
|
250
|
+
});
|
|
251
|
+
export const PortalFallbackSurface = React.memo(function PortalFallbackSurface({ entry, }) {
|
|
252
|
+
const runtime = useContext(GlassRuntimeContext);
|
|
253
|
+
if (!runtime)
|
|
254
|
+
return null;
|
|
255
|
+
const { tokens, dark } = runtime;
|
|
256
|
+
const portalPointerEvents = entry.interactive || entry.portalContent || entry.contentAboveGlass ? 'box-none' : 'none';
|
|
257
|
+
const material = tokens.materials[entry.variant];
|
|
258
|
+
const fallbackSurface = (_jsx(View, { pointerEvents: "none", style: [
|
|
259
|
+
styles.fallbackSurface,
|
|
260
|
+
entry.placement === 'layout'
|
|
261
|
+
? StyleSheet.absoluteFill
|
|
262
|
+
: { width: entry.frame.width > 0 ? entry.frame.width : undefined },
|
|
263
|
+
{
|
|
264
|
+
backgroundColor: dark ? tokens.fallbackTint.dark : tokens.fallbackTint.light,
|
|
265
|
+
borderColor: dark ? tokens.fallbackBorder.dark : tokens.fallbackBorder.light,
|
|
266
|
+
borderRadius: material.radius,
|
|
267
|
+
},
|
|
268
|
+
] }));
|
|
269
|
+
if (entry.placement === 'bottom' || entry.placement === 'center') {
|
|
270
|
+
return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, style: [
|
|
271
|
+
StyleSheet.absoluteFill,
|
|
272
|
+
entry.placement === 'center' ? styles.centerPlacement : styles.bottomPlacement,
|
|
273
|
+
entry.placement === 'bottom' && entry.bottomInset != null
|
|
274
|
+
? { paddingBottom: entry.bottomInset }
|
|
275
|
+
: undefined,
|
|
276
|
+
entry.animatedStyle,
|
|
277
|
+
entry.portalOffsetStyle,
|
|
278
|
+
], children: fallbackSurface }));
|
|
279
|
+
}
|
|
280
|
+
return (_jsx(Animated.View, { pointerEvents: portalPointerEvents, style: [
|
|
281
|
+
styles.portalSurface,
|
|
282
|
+
{
|
|
283
|
+
left: entry.frame.x,
|
|
284
|
+
top: entry.frame.y,
|
|
285
|
+
width: entry.frame.width,
|
|
286
|
+
height: entry.frame.height,
|
|
287
|
+
},
|
|
288
|
+
entry.animatedStyle,
|
|
289
|
+
entry.portalOffsetStyle,
|
|
290
|
+
], children: fallbackSurface }));
|
|
291
|
+
});
|
|
292
|
+
//# sourceMappingURL=PortalLayers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PortalLayers.js","sourceRoot":"","sources":["../../../src/surface/PortalLayers.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,QAAQ,EAAE,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,UAAU,uBAAuB,CAAC,EACpC,QAAQ,EACR,MAAM,GAIT;IACG,MAAM,OAAO,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC9C,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE;QACxB,MAAM,IAAI,GAMJ,EAAE,CAAC;QACT,MAAM,KAAK,G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,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe;gBAC9E,KAAK,CAAC,SAAS,KAAK,QAAQ,IAAI,KAAK,CAAC,WAAW,IAAI,IAAI;oBACrD,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,CAAC,WAAW,EAAE;oBACtC,CAAC,CAAC,SAAS;gBACf,KAAK,CAAC,aAAa;gBACnB,KAAK,CAAC,iBAAiB;aAC1B,YAEA,eAAe,GACJ,CACnB,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,QAAQ,CAAC,IAAI,IACV,aAAa,EAAE,mBAAmB,EAClC,KAAK,EAAE;YACH,MAAM,CAAC,aAAa;YACpB;gBACI,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBACnB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBAClB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK;gBACxB,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM;aAC7B;YACD,KAAK,CAAC,aAAa;YACnB,KAAK,CAAC,iBAAiB;SAC1B,YAEA,eAAe,GACJ,CACnB,CAAC;AACN,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useId, useMemo } from 'react';
|
|
3
|
+
import { Platform } from 'react-native';
|
|
4
|
+
import { GlassCaptureSourceView } from './NativeSurface';
|
|
5
|
+
import { styles } from './styles';
|
|
6
|
+
export const GlassRuntimeContext = createContext(null);
|
|
7
|
+
export const GlassCaptureSourceContext = createContext(null);
|
|
8
|
+
export const GlassRouteTransitionContext = createContext(null);
|
|
9
|
+
export const GlassPortalScrollContext = createContext({ offsets: [], layoutRevision: 0, groupKey: '' });
|
|
10
|
+
export const GlassMeasureOnlyContext = createContext(false);
|
|
11
|
+
/** Keeps backdrop surfaces aligned with content inside a scroll container. */
|
|
12
|
+
export function GlassPortalScrollScope({ scrollOffset, layoutRevision = 0, children, }) {
|
|
13
|
+
const scopeId = useId();
|
|
14
|
+
const parent = useContext(GlassPortalScrollContext);
|
|
15
|
+
const value = useMemo(() => ({
|
|
16
|
+
offsets: [...parent.offsets, scrollOffset],
|
|
17
|
+
layoutRevision: parent.layoutRevision + layoutRevision,
|
|
18
|
+
groupKey: parent.groupKey ? `${parent.groupKey}|${scopeId}` : scopeId,
|
|
19
|
+
}), [layoutRevision, parent, scopeId, scrollOffset]);
|
|
20
|
+
return _jsx(GlassPortalScrollContext.Provider, { value: value, children: children });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Shares a route's horizontal transition with portaled glass surfaces.
|
|
24
|
+
* Backdrop surfaces live in a host-level overlay, so an ancestor transform is
|
|
25
|
+
* not inherited automatically. This scope keeps their window frames and the
|
|
26
|
+
* visible React Native content on the same animation value.
|
|
27
|
+
*/
|
|
28
|
+
export function GlassRouteTransitionScope({ translateX, children, }) {
|
|
29
|
+
return (_jsx(GlassRouteTransitionContext.Provider, { value: translateX, children: children }));
|
|
30
|
+
}
|
|
31
|
+
export function useGlassReducedMotion() {
|
|
32
|
+
return useContext(GlassRuntimeContext)?.reducedMotion ?? false;
|
|
33
|
+
}
|
|
34
|
+
export function useGlassInsideScroll() {
|
|
35
|
+
return useContext(GlassPortalScrollContext).offsets.length > 0;
|
|
36
|
+
}
|
|
37
|
+
export function useGlassInsideCaptureScope() {
|
|
38
|
+
return useContext(GlassCaptureSourceContext) !== null;
|
|
39
|
+
}
|
|
40
|
+
export function useGlassAppearance() {
|
|
41
|
+
return useContext(GlassRuntimeContext);
|
|
42
|
+
}
|
|
43
|
+
/** Resolve the provider that represents the visible scene for a glass consumer. */
|
|
44
|
+
export function useGlassSamplingProviderId(source = 'routeScene') {
|
|
45
|
+
const host = useContext(GlassHostContext);
|
|
46
|
+
const captureSourceProviderId = useContext(GlassCaptureSourceContext);
|
|
47
|
+
if (!host)
|
|
48
|
+
return null;
|
|
49
|
+
return source === 'themeBackdrop'
|
|
50
|
+
? host.themeBackdropProviderId
|
|
51
|
+
: (captureSourceProviderId ?? host.routeSceneProviderId ?? host.themeBackdropProviderId);
|
|
52
|
+
}
|
|
53
|
+
export const GlassHostContext = createContext(null);
|
|
54
|
+
export function RouteGlassCaptureScope({ children, active = true, scopeId = 'page-content', }) {
|
|
55
|
+
const host = useContext(GlassHostContext);
|
|
56
|
+
const parentActive = useContext(GlassScopeActiveContext);
|
|
57
|
+
const parentProviderId = useContext(GlassCaptureSourceContext);
|
|
58
|
+
const baseId = parentProviderId ?? host?.providerId ?? null;
|
|
59
|
+
const providerId = baseId ? `${baseId}:${scopeId}` : null;
|
|
60
|
+
return (_jsx(GlassScopeActiveContext.Provider, { value: active && parentActive, children: _jsx(GlassCaptureSourceContext.Provider, { value: providerId, children: children }) }));
|
|
61
|
+
}
|
|
62
|
+
export function RouteGlassCaptureSource({ children, captureMode, captureOnly = false, sourceRevision, underlayProviderId, style, }) {
|
|
63
|
+
const host = useContext(GlassHostContext);
|
|
64
|
+
const runtime = useContext(GlassRuntimeContext);
|
|
65
|
+
const scopedProviderId = useContext(GlassCaptureSourceContext);
|
|
66
|
+
const scopeActive = useContext(GlassScopeActiveContext);
|
|
67
|
+
const inactiveId = useId();
|
|
68
|
+
// Pager siblings share a route-scene alias. A hidden page must retain its
|
|
69
|
+
// native tree without replacing the visible page in the provider registry.
|
|
70
|
+
const providerId = !scopeActive && scopedProviderId ? `${scopedProviderId}:inactive:${inactiveId}` : scopedProviderId;
|
|
71
|
+
if (!host || !providerId || !runtime?.tokens.enabled)
|
|
72
|
+
return _jsx(_Fragment, { children: children });
|
|
73
|
+
const resolvedCaptureMode = !scopeActive
|
|
74
|
+
? 'frozen'
|
|
75
|
+
: (captureMode ?? (Platform.OS === 'android' ? 'oneShotPassThrough' : 'live'));
|
|
76
|
+
const resolvedUnderlay = underlayProviderId === null
|
|
77
|
+
? undefined
|
|
78
|
+
: (underlayProviderId ?? host.routeSceneProviderId ?? host.themeBackdropProviderId);
|
|
79
|
+
return (_jsx(GlassCaptureSourceView, { providerId: providerId, underlayProviderId: resolvedUnderlay, captureMode: resolvedCaptureMode, captureOnly: captureOnly, sourceRevision: sourceRevision, pointerEvents: "box-none", style: [styles.captureSource, style], children: children }));
|
|
80
|
+
}
|
|
81
|
+
export const GlassOverlayHostContext = createContext(null);
|
|
82
|
+
/**
|
|
83
|
+
* Page-level scope for glass surfaces.
|
|
84
|
+
*
|
|
85
|
+
* Every page under a PagerView shares one provider id (`host.providerId +
|
|
86
|
+
* ':page-content'`) and one registry, and GlassSurfacePortalLayer draws every
|
|
87
|
+
* registered entry in a provider-level layer above page content. So a kept-alive
|
|
88
|
+
* page's surfaces paint on top of whichever page is actually visible: on Home
|
|
89
|
+
* that showed up as an empty 344x55dp panel under the search bar, which turned
|
|
90
|
+
* out to be the User page's segmented control.
|
|
91
|
+
*
|
|
92
|
+
* A surface whose scope is inactive stops publishing. Layout is untouched; only
|
|
93
|
+
* the registry entry goes away, so nothing is drawn for it.
|
|
94
|
+
*/
|
|
95
|
+
export const GlassScopeActiveContext = createContext(true);
|
|
96
|
+
//# sourceMappingURL=contexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contexts.js","sourceRoot":"","sources":["../../../src/surface/contexts.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAUxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAsB,IAAI,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAgB,IAAI,CAAC,CAAC;AAE5E,MAAM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C,uBAAuB,CAAC,CAAC;IAC5F,OAAO,CACH,KAAC,sBAAsB,IACnB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,gBAAgB,EACpC,WAAW,EAAE,mBAA6D,EAC1E,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAC,UAAU,EACxB,KAAK,EAAE,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,YAEnC,QAAQ,GACY,CAC5B,CAAC;AACN,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAsC,IAAI,CAAC,CAAC;AAEhG;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAU,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export function createEntryRegistry() {
|
|
3
|
+
const entries = new Map();
|
|
4
|
+
const listeners = new Set();
|
|
5
|
+
let snapshot = [];
|
|
6
|
+
const publish = () => {
|
|
7
|
+
snapshot = Array.from(entries.entries());
|
|
8
|
+
for (const listener of listeners)
|
|
9
|
+
listener();
|
|
10
|
+
};
|
|
11
|
+
return {
|
|
12
|
+
getSnapshot: () => snapshot,
|
|
13
|
+
subscribe: (listener) => {
|
|
14
|
+
listeners.add(listener);
|
|
15
|
+
return () => listeners.delete(listener);
|
|
16
|
+
},
|
|
17
|
+
update: (id, entry, equals) => {
|
|
18
|
+
const previous = entries.get(id);
|
|
19
|
+
if (previous !== undefined && equals(previous, entry))
|
|
20
|
+
return;
|
|
21
|
+
entries.set(id, entry);
|
|
22
|
+
publish();
|
|
23
|
+
},
|
|
24
|
+
remove: (id) => {
|
|
25
|
+
if (!entries.delete(id))
|
|
26
|
+
return;
|
|
27
|
+
publish();
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function useRegistrySnapshot(registry) {
|
|
32
|
+
return React.useSyncExternalStore(registry.subscribe, registry.getSnapshot, registry.getSnapshot);
|
|
33
|
+
}
|
|
34
|
+
export function sameSurface(previous, next) {
|
|
35
|
+
return (previous.frame.x === next.frame.x &&
|
|
36
|
+
previous.frame.y === next.frame.y &&
|
|
37
|
+
previous.frame.width === next.frame.width &&
|
|
38
|
+
previous.frame.height === next.frame.height &&
|
|
39
|
+
previous.positioning === next.positioning &&
|
|
40
|
+
previous.samplingSource === next.samplingSource &&
|
|
41
|
+
previous.samplingProviderId === next.samplingProviderId &&
|
|
42
|
+
previous.tintColor === next.tintColor &&
|
|
43
|
+
previous.portalContent === next.portalContent &&
|
|
44
|
+
previous.contentAboveGlass === next.contentAboveGlass &&
|
|
45
|
+
previous.content === next.content &&
|
|
46
|
+
previous.contentStyle === next.contentStyle &&
|
|
47
|
+
previous.variant === next.variant &&
|
|
48
|
+
previous.interactive === next.interactive &&
|
|
49
|
+
previous.continuous === next.continuous &&
|
|
50
|
+
previous.sharedSource === next.sharedSource &&
|
|
51
|
+
previous.captureProbe === next.captureProbe &&
|
|
52
|
+
previous.opticalProgress === next.opticalProgress &&
|
|
53
|
+
previous.scrollGroupKey === next.scrollGroupKey &&
|
|
54
|
+
previous.scrollOffsets === next.scrollOffsets &&
|
|
55
|
+
previous.routeTransitionX === next.routeTransitionX &&
|
|
56
|
+
previous.portalOffsetStyle === next.portalOffsetStyle &&
|
|
57
|
+
previous.portalTranslateX === next.portalTranslateX &&
|
|
58
|
+
previous.portalTranslateY === next.portalTranslateY &&
|
|
59
|
+
previous.portalScaleX === next.portalScaleX &&
|
|
60
|
+
previous.portalScaleY === next.portalScaleY &&
|
|
61
|
+
previous.pointerEvent === next.pointerEvent &&
|
|
62
|
+
previous.pointerEventValue === next.pointerEventValue &&
|
|
63
|
+
previous.pointerEventSink === next.pointerEventSink &&
|
|
64
|
+
previous.valueEvent === next.valueEvent &&
|
|
65
|
+
previous.valueEventSink === next.valueEventSink &&
|
|
66
|
+
previous.opticalToggleFraction === next.opticalToggleFraction &&
|
|
67
|
+
previous.opticalProgressValue === next.opticalProgressValue &&
|
|
68
|
+
previous.opticalPointX === next.opticalPointX &&
|
|
69
|
+
previous.opticalPointY === next.opticalPointY &&
|
|
70
|
+
previous.opticalMotionX === next.opticalMotionX &&
|
|
71
|
+
previous.opticalMotionY === next.opticalMotionY &&
|
|
72
|
+
previous.opticalVelocityX === next.opticalVelocityX &&
|
|
73
|
+
previous.opticalVelocityY === next.opticalVelocityY &&
|
|
74
|
+
previous.materialOverrides === next.materialOverrides &&
|
|
75
|
+
previous.displacementOnlyDebug === next.displacementOnlyDebug &&
|
|
76
|
+
previous.syncContentTransform === next.syncContentTransform &&
|
|
77
|
+
previous.shapeMaskText === next.shapeMaskText &&
|
|
78
|
+
previous.shapeMaskFontSize === next.shapeMaskFontSize &&
|
|
79
|
+
previous.shapeMaskFontWeight === next.shapeMaskFontWeight &&
|
|
80
|
+
previous.progressiveBlurIntensity === next.progressiveBlurIntensity &&
|
|
81
|
+
previous.animatedStyle === next.animatedStyle &&
|
|
82
|
+
previous.placement === next.placement &&
|
|
83
|
+
previous.bottomInset === next.bottomInset &&
|
|
84
|
+
previous.zIndex === next.zIndex);
|
|
85
|
+
}
|
|
86
|
+
export function sameOverlay(previous, next) {
|
|
87
|
+
return (previous.children === next.children &&
|
|
88
|
+
previous.style === next.style &&
|
|
89
|
+
previous.frame?.x === next.frame?.x &&
|
|
90
|
+
previous.frame?.y === next.frame?.y &&
|
|
91
|
+
previous.frame?.width === next.frame?.width &&
|
|
92
|
+
previous.frame?.height === next.frame?.height &&
|
|
93
|
+
previous.scrollOffsets === next.scrollOffsets &&
|
|
94
|
+
previous.routeTransitionX === next.routeTransitionX &&
|
|
95
|
+
previous.portalOffsetStyle === next.portalOffsetStyle &&
|
|
96
|
+
previous.zIndex === next.zIndex);
|
|
97
|
+
}
|
|
98
|
+
export function selectBalancedShaderSurfaces(entries) {
|
|
99
|
+
// Every mounted backdrop surface keeps the same renderer regardless of
|
|
100
|
+
// quality preset; display cadence is selected by the native provider.
|
|
101
|
+
return new Set(entries.map(([id]) => id));
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/surface/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,MAAM,UAAU,mBAAmB;IAC/B,MAAM,OAAO,GAAG,IAAI,GAAG,EAAiB,CAAC;IACzC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAc,CAAC;IACxC,IAAI,QAAQ,GAAsB,EAAE,CAAC;IACrC,MAAM,OAAO,GAAG,GAAG,EAAE;QACjB,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QACzC,KAAK,MAAM,QAAQ,IAAI,SAAS;YAAE,QAAQ,EAAE,CAAC;IACjD,CAAC,CAAC;IACF,OAAO;QACH,WAAW,EAAE,GAAG,EAAE,CAAC,QAAQ;QAC3B,SAAS,EAAE,CAAC,QAAQ,EAAE,EAAE;YACpB,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxB,OAAO,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC5C,CAAC;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YAC1B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACjC,IAAI,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC;gBAAE,OAAO;YAC9D,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;YACvB,OAAO,EAAE,CAAC;QACd,CAAC;QACD,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE;YACX,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;g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AAM,UAAU,4BAA4B,CAAC,OAAiC;IAC1E,uEAAuE;IACvE,sEAAsE;IACtE,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
export const styles = StyleSheet.create({
|
|
3
|
+
root: { flex: 1 },
|
|
4
|
+
routeContent: { ...StyleSheet.flatten(StyleSheet.absoluteFill) },
|
|
5
|
+
measureOnly: {},
|
|
6
|
+
localSurface: { position: 'relative', overflow: 'hidden' },
|
|
7
|
+
// In-flow local surfaces wrap their content by default. A default flex:1
|
|
8
|
+
// makes controls inside a virtualized list header consume the viewport,
|
|
9
|
+
// pushing the actual feed cells below the visible area. Callers that need
|
|
10
|
+
// a filling surface opt into flex through contentStyle.
|
|
11
|
+
localContent: { overflow: 'hidden' },
|
|
12
|
+
portalSurface: { position: 'absolute', overflow: 'visible' },
|
|
13
|
+
portalContentOverlay: { alignItems: 'center', justifyContent: 'center', overflow: 'hidden' },
|
|
14
|
+
contentAboveGlass: { overflow: 'hidden' },
|
|
15
|
+
contentAboveGlassMeasure: { alignSelf: 'stretch' },
|
|
16
|
+
nativeSurface: { backgroundColor: 'transparent', overflow: 'hidden' },
|
|
17
|
+
fallbackSurface: {
|
|
18
|
+
backgroundColor: 'transparent',
|
|
19
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
},
|
|
22
|
+
portalContentLayout: { flex: 1, overflow: 'hidden' },
|
|
23
|
+
portalContentWrap: { flexGrow: 1, flexShrink: 1, overflow: 'hidden' },
|
|
24
|
+
portalContentIntrinsic: { alignSelf: 'stretch', overflow: 'hidden' },
|
|
25
|
+
captureSource: { flex: 1 },
|
|
26
|
+
inlineBackdropSurface: { flex: 1 },
|
|
27
|
+
inlineBackdropIntrinsicSurface: { flexGrow: 1 },
|
|
28
|
+
bottomPlacement: { alignItems: 'center', justifyContent: 'flex-end' },
|
|
29
|
+
centerPlacement: { alignItems: 'center', justifyContent: 'center' },
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=styles.js.map
|