glacia-native 0.5.1 → 0.6.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 (403) hide show
  1. package/LICENSE +29 -4
  2. package/README.md +111 -17
  3. package/lib/module/Accordion.js +58 -0
  4. package/lib/module/ActionSheet.js +38 -0
  5. package/lib/module/Alert.js +23 -0
  6. package/lib/module/AlertDialog.js +47 -0
  7. package/lib/module/Avatar.js +48 -0
  8. package/lib/module/Badge.js +36 -0
  9. package/lib/module/Bars.js +13 -267
  10. package/lib/module/Button.js +57 -36
  11. package/lib/module/Card.js +32 -20
  12. package/lib/module/Checkbox.js +42 -0
  13. package/lib/module/Chip.js +80 -0
  14. package/lib/module/Collapsible.js +26 -0
  15. package/lib/module/ContextMenu.js +33 -0
  16. package/lib/module/Dialog.js +39 -124
  17. package/lib/module/DropdownMenu.js +33 -0
  18. package/lib/module/Field.js +22 -0
  19. package/lib/module/Glass.js +12 -5
  20. package/lib/module/Group.js +36 -0
  21. package/lib/module/IconButton.js +40 -0
  22. package/lib/module/Input.js +47 -40
  23. package/lib/module/Label.js +17 -0
  24. package/lib/module/MorphGroup.js +47 -0
  25. package/lib/module/Popover.js +29 -0
  26. package/lib/module/Progress.js +32 -0
  27. package/lib/module/RadioGroup.js +51 -0
  28. package/lib/module/Scrim.js +44 -0
  29. package/lib/module/SegmentedControl.js +74 -58
  30. package/lib/module/Select.js +51 -0
  31. package/lib/module/Separator.js +25 -0
  32. package/lib/module/Sheet.js +51 -0
  33. package/lib/module/Skeleton.js +48 -0
  34. package/lib/module/Slider.js +60 -40
  35. package/lib/module/Stepper.js +167 -0
  36. package/lib/module/Switch.js +45 -43
  37. package/lib/module/TabBar.js +62 -50
  38. package/lib/module/Tabs.js +3 -2
  39. package/lib/module/Textarea.js +18 -0
  40. package/lib/module/Toast.js +55 -0
  41. package/lib/module/Toggle.js +47 -0
  42. package/lib/module/ToggleGroup.js +56 -0
  43. package/lib/module/Toolbar.js +37 -0
  44. package/lib/module/Tooltip.js +31 -0
  45. package/lib/module/glass-provider.js +28 -0
  46. package/lib/module/glass-stack.js +61 -0
  47. package/lib/module/index.js +78 -109
  48. package/lib/module/internal/GlassBackdrop.js +36 -0
  49. package/lib/module/internal/GlassView.js +45 -13
  50. package/lib/module/internal/blur-community.js +20 -0
  51. package/lib/module/internal/blur-community.web.js +9 -0
  52. package/lib/module/internal/blur.js +75 -0
  53. package/lib/module/internal/fallback.js +110 -20
  54. package/lib/module/internal/glass-routing.js +154 -30
  55. package/lib/module/internal/glow.js +36 -0
  56. package/lib/module/internal/initials.js +12 -0
  57. package/lib/module/internal/lens.js +70 -0
  58. package/lib/module/internal/material.js +64 -0
  59. package/lib/module/internal/overlay.js +147 -0
  60. package/lib/module/internal/primitives.js +17 -0
  61. package/lib/module/internal/rim.js +35 -0
  62. package/lib/module/internal/tokens.js +34 -2
  63. package/lib/typescript/Accordion.d.ts +22 -0
  64. package/lib/typescript/ActionSheet.d.ts +24 -0
  65. package/lib/typescript/Alert.d.ts +15 -0
  66. package/lib/typescript/AlertDialog.d.ts +17 -0
  67. package/lib/typescript/Avatar.d.ts +22 -0
  68. package/lib/typescript/Badge.d.ts +12 -0
  69. package/lib/typescript/Bars.d.ts +3 -188
  70. package/lib/typescript/Button.d.ts +44 -10
  71. package/lib/typescript/Card.d.ts +30 -3
  72. package/lib/typescript/Checkbox.d.ts +14 -0
  73. package/lib/typescript/Chip.d.ts +19 -0
  74. package/lib/typescript/Collapsible.d.ts +17 -0
  75. package/lib/typescript/ContextMenu.d.ts +23 -0
  76. package/lib/typescript/Dialog.d.ts +8 -68
  77. package/lib/typescript/DropdownMenu.d.ts +23 -0
  78. package/lib/typescript/Field.d.ts +19 -0
  79. package/lib/typescript/Glass.d.ts +11 -2
  80. package/lib/typescript/Group.d.ts +35 -0
  81. package/lib/typescript/IconButton.d.ts +21 -0
  82. package/lib/typescript/Input.d.ts +17 -18
  83. package/lib/typescript/Label.d.ts +14 -0
  84. package/lib/typescript/MorphGroup.d.ts +46 -0
  85. package/lib/typescript/Popover.d.ts +17 -0
  86. package/lib/typescript/Progress.d.ts +13 -0
  87. package/lib/typescript/RadioGroup.d.ts +21 -0
  88. package/lib/typescript/Scrim.d.ts +33 -0
  89. package/lib/typescript/SegmentedControl.d.ts +24 -13
  90. package/lib/typescript/Select.d.ts +19 -0
  91. package/lib/typescript/Separator.d.ts +10 -0
  92. package/lib/typescript/Sheet.d.ts +45 -0
  93. package/lib/typescript/Skeleton.d.ts +10 -0
  94. package/lib/typescript/Slider.d.ts +15 -7
  95. package/lib/typescript/Stepper.d.ts +49 -0
  96. package/lib/typescript/Switch.d.ts +19 -12
  97. package/lib/typescript/TabBar.d.ts +18 -6
  98. package/lib/typescript/Textarea.d.ts +6 -0
  99. package/lib/typescript/Toast.d.ts +40 -0
  100. package/lib/typescript/Toggle.d.ts +21 -0
  101. package/lib/typescript/ToggleGroup.d.ts +22 -0
  102. package/lib/typescript/Toolbar.d.ts +35 -0
  103. package/lib/typescript/Tooltip.d.ts +16 -0
  104. package/lib/typescript/glass-provider.d.ts +34 -0
  105. package/lib/typescript/glass-stack.d.ts +54 -0
  106. package/lib/typescript/index.d.ts +39 -17
  107. package/lib/typescript/internal/GlassBackdrop.d.ts +33 -0
  108. package/lib/typescript/internal/GlassView.d.ts +31 -2
  109. package/lib/typescript/internal/blur-community.d.ts +2 -0
  110. package/lib/typescript/internal/blur-community.web.d.ts +2 -0
  111. package/lib/typescript/internal/blur.d.ts +24 -0
  112. package/lib/typescript/internal/fallback.d.ts +27 -2
  113. package/lib/typescript/internal/glass-routing.d.ts +83 -15
  114. package/lib/typescript/internal/glow.d.ts +11 -0
  115. package/lib/typescript/internal/initials.d.ts +2 -0
  116. package/lib/typescript/internal/lens.d.ts +47 -0
  117. package/lib/typescript/internal/material.d.ts +27 -0
  118. package/lib/typescript/internal/overlay.d.ts +74 -0
  119. package/lib/typescript/internal/primitives.d.ts +13 -0
  120. package/lib/typescript/internal/rim.d.ts +16 -0
  121. package/lib/typescript/internal/tokens.d.ts +36 -0
  122. package/package.json +15 -4
  123. package/src/Accordion.tsx +165 -0
  124. package/src/ActionSheet.tsx +149 -0
  125. package/src/Alert.tsx +85 -0
  126. package/src/AlertDialog.tsx +124 -0
  127. package/src/Avatar.tsx +102 -0
  128. package/src/Badge.tsx +80 -0
  129. package/src/Bars.tsx +10 -797
  130. package/src/Button.tsx +196 -60
  131. package/src/Card.tsx +106 -33
  132. package/src/Checkbox.tsx +98 -0
  133. package/src/Chip.tsx +149 -0
  134. package/src/Collapsible.tsx +66 -0
  135. package/src/ContextMenu.tsx +103 -0
  136. package/src/Dialog.tsx +86 -325
  137. package/src/DropdownMenu.tsx +103 -0
  138. package/src/Field.tsx +65 -0
  139. package/src/Glass.tsx +19 -5
  140. package/src/Group.tsx +98 -0
  141. package/src/IconButton.tsx +110 -0
  142. package/src/Input.tsx +143 -87
  143. package/src/Label.tsx +56 -0
  144. package/src/MorphGroup.tsx +134 -0
  145. package/src/Popover.tsx +81 -0
  146. package/src/Progress.tsx +83 -0
  147. package/src/RadioGroup.tsx +122 -0
  148. package/src/Scrim.tsx +94 -0
  149. package/src/SegmentedControl.tsx +147 -90
  150. package/src/Select.tsx +136 -0
  151. package/src/Separator.tsx +52 -0
  152. package/src/Sheet.tsx +139 -0
  153. package/src/Skeleton.tsx +77 -0
  154. package/src/Slider.tsx +100 -54
  155. package/src/Stepper.tsx +315 -0
  156. package/src/Switch.tsx +80 -58
  157. package/src/TabBar.tsx +118 -84
  158. package/src/Tabs.tsx +5 -0
  159. package/src/Textarea.tsx +34 -0
  160. package/src/Toast.tsx +131 -0
  161. package/src/Toggle.tsx +113 -0
  162. package/src/ToggleGroup.tsx +129 -0
  163. package/src/Toolbar.tsx +111 -0
  164. package/src/Tooltip.tsx +79 -0
  165. package/src/engine/CHANGELOG.md +430 -0
  166. package/src/engine/NOTICE +54 -0
  167. package/src/engine/README.md +975 -0
  168. package/src/engine/android/build.gradle +18 -0
  169. package/src/engine/android/src/main/AndroidManifest.xml +2 -0
  170. package/src/engine/android/src/main/java/expo/modules/liquidglass/ExpoLiquidGlassModule.kt +174 -0
  171. package/src/engine/android/src/main/java/expo/modules/liquidglass/GlassConstants.kt +7 -0
  172. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassContainerView.kt +16 -0
  173. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassProviderView.kt +165 -0
  174. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassView.kt +1731 -0
  175. package/src/engine/android/src/main/java/expo/modules/liquidglass/enums/GlassEnums.kt +171 -0
  176. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropGraph.kt +146 -0
  177. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropSource.kt +53 -0
  178. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ContinuousCorners.kt +188 -0
  179. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/CornerRadii.kt +62 -0
  180. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassAppearance.kt +352 -0
  181. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassDebug.kt +109 -0
  182. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassEnvironment.kt +139 -0
  183. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassHdr.kt +85 -0
  184. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassLuminanceProbe.kt +189 -0
  185. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassPressAnimator.kt +264 -0
  186. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassProgressiveBlur.kt +249 -0
  187. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderCache.kt +256 -0
  188. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderSource.kt +845 -0
  189. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassTier.kt +63 -0
  190. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ProviderRegistry.kt +71 -0
  191. package/src/engine/android/src/main/java/expo/modules/liquidglass/records/GlassRecords.kt +288 -0
  192. package/src/engine/index.ts +24 -0
  193. package/src/engine/ios/Enums/GlassBlurDirection.swift +21 -0
  194. package/src/engine/ios/Enums/GlassVariant.swift +86 -0
  195. package/src/engine/ios/ExpoLiquidGlass.podspec +93 -0
  196. package/src/engine/ios/ExpoLiquidGlassModule.swift +77 -0
  197. package/src/engine/ios/Glass/BackdropCapturer.swift +811 -0
  198. package/src/engine/ios/Glass/ContinuousCorners.swift +165 -0
  199. package/src/engine/ios/Glass/GlassBackdrop.swift +176 -0
  200. package/src/engine/ios/Glass/GlassFramePhase.swift +126 -0
  201. package/src/engine/ios/Glass/GlassFrameScheduler.swift +261 -0
  202. package/src/engine/ios/Glass/GlassPressAnimator.swift +250 -0
  203. package/src/engine/ios/Glass/GlassRenderContext.swift +168 -0
  204. package/src/engine/ios/Glass/GlassRenderer.swift +186 -0
  205. package/src/engine/ios/Glass/GlassSurfaceView.swift +452 -0
  206. package/src/engine/ios/Glass/NonRenderableView.swift +54 -0
  207. package/src/engine/ios/Glass/StripCache.swift +545 -0
  208. package/src/engine/ios/Records/GlassCornerRadii.swift +79 -0
  209. package/src/engine/ios/Records/GlassMetalOptions.swift +180 -0
  210. package/src/engine/ios/Records/GlassRefractionCurve.swift +14 -0
  211. package/src/engine/ios/Shaders/LiquidGlass.metal +480 -0
  212. package/src/engine/ios/Shaders/bundle-marker.txt +6 -0
  213. package/src/engine/ios/Views/LiquidGlassContainerView.swift +99 -0
  214. package/src/engine/ios/Views/LiquidGlassView.swift +859 -0
  215. package/src/engine/package.json +70 -0
  216. package/src/engine/src/components/LiquidGlassButton/LiquidGlassButton.tsx +424 -0
  217. package/src/engine/src/components/LiquidGlassCard/LiquidGlassCard.tsx +98 -0
  218. package/src/engine/src/components/LiquidGlassChip/LiquidGlassChip.tsx +65 -0
  219. package/src/engine/src/components/LiquidGlassGroup/LiquidGlassGroup.tsx +350 -0
  220. package/src/engine/src/components/LiquidGlassIconButton/LiquidGlassIconButton.tsx +24 -0
  221. package/src/engine/src/components/LiquidGlassMorphGroup/LiquidGlassMorphGroup.tsx +434 -0
  222. package/src/engine/src/components/LiquidGlassScrim/LiquidGlassScrim.tsx +100 -0
  223. package/src/engine/src/components/LiquidGlassSegmentedControl/LiquidGlassSegmentedControl.tsx +213 -0
  224. package/src/engine/src/components/LiquidGlassSheet/LiquidGlassSheet.tsx +218 -0
  225. package/src/engine/src/components/LiquidGlassSlider/LiquidGlassSlider.tsx +327 -0
  226. package/src/engine/src/components/LiquidGlassStepper/LiquidGlassStepper.tsx +321 -0
  227. package/src/engine/src/components/LiquidGlassSwitch/LiquidGlassSwitch.tsx +296 -0
  228. package/src/engine/src/components/LiquidGlassTabBar/LiquidGlassTabBar.tsx +952 -0
  229. package/src/engine/src/components/LiquidGlassTextInput/LiquidGlassTextInput.tsx +151 -0
  230. package/src/engine/src/components/LiquidGlassToast/LiquidGlassToast.tsx +169 -0
  231. package/src/engine/src/components/LiquidGlassToolbar/LiquidGlassToolbar.tsx +124 -0
  232. package/src/engine/src/components/index.ts +16 -0
  233. package/src/engine/src/constants/index.ts +4 -0
  234. package/src/engine/src/constants/metal.constants.ts +327 -0
  235. package/src/engine/src/constants/metrics.constants.ts +325 -0
  236. package/src/engine/src/constants/springs.constants.ts +107 -0
  237. package/src/engine/src/constants/styles.constants.ts +12 -0
  238. package/src/engine/src/context/glass-group.context.ts +65 -0
  239. package/src/engine/src/context/index.ts +6 -0
  240. package/src/engine/src/core/components/LiquidGlassContainer/LiquidGlassContainer.tsx +32 -0
  241. package/src/engine/src/core/components/LiquidGlassContainer/index.ts +1 -0
  242. package/src/engine/src/core/components/LiquidGlassProvider/LiquidGlassProvider.tsx +66 -0
  243. package/src/engine/src/core/components/LiquidGlassProvider/index.ts +1 -0
  244. package/src/engine/src/core/components/LiquidGlassStack/LiquidGlassStack.tsx +184 -0
  245. package/src/engine/src/core/components/LiquidGlassStack/index.ts +1 -0
  246. package/src/engine/src/core/components/LiquidGlassView/LiquidGlassView.tsx +126 -0
  247. package/src/engine/src/core/components/LiquidGlassView/index.ts +1 -0
  248. package/src/engine/src/core/components/index.ts +4 -0
  249. package/src/engine/src/core/constants/glass.constants.ts +57 -0
  250. package/src/engine/src/core/constants/index.ts +20 -0
  251. package/src/engine/src/core/constants/native.constants.ts +16 -0
  252. package/src/engine/src/core/context/glass-stack.context.ts +30 -0
  253. package/src/engine/src/core/context/index.ts +4 -0
  254. package/src/engine/src/core/enum/index.ts +12 -0
  255. package/src/engine/src/core/index.ts +1 -0
  256. package/src/engine/src/core/interfaces/glass-hdr.interface.ts +15 -0
  257. package/src/engine/src/core/interfaces/glass-metal.interface.ts +248 -0
  258. package/src/engine/src/core/interfaces/glass-surface.interface.ts +9 -0
  259. package/src/engine/src/core/interfaces/index.ts +31 -0
  260. package/src/engine/src/core/interfaces/liquid-glass-container.interface.ts +6 -0
  261. package/src/engine/src/core/interfaces/liquid-glass-provider.interface.ts +14 -0
  262. package/src/engine/src/core/interfaces/liquid-glass-stack.interface.ts +21 -0
  263. package/src/engine/src/core/interfaces/liquid-glass-view.interface.ts +129 -0
  264. package/src/engine/src/core/interfaces/native-liquid-glass-view.interface.ts +19 -0
  265. package/src/engine/src/core/modules/ExpoLiquidGlassModule.ts +26 -0
  266. package/src/engine/src/core/modules/index.ts +2 -0
  267. package/src/engine/src/core/root/index.ts +51 -0
  268. package/src/engine/src/core/types/glass.types.ts +25 -0
  269. package/src/engine/src/core/types/index.ts +8 -0
  270. package/src/engine/src/core/utils/debug.utils.ts +17 -0
  271. package/src/engine/src/core/utils/dev-warn.utils.ts +17 -0
  272. package/src/engine/src/core/utils/hdr.utils.ts +37 -0
  273. package/src/engine/src/core/utils/index.ts +5 -0
  274. package/src/engine/src/core/utils/native-view.utils.ts +33 -0
  275. package/src/engine/src/core/utils/platform.utils.ts +34 -0
  276. package/src/engine/src/core/views/NativeGlassBackdropView.ts +24 -0
  277. package/src/engine/src/core/views/NativeLiquidGlassContainerView.ts +13 -0
  278. package/src/engine/src/core/views/NativeLiquidGlassContainerView.web.ts +10 -0
  279. package/src/engine/src/core/views/NativeLiquidGlassProviderView.ts +13 -0
  280. package/src/engine/src/core/views/NativeLiquidGlassProviderView.web.ts +10 -0
  281. package/src/engine/src/core/views/NativeLiquidGlassView.ts +19 -0
  282. package/src/engine/src/core/views/NativeLiquidGlassView.web.ts +14 -0
  283. package/src/engine/src/core/views/index.ts +4 -0
  284. package/src/engine/src/hooks/index.ts +18 -0
  285. package/src/engine/src/hooks/use-adaptive-glass.ts +91 -0
  286. package/src/engine/src/hooks/use-damped-drag.ts +332 -0
  287. package/src/engine/src/hooks/use-echo-filter.ts +55 -0
  288. package/src/engine/src/hooks/use-glass-group-member.ts +169 -0
  289. package/src/engine/src/hooks/use-gravity-highlight.ts +79 -0
  290. package/src/engine/src/hooks/use-press-progress.ts +44 -0
  291. package/src/engine/src/index.ts +120 -0
  292. package/src/engine/src/interfaces/index.ts +28 -0
  293. package/src/engine/src/interfaces/liquid-glass-button.interface.ts +94 -0
  294. package/src/engine/src/interfaces/liquid-glass-card.interface.ts +40 -0
  295. package/src/engine/src/interfaces/liquid-glass-chip.interface.ts +29 -0
  296. package/src/engine/src/interfaces/liquid-glass-group.interface.ts +32 -0
  297. package/src/engine/src/interfaces/liquid-glass-icon-button.interface.ts +19 -0
  298. package/src/engine/src/interfaces/liquid-glass-morph-group.interface.ts +59 -0
  299. package/src/engine/src/interfaces/liquid-glass-scrim.interface.ts +36 -0
  300. package/src/engine/src/interfaces/liquid-glass-segmented-control.interface.ts +32 -0
  301. package/src/engine/src/interfaces/liquid-glass-sheet.interface.ts +38 -0
  302. package/src/engine/src/interfaces/liquid-glass-slider.interface.ts +37 -0
  303. package/src/engine/src/interfaces/liquid-glass-stepper.interface.ts +35 -0
  304. package/src/engine/src/interfaces/liquid-glass-switch.interface.ts +27 -0
  305. package/src/engine/src/interfaces/liquid-glass-tab-bar.interface.ts +116 -0
  306. package/src/engine/src/interfaces/liquid-glass-text-input.interface.ts +42 -0
  307. package/src/engine/src/interfaces/liquid-glass-toast.interface.ts +36 -0
  308. package/src/engine/src/interfaces/liquid-glass-toolbar.interface.ts +33 -0
  309. package/src/engine/src/theme/glass-ui-theme.ts +100 -0
  310. package/src/engine/src/theme/index.ts +2 -0
  311. package/src/engine/src/utils/button-press.utils.ts +63 -0
  312. package/src/engine/src/utils/index.ts +3 -0
  313. package/src/engine/src/utils/metal.utils.ts +164 -0
  314. package/src/glass-provider.tsx +60 -0
  315. package/src/glass-stack.tsx +115 -0
  316. package/src/index.ts +48 -190
  317. package/src/internal/GlassBackdrop.tsx +60 -0
  318. package/src/internal/GlassView.tsx +70 -18
  319. package/src/internal/blur-community.ts +19 -0
  320. package/src/internal/blur-community.web.ts +7 -0
  321. package/src/internal/blur.ts +89 -0
  322. package/src/internal/fallback.tsx +158 -20
  323. package/src/internal/glass-routing.ts +211 -34
  324. package/src/internal/glow.tsx +62 -0
  325. package/src/internal/initials.ts +7 -0
  326. package/src/internal/lens.tsx +105 -0
  327. package/src/internal/material.ts +92 -0
  328. package/src/internal/overlay.tsx +258 -0
  329. package/src/internal/primitives.ts +26 -0
  330. package/src/internal/rim.tsx +79 -0
  331. package/src/internal/tokens.ts +34 -1
  332. package/lib/module/Carousel.js +0 -103
  333. package/lib/module/Display.js +0 -317
  334. package/lib/module/Feedback.js +0 -386
  335. package/lib/module/Form.js +0 -164
  336. package/lib/module/Forms2.js +0 -454
  337. package/lib/module/Message.js +0 -88
  338. package/lib/module/Overlays.js +0 -328
  339. package/lib/module/Pickers.js +0 -243
  340. package/lib/module/Table.js +0 -99
  341. package/lib/module/ai.js +0 -280
  342. package/lib/module/charts/AreaChart.js +0 -32
  343. package/lib/module/charts/BarChart.js +0 -67
  344. package/lib/module/charts/FunnelChart.js +0 -50
  345. package/lib/module/charts/HeatmapChart.js +0 -71
  346. package/lib/module/charts/LineChart.js +0 -81
  347. package/lib/module/charts/PlotChart.js +0 -52
  348. package/lib/module/charts/RadarChart.js +0 -78
  349. package/lib/module/charts/RingChart.js +0 -52
  350. package/lib/module/charts/ScatterChart.js +0 -95
  351. package/lib/module/charts/WaterfallChart.js +0 -85
  352. package/lib/module/charts/advanced.js +0 -313
  353. package/lib/module/charts/extra.js +0 -108
  354. package/lib/module/charts/index.js +0 -50
  355. package/lib/module/charts/scales.js +0 -140
  356. package/lib/typescript/Carousel.d.ts +0 -47
  357. package/lib/typescript/Display.d.ts +0 -178
  358. package/lib/typescript/Feedback.d.ts +0 -196
  359. package/lib/typescript/Form.d.ts +0 -97
  360. package/lib/typescript/Forms2.d.ts +0 -209
  361. package/lib/typescript/Message.d.ts +0 -71
  362. package/lib/typescript/Overlays.d.ts +0 -146
  363. package/lib/typescript/Pickers.d.ts +0 -105
  364. package/lib/typescript/Table.d.ts +0 -64
  365. package/lib/typescript/ai.d.ts +0 -166
  366. package/lib/typescript/charts/AreaChart.d.ts +0 -44
  367. package/lib/typescript/charts/BarChart.d.ts +0 -19
  368. package/lib/typescript/charts/FunnelChart.d.ts +0 -25
  369. package/lib/typescript/charts/HeatmapChart.d.ts +0 -23
  370. package/lib/typescript/charts/LineChart.d.ts +0 -30
  371. package/lib/typescript/charts/PlotChart.d.ts +0 -31
  372. package/lib/typescript/charts/RadarChart.d.ts +0 -27
  373. package/lib/typescript/charts/RingChart.d.ts +0 -28
  374. package/lib/typescript/charts/ScatterChart.d.ts +0 -34
  375. package/lib/typescript/charts/WaterfallChart.d.ts +0 -22
  376. package/lib/typescript/charts/advanced.d.ts +0 -107
  377. package/lib/typescript/charts/extra.d.ts +0 -63
  378. package/lib/typescript/charts/index.d.ts +0 -13
  379. package/lib/typescript/charts/scales.d.ts +0 -35
  380. package/src/Carousel.tsx +0 -233
  381. package/src/Display.tsx +0 -778
  382. package/src/Feedback.tsx +0 -969
  383. package/src/Form.tsx +0 -425
  384. package/src/Forms2.tsx +0 -1014
  385. package/src/Message.tsx +0 -219
  386. package/src/Overlays.tsx +0 -685
  387. package/src/Pickers.tsx +0 -590
  388. package/src/Table.tsx +0 -231
  389. package/src/ai.tsx +0 -707
  390. package/src/charts/AreaChart.tsx +0 -73
  391. package/src/charts/BarChart.tsx +0 -183
  392. package/src/charts/FunnelChart.tsx +0 -125
  393. package/src/charts/HeatmapChart.tsx +0 -155
  394. package/src/charts/LineChart.tsx +0 -247
  395. package/src/charts/PlotChart.tsx +0 -168
  396. package/src/charts/RadarChart.tsx +0 -208
  397. package/src/charts/RingChart.tsx +0 -133
  398. package/src/charts/ScatterChart.tsx +0 -223
  399. package/src/charts/WaterfallChart.tsx +0 -201
  400. package/src/charts/advanced.tsx +0 -676
  401. package/src/charts/extra.tsx +0 -242
  402. package/src/charts/index.ts +0 -86
  403. package/src/charts/scales.ts +0 -163
@@ -0,0 +1,20 @@
1
+ export {
2
+ NATIVE_MODULE_NAME,
3
+ NATIVE_VIEW_NAMES,
4
+ COMPONENT_NAMES,
5
+ } from "./native.constants";
6
+ export {
7
+ GLASS_VARIANTS,
8
+ GLASS_RENDERERS,
9
+ GLASS_ACTIVE_RENDERERS,
10
+ GLASS_CORNER_STYLES,
11
+ DEFAULT_GLASS_VARIANT,
12
+ DEFAULT_GLASS_RENDERER,
13
+ DEFAULT_GLASS_CORNER_STYLE,
14
+ DEFAULT_HIGHLIGHT_ANGLE,
15
+ DEFAULT_BORDER_WIDTH,
16
+ DEFAULT_GLASS_OPACITY,
17
+ MIN_IOS_VERSION_FOR_NATIVE_GLASS,
18
+ MIN_ANDROID_SDK_FOR_NATIVE_GLASS,
19
+ DEFAULT_PROVIDER_ID,
20
+ } from "./glass.constants";
@@ -0,0 +1,16 @@
1
+ const NATIVE_MODULE_NAME = "ExpoLiquidGlass";
2
+
3
+ const NATIVE_VIEW_NAMES = {
4
+ LIQUID_GLASS_VIEW: "LiquidGlassView",
5
+ LIQUID_GLASS_CONTAINER_VIEW: "LiquidGlassContainerView",
6
+ LIQUID_GLASS_PROVIDER_VIEW: "LiquidGlassProviderView",
7
+ } as const;
8
+
9
+ const COMPONENT_NAMES = {
10
+ LIQUID_GLASS_VIEW: "LiquidGlassView",
11
+ LIQUID_GLASS_CONTAINER: "LiquidGlassContainer",
12
+ LIQUID_GLASS_PROVIDER: "LiquidGlassProvider",
13
+ LIQUID_GLASS_STACK: "LiquidGlassStack",
14
+ } as const;
15
+
16
+ export { NATIVE_MODULE_NAME, NATIVE_VIEW_NAMES, COMPONENT_NAMES };
@@ -0,0 +1,30 @@
1
+ import { createContext, useContext } from "react";
2
+
3
+ /**
4
+ * Carries the `providerId` a glass view should read when it renders inside a
5
+ * `LiquidGlassStack` layer.
6
+ *
7
+ * Each layer wrap provides the id of the provider recording everything *below* that layer — never
8
+ * a provider the layer sits inside — so a `LiquidGlassView` that consumes this value can never be
9
+ * pointed at its own backdrop. `undefined` outside any stack; an explicit `providerId` prop always
10
+ * wins over the context.
11
+ */
12
+ const GlassStackProviderContext: React.Context<string | undefined> = createContext<
13
+ string | undefined
14
+ >(undefined);
15
+
16
+ GlassStackProviderContext.displayName = "GlassStackProviderContext";
17
+
18
+ /**
19
+ * The `providerId` supplied by the nearest enclosing `LiquidGlassStack` layer, or `undefined`
20
+ * outside any stack.
21
+ *
22
+ * `LiquidGlassView` already consumes this on its own. Reach for the hook only when building a
23
+ * component that must *forward* the id somewhere a context cannot follow — into a `Modal`, or into
24
+ * an imperative API.
25
+ */
26
+ function useGlassStackProviderId(): string | undefined {
27
+ return useContext(GlassStackProviderContext);
28
+ }
29
+
30
+ export { GlassStackProviderContext, useGlassStackProviderId };
@@ -0,0 +1,4 @@
1
+ export {
2
+ GlassStackProviderContext,
3
+ useGlassStackProviderId,
4
+ } from "./glass-stack.context";
@@ -0,0 +1,12 @@
1
+ enum GlassVariant {
2
+ Regular = "regular",
3
+ Clear = "clear",
4
+ }
5
+
6
+ enum GlassRenderer {
7
+ Auto = "auto",
8
+ Native = "native",
9
+ Metal = "metal",
10
+ }
11
+
12
+ export { GlassVariant, GlassRenderer };
@@ -0,0 +1 @@
1
+ export * from "./root";
@@ -0,0 +1,15 @@
1
+ /** Result of the Android HDR opt-in / status calls. See `setGlassHdrEnabled`. */
2
+ interface IGlassHdrStatus {
3
+ /** Whether this display + platform can do mixed HDR/SDR UI at all (Android 14+, HDR panel). */
4
+ supported: boolean;
5
+ /** Whether the app's opt-in is currently on (independent of `supported`). */
6
+ enabled: boolean;
7
+ /**
8
+ * The multiple of SDR white the glass highlight may reach right now. Exactly 1 while disabled
9
+ * or unsupported; breathes with screen brightness while active (e.g. up to ~4.5 on dim OLED
10
+ * panels, ~2 at full brightness).
11
+ */
12
+ headroom: number;
13
+ }
14
+
15
+ export type { IGlassHdrStatus };
@@ -0,0 +1,248 @@
1
+ import type { ColorValue } from "react-native";
2
+
3
+ interface IGlassRefractionCurve {
4
+ power?: number;
5
+ bias?: number;
6
+ }
7
+ interface IGlassRefraction {
8
+ amount?: number;
9
+ width?: number;
10
+ height?: number;
11
+ depth?: number;
12
+ /**
13
+ * How far the edge refraction leans toward `highlight.angle`'s light axis, unitless like
14
+ * `depth`. Default 0 (measured off real iOS 26, which carries no lean); negative flips it.
15
+ * Clamped to [-1, 1]. Shader renderers — Android's `agsl` tier and the iOS Metal renderer;
16
+ * iOS 26's native glass ignores it.
17
+ *
18
+ * A stylisation knob: the twist the eye reads on real glass is `depth`'s radial term sweeping
19
+ * the corners, which ships by default. This leans the whole rim toward the light on top.
20
+ */
21
+ swirl?: number;
22
+ curve?: IGlassRefractionCurve;
23
+ }
24
+
25
+ interface IGlassDispersion {
26
+ amount?: number;
27
+ reach?: number;
28
+ /**
29
+ * How much of the fringe follows Kyant's quadrant weighting, 0..1. Default 0 — an even rim
30
+ * fringe the whole way round. Shader renderers (Android `agsl`, iOS Metal); the native iOS 26
31
+ * glass ignores it.
32
+ *
33
+ * At 1 the spread is scaled by `(cx * cy) / (hx * hy)`: nothing along either centre line, full
34
+ * strength at the corners, and the sign — hence the hue order — flipping between neighbours. On
35
+ * a capsule that concentrates every trace of colour at the two rounded ends and leaves the long
36
+ * flanks clean, which is the look Kyant's tab pill is known for.
37
+ */
38
+ quadrant?: number;
39
+ }
40
+ interface IGlassHighlight {
41
+ intensity?: number;
42
+ angle?: number;
43
+ /**
44
+ * Depth of the glass border light, in dp. Default 0.75. Shader renderers (Android `agsl`, iOS
45
+ * Metal); the native iOS 26 glass ignores it.
46
+ *
47
+ * Both shader renderers draw the highlight as a thin additive two-lobe rim hugging the edge
48
+ * (measured off real iOS 26 glass), and this is that rim's fade-out depth. A faint ~7 dp sheen
49
+ * under the lit edges rides the same lobes.
50
+ */
51
+ width?: number;
52
+ /**
53
+ * Angular falloff exponent of the rim's two lobes. Default 1; higher concentrates the light at
54
+ * the lobes and darkens the perpendicular corners sooner. Shader renderers, like `width`.
55
+ */
56
+ falloff?: number;
57
+ }
58
+ interface IGlassBorder {
59
+ width?: number;
60
+ opacity?: number;
61
+ }
62
+
63
+ /**
64
+ * The inner shadow: a soft dark band along the inside of the silhouette — the shape minus itself
65
+ * translated by the cast offset, blurred by `radius` (Kyant's `InnerShadow`). It is what gives a
66
+ * lifted control its thickness: iOS 26's grabbed tab pill and slider thumb carry one.
67
+ *
68
+ * Shader renderers only (Android `agsl`, iOS Metal), evaluated on the merged field so a `morph`
69
+ * partner shades as one piece. Animatable per frame like the rest of `metal` — the kit ramps it
70
+ * in with press progress. `radius` 0 (or absent) is off.
71
+ */
72
+ interface IGlassInnerShadow {
73
+ /** Blur radius, dp. 0 disables. */
74
+ radius?: number;
75
+ /**
76
+ * Where the shadow is cast, dp. Defaults: `offsetX` 0, `offsetY` = `radius` — lit from above,
77
+ * so the pane's top lip shades the top inner edge.
78
+ */
79
+ offsetX?: number;
80
+ offsetY?: number;
81
+ /** Strength of the (black) shadow, 0..1. Default 0.15. */
82
+ opacity?: number;
83
+ }
84
+
85
+ /**
86
+ * A blur whose radius ramps across the view — iOS 26's "content melts into blur" scroll-edge
87
+ * look. The ramp travels along `direction` (named for where the blur *increases* toward), from
88
+ * `startRadius` at the leading edge to `endRadius` at the trailing one, eased with a Hermite
89
+ * step and confined to the `start`..`end` fraction window.
90
+ *
91
+ * Shader renderers: Android's `agsl` tier runs a blur pyramid — one platform blur per doubling
92
+ * of radius up to the ramp's maximum, cross-faded per pixel by the ramp, radii in the iOS
93
+ * `sigma = 0.5 * r` convention so `endRadius: 24` here looks like `blurRadius: 24` on iOS; the
94
+ * iOS Metal renderer ramps its existing blur passes per-pixel. When present it replaces the
95
+ * uniform `blurRadius` stage (equal radii collapse to the plain uniform stage). Android's
96
+ * `fallback-blur` tier (API 31–32) approximates it with a uniform blur at the mean radius;
97
+ * `scrim` ignores it; iOS 26's native glass has no per-pixel blur to drive — pair with the
98
+ * system's own scroll-edge effects there. Animatable per-frame via Reanimated
99
+ * `useAnimatedProps`, like the rest of `metal`.
100
+ */
101
+ interface IGlassProgressiveBlur {
102
+ /** Radius at the leading edge, dp. Default 0 — sharp. */
103
+ startRadius?: number;
104
+ /** Radius at the trailing edge, dp. Default 0. */
105
+ endRadius?: number;
106
+ /** Where the blur increases toward. Default "down" — sharp top, blurred bottom. */
107
+ direction?: "down" | "up" | "left" | "right";
108
+ /** Where the ramp begins, as a fraction of the view's extent along `direction`. Default 0. */
109
+ start?: number;
110
+ /** Where the ramp completes, same units. Default 1. */
111
+ end?: number;
112
+ }
113
+
114
+ /**
115
+ * The primary shape as a sub-rect of the view — view-local dp, top-left origin. Absent, the
116
+ * shape fills the view exactly as it always has.
117
+ *
118
+ * This is what makes a *canvas* view possible: a view larger than its glass, inside which a
119
+ * `morph` partner has room to approach, neck apart and separate — both platforms clip their
120
+ * draw at the view's bounds, so the extra room must come from the view itself. Shader
121
+ * renderers only, like `morph`. The view's `cornerRadius` resolves against this rect; the
122
+ * drawn `border` and child clipping still track the view, so a canvas view should carry
123
+ * `border: { width: 0 }` and host its own chrome.
124
+ */
125
+ interface IGlassShapeRect {
126
+ x?: number;
127
+ y?: number;
128
+ width?: number;
129
+ height?: number;
130
+ }
131
+
132
+ /**
133
+ * The morph partner: a second rounded rect folded into this view's shape with a smooth-min, so
134
+ * the two read as one connected pane of liquid — refraction, dispersion and the border light all
135
+ * follow the *merged* silhouette, and animating the rect toward the view's edge makes the shapes
136
+ * neck together and fuse exactly like iOS 26's `UIGlassContainerEffect` merge.
137
+ *
138
+ * Shader renderers only: Android's `agsl` tier and iOS's Metal renderer (so iOS below 26, or
139
+ * `renderer="metal"`). The native iOS 26 glass and the blur/scrim tiers ignore it — for the
140
+ * native path, use `LiquidGlassContainer`'s real merge instead.
141
+ *
142
+ * View-local dp, top-left origin, exactly like layout. All-or-nothing: `width`, `height` and a
143
+ * positive `smoothing` make it live. Keep the partner inside the view's bounds (both platforms
144
+ * clip there) and pair it with `shape` when it needs room outside the primary silhouette. Like
145
+ * the rest of `metal`, this can be driven per-frame from the UI thread via Reanimated's
146
+ * `useAnimatedProps`.
147
+ */
148
+ interface IGlassMorph {
149
+ /** Partner's top-left corner, view-local dp. Defaults to 0. */
150
+ x?: number;
151
+ y?: number;
152
+ width?: number;
153
+ height?: number;
154
+ /** One radius for all four partner corners, clamped to half its short side. */
155
+ cornerRadius?: number;
156
+ /** The distance at which the two shapes begin to merge, dp. 0 disables. */
157
+ smoothing?: number;
158
+ }
159
+ /**
160
+ * How much of the shader to run. Android only — iOS ignores it.
161
+ *
162
+ * The chromatic-dispersion loop must have a compile-time-constant bound to unroll, so each tier is
163
+ * a separately compiled shader rather than a uniform.
164
+ *
165
+ * - `high` — 16 dispersion taps, one per device pixel. Finer than iOS.
166
+ * - `medium` — 8 taps, one per point. What iOS resolves to at the built-in defaults, so this is the
167
+ * parity setting and the default.
168
+ * - `low` — no dispersion, no film grain. Roughly a fifth of `high`'s cost. Use it for glass that
169
+ * covers a large fraction of the screen.
170
+ */
171
+ type TGlassAndroidQuality = "low" | "medium" | "high";
172
+
173
+ /**
174
+ * A ceiling on Android's rendering ladder. Android only — iOS ignores it.
175
+ *
176
+ * The values are the same strings `onRendererChange` reports, so what you ask for is directly
177
+ * comparable with what you get. It can only ever *lower* the tier: `"agsl"` on an API-31 device
178
+ * still resolves to `"fallback-blur"`, because the device's own ceiling always applies first.
179
+ *
180
+ * - `agsl` — no cap. The default.
181
+ * - `fallback-blur` — blur, saturation, frost and tint, clipped to the outline. No refraction.
182
+ * - `scrim` — the live backdrop drawn straight through under a translucent scrim. No blur.
183
+ * - `none` — no backdrop at all; frost, tint and border only.
184
+ *
185
+ * Two uses: capping the cost of glass that covers a large fraction of the screen, and exercising
186
+ * the fallbacks on a device that would otherwise never take them.
187
+ *
188
+ * Note that `"none"` is the *native* floor, which is not quite the sub-API-29 experience — there,
189
+ * JS never mounts the native view at all and you get a bare `<View>`.
190
+ */
191
+ type TGlassAndroidTier = "agsl" | "fallback-blur" | "scrim" | "none";
192
+
193
+ interface IGlassAndroidOptions {
194
+ quality?: TGlassAndroidQuality;
195
+ maxTier?: TGlassAndroidTier;
196
+ }
197
+
198
+ interface IGlassMetalOptions {
199
+ /**
200
+ * The wash over the glass — the same thing as the view's `tint` prop, carried by the recipe.
201
+ * Present, it wins over the prop. Two reasons to put it here rather than on the view: a
202
+ * `metal` object then describes a whole look, colour included (`{ ...GLASS_BUTTON_METAL,
203
+ * tint: "#0088FFCC" }` is a blue button), and `lerpMetal` crossfades it between two recipes
204
+ * on the UI thread — a pill that goes blue as it is grabbed, a bar that warms on press.
205
+ * Any colour string works on both platforms; the wrapper processes it before it crosses.
206
+ */
207
+ tint?: ColorValue;
208
+ blurRadius?: number;
209
+ captureQuality?: number;
210
+ opacity?: number;
211
+ frost?: number;
212
+ saturation?: number;
213
+ noise?: number;
214
+ light?: number;
215
+ /**
216
+ * A whole-surface lens: the backdrop reads enlarged through the pane, contracting toward the
217
+ * shape's centre — the interior magnification real iOS 26 glass carries (a slider thumb
218
+ * enlarges the track under it). `1` is none; clamped to `[1, 4]`. Shader renderers only.
219
+ * Geometry is untouched, so the rim still bends off the true silhouette, and a value ≥ 1 only
220
+ * ever samples inward, so it costs no extra backdrop.
221
+ */
222
+ magnification?: number;
223
+ refraction?: IGlassRefraction;
224
+ dispersion?: IGlassDispersion;
225
+ highlight?: IGlassHighlight;
226
+ border?: IGlassBorder;
227
+ innerShadow?: IGlassInnerShadow;
228
+ shape?: IGlassShapeRect;
229
+ morph?: IGlassMorph;
230
+ progressiveBlur?: IGlassProgressiveBlur;
231
+ /** Android-only escape hatch; ignored everywhere else. */
232
+ android?: IGlassAndroidOptions;
233
+ }
234
+ export type {
235
+ IGlassMetalOptions,
236
+ IGlassRefraction,
237
+ IGlassRefractionCurve,
238
+ IGlassDispersion,
239
+ IGlassHighlight,
240
+ IGlassBorder,
241
+ IGlassInnerShadow,
242
+ IGlassShapeRect,
243
+ IGlassMorph,
244
+ IGlassProgressiveBlur,
245
+ IGlassAndroidOptions,
246
+ TGlassAndroidQuality,
247
+ TGlassAndroidTier,
248
+ };
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+
4
+ interface IGlassSurfaceProps {
5
+ style?: StyleProp<ViewStyle>;
6
+ children?: ReactNode;
7
+ }
8
+
9
+ export type { IGlassSurfaceProps };
@@ -0,0 +1,31 @@
1
+ export type { IGlassSurfaceProps } from "./glass-surface.interface";
2
+ export type { IGlassHdrStatus } from "./glass-hdr.interface";
3
+ export type {
4
+ IGlassMetalOptions,
5
+ IGlassRefraction,
6
+ IGlassRefractionCurve,
7
+ IGlassDispersion,
8
+ IGlassHighlight,
9
+ IGlassBorder,
10
+ IGlassInnerShadow,
11
+ IGlassShapeRect,
12
+ IGlassMorph,
13
+ IGlassProgressiveBlur,
14
+ IGlassAndroidOptions,
15
+ TGlassAndroidQuality,
16
+ TGlassAndroidTier,
17
+ } from "./glass-metal.interface";
18
+ export type {
19
+ ILiquidGlassViewProps,
20
+ IGlassCornerRadii,
21
+ IGlassGlow,
22
+ IGlassLuminanceReading,
23
+ TGlassCornerRadius,
24
+ } from "./liquid-glass-view.interface";
25
+ export type { ILiquidGlassContainerProps } from "./liquid-glass-container.interface";
26
+ export type { ILiquidGlassProviderProps } from "./liquid-glass-provider.interface";
27
+ export type {
28
+ ILiquidGlassStackProps,
29
+ ILiquidGlassStackLayerProps,
30
+ } from "./liquid-glass-stack.interface";
31
+ export type { INativeLiquidGlassViewProps } from "./native-liquid-glass-view.interface";
@@ -0,0 +1,6 @@
1
+ import type { IGlassSurfaceProps } from "./glass-surface.interface";
2
+
3
+ interface ILiquidGlassContainerProps extends IGlassSurfaceProps {
4
+ spacing?: number;
5
+ }
6
+ export type { ILiquidGlassContainerProps };
@@ -0,0 +1,14 @@
1
+ import type { IGlassSurfaceProps } from "./glass-surface.interface";
2
+
3
+ interface ILiquidGlassProviderProps extends IGlassSurfaceProps {
4
+ /**
5
+ * Pairs this provider with the `LiquidGlassView`s that read its backdrop. Defaults to
6
+ * `"default"` on both sides, so a single provider needs no explicit id.
7
+ *
8
+ * Pairing is explicit rather than inferred from the view hierarchy on purpose: a hierarchy walk
9
+ * is what broke `expo-blur` inside `Modal`, because a `Modal` is a separate window.
10
+ */
11
+ providerId?: string;
12
+ }
13
+
14
+ export type { ILiquidGlassProviderProps };
@@ -0,0 +1,21 @@
1
+ import type { IGlassSurfaceProps } from "./glass-surface.interface";
2
+
3
+ /**
4
+ * Props for `LiquidGlassStack` — declarative stacked glass.
5
+ *
6
+ * Direct children must be `LiquidGlassStack.Layer` elements, bottom to top. Anything else is
7
+ * dropped with a dev warning.
8
+ */
9
+ interface ILiquidGlassStackProps extends IGlassSurfaceProps {}
10
+
11
+ /**
12
+ * Props for `LiquidGlassStack.Layer`.
13
+ *
14
+ * The first layer is the stack's base content and lays out in normal flow (`flex: 1`) — its
15
+ * `style` must not set `position: "absolute"`, because that view is the flow child of the
16
+ * innermost provider. Every later layer is an overlay: an `absoluteFill` wrap with
17
+ * `pointerEvents="box-none"`, with `style` merged on top.
18
+ */
19
+ interface ILiquidGlassStackLayerProps extends IGlassSurfaceProps {}
20
+
21
+ export type { ILiquidGlassStackProps, ILiquidGlassStackLayerProps };
@@ -0,0 +1,129 @@
1
+ import type { ColorValue, StyleProp, ViewStyle } from "react-native";
2
+
3
+ import type {
4
+ TGlassActiveRenderer,
5
+ TGlassCornerStyle,
6
+ TGlassRenderer,
7
+ TGlassVariant,
8
+ } from "../types";
9
+ import type { IGlassMetalOptions } from "./glass-metal.interface";
10
+ import type { IGlassSurfaceProps } from "./glass-surface.interface";
11
+
12
+ interface IGlassCornerRadii {
13
+ topLeft?: number;
14
+ topRight?: number;
15
+ bottomRight?: number;
16
+ bottomLeft?: number;
17
+ }
18
+
19
+ type TGlassCornerRadius = number | IGlassCornerRadii;
20
+
21
+ interface ILiquidGlassViewProps extends IGlassSurfaceProps {
22
+ containerStyle?: StyleProp<ViewStyle>;
23
+
24
+ /**
25
+ * Which `LiquidGlassProvider` supplies this view's backdrop. Defaults to `"default"`.
26
+ *
27
+ * An **array** composites several providers in order, first at the bottom — the combined
28
+ * backdrop of the nested-layer pattern: `["default", layerId]` makes glass over a glass bar
29
+ * refract the bar *composited over* the content behind it, exactly what the eye sees under
30
+ * the view.
31
+ *
32
+ * **Android only.** iOS captures what lies beneath each glass in the window, which already
33
+ * is that composite.
34
+ */
35
+ providerId?: string | string[];
36
+
37
+ variant?: TGlassVariant;
38
+ renderer?: TGlassRenderer;
39
+ cornerRadius?: TGlassCornerRadius;
40
+ cornerStyle?: TGlassCornerStyle;
41
+ tint?: ColorValue;
42
+
43
+ /**
44
+ * System touch response. Defaults to `false`.
45
+ *
46
+ * **iOS 26+**: passed to `UIGlassEffect.isInteractive`; the OS owns the behaviour. **Android
47
+ * and the iOS Metal renderer (iOS below 26)**: a native port of it, the same springs on both —
48
+ * a spring-driven specular blooms under the finger, the refraction dents and deepens around it,
49
+ * and the glass inflates ~3.5 %, translates a little toward the drag and stretches along it,
50
+ * rubber-band style, all off the platform's animation stage with no JS per frame. On Android a
51
+ * bare-glass press held over ~150 ms takes the gesture from ancestor scrollers, so dragging the
52
+ * glass does not scroll it away; quick flicks still scroll. On iOS an ancestor recogniser
53
+ * taking the touch releases the press like a lift.
54
+ */
55
+ interactive?: boolean;
56
+ metal?: IGlassMetalOptions;
57
+
58
+ /**
59
+ * A press this glass should respond to, driven by the app rather than by its own touches.
60
+ * Shader renderers — Android and the iOS Metal renderer; iOS 26's native glass ignores it.
61
+ *
62
+ * `interactive` covers a press *on this view*. This covers the other case: a control the app is
63
+ * choreographing, whose press belongs to some other view. A tab bar whose pill is being dragged
64
+ * is the canonical one — the finger is on the pill, but it is the bar that lights up under it.
65
+ *
66
+ * Setting it takes over the press uniforms entirely; `interactive`'s own animator stops reaching
67
+ * the shader until it goes back to `undefined`. And unlike `interactive` it never writes the
68
+ * view's transform, so it composes with a `transform` style instead of fighting it.
69
+ *
70
+ * Cheap enough to animate per frame with Reanimated's `useAnimatedProps` — it re-uploads
71
+ * uniforms and redraws, and touches nothing else.
72
+ */
73
+ glow?: IGlassGlow;
74
+
75
+ /**
76
+ * Adaptive glass. Defaults to `false`.
77
+ *
78
+ * On, the shader renderers (Android, and iOS below 26) read the mean luminance of the backdrop
79
+ * under the view — Android renders the provider content into an 8×8 probe off the RenderThread,
80
+ * iOS samples the capture it already holds — at most four times a second and only when the
81
+ * backdrop or the view moved. Two things follow from it: the frost's polarity tracks the
82
+ * backdrop instead of the colour scheme (dark content under a dark frost, light under a light
83
+ * one, with hysteresis at 0.45 / 0.55 and a 350 ms crossfade), and `onBackdropLuminance` fires
84
+ * so the content *on* the glass can flip to match — which is what `useAdaptiveGlass` and the
85
+ * kit's `adaptive` props do. iOS 26's native glass adapts on its own and ignores this.
86
+ */
87
+ adaptive?: boolean;
88
+
89
+ /**
90
+ * The adaptive sensor's reading: the backdrop's mean luminance under the view, `0`–`1` in sRGB
91
+ * gamma space, and the polarity the glass has settled on. Fires when the value has moved by at
92
+ * least 0.02 or the polarity flipped; requires `adaptive`.
93
+ */
94
+ onBackdropLuminance?: (reading: IGlassLuminanceReading) => void;
95
+
96
+ onRendererChange?: (renderer: TGlassActiveRenderer) => void;
97
+ }
98
+
99
+ interface IGlassLuminanceReading {
100
+ /** Mean luminance of the backdrop under the glass, `0` (black) to `1` (white). */
101
+ luminance: number;
102
+ /** Whether the glass has settled on the dark polarity — a dark frost, wanting light content. */
103
+ dark: boolean;
104
+ }
105
+
106
+ interface IGlassGlow {
107
+ /** 0 = at rest, and the effect costs nothing; 1 = fully lit. */
108
+ progress: number;
109
+
110
+ /** Hotspot, view-local dp. Both default to the view's centre. */
111
+ x?: number;
112
+ y?: number;
113
+
114
+ /**
115
+ * Whether the press also bends the glass — the backdrop dent under the hotspot and the lens
116
+ * boost `interactive` applies. Default `false`: a surface hosting someone else's press should
117
+ * light up, not start refracting harder. Set it when the press really is on this glass and you
118
+ * are only driving it by hand.
119
+ */
120
+ lens?: boolean;
121
+ }
122
+
123
+ export type {
124
+ ILiquidGlassViewProps,
125
+ IGlassCornerRadii,
126
+ IGlassGlow,
127
+ IGlassLuminanceReading,
128
+ TGlassCornerRadius,
129
+ };
@@ -0,0 +1,19 @@
1
+ import type { TGlassActiveRenderer } from "../types";
2
+ import type {
3
+ IGlassLuminanceReading,
4
+ ILiquidGlassViewProps,
5
+ } from "./liquid-glass-view.interface";
6
+
7
+ interface INativeLiquidGlassViewProps extends Omit<
8
+ ILiquidGlassViewProps,
9
+ "containerStyle" | "onRendererChange" | "onBackdropLuminance" | "providerId"
10
+ > {
11
+ /** A single id on the wire; the JS component routes arrays to `providerIds`. */
12
+ providerId?: string;
13
+ providerIds?: string[];
14
+ onRendererChange?: (event: {
15
+ nativeEvent: { renderer: TGlassActiveRenderer };
16
+ }) => void;
17
+ onBackdropLuminance?: (event: { nativeEvent: IGlassLuminanceReading }) => void;
18
+ }
19
+ export type { INativeLiquidGlassViewProps };
@@ -0,0 +1,26 @@
1
+ import { requireOptionalNativeModule } from "expo";
2
+
3
+ import { NATIVE_MODULE_NAME } from "../constants";
4
+ import type { IGlassHdrStatus } from "../interfaces";
5
+
6
+ interface IExpoLiquidGlassModule {
7
+ supportsNativeGlass: boolean;
8
+ /**
9
+ * Whether any glass renderer is available, native or not. Optional because natives built
10
+ * before this constant existed don't export it — readers must fall back to
11
+ * {@link supportsNativeGlass}, which restores the old (over-strict on iOS) behaviour.
12
+ */
13
+ supportsGlass?: boolean;
14
+ /** Android only — absent on iOS and web. See {@link setGlassDebugLogging}. */
15
+ setDebugLogging?: (enabled: boolean) => void;
16
+ /** Android only — absent on iOS and web. See {@link setGlassHdrEnabled}. */
17
+ setHdrEnabled?: (enabled: boolean) => Promise<IGlassHdrStatus>;
18
+ /** Android only — absent on iOS and web. See {@link getGlassHdrStatus}. */
19
+ getHdrStatus?: () => IGlassHdrStatus;
20
+ }
21
+
22
+ const ExpoLiquidGlassModule =
23
+ requireOptionalNativeModule<IExpoLiquidGlassModule>(NATIVE_MODULE_NAME);
24
+
25
+ export { ExpoLiquidGlassModule };
26
+ export type { IExpoLiquidGlassModule };
@@ -0,0 +1,2 @@
1
+ export { ExpoLiquidGlassModule } from "./ExpoLiquidGlassModule";
2
+ export type { IExpoLiquidGlassModule } from "./ExpoLiquidGlassModule";
@@ -0,0 +1,51 @@
1
+ export {
2
+ LiquidGlassView,
3
+ LiquidGlassContainer,
4
+ LiquidGlassProvider,
5
+ LiquidGlassStack,
6
+ } from "../components";
7
+ export { NativeGlassBackdropView } from "../views";
8
+
9
+ export {
10
+ supportsNativeGlass,
11
+ supportsGlass,
12
+ setGlassDebugLogging,
13
+ setGlassHdrEnabled,
14
+ getGlassHdrStatus,
15
+ } from "../utils";
16
+ export { useGlassStackProviderId } from "../context";
17
+
18
+ export type {
19
+ ILiquidGlassViewProps as LiquidGlassViewProps,
20
+ ILiquidGlassContainerProps as LiquidGlassContainerProps,
21
+ ILiquidGlassProviderProps as LiquidGlassProviderProps,
22
+ ILiquidGlassStackProps as LiquidGlassStackProps,
23
+ ILiquidGlassStackLayerProps as LiquidGlassStackLayerProps,
24
+ IGlassMetalOptions as GlassMetalOptions,
25
+ IGlassRefraction as GlassRefraction,
26
+ IGlassRefractionCurve as GlassRefractionCurve,
27
+ IGlassDispersion as GlassDispersion,
28
+ IGlassHighlight as GlassHighlight,
29
+ IGlassBorder as GlassBorder,
30
+ IGlassInnerShadow as GlassInnerShadow,
31
+ IGlassShapeRect as GlassShapeRect,
32
+ IGlassMorph as GlassMorph,
33
+ IGlassProgressiveBlur as GlassProgressiveBlur,
34
+ IGlassAndroidOptions as GlassAndroidOptions,
35
+ TGlassAndroidQuality as GlassAndroidQuality,
36
+ TGlassAndroidTier as GlassAndroidTier,
37
+ IGlassHdrStatus as GlassHdrStatus,
38
+ IGlassCornerRadii as GlassCornerRadii,
39
+ IGlassGlow as GlassGlow,
40
+ IGlassLuminanceReading as GlassLuminanceReading,
41
+ TGlassCornerRadius as GlassCornerRadius,
42
+ } from "../interfaces";
43
+
44
+ export type {
45
+ TGlassVariant,
46
+ TGlassRenderer,
47
+ TGlassActiveRenderer as GlassActiveRenderer,
48
+ TGlassCornerStyle as GlassCornerStyle,
49
+ } from "../types";
50
+
51
+ export { GlassRenderer, GlassVariant } from "../enum/index";