@expo/ui 58.0.27 → 58.0.28
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 +16 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +9 -0
- package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +4 -0
- package/android/src/main/java/expo/modules/ui/RangeSliderView.kt +126 -0
- package/android/src/main/java/expo/modules/ui/ScrollDismissesKeyboard.kt +46 -0
- package/android/src/main/java/expo/modules/ui/SliderView.kt +31 -7
- package/android/src/main/java/expo/modules/ui/VerticalSliderView.kt +1 -8
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuPopup.kt +4 -0
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +21 -0
- package/build/jetpack-compose/DropdownMenu/index.d.ts +7 -0
- package/build/jetpack-compose/DropdownMenu/index.js.map +1 -1
- package/build/jetpack-compose/RangeSlider/index.d.ts +78 -0
- package/build/jetpack-compose/RangeSlider/index.js +51 -0
- package/build/jetpack-compose/RangeSlider/index.js.map +1 -0
- package/build/jetpack-compose/Slider/index.d.ts +15 -0
- package/build/jetpack-compose/Slider/index.js.map +1 -1
- package/build/jetpack-compose/index.d.ts +1 -0
- package/build/jetpack-compose/index.js +1 -0
- package/build/jetpack-compose/index.js.map +1 -1
- package/build/jetpack-compose/modifiers/index.d.ts +12 -0
- package/build/jetpack-compose/modifiers/index.js +11 -0
- package/build/jetpack-compose/modifiers/index.js.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +18 -3
- package/build/swift-ui/modifiers/index.js +18 -2
- package/build/swift-ui/modifiers/index.js.map +1 -1
- package/build/swift-ui/modifiers/symbolEffect.d.ts +49 -6
- package/build/swift-ui/modifiers/symbolEffect.js +1 -28
- package/build/swift-ui/modifiers/symbolEffect.js.map +1 -1
- package/build/swift-ui/modifiers/symbolEffectOptions.d.ts +22 -0
- package/build/swift-ui/modifiers/symbolEffectOptions.js +30 -0
- package/build/swift-ui/modifiers/symbolEffectOptions.js.map +1 -0
- package/build/universal/Picker/Picker.android.d.ts +1 -1
- package/build/universal/Picker/Picker.android.js +8 -3
- package/build/universal/Picker/Picker.android.js.map +1 -1
- package/build/universal/Picker/Picker.d.ts +1 -1
- package/build/universal/Picker/Picker.ios.d.ts +1 -1
- package/build/universal/Picker/Picker.ios.js +5 -2
- package/build/universal/Picker/Picker.ios.js.map +1 -1
- package/build/universal/Picker/Picker.js +2 -1
- package/build/universal/Picker/Picker.js.map +1 -1
- package/build/universal/Picker/types.d.ts +4 -0
- package/build/universal/Picker/types.js.map +1 -1
- package/ios/HostView.swift +0 -1
- package/ios/Modifiers/ContentTransitionModifier.swift +49 -0
- package/ios/RNHostView.swift +55 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.27/expo.modules.ui-58.0.27-sources.jar → 58.0.28/expo.modules.ui-58.0.28-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.27/expo.modules.ui-58.0.27.module → 58.0.28/expo.modules.ui-58.0.28.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.27/expo.modules.ui-58.0.27.pom → 58.0.28/expo.modules.ui-58.0.28.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.sha512 +1 -0
- package/package.json +1 -1
- package/src/jetpack-compose/DropdownMenu/index.tsx +9 -0
- package/src/jetpack-compose/RangeSlider/index.tsx +125 -0
- package/src/jetpack-compose/Slider/index.tsx +15 -0
- package/src/jetpack-compose/index.ts +1 -0
- package/src/jetpack-compose/modifiers/index.ts +13 -0
- package/src/swift-ui/modifiers/index.ts +28 -4
- package/src/swift-ui/modifiers/symbolEffect.ts +53 -27
- package/src/swift-ui/modifiers/symbolEffectOptions.ts +22 -0
- package/src/universal/Picker/Picker.android.tsx +9 -2
- package/src/universal/Picker/Picker.ios.tsx +5 -0
- package/src/universal/Picker/Picker.tsx +2 -0
- package/src/universal/Picker/types.ts +5 -0
- package/ios/Modifiers/HostViewContentMarginsMitigation.swift +0 -98
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.27/expo.modules.ui-58.0.27.pom.sha512 +0 -1
|
@@ -8,11 +8,51 @@ internal enum ContentTransitionType: String, Enumerable {
|
|
|
8
8
|
case identity
|
|
9
9
|
case opacity
|
|
10
10
|
case interpolate
|
|
11
|
+
case symbolEffect
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
internal enum ContentTransitionSymbolEffectKind: String, Enumerable {
|
|
15
|
+
case automatic
|
|
16
|
+
case replace
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
internal enum ReplaceSymbolEffectDirection: String, Enumerable {
|
|
20
|
+
case downUp
|
|
21
|
+
case upUp
|
|
22
|
+
case offUp
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
internal struct ContentTransitionSymbolEffectConfig: Record {
|
|
26
|
+
@Field var effect: ContentTransitionSymbolEffectKind = .automatic
|
|
27
|
+
@Field var direction: ReplaceSymbolEffectDirection?
|
|
28
|
+
@Field var scope: SymbolEffectScope?
|
|
29
|
+
|
|
30
|
+
@available(iOS 17.0, tvOS 17.0, macOS 14.0, *)
|
|
31
|
+
func toContentTransition(options: SymbolEffectOptions) -> ContentTransition {
|
|
32
|
+
switch effect {
|
|
33
|
+
case .automatic:
|
|
34
|
+
return .symbolEffect(.automatic, options: options)
|
|
35
|
+
case .replace:
|
|
36
|
+
let directed: ReplaceSymbolEffect = switch direction {
|
|
37
|
+
case .downUp: .replace.downUp
|
|
38
|
+
case .upUp: .replace.upUp
|
|
39
|
+
case .offUp: .replace.offUp
|
|
40
|
+
default: .replace
|
|
41
|
+
}
|
|
42
|
+
return switch scope {
|
|
43
|
+
case .byLayer: .symbolEffect(directed.byLayer, options: options)
|
|
44
|
+
case .wholeSymbol: .symbolEffect(directed.wholeSymbol, options: options)
|
|
45
|
+
default: .symbolEffect(directed, options: options)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
11
49
|
}
|
|
12
50
|
|
|
13
51
|
internal struct ContentTransitionModifier: ViewModifier, Record {
|
|
14
52
|
@Field var transitionType: ContentTransitionType?
|
|
15
53
|
@Field var countsDown: Bool = false
|
|
54
|
+
@Field var symbolEffect: ContentTransitionSymbolEffectConfig?
|
|
55
|
+
@Field var options: SymbolEffectOptionsConfig?
|
|
16
56
|
|
|
17
57
|
func body(content: Content) -> some View {
|
|
18
58
|
if #available(iOS 16.0, tvOS 16.0, macOS 13.0, *) {
|
|
@@ -25,6 +65,15 @@ internal struct ContentTransitionModifier: ViewModifier, Record {
|
|
|
25
65
|
content.contentTransition(.opacity)
|
|
26
66
|
case .interpolate:
|
|
27
67
|
content.contentTransition(.interpolate)
|
|
68
|
+
case .symbolEffect:
|
|
69
|
+
if #available(iOS 17.0, tvOS 17.0, macOS 14.0, *) {
|
|
70
|
+
content.contentTransition(
|
|
71
|
+
(symbolEffect ?? ContentTransitionSymbolEffectConfig())
|
|
72
|
+
.toContentTransition(options: options?.toSwiftUI() ?? .default)
|
|
73
|
+
)
|
|
74
|
+
} else {
|
|
75
|
+
content
|
|
76
|
+
}
|
|
28
77
|
default:
|
|
29
78
|
content
|
|
30
79
|
}
|
package/ios/RNHostView.swift
CHANGED
|
@@ -42,6 +42,7 @@ struct RNHostView: ExpoSwiftUI.View {
|
|
|
42
42
|
|
|
43
43
|
@ObservedObject var props: RNHostViewProps
|
|
44
44
|
@StateObject private var touchHandler = RNHostTouchHandler()
|
|
45
|
+
@State private var lastReportedSize = ReportedSize()
|
|
45
46
|
|
|
46
47
|
var body: some View {
|
|
47
48
|
hostedContent
|
|
@@ -93,9 +94,23 @@ struct RNHostView: ExpoSwiftUI.View {
|
|
|
93
94
|
// surrounding SwiftUI container - e.g. a spurious empty row in a `Form`'s `Section`.
|
|
94
95
|
EmptyView()
|
|
95
96
|
} else {
|
|
97
|
+
// Reports every size SwiftUI lays the content out at, including each frame of an animated
|
|
98
|
+
// resize, which `onGeometryChange` would report once at its destination. The reader sits
|
|
99
|
+
// in a background so it takes no part in the layout: as the container it would give an
|
|
100
|
+
// axis with no proposal, e.g. the height in a vertical `ScrollView`, its own 10 pt default.
|
|
96
101
|
Children()
|
|
97
102
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
98
|
-
.
|
|
103
|
+
.background(
|
|
104
|
+
GeometryReader { geometry in
|
|
105
|
+
Color.clear.modifier(
|
|
106
|
+
AnimatedSizeReporter(
|
|
107
|
+
size: geometry.size,
|
|
108
|
+
shadowNodeProxy: props.shadowNodeProxy,
|
|
109
|
+
lastReported: lastReportedSize
|
|
110
|
+
)
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
)
|
|
99
114
|
}
|
|
100
115
|
}
|
|
101
116
|
|
|
@@ -290,3 +305,42 @@ private struct ReportSizeToYogaNodeModifier: ViewModifier {
|
|
|
290
305
|
}
|
|
291
306
|
}
|
|
292
307
|
}
|
|
308
|
+
|
|
309
|
+
// Sets Yoga node size from every size SwiftUI lays the hosted content out at
|
|
310
|
+
// SwiftUI drives `animatableData` through each interpolated size of an animated resize, not only
|
|
311
|
+
// its destination, so the hosted React Native tree follows the animation
|
|
312
|
+
private struct AnimatedSizeReporter: ViewModifier, Animatable {
|
|
313
|
+
var size: CGSize
|
|
314
|
+
let shadowNodeProxy: ExpoSwiftUI.ShadowNodeProxy
|
|
315
|
+
let lastReported: ReportedSize
|
|
316
|
+
|
|
317
|
+
var animatableData: CGSize.AnimatableData {
|
|
318
|
+
get { size.animatableData }
|
|
319
|
+
set {
|
|
320
|
+
size.animatableData = newValue
|
|
321
|
+
report(size)
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// SwiftUI sets `animatableData` only while it animates a change. The first layout and a change
|
|
326
|
+
// that is not animated reach Yoga from here instead.
|
|
327
|
+
func body(content: Content) -> some View {
|
|
328
|
+
content
|
|
329
|
+
.onAppear { report(size) }
|
|
330
|
+
.onChange(of: size) { newValue in report(newValue) }
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// Both paths repeat a size they already sent; Yoga only needs to hear each size once.
|
|
334
|
+
private func report(_ size: CGSize) {
|
|
335
|
+
if lastReported.value == size {
|
|
336
|
+
return
|
|
337
|
+
}
|
|
338
|
+
lastReported.value = size
|
|
339
|
+
shadowNodeProxy.setViewSize?(size)
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// The size last sent to Yoga for an `RNHostView`, shared by every copy of its reporter.
|
|
344
|
+
private final class ReportedSize {
|
|
345
|
+
var value: CGSize?
|
|
346
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b6ed1814bbad659708bc8563ebc42cd1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
91f1e5303f82fd8c2409c986a0347b048d5ed45b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5fe12f07a89cd50b36d822ff0e4a142c11f6f001daaf1786957b160bd9f03dea
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
02c22caa48a491ebbae97f797b9e0489f8df8383302341ae54c24a3745e1da294b175a3c30ee6884f3e70b5d992096e1e43ec06239f6151854fcd6658d63cc60
|
|
Binary file
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6f4aa51b7338436fc92132049a658618
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dd97d1156323c6ebaa3441ac27414066ace90ff8
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e5e1c6db547749ec09478bfadaa4b1ed1a054a37ef3eed5c5d4272b7353ddef8
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.aar.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cd88b4525bfb3b18a00124846b8490508bf1d0dcdecd3364021f6337684d234cd712f701044ea86c752d6bebdbc2a037c473f579755d72183c3170b05d4da4aa
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.ui",
|
|
5
5
|
"module": "expo.modules.ui",
|
|
6
|
-
"version": "58.0.
|
|
6
|
+
"version": "58.0.28",
|
|
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-58.0.
|
|
28
|
-
"url": "expo.modules.ui-58.0.
|
|
29
|
-
"size":
|
|
30
|
-
"sha512": "
|
|
31
|
-
"sha256": "
|
|
32
|
-
"sha1": "
|
|
33
|
-
"md5": "
|
|
27
|
+
"name": "expo.modules.ui-58.0.28.aar",
|
|
28
|
+
"url": "expo.modules.ui-58.0.28.aar",
|
|
29
|
+
"size": 2052964,
|
|
30
|
+
"sha512": "cd88b4525bfb3b18a00124846b8490508bf1d0dcdecd3364021f6337684d234cd712f701044ea86c752d6bebdbc2a037c473f579755d72183c3170b05d4da4aa",
|
|
31
|
+
"sha256": "e5e1c6db547749ec09478bfadaa4b1ed1a054a37ef3eed5c5d4272b7353ddef8",
|
|
32
|
+
"sha1": "dd97d1156323c6ebaa3441ac27414066ace90ff8",
|
|
33
|
+
"md5": "6f4aa51b7338436fc92132049a658618"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
@@ -141,13 +141,13 @@
|
|
|
141
141
|
],
|
|
142
142
|
"files": [
|
|
143
143
|
{
|
|
144
|
-
"name": "expo.modules.ui-58.0.
|
|
145
|
-
"url": "expo.modules.ui-58.0.
|
|
146
|
-
"size":
|
|
147
|
-
"sha512": "
|
|
148
|
-
"sha256": "
|
|
149
|
-
"sha1": "
|
|
150
|
-
"md5": "
|
|
144
|
+
"name": "expo.modules.ui-58.0.28.aar",
|
|
145
|
+
"url": "expo.modules.ui-58.0.28.aar",
|
|
146
|
+
"size": 2052964,
|
|
147
|
+
"sha512": "cd88b4525bfb3b18a00124846b8490508bf1d0dcdecd3364021f6337684d234cd712f701044ea86c752d6bebdbc2a037c473f579755d72183c3170b05d4da4aa",
|
|
148
|
+
"sha256": "e5e1c6db547749ec09478bfadaa4b1ed1a054a37ef3eed5c5d4272b7353ddef8",
|
|
149
|
+
"sha1": "dd97d1156323c6ebaa3441ac27414066ace90ff8",
|
|
150
|
+
"md5": "6f4aa51b7338436fc92132049a658618"
|
|
151
151
|
}
|
|
152
152
|
]
|
|
153
153
|
},
|
|
@@ -161,13 +161,13 @@
|
|
|
161
161
|
},
|
|
162
162
|
"files": [
|
|
163
163
|
{
|
|
164
|
-
"name": "expo.modules.ui-58.0.
|
|
165
|
-
"url": "expo.modules.ui-58.0.
|
|
166
|
-
"size":
|
|
167
|
-
"sha512": "
|
|
168
|
-
"sha256": "
|
|
169
|
-
"sha1": "
|
|
170
|
-
"md5": "
|
|
164
|
+
"name": "expo.modules.ui-58.0.28-sources.jar",
|
|
165
|
+
"url": "expo.modules.ui-58.0.28-sources.jar",
|
|
166
|
+
"size": 128675,
|
|
167
|
+
"sha512": "02c22caa48a491ebbae97f797b9e0489f8df8383302341ae54c24a3745e1da294b175a3c30ee6884f3e70b5d992096e1e43ec06239f6151854fcd6658d63cc60",
|
|
168
|
+
"sha256": "5fe12f07a89cd50b36d822ff0e4a142c11f6f001daaf1786957b160bd9f03dea",
|
|
169
|
+
"sha1": "91f1e5303f82fd8c2409c986a0347b048d5ed45b",
|
|
170
|
+
"md5": "b6ed1814bbad659708bc8563ebc42cd1"
|
|
171
171
|
}
|
|
172
172
|
]
|
|
173
173
|
}
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5bc7180d3b779adb89e6298e7e945772
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e471c3dd6b76eb4d514d04c5f41bebf10722a3d0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f2fff604af4f027da7c666bf8e459a3b65c02cc819dca3b5497ad928becb6360
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
80ad822767f8aa3c98f8d101e4e42df22b728dc43ab96155f4d3c5f7588ac43959de6ee22b8132513eb75ec9017c12198250b6061c73f4f6c0389863993ac361
|
|
@@ -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>58.0.
|
|
12
|
+
<version>58.0.28</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.ui</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e89e26acc7a2f85f7eb7f81570f2b70a
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
07d332fd0f7b1c97c43c519cc4afb9024feda4e5
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9daff28a5a17aaf88d2040936a8e15a773e16a8a2c985181a49cfad8575c8df8
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.28/expo.modules.ui-58.0.28.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
331d0d5ba59a44010eec7810012a3c65e3c6f823a0516a64d451b1381bd417065a973aa798e5f1be3a172c676a99110d6659d26d3dba8581b6302c3709b0d28f
|
package/package.json
CHANGED
|
@@ -135,6 +135,14 @@ export interface DropdownMenuPopupProps {
|
|
|
135
135
|
*/
|
|
136
136
|
onDismissRequest?: () => void;
|
|
137
137
|
|
|
138
|
+
/**
|
|
139
|
+
* The side of the anchor where the menu opens, through Compose's `MenuAnchorPosition`. When
|
|
140
|
+
* there is not sufficient space on that side, Compose moves the menu to a different side. Use
|
|
141
|
+
* `'end'` for a submenu that opens next to its item.
|
|
142
|
+
* @default 'below'
|
|
143
|
+
*/
|
|
144
|
+
anchorPosition?: 'below' | 'above' | 'start' | 'end' | 'left' | 'right';
|
|
145
|
+
|
|
138
146
|
/**
|
|
139
147
|
* Properties for the popup window of the menu.
|
|
140
148
|
*/
|
|
@@ -149,6 +157,7 @@ export interface DropdownMenuPopupProps {
|
|
|
149
157
|
type NativeMenuPopupProps = {
|
|
150
158
|
expanded?: boolean;
|
|
151
159
|
onDismissRequest?: () => void;
|
|
160
|
+
anchorPosition?: DropdownMenuPopupProps['anchorPosition'];
|
|
152
161
|
properties?: PopupProperties;
|
|
153
162
|
modifiers?: ModifierConfig[];
|
|
154
163
|
children?: ReactNode;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { requireNativeView } from 'expo';
|
|
2
|
+
|
|
3
|
+
import type { ModifierConfig, ViewEvent } from '../../types';
|
|
4
|
+
import type { SliderColors } from '../Slider';
|
|
5
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
6
|
+
|
|
7
|
+
export type { SliderColors };
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* An inclusive numeric range for `RangeSlider`.
|
|
11
|
+
*/
|
|
12
|
+
export type RangeSliderRange = {
|
|
13
|
+
/** The start of the range. */
|
|
14
|
+
start: number;
|
|
15
|
+
/** The end of the range, included in the selection. */
|
|
16
|
+
endInclusive: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export interface RangeSliderProps {
|
|
20
|
+
/**
|
|
21
|
+
* The selected start value. Changing this prop updates the native selection when the user is not dragging.
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
startValue?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The selected end value. Changing this prop updates the native selection when the user is not dragging.
|
|
27
|
+
* @default 1
|
|
28
|
+
*/
|
|
29
|
+
endValue?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The bounds of the entire track. The slider clamps values outside these bounds.
|
|
32
|
+
* @default \{ start: 0, endInclusive: 1 \}
|
|
33
|
+
*/
|
|
34
|
+
trackRange?: RangeSliderRange;
|
|
35
|
+
/**
|
|
36
|
+
* The number of selectable positions between the track bounds.
|
|
37
|
+
* Must be a nonnegative integer. `0` means continuous selection.
|
|
38
|
+
* @default 0
|
|
39
|
+
*/
|
|
40
|
+
steps?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the slider responds to user interaction.
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
enabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Colors for the thumbs, track, and tick marks. Omitted colors use the Material theme.
|
|
48
|
+
*/
|
|
49
|
+
colors?: SliderColors;
|
|
50
|
+
/**
|
|
51
|
+
* Called with both endpoints when the user changes the selection.
|
|
52
|
+
*/
|
|
53
|
+
onValueChange?: (range: RangeSliderRange) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Called when the user finishes changing the selection.
|
|
56
|
+
* It has no value argument. `onValueChange` reports the selection.
|
|
57
|
+
*/
|
|
58
|
+
onValueChangeFinished?: () => void;
|
|
59
|
+
/**
|
|
60
|
+
* Modifiers for the component.
|
|
61
|
+
*/
|
|
62
|
+
modifiers?: ModifierConfig[];
|
|
63
|
+
/**
|
|
64
|
+
* Custom content wrapped in `RangeSlider.StartThumb`, `RangeSlider.EndThumb`, or `RangeSlider.Track`.
|
|
65
|
+
*/
|
|
66
|
+
children?: React.ReactNode;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type NativeRangeSliderProps = Omit<RangeSliderProps, 'onValueChange' | 'onValueChangeFinished'> &
|
|
70
|
+
ViewEvent<'onValueChange', RangeSliderRange> &
|
|
71
|
+
ViewEvent<'onValueChangeFinished', void>;
|
|
72
|
+
|
|
73
|
+
const RangeSliderNativeView: React.ComponentType<NativeRangeSliderProps> = requireNativeView(
|
|
74
|
+
'ExpoUI',
|
|
75
|
+
'RangeSliderView'
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
const SlotNativeView: React.ComponentType<{ slotName: string; children: React.ReactNode }> =
|
|
79
|
+
requireNativeView('ExpoUI', 'SlotView');
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Custom content for the start thumb of a `RangeSlider`.
|
|
83
|
+
* @platform android
|
|
84
|
+
*/
|
|
85
|
+
function StartThumb(props: { children: React.ReactNode }) {
|
|
86
|
+
return <SlotNativeView slotName="startThumb">{props.children}</SlotNativeView>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Custom content for the end thumb of a `RangeSlider`.
|
|
91
|
+
* @platform android
|
|
92
|
+
*/
|
|
93
|
+
function EndThumb(props: { children: React.ReactNode }) {
|
|
94
|
+
return <SlotNativeView slotName="endThumb">{props.children}</SlotNativeView>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Custom content for the track of a `RangeSlider`.
|
|
99
|
+
* @platform android
|
|
100
|
+
*/
|
|
101
|
+
function Track(props: { children: React.ReactNode }) {
|
|
102
|
+
return <SlotNativeView slotName="track">{props.children}</SlotNativeView>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* A Material 3 slider for selecting two values on a bounded track.
|
|
107
|
+
* It works only inside a `Host` component.
|
|
108
|
+
* @platform android
|
|
109
|
+
*/
|
|
110
|
+
export function RangeSlider(props: RangeSliderProps) {
|
|
111
|
+
const { modifiers, onValueChange, onValueChangeFinished, ...restProps } = props;
|
|
112
|
+
return (
|
|
113
|
+
<RangeSliderNativeView
|
|
114
|
+
{...restProps}
|
|
115
|
+
modifiers={modifiers}
|
|
116
|
+
{...(modifiers ? createViewModifierEventListener(modifiers) : undefined)}
|
|
117
|
+
onValueChange={onValueChange ? ({ nativeEvent }) => onValueChange(nativeEvent) : undefined}
|
|
118
|
+
onValueChangeFinished={onValueChangeFinished ? () => onValueChangeFinished() : undefined}
|
|
119
|
+
/>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
RangeSlider.StartThumb = StartThumb;
|
|
124
|
+
RangeSlider.EndThumb = EndThumb;
|
|
125
|
+
RangeSlider.Track = Track;
|
|
@@ -19,11 +19,26 @@ const SlotNativeView: React.ComponentType<SlotNativeViewProps> = requireNativeVi
|
|
|
19
19
|
* @platform android
|
|
20
20
|
*/
|
|
21
21
|
export type SliderColors = {
|
|
22
|
+
/** The thumb color when enabled. */
|
|
22
23
|
thumbColor?: ColorValue;
|
|
24
|
+
/** The active track color when enabled. */
|
|
23
25
|
activeTrackColor?: ColorValue;
|
|
26
|
+
/** The inactive track color when enabled. */
|
|
24
27
|
inactiveTrackColor?: ColorValue;
|
|
28
|
+
/** The active tick color when enabled. */
|
|
25
29
|
activeTickColor?: ColorValue;
|
|
30
|
+
/** The inactive tick color when enabled. */
|
|
26
31
|
inactiveTickColor?: ColorValue;
|
|
32
|
+
/** The thumb color when disabled. */
|
|
33
|
+
disabledThumbColor?: ColorValue;
|
|
34
|
+
/** The active track color when disabled. */
|
|
35
|
+
disabledActiveTrackColor?: ColorValue;
|
|
36
|
+
/** The inactive track color when disabled. */
|
|
37
|
+
disabledInactiveTrackColor?: ColorValue;
|
|
38
|
+
/** The active tick color when disabled. */
|
|
39
|
+
disabledActiveTickColor?: ColorValue;
|
|
40
|
+
/** The inactive tick color when disabled. */
|
|
41
|
+
disabledInactiveTickColor?: ColorValue;
|
|
27
42
|
};
|
|
28
43
|
|
|
29
44
|
export interface SliderProps {
|
|
@@ -23,6 +23,7 @@ export * from './RNHostView';
|
|
|
23
23
|
export * from './DatePicker';
|
|
24
24
|
export * from './SegmentedButton';
|
|
25
25
|
export * from './Progress';
|
|
26
|
+
export * from './RangeSlider';
|
|
26
27
|
export * from './Slider';
|
|
27
28
|
export * from './Spacer';
|
|
28
29
|
export * from './SplitButtonLayout';
|
|
@@ -653,5 +653,18 @@ export const verticalScroll = () => createModifier('verticalScroll');
|
|
|
653
653
|
*/
|
|
654
654
|
export const horizontalScroll = () => createModifier('horizontalScroll');
|
|
655
655
|
|
|
656
|
+
/**
|
|
657
|
+
* Hides the keyboard and clears focus when the user starts to drag the scrollable content.
|
|
658
|
+
*
|
|
659
|
+
* When used with `verticalScroll()` or `horizontalScroll()` modifier, it must be placed
|
|
660
|
+
* before them in the modifier list.
|
|
661
|
+
*
|
|
662
|
+
* @example
|
|
663
|
+
* ```tsx
|
|
664
|
+
* modifiers={[scrollDismissesKeyboard(), verticalScroll()]}
|
|
665
|
+
* ```
|
|
666
|
+
*/
|
|
667
|
+
export const scrollDismissesKeyboard = () => createModifier('scrollDismissesKeyboard');
|
|
668
|
+
|
|
656
669
|
export { createModifier, createModifierWithEventListener } from './createModifier';
|
|
657
670
|
export { createViewModifierEventListener } from './utils';
|
|
@@ -23,7 +23,12 @@ import { progressViewStyle } from './progressViewStyle';
|
|
|
23
23
|
import { onScrollPhaseChange, useScrollGeometryChange } from './scrollObservation';
|
|
24
24
|
import { id, scrollPosition } from './scrollPosition';
|
|
25
25
|
import { resolveShapeStyle, type ShapeStyle } from './shapeStyle';
|
|
26
|
-
import {
|
|
26
|
+
import {
|
|
27
|
+
symbolEffect,
|
|
28
|
+
type ContentTransitionSymbolEffect,
|
|
29
|
+
type SymbolEffectOptions,
|
|
30
|
+
} from './symbolEffect';
|
|
31
|
+
import { flattenOptions } from './symbolEffectOptions';
|
|
27
32
|
import type { Color } from './types';
|
|
28
33
|
import { activityBackgroundTint, widgetAccentedRenderingMode, widgetURL } from './widgets';
|
|
29
34
|
|
|
@@ -1712,9 +1717,11 @@ export const textContentType = (
|
|
|
1712
1717
|
* Useful for animating changes in text content, especially numeric text.
|
|
1713
1718
|
* Use with the [`animation`](#animationanimationobject-animatedvalue) modifier to animate the transition when the content changes.
|
|
1714
1719
|
*
|
|
1715
|
-
* @param transitionType - The type of content transition.
|
|
1720
|
+
* @param transitionType - The type of content transition. The `'symbolEffect'` type applies a symbol effect transition to symbol images. Other views are unaffected by this transition. It requires iOS 17.0+, tvOS 17.0+, and macOS 14.0+. On earlier versions, the view does not change.
|
|
1716
1721
|
* @param params - Optional parameters.
|
|
1717
1722
|
* @param params.countsDown - Whether the numeric text counts down.
|
|
1723
|
+
* @param params.symbolEffect - The symbol effect to use with the `'symbolEffect'` type. Defaults to `{ effect: 'automatic' }`.
|
|
1724
|
+
* @param params.options - A set of options that configure how effects apply to symbol-based images. Use it with the `'symbolEffect'` type.
|
|
1718
1725
|
*
|
|
1719
1726
|
* @example
|
|
1720
1727
|
* ```tsx
|
|
@@ -1723,17 +1730,34 @@ export const textContentType = (
|
|
|
1723
1730
|
* </Text>
|
|
1724
1731
|
* ```
|
|
1725
1732
|
*
|
|
1733
|
+
* @example
|
|
1734
|
+
* ```tsx
|
|
1735
|
+
* <Image
|
|
1736
|
+
* systemName={isOn ? 'speaker.wave.2.fill' : 'speaker.slash.fill'}
|
|
1737
|
+
* modifiers={[
|
|
1738
|
+
* contentTransition('symbolEffect', { symbolEffect: { effect: 'replace', direction: 'downUp' } }),
|
|
1739
|
+
* animation(Animation.default, isOn),
|
|
1740
|
+
* ]}
|
|
1741
|
+
* />
|
|
1742
|
+
* ```
|
|
1743
|
+
*
|
|
1726
1744
|
* @platform ios 16.0+
|
|
1727
1745
|
* @platform tvos 16.0+
|
|
1728
1746
|
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/contenttransition(_:)).
|
|
1729
1747
|
*/
|
|
1730
1748
|
export const contentTransition = (
|
|
1731
|
-
transitionType: 'numericText' | 'identity' | 'opacity' | 'interpolate',
|
|
1732
|
-
params?: {
|
|
1749
|
+
transitionType: 'numericText' | 'identity' | 'opacity' | 'interpolate' | 'symbolEffect',
|
|
1750
|
+
params?: {
|
|
1751
|
+
countsDown?: boolean;
|
|
1752
|
+
symbolEffect?: ContentTransitionSymbolEffect;
|
|
1753
|
+
options?: SymbolEffectOptions;
|
|
1754
|
+
}
|
|
1733
1755
|
) =>
|
|
1734
1756
|
createModifier('contentTransition', {
|
|
1735
1757
|
transitionType,
|
|
1736
1758
|
countsDown: params?.countsDown,
|
|
1759
|
+
symbolEffect: params?.symbolEffect,
|
|
1760
|
+
options: flattenOptions(params?.options),
|
|
1737
1761
|
});
|
|
1738
1762
|
|
|
1739
1763
|
export type ListStyle = 'automatic' | 'plain' | 'inset' | 'insetGrouped' | 'grouped' | 'sidebar';
|