@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
@@ -0,0 +1,369 @@
1
+ package expo.modules.ui.icon
2
+
3
+ import android.content.Context
4
+ import android.content.res.XmlResourceParser
5
+ import android.graphics.drawable.Drawable
6
+ import android.net.Uri
7
+ import android.util.Log
8
+ import android.util.Xml
9
+ import androidx.compose.ui.graphics.SolidColor
10
+ import androidx.compose.ui.graphics.vector.ImageVector
11
+ import androidx.compose.ui.graphics.vector.PathParser
12
+ import androidx.compose.ui.unit.Dp
13
+ import androidx.compose.ui.unit.dp
14
+ import androidx.core.graphics.toColorInt
15
+ import kotlinx.coroutines.Dispatchers
16
+ import kotlinx.coroutines.withContext
17
+ import okhttp3.OkHttpClient
18
+ import okhttp3.Request
19
+ import org.xmlpull.v1.XmlPullParser
20
+ import java.io.File
21
+ import java.io.InputStream
22
+
23
+ /**
24
+ * Loads and parses vector icons from various sources (HTTP, file, content provider).
25
+ * Supports XML vector drawables (Android format) and bitmap images.
26
+ *
27
+ * All loading operations are suspend functions and run on appropriate dispatchers.
28
+ */
29
+ class VectorIconLoader(
30
+ private val context: Context,
31
+ private val okHttpClient: OkHttpClient
32
+ ) {
33
+
34
+ /**
35
+ * Result of icon loading operation.
36
+ */
37
+ data class IconResult(
38
+ val imageVector: ImageVector? = null,
39
+ val drawable: Drawable? = null
40
+ )
41
+
42
+ /**
43
+ * Load an icon from a URI string.
44
+ * Returns an IconResult containing either an ImageVector (for XML) or Drawable (for bitmaps).
45
+ *
46
+ * This is a suspend function that performs I/O operations on the IO dispatcher.
47
+ */
48
+ suspend fun loadFromUri(uriString: String?): IconResult = withContext(Dispatchers.IO) {
49
+ if (uriString.isNullOrEmpty()) return@withContext IconResult()
50
+
51
+ val uri = try {
52
+ Uri.parse(uriString)
53
+ } catch (e: Exception) {
54
+ Log.e(TAG, "Failed to parse URI: $uriString", e)
55
+ return@withContext IconResult()
56
+ }
57
+
58
+ try {
59
+ // For resource URIs, use Android's XmlResourceParser which handles compiled binary XML
60
+ if (uri.scheme == "res") {
61
+ return@withContext loadFromResourceId(uri)
62
+ }
63
+
64
+ val inputStream = getInputStreamForUri(uri) ?: return@withContext IconResult()
65
+ inputStream.use { stream ->
66
+ parseIconFromStream(stream)
67
+ }
68
+ } catch (e: Exception) {
69
+ Log.e(TAG, "Failed to load icon from URI: $uri", e)
70
+ IconResult()
71
+ }
72
+ }
73
+
74
+ /**
75
+ * Get input stream for different URI schemes.
76
+ */
77
+ private fun getInputStreamForUri(uri: Uri): InputStream? {
78
+ return when (uri.scheme) {
79
+ "file" -> {
80
+ val path = uri.path ?: return null
81
+ File(path).inputStream()
82
+ }
83
+ "content" -> {
84
+ context.contentResolver.openInputStream(uri)
85
+ }
86
+ "http", "https" -> {
87
+ downloadFromHttp(uri.toString())
88
+ }
89
+ "android.resource" -> {
90
+ context.contentResolver.openInputStream(uri)
91
+ }
92
+ else -> {
93
+ context.contentResolver.openInputStream(uri)
94
+ }
95
+ }
96
+ }
97
+
98
+ /**
99
+ * Download icon from HTTP/HTTPS URL using OkHttp.
100
+ * Uses OkHttp's blocking call which is safe on IO dispatcher.
101
+ */
102
+ private fun downloadFromHttp(url: String): InputStream? {
103
+ return try {
104
+ val request = Request.Builder()
105
+ .url(url)
106
+ .build()
107
+
108
+ // OkHttp's execute() is blocking, which is fine on IO dispatcher
109
+ val response = okHttpClient.newCall(request).execute()
110
+ if (!response.isSuccessful) {
111
+ Log.e(TAG, "Failed to download icon from $url: ${response.code}")
112
+ response.close()
113
+ return null
114
+ }
115
+
116
+ response.body?.byteStream()
117
+ } catch (e: Exception) {
118
+ Log.e(TAG, "HTTP download failed: $url", e)
119
+ null
120
+ }
121
+ }
122
+
123
+ /**
124
+ * Load icon from an Android resource ID extracted from a `res:/` URI.
125
+ * Uses [XmlResourceParser] which handles compiled (binary) XML in release builds.
126
+ */
127
+ private fun loadFromResourceId(uri: Uri): IconResult {
128
+ val resourceId = uri.lastPathSegment?.toIntOrNull()
129
+ ?: uri.path?.trimStart('/')?.toIntOrNull()
130
+ if (resourceId == null || resourceId <= 0) {
131
+ Log.w(TAG, "Invalid resource ID in URI: $uri")
132
+ return IconResult()
133
+ }
134
+
135
+ // Try parsing as XML (handles both text and compiled binary XML)
136
+ try {
137
+ val xmlParser: XmlResourceParser = context.resources.getXml(resourceId)
138
+ xmlParser.use { parser ->
139
+ val imageVector = parseXmlToImageVector(parser)
140
+ if (imageVector != null) {
141
+ return IconResult(imageVector = imageVector)
142
+ }
143
+ }
144
+ } catch (e: Exception) {
145
+ Log.d(TAG, "Resource $resourceId is not XML, trying as raw resource", e)
146
+ }
147
+
148
+ // Fall back to raw resource stream (bitmap images, etc.)
149
+ try {
150
+ context.resources.openRawResource(resourceId).use { stream ->
151
+ val drawable = Drawable.createFromStream(stream, null)
152
+ return IconResult(drawable = drawable)
153
+ }
154
+ } catch (e: Exception) {
155
+ Log.e(TAG, "Failed to load resource $resourceId", e)
156
+ return IconResult()
157
+ }
158
+ }
159
+
160
+ /**
161
+ * Parse icon from input stream.
162
+ * Detects format (XML or bitmap) and returns appropriate result.
163
+ */
164
+ private fun parseIconFromStream(inputStream: InputStream): IconResult {
165
+ val bytes = inputStream.readBytes()
166
+
167
+ return if (isXmlContent(bytes)) {
168
+ val imageVector = parseXmlToImageVector(bytes)
169
+ IconResult(imageVector = imageVector)
170
+ } else {
171
+ val drawable = Drawable.createFromStream(bytes.inputStream(), null)
172
+ IconResult(drawable = drawable)
173
+ }
174
+ }
175
+
176
+ /**
177
+ * Detect if byte array contains XML content.
178
+ */
179
+ private fun isXmlContent(bytes: ByteArray): Boolean {
180
+ if (bytes.size < 5) return false
181
+
182
+ // Check for UTF-8 BOM
183
+ var offset = 0
184
+ if (bytes.size >= 3 &&
185
+ bytes[0] == 0xEF.toByte() &&
186
+ bytes[1] == 0xBB.toByte() &&
187
+ bytes[2] == 0xBF.toByte()
188
+ ) {
189
+ offset = 3
190
+ }
191
+
192
+ // Check if content starts with '<' (possibly with leading whitespace)
193
+ for (i in offset until minOf(offset + 10, bytes.size)) {
194
+ val b = bytes[i]
195
+ if (b == '<'.code.toByte()) return true
196
+ if (b != ' '.code.toByte() && b != '\t'.code.toByte() &&
197
+ b != '\n'.code.toByte() && b != '\r'.code.toByte()
198
+ ) {
199
+ return false
200
+ }
201
+ }
202
+ return false
203
+ }
204
+
205
+ /**
206
+ * Parse Android VectorDrawable XML to Compose ImageVector from raw bytes (text XML).
207
+ */
208
+ fun parseXmlToImageVector(bytes: ByteArray): ImageVector? {
209
+ return try {
210
+ val parser = Xml.newPullParser()
211
+ parser.setInput(bytes.inputStream(), "UTF-8")
212
+ parseXmlToImageVector(parser)
213
+ } catch (e: Exception) {
214
+ Log.e(TAG, "Failed to parse XML to ImageVector", e)
215
+ null
216
+ }
217
+ }
218
+
219
+ /**
220
+ * Parse Android VectorDrawable XML to Compose ImageVector from any [XmlPullParser].
221
+ * Works with both text XML parsers and [XmlResourceParser] (compiled binary XML).
222
+ */
223
+ fun parseXmlToImageVector(parser: XmlPullParser): ImageVector? {
224
+ return try {
225
+ var eventType = parser.eventType
226
+ while (eventType != XmlPullParser.END_DOCUMENT) {
227
+ if (eventType == XmlPullParser.START_TAG && parser.name == "vector") {
228
+ return parseVectorElement(parser)
229
+ }
230
+ eventType = parser.next()
231
+ }
232
+ Log.w(TAG, "No <vector> element found in XML")
233
+ null
234
+ } catch (e: Exception) {
235
+ Log.e(TAG, "Failed to parse XML to ImageVector", e)
236
+ null
237
+ }
238
+ }
239
+
240
+ /**
241
+ * Parse <vector> element and its children.
242
+ */
243
+ private fun parseVectorElement(parser: XmlPullParser): ImageVector? {
244
+ return try {
245
+ // Parse <vector> attributes
246
+ var width = 24.dp
247
+ var height = 24.dp
248
+ var viewportWidth = 24f
249
+ var viewportHeight = 24f
250
+
251
+ for (i in 0 until parser.attributeCount) {
252
+ when (parser.getAttributeName(i)) {
253
+ "width" -> width = parseDimension(parser.getAttributeValue(i))
254
+ "height" -> height = parseDimension(parser.getAttributeValue(i))
255
+ "viewportWidth" -> viewportWidth = parser.getAttributeValue(i).toFloatOrNull() ?: 24f
256
+ "viewportHeight" -> viewportHeight = parser.getAttributeValue(i).toFloatOrNull() ?: 24f
257
+ }
258
+ }
259
+
260
+ // Build ImageVector
261
+ val builder = ImageVector.Builder(
262
+ defaultWidth = width,
263
+ defaultHeight = height,
264
+ viewportWidth = viewportWidth,
265
+ viewportHeight = viewportHeight
266
+ )
267
+
268
+ // Parse child elements
269
+ var eventType = parser.next()
270
+ while (eventType != XmlPullParser.END_DOCUMENT) {
271
+ when (eventType) {
272
+ XmlPullParser.START_TAG -> {
273
+ when (parser.name) {
274
+ "path" -> parsePathElement(parser, builder)
275
+ // Note: groups, clips, gradients not yet supported
276
+ }
277
+ }
278
+ XmlPullParser.END_TAG -> {
279
+ if (parser.name == "vector") {
280
+ return builder.build()
281
+ }
282
+ }
283
+ }
284
+ eventType = parser.next()
285
+ }
286
+
287
+ builder.build()
288
+ } catch (e: Exception) {
289
+ Log.e(TAG, "Failed to parse <vector> element", e)
290
+ null
291
+ }
292
+ }
293
+
294
+ /**
295
+ * Parse <path> element and add to ImageVector builder.
296
+ */
297
+ private fun parsePathElement(parser: XmlPullParser, builder: ImageVector.Builder) {
298
+ try {
299
+ var pathData = ""
300
+ var fillColor: androidx.compose.ui.graphics.Color? = null
301
+
302
+ for (i in 0 until parser.attributeCount) {
303
+ when (parser.getAttributeName(i)) {
304
+ "pathData" -> pathData = parser.getAttributeValue(i)
305
+ "fillColor" -> {
306
+ fillColor = parseColor(parser.getAttributeValue(i))
307
+ }
308
+ // Note: stroke properties, fillType, opacity not yet supported
309
+ }
310
+ }
311
+
312
+ if (pathData.isNotEmpty()) {
313
+ val nodes = PathParser().parsePathString(pathData).toNodes()
314
+ builder.addPath(
315
+ pathData = nodes,
316
+ fill = fillColor?.let { SolidColor(it) }
317
+ )
318
+ }
319
+ } catch (e: Exception) {
320
+ Log.e(TAG, "Failed to parse <path> element", e)
321
+ }
322
+ }
323
+
324
+ /**
325
+ * Parse dimension string (e.g., "24dp") to Compose Dp.
326
+ */
327
+ private fun parseDimension(value: String): Dp {
328
+ return try {
329
+ val numericValue = value
330
+ .replace("dp", "")
331
+ .replace("dip", "")
332
+ .replace("px", "")
333
+ .toFloat()
334
+ numericValue.dp
335
+ } catch (e: Exception) {
336
+ Log.w(TAG, "Failed to parse dimension: $value, using default 24dp")
337
+ 24.dp
338
+ }
339
+ }
340
+
341
+ /**
342
+ * Parse color string to Compose Color.
343
+ */
344
+ private fun parseColor(colorValue: String): androidx.compose.ui.graphics.Color {
345
+ return try {
346
+ when {
347
+ colorValue.startsWith("#") -> {
348
+ androidx.compose.ui.graphics.Color(colorValue.toColorInt())
349
+ }
350
+ colorValue.startsWith("@android:color/") || colorValue.startsWith("?attr/") -> {
351
+ // Theme attributes default to black (could be enhanced to resolve theme colors)
352
+ Log.d(TAG, "Theme color attribute not resolved: $colorValue, using black")
353
+ androidx.compose.ui.graphics.Color.Black
354
+ }
355
+ else -> {
356
+ Log.w(TAG, "Unknown color format: $colorValue, using black")
357
+ androidx.compose.ui.graphics.Color.Black
358
+ }
359
+ }
360
+ } catch (e: Exception) {
361
+ Log.e(TAG, "Failed to parse color: $colorValue", e)
362
+ androidx.compose.ui.graphics.Color.Black
363
+ }
364
+ }
365
+
366
+ companion object {
367
+ private const val TAG = "VectorIconLoader"
368
+ }
369
+ }
@@ -152,7 +152,7 @@ fun FunctionalComposableScope.ContextMenuContent(
152
152
  // Provide expanded state to children via CompositionLocal
153
153
  // This allows Button children to trigger menu expansion
154
154
  CompositionLocalProvider(LocalContextMenuExpanded provides expanded) {
155
- Box(modifier = ModifierRegistry.applyModifiers(props.modifiers, appContext, composableScope)) {
155
+ Box(modifier = ModifierRegistry.applyModifiers(props.modifiers, appContext, composableScope, globalEventDispatcher)) {
156
156
  // Trigger button - Button will automatically expand menu when clicked
157
157
  Children(ComposableScope())
158
158
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/AlertDialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,uBAAuB,GAAG;I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AAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,mBAAmB,CAAC,EAAE,uBAAuB,CAAC;IAC9C;;OAEG;IACH,mBAAmB,CAAC,EAAE,uBAAuB,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAgBtD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAElD"}
@@ -0,0 +1,22 @@
1
+ import { type ExpoModifier } from '../../types';
2
+ export type BasicAlertDialogProps = {
3
+ /**
4
+ * The content to display inside the dialog.
5
+ */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * Callback that is called when the user tries to dismiss the dialog
9
+ * (e.g. by tapping outside of it or pressing the back button).
10
+ */
11
+ onDismissRequest?: () => void;
12
+ /**
13
+ * Modifiers for the component.
14
+ */
15
+ modifiers?: ExpoModifier[];
16
+ };
17
+ /**
18
+ * A basic alert dialog that provides a blank container for custom content.
19
+ * Unlike `AlertDialog`, this component does not have structured title/text/buttons slots.
20
+ */
21
+ export declare function BasicAlertDialog(props: BasicAlertDialogProps): 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/BasicAlertDialog/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhE,MAAM,MA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B,CAAC,KAAK,EAAE,WAAW,GAAG,iBAAiB,CAiC1E;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
@@ -0,0 +1,40 @@
1
+ import { type ColorValue } from 'react-native';
2
+ import { ExpoModifier } from '../../types';
3
+ /**
4
+ * Colors for card's core elements.
5
+ */
6
+ export type CardElementColors = {
7
+ containerColor?: ColorValue;
8
+ contentColor?: ColorValue;
9
+ };
10
+ export type CardProps = {
11
+ /**
12
+ * The content to display inside the card.
13
+ */
14
+ children?: React.ReactNode;
15
+ /**
16
+ * The variant of the card.
17
+ * - 'default' - A filled card with no outline.
18
+ * - 'elevated' - A filled card with elevation/shadow.
19
+ * - 'outlined' - A card with an outline border.
20
+ * @default 'default'
21
+ */
22
+ variant?: 'default' | 'elevated' | 'outlined';
23
+ /**
24
+ * The background color of the card.
25
+ */
26
+ color?: ColorValue;
27
+ /**
28
+ * Colors for card's core elements.
29
+ */
30
+ elementColors?: CardElementColors;
31
+ /**
32
+ * Modifiers for the component.
33
+ */
34
+ modifiers?: ExpoModifier[];
35
+ };
36
+ /**
37
+ * A card component that provides a surface for content.
38
+ */
39
+ export declare function Card(props: CardProps): import("react").JSX.Element;
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Card/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,iBAAiB,GAAG;IAC9B,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,YAAY,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;OAMG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AyB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,KAAK,mBAAmB,GAAG,aAAa,CAAC;AAOzC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,CAOhF;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,+BAE5C"}
@@ -50,10 +50,6 @@ export interface ChipProps {
50
50
  */
51
51
  onDismiss?: () => void;
52
52
  }
53
- /**
54
- * @hidden
55
- */
56
- export declare function transformChipProps(props: ChipProps): ChipProps;
57
53
  /**
58
54
  * Displays a native chip component.
59
55
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Chip/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,WAAW,CAAC;AAEhB,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;IAEvD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,I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EG;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,5 +1,5 @@
1
1
  import { type ColorValue } from 'react-native';
2
- import { ExpoModifier, ViewEvent } from '../../types';
2
+ import { ExpoModifier } from '../../types';
3
3
  export type AndroidVariant = 'picker' | 'input';
4
4
  export type DisplayedComponents = 'date' | 'hourAndMinute' | 'dateAndTime';
5
5
  export type DateTimePickerProps = {
@@ -43,19 +43,8 @@ export type DateTimePickerProps = {
43
43
  */
44
44
  modifiers?: ExpoModifier[];
45
45
  };
46
- type NativeDatePickerProps = Omit<DateTimePickerProps, 'variant' | 'onDateSelected' | 'initialDate'> & {
47
- variant?: AndroidVariant;
48
- initialDate?: number | null;
49
- } & ViewEvent<'onDateSelected', {
50
- date: Date;
51
- }>;
52
- /**
53
- * @hidden
54
- */
55
- export declare function transformDateTimePickerProps(props: DateTimePickerProps): NativeDatePickerProps;
56
46
  /**
57
47
  * Renders a `DateTimePicker` component.
58
48
  */
59
49
  export declare function DateTimePicker(props: DateTimePickerProps): import("react").JSX.Element;
60
- export {};
61
50
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/DatePicker/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,eAAe,GAAG,aAAa,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,KAAK,q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;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAExD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Divider/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAOF;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Divider/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAiBF;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C"}
@@ -0,0 +1,30 @@
1
+ import { type ExpoModifier } from '../../types';
2
+ export type DockedSearchBarProps = {
3
+ /**
4
+ * Callback function that is called when the search query changes.
5
+ */
6
+ onQueryChange?: (query: string) => void;
7
+ /**
8
+ * Modifiers for the component.
9
+ */
10
+ modifiers?: ExpoModifier[];
11
+ /**
12
+ * The children of the component.
13
+ */
14
+ children?: React.ReactNode;
15
+ };
16
+ type PlaceholderProps = {
17
+ children: React.ReactNode;
18
+ };
19
+ type LeadingIconProps = {
20
+ children: React.ReactNode;
21
+ };
22
+ export declare function DockedSearchBarPlaceholder(props: PlaceholderProps): import("react").JSX.Element;
23
+ export declare function DockedSearchBarLeadingIcon(props: LeadingIconProps): import("react").JSX.Element;
24
+ declare function DockedSearchBar(props: DockedSearchBarProps): import("react").JSX.Element;
25
+ declare namespace DockedSearchBar {
26
+ var Placeholder: typeof DockedSearchBarPlaceholder;
27
+ var LeadingIcon: typeof DockedSearchBarLeadingIcon;
28
+ }
29
+ export { DockedSearchBar };
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/DockedSearchBar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,aAAa,CAAC;AAGhE,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAkBF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,+BAEjE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,+BAEjE;AAcD,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAMnD;kBANQ,eAAe;;;;AAWxB,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const ExpoUIModule: any;
2
+ //# sourceMappingURL=ExpoUIModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoUIModule.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/ExpoUIModule.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,KAAgC,CAAC"}
@@ -0,0 +1,49 @@
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
@@ -0,0 +1 @@
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"}