@expo/ui 58.0.3 → 58.0.5
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 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/HostView.kt +6 -4
- package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +11 -0
- package/android/src/main/java/expo/modules/ui/RNHostView.kt +2 -2
- package/build/PresentedContentContext.d.ts +1 -1
- package/build/community/bottom-sheet/BottomSheet.android.d.ts +1 -1
- package/build/community/bottom-sheet/BottomSheet.d.ts +1 -1
- package/build/community/bottom-sheet/BottomSheet.ios.d.ts +1 -1
- package/build/community/bottom-sheet/index.d.ts +3 -3
- package/build/community/bottom-sheet/scrollContextReset.d.ts +1 -1
- package/build/community/datetime-picker/DateTimePicker.android.d.ts +1 -1
- package/build/community/datetime-picker/DateTimePicker.d.ts +1 -1
- package/build/community/masked-view/MaskedView.android.d.ts +1 -1
- package/build/community/masked-view/MaskedView.d.ts +1 -1
- package/build/community/masked-view/MaskedView.ios.d.ts +1 -1
- package/build/community/menu/MenuView.android.d.ts +1 -1
- package/build/community/menu/MenuView.d.ts +1 -1
- package/build/community/menu/MenuView.ios.d.ts +1 -1
- package/build/community/pager-view/PagerView.android.d.ts +1 -1
- package/build/community/pager-view/PagerView.ios.d.ts +1 -1
- package/build/community/picker/Picker.android.d.ts +1 -1
- package/build/community/picker/Picker.d.ts +1 -1
- package/build/community/picker/Picker.ios.d.ts +1 -1
- package/build/community/segmented-control/SegmentedControl.android.d.ts +1 -1
- package/build/community/segmented-control/SegmentedControl.ios.d.ts +1 -1
- package/build/community/segmented-control/vendor/SegmentedControl.d.ts +2 -1
- package/build/community/segmented-control/vendor/SegmentedControlTab.d.ts +1 -1
- package/build/community/segmented-control/vendor/SegmentsSeparators.d.ts +1 -1
- package/build/community/slider/Slider.android.d.ts +1 -1
- package/build/community/slider/Slider.d.ts +2 -1
- package/build/community/slider/Slider.ios.d.ts +1 -1
- package/build/jetpack-compose/AlertDialog/index.d.ts +6 -6
- package/build/jetpack-compose/AnimatedVisibility/index.d.ts +1 -1
- package/build/jetpack-compose/Badge/index.d.ts +1 -1
- package/build/jetpack-compose/BadgedBox/index.d.ts +2 -2
- package/build/jetpack-compose/BasicAlertDialog/index.d.ts +1 -1
- package/build/jetpack-compose/Box/index.d.ts +1 -1
- package/build/jetpack-compose/Button/index.d.ts +5 -5
- package/build/jetpack-compose/Checkbox/index.d.ts +2 -2
- package/build/jetpack-compose/Chip/index.d.ts +15 -15
- package/build/jetpack-compose/Column/index.d.ts +1 -1
- package/build/jetpack-compose/DatePicker/index.d.ts +5 -5
- package/build/jetpack-compose/DockedSearchBar/index.d.ts +3 -3
- package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts +4 -4
- package/build/jetpack-compose/DropdownMenu/index.d.ts +4 -4
- package/build/jetpack-compose/ExposedDropdownMenuBox/ExposedDropdownMenu.d.ts +1 -1
- package/build/jetpack-compose/ExposedDropdownMenuBox/index.d.ts +1 -1
- package/build/jetpack-compose/FloatingActionButton/index.d.ts +6 -6
- package/build/jetpack-compose/FlowRow/index.d.ts +1 -1
- package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts +2 -2
- package/build/jetpack-compose/HorizontalPager/index.d.ts +1 -1
- package/build/jetpack-compose/Host/index.d.ts +1 -1
- package/build/jetpack-compose/Icon/index.d.ts +1 -1
- package/build/jetpack-compose/IconButton/index.d.ts +4 -4
- package/build/jetpack-compose/Image/index.d.ts +1 -1
- package/build/jetpack-compose/LazyColumn/index.d.ts +1 -1
- package/build/jetpack-compose/LazyRow/index.d.ts +1 -1
- package/build/jetpack-compose/ListItem/index.d.ts +6 -6
- package/build/jetpack-compose/ModalBottomSheet/index.d.ts +2 -2
- package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts +1 -1
- package/build/jetpack-compose/NavigationBar/index.d.ts +5 -5
- package/build/jetpack-compose/PullToRefreshBox/index.d.ts +1 -1
- package/build/jetpack-compose/RNHostView/index.d.ts +1 -1
- package/build/jetpack-compose/RadioButton/index.d.ts +1 -1
- package/build/jetpack-compose/Row/index.d.ts +1 -1
- package/build/jetpack-compose/SearchBar/index.d.ts +3 -3
- package/build/jetpack-compose/SegmentedButton/index.d.ts +2 -2
- package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts +1 -1
- package/build/jetpack-compose/Slider/index.d.ts +6 -6
- package/build/jetpack-compose/SlotView.d.ts +1 -1
- package/build/jetpack-compose/Snackbar/index.d.ts +2 -2
- package/build/jetpack-compose/Spacer/index.d.ts +1 -1
- package/build/jetpack-compose/Surface/index.d.ts +1 -1
- package/build/jetpack-compose/Switch/index.d.ts +2 -2
- package/build/jetpack-compose/SyncSwitch/index.d.ts +1 -1
- package/build/jetpack-compose/Text/index.d.ts +1 -1
- package/build/jetpack-compose/TextField/BasicTextField.d.ts +4 -4
- package/build/jetpack-compose/TextField/TextField.d.ts +16 -16
- package/build/jetpack-compose/ToggleButton/index.d.ts +4 -4
- package/build/jetpack-compose/Tooltip/index.d.ts +6 -6
- package/build/jetpack-compose/colors.js +20 -1
- package/build/jetpack-compose/colors.js.map +1 -1
- package/build/jetpack-compose/modifiers/index.d.ts +10 -0
- package/build/jetpack-compose/modifiers/index.js +11 -0
- package/build/jetpack-compose/modifiers/index.js.map +1 -1
- package/build/keyboard/index.d.ts +1 -1
- package/build/swift-ui/AccessoryWidgetBackground/index.d.ts +1 -1
- package/build/swift-ui/Alert/index.d.ts +4 -4
- package/build/swift-ui/Background/index.d.ts +2 -2
- package/build/swift-ui/BottomSheet/index.d.ts +1 -1
- package/build/swift-ui/Button/index.d.ts +1 -1
- package/build/swift-ui/Chart/index.d.ts +1 -1
- package/build/swift-ui/ColorPicker/index.d.ts +1 -1
- package/build/swift-ui/ConfirmationDialog/index.d.ts +4 -4
- package/build/swift-ui/ContentUnavailableView/index.d.ts +1 -1
- package/build/swift-ui/ContextMenu/index.d.ts +4 -4
- package/build/swift-ui/ControlGroup/index.d.ts +1 -1
- package/build/swift-ui/DatePicker/index.d.ts +1 -1
- package/build/swift-ui/DisclosureGroup/index.d.ts +2 -2
- package/build/swift-ui/Divider/index.d.ts +1 -1
- package/build/swift-ui/Form/index.d.ts +1 -1
- package/build/swift-ui/Gauge/index.d.ts +1 -1
- package/build/swift-ui/GlassEffectContainer/index.d.ts +1 -1
- package/build/swift-ui/Grid/index.d.ts +1 -1
- package/build/swift-ui/Group/index.d.ts +1 -1
- package/build/swift-ui/HStack/index.d.ts +1 -1
- package/build/swift-ui/Host/index.d.ts +1 -1
- package/build/swift-ui/Image/index.d.ts +1 -1
- package/build/swift-ui/Label/index.d.ts +1 -1
- package/build/swift-ui/LabeledContent/index.d.ts +1 -1
- package/build/swift-ui/LazyHStack/index.d.ts +1 -1
- package/build/swift-ui/LazyVStack/index.d.ts +1 -1
- package/build/swift-ui/Link/index.d.ts +1 -1
- package/build/swift-ui/List/ListForEach.d.ts +1 -1
- package/build/swift-ui/List/index.d.ts +1 -1
- package/build/swift-ui/Mask/index.d.ts +2 -2
- package/build/swift-ui/Menu/index.d.ts +1 -1
- package/build/swift-ui/Namespace.d.ts +1 -1
- package/build/swift-ui/NavigationDestination/index.d.ts +1 -1
- package/build/swift-ui/NavigationLink/index.d.ts +1 -1
- package/build/swift-ui/NavigationSplitView/index.d.ts +4 -4
- package/build/swift-ui/NavigationStack/index.d.ts +1 -1
- package/build/swift-ui/Overlay/index.d.ts +2 -2
- package/build/swift-ui/Picker/index.d.ts +1 -1
- package/build/swift-ui/Popover/index.d.ts +3 -3
- package/build/swift-ui/ProgressView/index.d.ts +1 -1
- package/build/swift-ui/RNHostView.d.ts +1 -1
- package/build/swift-ui/ScrollView/index.d.ts +1 -1
- package/build/swift-ui/Section/index.d.ts +1 -1
- package/build/swift-ui/SecureField/index.d.ts +2 -2
- package/build/swift-ui/Shapes/ConcentricRectangle.d.ts +1 -1
- package/build/swift-ui/Shapes/index.d.ts +6 -6
- package/build/swift-ui/ShareLink/index.d.ts +1 -1
- package/build/swift-ui/Slider/index.d.ts +1 -1
- package/build/swift-ui/SlotView.d.ts +1 -1
- package/build/swift-ui/Spacer/index.d.ts +1 -1
- package/build/swift-ui/Stepper/index.d.ts +1 -1
- package/build/swift-ui/SwipeActions/index.d.ts +2 -2
- package/build/swift-ui/SyncToggle/index.d.ts +1 -1
- package/build/swift-ui/TabView/Tab.d.ts +1 -1
- package/build/swift-ui/TabView/index.d.ts +1 -1
- package/build/swift-ui/Text/index.d.ts +1 -1
- package/build/swift-ui/TextField/index.d.ts +2 -2
- package/build/swift-ui/Toggle/index.d.ts +1 -1
- package/build/swift-ui/Toolbar/index.d.ts +52 -2
- package/build/swift-ui/Toolbar/index.js +27 -0
- package/build/swift-ui/Toolbar/index.js.map +1 -1
- package/build/swift-ui/VStack/index.d.ts +1 -1
- package/build/swift-ui/ZStack/index.d.ts +1 -1
- package/build/swift-ui/modifiers/index.d.ts +15 -1
- package/build/swift-ui/modifiers/index.js +16 -0
- package/build/swift-ui/modifiers/index.js.map +1 -1
- package/build/universal/BottomSheet/index.android.d.ts +1 -1
- package/build/universal/BottomSheet/index.d.ts +1 -1
- package/build/universal/BottomSheet/index.ios.d.ts +1 -1
- package/build/universal/Button/index.android.d.ts +1 -1
- package/build/universal/Button/index.d.ts +1 -1
- package/build/universal/Button/index.ios.d.ts +1 -1
- package/build/universal/Checkbox/index.android.d.ts +1 -1
- package/build/universal/Checkbox/index.d.ts +1 -1
- package/build/universal/Checkbox/index.ios.d.ts +1 -1
- package/build/universal/Collapsible/index.android.d.ts +1 -1
- package/build/universal/Collapsible/index.d.ts +1 -1
- package/build/universal/Collapsible/index.ios.d.ts +1 -1
- package/build/universal/Column/index.android.d.ts +1 -1
- package/build/universal/Column/index.d.ts +1 -1
- package/build/universal/Column/index.ios.d.ts +1 -1
- package/build/universal/FieldGroup/FieldGroup.android.d.ts +1 -1
- package/build/universal/FieldGroup/FieldGroup.d.ts +1 -1
- package/build/universal/FieldGroup/FieldGroup.ios.d.ts +1 -1
- package/build/universal/FieldGroup/FieldSection.android.d.ts +1 -1
- package/build/universal/FieldGroup/FieldSection.d.ts +1 -1
- package/build/universal/FieldGroup/FieldSection.ios.d.ts +1 -1
- package/build/universal/FieldGroup/FieldSectionSlots.d.ts +2 -2
- package/build/universal/Host/index.d.ts +1 -1
- package/build/universal/Icon/index.android.d.ts +1 -1
- package/build/universal/Icon/index.ios.d.ts +1 -1
- package/build/universal/List/index.android.d.ts +1 -1
- package/build/universal/List/index.d.ts +1 -1
- package/build/universal/List/index.ios.d.ts +1 -1
- package/build/universal/ListItem/ListItem.android.d.ts +1 -1
- package/build/universal/ListItem/ListItem.d.ts +1 -1
- package/build/universal/ListItem/ListItem.ios.d.ts +1 -1
- package/build/universal/Picker/Picker.android.d.ts +1 -1
- package/build/universal/Picker/Picker.d.ts +1 -1
- package/build/universal/Picker/Picker.ios.d.ts +1 -1
- package/build/universal/RNHostView/index.android.d.ts +1 -1
- package/build/universal/RNHostView/index.d.ts +1 -1
- package/build/universal/RNHostView/index.ios.d.ts +1 -1
- package/build/universal/Row/index.android.d.ts +1 -1
- package/build/universal/Row/index.d.ts +1 -1
- package/build/universal/Row/index.ios.d.ts +1 -1
- package/build/universal/ScrollView/index.android.d.ts +1 -1
- package/build/universal/ScrollView/index.d.ts +1 -1
- package/build/universal/ScrollView/index.ios.d.ts +1 -1
- package/build/universal/Slider/index.android.d.ts +1 -1
- package/build/universal/Slider/index.d.ts +1 -1
- package/build/universal/Slider/index.ios.d.ts +1 -1
- package/build/universal/Spacer/index.android.d.ts +1 -1
- package/build/universal/Spacer/index.d.ts +1 -1
- package/build/universal/Spacer/index.ios.d.ts +1 -1
- package/build/universal/Switch/index.android.d.ts +1 -1
- package/build/universal/Switch/index.d.ts +1 -1
- package/build/universal/Switch/index.ios.d.ts +1 -1
- package/build/universal/Text/index.android.d.ts +1 -1
- package/build/universal/Text/index.d.ts +1 -1
- package/build/universal/Text/index.ios.d.ts +1 -1
- package/build/universal/TextInput/index.android.d.ts +1 -1
- package/build/universal/TextInput/index.d.ts +1 -1
- package/build/universal/TextInput/index.ios.d.ts +1 -1
- package/build/web/BottomSheetDialog.d.ts +1 -1
- package/expo-module.config.json +1 -1
- package/ios/Convertibles/ToolbarItemPlacementOptions.swift +110 -0
- package/ios/Convertibles/ToolbarItemVisibilityPriorityOptions.swift +35 -0
- package/ios/HostView.swift +29 -7
- package/ios/Modifiers/ScrollEdgeEffectStyleModifier.swift +34 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +4 -0
- package/ios/ToolbarView.swift +88 -4
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.3/expo.modules.ui-58.0.3-sources.jar → 58.0.5/expo.modules.ui-58.0.5-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.3/expo.modules.ui-58.0.3.module → 58.0.5/expo.modules.ui-58.0.5.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.3/expo.modules.ui-58.0.3.pom → 58.0.5/expo.modules.ui-58.0.5.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.5/expo.modules.ui-58.0.5.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/prebuilds/output/debug/xcframeworks/ExpoUI.tar.gz +0 -0
- package/prebuilds/output/release/xcframeworks/ExpoUI.tar.gz +0 -0
- package/src/jetpack-compose/colors.ts +23 -1
- package/src/jetpack-compose/modifiers/index.ts +11 -0
- package/src/swift-ui/Toolbar/index.tsx +79 -0
- package/src/swift-ui/modifiers/index.ts +19 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.3/expo.modules.ui-58.0.3.pom.sha512 +0 -1
|
@@ -6,4 +6,4 @@ import { type FieldSectionProps } from './types';
|
|
|
6
6
|
* the section's ends, slightly rounded between rows, with a 2dp gap. All
|
|
7
7
|
* colors adapt to the enclosing `<Host>`'s theme.
|
|
8
8
|
*/
|
|
9
|
-
export declare function FieldSection({ children, title, style, onAppear, onDisappear, disabled, hidden, testID, titleUppercase, modifiers: extraModifiers, }: FieldSectionProps): import("react
|
|
9
|
+
export declare function FieldSection({ children, title, style, onAppear, onDisappear, disabled, hidden, testID, titleUppercase, modifiers: extraModifiers, }: FieldSectionProps): import("react").JSX.Element | null;
|
|
@@ -5,4 +5,4 @@ import type { FieldSectionProps } from './types';
|
|
|
5
5
|
* or nest a `<FieldGroup.SectionHeader>` / `<FieldGroup.SectionFooter>`
|
|
6
6
|
* child for fully custom header / footer content.
|
|
7
7
|
*/
|
|
8
|
-
export declare function FieldSection({ children, title, style, onAppear, onDisappear, hidden, testID, titleUppercase, }: FieldSectionProps): import("react
|
|
8
|
+
export declare function FieldSection({ children, title, style, onAppear, onDisappear, hidden, testID, titleUppercase, }: FieldSectionProps): import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ import type { FieldSectionProps } from './types';
|
|
|
6
6
|
* [`Section`](https://developer.apple.com/documentation/swiftui/section),
|
|
7
7
|
* which handles row layout, dividers, and grouped-inset styling.
|
|
8
8
|
*/
|
|
9
|
-
export declare function FieldSection({ children, title, style, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: FieldSectionProps): import("react
|
|
9
|
+
export declare function FieldSection({ children, title, style, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: FieldSectionProps): import("react").JSX.Element;
|
|
@@ -7,7 +7,7 @@ import type { FieldSectionFooterProps, FieldSectionHeaderProps } from './types';
|
|
|
7
7
|
* Its only job is to tag a slot — the parent `FieldGroup.Section` extracts
|
|
8
8
|
* and renders the children in the header position.
|
|
9
9
|
*/
|
|
10
|
-
export declare function Header(props: FieldSectionHeaderProps): import("react
|
|
10
|
+
export declare function Header(props: FieldSectionHeaderProps): import("react").JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* Marker component that designates its children as the footer of the
|
|
13
13
|
* enclosing [`FieldGroup.Section`](#fieldgroupsection). Used via the
|
|
@@ -15,7 +15,7 @@ export declare function Header(props: FieldSectionHeaderProps): import("react/js
|
|
|
15
15
|
* Its only job is to tag a slot — the parent `FieldGroup.Section` extracts
|
|
16
16
|
* and renders the children in the footer position.
|
|
17
17
|
*/
|
|
18
|
-
export declare function Footer(props: FieldSectionFooterProps): import("react
|
|
18
|
+
export declare function Footer(props: FieldSectionFooterProps): import("react").JSX.Element;
|
|
19
19
|
export type ExtractedFieldSectionSlots = {
|
|
20
20
|
header?: ReactNode;
|
|
21
21
|
footer?: ReactNode;
|
|
@@ -3,5 +3,5 @@ import type { UniversalHostProps } from './types';
|
|
|
3
3
|
* A bridging container that hosts SwiftUI views on iOS and Jetpack Compose views on Android.
|
|
4
4
|
* On platforms without a native UI-toolkit binding (web, RN fallback), renders a plain `View`.
|
|
5
5
|
*/
|
|
6
|
-
export declare function Host({ children, colorScheme, seedColor, ignoreSafeArea, layoutDirection, matchContents, onLayout, onLayoutContent, style, useViewportSizeMeasurement, ...rest }: UniversalHostProps): import("react
|
|
6
|
+
export declare function Host({ children, colorScheme, seedColor, ignoreSafeArea, layoutDirection, matchContents, onLayout, onLayoutContent, style, useViewportSizeMeasurement, ...rest }: UniversalHostProps): import("react").JSX.Element;
|
|
7
7
|
export type { UniversalHostProps } from './types';
|
|
@@ -11,7 +11,7 @@ import type { IconProps, IconSelectSpec } from './types';
|
|
|
11
11
|
* `clickable` applied directly to it. With no `onPress`, the bare Compose
|
|
12
12
|
* `Icon` is rendered for a leaner native tree.
|
|
13
13
|
*/
|
|
14
|
-
export declare function Icon({ name, size, color, accessibilityLabel, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: IconProps): import("react
|
|
14
|
+
export declare function Icon({ name, size, color, accessibilityLabel, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: IconProps): import("react").JSX.Element | null;
|
|
15
15
|
export declare namespace Icon {
|
|
16
16
|
var select: (spec: IconSelectSpec) => ImageSourcePropType;
|
|
17
17
|
}
|
|
@@ -3,7 +3,7 @@ import type { IconProps, IconSelectSpec } from './types';
|
|
|
3
3
|
* Universal `Icon` component. On iOS, renders an SF Symbol via SwiftUI's
|
|
4
4
|
* `Image(systemName:)`.
|
|
5
5
|
*/
|
|
6
|
-
export declare function Icon({ name, size, color, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: IconProps): import("react
|
|
6
|
+
export declare function Icon({ name, size, color, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: IconProps): import("react").JSX.Element;
|
|
7
7
|
export declare namespace Icon {
|
|
8
8
|
var select: (spec: IconSelectSpec) => import("sf-symbols-typescript").SFSymbols7_0;
|
|
9
9
|
}
|
|
@@ -4,5 +4,5 @@ import type { ListProps } from './types';
|
|
|
4
4
|
* Composes `LazyColumn` and wraps with `PullToRefreshBox` when `onRefresh` is provided.
|
|
5
5
|
* The returned promise drives the refresh indicator's visibility.
|
|
6
6
|
*/
|
|
7
|
-
export declare function List({ children, onRefresh, testID }: ListProps): import("react
|
|
7
|
+
export declare function List({ children, onRefresh, testID }: ListProps): import("react").JSX.Element;
|
|
8
8
|
export * from './types';
|
|
@@ -3,5 +3,5 @@ import type { ListProps } from './types';
|
|
|
3
3
|
* A vertical container of rows.
|
|
4
4
|
* Typically populated with [`ListItem`](#listitem) children.
|
|
5
5
|
*/
|
|
6
|
-
export declare function List({ children, testID }: ListProps): import("react
|
|
6
|
+
export declare function List({ children, testID }: ListProps): import("react").JSX.Element;
|
|
7
7
|
export * from './types';
|
|
@@ -3,5 +3,5 @@ import type { ListProps } from './types';
|
|
|
3
3
|
* iOS implementation of `List`.
|
|
4
4
|
* Delegates to SwiftUI's `List` and applies `.refreshable` when `onRefresh` is provided.
|
|
5
5
|
*/
|
|
6
|
-
export declare function List({ children, onRefresh, testID }: ListProps): import("react
|
|
6
|
+
export declare function List({ children, onRefresh, testID }: ListProps): import("react").JSX.Element;
|
|
7
7
|
export * from './types';
|
|
@@ -3,5 +3,5 @@ import type { ListItemProps } from './types';
|
|
|
3
3
|
* Android implementation of `ListItem`.
|
|
4
4
|
* Delegates to Material 3 `ListItem` and applies `clickable` for tap handling.
|
|
5
5
|
*/
|
|
6
|
-
export declare function ListItem(props: ListItemProps): import("react
|
|
6
|
+
export declare function ListItem(props: ListItemProps): import("react").JSX.Element;
|
|
7
7
|
export * from './types';
|
|
@@ -4,5 +4,5 @@ import type { ListItemProps } from './types';
|
|
|
4
4
|
* Composes with [`List`](#list).
|
|
5
5
|
* Pass row content via the `leading` / `trailing` / `supportingText` shorthand props or the compound `<ListItem.Leading>` / `<ListItem.Trailing>` / `<ListItem.Supporting>` slot children.
|
|
6
6
|
*/
|
|
7
|
-
export declare function ListItem(props: ListItemProps): import("react
|
|
7
|
+
export declare function ListItem(props: ListItemProps): import("react").JSX.Element;
|
|
8
8
|
export * from './types';
|
|
@@ -3,5 +3,5 @@ import type { ListItemProps } from './types';
|
|
|
3
3
|
* iOS implementation of `ListItem`.
|
|
4
4
|
* Wraps a plain SwiftUI `Button` and applies `contentShape(.rectangle())` so the full row rectangle registers taps, including the gap between slots.
|
|
5
5
|
*/
|
|
6
|
-
export declare function ListItem(props: ListItemProps): import("react
|
|
6
|
+
export declare function ListItem(props: ListItemProps): import("react").JSX.Element;
|
|
7
7
|
export * from './types';
|
|
@@ -4,5 +4,5 @@ import type { PickerItemValue, PickerProps } from './types';
|
|
|
4
4
|
* Renders a Material 3 `ExposedDropdownMenuBox`.
|
|
5
5
|
* `appearance` is accepted for API parity but ignored — Material 3 has no wheel-style picker.
|
|
6
6
|
*/
|
|
7
|
-
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, enabled, children, }: PickerProps<T>): import("react
|
|
7
|
+
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, enabled, children, }: PickerProps<T>): import("react").JSX.Element;
|
|
8
8
|
export * from './types';
|
|
@@ -3,5 +3,5 @@ import type { PickerItemValue, PickerProps } from './types';
|
|
|
3
3
|
* A single-selection input.
|
|
4
4
|
* Declare options via `<Picker.Item label value />` children.
|
|
5
5
|
*/
|
|
6
|
-
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, enabled, children, testID, }: PickerProps<T>): import("react
|
|
6
|
+
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, enabled, children, testID, }: PickerProps<T>): import("react").JSX.Element;
|
|
7
7
|
export * from './types';
|
|
@@ -4,5 +4,5 @@ import type { PickerItemValue, PickerProps } from './types';
|
|
|
4
4
|
* Wraps SwiftUI's `Picker` and applies the matching `.pickerStyle` for the requested `appearance`.
|
|
5
5
|
* Embed inside a parent `<Host>` (same as `Column` / `Row`).
|
|
6
6
|
*/
|
|
7
|
-
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, appearance, enabled, children, testID, }: PickerProps<T>): import("react
|
|
7
|
+
export declare function Picker<T extends PickerItemValue>({ selectedValue, onValueChange, appearance, enabled, children, testID, }: PickerProps<T>): import("react").JSX.Element;
|
|
8
8
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { RNHostViewProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Hosts React Native views inside Jetpack Compose views.
|
|
4
4
|
*/
|
|
5
|
-
export declare function RNHostView({ children, matchContents, style, onAppear, onDisappear, disabled, hidden, testID, onLayout, modifiers: extraModifiers, }: RNHostViewProps): import("react
|
|
5
|
+
export declare function RNHostView({ children, matchContents, style, onAppear, onDisappear, disabled, hidden, testID, onLayout, modifiers: extraModifiers, }: RNHostViewProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { RNHostViewProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Hosts React Native views inside Jetpack Compose or SwiftUI views.
|
|
4
4
|
*/
|
|
5
|
-
export declare function RNHostView({ children, style, onAppear, onDisappear, hidden, testID, matchContents, onLayout, }: RNHostViewProps): import("react
|
|
5
|
+
export declare function RNHostView({ children, style, onAppear, onDisappear, hidden, testID, matchContents, onLayout, }: RNHostViewProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { RNHostViewProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Hosts React Native views inside SwiftUI views.
|
|
4
4
|
*/
|
|
5
|
-
export declare function RNHostView({ children, matchContents, onLayout }: RNHostViewProps): import("react
|
|
5
|
+
export declare function RNHostView({ children, matchContents, onLayout }: RNHostViewProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { RowProps } from './types';
|
|
2
|
-
export declare function Row({ children, alignment, spacing, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: RowProps): import("react
|
|
2
|
+
export declare function Row({ children, alignment, spacing, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: RowProps): import("react").JSX.Element | null;
|
|
3
3
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { RowProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A horizontal layout container that arranges its children from start to end.
|
|
4
4
|
*/
|
|
5
|
-
export declare function Row({ children, alignment, spacing, style, onPress, onAppear, onDisappear, disabled, hidden, testID, }: RowProps): import("react
|
|
5
|
+
export declare function Row({ children, alignment, spacing, style, onPress, onAppear, onDisappear, disabled, hidden, testID, }: RowProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { RowProps } from './types';
|
|
2
|
-
export declare function Row({ children, alignment, spacing, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: RowProps): import("react
|
|
2
|
+
export declare function Row({ children, alignment, spacing, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: RowProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ScrollViewProps } from './types';
|
|
2
|
-
export declare function ScrollView({ children, direction, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: ScrollViewProps): import("react
|
|
2
|
+
export declare function ScrollView({ children, direction, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: ScrollViewProps): import("react").JSX.Element | null;
|
|
3
3
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { ScrollViewProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A scrollable container that supports vertical or horizontal scrolling.
|
|
4
4
|
*/
|
|
5
|
-
export declare function ScrollView({ children, direction, showsIndicators, style, onAppear, onDisappear, disabled, hidden, testID, }: ScrollViewProps): import("react
|
|
5
|
+
export declare function ScrollView({ children, direction, showsIndicators, style, onAppear, onDisappear, disabled, hidden, testID, }: ScrollViewProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ScrollViewProps } from './types';
|
|
2
|
-
export declare function ScrollView({ children, direction, showsIndicators, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: ScrollViewProps): import("react
|
|
2
|
+
export declare function ScrollView({ children, direction, showsIndicators, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: ScrollViewProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SliderProps } from './types';
|
|
2
|
-
export declare function Slider({ value, onValueChange, min, max, step, disabled, testID, modifiers, }: SliderProps): import("react
|
|
2
|
+
export declare function Slider({ value, onValueChange, min, max, step, disabled, testID, modifiers, }: SliderProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { SliderProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A control for selecting a value from a continuous or stepped range.
|
|
4
4
|
*/
|
|
5
|
-
export declare function Slider({ value, onValueChange, min, max, step, disabled, testID, }: SliderProps): import("react
|
|
5
|
+
export declare function Slider({ value, onValueChange, min, max, step, disabled, testID, }: SliderProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SliderProps } from './types';
|
|
2
|
-
export declare function Slider({ value, onValueChange, min, max, step, disabled, testID, modifiers: extraModifiers, }: SliderProps): import("react
|
|
2
|
+
export declare function Slider({ value, onValueChange, min, max, step, disabled, testID, modifiers: extraModifiers, }: SliderProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -7,5 +7,5 @@ import type { SpacerProps } from './types';
|
|
|
7
7
|
* both horizontal and vertical containers. A flexible spacer uses Compose's
|
|
8
8
|
* `weight(1)` modifier to fill remaining space.
|
|
9
9
|
*/
|
|
10
|
-
export declare function Spacer({ size, flexible, style, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: SpacerProps): import("react
|
|
10
|
+
export declare function Spacer({ size, flexible, style, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: SpacerProps): import("react").JSX.Element | null;
|
|
11
11
|
export * from './types';
|
|
@@ -3,5 +3,5 @@ import type { SpacerProps } from './types';
|
|
|
3
3
|
* A layout spacer that produces empty space between siblings in a
|
|
4
4
|
* `Row` or `Column`.
|
|
5
5
|
*/
|
|
6
|
-
export declare function Spacer({ size, flexible, style, onAppear, onDisappear, hidden, testID, }: SpacerProps): import("react
|
|
6
|
+
export declare function Spacer({ size, flexible, style, onAppear, onDisappear, hidden, testID, }: SpacerProps): import("react").JSX.Element;
|
|
7
7
|
export * from './types';
|
|
@@ -11,5 +11,5 @@ import type { SpacerProps } from './types';
|
|
|
11
11
|
* to stretch, which causes sibling Spacers to share the extra space equally
|
|
12
12
|
* instead of each rendering at their requested size.
|
|
13
13
|
*/
|
|
14
|
-
export declare function Spacer({ size, flexible, style, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: SpacerProps): import("react
|
|
14
|
+
export declare function Spacer({ size, flexible, style, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: SpacerProps): import("react").JSX.Element;
|
|
15
15
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SwitchProps } from './types';
|
|
2
|
-
export declare function Switch({ value, onValueChange, label, disabled, testID, modifiers }: SwitchProps): import("react
|
|
2
|
+
export declare function Switch({ value, onValueChange, label, disabled, testID, modifiers }: SwitchProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { SwitchProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A toggle control that switches between on and off states.
|
|
4
4
|
*/
|
|
5
|
-
export declare function Switch({ value, onValueChange, label, disabled, testID }: SwitchProps): import("react
|
|
5
|
+
export declare function Switch({ value, onValueChange, label, disabled, testID }: SwitchProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SwitchProps } from './types';
|
|
2
|
-
export declare function Switch({ value, onValueChange, label, disabled, testID, modifiers: extraModifiers, }: SwitchProps): import("react
|
|
2
|
+
export declare function Switch({ value, onValueChange, label, disabled, testID, modifiers: extraModifiers, }: SwitchProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TextProps } from './types';
|
|
2
|
-
export declare function Text({ children, textStyle, numberOfLines, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: TextProps): import("react
|
|
2
|
+
export declare function Text({ children, textStyle, numberOfLines, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: TextProps): import("react").JSX.Element | null;
|
|
3
3
|
export * from './types';
|
|
@@ -2,5 +2,5 @@ import type { TextProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* A component for displaying styled text content.
|
|
4
4
|
*/
|
|
5
|
-
export declare function Text({ children, textStyle, numberOfLines, style, onPress, onAppear, onDisappear, disabled, hidden, testID, }: TextProps): import("react
|
|
5
|
+
export declare function Text({ children, textStyle, numberOfLines, style, onPress, onAppear, onDisappear, disabled, hidden, testID, }: TextProps): import("react").JSX.Element;
|
|
6
6
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TextProps } from './types';
|
|
2
|
-
export declare function Text({ children, textStyle, numberOfLines, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: TextProps): import("react
|
|
2
|
+
export declare function Text({ children, textStyle, numberOfLines, style, onPress, onAppear, onDisappear, disabled, hidden, testID, modifiers: extraModifiers, }: TextProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TextInputProps } from './types';
|
|
2
|
-
export declare function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable: editableProp, multiline, keyboardType: keyboardTypeProp, autoCapitalize, autoCorrect, returnKeyType: returnKeyTypeProp, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines: numberOfLinesProp, rows, underlineColorAndroid, testID, placeholderTextColor, textStyle, style, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selectionHandleColor, selection, onSelectionChange, selectTextOnFocus, modifiers: userModifiers, }: TextInputProps): import("react
|
|
2
|
+
export declare function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable: editableProp, multiline, keyboardType: keyboardTypeProp, autoCapitalize, autoCorrect, returnKeyType: returnKeyTypeProp, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines: numberOfLinesProp, rows, underlineColorAndroid, testID, placeholderTextColor, textStyle, style, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selectionHandleColor, selection, onSelectionChange, selectTextOnFocus, modifiers: userModifiers, }: TextInputProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TextInputProps } from './types';
|
|
2
|
-
export declare function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable, multiline, keyboardType, autoCapitalize, autoCorrect, returnKeyType, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus, }: TextInputProps): import("react
|
|
2
|
+
export declare function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable, multiline, keyboardType, autoCapitalize, autoCorrect, returnKeyType, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus, }: TextInputProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
4
4
|
export { type ObservableState } from '../State';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TextInputProps } from './types';
|
|
2
|
-
export declare function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable: editableProp, multiline, keyboardType: keyboardTypeProp, autoCapitalize, autoCorrect, returnKeyType: returnKeyTypeProp, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines: numberOfLinesProp, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus, modifiers: userModifiers, }: TextInputProps): import("react
|
|
2
|
+
export declare function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable: editableProp, multiline, keyboardType: keyboardTypeProp, autoCapitalize, autoCorrect, returnKeyType: returnKeyTypeProp, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines: numberOfLinesProp, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus, modifiers: userModifiers, }: TextInputProps): import("react").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
@@ -31,4 +31,4 @@ export type BottomSheetDialogProps = {
|
|
|
31
31
|
* Web-only bottom sheet built on the HTML dialog element.
|
|
32
32
|
* Shared by the community and universal BottomSheet web implementations.
|
|
33
33
|
*/
|
|
34
|
-
export declare function BottomSheetDialog({ open, onOpenChange, dismissible, showHandle, height, minSnapHeight, onDragEnd, style, children, accessibleTitle, innerTestID, bodyStyle, }: BottomSheetDialogProps): import("react
|
|
34
|
+
export declare function BottomSheetDialog({ open, onOpenChange, dismissible, showHandle, height, minSnapHeight, onDragEnd, style, children, accessibleTitle, innerTestID, bodyStyle, }: BottomSheetDialogProps): import("react").JSX.Element | null;
|
package/expo-module.config.json
CHANGED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Copyright 2025-present 650 Industries. All rights reserved.
|
|
2
|
+
|
|
3
|
+
import ExpoModulesCore
|
|
4
|
+
import SwiftUI
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
Where an item sits in the toolbar, matching SwiftUI's `ToolbarItemPlacement`.
|
|
8
|
+
*/
|
|
9
|
+
internal enum ToolbarItemPlacementOptions: String, Enumerable {
|
|
10
|
+
case automatic
|
|
11
|
+
case principal
|
|
12
|
+
case navigation
|
|
13
|
+
case primaryAction
|
|
14
|
+
case secondaryAction
|
|
15
|
+
case status
|
|
16
|
+
case confirmationAction
|
|
17
|
+
case cancellationAction
|
|
18
|
+
case destructiveAction
|
|
19
|
+
case keyboard
|
|
20
|
+
case topBarLeading
|
|
21
|
+
case topBarTrailing
|
|
22
|
+
case topBarPinnedTrailing
|
|
23
|
+
case largeTitle
|
|
24
|
+
case bottomBar
|
|
25
|
+
|
|
26
|
+
func toPlacement() -> ToolbarItemPlacement {
|
|
27
|
+
switch self {
|
|
28
|
+
case .automatic:
|
|
29
|
+
return .automatic
|
|
30
|
+
case .principal:
|
|
31
|
+
return .principal
|
|
32
|
+
case .navigation:
|
|
33
|
+
return .navigation
|
|
34
|
+
case .primaryAction:
|
|
35
|
+
return .primaryAction
|
|
36
|
+
case .confirmationAction:
|
|
37
|
+
return .confirmationAction
|
|
38
|
+
case .cancellationAction:
|
|
39
|
+
return .cancellationAction
|
|
40
|
+
case .destructiveAction:
|
|
41
|
+
return .destructiveAction
|
|
42
|
+
|
|
43
|
+
case .secondaryAction:
|
|
44
|
+
#if os(tvOS)
|
|
45
|
+
return .automatic
|
|
46
|
+
#else
|
|
47
|
+
return .secondaryAction
|
|
48
|
+
#endif
|
|
49
|
+
|
|
50
|
+
case .status:
|
|
51
|
+
#if os(tvOS)
|
|
52
|
+
if #available(tvOS 18.0, *) {
|
|
53
|
+
return .status
|
|
54
|
+
}
|
|
55
|
+
return .automatic
|
|
56
|
+
#else
|
|
57
|
+
return .status
|
|
58
|
+
#endif
|
|
59
|
+
|
|
60
|
+
case .keyboard:
|
|
61
|
+
#if os(iOS)
|
|
62
|
+
return .keyboard
|
|
63
|
+
#else
|
|
64
|
+
return .automatic
|
|
65
|
+
#endif
|
|
66
|
+
|
|
67
|
+
case .topBarLeading:
|
|
68
|
+
#if os(macOS)
|
|
69
|
+
return .automatic
|
|
70
|
+
#else
|
|
71
|
+
return .topBarLeading
|
|
72
|
+
#endif
|
|
73
|
+
|
|
74
|
+
case .topBarTrailing:
|
|
75
|
+
#if os(macOS)
|
|
76
|
+
return .automatic
|
|
77
|
+
#else
|
|
78
|
+
return .topBarTrailing
|
|
79
|
+
#endif
|
|
80
|
+
|
|
81
|
+
case .topBarPinnedTrailing:
|
|
82
|
+
#if os(iOS) && compiler(>=6.4) // Xcode 27
|
|
83
|
+
if #available(iOS 27.0, *) {
|
|
84
|
+
return .topBarPinnedTrailing
|
|
85
|
+
}
|
|
86
|
+
#endif
|
|
87
|
+
return .automatic
|
|
88
|
+
|
|
89
|
+
case .largeTitle:
|
|
90
|
+
#if os(iOS) && compiler(>=6.2) // Xcode 26
|
|
91
|
+
if #available(iOS 26.0, *) {
|
|
92
|
+
return .largeTitle
|
|
93
|
+
}
|
|
94
|
+
#endif
|
|
95
|
+
return .automatic
|
|
96
|
+
|
|
97
|
+
case .bottomBar:
|
|
98
|
+
#if os(tvOS)
|
|
99
|
+
if #available(tvOS 18.0, *) {
|
|
100
|
+
return .bottomBar
|
|
101
|
+
}
|
|
102
|
+
return .automatic
|
|
103
|
+
#elseif os(macOS)
|
|
104
|
+
return .automatic
|
|
105
|
+
#else
|
|
106
|
+
return .bottomBar
|
|
107
|
+
#endif
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright 2025-present 650 Industries. All rights reserved.
|
|
2
|
+
|
|
3
|
+
import ExpoModulesCore
|
|
4
|
+
import SwiftUI
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
How readily a toolbar item gives up its place, matching SwiftUI's `ToolbarItemVisibilityPriority`.
|
|
8
|
+
*/
|
|
9
|
+
internal enum ToolbarItemVisibilityPriorityOptions: String, Enumerable {
|
|
10
|
+
case automatic
|
|
11
|
+
case low
|
|
12
|
+
case high
|
|
13
|
+
|
|
14
|
+
#if compiler(>=6.4) // Xcode 27
|
|
15
|
+
@available(iOS 27.0, macOS 26.1, tvOS 27.0, visionOS 27.0, *)
|
|
16
|
+
func toPriority() -> ToolbarItemVisibilityPriority {
|
|
17
|
+
switch self {
|
|
18
|
+
case .automatic:
|
|
19
|
+
return .automatic
|
|
20
|
+
case .low:
|
|
21
|
+
#if os(iOS) || os(macOS)
|
|
22
|
+
return .low
|
|
23
|
+
#else
|
|
24
|
+
return .automatic
|
|
25
|
+
#endif
|
|
26
|
+
case .high:
|
|
27
|
+
#if os(iOS) || os(macOS)
|
|
28
|
+
return .high
|
|
29
|
+
#else
|
|
30
|
+
return .automatic
|
|
31
|
+
#endif
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
#endif
|
|
35
|
+
}
|
package/ios/HostView.swift
CHANGED
|
@@ -57,6 +57,8 @@ struct HostView: ExpoSwiftUI.View, ExpoSwiftUI.WithHostingView {
|
|
|
57
57
|
let alignment: Alignment = layoutDirection == .rightToLeft ? .topTrailing : .topLeading
|
|
58
58
|
let fillHorizontal = !props.useViewportSizeMeasurement && !props.matchContentsHorizontal
|
|
59
59
|
let fillVertical = !props.useViewportSizeMeasurement && !props.matchContentsVertical
|
|
60
|
+
let pinHorizontal = !props.useViewportSizeMeasurement && props.matchContentsHorizontal
|
|
61
|
+
let pinVertical = !props.useViewportSizeMeasurement && props.matchContentsVertical
|
|
60
62
|
|
|
61
63
|
if #available(iOS 16.0, tvOS 16.0, macOS 13.0, *) {
|
|
62
64
|
// swiftlint:disable:next identifier_name
|
|
@@ -76,7 +78,13 @@ struct HostView: ExpoSwiftUI.View, ExpoSwiftUI.WithHostingView {
|
|
|
76
78
|
globalEventDispatcher: props.globalEventDispatcher
|
|
77
79
|
)
|
|
78
80
|
.modifier(GeometryChangeModifier(props: props))
|
|
79
|
-
.modifier(FillAlignmentModifier(
|
|
81
|
+
.modifier(FillAlignmentModifier(
|
|
82
|
+
alignment: alignment,
|
|
83
|
+
fillHorizontal: fillHorizontal,
|
|
84
|
+
fillVertical: fillVertical,
|
|
85
|
+
pinHorizontal: pinHorizontal,
|
|
86
|
+
pinVertical: pinVertical
|
|
87
|
+
))
|
|
80
88
|
.coordinateSpace(name: expoHostCoordinateSpace)
|
|
81
89
|
} else {
|
|
82
90
|
ZStack(alignment: alignment) {
|
|
@@ -92,7 +100,13 @@ struct HostView: ExpoSwiftUI.View, ExpoSwiftUI.WithHostingView {
|
|
|
92
100
|
globalEventDispatcher: props.globalEventDispatcher
|
|
93
101
|
)
|
|
94
102
|
.modifier(GeometryChangeModifier(props: props))
|
|
95
|
-
.modifier(FillAlignmentModifier(
|
|
103
|
+
.modifier(FillAlignmentModifier(
|
|
104
|
+
alignment: alignment,
|
|
105
|
+
fillHorizontal: fillHorizontal,
|
|
106
|
+
fillVertical: fillVertical,
|
|
107
|
+
pinHorizontal: pinHorizontal,
|
|
108
|
+
pinVertical: pinVertical
|
|
109
|
+
))
|
|
96
110
|
.coordinateSpace(name: expoHostCoordinateSpace)
|
|
97
111
|
}
|
|
98
112
|
}
|
|
@@ -197,17 +211,25 @@ private struct FillAlignmentModifier: ViewModifier {
|
|
|
197
211
|
let alignment: Alignment
|
|
198
212
|
let fillHorizontal: Bool
|
|
199
213
|
let fillVertical: Bool
|
|
214
|
+
let pinHorizontal: Bool
|
|
215
|
+
let pinVertical: Bool
|
|
200
216
|
|
|
201
217
|
func body(content: Content) -> some View {
|
|
202
|
-
if fillHorizontal || fillVertical {
|
|
218
|
+
if fillHorizontal || fillVertical || pinHorizontal || pinVertical {
|
|
219
|
+
// A `matchContents` axis needs a `0` minimum as well. Without it the frame keeps the
|
|
220
|
+
// content's own size whenever that size is larger than the proposal, and the hosting
|
|
221
|
+
// controller centers the overflow instead of keeping it at `alignment`. The proposal is
|
|
222
|
+
// smaller on every frame where the hosting view still has the previous content size.
|
|
203
223
|
content.frame(
|
|
204
|
-
|
|
205
|
-
|
|
224
|
+
minWidth: pinHorizontal ? 0 : nil,
|
|
225
|
+
maxWidth: fillHorizontal || pinHorizontal ? .infinity : nil,
|
|
226
|
+
minHeight: pinVertical ? 0 : nil,
|
|
227
|
+
maxHeight: fillVertical || pinVertical ? .infinity : nil,
|
|
206
228
|
alignment: alignment
|
|
207
229
|
)
|
|
208
230
|
} else {
|
|
209
|
-
// Leave the view untouched (
|
|
210
|
-
//
|
|
231
|
+
// Leave the view untouched (useViewportSizeMeasurement) so the layout proposal reaches the
|
|
232
|
+
// content's own layout unmodified.
|
|
211
233
|
content
|
|
212
234
|
}
|
|
213
235
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Copyright 2015-present 650 Industries. All rights reserved.
|
|
2
|
+
|
|
3
|
+
import ExpoModulesCore
|
|
4
|
+
import SwiftUI
|
|
5
|
+
|
|
6
|
+
internal enum ScrollEdgeEffectStyleOptions: String, Enumerable {
|
|
7
|
+
case automatic
|
|
8
|
+
case hard
|
|
9
|
+
case soft
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
internal struct ScrollEdgeEffectStyleModifier: ViewModifier, Record {
|
|
13
|
+
@Field var style: ScrollEdgeEffectStyleOptions = .automatic
|
|
14
|
+
@Field var edges: EdgeOptions = .all
|
|
15
|
+
|
|
16
|
+
func body(content: Content) -> some View {
|
|
17
|
+
#if compiler(>=6.2) && !os(tvOS) && !os(macOS) // Xcode 26
|
|
18
|
+
if #available(iOS 26.0, *) {
|
|
19
|
+
switch style {
|
|
20
|
+
case .automatic:
|
|
21
|
+
content.scrollEdgeEffectStyle(.automatic, for: edges.toEdge())
|
|
22
|
+
case .hard:
|
|
23
|
+
content.scrollEdgeEffectStyle(.hard, for: edges.toEdge())
|
|
24
|
+
case .soft:
|
|
25
|
+
content.scrollEdgeEffectStyle(.soft, for: edges.toEdge())
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
content
|
|
29
|
+
}
|
|
30
|
+
#else
|
|
31
|
+
content
|
|
32
|
+
#endif
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -2317,6 +2317,10 @@ extension ViewModifierRegistry {
|
|
|
2317
2317
|
return try ScrollIndicatorsModifier(from: params, appContext: appContext)
|
|
2318
2318
|
}
|
|
2319
2319
|
|
|
2320
|
+
register("scrollEdgeEffectStyle") { params, appContext, _ in
|
|
2321
|
+
return try ScrollEdgeEffectStyleModifier(from: params, appContext: appContext)
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2320
2324
|
register("tabViewStyle") { params, appContext, _ in
|
|
2321
2325
|
return try TabViewStyleModifier(from: params, appContext: appContext)
|
|
2322
2326
|
}
|