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
@@ -1,188 +1,3 @@
1
- import { type ReactNode } from "react";
2
- import type { StyleProp, ViewStyle } from "react-native";
3
- export interface SearchBarProps {
4
- /** Controlled text. Omit and the bar keeps its own. */
5
- value?: string;
6
- defaultValue?: string;
7
- onChangeText?: (text: string) => void;
8
- onSubmit?: (text: string) => void;
9
- placeholder?: string;
10
- /** Shows a cancel button beside the field while it holds text or focus. */
11
- showCancel?: boolean;
12
- onCancel?: () => void;
13
- accessibilityLabel?: string;
14
- style?: StyleProp<ViewStyle>;
15
- isDark?: boolean;
16
- testID?: string;
17
- }
18
- /**
19
- * A search field for a bar or a screen header.
20
- *
21
- * Distinct from NativeAIInput: that is an AI composer with send semantics, this
22
- * is ordinary app search — magnifier, themed placeholder, and a clear button
23
- * once there is something to clear.
24
- */
25
- export declare const SearchBar: import("react").ForwardRefExoticComponent<SearchBarProps & import("react").RefAttributes<any>>;
26
- export interface ChipProps {
27
- label: string;
28
- icon?: ReactNode;
29
- /** Shows a close affordance; called when it is pressed. */
30
- onClose?: () => void;
31
- /** Tapping the chip. Omit to make it a static tag. */
32
- onPress?: () => void;
33
- /** Controlled selection. Omit for a plain tag with no selected state. */
34
- selected?: boolean;
35
- defaultSelected?: boolean;
36
- onSelectedChange?: (selected: boolean) => void;
37
- disabled?: boolean;
38
- style?: StyleProp<ViewStyle>;
39
- isDark?: boolean;
40
- testID?: string;
41
- }
42
- /**
43
- * A filter or tag pill.
44
- *
45
- * Selected state is a glass pill tinted with `glassActive` — the same selected
46
- * treatment SegmentedControl and TabBar use, rather than a new colour.
47
- */
48
- export declare const Chip: import("react").ForwardRefExoticComponent<ChipProps & import("react").RefAttributes<any>>;
49
- export interface FABProps {
50
- onPress: () => void;
51
- /** Required: an icon-only circle has no text to announce. */
52
- accessibilityLabel: string;
53
- /** The icon. When a label string is also supplied, the FAB is extended. */
54
- icon?: ReactNode;
55
- /** Turns the circle into an extended pill with visible text. */
56
- label?: string;
57
- size?: "md" | "lg";
58
- disabled?: boolean;
59
- style?: StyleProp<ViewStyle>;
60
- isDark?: boolean;
61
- testID?: string;
62
- }
63
- /**
64
- * The floating action button.
65
- *
66
- * The flagship glass circle of the library: a round `Glass` with `interactive`
67
- * so the material itself responds to touch. The caller positions it; the
68
- * component does not assume an edge.
69
- */
70
- export declare const FAB: import("react").ForwardRefExoticComponent<FABProps & import("react").RefAttributes<any>>;
71
- export interface IconButtonProps {
72
- /** Required: the icon carries no text of its own. */
73
- accessibilityLabel: string;
74
- onPress: () => void;
75
- icon: ReactNode;
76
- size?: "sm" | "md" | "lg";
77
- variant?: "glass" | "ghost";
78
- disabled?: boolean;
79
- style?: StyleProp<ViewStyle>;
80
- isDark?: boolean;
81
- testID?: string;
82
- }
83
- /**
84
- * An icon-only button on glass.
85
- *
86
- * Button takes an icon alongside a label; this is the icon-only form, which
87
- * every kit ships for toolbars and bar actions.
88
- */
89
- export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<any>>;
90
- export interface AppBarAction {
91
- /** Announced to screen readers; the icon is decorative. */
92
- accessibilityLabel: string;
93
- icon: ReactNode;
94
- onPress: () => void;
95
- disabled?: boolean;
96
- }
97
- export interface AppBarProps {
98
- title: string;
99
- /** Optional second line under the title. */
100
- subtitle?: string;
101
- /** A back or menu action at the leading edge. */
102
- leading?: AppBarAction;
103
- /** Actions at the trailing edge. */
104
- actions?: AppBarAction[];
105
- /**
106
- * The caller's safe-area inset above the bar. Glacia takes it as a prop
107
- * rather than adding a native insets dependency: on a device the app already
108
- * knows its insets, and passing a number keeps this component dependency-free.
109
- */
110
- topInset?: number;
111
- /**
112
- * Whether content has scrolled under the bar.
113
- *
114
- * iOS bars sit quiet at the top of a screen and gain a defined edge once
115
- * content passes beneath them, so the bar reads as a layer over the content
116
- * rather than as part of it. Wire this to a ScrollView's scroll offset — see
117
- * the component's documentation for the two-line version.
118
- */
119
- scrolled?: boolean;
120
- style?: StyleProp<ViewStyle>;
121
- isDark?: boolean;
122
- testID?: string;
123
- }
124
- /**
125
- * The top bar.
126
- *
127
- * A glass bar across the top of the screen with a leading action, a title and
128
- * trailing actions — the counterpart to the existing bottom TabBar.
129
- *
130
- * `scrolled` mirrors iOS 26's scroll-edge effect. At the top of the screen the
131
- * bar is quiet: its bottom edge is invisible and the glass blends into the
132
- * content above it. Once content has scrolled under it, the edge token becomes
133
- * visible and the surface reads as a distinct layer — the change iOS makes when
134
- * a navigation bar starts floating over scrolled content.
135
- *
136
- * ```
137
- * const [scrolled, setScrolled] = useState(false);
138
- * <ScrollView onScroll={(e) => setScrolled(e.nativeEvent.contentOffset.y > 8)}
139
- * scrollEventThrottle={16}>{...}</ScrollView>
140
- * <AppBar title="Inbox" scrolled={scrolled} />
141
- * ```
142
- */
143
- export declare const AppBar: import("react").ForwardRefExoticComponent<AppBarProps & import("react").RefAttributes<any>>;
144
- export interface FABGroupAction {
145
- /** A leading node, typically an SVG icon the caller supplies. */
146
- icon: ReactNode;
147
- /** The action's name, shown on its mini button. */
148
- label: string;
149
- onPress: () => void;
150
- }
151
- export interface FABGroupProps {
152
- /** The actions, listed top to bottom as they appear when expanded. */
153
- actions: FABGroupAction[];
154
- /** The icon on the main button. Rotates 45° while open. */
155
- icon: ReactNode;
156
- /** The icon on the main button while open. Defaults to the closed one. */
157
- closeIcon?: ReactNode;
158
- /** Controlled open state. Omit and the group keeps its own. */
159
- open?: boolean;
160
- defaultOpen?: boolean;
161
- onOpenChange?: (open: boolean) => void;
162
- /** The main button's accessible name. */
163
- accessibilityLabel?: string;
164
- size?: "md" | "lg";
165
- style?: StyleProp<ViewStyle>;
166
- isDark?: boolean;
167
- testID?: string;
168
- }
169
- /**
170
- * A main button that expands into a stack of labelled mini buttons.
171
- *
172
- * The pattern Paper calls `FAB.Group`: one floating button stands in for a set
173
- * of actions until it is opened, then the actions appear above it, each on its
174
- * own glass pill with a label. A scrim behind them takes the next press and
175
- * closes the group, which is how a floating action set gets out of the way
176
- * without a dismissal button.
177
- *
178
- * The mini buttons rise on the bouncy spring with a small stagger, and the main
179
- * button's icon rotates 45° — both settle instantly under Reduce Motion.
180
- *
181
- * **Merging is an iOS 26+ visual effect.** This component is one glass surface
182
- * plus one per action; to have them blend into a single connected surface, put
183
- * the group inside a `GlassContainer` on iOS 26. It works standalone — nothing
184
- * depends on the container — and that composition is left to the caller rather
185
- * than forced, because a group outside a container is the correct rendering on
186
- * every other platform anyway.
187
- */
188
- export declare const FABGroup: import("react").ForwardRefExoticComponent<FABGroupProps & import("react").RefAttributes<any>>;
1
+ export { Chip, type ChipProps } from "./Chip";
2
+ export { IconButton, type IconButtonProps } from "./IconButton";
3
+ export { Toolbar, type ToolbarProps } from "./Toolbar";
@@ -1,24 +1,58 @@
1
- import { type ReactNode } from "react";
2
- import type { StyleProp, ViewStyle } from "react-native";
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  export interface ButtonProps {
4
4
  variant?: "glass" | "filled" | "ghost";
5
5
  size?: "sm" | "md" | "lg";
6
+ shape?: "capsule" | "circle";
6
7
  disabled?: boolean;
8
+ loading?: boolean;
7
9
  onPress?: () => void;
8
- accessibilityLabel: string;
10
+ onLongPress?: () => void;
11
+ interactive?: boolean;
12
+ pressLight?: number;
13
+ adaptive?: boolean;
14
+ tint?: string;
15
+ height?: number;
9
16
  icon?: ReactNode;
10
- children?: ReactNode;
17
+ accessibilityLabel: string;
18
+ accessibilityState?: Record<string, any>;
11
19
  style?: StyleProp<ViewStyle>;
12
- tint?: string;
20
+ contentStyle?: StyleProp<ViewStyle>;
21
+ textStyle?: StyleProp<TextStyle>;
13
22
  isDark?: boolean;
14
- /** Passed through to the pressable root so the button is testable. */
15
23
  testID?: string;
24
+ children?: ReactNode;
16
25
  }
17
26
  /**
18
- * A pressable button on Glacia's glass.
27
+ * A pressable button on Glacia's glass — ported from the engine's
28
+ * `LiquidGlassButton` (expo-liquid-glass-ui), the design Binyam approved on real
29
+ * devices this week.
19
30
  *
20
- * The root is a Pressable so it gets the platform's own press semantics
21
- * (focus, screen-reader activation, pressed feedback) while the material —
22
- * Apple's glass on iOS 26+, Glacia's tint elsewhere — comes from `Glass`.
31
+ * With a glass renderer available the engine's own control mounts, carrying the
32
+ * approved design, geometry and press behaviour. Without one — Expo Go, below
33
+ * every tier, or Reduce Transparency — the fallback floor renders the same
34
+ * geometry with a solid surface, so the button is never invisible.
23
35
  */
24
36
  export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<any>>;
37
+ export interface GhostButtonProps {
38
+ ref?: any;
39
+ accessibilityLabel: string;
40
+ disabled?: boolean;
41
+ height?: number;
42
+ isDark?: boolean;
43
+ testID?: string;
44
+ onPress?: () => void;
45
+ children?: ReactNode;
46
+ }
47
+ export interface FallbackButtonProps {
48
+ ref?: any;
49
+ accessibilityLabel: string;
50
+ disabled?: boolean;
51
+ height?: number;
52
+ isDark?: boolean;
53
+ testID?: string;
54
+ variant?: "glass" | "filled" | "ghost";
55
+ tint?: string;
56
+ onPress?: () => void;
57
+ children?: ReactNode;
58
+ }
@@ -1,16 +1,43 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  export interface CardProps {
4
- effect?: "clear" | "regular" | "none";
4
+ /** Makes the card a control: it presses to 98% and fires on release. */
5
+ onPress?: () => void;
6
+ onLongPress?: () => void;
7
+ disabled?: boolean;
8
+ /** Corner radius, continuous. Defaults to 24. */
9
+ cornerRadius?: number;
10
+ /** Inner padding, dp. Defaults to 16. */
11
+ padding?: number;
12
+ /**
13
+ * Adaptive glass: the frost flips polarity with the backdrop under the card.
14
+ * Defaults to `false`.
15
+ */
16
+ adaptive?: boolean;
17
+ /** Surface wash. Defaults to the scheme's bar surface. */
18
+ tint?: string;
19
+ variant?: "regular" | "clear";
20
+ metal?: unknown;
21
+ providerId?: string;
22
+ accessibilityLabel?: string;
23
+ /** The outer frame — size it here. */
5
24
  style?: StyleProp<ViewStyle>;
25
+ /** The inner content view. */
26
+ contentStyle?: StyleProp<ViewStyle>;
6
27
  children?: ReactNode;
7
28
  isDark?: boolean;
8
29
  /** Passed through to the card's glass so it is testable. */
9
30
  testID?: string;
10
31
  }
11
32
  /**
12
- * A content panel on Glacia's glass: Apple's material on iOS 26+, Glacia's
13
- * tint elsewhere. The padding, radius and stacking are ours on every platform.
33
+ * A content panel on Glacia's glass — ported from the engine's
34
+ * `LiquidGlassCard`, the design Binyam approved on real devices this week (24dp
35
+ * continuous corner, 16dp padding, presses to 98%).
36
+ *
37
+ * With a glass renderer available the engine's own control mounts, carrying the
38
+ * approved material. Without one — Expo Go, below every tier, or Reduce
39
+ * Transparency — the fallback floor renders the same geometry with a solid
40
+ * surface, so the card is never invisible.
14
41
  */
15
42
  export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<any>>;
16
43
  /** The block holding a card's title and description. */
@@ -0,0 +1,14 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export interface CheckboxProps {
3
+ checked?: boolean;
4
+ defaultChecked?: boolean;
5
+ onCheckedChange?: (checked: boolean) => void;
6
+ label?: string;
7
+ description?: string;
8
+ indeterminate?: boolean;
9
+ disabled?: boolean;
10
+ isDark?: boolean;
11
+ style?: StyleProp<ViewStyle>;
12
+ testID?: string;
13
+ }
14
+ export declare function Checkbox({ checked: checkedProp, defaultChecked, onCheckedChange, label, description, indeterminate, disabled, isDark: isDarkProp, style, testID, }: CheckboxProps): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface ChipProps {
4
+ label: string;
5
+ icon?: ReactNode | ((state: any) => ReactNode);
6
+ onPress?: () => void;
7
+ selected?: boolean;
8
+ defaultSelected?: boolean;
9
+ onSelectedChange?: (selected: boolean) => void;
10
+ disabled?: boolean;
11
+ style?: StyleProp<ViewStyle>;
12
+ isDark?: boolean;
13
+ testID?: string;
14
+ }
15
+ /**
16
+ * A filter or tag pill — ported from the engine's `LiquidGlassChip`, whose
17
+ * selected state wears the accent as a wash with a white label.
18
+ */
19
+ export declare const Chip: import("react").ForwardRefExoticComponent<ChipProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,17 @@
1
+ import { type ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface CollapsibleProps {
4
+ /** Controlled open state. */
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ /** The control that opens the section. Rendered as given. */
9
+ trigger: ReactNode;
10
+ accessibilityLabel?: string;
11
+ disabled?: boolean;
12
+ children?: ReactNode;
13
+ style?: StyleProp<ViewStyle>;
14
+ isDark?: boolean;
15
+ testID?: string;
16
+ }
17
+ export declare function Collapsible({ open: openProp, defaultOpen, onOpenChange, trigger, accessibilityLabel, disabled, children, style, isDark: isDarkProp, testID, }: CollapsibleProps): import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface ContextMenuItem {
4
+ label: string;
5
+ onPress: () => void;
6
+ icon?: ReactNode;
7
+ disabled?: boolean;
8
+ destructive?: boolean;
9
+ accessibilityLabel?: string;
10
+ }
11
+ export interface ContextMenuProps {
12
+ /** The element the menu belongs to. Long-press it to open. */
13
+ trigger: ReactNode;
14
+ items: ContextMenuItem[];
15
+ open?: boolean;
16
+ onOpenChange?: (open: boolean) => void;
17
+ width?: number;
18
+ accessibilityLabel?: string;
19
+ isDark?: boolean;
20
+ style?: StyleProp<ViewStyle>;
21
+ testID?: string;
22
+ }
23
+ export declare function ContextMenu({ trigger, items, open: openProp, onOpenChange, width, accessibilityLabel, isDark: isDarkProp, style, testID, }: ContextMenuProps): import("react").JSX.Element;
@@ -1,84 +1,24 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { StyleProp, ViewStyle } from "react-native";
3
3
  export interface DialogProps {
4
- /** Controlled visibility. Omit it and the dialog keeps its own state. */
4
+ /** Controlled open state. Omit and the dialog keeps its own. */
5
5
  open?: boolean;
6
6
  onOpenChange?: (open: boolean) => void;
7
7
  title?: string;
8
8
  description?: string;
9
9
  children?: ReactNode;
10
10
  footer?: ReactNode;
11
- /** Tapping the backdrop dismisses. Off for destructive confirmations. */
11
+ /** Default true. Set false for a decision that must be answered. */
12
12
  dismissOnBackdropPress?: boolean;
13
13
  isDark?: boolean;
14
14
  style?: StyleProp<ViewStyle>;
15
- /** Passed through to the dialog panel so it is testable. */
16
15
  testID?: string;
17
16
  }
18
- /**
19
- * A centred modal panel above a dimmed backdrop.
20
- *
21
- * The panel is a glass surface, so it is Apple's real Liquid Glass on iOS 26+
22
- * and Glacia's translucent tint elsewhere; the text sits on it with the
23
- * theme's foreground colour, so contrast holds either way.
24
- *
25
- * React Native has no built-in focus trap, so this component covers what the
26
- * platform can actually do: `Modal` blocks touches behind it, Android's back
27
- * button routes to `onOpenChange(false)`, and the heading is marked as such so
28
- * screen readers announce the dialog as it appears.
29
- *
30
- * To open a dialog from a button, use `DialogTrigger`.
31
- */
32
- export declare function Dialog({ open: controlledOpen, onOpenChange, title, description, children, footer, dismissOnBackdropPress, isDark: isDarkProp, style, testID, }: DialogProps): import("react").JSX.Element;
33
- /** Opens the dialog without the caller tracking state. */
34
- export declare function DialogTrigger({ label, children, ...dialogProps }: Omit<DialogProps, "open" | "onOpenChange"> & {
17
+ export declare function Dialog({ open: openProp, onOpenChange, title, description, children, footer, dismissOnBackdropPress, isDark: isDarkProp, style, testID, }: DialogProps): import("react").JSX.Element;
18
+ export interface DialogTriggerProps extends Omit<DialogProps, "open" | "onOpenChange"> {
19
+ /** The trigger's accessible name. */
35
20
  label: string;
36
- }): import("react").JSX.Element;
37
- export interface AlertDialogProps {
38
- open?: boolean;
39
- onOpenChange?: (open: boolean) => void;
40
- title: string;
41
- description?: string;
42
- /** Label for the confirming action. */
43
- confirmLabel?: string;
44
- cancelLabel?: string;
45
- /** Tints the confirm button destructive. */
46
- destructive?: boolean;
47
- onConfirm?: () => void;
48
- onCancel?: () => void;
49
- isDark?: boolean;
50
- /** Passed through to the dialog panel so it is testable. */
51
- testID?: string;
52
- }
53
- /**
54
- * A dialog that asks for confirmation.
55
- *
56
- * Deliberately not dismissible by tapping the backdrop: a destructive question
57
- * should require a real answer, so the only ways out are the two buttons or the
58
- * Android back button, which counts as cancel.
59
- */
60
- export declare function AlertDialog({ open: controlledOpen, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, onConfirm, onCancel, isDark: isDarkProp, testID, }: AlertDialogProps): import("react").JSX.Element;
61
- export interface ActionSheetOption {
62
- label: string;
63
- /** Tints the row destructive, for delete actions. */
64
- destructive?: boolean;
65
- onPress?: () => void;
66
- }
67
- export interface ActionSheetProps {
68
- open?: boolean;
69
- onOpenChange?: (open: boolean) => void;
70
- title?: string;
71
- message?: string;
72
- options: ActionSheetOption[];
73
- cancelLabel?: string;
74
- isDark?: boolean;
75
- /** Passed through to the sheet so it is testable. */
76
- testID?: string;
21
+ children?: ReactNode;
77
22
  }
78
- /**
79
- * A list of choices attached to the bottom of the screen.
80
- *
81
- * Anchored to the bottom because that is where a thumb reaches, and it keeps a
82
- * separate Cancel row so a mis-tap is always reversible.
83
- */
84
- export declare function ActionSheet({ open: controlledOpen, onOpenChange, title, message, options, cancelLabel, isDark: isDarkProp, testID, }: ActionSheetProps): import("react").JSX.Element;
23
+ /** A button that owns a dialog's open state, the donor's `Dialog.Trigger`. */
24
+ export declare function DialogTrigger({ label, children, ...dialog }: DialogTriggerProps): import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface DropdownMenuItem {
4
+ label: string;
5
+ onPress: () => void;
6
+ icon?: ReactNode;
7
+ disabled?: boolean;
8
+ destructive?: boolean;
9
+ accessibilityLabel?: string;
10
+ }
11
+ export interface DropdownMenuProps {
12
+ trigger: ReactNode;
13
+ items: DropdownMenuItem[];
14
+ open?: boolean;
15
+ defaultOpen?: boolean;
16
+ onOpenChange?: (open: boolean) => void;
17
+ width?: number;
18
+ accessibilityLabel?: string;
19
+ isDark?: boolean;
20
+ style?: StyleProp<ViewStyle>;
21
+ testID?: string;
22
+ }
23
+ export declare function DropdownMenu({ trigger, items, open: openProp, defaultOpen, onOpenChange, width, accessibilityLabel, isDark: isDarkProp, style, testID, }: DropdownMenuProps): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface FieldProps {
4
+ label?: string;
5
+ /** Helper text shown under the control. */
6
+ description?: string;
7
+ /** Error text. Overrides `description` and tints the label. */
8
+ error?: string;
9
+ required?: boolean;
10
+ disabled?: boolean;
11
+ isDark?: boolean;
12
+ children?: ReactNode;
13
+ style?: StyleProp<ViewStyle>;
14
+ }
15
+ /**
16
+ * Label, control and message stacked in the order assistive tech announces
17
+ * them, so a caller never has to place these three by hand.
18
+ */
19
+ export declare function Field({ label, description, error, required, disabled, isDark: isDarkProp, children, style, }: FieldProps): import("react").JSX.Element;
@@ -8,7 +8,16 @@ export interface GlassProps extends NativeGlassProps {
8
8
  * A glass surface.
9
9
  *
10
10
  * Routes through the package's single switch: Apple's real `UIGlassEffect` on
11
- * iOS 26+, Glacia's translucent fallback of identical shape on older iOS and
12
- * Android. `testID` is passed to whichever surface renders.
11
+ * iOS 26+, the engine's Metal renderer on iOS 16.4–25 and its AGSL renderer on
12
+ * Android 13+, Glacia's own glass fallback of identical shape elsewhere — Expo
13
+ * Go and below every tier. `testID` is passed to whichever surface renders.
13
14
  */
14
15
  export declare const Glass: import("react").ForwardRefExoticComponent<Omit<GlassProps, "ref"> & import("react").RefAttributes<any>>;
16
+ /**
17
+ * The surface, under the engine's name. The public API uses Glacia names only,
18
+ * so the surface ships as `GlassView` alongside the Glacia `Glass` alias — both
19
+ * are the same component, and both are Glacia names.
20
+ */
21
+ export declare const GlassView: import("react").ForwardRefExoticComponent<Omit<GlassProps, "ref"> & import("react").RefAttributes<any>>;
22
+ export type { NativeGlassProps };
23
+ export type { NativeGlassProps as GlassViewProps };
@@ -0,0 +1,35 @@
1
+ import { type ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface GroupProps {
4
+ /** The distance at which a pressed member begins to fuse with its neighbour, dp. Defaults to 28. */
5
+ spacing?: number;
6
+ /** Resting gap between members, dp. Defaults to 12. */
7
+ gap?: number;
8
+ /** Lay the members out along a row (default) or a column. */
9
+ direction?: "row" | "column";
10
+ /**
11
+ * The canvas glass — the material the merged silhouette is drawn with. Defaults to the kit's
12
+ * button recipe.
13
+ */
14
+ metal?: unknown;
15
+ /** Surface wash over the canvas. */
16
+ tint?: string;
17
+ /** Android only — which `LiquidGlassProvider` supplies the backdrop. */
18
+ providerId?: string;
19
+ style?: StyleProp<ViewStyle>;
20
+ /** The members — the kit's buttons, icon buttons and chips join automatically. */
21
+ children?: ReactNode;
22
+ isDark?: boolean;
23
+ /** Passed to the group so it is testable. */
24
+ testID?: string;
25
+ }
26
+ /**
27
+ * A group of glass members that merge when pressed together — ported from the
28
+ * engine's `LiquidGlassGroup`.
29
+ *
30
+ * With a glass renderer available the engine's own control mounts, carrying the
31
+ * approved merge behaviour. Without one — Expo Go, below every tier, or Reduce
32
+ * Transparency — the fallback floor renders the same row of members with the
33
+ * fallback material, so the group is never invisible.
34
+ */
35
+ export declare const Group: import("react").ForwardRefExoticComponent<GroupProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,21 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface IconButtonProps {
4
+ icon: ReactNode | ((state: any) => ReactNode);
5
+ onPress?: () => void;
6
+ disabled?: boolean;
7
+ size?: "sm" | "md" | "lg";
8
+ tint?: string;
9
+ accessibilityLabel: string;
10
+ accessibilityState?: Record<string, any>;
11
+ style?: StyleProp<ViewStyle>;
12
+ isDark?: boolean;
13
+ testID?: string;
14
+ children?: ReactNode;
15
+ }
16
+ /**
17
+ * An icon button on Glacia's glass — ported from the engine's
18
+ * `LiquidGlassIconButton`, which extends the engine button's design with a
19
+ * required accessibility label (a bare circle of glass has no text to read).
20
+ */
21
+ export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<any>>;
@@ -30,28 +30,27 @@ export interface InputProps {
30
30
  editable?: boolean;
31
31
  onFocus?: () => void;
32
32
  onBlur?: () => void;
33
+ height?: number;
34
+ tint?: string;
35
+ variant?: "regular" | "clear";
36
+ interactive?: boolean;
37
+ leading?: ReactNode;
38
+ trailing?: ReactNode;
39
+ focusRing?: boolean;
40
+ accentColor?: string;
33
41
  }
34
42
  /**
35
- * A single-line or multiline text field.
43
+ * A single-line or multiline text field — ported from the engine's
44
+ * `LiquidGlassTextInput`, the design Binyam approved on real devices this week
45
+ * (48dp capsule, focus ring that springs in, leading/trailing slots).
36
46
  *
37
47
  * The native TextInput has no placeholder styling prop, so the placeholder is
38
- * drawn as a sibling Text: that keeps its colour tied to the theme instead of
39
- * the OS default, which changes between iOS versions.
48
+ * drawn as a sibling Text: that keeps its colour tied to the theme instead of the
49
+ * OS default, which changes between iOS versions.
40
50
  *
41
- * The field works controlled (`value` + `onChangeText`) or uncontrolled (no
42
- * `value` prop). In uncontrolled use it tracks its own text so the themed
43
- * placeholder disappears as soon as the user types; without that state the
44
- * overlay would sit on top of the typed text until the parent re-rendered.
51
+ * With a glass renderer available the engine's own control mounts, carrying the
52
+ * approved material and focus behaviour. Without one — Expo Go, below every tier,
53
+ * or Reduce Transparency — the fallback floor renders the same capsule with the
54
+ * fallback material, so the field is never invisible and never bare text.
45
55
  */
46
56
  export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<any>>;
47
- export interface TextareaProps extends Omit<InputProps, "size" | "multiline" | "minLines"> {
48
- /** Visible height in text lines. */
49
- rows?: number;
50
- }
51
- /**
52
- * A multi-line field.
53
- *
54
- * Separate from Input so `multiline` cannot silently turn off the single-line
55
- * sizing, and so callers get a `rows` prop instead of guessing a pixel height.
56
- */
57
- export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<any>>;