@expo/ui 55.0.0-preview.6 → 55.0.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 (223) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/android/build.gradle +27 -8
  3. package/android/src/main/java/expo/modules/ui/BasicAlertDialogView.kt +26 -0
  4. package/android/src/main/java/expo/modules/ui/BottomSheetView.kt +12 -37
  5. package/android/src/main/java/expo/modules/ui/CardView.kt +72 -0
  6. package/android/src/main/java/expo/modules/ui/CarouselView.kt +2 -5
  7. package/android/src/main/java/expo/modules/ui/ComposeViews.kt +91 -130
  8. package/android/src/main/java/expo/modules/ui/DatePickerView.kt +2 -2
  9. package/android/src/main/java/expo/modules/ui/DividerView.kt +1 -1
  10. package/android/src/main/java/expo/modules/ui/DockedSearchBarView.kt +53 -0
  11. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +136 -17
  12. package/android/src/main/java/expo/modules/ui/FilterChipView.kt +59 -0
  13. package/android/src/main/java/expo/modules/ui/HorizontalFloatingToolbarView.kt +63 -0
  14. package/android/src/main/java/expo/modules/ui/LazyColumnView.kt +95 -0
  15. package/android/src/main/java/expo/modules/ui/ListItemView.kt +89 -0
  16. package/android/src/main/java/expo/modules/ui/MaterialShapes.kt +77 -0
  17. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +168 -30
  18. package/android/src/main/java/expo/modules/ui/PickerView.kt +2 -2
  19. package/android/src/main/java/expo/modules/ui/ProgressView.kt +1 -1
  20. package/android/src/main/java/expo/modules/ui/PullToRefreshBoxView.kt +40 -0
  21. package/android/src/main/java/expo/modules/ui/RNHostView.kt +87 -0
  22. package/android/src/main/java/expo/modules/ui/RadioButtonView.kt +28 -0
  23. package/android/src/main/java/expo/modules/ui/SearchBarView.kt +60 -0
  24. package/android/src/main/java/expo/modules/ui/ShapeView.kt +36 -5
  25. package/android/src/main/java/expo/modules/ui/SliderView.kt +1 -1
  26. package/android/src/main/java/expo/modules/ui/SlotView.kt +53 -0
  27. package/android/src/main/java/expo/modules/ui/SpacerView.kt +15 -0
  28. package/android/src/main/java/expo/modules/ui/SurfaceView.kt +36 -0
  29. package/android/src/main/java/expo/modules/ui/SwitchView.kt +24 -4
  30. package/android/src/main/java/expo/modules/ui/TextButtonView.kt +33 -0
  31. package/android/src/main/java/expo/modules/ui/TextInputView.kt +1 -2
  32. package/android/src/main/java/expo/modules/ui/TextView.kt +194 -0
  33. package/android/src/main/java/expo/modules/ui/ToggleButtonView.kt +96 -0
  34. package/android/src/main/java/expo/modules/ui/Utils.kt +6 -0
  35. package/android/src/main/java/expo/modules/ui/button/Button.kt +1 -1
  36. package/android/src/main/java/expo/modules/ui/button/IconButton.kt +2 -6
  37. package/android/src/main/java/expo/modules/ui/convertibles/Alignment.kt +112 -0
  38. package/android/src/main/java/expo/modules/ui/convertibles/Arrangement.kt +72 -0
  39. package/android/src/main/java/expo/modules/ui/icon/IconView.kt +159 -0
  40. package/android/src/main/java/expo/modules/ui/icon/ResourceIdHelper.kt +47 -0
  41. package/android/src/main/java/expo/modules/ui/icon/VectorIconLoader.kt +369 -0
  42. package/android/src/main/java/expo/modules/ui/menu/ContextMenu.kt +1 -1
  43. package/build/jetpack-compose/AlertDialog/index.d.ts.map +1 -1
  44. package/build/jetpack-compose/BasicAlertDialog/index.d.ts +22 -0
  45. package/build/jetpack-compose/BasicAlertDialog/index.d.ts.map +1 -0
  46. package/build/jetpack-compose/Button/index.d.ts.map +1 -1
  47. package/build/jetpack-compose/Card/index.d.ts +40 -0
  48. package/build/jetpack-compose/Card/index.d.ts.map +1 -0
  49. package/build/jetpack-compose/Carousel/index.d.ts.map +1 -1
  50. package/build/jetpack-compose/Chip/index.d.ts +0 -4
  51. package/build/jetpack-compose/Chip/index.d.ts.map +1 -1
  52. package/build/jetpack-compose/ContextMenu/index.d.ts.map +1 -1
  53. package/build/jetpack-compose/DatePicker/index.d.ts +1 -12
  54. package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
  55. package/build/jetpack-compose/Divider/index.d.ts.map +1 -1
  56. package/build/jetpack-compose/DockedSearchBar/index.d.ts +30 -0
  57. package/build/jetpack-compose/DockedSearchBar/index.d.ts.map +1 -0
  58. package/build/jetpack-compose/ExpoUIModule.d.ts +2 -0
  59. package/build/jetpack-compose/ExpoUIModule.d.ts.map +1 -0
  60. package/build/jetpack-compose/FilterChip/index.d.ts +49 -0
  61. package/build/jetpack-compose/FilterChip/index.d.ts.map +1 -0
  62. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts +41 -0
  63. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts.map +1 -0
  64. package/build/jetpack-compose/Icon/index.d.ts +112 -0
  65. package/build/jetpack-compose/Icon/index.d.ts.map +1 -0
  66. package/build/jetpack-compose/IconButton/index.d.ts +0 -4
  67. package/build/jetpack-compose/IconButton/index.d.ts.map +1 -1
  68. package/build/jetpack-compose/LazyColumn/index.d.ts +55 -0
  69. package/build/jetpack-compose/LazyColumn/index.d.ts.map +1 -0
  70. package/build/jetpack-compose/ListItem/index.d.ts +81 -0
  71. package/build/jetpack-compose/ListItem/index.d.ts.map +1 -0
  72. package/build/jetpack-compose/MaterialSymbolsAssetsTransformer.fx.d.ts +2 -0
  73. package/build/jetpack-compose/MaterialSymbolsAssetsTransformer.fx.d.ts.map +1 -0
  74. package/build/jetpack-compose/ModalBottomSheet/index.d.ts +34 -0
  75. package/build/jetpack-compose/ModalBottomSheet/index.d.ts.map +1 -0
  76. package/build/jetpack-compose/Picker/index.d.ts +0 -6
  77. package/build/jetpack-compose/Picker/index.d.ts.map +1 -1
  78. package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
  79. package/build/jetpack-compose/PullToRefreshBox/index.d.ts +31 -0
  80. package/build/jetpack-compose/PullToRefreshBox/index.d.ts.map +1 -0
  81. package/build/jetpack-compose/RNHostView/index.d.ts +28 -0
  82. package/build/jetpack-compose/RNHostView/index.d.ts.map +1 -0
  83. package/build/jetpack-compose/RadioButton/index.d.ts +20 -0
  84. package/build/jetpack-compose/RadioButton/index.d.ts.map +1 -0
  85. package/build/jetpack-compose/SearchBar/index.d.ts +47 -0
  86. package/build/jetpack-compose/SearchBar/index.d.ts.map +1 -0
  87. package/build/jetpack-compose/Shape/index.d.ts +29 -2
  88. package/build/jetpack-compose/Shape/index.d.ts.map +1 -1
  89. package/build/jetpack-compose/Slider/index.d.ts +1 -9
  90. package/build/jetpack-compose/Slider/index.d.ts.map +1 -1
  91. package/build/jetpack-compose/Spacer/index.d.ts +22 -0
  92. package/build/jetpack-compose/Spacer/index.d.ts.map +1 -0
  93. package/build/jetpack-compose/Surface/index.d.ts +44 -0
  94. package/build/jetpack-compose/Surface/index.d.ts.map +1 -0
  95. package/build/jetpack-compose/Switch/index.d.ts +17 -9
  96. package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
  97. package/build/jetpack-compose/Text/index.d.ts +182 -0
  98. package/build/jetpack-compose/Text/index.d.ts.map +1 -0
  99. package/build/jetpack-compose/TextButton/index.d.ts +29 -0
  100. package/build/jetpack-compose/TextButton/index.d.ts.map +1 -0
  101. package/build/jetpack-compose/TextInput/index.d.ts.map +1 -1
  102. package/build/jetpack-compose/ToggleButton/index.d.ts +54 -0
  103. package/build/jetpack-compose/ToggleButton/index.d.ts.map +1 -0
  104. package/build/jetpack-compose/index.d.ts +20 -1
  105. package/build/jetpack-compose/index.d.ts.map +1 -1
  106. package/build/jetpack-compose/layout.d.ts +16 -19
  107. package/build/jetpack-compose/layout.d.ts.map +1 -1
  108. package/build/jetpack-compose/modifiers/createModifier.d.ts +18 -0
  109. package/build/jetpack-compose/modifiers/createModifier.d.ts.map +1 -0
  110. package/build/jetpack-compose/modifiers/index.d.ts +133 -41
  111. package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
  112. package/build/jetpack-compose/modifiers/utils.d.ts +15 -0
  113. package/build/jetpack-compose/modifiers/utils.d.ts.map +1 -0
  114. package/build/swift-ui/ConfirmationDialog/index.d.ts +47 -0
  115. package/build/swift-ui/ConfirmationDialog/index.d.ts.map +1 -0
  116. package/build/swift-ui/ScrollView/index.d.ts +16 -0
  117. package/build/swift-ui/ScrollView/index.d.ts.map +1 -0
  118. package/build/swift-ui/index.d.ts +2 -0
  119. package/build/swift-ui/index.d.ts.map +1 -1
  120. package/build/swift-ui/modifiers/index.d.ts +12 -3
  121. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  122. package/expo-module.config.json +2 -1
  123. package/ios/ColorPickerView.swift +2 -2
  124. package/ios/ConfirmationDialog/ConfirmationDialog.swift +65 -0
  125. package/ios/ConfirmationDialog/ConfirmationDialogComponents.swift +26 -0
  126. package/ios/ConfirmationDialog/ConfirmationDialogProps.swift +15 -0
  127. package/ios/Convertibles/VisibilityOptions.swift +19 -0
  128. package/ios/ExpoUIModule.swift +5 -0
  129. package/ios/Modifiers/ForegroundStyleModifier.swift +124 -0
  130. package/ios/Modifiers/PresentationModifiers.swift +1 -18
  131. package/ios/Modifiers/ViewModifierRegistry.swift +30 -121
  132. package/ios/ScrollViewComponent.swift +23 -0
  133. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar +0 -0
  134. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.md5 +1 -0
  135. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.sha1 +1 -0
  136. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.sha256 +1 -0
  137. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.sha512 +1 -0
  138. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar +0 -0
  139. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.md5 +1 -0
  140. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.sha1 +1 -0
  141. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.sha256 +1 -0
  142. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.sha512 +1 -0
  143. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.module → 55.0.0/expo.modules.ui-55.0.0.module} +46 -28
  144. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.md5 +1 -0
  145. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha1 +1 -0
  146. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha256 +1 -0
  147. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha512 +1 -0
  148. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.pom → 55.0.0/expo.modules.ui-55.0.0.pom} +36 -7
  149. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.md5 +1 -0
  150. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha1 +1 -0
  151. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha256 +1 -0
  152. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha512 +1 -0
  153. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  154. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  155. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  156. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  157. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  158. package/package.json +5 -3
  159. package/src/jetpack-compose/AlertDialog/index.tsx +11 -1
  160. package/src/jetpack-compose/BasicAlertDialog/index.tsx +51 -0
  161. package/src/jetpack-compose/Button/index.tsx +13 -1
  162. package/src/jetpack-compose/Card/index.tsx +62 -0
  163. package/src/jetpack-compose/Carousel/index.tsx +7 -1
  164. package/src/jetpack-compose/Chip/index.tsx +14 -7
  165. package/src/jetpack-compose/ContextMenu/index.tsx +5 -2
  166. package/src/jetpack-compose/DatePicker/index.tsx +5 -5
  167. package/src/jetpack-compose/Divider/index.tsx +13 -2
  168. package/src/jetpack-compose/DockedSearchBar/index.tsx +78 -0
  169. package/src/jetpack-compose/ExpoUIModule.ts +3 -0
  170. package/src/jetpack-compose/FilterChip/index.tsx +89 -0
  171. package/src/jetpack-compose/HorizontalFloatingToolbar/index.tsx +90 -0
  172. package/src/jetpack-compose/Icon/index.tsx +144 -0
  173. package/src/jetpack-compose/IconButton/index.tsx +5 -5
  174. package/src/jetpack-compose/LazyColumn/index.tsx +82 -0
  175. package/src/jetpack-compose/ListItem/index.tsx +129 -0
  176. package/src/jetpack-compose/MaterialSymbolsAssetsTransformer.fx.ts +22 -0
  177. package/src/jetpack-compose/ModalBottomSheet/index.tsx +61 -0
  178. package/src/jetpack-compose/Picker/index.tsx +6 -5
  179. package/src/jetpack-compose/Progress/index.tsx +14 -4
  180. package/src/jetpack-compose/PullToRefreshBox/index.tsx +66 -0
  181. package/src/jetpack-compose/RNHostView/index.tsx +56 -0
  182. package/src/jetpack-compose/RadioButton/index.tsx +48 -0
  183. package/src/jetpack-compose/SearchBar/index.tsx +96 -0
  184. package/src/jetpack-compose/Shape/index.tsx +65 -22
  185. package/src/jetpack-compose/Slider/index.tsx +6 -5
  186. package/src/jetpack-compose/Spacer/index.tsx +43 -0
  187. package/src/jetpack-compose/Surface/index.tsx +66 -0
  188. package/src/jetpack-compose/Switch/index.tsx +43 -8
  189. package/src/jetpack-compose/Text/index.tsx +274 -0
  190. package/src/jetpack-compose/TextButton/index.tsx +55 -0
  191. package/src/jetpack-compose/TextInput/index.tsx +5 -4
  192. package/src/jetpack-compose/ToggleButton/index.tsx +83 -0
  193. package/src/jetpack-compose/index.ts +21 -1
  194. package/src/jetpack-compose/layout.tsx +55 -70
  195. package/src/jetpack-compose/modifiers/createModifier.ts +27 -0
  196. package/src/jetpack-compose/modifiers/index.ts +204 -83
  197. package/src/jetpack-compose/modifiers/utils.ts +30 -0
  198. package/src/swift-ui/ConfirmationDialog/index.tsx +98 -0
  199. package/src/swift-ui/ScrollView/index.tsx +34 -0
  200. package/src/swift-ui/index.tsx +2 -0
  201. package/src/swift-ui/modifiers/index.ts +19 -3
  202. package/src/ts-declarations/react-native-assets.d.ts +31 -0
  203. package/build/jetpack-compose/BottomSheet/index.d.ts +0 -21
  204. package/build/jetpack-compose/BottomSheet/index.d.ts.map +0 -1
  205. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6-sources.jar +0 -0
  206. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6-sources.jar.md5 +0 -1
  207. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6-sources.jar.sha1 +0 -1
  208. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6-sources.jar.sha256 +0 -1
  209. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6-sources.jar.sha512 +0 -1
  210. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.aar +0 -0
  211. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.aar.md5 +0 -1
  212. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.aar.sha1 +0 -1
  213. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.aar.sha256 +0 -1
  214. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.aar.sha512 +0 -1
  215. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.module.md5 +0 -1
  216. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.module.sha1 +0 -1
  217. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.module.sha256 +0 -1
  218. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.module.sha512 +0 -1
  219. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.pom.md5 +0 -1
  220. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.pom.sha1 +0 -1
  221. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.pom.sha256 +0 -1
  222. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.6/expo.modules.ui-55.0.0-preview.6.pom.sha512 +0 -1
  223. package/src/jetpack-compose/BottomSheet/index.tsx +0 -46
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Slider/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,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AAO,EAAE,YAAY,EAAa,MAAM,aAAa,CAAC;AAGtD;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAoCF,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
@@ -0,0 +1,22 @@
1
+ import { ExpoModifier } from '../../types';
2
+ export type SpacerProps = {
3
+ /**
4
+ * Modifiers for the component. Use weight() modifier to make the spacer flexible.
5
+ */
6
+ modifiers?: ExpoModifier[];
7
+ };
8
+ /**
9
+ * A spacer component that fills available space.
10
+ * Use with the weight() modifier to create flexible spacing in Row or Column layouts.
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * <Row>
15
+ * <Text>Left</Text>
16
+ * <Spacer modifiers={[weight(1)]} />
17
+ * <Text>Right</Text>
18
+ * </Row>
19
+ * ```
20
+ */
21
+ export declare function Spacer(props: SpacerProps): import("react").JSX.Element;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Spacer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAiBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { type ColorValue } from 'react-native';
3
+ import { type ExpoModifier } from '../../types';
4
+ export type SurfaceProps = {
5
+ /**
6
+ * The content to display inside the surface.
7
+ */
8
+ children?: React.ReactNode;
9
+ /**
10
+ * The background color of the surface.
11
+ * Defaults to `MaterialTheme.colorScheme.surface`.
12
+ */
13
+ color?: ColorValue;
14
+ /**
15
+ * The color of the content inside the surface.
16
+ * Defaults to `contentColorFor(color)`.
17
+ */
18
+ contentColor?: ColorValue;
19
+ /**
20
+ * The tonal elevation of the surface, which affects its background color
21
+ * based on the color scheme. Value in dp.
22
+ *
23
+ * @default 0
24
+ */
25
+ tonalElevation?: number;
26
+ /**
27
+ * The shadow elevation of the surface. Value in dp.
28
+ *
29
+ * @default 0
30
+ */
31
+ shadowElevation?: number;
32
+ /**
33
+ * Modifiers for the component.
34
+ */
35
+ modifiers?: ExpoModifier[];
36
+ };
37
+ /**
38
+ * A Material Design surface container. Surface is responsible for:
39
+ * - Clipping content to the shape
40
+ * - Applying background color based on tonal elevation
41
+ * - Providing content color to its children
42
+ */
43
+ export declare function Surface(props: SurfaceProps): React.JSX.Element;
44
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Surface/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAkBF;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,qBAE1C"}
@@ -1,4 +1,4 @@
1
- import { NativeSyntheticEvent, type ColorValue } from 'react-native';
1
+ import { type ColorValue } from 'react-native';
2
2
  import { ExpoModifier } from '../../types';
3
3
  /**
4
4
  * Only for switch.
@@ -48,6 +48,11 @@ export type SwitchProps = {
48
48
  * Modifiers for the component.
49
49
  */
50
50
  modifiers?: ExpoModifier[];
51
+ /**
52
+ * Children containing ThumbContent slot.
53
+ * @platform android
54
+ */
55
+ children?: React.ReactNode;
51
56
  } & (SwitchSwitchVariantProps | SwitchCheckboxVariantProps | SwitchButtonVariantProps);
52
57
  export type SwitchSwitchVariantProps = {
53
58
  variant?: 'switch';
@@ -69,15 +74,18 @@ export type SwitchButtonVariantProps = {
69
74
  variant: 'button';
70
75
  elementColors?: undefined;
71
76
  };
72
- type NativeSwitchProps = Omit<SwitchProps, 'onValueChange'> & {
73
- onValueChange: (event: NativeSyntheticEvent<{
74
- value: boolean;
75
- }>) => void;
77
+ type ThumbContentProps = {
78
+ children: React.ReactNode;
76
79
  };
77
80
  /**
78
- * @hidden
81
+ * Custom content to be displayed inside the switch thumb.
82
+ * @platform android
79
83
  */
80
- export declare function transformSwitchProps(props: SwitchProps): NativeSwitchProps;
81
- export declare function Switch(props: SwitchProps): import("react").JSX.Element;
82
- export {};
84
+ export declare function SwitchThumbContent(props: ThumbContentProps): import("react").JSX.Element;
85
+ declare function SwitchComponent(props: SwitchProps): import("react").JSX.Element;
86
+ declare namespace SwitchComponent {
87
+ var ThumbContent: typeof SwitchThumbContent;
88
+ var DefaultIconSize: any;
89
+ }
90
+ export { SwitchComponent as Switch };
83
91
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,KAAK,mBAAmB,GAAG;IACzB,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,mBAAmB,CAAC,EAAE,UAAU,CAAC;CAClC,CAAC;AAGF;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,0BAA0B,CAAC,EAAE,UAAU,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C;;OAEG;I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AAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAWF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAYF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,+BAE1D;AAmCD,iBAAS,eAAe,CAAC,KAAK,EAAE,WAAW,+BAE1C;kBAFQ,eAAe;;;;AAOxB,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
@@ -0,0 +1,182 @@
1
+ import { ExpoModifier } from '../../types';
2
+ /**
3
+ * Font weight options for text styling.
4
+ */
5
+ export type TextFontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
6
+ /**
7
+ * Font style options for text styling.
8
+ */
9
+ export type TextFontStyle = 'normal' | 'italic';
10
+ /**
11
+ * Text alignment options.
12
+ */
13
+ export type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'start' | 'end';
14
+ /**
15
+ * Text decoration options.
16
+ */
17
+ export type TextDecoration = 'none' | 'underline' | 'lineThrough';
18
+ /**
19
+ * Text overflow behavior options.
20
+ */
21
+ export type TextOverflow = 'clip' | 'ellipsis' | 'visible';
22
+ /**
23
+ * Material 3 Typography scale styles.
24
+ * Corresponds to MaterialTheme.typography in Jetpack Compose.
25
+ */
26
+ export type TypographyStyle = 'displayLarge' | 'displayMedium' | 'displaySmall' | 'headlineLarge' | 'headlineMedium' | 'headlineSmall' | 'titleLarge' | 'titleMedium' | 'titleSmall' | 'bodyLarge' | 'bodyMedium' | 'bodySmall' | 'labelLarge' | 'labelMedium' | 'labelSmall';
27
+ /**
28
+ * Text style properties that can be applied to text.
29
+ * Corresponds to Jetpack Compose's TextStyle.
30
+ */
31
+ export type TextStyle = {
32
+ /**
33
+ * Material 3 Typography style to use as the base style.
34
+ * When specified, applies the predefined Material 3 typography style.
35
+ * Other properties in this style object will override specific values from the typography.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * style={{ typography: "bodyLarge" }}
40
+ * style={{ typography: "headlineMedium", fontWeight: "bold" }}
41
+ * ```
42
+ */
43
+ typography?: TypographyStyle;
44
+ /**
45
+ * The font size in sp (scale-independent pixels).
46
+ */
47
+ fontSize?: number;
48
+ /**
49
+ * The font weight of the text.
50
+ */
51
+ fontWeight?: TextFontWeight;
52
+ /**
53
+ * The font style of the text.
54
+ */
55
+ fontStyle?: TextFontStyle;
56
+ /**
57
+ * The text alignment.
58
+ */
59
+ textAlign?: TextAlign;
60
+ /**
61
+ * The text decoration.
62
+ */
63
+ textDecoration?: TextDecoration;
64
+ /**
65
+ * The letter spacing in sp.
66
+ */
67
+ letterSpacing?: number;
68
+ /**
69
+ * The line height in sp.
70
+ */
71
+ lineHeight?: number;
72
+ };
73
+ export type TextProps = {
74
+ /**
75
+ * The text content to display.
76
+ */
77
+ children?: React.ReactNode;
78
+ /**
79
+ * The color of the text.
80
+ */
81
+ color?: string;
82
+ /**
83
+ * How visual overflow should be handled.
84
+ * - 'clip': Clips the overflowing text to fix its container
85
+ * - 'ellipsis': Uses an ellipsis to indicate that the text has overflowed
86
+ * - 'visible': Renders overflow text outside its container
87
+ */
88
+ overflow?: TextOverflow;
89
+ /**
90
+ * Whether the text should break at soft line breaks.
91
+ * If false, the glyphs in the text will be positioned as if there was unlimited horizontal space.
92
+ */
93
+ softWrap?: boolean;
94
+ /**
95
+ * An optional maximum number of lines for the text to span, wrapping if necessary.
96
+ * If the text exceeds the given number of lines, it will be truncated according to overflow.
97
+ */
98
+ maxLines?: number;
99
+ /**
100
+ * The minimum height in terms of minimum number of visible lines.
101
+ */
102
+ minLines?: number;
103
+ /**
104
+ * Style configuration for the text.
105
+ * Corresponds to Jetpack Compose's TextStyle parameter.
106
+ */
107
+ style?: TextStyle;
108
+ /**
109
+ * Modifiers for the component.
110
+ */
111
+ modifiers?: ExpoModifier[];
112
+ };
113
+ /**
114
+ * Renders a Text component using Jetpack Compose.
115
+ *
116
+ * The Text component provides comprehensive text styling capabilities.
117
+ * The API is aligned with Jetpack Compose's Text composable, where:
118
+ * - Top-level props (color, maxLines, etc.) match Compose's Text parameters
119
+ * - `style` object corresponds to TextStyle, including typography, fontSize, fontWeight, textAlign, etc.
120
+ * - `style.typography` applies Material 3 typography styles (like MaterialTheme.typography)
121
+ *
122
+ * @example
123
+ * Basic usage:
124
+ * ```tsx
125
+ * import { Text } from 'expo-ui';
126
+ *
127
+ * <Text>Hello World</Text>
128
+ * ```
129
+ *
130
+ * @example
131
+ * Using Material 3 Typography (matches Jetpack Compose MaterialTheme.typography):
132
+ * ```tsx
133
+ * <Text style={{ typography: "bodyLarge" }}>Body text</Text>
134
+ * <Text style={{ typography: "headlineMedium" }}>Headline</Text>
135
+ * <Text style={{ typography: "titleSmall" }}>Small title</Text>
136
+ * ```
137
+ *
138
+ * @example
139
+ * Typography with style overrides:
140
+ * ```tsx
141
+ * <Text
142
+ * color="#007AFF"
143
+ * style={{
144
+ * typography: "bodyLarge",
145
+ * fontWeight: "bold" // Override the typography's font weight
146
+ * }}
147
+ * >
148
+ * Custom styled body text
149
+ * </Text>
150
+ * ```
151
+ *
152
+ * @example
153
+ * With custom style object (matches Jetpack Compose TextStyle):
154
+ * ```tsx
155
+ * <Text
156
+ * color="#007AFF"
157
+ * style={{
158
+ * fontSize: 18,
159
+ * fontWeight: "bold",
160
+ * textAlign: "center",
161
+ * letterSpacing: 1.2
162
+ * }}
163
+ * modifiers={[ExpoUI.padding(16)]}
164
+ * >
165
+ * Styled text
166
+ * </Text>
167
+ * ```
168
+ *
169
+ * @example
170
+ * Text truncation with ellipsis:
171
+ * ```tsx
172
+ * <Text
173
+ * maxLines={2}
174
+ * overflow="ellipsis"
175
+ * >
176
+ * This is a very long text that will be truncated after two lines
177
+ * with an ellipsis at the end to indicate there's more content...
178
+ * </Text>
179
+ * ```
180
+ */
181
+ export declare function Text(props: TextProps): import("react").JSX.Element;
182
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAwCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,+BAEpC"}
@@ -0,0 +1,29 @@
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
@@ -0,0 +1 @@
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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextInput/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,O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E,MAAM,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,EACT,SAAS,GACT,eAAe,GACf,SAAS,GACT,WAAW,GACX,eAAe,GACf,KAAK,GACL,aAAa,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CAAC;IAE/E;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,SAAS,CACpF,gBAAgB,EAChB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAClB,CAAC;AAoBJ;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAE9C"}
@@ -0,0 +1,54 @@
1
+ import { type ColorValue } from 'react-native';
2
+ import { type ExpoModifier } from '../../types';
3
+ export type ToggleButtonProps = {
4
+ /**
5
+ * Whether the toggle button is checked.
6
+ */
7
+ checked: boolean;
8
+ /**
9
+ * Text to display in the button.
10
+ */
11
+ text?: string;
12
+ /**
13
+ * The variant of the toggle button.
14
+ * - `'default'` - Material 3 ToggleButton
15
+ * - `'icon'` - Icon toggle button
16
+ * - `'filledIcon'` - Filled icon toggle button
17
+ * - `'outlinedIcon'` - Outlined icon toggle button
18
+ * @default 'default'
19
+ */
20
+ variant?: 'default' | 'icon' | 'filledIcon' | 'outlinedIcon';
21
+ /**
22
+ * The color of the toggle button when checked.
23
+ */
24
+ color?: ColorValue;
25
+ /**
26
+ * Whether the button is disabled.
27
+ */
28
+ disabled?: boolean;
29
+ /**
30
+ * Callback that is called when the checked state changes.
31
+ */
32
+ onCheckedChange?: (checked: boolean) => void;
33
+ /**
34
+ * Modifiers for the component.
35
+ */
36
+ modifiers?: ExpoModifier[];
37
+ /**
38
+ * The content to display inside the toggle button.
39
+ */
40
+ children?: React.ReactNode;
41
+ };
42
+ /**
43
+ * A toggle button component that can be toggled on and off.
44
+ *
45
+ * When `text` prop is provided, it displays the text.
46
+ * Otherwise, custom children can be passed to render custom content.
47
+ */
48
+ declare function ToggleButton(props: ToggleButtonProps): import("react").JSX.Element;
49
+ declare namespace ToggleButton {
50
+ var DefaultIconSpacing: any;
51
+ var DefaultIconSize: any;
52
+ }
53
+ export { ToggleButton };
54
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/ToggleButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,aAAa,CAAC;AAIhE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,cAAc,CAAC;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAqBF;;;;;GAKG;AACH,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAI7C;kBAJQ,YAAY;;;;AASrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,18 +1,37 @@
1
+ import './MaterialSymbolsAssetsTransformer.fx';
1
2
  export * from './AlertDialog';
3
+ export * from './BasicAlertDialog';
4
+ export * from './Card';
2
5
  export * from './Chip';
6
+ export * from './FilterChip';
3
7
  export * from './Button';
8
+ export * from './Icon';
4
9
  export * from './IconButton';
5
10
  export * from './ContextMenu';
6
11
  export * from './Divider';
7
12
  export * from './Host';
13
+ export * from './LazyColumn';
14
+ export * from './ListItem';
15
+ export * from './RNHostView';
8
16
  export * from './DatePicker';
9
17
  export * from './Picker';
10
18
  export * from './Progress';
11
19
  export * from './Slider';
20
+ export * from './Spacer';
12
21
  export * from './Switch';
22
+ export * from './TextButton';
13
23
  export * from './TextInput';
24
+ export * from './ToggleButton';
14
25
  export * from './Shape';
15
- export * from './BottomSheet';
26
+ export * from './ModalBottomSheet';
16
27
  export * from './Carousel';
28
+ export * from './SearchBar';
29
+ export * from './DockedSearchBar';
30
+ export * from './HorizontalFloatingToolbar';
31
+ export * from './PullToRefreshBox';
32
+ export * from './RadioButton';
33
+ export * from './Surface';
34
+ export * from './Text';
17
35
  export * from './layout';
36
+ export { ViewEvent } from '../types';
18
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAE3B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/index.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAE/C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
@@ -1,4 +1,3 @@
1
- import { ColorValue } from 'react-native';
2
1
  import { ExpoModifier } from '../types';
3
2
  export type PrimitiveBaseProps = {
4
3
  /**
@@ -6,35 +5,33 @@ export type PrimitiveBaseProps = {
6
5
  */
7
6
  modifiers?: ExpoModifier[];
8
7
  };
9
- export type HorizontalArrangement = 'start' | 'end' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
10
- export type VerticalArrangement = 'top' | 'bottom' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
8
+ export type HorizontalArrangement = 'start' | 'end' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly' | {
9
+ spacedBy: number;
10
+ };
11
+ export type VerticalArrangement = 'top' | 'bottom' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly' | {
12
+ spacedBy: number;
13
+ };
11
14
  export type HorizontalAlignment = 'start' | 'end' | 'center';
12
15
  export type VerticalAlignment = 'top' | 'bottom' | 'center';
16
+ export type ContentAlignment = 'topStart' | 'topCenter' | 'topEnd' | 'centerStart' | 'center' | 'centerEnd' | 'bottomStart' | 'bottomCenter' | 'bottomEnd';
17
+ export type FloatingToolbarExitAlwaysScrollBehavior = 'top' | 'bottom' | 'start' | 'end';
13
18
  type LayoutBaseProps = {
14
19
  children?: React.ReactNode;
15
20
  horizontalArrangement?: HorizontalArrangement;
16
21
  verticalArrangement?: VerticalArrangement;
17
22
  horizontalAlignment?: HorizontalAlignment;
18
23
  verticalAlignment?: VerticalAlignment;
24
+ contentAlignment?: ContentAlignment;
25
+ floatingToolbarExitAlwaysScrollBehavior?: FloatingToolbarExitAlwaysScrollBehavior;
19
26
  modifiers?: ExpoModifier[];
20
27
  } & PrimitiveBaseProps;
21
- export type BoxProps = Pick<LayoutBaseProps, 'children' | 'modifiers'>;
22
- export declare function Box(props: BoxProps): import("react").JSX.Element | null;
28
+ export type BoxProps = Pick<LayoutBaseProps, 'children' | 'modifiers' | 'contentAlignment' | 'floatingToolbarExitAlwaysScrollBehavior'>;
29
+ export declare function Box(props: BoxProps): import("react").JSX.Element;
23
30
  export type RowProps = LayoutBaseProps;
24
- export declare function Row(props: RowProps): import("react").JSX.Element | null;
31
+ export declare function Row(props: RowProps): import("react").JSX.Element;
32
+ export type FlowRowProps = Pick<LayoutBaseProps, 'children' | 'modifiers' | 'horizontalArrangement' | 'verticalArrangement'>;
33
+ export declare function FlowRow(props: FlowRowProps): import("react").JSX.Element;
25
34
  export type ColumnProps = LayoutBaseProps;
26
- export declare function Column(props: ColumnProps): import("react").JSX.Element | null;
27
- export type TextFontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
28
- export type TextProps = {
29
- /**
30
- * The children of the text.
31
- * Only string and number are supported.
32
- */
33
- children?: React.ReactNode;
34
- color?: ColorValue;
35
- fontSize?: number;
36
- fontWeight?: TextFontWeight;
37
- } & PrimitiveBaseProps;
38
- export declare function Text(props: TextProps): import("react").JSX.Element | null;
35
+ export declare function Column(props: ColumnProps): import("react").JSX.Element;
39
36
  export {};
40
37
  //# sourceMappingURL=layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/layout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAY,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAC7B,OAAO,GACP,KAAK,GACL,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,CAAC;AAClB,MAAM,MAAM,mBAAmB,GAC3B,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,CAAC;AAClB,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D,KAAK,eAAe,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B,GAAG,CAAC,KAAK,EAAE,QAAQ,+BAElC;AAID,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC;AAEvC,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,+BAElC;AAID,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,eAAe,EACf,UAAU,GAAG,WAAW,GAAG,uBAAuB,GAAG,qBAAqB,CAC3E,CAAC;AAKF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C;AAID,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAK1C,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Base interface for all view modifiers.
3
+ * All modifiers must have a type field and can include arbitrary parameters.
4
+ */
5
+ export interface ModifierConfig {
6
+ $type: string;
7
+ [key: string]: any;
8
+ eventListener?: (args: any) => void;
9
+ }
10
+ /**
11
+ * Factory function to create modifier configuration objects.
12
+ */
13
+ export declare function createModifier(type: string, params?: Record<string, any>): ModifierConfig;
14
+ /**
15
+ * Creates a modifier with an event listener.
16
+ */
17
+ export declare function createModifierWithEventListener(type: string, eventListener: (args: any) => void, params?: Record<string, any>): ModifierConfig;
18
+ //# sourceMappingURL=createModifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createModifier.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/modifiers/createModifier.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,cAAc,CAE7F;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,EAClC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAC/B,cAAc,CAEhB"}