glacia-native 0.5.2 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +84 -17
  2. package/lib/module/Accordion.js +58 -0
  3. package/lib/module/ActionSheet.js +38 -0
  4. package/lib/module/Alert.js +23 -0
  5. package/lib/module/AlertDialog.js +47 -0
  6. package/lib/module/Avatar.js +48 -0
  7. package/lib/module/Badge.js +36 -0
  8. package/lib/module/Bars.js +13 -268
  9. package/lib/module/Button.js +57 -39
  10. package/lib/module/Card.js +31 -19
  11. package/lib/module/Checkbox.js +42 -0
  12. package/lib/module/Chip.js +80 -0
  13. package/lib/module/Collapsible.js +26 -0
  14. package/lib/module/ContextMenu.js +33 -0
  15. package/lib/module/Dialog.js +39 -123
  16. package/lib/module/DropdownMenu.js +33 -0
  17. package/lib/module/Field.js +22 -0
  18. package/lib/module/Glass.js +10 -3
  19. package/lib/module/Group.js +36 -0
  20. package/lib/module/IconButton.js +40 -0
  21. package/lib/module/Input.js +43 -38
  22. package/lib/module/Label.js +17 -0
  23. package/lib/module/MorphGroup.js +47 -0
  24. package/lib/module/Popover.js +29 -0
  25. package/lib/module/Progress.js +32 -0
  26. package/lib/module/RadioGroup.js +51 -0
  27. package/lib/module/Scrim.js +44 -0
  28. package/lib/module/SegmentedControl.js +70 -63
  29. package/lib/module/Select.js +51 -0
  30. package/lib/module/Separator.js +25 -0
  31. package/lib/module/Sheet.js +51 -0
  32. package/lib/module/Skeleton.js +48 -0
  33. package/lib/module/Slider.js +45 -34
  34. package/lib/module/Stepper.js +167 -0
  35. package/lib/module/Switch.js +45 -55
  36. package/lib/module/TabBar.js +50 -44
  37. package/lib/module/Textarea.js +18 -0
  38. package/lib/module/Toast.js +55 -0
  39. package/lib/module/Toggle.js +47 -0
  40. package/lib/module/ToggleGroup.js +56 -0
  41. package/lib/module/Toolbar.js +37 -0
  42. package/lib/module/Tooltip.js +31 -0
  43. package/lib/module/glass-provider.js +28 -0
  44. package/lib/module/glass-stack.js +61 -0
  45. package/lib/module/index.js +78 -109
  46. package/lib/module/internal/GlassBackdrop.js +36 -0
  47. package/lib/module/internal/GlassView.js +43 -11
  48. package/lib/module/internal/blur-community.js +20 -0
  49. package/lib/module/internal/blur-community.web.js +9 -0
  50. package/lib/module/internal/blur.js +6 -9
  51. package/lib/module/internal/glass-routing.js +156 -30
  52. package/lib/module/internal/initials.js +12 -0
  53. package/lib/module/internal/overlay.js +147 -0
  54. package/lib/module/internal/primitives.js +16 -0
  55. package/lib/typescript/Accordion.d.ts +22 -0
  56. package/lib/typescript/ActionSheet.d.ts +24 -0
  57. package/lib/typescript/Alert.d.ts +15 -0
  58. package/lib/typescript/AlertDialog.d.ts +17 -0
  59. package/lib/typescript/Avatar.d.ts +22 -0
  60. package/lib/typescript/Badge.d.ts +12 -0
  61. package/lib/typescript/Bars.d.ts +3 -188
  62. package/lib/typescript/Button.d.ts +44 -10
  63. package/lib/typescript/Card.d.ts +30 -3
  64. package/lib/typescript/Checkbox.d.ts +14 -0
  65. package/lib/typescript/Chip.d.ts +19 -0
  66. package/lib/typescript/Collapsible.d.ts +17 -0
  67. package/lib/typescript/ContextMenu.d.ts +23 -0
  68. package/lib/typescript/Dialog.d.ts +8 -68
  69. package/lib/typescript/DropdownMenu.d.ts +23 -0
  70. package/lib/typescript/Field.d.ts +19 -0
  71. package/lib/typescript/Glass.d.ts +11 -2
  72. package/lib/typescript/Group.d.ts +35 -0
  73. package/lib/typescript/IconButton.d.ts +21 -0
  74. package/lib/typescript/Input.d.ts +17 -18
  75. package/lib/typescript/Label.d.ts +14 -0
  76. package/lib/typescript/MorphGroup.d.ts +46 -0
  77. package/lib/typescript/Popover.d.ts +17 -0
  78. package/lib/typescript/Progress.d.ts +13 -0
  79. package/lib/typescript/RadioGroup.d.ts +21 -0
  80. package/lib/typescript/Scrim.d.ts +33 -0
  81. package/lib/typescript/SegmentedControl.d.ts +24 -13
  82. package/lib/typescript/Select.d.ts +19 -0
  83. package/lib/typescript/Separator.d.ts +10 -0
  84. package/lib/typescript/Sheet.d.ts +45 -0
  85. package/lib/typescript/Skeleton.d.ts +10 -0
  86. package/lib/typescript/Slider.d.ts +15 -7
  87. package/lib/typescript/Stepper.d.ts +49 -0
  88. package/lib/typescript/Switch.d.ts +19 -12
  89. package/lib/typescript/TabBar.d.ts +18 -6
  90. package/lib/typescript/Textarea.d.ts +6 -0
  91. package/lib/typescript/Toast.d.ts +40 -0
  92. package/lib/typescript/Toggle.d.ts +21 -0
  93. package/lib/typescript/ToggleGroup.d.ts +22 -0
  94. package/lib/typescript/Toolbar.d.ts +35 -0
  95. package/lib/typescript/Tooltip.d.ts +16 -0
  96. package/lib/typescript/glass-provider.d.ts +34 -0
  97. package/lib/typescript/glass-stack.d.ts +54 -0
  98. package/lib/typescript/index.d.ts +38 -17
  99. package/lib/typescript/internal/GlassBackdrop.d.ts +33 -0
  100. package/lib/typescript/internal/GlassView.d.ts +18 -2
  101. package/lib/typescript/internal/blur-community.d.ts +2 -0
  102. package/lib/typescript/internal/blur-community.web.d.ts +2 -0
  103. package/lib/typescript/internal/glass-routing.d.ts +83 -15
  104. package/lib/typescript/internal/initials.d.ts +2 -0
  105. package/lib/typescript/internal/overlay.d.ts +74 -0
  106. package/lib/typescript/internal/primitives.d.ts +11 -0
  107. package/package.json +12 -10
  108. package/src/Accordion.tsx +165 -0
  109. package/src/ActionSheet.tsx +149 -0
  110. package/src/Alert.tsx +85 -0
  111. package/src/AlertDialog.tsx +124 -0
  112. package/src/Avatar.tsx +102 -0
  113. package/src/Badge.tsx +80 -0
  114. package/src/Bars.tsx +10 -807
  115. package/src/Button.tsx +196 -67
  116. package/src/Card.tsx +105 -32
  117. package/src/Checkbox.tsx +98 -0
  118. package/src/Chip.tsx +149 -0
  119. package/src/Collapsible.tsx +66 -0
  120. package/src/ContextMenu.tsx +103 -0
  121. package/src/Dialog.tsx +85 -335
  122. package/src/DropdownMenu.tsx +103 -0
  123. package/src/Field.tsx +65 -0
  124. package/src/Glass.tsx +15 -5
  125. package/src/Group.tsx +98 -0
  126. package/src/IconButton.tsx +110 -0
  127. package/src/Input.tsx +139 -87
  128. package/src/Label.tsx +56 -0
  129. package/src/MorphGroup.tsx +134 -0
  130. package/src/Popover.tsx +81 -0
  131. package/src/Progress.tsx +83 -0
  132. package/src/RadioGroup.tsx +122 -0
  133. package/src/Scrim.tsx +94 -0
  134. package/src/SegmentedControl.tsx +132 -99
  135. package/src/Select.tsx +136 -0
  136. package/src/Separator.tsx +52 -0
  137. package/src/Sheet.tsx +139 -0
  138. package/src/Skeleton.tsx +77 -0
  139. package/src/Slider.tsx +84 -47
  140. package/src/Stepper.tsx +315 -0
  141. package/src/Switch.tsx +81 -73
  142. package/src/TabBar.tsx +106 -93
  143. package/src/Textarea.tsx +34 -0
  144. package/src/Toast.tsx +131 -0
  145. package/src/Toggle.tsx +113 -0
  146. package/src/ToggleGroup.tsx +129 -0
  147. package/src/Toolbar.tsx +111 -0
  148. package/src/Tooltip.tsx +79 -0
  149. package/src/engine/CHANGELOG.md +430 -0
  150. package/src/engine/NOTICE +54 -0
  151. package/src/engine/README.md +975 -0
  152. package/src/engine/android/build.gradle +18 -0
  153. package/src/engine/android/src/main/AndroidManifest.xml +2 -0
  154. package/src/engine/android/src/main/java/expo/modules/liquidglass/ExpoLiquidGlassModule.kt +174 -0
  155. package/src/engine/android/src/main/java/expo/modules/liquidglass/GlassConstants.kt +7 -0
  156. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassContainerView.kt +16 -0
  157. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassProviderView.kt +165 -0
  158. package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassView.kt +1731 -0
  159. package/src/engine/android/src/main/java/expo/modules/liquidglass/enums/GlassEnums.kt +171 -0
  160. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropGraph.kt +146 -0
  161. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropSource.kt +53 -0
  162. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ContinuousCorners.kt +188 -0
  163. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/CornerRadii.kt +62 -0
  164. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassAppearance.kt +352 -0
  165. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassDebug.kt +109 -0
  166. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassEnvironment.kt +139 -0
  167. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassHdr.kt +85 -0
  168. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassLuminanceProbe.kt +189 -0
  169. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassPressAnimator.kt +264 -0
  170. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassProgressiveBlur.kt +249 -0
  171. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderCache.kt +256 -0
  172. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderSource.kt +845 -0
  173. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassTier.kt +63 -0
  174. package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ProviderRegistry.kt +71 -0
  175. package/src/engine/android/src/main/java/expo/modules/liquidglass/records/GlassRecords.kt +288 -0
  176. package/src/engine/index.ts +24 -0
  177. package/src/engine/ios/Enums/GlassBlurDirection.swift +21 -0
  178. package/src/engine/ios/Enums/GlassVariant.swift +86 -0
  179. package/src/engine/ios/ExpoLiquidGlass.podspec +93 -0
  180. package/src/engine/ios/ExpoLiquidGlassModule.swift +77 -0
  181. package/src/engine/ios/Glass/BackdropCapturer.swift +811 -0
  182. package/src/engine/ios/Glass/ContinuousCorners.swift +165 -0
  183. package/src/engine/ios/Glass/GlassBackdrop.swift +176 -0
  184. package/src/engine/ios/Glass/GlassFramePhase.swift +126 -0
  185. package/src/engine/ios/Glass/GlassFrameScheduler.swift +261 -0
  186. package/src/engine/ios/Glass/GlassPressAnimator.swift +250 -0
  187. package/src/engine/ios/Glass/GlassRenderContext.swift +168 -0
  188. package/src/engine/ios/Glass/GlassRenderer.swift +186 -0
  189. package/src/engine/ios/Glass/GlassSurfaceView.swift +452 -0
  190. package/src/engine/ios/Glass/NonRenderableView.swift +54 -0
  191. package/src/engine/ios/Glass/StripCache.swift +545 -0
  192. package/src/engine/ios/Records/GlassCornerRadii.swift +79 -0
  193. package/src/engine/ios/Records/GlassMetalOptions.swift +180 -0
  194. package/src/engine/ios/Records/GlassRefractionCurve.swift +14 -0
  195. package/src/engine/ios/Shaders/LiquidGlass.metal +480 -0
  196. package/src/engine/ios/Shaders/bundle-marker.txt +6 -0
  197. package/src/engine/ios/Views/LiquidGlassContainerView.swift +99 -0
  198. package/src/engine/ios/Views/LiquidGlassView.swift +859 -0
  199. package/src/engine/package.json +70 -0
  200. package/src/engine/src/components/LiquidGlassButton/LiquidGlassButton.tsx +424 -0
  201. package/src/engine/src/components/LiquidGlassCard/LiquidGlassCard.tsx +98 -0
  202. package/src/engine/src/components/LiquidGlassChip/LiquidGlassChip.tsx +65 -0
  203. package/src/engine/src/components/LiquidGlassGroup/LiquidGlassGroup.tsx +350 -0
  204. package/src/engine/src/components/LiquidGlassIconButton/LiquidGlassIconButton.tsx +24 -0
  205. package/src/engine/src/components/LiquidGlassMorphGroup/LiquidGlassMorphGroup.tsx +434 -0
  206. package/src/engine/src/components/LiquidGlassScrim/LiquidGlassScrim.tsx +100 -0
  207. package/src/engine/src/components/LiquidGlassSegmentedControl/LiquidGlassSegmentedControl.tsx +213 -0
  208. package/src/engine/src/components/LiquidGlassSheet/LiquidGlassSheet.tsx +218 -0
  209. package/src/engine/src/components/LiquidGlassSlider/LiquidGlassSlider.tsx +327 -0
  210. package/src/engine/src/components/LiquidGlassStepper/LiquidGlassStepper.tsx +321 -0
  211. package/src/engine/src/components/LiquidGlassSwitch/LiquidGlassSwitch.tsx +296 -0
  212. package/src/engine/src/components/LiquidGlassTabBar/LiquidGlassTabBar.tsx +952 -0
  213. package/src/engine/src/components/LiquidGlassTextInput/LiquidGlassTextInput.tsx +151 -0
  214. package/src/engine/src/components/LiquidGlassToast/LiquidGlassToast.tsx +169 -0
  215. package/src/engine/src/components/LiquidGlassToolbar/LiquidGlassToolbar.tsx +124 -0
  216. package/src/engine/src/components/index.ts +16 -0
  217. package/src/engine/src/constants/index.ts +4 -0
  218. package/src/engine/src/constants/metal.constants.ts +327 -0
  219. package/src/engine/src/constants/metrics.constants.ts +325 -0
  220. package/src/engine/src/constants/springs.constants.ts +107 -0
  221. package/src/engine/src/constants/styles.constants.ts +12 -0
  222. package/src/engine/src/context/glass-group.context.ts +65 -0
  223. package/src/engine/src/context/index.ts +6 -0
  224. package/src/engine/src/core/components/LiquidGlassContainer/LiquidGlassContainer.tsx +32 -0
  225. package/src/engine/src/core/components/LiquidGlassContainer/index.ts +1 -0
  226. package/src/engine/src/core/components/LiquidGlassProvider/LiquidGlassProvider.tsx +66 -0
  227. package/src/engine/src/core/components/LiquidGlassProvider/index.ts +1 -0
  228. package/src/engine/src/core/components/LiquidGlassStack/LiquidGlassStack.tsx +184 -0
  229. package/src/engine/src/core/components/LiquidGlassStack/index.ts +1 -0
  230. package/src/engine/src/core/components/LiquidGlassView/LiquidGlassView.tsx +126 -0
  231. package/src/engine/src/core/components/LiquidGlassView/index.ts +1 -0
  232. package/src/engine/src/core/components/index.ts +4 -0
  233. package/src/engine/src/core/constants/glass.constants.ts +57 -0
  234. package/src/engine/src/core/constants/index.ts +20 -0
  235. package/src/engine/src/core/constants/native.constants.ts +16 -0
  236. package/src/engine/src/core/context/glass-stack.context.ts +30 -0
  237. package/src/engine/src/core/context/index.ts +4 -0
  238. package/src/engine/src/core/enum/index.ts +12 -0
  239. package/src/engine/src/core/index.ts +1 -0
  240. package/src/engine/src/core/interfaces/glass-hdr.interface.ts +15 -0
  241. package/src/engine/src/core/interfaces/glass-metal.interface.ts +248 -0
  242. package/src/engine/src/core/interfaces/glass-surface.interface.ts +9 -0
  243. package/src/engine/src/core/interfaces/index.ts +31 -0
  244. package/src/engine/src/core/interfaces/liquid-glass-container.interface.ts +6 -0
  245. package/src/engine/src/core/interfaces/liquid-glass-provider.interface.ts +14 -0
  246. package/src/engine/src/core/interfaces/liquid-glass-stack.interface.ts +21 -0
  247. package/src/engine/src/core/interfaces/liquid-glass-view.interface.ts +129 -0
  248. package/src/engine/src/core/interfaces/native-liquid-glass-view.interface.ts +19 -0
  249. package/src/engine/src/core/modules/ExpoLiquidGlassModule.ts +26 -0
  250. package/src/engine/src/core/modules/index.ts +2 -0
  251. package/src/engine/src/core/root/index.ts +51 -0
  252. package/src/engine/src/core/types/glass.types.ts +25 -0
  253. package/src/engine/src/core/types/index.ts +8 -0
  254. package/src/engine/src/core/utils/debug.utils.ts +17 -0
  255. package/src/engine/src/core/utils/dev-warn.utils.ts +17 -0
  256. package/src/engine/src/core/utils/hdr.utils.ts +37 -0
  257. package/src/engine/src/core/utils/index.ts +5 -0
  258. package/src/engine/src/core/utils/native-view.utils.ts +33 -0
  259. package/src/engine/src/core/utils/platform.utils.ts +34 -0
  260. package/src/engine/src/core/views/NativeGlassBackdropView.ts +24 -0
  261. package/src/engine/src/core/views/NativeLiquidGlassContainerView.ts +13 -0
  262. package/src/engine/src/core/views/NativeLiquidGlassContainerView.web.ts +10 -0
  263. package/src/engine/src/core/views/NativeLiquidGlassProviderView.ts +13 -0
  264. package/src/engine/src/core/views/NativeLiquidGlassProviderView.web.ts +10 -0
  265. package/src/engine/src/core/views/NativeLiquidGlassView.ts +19 -0
  266. package/src/engine/src/core/views/NativeLiquidGlassView.web.ts +14 -0
  267. package/src/engine/src/core/views/index.ts +4 -0
  268. package/src/engine/src/hooks/index.ts +18 -0
  269. package/src/engine/src/hooks/use-adaptive-glass.ts +91 -0
  270. package/src/engine/src/hooks/use-damped-drag.ts +332 -0
  271. package/src/engine/src/hooks/use-echo-filter.ts +55 -0
  272. package/src/engine/src/hooks/use-glass-group-member.ts +169 -0
  273. package/src/engine/src/hooks/use-gravity-highlight.ts +79 -0
  274. package/src/engine/src/hooks/use-press-progress.ts +44 -0
  275. package/src/engine/src/index.ts +120 -0
  276. package/src/engine/src/interfaces/index.ts +28 -0
  277. package/src/engine/src/interfaces/liquid-glass-button.interface.ts +94 -0
  278. package/src/engine/src/interfaces/liquid-glass-card.interface.ts +40 -0
  279. package/src/engine/src/interfaces/liquid-glass-chip.interface.ts +29 -0
  280. package/src/engine/src/interfaces/liquid-glass-group.interface.ts +32 -0
  281. package/src/engine/src/interfaces/liquid-glass-icon-button.interface.ts +19 -0
  282. package/src/engine/src/interfaces/liquid-glass-morph-group.interface.ts +59 -0
  283. package/src/engine/src/interfaces/liquid-glass-scrim.interface.ts +36 -0
  284. package/src/engine/src/interfaces/liquid-glass-segmented-control.interface.ts +32 -0
  285. package/src/engine/src/interfaces/liquid-glass-sheet.interface.ts +38 -0
  286. package/src/engine/src/interfaces/liquid-glass-slider.interface.ts +37 -0
  287. package/src/engine/src/interfaces/liquid-glass-stepper.interface.ts +35 -0
  288. package/src/engine/src/interfaces/liquid-glass-switch.interface.ts +27 -0
  289. package/src/engine/src/interfaces/liquid-glass-tab-bar.interface.ts +116 -0
  290. package/src/engine/src/interfaces/liquid-glass-text-input.interface.ts +42 -0
  291. package/src/engine/src/interfaces/liquid-glass-toast.interface.ts +36 -0
  292. package/src/engine/src/interfaces/liquid-glass-toolbar.interface.ts +33 -0
  293. package/src/engine/src/theme/glass-ui-theme.ts +100 -0
  294. package/src/engine/src/theme/index.ts +2 -0
  295. package/src/engine/src/utils/button-press.utils.ts +63 -0
  296. package/src/engine/src/utils/index.ts +3 -0
  297. package/src/engine/src/utils/metal.utils.ts +164 -0
  298. package/src/glass-provider.tsx +60 -0
  299. package/src/glass-stack.tsx +115 -0
  300. package/src/index.ts +47 -190
  301. package/src/internal/GlassBackdrop.tsx +60 -0
  302. package/src/internal/GlassView.tsx +53 -18
  303. package/src/internal/blur-community.ts +19 -0
  304. package/src/internal/blur-community.web.ts +7 -0
  305. package/src/internal/blur.ts +7 -8
  306. package/src/internal/glass-routing.ts +212 -34
  307. package/src/internal/initials.ts +7 -0
  308. package/src/internal/overlay.tsx +258 -0
  309. package/src/internal/primitives.ts +23 -0
  310. package/lib/module/Carousel.js +0 -103
  311. package/lib/module/Display.js +0 -318
  312. package/lib/module/Feedback.js +0 -395
  313. package/lib/module/Form.js +0 -160
  314. package/lib/module/Forms2.js +0 -471
  315. package/lib/module/Message.js +0 -84
  316. package/lib/module/Overlays.js +0 -344
  317. package/lib/module/Pickers.js +0 -243
  318. package/lib/module/Table.js +0 -100
  319. package/lib/module/ai.js +0 -283
  320. package/lib/module/charts/AreaChart.js +0 -32
  321. package/lib/module/charts/BarChart.js +0 -75
  322. package/lib/module/charts/FunnelChart.js +0 -50
  323. package/lib/module/charts/HeatmapChart.js +0 -71
  324. package/lib/module/charts/LineChart.js +0 -81
  325. package/lib/module/charts/PlotChart.js +0 -52
  326. package/lib/module/charts/RadarChart.js +0 -78
  327. package/lib/module/charts/RingChart.js +0 -52
  328. package/lib/module/charts/ScatterChart.js +0 -95
  329. package/lib/module/charts/WaterfallChart.js +0 -85
  330. package/lib/module/charts/advanced.js +0 -313
  331. package/lib/module/charts/extra.js +0 -108
  332. package/lib/module/charts/index.js +0 -50
  333. package/lib/module/charts/scales.js +0 -140
  334. package/lib/typescript/Carousel.d.ts +0 -47
  335. package/lib/typescript/Display.d.ts +0 -178
  336. package/lib/typescript/Feedback.d.ts +0 -196
  337. package/lib/typescript/Form.d.ts +0 -97
  338. package/lib/typescript/Forms2.d.ts +0 -209
  339. package/lib/typescript/Message.d.ts +0 -67
  340. package/lib/typescript/Overlays.d.ts +0 -146
  341. package/lib/typescript/Pickers.d.ts +0 -105
  342. package/lib/typescript/Table.d.ts +0 -64
  343. package/lib/typescript/ai.d.ts +0 -166
  344. package/lib/typescript/charts/AreaChart.d.ts +0 -44
  345. package/lib/typescript/charts/BarChart.d.ts +0 -19
  346. package/lib/typescript/charts/FunnelChart.d.ts +0 -25
  347. package/lib/typescript/charts/HeatmapChart.d.ts +0 -23
  348. package/lib/typescript/charts/LineChart.d.ts +0 -30
  349. package/lib/typescript/charts/PlotChart.d.ts +0 -31
  350. package/lib/typescript/charts/RadarChart.d.ts +0 -27
  351. package/lib/typescript/charts/RingChart.d.ts +0 -28
  352. package/lib/typescript/charts/ScatterChart.d.ts +0 -34
  353. package/lib/typescript/charts/WaterfallChart.d.ts +0 -22
  354. package/lib/typescript/charts/advanced.d.ts +0 -107
  355. package/lib/typescript/charts/extra.d.ts +0 -63
  356. package/lib/typescript/charts/index.d.ts +0 -13
  357. package/lib/typescript/charts/scales.d.ts +0 -35
  358. package/src/Carousel.tsx +0 -233
  359. package/src/Display.tsx +0 -781
  360. package/src/Feedback.tsx +0 -992
  361. package/src/Form.tsx +0 -445
  362. package/src/Forms2.tsx +0 -1055
  363. package/src/Message.tsx +0 -218
  364. package/src/Overlays.tsx +0 -704
  365. package/src/Pickers.tsx +0 -595
  366. package/src/Table.tsx +0 -232
  367. package/src/ai.tsx +0 -715
  368. package/src/charts/AreaChart.tsx +0 -73
  369. package/src/charts/BarChart.tsx +0 -221
  370. package/src/charts/FunnelChart.tsx +0 -125
  371. package/src/charts/HeatmapChart.tsx +0 -155
  372. package/src/charts/LineChart.tsx +0 -247
  373. package/src/charts/PlotChart.tsx +0 -168
  374. package/src/charts/RadarChart.tsx +0 -208
  375. package/src/charts/RingChart.tsx +0 -133
  376. package/src/charts/ScatterChart.tsx +0 -223
  377. package/src/charts/WaterfallChart.tsx +0 -201
  378. package/src/charts/advanced.tsx +0 -676
  379. package/src/charts/extra.tsx +0 -242
  380. package/src/charts/index.ts +0 -86
  381. package/src/charts/scales.ts +0 -163
@@ -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>>;
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, TextStyle } from "react-native";
3
+ export interface LabelProps {
4
+ children?: ReactNode;
5
+ /** Adds the required marker and reports it to screen readers. */
6
+ required?: boolean;
7
+ disabled?: boolean;
8
+ /** Matched by a control's `aria-labelledby`/`nativeID`. */
9
+ nativeID?: string;
10
+ isDark?: boolean;
11
+ style?: StyleProp<TextStyle>;
12
+ testID?: string;
13
+ }
14
+ export declare function Label({ children, required, disabled, nativeID, isDark: isDarkProp, style, testID, }: LabelProps): import("react").JSX.Element;
@@ -0,0 +1,46 @@
1
+ import type { StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ export interface MorphGroupItem {
3
+ key: string;
4
+ /** Wrapped in a styled `Text`. */
5
+ label?: string;
6
+ /** Rendered before the label. */
7
+ icon?: any;
8
+ onPress?: () => void;
9
+ }
10
+ export interface MorphGroupProps {
11
+ /** The capsules, laid out in a row. Two or more make the morph reachable. */
12
+ items: MorphGroupItem[];
13
+ /**
14
+ * A capsule was dragged onto a neighbour and released there. What that *means*
15
+ * — combining actions, stacking items, a folder — is the app's; the group only
16
+ * springs everything home.
17
+ */
18
+ onMerge?: (fromKey: string, toKey: string) => void;
19
+ /** A plain tap, forwarded alongside the item's own `onPress`. */
20
+ onItemPress?: (key: string) => void;
21
+ /** The distance at which two capsules begin to fuse, dp. Defaults to 28. */
22
+ spacing?: number;
23
+ /** Gap between capsules at rest, dp. Defaults to 12. */
24
+ gap?: number;
25
+ /** Capsule height; the corner radius follows it. Defaults to 48. */
26
+ height?: number;
27
+ /** Surface wash over every capsule's glass. */
28
+ tint?: string;
29
+ variant?: "regular" | "clear";
30
+ metal?: unknown;
31
+ providerId?: string;
32
+ style?: StyleProp<ViewStyle>;
33
+ /** Applied to item labels. */
34
+ textStyle?: StyleProp<TextStyle>;
35
+ }
36
+ /**
37
+ * A morphing group of capsules — ported from the engine's
38
+ * `LiquidGlassMorphGroup`, the design Binyam approved on real devices this week
39
+ * (capsules fuse when dragged together, spring home on release).
40
+ *
41
+ * With a glass renderer available the engine's own control mounts, carrying the
42
+ * approved morph behaviour. Without one — Expo Go, below every tier, or Reduce
43
+ * Transparency — the fallback floor renders the same capsules with solid
44
+ * surfaces, so the group is never invisible.
45
+ */
46
+ export declare const MorphGroup: import("react").ForwardRefExoticComponent<MorphGroupProps & 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 PopoverProps {
4
+ /** The control that opens the panel. */
5
+ trigger: ReactNode;
6
+ children: ReactNode;
7
+ open?: boolean;
8
+ defaultOpen?: boolean;
9
+ onOpenChange?: (open: boolean) => void;
10
+ /** Panel width, dp. Defaults to 260. */
11
+ width?: number;
12
+ accessibilityLabel?: string;
13
+ isDark?: boolean;
14
+ style?: StyleProp<ViewStyle>;
15
+ testID?: string;
16
+ }
17
+ export declare function Popover({ trigger, children, open: openProp, defaultOpen, onOpenChange, width, accessibilityLabel, isDark: isDarkProp, style, testID, }: PopoverProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export type ProgressVariant = "bar" | "linear" | "track" | "ring" | "indeterminate";
3
+ export interface ProgressProps {
4
+ /** 0–100. Omit for an indeterminate bar. */
5
+ value: number;
6
+ variant?: ProgressVariant;
7
+ tint?: string;
8
+ accessibilityLabel?: string;
9
+ style?: StyleProp<ViewStyle>;
10
+ isDark?: boolean;
11
+ testID?: string;
12
+ }
13
+ export declare function Progress({ value, variant, tint, accessibilityLabel, style, isDark: isDarkProp, testID, }: ProgressProps): import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export interface RadioOption {
3
+ value: string;
4
+ label: string;
5
+ description?: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface RadioGroupProps {
9
+ value?: string;
10
+ defaultValue?: string;
11
+ onValueChange?: (value: string) => void;
12
+ options: RadioOption[];
13
+ horizontal?: boolean;
14
+ disabled?: boolean;
15
+ /** Announced as the group's name. */
16
+ accessibilityLabel?: string;
17
+ isDark?: boolean;
18
+ style?: StyleProp<ViewStyle>;
19
+ testID?: string;
20
+ }
21
+ export declare function RadioGroup({ value: valueProp, defaultValue, onValueChange, options, horizontal, disabled, accessibilityLabel, isDark: isDarkProp, style, testID, }: RadioGroupProps): import("react").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface ScrimProps {
4
+ /** Which screen edge the scrim hugs — and therefore which way the blur ramps. Default `"bottom"`. */
5
+ edge?: "top" | "bottom" | "left" | "right";
6
+ /** Thickness of the scrim along its axis, dp. Default 160. */
7
+ size?: number;
8
+ /** Blur radius at the outer edge, dp. Default 24. */
9
+ radius?: number;
10
+ /**
11
+ * Fraction of the scrim over which the ramp completes, measured from the
12
+ * content side. Past it the blur holds at full `radius`. Default 0.7.
13
+ */
14
+ reach?: number;
15
+ /** Optional wash over the blur — e.g. the bar surface colour at low alpha. */
16
+ tint?: string;
17
+ /** Android: which provider(s) to read. Same semantics as the glass view. */
18
+ providerId?: string;
19
+ /** Extra positioning/size overrides, applied after the edge placement. */
20
+ style?: StyleProp<ViewStyle>;
21
+ /** Content over the scrim — a tab bar, a toolbar. Laid out edge-aligned, untouched. */
22
+ children?: ReactNode;
23
+ }
24
+ /**
25
+ * A scroll-edge scrim — ported from the engine's `LiquidGlassScrim`, the design
26
+ * Binyam approved on real devices this week (edge-hugging blur ramp).
27
+ *
28
+ * With a glass renderer available the engine's own control mounts, carrying the
29
+ * approved ramp. Without one — Expo Go, below every tier, or Reduce Transparency —
30
+ * the fallback floor renders the same scrim with a solid wash, so content is
31
+ * never lost behind an invisible scrim.
32
+ */
33
+ export declare const Scrim: import("react").ForwardRefExoticComponent<ScrimProps & import("react").RefAttributes<any>>;
@@ -1,21 +1,32 @@
1
- import type { StyleProp, ViewStyle } from "react-native";
1
+ import type { StyleProp, TextStyle, ViewStyle } from "react-native";
2
2
  export interface SegmentedControlProps {
3
- values: string[];
4
- selectedIndex?: number;
5
- defaultIndex?: number;
6
- onValueChange?: (value: string, index: number) => void;
7
- /** One selection tick when the segment changes. `false` opts out. */
8
- haptics?: boolean;
9
- style?: StyleProp<ViewStyle>;
3
+ /** Segment labels, equal-width. */
4
+ segments: string[];
5
+ selectedIndex: number;
6
+ /** Fires when the user picks another segment. */
7
+ onChange: (index: number) => void;
8
+ /** Control height; the corner radius follows it. Defaults to 40. */
9
+ height?: number;
10
+ /** Track wash. */
11
+ tint?: string;
12
+ /** Thumb wash. */
13
+ thumbTint?: string;
14
+ thumbMetal?: unknown;
15
+ accessibilityLabel?: string;
10
16
  isDark?: boolean;
11
- /** Passed through to the control so it is testable. */
17
+ /** Passed to the control so it is testable. */
12
18
  testID?: string;
19
+ style?: StyleProp<ViewStyle>;
20
+ textStyle?: StyleProp<TextStyle>;
13
21
  }
14
22
  /**
15
- * A row of mutually exclusive segments on one glass container.
23
+ * A segmented control — ported from the engine's `LiquidGlassSegmentedControl`,
24
+ * the design Binyam approved on real devices this week (40dp track, 3dp-inset
25
+ * thumb).
16
26
  *
17
- * The selected segment is marked by a pill that slides on the springs token.
18
- * The pill's colours come from the theme tokens, so it reads correctly in both
19
- * light and dark instead of assuming a white-on-light palette.
27
+ * With a glass renderer available the engine's own control mounts, carrying the
28
+ * approved geometry and thumb behaviour. Without one — Expo Go, below every
29
+ * tier, or Reduce Transparency — the fallback floor renders the same row of
30
+ * segments with solid selected states, so the control is never invisible.
20
31
  */
21
32
  export declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,19 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export interface SelectOption {
3
+ value: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ }
7
+ export interface SelectProps {
8
+ value?: string;
9
+ defaultValue?: string;
10
+ onValueChange?: (value: string) => void;
11
+ options: SelectOption[];
12
+ placeholder?: string;
13
+ disabled?: boolean;
14
+ accessibilityLabel?: string;
15
+ isDark?: boolean;
16
+ style?: StyleProp<ViewStyle>;
17
+ testID?: string;
18
+ }
19
+ export declare function Select({ value: valueProp, defaultValue, onValueChange, options, placeholder, disabled, accessibilityLabel, isDark: isDarkProp, style, testID, }: SelectProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export interface SeparatorProps {
3
+ orientation?: "horizontal" | "vertical";
4
+ /** Leading inset for a horizontal rule inside a list, dp. */
5
+ inset?: number;
6
+ isDark?: boolean;
7
+ style?: StyleProp<ViewStyle>;
8
+ testID?: string;
9
+ }
10
+ export declare function Separator({ orientation, inset, isDark: isDarkProp, style, testID, }: SeparatorProps): import("react").JSX.Element;
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface SheetProps {
4
+ /** Up while `true`; slides away when it turns `false`. */
5
+ visible: boolean;
6
+ /**
7
+ * Called when the sheet wants to go — dragged down past 30 % of its height,
8
+ * flung down, or the dim behind it tapped. The app flips `visible`; the sheet
9
+ * never hides itself.
10
+ */
11
+ onDismiss?: () => void;
12
+ /** The sheet's height, dp. Defaults to 420. */
13
+ height?: number;
14
+ /** Top corner radius, continuous. Defaults to 28. */
15
+ cornerRadius?: number;
16
+ /** Shows the grab handle. Defaults to `true`. */
17
+ handle?: boolean;
18
+ /** Opacity of the black dim behind the sheet at full height; `0` for none. Defaults to 0.25. */
19
+ dim?: number;
20
+ /** A tap on the dim dismisses. Defaults to `true`. */
21
+ dismissOnTap?: boolean;
22
+ /** Surface wash. */
23
+ tint?: string;
24
+ variant?: "regular" | "clear";
25
+ /** The sheet frame — positioned absolutely at the bottom of its parent. */
26
+ style?: StyleProp<ViewStyle>;
27
+ /** The content view, under the handle. */
28
+ contentStyle?: StyleProp<ViewStyle>;
29
+ children?: ReactNode;
30
+ isDark?: boolean;
31
+ /** Passed to the sheet so it is testable. */
32
+ testID?: string;
33
+ }
34
+ /**
35
+ * A bottom sheet — ported from the engine's `LiquidGlassSheet`, the design
36
+ * Binyam approved on real devices this week (28dp top corners, 36x5 grab handle,
37
+ * dismissed past 30 % of its height or on a dim tap).
38
+ *
39
+ * With a glass renderer available the engine's own control mounts, carrying the
40
+ * approved material, handle and dismissal behaviour. Without one — Expo Go, below
41
+ * every tier, or Reduce Transparency — the fallback floor renders the same panel
42
+ * with a solid surface and the same dismissal affordances, so the sheet is never
43
+ * invisible.
44
+ */
45
+ export declare const Sheet: import("react").ForwardRefExoticComponent<SheetProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,10 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export interface SkeletonProps {
3
+ shape?: "rect" | "circle" | "line";
4
+ width?: number | string;
5
+ height?: number;
6
+ isDark?: boolean;
7
+ style?: StyleProp<ViewStyle>;
8
+ testID?: string;
9
+ }
10
+ export declare function Skeleton({ shape, width, height, isDark: isDarkProp, style, testID, }: SkeletonProps): import("react").JSX.Element;
@@ -1,27 +1,35 @@
1
1
  import type { StyleProp, ViewStyle } from "react-native";
2
2
  export interface SliderProps {
3
+ /** Controlled value. Omit it and the slider keeps its own. */
3
4
  value?: number;
4
5
  defaultValue?: number;
6
+ /** Inclusive lower bound. Defaults to 0. */
5
7
  min?: number;
8
+ /** Inclusive upper bound. Defaults to 100. */
6
9
  max?: number;
10
+ /** Increment per step. Defaults to 1. */
7
11
  step?: number;
12
+ /** Fires while dragging and once when the gesture ends (engine order). */
8
13
  onValueChange?: (value: number) => void;
14
+ /** Fires once when the gesture ends, after the thumb has been released. */
15
+ onSlidingComplete?: (value: number) => void;
9
16
  disabled?: boolean;
10
17
  /** One selection tick each time the stepped value changes while dragging. */
11
18
  haptics?: boolean;
12
19
  accessibilityLabel: string;
13
20
  style?: StyleProp<ViewStyle>;
14
21
  isDark?: boolean;
15
- /** Passed through to the draggable track so it is testable. */
22
+ /** Passed to the draggable track so it is testable. */
16
23
  testID?: string;
17
24
  }
18
25
  /**
19
- * A continuous value chosen by dragging.
26
+ * A continuous value chosen by dragging — ported from the engine's
27
+ * `LiquidGlassSlider`, which keeps the approved drag behaviour while the
28
+ * material changes by platform.
20
29
  *
21
- * The interaction is Glacia's own: the track and thumb are Views and dragging
22
- * is a PanResponder reading the touch position against the track's measured
23
- * width. React Native has no DOM `<input type="range">` and the platform
24
- * sliders are not used, so the control looks and behaves the same on every
25
- * platform; only the glass material changes.
30
+ * With a glass renderer available the engine's own control mounts, carrying the
31
+ * approved geometry and drag behaviour. Without one — Expo Go, below every tier,
32
+ * or Reduce Transparency — the fallback floor renders the same track and lens
33
+ * thumb with the fallback material, so the control is never invisible.
26
34
  */
27
35
  export declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,49 @@
1
+ import type { StyleProp, TextStyle, ViewStyle } from "react-native";
2
+ export interface StepperProps {
3
+ /** Controlled value. Omit it and the stepper keeps its own. */
4
+ value?: number;
5
+ defaultValue?: number;
6
+ /** Fires with the next value whenever one of the ends steps it. */
7
+ onValueChange?: (value: number) => void;
8
+ /** Inclusive lower bound. Defaults to 0. `minimumValue` is the engine's spelling. */
9
+ min?: number;
10
+ /** Inclusive upper bound. Defaults to 100. `maximumValue` is the engine's spelling. */
11
+ max?: number;
12
+ minimumValue?: number;
13
+ maximumValue?: number;
14
+ /** Increment per press. Defaults to 1. */
15
+ step?: number;
16
+ /** Hold an end and it keeps stepping, the way the system's does. Defaults to true. */
17
+ autoRepeat?: boolean;
18
+ /** One selection tick each time the value changes. `false` opts out. */
19
+ haptics?: boolean;
20
+ disabled?: boolean;
21
+ /** Capsule height, dp. Defaults to the engine's 40. */
22
+ height?: number;
23
+ /** Formats the middle readout; defaults to the plain number. */
24
+ formatValue?: (value: number) => string;
25
+ /** Announced by screen readers, e.g. "Guests". */
26
+ accessibilityLabel: string;
27
+ /** The track's wash. Defaults to the scheme's glass tint. */
28
+ tint?: string;
29
+ /** The pressed thumb's wash. Defaults to the scheme's glass-active tint. */
30
+ thumbTint?: string;
31
+ /** Pairs the surface with its Android backdrop provider. */
32
+ providerId?: string;
33
+ isDark?: boolean;
34
+ style?: StyleProp<ViewStyle>;
35
+ textStyle?: StyleProp<TextStyle>;
36
+ testID?: string;
37
+ }
38
+ /**
39
+ * Minus / value / plus — ported from the engine's `LiquidGlassStepper`, the
40
+ * design Binyam approved on real devices this week (40dp capsule, 44dp cells,
41
+ * press thumb blooming over the held end, the value popping as it changes, and
42
+ * hold-to-repeat).
43
+ *
44
+ * With a glass renderer available the engine's own control mounts, carrying the
45
+ * approved geometry and behaviour. Without one — Expo Go, below every tier, or
46
+ * Reduce Transparency — the fallback floor renders the same capsule, cells and
47
+ * readout on Glacia's solid material, so the control is never invisible.
48
+ */
49
+ export declare const Stepper: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<any>>;
@@ -1,23 +1,30 @@
1
1
  import type { StyleProp, ViewStyle } from "react-native";
2
2
  export interface SwitchProps {
3
- checked?: boolean;
4
- defaultChecked?: boolean;
5
- onCheckedChange?: (checked: boolean) => void;
3
+ /** Controlled on/off value. Omit it and the switch keeps its own. */
4
+ value?: boolean;
5
+ defaultValue?: boolean;
6
+ /** Fires with the next value. The engine's controlled contract. */
7
+ onValueChange?: (value: boolean) => void;
8
+ disabled?: boolean;
9
+ /** Track colour while on. A parseable colour string. Defaults to the scheme's system blue. */
10
+ accentColor?: string;
11
+ /** Track colour while off. */
12
+ trackColor?: string;
13
+ accessibilityLabel?: string;
6
14
  /** One selection tick when it toggles. `false` opts out. */
7
15
  haptics?: boolean;
8
- disabled?: boolean;
9
- accessibilityLabel: string;
10
- style?: StyleProp<ViewStyle>;
11
16
  isDark?: boolean;
12
- /** Passed through to the switch track so it is testable. */
17
+ /** Passed to the control so it is testable. */
13
18
  testID?: string;
19
+ style?: StyleProp<ViewStyle>;
14
20
  }
15
21
  /**
16
- * An on/off switch.
22
+ * An on/off switch — ported from the engine's `LiquidGlassSwitch`, the design
23
+ * Binyam approved on real devices this week (64x28 track, 40x24 lens thumb).
17
24
  *
18
- * The track is Glacia's glass; the thumb is one of our own Views, animated on
19
- * the springs token. The material changes by platform (Apple's glass on
20
- * iOS 26+, Glacia's tint elsewhere) but the control is always ours — React
21
- * Native's built-in Switch is never used.
25
+ * With a glass renderer available the engine's own control mounts, carrying the
26
+ * approved geometry and interaction. Without one — Expo Go, below every tier, or
27
+ * Reduce Transparency — the fallback floor renders the same geometry with a solid
28
+ * track and lens thumb, so the control is never invisible.
22
29
  */
23
30
  export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<any>>;
@@ -1,9 +1,8 @@
1
- import { type ReactNode } from "react";
2
1
  import type { StyleProp, ViewStyle } from "react-native";
3
2
  export interface TabBarItem {
4
3
  id: string;
5
4
  label: string;
6
- icon?: ReactNode;
5
+ icon?: any;
7
6
  }
8
7
  export interface TabBarProps {
9
8
  items: TabBarItem[];
@@ -14,6 +13,13 @@ export interface TabBarProps {
14
13
  haptics?: boolean;
15
14
  style?: StyleProp<ViewStyle>;
16
15
  isDark?: boolean;
16
+ /**
17
+ * The safe-area inset the bar must float above — the Android navigation bar
18
+ * or the iOS home indicator. Defaults to the device's own bottom inset, read
19
+ * from the safe area, so the bar floats fully above it and its labels are
20
+ * never clipped. Pass a number to pin the bar to a design height instead.
21
+ */
22
+ bottomInset?: number;
17
23
  /** Passed through to the bar so it is testable. */
18
24
  testID?: string;
19
25
  }
@@ -21,9 +27,15 @@ export interface TabBarProps {
21
27
  * The bottom bar of an app: a row of tabs on one glass surface.
22
28
  *
23
29
  * The platform rule is the point of this component. On iOS 26+ the surface is
24
- * Apple's real Liquid Glass (`UIGlassEffect` via `@callstack/liquid-glass`)
25
- * with Glacia's own items inside it; on older iOS and on Android it is
26
- * Glacia's bar. The items are always our Pressables and Texts — no native tab
27
- * bar is used on any platform.
30
+ * Apple's real Liquid Glass (`UIGlassEffect` via the vendored engine) with
31
+ * Glacia's own items inside it; on older iOS and on Android it is Glacia's bar.
32
+ * The items are always our Pressables and Texts — no native tab bar is used on
33
+ * any platform.
34
+ *
35
+ * The port is the engine's `LiquidGlassTabBar` design, and it carries over
36
+ * session 1's safe-area behaviour: the bar floats fully above the system inset
37
+ * (the Android navigation bar or the iOS home indicator) — the safe-area bottom
38
+ * inset is added to the bar's height — so the glass ends above the inset rather
39
+ * than sinking into it and the labels never clip.
28
40
  */
29
41
  export declare const TabBar: import("react").ForwardRefExoticComponent<TabBarProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,6 @@
1
+ import { type InputProps } from "./Input";
2
+ export interface TextareaProps extends Omit<InputProps, "multiline"> {
3
+ /** Visible height in text lines. Defaults to 4. */
4
+ rows?: number;
5
+ }
6
+ export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,40 @@
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
+ export interface ToastProps {
4
+ /** Shown while `true`; springs out when it turns `false`. */
5
+ visible: boolean;
6
+ /** The text. */
7
+ message: string;
8
+ /** Rendered before the message; a function receives the label colour and a glyph size. */
9
+ icon?: ReactNode;
10
+ /**
11
+ * Called when the toast wants to go — after `duration`, or on a tap. The app
12
+ * flips `visible`; the toast never hides itself.
13
+ */
14
+ onDismiss?: () => void;
15
+ /** Auto-dismiss after this many ms of being visible. `0` keeps it up. Defaults to 2600. */
16
+ duration?: number;
17
+ /** Which screen edge it slides in from. Defaults to `"top"`. */
18
+ edge?: "top" | "bottom";
19
+ /** Distance from that edge, dp. Defaults to 60. */
20
+ offset?: number;
21
+ /** Surface wash. */
22
+ tint?: string;
23
+ variant?: "regular" | "clear";
24
+ style?: StyleProp<ViewStyle>;
25
+ textStyle?: StyleProp<TextStyle>;
26
+ isDark?: boolean;
27
+ /** Passed to the toast so it is testable. */
28
+ testID?: string;
29
+ }
30
+ /**
31
+ * A transient message on a glass pill — ported from the engine's
32
+ * `LiquidGlassToast`, the design Binyam approved on real devices this week (44dp
33
+ * capsule, 60dp from the screen edge, auto-dismiss after 2.6s).
34
+ *
35
+ * With a glass renderer available the engine's own control mounts, carrying the
36
+ * approved material and motion. Without one — Expo Go, below every tier, or
37
+ * Reduce Transparency — the fallback floor renders the same pill with the
38
+ * fallback material, so the toast is never invisible.
39
+ */
40
+ export declare const Toast: import("react").ForwardRefExoticComponent<ToastProps & import("react").RefAttributes<any>>;
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from "react";
2
+ import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
+ export interface ToggleProps {
4
+ /** Controlled pressed state. */
5
+ pressed?: boolean;
6
+ defaultPressed?: boolean;
7
+ onPressedChange?: (pressed: boolean) => void;
8
+ /** Read-only alias of `pressed`, matching the web package's naming. */
9
+ selected?: boolean;
10
+ icon?: ReactNode;
11
+ children?: ReactNode;
12
+ variant?: "glass" | "ghost";
13
+ size?: "sm" | "md" | "lg";
14
+ disabled?: boolean;
15
+ accessibilityLabel?: string;
16
+ style?: StyleProp<ViewStyle>;
17
+ textStyle?: StyleProp<TextStyle>;
18
+ isDark?: boolean;
19
+ testID?: string;
20
+ }
21
+ export declare function Toggle({ pressed: pressedProp, defaultPressed, onPressedChange, selected, icon, children, variant, size, disabled, accessibilityLabel, style, textStyle, isDark: isDarkProp, testID, }: ToggleProps): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { type ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ export interface ToggleGroupItem {
4
+ value: string;
5
+ label?: string;
6
+ icon?: ReactNode;
7
+ disabled?: boolean;
8
+ }
9
+ export interface ToggleGroupProps {
10
+ items: ToggleGroupItem[];
11
+ multiple?: boolean;
12
+ value?: string | string[];
13
+ defaultValue?: string | string[];
14
+ onValueChange?: (value: string | string[]) => void;
15
+ size?: "sm" | "md" | "lg";
16
+ disabled?: boolean;
17
+ accessibilityLabel?: string;
18
+ style?: StyleProp<ViewStyle>;
19
+ isDark?: boolean;
20
+ testID?: string;
21
+ }
22
+ export declare function ToggleGroup({ items, multiple, value: valueProp, defaultValue, onValueChange, size, disabled, accessibilityLabel, style, isDark: isDarkProp, testID, }: ToggleGroupProps): import("react").JSX.Element;