@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
package/ios/PickerView.swift
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
import SwiftUI
|
|
4
4
|
import ExpoModulesCore
|
|
5
5
|
|
|
6
|
-
final class PickerProps: ExpoSwiftUI.ViewProps {
|
|
6
|
+
final class PickerProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
7
|
+
@Field var fixedSize: Bool?
|
|
8
|
+
@Field var frame: FrameOptions?
|
|
9
|
+
@Field var padding: PaddingOptions?
|
|
10
|
+
@Field var testID: String?
|
|
11
|
+
@Field var modifiers: ModifierArray?
|
|
12
|
+
|
|
7
13
|
@Field var options: [String] = []
|
|
8
14
|
@Field var selectedIndex: Int?
|
|
9
15
|
@Field var variant: String?
|
|
@@ -29,6 +35,7 @@ struct PickerView: ExpoSwiftUI.View {
|
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
.tint(props.color)
|
|
38
|
+
.modifier(CommonViewModifiers(props: props))
|
|
32
39
|
#if !os(tvOS)
|
|
33
40
|
.if(props.variant == "wheel", { $0.pickerStyle(.wheel) })
|
|
34
41
|
.if(props.variant == "palette", { $0.pickerStyle(.palette) })
|
package/ios/ProgressView.swift
CHANGED
|
@@ -8,7 +8,13 @@ internal enum ProgressVariant: String, Enumerable {
|
|
|
8
8
|
case linear
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
final class ProgressProps: ExpoSwiftUI.ViewProps {
|
|
11
|
+
final class ProgressProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
12
|
+
@Field var fixedSize: Bool?
|
|
13
|
+
@Field var frame: FrameOptions?
|
|
14
|
+
@Field var padding: PaddingOptions?
|
|
15
|
+
@Field var testID: String?
|
|
16
|
+
@Field var modifiers: ModifierArray?
|
|
17
|
+
|
|
12
18
|
@Field var variant: ProgressVariant = .circular
|
|
13
19
|
@Field var progress: Double?
|
|
14
20
|
@Field var color: Color?
|
|
@@ -20,6 +26,7 @@ struct ProgressView: ExpoSwiftUI.View {
|
|
|
20
26
|
var body: some View {
|
|
21
27
|
SwiftUI.ProgressView(value: props.progress)
|
|
22
28
|
.tint(props.color)
|
|
29
|
+
.modifier(CommonViewModifiers(props: props))
|
|
23
30
|
.if(props.variant == .circular) {
|
|
24
31
|
$0.progressViewStyle(.circular)
|
|
25
32
|
}
|
package/ios/SectionView.swift
CHANGED
|
@@ -3,34 +3,23 @@
|
|
|
3
3
|
import SwiftUI
|
|
4
4
|
import ExpoModulesCore
|
|
5
5
|
|
|
6
|
-
final class SectionProps: ExpoSwiftUI.ViewProps {
|
|
7
|
-
@Field var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@
|
|
12
|
-
|
|
13
|
-
var body: some View {
|
|
14
|
-
let form = Form {
|
|
15
|
-
Section(header: Text(props.title ?? "").textCase(nil)) {
|
|
16
|
-
Children()
|
|
17
|
-
}
|
|
18
|
-
}
|
|
6
|
+
final class SectionProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
7
|
+
@Field var fixedSize: Bool?
|
|
8
|
+
@Field var frame: FrameOptions?
|
|
9
|
+
@Field var padding: PaddingOptions?
|
|
10
|
+
@Field var testID: String?
|
|
11
|
+
@Field var modifiers: ModifierArray?
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
form.scrollDisabled(true)
|
|
22
|
-
} else {
|
|
23
|
-
form
|
|
24
|
-
}
|
|
25
|
-
}
|
|
13
|
+
@Field var title: String?
|
|
26
14
|
}
|
|
27
15
|
|
|
28
|
-
internal struct
|
|
16
|
+
internal struct SectionView: ExpoSwiftUI.View {
|
|
29
17
|
@ObservedObject var props: SectionProps
|
|
30
18
|
|
|
31
19
|
var body: some View {
|
|
32
20
|
Section(header: Text(props.title ?? "").textCase(nil)) {
|
|
33
21
|
Children()
|
|
34
22
|
}
|
|
23
|
+
.modifier(CommonViewModifiers(props: props))
|
|
35
24
|
}
|
|
36
25
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import SwiftUI
|
|
2
2
|
import ExpoModulesCore
|
|
3
3
|
|
|
4
|
-
final class SecureFieldProps: ExpoSwiftUI.ViewProps {
|
|
4
|
+
final class SecureFieldProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
5
|
+
@Field var fixedSize: Bool?
|
|
6
|
+
@Field var frame: FrameOptions?
|
|
7
|
+
@Field var padding: PaddingOptions?
|
|
8
|
+
@Field var testID: String?
|
|
9
|
+
@Field var modifiers: ModifierArray?
|
|
10
|
+
|
|
5
11
|
@Field var defaultValue: String = ""
|
|
6
12
|
@Field var placeholder: String = ""
|
|
7
13
|
@Field var keyboardType: KeyboardType = KeyboardType.defaultKeyboard
|
|
@@ -24,7 +30,9 @@ struct SecureFieldView: ExpoSwiftUI.View {
|
|
|
24
30
|
SecureField(
|
|
25
31
|
props.placeholder,
|
|
26
32
|
text: $textManager.text
|
|
27
|
-
)
|
|
33
|
+
)
|
|
34
|
+
.modifier(CommonViewModifiers(props: props))
|
|
35
|
+
.fixedSize(horizontal: false, vertical: true)
|
|
28
36
|
.onAppear { textManager.text = props.defaultValue }
|
|
29
37
|
.onChange(of: textManager.text) { newValue in
|
|
30
38
|
props.onValueChanged(["value": newValue])
|
package/ios/ShareLinkView.swift
CHANGED
|
@@ -6,7 +6,13 @@ struct Preview: Record {
|
|
|
6
6
|
@Field var image: String
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
final class ShareLinkViewProps: ExpoSwiftUI.ViewProps {
|
|
9
|
+
final class ShareLinkViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
10
|
+
@Field var fixedSize: Bool?
|
|
11
|
+
@Field var frame: FrameOptions?
|
|
12
|
+
@Field var padding: PaddingOptions?
|
|
13
|
+
@Field var testID: String?
|
|
14
|
+
@Field var modifiers: ModifierArray?
|
|
15
|
+
|
|
10
16
|
@Field var item: URL?
|
|
11
17
|
@Field var subject: String?
|
|
12
18
|
@Field var message: String?
|
|
@@ -37,6 +43,7 @@ struct ShareLinkView: ExpoSwiftUI.View {
|
|
|
37
43
|
) {
|
|
38
44
|
Children()
|
|
39
45
|
}
|
|
46
|
+
.modifier(CommonViewModifiers(props: props))
|
|
40
47
|
} else {
|
|
41
48
|
shareLink(
|
|
42
49
|
item: item,
|
|
@@ -44,6 +51,7 @@ struct ShareLinkView: ExpoSwiftUI.View {
|
|
|
44
51
|
message: message,
|
|
45
52
|
preview: preview
|
|
46
53
|
)
|
|
54
|
+
.modifier(CommonViewModifiers(props: props))
|
|
47
55
|
}
|
|
48
56
|
}
|
|
49
57
|
}
|
package/ios/SliderView.swift
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
import SwiftUI
|
|
4
4
|
import ExpoModulesCore
|
|
5
5
|
|
|
6
|
-
final class SliderProps: ExpoSwiftUI.ViewProps {
|
|
6
|
+
final class SliderProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
7
|
+
@Field var fixedSize: Bool?
|
|
8
|
+
@Field var frame: FrameOptions?
|
|
9
|
+
@Field var padding: PaddingOptions?
|
|
10
|
+
@Field var testID: String?
|
|
11
|
+
@Field var modifiers: ModifierArray?
|
|
12
|
+
|
|
7
13
|
@Field var value: Float?
|
|
8
14
|
@Field var steps: Int = 0
|
|
9
15
|
@Field var min: Float = 0.0
|
|
@@ -32,6 +38,7 @@ struct SliderView: ExpoSwiftUI.View {
|
|
|
32
38
|
var body: some View {
|
|
33
39
|
#if !os(tvOS)
|
|
34
40
|
Slider(value: $value, in: props.min...props.max, step: getStep(props.min, props.max, props.steps) )
|
|
41
|
+
.modifier(CommonViewModifiers(props: props))
|
|
35
42
|
.onChange(of: value, perform: { newValue in
|
|
36
43
|
if props.value == newValue {
|
|
37
44
|
return
|
package/ios/SpacerView.swift
CHANGED
|
@@ -7,8 +7,10 @@ internal final class SpacerViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierP
|
|
|
7
7
|
@Field var fixedSize: Bool?
|
|
8
8
|
@Field var frame: FrameOptions?
|
|
9
9
|
@Field var padding: PaddingOptions?
|
|
10
|
-
@Field var minLength: Double?
|
|
11
10
|
@Field var testID: String?
|
|
11
|
+
@Field var modifiers: ModifierArray?
|
|
12
|
+
|
|
13
|
+
@Field var minLength: Double?
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
internal struct SpacerView: ExpoSwiftUI.View {
|
package/ios/SwitchView.swift
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
import SwiftUI
|
|
4
4
|
import ExpoModulesCore
|
|
5
5
|
|
|
6
|
-
final class SwitchProps: ExpoSwiftUI.ViewProps {
|
|
6
|
+
final class SwitchProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
7
|
+
@Field var fixedSize: Bool?
|
|
8
|
+
@Field var frame: FrameOptions?
|
|
9
|
+
@Field var padding: PaddingOptions?
|
|
10
|
+
@Field var testID: String?
|
|
11
|
+
@Field var modifiers: ModifierArray?
|
|
12
|
+
|
|
7
13
|
@Field var value: Bool
|
|
8
14
|
@Field var variant: String?
|
|
9
15
|
@Field var label: String?
|
|
@@ -30,6 +36,7 @@ struct SwitchView: ExpoSwiftUI.View {
|
|
|
30
36
|
])
|
|
31
37
|
})
|
|
32
38
|
.tint(props.color)
|
|
39
|
+
.modifier(CommonViewModifiers(props: props))
|
|
33
40
|
.onReceive(props.objectWillChange, perform: {
|
|
34
41
|
checked = props.value
|
|
35
42
|
})
|
|
@@ -16,7 +16,13 @@ enum KeyboardType: String, Enumerable {
|
|
|
16
16
|
case asciiCapableNumberPad = "ascii-capable-number-pad"
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
final class TextFieldProps: ExpoSwiftUI.ViewProps {
|
|
19
|
+
final class TextFieldProps: ExpoSwiftUI.ViewProps, CommonViewModifierProps {
|
|
20
|
+
@Field var fixedSize: Bool?
|
|
21
|
+
@Field var frame: FrameOptions?
|
|
22
|
+
@Field var padding: PaddingOptions?
|
|
23
|
+
@Field var testID: String?
|
|
24
|
+
@Field var modifiers: ModifierArray?
|
|
25
|
+
|
|
20
26
|
@Field var defaultValue: String = ""
|
|
21
27
|
@Field var placeholder: String = ""
|
|
22
28
|
@Field var multiline: Bool = false
|
|
@@ -102,6 +108,7 @@ struct TextFieldView: ExpoSwiftUI.View {
|
|
|
102
108
|
)
|
|
103
109
|
}
|
|
104
110
|
return text.lineLimit((props.multiline && allowMultiLine()) ? props.numberOfLines : 1)
|
|
111
|
+
.modifier(CommonViewModifiers(props: props))
|
|
105
112
|
.fixedSize(horizontal: false, vertical: true)
|
|
106
113
|
.keyboardType(getKeyboardType(props.keyboardType))
|
|
107
114
|
.autocorrectionDisabled(!props.autocorrection)
|
package/ios/TextView.swift
CHANGED
|
@@ -7,13 +7,15 @@ internal final class TextViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierPro
|
|
|
7
7
|
@Field var fixedSize: Bool?
|
|
8
8
|
@Field var frame: FrameOptions?
|
|
9
9
|
@Field var padding: PaddingOptions?
|
|
10
|
+
@Field var testID: String?
|
|
11
|
+
@Field var modifiers: ModifierArray?
|
|
12
|
+
|
|
10
13
|
@Field var text: String = ""
|
|
11
14
|
@Field var weight: String?
|
|
12
15
|
@Field var design: String?
|
|
13
16
|
@Field var size: Double?
|
|
14
17
|
@Field var lineLimit: Int?
|
|
15
18
|
@Field var color: Color?
|
|
16
|
-
@Field var testID: String?
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
internal struct TextView: ExpoSwiftUI.View {
|
package/ios/VStackView.swift
CHANGED
|
@@ -24,11 +24,13 @@ internal final class VStackViewProps: ExpoSwiftUI.ViewProps, CommonViewModifierP
|
|
|
24
24
|
@Field var fixedSize: Bool?
|
|
25
25
|
@Field var frame: FrameOptions?
|
|
26
26
|
@Field var padding: PaddingOptions?
|
|
27
|
+
@Field var testID: String?
|
|
28
|
+
@Field var modifiers: ModifierArray?
|
|
29
|
+
|
|
27
30
|
@Field var spacing: Double?
|
|
28
31
|
@Field var useTapGesture: Bool?
|
|
29
32
|
@Field var alignment: HorizontalAlignmentOptions?
|
|
30
33
|
@Field var backgroundColor: Color?
|
|
31
|
-
@Field var testID: String?
|
|
32
34
|
var onTap = EventDispatcher()
|
|
33
35
|
}
|
|
34
36
|
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
74326687662c24724b38c2a64454fc7d
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
205cb5aac195bc0632e0fe3d9b0842734ffc8c96
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ab99988e09f8bda506deaa7eded3b45bfa56f444c6f55c78d7814cfb6c40918b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b6fd029855da3e7ceb97e20cf9dbcbf73f0b81342a24eb9e1988d7d05734fb038080702280129e643d1acab4b1ca0d9d2147d54f64906f6824659640bcc12b46
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0231f798749c8b1abc3b9d13953e3402
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3a9278051ca06d03eeabfa2b61c325364d1ab534
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b1c1a4d274c028b10bac4f977b1cfb740b2b70099a3d5dda908d8672810ad77c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
384cd29a311455c4ae4cf149d310dcfe14a19327037155ed2d92caaa560f8dddb508848c5d53f4df052616c6a7ea375f7c71c65005b033059cbb2371347cc41c
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.ui",
|
|
5
5
|
"module": "expo.modules.ui",
|
|
6
|
-
"version": "0.2.0-alpha.
|
|
6
|
+
"version": "0.2.0-alpha.2",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.ui-0.2.0-alpha.
|
|
28
|
-
"url": "expo.modules.ui-0.2.0-alpha.
|
|
29
|
-
"size":
|
|
30
|
-
"sha512": "
|
|
31
|
-
"sha256": "
|
|
32
|
-
"sha1": "
|
|
33
|
-
"md5": "
|
|
27
|
+
"name": "expo.modules.ui-0.2.0-alpha.2.aar",
|
|
28
|
+
"url": "expo.modules.ui-0.2.0-alpha.2.aar",
|
|
29
|
+
"size": 290997,
|
|
30
|
+
"sha512": "384cd29a311455c4ae4cf149d310dcfe14a19327037155ed2d92caaa560f8dddb508848c5d53f4df052616c6a7ea375f7c71c65005b033059cbb2371347cc41c",
|
|
31
|
+
"sha256": "b1c1a4d274c028b10bac4f977b1cfb740b2b70099a3d5dda908d8672810ad77c",
|
|
32
|
+
"sha1": "3a9278051ca06d03eeabfa2b61c325364d1ab534",
|
|
33
|
+
"md5": "0231f798749c8b1abc3b9d13953e3402"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
],
|
|
103
103
|
"files": [
|
|
104
104
|
{
|
|
105
|
-
"name": "expo.modules.ui-0.2.0-alpha.
|
|
106
|
-
"url": "expo.modules.ui-0.2.0-alpha.
|
|
107
|
-
"size":
|
|
108
|
-
"sha512": "
|
|
109
|
-
"sha256": "
|
|
110
|
-
"sha1": "
|
|
111
|
-
"md5": "
|
|
105
|
+
"name": "expo.modules.ui-0.2.0-alpha.2.aar",
|
|
106
|
+
"url": "expo.modules.ui-0.2.0-alpha.2.aar",
|
|
107
|
+
"size": 290997,
|
|
108
|
+
"sha512": "384cd29a311455c4ae4cf149d310dcfe14a19327037155ed2d92caaa560f8dddb508848c5d53f4df052616c6a7ea375f7c71c65005b033059cbb2371347cc41c",
|
|
109
|
+
"sha256": "b1c1a4d274c028b10bac4f977b1cfb740b2b70099a3d5dda908d8672810ad77c",
|
|
110
|
+
"sha1": "3a9278051ca06d03eeabfa2b61c325364d1ab534",
|
|
111
|
+
"md5": "0231f798749c8b1abc3b9d13953e3402"
|
|
112
112
|
}
|
|
113
113
|
]
|
|
114
114
|
},
|
|
@@ -122,13 +122,13 @@
|
|
|
122
122
|
},
|
|
123
123
|
"files": [
|
|
124
124
|
{
|
|
125
|
-
"name": "expo.modules.ui-0.2.0-alpha.
|
|
126
|
-
"url": "expo.modules.ui-0.2.0-alpha.
|
|
127
|
-
"size":
|
|
128
|
-
"sha512": "
|
|
129
|
-
"sha256": "
|
|
130
|
-
"sha1": "
|
|
131
|
-
"md5": "
|
|
125
|
+
"name": "expo.modules.ui-0.2.0-alpha.2-sources.jar",
|
|
126
|
+
"url": "expo.modules.ui-0.2.0-alpha.2-sources.jar",
|
|
127
|
+
"size": 18894,
|
|
128
|
+
"sha512": "b6fd029855da3e7ceb97e20cf9dbcbf73f0b81342a24eb9e1988d7d05734fb038080702280129e643d1acab4b1ca0d9d2147d54f64906f6824659640bcc12b46",
|
|
129
|
+
"sha256": "ab99988e09f8bda506deaa7eded3b45bfa56f444c6f55c78d7814cfb6c40918b",
|
|
130
|
+
"sha1": "205cb5aac195bc0632e0fe3d9b0842734ffc8c96",
|
|
131
|
+
"md5": "74326687662c24724b38c2a64454fc7d"
|
|
132
132
|
}
|
|
133
133
|
]
|
|
134
134
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ebd622454b8774b1d8ab9e5e13faef28
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
72cb5c3cd1ca2c656fd9f9c5a82e39e076b998e6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
51b8e44c8de591afb564cca40096f2923a77c03577e8aa204aa187d6dd871aa8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
acd769c1604cc8b0ef715b2f02991e2a52a6157f5c1c101092bcbb9baadb42ffba7963415b68a9716e0274e12cec59481b8436e795f1e7d9ee11af7b3adfa523
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>expo.modules.ui</groupId>
|
|
11
11
|
<artifactId>expo.modules.ui</artifactId>
|
|
12
|
-
<version>0.2.0-alpha.
|
|
12
|
+
<version>0.2.0-alpha.2</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.ui</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
732bab5d7fc9465e34d27e82c59951f5
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
99c4b297650ecd03d9207c8380a537e1e9fea2fd
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1dfbdb4e571d7f6434abdca55138ea887a886e1c8c6df3ab1bedb0a576f02551
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0b1ca33275c23c58e10e53cfdb637b81b1cc07d9daa34d0def0ec3b2d2e4f3cb92688325ecee2c9d9afb45575d71bdf1faaa65d69dca03140004d5f52bedd7f9
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>expo.modules.ui</groupId>
|
|
4
4
|
<artifactId>expo.modules.ui</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>0.2.0-alpha.
|
|
7
|
-
<release>0.2.0-alpha.
|
|
6
|
+
<latest>0.2.0-alpha.2</latest>
|
|
7
|
+
<release>0.2.0-alpha.2</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>0.2.0-alpha.
|
|
9
|
+
<version>0.2.0-alpha.2</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250817001225</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3082b97a312a6469219f32e0f2c16970
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bde0a07c71de9701e97e10a867147fcc518499b5
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a129b569318b20e3395910904ade09331de52525273946c1c751bc77719a0275
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
79754ea6872d61b1a175057bfaf2a4250fe3c2ddf1f0dac39eceba5fd489f6ed2d3c0b7e98b825ebb92081c76624b9f4866db62d6676b1e48528b27147619050
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/ui",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.2",
|
|
4
4
|
"description": "A collection of UI components",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "expo-module build",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/react": "~19.
|
|
30
|
-
"expo-module-scripts": "^5.0.
|
|
29
|
+
"@types/react": "~19.1.10",
|
|
30
|
+
"expo-module-scripts": "^5.0.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"expo": "*",
|
|
34
34
|
"react": "*",
|
|
35
35
|
"react-native": "*"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "eaa9b645058cf2233fbb27bb21a19bc605c90a88"
|
|
38
38
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
2
|
|
|
3
|
+
import { ExpoModifier } from '../../types';
|
|
4
|
+
|
|
3
5
|
export type AlertDialogProps = {
|
|
4
6
|
/**
|
|
5
7
|
* The title of the alert dialog.
|
|
@@ -31,6 +33,9 @@ export type AlertDialogProps = {
|
|
|
31
33
|
* Callback that is called when the user tries to dismiss the dialog.
|
|
32
34
|
*/
|
|
33
35
|
onDismissPressed?: () => void;
|
|
36
|
+
|
|
37
|
+
/** Modifiers for the component */
|
|
38
|
+
modifiers?: ExpoModifier[];
|
|
34
39
|
};
|
|
35
40
|
|
|
36
41
|
export type NativeAlertDialogProps = AlertDialogProps;
|
|
@@ -44,5 +49,11 @@ const AlertDialogNativeView: React.ComponentType<NativeAlertDialogProps> = requi
|
|
|
44
49
|
* Renders an `AlertDialog` component.
|
|
45
50
|
*/
|
|
46
51
|
export function AlertDialog(props: AlertDialogProps) {
|
|
47
|
-
return
|
|
52
|
+
return (
|
|
53
|
+
<AlertDialogNativeView
|
|
54
|
+
{...props}
|
|
55
|
+
// @ts-expect-error
|
|
56
|
+
modifiers={props.modifiers?.map((m) => m.__expo_shared_object_id__)}
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
48
59
|
}
|
|
@@ -2,7 +2,7 @@ import { requireNativeView } from 'expo';
|
|
|
2
2
|
import { StyleProp, StyleSheet, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { MaterialIcon } from './types';
|
|
5
|
-
import { ViewEvent } from '../../types';
|
|
5
|
+
import { ExpoModifier, ViewEvent } from '../../types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The built-in button styles available on Android.
|
|
@@ -56,6 +56,9 @@ export type ButtonProps = {
|
|
|
56
56
|
* Disabled state of the button.
|
|
57
57
|
*/
|
|
58
58
|
disabled?: boolean;
|
|
59
|
+
|
|
60
|
+
/** Modifiers for the component */
|
|
61
|
+
modifiers?: ExpoModifier[];
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
/**
|
|
@@ -85,6 +88,8 @@ export function transformButtonProps(props: ButtonProps): NativeButtonProps {
|
|
|
85
88
|
text: children ?? '',
|
|
86
89
|
systemImage,
|
|
87
90
|
onButtonPressed: onPress,
|
|
91
|
+
// @ts-expect-error
|
|
92
|
+
modifiers: props.modifiers?.map((m) => m.__expo_shared_object_id__),
|
|
88
93
|
elementColors: props.elementColors
|
|
89
94
|
? props.elementColors
|
|
90
95
|
: props.color
|
|
@@ -3,6 +3,7 @@ import { Children, ReactElement, ReactNode, useMemo } from 'react';
|
|
|
3
3
|
import { NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { MenuElement, transformChildrenToElementArray } from './utils';
|
|
6
|
+
import { ExpoModifier } from '../../types';
|
|
6
7
|
import { ButtonProps } from '../Button';
|
|
7
8
|
import { PickerProps } from '../Picker';
|
|
8
9
|
import { SwitchProps } from '../Switch';
|
|
@@ -70,6 +71,9 @@ export type ContextMenuProps = {
|
|
|
70
71
|
* Optional styles to apply to the `ContextMenu`.
|
|
71
72
|
*/
|
|
72
73
|
style?: StyleProp<ViewStyle>;
|
|
74
|
+
|
|
75
|
+
/** Modifiers for the component */
|
|
76
|
+
modifiers?: ExpoModifier[];
|
|
73
77
|
};
|
|
74
78
|
|
|
75
79
|
/**
|
|
@@ -158,6 +162,8 @@ function ContextMenu(props: ContextMenuProps) {
|
|
|
158
162
|
onContextMenuButtonPressed={createEventHandler('onPress')}
|
|
159
163
|
onContextMenuSwitchValueChanged={createEventHandler('onValueChange')}
|
|
160
164
|
onContextMenuPickerOptionSelected={createEventHandler('onOptionSelected')}
|
|
165
|
+
// @ts-expect-error
|
|
166
|
+
modifiers={props.modifiers?.map((m) => m.__expo_shared_object_id__)}
|
|
161
167
|
{...props}>
|
|
162
168
|
{activationElement}
|
|
163
169
|
</MenuNativeView>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
2
|
import { StyleProp, ViewStyle, StyleSheet, PixelRatio } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { ViewEvent } from '../../types';
|
|
4
|
+
import { ExpoModifier, ViewEvent } from '../../types';
|
|
5
5
|
|
|
6
6
|
export type AndroidVariant = 'picker' | 'input';
|
|
7
7
|
|
|
@@ -47,6 +47,8 @@ export type DateTimePickerProps = {
|
|
|
47
47
|
* @default true
|
|
48
48
|
*/
|
|
49
49
|
is24Hour?: boolean;
|
|
50
|
+
/** Modifiers for the component */
|
|
51
|
+
modifiers?: ExpoModifier[];
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
type NativeDatePickerProps = Omit<DateTimePickerProps, 'variant' | 'onDateSelected'> & {
|
|
@@ -74,6 +76,8 @@ export function transformDateTimePickerProps(props: DateTimePickerProps): Native
|
|
|
74
76
|
props?.onDateSelected?.(new Date(date));
|
|
75
77
|
},
|
|
76
78
|
variant,
|
|
79
|
+
// @ts-expect-error
|
|
80
|
+
modifiers: props.modifiers?.map((m) => m.__expo_shared_object_id__),
|
|
77
81
|
style: [restStyle, { minWidth: parsedMinWidth, minHeight: parsedMinHeight }],
|
|
78
82
|
};
|
|
79
83
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { ExpoModifier } from '../../types';
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* Colors for picker's core elements.
|
|
6
8
|
*/
|
|
@@ -51,6 +53,10 @@ export type PickerProps = {
|
|
|
51
53
|
* Picker color.
|
|
52
54
|
*/
|
|
53
55
|
color?: string;
|
|
56
|
+
/** Modifiers for the component */
|
|
57
|
+
modifiers?: ExpoModifier[];
|
|
58
|
+
/** Modifiers for the individual buttons */
|
|
59
|
+
buttonModifiers?: ExpoModifier[];
|
|
54
60
|
};
|
|
55
61
|
|
|
56
62
|
const PickerNativeView: React.ComponentType<PickerProps> = requireNativeView(
|
|
@@ -75,6 +81,10 @@ export function transformPickerProps(props: PickerProps): NativePickerProps {
|
|
|
75
81
|
}
|
|
76
82
|
: undefined,
|
|
77
83
|
color: props.color,
|
|
84
|
+
// @ts-expect-error
|
|
85
|
+
modifiers: props.modifiers?.map((m) => m.__expo_shared_object_id__),
|
|
86
|
+
// @ts-expect-error
|
|
87
|
+
buttonModifiers: props.buttonModifiers?.map((m) => m.__expo_shared_object_id__),
|
|
78
88
|
};
|
|
79
89
|
}
|
|
80
90
|
|