@expo/ui 56.0.7 → 56.0.9

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 (208) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +44 -3
  4. package/android/src/main/java/expo/modules/ui/HostView.kt +2 -0
  5. package/android/src/main/java/expo/modules/ui/LoadingView.kt +80 -0
  6. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +50 -4
  7. package/android/src/main/java/expo/modules/ui/RNHostView.kt +8 -3
  8. package/android/src/main/java/expo/modules/ui/ShadowNodeSyncFlush.kt +28 -0
  9. package/android/src/main/java/expo/modules/ui/SnackbarView.kt +126 -0
  10. package/android/src/main/java/expo/modules/ui/state/ObservableState.kt +10 -0
  11. package/assets/keyboard_arrow_down.xml +10 -0
  12. package/build/State/useNativeState.d.ts +32 -3
  13. package/build/State/useNativeState.d.ts.map +1 -1
  14. package/build/community/bottom-sheet/BottomSheet.ios.d.ts.map +1 -1
  15. package/build/community/menu/MenuView.android.d.ts +16 -0
  16. package/build/community/menu/MenuView.android.d.ts.map +1 -0
  17. package/build/community/menu/MenuView.d.ts +19 -0
  18. package/build/community/menu/MenuView.d.ts.map +1 -0
  19. package/build/community/menu/MenuView.ios.d.ts +10 -0
  20. package/build/community/menu/MenuView.ios.d.ts.map +1 -0
  21. package/build/community/menu/index.d.ts +5 -0
  22. package/build/community/menu/index.d.ts.map +1 -0
  23. package/build/community/menu/types.d.ts +166 -0
  24. package/build/community/menu/types.d.ts.map +1 -0
  25. package/build/jetpack-compose/LoadingIndicator/index.d.ts +41 -0
  26. package/build/jetpack-compose/LoadingIndicator/index.d.ts.map +1 -0
  27. package/build/jetpack-compose/Snackbar/index.d.ts +94 -0
  28. package/build/jetpack-compose/Snackbar/index.d.ts.map +1 -0
  29. package/build/jetpack-compose/index.d.ts +2 -0
  30. package/build/jetpack-compose/index.d.ts.map +1 -1
  31. package/build/jetpack-compose/modifiers/index.d.ts +21 -2
  32. package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
  33. package/build/swift-ui/Alert/index.d.ts +42 -0
  34. package/build/swift-ui/Alert/index.d.ts.map +1 -0
  35. package/build/swift-ui/BottomSheet/index.d.ts +5 -1
  36. package/build/swift-ui/BottomSheet/index.d.ts.map +1 -1
  37. package/build/swift-ui/SlotView.d.ts +5 -2
  38. package/build/swift-ui/SlotView.d.ts.map +1 -1
  39. package/build/swift-ui/SwipeActions/index.d.ts +38 -0
  40. package/build/swift-ui/SwipeActions/index.d.ts.map +1 -0
  41. package/build/swift-ui/index.d.ts +3 -0
  42. package/build/swift-ui/index.d.ts.map +1 -1
  43. package/build/swift-ui/modifiers/index.d.ts +3 -1
  44. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  45. package/build/swift-ui/modifiers/symbolEffect.d.ts +103 -0
  46. package/build/swift-ui/modifiers/symbolEffect.d.ts.map +1 -0
  47. package/build/swift-ui/withAnimation.d.ts +26 -0
  48. package/build/swift-ui/withAnimation.d.ts.map +1 -0
  49. package/build/universal/BottomSheet/index.android.d.ts +1 -1
  50. package/build/universal/BottomSheet/index.android.d.ts.map +1 -1
  51. package/build/universal/BottomSheet/index.d.ts +1 -1
  52. package/build/universal/BottomSheet/index.d.ts.map +1 -1
  53. package/build/universal/BottomSheet/index.ios.d.ts +1 -1
  54. package/build/universal/BottomSheet/index.ios.d.ts.map +1 -1
  55. package/build/universal/BottomSheet/types.d.ts +27 -0
  56. package/build/universal/BottomSheet/types.d.ts.map +1 -1
  57. package/build/universal/Collapsible/index.android.d.ts +8 -0
  58. package/build/universal/Collapsible/index.android.d.ts.map +1 -0
  59. package/build/universal/Collapsible/index.d.ts +8 -0
  60. package/build/universal/Collapsible/index.d.ts.map +1 -0
  61. package/build/universal/Collapsible/index.ios.d.ts +7 -0
  62. package/build/universal/Collapsible/index.ios.d.ts.map +1 -0
  63. package/build/universal/Collapsible/types.d.ts +23 -0
  64. package/build/universal/Collapsible/types.d.ts.map +1 -0
  65. package/build/universal/Column/index.d.ts.map +1 -1
  66. package/build/universal/Host/index.d.ts +5 -7
  67. package/build/universal/Host/index.d.ts.map +1 -1
  68. package/build/universal/Host/types.d.ts +72 -0
  69. package/build/universal/Host/types.d.ts.map +1 -0
  70. package/build/universal/List/index.android.d.ts +9 -0
  71. package/build/universal/List/index.android.d.ts.map +1 -0
  72. package/build/universal/List/index.d.ts +8 -0
  73. package/build/universal/List/index.d.ts.map +1 -0
  74. package/build/universal/List/index.ios.d.ts +8 -0
  75. package/build/universal/List/index.ios.d.ts.map +1 -0
  76. package/build/universal/List/types.d.ts +26 -0
  77. package/build/universal/List/types.d.ts.map +1 -0
  78. package/build/universal/ListItem/ListItem.android.d.ts +8 -0
  79. package/build/universal/ListItem/ListItem.android.d.ts.map +1 -0
  80. package/build/universal/ListItem/ListItem.d.ts +9 -0
  81. package/build/universal/ListItem/ListItem.d.ts.map +1 -0
  82. package/build/universal/ListItem/ListItem.ios.d.ts +8 -0
  83. package/build/universal/ListItem/ListItem.ios.d.ts.map +1 -0
  84. package/build/universal/ListItem/ListItemSlots.d.ts +21 -0
  85. package/build/universal/ListItem/ListItemSlots.d.ts.map +1 -0
  86. package/build/universal/ListItem/index.d.ts +10 -0
  87. package/build/universal/ListItem/index.d.ts.map +1 -0
  88. package/build/universal/ListItem/types.d.ts +59 -0
  89. package/build/universal/ListItem/types.d.ts.map +1 -0
  90. package/build/universal/Picker/Picker.android.d.ts +9 -0
  91. package/build/universal/Picker/Picker.android.d.ts.map +1 -0
  92. package/build/universal/Picker/Picker.d.ts +8 -0
  93. package/build/universal/Picker/Picker.d.ts.map +1 -0
  94. package/build/universal/Picker/Picker.ios.d.ts +9 -0
  95. package/build/universal/Picker/Picker.ios.d.ts.map +1 -0
  96. package/build/universal/Picker/PickerItem.d.ts +9 -0
  97. package/build/universal/Picker/PickerItem.d.ts.map +1 -0
  98. package/build/universal/Picker/index.d.ts +8 -0
  99. package/build/universal/Picker/index.d.ts.map +1 -0
  100. package/build/universal/Picker/types.d.ts +69 -0
  101. package/build/universal/Picker/types.d.ts.map +1 -0
  102. package/build/universal/index.d.ts +4 -0
  103. package/build/universal/index.d.ts.map +1 -1
  104. package/expo-module.config.json +1 -1
  105. package/ios/Alert/Alert.swift +56 -0
  106. package/ios/Alert/AlertProps.swift +8 -0
  107. package/ios/BottomSheetView.swift +4 -1
  108. package/ios/ExpoUIModule.swift +43 -1
  109. package/ios/ExpoUITouchHandlerHelper.h +4 -1
  110. package/ios/ExpoUITouchHandlerHelper.mm +1 -0
  111. package/ios/Modifiers/AnimationConfig.swift +109 -0
  112. package/ios/Modifiers/SwipeActionsModifier.swift +97 -0
  113. package/ios/Modifiers/SymbolEffectModifier.swift +452 -0
  114. package/ios/Modifiers/ViewModifierRegistry.swift +5 -112
  115. package/ios/SlotView.swift +5 -0
  116. package/ios/State/ObservableState.swift +12 -1
  117. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.7/expo.modules.ui-56.0.7-sources.jar → 56.0.9/expo.modules.ui-56.0.9-sources.jar} +0 -0
  118. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.md5 +1 -0
  119. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha1 +1 -0
  120. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha256 +1 -0
  121. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha512 +1 -0
  122. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar +0 -0
  123. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.md5 +1 -0
  124. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha1 +1 -0
  125. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha256 +1 -0
  126. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha512 +1 -0
  127. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.7/expo.modules.ui-56.0.7.module → 56.0.9/expo.modules.ui-56.0.9.module} +22 -22
  128. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.md5 +1 -0
  129. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha1 +1 -0
  130. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha256 +1 -0
  131. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha512 +1 -0
  132. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.7/expo.modules.ui-56.0.7.pom → 56.0.9/expo.modules.ui-56.0.9.pom} +1 -1
  133. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.md5 +1 -0
  134. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha1 +1 -0
  135. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha256 +1 -0
  136. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha512 +1 -0
  137. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  138. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  139. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  140. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  141. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  142. package/package.json +7 -3
  143. package/src/State/useNativeState.ts +70 -10
  144. package/src/community/bottom-sheet/BottomSheet.ios.tsx +0 -17
  145. package/src/community/menu/MenuView.android.tsx +224 -0
  146. package/src/community/menu/MenuView.ios.tsx +149 -0
  147. package/src/community/menu/MenuView.tsx +36 -0
  148. package/src/community/menu/index.tsx +14 -0
  149. package/src/community/menu/types.tsx +171 -0
  150. package/src/jetpack-compose/LoadingIndicator/index.tsx +92 -0
  151. package/src/jetpack-compose/Snackbar/index.tsx +135 -0
  152. package/src/jetpack-compose/index.ts +2 -0
  153. package/src/jetpack-compose/modifiers/index.ts +30 -2
  154. package/src/swift-ui/Alert/index.tsx +87 -0
  155. package/src/swift-ui/BottomSheet/index.tsx +32 -15
  156. package/src/swift-ui/SlotView.tsx +17 -4
  157. package/src/swift-ui/SwipeActions/index.tsx +73 -0
  158. package/src/swift-ui/index.tsx +3 -0
  159. package/src/swift-ui/modifiers/index.ts +3 -0
  160. package/src/swift-ui/modifiers/symbolEffect.ts +181 -0
  161. package/src/swift-ui/withAnimation.ts +71 -0
  162. package/src/ts-declarations/react-native-web.d.ts +27 -0
  163. package/src/universal/BottomSheet/index.android.tsx +27 -3
  164. package/src/universal/BottomSheet/index.ios.tsx +30 -12
  165. package/src/universal/BottomSheet/index.tsx +46 -4
  166. package/src/universal/BottomSheet/types.ts +25 -0
  167. package/src/universal/Collapsible/index.android.tsx +72 -0
  168. package/src/universal/Collapsible/index.ios.tsx +16 -0
  169. package/src/universal/Collapsible/index.tsx +58 -0
  170. package/src/universal/Collapsible/types.ts +25 -0
  171. package/src/universal/Column/index.tsx +3 -1
  172. package/src/universal/Host/index.tsx +69 -5
  173. package/src/universal/Host/types.ts +70 -0
  174. package/src/universal/List/index.android.tsx +44 -0
  175. package/src/universal/List/index.ios.tsx +19 -0
  176. package/src/universal/List/index.tsx +26 -0
  177. package/src/universal/List/types.ts +28 -0
  178. package/src/universal/ListItem/ListItem.android.tsx +52 -0
  179. package/src/universal/ListItem/ListItem.ios.tsx +58 -0
  180. package/src/universal/ListItem/ListItem.tsx +72 -0
  181. package/src/universal/ListItem/ListItemSlots.tsx +66 -0
  182. package/src/universal/ListItem/index.ts +15 -0
  183. package/src/universal/ListItem/types.ts +67 -0
  184. package/src/universal/Picker/Picker.android.tsx +69 -0
  185. package/src/universal/Picker/Picker.ios.tsx +45 -0
  186. package/src/universal/Picker/Picker.tsx +52 -0
  187. package/src/universal/Picker/PickerItem.tsx +27 -0
  188. package/src/universal/Picker/index.ts +11 -0
  189. package/src/universal/Picker/types.ts +79 -0
  190. package/src/universal/index.ts +4 -0
  191. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7-sources.jar.md5 +0 -1
  192. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7-sources.jar.sha1 +0 -1
  193. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7-sources.jar.sha256 +0 -1
  194. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7-sources.jar.sha512 +0 -1
  195. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.aar +0 -0
  196. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.aar.md5 +0 -1
  197. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.aar.sha1 +0 -1
  198. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.aar.sha256 +0 -1
  199. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.aar.sha512 +0 -1
  200. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.module.md5 +0 -1
  201. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.module.sha1 +0 -1
  202. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.module.sha256 +0 -1
  203. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.module.sha512 +0 -1
  204. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.pom.md5 +0 -1
  205. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.pom.sha1 +0 -1
  206. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.pom.sha256 +0 -1
  207. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.7/expo.modules.ui-56.0.7.pom.sha512 +0 -1
  208. package/src/community/bottom-sheet/CLAUDE.md +0 -55
@@ -1 +1 @@
1
- {"version":3,"file":"useNativeState.d.ts","sourceRoot":"","sources":["../../src/State/useNativeState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,mBAAmB,CAAC;AAOhF;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,YAAY,GAAG;IAC9C;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAOrE"}
1
+ {"version":3,"file":"useNativeState.d.ts","sourceRoot":"","sources":["../../src/State/useNativeState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAA4B,MAAM,mBAAmB,CAAC;AAOhF;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,YAAY,GAAG;IAC9C;;;;;;OAMG;IACH,KAAK,EAAE,CAAC,CAAC;IAET;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,QAAQ,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;KAAE,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;CAC3D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAQrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.ios.d.ts","sourceRoot":"","sources":["../../../src/community/bottom-sheet/BottomSheet.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAsB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAapE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAiD3C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA+LlD"}
1
+ {"version":3,"file":"BottomSheet.ios.d.ts","sourceRoot":"","sources":["../../../src/community/bottom-sheet/BottomSheet.ios.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAsB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAapE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAiD3C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA8KlD"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import type { MenuComponentProps, MenuComponentRef } from './types';
3
+ /**
4
+ * A drop-in replacement for `@react-native-menu/menu` on Android.
5
+ * Wraps the trigger in a `Pressable` (whose `onPress`/`onLongPress` opens the menu) and
6
+ * renders the actions tree as a controlled Material `DropdownMenu`.
7
+ *
8
+ * Note: when `action.image` is a string, it is treated as an iOS SF Symbol and ignored
9
+ * on Android — pass an `ImageSourcePropType` (e.g. `require('./icon.xml')`) to render
10
+ * a leading icon. `MenuView.title` is also unused on Android since Material
11
+ * `DropdownMenu` has no title slot.
12
+ */
13
+ export declare function MenuView(props: MenuComponentProps & {
14
+ ref?: React.Ref<MenuComponentRef>;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=MenuView.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuView.android.d.ts","sourceRoot":"","sources":["../../../src/community/menu/MenuView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAc,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,SAAS,CAAC;AA4InG;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,2CAsEzF"}
@@ -0,0 +1,19 @@
1
+ import { type Ref } from 'react';
2
+ import type { MenuComponentProps, MenuComponentRef } from './types';
3
+ /**
4
+ * A drop-in replacement for `@react-native-menu/menu`'s `MenuView`. Wrap any trigger
5
+ * view; long-pressing or tapping (per `shouldOpenOnLongPress`) shows a popup menu
6
+ * built from the `actions` tree.
7
+ *
8
+ * - On Android, renders via Compose's `DropdownMenu` anchored to a `Pressable`.
9
+ * - On iOS, renders via SwiftUI's `Menu` (tap) or `ContextMenu` (long-press).
10
+ * - On web, the trigger renders the trigger but actions do not fire;
11
+ * a one-time `console.warn` is emitted.
12
+ *
13
+ * @platform android
14
+ * @platform ios
15
+ */
16
+ export declare function MenuView(props: MenuComponentProps & {
17
+ ref?: Ref<MenuComponentRef>;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ //# sourceMappingURL=MenuView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuView.d.ts","sourceRoot":"","sources":["../../../src/community/menu/MenuView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAkC,MAAM,OAAO,CAAC;AAGjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAIpE;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,2CAenF"}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import type { MenuComponentProps, MenuComponentRef } from './types';
3
+ /**
4
+ * A drop-in replacement for `@react-native-menu/menu` on iOS.
5
+ * Uses SwiftUI `Menu` for tap triggers and `ContextMenu` for long-press triggers.
6
+ */
7
+ export declare function MenuView(props: MenuComponentProps & {
8
+ ref?: React.Ref<MenuComponentRef>;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=MenuView.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuView.ios.d.ts","sourceRoot":"","sources":["../../../src/community/menu/MenuView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAc,kBAAkB,EAAE,gBAAgB,EAAqB,MAAM,SAAS,CAAC;AAiGnG;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,2CA6CzF"}
@@ -0,0 +1,5 @@
1
+ import { MenuView } from './MenuView';
2
+ export type { MenuAction, MenuAttributes, MenuComponentProps, MenuState, MenuComponentRef, NativeActionEvent, } from './types';
3
+ export default MenuView;
4
+ export { MenuView };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/community/menu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAEjB,eAAe,QAAQ,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,166 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ColorValue, ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
3
+ import type { SFSymbol } from 'sf-symbols-typescript';
4
+ /**
5
+ * Visual and behavioral attributes of a menu action.
6
+ * Compatible with `@react-native-menu/menu`.
7
+ */
8
+ export type MenuAttributes = {
9
+ /**
10
+ * Renders the action with a destructive style (red text/icon).
11
+ */
12
+ destructive?: boolean;
13
+ /**
14
+ * Disables the action so it can't be activated.
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * Hides the action from the menu.
19
+ */
20
+ hidden?: boolean;
21
+ };
22
+ /**
23
+ * Selection state for a menu action.
24
+ * `'on'` renders a checkmark; `'off'` doesn't.
25
+ */
26
+ export type MenuState = 'on' | 'off';
27
+ /**
28
+ * A single action inside a `MenuView`.
29
+ * Compatible with `@react-native-menu/menu`.
30
+ */
31
+ export type MenuAction = {
32
+ /**
33
+ * Identifier passed back via `onPressAction.nativeEvent.event` when this action is selected.
34
+ * Defaults to `title` if omitted.
35
+ */
36
+ id?: string;
37
+ /**
38
+ * Action label shown in the menu.
39
+ */
40
+ title: string;
41
+ /**
42
+ * Text color of the action label.
43
+ * @platform android
44
+ */
45
+ titleColor?: ColorValue;
46
+ /**
47
+ * Icon to render beside the action label.
48
+ *
49
+ * - When an `SFSymbol` name (e.g. `'trash'`), rendered on iOS only.
50
+ * Not rendered on Android — pass an `ImageSourcePropType` instead to show an
51
+ * icon there.
52
+ * - When an `ImageSourcePropType` (e.g. `require('./trash.xml')` or
53
+ * `{ uri: '...' }`), rendered on Android via Compose `Icon`. Ignored on iOS;
54
+ * SwiftUI menus only accept SF Symbol names for built-in `Menu`/`Button`
55
+ * labels.
56
+ */
57
+ image?: SFSymbol | ImageSourcePropType;
58
+ /**
59
+ * Tint color applied to the action's icon.
60
+ *
61
+ * Visually applied on Android via the leading `Icon`'s tint. On iOS, the
62
+ * value is accepted but **may not render**: SwiftUI's `Menu`/`ContextMenu`
63
+ * draw their items via the system menu UI, which ignores per-item color
64
+ * modifiers.
65
+ */
66
+ imageColor?: ColorValue;
67
+ /**
68
+ * Selection state. When `'on'`, the action renders a checkmark.
69
+ */
70
+ state?: MenuState;
71
+ /**
72
+ * Visual/behavioral flags.
73
+ */
74
+ attributes?: MenuAttributes;
75
+ /**
76
+ * Nested actions. Without `displayInline`, renders as a submenu;
77
+ * with `displayInline: true`, renders as an inline section.
78
+ */
79
+ subactions?: MenuAction[];
80
+ /**
81
+ * When `true` and `subactions` is present, renders the children as an inline section
82
+ * inside the parent menu (with this action's `title` as the section header on iOS).
83
+ */
84
+ displayInline?: boolean;
85
+ };
86
+ /**
87
+ * Imperative handle exposed by `MenuView` via `ref`.
88
+ * Compatible with `@react-native-menu/menu`'s `ref.show()` API.
89
+ */
90
+ export type MenuComponentRef = {
91
+ /**
92
+ * Programmatically open the menu.
93
+ *
94
+ * On Android, opens the anchored `DropdownMenu` (equivalent to the user tapping
95
+ * the trigger). On iOS this is a no-op — SwiftUI `Menu`/`ContextMenu` have no
96
+ * programmatic open API; a one-time `console.warn` is emitted in development.
97
+ * @platform android
98
+ */
99
+ show: () => void;
100
+ };
101
+ /**
102
+ * Event payload delivered to `onPressAction` when an action is selected.
103
+ * Compatible with `@react-native-menu/menu`.
104
+ */
105
+ export type NativeActionEvent = {
106
+ nativeEvent: {
107
+ /** Identifier of the pressed action: `action.id ?? action.title`. */
108
+ event: string;
109
+ };
110
+ };
111
+ /**
112
+ * Props for the `MenuView` component.
113
+ * Drop-in compatible with `@react-native-menu/menu`.
114
+ */
115
+ export type MenuComponentProps = {
116
+ /**
117
+ * Menu title shown at the top of the menu.
118
+ * @platform ios
119
+ */
120
+ title?: string;
121
+ /**
122
+ * Callback invoked when a menu action is selected.
123
+ */
124
+ onPressAction?: (event: NativeActionEvent) => void;
125
+ /**
126
+ * Callback invoked when the menu opens.
127
+ *
128
+ * On Android, fires when the trigger's tap/long-press flips `expanded` to `true`.
129
+ * On iOS, SwiftUI `Menu`/`ContextMenu` do not expose an open hook, so this is not
130
+ * fired there.
131
+ * @platform android
132
+ */
133
+ onOpenMenu?: () => void;
134
+ /**
135
+ * Callback invoked when the menu closes (either via dismissal or after an action
136
+ * fires).
137
+ *
138
+ * On Android, fires from the controlled `DropdownMenu`'s dismiss path.
139
+ * On iOS, SwiftUI `Menu`/`ContextMenu` do not expose a close hook in a way we can
140
+ * forward, so this is not fired there.
141
+ * @platform android
142
+ */
143
+ onCloseMenu?: () => void;
144
+ /**
145
+ * The actions to display in the menu.
146
+ */
147
+ actions: MenuAction[];
148
+ /**
149
+ * When `true`, the menu opens on long-press of the trigger instead of a single tap.
150
+ * @default false
151
+ */
152
+ shouldOpenOnLongPress?: boolean;
153
+ /**
154
+ * Style applied to the trigger wrapper.
155
+ */
156
+ style?: StyleProp<ViewStyle>;
157
+ /**
158
+ * Test identifier passed through to the trigger view.
159
+ */
160
+ testID?: string;
161
+ /**
162
+ * Trigger view. Long-pressing or tapping (per `shouldOpenOnLongPress`) opens the menu.
163
+ */
164
+ children?: ReactNode;
165
+ };
166
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/community/menu/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,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AO,EAAE,UAAU,EAAE,CAAC;IACtB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { type ColorValue } from 'react-native';
2
+ import type { ObservableState } from '../../State/useNativeState';
3
+ import { type ModifierConfig } from '../../types';
4
+ /**
5
+ * Common props shared by loading indicator variants.
6
+ */
7
+ export type LoadingIndicatorCommonConfig = {
8
+ /**
9
+ * An observable state that holds the current progress value.
10
+ * Create one with `useNativeState(0)`. Omit for indeterminate loading.
11
+ */
12
+ progress?: ObservableState<number | null>;
13
+ /**
14
+ * Loading indicator color.
15
+ */
16
+ color?: ColorValue;
17
+ /**
18
+ * Modifiers for the component.
19
+ */
20
+ modifiers?: ModifierConfig[];
21
+ };
22
+ /**
23
+ * A loading indicator that displays loading using morphing shapes.
24
+ *
25
+ * Matches the Jetpack Compose `LoadingIndicator`.
26
+ */
27
+ export declare const LoadingIndicator: import("react").ComponentType<LoadingIndicatorCommonConfig>;
28
+ export type ContainedLoadingIndicatorProps = LoadingIndicatorCommonConfig & {
29
+ /**
30
+ * Loading indicator's container color
31
+ */
32
+ containerColor?: ColorValue;
33
+ };
34
+ /**
35
+ * A loading indicator that displays loading using morphing shapes inside a container.
36
+ *
37
+ * Matches the Jetpack Compose `ContainedLoadingIndicator`.
38
+ */
39
+ export declare const ContainedLoadingIndicator: import("react").ComponentType<ContainedLoadingIndicatorProps>;
40
+ export { type ObservableState };
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/LoadingIndicator/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAsCF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6DAA0D,CAAC;AAMxF,MAAM,MAAM,8BAA8B,GAAG,4BAA4B,GAAG;IAC1E;;OAEG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,+DAC4D,CAAC;AAInG,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { type Ref } from 'react';
2
+ import { type ColorValue } from 'react-native';
3
+ import { type ModifierConfig } from '../../types';
4
+ export type SnackbarProps = {
5
+ /**
6
+ * The background color of the snackbar container.
7
+ */
8
+ containerColor?: ColorValue;
9
+ /**
10
+ * The preferred content color used for the message text.
11
+ */
12
+ contentColor?: ColorValue;
13
+ /**
14
+ * The content color used for the action button.
15
+ */
16
+ actionContentColor?: ColorValue;
17
+ /**
18
+ * The content color used for the dismiss-action icon button.
19
+ */
20
+ dismissActionContentColor?: ColorValue;
21
+ /**
22
+ * Whether the action should be placed on a new line below the message.
23
+ * Useful for long action labels.
24
+ * @default false
25
+ */
26
+ actionOnNewLine?: boolean;
27
+ /**
28
+ * Modifiers for the component.
29
+ */
30
+ modifiers?: ModifierConfig[];
31
+ };
32
+ /**
33
+ * Styling configuration for the snackbar shown by `SnackbarHost`. Pass as a
34
+ * child to override colors or place the action on a new line.
35
+ */
36
+ export declare function Snackbar(props: SnackbarProps): import("react/jsx-runtime").JSX.Element;
37
+ /**
38
+ * How long the snackbar is shown. Mirrors Compose's `SnackbarDuration` enum.
39
+ */
40
+ export type SnackbarDuration = 'short' | 'long' | 'indefinite';
41
+ /**
42
+ * Reason a snackbar invocation resolved. Mirrors Compose's `SnackbarResult` enum.
43
+ */
44
+ export type SnackbarResult = 'actionPerformed' | 'dismissed';
45
+ export type SnackbarShowOptions = {
46
+ /**
47
+ * The message body of the snackbar.
48
+ */
49
+ message: string;
50
+ /**
51
+ * Label for the optional action button. When omitted, no action button is shown.
52
+ */
53
+ actionLabel?: string;
54
+ /**
55
+ * Whether to show a trailing close (X) icon button to dismiss the snackbar.
56
+ * @default false
57
+ */
58
+ withDismissAction?: boolean;
59
+ /**
60
+ * How long to show the snackbar. Defaults to `'short'` when an `actionLabel`
61
+ * is not provided, and `'indefinite'` when it is, matching Compose.
62
+ */
63
+ duration?: SnackbarDuration;
64
+ };
65
+ export type SnackbarHostRef = {
66
+ /**
67
+ * Shows a snackbar and resolves with `'actionPerformed'` when the user taps
68
+ * the action, or `'dismissed'` when it times out or the dismiss-action
69
+ * button is tapped. Subsequent calls queue and show after the current
70
+ * snackbar is dismissed.
71
+ */
72
+ showSnackbar: (options: SnackbarShowOptions) => Promise<SnackbarResult>;
73
+ };
74
+ export type SnackbarHostProps = {
75
+ /**
76
+ * Ref exposing the imperative `showSnackbar` method.
77
+ */
78
+ ref?: Ref<SnackbarHostRef>;
79
+ /**
80
+ * Modifiers for the component.
81
+ */
82
+ modifiers?: ModifierConfig[];
83
+ /**
84
+ * Optional `Snackbar` child supplying styling for shown snackbars. Mirrors
85
+ * Compose's `SnackbarHost(hostState) { data -> Snackbar(data, ...) }` lambda.
86
+ */
87
+ children?: React.ReactNode;
88
+ };
89
+ /**
90
+ * A Material 3 [SnackbarHost](https://developer.android.com/develop/ui/compose/components/snackbar)
91
+ * that displays snackbars triggered via its ref's `showSnackbar` method.
92
+ */
93
+ export declare function SnackbarHost(props: SnackbarHostProps): import("react/jsx-runtime").JSX.Element;
94
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Snackbar/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC;;OAEG;IACH,yBAAyB,CAAC,EAAE,UAAU,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAOF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAS5C;AAID;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,YAAY,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAOF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAUpD"}
@@ -33,6 +33,7 @@ export * from './ModalBottomSheet';
33
33
  export * from './Carousel';
34
34
  export { HorizontalPager, type HorizontalPagerHandle, type HorizontalPagerProps, } from './HorizontalPager';
35
35
  export * from './SearchBar';
36
+ export * from './Snackbar';
36
37
  export * from './DockedSearchBar';
37
38
  export * from './HorizontalFloatingToolbar';
38
39
  export * from './FloatingActionButton';
@@ -41,6 +42,7 @@ export * from './RadioButton';
41
42
  export * from './Surface';
42
43
  export { type TextProps, Text } from './Text';
43
44
  export * from './Tooltip';
45
+ export * from './LoadingIndicator';
44
46
  export * from './AnimatedVisibility';
45
47
  export * from './Box';
46
48
  export * from './Row';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,uCAAuC,CAAC;AAE/C,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAClF,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cA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,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type ColorValue } from 'react-native';
2
- import { type AnimatedValue } from './animation';
2
+ import { type AnimatedValue, type AnimationSpec } from './animation';
3
3
  export { type ExpoModifier, type ModifierConfig } from '../../types';
4
4
  export { animated, spring, tween, snap, keyframes, type AnimationSpec, type AnimatedValue, } from './animation';
5
5
  export type Alignment = 'topStart' | 'topCenter' | 'topEnd' | 'centerStart' | 'center' | 'centerEnd' | 'bottomStart' | 'bottomCenter' | 'bottomEnd' | 'top' | 'centerVertically' | 'bottom' | 'start' | 'centerHorizontally' | 'end';
@@ -82,9 +82,13 @@ export declare const imePadding: () => import("./createModifier").ModifierConfig
82
82
  export declare const offset: (x: number, y: number) => import("./createModifier").ModifierConfig;
83
83
  /**
84
84
  * Sets the background color.
85
+ * Pass an `animationSpec` to smoothly animate between colors when the prop changes (backed by `animateColorAsState`).
85
86
  * @param color - A color string (hex, e.g., `'#FF0000'`).
87
+ * @param options.animationSpec - Optional spec — animate between color changes.
86
88
  */
87
- export declare const background: (color: ColorValue) => import("./createModifier").ModifierConfig;
89
+ export declare const background: (color: ColorValue, options?: {
90
+ animationSpec?: AnimationSpec;
91
+ }) => import("./createModifier").ModifierConfig;
88
92
  /**
89
93
  * Adds a border around the view.
90
94
  * @param borderWidth - Border width in dp.
@@ -194,6 +198,21 @@ export declare const menuAnchor: (type?: "primaryNotEditable", enabled?: boolean
194
198
  export declare const clickable: (handler: () => void, options?: {
195
199
  indication?: boolean;
196
200
  }) => import("./createModifier").ModifierConfig;
201
+ /**
202
+ * Makes the view respond to both click and long-click gestures.
203
+ * Wraps Compose's `Modifier.combinedClickable`. Useful for triggering a `DropdownMenu`
204
+ * on long-press while keeping a separate short-press action.
205
+ * @param handlers.onClick - Function to call on a short tap.
206
+ * @param handlers.onLongClick - Function to call on a long press.
207
+ * @param options - Optional configuration.
208
+ * @param options.indication - Whether to show a ripple indication. Defaults to `true`.
209
+ */
210
+ export declare const combinedClickable: (handlers: {
211
+ onClick?: () => void;
212
+ onLongClick?: () => void;
213
+ }, options?: {
214
+ indication?: boolean;
215
+ }) => import("./createModifier").ModifierConfig;
197
216
  /**
198
217
  * Makes the view selectable, like a radio button row.
199
218
  * @param selected - Whether the item is currently selected.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/modifiers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL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AAM,MAAM;eACmB,YAAY;YAClB,YAAY;4BAClB,MAAM,GAAG,WAAW,KAAG,YAAY;wBAIvC,MAAM,GAAG,WAAW,KAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,YAAY,8CAAsC,CAAC;AAM/E;;;;GAIG;AACH,eAAO,MAAM,cAAc,iDAAyC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,iDAA2C,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { type CommonViewModifierProps } from '../types';
2
+ /**
3
+ * Props of the `Alert` component.
4
+ */
5
+ export type AlertProps = {
6
+ /**
7
+ * The contents of the alert.
8
+ * Should include `Alert.Trigger`, `Alert.Actions`, and optionally `Alert.Message`.
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * The title of the alert.
13
+ */
14
+ title: string;
15
+ /**
16
+ * Whether the alert is presented.
17
+ */
18
+ isPresented?: boolean;
19
+ /**
20
+ * A callback that is called when the `isPresented` state changes.
21
+ */
22
+ onIsPresentedChange?: (isPresented: boolean) => void;
23
+ } & CommonViewModifierProps;
24
+ /**
25
+ * `Alert` presents a SwiftUI alert with a title, optional message, and action buttons.
26
+ *
27
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/alert(_:ispresented:actions:message:)).
28
+ */
29
+ declare function Alert(props: AlertProps): import("react/jsx-runtime").JSX.Element;
30
+ declare namespace Alert {
31
+ var Trigger: (props: {
32
+ children: React.ReactNode;
33
+ }) => import("react/jsx-runtime").JSX.Element;
34
+ var Actions: (props: {
35
+ children: React.ReactNode;
36
+ }) => import("react/jsx-runtime").JSX.Element;
37
+ var Message: (props: {
38
+ children: React.ReactNode;
39
+ }) => import("react/jsx-runtime").JSX.Element;
40
+ }
41
+ export { Alert };
42
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Alert/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;CACtD,GAAG,uBAAuB,CAAC;AAgC5B;;;;GAIG;AACH,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,2CAe/B;kBAfQ,KAAK;yBAvBU;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;yBAO7B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;yBAO7B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AA8BrD,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -15,6 +15,10 @@ export type BottomSheetProps = {
15
15
  * Callback function that is called when the `BottomSheet` presented state changes.
16
16
  */
17
17
  onIsPresentedChange: (isPresented: boolean) => void;
18
+ /**
19
+ * Callback function that is called after the `BottomSheet` has been fully dismissed.
20
+ */
21
+ onDismiss?: () => void;
18
22
  /**
19
23
  * When `true`, the sheet will automatically size itself to fit its content.
20
24
  * This sets the presentation detent to match the height of the children.
@@ -25,6 +29,6 @@ export type BottomSheetProps = {
25
29
  /**
26
30
  * `BottomSheet` presents content from the bottom of the screen.
27
31
  */
28
- declare function BottomSheet(props: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
32
+ declare function BottomSheet(props: BottomSheetProps): import("react/jsx-runtime").JSX.Element | null;
29
33
  export { BottomSheet };
30
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/BottomSheet/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;OAKG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,uBAAuB,CAAC;AAuB5B;;GAEG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAE3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/BottomSheet/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;OAKG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,uBAAuB,CAAC;AAY5B;;GAEG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,kDA0B3C;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,5 +1,8 @@
1
- export declare function Slot({ name, children }: {
1
+ type SlotProps<ExtraProps extends Record<string, unknown> = Record<string, unknown>> = {
2
2
  name: string;
3
+ extraProps?: ExtraProps;
3
4
  children?: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ export declare function Slot<ExtraProps extends Record<string, unknown> = Record<string, unknown>>({ name, extraProps, children, }: SlotProps<ExtraProps>): import("react/jsx-runtime").JSX.Element;
7
+ export {};
5
8
  //# sourceMappingURL=SlotView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlotView.d.ts","sourceRoot":"","sources":["../../src/swift-ui/SlotView.tsx"],"names":[],"mappings":"AAKA,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAEpF"}
1
+ {"version":3,"file":"SlotView.d.ts","sourceRoot":"","sources":["../../src/swift-ui/SlotView.tsx"],"names":[],"mappings":"AAEA,KAAK,SAAS,CAAC,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACrF,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAIF,wBAAgB,IAAI,CAAC,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACzF,IAAI,EACJ,UAAU,EACV,QAAQ,GACT,EAAE,SAAS,CAAC,UAAU,CAAC,2CAMvB"}
@@ -0,0 +1,38 @@
1
+ import { type CommonViewModifierProps } from '../types';
2
+ export type SwipeActionsEdge = 'leading' | 'trailing';
3
+ export type SwipeActionsProps = {
4
+ /**
5
+ * The regular content and `SwipeActions.Actions` action groups.
6
+ */
7
+ children: React.ReactNode;
8
+ } & CommonViewModifierProps;
9
+ export type SwipeActionsGroupProps = {
10
+ /**
11
+ * The edge where these swipe actions are revealed.
12
+ * @default 'trailing'
13
+ */
14
+ edge?: SwipeActionsEdge;
15
+ /**
16
+ * Whether a full swipe automatically performs the first action in this group.
17
+ * @default true
18
+ */
19
+ allowsFullSwipe?: boolean;
20
+ /**
21
+ * The buttons revealed when the user swipes from this edge.
22
+ */
23
+ children: React.ReactNode;
24
+ };
25
+ /**
26
+ * The buttons revealed when the user swipes the regular content from an edge.
27
+ */
28
+ export declare function Actions({ edge, allowsFullSwipe, children, }: SwipeActionsGroupProps): import("react/jsx-runtime").JSX.Element;
29
+ /**
30
+ * Applies native SwiftUI swipe actions to its non-slot children.
31
+ * @platform ios
32
+ */
33
+ declare function SwipeActionsComponent(props: SwipeActionsProps): import("react/jsx-runtime").JSX.Element;
34
+ declare const SwipeActions: typeof SwipeActionsComponent & {
35
+ Actions: typeof Actions;
36
+ };
37
+ export { SwipeActions };
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/SwipeActions/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,uBAAuB,CAAC;AAE5B,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AASF;;GAEG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAiB,EACjB,eAAsB,EACtB,QAAQ,GACT,EAAE,sBAAsB,2CAMxB;AAED;;;GAGG;AACH,iBAAS,qBAAqB,CAAC,KAAK,EAAE,iBAAiB,2CAUtD;AAED,QAAA,MAAM,YAAY;;CAAoD,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,CAAC"}