@expo/ui 56.0.8 → 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.
- package/CHANGELOG.md +22 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +38 -1
- 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/state/ObservableState.kt +10 -0
- package/assets/keyboard_arrow_down.xml +10 -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/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/index.d.ts +2 -0
- 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/index.d.ts +1 -0
- package/build/swift-ui/index.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/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/index.d.ts +4 -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 +41 -1
- package/ios/Modifiers/AnimationConfig.swift +109 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +1 -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.9/expo.modules.ui-56.0.9-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.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.9/expo.modules.ui-56.0.9.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.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.9/expo.modules.ui-56.0.9.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.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 +3 -3
- package/src/State/useNativeState.ts +70 -10
- package/src/community/bottom-sheet/BottomSheet.ios.tsx +0 -17
- package/src/jetpack-compose/LoadingIndicator/index.tsx +92 -0
- package/src/jetpack-compose/Snackbar/index.tsx +135 -0
- package/src/jetpack-compose/index.ts +2 -0
- package/src/jetpack-compose/modifiers/index.ts +5 -2
- package/src/swift-ui/BottomSheet/index.tsx +32 -15
- package/src/swift-ui/index.tsx +1 -0
- 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 +27 -3
- package/src/universal/BottomSheet/index.ios.tsx +30 -12
- package/src/universal/BottomSheet/index.tsx +46 -4
- package/src/universal/BottomSheet/types.ts +25 -0
- package/src/universal/Collapsible/index.android.tsx +72 -0
- package/src/universal/Collapsible/index.ios.tsx +16 -0
- package/src/universal/Collapsible/index.tsx +58 -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 +72 -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/index.ts +4 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{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AAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC;AACrB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,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
|
|
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.
|
|
@@ -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;
|
|
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,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,a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O,MAAM,gBAAgB,iDAA2C,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,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;
|
|
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"}
|
|
@@ -36,6 +36,7 @@ export * from './Stepper';
|
|
|
36
36
|
export * from './SwipeActions';
|
|
37
37
|
export * from './Text';
|
|
38
38
|
export { useNativeState } from '../State/useNativeState';
|
|
39
|
+
export { withAnimation, type WithAnimationCompletionCriteria } from './withAnimation';
|
|
39
40
|
export * from './SyncToggle';
|
|
40
41
|
export * from './TabView';
|
|
41
42
|
export * from './Toggle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAE3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAA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OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ChainableAnimationType } from './modifiers/animation/types';
|
|
2
|
+
/**
|
|
3
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/animationcompletioncriteria).
|
|
4
|
+
*/
|
|
5
|
+
export type WithAnimationCompletionCriteria = 'logicallyComplete' | 'removed';
|
|
6
|
+
/**
|
|
7
|
+
* Mirrors SwiftUI's [`withAnimation(_:_:)`](https://developer.apple.com/documentation/swiftui/withanimation(_:_:)).
|
|
8
|
+
* The body must be a worklet so the mutations run synchronously on the
|
|
9
|
+
* UI thread inside the animation transaction.
|
|
10
|
+
*
|
|
11
|
+
* Performs `body` inside a SwiftUI animation transaction. Any
|
|
12
|
+
* `useNativeState` values mutated by the worklet animate to their new value
|
|
13
|
+
* using `animation`.
|
|
14
|
+
*
|
|
15
|
+
* @param animation Animation to apply, built with the `Animation` factory
|
|
16
|
+
* from `@expo/ui/swift-ui/modifiers`. Pass `null` to run `body` without an
|
|
17
|
+
* animation.
|
|
18
|
+
* @param body Worklet that mutates one or more `useNativeState` values.
|
|
19
|
+
* @param completion Optional worklet invoked on the main thread when the
|
|
20
|
+
* animation finishes. Requires iOS 17 / tvOS 17; on earlier versions the
|
|
21
|
+
* animation still runs but the callback is silently skipped.
|
|
22
|
+
* @param completionCriteria Controls when `completion` fires. Defaults to
|
|
23
|
+
* `'logicallyComplete'`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function withAnimation(animation: ChainableAnimationType | null, body: () => void, completion?: () => void, completionCriteria?: WithAnimationCompletionCriteria): void;
|
|
26
|
+
//# sourceMappingURL=withAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withAnimation.d.ts","sourceRoot":"","sources":["../../src/swift-ui/withAnimation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAmB,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAI3F;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,mBAAmB,GAAG,SAAS,CAAC;AAE9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,sBAAsB,GAAG,IAAI,EACxC,IAAI,EAAE,MAAM,IAAI,EAChB,UAAU,CAAC,EAAE,MAAM,IAAI,EACvB,kBAAkB,CAAC,EAAE,+BAA+B,GACnD,IAAI,CAiCN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BottomSheetProps } from './types';
|
|
2
|
-
export declare function BottomSheet({ children, isPresented, onDismiss, showDragIndicator, testID, modifiers, }: BottomSheetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare function BottomSheet({ children, isPresented, onDismiss, showDragIndicator, snapPoints, testID, modifiers, }: BottomSheetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export * from './types';
|
|
4
4
|
//# sourceMappingURL=index.android.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/index.android.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.android.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/index.android.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAuB3D,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,SAAS,EACT,iBAAwB,EACxB,UAAU,EACV,MAAM,EACN,SAAS,GACV,EAAE,gBAAgB,kDAiBlB;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -2,6 +2,6 @@ import type { BottomSheetProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A modal sheet that slides up from the bottom of the screen.
|
|
4
4
|
*/
|
|
5
|
-
export declare function BottomSheet({ children, isPresented, onDismiss, showDragIndicator, testID, }: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function BottomSheet({ children, isPresented, onDismiss, showDragIndicator, snapPoints, testID, }: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAsB3D;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,SAAS,EACT,iBAAwB,EACxB,UAAU,EACV,MAAM,GACP,EAAE,gBAAgB,2CAgClB;AAwCD,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BottomSheetProps } from './types';
|
|
2
|
-
export declare function BottomSheet({ children, isPresented, onDismiss, showDragIndicator, testID, modifiers, }: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function BottomSheet({ children, isPresented, onDismiss, showDragIndicator, snapPoints, testID, modifiers, }: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
4
4
|
//# sourceMappingURL=index.ios.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/index.ios.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.ios.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/index.ios.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAQ3D,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,SAAS,EACT,iBAAwB,EACxB,UAAU,EACV,MAAM,EACN,SAAS,GACV,EAAE,gBAAgB,2CAwBlB;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import type { ModifierConfig } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* A snap point describing one of the heights a [`BottomSheet`](#bottomsheet) can rest at.
|
|
4
|
+
*
|
|
5
|
+
* - `'half'` — Approximately half-screen.
|
|
6
|
+
* - `'full'` — Fully expanded.
|
|
7
|
+
* - `{ fraction }` — A fraction of the screen height (0–1).
|
|
8
|
+
* iOS / web only.
|
|
9
|
+
* - `{ height }` — A fixed pixel height.
|
|
10
|
+
* iOS / web only.
|
|
11
|
+
*
|
|
12
|
+
* On Android, `{ fraction }` and `{ height }` snap to the nearest of `'half'` / `'full'`.
|
|
13
|
+
* See the component docs for platform behavior notes.
|
|
14
|
+
*/
|
|
15
|
+
export type SnapPoint = 'half' | 'full' | {
|
|
16
|
+
fraction: number;
|
|
17
|
+
} | {
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
2
20
|
/**
|
|
3
21
|
* Props for the [`BottomSheet`](#bottomsheet) component, a modal sheet that slides up from the bottom of the screen.
|
|
4
22
|
*/
|
|
@@ -20,6 +38,15 @@ export interface BottomSheetProps {
|
|
|
20
38
|
* @default true
|
|
21
39
|
*/
|
|
22
40
|
showDragIndicator?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Heights the sheet can rest at.
|
|
43
|
+
* When omitted, the sheet auto-sizes to its content.
|
|
44
|
+
* See [`SnapPoint`](#snappoint) for the supported values.
|
|
45
|
+
*
|
|
46
|
+
* @example `['half', 'full']` — draggable between half and full
|
|
47
|
+
* @example `['full']` — always full height
|
|
48
|
+
*/
|
|
49
|
+
snapPoints?: SnapPoint[];
|
|
23
50
|
/**
|
|
24
51
|
* Identifier used to locate the component in end-to-end tests.
|
|
25
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/universal/BottomSheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CollapsibleProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Android implementation of `Collapsible`.
|
|
4
|
+
* A rounded M3 card whose container tint fades between `transparent` (collapsed) and `surfaceContainer` (expanded).
|
|
5
|
+
*/
|
|
6
|
+
export declare function Collapsible({ isOpen, onOpenChange, label, children }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=index.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.android.d.ts","sourceRoot":"","sources":["../../../src/universal/Collapsible/index.android.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAYhD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,KAAU,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAgC3F;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CollapsibleProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A primitive that toggles visibility of its content via a labelled tappable
|
|
4
|
+
* header. Controlled via `isOpen` + `onOpenChange`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Collapsible({ isOpen, onOpenChange, label, children }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Collapsible/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAUhD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,KAAU,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAiB3F;AAuBD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CollapsibleProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* iOS implementation of `Collapsible`. Wraps SwiftUI's `DisclosureGroup`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function Collapsible({ isOpen, onOpenChange, label, children }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export * from './types';
|
|
7
|
+
//# sourceMappingURL=index.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.ios.d.ts","sourceRoot":"","sources":["../../../src/universal/Collapsible/index.ios.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,KAAU,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAM3F;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the [`Collapsible`](#collapsible) component, a primitive that
|
|
3
|
+
* shows or hides its content with a tap on a labelled header.
|
|
4
|
+
*/
|
|
5
|
+
export interface CollapsibleProps {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the content is currently expanded.
|
|
8
|
+
*/
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Called when the user taps the header to toggle the open state.
|
|
12
|
+
*/
|
|
13
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Text rendered in the tappable header.
|
|
16
|
+
*/
|
|
17
|
+
label?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Content rendered when `isOpen` is `true`.
|
|
20
|
+
*/
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/universal/Collapsible/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Column/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Column/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqB3C;;GAEG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAmB,EACnB,OAAO,EACP,KAAK,EACL,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,MAAc,EACd,MAAM,GACP,EAAE,WAAW,2CAqBb;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type HostProps = {
|
|
3
|
-
ignoreSafeArea?: 'all' | 'keyboard';
|
|
4
|
-
layoutDirection?: 'leftToRight' | 'rightToLeft';
|
|
5
|
-
matchContents?: boolean | {
|
|
6
|
-
horizontal?: boolean;
|
|
7
|
-
vertical?: boolean;
|
|
8
|
-
};
|
|
9
|
-
onLayoutContent?: (event: {
|
|
10
|
-
nativeEvent: {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
};
|
|
14
|
-
}) => void;
|
|
15
|
-
useViewportSizeMeasurement?: boolean;
|
|
16
|
-
};
|
|
1
|
+
import type { UniversalHostProps } from './types';
|
|
17
2
|
/**
|
|
18
3
|
* A bridging container that hosts SwiftUI views on iOS and Jetpack Compose views on Android.
|
|
4
|
+
* On platforms without a native UI-toolkit binding (web, RN fallback), renders a plain `View`.
|
|
5
|
+
* The `colorScheme`, `layoutDirection`, and `matchContents` props are accepted for API parity but have no effect.
|
|
19
6
|
*/
|
|
20
|
-
export declare function Host({ children, ignoreSafeArea, layoutDirection, matchContents, onLayout, onLayoutContent, style, useViewportSizeMeasurement, ...rest }:
|
|
21
|
-
export {};
|
|
7
|
+
export declare function Host({ children, ignoreSafeArea, layoutDirection, matchContents, onLayout, onLayoutContent, style, useViewportSizeMeasurement, colorScheme: _colorScheme, ...rest }: UniversalHostProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { UniversalHostProps } from './types';
|
|
22
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Host/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Host/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAwBlD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,cAAc,EACd,eAAe,EACf,aAAqB,EACrB,QAAQ,EACR,eAAe,EACf,KAAK,EACL,0BAAkC,EAClC,WAAW,EAAE,YAAY,EACzB,GAAG,IAAI,EACR,EAAE,kBAAkB,2CAqCpB;AAED,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ColorSchemeName, ViewProps } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`Host`](#host) component.
|
|
4
|
+
*/
|
|
5
|
+
export interface UniversalHostProps extends ViewProps {
|
|
6
|
+
/**
|
|
7
|
+
* When `true`, the host updates its size in the React Native view tree to match the content's layout from the underlying platform UI toolkit.
|
|
8
|
+
* Can only be set once on mount.
|
|
9
|
+
*
|
|
10
|
+
* @default false
|
|
11
|
+
* @platform android
|
|
12
|
+
* @platform ios
|
|
13
|
+
* @platform web
|
|
14
|
+
*/
|
|
15
|
+
matchContents?: boolean | {
|
|
16
|
+
vertical?: boolean;
|
|
17
|
+
horizontal?: boolean;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The color scheme to apply to descendant native views.
|
|
21
|
+
* `'light'` / `'dark'` force a specific appearance; omitted follows the device setting.
|
|
22
|
+
*
|
|
23
|
+
* @platform android
|
|
24
|
+
* @platform ios
|
|
25
|
+
*/
|
|
26
|
+
colorScheme?: ColorSchemeName;
|
|
27
|
+
/**
|
|
28
|
+
* Layout direction for the platform UI content.
|
|
29
|
+
* Defaults to the current locale direction from `I18nManager`.
|
|
30
|
+
*
|
|
31
|
+
* @platform android
|
|
32
|
+
* @platform ios
|
|
33
|
+
* @platform web
|
|
34
|
+
*/
|
|
35
|
+
layoutDirection?: 'leftToRight' | 'rightToLeft';
|
|
36
|
+
/**
|
|
37
|
+
* Controls which safe area regions the hosting view should ignore. Can only be set once on mount.
|
|
38
|
+
* - `'all'`- ignores all safe area insets.
|
|
39
|
+
* - `'keyboard'` - ignores only the keyboard safe area.
|
|
40
|
+
*
|
|
41
|
+
* @platform android
|
|
42
|
+
* @platform ios
|
|
43
|
+
* @platform web
|
|
44
|
+
*/
|
|
45
|
+
ignoreSafeArea?: 'all' | 'keyboard';
|
|
46
|
+
/**
|
|
47
|
+
* When true and no explicit size is provided, the host will use the viewport size as the proposed size for layout.
|
|
48
|
+
* This is particularly useful for views that need to fill their available space, such as `List`.
|
|
49
|
+
* @default false
|
|
50
|
+
*
|
|
51
|
+
* @platform android
|
|
52
|
+
* @platform ios
|
|
53
|
+
* @platform web
|
|
54
|
+
*/
|
|
55
|
+
useViewportSizeMeasurement?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Callback function that is triggered when the content completes its layout.
|
|
58
|
+
* Provides the current dimensions of the content, which may change as the content updates.
|
|
59
|
+
*
|
|
60
|
+
* @platform android
|
|
61
|
+
* @platform ios
|
|
62
|
+
* @platform web
|
|
63
|
+
*/
|
|
64
|
+
onLayoutContent?: (event: {
|
|
65
|
+
nativeEvent: {
|
|
66
|
+
width: number;
|
|
67
|
+
height: number;
|
|
68
|
+
};
|
|
69
|
+
}) => void;
|
|
70
|
+
children?: React.ReactNode;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/universal/Host/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAEvE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC;IAEhD;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;IAEpC;;;;;;;;OAQG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;;;;OAOG;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,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ListProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Android implementation of `List`.
|
|
4
|
+
* Composes `LazyColumn` and wraps with `PullToRefreshBox` when `onRefresh` is provided.
|
|
5
|
+
* The returned promise drives the refresh indicator's visibility.
|
|
6
|
+
*/
|
|
7
|
+
export declare function List({ children, onRefresh, testID }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export * from './types';
|
|
9
|
+
//# sourceMappingURL=index.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.android.d.ts","sourceRoot":"","sources":["../../../src/universal/List/index.android.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,2CA8B9D;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ListProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A vertical container of rows.
|
|
4
|
+
* Typically populated with [`ListItem`](#listitem) children.
|
|
5
|
+
*/
|
|
6
|
+
export declare function List({ children, testID }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/List/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,2CAMnD;AAWD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ListProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* iOS implementation of `List`.
|
|
4
|
+
* Delegates to SwiftUI's `List` and applies `.refreshable` when `onRefresh` is provided.
|
|
5
|
+
*/
|
|
6
|
+
export declare function List({ children, onRefresh, testID }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=index.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.ios.d.ts","sourceRoot":"","sources":["../../../src/universal/List/index.ios.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,2CAO9D;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`List`](#list) component.
|
|
4
|
+
* A virtualized vertical container of rows.
|
|
5
|
+
* Typically populated with [`ListItem`](#listitem) children, though any node is accepted.
|
|
6
|
+
*/
|
|
7
|
+
export interface ListProps {
|
|
8
|
+
/**
|
|
9
|
+
* The list rows. Usually `<ListItem>` elements.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Optional pull-to-refresh handler.
|
|
14
|
+
* When provided, the list shows the platform-native refresh affordance.
|
|
15
|
+
* The returned promise drives the indicator's visibility.
|
|
16
|
+
*
|
|
17
|
+
* @platform android
|
|
18
|
+
* @platform ios
|
|
19
|
+
*/
|
|
20
|
+
onRefresh?: () => Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Identifier used to locate the component in end-to-end tests.
|
|
23
|
+
*/
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/universal/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ListItemProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Android implementation of `ListItem`.
|
|
4
|
+
* Delegates to Material 3 `ListItem` and applies `clickable` for tap handling.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ListItem(props: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=ListItem.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.android.d.ts","sourceRoot":"","sources":["../../../src/universal/ListItem/ListItem.android.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAW7C;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA6B5C;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ListItemProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A tappable row in a list.
|
|
4
|
+
* Composes with [`List`](#list).
|
|
5
|
+
* Pass row content via the `leading` / `trailing` / `supportingText` shorthand props or the compound `<ListItem.Leading>` / `<ListItem.Trailing>` / `<ListItem.Supporting>` slot children.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ListItem(props: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export * from './types';
|
|
9
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/universal/ListItem/ListItem.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAS7C;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAwB5C;AA6BD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ListItemProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* iOS implementation of `ListItem`.
|
|
4
|
+
* Wraps a plain SwiftUI `Button` and applies `contentShape(.rectangle())` so the full row rectangle registers taps, including the gap between slots.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ListItem(props: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=ListItem.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.ios.d.ts","sourceRoot":"","sources":["../../../src/universal/ListItem/ListItem.ios.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAmB7C;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA2B5C;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ListItemLeadingProps, ListItemSupportingProps, ListItemTrailingProps } from './types';
|
|
3
|
+
/** Leading-slot marker for [`ListItem`](#listitem). */
|
|
4
|
+
export declare function Leading(props: ListItemLeadingProps): ReactNode;
|
|
5
|
+
/** Trailing-slot marker for [`ListItem`](#listitem). */
|
|
6
|
+
export declare function Trailing(props: ListItemTrailingProps): ReactNode;
|
|
7
|
+
/** Supporting-text-slot marker for [`ListItem`](#listitem), rendered below the headline. */
|
|
8
|
+
export declare function Supporting(props: ListItemSupportingProps): ReactNode;
|
|
9
|
+
export type ExtractedListItemSlots = {
|
|
10
|
+
leading?: ReactNode;
|
|
11
|
+
trailing?: ReactNode;
|
|
12
|
+
supporting?: ReactNode;
|
|
13
|
+
headline: ReactNode[];
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Walks `children`, pulls out any `<ListItem.Leading>` /
|
|
17
|
+
* `<ListItem.Trailing>` / `<ListItem.Supporting>` slots, and returns the
|
|
18
|
+
* remaining nodes as the headline content. Recurses into `React.Fragment`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function extractListItemSlots(children: ReactNode): ExtractedListItemSlots;
|
|
21
|
+
//# sourceMappingURL=ListItemSlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSlots.d.ts","sourceRoot":"","sources":["../../../src/universal/ListItem/ListItemSlots.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEpG,uDAAuD;AACvD,wBAAgB,OAAO,CAAC,KAAK,EAAE,oBAAoB,aAElD;AAED,wDAAwD;AACxD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,qBAAqB,aAEpD;AAED,4FAA4F;AAC5F,wBAAgB,UAAU,CAAC,KAAK,EAAE,uBAAuB,aAExD;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,SAAS,GAAG,sBAAsB,CAkChF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ListItem as ListItemBase } from './ListItem';
|
|
2
|
+
import type { ListItemLeadingProps, ListItemSupportingProps, ListItemTrailingProps } from './types';
|
|
3
|
+
declare const ListItem: typeof ListItemBase & {
|
|
4
|
+
Leading: React.FC<ListItemLeadingProps>;
|
|
5
|
+
Trailing: React.FC<ListItemTrailingProps>;
|
|
6
|
+
Supporting: React.FC<ListItemSupportingProps>;
|
|
7
|
+
};
|
|
8
|
+
export { ListItem };
|
|
9
|
+
export * from './types';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEpG,QAAA,MAAM,QAAQ,EAAmB,OAAO,YAAY,GAAG;IACrD,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC;IACxC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC;IAC1C,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC;CAC/C,CAAC;AAKF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,cAAc,SAAS,CAAC"}
|