@expo/ui 57.0.20 → 57.0.22

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.
Files changed (111) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/ui/DatePickerView.kt +1 -0
  4. package/android/src/main/java/expo/modules/ui/HostView.kt +7 -1
  5. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +34 -5
  6. package/android/src/main/java/expo/modules/ui/SemanticsModifier.kt +2 -1
  7. package/build/community/datetime-picker/DateTimePicker.android.d.ts.map +1 -1
  8. package/build/community/datetime-picker/utils.d.ts +11 -0
  9. package/build/community/datetime-picker/utils.d.ts.map +1 -0
  10. package/build/community/picker/Picker.android.d.ts.map +1 -1
  11. package/build/jetpack-compose/modifiers/index.d.ts +33 -6
  12. package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
  13. package/build/swift-ui/ArrangementView/index.d.ts +49 -0
  14. package/build/swift-ui/ArrangementView/index.d.ts.map +1 -0
  15. package/build/swift-ui/index.d.ts +1 -0
  16. package/build/swift-ui/index.d.ts.map +1 -1
  17. package/build/swift-ui/modifiers/animation/index.d.ts +6 -1
  18. package/build/swift-ui/modifiers/animation/index.d.ts.map +1 -1
  19. package/build/swift-ui/modifiers/animation/types.d.ts +15 -1
  20. package/build/swift-ui/modifiers/animation/types.d.ts.map +1 -1
  21. package/build/swift-ui/modifiers/arrangementModifiers.d.ts +110 -0
  22. package/build/swift-ui/modifiers/arrangementModifiers.d.ts.map +1 -0
  23. package/build/swift-ui/modifiers/containerBackground.d.ts +2 -2
  24. package/build/swift-ui/modifiers/index.d.ts +40 -2
  25. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  26. package/build/swift-ui/modifiers/presentationModifiers.d.ts +8 -0
  27. package/build/swift-ui/modifiers/presentationModifiers.d.ts.map +1 -1
  28. package/build/universal/State.android.d.ts +1 -3
  29. package/build/universal/State.android.d.ts.map +1 -1
  30. package/build/universal/State.d.ts +2 -3
  31. package/build/universal/State.d.ts.map +1 -1
  32. package/build/universal/State.ios.d.ts +1 -3
  33. package/build/universal/State.ios.d.ts.map +1 -1
  34. package/build/universal/Switch/index.android.d.ts.map +1 -1
  35. package/build/universal/transformStyle.ios.d.ts.map +1 -1
  36. package/build/universal/types.d.ts +24 -0
  37. package/build/universal/types.d.ts.map +1 -1
  38. package/expo-module.config.json +1 -1
  39. package/ios/ArrangementViewView.swift +40 -0
  40. package/ios/ExpoUIModule.swift +1 -1
  41. package/ios/Modifiers/AnimationConfig.swift +20 -0
  42. package/ios/Modifiers/ArrangementModifiers.swift +157 -0
  43. package/ios/Modifiers/ContainerBackgroundModifier.swift +26 -13
  44. package/ios/Modifiers/PreferredColorSchemeModifier.swift +12 -0
  45. package/ios/Modifiers/PresentationModifiers.swift +10 -0
  46. package/ios/Modifiers/View+ModifierArray.swift +3 -3
  47. package/ios/Modifiers/ViewModifierRegistry.swift +120 -9
  48. package/ios/Modifiers/WidgetKitModifiers.swift +13 -0
  49. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{57.0.20/expo.modules.ui-57.0.20-sources.jar → 57.0.22/expo.modules.ui-57.0.22-sources.jar} +0 -0
  50. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22-sources.jar.md5 +1 -0
  51. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22-sources.jar.sha1 +1 -0
  52. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22-sources.jar.sha256 +1 -0
  53. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22-sources.jar.sha512 +1 -0
  54. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.aar +0 -0
  55. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.aar.md5 +1 -0
  56. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.aar.sha1 +1 -0
  57. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.aar.sha256 +1 -0
  58. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.aar.sha512 +1 -0
  59. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{57.0.20/expo.modules.ui-57.0.20.module → 57.0.22/expo.modules.ui-57.0.22.module} +22 -22
  60. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.module.md5 +1 -0
  61. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.module.sha1 +1 -0
  62. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.module.sha256 +1 -0
  63. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.module.sha512 +1 -0
  64. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{57.0.20/expo.modules.ui-57.0.20.pom → 57.0.22/expo.modules.ui-57.0.22.pom} +1 -1
  65. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.pom.md5 +1 -0
  66. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.pom.sha1 +1 -0
  67. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.pom.sha256 +1 -0
  68. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.22/expo.modules.ui-57.0.22.pom.sha512 +1 -0
  69. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  70. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  71. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  72. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  73. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  74. package/package.json +4 -4
  75. package/src/community/datetime-picker/DateTimePicker.android.tsx +14 -4
  76. package/src/community/datetime-picker/utils.ts +21 -0
  77. package/src/community/picker/Picker.android.tsx +5 -0
  78. package/src/jetpack-compose/modifiers/index.ts +33 -4
  79. package/src/swift-ui/ArrangementView/index.tsx +70 -0
  80. package/src/swift-ui/index.tsx +1 -0
  81. package/src/swift-ui/modifiers/animation/index.ts +24 -11
  82. package/src/swift-ui/modifiers/animation/types.ts +18 -0
  83. package/src/swift-ui/modifiers/arrangementModifiers.ts +142 -0
  84. package/src/swift-ui/modifiers/containerBackground.ts +2 -2
  85. package/src/swift-ui/modifiers/index.ts +51 -1
  86. package/src/swift-ui/modifiers/presentationModifiers.ts +10 -0
  87. package/src/universal/State.android.ts +1 -1
  88. package/src/universal/State.ios.ts +1 -1
  89. package/src/universal/State.ts +12 -4
  90. package/src/universal/Switch/index.android.tsx +11 -2
  91. package/src/universal/transformStyle.ios.ts +5 -2
  92. package/src/universal/types.ts +27 -0
  93. package/ios/AccessoryWidgetBackgroundView.swift +0 -27
  94. package/ios/Modifiers/WidgetModifiers.swift +0 -70
  95. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20-sources.jar.md5 +0 -1
  96. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20-sources.jar.sha1 +0 -1
  97. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20-sources.jar.sha256 +0 -1
  98. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20-sources.jar.sha512 +0 -1
  99. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.aar +0 -0
  100. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.aar.md5 +0 -1
  101. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.aar.sha1 +0 -1
  102. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.aar.sha256 +0 -1
  103. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.aar.sha512 +0 -1
  104. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.module.md5 +0 -1
  105. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.module.sha1 +0 -1
  106. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.module.sha256 +0 -1
  107. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.module.sha512 +0 -1
  108. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.pom.md5 +0 -1
  109. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.pom.sha1 +0 -1
  110. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.pom.sha256 +0 -1
  111. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.20/expo.modules.ui-57.0.20.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,39 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 57.0.22 — 2026-10-06
14
+
15
+ ### 🎉 New features
16
+
17
+ - [android] Added `IntrinsicSize` support to the `width` modifier. ([#50693](https://github.com/expo/expo/pull/50693) by [@janicduplessis](https://github.com/janicduplessis))
18
+ - [iOS] Added the `preferredColorScheme` modifier, which sets the color scheme of a presentation such as `BottomSheet`, including its background. ([#50851](https://github.com/expo/expo/pull/50851) by [@nishan](https://github.com/intergalacticspacehighway))
19
+ - [iOS] Added the `navigationBarTitleDisplayMode` and `toolbarTitleDisplayMode` modifiers for controlling navigation and toolbar title presentation. ([#50687](https://github.com/expo/expo/pull/50687) by [@0x5bfa](https://github.com/0x5bfa))
20
+ - [iOS] Added the `smooth`, `snappy`, and `bouncy` spring presets to `Animation`. Like their SwiftUI counterparts, they take an optional `duration` and `extraBounce`. ([#50984](https://github.com/expo/expo/pull/50984) by [@Den1Marshall](https://github.com/Den1Marshall))
21
+ - [iOS] Add `ArrangementView` component and `arrangementViewStyle`, `splitArrangementLayoutRatio`, `splitArrangementLayoutSize`, `splitArrangementFixedLayoutSize`, and `overlayArrangementEdge` modifiers. ([#50893](https://github.com/expo/expo/pull/50893) by [@nishan](https://github.com/intergalacticspacehighway))
22
+
23
+ ### 🐛 Bug fixes
24
+
25
+ - [Android] Fix the community `DateTimePicker` reading `value` as a UTC day while `minimumDate`/`maximumDate` use the device-local day. In non-UTC timezones the picker could select and return the wrong day — one before `minimumDate`. `value`'s local calendar day is now sent to Material3 as a UTC day, and the picked day is returned as a local date that keeps `value`'s time of day. ([#50941](https://github.com/expo/expo/pull/50941) by [@expo-bot](https://github.com/expo-bot))
26
+ - [Android] Fix `TimePickerDialog` ignoring `elementColors.containerColor`. ([#51116](https://github.com/expo/expo/pull/51116) by [@expo-bot](https://github.com/expo-bot))
27
+ - [Android] Fix an intermittent `performMeasureAndLayout called during measure layout` crash that tore down the ReactHost when a `Host` with `matchContents` was measured while react-native-reanimated was active. The `onLayoutContent` event is now posted after the measure pass instead of emitted inside it. ([#49933](https://github.com/expo/expo/pull/49933) by [@expo-bot](https://github.com/expo-bot))
28
+ - [android] Fix `Switch` label rendering one letter per line inside a `Host` with `matchContents`. ([#50693](https://github.com/expo/expo/pull/50693) by [@janicduplessis](https://github.com/janicduplessis))
29
+ - [android] Fix `community/picker` `Picker` not updating its displayed label after a selection or a `selectedValue` change. ([#50801](https://github.com/expo/expo/pull/50801) by [@RaddishIoW](https://github.com/RaddishIoW))
30
+ - [iOS] Fixed `delay()` and `repeat()` modifying the animation they are called on. Chaining from a shared animation, such as `Animation.default` or one stored in a constant, no longer changes that animation everywhere else it is used. ([#50927](https://github.com/expo/expo/pull/50927) by [@Den1Marshall](https://github.com/Den1Marshall))
31
+ - [iOS] Stop linking WidgetKit into apps that use `@expo/ui` without widgets. The `widgetURL`, `activityBackgroundTint`, `widgetAccentedRenderingMode`, and `containerBackground` (`widget` placement) modifiers and the `AccessoryWidgetBackground` view now take effect only inside `expo-widgets` widgets and Live Activities. ([#50786](https://github.com/expo/expo/pull/50786) by [@nishan](https://github.com/intergalacticspacehighway))
32
+ - [iOS][tvOS] Fix the tvOS build failing to compile with `'inlineLarge' is unavailable in tvOS` when `@expo/ui` is linked. `ToolbarTitleDisplayMode.inlineLarge` is unavailable on tvOS, but the `inlineLarge` case of the `toolbarTitleDisplayMode` modifier was only gated behind an OS version check that listed `tvOS 18.0`, so it was compiled into the tvOS slice. It is now guarded by platform and returns `nil` on tvOS. The same check also required iOS 18.0 / macOS 15.0, so `inlineLarge` silently fell back to `automatic` on iOS 17 and macOS 14 even though it is available there; it now applies on those versions. ([#51007](https://github.com/expo/expo/pull/51007) by [@gabrieldonadel](https://github.com/gabrieldonadel))
33
+
34
+ ## 57.0.21 — 2026-09-29
35
+
36
+ ### 🎉 New features
37
+
38
+ - Added `get()` and `set()` to the universal `ObservableState` type and to the web implementation of `useNativeState`, as React Compiler-compliant alternatives to `.value`. ([#50684](https://github.com/expo/expo/pull/50684) by [@Den1Marshall](https://github.com/Den1Marshall))
39
+ - [iOS] Added `presentationCornerRadius` modifier. ([#50632](https://github.com/expo/expo/pull/50632) by [@shanelord01](https://github.com/shanelord01))
40
+ - [Android] Add `contentDescription` to the `semantics` modifier, so TalkBack can announce a label other than the visible content. ([#50688](https://github.com/expo/expo/pull/50688) by [@enavermate](https://github.com/enavermate))
41
+
42
+ ### 🐛 Bug fixes
43
+
44
+ - [iOS] Fixed `onPress` on universal components such as `Row` and `Column` not firing when tapping empty space, such as a `Spacer`. ([#50599](https://github.com/expo/expo/pull/50599) by [@expo-bot](https://github.com/expo-bot))
45
+
13
46
  ## 57.0.20 — 2026-09-24
14
47
 
15
48
  ### 🎉 New features
@@ -12,13 +12,13 @@ apply plugin: 'expo-module-gradle-plugin'
12
12
  apply plugin: 'org.jetbrains.kotlin.plugin.compose'
13
13
 
14
14
  group = 'expo.modules.ui'
15
- version = '57.0.20'
15
+ version = '57.0.22'
16
16
 
17
17
  android {
18
18
  namespace "expo.modules.ui"
19
19
  defaultConfig {
20
20
  versionCode 1
21
- versionName "57.0.20"
21
+ versionName "57.0.22"
22
22
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
23
23
  }
24
24
  buildFeatures {
@@ -443,6 +443,7 @@ fun ExpoTimePickerDialogContent(props: TimePickerDialogProps, onDateSelected: (D
443
443
  Text(props.dismissButtonLabel ?: stringResource(android.R.string.cancel))
444
444
  }
445
445
  },
446
+ containerColor = timePickerColors.containerColor,
446
447
  text = {
447
448
  TimePicker(
448
449
  state = state,
@@ -232,7 +232,13 @@ internal class HostView(context: Context, appContext: AppContext) :
232
232
  shadowNodeProxy.setStyleSize(styleWidth?.toDouble(), styleHeight?.toDouble())
233
233
  }
234
234
 
235
- onLayoutContent(LayoutContentEvent(width.toDouble(), height.toDouble()))
235
+ // `onSizeChanged` runs inside the Compose measure pass. Emitting the event here reaches
236
+ // Fabric event listeners synchronously (e.g. reanimated's `onEventDispatch` hook), which
237
+ // can flush mount items and re-enter `onMeasure` of a view that is mid-measure — Compose
238
+ // then throws "performMeasureAndLayout called during measure layout" and takes down the
239
+ // ReactHost. Post the dispatch so it runs after the measure pass completes.
240
+ // See https://github.com/expo/expo/issues/47625.
241
+ post { onLayoutContent(LayoutContentEvent(width.toDouble(), height.toDouble())) }
236
242
  }
237
243
  }
238
244
 
@@ -19,6 +19,7 @@ import androidx.compose.foundation.combinedClickable
19
19
  import androidx.compose.foundation.horizontalScroll
20
20
  import androidx.compose.foundation.rememberScrollState
21
21
  import androidx.compose.foundation.verticalScroll
22
+ import androidx.compose.foundation.layout.IntrinsicSize
22
23
  import androidx.compose.foundation.layout.fillMaxHeight
23
24
  import androidx.compose.foundation.layout.fillMaxSize
24
25
  import androidx.compose.foundation.layout.fillMaxWidth
@@ -63,6 +64,7 @@ import androidx.compose.ui.layout.onVisibilityChanged
63
64
  import androidx.compose.ui.layout.positionInWindow
64
65
  import androidx.compose.ui.platform.LocalDensity
65
66
  import androidx.compose.ui.semantics.Role
67
+ import androidx.compose.ui.semantics.contentDescription
66
68
  import androidx.compose.ui.semantics.contentType
67
69
  import androidx.compose.ui.semantics.semantics
68
70
  import androidx.compose.ui.unit.DpOffset
@@ -72,6 +74,7 @@ import expo.modules.kotlin.AppContext
72
74
  import expo.modules.kotlin.records.Field
73
75
  import expo.modules.kotlin.records.Record
74
76
  import expo.modules.kotlin.records.recordFromMap
77
+ import expo.modules.kotlin.types.Either
75
78
  import expo.modules.kotlin.types.Enumerable
76
79
  import expo.modules.kotlin.views.ComposableScope
77
80
  import expo.modules.ui.convertibles.AlignmentType
@@ -126,6 +129,21 @@ internal data class WidthParams(
126
129
  @Field val width: Int = 0
127
130
  ) : Record
128
131
 
132
+ internal enum class IntrinsicSizeType(val value: String) : Enumerable {
133
+ MIN("min"),
134
+ MAX("max");
135
+
136
+ fun toComposeIntrinsicSize(): IntrinsicSize = when (this) {
137
+ MIN -> IntrinsicSize.Min
138
+ MAX -> IntrinsicSize.Max
139
+ }
140
+ }
141
+
142
+ @OptimizedRecord
143
+ internal data class ComposeWidthParams(
144
+ @Field val width: Either<Int, IntrinsicSizeType>? = null
145
+ ) : Record
146
+
129
147
  @OptimizedRecord
130
148
  internal data class HeightParams(
131
149
  @Field val height: Int = 0
@@ -452,8 +470,12 @@ object ModifierRegistry {
452
470
  }
453
471
 
454
472
  register("width") { map, _, _, _ ->
455
- val params = recordFromMap<WidthParams>(map)
456
- Modifier.width(params.width.dp)
473
+ val width = recordFromMap<ComposeWidthParams>(map).width
474
+ if (width?.`is`(IntrinsicSizeType::class) == true) {
475
+ Modifier.width(width.second().toComposeIntrinsicSize())
476
+ } else {
477
+ Modifier.width((width?.first() ?: 0).dp)
478
+ }
457
479
  }
458
480
 
459
481
  register("height") { map, _, _, _ ->
@@ -657,9 +679,16 @@ object ModifierRegistry {
657
679
 
658
680
  register("semantics") { map, _, _, _ ->
659
681
  val params = recordFromMap<SemanticsParams>(map)
660
- params.contentType.toContentType()?.let { ct ->
661
- Modifier.semantics { contentType = ct }
662
- } ?: Modifier
682
+ val type = params.contentType.toContentType()
683
+ val description = params.contentDescription
684
+ if (type == null && description == null) {
685
+ Modifier
686
+ } else {
687
+ Modifier.semantics {
688
+ type?.let { contentType = it }
689
+ description?.let { contentDescription = it }
690
+ }
691
+ }
663
692
  }
664
693
 
665
694
  register("clip") { map, _, _, _ ->
@@ -7,7 +7,8 @@ import expo.modules.kotlin.types.OptimizedRecord
7
7
 
8
8
  @OptimizedRecord
9
9
  internal data class SemanticsParams(
10
- @Field val contentType: String? = null
10
+ @Field val contentType: String? = null,
11
+ @Field val contentDescription: String? = null
11
12
  ) : Record
12
13
 
13
14
  internal fun String?.toContentType(): ContentType? = when (this) {
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimePicker.android.d.ts","sourceRoot":"","sources":["../../../src/community/datetime-picker/DateTimePicker.android.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAmCjF,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CA0FxD"}
1
+ {"version":3,"file":"DateTimePicker.android.d.ts","sourceRoot":"","sources":["../../../src/community/datetime-picker/DateTimePicker.android.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAoCjF,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAmGxD"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Returns the ISO string of the UTC midnight of `value`'s local calendar day, so Material3 shows
3
+ * the same day the user sees locally.
4
+ */
5
+ export declare function localDateToUtcDayISOString(value: Date): string;
6
+ /**
7
+ * Converts the UTC-midnight day reported by Material3 back into a local date, keeping the time of
8
+ * day from `timeOfDay`.
9
+ */
10
+ export declare function utcDayToLocalDate(utcDay: Date, timeOfDay: Date): Date;
11
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/community/datetime-picker/utils.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAE9D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,CAIrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.android.d.ts","sourceRoot":"","sources":["../../../src/community/picker/Picker.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAYjB;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,2CA8CtE;yBA9Ce,MAAM"}
1
+ {"version":3,"file":"Picker.android.d.ts","sourceRoot":"","sources":["../../../src/community/picker/Picker.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAYjB;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,2CAmDtE;yBAnDe,MAAM"}
@@ -38,10 +38,25 @@ export declare const fillMaxWidth: (fraction?: number) => import("./createModifi
38
38
  */
39
39
  export declare const fillMaxHeight: (fraction?: number) => import("./createModifier").ModifierConfig;
40
40
  /**
41
- * Sets the exact width of the view.
42
- * @param value - Width in dp.
41
+ * Intrinsic width values for the `width` modifier. `Min` is the smallest width at which the content
42
+ * still draws correctly, and `Max` is the width the content needs when nothing limits it.
43
43
  */
44
- export declare const width: (value: number) => import("./createModifier").ModifierConfig;
44
+ export declare const IntrinsicSize: {
45
+ readonly Min: "min";
46
+ readonly Max: "max";
47
+ };
48
+ export type IntrinsicSize = (typeof IntrinsicSize)[keyof typeof IntrinsicSize];
49
+ /**
50
+ * Sets the width of the view to an exact value, or to the minimum or maximum intrinsic width of its
51
+ * content. The incoming constraints can still make the view narrower or wider than that width.
52
+ * @param value - Width in dp, or an `IntrinsicSize`. `IntrinsicSize.Min` uses the minimum intrinsic
53
+ * width, the smallest width at which the content still draws correctly (for a text, its widest word).
54
+ * `IntrinsicSize.Max` uses the maximum intrinsic width, the width the content needs when nothing
55
+ * limits it (for a text, a single line).
56
+ * @see [Compose `width(IntrinsicSize)` modifier](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/width.modifier#(androidx.compose.ui.Modifier).width(androidx.compose.foundation.layout.IntrinsicSize))
57
+ * @see [Intrinsic measurements in Compose layouts](https://developer.android.com/develop/ui/compose/layouts/intrinsic-measurements)
58
+ */
59
+ export declare const width: (value: number | IntrinsicSize) => import("./createModifier").ModifierConfig;
45
60
  /**
46
61
  * Sets the exact height of the view.
47
62
  * @param value - Height in dp.
@@ -303,11 +318,23 @@ export declare const onGloballyPositioned: (handler: (layout: {
303
318
  */
304
319
  export declare const testID: (tag: string) => import("./createModifier").ModifierConfig;
305
320
  /**
306
- * Applies semantic properties. Wraps `Modifier.semantics { ... }`.
321
+ * Options for the `semantics` modifier.
307
322
  */
308
- export declare const semantics: (params: {
323
+ export type SemanticsConfig = {
324
+ /**
325
+ * An autofill hint, such as `'email'` or `'password'`.
326
+ */
309
327
  contentType?: string;
310
- }) => import("./createModifier").ModifierConfig;
328
+ /**
329
+ * What accessibility services such as TalkBack announce for the element. Useful when the visible
330
+ * content does not read well aloud, as with an abbreviation or a glyph.
331
+ */
332
+ contentDescription?: string;
333
+ };
334
+ /**
335
+ * Applies semantic properties. Wraps `Modifier.semantics { ... }`.
336
+ */
337
+ export declare const semantics: (params: SemanticsConfig) => import("./createModifier").ModifierConfig;
311
338
  type MaterialShapeName = 'cookie4Sided' | 'cookie6Sided' | 'cookie7Sided' | 'cookie9Sided' | 'cookie12Sided' | 'clover4Leaf' | 'clover8Leaf' | 'softBurst' | 'boom' | 'oval' | 'pill' | 'triangle' | 'diamond' | 'pentagon' | 'sunny' | 'verySunny' | 'fan' | 'pixelCircle' | 'pixelTriangle' | 'ghostish' | 'bun' | 'heart' | 'arch' | 'slanted' | 'puffy' | 'puffyDiamond';
312
339
  type CornerRadii = {
313
340
  topStart?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/modifiers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,SAAS,GAEjB,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,WAAW,GACX,aAAa,GACb,cAAc,GACd,WAAW,GAEX,KAAK,GACL,kBAAkB,GACl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IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IACE,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GACD;IACE,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GACD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM;eACmB,YAAY;YAClB,YAAY;4BAClB,MAAM,GAAG,WAAW,KAAG,YAAY;wBAIvC,MAAM,GAAG,WAAW,KAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,YAAY,8CAAsC,CAAC;AAM/E;;;;GAIG;AACH,eAAO,MAAM,cAAc,iDAAyC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,iDAA2C,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { type CommonViewModifierProps } from '../types';
2
+ export interface ArrangementViewProps extends CommonViewModifierProps {
3
+ /**
4
+ * The views to arrange. Provide `ArrangementView.Primary` and `ArrangementView.Secondary`.
5
+ */
6
+ children: React.ReactNode;
7
+ }
8
+ /**
9
+ * The primary view of the arrangement.
10
+ */
11
+ declare function ArrangementViewPrimary(props: {
12
+ children: React.ReactNode;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ /**
15
+ * The secondary view of the arrangement.
16
+ */
17
+ declare function ArrangementViewSecondary(props: {
18
+ children: React.ReactNode;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ /**
21
+ * ArrangementView uses the native [ArrangementView](https://developer.apple.com/documentation/swiftui/arrangementview) view.
22
+ *
23
+ * A view that arranges primary and secondary content using an adaptive layout that responds to
24
+ * the environment.
25
+ *
26
+ * > **Note:** Below iOS 27.1, the children render without a container.
27
+ * @example
28
+ * ```tsx
29
+ * <Host style={{ flex: 1 }}>
30
+ * <ArrangementView modifiers={[arrangementViewStyle('split')]}>
31
+ * <ArrangementView.Primary>
32
+ * <NowPlaying />
33
+ * </ArrangementView.Primary>
34
+ * <ArrangementView.Secondary>
35
+ * <Lyrics />
36
+ * </ArrangementView.Secondary>
37
+ * </ArrangementView>
38
+ * </Host>
39
+ * ```
40
+ * @platform ios 27.1+
41
+ * @platform tvos 27.1+
42
+ */
43
+ export declare function ArrangementView(props: ArrangementViewProps): import("react/jsx-runtime").JSX.Element;
44
+ export declare namespace ArrangementView {
45
+ var Primary: typeof ArrangementViewPrimary;
46
+ var Secondary: typeof ArrangementViewSecondary;
47
+ }
48
+ export {};
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ArrangementView/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB;IACnE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAOD;;GAEG;AACH,iBAAS,sBAAsB,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAEnE;AAED;;GAEG;AACH,iBAAS,wBAAwB,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAErE;AAKD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAW1D;yBAXe,eAAe"}
@@ -28,6 +28,7 @@ export * from './Menu';
28
28
  export * from './NavigationDestination';
29
29
  export * from './NavigationLink';
30
30
  export * from './NavigationSplitView';
31
+ export * from './ArrangementView';
31
32
  export * from './NavigationStack';
32
33
  export * from './Picker';
33
34
  export * from './ProgressView';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,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,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC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Ae,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { AnimationObject, ChainableAnimationType, InterpolatingSpringAnimationParams, SpringAnimationParams, TimingAnimationParams } from './types';
1
+ import type { AnimationObject, ChainableAnimationType, InterpolatingSpringAnimationParams, SpringAnimationParams, SpringPresetAnimationParams, TimingAnimationParams } from './types';
2
2
  /**
3
3
  * Built-in animation presets for the `animation` modifier.
4
4
  * Presets:
@@ -7,6 +7,8 @@ import type { AnimationObject, ChainableAnimationType, InterpolatingSpringAnimat
7
7
  * - `spring` accepts [`SpringAnimationParams`](#springanimationparams).
8
8
  * - `interpolatingSpring` accepts
9
9
  * [`InterpolatingSpringAnimationParams`](#interpolatingspringanimationparams).
10
+ * - Spring presets (`smooth`, `snappy`, `bouncy`) accept
11
+ * [`SpringPresetAnimationParams`](#springpresetanimationparams).
10
12
  * - Chaining returns [`ChainableAnimationType`](#chainableanimationtype).
11
13
  *
12
14
  * @example
@@ -35,6 +37,9 @@ export declare const Animation: {
35
37
  linear: (params?: TimingAnimationParams) => ChainableAnimationType;
36
38
  spring: (params?: SpringAnimationParams) => ChainableAnimationType;
37
39
  interpolatingSpring: (params?: InterpolatingSpringAnimationParams) => ChainableAnimationType;
40
+ smooth: (params?: SpringPresetAnimationParams) => ChainableAnimationType;
41
+ snappy: (params?: SpringPresetAnimationParams) => ChainableAnimationType;
42
+ bouncy: (params?: SpringPresetAnimationParams) => ChainableAnimationType;
38
43
  default: ChainableAnimationType;
39
44
  };
40
45
  declare function ChainableAnimation(animation: AnimationObject): ChainableAnimationType;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/swift-ui/modifiers/animation/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,kCAAkC,EAClC,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,SAAS;yBAEC,qBAAqB;sBAKxB,qBAAqB;uBAKpB,qBAAqB;sBAKtB,qBAAqB;sBAOrB,qBAAqB;mCASR,kCAAkC;;CAYlE,CAAC;AAEF,iBAAS,kBAAkB,CAAC,SAAS,EAAE,eAAe,GAAG,sBAAsB,CAc9E;AAED,eAAO,MAAM,SAAS,GACpB,iBAAiB,UAAU,CAAC,OAAO,kBAAkB,CAAC,EACtD,eAAe,MAAM,GAAG,OAAO,gCAGhC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/swift-ui/modifiers/animation/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,kCAAkC,EAClC,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,SAAS;yBAEC,qBAAqB;sBAKxB,qBAAqB;uBAKpB,qBAAqB;sBAKtB,qBAAqB;sBAOrB,qBAAqB;mCASR,kCAAkC;sBAU/C,2BAA2B;sBAM3B,2BAA2B;sBAM3B,2BAA2B;;CAQ9C,CAAC;AAEF,iBAAS,kBAAkB,CAAC,SAAS,EAAE,eAAe,GAAG,sBAAsB,CAM9E;AAED,eAAO,MAAM,SAAS,GACpB,iBAAiB,UAAU,CAAC,OAAO,kBAAkB,CAAC,EACtD,eAAe,MAAM,GAAG,OAAO,gCAGhC,CAAC"}
@@ -4,7 +4,7 @@ import { VALUE_SYMBOL } from './constants';
4
4
  * @hidden
5
5
  */
6
6
  export type AnimationObject = {
7
- type: 'easeInOut' | 'easeIn' | 'easeOut' | 'linear' | 'spring' | 'interpolatingSpring' | 'default';
7
+ type: 'easeInOut' | 'easeIn' | 'easeOut' | 'linear' | 'spring' | 'interpolatingSpring' | 'smooth' | 'snappy' | 'bouncy' | 'default';
8
8
  duration?: number;
9
9
  response?: number;
10
10
  dampingFraction?: number;
@@ -14,6 +14,7 @@ export type AnimationObject = {
14
14
  stiffness?: number;
15
15
  damping?: number;
16
16
  initialVelocity?: number;
17
+ extraBounce?: number;
17
18
  delay?: number;
18
19
  repeatCount?: number;
19
20
  autoreverses?: boolean;
@@ -72,6 +73,19 @@ export type InterpolatingSpringAnimationParams = {
72
73
  */
73
74
  bounce?: number;
74
75
  };
76
+ export type SpringPresetAnimationParams = {
77
+ /**
78
+ * The perceptual duration, which defines the pace of the spring (in seconds). This is
79
+ * approximately equal to the settling duration, but for very bouncy springs, it is the period of
80
+ * oscillation of the spring.
81
+ */
82
+ duration?: number;
83
+ /**
84
+ * Bounce added to the base bounce of the preset: 0 for `smooth`, 0.15 for `snappy`, and 0.3 for
85
+ * `bouncy`. Keep the total below 1: at 1 and above, the spring oscillates without settling.
86
+ */
87
+ extraBounce?: number;
88
+ };
75
89
  export type ChainableAnimationType = {
76
90
  /** Adds a delay before the animation starts (in seconds). */
77
91
  delay: (delay: number) => ChainableAnimationType;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/swift-ui/modifiers/animation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EACA,WAAW,GACX,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,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MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,6DAA6D;IAC7D,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,sBAAsB,CAAC;IACjD,uDAAuD;IACvD,MAAM,EAAE,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,sBAAsB,CAAC;IAC5F,CAAC,YAAY,CAAC,EAAE,MAAM,eAAe,CAAC;CACvC,CAAC"}
@@ -0,0 +1,110 @@
1
+ import { createModifier } from './createModifier';
2
+ /**
3
+ * A style that configures an `ArrangementView` with an arrangement.
4
+ * - `'automatic'`: The default style, which resolves to `'split'`.
5
+ * - `'split'`: An arrangement view style that places the primary and secondary views side by side along one or more axes.
6
+ * - `'overlay'`: An arrangement view style that layers the primary view over the secondary view in z-order.
7
+ */
8
+ export type ArrangementViewStyle = 'automatic' | 'split' | 'overlay';
9
+ /**
10
+ * Sets the style for arrangement views within this view.
11
+ * @param style - The style to apply.
12
+ * @param options - The `axes` the arrangement supports. With `'split'`, creates a split arrangement
13
+ * that supports the given axes. With `'overlay'`, creates an overlay arrangement that supports
14
+ * laying out its views along the given axes.
15
+ * @platform ios 27.1+
16
+ * @platform tvos 27.1+
17
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/arrangementviewstyle(_:)).
18
+ */
19
+ export declare function arrangementViewStyle(style: 'automatic'): ReturnType<typeof createModifier>;
20
+ export declare function arrangementViewStyle(style: 'split' | 'overlay', options?: {
21
+ axes?: 'horizontal' | 'vertical' | 'both';
22
+ }): ReturnType<typeof createModifier>;
23
+ /**
24
+ * The minimum, ideal, and maximum ratios for `splitArrangementLayoutRatio`.
25
+ */
26
+ export type SplitArrangementLayoutRatioParams = {
27
+ minHorizontal?: number;
28
+ idealHorizontal?: number;
29
+ maxHorizontal?: number;
30
+ minVertical?: number;
31
+ idealVertical?: number;
32
+ maxVertical?: number;
33
+ };
34
+ /**
35
+ * Sets the preferred size ratio for the content of `ArrangementView.Primary` or
36
+ * `ArrangementView.Secondary` in a split arrangement.
37
+ * @platform ios 27.1+
38
+ * @platform tvos 27.1+
39
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/splitarrangementlayoutratio(_:)).
40
+ */
41
+ export declare function splitArrangementLayoutRatio(ratio: number): ReturnType<typeof createModifier>;
42
+ /**
43
+ * Sets the size ratio for the content of `ArrangementView.Primary` or `ArrangementView.Secondary`
44
+ * in a split arrangement.
45
+ * @platform ios 27.1+
46
+ * @platform tvos 27.1+
47
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/splitarrangementlayoutratio(minhorizontal:idealhorizontal:maxhorizontal:minvertical:idealvertical:maxvertical:)).
48
+ */
49
+ export declare function splitArrangementLayoutRatio(ratios: SplitArrangementLayoutRatioParams): ReturnType<typeof createModifier>;
50
+ /**
51
+ * The minimum, ideal, and maximum sizes for `splitArrangementLayoutSize`.
52
+ */
53
+ export type SplitArrangementLayoutSizeParams = {
54
+ minWidth?: number;
55
+ idealWidth?: number;
56
+ maxWidth?: number;
57
+ minHeight?: number;
58
+ idealHeight?: number;
59
+ maxHeight?: number;
60
+ };
61
+ /**
62
+ * Sets the size constraints for the content of `ArrangementView.Primary` or
63
+ * `ArrangementView.Secondary` in a split arrangement.
64
+ * @platform ios 27.1+
65
+ * @platform tvos 27.1+
66
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/splitarrangementlayoutsize(minwidth:idealwidth:maxwidth:minheight:idealheight:maxheight:)).
67
+ */
68
+ export declare const splitArrangementLayoutSize: (constraints: SplitArrangementLayoutSizeParams) => import("./createModifier").ModifierConfig;
69
+ /**
70
+ * The split axes on which `splitArrangementFixedLayoutSize` prefers the ideal size of the view.
71
+ */
72
+ export type SplitArrangementFixedLayoutSizeParams = {
73
+ /**
74
+ * Whether to prefer a fixed width for the view in a horizontal split.
75
+ * @default true
76
+ */
77
+ horizontal?: boolean;
78
+ /**
79
+ * Whether to prefer a fixed height for the view in a vertical split.
80
+ * @default true
81
+ */
82
+ vertical?: boolean;
83
+ };
84
+ /**
85
+ * Sets the preferred size constraint for the content of `ArrangementView.Primary` or
86
+ * `ArrangementView.Secondary` in a split arrangement to the ideal size of the view within its
87
+ * container. The arrangement view prefers this size, but may resize to a smaller size depending on
88
+ * the priority of the view.
89
+ * @platform ios 27.1+
90
+ * @platform tvos 27.1+
91
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/splitarrangementfixedlayoutsize(horizontal:vertical:)).
92
+ */
93
+ export declare const splitArrangementFixedLayoutSize: (options?: SplitArrangementFixedLayoutSizeParams) => import("./createModifier").ModifierConfig;
94
+ /**
95
+ * Sets the horizontal edge that a view in an overlay arrangement occupies when the arrangement
96
+ * transitions to a horizontal layout.
97
+ * @platform ios 27.1+
98
+ * @platform tvos 27.1+
99
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/overlayarrangementedge(_:)).
100
+ */
101
+ export declare function overlayArrangementEdge(edge: 'leading' | 'trailing'): ReturnType<typeof createModifier>;
102
+ /**
103
+ * Sets the vertical edge that a view in an overlay arrangement occupies when the arrangement
104
+ * transitions to a vertical layout.
105
+ * @platform ios 27.1+
106
+ * @platform tvos 27.1+
107
+ * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/overlayarrangementedge(_:)-4tjwn).
108
+ */
109
+ export declare function overlayArrangementEdge(edge: 'top' | 'bottom'): ReturnType<typeof createModifier>;
110
+ //# sourceMappingURL=arrangementModifiers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrangementModifiers.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/modifiers/arrangementModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;AAErE;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5F,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,GAAG,SAAS,EAC1B,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAAA;CAAE,GACtD,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAQrC;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9F;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,iCAAiC,GACxC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAUrC;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GAAI,aAAa,gCAAgC,8CAC7B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG;IAClD;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,GAAI,UAAU,qCAAqC,8CACnC,CAAC;AAE7D;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,SAAS,GAAG,UAAU,GAC3B,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACrC;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -3,8 +3,8 @@ export type ContainerBackgroundPlacement = 'widget' | 'navigation' | 'navigation
3
3
  /**
4
4
  * Sets the container background of the enclosing container.
5
5
  *
6
- * > **Note:** `navigation` and `navigationSplitView` require iOS 18. On iOS 17 they fall back to
7
- * > the `widget` placement.
6
+ * > **Note:** `navigation` and `navigationSplitView` require iOS 18. The `widget` placement works
7
+ * > only in `expo-widgets` widgets, where the other placements fall back to it on iOS 17.
8
8
  *
9
9
  * @param style - Any [`ShapeStyle`](#shapestyle): a color, a hierarchical style, a material, or a gradient.
10
10
  * @param container - The type of container to apply the background to.