glacia-native 0.5.2 → 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 (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 +154 -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 +4 -2
  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 +211 -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
package/src/Button.tsx CHANGED
@@ -1,87 +1,220 @@
1
- import { forwardRef, useState, type ReactNode } from "react";
1
+ import { forwardRef } from "react";
2
+ import type { ReactNode } from "react";
2
3
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
4
 
4
- import { Glass } from "./Glass";
5
+ import { loadEngineControl } from "./internal/glass-routing";
6
+ import { glassCapabilities } from "./internal/GlassView";
5
7
  import { colors } from "./internal/tokens";
6
8
  import { primitives } from "./internal/primitives";
7
9
  import { useIsDark } from "./internal/motion";
8
10
 
11
+ /**
12
+ * The web control scale the port keeps: 28 / 34 / 44, one horizontal padding and
13
+ * one type size for every button — the engine's own sizing table is the design
14
+ * source, and this is its Glacia-name translation.
15
+ */
16
+ const ENGINE_BUTTON_SIZES = { sm: 28, md: 34, lg: 44 } as const;
17
+
9
18
  export interface ButtonProps {
10
19
  variant?: "glass" | "filled" | "ghost";
11
20
  size?: "sm" | "md" | "lg";
21
+ shape?: "capsule" | "circle";
12
22
  disabled?: boolean;
23
+ loading?: boolean;
13
24
  onPress?: () => void;
14
- accessibilityLabel: string;
25
+ onLongPress?: () => void;
26
+ interactive?: boolean;
27
+ pressLight?: number;
28
+ adaptive?: boolean;
29
+ tint?: string;
30
+ height?: number;
15
31
  icon?: ReactNode;
16
- children?: ReactNode;
32
+ accessibilityLabel: string;
33
+ accessibilityState?: Record<string, any>;
17
34
  style?: StyleProp<ViewStyle>;
18
- tint?: string;
35
+ contentStyle?: StyleProp<ViewStyle>;
36
+ textStyle?: StyleProp<TextStyle>;
19
37
  isDark?: boolean;
20
- /** Passed through to the pressable root so the button is testable. */
21
38
  testID?: string;
39
+ children?: ReactNode;
22
40
  }
23
41
 
24
- // The web control scale: 28 / 34 / 44, one horizontal padding and one type
25
- // size for every button, and the inherited 400 weight rather than a 500.
26
- const sizeHeights = {
27
- sm: 28,
28
- md: 34,
29
- lg: 44,
30
- };
31
-
32
42
  /**
33
- * A pressable button on Glacia's glass.
43
+ * A pressable button on Glacia's glass — ported from the engine's
44
+ * `LiquidGlassButton` (expo-liquid-glass-ui), the design Binyam approved on real
45
+ * devices this week.
34
46
  *
35
- * The root is a Pressable so it gets the platform's own press semantics
36
- * (focus, screen-reader activation, pressed feedback) while the material —
37
- * Apple's glass on iOS 26+, Glacia's tint elsewhere — comes from `Glass`.
47
+ * With a glass renderer available the engine's own control mounts, carrying the
48
+ * approved design, geometry and press behaviour. Without one — Expo Go, below
49
+ * every tier, or Reduce Transparency — the fallback floor renders the same
50
+ * geometry with a solid surface, so the button is never invisible.
38
51
  */
39
52
  export const Button = forwardRef<any, ButtonProps>(function Button(
40
53
  {
41
54
  variant = "glass",
42
55
  size = "md",
56
+ shape = "capsule",
43
57
  disabled = false,
58
+ loading = false,
44
59
  onPress,
45
- accessibilityLabel,
60
+ onLongPress,
61
+ interactive = true,
62
+ pressLight,
63
+ adaptive = false,
64
+ tint,
65
+ height,
46
66
  icon,
47
- children,
67
+ accessibilityLabel,
68
+ accessibilityState,
48
69
  style,
49
- tint,
70
+ contentStyle,
71
+ textStyle,
50
72
  isDark: isDarkProp,
51
73
  testID,
52
- ...props
74
+ children,
53
75
  },
54
76
  ref,
55
77
  ) {
56
78
  const isDark = useIsDark(isDarkProp);
57
79
  const themeColors = isDark ? colors.dark : colors.light;
58
- const { Pressable, View, Text } = primitives();
59
- const [held, setHeld] = useState(false);
60
- const height = sizeHeights[size];
80
+ const { Pressable, View, Text: RNText } = primitives();
81
+ const capabilities = glassCapabilities();
82
+ const EngineButton = loadEngineControl("Button");
83
+ const height_ = height ?? ENGINE_BUTTON_SIZES[size];
61
84
 
62
- const buttonStyle: ViewStyle = {
63
- height,
64
- borderRadius: height / 2,
65
- flexDirection: "row",
66
- alignItems: "center",
67
- justifyContent: "center",
68
- paddingHorizontal: 14,
69
- opacity: disabled ? 0.38 : 1,
70
- backgroundColor:
71
- variant === "filled"
72
- ? tint || themeColors.fill
73
- : variant === "ghost"
74
- ? "transparent"
75
- : undefined,
76
- ...(style as ViewStyle),
77
- };
85
+ // A ghost button wears no surface; the engine has no none-variant, so the
86
+ // fallback floor renders the bare control.
87
+ if (variant === "ghost") {
88
+ return (
89
+ <GhostButton
90
+ ref={ref}
91
+ accessibilityLabel={accessibilityLabel}
92
+ disabled={disabled}
93
+ height={height_}
94
+ isDark={isDark}
95
+ testID={testID}
96
+ onPress={onPress}
97
+ >
98
+ {children}
99
+ </GhostButton>
100
+ );
101
+ }
78
102
 
79
- const textStyle: TextStyle = {
80
- color: variant === "filled" ? themeColors.onTint : tint || themeColors.foreground,
81
- fontSize: 14,
82
- fontWeight: "400",
83
- };
103
+ if (EngineButton && capabilities.supported) {
104
+ const EngineButtonComponent = EngineButton;
105
+ return (
106
+ <EngineButtonComponent
107
+ ref={ref}
108
+ onPress={disabled || loading ? undefined : onPress}
109
+ onLongPress={disabled || loading ? undefined : onLongPress}
110
+ disabled={disabled || loading}
111
+ loading={loading}
112
+ interactive={interactive}
113
+ pressLight={pressLight}
114
+ adaptive={adaptive}
115
+ tint={tint ?? (variant === "filled" ? themeColors.fill : undefined)}
116
+ height={height_}
117
+ icon={icon}
118
+ accessibilityLabel={accessibilityLabel}
119
+ accessibilityState={{ disabled, ...accessibilityState }}
120
+ style={style}
121
+ contentStyle={contentStyle}
122
+ textStyle={textStyle}
123
+ variant={variant === "filled" ? "regular" : "regular"}
124
+ shape={shape}
125
+ >
126
+ {children}
127
+ </EngineButtonComponent>
128
+ );
129
+ }
84
130
 
131
+ // Fallback floor: solid surface, full geometry and states.
132
+ return (
133
+ <FallbackButton
134
+ ref={ref}
135
+ accessibilityLabel={accessibilityLabel}
136
+ disabled={disabled}
137
+ height={height_}
138
+ isDark={isDark}
139
+ testID={testID}
140
+ variant={variant}
141
+ tint={tint ?? themeColors.fill}
142
+ onPress={onPress}
143
+ >
144
+ {children}
145
+ </FallbackButton>
146
+ );
147
+ });
148
+
149
+ export interface GhostButtonProps {
150
+ ref?: any;
151
+ accessibilityLabel: string;
152
+ disabled?: boolean;
153
+ height?: number;
154
+ isDark?: boolean;
155
+ testID?: string;
156
+ onPress?: () => void;
157
+ children?: ReactNode;
158
+ }
159
+
160
+ const GhostButton = forwardRef<any, GhostButtonProps>(function GhostButton(
161
+ { accessibilityLabel, disabled = false, height = ENGINE_BUTTON_SIZES.md, isDark, testID, onPress, children },
162
+ ref,
163
+ ) {
164
+ const { Pressable, View, Text: RNText } = primitives();
165
+ const themeColors = isDark ? colors.dark : colors.light;
166
+ const radius = height / 2;
167
+ return (
168
+ <Pressable
169
+ ref={ref}
170
+ testID={testID}
171
+ accessibilityRole="button"
172
+ accessibilityLabel={accessibilityLabel}
173
+ disabled={disabled}
174
+ onPress={disabled ? undefined : onPress}
175
+ >
176
+ <View
177
+ style={{
178
+ height,
179
+ borderRadius: radius,
180
+ alignItems: "center",
181
+ justifyContent: "center",
182
+ opacity: disabled ? 0.38 : 1,
183
+ }}
184
+ >
185
+ <View style={{ height: height - 8, justifyContent: "center", alignItems: "center", flex: 1 }}>
186
+ {typeof children === "string" ? (
187
+ <RNText style={{ fontSize: 14, fontWeight: "400" }}>{children}</RNText>
188
+ ) : (
189
+ children
190
+ )}
191
+ </View>
192
+ </View>
193
+ </Pressable>
194
+ );
195
+ });
196
+
197
+ export interface FallbackButtonProps {
198
+ ref?: any;
199
+ accessibilityLabel: string;
200
+ disabled?: boolean;
201
+ height?: number;
202
+ isDark?: boolean;
203
+ testID?: string;
204
+ variant?: "glass" | "filled" | "ghost";
205
+ tint?: string;
206
+ onPress?: () => void;
207
+ children?: ReactNode;
208
+ }
209
+
210
+ const FallbackButton = forwardRef<any, FallbackButtonProps>(function FallbackButton(
211
+ { accessibilityLabel, disabled = false, height = ENGINE_BUTTON_SIZES.md, isDark, testID, variant = "glass", tint, onPress, children },
212
+ ref,
213
+ ) {
214
+ const themeColors = isDark ? colors.dark : colors.light;
215
+ const { Pressable, View, Text: RNText } = primitives();
216
+ const radius = height / 2;
217
+ const solid = variant !== "ghost";
85
218
  return (
86
219
  <Pressable
87
220
  ref={ref}
@@ -91,29 +224,25 @@ export const Button = forwardRef<any, ButtonProps>(function Button(
91
224
  accessibilityState={{ disabled }}
92
225
  disabled={disabled}
93
226
  onPress={disabled ? undefined : onPress}
94
- onPressIn={() => setHeld(true)}
95
- onPressOut={() => setHeld(false)}
96
- style={({ pressed }: { pressed: boolean }) => ({ opacity: pressed && !disabled ? 0.85 : 1 })}
97
- {...props}
98
227
  >
99
- <Glass
100
- effect={variant === "ghost" ? "none" : "regular"}
101
- surface="control"
102
- pressed={held && !disabled}
103
- interactive={!disabled}
104
- isDark={isDark}
105
- style={buttonStyle}
228
+ <View
229
+ style={{
230
+ height,
231
+ borderRadius: radius,
232
+ backgroundColor: solid ? tint ?? themeColors.fill : "transparent",
233
+ opacity: disabled ? 0.38 : 1,
234
+ alignItems: "center",
235
+ justifyContent: "center",
236
+ }}
106
237
  >
107
- {icon ? <View style={{ marginRight: children ? 7 : 0 }}>{icon}</View> : null}
108
- {typeof children === "string" ? (
109
- // A string label is text: it needs Text to inherit font and colour.
110
- <Text style={textStyle} numberOfLines={1}>
111
- {children}
112
- </Text>
113
- ) : (
114
- children
115
- )}
116
- </Glass>
238
+ <View style={{ height: height - 8, justifyContent: "center", alignItems: "center", flex: 1 }}>
239
+ {typeof children === "string" ? (
240
+ <RNText style={{ fontSize: 14, fontWeight: "400", color: themeColors.onTint }}>{children}</RNText>
241
+ ) : (
242
+ children
243
+ )}
244
+ </View>
245
+ </View>
117
246
  </Pressable>
118
247
  );
119
248
  });
package/src/Card.tsx CHANGED
@@ -1,14 +1,37 @@
1
1
  import { forwardRef, type ReactNode } from "react";
2
2
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
 
4
+ import { loadEngineControl } from "./internal/glass-routing";
5
+ import { glassCapabilities } from "./internal/GlassView";
4
6
  import { Glass } from "./Glass";
5
7
  import { colors, radii } from "./internal/tokens";
6
8
  import { primitives } from "./internal/primitives";
7
9
  import { useIsDark } from "./internal/motion";
8
10
 
9
11
  export interface CardProps {
10
- effect?: "clear" | "regular" | "none";
12
+ /** Makes the card a control: it presses to 98% and fires on release. */
13
+ onPress?: () => void;
14
+ onLongPress?: () => void;
15
+ disabled?: boolean;
16
+ /** Corner radius, continuous. Defaults to 24. */
17
+ cornerRadius?: number;
18
+ /** Inner padding, dp. Defaults to 16. */
19
+ padding?: number;
20
+ /**
21
+ * Adaptive glass: the frost flips polarity with the backdrop under the card.
22
+ * Defaults to `false`.
23
+ */
24
+ adaptive?: boolean;
25
+ /** Surface wash. Defaults to the scheme's bar surface. */
26
+ tint?: string;
27
+ variant?: "regular" | "clear";
28
+ metal?: unknown;
29
+ providerId?: string;
30
+ accessibilityLabel?: string;
31
+ /** The outer frame — size it here. */
11
32
  style?: StyleProp<ViewStyle>;
33
+ /** The inner content view. */
34
+ contentStyle?: StyleProp<ViewStyle>;
12
35
  children?: ReactNode;
13
36
  isDark?: boolean;
14
37
  /** Passed through to the card's glass so it is testable. */
@@ -16,26 +39,96 @@ export interface CardProps {
16
39
  }
17
40
 
18
41
  /**
19
- * A content panel on Glacia's glass: Apple's material on iOS 26+, Glacia's
20
- * tint elsewhere. The padding, radius and stacking are ours on every platform.
42
+ * A content panel on Glacia's glass — ported from the engine's
43
+ * `LiquidGlassCard`, the design Binyam approved on real devices this week (24dp
44
+ * continuous corner, 16dp padding, presses to 98%).
45
+ *
46
+ * With a glass renderer available the engine's own control mounts, carrying the
47
+ * approved material. Without one — Expo Go, below every tier, or Reduce
48
+ * Transparency — the fallback floor renders the same geometry with a solid
49
+ * surface, so the card is never invisible.
21
50
  */
22
51
  export const Card = forwardRef<any, CardProps>(function Card(
23
- { effect = "regular", style, children, isDark: isDarkProp, testID, ...props },
52
+ {
53
+ onPress,
54
+ onLongPress,
55
+ disabled = false,
56
+ cornerRadius = 24,
57
+ padding = 16,
58
+ adaptive = false,
59
+ tint,
60
+ variant = "regular",
61
+ accessibilityLabel,
62
+ style,
63
+ contentStyle,
64
+ children,
65
+ isDark: isDarkProp,
66
+ testID,
67
+ ...props
68
+ },
24
69
  ref,
25
70
  ) {
26
71
  const isDark = useIsDark(isDarkProp);
72
+ const themeColors = isDark ? colors.dark : colors.light;
73
+ const { View, Pressable } = primitives();
74
+ const capabilities = glassCapabilities();
75
+ const EngineCard = loadEngineControl("Card");
27
76
 
28
77
  const cardStyle: ViewStyle = {
29
- padding: 24,
30
- borderRadius: radii.lg,
78
+ padding,
79
+ borderRadius: cornerRadius,
31
80
  flexDirection: "column",
32
81
  gap: 16,
33
82
  ...(style as ViewStyle),
34
83
  };
35
84
 
85
+ if (EngineCard && capabilities.supported) {
86
+ const EngineCardComponent = EngineCard;
87
+ return (
88
+ <EngineCardComponent
89
+ onPress={disabled ? undefined : onPress}
90
+ onLongPress={disabled ? undefined : onLongPress}
91
+ disabled={disabled}
92
+ cornerRadius={cornerRadius}
93
+ padding={padding}
94
+ adaptive={adaptive}
95
+ tint={tint}
96
+ variant={variant}
97
+ style={style}
98
+ contentStyle={contentStyle}
99
+ accessibilityLabel={accessibilityLabel}
100
+ >
101
+ {children}
102
+ </EngineCardComponent>
103
+ );
104
+ }
105
+
106
+ // Fallback floor: layered-or-solid material with the card's full geometry.
107
+ const content = <View style={cardStyle}>{children}</View>;
108
+
109
+ if (onPress) {
110
+ return (
111
+ <Pressable
112
+ ref={ref}
113
+ testID={testID}
114
+ accessibilityRole="button"
115
+ accessibilityLabel={accessibilityLabel}
116
+ disabled={disabled}
117
+ onPress={disabled ? undefined : onPress}
118
+ onLongPress={disabled ? undefined : onLongPress}
119
+ style={[{ transform: [{ scale: 0.98 }] } as ViewStyle]}
120
+ {...props}
121
+ >
122
+ <Glass effect={variant} surface="panel" tintColor={tint} isDark={isDark} style={cardStyle} testID={testID}>
123
+ {content}
124
+ </Glass>
125
+ </Pressable>
126
+ );
127
+ }
128
+
36
129
  return (
37
- <Glass ref={ref} effect={effect} isDark={isDark} style={cardStyle} testID={testID} {...props}>
38
- {children}
130
+ <Glass effect={variant} surface="panel" tintColor={tint} isDark={isDark} style={cardStyle} testID={testID}>
131
+ {content}
39
132
  </Glass>
40
133
  );
41
134
  });
@@ -43,11 +136,7 @@ export const Card = forwardRef<any, CardProps>(function Card(
43
136
  /** The block holding a card's title and description. */
44
137
  export function CardHeader({ style, children, ...props }: { style?: StyleProp<ViewStyle>; children?: ReactNode }) {
45
138
  const { View } = primitives();
46
- return (
47
- <View style={{ flexDirection: "column", gap: 4, ...(style as ViewStyle) }} {...props}>
48
- {children}
49
- </View>
50
- );
139
+ return <View style={{ flexDirection: "column", gap: 4, ...(style as ViewStyle) }} {...props}>{children}</View>;
51
140
  }
52
141
 
53
142
  /** A card's heading, announced as a heading by screen readers. */
@@ -67,12 +156,7 @@ export function CardTitle({
67
156
  return (
68
157
  <Text
69
158
  accessibilityRole="heading"
70
- style={{
71
- fontSize: 18,
72
- fontWeight: "600",
73
- color: themeColors.foreground,
74
- ...(style as TextStyle),
75
- }}
159
+ style={{ fontSize: 18, fontWeight: "600" as const, color: themeColors.foreground, ...(style as TextStyle) }}
76
160
  {...props}
77
161
  >
78
162
  {children}
@@ -95,14 +179,7 @@ export function CardDescription({
95
179
  const themeColors = isDark ? colors.dark : colors.light;
96
180
  const { Text } = primitives();
97
181
  return (
98
- <Text
99
- style={{
100
- fontSize: 13,
101
- color: themeColors.muted,
102
- ...(style as TextStyle),
103
- }}
104
- {...props}
105
- >
182
+ <Text style={{ fontSize: 13, color: themeColors.muted, ...(style as TextStyle) }} {...props}>
106
183
  {children}
107
184
  </Text>
108
185
  );
@@ -111,11 +188,7 @@ export function CardDescription({
111
188
  /** The card's body. */
112
189
  export function CardContent({ style, children, ...props }: { style?: StyleProp<ViewStyle>; children?: ReactNode }) {
113
190
  const { View } = primitives();
114
- return (
115
- <View style={{ flexDirection: "column", gap: 8, ...(style as ViewStyle) }} {...props}>
116
- {children}
117
- </View>
118
- );
191
+ return <View style={{ flexDirection: "column", gap: 8, ...(style as ViewStyle) }} {...props}>{children}</View>;
119
192
  }
120
193
 
121
194
  export const CardBody = CardContent;
@@ -0,0 +1,98 @@
1
+ // Wave 2 — Checkbox.
2
+ //
3
+ // The donor's checkbox semantics: `role="checkbox"`, checked / mixed states
4
+ // exposed to screen readers, a label that is part of the same press target, and
5
+ // controlled-or-internal state. Dressed as the family's small glass square.
6
+
7
+ import { useState } from "react";
8
+ import type { StyleProp, ViewStyle } from "react-native";
9
+
10
+ import { colors, radii, typeScale } from "./internal/tokens";
11
+ import { primitives } from "./internal/primitives";
12
+ import { useIsDark } from "./internal/motion";
13
+ import { hapticSelection } from "./internal/haptics";
14
+
15
+ export interface CheckboxProps {
16
+ checked?: boolean;
17
+ defaultChecked?: boolean;
18
+ onCheckedChange?: (checked: boolean) => void;
19
+ label?: string;
20
+ description?: string;
21
+ indeterminate?: boolean;
22
+ disabled?: boolean;
23
+ isDark?: boolean;
24
+ style?: StyleProp<ViewStyle>;
25
+ testID?: string;
26
+ }
27
+
28
+ export function Checkbox({
29
+ checked: checkedProp,
30
+ defaultChecked = false,
31
+ onCheckedChange,
32
+ label,
33
+ description,
34
+ indeterminate = false,
35
+ disabled = false,
36
+ isDark: isDarkProp,
37
+ style,
38
+ testID,
39
+ }: CheckboxProps) {
40
+ const isDark = useIsDark(isDarkProp);
41
+ const theme = isDark ? colors.dark : colors.light;
42
+ const { View, Pressable, Text: RNText } = primitives();
43
+
44
+ const [internal, setInternal] = useState(defaultChecked);
45
+ const checked = checkedProp !== undefined ? checkedProp : internal;
46
+ const on = checked || indeterminate;
47
+
48
+ const toggle = () => {
49
+ const next = !checked;
50
+ if (checkedProp === undefined) setInternal(next);
51
+ hapticSelection();
52
+ onCheckedChange?.(next);
53
+ };
54
+
55
+ return (
56
+ <Pressable
57
+ testID={testID}
58
+ accessibilityRole="checkbox"
59
+ accessibilityLabel={label ?? "Checkbox"}
60
+ accessibilityState={{ checked: indeterminate ? "mixed" : checked, disabled }}
61
+ disabled={disabled}
62
+ onPress={toggle}
63
+ style={[
64
+ { flexDirection: "row", alignItems: "center", gap: 10, opacity: disabled ? 0.38 : 1 },
65
+ style,
66
+ ]}
67
+ >
68
+ <View
69
+ style={{
70
+ width: 22,
71
+ height: 22,
72
+ borderRadius: radii.sm,
73
+ borderWidth: 1.5,
74
+ borderColor: on ? theme.fill : theme.separator,
75
+ backgroundColor: on ? theme.fill : "transparent",
76
+ alignItems: "center",
77
+ justifyContent: "center",
78
+ }}
79
+ >
80
+ {indeterminate ? (
81
+ <View style={{ width: 10, height: 2, borderRadius: radii.pill, backgroundColor: theme.onTint }} />
82
+ ) : checked ? (
83
+ <RNText style={{ fontSize: 13, fontWeight: "800", color: theme.onTint }}>✓</RNText>
84
+ ) : null}
85
+ </View>
86
+ {label || description ? (
87
+ <View style={{ flex: 1 }}>
88
+ {label ? (
89
+ <RNText style={{ ...typeScale.body, color: theme.foreground }}>{label}</RNText>
90
+ ) : null}
91
+ {description ? (
92
+ <RNText style={{ ...typeScale.caption, color: theme.muted }}>{description}</RNText>
93
+ ) : null}
94
+ </View>
95
+ ) : null}
96
+ </Pressable>
97
+ );
98
+ }