glacia-native 0.5.2 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +84 -17
  2. package/lib/module/Accordion.js +58 -0
  3. package/lib/module/ActionSheet.js +38 -0
  4. package/lib/module/Alert.js +23 -0
  5. package/lib/module/AlertDialog.js +47 -0
  6. package/lib/module/Avatar.js +48 -0
  7. package/lib/module/Badge.js +36 -0
  8. package/lib/module/Bars.js +13 -268
  9. package/lib/module/Button.js +57 -39
  10. package/lib/module/Card.js +31 -19
  11. package/lib/module/Checkbox.js +42 -0
  12. package/lib/module/Chip.js +80 -0
  13. package/lib/module/Collapsible.js +26 -0
  14. package/lib/module/ContextMenu.js +33 -0
  15. package/lib/module/Dialog.js +39 -123
  16. package/lib/module/DropdownMenu.js +33 -0
  17. package/lib/module/Field.js +22 -0
  18. package/lib/module/Glass.js +10 -3
  19. package/lib/module/Group.js +36 -0
  20. package/lib/module/IconButton.js +40 -0
  21. package/lib/module/Input.js +43 -38
  22. package/lib/module/Label.js +17 -0
  23. package/lib/module/MorphGroup.js +47 -0
  24. package/lib/module/Popover.js +29 -0
  25. package/lib/module/Progress.js +32 -0
  26. package/lib/module/RadioGroup.js +51 -0
  27. package/lib/module/Scrim.js +44 -0
  28. package/lib/module/SegmentedControl.js +70 -63
  29. package/lib/module/Select.js +51 -0
  30. package/lib/module/Separator.js +25 -0
  31. package/lib/module/Sheet.js +51 -0
  32. package/lib/module/Skeleton.js +48 -0
  33. package/lib/module/Slider.js +45 -34
  34. package/lib/module/Stepper.js +167 -0
  35. package/lib/module/Switch.js +45 -55
  36. package/lib/module/TabBar.js +50 -44
  37. package/lib/module/Textarea.js +18 -0
  38. package/lib/module/Toast.js +55 -0
  39. package/lib/module/Toggle.js +47 -0
  40. package/lib/module/ToggleGroup.js +56 -0
  41. package/lib/module/Toolbar.js +37 -0
  42. package/lib/module/Tooltip.js +31 -0
  43. package/lib/module/glass-provider.js +28 -0
  44. package/lib/module/glass-stack.js +61 -0
  45. package/lib/module/index.js +78 -109
  46. package/lib/module/internal/GlassBackdrop.js +36 -0
  47. package/lib/module/internal/GlassView.js +43 -11
  48. package/lib/module/internal/blur-community.js +20 -0
  49. package/lib/module/internal/blur-community.web.js +9 -0
  50. package/lib/module/internal/blur.js +6 -9
  51. package/lib/module/internal/glass-routing.js +156 -30
  52. package/lib/module/internal/initials.js +12 -0
  53. package/lib/module/internal/overlay.js +147 -0
  54. package/lib/module/internal/primitives.js +16 -0
  55. package/lib/typescript/Accordion.d.ts +22 -0
  56. package/lib/typescript/ActionSheet.d.ts +24 -0
  57. package/lib/typescript/Alert.d.ts +15 -0
  58. package/lib/typescript/AlertDialog.d.ts +17 -0
  59. package/lib/typescript/Avatar.d.ts +22 -0
  60. package/lib/typescript/Badge.d.ts +12 -0
  61. package/lib/typescript/Bars.d.ts +3 -188
  62. package/lib/typescript/Button.d.ts +44 -10
  63. package/lib/typescript/Card.d.ts +30 -3
  64. package/lib/typescript/Checkbox.d.ts +14 -0
  65. package/lib/typescript/Chip.d.ts +19 -0
  66. package/lib/typescript/Collapsible.d.ts +17 -0
  67. package/lib/typescript/ContextMenu.d.ts +23 -0
  68. package/lib/typescript/Dialog.d.ts +8 -68
  69. package/lib/typescript/DropdownMenu.d.ts +23 -0
  70. package/lib/typescript/Field.d.ts +19 -0
  71. package/lib/typescript/Glass.d.ts +11 -2
  72. package/lib/typescript/Group.d.ts +35 -0
  73. package/lib/typescript/IconButton.d.ts +21 -0
  74. package/lib/typescript/Input.d.ts +17 -18
  75. package/lib/typescript/Label.d.ts +14 -0
  76. package/lib/typescript/MorphGroup.d.ts +46 -0
  77. package/lib/typescript/Popover.d.ts +17 -0
  78. package/lib/typescript/Progress.d.ts +13 -0
  79. package/lib/typescript/RadioGroup.d.ts +21 -0
  80. package/lib/typescript/Scrim.d.ts +33 -0
  81. package/lib/typescript/SegmentedControl.d.ts +24 -13
  82. package/lib/typescript/Select.d.ts +19 -0
  83. package/lib/typescript/Separator.d.ts +10 -0
  84. package/lib/typescript/Sheet.d.ts +45 -0
  85. package/lib/typescript/Skeleton.d.ts +10 -0
  86. package/lib/typescript/Slider.d.ts +15 -7
  87. package/lib/typescript/Stepper.d.ts +49 -0
  88. package/lib/typescript/Switch.d.ts +19 -12
  89. package/lib/typescript/TabBar.d.ts +18 -6
  90. package/lib/typescript/Textarea.d.ts +6 -0
  91. package/lib/typescript/Toast.d.ts +40 -0
  92. package/lib/typescript/Toggle.d.ts +21 -0
  93. package/lib/typescript/ToggleGroup.d.ts +22 -0
  94. package/lib/typescript/Toolbar.d.ts +35 -0
  95. package/lib/typescript/Tooltip.d.ts +16 -0
  96. package/lib/typescript/glass-provider.d.ts +34 -0
  97. package/lib/typescript/glass-stack.d.ts +54 -0
  98. package/lib/typescript/index.d.ts +38 -17
  99. package/lib/typescript/internal/GlassBackdrop.d.ts +33 -0
  100. package/lib/typescript/internal/GlassView.d.ts +18 -2
  101. package/lib/typescript/internal/blur-community.d.ts +2 -0
  102. package/lib/typescript/internal/blur-community.web.d.ts +2 -0
  103. package/lib/typescript/internal/glass-routing.d.ts +83 -15
  104. package/lib/typescript/internal/initials.d.ts +2 -0
  105. package/lib/typescript/internal/overlay.d.ts +74 -0
  106. package/lib/typescript/internal/primitives.d.ts +11 -0
  107. package/package.json +12 -10
  108. package/src/Accordion.tsx +165 -0
  109. package/src/ActionSheet.tsx +149 -0
  110. package/src/Alert.tsx +85 -0
  111. package/src/AlertDialog.tsx +124 -0
  112. package/src/Avatar.tsx +102 -0
  113. package/src/Badge.tsx +80 -0
  114. package/src/Bars.tsx +10 -807
  115. package/src/Button.tsx +196 -67
  116. package/src/Card.tsx +105 -32
  117. package/src/Checkbox.tsx +98 -0
  118. package/src/Chip.tsx +149 -0
  119. package/src/Collapsible.tsx +66 -0
  120. package/src/ContextMenu.tsx +103 -0
  121. package/src/Dialog.tsx +85 -335
  122. package/src/DropdownMenu.tsx +103 -0
  123. package/src/Field.tsx +65 -0
  124. package/src/Glass.tsx +15 -5
  125. package/src/Group.tsx +98 -0
  126. package/src/IconButton.tsx +110 -0
  127. package/src/Input.tsx +139 -87
  128. package/src/Label.tsx +56 -0
  129. package/src/MorphGroup.tsx +134 -0
  130. package/src/Popover.tsx +81 -0
  131. package/src/Progress.tsx +83 -0
  132. package/src/RadioGroup.tsx +122 -0
  133. package/src/Scrim.tsx +94 -0
  134. package/src/SegmentedControl.tsx +132 -99
  135. package/src/Select.tsx +136 -0
  136. package/src/Separator.tsx +52 -0
  137. package/src/Sheet.tsx +139 -0
  138. package/src/Skeleton.tsx +77 -0
  139. package/src/Slider.tsx +84 -47
  140. package/src/Stepper.tsx +315 -0
  141. package/src/Switch.tsx +81 -73
  142. package/src/TabBar.tsx +106 -93
  143. package/src/Textarea.tsx +34 -0
  144. package/src/Toast.tsx +131 -0
  145. package/src/Toggle.tsx +113 -0
  146. package/src/ToggleGroup.tsx +129 -0
  147. package/src/Toolbar.tsx +111 -0
  148. package/src/Tooltip.tsx +79 -0
  149. package/src/engine/CHANGELOG.md +430 -0
  150. package/src/engine/NOTICE +54 -0
  151. package/src/engine/README.md +975 -0
  152. package/src/engine/android/build.gradle +18 -0
  153. package/src/engine/android/src/main/AndroidManifest.xml +2 -0
  154. package/src/engine/android/src/main/java/expo/modules/liquidglass/ExpoLiquidGlassModule.kt +174 -0
  155. package/src/engine/android/src/main/java/expo/modules/liquidglass/GlassConstants.kt +7 -0
  156. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassContainerView.kt +16 -0
  157. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassProviderView.kt +165 -0
  158. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassView.kt +1731 -0
  159. package/src/engine/android/src/main/java/expo/modules/liquidglass/enums/GlassEnums.kt +171 -0
  160. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropGraph.kt +146 -0
  161. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropSource.kt +53 -0
  162. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ContinuousCorners.kt +188 -0
  163. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/CornerRadii.kt +62 -0
  164. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassAppearance.kt +352 -0
  165. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassDebug.kt +109 -0
  166. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassEnvironment.kt +139 -0
  167. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassHdr.kt +85 -0
  168. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassLuminanceProbe.kt +189 -0
  169. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassPressAnimator.kt +264 -0
  170. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassProgressiveBlur.kt +249 -0
  171. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderCache.kt +256 -0
  172. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderSource.kt +845 -0
  173. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassTier.kt +63 -0
  174. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ProviderRegistry.kt +71 -0
  175. package/src/engine/android/src/main/java/expo/modules/liquidglass/records/GlassRecords.kt +288 -0
  176. package/src/engine/index.ts +24 -0
  177. package/src/engine/ios/Enums/GlassBlurDirection.swift +21 -0
  178. package/src/engine/ios/Enums/GlassVariant.swift +86 -0
  179. package/src/engine/ios/ExpoLiquidGlass.podspec +93 -0
  180. package/src/engine/ios/ExpoLiquidGlassModule.swift +77 -0
  181. package/src/engine/ios/Glass/BackdropCapturer.swift +811 -0
  182. package/src/engine/ios/Glass/ContinuousCorners.swift +165 -0
  183. package/src/engine/ios/Glass/GlassBackdrop.swift +176 -0
  184. package/src/engine/ios/Glass/GlassFramePhase.swift +126 -0
  185. package/src/engine/ios/Glass/GlassFrameScheduler.swift +261 -0
  186. package/src/engine/ios/Glass/GlassPressAnimator.swift +250 -0
  187. package/src/engine/ios/Glass/GlassRenderContext.swift +168 -0
  188. package/src/engine/ios/Glass/GlassRenderer.swift +186 -0
  189. package/src/engine/ios/Glass/GlassSurfaceView.swift +452 -0
  190. package/src/engine/ios/Glass/NonRenderableView.swift +54 -0
  191. package/src/engine/ios/Glass/StripCache.swift +545 -0
  192. package/src/engine/ios/Records/GlassCornerRadii.swift +79 -0
  193. package/src/engine/ios/Records/GlassMetalOptions.swift +180 -0
  194. package/src/engine/ios/Records/GlassRefractionCurve.swift +14 -0
  195. package/src/engine/ios/Shaders/LiquidGlass.metal +480 -0
  196. package/src/engine/ios/Shaders/bundle-marker.txt +6 -0
  197. package/src/engine/ios/Views/LiquidGlassContainerView.swift +99 -0
  198. package/src/engine/ios/Views/LiquidGlassView.swift +859 -0
  199. package/src/engine/package.json +70 -0
  200. package/src/engine/src/components/LiquidGlassButton/LiquidGlassButton.tsx +424 -0
  201. package/src/engine/src/components/LiquidGlassCard/LiquidGlassCard.tsx +98 -0
  202. package/src/engine/src/components/LiquidGlassChip/LiquidGlassChip.tsx +65 -0
  203. package/src/engine/src/components/LiquidGlassGroup/LiquidGlassGroup.tsx +350 -0
  204. package/src/engine/src/components/LiquidGlassIconButton/LiquidGlassIconButton.tsx +24 -0
  205. package/src/engine/src/components/LiquidGlassMorphGroup/LiquidGlassMorphGroup.tsx +434 -0
  206. package/src/engine/src/components/LiquidGlassScrim/LiquidGlassScrim.tsx +100 -0
  207. package/src/engine/src/components/LiquidGlassSegmentedControl/LiquidGlassSegmentedControl.tsx +213 -0
  208. package/src/engine/src/components/LiquidGlassSheet/LiquidGlassSheet.tsx +218 -0
  209. package/src/engine/src/components/LiquidGlassSlider/LiquidGlassSlider.tsx +327 -0
  210. package/src/engine/src/components/LiquidGlassStepper/LiquidGlassStepper.tsx +321 -0
  211. package/src/engine/src/components/LiquidGlassSwitch/LiquidGlassSwitch.tsx +296 -0
  212. package/src/engine/src/components/LiquidGlassTabBar/LiquidGlassTabBar.tsx +952 -0
  213. package/src/engine/src/components/LiquidGlassTextInput/LiquidGlassTextInput.tsx +151 -0
  214. package/src/engine/src/components/LiquidGlassToast/LiquidGlassToast.tsx +169 -0
  215. package/src/engine/src/components/LiquidGlassToolbar/LiquidGlassToolbar.tsx +124 -0
  216. package/src/engine/src/components/index.ts +16 -0
  217. package/src/engine/src/constants/index.ts +4 -0
  218. package/src/engine/src/constants/metal.constants.ts +327 -0
  219. package/src/engine/src/constants/metrics.constants.ts +325 -0
  220. package/src/engine/src/constants/springs.constants.ts +107 -0
  221. package/src/engine/src/constants/styles.constants.ts +12 -0
  222. package/src/engine/src/context/glass-group.context.ts +65 -0
  223. package/src/engine/src/context/index.ts +6 -0
  224. package/src/engine/src/core/components/LiquidGlassContainer/LiquidGlassContainer.tsx +32 -0
  225. package/src/engine/src/core/components/LiquidGlassContainer/index.ts +1 -0
  226. package/src/engine/src/core/components/LiquidGlassProvider/LiquidGlassProvider.tsx +66 -0
  227. package/src/engine/src/core/components/LiquidGlassProvider/index.ts +1 -0
  228. package/src/engine/src/core/components/LiquidGlassStack/LiquidGlassStack.tsx +184 -0
  229. package/src/engine/src/core/components/LiquidGlassStack/index.ts +1 -0
  230. package/src/engine/src/core/components/LiquidGlassView/LiquidGlassView.tsx +126 -0
  231. package/src/engine/src/core/components/LiquidGlassView/index.ts +1 -0
  232. package/src/engine/src/core/components/index.ts +4 -0
  233. package/src/engine/src/core/constants/glass.constants.ts +57 -0
  234. package/src/engine/src/core/constants/index.ts +20 -0
  235. package/src/engine/src/core/constants/native.constants.ts +16 -0
  236. package/src/engine/src/core/context/glass-stack.context.ts +30 -0
  237. package/src/engine/src/core/context/index.ts +4 -0
  238. package/src/engine/src/core/enum/index.ts +12 -0
  239. package/src/engine/src/core/index.ts +1 -0
  240. package/src/engine/src/core/interfaces/glass-hdr.interface.ts +15 -0
  241. package/src/engine/src/core/interfaces/glass-metal.interface.ts +248 -0
  242. package/src/engine/src/core/interfaces/glass-surface.interface.ts +9 -0
  243. package/src/engine/src/core/interfaces/index.ts +31 -0
  244. package/src/engine/src/core/interfaces/liquid-glass-container.interface.ts +6 -0
  245. package/src/engine/src/core/interfaces/liquid-glass-provider.interface.ts +14 -0
  246. package/src/engine/src/core/interfaces/liquid-glass-stack.interface.ts +21 -0
  247. package/src/engine/src/core/interfaces/liquid-glass-view.interface.ts +129 -0
  248. package/src/engine/src/core/interfaces/native-liquid-glass-view.interface.ts +19 -0
  249. package/src/engine/src/core/modules/ExpoLiquidGlassModule.ts +26 -0
  250. package/src/engine/src/core/modules/index.ts +2 -0
  251. package/src/engine/src/core/root/index.ts +51 -0
  252. package/src/engine/src/core/types/glass.types.ts +25 -0
  253. package/src/engine/src/core/types/index.ts +8 -0
  254. package/src/engine/src/core/utils/debug.utils.ts +17 -0
  255. package/src/engine/src/core/utils/dev-warn.utils.ts +17 -0
  256. package/src/engine/src/core/utils/hdr.utils.ts +37 -0
  257. package/src/engine/src/core/utils/index.ts +5 -0
  258. package/src/engine/src/core/utils/native-view.utils.ts +33 -0
  259. package/src/engine/src/core/utils/platform.utils.ts +34 -0
  260. package/src/engine/src/core/views/NativeGlassBackdropView.ts +24 -0
  261. package/src/engine/src/core/views/NativeLiquidGlassContainerView.ts +13 -0
  262. package/src/engine/src/core/views/NativeLiquidGlassContainerView.web.ts +10 -0
  263. package/src/engine/src/core/views/NativeLiquidGlassProviderView.ts +13 -0
  264. package/src/engine/src/core/views/NativeLiquidGlassProviderView.web.ts +10 -0
  265. package/src/engine/src/core/views/NativeLiquidGlassView.ts +19 -0
  266. package/src/engine/src/core/views/NativeLiquidGlassView.web.ts +14 -0
  267. package/src/engine/src/core/views/index.ts +4 -0
  268. package/src/engine/src/hooks/index.ts +18 -0
  269. package/src/engine/src/hooks/use-adaptive-glass.ts +91 -0
  270. package/src/engine/src/hooks/use-damped-drag.ts +332 -0
  271. package/src/engine/src/hooks/use-echo-filter.ts +55 -0
  272. package/src/engine/src/hooks/use-glass-group-member.ts +169 -0
  273. package/src/engine/src/hooks/use-gravity-highlight.ts +79 -0
  274. package/src/engine/src/hooks/use-press-progress.ts +44 -0
  275. package/src/engine/src/index.ts +120 -0
  276. package/src/engine/src/interfaces/index.ts +28 -0
  277. package/src/engine/src/interfaces/liquid-glass-button.interface.ts +94 -0
  278. package/src/engine/src/interfaces/liquid-glass-card.interface.ts +40 -0
  279. package/src/engine/src/interfaces/liquid-glass-chip.interface.ts +29 -0
  280. package/src/engine/src/interfaces/liquid-glass-group.interface.ts +32 -0
  281. package/src/engine/src/interfaces/liquid-glass-icon-button.interface.ts +19 -0
  282. package/src/engine/src/interfaces/liquid-glass-morph-group.interface.ts +59 -0
  283. package/src/engine/src/interfaces/liquid-glass-scrim.interface.ts +36 -0
  284. package/src/engine/src/interfaces/liquid-glass-segmented-control.interface.ts +32 -0
  285. package/src/engine/src/interfaces/liquid-glass-sheet.interface.ts +38 -0
  286. package/src/engine/src/interfaces/liquid-glass-slider.interface.ts +37 -0
  287. package/src/engine/src/interfaces/liquid-glass-stepper.interface.ts +35 -0
  288. package/src/engine/src/interfaces/liquid-glass-switch.interface.ts +27 -0
  289. package/src/engine/src/interfaces/liquid-glass-tab-bar.interface.ts +116 -0
  290. package/src/engine/src/interfaces/liquid-glass-text-input.interface.ts +42 -0
  291. package/src/engine/src/interfaces/liquid-glass-toast.interface.ts +36 -0
  292. package/src/engine/src/interfaces/liquid-glass-toolbar.interface.ts +33 -0
  293. package/src/engine/src/theme/glass-ui-theme.ts +100 -0
  294. package/src/engine/src/theme/index.ts +2 -0
  295. package/src/engine/src/utils/button-press.utils.ts +63 -0
  296. package/src/engine/src/utils/index.ts +3 -0
  297. package/src/engine/src/utils/metal.utils.ts +164 -0
  298. package/src/glass-provider.tsx +60 -0
  299. package/src/glass-stack.tsx +115 -0
  300. package/src/index.ts +47 -190
  301. package/src/internal/GlassBackdrop.tsx +60 -0
  302. package/src/internal/GlassView.tsx +53 -18
  303. package/src/internal/blur-community.ts +19 -0
  304. package/src/internal/blur-community.web.ts +7 -0
  305. package/src/internal/blur.ts +7 -8
  306. package/src/internal/glass-routing.ts +212 -34
  307. package/src/internal/initials.ts +7 -0
  308. package/src/internal/overlay.tsx +258 -0
  309. package/src/internal/primitives.ts +23 -0
  310. package/lib/module/Carousel.js +0 -103
  311. package/lib/module/Display.js +0 -318
  312. package/lib/module/Feedback.js +0 -395
  313. package/lib/module/Form.js +0 -160
  314. package/lib/module/Forms2.js +0 -471
  315. package/lib/module/Message.js +0 -84
  316. package/lib/module/Overlays.js +0 -344
  317. package/lib/module/Pickers.js +0 -243
  318. package/lib/module/Table.js +0 -100
  319. package/lib/module/ai.js +0 -283
  320. package/lib/module/charts/AreaChart.js +0 -32
  321. package/lib/module/charts/BarChart.js +0 -75
  322. package/lib/module/charts/FunnelChart.js +0 -50
  323. package/lib/module/charts/HeatmapChart.js +0 -71
  324. package/lib/module/charts/LineChart.js +0 -81
  325. package/lib/module/charts/PlotChart.js +0 -52
  326. package/lib/module/charts/RadarChart.js +0 -78
  327. package/lib/module/charts/RingChart.js +0 -52
  328. package/lib/module/charts/ScatterChart.js +0 -95
  329. package/lib/module/charts/WaterfallChart.js +0 -85
  330. package/lib/module/charts/advanced.js +0 -313
  331. package/lib/module/charts/extra.js +0 -108
  332. package/lib/module/charts/index.js +0 -50
  333. package/lib/module/charts/scales.js +0 -140
  334. package/lib/typescript/Carousel.d.ts +0 -47
  335. package/lib/typescript/Display.d.ts +0 -178
  336. package/lib/typescript/Feedback.d.ts +0 -196
  337. package/lib/typescript/Form.d.ts +0 -97
  338. package/lib/typescript/Forms2.d.ts +0 -209
  339. package/lib/typescript/Message.d.ts +0 -67
  340. package/lib/typescript/Overlays.d.ts +0 -146
  341. package/lib/typescript/Pickers.d.ts +0 -105
  342. package/lib/typescript/Table.d.ts +0 -64
  343. package/lib/typescript/ai.d.ts +0 -166
  344. package/lib/typescript/charts/AreaChart.d.ts +0 -44
  345. package/lib/typescript/charts/BarChart.d.ts +0 -19
  346. package/lib/typescript/charts/FunnelChart.d.ts +0 -25
  347. package/lib/typescript/charts/HeatmapChart.d.ts +0 -23
  348. package/lib/typescript/charts/LineChart.d.ts +0 -30
  349. package/lib/typescript/charts/PlotChart.d.ts +0 -31
  350. package/lib/typescript/charts/RadarChart.d.ts +0 -27
  351. package/lib/typescript/charts/RingChart.d.ts +0 -28
  352. package/lib/typescript/charts/ScatterChart.d.ts +0 -34
  353. package/lib/typescript/charts/WaterfallChart.d.ts +0 -22
  354. package/lib/typescript/charts/advanced.d.ts +0 -107
  355. package/lib/typescript/charts/extra.d.ts +0 -63
  356. package/lib/typescript/charts/index.d.ts +0 -13
  357. package/lib/typescript/charts/scales.d.ts +0 -35
  358. package/src/Carousel.tsx +0 -233
  359. package/src/Display.tsx +0 -781
  360. package/src/Feedback.tsx +0 -992
  361. package/src/Form.tsx +0 -445
  362. package/src/Forms2.tsx +0 -1055
  363. package/src/Message.tsx +0 -218
  364. package/src/Overlays.tsx +0 -704
  365. package/src/Pickers.tsx +0 -595
  366. package/src/Table.tsx +0 -232
  367. package/src/ai.tsx +0 -715
  368. package/src/charts/AreaChart.tsx +0 -73
  369. package/src/charts/BarChart.tsx +0 -221
  370. package/src/charts/FunnelChart.tsx +0 -125
  371. package/src/charts/HeatmapChart.tsx +0 -155
  372. package/src/charts/LineChart.tsx +0 -247
  373. package/src/charts/PlotChart.tsx +0 -168
  374. package/src/charts/RadarChart.tsx +0 -208
  375. package/src/charts/RingChart.tsx +0 -133
  376. package/src/charts/ScatterChart.tsx +0 -223
  377. package/src/charts/WaterfallChart.tsx +0 -201
  378. package/src/charts/advanced.tsx +0 -676
  379. package/src/charts/extra.tsx +0 -242
  380. package/src/charts/index.ts +0 -86
  381. package/src/charts/scales.ts +0 -163
@@ -0,0 +1,430 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ## 0.2.0 — 2026-09-07 · one package
6
+
7
+ `expo-liquid-glass-view` — this fork of rit3zh's, on its `android-port` branch — is folded into
8
+ `expo-liquid-glass-ui`, and stops tracking upstream. Consumers install one package and import
9
+ everything from it: the view (`LiquidGlassView`, `LiquidGlassProvider`, `LiquidGlassContainer`,
10
+ `LiquidGlassStack`, the `metal` types and enums) alongside the controls. The native module keeps
11
+ its names (`ExpoLiquidGlass`, `LiquidGlassView` …), so a project must drop any remaining
12
+ `expo-liquid-glass-view` dependency or two copies will register the same views. In the tree the
13
+ kit stays at the top of `src` and the view lives under `src/core`, with its history. Everything
14
+ below this entry is the view's own log.
15
+
16
+ ## Unreleased
17
+
18
+ ### A fuller kit: buttons merge, and eight more controls
19
+
20
+ * **`LiquidGlassGroup`** — iOS 26's `GlassEffectContainer` for the kit's controls. Buttons, icon
21
+ buttons and chips laid out in a group fuse into their nearest neighbour when pressed: on the
22
+ shader renderers a canvas glass view under the row draws the merged silhouette from
23
+ `metal.shape` + `metal.morph`, the pressed member's pane and its partner's crossfading to it
24
+ for the duration of the press — the pressed rect redrawn from the exact press channels the
25
+ pane is transformed by (`buttonPressTransform`, now a shared worklet), the press light riding
26
+ along, and a tinted member keeping its colour through a flat "ghost" of its tint. On iOS 26 the
27
+ row is a `LiquidGlassContainer` and the system merges. Membership is by context
28
+ (`useGlassGroupMember`), so custom controls can join.
29
+ * **`LiquidGlassButton`**: the press light is now the shader's own — the reference's flat 0.08
30
+ wash and 0.15 radial lobe, through the base view's `glow` prop, drawn inside the glass under
31
+ the rim. The flat white overlay that stood in for it read as a Material tap highlight on
32
+ Android; it remains only where `glow` cannot reach (iOS 26's native glass, the no-glass
33
+ degrade), as the reference's declared fallback. Also `size` (`small` 36 / `regular` 48 /
34
+ `large` 56), `shape="circle"`, `icon` (node or `({ color, size }) => node`), `loading`,
35
+ `accessibilityLabel` / `accessibilityState`, and `providerId` accepts an array. The pane is
36
+ now its own layer under the content, so a merge can fade it without touching the label.
37
+ * **`LiquidGlassIconButton`** — the circular button with a required `accessibilityLabel`.
38
+ * **`LiquidGlassChip`** — the small button with a `selected` state (accent wash, white label).
39
+ * **`LiquidGlassToolbar`** — leading and trailing groups of controls that merge, a floating title
40
+ capsule between them.
41
+ * **`LiquidGlassStepper`** — a glass capsule with `−` / `+` ends; the held end blooms a canvas
42
+ thumb lit by the press, the value pops on change, and a held end auto-repeats.
43
+ * **`LiquidGlassCard`** — a padded pane of the bar's material, optionally pressable (98 %),
44
+ optionally adaptive.
45
+ * **`LiquidGlassToast`** — a capsule that springs in from an edge with a message and asks to
46
+ leave after `duration` or a tap; stays mounted through its exit.
47
+ * **`LiquidGlassSheet`** — a bottom sheet with top-only corners, a handle, a dim, and a
48
+ drag-to-dismiss with overdrag resistance, a 30 % / 900 dp·s⁻¹ release rule and a spring home.
49
+ * Example: the **ui kit** tab is now a scrolling showcase of every control over the stage —
50
+ toolbar, merging button rows, icon buttons, chips, stepper, switch, slider, segmented, card,
51
+ toast and sheet.
52
+
53
+ * **The grab scales the whole tab bar, icons included.** Glass, both rows and the pill grow
54
+ 16dp of width together, and nothing shrinks — iOS 26's motion, checked against an iPhone 14
55
+ Pro Max. The kit had scaled only the bar's glass and minified the active glyph to 56/64 under
56
+ the lifted pill, which read as the icon shrinking while the bar stood still; both are gone.
57
+ * **The grabbed pill is a lens across its whole face.** On the iPhone the glyph at the centre of
58
+ the held pill is displaced and colour-split, with the fringe even all the way round; the
59
+ kit's `GLASS_PILL_DRAGGED_METAL` was the reference's rim band (14dp over the outer 10dp,
60
+ quadrant-weighted, which zeroes the fringe on the centre lines). It now bends 14dp over a
61
+ 40dp band with a cubic falloff and a radial direction (so the wide band neither tears along
62
+ the centre line nor swirls the ends), splits 12dp over a 24dp reach — short of the glyph's
63
+ top and bottom, on it once the drag carries it toward the pill's side — and fringes evenly
64
+ (`quadrant: 0`). `pillDraggedMetal` is the dial.
65
+ * **The bar's refraction runs on under the pill.** The accent clone the Android pill reads
66
+ through was the reference's `tabsBackdrop`: a 56 dp capsule inside the 64 dp bar with
67
+ `lens(24 dp × progress)` — no lens at rest, and a fixed 24 dp one under the grab whatever the
68
+ bar wore. So a resting pill showed the backdrop unbent while the bar around it bent it, a flat
69
+ hole in the refraction that any stronger `barMetal` made glaring. The clone is now the bar's
70
+ size and wears the bar's resolved recipe permanently — lens, blur, vibrancy, rim light,
71
+ `variant` and `blurRadius` included — so through the pill the bar is simply the bar, and
72
+ `barMetal` is the one dial for both. No extra cost: the clone already blurred those pixels.
73
+ Under the grab the clone still shrinks to the reference's 56 dp (`TAB_ACCENT_STRIP_HEIGHT`) —
74
+ iOS 26 shows the bar smaller through the held pill with the icons unshrunk, the illusion that
75
+ had the active glyph read as "smaller" — and is the bar's full size again on landing.
76
+ `GLASS_ACCENT_STRIP_METAL` and `GLASS_ACCENT_STRIP_PRESSED_METAL` are gone; the clone's recipe
77
+ is `barMetal`'s.
78
+ * **The bar barely lights up under the grabbed pill.** The reference's `InteractiveHighlight` —
79
+ a flat white wash across the bar plus a lobe under the pill — ran at full strength and spent
80
+ the bar's dynamic range: pushed toward white, a light bar left the resting chip and the lifted
81
+ pill nothing lighter to be. iOS 26 lightens the bar only faintly (iPhone 14 Pro Max,
82
+ 2026-09-07), so it is now `LiquidGlassTabBar`'s `pressLight` (0..1, `TAB_PRESS_LIGHT` = 0.1);
83
+ `1` is the reference's highlight, as before, `0` none.
84
+ * **The dragged pill has no inset shadow.** iOS 26's doesn't; the reference's
85
+ `InnerShadow(8dp · progress)` is gone from `GLASS_PILL_DRAGGED_METAL`.
86
+ * **The tab pill is bouncier, and a flick makes a hotdog.** `useDampedDrag` gains `valueSpring`
87
+ (the follower's spring, default the reference's dead-landing `spring(1, 1000)`) and `jelly`
88
+ (`gain` on the velocity-to-stretch mapping, `limit` on the stretch; defaults 1 and ±0.2, the
89
+ reference's). The tab bar passes `spring(0.7, 1000)`, so the pill overruns its tab and
90
+ settles back, and gain 2 / limit 0.45, so a fast flick stretches it to ~1.8x wide. The
91
+ slider and the switch keep the defaults.
92
+ * **`metal.tint`** — the wash carried by the recipe, on both natives (Android's Int field,
93
+ iOS's Color converter; the JS wrapper processes any colour string to the ARGB number both
94
+ take). It wins over the view's `tint` prop, and `lerpMetal` crossfades it, so a control's
95
+ colour can change under the finger like everything else in its recipe. The kit's recipes are
96
+ exported so an app can spread one and set it; the button's label goes white for a recipe
97
+ tint as it does for the prop. Nothing in the kit is tinted by default; the example's new
98
+ **tint** tab is the tour (two tab bars, buttons tinted both ways, plain glass).
99
+ * **The tab bar paints a pill recipe's `tint` beneath the glyphs**, not on the pill's glass. On
100
+ Android the pill is a window onto the accent layer — the active icon reaches the eye
101
+ *through* it — so a tint on the glass washed the icon it was displaying (a blue pill
102
+ swallowed its blue glyph). `pillMetal.tint` now replaces the resting chip and
103
+ `pillDraggedMetal.tint` fades in under the grab, cut 16dp larger than the pill so the lens
104
+ cannot reach past it; on the soft cutout (iOS, web, the degrades) the held wash sits on the
105
+ glass under the window. A recipe's tint wins over `pillTint`.
106
+ * **The resting pill is a light white chip.** `tabIndicatorSurface` goes from white 0.20 / 0.10
107
+ (light / dark) to 0.55 / 0.30. At the old values the selection read as a faint lift of the
108
+ frost that resolved to whatever page sat under it; the call (2026-09-07) is a pill that is
109
+ almost always a light white pill, still translucent enough that the grab, which fades it out,
110
+ reads as the chip going clear. `pillTint` still overrides it.
111
+ * `LiquidGlassTabBar` gains `blurRadius` — the bar's blur as one dial, applied to the accent
112
+ strip the pill reads too so the resting pill keeps the bar's frost.
113
+
114
+ ### Fixes
115
+
116
+ * **iOS glass no longer smears its own content.** The Metal renderer's capture was the whole
117
+ window minus the glass views, and every control in the kit draws its content as siblings
118
+ *over* its pane — the tab bar's icon row, a button's label, a chat header's photo overhanging
119
+ its name pill — so each pane refracted its own overlay: the edge lens only samples inward, and
120
+ at the top and bottom rims it pulled the glyphs into the band as vertical streaks of their own
121
+ colour (iPhone 14 Pro Max, iOS 26, 2026-09-08). Android never had it, because a provider
122
+ records only what sits under the glass. The capturer now walks the window in paint order, and
123
+ from the moment it passes a Metal glass view that view's padded rect is a hole in everything
124
+ painted after it — so a pane's backdrop is what lies beneath it, on both capture strategies
125
+ (`render(in:)` below iOS 26, composited snapshots on it). Where two panes overlap, a glass
126
+ over another loses what was painted between them inside the lower pane's padded rect; the
127
+ tab pill over its bar is exactly that, and its cutout draws the row it needs on top.
128
+ * **A dragged slider no longer springs back to old positions.** The slider, switch and tab bar
129
+ guarded their controlled-value effect with "is this the last value I reported?" — but passive
130
+ effects run after paint, so the effect of an earlier render could fire after several newer
131
+ reports had gone out, decide the older value was the app's, and `animateTo` it. On a busy page
132
+ the slider visibly bounced between stale positions mid-drag (measured off a screen recording:
133
+ the fill edge jumping back 80 px and forward again). `useEchoFilter` now remembers every
134
+ un-echoed report and only treats a value it never reported as external; it is exported for
135
+ controls of your own.
136
+ * **The pill deflates on arrival.** `useDampedDrag`'s release gate waited for the smoothed
137
+ velocity channel to fall below 0.01 range-fractions/s — the channel that feeds the jelly,
138
+ which rings down on an underdamped spring for a third of a second after the follower has
139
+ landed. A released pill sat inflated ~0.3 s after arriving. The threshold is 0.15, where the
140
+ residual stretch is ~1 %; the deflate now starts on arrival.
141
+ * The button's press light defaults to 0.35 of the shader's (`pressLight`) with the dent on —
142
+ see the README's button section for why full strength read as a pressed-state wash.
143
+
144
+ ### iOS below 26 catches up with Android
145
+
146
+ The Android shader had outgrown the Metal renderer it was translated from: every remodel measured
147
+ against real iOS 26 glass (docs/android-port/research/04) had landed on Android alone. The Metal
148
+ pass is now the same algorithm line for line, and the two must move together from here.
149
+
150
+ * **Continuous corners in the Metal SDF** — the same calibrated superellipse family Android
151
+ renders (`ContinuousCorners.swift`, research/05): the SDF, the content mask, the border and the
152
+ backdrop fill all draw one curve. The SDF was circular under Apple's continuous content clip,
153
+ and the border — circular too — sat up to 0.12 r inside the glass at every corner apex, a
154
+ visible double edge on any squircle.
155
+ * **The border light** replaces the Metal wash: an additive two-lobe rim with `highlight.width`
156
+ (0.75 pt) and `highlight.falloff`, plus the ~7 pt sheen under the lit edges. The signed
157
+ multiplicative wash — `refraction.height` wide, darkening the quadrant opposite the light by up
158
+ to 25 % — and the separate contour line are gone; they were the inset shadow real glass does
159
+ not have. The stroke is pure white light along the `highlight.angle` axis, no black tails.
160
+ * `refraction.swirl` and `dispersion.quadrant` work on iOS; dispersion taps walk the displacement
161
+ axis (blue outermost), as measured.
162
+ * **`interactive` on the Metal path**: `GlassPressAnimator.swift`, the port of the Android
163
+ springs — glow under the finger, the dent and lens boost, 3.5 % inflation, tanh follow and
164
+ axis-projected stretch — driven by the view's own touches (an ancestor recogniser taking the
165
+ touch releases like a lift) and a `CADisplayLink` that exists only while a spring is unsettled.
166
+ The transform goes on the surface and content subviews, never on the view React Native owns.
167
+ * **`glow` on the Metal path** (`GlassGlowOptions`), so the kit's bar lights under a dragged pill
168
+ on iOS 18 too.
169
+ * `GlassParams` is mirrored in Swift and Metal and checked by
170
+ `docs/inspiration-port/tools/check-params-layout.py`, which re-derives both layouts from the
171
+ sources — there is no Mac on the build box, so the iOS work is written blind; see
172
+ `docs/inspiration-port/PLAN.md` for the Mac checklist.
173
+
174
+ ### Inner shadow and magnification (`metal.innerShadow`, `metal.magnification`)
175
+
176
+ Both shader renderers, from the AndroidLiquidGlass catalog (Apache-2.0, see `NOTICE`):
177
+
178
+ * `innerShadow: { radius, offsetX, offsetY, opacity }` — Kyant's `InnerShadow` as an SDF band
179
+ rather than a blurred layer: the blurred coverage of the shape minus itself translated by the
180
+ offset, evaluated on the merged field so a morph partner shades as one piece. Default cast is
181
+ straight down by one radius (the top inner edge shades — light from above); default opacity
182
+ 0.15. Off at radius 0. Animatable like the rest of `metal`; `lerpMetal` blends it.
183
+ * `magnification` — the whole-surface lens research/04 (C16) found missing: sampling contracts
184
+ toward the shape centre by the factor, so the backdrop reads enlarged through the pane the way
185
+ iOS 26's slider thumb enlarges its track. `1` is off; clamped to `[1, 4]`; ≥ 1 only samples
186
+ inward, so the padding budget is untouched.
187
+ * The playground gained `innerShadow` and `lens` dials.
188
+
189
+ ### Adaptive glass (`adaptive`, `onBackdropLuminance`)
190
+
191
+ * The shader renderers read the mean luminance of the backdrop under the view — Android renders
192
+ the provider content, transformed exactly as the glass records it, into an 8×8 probe through a
193
+ private `HardwareRenderer` and reads it back off the RenderThread (`GlassLuminanceProbe`);
194
+ iOS reads the capture buffer the CPU already holds — at most four times a second and only when
195
+ the backdrop or the geometry moved. `PixelCopy` was rejected because it captures the glass and
196
+ its own content, a feedback loop for a label that flips on the reading.
197
+ * The frost's polarity follows the backdrop instead of the colour scheme: dark content under a
198
+ dark frost, light under a light one, hysteresis at 0.45 / 0.55, a 350 ms crossfade.
199
+ `onBackdropLuminance` reports `{ luminance, dark }` when the value moved ≥ 0.02 or the polarity
200
+ flipped. iOS 26's native glass adapts on its own and ignores the prop.
201
+ * Kit: `useAdaptiveGlass` (scheme + UI-thread crossfade progress), `useGlassUITheme(scheme?)`,
202
+ and an `adaptive` prop on `LiquidGlassTabBar` and `LiquidGlassButton` that switches the whole
203
+ dress with the backdrop — surface wash crossfading through `useAnimatedProps` (as a processed
204
+ ARGB number; `interpolateColor` already returns one inside a worklet, and processing it again
205
+ rotated the channels — the pill went cyan for one build), labels crossfading, icons swapping.
206
+ * The example gained a **goodies** tab: a draggable adaptive card with its reading on screen, a
207
+ draggable magnifier, and an adaptive tab bar over scrolling light/dark bands.
208
+
209
+ ### Kit
210
+
211
+ * The resting tab pill no longer refracts. The accent strip it reads through kept the bar's
212
+ 24 dp lens at rest (a departure taken to match the pill's brightness to the bar's — a
213
+ three-layer-stack artefact, since fixed), so the backdrop's edges bent inside a pill whose own
214
+ recipe was innocent. The strip's lens is the reference's `24 dp × progress` again: blur at
215
+ rest, the lens with the grab. On iOS the resting pill carries the bar's blur and vibrancy
216
+ itself, because the window capture excludes glass views, and the soft cutout now holds the
217
+ bar's wash as well as the lift.
218
+ * The accent copy seen through the pill is minified at rest — 56/64 of the visible row, the
219
+ strip's own ratio — and grows back to the neighbours' size as the pill lifts, never past it
220
+ (the reference's 1.2× swell inside a pill inflating to 78/56 read as a huge glyph). A
221
+ full-size glyph on a shrunken bar read wrong at rest, an oversized one read wrong lifted.
222
+ * The grabbed tab pill and the held thumbs carry the reference's inner shadow (8 dp × p and
223
+ 4 dp × p) and its drop shadow — a `boxShadow` sibling under the glass, opacity-animated on the
224
+ pill, resting on the thumbs, drawn outside the capsule. The thumbs' `shadow*` quartet was
225
+ iOS-only; `boxShadow` draws on both platforms.
226
+ * `LiquidGlassSlider`: a rubber band past either stop (10 dp through tanh) and `onEdgeReached`,
227
+ which fires once per arrival at an end — wire `expo-haptics` there; the kit takes no haptics
228
+ dependency.
229
+ * `useGravityHighlight` — a smoothed accelerometer-to-`highlight.angle` filter (the catalog's
230
+ `UISensor`), fed by the app so `expo-sensors` stays optional.
231
+
232
+ ### iOS below 26 renders glass again
233
+
234
+ `LiquidGlassView` now mounts its native view on every supported iOS version. The JS mount gate
235
+ read the `supportsNativeGlass` constant, which on iOS answers "is `UIGlassEffect` here?" (26+) —
236
+ so on iOS 15.1–25 every glass view silently degraded to a plain transparent `View` and the
237
+ entire Metal renderer shipped as unreachable code. QA's "invisible tab bar, floating icons" on
238
+ iOS 18.7.5 was this.
239
+
240
+ * New constant `supportsGlass` — "will `LiquidGlassView` render glass at all?" (iOS: always;
241
+ Android: API 29+, same as before). The JS `supportsGlass` export now reads it, with a fallback
242
+ to the old constant when the native predates it, and the mount gate uses it.
243
+ * `supportsNativeGlass` keeps its exact old meaning on both platforms — layout code that switches
244
+ tab-bar strategies on it is unaffected.
245
+
246
+ ### Progressive blur (`metal.progressiveBlur`)
247
+
248
+ The scroll-edge melt: a blur whose radius ramps across the view, iOS 26's "content dissolves
249
+ into blur" treatment. `{ startRadius, endRadius, direction, start, end }` — dp, a Hermite-eased
250
+ ramp along `direction` (named for where the blur increases toward), confined to the
251
+ `start`..`end` fraction window.
252
+
253
+ * Android `agsl` (API 33+): a blur pyramid — one hwui blur per doubling of radius from ~4.5 px up
254
+ to the ramp's maximum, cross-faded per pixel by the ramp so each pixel mixes the two levels that
255
+ bracket its radius. Smooth at every radius (Skia's blur downsamples internally) and the sharp
256
+ end is the untouched original. Radii in the iOS `sigma = 0.5 * r` convention so the two
257
+ platforms match by number. Replaces the uniform `blurRadius` stage when present; equal radii
258
+ collapse to the plain uniform stage. A first cut as a separable variable-radius Gaussian in AGSL
259
+ point-sampled the backdrop at strides up to 14 px and streaked every blurred row; gone.
260
+ `metal.android.quality` sets the level count — `low` 2, `medium` 3, `high` up to 6 — because each
261
+ level is a full-node blur, weight and blend: ~10 ms per level for two full-width scrims covering
262
+ 440 dp of a 1080×2400 screen on an Adreno 610 (Redmi Note 13 4G), against a 23 ms floor for the
263
+ glass pass alone over the same nodes, and against 105 ms for the AGSL comb it replaces. A view
264
+ covering more than a quarter of the screen auto-resolves to `low`, as before.
265
+ * iOS Metal renderer: the existing blur passes gain a per-pixel radius ramp.
266
+ * Degradation ladder: Android API 31–32 approximates with a uniform blur at the mean radius;
267
+ `scrim` ignores it; if the variable shader fails to compile on a device, the stage falls back
268
+ to a uniform blur rather than disappearing.
269
+ * The example app gains a **blur** tab: text melting into ramped blur at both screen edges.
270
+ * Also fixed here: the shader warm-up probe was missing four uniforms (`touchLens` and the three
271
+ morph/shape ones), so it reported INCONCLUSIVE everywhere and the silent-driver-failure
272
+ detection was itself failing silently.
273
+ * Blur stages — this one and the plain `blurRadius` one — now read an edge-extended copy of the
274
+ recorded content: a one-tap pass fills the node's padding with the content's clamped edge
275
+ pixels before any blur runs, so hwui's blur no longer smears the transparent outside inward and
276
+ the glass samples right up to the content edge. Before, the glass stayed a full blur reach
277
+ inside the content and every pixel within that reach of a provider edge was a copy of the row
278
+ or column at the inset: a visible band along the screen edge of any blurred bar, and a dark line
279
+ across both margins of a full-width scrim.
280
+
281
+ ### Liquid morphing (`metal.shape` + `metal.morph`)
282
+
283
+ The shader renderers — Android's `agsl` tier and iOS's Metal renderer — can now fold a second
284
+ rounded rect into a view's shape with a polynomial smooth-min. Refraction, chromatic dispersion
285
+ and the border light all read the *merged* field and its blended gradient, so the two silhouettes
286
+ neck together and fuse like iOS 26's `UIGlassContainerEffect` merge, rather than overlapping.
287
+
288
+ * `metal.morph` — `{ x, y, width, height, cornerRadius, smoothing }`, view-local dp. `smoothing`
289
+ is the distance at which the shapes begin to merge; 0 (or an absent rect) disables it and the
290
+ pipeline is bit-identical to before. Drivable per-frame via Reanimated `useAnimatedProps`,
291
+ like the rest of `metal`.
292
+ * `metal.shape` — `{ x, y, width, height }`: insets the primary shape from the view, turning the
293
+ view into a *canvas* larger than its glass. Both platforms clip their draw at the view bounds,
294
+ so this is what gives a morph partner room to approach and separate. `cornerRadius` resolves
295
+ against this rect; the drawn `border` and child clipping still track the view.
296
+ * The example app gains a **morph** tab: a bar-in-canvas with a draggable puck that necks in and
297
+ out of it, with selectable smoothing.
298
+
299
+ Implemented from this project's own shader lineage (the existing rounded-rect SDFs and gradients)
300
+ plus the public smooth-min formula; see `docs/liquidglasskit-study.md` for what was deliberately
301
+ *not* taken from elsewhere.
302
+
303
+ ### Android support
304
+
305
+ The library now runs on Android 10+ (API 29). Android has no equivalent of Apple's `UIGlassEffect` —
306
+ no primitive lets an in-app view sample its siblings' pixels — so this is a port of the **Metal
307
+ renderer**, the path iOS uses below 26, written in AGSL.
308
+
309
+ **Added**
310
+
311
+ * `LiquidGlassProvider` — marks the content that should show through the glass. Android needs the
312
+ backdrop captured explicitly; glass views are its **siblings**, never its children, which is what
313
+ keeps a view out of its own backdrop. Renders as a plain `View` on iOS and web, so it is safe to
314
+ wrap unconditionally.
315
+ * `providerId` on both components, for pairing when there is more than one provider. Namespaced per
316
+ window, so a `Modal` can reuse `"default"`.
317
+ * `metal.android.quality` — `"low" | "medium" | "high"`. Selects one of three separately compiled
318
+ shaders; the dispersion loop needs a compile-time-constant bound to unroll, so the tiers cannot be
319
+ one shader driven by a uniform. `"medium"` is the iOS-parity default.
320
+ * `metal.android.maxTier` — a ceiling on the rendering ladder, using the same strings
321
+ `onRendererChange` reports. It can only lower a device, never raise one.
322
+ * `setGlassDebugLogging(enabled)` — provider-recording and glass-draw rates under the
323
+ `ExpoLiquidGlass` logcat tag. No-ops off Android.
324
+ * A **playground** tab in the example app (both platforms): every `metal` dial on a slider over a
325
+ stage built to be read through glass — stripes for refraction, dark and light patches for the
326
+ rim — with a draggable panel and a paste-ready JSON readout of the current configuration.
327
+ * `onRendererChange` gained `"agsl"`, `"scrim"` and `"none"`.
328
+ * `metal.highlight.width` — depth of the crisp border-light line, in dp. Default `0.75`
329
+ (measured off a real iOS 26 icon). iOS drops the key.
330
+ * `metal.highlight.falloff` — angular falloff exponent of the rim's two lobes (Kyant's `falloff`).
331
+ Default `1`. iOS drops the key.
332
+ * `metal.refraction.swirl` — how far the edge refraction leans toward `highlight.angle`'s light
333
+ axis. Default `0`: per-edge pixel solves of real iOS 26 screenshots found no lean (the twist
334
+ the eye reads is `depth`'s radial term sweeping the corners, which ships). Kept as a
335
+ stylisation knob, clamped to `[-1, 1]`. iOS drops the key.
336
+ * The playground gained a **wallpaper backdrop** (the Backdrop Catalog demo wallpaper, toggleable
337
+ back to the gradient stage) plus `swirl` and `falloff` sliders.
338
+ * `LiquidGlassStack` — declarative stacked glass (glass refracting other glass: a slider under a
339
+ glass sheet, tabs over glass rows). Layers go bottom to top; each boundary expands to a nested
340
+ provider with an auto id that reaches descendant glass views **through context**, so reusable
341
+ glass components need no `providerId` prop. Keep the layer list static and toggle content inside
342
+ a layer; every level re-records everything below it, so two or three layers is the sane budget.
343
+ Renders plain views on iOS and web. Also exports `useGlassStackProviderId()`.
344
+ * `interactive` now works on Android — the native port of iOS 26's
345
+ `UIGlassEffect.isInteractive`. A spring-driven specular blooms under the finger and chases it,
346
+ the refraction dents into a travelling bulge and deepens while pressed, and the view inflates
347
+ ~3.5 %, translates a fraction toward the drag and stretches along it, rubber-band style — the
348
+ jelly. All
349
+ springs run natively off the animation stage (no JS per frame) and children stay fully
350
+ interactive. A bare-glass press held past ~150 ms takes the gesture from ancestor scrollers so
351
+ dragging glass does not scroll it away; quick flicks still scroll, and a `PanResponder` grant
352
+ still cancels cleanly. On the blur and scrim tiers the press paints an additive wash instead,
353
+ so the feedback never disappears with the tier. Interaction model derived from
354
+ AndroidLiquidGlass (Apache-2.0, see `NOTICE`).
355
+
356
+ **Behaviour**
357
+
358
+ * The highlight is remodeled against real iOS 26 glass rather than translated from the Metal
359
+ fallback. Metal's highlight is a signed multiplicative wash as wide as `refraction.height`
360
+ (20 pt at `regular`): it vanishes over dark backdrops and darkens the whole quadrant opposite
361
+ the light by up to ±25 % — an inset shadow real glass does not have. Android now draws **only**
362
+ the glass border light: a thin additive rim lighting *both* light-axis lobes
363
+ (`pow(abs(dot(normal, light)), falloff)` — the falloff model of Kyant's highlight shader),
364
+ fading over `highlight.width` (1.5 dp). The signed wash and the separate edge-contour line are
365
+ deleted outright — eye-tested against an iOS 26 button, the interior of real glass is flat and
366
+ its edge is a hairline, not a 3-layer stack. A second measurement round against real iOS 26
367
+ screenshots (docs/android-port/research/04) then tuned the pieces: the crisp line is 0.75 dp
368
+ with a faint ~7 dp sheen under the lit edges, and the
369
+ default light axis is vertical (`highlight.angle` 180, was 135 — real bars are perfectly
370
+ top/bottom symmetric with dead side rims). `highlight.intensity` reads as rim strength; `0`
371
+ still disables everything, and the highlight no longer distinguishes `angle` from
372
+ `angle + 180` — only the `refraction.swirl` lean flips there. A dark flank contour shipped for
373
+ one round between measurement passes and was deleted again: per-channel solves showed the dark
374
+ edge line on real icons is the refraction *fold* imaging dark content — the lens produces it
375
+ for free, and inked lines double-darken it.
376
+ * Chromatic dispersion taps walk **along the displacement axis** (R deepest, B shallowest, blue
377
+ the outermost fringe) — measured off real iOS 26; the Metal source (and the first port) walked
378
+ the tangent, which puts the fringe on the wrong axis.
379
+ * The border stroke is pure white light. It kept the iOS `CAGradientLayer` geometry (four stops,
380
+ fading at the axis ends) but the black end stops are now transparent — real iOS 26 glass has no
381
+ dark edge component — and the gradient axis follows `highlight.angle` instead of being pinned
382
+ corner-to-corner.
383
+
384
+ * Automatic degradation by API level: `agsl` (33+) → `fallback-blur` (31–32) → `scrim` (29–30) →
385
+ unsupported. A tier is also dropped when the shader fails to compile *or* silently renders nothing,
386
+ which an off-screen render probe detects at startup rather than leaving to a user.
387
+ * A provider nobody reads skips recording and draws like a plain `ViewGroup` — a provider wrapped
388
+ unconditionally around a glassless screen, or an empty stack layer, now costs nothing. Glass
389
+ views also attach to their provider eagerly at mount, so the first frame is recorded, not a
390
+ scrim.
391
+ * The startup render probe works again. `highlightWidth` was never primed, so since the highlight
392
+ remodel the probe threw into its own catch and reported "inconclusive" on every device —
393
+ disabling the silent-driver-failure detection it exists for. It now completes, and primes the
394
+ press-glow branch on so drivers compile the whole program.
395
+ * Above 25 % screen coverage an unset `quality` drops to `"low"` automatically.
396
+ * Dev builds warn, once each and with the fix named, for: glass inside its own provider, glass inside
397
+ a different provider, an unmatched `providerId`, a provider in another window, a `SurfaceView`
398
+ inside a provider, and a glass view inside a scroller with stretch overscroll enabled.
399
+ * `renderer` is accepted and ignored on Android; `cornerStyle` and `metal.captureQuality`
400
+ likewise, each for a documented reason.
401
+
402
+ **Known limits**
403
+
404
+ * Video behind glass requires `TextureView` (`expo-video`'s `surfaceType="textureView"`).
405
+ `SurfaceView` composites out of process and is a hole in the backdrop.
406
+ * Set `overScrollMode="never"` on any scroller containing glass. Android 12+ stretch overscroll is a
407
+ pixel-space `RenderEffect` that no child can see or compensate for.
408
+ * Glass does not refract other glass *by default* — sibling panels do not see each other. Stacking
409
+ is opt-in via `LiquidGlassStack` (or hand-nested providers): see the README's "Stacked glass"
410
+ section and the example app's `stack` tab. The dev-mode nesting diagnostic logs the stacked
411
+ topology once at INFO; only glass inside the provider it *reads* — a genuine feedback loop —
412
+ still warns.
413
+ * A `Modal` needs its own provider and cannot refract the activity behind it.
414
+
415
+ **Packaging**
416
+
417
+ * The published tarball no longer ships `bun.lock` or the internal `docs/` tree, and excludes
418
+ `android/build/`, `android/.gradle/` and `android/.cxx/`. 636 kB → 391 kB.
419
+ * `NOTICE` added: parts of the AGSL shader derive from
420
+ [AndroidLiquidGlass](https://github.com/Kyant0/AndroidLiquidGlass) (Apache-2.0, © 2025 Kyant).
421
+
422
+ ### [0.1.7](https://github.com/rit3zh/expo-liquid-glass-view/compare/v0.1.6...v0.1.7) (2025-09-19)
423
+
424
+
425
+ ### Features
426
+
427
+ * **glass:** add ExpoLiquidGlassContainer with layout direction support ([decc813](https://github.com/rit3zh/expo-liquid-glass-view/commit/decc8130854ad783da6f61488541dfba54309f67))
428
+ * **glass:** add ExpoLiquidGlassContainer with layout direction support ([2c33ac5](https://github.com/rit3zh/expo-liquid-glass-view/commit/2c33ac5a8df5350e8e959ede2f4f1437686f1879))
429
+
430
+ ### [0.1.6](https://github.com/rit3zh/expo-liquid-glass-view/compare/v0.1.5...v0.1.6) (2025-08-04)
@@ -0,0 +1,54 @@
1
+ expo-liquid-glass-view
2
+ Copyright (c) 2025 Pixel Group LLC
3
+
4
+ This product includes software developed as part of AndroidLiquidGlass
5
+ (https://github.com/Kyant0/AndroidLiquidGlass), Copyright 2025 Kyant, licensed
6
+ under the Apache License, Version 2.0. You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ The derivation reaches both shader renderers — the Android sources, and since
11
+ the parity pass the iOS Metal renderer they are kept line for line in step
12
+ with — and specifically:
13
+
14
+ * the rounded-rect signed-distance decomposition into `radiusAt`,
15
+ `sdRoundedRect` and `gradSdRoundedRect`, selected by a packed `float4` of
16
+ per-corner radii
17
+ — backdrop/src/commonMain/kotlin/com/kyant/backdrop/internal/Shaders.kt:22-48
18
+ * the `uniform float2 size` / `uniform float2 offset` device-pixel framing and
19
+ the `centered = (coord + offset) - halfSize` line
20
+ — internal/Shaders.kt:54-55, :69 and effects/Lens.kt:45-46
21
+ * the padding budget threaded through the effect chain
22
+ — effects/Lens.kt:25-27, effects/Blur.kt:16-20
23
+ * the "one cached RuntimeShader per shader-source variant" pattern
24
+ — effects/Lens.kt:35-43
25
+ * the highlight's angular falloff model, `pow(abs(dot(normal, lightDir)),
26
+ falloff)` — internal/Shaders.kt:161-181 (`DefaultHighlightShaderString`)
27
+ * the `interactive` press model (flat additive wash plus a radial lobe at the
28
+ touch point, spring-driven) — the catalog app's InteractiveHighlight.kt
29
+ * the inner shadow model (the shape minus itself translated by an offset,
30
+ blurred by a radius; default cast one radius downward, black at 15 %)
31
+ — backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/InnerShadow.kt
32
+ and InnerShadowModifier.kt, re-expressed as an SDF band
33
+ * the adaptive-luminance approach (downscale the backdrop to a handful of
34
+ pixels, average their luma, flip the content colour across 0.5) — the
35
+ catalog app's AdaptiveLuminanceGlassContent.kt
36
+ * the gravity-to-highlight-angle filter (accelerometer `atan2(y, x)`,
37
+ low-passed at 0.5) — the catalog app's UISensor.kt, in
38
+ `src/hooks/use-gravity-highlight.ts`
39
+ * the example app's playground wallpaper,
40
+ `example/assets/wallpaper-light.webp`, copied from
41
+ app/src/commonMain/composeResources/drawable/wallpaper_light.webp. The
42
+ AndroidLiquidGlass repository ships it uncredited; it appears to be an
43
+ Apple iPhone stock wallpaper, is used here only as a development-time demo
44
+ backdrop, and is excluded from the published npm package.
45
+
46
+ All refraction, chromatic-dispersion, tone and noise mathematics in
47
+ `GlassShaderSource.kt` began as a translation of this project's own Metal
48
+ shader, `ios/Shaders/LiquidGlass.metal`, and the two are now maintained as one
49
+ algorithm. No AndroidLiquidGlass source is redistributed and no binary
50
+ dependency on it is declared.
51
+
52
+ DnV1eX/LiquidGlassKit was studied for ideas only (see
53
+ `docs/liquidglasskit-study.md`): it carries no license, and nothing from it is
54
+ copied or translated here.