@expo/ui 56.0.8 → 56.0.10
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.
- package/CHANGELOG.md +35 -1
- package/CLAUDE.md +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +49 -6
- package/android/src/main/java/expo/modules/ui/HorizontalPagerView.kt +97 -16
- package/android/src/main/java/expo/modules/ui/LoadingView.kt +80 -0
- package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +31 -3
- package/android/src/main/java/expo/modules/ui/SnackbarView.kt +126 -0
- package/android/src/main/java/expo/modules/ui/colors/MaterialColors.kt +2 -0
- package/android/src/main/java/expo/modules/ui/state/ObservableState.kt +10 -0
- package/assets/keyboard_arrow_down.xml +10 -0
- package/build/State/index.d.ts +6 -0
- package/build/State/index.d.ts.map +1 -0
- package/build/State/useNativeState.d.ts +32 -3
- package/build/State/useNativeState.d.ts.map +1 -1
- package/build/community/bottom-sheet/BottomSheet.ios.d.ts.map +1 -1
- package/build/community/pager-view/PagerView.android.d.ts +7 -0
- package/build/community/pager-view/PagerView.android.d.ts.map +1 -0
- package/build/community/pager-view/PagerView.d.ts +8 -0
- package/build/community/pager-view/PagerView.d.ts.map +1 -0
- package/build/community/pager-view/PagerView.ios.d.ts +15 -0
- package/build/community/pager-view/PagerView.ios.d.ts.map +1 -0
- package/build/community/pager-view/index.d.ts +3 -0
- package/build/community/pager-view/index.d.ts.map +1 -0
- package/build/community/pager-view/types.d.ts +128 -0
- package/build/community/pager-view/types.d.ts.map +1 -0
- package/build/community/segmented-control/vendor/SegmentsSeparators.d.ts.map +1 -1
- package/build/jetpack-compose/HorizontalPager/index.d.ts +27 -0
- package/build/jetpack-compose/HorizontalPager/index.d.ts.map +1 -1
- package/build/jetpack-compose/Host/index.d.ts +1 -0
- package/build/jetpack-compose/Host/index.d.ts.map +1 -1
- package/build/jetpack-compose/LoadingIndicator/index.d.ts +41 -0
- package/build/jetpack-compose/LoadingIndicator/index.d.ts.map +1 -0
- package/build/jetpack-compose/Snackbar/index.d.ts +94 -0
- package/build/jetpack-compose/Snackbar/index.d.ts.map +1 -0
- package/build/jetpack-compose/SyncSwitch/index.d.ts +1 -1
- package/build/jetpack-compose/SyncSwitch/index.d.ts.map +1 -1
- package/build/jetpack-compose/TextField/index.d.ts +1 -1
- package/build/jetpack-compose/TextField/index.d.ts.map +1 -1
- package/build/jetpack-compose/index.d.ts +3 -2
- package/build/jetpack-compose/index.d.ts.map +1 -1
- package/build/jetpack-compose/modifiers/index.d.ts +6 -2
- package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
- package/build/swift-ui/BottomSheet/index.d.ts +5 -1
- package/build/swift-ui/BottomSheet/index.d.ts.map +1 -1
- package/build/swift-ui/Host/index.d.ts +1 -0
- package/build/swift-ui/Host/index.d.ts.map +1 -1
- package/build/swift-ui/ScrollView/index.d.ts +30 -0
- package/build/swift-ui/ScrollView/index.d.ts.map +1 -1
- package/build/swift-ui/SecureField/index.d.ts +1 -1
- package/build/swift-ui/SecureField/index.d.ts.map +1 -1
- package/build/swift-ui/SyncToggle/index.d.ts +1 -1
- package/build/swift-ui/SyncToggle/index.d.ts.map +1 -1
- package/build/swift-ui/TextField/index.d.ts +1 -1
- package/build/swift-ui/TextField/index.d.ts.map +1 -1
- package/build/swift-ui/index.d.ts +2 -2
- package/build/swift-ui/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +25 -15
- package/build/swift-ui/modifiers/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/scrollObservation.d.ts +52 -0
- package/build/swift-ui/modifiers/scrollObservation.d.ts.map +1 -0
- package/build/swift-ui/modifiers/scrollPosition.d.ts +1 -1
- package/build/swift-ui/modifiers/scrollPosition.d.ts.map +1 -1
- package/build/swift-ui/modifiers/symbolEffect.d.ts +1 -1
- package/build/swift-ui/modifiers/symbolEffect.d.ts.map +1 -1
- package/build/swift-ui/withAnimation.d.ts +26 -0
- package/build/swift-ui/withAnimation.d.ts.map +1 -0
- package/build/universal/BottomSheet/index.android.d.ts +1 -1
- package/build/universal/BottomSheet/index.android.d.ts.map +1 -1
- package/build/universal/BottomSheet/index.d.ts +1 -1
- package/build/universal/BottomSheet/index.d.ts.map +1 -1
- package/build/universal/BottomSheet/index.ios.d.ts +1 -1
- package/build/universal/BottomSheet/index.ios.d.ts.map +1 -1
- package/build/universal/BottomSheet/types.d.ts +27 -0
- package/build/universal/BottomSheet/types.d.ts.map +1 -1
- package/build/universal/Checkbox/index.d.ts.map +1 -1
- package/build/universal/Collapsible/index.android.d.ts +8 -0
- package/build/universal/Collapsible/index.android.d.ts.map +1 -0
- package/build/universal/Collapsible/index.d.ts +8 -0
- package/build/universal/Collapsible/index.d.ts.map +1 -0
- package/build/universal/Collapsible/index.ios.d.ts +7 -0
- package/build/universal/Collapsible/index.ios.d.ts.map +1 -0
- package/build/universal/Collapsible/types.d.ts +23 -0
- package/build/universal/Collapsible/types.d.ts.map +1 -0
- package/build/universal/Column/index.d.ts.map +1 -1
- package/build/universal/Host/index.d.ts +5 -18
- package/build/universal/Host/index.d.ts.map +1 -1
- package/build/universal/Host/types.d.ts +72 -0
- package/build/universal/Host/types.d.ts.map +1 -0
- package/build/universal/List/index.android.d.ts +9 -0
- package/build/universal/List/index.android.d.ts.map +1 -0
- package/build/universal/List/index.d.ts +8 -0
- package/build/universal/List/index.d.ts.map +1 -0
- package/build/universal/List/index.ios.d.ts +8 -0
- package/build/universal/List/index.ios.d.ts.map +1 -0
- package/build/universal/List/types.d.ts +26 -0
- package/build/universal/List/types.d.ts.map +1 -0
- package/build/universal/ListItem/ListItem.android.d.ts +8 -0
- package/build/universal/ListItem/ListItem.android.d.ts.map +1 -0
- package/build/universal/ListItem/ListItem.d.ts +9 -0
- package/build/universal/ListItem/ListItem.d.ts.map +1 -0
- package/build/universal/ListItem/ListItem.ios.d.ts +8 -0
- package/build/universal/ListItem/ListItem.ios.d.ts.map +1 -0
- package/build/universal/ListItem/ListItemSlots.d.ts +21 -0
- package/build/universal/ListItem/ListItemSlots.d.ts.map +1 -0
- package/build/universal/ListItem/index.d.ts +10 -0
- package/build/universal/ListItem/index.d.ts.map +1 -0
- package/build/universal/ListItem/types.d.ts +59 -0
- package/build/universal/ListItem/types.d.ts.map +1 -0
- package/build/universal/Picker/Picker.android.d.ts +9 -0
- package/build/universal/Picker/Picker.android.d.ts.map +1 -0
- package/build/universal/Picker/Picker.d.ts +8 -0
- package/build/universal/Picker/Picker.d.ts.map +1 -0
- package/build/universal/Picker/Picker.ios.d.ts +9 -0
- package/build/universal/Picker/Picker.ios.d.ts.map +1 -0
- package/build/universal/Picker/PickerItem.d.ts +9 -0
- package/build/universal/Picker/PickerItem.d.ts.map +1 -0
- package/build/universal/Picker/index.d.ts +8 -0
- package/build/universal/Picker/index.d.ts.map +1 -0
- package/build/universal/Picker/types.d.ts +69 -0
- package/build/universal/Picker/types.d.ts.map +1 -0
- package/build/universal/RNHostView/index.android.d.ts +7 -0
- package/build/universal/RNHostView/index.android.d.ts.map +1 -0
- package/build/universal/RNHostView/index.d.ts +7 -0
- package/build/universal/RNHostView/index.d.ts.map +1 -0
- package/build/universal/RNHostView/index.ios.d.ts +7 -0
- package/build/universal/RNHostView/index.ios.d.ts.map +1 -0
- package/build/universal/RNHostView/types.d.ts +23 -0
- package/build/universal/RNHostView/types.d.ts.map +1 -0
- package/build/universal/Switch/index.d.ts.map +1 -1
- package/build/universal/TextInput/index.d.ts.map +1 -1
- package/build/universal/index.d.ts +5 -0
- package/build/universal/index.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/BottomSheetView.swift +4 -1
- package/ios/ExpoUIModule.swift +47 -4
- package/ios/HostView.swift +21 -18
- package/ios/Modifiers/AnimationConfig.swift +109 -0
- package/ios/Modifiers/FontModifier.swift +72 -20
- package/ios/Modifiers/ScrollObservationModifiers.swift +107 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +9 -112
- package/ios/State/ObservableState.swift +12 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.8/expo.modules.ui-56.0.8-sources.jar → 56.0.10/expo.modules.ui-56.0.10-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.8/expo.modules.ui-56.0.8.module → 56.0.10/expo.modules.ui-56.0.10.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.8/expo.modules.ui-56.0.8.pom → 56.0.10/expo.modules.ui-56.0.10.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.pom.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
- package/package.json +7 -3
- package/src/State/index.ts +10 -0
- package/src/State/useNativeState.ts +71 -3
- package/src/community/bottom-sheet/BottomSheet.ios.tsx +0 -17
- package/src/community/pager-view/PagerView.android.tsx +223 -0
- package/src/community/pager-view/PagerView.ios.tsx +267 -0
- package/src/community/pager-view/PagerView.tsx +14 -0
- package/src/community/pager-view/index.tsx +13 -0
- package/src/community/pager-view/types.tsx +137 -0
- package/src/community/picker/Picker.android.tsx +1 -1
- package/src/community/segmented-control/vendor/SegmentsSeparators.tsx +3 -6
- package/src/jetpack-compose/HorizontalPager/index.tsx +89 -18
- package/src/jetpack-compose/Host/index.tsx +1 -0
- package/src/jetpack-compose/LoadingIndicator/index.tsx +91 -0
- package/src/jetpack-compose/Snackbar/index.tsx +135 -0
- package/src/jetpack-compose/SyncSwitch/index.tsx +1 -3
- package/src/jetpack-compose/TextField/index.tsx +1 -4
- package/src/jetpack-compose/index.ts +3 -2
- package/src/jetpack-compose/modifiers/index.ts +5 -2
- package/src/swift-ui/BottomSheet/index.tsx +32 -15
- package/src/swift-ui/Host/index.tsx +1 -0
- package/src/swift-ui/ScrollView/index.tsx +33 -0
- package/src/swift-ui/SecureField/index.tsx +1 -4
- package/src/swift-ui/SyncToggle/index.tsx +1 -3
- package/src/swift-ui/TextField/index.tsx +1 -4
- package/src/swift-ui/index.tsx +2 -3
- package/src/swift-ui/modifiers/index.ts +37 -14
- package/src/swift-ui/modifiers/scrollObservation.ts +80 -0
- package/src/swift-ui/modifiers/scrollPosition.ts +1 -2
- package/src/swift-ui/modifiers/symbolEffect.ts +1 -2
- package/src/swift-ui/withAnimation.ts +71 -0
- package/src/ts-declarations/react-native-web.d.ts +7 -0
- package/src/universal/BottomSheet/index.android.tsx +58 -11
- package/src/universal/BottomSheet/index.ios.tsx +40 -20
- package/src/universal/BottomSheet/index.tsx +49 -4
- package/src/universal/BottomSheet/types.ts +25 -0
- package/src/universal/Checkbox/index.tsx +14 -2
- package/src/universal/Collapsible/index.android.tsx +72 -0
- package/src/universal/Collapsible/index.ios.tsx +16 -0
- package/src/universal/Collapsible/index.tsx +71 -0
- package/src/universal/Collapsible/types.ts +25 -0
- package/src/universal/Column/index.tsx +3 -1
- package/src/universal/Host/index.tsx +9 -10
- package/src/universal/Host/types.ts +70 -0
- package/src/universal/List/index.android.tsx +44 -0
- package/src/universal/List/index.ios.tsx +19 -0
- package/src/universal/List/index.tsx +26 -0
- package/src/universal/List/types.ts +28 -0
- package/src/universal/ListItem/ListItem.android.tsx +52 -0
- package/src/universal/ListItem/ListItem.ios.tsx +58 -0
- package/src/universal/ListItem/ListItem.tsx +77 -0
- package/src/universal/ListItem/ListItemSlots.tsx +66 -0
- package/src/universal/ListItem/index.ts +15 -0
- package/src/universal/ListItem/types.ts +67 -0
- package/src/universal/Picker/Picker.android.tsx +69 -0
- package/src/universal/Picker/Picker.ios.tsx +45 -0
- package/src/universal/Picker/Picker.tsx +52 -0
- package/src/universal/Picker/PickerItem.tsx +27 -0
- package/src/universal/Picker/index.ts +11 -0
- package/src/universal/Picker/types.ts +79 -0
- package/src/universal/RNHostView/index.android.tsx +33 -0
- package/src/universal/RNHostView/index.ios.tsx +12 -0
- package/src/universal/RNHostView/index.tsx +39 -0
- package/src/universal/RNHostView/types.ts +25 -0
- package/src/universal/Switch/index.tsx +7 -2
- package/src/universal/TextInput/index.tsx +12 -2
- package/src/universal/index.ts +5 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.8/expo.modules.ui-56.0.8.pom.sha512 +0 -1
- package/src/community/bottom-sheet/CLAUDE.md +0 -55
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="960"
|
|
5
|
+
android:viewportHeight="960"
|
|
6
|
+
android:tint="?attr/colorControlNormal">
|
|
7
|
+
<path
|
|
8
|
+
android:fillColor="@android:color/white"
|
|
9
|
+
android:pathData="M480,616L240,376L296,320L480,504L664,320L720,376L480,616Z"/>
|
|
10
|
+
</vector>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './index.fx';
|
|
2
|
+
export { useNativeState, type ObservableState } from './useNativeState';
|
|
3
|
+
export { useWorkletProp } from './useWorkletProp';
|
|
4
|
+
export { worklets } from './optionalWorklets';
|
|
5
|
+
export { getStateId } from './utils';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/State/index.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -5,11 +5,40 @@ import { type SharedObject } from 'expo-modules-core';
|
|
|
5
5
|
*/
|
|
6
6
|
export type ObservableState<T> = SharedObject & {
|
|
7
7
|
/**
|
|
8
|
-
* The current value.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* The current value.
|
|
9
|
+
*
|
|
10
|
+
* Writes from a UI worklet are synchronous and immediately readable. Writes
|
|
11
|
+
* from the JS thread are scheduled to the UI thread asynchronously, the new value is not readable until the update has been
|
|
12
|
+
* applied. Prefer writing from a worklet when you need synchronous updates
|
|
11
13
|
*/
|
|
12
14
|
value: T;
|
|
15
|
+
/**
|
|
16
|
+
* A single listener invoked on the native UI runtime whenever the value changes
|
|
17
|
+
* (after iOS `didSet` and Android's setter). Assigning replaces the previous
|
|
18
|
+
* listener; assign `null` to clear. The initial value does not fire `onChange`.
|
|
19
|
+
*
|
|
20
|
+
* The callback must be a worklet so it can run synchronously on the UI thread.
|
|
21
|
+
* Attach it inside `useEffect` and clear it in the cleanup so the listener
|
|
22
|
+
* lifecycle matches the component lifecycle.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* const state = useNativeState(0);
|
|
27
|
+
*
|
|
28
|
+
* useEffect(() => {
|
|
29
|
+
* state.onChange = (value) => {
|
|
30
|
+
* 'worklet';
|
|
31
|
+
* console.log('changed to', value);
|
|
32
|
+
* };
|
|
33
|
+
* return () => {
|
|
34
|
+
* state.onChange = null;
|
|
35
|
+
* };
|
|
36
|
+
* }, []);
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
onChange: {
|
|
40
|
+
listener(value: T): void;
|
|
41
|
+
}['listener'] | null;
|
|
13
42
|
};
|
|
14
43
|
/**
|
|
15
44
|
* Creates an observable native state that is automatically cleaned up when the
|
|
@@ -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
|
|
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,
|
|
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,7 @@
|
|
|
1
|
+
import { type PagerViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Drop-in replacement for `react-native-pager-view` on Android.
|
|
4
|
+
* Renders a Jetpack Compose `HorizontalPager`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function PagerView(props: PagerViewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PagerView.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagerView.android.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/PagerView.android.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAO/D;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA+G9C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PagerViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A drop-in replacement for `react-native-pager-view`. Renders a horizontally
|
|
4
|
+
* paged view backed by Jetpack Compose's `HorizontalPager` on Android and
|
|
5
|
+
* SwiftUI on iOS. Each child is treated as a separate page.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PagerView(_props: PagerViewProps): never;
|
|
8
|
+
//# sourceMappingURL=PagerView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagerView.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/PagerView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,KAAK,CAIvD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type PagerViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Drop-in replacement for `react-native-pager-view` on iOS.
|
|
4
|
+
*
|
|
5
|
+
* Renders a SwiftUI `ScrollView` with paging behavior. Scroll position is the
|
|
6
|
+
* single source of truth: an `ObservableState` bound through the
|
|
7
|
+
* `scrollPosition` modifier drives initial placement, user-swipe writeback,
|
|
8
|
+
* and imperative `setPage` / `setPageWithoutAnimation`. The animated path
|
|
9
|
+
* routes the write through `withAnimation`; if `react-native-worklets` isn't
|
|
10
|
+
* installed, `setPage` falls back to a non-animated jump. Requires iOS 17+.
|
|
11
|
+
* Continuous progress (`onPageScroll`) and scroll state
|
|
12
|
+
* (`onPageScrollStateChanged`) events require iOS 18+.
|
|
13
|
+
*/
|
|
14
|
+
export declare function PagerView(props: PagerViewProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=PagerView.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagerView.ios.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/PagerView.ios.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAiC/D;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA+J9C"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { PagerViewProps, PagerViewRef, PagerViewOnPageScrollEventData, PagerViewOnPageSelectedEventData, PageScrollStateChangedEventData, PagerViewOnPageScrollEvent, PagerViewOnPageSelectedEvent, PageScrollStateChangedEvent, } from './types';
|
|
2
|
+
export { PagerView, PagerView as default } from './PagerView';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EACV,cAAc,EACd,YAAY,EACZ,8BAA8B,EAC9B,gCAAgC,EAChC,+BAA+B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,SAAS,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { NativeSyntheticEvent, ViewProps } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Event payload for `onPageScroll`. Mirrors the upstream
|
|
5
|
+
* `react-native-pager-view` shape.
|
|
6
|
+
*/
|
|
7
|
+
export type PagerViewOnPageScrollEventData = Readonly<{
|
|
8
|
+
position: number;
|
|
9
|
+
offset: number;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Event payload for `onPageSelected`. Mirrors the upstream
|
|
13
|
+
* `react-native-pager-view` shape.
|
|
14
|
+
*/
|
|
15
|
+
export type PagerViewOnPageSelectedEventData = Readonly<{
|
|
16
|
+
position: number;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Event payload for `onPageScrollStateChanged`. Mirrors the upstream
|
|
20
|
+
* `react-native-pager-view` shape.
|
|
21
|
+
*/
|
|
22
|
+
export type PageScrollStateChangedEventData = Readonly<{
|
|
23
|
+
pageScrollState: 'idle' | 'dragging' | 'settling';
|
|
24
|
+
}>;
|
|
25
|
+
export type PagerViewOnPageScrollEvent = NativeSyntheticEvent<PagerViewOnPageScrollEventData>;
|
|
26
|
+
export type PagerViewOnPageSelectedEvent = NativeSyntheticEvent<PagerViewOnPageSelectedEventData>;
|
|
27
|
+
export type PageScrollStateChangedEvent = NativeSyntheticEvent<PageScrollStateChangedEventData>;
|
|
28
|
+
/**
|
|
29
|
+
* Wraps a payload as `NativeSyntheticEvent`. We only populate `nativeEvent`
|
|
30
|
+
* since our consumers (mirroring upstream `react-native-pager-view`) read
|
|
31
|
+
* only `event.nativeEvent.X`; the unset SyntheticEvent fields would never
|
|
32
|
+
* be observed in practice.
|
|
33
|
+
*/
|
|
34
|
+
export declare const wrapNativeEvent: <T>(nativeEvent: T) => NativeSyntheticEvent<T>;
|
|
35
|
+
/**
|
|
36
|
+
* Props for the `PagerView` component.
|
|
37
|
+
* Compatible with `react-native-pager-view`.
|
|
38
|
+
*/
|
|
39
|
+
export type PagerViewProps = ViewProps & {
|
|
40
|
+
/**
|
|
41
|
+
* Ref handle exposing imperative `setPage`, `setPageWithoutAnimation`,
|
|
42
|
+
* and `setScrollEnabled` methods.
|
|
43
|
+
*/
|
|
44
|
+
ref?: Ref<PagerViewRef>;
|
|
45
|
+
/**
|
|
46
|
+
* Index of the page that is initially selected. Read **once** on mount;
|
|
47
|
+
* later changes are ignored. To navigate after mount, call
|
|
48
|
+
* `ref.setPage()` or `ref.setPageWithoutAnimation()`.
|
|
49
|
+
* @default 0
|
|
50
|
+
*/
|
|
51
|
+
initialPage?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the user can swipe between pages.
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
scrollEnabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Layout direction for paging.
|
|
59
|
+
* @default 'ltr'
|
|
60
|
+
* @platform android
|
|
61
|
+
*/
|
|
62
|
+
layoutDirection?: 'ltr' | 'rtl';
|
|
63
|
+
/**
|
|
64
|
+
* Number of pages kept off-screen on each side of the visible page.
|
|
65
|
+
* @platform android
|
|
66
|
+
*/
|
|
67
|
+
offscreenPageLimit?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Pixels of padding between pages.
|
|
70
|
+
* @platform android
|
|
71
|
+
*/
|
|
72
|
+
pageMargin?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Fires continuously while a swipe is in progress. The event's `position`
|
|
75
|
+
* is the index of the leading visible page; `offset` is the fractional
|
|
76
|
+
* progress toward the next page in the `[0, 1)` range.
|
|
77
|
+
*
|
|
78
|
+
* **iOS 18+ only.**
|
|
79
|
+
*/
|
|
80
|
+
onPageScroll?: (event: PagerViewOnPageScrollEvent) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Fires when a page is fully selected. The event's `position` is the
|
|
83
|
+
* index of the new page.
|
|
84
|
+
*/
|
|
85
|
+
onPageSelected?: (event: PagerViewOnPageSelectedEvent) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Fires when the scroll state changes between `idle`, `dragging`,
|
|
88
|
+
* and `settling`.
|
|
89
|
+
*
|
|
90
|
+
* **iOS 18+ only.**
|
|
91
|
+
*/
|
|
92
|
+
onPageScrollStateChanged?: (event: PageScrollStateChangedEvent) => void;
|
|
93
|
+
/**
|
|
94
|
+
* Pages of the pager. Each child is treated as a separate page and
|
|
95
|
+
* stretched to fill the pager. Each child should have a stable `key`.
|
|
96
|
+
*/
|
|
97
|
+
children?: ReactNode;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Ref handle for the `PagerView` component.
|
|
101
|
+
* Compatible with `react-native-pager-view`.
|
|
102
|
+
*/
|
|
103
|
+
export type PagerViewRef = {
|
|
104
|
+
/**
|
|
105
|
+
* Animate the pager to the given page index. Out-of-range indices are
|
|
106
|
+
* silently ignored. On iOS the animation requires `react-native-worklets`;
|
|
107
|
+
* without it, `setPage` falls back to a non-animated jump.
|
|
108
|
+
*/
|
|
109
|
+
setPage: (selectedPage: number) => void;
|
|
110
|
+
/**
|
|
111
|
+
* Jump to the given page index without an animation.
|
|
112
|
+
*/
|
|
113
|
+
setPageWithoutAnimation: (selectedPage: number) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Imperatively enable or disable user scrolling — convenient when
|
|
116
|
+
* toggling from a non-React context like a ref-based gesture handler.
|
|
117
|
+
*
|
|
118
|
+
* > **Note:** If the `scrollEnabled` prop is also provided, subsequent
|
|
119
|
+
* > prop changes win and reset the value set imperatively. To use the
|
|
120
|
+
* > imperative path exclusively, omit the prop.
|
|
121
|
+
*
|
|
122
|
+
* > Unlike upstream `react-native-pager-view` (which calls UIManager
|
|
123
|
+
* > directly), this triggers a re-render of `PagerView` so the new
|
|
124
|
+
* > flag flows through to the native view via props.
|
|
125
|
+
*/
|
|
126
|
+
setScrollEnabled: (scrollEnabled: boolean) => void;
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC;IACtD,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CAAC;IACrD,eAAe,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;CACnD,CAAC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;AAC9F,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,gCAAgC,CAAC,CAAC;AAClG,MAAM,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,+BAA+B,CAAC,CAAC;AAEhG;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAG,aAAa,CAAC,KAAG,oBAAoB,CAAC,CAAC,CAG1E,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC;;;OAGG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IACxB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,eAAe,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAChC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAC3D;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAC/D;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACxE;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,uBAAuB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD;;;;;;;;;;;OAWG;IACH,gBAAgB,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;CACpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentsSeparators.d.ts","sourceRoot":"","sources":["../../../../src/community/segmented-control/vendor/SegmentsSeparators.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,aAAa,GACd,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,
|
|
1
|
+
{"version":3,"file":"SegmentsSeparators.d.ts","sourceRoot":"","sources":["../../../../src/community/segmented-control/vendor/SegmentsSeparators.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,aAAa,GACd,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,2CAiBA"}
|
|
@@ -13,6 +13,11 @@ export type HorizontalPagerHandle = {
|
|
|
13
13
|
*/
|
|
14
14
|
scrollToPage: (page: number) => Promise<void>;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Kind of drag interaction reported by `onDragInteraction`. Mirrors Compose's
|
|
18
|
+
* `DragInteraction.Start` / `DragInteraction.Stop` / `DragInteraction.Cancel`.
|
|
19
|
+
*/
|
|
20
|
+
export type HorizontalPagerDragInteraction = 'start' | 'stop' | 'cancel';
|
|
16
21
|
export type HorizontalPagerProps = {
|
|
17
22
|
/**
|
|
18
23
|
* Imperative handle for programmatic navigation. Mirrors the methods on
|
|
@@ -36,6 +41,28 @@ export type HorizontalPagerProps = {
|
|
|
36
41
|
* swipe or programmatic scroll has fully settled.
|
|
37
42
|
*/
|
|
38
43
|
onSettledPageChange?: (page: number) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Fires continuously while a swipe is in progress. Mirrors Compose's
|
|
46
|
+
* `PagerState.currentPage` and `currentPageOffsetFraction` — the latter is
|
|
47
|
+
* the signed fractional offset from `currentPage`, in the `[-0.5, 0.5]` range.
|
|
48
|
+
*
|
|
49
|
+
* If the callback is marked with the `'worklet'` directive, it runs
|
|
50
|
+
* synchronously on the UI thread; otherwise it is delivered asynchronously
|
|
51
|
+
* as a regular JS event.
|
|
52
|
+
*/
|
|
53
|
+
onPageScroll?: (currentPage: number, currentPageOffsetFraction: number) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Fires when Compose's `PagerState.isScrollInProgress` toggles — true while
|
|
56
|
+
* the pager is being dragged or animating to a snap target, false once it
|
|
57
|
+
* has settled.
|
|
58
|
+
*/
|
|
59
|
+
onScrollInProgressChange?: (isScrollInProgress: boolean) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Fires for each drag interaction emitted by `PagerState.interactionSource`.
|
|
62
|
+
* Combine with `onScrollInProgressChange` to distinguish user dragging from
|
|
63
|
+
* fling/snap-settling.
|
|
64
|
+
*/
|
|
65
|
+
onDragInteraction?: (kind: HorizontalPagerDragInteraction) => void;
|
|
39
66
|
/**
|
|
40
67
|
* Spacing between pages in dp.
|
|
41
68
|
* @default 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/HorizontalPager/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/HorizontalPager/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzE,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,KAAK,IAAI,CAAC;IAChF;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAC,kBAAkB,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACnE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC;IAC9C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAuBF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAkD1D"}
|
|
@@ -53,6 +53,7 @@ export type HostProps = {
|
|
|
53
53
|
ignoreSafeAreaKeyboardInsets?: boolean;
|
|
54
54
|
children: React.ReactNode;
|
|
55
55
|
style?: StyleProp<ViewStyle>;
|
|
56
|
+
pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto';
|
|
56
57
|
} & PrimitiveBaseProps;
|
|
57
58
|
export declare function Host(props: HostProps): import("react/jsx-runtime").JSX.Element;
|
|
58
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Host/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAEvE;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAEtF;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC;IAEhD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Host/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAEvE;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAEtF;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC;IAEhD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;CAC3D,GAAG,kBAAkB,CAAC;AAcvB,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,2CAuCpC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
import { type ObservableState } from '../../State';
|
|
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,EAAc,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/SyncSwitch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/SyncSwitch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAC/B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAYF;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAahD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'react';
|
|
2
2
|
import type { ColorValue } from 'react-native';
|
|
3
|
-
import type
|
|
3
|
+
import { type ObservableState } from '../../State';
|
|
4
4
|
import type { ModifierConfig } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Can be used for imperatively focusing and setting text/selection on the `TextField` component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAc,KAAK,eAAe,EAA4B,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAM7D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,8BAA8B;IAC9B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM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.fx';
|
|
2
1
|
import './MaterialSymbolsAssetsTransformer.fx';
|
|
3
2
|
export * from './AlertDialog';
|
|
4
3
|
export * from './Badge';
|
|
@@ -33,6 +32,7 @@ export * from './ModalBottomSheet';
|
|
|
33
32
|
export * from './Carousel';
|
|
34
33
|
export { HorizontalPager, type HorizontalPagerHandle, type HorizontalPagerProps, } from './HorizontalPager';
|
|
35
34
|
export * from './SearchBar';
|
|
35
|
+
export * from './Snackbar';
|
|
36
36
|
export * from './DockedSearchBar';
|
|
37
37
|
export * from './HorizontalFloatingToolbar';
|
|
38
38
|
export * from './FloatingActionButton';
|
|
@@ -41,12 +41,13 @@ export * from './RadioButton';
|
|
|
41
41
|
export * from './Surface';
|
|
42
42
|
export { type TextProps, Text } from './Text';
|
|
43
43
|
export * from './Tooltip';
|
|
44
|
+
export * from './LoadingIndicator';
|
|
44
45
|
export * from './AnimatedVisibility';
|
|
45
46
|
export * from './Box';
|
|
46
47
|
export * from './Row';
|
|
47
48
|
export * from './Column';
|
|
48
49
|
export * from './FlowRow';
|
|
49
|
-
export { useNativeState } from '../State
|
|
50
|
+
export { useNativeState } from '../State';
|
|
50
51
|
export type { ViewEvent } from '../types';
|
|
51
52
|
export type { PrimitiveBaseProps } from './layout-types';
|
|
52
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAClF,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CA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B,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,UAAU,CAAC;AAC1C,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
|
|
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.
|