@expo/ui 57.0.16 → 57.0.18

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 (105) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/ui/DatePickerView.kt +31 -20
  4. package/android/src/main/java/expo/modules/ui/DateRangePickerView.kt +191 -0
  5. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +17 -0
  6. package/android/src/main/java/expo/modules/ui/RadioButtonView.kt +23 -1
  7. package/android/src/main/java/expo/modules/ui/menu/DropdownMenu.kt +2 -0
  8. package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +2 -1
  9. package/build/community/bottom-sheet/BottomSheet.android.d.ts.map +1 -1
  10. package/build/community/bottom-sheet/BottomSheet.ios.d.ts.map +1 -1
  11. package/build/jetpack-compose/DatePicker/index.d.ts +88 -0
  12. package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
  13. package/build/jetpack-compose/DropdownMenu/index.d.ts +7 -0
  14. package/build/jetpack-compose/DropdownMenu/index.d.ts.map +1 -1
  15. package/build/jetpack-compose/RadioButton/index.d.ts +19 -0
  16. package/build/jetpack-compose/RadioButton/index.d.ts.map +1 -1
  17. package/build/swift-ui/Button/index.d.ts +3 -1
  18. package/build/swift-ui/Button/index.d.ts.map +1 -1
  19. package/build/swift-ui/NavigationDestination/index.d.ts +30 -0
  20. package/build/swift-ui/NavigationDestination/index.d.ts.map +1 -0
  21. package/build/swift-ui/NavigationLink/index.d.ts +32 -0
  22. package/build/swift-ui/NavigationLink/index.d.ts.map +1 -0
  23. package/build/swift-ui/NavigationStack/index.d.ts +45 -0
  24. package/build/swift-ui/NavigationStack/index.d.ts.map +1 -0
  25. package/build/swift-ui/Toolbar/index.d.ts +40 -0
  26. package/build/swift-ui/Toolbar/index.d.ts.map +1 -0
  27. package/build/swift-ui/index.d.ts +4 -0
  28. package/build/swift-ui/index.d.ts.map +1 -1
  29. package/build/swift-ui/modifiers/containerBackground.d.ts +9 -4
  30. package/build/swift-ui/modifiers/containerBackground.d.ts.map +1 -1
  31. package/build/swift-ui/modifiers/index.d.ts +47 -10
  32. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  33. package/build/swift-ui/modifiers/presentationModifiers.d.ts +6 -3
  34. package/build/swift-ui/modifiers/presentationModifiers.d.ts.map +1 -1
  35. package/expo-module.config.json +1 -1
  36. package/ios/Button/Button.swift +13 -0
  37. package/ios/Button/ButtonProps.swift +6 -0
  38. package/ios/ExpoUIModule.swift +4 -0
  39. package/ios/Modifiers/ContainerBackgroundModifier.swift +4 -4
  40. package/ios/Modifiers/PresentationModifiers.swift +3 -3
  41. package/ios/Modifiers/ScrollClipDisabledModifier.swift +16 -0
  42. package/ios/Modifiers/ViewModifierRegistry.swift +35 -8
  43. package/ios/NavigationLinkView.swift +22 -0
  44. package/ios/NavigationStackView.swift +63 -0
  45. package/ios/SlotView.swift +5 -0
  46. package/ios/ToolbarView.swift +33 -0
  47. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{57.0.16/expo.modules.ui-57.0.16-sources.jar → 57.0.18/expo.modules.ui-57.0.18-sources.jar} +0 -0
  48. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18-sources.jar.md5 +1 -0
  49. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18-sources.jar.sha1 +1 -0
  50. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18-sources.jar.sha256 +1 -0
  51. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18-sources.jar.sha512 +1 -0
  52. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.aar +0 -0
  53. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.aar.md5 +1 -0
  54. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.aar.sha1 +1 -0
  55. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.aar.sha256 +1 -0
  56. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.aar.sha512 +1 -0
  57. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{57.0.16/expo.modules.ui-57.0.16.module → 57.0.18/expo.modules.ui-57.0.18.module} +22 -22
  58. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.module.md5 +1 -0
  59. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.module.sha1 +1 -0
  60. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.module.sha256 +1 -0
  61. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.module.sha512 +1 -0
  62. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{57.0.16/expo.modules.ui-57.0.16.pom → 57.0.18/expo.modules.ui-57.0.18.pom} +1 -1
  63. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.pom.md5 +1 -0
  64. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.pom.sha1 +1 -0
  65. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.pom.sha256 +1 -0
  66. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.18/expo.modules.ui-57.0.18.pom.sha512 +1 -0
  67. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  68. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  69. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  70. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  71. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  72. package/package.json +3 -3
  73. package/spm.config.json +1 -1
  74. package/src/community/bottom-sheet/BottomSheet.android.tsx +5 -3
  75. package/src/community/bottom-sheet/BottomSheet.ios.tsx +4 -3
  76. package/src/jetpack-compose/DatePicker/index.tsx +156 -0
  77. package/src/jetpack-compose/DropdownMenu/index.tsx +9 -0
  78. package/src/jetpack-compose/RadioButton/index.tsx +20 -0
  79. package/src/swift-ui/Button/index.tsx +3 -1
  80. package/src/swift-ui/NavigationDestination/index.tsx +39 -0
  81. package/src/swift-ui/NavigationLink/index.tsx +51 -0
  82. package/src/swift-ui/NavigationStack/index.tsx +75 -0
  83. package/src/swift-ui/Toolbar/index.tsx +64 -0
  84. package/src/swift-ui/index.tsx +4 -0
  85. package/src/swift-ui/modifiers/containerBackground.ts +10 -5
  86. package/src/swift-ui/modifiers/index.ts +67 -9
  87. package/src/swift-ui/modifiers/presentationModifiers.ts +7 -4
  88. package/src/universal/transformStyle.ios.ts +2 -2
  89. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16-sources.jar.md5 +0 -1
  90. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16-sources.jar.sha1 +0 -1
  91. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16-sources.jar.sha256 +0 -1
  92. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16-sources.jar.sha512 +0 -1
  93. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.aar +0 -0
  94. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.aar.md5 +0 -1
  95. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.aar.sha1 +0 -1
  96. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.aar.sha256 +0 -1
  97. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.aar.sha512 +0 -1
  98. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.module.md5 +0 -1
  99. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.module.sha1 +0 -1
  100. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.module.sha256 +0 -1
  101. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.module.sha512 +0 -1
  102. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.pom.md5 +0 -1
  103. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.pom.sha1 +0 -1
  104. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.pom.sha256 +0 -1
  105. package/local-maven-repo/expo/modules/ui/expo.modules.ui/57.0.16/expo.modules.ui-57.0.16.pom.sha512 +0 -1
@@ -3,7 +3,7 @@ import {
3
3
  createModifierWithEventListener,
4
4
  type ModifierConfig,
5
5
  } from './createModifier';
6
- import type { Color } from './types';
6
+ import { resolveShapeStyle, type ShapeStyle } from './shapeStyle';
7
7
 
8
8
  /**
9
9
  * Presentation detent type for controlling sheet heights.
@@ -89,13 +89,16 @@ export const presentationBackgroundInteraction = (
89
89
  * Sets the background of a sheet presentation. Paints the entire sheet chrome
90
90
  * including the drag-indicator zone and home-indicator safe-area inset, which
91
91
  * a regular `background()` modifier cannot reach.
92
- * @param color - The background color.
92
+ *
93
+ * > **Note:** iOS 26 renders a material as a flat color rather than a translucent blur.
94
+ * @param style - Any [`ShapeStyle`](#shapestyle): a color, a hierarchical style, a material, or a gradient.
93
95
  * @platform ios 16.4+
96
+ * @platform tvos 16.4+
94
97
  * @see Official [SwiftUI
95
98
  documentation](https://developer.apple.com/documentation/swiftui/view/presentationbackground(_:)).
96
99
  */
97
- export const presentationBackground = (color: Color) =>
98
- createModifier('presentationBackground', { color });
100
+ export const presentationBackground = (style: ShapeStyle) =>
101
+ createModifier('presentationBackground', { style: resolveShapeStyle(style) });
99
102
 
100
103
  /**
101
104
  * Disables interactive dismissal of a sheet.
@@ -131,12 +131,12 @@ export function transformToModifiers(
131
131
 
132
132
  // Background (fills the frame area including padding)
133
133
  if (style.backgroundColor) {
134
- mods.push(background(String(style.backgroundColor)));
134
+ mods.push(background(style.backgroundColor));
135
135
  }
136
136
 
137
137
  // Border (before clip so the clip rounds the border corners too)
138
138
  if (style.borderWidth != null && style.borderColor != null) {
139
- mods.push(border({ color: String(style.borderColor), width: style.borderWidth }));
139
+ mods.push(border({ content: style.borderColor, width: style.borderWidth }));
140
140
  }
141
141
 
142
142
  // Clip (border radius — rounds both background and border)
@@ -1 +0,0 @@
1
- 6b28263e7e0227478fe261eeffb9f640dced8ca0
@@ -1 +0,0 @@
1
- 36bbbdb98934c3b0ecf275049cb2012dcb65ad2d329fee1f7e42428dcb49da04
@@ -1 +0,0 @@
1
- 99fa1b7ecf29945c1331833c23ab82c3717bea6a43f8056dacf7179a8eb86b18b7d1511838585debdaa6df79b9ea528e8af0babce933a03bd606838ef8747b7a
@@ -1 +0,0 @@
1
- a14f54eee92691240a7cd6a83f944b0ba11733a0
@@ -1 +0,0 @@
1
- 478029e9cf52a0e86909c248a99329f7e3488a65fc3ac06bce0fbf614f5553f1
@@ -1 +0,0 @@
1
- 5e177e8e0e7abb84c61422d42bd006f13589886297c6835028fd8df1be8a86bac8415dff355cd4d29abe28b209eca4171c32b5ef5552f46d71c2fc39a8f2a9fd
@@ -1 +0,0 @@
1
- e8be172ae1de0c69a4721b510ad4b2a57f38d0d7
@@ -1 +0,0 @@
1
- 606fea92fbb5bee94b622a8c8c181f4c7a092d8b495fbc69a5b78efe602667fd
@@ -1 +0,0 @@
1
- 29813d4039bcdd201463695c4dc7c25cd2a542a3e3b18d8a5dc483cd9ee8e654edcf8e87f896a44c31548e845e3f0b562440200ec50c23dcba4faf29e7918436
@@ -1 +0,0 @@
1
- ba7bbd6ac7336e57e6f2bff3bbf73cb50e280e27
@@ -1 +0,0 @@
1
- 7a5ff13f5a7f7b543453f3ca4d75fc04c726c75bd6ab837043af8100f6154adb
@@ -1 +0,0 @@
1
- 63a8a73c453fe98411f22786180631b84d8299418a6eded64c4a4b9df88017f60e8812a4d658d050ac0e9f4e79434cbb486799d5840b7a552978e24692160173