@expo/ui 58.0.26 → 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 +25 -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 +6 -7
- package/ios/Modifiers/ContentTransitionModifier.swift +49 -0
- package/ios/RNHostView.swift +55 -1
- package/ios/UniversalLayout.swift +51 -19
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.26/expo.modules.ui-58.0.26-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.26/expo.modules.ui-58.0.26.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.26/expo.modules.ui-58.0.26.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 +2 -2
- 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.26/expo.modules.ui-58.0.26-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.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
|
+
}
|
|
@@ -179,6 +179,13 @@ internal struct ParentAwareHStackLayout: Layout {
|
|
|
179
179
|
)
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
// A `Spacer` reads the orientation and grows only along the stack axis.
|
|
183
|
+
static var layoutProperties: LayoutProperties {
|
|
184
|
+
var properties = LayoutProperties()
|
|
185
|
+
properties.stackOrientation = .horizontal
|
|
186
|
+
return properties
|
|
187
|
+
}
|
|
188
|
+
|
|
182
189
|
func makeCache(subviews: Subviews) -> StackLayoutCache {
|
|
183
190
|
StackLayoutCache()
|
|
184
191
|
}
|
|
@@ -217,6 +224,13 @@ internal struct ParentAwareVStackLayout: Layout {
|
|
|
217
224
|
)
|
|
218
225
|
}
|
|
219
226
|
|
|
227
|
+
// A `Spacer` reads the orientation and grows only along the stack axis.
|
|
228
|
+
static var layoutProperties: LayoutProperties {
|
|
229
|
+
var properties = LayoutProperties()
|
|
230
|
+
properties.stackOrientation = .vertical
|
|
231
|
+
return properties
|
|
232
|
+
}
|
|
233
|
+
|
|
220
234
|
func makeCache(subviews: Subviews) -> StackLayoutCache {
|
|
221
235
|
StackLayoutCache()
|
|
222
236
|
}
|
|
@@ -333,6 +347,9 @@ private struct MeasuredChild {
|
|
|
333
347
|
var canCompress: Bool
|
|
334
348
|
var priority: Double
|
|
335
349
|
var maxMain: CGFloat
|
|
350
|
+
/// Main size of a flexible child at a zero offer, such as the minimum length of a `Spacer`.
|
|
351
|
+
/// Zero for other children.
|
|
352
|
+
var minMain: CGFloat
|
|
336
353
|
}
|
|
337
354
|
|
|
338
355
|
private struct MeasuredChildren {
|
|
@@ -392,7 +409,9 @@ private struct StackConfiguration {
|
|
|
392
409
|
subviews: subviews,
|
|
393
410
|
cache: &cache
|
|
394
411
|
)
|
|
395
|
-
let fill =
|
|
412
|
+
let fill = measurement.contentCross.isFinite
|
|
413
|
+
? alignment.offset(container: crossLength(bounds.size, axis: axis), content: measurement.contentCross)
|
|
414
|
+
: 0
|
|
396
415
|
// The origin stays leading.
|
|
397
416
|
// SwiftUI mirrors a custom layout in right-to-left.
|
|
398
417
|
var cursor = axis == .horizontal ? bounds.minX : bounds.minY
|
|
@@ -407,20 +426,22 @@ private struct StackConfiguration {
|
|
|
407
426
|
private func measure(proposal: ProposedViewSize, subviews: LayoutSubviews) -> StackMeasurement {
|
|
408
427
|
let spacings = stackSpacings(subviews: subviews, explicit: spacing)
|
|
409
428
|
let measured = measureChildren(subviews: subviews, proposal: proposal, spacings: spacings)
|
|
410
|
-
// A flexible child reports its cross size for its final main size
|
|
411
|
-
// So a `Spacer` does not stretch the stack, and wrapped text counts its lines.
|
|
429
|
+
// A flexible child reports its cross size for its final main size, so wrapped text counts its lines.
|
|
412
430
|
let dimensions = zip(subviews, measured.children).map { subview, child in
|
|
413
431
|
let dimensionProposal = child.flexible
|
|
414
|
-
? proposedSize(main: mainLength(child.size, axis: axis), cross:
|
|
432
|
+
? proposedSize(main: mainLength(child.size, axis: axis), cross: child.crossProposal, axis: axis)
|
|
415
433
|
: child.proposal
|
|
416
434
|
return subview.dimensions(in: dimensionProposal)
|
|
417
435
|
}
|
|
418
436
|
let guides = dimensions.map(alignment.guide)
|
|
419
|
-
let
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}
|
|
423
|
-
let
|
|
437
|
+
let crossSizes = dimensions.map { crossLength(CGSize(width: $0.width, height: $0.height), axis: axis) }
|
|
438
|
+
// A child that answers an infinite probe with an infinite size has no finite center or end guide.
|
|
439
|
+
// The stack then reports that it can grow and skips the guides.
|
|
440
|
+
let growsAcross = crossSizes.contains { $0.isInfinite }
|
|
441
|
+
let reference = growsAcross ? 0 : guides.max() ?? 0
|
|
442
|
+
let contentCross = growsAcross
|
|
443
|
+
? CGFloat.infinity
|
|
444
|
+
: reference + (zip(crossSizes, guides).map { $0 - $1 }.max() ?? 0)
|
|
424
445
|
return StackMeasurement(
|
|
425
446
|
size: stackSize(
|
|
426
447
|
main: measured.definiteMain ?? measured.contentMain,
|
|
@@ -430,7 +451,7 @@ private struct StackConfiguration {
|
|
|
430
451
|
sizes: measured.children.map(\.size),
|
|
431
452
|
proposals: measured.children.map(\.proposal),
|
|
432
453
|
spacings: spacings,
|
|
433
|
-
crossOffsets: guides.map { reference - $0 },
|
|
454
|
+
crossOffsets: growsAcross ? guides.map { _ in 0 } : guides.map { reference - $0 },
|
|
434
455
|
contentCross: contentCross
|
|
435
456
|
)
|
|
436
457
|
}
|
|
@@ -441,7 +462,8 @@ private struct StackConfiguration {
|
|
|
441
462
|
spacings: [CGFloat]
|
|
442
463
|
) -> MeasuredChildren {
|
|
443
464
|
let offeredMain = finite(axis == .horizontal ? proposal.width : proposal.height)
|
|
444
|
-
let
|
|
465
|
+
let proposedCross = axis == .horizontal ? proposal.height : proposal.width
|
|
466
|
+
let offeredCross = finite(proposedCross)
|
|
445
467
|
let ownMainPoints = axis == .horizontal ? ownDimensions.widthPoints : ownDimensions.heightPoints
|
|
446
468
|
let ownMainFraction = axis == .horizontal ? ownDimensions.widthFraction : ownDimensions.heightFraction
|
|
447
469
|
let ownCrossPoints = axis == .horizontal ? ownDimensions.heightPoints : ownDimensions.widthPoints
|
|
@@ -478,8 +500,9 @@ private struct StackConfiguration {
|
|
|
478
500
|
let mainFraction = axis == .horizontal ? dimensions.widthFraction : dimensions.heightFraction
|
|
479
501
|
let crossFraction = axis == .horizontal ? dimensions.heightFraction : dimensions.widthFraction
|
|
480
502
|
// A fraction uses the size chosen above.
|
|
481
|
-
// Every other child
|
|
482
|
-
|
|
503
|
+
// Every other child gets the cross proposal unchanged, so text can wrap, and an infinite probe
|
|
504
|
+
// reaches a child that can grow.
|
|
505
|
+
let crossProposal = crossFraction != nil ? definiteCross : proposedCross
|
|
483
506
|
|
|
484
507
|
if mainFraction != nil, let definiteMain {
|
|
485
508
|
let childProposal = proposedSize(main: definiteMain, cross: crossProposal, axis: axis)
|
|
@@ -491,7 +514,8 @@ private struct StackConfiguration {
|
|
|
491
514
|
flexible: false,
|
|
492
515
|
canCompress: false,
|
|
493
516
|
priority: subview.priority,
|
|
494
|
-
maxMain: mainLength(size, axis: axis)
|
|
517
|
+
maxMain: mainLength(size, axis: axis),
|
|
518
|
+
minMain: 0
|
|
495
519
|
))
|
|
496
520
|
continue
|
|
497
521
|
}
|
|
@@ -502,6 +526,9 @@ private struct StackConfiguration {
|
|
|
502
526
|
let idealMain = mainLength(ideal, axis: axis)
|
|
503
527
|
let maxMain = mainLength(maxed, axis: axis)
|
|
504
528
|
let flexible = offeredMain != nil && (maxMain.isInfinite || maxMain > idealMain + 1)
|
|
529
|
+
let minMain = flexible
|
|
530
|
+
? mainLength(subview.sizeThatFits(proposedSize(main: 0, cross: crossProposal, axis: axis)), axis: axis)
|
|
531
|
+
: 0
|
|
505
532
|
children.append(MeasuredChild(
|
|
506
533
|
size: ideal,
|
|
507
534
|
proposal: idealProposal,
|
|
@@ -509,7 +536,8 @@ private struct StackConfiguration {
|
|
|
509
536
|
flexible: flexible,
|
|
510
537
|
canCompress: !flexible,
|
|
511
538
|
priority: subview.priority,
|
|
512
|
-
maxMain: maxMain
|
|
539
|
+
maxMain: maxMain,
|
|
540
|
+
minMain: minMain
|
|
513
541
|
))
|
|
514
542
|
}
|
|
515
543
|
|
|
@@ -536,7 +564,8 @@ private struct StackConfiguration {
|
|
|
536
564
|
let fixedMain = children.reduce(CGFloat(0)) { total, child in
|
|
537
565
|
child.flexible ? total : total + mainLength(child.size, axis: axis)
|
|
538
566
|
}
|
|
539
|
-
let
|
|
567
|
+
let flexibleMinimum = children.reduce(CGFloat(0)) { $0 + $1.minMain }
|
|
568
|
+
let overflow = fixedMain + flexibleMinimum + spacings.reduce(0, +) - offeredMain
|
|
540
569
|
guard overflow > 1 else { return }
|
|
541
570
|
|
|
542
571
|
var candidates: [CompressionCandidate] = []
|
|
@@ -571,7 +600,7 @@ private struct StackConfiguration {
|
|
|
571
600
|
}
|
|
572
601
|
return total + mainLength(item.element.size, axis: axis)
|
|
573
602
|
}
|
|
574
|
-
var available = max(0, offeredMain - spacings.reduce(0, +) - reserved)
|
|
603
|
+
var available = max(0, offeredMain - spacings.reduce(0, +) - reserved - flexibleMinimum)
|
|
575
604
|
for (position, candidate) in candidates.enumerated() {
|
|
576
605
|
let rest = candidates[(position + 1)...]
|
|
577
606
|
let peers = rest.prefix { $0.priority == candidate.priority }.count + 1
|
|
@@ -590,7 +619,8 @@ private struct StackConfiguration {
|
|
|
590
619
|
}
|
|
591
620
|
|
|
592
621
|
/// Flexible children share the space left by the others.
|
|
593
|
-
/// A higher priority goes first
|
|
622
|
+
/// A higher priority goes first, and leaves room for the minimum of every child after it, as in `HStack`.
|
|
623
|
+
/// A `Spacer` reports the lowest priority, so it keeps its minimum length.
|
|
594
624
|
/// Among equals, the least flexible goes first, so a capped child leaves the rest to a `Spacer`.
|
|
595
625
|
private func growChildren(
|
|
596
626
|
_ children: inout [MeasuredChild],
|
|
@@ -611,7 +641,9 @@ private struct StackConfiguration {
|
|
|
611
641
|
var remaining = max(0, offeredMain - fixedMain - spacings.reduce(0, +))
|
|
612
642
|
for (position, index) in order.enumerated() {
|
|
613
643
|
let peers = order[(position + 1)...].prefix { children[$0].priority == children[index].priority }.count + 1
|
|
614
|
-
let
|
|
644
|
+
let laterMinimum = order[(position + peers)...].reduce(CGFloat(0)) { $0 + children[$1].minMain }
|
|
645
|
+
let available = max(0, remaining - laterMinimum)
|
|
646
|
+
let share = peers == 1 ? available : (available / CGFloat(peers)).rounded(.down)
|
|
615
647
|
let proposal = proposedSize(main: share, cross: children[index].crossProposal, axis: axis)
|
|
616
648
|
let size = subviews[index].sizeThatFits(proposal)
|
|
617
649
|
children[index].size = size
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/ui",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.28",
|
|
4
4
|
"description": "A collection of UI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Jetpack Compose",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
143
|
"@babel/core": "^7.26.0",
|
|
144
|
-
"@expo/internal-scripts": "58.0.
|
|
144
|
+
"@expo/internal-scripts": "58.0.6",
|
|
145
145
|
"@playwright/test": "^1.59.0",
|
|
146
146
|
"@testing-library/react": "^16.3.0",
|
|
147
147
|
"@testing-library/react-native": "^14.0.1",
|
|
@@ -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 {
|