@expo/ui 55.0.1 → 55.0.3

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 (269) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/CONTRIBUTING.md +30 -0
  3. package/android/build.gradle +2 -2
  4. package/android/src/main/java/expo/modules/ui/AnimatedVisibilityView.kt +130 -0
  5. package/android/src/main/java/expo/modules/ui/CardView.kt +138 -34
  6. package/android/src/main/java/expo/modules/ui/CheckboxView.kt +98 -0
  7. package/android/src/main/java/expo/modules/ui/ChipView.kt +267 -142
  8. package/android/src/main/java/expo/modules/ui/DatePickerView.kt +302 -31
  9. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +204 -57
  10. package/android/src/main/java/expo/modules/ui/HorizontalFloatingToolbarView.kt +21 -8
  11. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +149 -40
  12. package/android/src/main/java/expo/modules/ui/ProgressView.kt +189 -89
  13. package/android/src/main/java/expo/modules/ui/RNHostView.kt +204 -50
  14. package/android/src/main/java/expo/modules/ui/RadioButtonView.kt +3 -7
  15. package/android/src/main/java/expo/modules/ui/SegmentedButtonView.kt +115 -0
  16. package/android/src/main/java/expo/modules/ui/SegmentedControlView.kt +35 -0
  17. package/android/src/main/java/expo/modules/ui/SliderView.kt +70 -12
  18. package/android/src/main/java/expo/modules/ui/SwitchView.kt +62 -104
  19. package/android/src/main/java/expo/modules/ui/ToggleButtonView.kt +95 -57
  20. package/android/src/main/java/expo/modules/ui/button/Button.kt +117 -158
  21. package/android/src/main/java/expo/modules/ui/button/FloatingActionButton.kt +92 -0
  22. package/android/src/main/java/expo/modules/ui/button/IconButton.kt +73 -80
  23. package/android/src/main/java/expo/modules/ui/convertibles/AnimatableFloat.kt +26 -0
  24. package/android/src/main/java/expo/modules/ui/convertibles/AnimationSpecParams.kt +93 -0
  25. package/android/src/main/java/expo/modules/ui/convertibles/GraphicsLayerParams.kt +24 -0
  26. package/android/src/main/java/expo/modules/ui/menu/DropdownMenu.kt +39 -0
  27. package/android/src/main/java/expo/modules/ui/menu/DropdownMenuItem.kt +70 -0
  28. package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +18 -0
  29. package/build/jetpack-compose/AnimatedVisibility/index.d.ts +134 -0
  30. package/build/jetpack-compose/AnimatedVisibility/index.d.ts.map +1 -0
  31. package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts +3 -0
  32. package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts.map +1 -0
  33. package/build/jetpack-compose/Button/index.d.ts +65 -51
  34. package/build/jetpack-compose/Button/index.d.ts.map +1 -1
  35. package/build/jetpack-compose/Card/index.d.ts +72 -14
  36. package/build/jetpack-compose/Card/index.d.ts.map +1 -1
  37. package/build/jetpack-compose/Checkbox/index.d.ts +73 -0
  38. package/build/jetpack-compose/Checkbox/index.d.ts.map +1 -0
  39. package/build/jetpack-compose/Chip/index.d.ts +247 -27
  40. package/build/jetpack-compose/Chip/index.d.ts.map +1 -1
  41. package/build/jetpack-compose/DatePicker/index.d.ts +137 -3
  42. package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
  43. package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts +70 -0
  44. package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts.map +1 -0
  45. package/build/jetpack-compose/DropdownMenu/index.d.ts +68 -0
  46. package/build/jetpack-compose/DropdownMenu/index.d.ts.map +1 -0
  47. package/build/jetpack-compose/FloatingActionButton/index.d.ts +150 -0
  48. package/build/jetpack-compose/FloatingActionButton/index.d.ts.map +1 -0
  49. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts +2 -2
  50. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts.map +1 -1
  51. package/build/jetpack-compose/IconButton/index.d.ts +45 -29
  52. package/build/jetpack-compose/IconButton/index.d.ts.map +1 -1
  53. package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts +17 -0
  54. package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts.map +1 -0
  55. package/build/jetpack-compose/Progress/index.d.ts +78 -35
  56. package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
  57. package/build/jetpack-compose/RadioButton/index.d.ts +2 -2
  58. package/build/jetpack-compose/RadioButton/index.d.ts.map +1 -1
  59. package/build/jetpack-compose/SegmentedButton/index.d.ts +74 -0
  60. package/build/jetpack-compose/SegmentedButton/index.d.ts.map +1 -0
  61. package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts +17 -0
  62. package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts.map +1 -0
  63. package/build/jetpack-compose/Slider/index.d.ts +34 -10
  64. package/build/jetpack-compose/Slider/index.d.ts.map +1 -1
  65. package/build/jetpack-compose/Spacer/index.d.ts +2 -2
  66. package/build/jetpack-compose/Switch/index.d.ts +25 -47
  67. package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
  68. package/build/jetpack-compose/ToggleButton/index.d.ts +60 -32
  69. package/build/jetpack-compose/ToggleButton/index.d.ts.map +1 -1
  70. package/build/jetpack-compose/index.d.ts +5 -4
  71. package/build/jetpack-compose/index.d.ts.map +1 -1
  72. package/build/jetpack-compose/modifiers/animation.d.ts +44 -0
  73. package/build/jetpack-compose/modifiers/animation.d.ts.map +1 -0
  74. package/build/jetpack-compose/modifiers/index.d.ts +68 -4
  75. package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
  76. package/build/swift-ui/AccessoryWidgetBackground/index.d.ts +4 -0
  77. package/build/swift-ui/AccessoryWidgetBackground/index.d.ts.map +1 -0
  78. package/build/swift-ui/ConfirmationDialog/index.d.ts.map +1 -1
  79. package/build/swift-ui/ContextMenu/index.d.ts.map +1 -1
  80. package/build/swift-ui/ControlGroup/index.d.ts +29 -0
  81. package/build/swift-ui/ControlGroup/index.d.ts.map +1 -0
  82. package/build/swift-ui/Gauge/index.d.ts.map +1 -1
  83. package/build/swift-ui/Image/index.d.ts +7 -1
  84. package/build/swift-ui/Image/index.d.ts.map +1 -1
  85. package/build/swift-ui/Label/index.d.ts.map +1 -1
  86. package/build/swift-ui/LabeledContent/index.d.ts.map +1 -1
  87. package/build/swift-ui/Menu/index.d.ts.map +1 -1
  88. package/build/swift-ui/Picker/index.d.ts.map +1 -1
  89. package/build/swift-ui/Popover/index.d.ts.map +1 -1
  90. package/build/swift-ui/ProgressView/index.d.ts +1 -5
  91. package/build/swift-ui/ProgressView/index.d.ts.map +1 -1
  92. package/build/swift-ui/Section/index.d.ts.map +1 -1
  93. package/build/swift-ui/Slider/index.d.ts.map +1 -1
  94. package/build/swift-ui/SlotView.d.ts +5 -0
  95. package/build/swift-ui/SlotView.d.ts.map +1 -0
  96. package/build/swift-ui/Stepper/index.d.ts +3 -3
  97. package/build/swift-ui/Stepper/index.d.ts.map +1 -1
  98. package/build/swift-ui/Text/index.d.ts +33 -1
  99. package/build/swift-ui/Text/index.d.ts.map +1 -1
  100. package/build/swift-ui/index.d.ts +2 -0
  101. package/build/swift-ui/index.d.ts.map +1 -1
  102. package/build/swift-ui/modifiers/index.d.ts +54 -1
  103. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  104. package/build/swift-ui/modifiers/shapes/index.d.ts +2 -2
  105. package/build/swift-ui/types.d.ts +7 -0
  106. package/build/swift-ui/types.d.ts.map +1 -1
  107. package/expo-module.config.json +1 -1
  108. package/ios/AccessoryWidgetBackgroundView.swift +27 -0
  109. package/ios/BottomSheetView.swift +1 -6
  110. package/ios/ClosedRangeDateRecord.swift +10 -0
  111. package/ios/ColorPickerView.swift +9 -8
  112. package/ios/ConfirmationDialog/ConfirmationDialog.swift +7 -15
  113. package/ios/ConfirmationDialog/ConfirmationDialogProps.swift +0 -5
  114. package/ios/ContextMenu/ContextMenu.swift +27 -22
  115. package/ios/ContextMenu/ContextMenuRecords.swift +0 -6
  116. package/ios/ControlGroupView.swift +33 -0
  117. package/ios/DatePickerView.swift +7 -5
  118. package/ios/DisclosureGroupView.swift +5 -7
  119. package/ios/ExpoUIModule.swift +10 -32
  120. package/ios/GaugeView.swift +4 -26
  121. package/ios/HostView.swift +1 -2
  122. package/ios/ImageView.swift +22 -11
  123. package/ios/Label.swift +2 -17
  124. package/ios/LabeledContentView.swift +3 -27
  125. package/ios/ListView.swift +6 -14
  126. package/ios/Menu/MenuRecords.swift +0 -2
  127. package/ios/Menu/MenuView.swift +2 -5
  128. package/ios/Modifiers/DefaultScrollAnchorForRoleModifier.swift +32 -0
  129. package/ios/Modifiers/DefaultScrollAnchorModifier.swift +16 -0
  130. package/ios/Modifiers/ResizableModifier.swift +24 -0
  131. package/ios/Modifiers/Rotation3DEffectModifier.swift +20 -0
  132. package/ios/Modifiers/View+ModifierArray.swift +29 -0
  133. package/ios/Modifiers/ViewModifierRegistry.swift +37 -3
  134. package/ios/Modifiers/WidgetModifiers.swift +46 -0
  135. package/ios/Picker/PickerView.swift +8 -16
  136. package/ios/Popover/PopoverProps.swift +0 -4
  137. package/ios/Popover/PopoverView.swift +5 -11
  138. package/ios/ProgressView.swift +0 -5
  139. package/ios/RNHostView.swift +91 -10
  140. package/ios/SectionView.swift +9 -17
  141. package/ios/SecureFieldView.swift +0 -1
  142. package/ios/ShareLink/ShareLinkView.swift +1 -1
  143. package/ios/SliderView.swift +16 -31
  144. package/ios/SlotView.swift +38 -0
  145. package/ios/StepperView.swift +12 -16
  146. package/ios/TextFieldView.swift +0 -1
  147. package/ios/TextView.swift +37 -1
  148. package/ios/Toggle/ToggleView.swift +5 -7
  149. package/ios/UIBaseView.swift +34 -3
  150. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar +0 -0
  151. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.md5 +1 -0
  152. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha1 +1 -0
  153. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha256 +1 -0
  154. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha512 +1 -0
  155. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar +0 -0
  156. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.md5 +1 -0
  157. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha1 +1 -0
  158. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha256 +1 -0
  159. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha512 +1 -0
  160. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.1/expo.modules.ui-55.0.1.module → 55.0.3/expo.modules.ui-55.0.3.module} +22 -22
  161. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.md5 +1 -0
  162. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha1 +1 -0
  163. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha256 +1 -0
  164. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha512 +1 -0
  165. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.1/expo.modules.ui-55.0.1.pom → 55.0.3/expo.modules.ui-55.0.3.pom} +1 -1
  166. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.md5 +1 -0
  167. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha1 +1 -0
  168. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha256 +1 -0
  169. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha512 +1 -0
  170. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  171. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  172. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  173. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  174. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  175. package/package.json +5 -2
  176. package/src/jetpack-compose/AnimatedVisibility/index.tsx +206 -0
  177. package/src/jetpack-compose/AnimatedVisibility/symbols.ts +8 -0
  178. package/src/jetpack-compose/Button/index.tsx +69 -92
  179. package/src/jetpack-compose/Card/index.tsx +105 -29
  180. package/src/jetpack-compose/Checkbox/index.tsx +126 -0
  181. package/src/jetpack-compose/Chip/index.tsx +391 -51
  182. package/src/jetpack-compose/DatePicker/index.tsx +215 -6
  183. package/src/jetpack-compose/DropdownMenu/DropdownMenuItem.tsx +126 -0
  184. package/src/jetpack-compose/DropdownMenu/index.tsx +107 -0
  185. package/src/jetpack-compose/FloatingActionButton/index.tsx +207 -0
  186. package/src/jetpack-compose/HorizontalFloatingToolbar/index.tsx +4 -2
  187. package/src/jetpack-compose/IconButton/index.tsx +49 -56
  188. package/src/jetpack-compose/MultiChoiceSegmentedButtonRow/index.tsx +34 -0
  189. package/src/jetpack-compose/Progress/index.tsx +120 -62
  190. package/src/jetpack-compose/RadioButton/index.tsx +8 -9
  191. package/src/jetpack-compose/SegmentedButton/index.tsx +109 -0
  192. package/src/jetpack-compose/SingleChoiceSegmentedButtonRow/index.tsx +34 -0
  193. package/src/jetpack-compose/Slider/index.tsx +76 -29
  194. package/src/jetpack-compose/Spacer/index.tsx +2 -2
  195. package/src/jetpack-compose/Switch/index.tsx +32 -84
  196. package/src/jetpack-compose/ToggleButton/index.tsx +67 -43
  197. package/src/jetpack-compose/index.ts +5 -4
  198. package/src/jetpack-compose/modifiers/animation.ts +37 -0
  199. package/src/jetpack-compose/modifiers/index.ts +86 -6
  200. package/src/swift-ui/AccessoryWidgetBackground/index.tsx +12 -0
  201. package/src/swift-ui/ConfirmationDialog/index.tsx +4 -12
  202. package/src/swift-ui/ContextMenu/index.tsx +6 -20
  203. package/src/swift-ui/ControlGroup/index.tsx +59 -0
  204. package/src/swift-ui/Gauge/index.tsx +5 -20
  205. package/src/swift-ui/Image/index.tsx +7 -1
  206. package/src/swift-ui/Label/index.tsx +2 -5
  207. package/src/swift-ui/LabeledContent/index.tsx +3 -12
  208. package/src/swift-ui/Menu/index.tsx +2 -6
  209. package/src/swift-ui/Picker/index.tsx +4 -11
  210. package/src/swift-ui/Popover/index.tsx +3 -12
  211. package/src/swift-ui/ProgressView/index.tsx +1 -3
  212. package/src/swift-ui/Section/index.tsx +4 -9
  213. package/src/swift-ui/Slider/index.tsx +4 -12
  214. package/src/swift-ui/SlotView.tsx +8 -0
  215. package/src/swift-ui/Stepper/index.tsx +7 -7
  216. package/src/swift-ui/Text/index.tsx +66 -2
  217. package/src/swift-ui/index.tsx +2 -0
  218. package/src/swift-ui/modifiers/index.ts +87 -1
  219. package/src/swift-ui/types.ts +5 -0
  220. package/android/src/main/java/expo/modules/ui/FilterChipView.kt +0 -59
  221. package/android/src/main/java/expo/modules/ui/PickerView.kt +0 -161
  222. package/android/src/main/java/expo/modules/ui/TextButtonView.kt +0 -33
  223. package/android/src/main/java/expo/modules/ui/menu/ContextMenu.kt +0 -183
  224. package/android/src/main/java/expo/modules/ui/menu/ContextMenuRecords.kt +0 -64
  225. package/build/jetpack-compose/Button/types.d.ts +0 -5
  226. package/build/jetpack-compose/Button/types.d.ts.map +0 -1
  227. package/build/jetpack-compose/ContextMenu/Submenu.d.ts +0 -17
  228. package/build/jetpack-compose/ContextMenu/Submenu.d.ts.map +0 -1
  229. package/build/jetpack-compose/ContextMenu/index.d.ts +0 -65
  230. package/build/jetpack-compose/ContextMenu/index.d.ts.map +0 -1
  231. package/build/jetpack-compose/ContextMenu/utils.d.ts +0 -24
  232. package/build/jetpack-compose/ContextMenu/utils.d.ts.map +0 -1
  233. package/build/jetpack-compose/FilterChip/index.d.ts +0 -49
  234. package/build/jetpack-compose/FilterChip/index.d.ts.map +0 -1
  235. package/build/jetpack-compose/Picker/index.d.ts +0 -62
  236. package/build/jetpack-compose/Picker/index.d.ts.map +0 -1
  237. package/build/jetpack-compose/TextButton/index.d.ts +0 -29
  238. package/build/jetpack-compose/TextButton/index.d.ts.map +0 -1
  239. package/ios/ConfirmationDialog/ConfirmationDialogComponents.swift +0 -26
  240. package/ios/ContextMenu/ContextMenuComponents.swift +0 -37
  241. package/ios/Menu/MenuComponents.swift +0 -12
  242. package/ios/Picker/PickerComponents.swift +0 -24
  243. package/ios/Popover/PopoverComponents.swift +0 -18
  244. package/ios/SectionComponents.swift +0 -34
  245. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar +0 -0
  246. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.md5 +0 -1
  247. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.sha1 +0 -1
  248. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.sha256 +0 -1
  249. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.sha512 +0 -1
  250. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar +0 -0
  251. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.md5 +0 -1
  252. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.sha1 +0 -1
  253. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.sha256 +0 -1
  254. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.sha512 +0 -1
  255. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.md5 +0 -1
  256. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.sha1 +0 -1
  257. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.sha256 +0 -1
  258. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.sha512 +0 -1
  259. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.md5 +0 -1
  260. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.sha1 +0 -1
  261. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.sha256 +0 -1
  262. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.sha512 +0 -1
  263. package/src/jetpack-compose/Button/types.ts +0 -57
  264. package/src/jetpack-compose/ContextMenu/Submenu.tsx +0 -21
  265. package/src/jetpack-compose/ContextMenu/index.tsx +0 -149
  266. package/src/jetpack-compose/ContextMenu/utils.ts +0 -144
  267. package/src/jetpack-compose/FilterChip/index.tsx +0 -89
  268. package/src/jetpack-compose/Picker/index.tsx +0 -90
  269. package/src/jetpack-compose/TextButton/index.tsx +0 -55
@@ -1,183 +0,0 @@
1
- package expo.modules.ui.menu
2
-
3
- import androidx.compose.foundation.background
4
- import androidx.compose.foundation.layout.Arrangement
5
- import androidx.compose.foundation.layout.Box
6
- import androidx.compose.foundation.layout.Row
7
- import androidx.compose.foundation.layout.fillMaxWidth
8
- import androidx.compose.foundation.layout.padding
9
- import androidx.compose.foundation.layout.wrapContentSize
10
- import androidx.compose.material3.DropdownMenu
11
- import androidx.compose.material3.DropdownMenuItem
12
- import androidx.compose.material3.HorizontalDivider
13
- import androidx.compose.material3.Icon
14
- import androidx.compose.material3.MaterialTheme
15
- import androidx.compose.material3.MenuDefaults
16
- import androidx.compose.material3.MenuItemColors
17
- import androidx.compose.material3.Text
18
- import androidx.compose.runtime.Composable
19
- import androidx.compose.runtime.CompositionLocalProvider
20
- import androidx.compose.runtime.MutableState
21
- import androidx.compose.runtime.compositionLocalOf
22
- import androidx.compose.runtime.mutableStateOf
23
- import androidx.compose.runtime.remember
24
- import androidx.compose.ui.Alignment
25
- import androidx.compose.ui.Modifier
26
- import androidx.compose.ui.unit.dp
27
- import expo.modules.kotlin.viewevent.ViewEventCallback
28
- import expo.modules.kotlin.views.ComposableScope
29
- import expo.modules.kotlin.views.FunctionalComposableScope
30
- import expo.modules.ui.ModifierRegistry
31
- import expo.modules.ui.ThemedHybridSwitch
32
- import expo.modules.ui.compose
33
- import expo.modules.ui.composeOrNull
34
- import expo.modules.ui.getImageVector
35
-
36
- /**
37
- * CompositionLocal that allows child composables (like Button) to trigger ContextMenu expansion.
38
- * When a Button is inside a ContextMenu, it can use this to open the menu on click.
39
- */
40
- val LocalContextMenuExpanded = compositionLocalOf<MutableState<Boolean>?> { null }
41
-
42
- @Composable
43
- private fun SectionTitle(text: String) {
44
- Text(
45
- text = text,
46
- style = MaterialTheme.typography.labelSmall,
47
- color = MaterialTheme.colorScheme.onSurfaceVariant,
48
- modifier = Modifier
49
- .fillMaxWidth()
50
- .padding(start = 16.dp, top = 8.dp, end = 16.dp, bottom = 4.dp)
51
- )
52
- }
53
-
54
- @Composable
55
- fun FlatMenu(elements: Array<ContextMenuElement>, sectionTitle: String?, dispatchers: ContextMenuDispatchers, expanded: MutableState<Boolean>) {
56
- sectionTitle?.takeIf { !it.isEmpty() }?.let {
57
- SectionTitle(it)
58
- }
59
- elements.forEachIndexed { index, element ->
60
- val id = element.contextMenuElementID
61
- element.button?.let {
62
- DropdownMenuItem(
63
- colors = MenuItemColors(
64
- textColor = it.elementColors.contentColor.compose,
65
- leadingIconColor = it.elementColors.contentColor.compose,
66
- trailingIconColor = it.elementColors.contentColor.compose,
67
- disabledTextColor = it.elementColors.disabledContentColor.compose,
68
- disabledLeadingIconColor = it.elementColors.disabledContentColor.compose,
69
- disabledTrailingIconColor = it.elementColors.disabledContentColor.compose
70
- ),
71
- enabled = !it.disabled,
72
- modifier = Modifier.background(it.elementColors.containerColor.compose),
73
- text = { Text(it.text) },
74
- leadingIcon = it.leadingIcon?.let { iconName ->
75
- {
76
- getImageVector(iconName)?.let { imageVector ->
77
- Icon(
78
- imageVector = imageVector,
79
- contentDescription = iconName
80
- )
81
- }
82
- }
83
- },
84
- trailingIcon = it.trailingIcon?.let { iconName ->
85
- {
86
- getImageVector(iconName)?.let { imageVector ->
87
- Icon(
88
- imageVector = imageVector,
89
- contentDescription = iconName
90
- )
91
- }
92
- }
93
- },
94
- onClick = {
95
- dispatchers.buttonPressed(ContextMenuButtonPressedEvent(id))
96
- expanded.value = false
97
- }
98
- )
99
- }
100
-
101
- element.switch?.let {
102
- DropdownMenuItem(
103
- text = {
104
- Row(verticalAlignment = Alignment.CenterVertically) {
105
- Text(it.label)
106
- Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.End) {
107
- ThemedHybridSwitch(
108
- variant = it.variant,
109
- checked = it.value,
110
- onCheckedChange = null,
111
- colors = it.elementColors,
112
- modifier = Modifier
113
- .padding(horizontal = 5.dp)
114
- .wrapContentSize(Alignment.CenterEnd)
115
- )
116
- }
117
- }
118
- },
119
- modifier = Modifier.wrapContentSize(Alignment.Center),
120
- onClick = {
121
- dispatchers.switchCheckedChanged(
122
- ContextMenuSwitchValueChangeEvent(!it.value, id)
123
- )
124
- expanded.value = false
125
- }
126
- )
127
- }
128
-
129
- element.submenu?.let {
130
- HorizontalDivider()
131
- FlatMenu(it.elements, it.button.text, dispatchers, expanded)
132
- }
133
- }
134
- }
135
-
136
- data class ContextMenuDispatchers(
137
- val buttonPressed: ViewEventCallback<ContextMenuButtonPressedEvent>,
138
- val switchCheckedChanged: ViewEventCallback<ContextMenuSwitchValueChangeEvent>
139
- )
140
-
141
- @Composable
142
- fun FunctionalComposableScope.ContextMenuContent(
143
- props: ContextMenuProps,
144
- onContextMenuButtonPressed: (ContextMenuButtonPressedEvent) -> Unit,
145
- onContextMenuSwitchValueChanged: (ContextMenuSwitchValueChangeEvent) -> Unit,
146
- onExpandedChanged: (ExpandedChangedEvent) -> Unit
147
- ) {
148
- val expanded = remember { mutableStateOf(false) }
149
- val elements = props.elements
150
- val color = props.color
151
-
152
- // Provide expanded state to children via CompositionLocal
153
- // This allows Button children to trigger menu expansion
154
- CompositionLocalProvider(LocalContextMenuExpanded provides expanded) {
155
- Box(modifier = ModifierRegistry.applyModifiers(props.modifiers, appContext, composableScope, globalEventDispatcher)) {
156
- // Trigger button - Button will automatically expand menu when clicked
157
- Children(ComposableScope())
158
-
159
- DropdownMenu(
160
- containerColor = color?.composeOrNull ?: MenuDefaults.containerColor,
161
- expanded = expanded.value,
162
- onDismissRequest = {
163
- expanded.value = false
164
- onExpandedChanged(ExpandedChangedEvent(false))
165
- }
166
- ) {
167
- FlatMenu(
168
- elements,
169
- null,
170
- dispatchers = ContextMenuDispatchers(
171
- buttonPressed = onContextMenuButtonPressed,
172
- switchCheckedChanged = onContextMenuSwitchValueChanged
173
- ),
174
- expanded = expanded
175
- )
176
- }
177
- }
178
- }
179
- }
180
-
181
- data class ExpandedChangedEvent(
182
- @expo.modules.kotlin.records.Field val expanded: Boolean
183
- ) : expo.modules.kotlin.records.Record
@@ -1,64 +0,0 @@
1
- package expo.modules.ui.menu
2
-
3
- import android.graphics.Color
4
- import expo.modules.kotlin.records.Field
5
- import expo.modules.kotlin.records.Record
6
- import expo.modules.kotlin.types.Enumerable
7
- import expo.modules.kotlin.views.ComposeProps
8
- import expo.modules.ui.ModifierList
9
- import expo.modules.ui.SwitchColors
10
- import expo.modules.ui.ValueChangeEvent
11
- import expo.modules.ui.button.ButtonColors
12
- import expo.modules.ui.button.ButtonPressedEvent
13
- import expo.modules.ui.button.ButtonVariant
14
- import java.io.Serializable
15
-
16
- enum class ActivationMethod(val value: String) : Enumerable {
17
- SINGLE_PRESS("singlePress"),
18
- LONG_PRESS("longPress")
19
- }
20
-
21
- data class Submenu(
22
- @Field val elements: Array<ContextMenuElement> = emptyArray(),
23
- @Field val button: ContextMenuButtonProps
24
- ) : Record, Serializable
25
-
26
- data class ContextMenuElement(
27
- @Field var button: ContextMenuButtonProps? = null,
28
- @Field var switch: ContextMenuSwitchProps? = null,
29
- @Field var submenu: Submenu? = null,
30
- @Field var contextMenuElementID: String
31
- ) : Record, Serializable
32
-
33
- data class ContextMenuProps(
34
- val text: String = "",
35
- val elements: Array<ContextMenuElement> = emptyArray(),
36
- val activationMethod: ActivationMethod = ActivationMethod.SINGLE_PRESS,
37
- val color: Color? = null,
38
- val modifiers: ModifierList = emptyList()
39
- ) : ComposeProps
40
-
41
- class ContextMenuButtonProps(
42
- @Field val text: String = "",
43
- @Field val variant: ButtonVariant? = ButtonVariant.DEFAULT,
44
- @Field val elementColors: ButtonColors = ButtonColors(),
45
- @Field val leadingIcon: String? = null,
46
- @Field val trailingIcon: String? = null,
47
- @Field val disabled: Boolean = false
48
- ) : Record, Serializable
49
-
50
- class ContextMenuSwitchProps(
51
- @Field val value: Boolean = false,
52
- @Field val label: String = "",
53
- @Field var variant: String = "",
54
- @Field var elementColors: SwitchColors = SwitchColors()
55
- ) : Record, Serializable
56
-
57
- open class ContextMenuButtonPressedEvent(
58
- @Field val contextMenuElementID: String
59
- ) : ButtonPressedEvent()
60
-
61
- class ContextMenuSwitchValueChangeEvent(
62
- @Field override val value: Boolean = false,
63
- @Field val contextMenuElementID: String
64
- ) : ValueChangeEvent()
@@ -1,5 +0,0 @@
1
- type Variant = 'rounded' | 'twotone' | 'outlined' | 'filled' | 'sharp';
2
- type Icon = 'AccountBox' | 'AccountCircle' | 'Add' | 'AddCircle' | 'ArrowBack' | 'ArrowDropDown' | 'ArrowForward' | 'Build' | 'Call' | 'Check' | 'CheckCircle' | 'Clear' | 'Close' | 'Contrast' | 'Create' | 'DarkMode' | 'DateRange' | 'Delete' | 'Done' | 'Edit' | 'Email' | 'ExitToApp' | 'Face' | 'Favorite' | 'FavoriteBorder' | 'Home' | 'Info' | 'KeyboardArrowDown' | 'KeyboardArrowLeft' | 'KeyboardArrowRight' | 'KeyboardArrowUp' | 'LightMode' | 'List' | 'LocationOn' | 'Lock' | 'MailOutline' | 'Menu' | 'MoreVert' | 'Notifications' | 'Person' | 'Phone' | 'Place' | 'PlayArrow' | 'Refresh' | 'Search' | 'Send' | 'Settings' | 'Share' | 'ShoppingCart' | 'Star' | 'ThumbUp' | 'Warning';
3
- export type MaterialIcon = `${Variant}.${Icon}`;
4
- export {};
5
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Button/types.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvE,KAAK,IAAI,GACL,YAAY,GACZ,eAAe,GACf,KAAK,GACL,WAAW,GACX,WAAW,GACX,eAAe,GACf,cAAc,GACd,OAAO,GACP,MAAM,GACN,OAAO,GACP,aAAa,GACb,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,UAAU,GACV,WAAW,GACX,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,WAAW,GACX,MAAM,GACN,UAAU,GACV,gBAAgB,GAChB,MAAM,GACN,MAAM,GACN,mBAAmB,GACnB,mBAAmB,GACnB,oBAAoB,GACpB,iBAAiB,GACjB,WAAW,GACX,MAAM,GACN,YAAY,GACZ,MAAM,GACN,aAAa,GACb,MAAM,GACN,UAAU,GACV,eAAe,GACf,QAAQ,GACR,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,QAAQ,GACR,MAAM,GACN,UAAU,GACV,OAAO,GACP,cAAc,GACd,MAAM,GACN,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC"}
@@ -1,17 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { ButtonProps } from '../Button';
3
- /**
4
- * Props of the `Submenu` component.
5
- */
6
- export type SubmenuProps = {
7
- /**
8
- * The button that will be used to expand the submenu. On Android the `text` prop of the `Button` will be used as a section title.
9
- */
10
- button: ReactElement<ButtonProps>;
11
- /**
12
- * Children of the submenu. Only `Button`, `Switch`, `Picker` and `Submenu` elements should be used.
13
- */
14
- children: ReactNode;
15
- };
16
- export declare function Submenu(props: SubmenuProps): import("react").JSX.Element;
17
- //# sourceMappingURL=Submenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Submenu.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/ContextMenu/Submenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C"}
@@ -1,65 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { NativeSyntheticEvent, StyleProp, ViewStyle, type ColorValue } from 'react-native';
3
- import { SubmenuProps } from './Submenu';
4
- import { ModifierConfig } from '../../types';
5
- import { ButtonProps } from '../Button';
6
- import { PickerProps } from '../Picker';
7
- import { SwitchProps } from '../Switch';
8
- type SubmenuElement = ReactElement<ButtonProps> | ReactElement<SwitchProps> | ReactElement<PickerProps> | ReactElement<SubmenuProps>;
9
- export type ContextMenuContentProps = {
10
- children: SubmenuElement | SubmenuElement[];
11
- };
12
- /**
13
- * @hidden
14
- */
15
- export type EventHandlers = Record<string, Record<string, (event: NativeSyntheticEvent<any>) => void>>;
16
- /**
17
- * @hidden
18
- */
19
- export type ContextMenuElementBase = {
20
- contextMenuElementID: string;
21
- };
22
- /**
23
- * Props of the `ContextMenu` component.
24
- */
25
- export type ContextMenuProps = {
26
- /**
27
- * The contents of the submenu are used as an anchor for the context menu.
28
- * The children will be wrapped in a pressable element, which triggers opening of the context menu.
29
- */
30
- children: ReactNode;
31
- /**
32
- * The color of the container holding the context menu items.
33
- */
34
- color?: ColorValue;
35
- /**
36
- * Optional styles to apply to the `ContextMenu`.
37
- */
38
- style?: StyleProp<ViewStyle>;
39
- /**
40
- * Modifiers for the component.
41
- */
42
- modifiers?: ModifierConfig[];
43
- };
44
- export declare function Items(props: ContextMenuContentProps): import("react").JSX.Element;
45
- export declare namespace Items {
46
- var tag: string;
47
- }
48
- export declare function Trigger(props: {
49
- children: React.ReactNode;
50
- }): import("react").JSX.Element;
51
- export declare namespace Trigger {
52
- var tag: string;
53
- }
54
- export declare function Preview(props: {
55
- children: React.ReactNode;
56
- }): import("react").JSX.Element;
57
- declare function ContextMenu(props: ContextMenuProps): import("react").JSX.Element;
58
- declare namespace ContextMenu {
59
- var Trigger: typeof import(".").Trigger;
60
- var Preview: typeof import(".").Preview;
61
- var Items: typeof import(".").Items;
62
- }
63
- export { ContextMenu };
64
- export { Submenu } from './Submenu';
65
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/ContextMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,YAAY,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAQxC,KAAK,cAAc,GACf,YAAY,CAAC,WAAW,CAAC,GACzB,YAAY,CAAC,WAAW,CAAC,GACzB,YAAY,CAAC,WAAW,CAAC,GACzB,YAAY,CAAC,YAAY,CAAC,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,cAAc,GAAG,cAAc,EAAE,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAC3D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IAAE,oBAAoB,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAyBF,wBAAgB,KAAK,CAAC,KAAK,EAAE,uBAAuB,+BAEnD;yBAFe,KAAK;;;AAKrB,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAE3D;yBAFe,OAAO;;;AAKvB,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAE3D;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAsC3C;kBAtCQ,WAAW;;;;;AA4CpB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -1,24 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ContextMenuElementBase, EventHandlers } from './index';
3
- import { NativeButtonProps } from '../Button';
4
- import { PickerProps } from '../Picker';
5
- import { SwitchProps } from '../Switch';
6
- type ButtonMenuElement = {
7
- button: NativeButtonProps;
8
- } & ContextMenuElementBase;
9
- type SwitchMenuElement = {
10
- switch: SwitchProps;
11
- } & ContextMenuElementBase;
12
- type PickerMenuElement = {
13
- picker: PickerProps;
14
- } & ContextMenuElementBase;
15
- type SubmenuElement = {
16
- submenu: {
17
- elements: MenuElement[];
18
- button: NativeButtonProps;
19
- };
20
- } & ContextMenuElementBase;
21
- export type MenuElement = ButtonMenuElement | SwitchMenuElement | PickerMenuElement | SubmenuElement;
22
- export declare function transformChildrenToElementArray(children: ReactNode, eventHandlersMap: EventHandlers): MenuElement[];
23
- export {};
24
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/ContextMenu/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1E,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAuB,iBAAiB,EAAwB,MAAM,WAAW,CAAC;AACzF,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAGhD,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,iBAAiB,CAAC;CAC3B,GAAG,sBAAsB,CAAC;AAE3B,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,WAAW,CAAC;CACrB,GAAG,sBAAsB,CAAC;AAE3B,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,WAAW,CAAC;CACrB,GAAG,sBAAsB,CAAC;AAE3B,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE;QACP,QAAQ,EAAE,WAAW,EAAE,CAAC;QACxB,MAAM,EAAE,iBAAiB,CAAC;KAC3B,CAAC;CACH,GAAG,sBAAsB,CAAC;AAE3B,MAAM,MAAM,WAAW,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,CAAC;AAInB,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,SAAS,EACnB,gBAAgB,EAAE,aAAa,GAC9B,WAAW,EAAE,CAIf"}
@@ -1,49 +0,0 @@
1
- import { ExpoModifier } from '../../types';
2
- export type FilterChipProps = {
3
- /**
4
- * Whether the chip is currently selected.
5
- */
6
- selected: boolean;
7
- /**
8
- * The text label to display on the chip.
9
- */
10
- label: string;
11
- /**
12
- * Whether the chip is enabled and can be interacted with.
13
- */
14
- enabled?: boolean;
15
- /**
16
- * Callback fired when the chip is clicked.
17
- */
18
- onPress?: () => void;
19
- /**
20
- * Modifiers for the component.
21
- */
22
- modifiers?: ExpoModifier[];
23
- /**
24
- * Children containing LeadingIcon and TrailingIcon slots.
25
- */
26
- children?: React.ReactNode;
27
- };
28
- type SlotChildProps = {
29
- children: React.ReactNode;
30
- };
31
- /**
32
- * Leading icon slot for FilterChip.
33
- */
34
- declare function FilterChipLeadingIcon(props: SlotChildProps): import("react").JSX.Element;
35
- /**
36
- * Trailing icon slot for FilterChip.
37
- */
38
- declare function FilterChipTrailingIcon(props: SlotChildProps): import("react").JSX.Element;
39
- /**
40
- * A filter chip component following Material 3 design guidelines.
41
- * Supports slot-based `LeadingIcon` and `TrailingIcon` children.
42
- */
43
- declare function FilterChipComponent(props: FilterChipProps): import("react").JSX.Element;
44
- declare namespace FilterChipComponent {
45
- var LeadingIcon: typeof FilterChipLeadingIcon;
46
- var TrailingIcon: typeof FilterChipTrailingIcon;
47
- }
48
- export { FilterChipComponent as FilterChip };
49
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/FilterChip/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAmBF;;GAEG;AACH,iBAAS,qBAAqB,CAAC,KAAK,EAAE,cAAc,+BAEnD;AAED;;GAEG;AACH,iBAAS,sBAAsB,CAAC,KAAK,EAAE,cAAc,+BAEpD;AAED;;;GAGG;AACH,iBAAS,mBAAmB,CAAC,KAAK,EAAE,eAAe,+BAYlD;kBAZQ,mBAAmB;;;;AAiB5B,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,CAAC"}
@@ -1,62 +0,0 @@
1
- import { type ColorValue } from 'react-native';
2
- import { ExpoModifier } from '../../types';
3
- /**
4
- * Colors for picker's core elements.
5
- */
6
- export type PickerElementColors = {
7
- activeBorderColor?: ColorValue;
8
- activeContentColor?: ColorValue;
9
- inactiveBorderColor?: ColorValue;
10
- inactiveContentColor?: ColorValue;
11
- disabledActiveBorderColor?: ColorValue;
12
- disabledActiveContentColor?: ColorValue;
13
- disabledInactiveBorderColor?: ColorValue;
14
- disabledInactiveContentColor?: ColorValue;
15
- activeContainerColor?: ColorValue;
16
- inactiveContainerColor?: ColorValue;
17
- disabledActiveContainerColor?: ColorValue;
18
- disabledInactiveContainerColor?: ColorValue;
19
- };
20
- export type PickerProps = {
21
- /**
22
- * An array of options to be displayed in the picker.
23
- */
24
- options: string[];
25
- /**
26
- * The index of the currently selected option.
27
- */
28
- selectedIndex: number | null;
29
- /**
30
- * Callback function that is called when an option is selected.
31
- */
32
- onOptionSelected?: (event: {
33
- nativeEvent: {
34
- index: number;
35
- label: string;
36
- };
37
- }) => void;
38
- /**
39
- * The variant of the picker, which determines its appearance and behavior.
40
- * @default 'segmented'
41
- */
42
- variant?: 'segmented' | 'radio';
43
- /**
44
- * Colors for picker's core elements.
45
- */
46
- elementColors?: PickerElementColors;
47
- /**
48
- * Picker color.
49
- */
50
- color?: ColorValue;
51
- /**
52
- * Modifiers for the component.
53
- */
54
- modifiers?: ExpoModifier[];
55
- /** Modifiers for the individual buttons */
56
- buttonModifiers?: ExpoModifier[];
57
- };
58
- /**
59
- * Displays a native picker component. Depending on the variant it can be a segmented button, an inline picker, a list of choices or a radio button.
60
- */
61
- export declare function Picker(props: PickerProps): import("react").JSX.Element;
62
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Picker/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,yBAAyB,CAAC,EAAE,UAAU,CAAC;IACvC,0BAA0B,CAAC,EAAE,UAAU,CAAC;IACxC,2BAA2B,CAAC,EAAE,UAAU,CAAC;IACzC,4BAA4B,CAAC,EAAE,UAAU,CAAC;IAC1C,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,4BAA4B,CAAC,EAAE,UAAU,CAAC;IAC1C,8BAA8B,CAAC,EAAE,UAAU,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IACtF;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC,CAAC;AA2BF;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
@@ -1,29 +0,0 @@
1
- import { type ColorValue } from 'react-native';
2
- import { ExpoModifier } from '../../types';
3
- export type TextButtonProps = {
4
- /**
5
- * The text content to display in the button.
6
- */
7
- children?: string | string[] | React.JSX.Element;
8
- /**
9
- * The color of the button text.
10
- */
11
- color?: ColorValue;
12
- /**
13
- * Whether the button is disabled.
14
- */
15
- disabled?: boolean;
16
- /**
17
- * Callback that is called when the button is pressed.
18
- */
19
- onPress?: () => void;
20
- /**
21
- * Modifiers for the component.
22
- */
23
- modifiers?: ExpoModifier[];
24
- };
25
- /**
26
- * A text button component that displays a clickable text label.
27
- */
28
- export declare function TextButton(props: TextButtonProps): import("react").JSX.Element;
29
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAa,MAAM,aAAa,CAAC;AAItD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAqBF;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAEhD"}
@@ -1,26 +0,0 @@
1
- import SwiftUI
2
- import ExpoModulesCore
3
-
4
- internal struct ConfirmationDialogTrigger: ExpoSwiftUI.View {
5
- @ObservedObject var props: ConfirmationDialogTriggerProps
6
-
7
- var body: some View {
8
- Children()
9
- }
10
- }
11
-
12
- internal struct ConfirmationDialogActions: ExpoSwiftUI.View {
13
- @ObservedObject var props: ConfirmationDialogActionsProps
14
-
15
- var body: some View {
16
- Children()
17
- }
18
- }
19
-
20
- internal struct ConfirmationDialogMessage: ExpoSwiftUI.View {
21
- @ObservedObject var props: ConfirmationDialogMessageProps
22
-
23
- var body: some View {
24
- Children()
25
- }
26
- }
@@ -1,37 +0,0 @@
1
- import SwiftUI
2
- import ExpoModulesCore
3
-
4
- internal struct LongPressContextMenu<ActivationElement: View, MenuContent: View>: View {
5
- let activationElement: ActivationElement
6
- let menuContent: MenuContent
7
-
8
- var body: some View {
9
- activationElement.contextMenu(menuItems: {
10
- menuContent
11
- })
12
- }
13
- }
14
-
15
- internal struct ContextMenuPreview: ExpoSwiftUI.View {
16
- @ObservedObject var props: ContextMenuPreviewProps
17
-
18
- var body: some View {
19
- Children()
20
- }
21
- }
22
-
23
- internal struct ContextMenuContent: ExpoSwiftUI.View {
24
- @ObservedObject var props: ContextMenuContentProps
25
-
26
- var body: some View {
27
- Children()
28
- }
29
- }
30
-
31
- internal struct ContextMenuActivationElement: ExpoSwiftUI.View {
32
- @ObservedObject var props: ContextMenuActivationElementProps
33
-
34
- var body: some View {
35
- Children()
36
- }
37
- }
@@ -1,12 +0,0 @@
1
- // Copyright 2025-present 650 Industries. All rights reserved.
2
-
3
- import SwiftUI
4
- import ExpoModulesCore
5
-
6
- internal struct MenuLabel: ExpoSwiftUI.View {
7
- @ObservedObject var props: MenuLabelProps
8
-
9
- var body: some View {
10
- Children()
11
- }
12
- }
@@ -1,24 +0,0 @@
1
- // Copyright 2025-present 650 Industries. All rights reserved.
2
-
3
- import SwiftUI
4
- import ExpoModulesCore
5
-
6
- internal final class PickerContentProps: ExpoSwiftUI.ViewProps {}
7
-
8
- internal final class PickerLabelProps: ExpoSwiftUI.ViewProps {}
9
-
10
- internal struct PickerContentView: ExpoSwiftUI.View {
11
- @ObservedObject var props: PickerContentProps
12
-
13
- var body: some View {
14
- Children()
15
- }
16
- }
17
-
18
- internal struct PickerLabelView: ExpoSwiftUI.View {
19
- @ObservedObject var props: PickerLabelProps
20
-
21
- var body: some View {
22
- Children()
23
- }
24
- }
@@ -1,18 +0,0 @@
1
- import ExpoModulesCore
2
- import SwiftUI
3
-
4
- internal struct PopoverViewContent: ExpoSwiftUI.View {
5
- @ObservedObject var props: PopoverViewContentPorps
6
-
7
- var body: some View {
8
- Children()
9
- }
10
- }
11
-
12
- internal struct PopoverViewPopContent: ExpoSwiftUI.View {
13
- @ObservedObject var props: PopoverViewPopContentPorps
14
-
15
- var body: some View {
16
- Children()
17
- }
18
- }