@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 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.js","sourceRoot":"","sources":["../../../src/primitives/Divider.tsx"],"names":[],"mappings":";;;;AAAA,oCAAoC;AACpC,iCAA6B;AAC7B,+CAAoC;AAYpC;;;;;;;;GAQG;AACU,QAAA,OAAO,GAAG,IAAA,YAAI,EAAC,SAAS,OAAO,CAAC,EAAE,WAAW,GAAG,YAAY,EAAE,SAAS,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,EAAmB;IACxH,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACzB,MAAM,YAAY,GAAG,WAAW,KAAK,YAAY,CAAC;IAClD,OAAO,CACH,uBAAC,mBAAI,IACD,KAAK,EAAE;YACH;gBACI,eAAe,EAAE,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,WAAW;gBAClD,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aAC3E;YACD,YAAY;gBACR,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;gBACtC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;YAC1C,KAAK;SACR,GACH,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AACH,eAAO,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Icon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const vector_icons_1 = require("@expo/vector-icons");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
/**
|
|
8
|
+
* Design System Icon — the only icon entry point business pages use.
|
|
9
|
+
*
|
|
10
|
+
* The underlying glyph set is @expo/vector-icons MaterialCommunityIcons for now
|
|
11
|
+
* (task §57); Miuix Icons can slot in behind the same props later without
|
|
12
|
+
* touching callers.
|
|
13
|
+
*/
|
|
14
|
+
exports.Icon = (0, react_1.memo)(function Icon({ name, source, size = 24, color, opacity, disabled, weight, style }) {
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(vector_icons_1.MaterialCommunityIcons
|
|
16
|
+
// `weight` is accepted but not applicable to MaterialCommunityIcons yet.
|
|
17
|
+
, {
|
|
18
|
+
// `weight` is accepted but not applicable to MaterialCommunityIcons yet.
|
|
19
|
+
name: (name ?? source), size: size, color: color, style: [opacity != null ? { opacity } : undefined, disabled ? { opacity: 0.38 } : undefined, style] }));
|
|
20
|
+
});
|
|
21
|
+
exports.Icon.displayName = 'HyperIcon';
|
|
22
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/primitives/Icon.tsx"],"names":[],"mappings":";;;;AAAA,qDAA4D;AAE5D,iCAA6B;AAuB7B;;;;;;GAMG;AACU,QAAA,IAAI,GAAG,IAAA,YAAI,EAAC,SAAS,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAgB;IACrH,OAAO,CACH,uBAAC,qCAAsB;IACnB,yEAAyE;;QAAzE,yEAAyE;QACzE,IAAI,EAAE,CAAC,IAAI,IAAI,MAAM,CAAa,EAClC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,GACrG,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AACH,YAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.PressIndication = PressIndication;
|
|
37
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
const react_native_1 = require("react-native");
|
|
39
|
+
const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
40
|
+
const motion_1 = require("../motion");
|
|
41
|
+
/**
|
|
42
|
+
* MiuixIndication alpha overlay — the standard press feedback.
|
|
43
|
+
*
|
|
44
|
+
* Visual reference:
|
|
45
|
+
* miuix-vue/src/components/basic-component/BasicComponent.vue (::after overlay)
|
|
46
|
+
*
|
|
47
|
+
* Mobile behavior (task §23): normal 0, pressed 0.10, animated 120ms linear.
|
|
48
|
+
* Web adds hover 0.06 / focus 0.08 additively — mobile keeps press only.
|
|
49
|
+
*
|
|
50
|
+
* Implemented as an absolute-filled overlay View (RN has no ::after).
|
|
51
|
+
*/
|
|
52
|
+
function PressIndication({ pressed, color, radius, style, intensity = 0.1 }) {
|
|
53
|
+
const animatedStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => ({
|
|
54
|
+
opacity: (0, react_native_reanimated_1.withTiming)(pressed.value * intensity, motion_1.pressIndication),
|
|
55
|
+
}));
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { pointerEvents: "none", style: [react_native_1.StyleSheet.absoluteFill, { backgroundColor: color }, radius != null ? { borderRadius: radius } : undefined, animatedStyle, style] }));
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=PressIndication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressIndication.js","sourceRoot":"","sources":["../../../src/primitives/PressIndication.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,0CAWC;;AAzCD,+CAA0C;AAE1C,mFAAiF;AAEjF,sCAA4C;AAe5C;;;;;;;;;;GAUG;AACH,SAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,GAAG,EAAwB;IACpG,MAAM,aAAa,GAAG,IAAA,0CAAgB,EAAC,GAAG,EAAE,CAAC,CAAC;QAC1C,OAAO,EAAE,IAAA,oCAAU,EAAC,OAAO,CAAC,KAAK,GAAG,SAAS,EAAE,wBAAe,CAAC;KAClE,CAAC,CAAC,CAAC;IAEJ,OAAO,CACH,uBAAC,iCAAQ,CAAC,IAAI,IACV,aAAa,EAAC,MAAM,EACpB,KAAK,EAAE,CAAC,yBAAU,CAAC,YAAY,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,KAAK,CAAC,GAC3I,CACL,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Pressable = Pressable;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_native_1 = require("react-native");
|
|
6
|
+
const react_native_reanimated_1 = require("react-native-reanimated");
|
|
7
|
+
const theme_1 = require("../theme");
|
|
8
|
+
const PressIndication_1 = require("./PressIndication");
|
|
9
|
+
/** Generic Hyper tap surface for interactions without a semantic Button/ListRow/Card. */
|
|
10
|
+
function Pressable({ showIndication = true, indicationColor, indicationRadius, disabled, ...rest }) {
|
|
11
|
+
if (!showIndication || disabled || (!rest.onPress && !rest.onLongPress)) {
|
|
12
|
+
return (0, jsx_runtime_1.jsx)(react_native_1.Pressable, { ...rest, disabled: disabled });
|
|
13
|
+
}
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(InteractivePressable, { ...rest, disabled: disabled, indicationColor: indicationColor, indicationRadius: indicationRadius }));
|
|
15
|
+
}
|
|
16
|
+
function InteractivePressable({ indicationColor, indicationRadius, onPressIn, onPressOut, disabled, children, ...rest }) {
|
|
17
|
+
const theme = (0, theme_1.useTheme)();
|
|
18
|
+
const pressed = (0, react_native_reanimated_1.useSharedValue)(0);
|
|
19
|
+
const renderChildren = (state) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [typeof children === 'function' ? children(state) : children, (0, jsx_runtime_1.jsx)(PressIndication_1.PressIndication, { pressed: pressed, color: indicationColor ?? theme.colors.onBackground, radius: indicationRadius })] }));
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { ...rest, disabled: disabled, onPressIn: (event) => {
|
|
21
|
+
pressed.value = 1;
|
|
22
|
+
onPressIn?.(event);
|
|
23
|
+
}, onPressOut: (event) => {
|
|
24
|
+
pressed.value = 0;
|
|
25
|
+
onPressOut?.(event);
|
|
26
|
+
}, children: renderChildren }));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=Pressable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../../../src/primitives/Pressable.tsx"],"names":[],"mappings":";;AAeA,8BAmBC;;AAjCD,+CAA4D;AAE5D,qEAAyD;AACzD,oCAAoC;AACpC,uDAAoD;AASpD,yFAAyF;AACzF,SAAgB,SAAS,CAAC,EACtB,cAAc,GAAG,IAAI,EACrB,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,GAAG,IAAI,EACS;IAChB,IAAI,CAAC,cAAc,IAAI,QAAQ,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QACtE,OAAO,uBAAC,wBAAe,OAAK,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAC;IAC7D,CAAC;IAED,OAAO,CACH,uBAAC,oBAAoB,OACb,IAAI,EACR,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CAAC;AACN,CAAC;AAED,SAAS,oBAAoB,CAAC,EAC1B,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,GAAG,IAAI,EACiC;IACxC,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACzB,MAAM,OAAO,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IAClC,MAAM,cAAc,GAAG,CAAC,KAAiC,EAAE,EAAE,CAAC,CAC1D,6DACK,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,EAC5D,uBAAC,iCAAe,IACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,eAAe,IAAI,KAAK,CAAC,MAAM,CAAC,YAAY,EACnD,MAAM,EAAE,gBAAgB,GAC1B,IACH,CACN,CAAC;IAEF,OAAO,CACH,uBAAC,wBAAe,OACR,IAAI,EACR,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;YAClB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,EACD,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;YAClB,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC,YAEA,cAAc,GACD,CACrB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.PressableScale = PressableScale;
|
|
37
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
const react_native_1 = require("react-native");
|
|
39
|
+
const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
40
|
+
const motion_1 = require("../motion");
|
|
41
|
+
const MotionProvider_1 = require("../motion/MotionProvider");
|
|
42
|
+
/**
|
|
43
|
+
* Pressable that scales down while pressed with a folme spring.
|
|
44
|
+
*
|
|
45
|
+
* ⚠️ Use ONLY where the Miuix reference specifies a scale press feedback
|
|
46
|
+
* (Card sink, Switch / Slider thumb). Do not wire this globally — Miuix
|
|
47
|
+
* buttons and list rows use the alpha overlay (PressIndication), not scale.
|
|
48
|
+
*/
|
|
49
|
+
function PressableScale({ scale = 0.94, springConfig = motion_1.cardSink, onPressIn, onPressOut, disabled, style, children, ...rest }) {
|
|
50
|
+
const pressed = (0, react_native_reanimated_1.useSharedValue)(0);
|
|
51
|
+
const reducedMotion = (0, MotionProvider_1.useReducedMotionPreference)();
|
|
52
|
+
const animatedStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => ({
|
|
53
|
+
transform: [{ scale: reducedMotion ? 1 : (0, react_native_reanimated_1.withSpring)(pressed.value === 1 ? scale : 1, springConfig) }],
|
|
54
|
+
}));
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { ...rest, disabled: disabled, onPressIn: (e) => {
|
|
56
|
+
if (!disabled)
|
|
57
|
+
pressed.value = 1;
|
|
58
|
+
onPressIn?.(e);
|
|
59
|
+
}, onPressOut: (e) => {
|
|
60
|
+
pressed.value = 0;
|
|
61
|
+
onPressOut?.(e);
|
|
62
|
+
}, children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: [style, animatedStyle], children: children }) }));
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=PressableScale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PressableScale.js","sourceRoot":"","sources":["../../../src/primitives/PressableScale.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,wCAwBC;;AA/CD,+CAAyC;AAEzC,mFAAiG;AAEjG,sCAAqC;AACrC,6DAAsE;AAWtE;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,YAAY,GAAG,iBAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAuB;IACpJ,MAAM,OAAO,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IAClC,MAAM,aAAa,GAAG,IAAA,2CAA0B,GAAE,CAAC;IAEnD,MAAM,aAAa,GAAG,IAAA,0CAAgB,EAAC,GAAG,EAAE,CAAC,CAAC;QAC1C,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,oCAAU,EAAC,OAAO,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC;KACxG,CAAC,CAAC,CAAC;IAEJ,OAAO,CACH,uBAAC,wBAAS,OACF,IAAI,EACR,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,IAAI,CAAC,QAAQ;gBAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;YACjC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC,EACD,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE;YACd,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;YAClB,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,YAED,uBAAC,iCAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,YAAG,QAAQ,GAAiB,GAChE,CACf,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Surface = void 0;
|
|
40
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
+
const theme_1 = require("../theme");
|
|
42
|
+
const react_1 = __importStar(require("react"));
|
|
43
|
+
const GlassSurface_1 = require("../GlassSurface");
|
|
44
|
+
const react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
|
|
45
|
+
const react_native_1 = require("react-native");
|
|
46
|
+
/**
|
|
47
|
+
* Design System Surface — themed material without press semantics.
|
|
48
|
+
*
|
|
49
|
+
* Defaults to a plain solid surface for compatibility. Glass is a material
|
|
50
|
+
* choice only; callers add Pressable behavior separately when the content acts.
|
|
51
|
+
*/
|
|
52
|
+
exports.Surface = react_1.default.memo(function Surface({ color, backgroundColor, radius = 0, material = 'solid', glassVariant = 'card', surfaceRole = 'staticGroup', sampling = 'local', samplingSource = 'routeScene', inlineBackdrop = false, borderColor = 'transparent', borderWidth = 0, contentStyle, animatedStyle, centeredTransformOrigin, children, style, }) {
|
|
53
|
+
const theme = (0, theme_1.useTheme)();
|
|
54
|
+
const glassStyle = (0, react_1.useMemo)(() => {
|
|
55
|
+
const flattened = react_native_1.StyleSheet.flatten(style);
|
|
56
|
+
if (!flattened || !('backgroundColor' in flattened))
|
|
57
|
+
return style;
|
|
58
|
+
const layoutStyle = { ...flattened };
|
|
59
|
+
delete layoutStyle.backgroundColor;
|
|
60
|
+
return layoutStyle;
|
|
61
|
+
}, [style]);
|
|
62
|
+
const flattenedContentStyle = (0, react_1.useMemo)(() => react_native_1.StyleSheet.flatten(contentStyle), [contentStyle]);
|
|
63
|
+
const glassContentStyle = (0, react_1.useMemo)(() => {
|
|
64
|
+
if (!flattenedContentStyle || !('backgroundColor' in flattenedContentStyle))
|
|
65
|
+
return contentStyle;
|
|
66
|
+
const layoutStyle = { ...flattenedContentStyle };
|
|
67
|
+
delete layoutStyle.backgroundColor;
|
|
68
|
+
return layoutStyle;
|
|
69
|
+
}, [contentStyle, flattenedContentStyle]);
|
|
70
|
+
const glassSizingStyle = (0, react_1.useMemo)(() => {
|
|
71
|
+
if (!flattenedContentStyle)
|
|
72
|
+
return undefined;
|
|
73
|
+
const containerStyle = {};
|
|
74
|
+
const sizingKeys = [
|
|
75
|
+
'flex', 'flexGrow', 'flexShrink', 'flexBasis', 'alignSelf',
|
|
76
|
+
'width', 'height', 'minWidth', 'maxWidth', 'minHeight', 'maxHeight',
|
|
77
|
+
];
|
|
78
|
+
for (const key of sizingKeys) {
|
|
79
|
+
const value = flattenedContentStyle[key];
|
|
80
|
+
if (value !== undefined) {
|
|
81
|
+
containerStyle[key] = value;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return containerStyle;
|
|
85
|
+
}, [flattenedContentStyle]);
|
|
86
|
+
const resolvedBackground = backgroundColor ?? color ?? theme.colors.surface;
|
|
87
|
+
const centeredOriginStyle = centeredTransformOrigin ? { transformOrigin: '50% 50%' } : undefined;
|
|
88
|
+
const resolvedSolidContentStyle = material === 'overlayTint' ? glassContentStyle : contentStyle;
|
|
89
|
+
if (material === 'glass') {
|
|
90
|
+
return ((0, jsx_runtime_1.jsx)(GlassSurface_1.GlassSurface, { variant: glassVariant, surfaceRole: surfaceRole, positioning: "inFlow", sampling: sampling, samplingSource: samplingSource, inlineBackdrop: inlineBackdrop, intrinsicInlineBackdrop: inlineBackdrop, contentPlacement: "aboveGlass", style: [
|
|
91
|
+
{
|
|
92
|
+
width: '100%',
|
|
93
|
+
borderRadius: radius,
|
|
94
|
+
overflow: 'hidden',
|
|
95
|
+
backgroundColor: 'transparent',
|
|
96
|
+
borderWidth,
|
|
97
|
+
borderColor,
|
|
98
|
+
},
|
|
99
|
+
glassSizingStyle,
|
|
100
|
+
centeredOriginStyle,
|
|
101
|
+
glassStyle,
|
|
102
|
+
], contentStyle: glassContentStyle, animatedStyle: animatedStyle, children: children }));
|
|
103
|
+
}
|
|
104
|
+
const solidStyle = [
|
|
105
|
+
{
|
|
106
|
+
backgroundColor: resolvedBackground,
|
|
107
|
+
borderRadius: radius,
|
|
108
|
+
overflow: 'hidden',
|
|
109
|
+
flexDirection: 'column',
|
|
110
|
+
borderWidth,
|
|
111
|
+
borderColor,
|
|
112
|
+
},
|
|
113
|
+
centeredOriginStyle,
|
|
114
|
+
resolvedSolidContentStyle,
|
|
115
|
+
style,
|
|
116
|
+
];
|
|
117
|
+
return animatedStyle
|
|
118
|
+
? (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: [solidStyle, animatedStyle], children: children })
|
|
119
|
+
: (0, jsx_runtime_1.jsx)(react_native_1.View, { style: solidStyle, children: children });
|
|
120
|
+
});
|
|
121
|
+
exports.Surface.displayName = 'HyperSurface';
|
|
122
|
+
//# sourceMappingURL=Surface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Surface.js","sourceRoot":"","sources":["../../../src/primitives/Surface.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,+CAAuC;AAEvC,kDAA+C;AAG/C,sFAA+C;AAE/C,+CAAgD;AAuDhD;;;;;GAKG;AACU,QAAA,OAAO,GAAG,eAAK,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,EAC/C,KAAK,EACL,eAAe,EACf,MAAM,GAAG,CAAC,EACV,QAAQ,GAAG,OAAO,EAClB,YAAY,GAAG,MAAM,EACrB,WAAW,GAAG,aAAa,EAC3B,QAAQ,GAAG,OAAO,EAClB,cAAc,GAAG,YAAY,EAC7B,cAAc,GAAG,KAAK,EACtB,WAAW,GAAG,aAAa,EAC3B,WAAW,GAAG,CAAC,EACf,YAAY,EACZ,aAAa,EACb,uBAAuB,EACvB,QAAQ,EACR,KAAK,GACS;IACd,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACzB,MAAM,UAAU,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC5B,MAAM,SAAS,GAAG,yBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,iBAAiB,IAAI,SAAS,CAAC;YAAE,OAAO,KAAK,CAAC;QAClE,MAAM,WAAW,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;QACrC,OAAO,WAAW,CAAC,eAAe,CAAC;QACnC,OAAO,WAAW,CAAC;IACvB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACZ,MAAM,qBAAqB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,yBAAU,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAC9F,MAAM,iBAAiB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACnC,IAAI,CAAC,qBAAqB,IAAI,CAAC,CAAC,iBAAiB,IAAI,qBAAqB,CAAC;YAAE,OAAO,YAAY,CAAC;QACjG,MAAM,WAAW,GAAG,EAAE,GAAG,qBAAqB,EAAE,CAAC;QACjD,OAAO,WAAW,CAAC,eAAe,CAAC;QACnC,OAAO,WAAW,CAAC;IACvB,CAAC,EAAE,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAC1C,MAAM,gBAAgB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAClC,IAAI,CAAC,qBAAqB;YAAE,OAAO,SAAS,CAAC;QAC7C,MAAM,cAAc,GAAc,EAAE,CAAC;QACrC,MAAM,UAAU,GAA2B;YACvC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW;YAC1D,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW;SACtE,CAAC;QACF,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;YAC3B,MAAM,KAAK,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC;YACzC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACrB,cAA0C,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YAC7D,CAAC;QACL,CAAC;QACD,OAAO,cAAc,CAAC;IAC1B,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC5B,MAAM,kBAAkB,GAAG,eAAe,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5E,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,SAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1G,MAAM,yBAAyB,GAAG,QAAQ,KAAK,aAAa,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC;IAEhG,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,CACH,uBAAC,2BAAY,IACT,OAAO,EAAE,YAAY,EACrB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAC,QAAQ,EACpB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,uBAAuB,EAAE,cAAc,EACvC,gBAAgB,EAAC,YAAY,EAC7B,KAAK,EAAE;gBACH;oBACI,KAAK,EAAE,MAAM;oBACb,YAAY,EAAE,MAAM;oBACpB,QAAQ,EAAE,QAAQ;oBAClB,eAAe,EAAE,aAAa;oBAC9B,WAAW;oBACX,WAAW;iBACd;gBACD,gBAAgB;gBAChB,mBAAmB;gBACnB,UAAU;aACb,EACD,YAAY,EAAE,iBAAiB,EAC/B,aAAa,EAAE,aAAa,YAE3B,QAAQ,GACE,CAClB,CAAC;IACN,CAAC;IAED,MAAM,UAAU,GAAyB;QACrC;YACI,eAAe,EAAE,kBAAkB;YACnC,YAAY,EAAE,MAAM;YACpB,QAAQ,EAAE,QAAiB;YAC3B,aAAa,EAAE,QAAiB;YAChC,WAAW;YACX,WAAW;SACd;QACD,mBAAmB;QACnB,yBAAyB;QACzB,KAAK;KACR,CAAC;IACF,OAAO,aAAa;QAChB,CAAC,CAAC,uBAAC,iCAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC,YAAG,QAAQ,GAAiB;QAC/E,CAAC,CAAC,uBAAC,mBAAI,IAAC,KAAK,EAAE,UAAU,YAAG,QAAQ,GAAQ,CAAC;AACrD,CAAC,CAAC,CAAC;AACH,eAAO,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Text = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const theme_1 = require("../theme");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const react_native_1 = require("react-native");
|
|
8
|
+
const WEIGHT_MAP = {
|
|
9
|
+
normal: '400',
|
|
10
|
+
medium: '500',
|
|
11
|
+
semibold: '600',
|
|
12
|
+
bold: '700',
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Design System Text.
|
|
16
|
+
*
|
|
17
|
+
* Visual reference:
|
|
18
|
+
* miuix-vue/src/components/text/Text.vue (TextStyles.kt presets)
|
|
19
|
+
*
|
|
20
|
+
* Resolution precedence: explicit props > style preset > theme default.
|
|
21
|
+
*/
|
|
22
|
+
exports.Text = (0, react_1.memo)(function Text({ type = 'main', weight, color, size, align, style, children, ...rest }) {
|
|
23
|
+
const theme = (0, theme_1.useTheme)();
|
|
24
|
+
const preset = theme.typography[type];
|
|
25
|
+
const resolvedWeight = weight != null
|
|
26
|
+
? typeof weight === 'number'
|
|
27
|
+
? String(weight)
|
|
28
|
+
: WEIGHT_MAP[weight]
|
|
29
|
+
: preset.fontWeight;
|
|
30
|
+
const resolvedLineHeight = preset.lineHeightRatio != null ? Math.round(preset.fontSize * preset.lineHeightRatio) : preset.lineHeight;
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Text, { ...rest, style: [
|
|
32
|
+
{
|
|
33
|
+
color: color ?? theme.colors.onSurface,
|
|
34
|
+
fontSize: size ?? preset.fontSize,
|
|
35
|
+
fontWeight: resolvedWeight,
|
|
36
|
+
textAlign: align,
|
|
37
|
+
lineHeight: resolvedLineHeight,
|
|
38
|
+
},
|
|
39
|
+
style,
|
|
40
|
+
], children: children }));
|
|
41
|
+
});
|
|
42
|
+
exports.Text.displayName = 'HyperText';
|
|
43
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/primitives/Text.tsx"],"names":[],"mappings":";;;;AAAA,oCAAoC;AACpC,iCAA6B;AAE7B,+CAA8C;AAY9C,MAAM,UAAU,GAA4C;IACxD,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,KAAK;CACd,CAAC;AAoBF;;;;;;;GAOG;AACU,QAAA,IAAI,GAAG,IAAA,YAAI,EAAC,SAAS,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAgB;IACxH,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACzB,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAEtC,MAAM,cAAc,GAChB,MAAM,IAAI,IAAI;QACV,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ;YACxB,CAAC,CAAC,MAAM,CAAC,MAAM,CAA4B;YAC3C,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;QACxB,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;IAE5B,MAAM,kBAAkB,GAAG,MAAM,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;IAErI,OAAO,CACH,uBAAC,mBAAM,OACC,IAAI,EACR,KAAK,EAAE;YACH;gBACI,KAAK,EAAE,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS;gBACtC,QAAQ,EAAE,IAAI,IAAI,MAAM,CAAC,QAAQ;gBACjC,UAAU,EAAE,cAAc;gBAC1B,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE,kBAAkB;aACjC;YACD,KAAK;SACR,YAEA,QAAQ,GACJ,CACZ,CAAC;AACN,CAAC,CAAC,CAAC;AACH,YAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PressableScale = exports.Pressable = exports.PressIndication = exports.Divider = exports.Surface = exports.Icon = exports.Text = void 0;
|
|
4
|
+
var Text_1 = require("./Text");
|
|
5
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
|
6
|
+
var Icon_1 = require("./Icon");
|
|
7
|
+
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
|
|
8
|
+
var Surface_1 = require("./Surface");
|
|
9
|
+
Object.defineProperty(exports, "Surface", { enumerable: true, get: function () { return Surface_1.Surface; } });
|
|
10
|
+
var Divider_1 = require("./Divider");
|
|
11
|
+
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return Divider_1.Divider; } });
|
|
12
|
+
var PressIndication_1 = require("./PressIndication");
|
|
13
|
+
Object.defineProperty(exports, "PressIndication", { enumerable: true, get: function () { return PressIndication_1.PressIndication; } });
|
|
14
|
+
var Pressable_1 = require("./Pressable");
|
|
15
|
+
Object.defineProperty(exports, "Pressable", { enumerable: true, get: function () { return Pressable_1.Pressable; } });
|
|
16
|
+
var PressableScale_1 = require("./PressableScale");
|
|
17
|
+
Object.defineProperty(exports, "PressableScale", { enumerable: true, get: function () { return PressableScale_1.PressableScale; } });
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/primitives/index.ts"],"names":[],"mappings":";;;AAAA,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAEb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAEb,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAEhB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAEhB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AAExB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAElB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setSurfaceRendererPolicyOverride = exports.getSurfaceRendererPolicyOverride = exports.getSurfaceRendererPolicy = exports.setLocalGlassVisibleItemCount = exports.setLocalGlassTelemetryEnabled = exports.setLocalGlassNativeEngine = exports.setLocalGlassHardwareLayerExperimentEnabled = exports.getLocalGlassTelemetry = exports.getLocalGlassNativeEngine = exports.setLiquidGlassPerformanceTelemetryEnabled = exports.getLiquidGlassPerformanceStats = exports.beginEffectiveScrollFpsSession = exports.LiquidGlassProvider = exports.GlassTabLens = exports.GLASS_TAB_BAR_CONTENT_INSET = exports.GlassTabBar = exports.setGlassRuntime = exports.getGlassRuntime = exports.setGlassNativeEngine = exports.getGlassNativeEngine = exports.setSharedPassProbe = exports.setSharedPassEnabled = exports.glassController = exports.useGlassPressMotion = exports.useGlassReducedMotion = exports.useGlassProviderId = exports.useGlassAppearance = exports.RouteGlassCaptureSource = exports.RouteGlassCaptureScope = exports.GlassSurface = exports.GlassOverlay = exports.GlassMaterialProvider = exports.GlassAppearanceProvider = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Advanced renderer entry point.
|
|
6
|
+
*
|
|
7
|
+
* Import from `@luckylca/react-native-liquid-glass/renderer` when you need the
|
|
8
|
+
* low-level glass surface, native engine controls or telemetry directly
|
|
9
|
+
* instead of the standard control set. Everything here is also exported from
|
|
10
|
+
* the package root; this subpath exists so a renderer-only consumer — a
|
|
11
|
+
* native benchmark harness, for example — can depend on the optical API
|
|
12
|
+
* without pulling the whole control kit into its module graph.
|
|
13
|
+
*/
|
|
14
|
+
var GlassSurface_1 = require("./GlassSurface");
|
|
15
|
+
Object.defineProperty(exports, "GlassAppearanceProvider", { enumerable: true, get: function () { return GlassSurface_1.GlassAppearanceProvider; } });
|
|
16
|
+
Object.defineProperty(exports, "GlassMaterialProvider", { enumerable: true, get: function () { return GlassSurface_1.GlassMaterialProvider; } });
|
|
17
|
+
Object.defineProperty(exports, "GlassOverlay", { enumerable: true, get: function () { return GlassSurface_1.GlassOverlay; } });
|
|
18
|
+
Object.defineProperty(exports, "GlassSurface", { enumerable: true, get: function () { return GlassSurface_1.GlassSurface; } });
|
|
19
|
+
Object.defineProperty(exports, "RouteGlassCaptureScope", { enumerable: true, get: function () { return GlassSurface_1.RouteGlassCaptureScope; } });
|
|
20
|
+
Object.defineProperty(exports, "RouteGlassCaptureSource", { enumerable: true, get: function () { return GlassSurface_1.RouteGlassCaptureSource; } });
|
|
21
|
+
Object.defineProperty(exports, "useGlassAppearance", { enumerable: true, get: function () { return GlassSurface_1.useGlassAppearance; } });
|
|
22
|
+
Object.defineProperty(exports, "useGlassProviderId", { enumerable: true, get: function () { return GlassSurface_1.useGlassProviderId; } });
|
|
23
|
+
Object.defineProperty(exports, "useGlassReducedMotion", { enumerable: true, get: function () { return GlassSurface_1.useGlassReducedMotion; } });
|
|
24
|
+
var useGlassPressMotion_1 = require("./useGlassPressMotion");
|
|
25
|
+
Object.defineProperty(exports, "useGlassPressMotion", { enumerable: true, get: function () { return useGlassPressMotion_1.useGlassPressMotion; } });
|
|
26
|
+
var glassController_1 = require("./glassController");
|
|
27
|
+
Object.defineProperty(exports, "glassController", { enumerable: true, get: function () { return glassController_1.glassController; } });
|
|
28
|
+
Object.defineProperty(exports, "setSharedPassEnabled", { enumerable: true, get: function () { return glassController_1.setSharedPassEnabled; } });
|
|
29
|
+
Object.defineProperty(exports, "setSharedPassProbe", { enumerable: true, get: function () { return glassController_1.setSharedPassProbe; } });
|
|
30
|
+
var glassNativeEngine_1 = require("./glassNativeEngine");
|
|
31
|
+
Object.defineProperty(exports, "getGlassNativeEngine", { enumerable: true, get: function () { return glassNativeEngine_1.getGlassNativeEngine; } });
|
|
32
|
+
Object.defineProperty(exports, "setGlassNativeEngine", { enumerable: true, get: function () { return glassNativeEngine_1.setGlassNativeEngine; } });
|
|
33
|
+
var glassRuntime_1 = require("./glassRuntime");
|
|
34
|
+
Object.defineProperty(exports, "getGlassRuntime", { enumerable: true, get: function () { return glassRuntime_1.getGlassRuntime; } });
|
|
35
|
+
Object.defineProperty(exports, "setGlassRuntime", { enumerable: true, get: function () { return glassRuntime_1.setGlassRuntime; } });
|
|
36
|
+
var GlassTabBar_1 = require("./GlassTabBar");
|
|
37
|
+
Object.defineProperty(exports, "GlassTabBar", { enumerable: true, get: function () { return GlassTabBar_1.GlassTabBar; } });
|
|
38
|
+
Object.defineProperty(exports, "GLASS_TAB_BAR_CONTENT_INSET", { enumerable: true, get: function () { return GlassTabBar_1.GLASS_TAB_BAR_CONTENT_INSET; } });
|
|
39
|
+
var GlassTabLens_1 = require("./GlassTabLens");
|
|
40
|
+
Object.defineProperty(exports, "GlassTabLens", { enumerable: true, get: function () { return GlassTabLens_1.GlassTabLens; } });
|
|
41
|
+
var LiquidGlassProvider_1 = require("./LiquidGlassProvider");
|
|
42
|
+
Object.defineProperty(exports, "LiquidGlassProvider", { enumerable: true, get: function () { return LiquidGlassProvider_1.LiquidGlassProvider; } });
|
|
43
|
+
var performanceTelemetry_1 = require("./performanceTelemetry");
|
|
44
|
+
Object.defineProperty(exports, "beginEffectiveScrollFpsSession", { enumerable: true, get: function () { return performanceTelemetry_1.beginEffectiveScrollFpsSession; } });
|
|
45
|
+
Object.defineProperty(exports, "getLiquidGlassPerformanceStats", { enumerable: true, get: function () { return performanceTelemetry_1.getLiquidGlassPerformanceStats; } });
|
|
46
|
+
Object.defineProperty(exports, "setLiquidGlassPerformanceTelemetryEnabled", { enumerable: true, get: function () { return performanceTelemetry_1.setLiquidGlassPerformanceTelemetryEnabled; } });
|
|
47
|
+
var localGlassTelemetry_1 = require("./localGlassTelemetry");
|
|
48
|
+
Object.defineProperty(exports, "getLocalGlassNativeEngine", { enumerable: true, get: function () { return localGlassTelemetry_1.getLocalGlassNativeEngine; } });
|
|
49
|
+
Object.defineProperty(exports, "getLocalGlassTelemetry", { enumerable: true, get: function () { return localGlassTelemetry_1.getLocalGlassTelemetry; } });
|
|
50
|
+
Object.defineProperty(exports, "setLocalGlassHardwareLayerExperimentEnabled", { enumerable: true, get: function () { return localGlassTelemetry_1.setLocalGlassHardwareLayerExperimentEnabled; } });
|
|
51
|
+
Object.defineProperty(exports, "setLocalGlassNativeEngine", { enumerable: true, get: function () { return localGlassTelemetry_1.setLocalGlassNativeEngine; } });
|
|
52
|
+
Object.defineProperty(exports, "setLocalGlassTelemetryEnabled", { enumerable: true, get: function () { return localGlassTelemetry_1.setLocalGlassTelemetryEnabled; } });
|
|
53
|
+
Object.defineProperty(exports, "setLocalGlassVisibleItemCount", { enumerable: true, get: function () { return localGlassTelemetry_1.setLocalGlassVisibleItemCount; } });
|
|
54
|
+
var surfaceRendererPolicy_1 = require("./surfaceRendererPolicy");
|
|
55
|
+
Object.defineProperty(exports, "getSurfaceRendererPolicy", { enumerable: true, get: function () { return surfaceRendererPolicy_1.getSurfaceRendererPolicy; } });
|
|
56
|
+
Object.defineProperty(exports, "getSurfaceRendererPolicyOverride", { enumerable: true, get: function () { return surfaceRendererPolicy_1.getSurfaceRendererPolicyOverride; } });
|
|
57
|
+
Object.defineProperty(exports, "setSurfaceRendererPolicyOverride", { enumerable: true, get: function () { return surfaceRendererPolicy_1.setSurfaceRendererPolicyOverride; } });
|
|
58
|
+
//# sourceMappingURL=renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../src/renderer.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACH,+CAUwB;AATpB,uHAAA,uBAAuB,OAAA;AACvB,qHAAA,qBAAqB,OAAA;AACrB,4GAAA,YAAY,OAAA;AACZ,4GAAA,YAAY,OAAA;AACZ,sHAAA,sBAAsB,OAAA;AACtB,uHAAA,uBAAuB,OAAA;AACvB,kHAAA,kBAAkB,OAAA;AAClB,kHAAA,kBAAkB,OAAA;AAClB,qHAAA,qBAAqB,OAAA;AAQzB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAE5B,qDAA8F;AAArF,kHAAA,eAAe,OAAA;AAAE,uHAAA,oBAAoB,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAClE,yDAAiF;AAAxE,yHAAA,oBAAoB,OAAA;AAAE,yHAAA,oBAAoB,OAAA;AAEnD,+CAAkE;AAAzD,+GAAA,eAAe,OAAA;AAAE,+GAAA,eAAe,OAAA;AAEzC,6CAAyE;AAAhE,0GAAA,WAAW,OAAA;AAAE,0HAAA,2BAA2B,OAAA;AAEjD,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AAErB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAE5B,+DAIgC;AAH5B,sIAAA,8BAA8B,OAAA;AAC9B,sIAAA,8BAA8B,OAAA;AAC9B,iJAAA,yCAAyC,OAAA;AAG7C,6DAO+B;AAN3B,gIAAA,yBAAyB,OAAA;AACzB,6HAAA,sBAAsB,OAAA;AACtB,kJAAA,2CAA2C,OAAA;AAC3C,gIAAA,yBAAyB,OAAA;AACzB,oIAAA,6BAA6B,OAAA;AAC7B,oIAAA,6BAA6B,OAAA;AAGjC,iEAIiC;AAH7B,iIAAA,wBAAwB,OAAA;AACxB,yIAAA,gCAAgC,OAAA;AAChC,yIAAA,gCAAgC,OAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveSliderValue = resolveSliderValue;
|
|
4
|
+
/** Preserve step and magnetic key-point semantics across both public slider APIs. */
|
|
5
|
+
function resolveSliderValue(value, min, max, step = 0, keyPoints = [], magnetThreshold = .02) {
|
|
6
|
+
const span = max - min;
|
|
7
|
+
if (span <= 0)
|
|
8
|
+
return min;
|
|
9
|
+
let next = Math.max(min, Math.min(max, value));
|
|
10
|
+
if (step > 0)
|
|
11
|
+
next = min + Math.round((next - min) / step) * step;
|
|
12
|
+
else {
|
|
13
|
+
let distance = Math.max(0, magnetThreshold) * span;
|
|
14
|
+
let target = next;
|
|
15
|
+
for (const point of keyPoints) {
|
|
16
|
+
if (point < min || point > max || !Number.isFinite(point))
|
|
17
|
+
continue;
|
|
18
|
+
const delta = Math.abs(point - next);
|
|
19
|
+
if (delta < distance) {
|
|
20
|
+
target = point;
|
|
21
|
+
distance = delta;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
next = target;
|
|
25
|
+
}
|
|
26
|
+
return Math.max(min, Math.min(max, next));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=sliderValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sliderValue.js","sourceRoot":"","sources":["../../src/sliderValue.ts"],"names":[],"mappings":";;AACA,gDAiBC;AAlBD,qFAAqF;AACrF,SAAgB,kBAAkB,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAE,IAAI,GAAG,CAAC,EAChF,YAA+B,EAAE,EAAE,eAAe,GAAG,GAAG;IACxD,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,IAAI,IAAI,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IAC1B,IAAI,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAC/C,IAAI,IAAI,GAAG,CAAC;QAAE,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;SAC7D,CAAC;QACF,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,IAAI,CAAC;QACnD,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE,CAAC;YAC5B,IAAI,KAAK,GAAG,GAAG,IAAI,KAAK,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAAE,SAAS;YACpE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;YACrC,IAAI,KAAK,GAAG,QAAQ,EAAE,CAAC;gBAAC,MAAM,GAAG,KAAK,CAAC;gBAAC,QAAQ,GAAG,KAAK,CAAC;YAAC,CAAC;QAC/D,CAAC;QACD,IAAI,GAAG,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|