@luckylca/react-native-liquid-glass 0.0.0-stage → 0.2.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.
Files changed (674) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +307 -2
  3. package/README.zh-CN.md +310 -0
  4. package/THIRD_PARTY_NOTICES.md +98 -0
  5. package/android/build.gradle +19 -0
  6. package/android/src/main/AndroidManifest.xml +1 -0
  7. package/android/src/main/java/expo/modules/localglass/ExpoLocalGlassEngineModule.kt +141 -0
  8. package/android/src/main/java/expo/modules/localglass/ExpoLocalGlassModule.kt +341 -0
  9. package/android/src/main/java/expo/modules/localglass/LocalGlassShader.kt +59 -0
  10. package/android/src/main/java/expo/modules/newhuliquidglass/CoreLiquidGlassRegistry.kt +75 -0
  11. package/android/src/main/java/expo/modules/newhuliquidglass/EffectiveScrollInputBridge.kt +47 -0
  12. package/android/src/main/java/expo/modules/newhuliquidglass/ExpoGlassCoreModule.kt +226 -0
  13. package/android/src/main/java/expo/modules/newhuliquidglass/ExpoGlassProviderCoreView.kt +1125 -0
  14. package/android/src/main/java/expo/modules/newhuliquidglass/ExpoGlassSurfaceCoreView.kt +571 -0
  15. package/android/src/main/java/expo/modules/newhuliquidglass/PassSurfaceSuppression.kt +39 -0
  16. package/android/src/main/java/expo/modules/newhuliquidglass/SharedGlassPassProbeLog.kt +23 -0
  17. package/android/src/main/java/expo/modules/newhuliquidglass/SharedGlassPassWiring.kt +59 -0
  18. package/android-core/build.gradle +36 -0
  19. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/BackdropRecorder.kt +930 -0
  20. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/FrozenBackdrop.kt +66 -0
  21. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/GlassBackdropCoordinator.kt +624 -0
  22. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/GlassBackdropSourceHandle.kt +8 -0
  23. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/GlassScrollSource.kt +13 -0
  24. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/GlassViewController.kt +1605 -0
  25. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/LiquidGlassProviderLayout.kt +340 -0
  26. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/LiquidGlassView.kt +103 -0
  27. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/ReferenceSourceWindowPolicy.kt +13 -0
  28. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/StableSceneTexturePolicy.kt +43 -0
  29. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/internal/GlassViewRenderer.kt +1459 -0
  30. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/internal/ReferenceTabSampling.kt +15 -0
  31. package/android-core/src/main/java/com/newhu/liquidglass/backdrop/internal/SharedSceneCapture.kt +163 -0
  32. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassCapabilities.kt +21 -0
  33. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassEngine.kt +131 -0
  34. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassMaterial.kt +89 -0
  35. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassMath.kt +131 -0
  36. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassOpticalInsets.kt +8 -0
  37. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassRenderTier.kt +54 -0
  38. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassShapePacker.kt +77 -0
  39. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassSurfaceState.kt +11 -0
  40. package/android-core/src/main/java/com/newhu/liquidglass/core/GlassUniforms.kt +113 -0
  41. package/android-core/src/main/java/com/newhu/liquidglass/core/LiquidGlassShaders.kt +234 -0
  42. package/android-core/src/main/java/com/newhu/liquidglass/core/SharedGlassPass.kt +456 -0
  43. package/android-core/src/main/java/com/newhu/liquidglass/core/geometry/G2RoundedRectangle.kt +207 -0
  44. package/android-core/src/main/java/com/newhu/liquidglass/core/geometry/ReferenceG2MaskTexture.kt +334 -0
  45. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/HeightFieldGlassShader.kt +7 -0
  46. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/ReferenceBackdropBlurShader.kt +58 -0
  47. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/ReferenceGaussianDiscBackdropBlur.kt +42 -0
  48. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/ReferenceGlassUniforms.kt +111 -0
  49. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/ReferenceParityGlassShader.kt +613 -0
  50. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/ReferenceParityMultiShapeShader.kt +128 -0
  51. package/android-core/src/main/java/com/newhu/liquidglass/core/shader/SdfScaleLensShader.kt +144 -0
  52. package/android-core/src/main/java/com/newhu/liquidglass/local/LocalGlassHardwareLayerExperiment.kt +29 -0
  53. package/android-core/src/main/java/com/newhu/liquidglass/local/LocalGlassMaterial.kt +14 -0
  54. package/android-core/src/main/java/com/newhu/liquidglass/local/LocalGlassRenderer.kt +126 -0
  55. package/android-core/src/main/java/com/newhu/liquidglass/local/LocalGlassRuntimeShader.kt +50 -0
  56. package/android-core/src/main/java/com/newhu/liquidglass/local/LocalGlassShader.kt +59 -0
  57. package/android-core/src/main/java/com/newhu/liquidglass/local/LocalGlassView.kt +47 -0
  58. package/android-core/src/main/java/com/newhu/liquidglass/motion/GlassMotionDriver.kt +824 -0
  59. package/android-core/src/main/java/com/newhu/liquidglass/motion/GlassMotionState.kt +359 -0
  60. package/android-core/src/main/java/com/newhu/liquidglass/motion/PointerVelocityTracker.kt +109 -0
  61. package/android-core/src/main/java/com/newhu/liquidglass/motion/SpringSpec.kt +209 -0
  62. package/android-core/src/main/java/com/newhu/liquidglass/optics/G2Corner.kt +194 -0
  63. package/android-core/src/main/java/com/newhu/liquidglass/optics/GlassMaterial.kt +250 -0
  64. package/android-core/src/main/java/com/newhu/liquidglass/optics/GlassOpticsShader.kt +696 -0
  65. package/android-core/src/main/java/com/newhu/liquidglass/optics/GlassParityProbe.kt +342 -0
  66. package/android-core/src/main/java/com/newhu/liquidglass/optics/GlassShapeGeometry.kt +317 -0
  67. package/android-core/src/main/java/com/newhu/liquidglass/optics/GlassUniformBinder.kt +308 -0
  68. package/android-core/src/main/java/com/newhu/liquidglass/optics/PixelDiff.kt +363 -0
  69. package/android-core/src/main/java/com/newhu/liquidglass/optics/ReferenceOptics.kt +568 -0
  70. package/android-core/src/main/java/com/newhu/liquidglass/rendering/GlassEngineSelection.kt +30 -0
  71. package/android-core/src/main/java/com/newhu/liquidglass/rendering/GlassSurfaceHost.kt +317 -0
  72. package/android-core/src/main/java/com/newhu/liquidglass/rendering/GlassSurfaceRenderer.kt +847 -0
  73. package/android-core/src/main/java/com/newhu/liquidglass/rendering/RetainedBackdropLayer.kt +83 -0
  74. package/android-core/src/main/java/com/newhu/liquidglass/scheduler/GlassFrameScheduler.kt +27 -0
  75. package/android-core/src/main/java/com/newhu/liquidglass/telemetry/EffectiveScrollFpsProbe.kt +965 -0
  76. package/android-core/src/main/java/com/newhu/liquidglass/telemetry/GlassTelemetry.kt +16 -0
  77. package/android-core/src/main/java/com/newhu/liquidglass/telemetry/LiquidGlassPerfTelemetry.kt +676 -0
  78. package/android-core/src/main/java/com/newhu/liquidglass/telemetry/LiquidGlassTrace.kt +30 -0
  79. package/android-core/src/main/java/com/newhu/liquidglass/telemetry/LocalGlassTelemetry.kt +55 -0
  80. package/app.plugin.js +25 -0
  81. package/docs/images/buttons.webp +0 -0
  82. package/docs/images/controls.webp +0 -0
  83. package/docs/images/tabs.webp +0 -0
  84. package/docs/publishing.md +84 -0
  85. package/expo-module.config.json +10 -0
  86. package/lib/commonjs/GlassSurface.js +832 -0
  87. package/lib/commonjs/GlassSurface.js.map +1 -0
  88. package/lib/commonjs/GlassTabBar.js +976 -0
  89. package/lib/commonjs/GlassTabBar.js.map +1 -0
  90. package/lib/commonjs/GlassTabLens.js +67 -0
  91. package/lib/commonjs/GlassTabLens.js.map +1 -0
  92. package/lib/commonjs/LiquidGlassProvider.js +40 -0
  93. package/lib/commonjs/LiquidGlassProvider.js.map +1 -0
  94. package/lib/commonjs/LocalGlassMaterial.js +194 -0
  95. package/lib/commonjs/LocalGlassMaterial.js.map +1 -0
  96. package/lib/commonjs/adaptiveLuminance.js +14 -0
  97. package/lib/commonjs/adaptiveLuminance.js.map +1 -0
  98. package/lib/commonjs/badgePalette.js +46 -0
  99. package/lib/commonjs/badgePalette.js.map +1 -0
  100. package/lib/commonjs/buttonGesturePolicy.js +22 -0
  101. package/lib/commonjs/buttonGesturePolicy.js.map +1 -0
  102. package/lib/commonjs/components/AdaptiveLuminance.js +20 -0
  103. package/lib/commonjs/components/AdaptiveLuminance.js.map +1 -0
  104. package/lib/commonjs/components/BottomSheet.js +222 -0
  105. package/lib/commonjs/components/BottomSheet.js.map +1 -0
  106. package/lib/commonjs/components/Button.js +20 -0
  107. package/lib/commonjs/components/Button.js.map +1 -0
  108. package/lib/commonjs/components/Card.js +206 -0
  109. package/lib/commonjs/components/Card.js.map +1 -0
  110. package/lib/commonjs/components/Checkbox.js +123 -0
  111. package/lib/commonjs/components/Checkbox.js.map +1 -0
  112. package/lib/commonjs/components/ControlPressContext.js +8 -0
  113. package/lib/commonjs/components/ControlPressContext.js.map +1 -0
  114. package/lib/commonjs/components/Dialog.js +122 -0
  115. package/lib/commonjs/components/Dialog.js.map +1 -0
  116. package/lib/commonjs/components/DialogAction.js +124 -0
  117. package/lib/commonjs/components/DialogAction.js.map +1 -0
  118. package/lib/commonjs/components/DialogContent.js +23 -0
  119. package/lib/commonjs/components/DialogContent.js.map +1 -0
  120. package/lib/commonjs/components/GlassButton.js +96 -0
  121. package/lib/commonjs/components/GlassButton.js.map +1 -0
  122. package/lib/commonjs/components/GlassFab.js +43 -0
  123. package/lib/commonjs/components/GlassFab.js.map +1 -0
  124. package/lib/commonjs/components/GlassMagnifier.js +135 -0
  125. package/lib/commonjs/components/GlassMagnifier.js.map +1 -0
  126. package/lib/commonjs/components/GlassPlayground.js +158 -0
  127. package/lib/commonjs/components/GlassPlayground.js.map +1 -0
  128. package/lib/commonjs/components/GlassSlider.js +364 -0
  129. package/lib/commonjs/components/GlassSlider.js.map +1 -0
  130. package/lib/commonjs/components/GlassSwitch.js +334 -0
  131. package/lib/commonjs/components/GlassSwitch.js.map +1 -0
  132. package/lib/commonjs/components/GlassTabBar.js +387 -0
  133. package/lib/commonjs/components/GlassTabBar.js.map +1 -0
  134. package/lib/commonjs/components/Input.js +180 -0
  135. package/lib/commonjs/components/Input.js.map +1 -0
  136. package/lib/commonjs/components/ListRow.js +64 -0
  137. package/lib/commonjs/components/ListRow.js.map +1 -0
  138. package/lib/commonjs/components/Menu.js +214 -0
  139. package/lib/commonjs/components/Menu.js.map +1 -0
  140. package/lib/commonjs/components/NavigationBar.js +20 -0
  141. package/lib/commonjs/components/NavigationBar.js.map +1 -0
  142. package/lib/commonjs/components/NumberWheel.js +273 -0
  143. package/lib/commonjs/components/NumberWheel.js.map +1 -0
  144. package/lib/commonjs/components/PageFeedList.js +25 -0
  145. package/lib/commonjs/components/PageFeedList.js.map +1 -0
  146. package/lib/commonjs/components/PageScaffold.js +161 -0
  147. package/lib/commonjs/components/PageScaffold.js.map +1 -0
  148. package/lib/commonjs/components/PreferenceGroup.js +34 -0
  149. package/lib/commonjs/components/PreferenceGroup.js.map +1 -0
  150. package/lib/commonjs/components/ProgressIndicator.js +79 -0
  151. package/lib/commonjs/components/ProgressIndicator.js.map +1 -0
  152. package/lib/commonjs/components/ProgressiveBlur.js +29 -0
  153. package/lib/commonjs/components/ProgressiveBlur.js.map +1 -0
  154. package/lib/commonjs/components/ReferenceSlider.js +304 -0
  155. package/lib/commonjs/components/ReferenceSlider.js.map +1 -0
  156. package/lib/commonjs/components/ReferenceTabBar.js +381 -0
  157. package/lib/commonjs/components/ReferenceTabBar.js.map +1 -0
  158. package/lib/commonjs/components/SearchBar.js +200 -0
  159. package/lib/commonjs/components/SearchBar.js.map +1 -0
  160. package/lib/commonjs/components/SegmentedControl.js +62 -0
  161. package/lib/commonjs/components/SegmentedControl.js.map +1 -0
  162. package/lib/commonjs/components/Slider.js +12 -0
  163. package/lib/commonjs/components/Slider.js.map +1 -0
  164. package/lib/commonjs/components/Snackbar.js +11 -0
  165. package/lib/commonjs/components/Snackbar.js.map +1 -0
  166. package/lib/commonjs/components/SurfaceEnvironmentContext.js +35 -0
  167. package/lib/commonjs/components/SurfaceEnvironmentContext.js.map +1 -0
  168. package/lib/commonjs/components/SurfaceGroup.js +39 -0
  169. package/lib/commonjs/components/SurfaceGroup.js.map +1 -0
  170. package/lib/commonjs/components/Switch.js +11 -0
  171. package/lib/commonjs/components/Switch.js.map +1 -0
  172. package/lib/commonjs/components/Toast.js +110 -0
  173. package/lib/commonjs/components/Toast.js.map +1 -0
  174. package/lib/commonjs/components/TopAppBar.js +107 -0
  175. package/lib/commonjs/components/TopAppBar.js.map +1 -0
  176. package/lib/commonjs/components/bottomSheetMotion.js +14 -0
  177. package/lib/commonjs/components/bottomSheetMotion.js.map +1 -0
  178. package/lib/commonjs/components/glassControlMaterial.js +22 -0
  179. package/lib/commonjs/components/glassControlMaterial.js.map +1 -0
  180. package/lib/commonjs/components/menuPosition.js +42 -0
  181. package/lib/commonjs/components/menuPosition.js.map +1 -0
  182. package/lib/commonjs/components/pages/FeedPage.js +15 -0
  183. package/lib/commonjs/components/pages/FeedPage.js.map +1 -0
  184. package/lib/commonjs/components/pages/PageBenchmarkContext.js +123 -0
  185. package/lib/commonjs/components/pages/PageBenchmarkContext.js.map +1 -0
  186. package/lib/commonjs/components/pages/SettingsPage.js +47 -0
  187. package/lib/commonjs/components/pages/SettingsPage.js.map +1 -0
  188. package/lib/commonjs/components/pages/SettingsSection.js +14 -0
  189. package/lib/commonjs/components/pages/SettingsSection.js.map +1 -0
  190. package/lib/commonjs/components/pages/StaticSettingsPage.js +16 -0
  191. package/lib/commonjs/components/pages/StaticSettingsPage.js.map +1 -0
  192. package/lib/commonjs/fallbackKnobGeometry.js +19 -0
  193. package/lib/commonjs/fallbackKnobGeometry.js.map +1 -0
  194. package/lib/commonjs/glassController.js +65 -0
  195. package/lib/commonjs/glassController.js.map +1 -0
  196. package/lib/commonjs/glassNativeEngine.js +16 -0
  197. package/lib/commonjs/glassNativeEngine.js.map +1 -0
  198. package/lib/commonjs/glassRuntime.js +27 -0
  199. package/lib/commonjs/glassRuntime.js.map +1 -0
  200. package/lib/commonjs/index.js +218 -0
  201. package/lib/commonjs/index.js.map +1 -0
  202. package/lib/commonjs/inputPresentation.js +17 -0
  203. package/lib/commonjs/inputPresentation.js.map +1 -0
  204. package/lib/commonjs/localGlassTelemetry.js +113 -0
  205. package/lib/commonjs/localGlassTelemetry.js.map +1 -0
  206. package/lib/commonjs/motion/MotionProvider.js +15 -0
  207. package/lib/commonjs/motion/MotionProvider.js.map +1 -0
  208. package/lib/commonjs/motion/easings.js +71 -0
  209. package/lib/commonjs/motion/easings.js.map +1 -0
  210. package/lib/commonjs/motion/folmeSpring.js +24 -0
  211. package/lib/commonjs/motion/folmeSpring.js.map +1 -0
  212. package/lib/commonjs/motion/folmeSpringByResponse.js +22 -0
  213. package/lib/commonjs/motion/folmeSpringByResponse.js.map +1 -0
  214. package/lib/commonjs/motion/index.js +57 -0
  215. package/lib/commonjs/motion/index.js.map +1 -0
  216. package/lib/commonjs/motion/presets.js +101 -0
  217. package/lib/commonjs/motion/presets.js.map +1 -0
  218. package/lib/commonjs/nativeGlassViews.js +33 -0
  219. package/lib/commonjs/nativeGlassViews.js.map +1 -0
  220. package/lib/commonjs/performanceTelemetry.js +28 -0
  221. package/lib/commonjs/performanceTelemetry.js.map +1 -0
  222. package/lib/commonjs/pointerEventBridge.js +17 -0
  223. package/lib/commonjs/pointerEventBridge.js.map +1 -0
  224. package/lib/commonjs/pointerGeometry.js +12 -0
  225. package/lib/commonjs/pointerGeometry.js.map +1 -0
  226. package/lib/commonjs/pressVelocity.js +34 -0
  227. package/lib/commonjs/pressVelocity.js.map +1 -0
  228. package/lib/commonjs/primitives/Divider.js +32 -0
  229. package/lib/commonjs/primitives/Divider.js.map +1 -0
  230. package/lib/commonjs/primitives/Icon.js +22 -0
  231. package/lib/commonjs/primitives/Icon.js.map +1 -0
  232. package/lib/commonjs/primitives/PressIndication.js +58 -0
  233. package/lib/commonjs/primitives/PressIndication.js.map +1 -0
  234. package/lib/commonjs/primitives/Pressable.js +28 -0
  235. package/lib/commonjs/primitives/Pressable.js.map +1 -0
  236. package/lib/commonjs/primitives/PressableScale.js +64 -0
  237. package/lib/commonjs/primitives/PressableScale.js.map +1 -0
  238. package/lib/commonjs/primitives/Surface.js +122 -0
  239. package/lib/commonjs/primitives/Surface.js.map +1 -0
  240. package/lib/commonjs/primitives/Text.js +43 -0
  241. package/lib/commonjs/primitives/Text.js.map +1 -0
  242. package/lib/commonjs/primitives/index.js +18 -0
  243. package/lib/commonjs/primitives/index.js.map +1 -0
  244. package/lib/commonjs/renderer.js +58 -0
  245. package/lib/commonjs/renderer.js.map +1 -0
  246. package/lib/commonjs/sliderValue.js +28 -0
  247. package/lib/commonjs/sliderValue.js.map +1 -0
  248. package/lib/commonjs/surfaceRendererPolicy.js +32 -0
  249. package/lib/commonjs/surfaceRendererPolicy.js.map +1 -0
  250. package/lib/commonjs/theme/ThemeProvider.js +37 -0
  251. package/lib/commonjs/theme/ThemeProvider.js.map +1 -0
  252. package/lib/commonjs/theme/buildTheme.js +157 -0
  253. package/lib/commonjs/theme/buildTheme.js.map +1 -0
  254. package/lib/commonjs/theme/glassColors.js +17 -0
  255. package/lib/commonjs/theme/glassColors.js.map +1 -0
  256. package/lib/commonjs/theme/index.js +38 -0
  257. package/lib/commonjs/theme/index.js.map +1 -0
  258. package/lib/commonjs/theme/liquidGlass.js +24 -0
  259. package/lib/commonjs/theme/liquidGlass.js.map +1 -0
  260. package/lib/commonjs/theme/presentation.js +14 -0
  261. package/lib/commonjs/theme/presentation.js.map +1 -0
  262. package/lib/commonjs/theme/registry.js +17 -0
  263. package/lib/commonjs/theme/registry.js.map +1 -0
  264. package/lib/commonjs/theme/selectVariant.js +13 -0
  265. package/lib/commonjs/theme/selectVariant.js.map +1 -0
  266. package/lib/commonjs/theme/tokens.js +266 -0
  267. package/lib/commonjs/theme/tokens.js.map +1 -0
  268. package/lib/commonjs/theme/types.js +3 -0
  269. package/lib/commonjs/theme/types.js.map +1 -0
  270. package/lib/commonjs/theme/wallpaper.js +91 -0
  271. package/lib/commonjs/theme/wallpaper.js.map +1 -0
  272. package/lib/commonjs/types.js +3 -0
  273. package/lib/commonjs/types.js.map +1 -0
  274. package/lib/commonjs/useButtonGesture.js +135 -0
  275. package/lib/commonjs/useButtonGesture.js.map +1 -0
  276. package/lib/commonjs/useGlassKnobMotion.js +115 -0
  277. package/lib/commonjs/useGlassKnobMotion.js.map +1 -0
  278. package/lib/commonjs/useGlassPressMotion.js +147 -0
  279. package/lib/commonjs/useGlassPressMotion.js.map +1 -0
  280. package/lib/module/GlassSurface.js +782 -0
  281. package/lib/module/GlassSurface.js.map +1 -0
  282. package/lib/module/GlassTabBar.js +939 -0
  283. package/lib/module/GlassTabBar.js.map +1 -0
  284. package/lib/module/GlassTabLens.js +64 -0
  285. package/lib/module/GlassTabLens.js.map +1 -0
  286. package/lib/module/LiquidGlassProvider.js +37 -0
  287. package/lib/module/LiquidGlassProvider.js.map +1 -0
  288. package/lib/module/LocalGlassMaterial.js +191 -0
  289. package/lib/module/LocalGlassMaterial.js.map +1 -0
  290. package/lib/module/adaptiveLuminance.js +11 -0
  291. package/lib/module/adaptiveLuminance.js.map +1 -0
  292. package/lib/module/badgePalette.js +40 -0
  293. package/lib/module/badgePalette.js.map +1 -0
  294. package/lib/module/buttonGesturePolicy.js +17 -0
  295. package/lib/module/buttonGesturePolicy.js.map +1 -0
  296. package/lib/module/components/AdaptiveLuminance.js +16 -0
  297. package/lib/module/components/AdaptiveLuminance.js.map +1 -0
  298. package/lib/module/components/BottomSheet.js +186 -0
  299. package/lib/module/components/BottomSheet.js.map +1 -0
  300. package/lib/module/components/Button.js +17 -0
  301. package/lib/module/components/Button.js.map +1 -0
  302. package/lib/module/components/Card.js +170 -0
  303. package/lib/module/components/Card.js.map +1 -0
  304. package/lib/module/components/Checkbox.js +84 -0
  305. package/lib/module/components/Checkbox.js.map +1 -0
  306. package/lib/module/components/ControlPressContext.js +4 -0
  307. package/lib/module/components/ControlPressContext.js.map +1 -0
  308. package/lib/module/components/Dialog.js +86 -0
  309. package/lib/module/components/Dialog.js.map +1 -0
  310. package/lib/module/components/DialogAction.js +88 -0
  311. package/lib/module/components/DialogAction.js.map +1 -0
  312. package/lib/module/components/DialogContent.js +20 -0
  313. package/lib/module/components/DialogContent.js.map +1 -0
  314. package/lib/module/components/GlassButton.js +93 -0
  315. package/lib/module/components/GlassButton.js.map +1 -0
  316. package/lib/module/components/GlassFab.js +37 -0
  317. package/lib/module/components/GlassFab.js.map +1 -0
  318. package/lib/module/components/GlassMagnifier.js +99 -0
  319. package/lib/module/components/GlassMagnifier.js.map +1 -0
  320. package/lib/module/components/GlassPlayground.js +122 -0
  321. package/lib/module/components/GlassPlayground.js.map +1 -0
  322. package/lib/module/components/GlassSlider.js +328 -0
  323. package/lib/module/components/GlassSlider.js.map +1 -0
  324. package/lib/module/components/GlassSwitch.js +298 -0
  325. package/lib/module/components/GlassSwitch.js.map +1 -0
  326. package/lib/module/components/GlassTabBar.js +351 -0
  327. package/lib/module/components/GlassTabBar.js.map +1 -0
  328. package/lib/module/components/Input.js +144 -0
  329. package/lib/module/components/Input.js.map +1 -0
  330. package/lib/module/components/ListRow.js +61 -0
  331. package/lib/module/components/ListRow.js.map +1 -0
  332. package/lib/module/components/Menu.js +178 -0
  333. package/lib/module/components/Menu.js.map +1 -0
  334. package/lib/module/components/NavigationBar.js +14 -0
  335. package/lib/module/components/NavigationBar.js.map +1 -0
  336. package/lib/module/components/NumberWheel.js +238 -0
  337. package/lib/module/components/NumberWheel.js.map +1 -0
  338. package/lib/module/components/PageFeedList.js +19 -0
  339. package/lib/module/components/PageFeedList.js.map +1 -0
  340. package/lib/module/components/PageScaffold.js +114 -0
  341. package/lib/module/components/PageScaffold.js.map +1 -0
  342. package/lib/module/components/PreferenceGroup.js +28 -0
  343. package/lib/module/components/PreferenceGroup.js.map +1 -0
  344. package/lib/module/components/ProgressIndicator.js +44 -0
  345. package/lib/module/components/ProgressIndicator.js.map +1 -0
  346. package/lib/module/components/ProgressiveBlur.js +26 -0
  347. package/lib/module/components/ProgressiveBlur.js.map +1 -0
  348. package/lib/module/components/ReferenceSlider.js +268 -0
  349. package/lib/module/components/ReferenceSlider.js.map +1 -0
  350. package/lib/module/components/ReferenceTabBar.js +344 -0
  351. package/lib/module/components/ReferenceTabBar.js.map +1 -0
  352. package/lib/module/components/SearchBar.js +164 -0
  353. package/lib/module/components/SearchBar.js.map +1 -0
  354. package/lib/module/components/SegmentedControl.js +26 -0
  355. package/lib/module/components/SegmentedControl.js.map +1 -0
  356. package/lib/module/components/Slider.js +9 -0
  357. package/lib/module/components/Slider.js.map +1 -0
  358. package/lib/module/components/Snackbar.js +8 -0
  359. package/lib/module/components/Snackbar.js.map +1 -0
  360. package/lib/module/components/SurfaceEnvironmentContext.js +27 -0
  361. package/lib/module/components/SurfaceEnvironmentContext.js.map +1 -0
  362. package/lib/module/components/SurfaceGroup.js +33 -0
  363. package/lib/module/components/SurfaceGroup.js.map +1 -0
  364. package/lib/module/components/Switch.js +8 -0
  365. package/lib/module/components/Switch.js.map +1 -0
  366. package/lib/module/components/Toast.js +74 -0
  367. package/lib/module/components/Toast.js.map +1 -0
  368. package/lib/module/components/TopAppBar.js +68 -0
  369. package/lib/module/components/TopAppBar.js.map +1 -0
  370. package/lib/module/components/bottomSheetMotion.js +11 -0
  371. package/lib/module/components/bottomSheetMotion.js.map +1 -0
  372. package/lib/module/components/glassControlMaterial.js +19 -0
  373. package/lib/module/components/glassControlMaterial.js.map +1 -0
  374. package/lib/module/components/menuPosition.js +37 -0
  375. package/lib/module/components/menuPosition.js.map +1 -0
  376. package/lib/module/components/pages/FeedPage.js +12 -0
  377. package/lib/module/components/pages/FeedPage.js.map +1 -0
  378. package/lib/module/components/pages/PageBenchmarkContext.js +84 -0
  379. package/lib/module/components/pages/PageBenchmarkContext.js.map +1 -0
  380. package/lib/module/components/pages/SettingsPage.js +11 -0
  381. package/lib/module/components/pages/SettingsPage.js.map +1 -0
  382. package/lib/module/components/pages/SettingsSection.js +8 -0
  383. package/lib/module/components/pages/SettingsSection.js.map +1 -0
  384. package/lib/module/components/pages/StaticSettingsPage.js +10 -0
  385. package/lib/module/components/pages/StaticSettingsPage.js.map +1 -0
  386. package/lib/module/fallbackKnobGeometry.js +16 -0
  387. package/lib/module/fallbackKnobGeometry.js.map +1 -0
  388. package/lib/module/glassController.js +58 -0
  389. package/lib/module/glassController.js.map +1 -0
  390. package/lib/module/glassNativeEngine.js +11 -0
  391. package/lib/module/glassNativeEngine.js.map +1 -0
  392. package/lib/module/glassRuntime.js +22 -0
  393. package/lib/module/glassRuntime.js.map +1 -0
  394. package/lib/module/index.js +80 -0
  395. package/lib/module/index.js.map +1 -0
  396. package/lib/module/inputPresentation.js +14 -0
  397. package/lib/module/inputPresentation.js.map +1 -0
  398. package/lib/module/localGlassTelemetry.js +103 -0
  399. package/lib/module/localGlassTelemetry.js.map +1 -0
  400. package/lib/module/motion/MotionProvider.js +11 -0
  401. package/lib/module/motion/MotionProvider.js.map +1 -0
  402. package/lib/module/motion/easings.js +64 -0
  403. package/lib/module/motion/easings.js.map +1 -0
  404. package/lib/module/motion/folmeSpring.js +21 -0
  405. package/lib/module/motion/folmeSpring.js.map +1 -0
  406. package/lib/module/motion/folmeSpringByResponse.js +19 -0
  407. package/lib/module/motion/folmeSpringByResponse.js.map +1 -0
  408. package/lib/module/motion/index.js +6 -0
  409. package/lib/module/motion/index.js.map +1 -0
  410. package/lib/module/motion/presets.js +98 -0
  411. package/lib/module/motion/presets.js.map +1 -0
  412. package/lib/module/nativeGlassViews.js +27 -0
  413. package/lib/module/nativeGlassViews.js.map +1 -0
  414. package/lib/module/package.json +1 -0
  415. package/lib/module/performanceTelemetry.js +23 -0
  416. package/lib/module/performanceTelemetry.js.map +1 -0
  417. package/lib/module/pointerEventBridge.js +14 -0
  418. package/lib/module/pointerEventBridge.js.map +1 -0
  419. package/lib/module/pointerGeometry.js +9 -0
  420. package/lib/module/pointerGeometry.js.map +1 -0
  421. package/lib/module/pressVelocity.js +31 -0
  422. package/lib/module/pressVelocity.js.map +1 -0
  423. package/lib/module/primitives/Divider.js +29 -0
  424. package/lib/module/primitives/Divider.js.map +1 -0
  425. package/lib/module/primitives/Icon.js +19 -0
  426. package/lib/module/primitives/Icon.js.map +1 -0
  427. package/lib/module/primitives/PressIndication.js +22 -0
  428. package/lib/module/primitives/PressIndication.js.map +1 -0
  429. package/lib/module/primitives/Pressable.js +25 -0
  430. package/lib/module/primitives/Pressable.js.map +1 -0
  431. package/lib/module/primitives/PressableScale.js +28 -0
  432. package/lib/module/primitives/PressableScale.js.map +1 -0
  433. package/lib/module/primitives/Surface.js +83 -0
  434. package/lib/module/primitives/Surface.js.map +1 -0
  435. package/lib/module/primitives/Text.js +40 -0
  436. package/lib/module/primitives/Text.js.map +1 -0
  437. package/lib/module/primitives/index.js +8 -0
  438. package/lib/module/primitives/index.js.map +1 -0
  439. package/lib/module/renderer.js +22 -0
  440. package/lib/module/renderer.js.map +1 -0
  441. package/lib/module/sliderValue.js +25 -0
  442. package/lib/module/sliderValue.js.map +1 -0
  443. package/lib/module/surfaceRendererPolicy.js +27 -0
  444. package/lib/module/surfaceRendererPolicy.js.map +1 -0
  445. package/lib/module/theme/ThemeProvider.js +32 -0
  446. package/lib/module/theme/ThemeProvider.js.map +1 -0
  447. package/lib/module/theme/buildTheme.js +153 -0
  448. package/lib/module/theme/buildTheme.js.map +1 -0
  449. package/lib/module/theme/glassColors.js +14 -0
  450. package/lib/module/theme/glassColors.js.map +1 -0
  451. package/lib/module/theme/index.js +9 -0
  452. package/lib/module/theme/index.js.map +1 -0
  453. package/lib/module/theme/liquidGlass.js +21 -0
  454. package/lib/module/theme/liquidGlass.js.map +1 -0
  455. package/lib/module/theme/presentation.js +11 -0
  456. package/lib/module/theme/presentation.js.map +1 -0
  457. package/lib/module/theme/registry.js +13 -0
  458. package/lib/module/theme/registry.js.map +1 -0
  459. package/lib/module/theme/selectVariant.js +10 -0
  460. package/lib/module/theme/selectVariant.js.map +1 -0
  461. package/lib/module/theme/tokens.js +262 -0
  462. package/lib/module/theme/tokens.js.map +1 -0
  463. package/lib/module/theme/types.js +2 -0
  464. package/lib/module/theme/types.js.map +1 -0
  465. package/lib/module/theme/wallpaper.js +83 -0
  466. package/lib/module/theme/wallpaper.js.map +1 -0
  467. package/lib/module/types.js +2 -0
  468. package/lib/module/types.js.map +1 -0
  469. package/lib/module/useButtonGesture.js +132 -0
  470. package/lib/module/useButtonGesture.js.map +1 -0
  471. package/lib/module/useGlassKnobMotion.js +112 -0
  472. package/lib/module/useGlassKnobMotion.js.map +1 -0
  473. package/lib/module/useGlassPressMotion.js +143 -0
  474. package/lib/module/useGlassPressMotion.js.map +1 -0
  475. package/lib/types/GlassSurface.d.ts +216 -0
  476. package/lib/types/GlassTabBar.d.ts +35 -0
  477. package/lib/types/GlassTabLens.d.ts +11 -0
  478. package/lib/types/LiquidGlassProvider.d.ts +47 -0
  479. package/lib/types/LocalGlassMaterial.d.ts +21 -0
  480. package/lib/types/adaptiveLuminance.d.ts +2 -0
  481. package/lib/types/badgePalette.d.ts +9 -0
  482. package/lib/types/buttonGesturePolicy.d.ts +4 -0
  483. package/lib/types/components/AdaptiveLuminance.d.ts +23 -0
  484. package/lib/types/components/BottomSheet.d.ts +33 -0
  485. package/lib/types/components/Button.d.ts +16 -0
  486. package/lib/types/components/Card.d.ts +25 -0
  487. package/lib/types/components/Checkbox.d.ts +11 -0
  488. package/lib/types/components/ControlPressContext.d.ts +9 -0
  489. package/lib/types/components/Dialog.d.ts +12 -0
  490. package/lib/types/components/DialogAction.d.ts +4 -0
  491. package/lib/types/components/DialogContent.d.ts +12 -0
  492. package/lib/types/components/GlassButton.d.ts +38 -0
  493. package/lib/types/components/GlassFab.d.ts +15 -0
  494. package/lib/types/components/GlassMagnifier.d.ts +41 -0
  495. package/lib/types/components/GlassPlayground.d.ts +12 -0
  496. package/lib/types/components/GlassSlider.d.ts +48 -0
  497. package/lib/types/components/GlassSwitch.d.ts +46 -0
  498. package/lib/types/components/GlassTabBar.d.ts +44 -0
  499. package/lib/types/components/Input.d.ts +47 -0
  500. package/lib/types/components/ListRow.d.ts +17 -0
  501. package/lib/types/components/Menu.d.ts +41 -0
  502. package/lib/types/components/NavigationBar.d.ts +14 -0
  503. package/lib/types/components/NumberWheel.d.ts +11 -0
  504. package/lib/types/components/PageFeedList.d.ts +6 -0
  505. package/lib/types/components/PageScaffold.d.ts +64 -0
  506. package/lib/types/components/PreferenceGroup.d.ts +12 -0
  507. package/lib/types/components/ProgressIndicator.d.ts +9 -0
  508. package/lib/types/components/ProgressiveBlur.d.ts +12 -0
  509. package/lib/types/components/ReferenceSlider.d.ts +31 -0
  510. package/lib/types/components/ReferenceTabBar.d.ts +61 -0
  511. package/lib/types/components/SearchBar.d.ts +52 -0
  512. package/lib/types/components/SegmentedControl.d.ts +10 -0
  513. package/lib/types/components/Slider.d.ts +19 -0
  514. package/lib/types/components/Snackbar.d.ts +5 -0
  515. package/lib/types/components/SurfaceEnvironmentContext.d.ts +17 -0
  516. package/lib/types/components/SurfaceGroup.d.ts +17 -0
  517. package/lib/types/components/Switch.d.ts +12 -0
  518. package/lib/types/components/Toast.d.ts +14 -0
  519. package/lib/types/components/TopAppBar.d.ts +49 -0
  520. package/lib/types/components/bottomSheetMotion.d.ts +2 -0
  521. package/lib/types/components/glassControlMaterial.d.ts +3 -0
  522. package/lib/types/components/menuPosition.d.ts +22 -0
  523. package/lib/types/components/pages/FeedPage.d.ts +31 -0
  524. package/lib/types/components/pages/PageBenchmarkContext.d.ts +30 -0
  525. package/lib/types/components/pages/SettingsPage.d.ts +20 -0
  526. package/lib/types/components/pages/SettingsSection.d.ts +9 -0
  527. package/lib/types/components/pages/StaticSettingsPage.d.ts +18 -0
  528. package/lib/types/fallbackKnobGeometry.d.ts +7 -0
  529. package/lib/types/glassController.d.ts +20 -0
  530. package/lib/types/glassNativeEngine.d.ts +5 -0
  531. package/lib/types/glassRuntime.d.ts +7 -0
  532. package/lib/types/index.d.ts +124 -0
  533. package/lib/types/inputPresentation.d.ts +12 -0
  534. package/lib/types/localGlassTelemetry.d.ts +28 -0
  535. package/lib/types/motion/MotionProvider.d.ts +7 -0
  536. package/lib/types/motion/easings.d.ts +33 -0
  537. package/lib/types/motion/folmeSpring.d.ts +15 -0
  538. package/lib/types/motion/folmeSpringByResponse.d.ts +14 -0
  539. package/lib/types/motion/index.d.ts +7 -0
  540. package/lib/types/motion/presets.d.ts +103 -0
  541. package/lib/types/nativeGlassViews.d.ts +114 -0
  542. package/lib/types/performanceTelemetry.d.ts +65 -0
  543. package/lib/types/pointerEventBridge.d.ts +17 -0
  544. package/lib/types/pointerGeometry.d.ts +2 -0
  545. package/lib/types/pressVelocity.d.ts +11 -0
  546. package/lib/types/primitives/Divider.d.ts +19 -0
  547. package/lib/types/primitives/Icon.d.ts +29 -0
  548. package/lib/types/primitives/PressIndication.d.ts +26 -0
  549. package/lib/types/primitives/Pressable.d.ts +9 -0
  550. package/lib/types/primitives/PressableScale.d.ts +19 -0
  551. package/lib/types/primitives/Surface.d.ts +63 -0
  552. package/lib/types/primitives/Text.d.ts +35 -0
  553. package/lib/types/primitives/index.d.ts +14 -0
  554. package/lib/types/renderer.d.ts +32 -0
  555. package/lib/types/sliderValue.d.ts +2 -0
  556. package/lib/types/surfaceRendererPolicy.d.ts +14 -0
  557. package/lib/types/theme/ThemeProvider.d.ts +26 -0
  558. package/lib/types/theme/buildTheme.d.ts +6 -0
  559. package/lib/types/theme/glassColors.d.ts +13 -0
  560. package/lib/types/theme/index.d.ts +11 -0
  561. package/lib/types/theme/liquidGlass.d.ts +5 -0
  562. package/lib/types/theme/presentation.d.ts +3 -0
  563. package/lib/types/theme/registry.d.ts +7 -0
  564. package/lib/types/theme/selectVariant.d.ts +10 -0
  565. package/lib/types/theme/tokens.d.ts +18 -0
  566. package/lib/types/theme/types.d.ts +305 -0
  567. package/lib/types/theme/wallpaper.d.ts +32 -0
  568. package/lib/types/types.d.ts +127 -0
  569. package/lib/types/useButtonGesture.d.ts +30 -0
  570. package/lib/types/useGlassKnobMotion.d.ts +40 -0
  571. package/lib/types/useGlassPressMotion.d.ts +61 -0
  572. package/licenses/Apache-2.0-Kyant0-Shapes.txt +191 -0
  573. package/package.json +139 -4
  574. package/patches/liquid-glass-kit+1.0.0.patch +2015 -0
  575. package/patches/liquid-glass-kit-invalidation-coalescing.diff +249 -0
  576. package/patches/liquid-glass-kit-native-infra.diff +624 -0
  577. package/scripts/apply-legacy-patches.mjs +116 -0
  578. package/src/GlassSurface.tsx +1786 -0
  579. package/src/GlassTabBar.tsx +1304 -0
  580. package/src/GlassTabLens.tsx +92 -0
  581. package/src/LiquidGlassProvider.tsx +135 -0
  582. package/src/LocalGlassMaterial.tsx +262 -0
  583. package/src/adaptiveLuminance.ts +15 -0
  584. package/src/badgePalette.ts +54 -0
  585. package/src/buttonGesturePolicy.ts +15 -0
  586. package/src/components/AdaptiveLuminance.tsx +40 -0
  587. package/src/components/BottomSheet.tsx +291 -0
  588. package/src/components/Button.tsx +30 -0
  589. package/src/components/Card.tsx +343 -0
  590. package/src/components/Checkbox.tsx +141 -0
  591. package/src/components/ControlPressContext.ts +11 -0
  592. package/src/components/Dialog.tsx +129 -0
  593. package/src/components/DialogAction.tsx +109 -0
  594. package/src/components/DialogContent.tsx +52 -0
  595. package/src/components/GlassButton.tsx +225 -0
  596. package/src/components/GlassFab.tsx +98 -0
  597. package/src/components/GlassMagnifier.tsx +178 -0
  598. package/src/components/GlassPlayground.tsx +190 -0
  599. package/src/components/GlassSlider.tsx +448 -0
  600. package/src/components/GlassSwitch.tsx +391 -0
  601. package/src/components/GlassTabBar.tsx +522 -0
  602. package/src/components/Input.tsx +277 -0
  603. package/src/components/ListRow.tsx +124 -0
  604. package/src/components/Menu.tsx +322 -0
  605. package/src/components/NavigationBar.tsx +27 -0
  606. package/src/components/NumberWheel.tsx +344 -0
  607. package/src/components/PageFeedList.tsx +37 -0
  608. package/src/components/PageScaffold.tsx +266 -0
  609. package/src/components/PreferenceGroup.tsx +65 -0
  610. package/src/components/ProgressIndicator.tsx +63 -0
  611. package/src/components/ProgressiveBlur.tsx +56 -0
  612. package/src/components/ReferenceSlider.tsx +364 -0
  613. package/src/components/ReferenceTabBar.tsx +564 -0
  614. package/src/components/SearchBar.tsx +340 -0
  615. package/src/components/SegmentedControl.tsx +45 -0
  616. package/src/components/Slider.tsx +25 -0
  617. package/src/components/Snackbar.tsx +10 -0
  618. package/src/components/SurfaceEnvironmentContext.tsx +46 -0
  619. package/src/components/SurfaceGroup.tsx +60 -0
  620. package/src/components/Switch.tsx +18 -0
  621. package/src/components/Toast.tsx +110 -0
  622. package/src/components/TopAppBar.tsx +272 -0
  623. package/src/components/bottomSheetMotion.ts +10 -0
  624. package/src/components/glassControlMaterial.ts +20 -0
  625. package/src/components/menuPosition.ts +58 -0
  626. package/src/components/pages/FeedPage.tsx +96 -0
  627. package/src/components/pages/PageBenchmarkContext.tsx +105 -0
  628. package/src/components/pages/SettingsPage.tsx +55 -0
  629. package/src/components/pages/SettingsSection.tsx +20 -0
  630. package/src/components/pages/StaticSettingsPage.tsx +50 -0
  631. package/src/fallbackKnobGeometry.ts +15 -0
  632. package/src/glassController.ts +74 -0
  633. package/src/glassNativeEngine.ts +16 -0
  634. package/src/glassRuntime.ts +28 -0
  635. package/src/index.ts +199 -0
  636. package/src/inputPresentation.ts +32 -0
  637. package/src/localGlassTelemetry.ts +138 -0
  638. package/src/motion/MotionProvider.tsx +12 -0
  639. package/src/motion/easings.ts +71 -0
  640. package/src/motion/folmeSpring.ts +22 -0
  641. package/src/motion/folmeSpringByResponse.ts +19 -0
  642. package/src/motion/index.ts +47 -0
  643. package/src/motion/presets.ts +128 -0
  644. package/src/nativeGlassViews.ts +147 -0
  645. package/src/performanceTelemetry.ts +95 -0
  646. package/src/pointerEventBridge.ts +27 -0
  647. package/src/pointerGeometry.ts +8 -0
  648. package/src/pressVelocity.ts +36 -0
  649. package/src/primitives/Divider.tsx +42 -0
  650. package/src/primitives/Icon.tsx +44 -0
  651. package/src/primitives/PressIndication.tsx +43 -0
  652. package/src/primitives/Pressable.tsx +75 -0
  653. package/src/primitives/PressableScale.tsx +50 -0
  654. package/src/primitives/Surface.tsx +171 -0
  655. package/src/primitives/Text.tsx +80 -0
  656. package/src/primitives/index.ts +14 -0
  657. package/src/renderer.ts +70 -0
  658. package/src/sliderValue.ts +19 -0
  659. package/src/surfaceRendererPolicy.ts +32 -0
  660. package/src/theme/ThemeProvider.tsx +52 -0
  661. package/src/theme/buildTheme.ts +160 -0
  662. package/src/theme/glassColors.ts +13 -0
  663. package/src/theme/index.ts +34 -0
  664. package/src/theme/liquidGlass.ts +25 -0
  665. package/src/theme/presentation.ts +12 -0
  666. package/src/theme/registry.ts +16 -0
  667. package/src/theme/selectVariant.ts +12 -0
  668. package/src/theme/tokens.ts +309 -0
  669. package/src/theme/types.ts +345 -0
  670. package/src/theme/wallpaper.ts +94 -0
  671. package/src/types.ts +95 -0
  672. package/src/useButtonGesture.ts +134 -0
  673. package/src/useGlassKnobMotion.ts +155 -0
  674. package/src/useGlassPressMotion.ts +209 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pressVelocity.js","sourceRoot":"","sources":["../../src/pressVelocity.ts"],"names":[],"mappings":";;AAQA,oEA2BC;AA5BD,2EAA2E;AAC3E,SAAgB,4BAA4B,CACxC,OAAsC,EACtC,aAAa,GAAG,GAAG;IAEnB,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAC9C,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC;IACpD,MAAM,MAAM,GAAG,GAAG,GAAG,aAAa,CAAC;IACnC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC;IACzE,KAAK,IAAI,KAAK,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC;QACjE,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,MAAM,CAAC,WAAW,GAAG,MAAM;YAAE,MAAM;QACvC,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC;QACnC,CAAC,EAAE,CAAC;QACJ,IAAI,IAAI,CAAC,CAAC;QACV,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;QACf,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC;QACjB,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACtB,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IACjC,MAAM,WAAW,GAAG,CAAC,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5C,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,IAAI;QAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IACxD,OAAO;QACH,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,WAAW;QAC1C,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,WAAW;KAC7C,CAAC;AACN,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Divider = 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
+ /**
9
+ * Design System Divider.
10
+ *
11
+ * Visual reference:
12
+ * miuix-vue/src/components/divider/Divider.vue (Divider.kt)
13
+ *
14
+ * DividerDefaults: thickness 0.75dp, color = dividerLine. Pages must not
15
+ * hardcode `#E0E0E0` — use this.
16
+ */
17
+ exports.Divider = (0, react_1.memo)(function Divider({ orientation = 'horizontal', thickness = 0.75, color, style }) {
18
+ const theme = (0, theme_1.useTheme)();
19
+ const isHorizontal = orientation === 'horizontal';
20
+ return ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [
21
+ {
22
+ backgroundColor: color ?? theme.colors.dividerLine,
23
+ opacity: theme.presentation.content.dividerStyle === 'subtle' ? 0.72 : 1,
24
+ },
25
+ isHorizontal
26
+ ? { width: '100%', height: thickness }
27
+ : { height: '100%', width: thickness },
28
+ style,
29
+ ] }));
30
+ });
31
+ exports.Divider.displayName = 'HyperDivider';
32
+ //# sourceMappingURL=Divider.js.map
@@ -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"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSurfaceRendererPolicy = getSurfaceRendererPolicy;
4
+ exports.getSurfaceRendererPolicyOverride = getSurfaceRendererPolicyOverride;
5
+ exports.setSurfaceRendererPolicyOverride = setSurfaceRendererPolicyOverride;
6
+ const overrides = {};
7
+ /**
8
+ * Resolve the local material backend from the surface's reusable semantic role.
9
+ * The matched Settings device A/B found no effective-cadence gain from Skia,
10
+ * so local roles currently retain the native renderer. Backdrop optics never
11
+ * pass through this local renderer policy.
12
+ */
13
+ function getSurfaceRendererPolicy(role) {
14
+ if (role === 'backdropOptical')
15
+ return 'native';
16
+ return overrides[role] ?? 'native';
17
+ }
18
+ function getSurfaceRendererPolicyOverride(role) {
19
+ return overrides[role] ?? null;
20
+ }
21
+ /** Diagnostic A/B control. Production calls are ignored. */
22
+ function setSurfaceRendererPolicyOverride(role, renderer) {
23
+ if (!__DEV__)
24
+ return;
25
+ if (overrides[role] === renderer || (renderer == null && overrides[role] == null))
26
+ return;
27
+ if (renderer == null)
28
+ delete overrides[role];
29
+ else
30
+ overrides[role] = renderer;
31
+ }
32
+ //# sourceMappingURL=surfaceRendererPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceRendererPolicy.js","sourceRoot":"","sources":["../../src/surfaceRendererPolicy.ts"],"names":[],"mappings":";;AAaA,4DAGC;AAED,4EAEC;AAGD,4EAQC;AA1BD,MAAM,SAAS,GAAmD,EAAE,CAAC;AAErE;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,IAAsB;IAC3D,IAAI,IAAI,KAAK,iBAAiB;QAAE,OAAO,QAAQ,CAAC;IAChD,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAe;IAC5D,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;AACnC,CAAC;AAED,4DAA4D;AAC5D,SAAgB,gCAAgC,CAC5C,IAAe,EACf,QAAmC;IAEnC,IAAI,CAAC,OAAO;QAAE,OAAO;IACrB,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,QAAQ,IAAI,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;QAAE,OAAO;IAC1F,IAAI,QAAQ,IAAI,IAAI;QAAE,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;;QACxC,SAAS,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;AACpC,CAAC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useTheme = void 0;
4
+ exports.LiquidGlassThemeProvider = LiquidGlassThemeProvider;
5
+ exports.useLiquidGlassTheme = useLiquidGlassTheme;
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const react_1 = require("react");
8
+ const react_native_1 = require("react-native");
9
+ const registry_1 = require("./registry");
10
+ const MotionProvider_1 = require("../motion/MotionProvider");
11
+ const ThemeContext = (0, react_1.createContext)((0, registry_1.resolveLiquidGlassTheme)(false));
12
+ /**
13
+ * Theme and motion scope for Liquid Glass components.
14
+ *
15
+ * This provider only resolves appearance and motion preference. It does not
16
+ * mount a backdrop recorder: surfaces that sample the scene need
17
+ * `GlassMaterialProvider` (or `LiquidGlassProvider`, which nests both) so the
18
+ * component library can be used for static previews without starting native
19
+ * capture.
20
+ */
21
+ function LiquidGlassThemeProvider({ mode = 'system', reducedMotion = false, value, children }) {
22
+ const systemScheme = (0, react_native_1.useColorScheme)();
23
+ const resolved = (0, react_1.useMemo)(() => {
24
+ if (value)
25
+ return value;
26
+ const dark = mode === 'dark' || (mode === 'system' && systemScheme === 'dark');
27
+ return (0, registry_1.resolveLiquidGlassTheme)(dark);
28
+ }, [value, mode, systemScheme]);
29
+ return ((0, jsx_runtime_1.jsx)(ThemeContext.Provider, { value: resolved, children: (0, jsx_runtime_1.jsx)(MotionProvider_1.MotionProvider, { reduced: reducedMotion, children: children }) }));
30
+ }
31
+ /** Read the current Liquid Glass theme. */
32
+ function useLiquidGlassTheme() {
33
+ return (0, react_1.useContext)(ThemeContext);
34
+ }
35
+ /** @deprecated Use {@link useLiquidGlassTheme}. */
36
+ exports.useTheme = useLiquidGlassTheme;
37
+ //# sourceMappingURL=ThemeProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":";;;AA6BA,4DAcC;AAGD,kDAEC;;AAhDD,iCAAkE;AAClE,+CAA8C;AAC9C,yCAAqD;AACrD,6DAA0D;AAe1D,MAAM,YAAY,GAAG,IAAA,qBAAa,EAAmB,IAAA,kCAAuB,EAAC,KAAK,CAAC,CAAC,CAAC;AAErF;;;;;;;;GAQG;AACH,SAAgB,wBAAwB,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE,aAAa,GAAG,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAiC;IAC/H,MAAM,YAAY,GAAG,IAAA,6BAAc,GAAE,CAAC;IAEtC,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC1B,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC;QACxB,MAAM,IAAI,GAAG,IAAI,KAAK,MAAM,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,YAAY,KAAK,MAAM,CAAC,CAAC;QAC/E,OAAO,IAAA,kCAAuB,EAAC,IAAI,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;IAEhC,OAAO,CACH,uBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,YAClC,uBAAC,+BAAc,IAAC,OAAO,EAAE,aAAa,YAAG,QAAQ,GAAkB,GAC/C,CAC3B,CAAC;AACN,CAAC;AAED,2CAA2C;AAC3C,SAAgB,mBAAmB;IAC/B,OAAO,IAAA,kBAAU,EAAC,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,mDAAmD;AACtC,QAAA,QAAQ,GAAG,mBAAmB,CAAC"}