@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
2
2
|
export type ShareLinkProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The URL or item to be shared.
|
|
@@ -27,12 +27,7 @@ export type ShareLinkProps = {
|
|
|
27
27
|
* Optional children to be rendered inside the share link.
|
|
28
28
|
*/
|
|
29
29
|
children?: React.ReactNode;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* `<ShareLink>` component without a host view.
|
|
33
|
-
* You should use this with a `Host` component in ancestor.
|
|
34
|
-
*/
|
|
35
|
-
export declare function ShareLinkPrimitive(props: ShareLinkProps): import("react").JSX.Element;
|
|
30
|
+
} & CommonViewModifierProps;
|
|
36
31
|
/**
|
|
37
32
|
* Renders the native ShareLink component with the provided properties.
|
|
38
33
|
*
|
|
@@ -40,7 +35,5 @@ export declare function ShareLinkPrimitive(props: ShareLinkProps): import("react
|
|
|
40
35
|
* @returns {JSX.Element} The rendered native ShareLink component.
|
|
41
36
|
* @platform ios
|
|
42
37
|
*/
|
|
43
|
-
export declare function ShareLink(props: ShareLinkProps
|
|
44
|
-
style?: StyleProp<ViewStyle>;
|
|
45
|
-
}): import("react").JSX.Element;
|
|
38
|
+
export declare function ShareLink(props: ShareLinkProps): import("react").JSX.Element;
|
|
46
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ShareLink/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ShareLink/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,uBAAuB,CAAC;AAO5B;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAS9C"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
-
import {
|
|
2
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
3
3
|
const ShareLinkNativeView = requireNativeView('ExpoUI', 'ShareLinkView');
|
|
4
|
-
/**
|
|
5
|
-
* `<ShareLink>` component without a host view.
|
|
6
|
-
* You should use this with a `Host` component in ancestor.
|
|
7
|
-
*/
|
|
8
|
-
export function ShareLinkPrimitive(props) {
|
|
9
|
-
return <ShareLinkNativeView {...props}/>;
|
|
10
|
-
}
|
|
11
4
|
/**
|
|
12
5
|
* Renders the native ShareLink component with the provided properties.
|
|
13
6
|
*
|
|
@@ -16,8 +9,7 @@ export function ShareLinkPrimitive(props) {
|
|
|
16
9
|
* @platform ios
|
|
17
10
|
*/
|
|
18
11
|
export function ShareLink(props) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</Host>);
|
|
12
|
+
const { modifiers, ...restProps } = props;
|
|
13
|
+
return (<ShareLinkNativeView modifiers={modifiers} {...(modifiers ? createViewModifierEventListener(modifiers) : undefined)} {...restProps}/>);
|
|
22
14
|
}
|
|
23
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/ShareLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/ShareLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AA8BrE,MAAM,mBAAmB,GAAwC,iBAAiB,CAChF,QAAQ,EACR,eAAe,CAChB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAC1C,OAAO,CACL,CAAC,mBAAmB,CAClB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CACzE,IAAI,SAAS,CAAC,EACd,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\n\nimport { createViewModifierEventListener } from '../modifiers/utils';\nimport { type CommonViewModifierProps } from '../types';\n\nexport type ShareLinkProps = {\n /**\n * The URL or item to be shared.\n * This can be a web URL, a file path, or any other shareable item.\n */\n item: string;\n /**\n * Optional subject for the share action.\n * This is typically used as the title of the shared content.\n */\n subject?: string;\n /**\n * Optional message for the share action.\n * This is typically used as a description or additional information about the shared content.\n */\n message?: string;\n /**\n * Optional preview for the share action.\n * This can include a title and an image to be displayed in the share dialog.\n */\n preview?: { title: string; image: string };\n /**\n * Optional children to be rendered inside the share link.\n */\n children?: React.ReactNode;\n} & CommonViewModifierProps;\n\nconst ShareLinkNativeView: React.ComponentType<ShareLinkProps> = requireNativeView(\n 'ExpoUI',\n 'ShareLinkView'\n);\n\n/**\n * Renders the native ShareLink component with the provided properties.\n *\n * @param {ShareLinkProps} props - The properties passed to the ShareLink component.\n * @returns {JSX.Element} The rendered native ShareLink component.\n * @platform ios\n */\nexport function ShareLink(props: ShareLinkProps) {\n const { modifiers, ...restProps } = props;\n return (\n <ShareLinkNativeView\n modifiers={modifiers}\n {...(modifiers ? createViewModifierEventListener(modifiers) : undefined)}\n {...restProps}\n />\n );\n}\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ViewEvent } from '../../types';
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
3
2
|
export type SliderProps = {
|
|
4
3
|
/**
|
|
5
4
|
* The current value of the slider.
|
|
@@ -29,17 +28,6 @@ export type SliderProps = {
|
|
|
29
28
|
* Callback triggered on dragging along the slider.
|
|
30
29
|
*/
|
|
31
30
|
onValueChange?: (value: number) => void;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
value: number;
|
|
35
|
-
}>;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export declare function transformSliderProps(props: SliderProps): NativeSliderProps;
|
|
40
|
-
export declare function SliderPrimitive(props: SliderProps): import("react").JSX.Element;
|
|
41
|
-
export declare function Slider(props: SliderProps & {
|
|
42
|
-
style?: StyleProp<ViewStyle>;
|
|
43
|
-
}): import("react").JSX.Element;
|
|
44
|
-
export {};
|
|
31
|
+
} & CommonViewModifierProps;
|
|
32
|
+
export declare function Slider(props: SliderProps): import("react").JSX.Element;
|
|
45
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Slider/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Slider/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,GAAG,uBAAuB,CAAC;AA2B5B,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
-
import {
|
|
2
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
3
3
|
const SliderNativeView = requireNativeView('ExpoUI', 'SliderView');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export function transformSliderProps(props) {
|
|
4
|
+
function transformSliderProps(props) {
|
|
5
|
+
const { modifiers, ...restProps } = props;
|
|
8
6
|
return {
|
|
9
|
-
|
|
7
|
+
modifiers,
|
|
8
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
9
|
+
...restProps,
|
|
10
10
|
min: props.min ?? 0,
|
|
11
11
|
max: props.max ?? 1,
|
|
12
12
|
steps: props.steps ?? 0,
|
|
@@ -17,12 +17,7 @@ export function transformSliderProps(props) {
|
|
|
17
17
|
color: props.color,
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
export function SliderPrimitive(props) {
|
|
21
|
-
return <SliderNativeView {...transformSliderProps(props)}/>;
|
|
22
|
-
}
|
|
23
20
|
export function Slider(props) {
|
|
24
|
-
return
|
|
25
|
-
<SliderPrimitive {...props}/>
|
|
26
|
-
</Host>);
|
|
21
|
+
return <SliderNativeView {...transformSliderProps(props)}/>;
|
|
27
22
|
}
|
|
28
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/Slider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/Slider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAGzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAqCrE,MAAM,gBAAgB,GAA2C,iBAAiB,CAChF,QAAQ,EACR,YAAY,CACb,CAAC;AAEF,SAAS,oBAAoB,CAAC,KAAkB;IAC9C,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAC1C,OAAO;QACL,SAAS;QACT,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACvE,GAAG,SAAS;QACZ,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC;QACnB,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC;QACnB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;QACvB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;QACvB,cAAc,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC7C,KAAK,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QACD,KAAK,EAAE,KAAK,CAAC,KAAK;KACnB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,KAAkB;IACvC,OAAO,CAAC,gBAAgB,CAAC,IAAI,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAAG,CAAC;AAC/D,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\n\nimport { type ViewEvent } from '../../types';\nimport { createViewModifierEventListener } from '../modifiers/utils';\nimport { type CommonViewModifierProps } from '../types';\n\nexport type SliderProps = {\n /**\n * The current value of the slider.\n * @default 0\n */\n value?: number;\n /**\n * The number of steps between the minimum and maximum values, `0` signifies infinite steps.\n * @default 0\n */\n steps?: number;\n /**\n * The minimum value of the slider. Updating this value does not trigger callbacks if the current value is below `min`.\n * @default 0\n */\n min?: number;\n /**\n * The maximum value of the slider. Updating this value does not trigger callbacks if the current value is above `max`.\n * @default 1\n */\n max?: number;\n /**\n * Slider color.\n */\n color?: string;\n /**\n * Callback triggered on dragging along the slider.\n */\n onValueChange?: (value: number) => void;\n} & CommonViewModifierProps;\n\ntype NativeSliderProps = Omit<SliderProps, 'onValueChange'> &\n ViewEvent<'onValueChanged', { value: number }>;\n\nconst SliderNativeView: React.ComponentType<NativeSliderProps> = requireNativeView(\n 'ExpoUI',\n 'SliderView'\n);\n\nfunction transformSliderProps(props: SliderProps): NativeSliderProps {\n const { modifiers, ...restProps } = props;\n return {\n modifiers,\n ...(modifiers ? createViewModifierEventListener(modifiers) : undefined),\n ...restProps,\n min: props.min ?? 0,\n max: props.max ?? 1,\n steps: props.steps ?? 0,\n value: props.value ?? 0,\n onValueChanged: ({ nativeEvent: { value } }) => {\n props?.onValueChange?.(value);\n },\n color: props.color,\n };\n}\n\nexport function Slider(props: SliderProps) {\n return <SliderNativeView {...transformSliderProps(props)} />;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CommonViewModifierProps } from '
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
2
2
|
export interface SpacerProps extends CommonViewModifierProps {
|
|
3
3
|
/**
|
|
4
4
|
* The minimum length of the spacer.
|
|
@@ -7,4 +7,4 @@ export interface SpacerProps extends CommonViewModifierProps {
|
|
|
7
7
|
minLength?: number;
|
|
8
8
|
}
|
|
9
9
|
export declare function Spacer(props: SpacerProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Spacer/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,WAAY,SAAQ,uBAAuB;IAC1D;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { requireNativeView } from 'expo';
|
|
2
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
3
|
+
const SpacerNativeView = requireNativeView('ExpoUI', 'SpacerView');
|
|
4
|
+
function transformSpacerProps(props) {
|
|
5
|
+
const { modifiers, ...restProps } = props;
|
|
6
|
+
return {
|
|
7
|
+
modifiers,
|
|
8
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
9
|
+
...restProps,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function Spacer(props) {
|
|
13
|
+
return <SpacerNativeView {...transformSpacerProps(props)}/>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/Spacer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAarE,MAAM,gBAAgB,GAA2C,iBAAiB,CAChF,QAAQ,EACR,YAAY,CACb,CAAC;AAEF,SAAS,oBAAoB,CAAC,KAAkB;IAC9C,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAC1C,OAAO;QACL,SAAS;QACT,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACvE,GAAG,SAAS;KACb,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,KAAkB;IACvC,OAAO,CAAC,gBAAgB,CAAC,IAAI,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAAG,CAAC;AAC/D,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\n\nimport { createViewModifierEventListener } from '../modifiers/utils';\nimport { type CommonViewModifierProps } from '../types';\n\nexport interface SpacerProps extends CommonViewModifierProps {\n /**\n * The minimum length of the spacer.\n * This is the minimum amount of space that the spacer will take up.\n */\n minLength?: number;\n}\n\ntype NativeSpacerProps = SpacerProps;\n\nconst SpacerNativeView: React.ComponentType<NativeSpacerProps> = requireNativeView(\n 'ExpoUI',\n 'SpacerView'\n);\n\nfunction transformSpacerProps(props: SpacerProps): NativeSpacerProps {\n const { modifiers, ...restProps } = props;\n return {\n modifiers,\n ...(modifiers ? createViewModifierEventListener(modifiers) : undefined),\n ...restProps,\n };\n}\n\nexport function Spacer(props: SpacerProps) {\n return <SpacerNativeView {...transformSpacerProps(props)} />;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
2
2
|
export type SwitchProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Indicates whether the switch is checked.
|
|
@@ -21,7 +21,7 @@ export type SwitchProps = {
|
|
|
21
21
|
* Picker color. On iOS, it only applies to the `menu` variant.
|
|
22
22
|
*/
|
|
23
23
|
color?: string;
|
|
24
|
-
} & (SwitchSwitchVariantProps | SwitchCheckboxVariantProps | SwitchButtonVariantProps);
|
|
24
|
+
} & (SwitchSwitchVariantProps | SwitchCheckboxVariantProps | SwitchButtonVariantProps) & CommonViewModifierProps;
|
|
25
25
|
export type SwitchSwitchVariantProps = {
|
|
26
26
|
variant?: 'switch';
|
|
27
27
|
};
|
|
@@ -32,25 +32,8 @@ export type SwitchButtonVariantProps = {
|
|
|
32
32
|
variant: 'button';
|
|
33
33
|
elementColors?: undefined;
|
|
34
34
|
};
|
|
35
|
-
type NativeSwitchProps = Omit<SwitchProps, 'onValueChange'> & {
|
|
36
|
-
onValueChange: (event: NativeSyntheticEvent<{
|
|
37
|
-
value: boolean;
|
|
38
|
-
}>) => void;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export declare function transformSwitchProps(props: SwitchProps): NativeSwitchProps;
|
|
44
|
-
/**
|
|
45
|
-
* `<Switch>` component without a host view.
|
|
46
|
-
* You should use this with a `Host` component in ancestor.
|
|
47
|
-
*/
|
|
48
|
-
export declare function SwitchPrimitive(props: SwitchProps): import("react").JSX.Element;
|
|
49
35
|
/**
|
|
50
36
|
* Displays a native switch component.
|
|
51
37
|
*/
|
|
52
|
-
export declare function Switch(props: SwitchProps
|
|
53
|
-
style?: StyleProp<ViewStyle>;
|
|
54
|
-
}): import("react").JSX.Element;
|
|
55
|
-
export {};
|
|
38
|
+
export declare function Switch(props: SwitchProps): import("react").JSX.Element;
|
|
56
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Switch/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Switch/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,CAAC,wBAAwB,GAAG,0BAA0B,GAAG,wBAAwB,CAAC,GACpF,uBAAuB,CAAC;AAE1B,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAyBF;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAExC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
-
import {
|
|
2
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
3
3
|
const SwitchNativeView = requireNativeView('ExpoUI', 'SwitchView');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export function transformSwitchProps(props) {
|
|
4
|
+
function transformSwitchProps(props) {
|
|
5
|
+
const { modifiers, ...restProps } = props;
|
|
8
6
|
return {
|
|
9
|
-
|
|
7
|
+
modifiers,
|
|
8
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
9
|
+
...restProps,
|
|
10
10
|
variant: props.variant ?? 'switch',
|
|
11
11
|
color: props.color,
|
|
12
12
|
onValueChange: ({ nativeEvent: { value } }) => {
|
|
@@ -14,19 +14,10 @@ export function transformSwitchProps(props) {
|
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
* `<Switch>` component without a host view.
|
|
19
|
-
* You should use this with a `Host` component in ancestor.
|
|
20
|
-
*/
|
|
21
|
-
export function SwitchPrimitive(props) {
|
|
22
|
-
return <SwitchNativeView {...transformSwitchProps(props)}/>;
|
|
23
|
-
}
|
|
24
17
|
/**
|
|
25
18
|
* Displays a native switch component.
|
|
26
19
|
*/
|
|
27
20
|
export function Switch(props) {
|
|
28
|
-
return
|
|
29
|
-
<SwitchPrimitive {...props}/>
|
|
30
|
-
</Host>);
|
|
21
|
+
return <SwitchNativeView {...transformSwitchProps(props)}/>;
|
|
31
22
|
}
|
|
32
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAGzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAGzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AA8CrE,MAAM,gBAAgB,GAA2C,iBAAiB,CAChF,QAAQ,EACR,YAAY,CACb,CAAC;AAEF,SAAS,oBAAoB,CAAC,KAAkB;IAC9C,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAC1C,OAAO;QACL,SAAS;QACT,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACvE,GAAG,SAAS;QACZ,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,QAAQ;QAClC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,aAAa,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC5C,KAAK,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;KACmB,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,KAAkB;IACvC,OAAO,CAAC,gBAAgB,CAAC,IAAI,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAAG,CAAC;AAC/D,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\nimport { NativeSyntheticEvent } from 'react-native';\n\nimport { createViewModifierEventListener } from '../modifiers/utils';\nimport { type CommonViewModifierProps } from '../types';\n\nexport type SwitchProps = {\n /**\n * Indicates whether the switch is checked.\n */\n value: boolean;\n /**\n * Label for the switch.\n */\n label?: string;\n\n /**\n * Type of the switch component. Can be `'checkbox'`, `'switch'`, or `'button'`.\n * @default 'switch'\n */\n variant?: 'checkbox' | 'switch' | 'button';\n /**\n * Callback function that is called when the checked state changes.\n */\n onValueChange?: (value: boolean) => void;\n /**\n * Picker color. On iOS, it only applies to the `menu` variant.\n */\n color?: string;\n} & (SwitchSwitchVariantProps | SwitchCheckboxVariantProps | SwitchButtonVariantProps) &\n CommonViewModifierProps;\n\nexport type SwitchSwitchVariantProps = {\n variant?: 'switch';\n};\n\nexport type SwitchCheckboxVariantProps = {\n variant: 'checkbox';\n};\n\nexport type SwitchButtonVariantProps = {\n variant: 'button';\n elementColors?: undefined;\n};\n\ntype NativeSwitchProps = Omit<SwitchProps, 'onValueChange'> & {\n onValueChange: (event: NativeSyntheticEvent<{ value: boolean }>) => void;\n};\n\nconst SwitchNativeView: React.ComponentType<NativeSwitchProps> = requireNativeView(\n 'ExpoUI',\n 'SwitchView'\n);\n\nfunction transformSwitchProps(props: SwitchProps): NativeSwitchProps {\n const { modifiers, ...restProps } = props;\n return {\n modifiers,\n ...(modifiers ? createViewModifierEventListener(modifiers) : undefined),\n ...restProps,\n variant: props.variant ?? 'switch',\n color: props.color,\n onValueChange: ({ nativeEvent: { value } }) => {\n props?.onValueChange?.(value);\n },\n } as NativeSwitchProps;\n}\n\n/**\n * Displays a native switch component.\n */\nexport function Switch(props: SwitchProps) {\n return <SwitchNativeView {...transformSwitchProps(props)} />;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CommonViewModifierProps } from '
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
2
2
|
export interface TextProps extends CommonViewModifierProps {
|
|
3
3
|
children: string;
|
|
4
4
|
/**
|
|
@@ -25,4 +25,4 @@ export interface TextProps extends CommonViewModifierProps {
|
|
|
25
25
|
color?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare function Text(props: TextProps): import("react").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Text/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,SAAU,SAAQ,uBAAuB;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EACH,YAAY,GACZ,MAAM,GACN,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,CAAC;IACZ;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;IACxD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAoBD,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,+BAEpC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
2
3
|
const TextNativeView = requireNativeView('ExpoUI', 'TextView');
|
|
3
4
|
function transformTextProps(props) {
|
|
4
|
-
const { children, ...restProps } = props;
|
|
5
|
+
const { children, modifiers, ...restProps } = props;
|
|
5
6
|
return {
|
|
7
|
+
modifiers,
|
|
8
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
6
9
|
...restProps,
|
|
7
10
|
text: children ?? '',
|
|
8
11
|
};
|
|
@@ -10,4 +13,4 @@ function transformTextProps(props) {
|
|
|
10
13
|
export function Text(props) {
|
|
11
14
|
return <TextNativeView {...transformTextProps(props)}/>;
|
|
12
15
|
}
|
|
13
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AA0CrE,MAAM,cAAc,GAClB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAE1C,SAAS,kBAAkB,CAAC,KAAgB;IAC1C,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEpD,OAAO;QACL,SAAS;QACT,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACvE,GAAG,SAAS;QACZ,IAAI,EAAE,QAAQ,IAAI,EAAE;KACrB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,KAAgB;IACnC,OAAO,CAAC,cAAc,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAC,EAAG,CAAC;AAC3D,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\n\nimport { createViewModifierEventListener } from '../modifiers/utils';\nimport { type CommonViewModifierProps } from '../types';\n\nexport interface TextProps extends CommonViewModifierProps {\n children: string;\n /**\n * The font weight of the text.\n * Maps to iOS system font weights.\n */\n weight?:\n | 'ultraLight'\n | 'thin'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold'\n | 'heavy'\n | 'black';\n /**\n * The font design of the text.\n * Maps to iOS system font designs.\n */\n design?: 'default' | 'rounded' | 'serif' | 'monospaced';\n /**\n * The font size of the text.\n */\n size?: number;\n /**\n * The line limit of the text.\n */\n lineLimit?: number;\n /**\n * The color of the text.\n */\n color?: string;\n}\n\ntype NativeTextProps = Omit<TextProps, 'children'> & {\n text: string;\n};\n\nconst TextNativeView: React.ComponentType<Omit<TextProps, 'children'> & { text: string }> =\n requireNativeView('ExpoUI', 'TextView');\n\nfunction transformTextProps(props: TextProps): NativeTextProps {\n const { children, modifiers, ...restProps } = props;\n\n return {\n modifiers,\n ...(modifiers ? createViewModifierEventListener(modifiers) : undefined),\n ...restProps,\n text: children ?? '',\n };\n}\n\nexport function Text(props: TextProps) {\n return <TextNativeView {...transformTextProps(props)} />;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { type ViewEvent } from '../../types';
|
|
3
|
+
import { type CommonViewModifierProps } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* Determines which keyboard to open. For example, `'numeric'`.
|
|
6
6
|
*
|
|
@@ -59,19 +59,12 @@ export type TextFieldProps = {
|
|
|
59
59
|
* @default true
|
|
60
60
|
*/
|
|
61
61
|
autocorrection?: boolean;
|
|
62
|
-
};
|
|
62
|
+
} & CommonViewModifierProps;
|
|
63
63
|
export type NativeTextFieldProps = Omit<TextFieldProps, 'onChangeText'> & {} & ViewEvent<'onValueChanged', {
|
|
64
64
|
value: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
67
67
|
* Renders a `TextField` component. Should mostly be used for embedding text inputs inside of SwiftUI lists and sections. Is an uncontrolled component.
|
|
68
68
|
*/
|
|
69
|
-
export declare function TextField(props: TextFieldProps
|
|
70
|
-
style?: StyleProp<ViewStyle>;
|
|
71
|
-
}): import("react").JSX.Element;
|
|
72
|
-
/**
|
|
73
|
-
* `<TextField>` component without a host view.
|
|
74
|
-
* You should use this with a `Host` component in ancestor.
|
|
75
|
-
*/
|
|
76
|
-
export declare function TextFieldPrimitive(props: TextFieldProps): import("react").JSX.Element;
|
|
69
|
+
export declare function TextField(props: TextFieldProps): import("react").JSX.Element;
|
|
77
70
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/TextField/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/TextField/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,eAAe,GACf,SAAS,GACT,WAAW,GACX,eAAe,GACf,yBAAyB,GACzB,KAAK,GACL,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,YAAY,GACZ,0BAA0B,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,uBAAuB,CAAC;AAE5B,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,SAAS,CACpF,gBAAgB,EAChB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAClB,CAAC;AAoBJ;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAE9C"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
-
import {
|
|
2
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
3
3
|
// We have to work around the `role` and `onPress` props being reserved by React Native.
|
|
4
4
|
const TextFieldNativeView = requireNativeView('ExpoUI', 'TextFieldView');
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
5
|
function transformTextFieldProps(props) {
|
|
6
|
+
const { modifiers, ...restProps } = props;
|
|
9
7
|
return {
|
|
10
|
-
|
|
8
|
+
modifiers,
|
|
9
|
+
...(modifiers ? createViewModifierEventListener(modifiers) : undefined),
|
|
10
|
+
...restProps,
|
|
11
11
|
onValueChanged: (event) => {
|
|
12
12
|
props.onChangeText?.(event.nativeEvent.value);
|
|
13
13
|
},
|
|
@@ -17,15 +17,6 @@ function transformTextFieldProps(props) {
|
|
|
17
17
|
* Renders a `TextField` component. Should mostly be used for embedding text inputs inside of SwiftUI lists and sections. Is an uncontrolled component.
|
|
18
18
|
*/
|
|
19
19
|
export function TextField(props) {
|
|
20
|
-
return (<Host style={props.style} matchContents>
|
|
21
|
-
<TextFieldPrimitive {...props}/>
|
|
22
|
-
</Host>);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* `<TextField>` component without a host view.
|
|
26
|
-
* You should use this with a `Host` component in ancestor.
|
|
27
|
-
*/
|
|
28
|
-
export function TextFieldPrimitive(props) {
|
|
29
20
|
return <TextFieldNativeView {...transformTextFieldProps(props)}/>;
|
|
30
21
|
}
|
|
31
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/TextField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/swift-ui/TextField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAIzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAmFrE,wFAAwF;AACxF,MAAM,mBAAmB,GAA8C,iBAAiB,CACtF,QAAQ,EACR,eAAe,CAChB,CAAC;AAEF,SAAS,uBAAuB,CAAC,KAAqB;IACpD,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAC1C,OAAO;QACL,SAAS;QACT,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACvE,GAAG,SAAS;QACZ,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE;YACxB,KAAK,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAChD,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,OAAO,CAAC,mBAAmB,CAAC,IAAI,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAG,CAAC;AACrE,CAAC","sourcesContent":["import { requireNativeView } from 'expo';\nimport { Ref } from 'react';\n\nimport { type ViewEvent } from '../../types';\nimport { createViewModifierEventListener } from '../modifiers/utils';\nimport { type CommonViewModifierProps } from '../types';\n\n/**\n * Determines which keyboard to open. For example, `'numeric'`.\n *\n * Available options:\n * - default\n * - numeric\n * - email-address\n * - phone-pad\n * - decimal-pad\n * - ascii-capable\n * - url\n * - numbers-and-punctuation\n * - name-phone-pad\n * - twitter\n * - web-search\n * - ascii-capable-number-pad\n *\n * @default default\n */\nexport type TextFieldKeyboardType =\n | 'default'\n | 'email-address'\n | 'numeric'\n | 'phone-pad'\n | 'ascii-capable'\n | 'numbers-and-punctuation'\n | 'url'\n | 'name-phone-pad'\n | 'decimal-pad'\n | 'twitter'\n | 'web-search'\n | 'ascii-capable-number-pad';\n\n/**\n * Can be used for imperatively setting text on the TextField component.\n */\nexport type TextFieldRef = {\n setText: (newText: string) => Promise<void>;\n};\n\nexport type TextFieldProps = {\n ref?: Ref<TextFieldRef>;\n /**\n * Initial value that the TextField displays when being mounted. As the TextField is an uncontrolled component, change the key prop if you need to change the text value.\n */\n defaultValue?: string;\n /**\n * A text that is displayed when the field is empty.\n */\n placeholder?: string;\n /**\n * A callback triggered when user types in text into the TextField.\n */\n onChangeText: (value: string) => void;\n /**\n * If true, the text input can be multiple lines.\n * While the content will wrap, there's no keyboard button to insert a new line.\n */\n multiline?: boolean;\n allowNewlines?: boolean;\n /**\n * The number of lines to display when `multiline` is set to true.\n * If the number of lines in the view is above this number, the view scrolls.\n * @default undefined, which means unlimited lines.\n */\n numberOfLines?: number;\n\n keyboardType?: TextFieldKeyboardType;\n /**\n * If true, autocorrection is enabled.\n * @default true\n */\n autocorrection?: boolean;\n} & CommonViewModifierProps;\n\nexport type NativeTextFieldProps = Omit<TextFieldProps, 'onChangeText'> & {} & ViewEvent<\n 'onValueChanged',\n { value: string }\n >;\n\n// We have to work around the `role` and `onPress` props being reserved by React Native.\nconst TextFieldNativeView: React.ComponentType<NativeTextFieldProps> = requireNativeView(\n 'ExpoUI',\n 'TextFieldView'\n);\n\nfunction transformTextFieldProps(props: TextFieldProps): NativeTextFieldProps {\n const { modifiers, ...restProps } = props;\n return {\n modifiers,\n ...(modifiers ? createViewModifierEventListener(modifiers) : undefined),\n ...restProps,\n onValueChanged: (event) => {\n props.onChangeText?.(event.nativeEvent.value);\n },\n };\n}\n\n/**\n * Renders a `TextField` component. Should mostly be used for embedding text inputs inside of SwiftUI lists and sections. Is an uncontrolled component.\n */\nexport function TextField(props: TextFieldProps) {\n return <TextFieldNativeView {...transformTextFieldProps(props)} />;\n}\n"]}
|
|
@@ -1,18 +1,25 @@
|
|
|
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';
|
|
18
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
package/build/swift-ui/index.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
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';
|
|
18
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC","sourcesContent":["export * from './BottomSheet';\nexport * from './Button';\nexport * from './ColorPicker';\nexport * from './ContextMenu';\nexport * from './DatePicker';\nexport * from './Gauge';\nexport * from './Host';\nexport * from './Label';\nexport * from './List';\nexport * from './Picker';\nexport * from './Progress';\nexport * from './Section';\nexport * from './ShareLink';\nexport * from './Slider';\nexport * from './Switch';\nexport * from './TextField';\nexport * from './SecureField';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC","sourcesContent":["export * from './BottomSheet';\nexport * from './Button';\nexport * from './ColorPicker';\nexport * from './ContentUnavailableView';\nexport * from './ContextMenu';\nexport * from './DatePicker';\nexport * from './DisclosureGroup';\nexport * from './Form';\nexport * from './Gauge';\nexport * from './Host';\nexport * from './Image';\nexport * from './Label';\nexport * from './Layout';\nexport * from './List';\nexport * from './Picker';\nexport * from './Progress';\nexport * from './Section';\nexport * from './ShareLink';\nexport * from './Slider';\nexport * from './Spacer';\nexport * from './Switch';\nexport * from './Text';\nexport * from './TextField';\nexport * from './SecureField';\n"]}
|