@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Checkbox/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Checkbox/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA2B7C;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,QAAgB,EAAE,MAAM,EAAE,EAAE,aAAa,2CAehG;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -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":"AAWA,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,2CAmB3F;AA0BD,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,2CA0B5C;AAgCD,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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the [`ListItem.Leading`](#listitemleading) slot marker.
|
|
4
|
+
*/
|
|
5
|
+
export interface ListItemLeadingProps {
|
|
6
|
+
/** Content rendered in the leading (start) slot. */
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Props for the [`ListItem.Trailing`](#listitemtrailing) slot marker.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListItemTrailingProps {
|
|
13
|
+
/** Content rendered in the trailing (end) slot. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Props for the [`ListItem.Supporting`](#listitemsupporting) slot marker.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListItemSupportingProps {
|
|
20
|
+
/** Content rendered below the headline. */
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Props for the [`ListItem`](#listitem) component.
|
|
25
|
+
* A tappable row in a list.
|
|
26
|
+
*/
|
|
27
|
+
export interface ListItemProps {
|
|
28
|
+
/**
|
|
29
|
+
* Headline content of the row.
|
|
30
|
+
* The remaining (non-slot) children are rendered in the headline area.
|
|
31
|
+
*/
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Tap handler.
|
|
35
|
+
* Activates over the entire row rectangle, including the empty gap between leading/headline/trailing.
|
|
36
|
+
*/
|
|
37
|
+
onPress?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Shorthand for the leading slot.
|
|
40
|
+
* Overridden by `<ListItem.Leading>` if both are provided.
|
|
41
|
+
*/
|
|
42
|
+
leading?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Shorthand for the trailing slot.
|
|
45
|
+
* Overridden by `<ListItem.Trailing>` if both are provided.
|
|
46
|
+
*/
|
|
47
|
+
trailing?: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Shorthand for the supporting (sub-)text slot.
|
|
50
|
+
* Strings are rendered with platform-appropriate secondary styling; pass a `ReactNode` for richer content.
|
|
51
|
+
* Overridden by `<ListItem.Supporting>` if both are provided.
|
|
52
|
+
*/
|
|
53
|
+
supportingText?: string | ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Identifier used to locate the component in end-to-end tests.
|
|
56
|
+
*/
|
|
57
|
+
testID?: string;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/universal/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oDAAoD;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PickerItemValue, PickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Android implementation of `Picker`.
|
|
4
|
+
* Renders a Material 3 `ExposedDropdownMenuBox`.
|
|
5
|
+
* `appearance` is accepted for API parity but ignored — Material 3 has no wheel-style picker.
|
|
6
|
+
*/
|
|
7
|
+
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, enabled, children, }: PickerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export * from './types';
|
|
9
|
+
//# sourceMappingURL=Picker.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Picker.android.d.ts","sourceRoot":"","sources":["../../../src/universal/Picker/Picker.android.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAU5D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,eAAe,EAAE,EAChD,aAAa,EACb,aAAa,EACb,OAAc,EACd,QAAQ,GACT,EAAE,WAAW,CAAC,CAAC,CAAC,2CA2ChB;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PickerItemValue, PickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A single-selection input.
|
|
4
|
+
* Declare options via `<Picker.Item label value />` children.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, enabled, children, testID, }: PickerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=Picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../src/universal/Picker/Picker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAK5D;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,eAAe,EAAE,EAChD,aAAa,EACb,aAAa,EACb,OAAc,EACd,QAAQ,EACR,MAAM,GACP,EAAE,WAAW,CAAC,CAAC,CAAC,2CAqBhB;AAWD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PickerItemValue, PickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* iOS implementation of `Picker`.
|
|
4
|
+
* Wraps SwiftUI's `Picker` and applies the matching `.pickerStyle` for the requested `appearance`.
|
|
5
|
+
* Embed inside a parent `<Host>` (same as `Column` / `Row`).
|
|
6
|
+
*/
|
|
7
|
+
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, appearance, enabled, children, testID, }: PickerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export * from './types';
|
|
9
|
+
//# sourceMappingURL=Picker.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Picker.ios.d.ts","sourceRoot":"","sources":["../../../src/universal/Picker/Picker.ios.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,eAAe,EAAE,EAChD,aAAa,EACb,aAAa,EACb,UAAmB,EACnB,OAAc,EACd,QAAQ,EACR,MAAM,GACP,EAAE,WAAW,CAAC,CAAC,CAAC,2CAmBhB;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ExtractedPickerItem, PickerItemProps, PickerItemValue } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Data-only option marker for [`Picker`](#picker).
|
|
5
|
+
* Used via the compound API: `<Picker.Item label="…" value={…} />`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PickerItem<T extends PickerItemValue>(_props: PickerItemProps<T>): null;
|
|
8
|
+
export declare function extractPickerItems<T extends PickerItemValue>(children: ReactNode): ExtractedPickerItem<T>[];
|
|
9
|
+
//# sourceMappingURL=PickerItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PickerItem.d.ts","sourceRoot":"","sources":["../../../src/universal/Picker/PickerItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAErF;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,eAAe,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,CAEtF;AAID,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,eAAe,EAC1D,QAAQ,EAAE,SAAS,GAClB,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAU1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Picker as PickerBase } from './Picker';
|
|
2
|
+
import type { PickerItemProps, PickerItemValue } from './types';
|
|
3
|
+
declare const Picker: typeof PickerBase & {
|
|
4
|
+
Item: <T extends PickerItemValue>(props: PickerItemProps<T>) => null;
|
|
5
|
+
};
|
|
6
|
+
export { Picker };
|
|
7
|
+
export * from './types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/Picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEhE,QAAA,MAAM,MAAM,EAAiB,OAAO,UAAU,GAAG;IAC/C,IAAI,EAAE,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CACtE,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The type of values a [`Picker.Item`](#pickeritem) can carry.
|
|
4
|
+
*/
|
|
5
|
+
export type PickerItemValue = string | number;
|
|
6
|
+
/**
|
|
7
|
+
* Visual appearance of the picker.
|
|
8
|
+
*
|
|
9
|
+
* - `'menu'` — Compact button that opens a popup/dropdown on tap.
|
|
10
|
+
* Cross-platform default.
|
|
11
|
+
* - `'wheel'` — Scrollable rotor UI that's always visible inline.
|
|
12
|
+
* iOS only; on Android and web this falls back to the platform's default dropdown.
|
|
13
|
+
*/
|
|
14
|
+
export type PickerAppearance = 'wheel' | 'menu';
|
|
15
|
+
/**
|
|
16
|
+
* Props for the [`Picker.Item`](#pickeritem) component.
|
|
17
|
+
* A data-only marker used to declare options inside a [`Picker`](#picker).
|
|
18
|
+
*/
|
|
19
|
+
export interface PickerItemProps<T extends PickerItemValue = PickerItemValue> {
|
|
20
|
+
/**
|
|
21
|
+
* Display text for this option.
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
* Value passed to `onValueChange` when this option is selected.
|
|
26
|
+
*/
|
|
27
|
+
value: T;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Props for the [`Picker`](#picker) component, a single-selection input.
|
|
31
|
+
*/
|
|
32
|
+
export interface PickerProps<T extends PickerItemValue = PickerItemValue> {
|
|
33
|
+
/**
|
|
34
|
+
* The currently selected value.
|
|
35
|
+
* Must match the `value` of one of the `<Picker.Item>` children.
|
|
36
|
+
*/
|
|
37
|
+
selectedValue: T;
|
|
38
|
+
/**
|
|
39
|
+
* Called when the user selects an option.
|
|
40
|
+
*/
|
|
41
|
+
onValueChange: (value: T) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Visual appearance of the picker.
|
|
44
|
+
* See [`PickerAppearance`](#pickerappearance).
|
|
45
|
+
* @default 'menu'
|
|
46
|
+
*/
|
|
47
|
+
appearance?: PickerAppearance;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the picker accepts input.
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
enabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* `<Picker.Item>` children that declare the available options.
|
|
55
|
+
*/
|
|
56
|
+
children?: ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Identifier used to locate the component in end-to-end tests.
|
|
59
|
+
*/
|
|
60
|
+
testID?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Internal: extracted item data from `<Picker.Item>` children.
|
|
64
|
+
*/
|
|
65
|
+
export interface ExtractedPickerItem<T extends PickerItemValue = PickerItemValue> {
|
|
66
|
+
label: string;
|
|
67
|
+
value: T;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/universal/Picker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe;IAC1E;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC;CACV;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe;IACtE;;;OAGG;IACH,aAAa,EAAE,CAAC,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAElC;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RNHostViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hosts React Native views inside Jetpack Compose views.
|
|
4
|
+
*/
|
|
5
|
+
export declare function RNHostView({ children, matchContents, style, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: RNHostViewProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export * from './types';
|
|
7
|
+
//# sourceMappingURL=index.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.android.d.ts","sourceRoot":"","sources":["../../../src/universal/RNHostView/index.android.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,aAAa,EACb,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,EACN,SAAS,EAAE,cAAc,GAC1B,EAAE,eAAe,2CAYjB;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RNHostViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hosts React Native views inside Jetpack Compose or SwiftUI views.
|
|
4
|
+
*/
|
|
5
|
+
export declare function RNHostView({ children, style, onAppear, onDisappear, hidden, testID, matchContents, }: RNHostViewProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export * from './types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/universal/RNHostView/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAS/C;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,WAAW,EACX,MAAc,EACd,MAAM,EACN,aAAqB,GACtB,EAAE,eAAe,2CAcjB;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RNHostViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hosts React Native views inside SwiftUI views.
|
|
4
|
+
*/
|
|
5
|
+
export declare function RNHostView({ children, matchContents }: RNHostViewProps): 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/RNHostView/index.ios.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,2CAEtE;AAED,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { UniversalBaseProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the [`RNHostView`](#rnhostview) component.
|
|
5
|
+
*/
|
|
6
|
+
export interface RNHostViewProps extends UniversalBaseProps {
|
|
7
|
+
/**
|
|
8
|
+
* When `true`, the host updates its size in the native view tree to match
|
|
9
|
+
* the children's size. When `false`, the host uses the size of the parent
|
|
10
|
+
* native view.
|
|
11
|
+
*
|
|
12
|
+
* Can only be set once on mount; changing it remounts the component.
|
|
13
|
+
* @default false
|
|
14
|
+
* @platform android
|
|
15
|
+
* @platform ios
|
|
16
|
+
*/
|
|
17
|
+
matchContents?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The React Native view to host.
|
|
20
|
+
*/
|
|
21
|
+
children: ReactElement;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|