@expo/ui 0.2.0-alpha.0 → 0.2.0-alpha.2
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 +15 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/AlertDialogView.kt +3 -1
- package/android/src/main/java/expo/modules/ui/ComposeViews.kt +6 -6
- package/android/src/main/java/expo/modules/ui/DatePickerView.kt +4 -3
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +88 -0
- package/android/src/main/java/expo/modules/ui/Modifiers.kt +15 -0
- package/android/src/main/java/expo/modules/ui/PickerView.kt +7 -2
- package/android/src/main/java/expo/modules/ui/ProgressView.kt +8 -4
- package/android/src/main/java/expo/modules/ui/ShapeView.kt +3 -2
- package/android/src/main/java/expo/modules/ui/SliderView.kt +4 -2
- package/android/src/main/java/expo/modules/ui/SwitchView.kt +3 -2
- package/android/src/main/java/expo/modules/ui/TextInputView.kt +4 -2
- package/android/src/main/java/expo/modules/ui/button/Button.kt +17 -8
- package/build/jetpack-compose/AlertDialog/index.d.ts +3 -0
- package/build/jetpack-compose/AlertDialog/index.d.ts.map +1 -1
- package/build/jetpack-compose/AlertDialog/index.js +3 -1
- package/build/jetpack-compose/AlertDialog/index.js.map +1 -1
- package/build/jetpack-compose/Button/index.d.ts +3 -1
- package/build/jetpack-compose/Button/index.d.ts.map +1 -1
- package/build/jetpack-compose/Button/index.js +2 -0
- package/build/jetpack-compose/Button/index.js.map +1 -1
- package/build/jetpack-compose/ContextMenu/index.d.ts +3 -0
- package/build/jetpack-compose/ContextMenu/index.d.ts.map +1 -1
- package/build/jetpack-compose/ContextMenu/index.js +3 -1
- package/build/jetpack-compose/ContextMenu/index.js.map +1 -1
- package/build/jetpack-compose/DatePicker/index.d.ts +3 -1
- package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
- package/build/jetpack-compose/DatePicker/index.js +2 -0
- package/build/jetpack-compose/DatePicker/index.js.map +1 -1
- package/build/jetpack-compose/Picker/index.d.ts +5 -0
- package/build/jetpack-compose/Picker/index.d.ts.map +1 -1
- package/build/jetpack-compose/Picker/index.js +4 -0
- package/build/jetpack-compose/Picker/index.js.map +1 -1
- package/build/jetpack-compose/Progress/index.d.ts +5 -0
- package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
- package/build/jetpack-compose/Progress/index.js +4 -2
- package/build/jetpack-compose/Progress/index.js.map +1 -1
- package/build/jetpack-compose/Shape/index.d.ts +4 -1
- package/build/jetpack-compose/Shape/index.d.ts.map +1 -1
- package/build/jetpack-compose/Shape/index.js +3 -1
- package/build/jetpack-compose/Shape/index.js.map +1 -1
- package/build/jetpack-compose/Slider/index.d.ts +3 -1
- package/build/jetpack-compose/Slider/index.d.ts.map +1 -1
- package/build/jetpack-compose/Slider/index.js +2 -0
- package/build/jetpack-compose/Slider/index.js.map +1 -1
- package/build/jetpack-compose/Switch/index.d.ts +3 -0
- package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
- package/build/jetpack-compose/Switch/index.js +2 -0
- package/build/jetpack-compose/Switch/index.js.map +1 -1
- package/build/jetpack-compose/TextInput/index.d.ts +3 -1
- package/build/jetpack-compose/TextInput/index.d.ts.map +1 -1
- package/build/jetpack-compose/TextInput/index.js +2 -0
- package/build/jetpack-compose/TextInput/index.js.map +1 -1
- package/build/jetpack-compose/index.d.ts +1 -0
- package/build/jetpack-compose/index.d.ts.map +1 -1
- package/build/jetpack-compose/index.js +1 -0
- package/build/jetpack-compose/index.js.map +1 -1
- package/build/jetpack-compose/modifiers.d.ts +14 -0
- package/build/jetpack-compose/modifiers.d.ts.map +1 -0
- package/build/jetpack-compose/modifiers.js +15 -0
- package/build/jetpack-compose/modifiers.js.map +1 -0
- package/build/swift-ui/BottomSheet/index.d.ts +2 -14
- package/build/swift-ui/BottomSheet/index.d.ts.map +1 -1
- package/build/swift-ui/BottomSheet/index.js +7 -15
- package/build/swift-ui/BottomSheet/index.js.map +1 -1
- package/build/swift-ui/Button/index.d.ts +6 -11
- package/build/swift-ui/Button/index.d.ts.map +1 -1
- package/build/swift-ui/Button/index.js +7 -14
- package/build/swift-ui/Button/index.js.map +1 -1
- package/build/swift-ui/ColorPicker/index.d.ts +3 -10
- package/build/swift-ui/ColorPicker/index.d.ts.map +1 -1
- package/build/swift-ui/ColorPicker/index.js +5 -14
- package/build/swift-ui/ColorPicker/index.js.map +1 -1
- package/build/{swift-ui-primitives/ContentUnavailableView.d.ts → swift-ui/ContentUnavailableView/index.d.ts} +3 -8
- package/build/swift-ui/ContentUnavailableView/index.d.ts.map +1 -0
- package/build/swift-ui/ContentUnavailableView/index.js +19 -0
- package/build/swift-ui/ContentUnavailableView/index.js.map +1 -0
- package/build/swift-ui/ContextMenu/Submenu.d.ts +21 -0
- package/build/swift-ui/ContextMenu/Submenu.d.ts.map +1 -0
- package/build/swift-ui/ContextMenu/Submenu.js +8 -0
- package/build/swift-ui/ContextMenu/Submenu.js.map +1 -0
- package/build/swift-ui/ContextMenu/index.d.ts +6 -87
- package/build/swift-ui/ContextMenu/index.d.ts.map +1 -1
- package/build/swift-ui/ContextMenu/index.js +11 -26
- package/build/swift-ui/ContextMenu/index.js.map +1 -1
- package/build/swift-ui/ContextMenu/types.d.ts +36 -0
- package/build/swift-ui/ContextMenu/types.d.ts.map +1 -0
- package/build/swift-ui/ContextMenu/types.js.map +1 -0
- package/build/swift-ui/ContextMenu/utils.d.ts +4 -4
- package/build/swift-ui/ContextMenu/utils.d.ts.map +1 -1
- package/build/swift-ui/ContextMenu/utils.js +7 -7
- package/build/swift-ui/ContextMenu/utils.js.map +1 -1
- package/build/swift-ui/DatePicker/index.d.ts +3 -21
- package/build/swift-ui/DatePicker/index.d.ts.map +1 -1
- package/build/swift-ui/DatePicker/index.js +6 -28
- package/build/swift-ui/DatePicker/index.js.map +1 -1
- package/build/{swift-ui-primitives/DisclosureGroup.d.ts → swift-ui/DisclosureGroup/index.d.ts} +2 -8
- package/build/swift-ui/DisclosureGroup/index.d.ts.map +1 -0
- package/build/swift-ui/DisclosureGroup/index.js +16 -0
- package/build/swift-ui/DisclosureGroup/index.js.map +1 -0
- package/build/{swift-ui-primitives/Form.d.ts → swift-ui/Form/index.d.ts} +2 -2
- package/build/swift-ui/Form/index.d.ts.map +1 -0
- package/build/swift-ui/Form/index.js +15 -0
- package/build/swift-ui/Form/index.js.map +1 -0
- package/build/swift-ui/Gauge/index.d.ts +4 -10
- package/build/swift-ui/Gauge/index.d.ts.map +1 -1
- package/build/swift-ui/Gauge/index.js +4 -20
- package/build/swift-ui/Gauge/index.js.map +1 -1
- package/build/swift-ui/Host/index.d.ts +2 -1
- package/build/swift-ui/Host/index.d.ts.map +1 -1
- package/build/swift-ui/Host/index.js +3 -2
- package/build/swift-ui/Host/index.js.map +1 -1
- package/build/{swift-ui-primitives/Image.d.ts → swift-ui/Image/index.d.ts} +2 -2
- package/build/swift-ui/Image/index.d.ts.map +1 -0
- package/build/{swift-ui-primitives/Image.js → swift-ui/Image/index.js} +5 -2
- package/build/swift-ui/Image/index.js.map +1 -0
- package/build/swift-ui/Label/index.d.ts +3 -10
- package/build/swift-ui/Label/index.d.ts.map +1 -1
- package/build/swift-ui/Label/index.js +3 -11
- package/build/swift-ui/Label/index.js.map +1 -1
- package/build/{swift-ui-primitives/Layout.d.ts → swift-ui/Layout/index.d.ts} +3 -3
- package/build/swift-ui/Layout/index.d.ts.map +1 -0
- package/build/{swift-ui-primitives/Layout.js → swift-ui/Layout/index.js} +15 -3
- package/build/swift-ui/Layout/index.js.map +1 -0
- package/build/swift-ui/List/index.d.ts +3 -34
- package/build/swift-ui/List/index.d.ts.map +1 -1
- package/build/swift-ui/List/index.js +7 -16
- package/build/swift-ui/List/index.js.map +1 -1
- package/build/swift-ui/Picker/index.d.ts +3 -16
- package/build/swift-ui/Picker/index.d.ts.map +1 -1
- package/build/swift-ui/Picker/index.js +7 -16
- package/build/swift-ui/Picker/index.js.map +1 -1
- package/build/swift-ui/Progress/index.d.ts +6 -19
- package/build/swift-ui/Progress/index.d.ts.map +1 -1
- package/build/swift-ui/Progress/index.js +5 -21
- package/build/swift-ui/Progress/index.js.map +1 -1
- package/build/swift-ui/Section/index.d.ts +4 -11
- package/build/swift-ui/Section/index.d.ts.map +1 -1
- package/build/swift-ui/Section/index.js +3 -11
- package/build/swift-ui/Section/index.js.map +1 -1
- package/build/swift-ui/SecureField/index.d.ts +3 -14
- package/build/swift-ui/SecureField/index.d.ts.map +1 -1
- package/build/swift-ui/SecureField/index.js +5 -14
- package/build/swift-ui/SecureField/index.js.map +1 -1
- package/build/swift-ui/ShareLink/index.d.ts +3 -10
- package/build/swift-ui/ShareLink/index.d.ts.map +1 -1
- package/build/swift-ui/ShareLink/index.js +3 -11
- package/build/swift-ui/ShareLink/index.js.map +1 -1
- package/build/swift-ui/Slider/index.d.ts +3 -15
- package/build/swift-ui/Slider/index.d.ts.map +1 -1
- package/build/swift-ui/Slider/index.js +7 -12
- package/build/swift-ui/Slider/index.js.map +1 -1
- package/build/{swift-ui-primitives/Spacer.d.ts → swift-ui/Spacer/index.d.ts} +2 -2
- package/build/swift-ui/Spacer/index.d.ts.map +1 -0
- package/build/swift-ui/Spacer/index.js +15 -0
- package/build/swift-ui/Spacer/index.js.map +1 -0
- package/build/swift-ui/Switch/index.d.ts +3 -20
- package/build/swift-ui/Switch/index.d.ts.map +1 -1
- package/build/swift-ui/Switch/index.js +7 -16
- package/build/swift-ui/Switch/index.js.map +1 -1
- package/build/{swift-ui-primitives/Text.d.ts → swift-ui/Text/index.d.ts} +2 -2
- package/build/swift-ui/Text/index.d.ts.map +1 -0
- package/build/{swift-ui-primitives/Text.js → swift-ui/Text/index.js} +5 -2
- package/build/swift-ui/Text/index.js.map +1 -0
- package/build/swift-ui/TextField/index.d.ts +4 -11
- package/build/swift-ui/TextField/index.d.ts.map +1 -1
- package/build/swift-ui/TextField/index.js +5 -14
- package/build/swift-ui/TextField/index.js.map +1 -1
- package/build/swift-ui/index.d.ts +7 -0
- package/build/swift-ui/index.d.ts.map +1 -1
- package/build/swift-ui/index.js +7 -0
- package/build/swift-ui/index.js.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +259 -0
- package/build/swift-ui/modifiers/index.d.ts.map +1 -0
- package/build/swift-ui/modifiers/index.js +224 -0
- package/build/swift-ui/modifiers/index.js.map +1 -0
- package/build/swift-ui/modifiers/utils.d.ts +15 -0
- package/build/swift-ui/modifiers/utils.d.ts.map +1 -0
- package/build/swift-ui/modifiers/utils.js +23 -0
- package/build/swift-ui/modifiers/utils.js.map +1 -0
- package/build/{swift-ui-primitives → swift-ui}/types.d.ts +47 -4
- package/build/swift-ui/types.d.ts.map +1 -0
- package/build/swift-ui/types.js +2 -0
- package/build/swift-ui/types.js.map +1 -0
- package/build/types.d.ts +3 -0
- package/build/types.d.ts.map +1 -1
- package/build/types.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/BottomSheetView.swift +9 -1
- package/ios/Button/Button.swift +1 -0
- package/ios/Button/ButtonProps.swift +7 -2
- package/ios/ColorPickerView.swift +8 -1
- package/ios/ContentUnavailableView.swift +3 -1
- package/ios/ContextMenu/ContextMenu.swift +5 -0
- package/ios/ContextMenu/ContextMenuRecords.swift +19 -3
- package/ios/DateTimePickerView.swift +8 -1
- package/ios/DisclosureGroupView.swift +4 -2
- package/ios/ExpoUIModule.swift +25 -28
- package/ios/FormView.swift +3 -1
- package/ios/Gauge/Gauge.swift +1 -0
- package/ios/Gauge/GaugeProps.swift +7 -1
- package/ios/GroupView.swift +3 -1
- package/ios/HStackView.swift +3 -1
- package/ios/HostView.swift +1 -1
- package/ios/ImageView.swift +3 -1
- package/ios/Label.swift +9 -2
- package/ios/List.swift +8 -2
- package/ios/Modifiers/CommonViewModifiers.swift +6 -3
- package/ios/Modifiers/View+ModifierArray.swift +27 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +718 -0
- package/ios/PickerView.swift +8 -1
- package/ios/ProgressView.swift +8 -1
- package/ios/SectionView.swift +9 -20
- package/ios/SecureField/SecureFieldView.swift +10 -2
- package/ios/ShareLinkView.swift +9 -1
- package/ios/SliderView.swift +8 -1
- package/ios/SpacerView.swift +3 -1
- package/ios/SwitchView.swift +8 -1
- package/ios/TextField/TextFieldView.swift +8 -1
- package/ios/TextView.swift +3 -1
- package/ios/VStackView.swift +3 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module → 0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom → 0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.2/expo.modules.ui-0.2.0-alpha.2.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 +4 -4
- package/src/jetpack-compose/AlertDialog/index.tsx +12 -1
- package/src/jetpack-compose/Button/index.tsx +6 -1
- package/src/jetpack-compose/ContextMenu/index.tsx +6 -0
- package/src/jetpack-compose/DatePicker/index.tsx +5 -1
- package/src/jetpack-compose/Picker/index.tsx +10 -0
- package/src/jetpack-compose/Progress/index.tsx +20 -2
- package/src/jetpack-compose/Shape/index.tsx +17 -2
- package/src/jetpack-compose/Slider/index.tsx +6 -1
- package/src/jetpack-compose/Switch/index.tsx +7 -0
- package/src/jetpack-compose/TextInput/index.tsx +6 -1
- package/src/jetpack-compose/{index.tsx → index.ts} +1 -0
- package/src/jetpack-compose/modifiers.ts +19 -0
- package/src/swift-ui/BottomSheet/index.tsx +10 -19
- package/src/swift-ui/Button/index.tsx +11 -20
- package/src/swift-ui/ColorPicker/index.tsx +10 -18
- package/src/{swift-ui-primitives/ContentUnavailableView.tsx → swift-ui/ContentUnavailableView/index.tsx} +16 -9
- package/src/swift-ui/ContextMenu/Submenu.tsx +25 -0
- package/src/swift-ui/ContextMenu/index.tsx +23 -100
- package/src/swift-ui/ContextMenu/types.ts +47 -0
- package/src/swift-ui/ContextMenu/utils.ts +8 -13
- package/src/swift-ui/DatePicker/index.tsx +10 -40
- package/src/{swift-ui-primitives/DisclosureGroup.tsx → swift-ui/DisclosureGroup/index.tsx} +12 -6
- package/src/swift-ui/Form/index.tsx +30 -0
- package/src/swift-ui/Gauge/index.tsx +12 -23
- package/src/swift-ui/Host/index.tsx +7 -2
- package/src/{swift-ui-primitives/Image.tsx → swift-ui/Image/index.tsx} +6 -3
- package/src/swift-ui/Label/index.tsx +10 -15
- package/src/{swift-ui-primitives/Layout.tsx → swift-ui/Layout/index.tsx} +17 -4
- package/src/swift-ui/List/index.tsx +16 -28
- package/src/swift-ui/Picker/index.tsx +10 -22
- package/src/swift-ui/Progress/index.tsx +21 -28
- package/src/swift-ui/Section/index.tsx +11 -16
- package/src/swift-ui/SecureField/index.tsx +10 -22
- package/src/swift-ui/ShareLink/index.tsx +10 -15
- package/src/swift-ui/Slider/index.tsx +10 -18
- package/src/{swift-ui-primitives/Spacer.tsx → swift-ui/Spacer/index.tsx} +12 -2
- package/src/swift-ui/Switch/index.tsx +12 -22
- package/src/{swift-ui-primitives/Text.tsx → swift-ui/Text/index.tsx} +6 -2
- package/src/swift-ui/TextField/index.tsx +9 -21
- package/src/swift-ui/index.tsx +7 -0
- package/src/swift-ui/modifiers/index.ts +374 -0
- package/src/swift-ui/modifiers/utils.ts +33 -0
- package/src/{swift-ui-primitives → swift-ui}/types.ts +48 -4
- package/src/types.ts +4 -0
- package/swift-ui/index.d.ts +1 -0
- package/swift-ui/index.js +1 -0
- package/swift-ui/modifiers.d.ts +1 -0
- package/swift-ui/modifiers.js +1 -0
- package/build/swift-ui-primitives/ContentUnavailableView.d.ts.map +0 -1
- package/build/swift-ui-primitives/ContentUnavailableView.js +0 -15
- package/build/swift-ui-primitives/ContentUnavailableView.js.map +0 -1
- package/build/swift-ui-primitives/DisclosureGroup.d.ts.map +0 -1
- package/build/swift-ui-primitives/DisclosureGroup.js +0 -10
- package/build/swift-ui-primitives/DisclosureGroup.js.map +0 -1
- package/build/swift-ui-primitives/Form.d.ts.map +0 -1
- package/build/swift-ui-primitives/Form.js +0 -6
- package/build/swift-ui-primitives/Form.js.map +0 -1
- package/build/swift-ui-primitives/Image.d.ts.map +0 -1
- package/build/swift-ui-primitives/Image.js.map +0 -1
- package/build/swift-ui-primitives/Layout.d.ts.map +0 -1
- package/build/swift-ui-primitives/Layout.js.map +0 -1
- package/build/swift-ui-primitives/Section.d.ts +0 -6
- package/build/swift-ui-primitives/Section.d.ts.map +0 -1
- package/build/swift-ui-primitives/Section.js +0 -6
- package/build/swift-ui-primitives/Section.js.map +0 -1
- package/build/swift-ui-primitives/Spacer.d.ts.map +0 -1
- package/build/swift-ui-primitives/Spacer.js +0 -6
- package/build/swift-ui-primitives/Spacer.js.map +0 -1
- package/build/swift-ui-primitives/Text.d.ts.map +0 -1
- package/build/swift-ui-primitives/Text.js.map +0 -1
- package/build/swift-ui-primitives/index.d.ts +0 -24
- package/build/swift-ui-primitives/index.d.ts.map +0 -1
- package/build/swift-ui-primitives/index.js +0 -24
- package/build/swift-ui-primitives/index.js.map +0 -1
- package/build/swift-ui-primitives/types.d.ts.map +0 -1
- package/build/swift-ui-primitives/types.js.map +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-alpha.0/expo.modules.ui-0.2.0-alpha.0.pom.sha512 +0 -1
- package/src/swift-ui-primitives/Form.tsx +0 -20
- package/src/swift-ui-primitives/Section.tsx +0 -15
- package/src/swift-ui-primitives/index.tsx +0 -27
- package/swift-ui-primitives.d.ts +0 -1
- package/swift-ui-primitives.js +0 -1
- package/swift-ui.d.ts +0 -1
- package/swift-ui.js +0 -1
- /package/build/{swift-ui-primitives → swift-ui/ContextMenu}/types.js +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
2
|
import { Ref } from 'react';
|
|
3
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
3
|
|
|
5
|
-
import { ViewEvent } from '../../types';
|
|
6
|
-
import { Host } from '../Host';
|
|
4
|
+
import { type ViewEvent } from '../../types';
|
|
7
5
|
import { TextFieldKeyboardType } from '../TextField';
|
|
6
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
7
|
+
import { type CommonViewModifierProps } from '../types';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Can be used for imperatively setting text on the SecureField component.
|
|
@@ -28,9 +28,9 @@ export type SecureFieldProps = {
|
|
|
28
28
|
*/
|
|
29
29
|
onChangeText: (value: string) => void;
|
|
30
30
|
keyboardType?: TextFieldKeyboardType;
|
|
31
|
-
};
|
|
31
|
+
} & CommonViewModifierProps;
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
type NativeSecureFieldProps = Omit<SecureFieldProps, 'onChangeText'> & {} & ViewEvent<
|
|
34
34
|
'onValueChanged',
|
|
35
35
|
{ value: string }
|
|
36
36
|
>;
|
|
@@ -41,12 +41,12 @@ const SecureFieldNativeView: React.ComponentType<NativeSecureFieldProps> = requi
|
|
|
41
41
|
'SecureFieldView'
|
|
42
42
|
);
|
|
43
43
|
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
44
|
function transformSecureFieldProps(props: SecureFieldProps): NativeSecureFieldProps {
|
|
45
|
+
const { modifiers, ...restProps } = props;
|
|
48
46
|
return {
|
|
49
|
-
|
|
47
|
+
modifiers,
|
|
48
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
49
|
+
...restProps,
|
|
50
50
|
onValueChanged: (event) => {
|
|
51
51
|
props.onChangeText?.(event.nativeEvent.value);
|
|
52
52
|
},
|
|
@@ -56,18 +56,6 @@ function transformSecureFieldProps(props: SecureFieldProps): NativeSecureFieldPr
|
|
|
56
56
|
/**
|
|
57
57
|
* Renders a `SecureField` component. Should mostly be used for embedding text inputs inside of SwiftUI lists and sections. Is an uncontrolled component.
|
|
58
58
|
*/
|
|
59
|
-
export function SecureField(props: SecureFieldProps
|
|
60
|
-
return (
|
|
61
|
-
<Host style={props.style} matchContents>
|
|
62
|
-
<SecureFieldPrimitive {...props} />
|
|
63
|
-
</Host>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* `<SecureField>` component without a host view.
|
|
69
|
-
* You should use this with a `Host` component in ancestor.
|
|
70
|
-
*/
|
|
71
|
-
export function SecureFieldPrimitive(props: SecureFieldProps) {
|
|
59
|
+
export function SecureField(props: SecureFieldProps) {
|
|
72
60
|
return <SecureFieldNativeView {...transformSecureFieldProps(props)} />;
|
|
73
61
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
2
|
|
|
4
|
-
import {
|
|
3
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
4
|
+
import { type CommonViewModifierProps } from '../types';
|
|
5
5
|
|
|
6
6
|
export type ShareLinkProps = {
|
|
7
7
|
/**
|
|
@@ -28,21 +28,13 @@ export type ShareLinkProps = {
|
|
|
28
28
|
* Optional children to be rendered inside the share link.
|
|
29
29
|
*/
|
|
30
30
|
children?: React.ReactNode;
|
|
31
|
-
};
|
|
31
|
+
} & CommonViewModifierProps;
|
|
32
32
|
|
|
33
33
|
const ShareLinkNativeView: React.ComponentType<ShareLinkProps> = requireNativeView(
|
|
34
34
|
'ExpoUI',
|
|
35
35
|
'ShareLinkView'
|
|
36
36
|
);
|
|
37
37
|
|
|
38
|
-
/**
|
|
39
|
-
* `<ShareLink>` component without a host view.
|
|
40
|
-
* You should use this with a `Host` component in ancestor.
|
|
41
|
-
*/
|
|
42
|
-
export function ShareLinkPrimitive(props: ShareLinkProps) {
|
|
43
|
-
return <ShareLinkNativeView {...props} />;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
38
|
/**
|
|
47
39
|
* Renders the native ShareLink component with the provided properties.
|
|
48
40
|
*
|
|
@@ -50,10 +42,13 @@ export function ShareLinkPrimitive(props: ShareLinkProps) {
|
|
|
50
42
|
* @returns {JSX.Element} The rendered native ShareLink component.
|
|
51
43
|
* @platform ios
|
|
52
44
|
*/
|
|
53
|
-
export function ShareLink(props: ShareLinkProps
|
|
45
|
+
export function ShareLink(props: ShareLinkProps) {
|
|
46
|
+
const { modifiers, ...restProps } = props;
|
|
54
47
|
return (
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
<ShareLinkNativeView
|
|
49
|
+
modifiers={modifiers}
|
|
50
|
+
{...(modifiers ? createViewModifierEventListener(modifiers) : undefined)}
|
|
51
|
+
{...restProps}
|
|
52
|
+
/>
|
|
58
53
|
);
|
|
59
54
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
2
|
|
|
4
|
-
import { ViewEvent } from '../../types';
|
|
5
|
-
import {
|
|
3
|
+
import { type ViewEvent } from '../../types';
|
|
4
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
5
|
+
import { type CommonViewModifierProps } from '../types';
|
|
6
6
|
|
|
7
7
|
export type SliderProps = {
|
|
8
8
|
/**
|
|
@@ -33,7 +33,7 @@ export type SliderProps = {
|
|
|
33
33
|
* Callback triggered on dragging along the slider.
|
|
34
34
|
*/
|
|
35
35
|
onValueChange?: (value: number) => void;
|
|
36
|
-
};
|
|
36
|
+
} & CommonViewModifierProps;
|
|
37
37
|
|
|
38
38
|
type NativeSliderProps = Omit<SliderProps, 'onValueChange'> &
|
|
39
39
|
ViewEvent<'onValueChanged', { value: number }>;
|
|
@@ -43,12 +43,12 @@ const SliderNativeView: React.ComponentType<NativeSliderProps> = requireNativeVi
|
|
|
43
43
|
'SliderView'
|
|
44
44
|
);
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*/
|
|
49
|
-
export function transformSliderProps(props: SliderProps): NativeSliderProps {
|
|
46
|
+
function transformSliderProps(props: SliderProps): NativeSliderProps {
|
|
47
|
+
const { modifiers, ...restProps } = props;
|
|
50
48
|
return {
|
|
51
|
-
|
|
49
|
+
modifiers,
|
|
50
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
51
|
+
...restProps,
|
|
52
52
|
min: props.min ?? 0,
|
|
53
53
|
max: props.max ?? 1,
|
|
54
54
|
steps: props.steps ?? 0,
|
|
@@ -60,14 +60,6 @@ export function transformSliderProps(props: SliderProps): NativeSliderProps {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export function
|
|
63
|
+
export function Slider(props: SliderProps) {
|
|
64
64
|
return <SliderNativeView {...transformSliderProps(props)} />;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
export function Slider(props: SliderProps & { style?: StyleProp<ViewStyle> }) {
|
|
68
|
-
return (
|
|
69
|
-
<Host style={props.style} matchContents>
|
|
70
|
-
<SliderPrimitive {...props} />
|
|
71
|
-
</Host>
|
|
72
|
-
);
|
|
73
|
-
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
4
|
+
import { type CommonViewModifierProps } from '../types';
|
|
4
5
|
|
|
5
6
|
export interface SpacerProps extends CommonViewModifierProps {
|
|
6
7
|
/**
|
|
@@ -17,6 +18,15 @@ const SpacerNativeView: React.ComponentType<NativeSpacerProps> = requireNativeVi
|
|
|
17
18
|
'SpacerView'
|
|
18
19
|
);
|
|
19
20
|
|
|
21
|
+
function transformSpacerProps(props: SpacerProps): NativeSpacerProps {
|
|
22
|
+
const { modifiers, ...restProps } = props;
|
|
23
|
+
return {
|
|
24
|
+
modifiers,
|
|
25
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
26
|
+
...restProps,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
20
30
|
export function Spacer(props: SpacerProps) {
|
|
21
|
-
return <SpacerNativeView {...props} />;
|
|
31
|
+
return <SpacerNativeView {...transformSpacerProps(props)} />;
|
|
22
32
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
-
import { NativeSyntheticEvent
|
|
2
|
+
import { NativeSyntheticEvent } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
5
|
+
import { type CommonViewModifierProps } from '../types';
|
|
5
6
|
|
|
6
7
|
export type SwitchProps = {
|
|
7
8
|
/**
|
|
@@ -26,7 +27,8 @@ export type SwitchProps = {
|
|
|
26
27
|
* Picker color. On iOS, it only applies to the `menu` variant.
|
|
27
28
|
*/
|
|
28
29
|
color?: string;
|
|
29
|
-
} & (SwitchSwitchVariantProps | SwitchCheckboxVariantProps | SwitchButtonVariantProps)
|
|
30
|
+
} & (SwitchSwitchVariantProps | SwitchCheckboxVariantProps | SwitchButtonVariantProps) &
|
|
31
|
+
CommonViewModifierProps;
|
|
30
32
|
|
|
31
33
|
export type SwitchSwitchVariantProps = {
|
|
32
34
|
variant?: 'switch';
|
|
@@ -50,12 +52,12 @@ const SwitchNativeView: React.ComponentType<NativeSwitchProps> = requireNativeVi
|
|
|
50
52
|
'SwitchView'
|
|
51
53
|
);
|
|
52
54
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*/
|
|
56
|
-
export function transformSwitchProps(props: SwitchProps): NativeSwitchProps {
|
|
55
|
+
function transformSwitchProps(props: SwitchProps): NativeSwitchProps {
|
|
56
|
+
const { modifiers, ...restProps } = props;
|
|
57
57
|
return {
|
|
58
|
-
|
|
58
|
+
modifiers,
|
|
59
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
60
|
+
...restProps,
|
|
59
61
|
variant: props.variant ?? 'switch',
|
|
60
62
|
color: props.color,
|
|
61
63
|
onValueChange: ({ nativeEvent: { value } }) => {
|
|
@@ -64,21 +66,9 @@ export function transformSwitchProps(props: SwitchProps): NativeSwitchProps {
|
|
|
64
66
|
} as NativeSwitchProps;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
/**
|
|
68
|
-
* `<Switch>` component without a host view.
|
|
69
|
-
* You should use this with a `Host` component in ancestor.
|
|
70
|
-
*/
|
|
71
|
-
export function SwitchPrimitive(props: SwitchProps) {
|
|
72
|
-
return <SwitchNativeView {...transformSwitchProps(props)} />;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
69
|
/**
|
|
76
70
|
* Displays a native switch component.
|
|
77
71
|
*/
|
|
78
|
-
export function Switch(props: SwitchProps
|
|
79
|
-
return (
|
|
80
|
-
<Host style={props.style} matchContents>
|
|
81
|
-
<SwitchPrimitive {...props} />
|
|
82
|
-
</Host>
|
|
83
|
-
);
|
|
72
|
+
export function Switch(props: SwitchProps) {
|
|
73
|
+
return <SwitchNativeView {...transformSwitchProps(props)} />;
|
|
84
74
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
4
|
+
import { type CommonViewModifierProps } from '../types';
|
|
4
5
|
|
|
5
6
|
export interface TextProps extends CommonViewModifierProps {
|
|
6
7
|
children: string;
|
|
@@ -45,8 +46,11 @@ const TextNativeView: React.ComponentType<Omit<TextProps, 'children'> & { text:
|
|
|
45
46
|
requireNativeView('ExpoUI', 'TextView');
|
|
46
47
|
|
|
47
48
|
function transformTextProps(props: TextProps): NativeTextProps {
|
|
48
|
-
const { children, ...restProps } = props;
|
|
49
|
+
const { children, modifiers, ...restProps } = props;
|
|
50
|
+
|
|
49
51
|
return {
|
|
52
|
+
modifiers,
|
|
53
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
50
54
|
...restProps,
|
|
51
55
|
text: children ?? '',
|
|
52
56
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
2
|
import { Ref } from 'react';
|
|
3
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
3
|
|
|
5
|
-
import { ViewEvent } from '../../types';
|
|
6
|
-
import {
|
|
4
|
+
import { type ViewEvent } from '../../types';
|
|
5
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
6
|
+
import { type CommonViewModifierProps } from '../types';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Determines which keyboard to open. For example, `'numeric'`.
|
|
@@ -78,7 +78,7 @@ export type TextFieldProps = {
|
|
|
78
78
|
* @default true
|
|
79
79
|
*/
|
|
80
80
|
autocorrection?: boolean;
|
|
81
|
-
};
|
|
81
|
+
} & CommonViewModifierProps;
|
|
82
82
|
|
|
83
83
|
export type NativeTextFieldProps = Omit<TextFieldProps, 'onChangeText'> & {} & ViewEvent<
|
|
84
84
|
'onValueChanged',
|
|
@@ -91,12 +91,12 @@ const TextFieldNativeView: React.ComponentType<NativeTextFieldProps> = requireNa
|
|
|
91
91
|
'TextFieldView'
|
|
92
92
|
);
|
|
93
93
|
|
|
94
|
-
/**
|
|
95
|
-
* @hidden
|
|
96
|
-
*/
|
|
97
94
|
function transformTextFieldProps(props: TextFieldProps): NativeTextFieldProps {
|
|
95
|
+
const { modifiers, ...restProps } = props;
|
|
98
96
|
return {
|
|
99
|
-
|
|
97
|
+
modifiers,
|
|
98
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
99
|
+
...restProps,
|
|
100
100
|
onValueChanged: (event) => {
|
|
101
101
|
props.onChangeText?.(event.nativeEvent.value);
|
|
102
102
|
},
|
|
@@ -106,18 +106,6 @@ function transformTextFieldProps(props: TextFieldProps): NativeTextFieldProps {
|
|
|
106
106
|
/**
|
|
107
107
|
* Renders a `TextField` component. Should mostly be used for embedding text inputs inside of SwiftUI lists and sections. Is an uncontrolled component.
|
|
108
108
|
*/
|
|
109
|
-
export function TextField(props: TextFieldProps
|
|
110
|
-
return (
|
|
111
|
-
<Host style={props.style} matchContents>
|
|
112
|
-
<TextFieldPrimitive {...props} />
|
|
113
|
-
</Host>
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* `<TextField>` component without a host view.
|
|
119
|
-
* You should use this with a `Host` component in ancestor.
|
|
120
|
-
*/
|
|
121
|
-
export function TextFieldPrimitive(props: TextFieldProps) {
|
|
109
|
+
export function TextField(props: TextFieldProps) {
|
|
122
110
|
return <TextFieldNativeView {...transformTextFieldProps(props)} />;
|
|
123
111
|
}
|
package/src/swift-ui/index.tsx
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
export * from './BottomSheet';
|
|
2
2
|
export * from './Button';
|
|
3
3
|
export * from './ColorPicker';
|
|
4
|
+
export * from './ContentUnavailableView';
|
|
4
5
|
export * from './ContextMenu';
|
|
5
6
|
export * from './DatePicker';
|
|
7
|
+
export * from './DisclosureGroup';
|
|
8
|
+
export * from './Form';
|
|
6
9
|
export * from './Gauge';
|
|
7
10
|
export * from './Host';
|
|
11
|
+
export * from './Image';
|
|
8
12
|
export * from './Label';
|
|
13
|
+
export * from './Layout';
|
|
9
14
|
export * from './List';
|
|
10
15
|
export * from './Picker';
|
|
11
16
|
export * from './Progress';
|
|
12
17
|
export * from './Section';
|
|
13
18
|
export * from './ShareLink';
|
|
14
19
|
export * from './Slider';
|
|
20
|
+
export * from './Spacer';
|
|
15
21
|
export * from './Switch';
|
|
22
|
+
export * from './Text';
|
|
16
23
|
export * from './TextField';
|
|
17
24
|
export * from './SecureField';
|