@expo/ui 0.2.0-alpha.0 → 0.2.0-alpha.2

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 (350) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/ui/AlertDialogView.kt +3 -1
  4. package/android/src/main/java/expo/modules/ui/ComposeViews.kt +6 -6
  5. package/android/src/main/java/expo/modules/ui/DatePickerView.kt +4 -3
  6. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +88 -0
  7. package/android/src/main/java/expo/modules/ui/Modifiers.kt +15 -0
  8. package/android/src/main/java/expo/modules/ui/PickerView.kt +7 -2
  9. package/android/src/main/java/expo/modules/ui/ProgressView.kt +8 -4
  10. package/android/src/main/java/expo/modules/ui/ShapeView.kt +3 -2
  11. package/android/src/main/java/expo/modules/ui/SliderView.kt +4 -2
  12. package/android/src/main/java/expo/modules/ui/SwitchView.kt +3 -2
  13. package/android/src/main/java/expo/modules/ui/TextInputView.kt +4 -2
  14. package/android/src/main/java/expo/modules/ui/button/Button.kt +17 -8
  15. package/build/jetpack-compose/AlertDialog/index.d.ts +3 -0
  16. package/build/jetpack-compose/AlertDialog/index.d.ts.map +1 -1
  17. package/build/jetpack-compose/AlertDialog/index.js +3 -1
  18. package/build/jetpack-compose/AlertDialog/index.js.map +1 -1
  19. package/build/jetpack-compose/Button/index.d.ts +3 -1
  20. package/build/jetpack-compose/Button/index.d.ts.map +1 -1
  21. package/build/jetpack-compose/Button/index.js +2 -0
  22. package/build/jetpack-compose/Button/index.js.map +1 -1
  23. package/build/jetpack-compose/ContextMenu/index.d.ts +3 -0
  24. package/build/jetpack-compose/ContextMenu/index.d.ts.map +1 -1
  25. package/build/jetpack-compose/ContextMenu/index.js +3 -1
  26. package/build/jetpack-compose/ContextMenu/index.js.map +1 -1
  27. package/build/jetpack-compose/DatePicker/index.d.ts +3 -1
  28. package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
  29. package/build/jetpack-compose/DatePicker/index.js +2 -0
  30. package/build/jetpack-compose/DatePicker/index.js.map +1 -1
  31. package/build/jetpack-compose/Picker/index.d.ts +5 -0
  32. package/build/jetpack-compose/Picker/index.d.ts.map +1 -1
  33. package/build/jetpack-compose/Picker/index.js +4 -0
  34. package/build/jetpack-compose/Picker/index.js.map +1 -1
  35. package/build/jetpack-compose/Progress/index.d.ts +5 -0
  36. package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
  37. package/build/jetpack-compose/Progress/index.js +4 -2
  38. package/build/jetpack-compose/Progress/index.js.map +1 -1
  39. package/build/jetpack-compose/Shape/index.d.ts +4 -1
  40. package/build/jetpack-compose/Shape/index.d.ts.map +1 -1
  41. package/build/jetpack-compose/Shape/index.js +3 -1
  42. package/build/jetpack-compose/Shape/index.js.map +1 -1
  43. package/build/jetpack-compose/Slider/index.d.ts +3 -1
  44. package/build/jetpack-compose/Slider/index.d.ts.map +1 -1
  45. package/build/jetpack-compose/Slider/index.js +2 -0
  46. package/build/jetpack-compose/Slider/index.js.map +1 -1
  47. package/build/jetpack-compose/Switch/index.d.ts +3 -0
  48. package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
  49. package/build/jetpack-compose/Switch/index.js +2 -0
  50. package/build/jetpack-compose/Switch/index.js.map +1 -1
  51. package/build/jetpack-compose/TextInput/index.d.ts +3 -1
  52. package/build/jetpack-compose/TextInput/index.d.ts.map +1 -1
  53. package/build/jetpack-compose/TextInput/index.js +2 -0
  54. package/build/jetpack-compose/TextInput/index.js.map +1 -1
  55. package/build/jetpack-compose/index.d.ts +1 -0
  56. package/build/jetpack-compose/index.d.ts.map +1 -1
  57. package/build/jetpack-compose/index.js +1 -0
  58. package/build/jetpack-compose/index.js.map +1 -1
  59. package/build/jetpack-compose/modifiers.d.ts +14 -0
  60. package/build/jetpack-compose/modifiers.d.ts.map +1 -0
  61. package/build/jetpack-compose/modifiers.js +15 -0
  62. package/build/jetpack-compose/modifiers.js.map +1 -0
  63. package/build/swift-ui/BottomSheet/index.d.ts +2 -14
  64. package/build/swift-ui/BottomSheet/index.d.ts.map +1 -1
  65. package/build/swift-ui/BottomSheet/index.js +7 -15
  66. package/build/swift-ui/BottomSheet/index.js.map +1 -1
  67. package/build/swift-ui/Button/index.d.ts +6 -11
  68. package/build/swift-ui/Button/index.d.ts.map +1 -1
  69. package/build/swift-ui/Button/index.js +7 -14
  70. package/build/swift-ui/Button/index.js.map +1 -1
  71. package/build/swift-ui/ColorPicker/index.d.ts +3 -10
  72. package/build/swift-ui/ColorPicker/index.d.ts.map +1 -1
  73. package/build/swift-ui/ColorPicker/index.js +5 -14
  74. package/build/swift-ui/ColorPicker/index.js.map +1 -1
  75. package/build/{swift-ui-primitives/ContentUnavailableView.d.ts → swift-ui/ContentUnavailableView/index.d.ts} +3 -8
  76. package/build/swift-ui/ContentUnavailableView/index.d.ts.map +1 -0
  77. package/build/swift-ui/ContentUnavailableView/index.js +19 -0
  78. package/build/swift-ui/ContentUnavailableView/index.js.map +1 -0
  79. package/build/swift-ui/ContextMenu/Submenu.d.ts +21 -0
  80. package/build/swift-ui/ContextMenu/Submenu.d.ts.map +1 -0
  81. package/build/swift-ui/ContextMenu/Submenu.js +8 -0
  82. package/build/swift-ui/ContextMenu/Submenu.js.map +1 -0
  83. package/build/swift-ui/ContextMenu/index.d.ts +6 -87
  84. package/build/swift-ui/ContextMenu/index.d.ts.map +1 -1
  85. package/build/swift-ui/ContextMenu/index.js +11 -26
  86. package/build/swift-ui/ContextMenu/index.js.map +1 -1
  87. package/build/swift-ui/ContextMenu/types.d.ts +36 -0
  88. package/build/swift-ui/ContextMenu/types.d.ts.map +1 -0
  89. package/build/swift-ui/ContextMenu/types.js.map +1 -0
  90. package/build/swift-ui/ContextMenu/utils.d.ts +4 -4
  91. package/build/swift-ui/ContextMenu/utils.d.ts.map +1 -1
  92. package/build/swift-ui/ContextMenu/utils.js +7 -7
  93. package/build/swift-ui/ContextMenu/utils.js.map +1 -1
  94. package/build/swift-ui/DatePicker/index.d.ts +3 -21
  95. package/build/swift-ui/DatePicker/index.d.ts.map +1 -1
  96. package/build/swift-ui/DatePicker/index.js +6 -28
  97. package/build/swift-ui/DatePicker/index.js.map +1 -1
  98. package/build/{swift-ui-primitives/DisclosureGroup.d.ts → swift-ui/DisclosureGroup/index.d.ts} +2 -8
  99. package/build/swift-ui/DisclosureGroup/index.d.ts.map +1 -0
  100. package/build/swift-ui/DisclosureGroup/index.js +16 -0
  101. package/build/swift-ui/DisclosureGroup/index.js.map +1 -0
  102. package/build/{swift-ui-primitives/Form.d.ts → swift-ui/Form/index.d.ts} +2 -2
  103. package/build/swift-ui/Form/index.d.ts.map +1 -0
  104. package/build/swift-ui/Form/index.js +15 -0
  105. package/build/swift-ui/Form/index.js.map +1 -0
  106. package/build/swift-ui/Gauge/index.d.ts +4 -10
  107. package/build/swift-ui/Gauge/index.d.ts.map +1 -1
  108. package/build/swift-ui/Gauge/index.js +4 -20
  109. package/build/swift-ui/Gauge/index.js.map +1 -1
  110. package/build/swift-ui/Host/index.d.ts +2 -1
  111. package/build/swift-ui/Host/index.d.ts.map +1 -1
  112. package/build/swift-ui/Host/index.js +3 -2
  113. package/build/swift-ui/Host/index.js.map +1 -1
  114. package/build/{swift-ui-primitives/Image.d.ts → swift-ui/Image/index.d.ts} +2 -2
  115. package/build/swift-ui/Image/index.d.ts.map +1 -0
  116. package/build/{swift-ui-primitives/Image.js → swift-ui/Image/index.js} +5 -2
  117. package/build/swift-ui/Image/index.js.map +1 -0
  118. package/build/swift-ui/Label/index.d.ts +3 -10
  119. package/build/swift-ui/Label/index.d.ts.map +1 -1
  120. package/build/swift-ui/Label/index.js +3 -11
  121. package/build/swift-ui/Label/index.js.map +1 -1
  122. package/build/{swift-ui-primitives/Layout.d.ts → swift-ui/Layout/index.d.ts} +3 -3
  123. package/build/swift-ui/Layout/index.d.ts.map +1 -0
  124. package/build/{swift-ui-primitives/Layout.js → swift-ui/Layout/index.js} +15 -3
  125. package/build/swift-ui/Layout/index.js.map +1 -0
  126. package/build/swift-ui/List/index.d.ts +3 -34
  127. package/build/swift-ui/List/index.d.ts.map +1 -1
  128. package/build/swift-ui/List/index.js +7 -16
  129. package/build/swift-ui/List/index.js.map +1 -1
  130. package/build/swift-ui/Picker/index.d.ts +3 -16
  131. package/build/swift-ui/Picker/index.d.ts.map +1 -1
  132. package/build/swift-ui/Picker/index.js +7 -16
  133. package/build/swift-ui/Picker/index.js.map +1 -1
  134. package/build/swift-ui/Progress/index.d.ts +6 -19
  135. package/build/swift-ui/Progress/index.d.ts.map +1 -1
  136. package/build/swift-ui/Progress/index.js +5 -21
  137. package/build/swift-ui/Progress/index.js.map +1 -1
  138. package/build/swift-ui/Section/index.d.ts +4 -11
  139. package/build/swift-ui/Section/index.d.ts.map +1 -1
  140. package/build/swift-ui/Section/index.js +3 -11
  141. package/build/swift-ui/Section/index.js.map +1 -1
  142. package/build/swift-ui/SecureField/index.d.ts +3 -14
  143. package/build/swift-ui/SecureField/index.d.ts.map +1 -1
  144. package/build/swift-ui/SecureField/index.js +5 -14
  145. package/build/swift-ui/SecureField/index.js.map +1 -1
  146. package/build/swift-ui/ShareLink/index.d.ts +3 -10
  147. package/build/swift-ui/ShareLink/index.d.ts.map +1 -1
  148. package/build/swift-ui/ShareLink/index.js +3 -11
  149. package/build/swift-ui/ShareLink/index.js.map +1 -1
  150. package/build/swift-ui/Slider/index.d.ts +3 -15
  151. package/build/swift-ui/Slider/index.d.ts.map +1 -1
  152. package/build/swift-ui/Slider/index.js +7 -12
  153. package/build/swift-ui/Slider/index.js.map +1 -1
  154. package/build/{swift-ui-primitives/Spacer.d.ts → swift-ui/Spacer/index.d.ts} +2 -2
  155. package/build/swift-ui/Spacer/index.d.ts.map +1 -0
  156. package/build/swift-ui/Spacer/index.js +15 -0
  157. package/build/swift-ui/Spacer/index.js.map +1 -0
  158. package/build/swift-ui/Switch/index.d.ts +3 -20
  159. package/build/swift-ui/Switch/index.d.ts.map +1 -1
  160. package/build/swift-ui/Switch/index.js +7 -16
  161. package/build/swift-ui/Switch/index.js.map +1 -1
  162. package/build/{swift-ui-primitives/Text.d.ts → swift-ui/Text/index.d.ts} +2 -2
  163. package/build/swift-ui/Text/index.d.ts.map +1 -0
  164. package/build/{swift-ui-primitives/Text.js → swift-ui/Text/index.js} +5 -2
  165. package/build/swift-ui/Text/index.js.map +1 -0
  166. package/build/swift-ui/TextField/index.d.ts +4 -11
  167. package/build/swift-ui/TextField/index.d.ts.map +1 -1
  168. package/build/swift-ui/TextField/index.js +5 -14
  169. package/build/swift-ui/TextField/index.js.map +1 -1
  170. package/build/swift-ui/index.d.ts +7 -0
  171. package/build/swift-ui/index.d.ts.map +1 -1
  172. package/build/swift-ui/index.js +7 -0
  173. package/build/swift-ui/index.js.map +1 -1
  174. package/build/swift-ui/modifiers/index.d.ts +259 -0
  175. package/build/swift-ui/modifiers/index.d.ts.map +1 -0
  176. package/build/swift-ui/modifiers/index.js +224 -0
  177. package/build/swift-ui/modifiers/index.js.map +1 -0
  178. package/build/swift-ui/modifiers/utils.d.ts +15 -0
  179. package/build/swift-ui/modifiers/utils.d.ts.map +1 -0
  180. package/build/swift-ui/modifiers/utils.js +23 -0
  181. package/build/swift-ui/modifiers/utils.js.map +1 -0
  182. package/build/{swift-ui-primitives → swift-ui}/types.d.ts +47 -4
  183. package/build/swift-ui/types.d.ts.map +1 -0
  184. package/build/swift-ui/types.js +2 -0
  185. package/build/swift-ui/types.js.map +1 -0
  186. package/build/types.d.ts +3 -0
  187. package/build/types.d.ts.map +1 -1
  188. package/build/types.js.map +1 -1
  189. package/expo-module.config.json +1 -1
  190. package/ios/BottomSheetView.swift +9 -1
  191. package/ios/Button/Button.swift +1 -0
  192. package/ios/Button/ButtonProps.swift +7 -2
  193. package/ios/ColorPickerView.swift +8 -1
  194. package/ios/ContentUnavailableView.swift +3 -1
  195. package/ios/ContextMenu/ContextMenu.swift +5 -0
  196. package/ios/ContextMenu/ContextMenuRecords.swift +19 -3
  197. package/ios/DateTimePickerView.swift +8 -1
  198. package/ios/DisclosureGroupView.swift +4 -2
  199. package/ios/ExpoUIModule.swift +25 -28
  200. package/ios/FormView.swift +3 -1
  201. package/ios/Gauge/Gauge.swift +1 -0
  202. package/ios/Gauge/GaugeProps.swift +7 -1
  203. package/ios/GroupView.swift +3 -1
  204. package/ios/HStackView.swift +3 -1
  205. package/ios/HostView.swift +1 -1
  206. package/ios/ImageView.swift +3 -1
  207. package/ios/Label.swift +9 -2
  208. package/ios/List.swift +8 -2
  209. package/ios/Modifiers/CommonViewModifiers.swift +6 -3
  210. package/ios/Modifiers/View+ModifierArray.swift +27 -0
  211. package/ios/Modifiers/ViewModifierRegistry.swift +718 -0
  212. package/ios/PickerView.swift +8 -1
  213. package/ios/ProgressView.swift +8 -1
  214. package/ios/SectionView.swift +9 -20
  215. package/ios/SecureField/SecureFieldView.swift +10 -2
  216. package/ios/ShareLinkView.swift +9 -1
  217. package/ios/SliderView.swift +8 -1
  218. package/ios/SpacerView.swift +3 -1
  219. package/ios/SwitchView.swift +8 -1
  220. package/ios/TextField/TextFieldView.swift +8 -1
  221. package/ios/TextView.swift +3 -1
  222. package/ios/VStackView.swift +3 -1
  223. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar +0 -0
  224. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.md5 +1 -0
  225. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.sha1 +1 -0
  226. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.sha256 +1 -0
  227. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.sha512 +1 -0
  228. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar +0 -0
  229. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.md5 +1 -0
  230. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.sha1 +1 -0
  231. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.sha256 +1 -0
  232. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.sha512 +1 -0
  233. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module → 0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module} +22 -22
  234. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.md5 +1 -0
  235. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.sha1 +1 -0
  236. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.sha256 +1 -0
  237. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.sha512 +1 -0
  238. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom → 0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom} +1 -1
  239. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom.md5 +1 -0
  240. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom.sha1 +1 -0
  241. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom.sha256 +1 -0
  242. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom.sha512 +1 -0
  243. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  244. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  245. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  246. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  247. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  248. package/package.json +4 -4
  249. package/src/jetpack-compose/AlertDialog/index.tsx +12 -1
  250. package/src/jetpack-compose/Button/index.tsx +6 -1
  251. package/src/jetpack-compose/ContextMenu/index.tsx +6 -0
  252. package/src/jetpack-compose/DatePicker/index.tsx +5 -1
  253. package/src/jetpack-compose/Picker/index.tsx +10 -0
  254. package/src/jetpack-compose/Progress/index.tsx +20 -2
  255. package/src/jetpack-compose/Shape/index.tsx +17 -2
  256. package/src/jetpack-compose/Slider/index.tsx +6 -1
  257. package/src/jetpack-compose/Switch/index.tsx +7 -0
  258. package/src/jetpack-compose/TextInput/index.tsx +6 -1
  259. package/src/jetpack-compose/{index.tsx → index.ts} +1 -0
  260. package/src/jetpack-compose/modifiers.ts +19 -0
  261. package/src/swift-ui/BottomSheet/index.tsx +10 -19
  262. package/src/swift-ui/Button/index.tsx +11 -20
  263. package/src/swift-ui/ColorPicker/index.tsx +10 -18
  264. package/src/{swift-ui-primitives/ContentUnavailableView.tsx → swift-ui/ContentUnavailableView/index.tsx} +16 -9
  265. package/src/swift-ui/ContextMenu/Submenu.tsx +25 -0
  266. package/src/swift-ui/ContextMenu/index.tsx +23 -100
  267. package/src/swift-ui/ContextMenu/types.ts +47 -0
  268. package/src/swift-ui/ContextMenu/utils.ts +8 -13
  269. package/src/swift-ui/DatePicker/index.tsx +10 -40
  270. package/src/{swift-ui-primitives/DisclosureGroup.tsx → swift-ui/DisclosureGroup/index.tsx} +12 -6
  271. package/src/swift-ui/Form/index.tsx +30 -0
  272. package/src/swift-ui/Gauge/index.tsx +12 -23
  273. package/src/swift-ui/Host/index.tsx +7 -2
  274. package/src/{swift-ui-primitives/Image.tsx → swift-ui/Image/index.tsx} +6 -3
  275. package/src/swift-ui/Label/index.tsx +10 -15
  276. package/src/{swift-ui-primitives/Layout.tsx → swift-ui/Layout/index.tsx} +17 -4
  277. package/src/swift-ui/List/index.tsx +16 -28
  278. package/src/swift-ui/Picker/index.tsx +10 -22
  279. package/src/swift-ui/Progress/index.tsx +21 -28
  280. package/src/swift-ui/Section/index.tsx +11 -16
  281. package/src/swift-ui/SecureField/index.tsx +10 -22
  282. package/src/swift-ui/ShareLink/index.tsx +10 -15
  283. package/src/swift-ui/Slider/index.tsx +10 -18
  284. package/src/{swift-ui-primitives/Spacer.tsx → swift-ui/Spacer/index.tsx} +12 -2
  285. package/src/swift-ui/Switch/index.tsx +12 -22
  286. package/src/{swift-ui-primitives/Text.tsx → swift-ui/Text/index.tsx} +6 -2
  287. package/src/swift-ui/TextField/index.tsx +9 -21
  288. package/src/swift-ui/index.tsx +7 -0
  289. package/src/swift-ui/modifiers/index.ts +374 -0
  290. package/src/swift-ui/modifiers/utils.ts +33 -0
  291. package/src/{swift-ui-primitives → swift-ui}/types.ts +48 -4
  292. package/src/types.ts +4 -0
  293. package/swift-ui/index.d.ts +1 -0
  294. package/swift-ui/index.js +1 -0
  295. package/swift-ui/modifiers.d.ts +1 -0
  296. package/swift-ui/modifiers.js +1 -0
  297. package/build/swift-ui-primitives/ContentUnavailableView.d.ts.map +0 -1
  298. package/build/swift-ui-primitives/ContentUnavailableView.js +0 -15
  299. package/build/swift-ui-primitives/ContentUnavailableView.js.map +0 -1
  300. package/build/swift-ui-primitives/DisclosureGroup.d.ts.map +0 -1
  301. package/build/swift-ui-primitives/DisclosureGroup.js +0 -10
  302. package/build/swift-ui-primitives/DisclosureGroup.js.map +0 -1
  303. package/build/swift-ui-primitives/Form.d.ts.map +0 -1
  304. package/build/swift-ui-primitives/Form.js +0 -6
  305. package/build/swift-ui-primitives/Form.js.map +0 -1
  306. package/build/swift-ui-primitives/Image.d.ts.map +0 -1
  307. package/build/swift-ui-primitives/Image.js.map +0 -1
  308. package/build/swift-ui-primitives/Layout.d.ts.map +0 -1
  309. package/build/swift-ui-primitives/Layout.js.map +0 -1
  310. package/build/swift-ui-primitives/Section.d.ts +0 -6
  311. package/build/swift-ui-primitives/Section.d.ts.map +0 -1
  312. package/build/swift-ui-primitives/Section.js +0 -6
  313. package/build/swift-ui-primitives/Section.js.map +0 -1
  314. package/build/swift-ui-primitives/Spacer.d.ts.map +0 -1
  315. package/build/swift-ui-primitives/Spacer.js +0 -6
  316. package/build/swift-ui-primitives/Spacer.js.map +0 -1
  317. package/build/swift-ui-primitives/Text.d.ts.map +0 -1
  318. package/build/swift-ui-primitives/Text.js.map +0 -1
  319. package/build/swift-ui-primitives/index.d.ts +0 -24
  320. package/build/swift-ui-primitives/index.d.ts.map +0 -1
  321. package/build/swift-ui-primitives/index.js +0 -24
  322. package/build/swift-ui-primitives/index.js.map +0 -1
  323. package/build/swift-ui-primitives/types.d.ts.map +0 -1
  324. package/build/swift-ui-primitives/types.js.map +0 -1
  325. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar +0 -0
  326. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.md5 +0 -1
  327. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.sha1 +0 -1
  328. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.sha256 +0 -1
  329. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.sha512 +0 -1
  330. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar +0 -0
  331. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.md5 +0 -1
  332. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.sha1 +0 -1
  333. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.sha256 +0 -1
  334. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.sha512 +0 -1
  335. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.md5 +0 -1
  336. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.sha1 +0 -1
  337. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.sha256 +0 -1
  338. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.sha512 +0 -1
  339. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.md5 +0 -1
  340. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.sha1 +0 -1
  341. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.sha256 +0 -1
  342. package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.sha512 +0 -1
  343. package/src/swift-ui-primitives/Form.tsx +0 -20
  344. package/src/swift-ui-primitives/Section.tsx +0 -15
  345. package/src/swift-ui-primitives/index.tsx +0 -27
  346. package/swift-ui-primitives.d.ts +0 -1
  347. package/swift-ui-primitives.js +0 -1
  348. package/swift-ui.d.ts +0 -1
  349. package/swift-ui.js +0 -1
  350. /package/build/{swift-ui-primitives → swift-ui/ContextMenu}/types.js +0 -0
@@ -3,7 +3,13 @@
3
3
  import SwiftUI
4
4
  import ExpoModulesCore
5
5
 
6
- final class PickerProps: ExpoSwiftUI.ViewProps {
6
+ final class PickerProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
7
+ @Field var fixedSize: Bool?
8
+ @Field var frame: FrameOptions?
9
+ @Field var padding: PaddingOptions?
10
+ @Field var testID: String?
11
+ @Field var modifiers: ModifierArray?
12
+
7
13
  @Field var options: [String] = []
8
14
  @Field var selectedIndex: Int?
9
15
  @Field var variant: String?
@@ -29,6 +35,7 @@ struct PickerView: ExpoSwiftUI.View {
29
35
  }
30
36
  }
31
37
  .tint(props.color)
38
+ .modifier(CommonViewModifiers(props: props))
32
39
  #if !os(tvOS)
33
40
  .if(props.variant == "wheel", { $0.pickerStyle(.wheel) })
34
41
  .if(props.variant == "palette", { $0.pickerStyle(.palette) })
@@ -8,7 +8,13 @@ internal enum ProgressVariant: String, Enumerable {
8
8
  case linear
9
9
  }
10
10
 
11
- final class ProgressProps: ExpoSwiftUI.ViewProps {
11
+ final class ProgressProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
12
+ @Field var fixedSize: Bool?
13
+ @Field var frame: FrameOptions?
14
+ @Field var padding: PaddingOptions?
15
+ @Field var testID: String?
16
+ @Field var modifiers: ModifierArray?
17
+
12
18
  @Field var variant: ProgressVariant = .circular
13
19
  @Field var progress: Double?
14
20
  @Field var color: Color?
@@ -20,6 +26,7 @@ struct ProgressView: ExpoSwiftUI.View {
20
26
  var body: some View {
21
27
  SwiftUI.ProgressView(value: props.progress)
22
28
  .tint(props.color)
29
+ .modifier(CommonViewModifiers(props: props))
23
30
  .if(props.variant == .circular) {
24
31
  $0.progressViewStyle(.circular)
25
32
  }
@@ -3,34 +3,23 @@
3
3
  import SwiftUI
4
4
  import ExpoModulesCore
5
5
 
6
- final class SectionProps: ExpoSwiftUI.ViewProps {
7
- @Field var title: String?
8
- }
9
-
10
- struct SectionView: ExpoSwiftUI.View {
11
- @ObservedObject var props: SectionProps
12
-
13
- var body: some View {
14
- let form = Form {
15
- Section(header: Text(props.title ?? "").textCase(nil)) {
16
- Children()
17
- }
18
- }
6
+ final class SectionProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
7
+ @Field var fixedSize: Bool?
8
+ @Field var frame: FrameOptions?
9
+ @Field var padding: PaddingOptions?
10
+ @Field var testID: String?
11
+ @Field var modifiers: ModifierArray?
19
12
 
20
- if #available(iOS 16.0, tvOS 16.0, *) {
21
- form.scrollDisabled(true)
22
- } else {
23
- form
24
- }
25
- }
13
+ @Field var title: String?
26
14
  }
27
15
 
28
- internal struct SectionPrimitiveView: ExpoSwiftUI.View {
16
+ internal struct SectionView: ExpoSwiftUI.View {
29
17
  @ObservedObject var props: SectionProps
30
18
 
31
19
  var body: some View {
32
20
  Section(header: Text(props.title ?? "").textCase(nil)) {
33
21
  Children()
34
22
  }
23
+ .modifier(CommonViewModifiers(props: props))
35
24
  }
36
25
  }
@@ -1,7 +1,13 @@
1
1
  import SwiftUI
2
2
  import ExpoModulesCore
3
3
 
4
- final class SecureFieldProps: ExpoSwiftUI.ViewProps {
4
+ final class SecureFieldProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
5
+ @Field var fixedSize: Bool?
6
+ @Field var frame: FrameOptions?
7
+ @Field var padding: PaddingOptions?
8
+ @Field var testID: String?
9
+ @Field var modifiers: ModifierArray?
10
+
5
11
  @Field var defaultValue: String = ""
6
12
  @Field var placeholder: String = ""
7
13
  @Field var keyboardType: KeyboardType = KeyboardType.defaultKeyboard
@@ -24,7 +30,9 @@ struct SecureFieldView: ExpoSwiftUI.View {
24
30
  SecureField(
25
31
  props.placeholder,
26
32
  text: $textManager.text
27
- ).fixedSize(horizontal: false, vertical: true)
33
+ )
34
+ .modifier(CommonViewModifiers(props: props))
35
+ .fixedSize(horizontal: false, vertical: true)
28
36
  .onAppear { textManager.text = props.defaultValue }
29
37
  .onChange(of: textManager.text) { newValue in
30
38
  props.onValueChanged(["value": newValue])
@@ -6,7 +6,13 @@ struct Preview: Record {
6
6
  @Field var image: String
7
7
  }
8
8
 
9
- final class ShareLinkViewProps: ExpoSwiftUI.ViewProps {
9
+ final class ShareLinkViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
10
+ @Field var fixedSize: Bool?
11
+ @Field var frame: FrameOptions?
12
+ @Field var padding: PaddingOptions?
13
+ @Field var testID: String?
14
+ @Field var modifiers: ModifierArray?
15
+
10
16
  @Field var item: URL?
11
17
  @Field var subject: String?
12
18
  @Field var message: String?
@@ -37,6 +43,7 @@ struct ShareLinkView: ExpoSwiftUI.View {
37
43
  ) {
38
44
  Children()
39
45
  }
46
+ .modifier(CommonViewModifiers(props: props))
40
47
  } else {
41
48
  shareLink(
42
49
  item: item,
@@ -44,6 +51,7 @@ struct ShareLinkView: ExpoSwiftUI.View {
44
51
  message: message,
45
52
  preview: preview
46
53
  )
54
+ .modifier(CommonViewModifiers(props: props))
47
55
  }
48
56
  }
49
57
  }
@@ -3,7 +3,13 @@
3
3
  import SwiftUI
4
4
  import ExpoModulesCore
5
5
 
6
- final class SliderProps: ExpoSwiftUI.ViewProps {
6
+ final class SliderProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
7
+ @Field var fixedSize: Bool?
8
+ @Field var frame: FrameOptions?
9
+ @Field var padding: PaddingOptions?
10
+ @Field var testID: String?
11
+ @Field var modifiers: ModifierArray?
12
+
7
13
  @Field var value: Float?
8
14
  @Field var steps: Int = 0
9
15
  @Field var min: Float = 0.0
@@ -32,6 +38,7 @@ struct SliderView: ExpoSwiftUI.View {
32
38
  var body: some View {
33
39
  #if !os(tvOS)
34
40
  Slider(value: $value, in: props.min...props.max, step: getStep(props.min, props.max, props.steps) )
41
+ .modifier(CommonViewModifiers(props: props))
35
42
  .onChange(of: value, perform: { newValue in
36
43
  if props.value == newValue {
37
44
  return
@@ -7,8 +7,10 @@ internal final class SpacerViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierP
7
7
  @Field var fixedSize: Bool?
8
8
  @Field var frame: FrameOptions?
9
9
  @Field var padding: PaddingOptions?
10
- @Field var minLength: Double?
11
10
  @Field var testID: String?
11
+ @Field var modifiers: ModifierArray?
12
+
13
+ @Field var minLength: Double?
12
14
  }
13
15
 
14
16
  internal struct SpacerView: ExpoSwiftUI.View {
@@ -3,7 +3,13 @@
3
3
  import SwiftUI
4
4
  import ExpoModulesCore
5
5
 
6
- final class SwitchProps: ExpoSwiftUI.ViewProps {
6
+ final class SwitchProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
7
+ @Field var fixedSize: Bool?
8
+ @Field var frame: FrameOptions?
9
+ @Field var padding: PaddingOptions?
10
+ @Field var testID: String?
11
+ @Field var modifiers: ModifierArray?
12
+
7
13
  @Field var value: Bool
8
14
  @Field var variant: String?
9
15
  @Field var label: String?
@@ -30,6 +36,7 @@ struct SwitchView: ExpoSwiftUI.View {
30
36
  ])
31
37
  })
32
38
  .tint(props.color)
39
+ .modifier(CommonViewModifiers(props: props))
33
40
  .onReceive(props.objectWillChange, perform: {
34
41
  checked = props.value
35
42
  })
@@ -16,7 +16,13 @@ enum KeyboardType: String, Enumerable {
16
16
  case asciiCapableNumberPad = "ascii-capable-number-pad"
17
17
  }
18
18
 
19
- final class TextFieldProps: ExpoSwiftUI.ViewProps {
19
+ final class TextFieldProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
20
+ @Field var fixedSize: Bool?
21
+ @Field var frame: FrameOptions?
22
+ @Field var padding: PaddingOptions?
23
+ @Field var testID: String?
24
+ @Field var modifiers: ModifierArray?
25
+
20
26
  @Field var defaultValue: String = ""
21
27
  @Field var placeholder: String = ""
22
28
  @Field var multiline: Bool = false
@@ -102,6 +108,7 @@ struct TextFieldView: ExpoSwiftUI.View {
102
108
  )
103
109
  }
104
110
  return text.lineLimit((props.multiline && allowMultiLine()) ? props.numberOfLines : 1)
111
+ .modifier(CommonViewModifiers(props: props))
105
112
  .fixedSize(horizontal: false, vertical: true)
106
113
  .keyboardType(getKeyboardType(props.keyboardType))
107
114
  .autocorrectionDisabled(!props.autocorrection)
@@ -7,13 +7,15 @@ internal final class TextViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierPro
7
7
  @Field var fixedSize: Bool?
8
8
  @Field var frame: FrameOptions?
9
9
  @Field var padding: PaddingOptions?
10
+ @Field var testID: String?
11
+ @Field var modifiers: ModifierArray?
12
+
10
13
  @Field var text: String = ""
11
14
  @Field var weight: String?
12
15
  @Field var design: String?
13
16
  @Field var size: Double?
14
17
  @Field var lineLimit: Int?
15
18
  @Field var color: Color?
16
- @Field var testID: String?
17
19
  }
18
20
 
19
21
  internal struct TextView: ExpoSwiftUI.View {
@@ -24,11 +24,13 @@ internal final class VStackViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierP
24
24
  @Field var fixedSize: Bool?
25
25
  @Field var frame: FrameOptions?
26
26
  @Field var padding: PaddingOptions?
27
+ @Field var testID: String?
28
+ @Field var modifiers: ModifierArray?
29
+
27
30
  @Field var spacing: Double?
28
31
  @Field var useTapGesture: Bool?
29
32
  @Field var alignment: HorizontalAlignmentOptions?
30
33
  @Field var backgroundColor: Color?
31
- @Field var testID: String?
32
34
  var onTap = EventDispatcher()
33
35
  }
34
36
 
@@ -0,0 +1 @@
1
+ ab99988e09f8bda506deaa7eded3b45bfa56f444c6f55c78d7814cfb6c40918b
@@ -0,0 +1 @@
1
+ b6fd029855da3e7ceb97e20cf9dbcbf73f0b81342a24eb9e1988d7d05734fb038080702280129e643d1acab4b1ca0d9d2147d54f64906f6824659640bcc12b46
@@ -0,0 +1 @@
1
+ b1c1a4d274c028b10bac4f977b1cfb740b2b70099a3d5dda908d8672810ad77c
@@ -0,0 +1 @@
1
+ 384cd29a311455c4ae4cf149d310dcfe14a19327037155ed2d92caaa560f8dddb508848c5d53f4df052616c6a7ea375f7c71c65005b033059cbb2371347cc41c
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "expo.modules.ui",
5
5
  "module": "expo.modules.ui",
6
- "version": "0.2.0-alpha.0",
6
+ "version": "0.2.0-alpha.2",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.ui-0.2.0-alpha.0.aar",
28
- "url": "expo.modules.ui-0.2.0-alpha.0.aar",
29
- "size": 248167,
30
- "sha512": "23366fa513cf3aac1423ea91e133aa772b890de9c6171d4296286ec957522ad254bc63d31a24981706d93819109789337e767728151557e0cf3c7925f3a57de0",
31
- "sha256": "bbcfad049afe31b2fdd5d0dd78361ed075543f57dfbee132a60ca1534273cdc1",
32
- "sha1": "742fd22b12e959162b12bc7adb03c72f95f822e3",
33
- "md5": "24b83c1dfef683cfcb738812951eae82"
27
+ "name": "expo.modules.ui-0.2.0-alpha.2.aar",
28
+ "url": "expo.modules.ui-0.2.0-alpha.2.aar",
29
+ "size": 290997,
30
+ "sha512": "384cd29a311455c4ae4cf149d310dcfe14a19327037155ed2d92caaa560f8dddb508848c5d53f4df052616c6a7ea375f7c71c65005b033059cbb2371347cc41c",
31
+ "sha256": "b1c1a4d274c028b10bac4f977b1cfb740b2b70099a3d5dda908d8672810ad77c",
32
+ "sha1": "3a9278051ca06d03eeabfa2b61c325364d1ab534",
33
+ "md5": "0231f798749c8b1abc3b9d13953e3402"
34
34
  }
35
35
  ]
36
36
  },
@@ -102,13 +102,13 @@
102
102
  ],
103
103
  "files": [
104
104
  {
105
- "name": "expo.modules.ui-0.2.0-alpha.0.aar",
106
- "url": "expo.modules.ui-0.2.0-alpha.0.aar",
107
- "size": 248167,
108
- "sha512": "23366fa513cf3aac1423ea91e133aa772b890de9c6171d4296286ec957522ad254bc63d31a24981706d93819109789337e767728151557e0cf3c7925f3a57de0",
109
- "sha256": "bbcfad049afe31b2fdd5d0dd78361ed075543f57dfbee132a60ca1534273cdc1",
110
- "sha1": "742fd22b12e959162b12bc7adb03c72f95f822e3",
111
- "md5": "24b83c1dfef683cfcb738812951eae82"
105
+ "name": "expo.modules.ui-0.2.0-alpha.2.aar",
106
+ "url": "expo.modules.ui-0.2.0-alpha.2.aar",
107
+ "size": 290997,
108
+ "sha512": "384cd29a311455c4ae4cf149d310dcfe14a19327037155ed2d92caaa560f8dddb508848c5d53f4df052616c6a7ea375f7c71c65005b033059cbb2371347cc41c",
109
+ "sha256": "b1c1a4d274c028b10bac4f977b1cfb740b2b70099a3d5dda908d8672810ad77c",
110
+ "sha1": "3a9278051ca06d03eeabfa2b61c325364d1ab534",
111
+ "md5": "0231f798749c8b1abc3b9d13953e3402"
112
112
  }
113
113
  ]
114
114
  },
@@ -122,13 +122,13 @@
122
122
  },
123
123
  "files": [
124
124
  {
125
- "name": "expo.modules.ui-0.2.0-alpha.0-sources.jar",
126
- "url": "expo.modules.ui-0.2.0-alpha.0-sources.jar",
127
- "size": 17373,
128
- "sha512": "ef4131a42efe862089dbd33f757bccd3d757ac30d17729eff83c98bc82fbfda3a36f96d9c1178187aaf14aae72802d70c2882f0afc1e2b4633116a6adffeb817",
129
- "sha256": "707ccd08375682a90fb6e35a9dc4e6f31bd1b8e2443e241e490447d616cddf05",
130
- "sha1": "7b78c0361a3e0fa09c1eabc1f064cf1e9e52b777",
131
- "md5": "1378481ef4097aedce0fc8727d12eaf0"
125
+ "name": "expo.modules.ui-0.2.0-alpha.2-sources.jar",
126
+ "url": "expo.modules.ui-0.2.0-alpha.2-sources.jar",
127
+ "size": 18894,
128
+ "sha512": "b6fd029855da3e7ceb97e20cf9dbcbf73f0b81342a24eb9e1988d7d05734fb038080702280129e643d1acab4b1ca0d9d2147d54f64906f6824659640bcc12b46",
129
+ "sha256": "ab99988e09f8bda506deaa7eded3b45bfa56f444c6f55c78d7814cfb6c40918b",
130
+ "sha1": "205cb5aac195bc0632e0fe3d9b0842734ffc8c96",
131
+ "md5": "74326687662c24724b38c2a64454fc7d"
132
132
  }
133
133
  ]
134
134
  }
@@ -0,0 +1 @@
1
+ 51b8e44c8de591afb564cca40096f2923a77c03577e8aa204aa187d6dd871aa8
@@ -0,0 +1 @@
1
+ acd769c1604cc8b0ef715b2f02991e2a52a6157f5c1c101092bcbb9baadb42ffba7963415b68a9716e0274e12cec59481b8436e795f1e7d9ee11af7b3adfa523
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>expo.modules.ui</groupId>
11
11
  <artifactId>expo.modules.ui</artifactId>
12
- <version>0.2.0-alpha.0</version>
12
+ <version>0.2.0-alpha.2</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.ui</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 1dfbdb4e571d7f6434abdca55138ea887a886e1c8c6df3ab1bedb0a576f02551
@@ -0,0 +1 @@
1
+ 0b1ca33275c23c58e10e53cfdb637b81b1cc07d9daa34d0def0ec3b2d2e4f3cb92688325ecee2c9d9afb45575d71bdf1faaa65d69dca03140004d5f52bedd7f9
@@ -3,11 +3,11 @@
3
3
  <groupId>expo.modules.ui</groupId>
4
4
  <artifactId>expo.modules.ui</artifactId>
5
5
  <versioning>
6
- <latest>0.2.0-alpha.0</latest>
7
- <release>0.2.0-alpha.0</release>
6
+ <latest>0.2.0-alpha.2</latest>
7
+ <release>0.2.0-alpha.2</release>
8
8
  <versions>
9
- <version>0.2.0-alpha.0</version>
9
+ <version>0.2.0-alpha.2</version>
10
10
  </versions>
11
- <lastUpdated>20250813165921</lastUpdated>
11
+ <lastUpdated>20250817001225</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- e22f8d8ef9b0a2d3a3cd46dd37206c9b
1
+ 3082b97a312a6469219f32e0f2c16970
@@ -1 +1 @@
1
- 1a7b8d12c79dc4cee48f302a342bc9b5e0ed325c
1
+ bde0a07c71de9701e97e10a867147fcc518499b5
@@ -1 +1 @@
1
- 8f6b348a2fec6f014fe4743159d5f0ec2dec5d4dcf18e477e4f8acb5ca6ea6e3
1
+ a129b569318b20e3395910904ade09331de52525273946c1c751bc77719a0275
@@ -1 +1 @@
1
- f91aae69550122233a91720387a761c160c009e25648c9687a03f0c1d83ab471748577f90293e5958fdbcafd9b31633075bf2751240145afea0f9c3850afa68b
1
+ 79754ea6872d61b1a175057bfaf2a4250fe3c2ddf1f0dac39eceba5fd489f6ed2d3c0b7e98b825ebb92081c76624b9f4866db62d6676b1e48528b27147619050
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/ui",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "A collection of UI components",
5
5
  "scripts": {
6
6
  "build": "expo-module build",
@@ -26,13 +26,13 @@
26
26
  "license": "MIT",
27
27
  "dependencies": {},
28
28
  "devDependencies": {
29
- "@types/react": "~19.0.10",
30
- "expo-module-scripts": "^5.0.0"
29
+ "@types/react": "~19.1.10",
30
+ "expo-module-scripts": "^5.0.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "expo": "*",
34
34
  "react": "*",
35
35
  "react-native": "*"
36
36
  },
37
- "gitHead": "cb7062e2c17d1fb09522834aaaac0e19b766df62"
37
+ "gitHead": "eaa9b645058cf2233fbb27bb21a19bc605c90a88"
38
38
  }
@@ -1,5 +1,7 @@
1
1
  import { requireNativeView } from 'expo';
2
2
 
3
+ import { ExpoModifier } from '../../types';
4
+
3
5
  export type AlertDialogProps = {
4
6
  /**
5
7
  * The title of the alert dialog.
@@ -31,6 +33,9 @@ export type AlertDialogProps = {
31
33
  * Callback that is called when the user tries to dismiss the dialog.
32
34
  */
33
35
  onDismissPressed?: () => void;
36
+
37
+ /** Modifiers for the component */
38
+ modifiers?: ExpoModifier[];
34
39
  };
35
40
 
36
41
  export type NativeAlertDialogProps = AlertDialogProps;
@@ -44,5 +49,11 @@ const AlertDialogNativeView: React.ComponentType<NativeAlertDialogProps> = requi
44
49
  * Renders an `AlertDialog` component.
45
50
  */
46
51
  export function AlertDialog(props: AlertDialogProps) {
47
- return <AlertDialogNativeView {...props} />;
52
+ return (
53
+ <AlertDialogNativeView
54
+ {...props}
55
+ // @ts-expect-error
56
+ modifiers={props.modifiers?.map((m) => m.__expo_shared_object_id__)}
57
+ />
58
+ );
48
59
  }
@@ -2,7 +2,7 @@ import { requireNativeView } from 'expo';
2
2
  import { StyleProp, StyleSheet, ViewStyle } from 'react-native';
3
3
 
4
4
  import { MaterialIcon } from './types';
5
- import { ViewEvent } from '../../types';
5
+ import { ExpoModifier, ViewEvent } from '../../types';
6
6
 
7
7
  /**
8
8
  * The built-in button styles available on Android.
@@ -56,6 +56,9 @@ export type ButtonProps = {
56
56
  * Disabled state of the button.
57
57
  */
58
58
  disabled?: boolean;
59
+
60
+ /** Modifiers for the component */
61
+ modifiers?: ExpoModifier[];
59
62
  };
60
63
 
61
64
  /**
@@ -85,6 +88,8 @@ export function transformButtonProps(props: ButtonProps): NativeButtonProps {
85
88
  text: children ?? '',
86
89
  systemImage,
87
90
  onButtonPressed: onPress,
91
+ // @ts-expect-error
92
+ modifiers: props.modifiers?.map((m) => m.__expo_shared_object_id__),
88
93
  elementColors: props.elementColors
89
94
  ? props.elementColors
90
95
  : props.color
@@ -3,6 +3,7 @@ import { Children, ReactElement, ReactNode, useMemo } from 'react';
3
3
  import { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
4
4
 
5
5
  import { MenuElement, transformChildrenToElementArray } from './utils';
6
+ import { ExpoModifier } from '../../types';
6
7
  import { ButtonProps } from '../Button';
7
8
  import { PickerProps } from '../Picker';
8
9
  import { SwitchProps } from '../Switch';
@@ -70,6 +71,9 @@ export type ContextMenuProps = {
70
71
  * Optional styles to apply to the `ContextMenu`.
71
72
  */
72
73
  style?: StyleProp<ViewStyle>;
74
+
75
+ /** Modifiers for the component */
76
+ modifiers?: ExpoModifier[];
73
77
  };
74
78
 
75
79
  /**
@@ -158,6 +162,8 @@ function ContextMenu(props: ContextMenuProps) {
158
162
  onContextMenuButtonPressed={createEventHandler('onPress')}
159
163
  onContextMenuSwitchValueChanged={createEventHandler('onValueChange')}
160
164
  onContextMenuPickerOptionSelected={createEventHandler('onOptionSelected')}
165
+ // @ts-expect-error
166
+ modifiers={props.modifiers?.map((m) => m.__expo_shared_object_id__)}
161
167
  {...props}>
162
168
  {activationElement}
163
169
  </MenuNativeView>
@@ -1,7 +1,7 @@
1
1
  import { requireNativeView } from 'expo';
2
2
  import { StyleProp, ViewStyle, StyleSheet, PixelRatio } from 'react-native';
3
3
 
4
- import { ViewEvent } from '../../types';
4
+ import { ExpoModifier, ViewEvent } from '../../types';
5
5
 
6
6
  export type AndroidVariant = 'picker' | 'input';
7
7
 
@@ -47,6 +47,8 @@ export type DateTimePickerProps = {
47
47
  * @default true
48
48
  */
49
49
  is24Hour?: boolean;
50
+ /** Modifiers for the component */
51
+ modifiers?: ExpoModifier[];
50
52
  };
51
53
 
52
54
  type NativeDatePickerProps = Omit<DateTimePickerProps, 'variant' | 'onDateSelected'> & {
@@ -74,6 +76,8 @@ export function transformDateTimePickerProps(props: DateTimePickerProps): Native
74
76
  props?.onDateSelected?.(new Date(date));
75
77
  },
76
78
  variant,
79
+ // @ts-expect-error
80
+ modifiers: props.modifiers?.map((m) => m.__expo_shared_object_id__),
77
81
  style: [restStyle, { minWidth: parsedMinWidth, minHeight: parsedMinHeight }],
78
82
  };
79
83
  }
@@ -1,6 +1,8 @@
1
1
  import { requireNativeView } from 'expo';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
 
4
+ import { ExpoModifier } from '../../types';
5
+
4
6
  /**
5
7
  * Colors for picker's core elements.
6
8
  */
@@ -51,6 +53,10 @@ export type PickerProps = {
51
53
  * Picker color.
52
54
  */
53
55
  color?: string;
56
+ /** Modifiers for the component */
57
+ modifiers?: ExpoModifier[];
58
+ /** Modifiers for the individual buttons */
59
+ buttonModifiers?: ExpoModifier[];
54
60
  };
55
61
 
56
62
  const PickerNativeView: React.ComponentType<PickerProps> = requireNativeView(
@@ -75,6 +81,10 @@ export function transformPickerProps(props: PickerProps): NativePickerProps {
75
81
  }
76
82
  : undefined,
77
83
  color: props.color,
84
+ // @ts-expect-error
85
+ modifiers: props.modifiers?.map((m) => m.__expo_shared_object_id__),
86
+ // @ts-expect-error
87
+ buttonModifiers: props.buttonModifiers?.map((m) => m.__expo_shared_object_id__),
78
88
  };
79
89
  }
80
90