@expo/ui 58.0.24 → 58.0.25
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 +8 -0
- package/android/build.gradle +2 -2
- package/build/community/datetime-picker/DateTimePicker.android.js +8 -1
- package/build/community/datetime-picker/DateTimePicker.android.js.map +1 -1
- package/build/community/datetime-picker/types.d.ts +0 -1
- package/build/community/datetime-picker/types.js.map +1 -1
- package/build/universal/FieldGroup/FieldSection.android.js +32 -5
- package/build/universal/FieldGroup/FieldSection.android.js.map +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24.module → 58.0.25/expo.modules.ui-58.0.25.module} +7 -7
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24.pom → 58.0.25/expo.modules.ui-58.0.25.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha512 +1 -0
- package/package.json +2 -2
- package/src/community/datetime-picker/DateTimePicker.android.tsx +6 -3
- package/src/community/datetime-picker/types.tsx +0 -1
- package/src/universal/FieldGroup/FieldSection.android.tsx +28 -2
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.sha512 +0 -1
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24-sources.jar → 58.0.25/expo.modules.ui-58.0.25-sources.jar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24-sources.jar.md5 → 58.0.25/expo.modules.ui-58.0.25-sources.jar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24-sources.jar.sha1 → 58.0.25/expo.modules.ui-58.0.25-sources.jar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24-sources.jar.sha256 → 58.0.25/expo.modules.ui-58.0.25-sources.jar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24-sources.jar.sha512 → 58.0.25/expo.modules.ui-58.0.25-sources.jar.sha512} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24.aar → 58.0.25/expo.modules.ui-58.0.25.aar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24.aar.md5 → 58.0.25/expo.modules.ui-58.0.25.aar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24.aar.sha1 → 58.0.25/expo.modules.ui-58.0.25.aar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24.aar.sha256 → 58.0.25/expo.modules.ui-58.0.25.aar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.24/expo.modules.ui-58.0.24.aar.sha512 → 58.0.25/expo.modules.ui-58.0.25.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 58.0.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [Android] The community `DateTimePicker` with `presentation="inline"` no longer draws Material 3's container color, matching iOS. The view behind the picker now shows through. Previously, the inline picker always showed on a tinted surface. To keep that surface, use `DateTimePicker` from `@expo/ui/jetpack-compose` instead. ([#52323](https://github.com/expo/expo/pull/52323) by [@IGx89](https://github.com/IGx89))
|
|
8
|
+
- [Android] The community `DateTimePicker` now applies `themeVariant` to the inline picker and its dialogs. Previously, `themeVariant` worked only on iOS, and on Android the picker always followed the device color scheme. ([#52323](https://github.com/expo/expo/pull/52323) by [@IGx89](https://github.com/IGx89))
|
|
9
|
+
- [Android] Fix a `ListItem` inside `FieldGroup.Section` being rendered inside a second Material `ListItem`, which drew an inset inner card, made the row taller than other rows and shrank its tap target. The `ListItem` is now styled as the section's row, and its ripple follows the row's rounded shape. ([#51030](https://github.com/expo/expo/pull/51030) by [@Cedric921](https://github.com/Cedric921))
|
|
10
|
+
|
|
3
11
|
## 58.0.24
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/android/build.gradle
CHANGED
|
@@ -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 = '58.0.
|
|
15
|
+
version = '58.0.25'
|
|
16
16
|
|
|
17
17
|
android {
|
|
18
18
|
namespace "expo.modules.ui"
|
|
19
19
|
defaultConfig {
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName "58.0.
|
|
21
|
+
versionName "58.0.25"
|
|
22
22
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
23
23
|
}
|
|
24
24
|
buildFeatures {
|
|
@@ -24,7 +24,7 @@ function displayToAndroidVariant(display) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export function DateTimePicker(props) {
|
|
27
|
-
const { value, onChange, onValueChange, onDismiss: onDismissProp, mode = 'date', minimumDate, maximumDate, display = 'default', is24Hour, testID, style, accentColor, presentation = 'dialog', positiveButton, negativeButton } = props;
|
|
27
|
+
const { value, onChange, onValueChange, onDismiss: onDismissProp, mode = 'date', minimumDate, maximumDate, display = 'default', is24Hour, testID, style, accentColor, themeVariant, presentation = 'dialog', positiveButton, negativeButton } = props;
|
|
28
28
|
// Material3 date pickers work in UTC days, while `value` and the reported date are local —
|
|
29
29
|
// matching `@react-native-community/datetimepicker`. Send `value`'s local calendar day as a UTC
|
|
30
30
|
// day and convert the picked UTC day back, keeping `value`'s time of day. The native side
|
|
@@ -68,6 +68,7 @@ export function DateTimePicker(props) {
|
|
|
68
68
|
if (presentation === 'dialog') {
|
|
69
69
|
if (mode === 'time') {
|
|
70
70
|
return /*#__PURE__*/ _jsx(Host, {
|
|
71
|
+
colorScheme: themeVariant,
|
|
71
72
|
style: style,
|
|
72
73
|
children: /*#__PURE__*/ _jsx(AndroidTimePickerDialog, {
|
|
73
74
|
...dialogProps,
|
|
@@ -76,6 +77,7 @@ export function DateTimePicker(props) {
|
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
79
|
return /*#__PURE__*/ _jsx(Host, {
|
|
80
|
+
colorScheme: themeVariant,
|
|
79
81
|
style: style,
|
|
80
82
|
children: /*#__PURE__*/ _jsx(AndroidDatePickerDialog, {
|
|
81
83
|
...dialogProps,
|
|
@@ -88,6 +90,7 @@ export function DateTimePicker(props) {
|
|
|
88
90
|
matchContents: {
|
|
89
91
|
vertical: true
|
|
90
92
|
},
|
|
93
|
+
colorScheme: themeVariant,
|
|
91
94
|
style: style,
|
|
92
95
|
children: /*#__PURE__*/ _jsx(AndroidPicker, {
|
|
93
96
|
initialDate: initialDate,
|
|
@@ -96,6 +99,10 @@ export function DateTimePicker(props) {
|
|
|
96
99
|
selectableDates: selectableDates,
|
|
97
100
|
is24Hour: is24Hour,
|
|
98
101
|
color: accentColor,
|
|
102
|
+
// Match iOS, where the inline picker has no background of its own.
|
|
103
|
+
elementColors: {
|
|
104
|
+
containerColor: 'transparent'
|
|
105
|
+
},
|
|
99
106
|
onDateSelected: onDateSelected,
|
|
100
107
|
showVariantToggle: false,
|
|
101
108
|
// Match iOS, where the inline picker has no label: hide Material 3's "Select date" title
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["community/datetime-picker/DateTimePicker.android.tsx"],"sourcesContent":[null],"names":["DateTimePicker","AndroidPicker","DatePickerDialog","AndroidDatePickerDialog","TimePickerDialog","AndroidTimePickerDialog","Host","buildEvent","buildChangeEvent","localDateToUtcDayISOString","utcDayToLocalDate","modeToDisplayedComponents","mode","displayToAndroidVariant","display","props","value","onChange","onValueChange","onDismiss","onDismissProp","minimumDate","maximumDate","is24Hour","testID","style","accentColor","presentation","positiveButton","negativeButton","usesDateComponents","initialDate","toISOString","onDismissed","type","nativeEvent","timestamp","getTime","utcOffset","getTimezoneOffset","onDateSelected","date","selected","selectableDates","start","end","undefined","dialogProps","color","confirmButtonLabel","label","dismissButtonLabel","onDismissRequest","variant","matchContents","vertical","displayedComponents","showVariantToggle","showTitle","showHeadline"],"mappings":";AAAA,SACEA,kBAAkBC,aAAa,EAC/BC,oBAAoBC,uBAAuB,EAC3CC,oBAAoBC,uBAAuB,QAEtC,mCAAmC;AAC1C,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,UAAU,EAAEC,gBAAgB,QAAkC,UAAU;AACjF,SAASC,0BAA0B,EAAEC,iBAAiB,QAAQ,UAAU;AAExE,SAASC,0BACPC,IAAiC;IAEjC,OAAQA;QACN,KAAK;YACH,OAAO;QACT,KAAK;YACH,kEAAkE;YAClE,OAAO;QACT,KAAK;QACL;YACE,OAAO;IACX;AACF;AAEA,SAASC,wBACPC,OAAuC;IAEvC,OAAQA;QACN,KAAK;YACH,OAAO;QACT;YACE,OAAO;IACX;AACF;AAEA,OAAO,SAASd,eAAee,KAA0B;IACvD,MAAM,EACJC,KAAK,EACLC,QAAQ,EACRC,aAAa,EACbC,WAAWC,aAAa,EACxBR,OAAO,MAAM,EACbS,WAAW,EACXC,WAAW,EACXR,UAAU,SAAS,EACnBS,QAAQ,EACRC,MAAM,EACNC,KAAK,EACLC,WAAW,EACXC,eAAe,QAAQ,EACvBC,cAAc,EACdC,cAAc,EACf,
|
|
1
|
+
{"version":3,"sources":["community/datetime-picker/DateTimePicker.android.tsx"],"sourcesContent":[null],"names":["DateTimePicker","AndroidPicker","DatePickerDialog","AndroidDatePickerDialog","TimePickerDialog","AndroidTimePickerDialog","Host","buildEvent","buildChangeEvent","localDateToUtcDayISOString","utcDayToLocalDate","modeToDisplayedComponents","mode","displayToAndroidVariant","display","props","value","onChange","onValueChange","onDismiss","onDismissProp","minimumDate","maximumDate","is24Hour","testID","style","accentColor","themeVariant","presentation","positiveButton","negativeButton","usesDateComponents","initialDate","toISOString","onDismissed","type","nativeEvent","timestamp","getTime","utcOffset","getTimezoneOffset","onDateSelected","date","selected","selectableDates","start","end","undefined","dialogProps","color","confirmButtonLabel","label","dismissButtonLabel","onDismissRequest","colorScheme","variant","matchContents","vertical","displayedComponents","elementColors","containerColor","showVariantToggle","showTitle","showHeadline"],"mappings":";AAAA,SACEA,kBAAkBC,aAAa,EAC/BC,oBAAoBC,uBAAuB,EAC3CC,oBAAoBC,uBAAuB,QAEtC,mCAAmC;AAC1C,SAASC,IAAI,QAAQ,6BAA6B;AAClD,SAASC,UAAU,EAAEC,gBAAgB,QAAkC,UAAU;AACjF,SAASC,0BAA0B,EAAEC,iBAAiB,QAAQ,UAAU;AAExE,SAASC,0BACPC,IAAiC;IAEjC,OAAQA;QACN,KAAK;YACH,OAAO;QACT,KAAK;YACH,kEAAkE;YAClE,OAAO;QACT,KAAK;QACL;YACE,OAAO;IACX;AACF;AAEA,SAASC,wBACPC,OAAuC;IAEvC,OAAQA;QACN,KAAK;YACH,OAAO;QACT;YACE,OAAO;IACX;AACF;AAEA,OAAO,SAASd,eAAee,KAA0B;IACvD,MAAM,EACJC,KAAK,EACLC,QAAQ,EACRC,aAAa,EACbC,WAAWC,aAAa,EACxBR,OAAO,MAAM,EACbS,WAAW,EACXC,WAAW,EACXR,UAAU,SAAS,EACnBS,QAAQ,EACRC,MAAM,EACNC,KAAK,EACLC,WAAW,EACXC,YAAY,EACZC,eAAe,QAAQ,EACvBC,cAAc,EACdC,cAAc,EACf,GAAGf;IAEJ,2FAA2F;IAC3F,gGAAgG;IAChG,0FAA0F;IAC1F,8FAA8F;IAC9F,gEAAgE;IAChE,MAAMgB,qBAAqBnB,SAAS;IACpC,MAAMoB,cAAcD,qBAAqBtB,2BAA2BO,SAASA,MAAMiB,WAAW;IAE9F,MAAMC,cAAc;QAClB,IAAId,eAAe;YACjBA;QACF,OAAO;YACLH,WACE;gBACEkB,MAAM;gBACNC,aAAa;oBACXC,WAAWrB,MAAMsB,OAAO;oBACxBC,WAAW,CAACvB,MAAMwB,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version":3,"sources":["community/datetime-picker/types.tsx"],"sourcesContent":[null],"names":["buildEvent","date","type","nativeEvent","timestamp","getTime","utcOffset","getTimezoneOffset","buildChangeEvent"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["community/datetime-picker/types.tsx"],"sourcesContent":[null],"names":["buildEvent","date","type","nativeEvent","timestamp","getTime","utcOffset","getTimezoneOffset","buildChangeEvent"],"mappings":"AA8HA,6EAA6E;AAE7E,OAAO,SAASA,WAAWC,IAAU;IACnC,OAAO;QACLC,MAAM;QACNC,aAAa;YACXC,WAAWH,KAAKI,OAAO;YACvBC,WAAW,CAACL,KAAKM,iBAAiB;QACpC;IACF;AACF;AAEA,OAAO,SAASC,iBAAiBP,IAAU;IACzC,OAAO;QACLE,aAAa;YACXC,WAAWH,KAAKI,OAAO;YACvBC,WAAW,CAACL,KAAKM,iBAAiB;QACpC;IACF;AACF"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Column as ComposeColumn, Text as ComposeText, ListItem, useMaterialColors } from '@expo/ui/jetpack-compose';
|
|
3
|
-
import { clip, fillMaxWidth, padding, Shapes } from '@expo/ui/jetpack-compose/modifiers';
|
|
3
|
+
import { clickable, clip, fillMaxWidth, padding, Shapes } from '@expo/ui/jetpack-compose/modifiers';
|
|
4
|
+
import { cloneElement, isValidElement } from 'react';
|
|
5
|
+
import { ListItem as UniversalListItem } from '../ListItem';
|
|
4
6
|
import { useUniversalLifecycle } from '../hooks';
|
|
5
7
|
import { getUserSizingOverrides } from '../modifierUtils';
|
|
6
8
|
import { transformToModifiers } from '../transformStyle';
|
|
@@ -62,14 +64,36 @@ import { getFieldItemPosition } from './types';
|
|
|
62
64
|
],
|
|
63
65
|
children: rows.map((child, index)=>{
|
|
64
66
|
const position = getFieldItemPosition(index, rows.length);
|
|
67
|
+
const rowModifiers = [
|
|
68
|
+
fillMaxWidth(),
|
|
69
|
+
clip(Shapes.RoundedCorner(cornerRadii(position)))
|
|
70
|
+
];
|
|
71
|
+
if (isUniversalListItem(child)) {
|
|
72
|
+
// A `ListItem` already renders a Compose `ListItem`. Style it as the row instead of
|
|
73
|
+
// nesting it in another one, which would draw a second surface with its own padding.
|
|
74
|
+
const { onPress, modifiers, colors: itemColors } = child.props;
|
|
75
|
+
return /*#__PURE__*/ cloneElement(child, {
|
|
76
|
+
key: index,
|
|
77
|
+
onPress: undefined,
|
|
78
|
+
colors: {
|
|
79
|
+
containerColor: colors.surfaceContainer,
|
|
80
|
+
...itemColors
|
|
81
|
+
},
|
|
82
|
+
// Clip before `clickable` so the ripple follows the rounded row.
|
|
83
|
+
modifiers: [
|
|
84
|
+
...rowModifiers,
|
|
85
|
+
...onPress ? [
|
|
86
|
+
clickable(onPress)
|
|
87
|
+
] : [],
|
|
88
|
+
...modifiers ?? []
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
65
92
|
return /*#__PURE__*/ _jsx(ListItem, {
|
|
66
93
|
colors: {
|
|
67
94
|
containerColor: colors.surfaceContainer
|
|
68
95
|
},
|
|
69
|
-
modifiers:
|
|
70
|
-
fillMaxWidth(),
|
|
71
|
-
clip(Shapes.RoundedCorner(cornerRadii(position)))
|
|
72
|
-
],
|
|
96
|
+
modifiers: rowModifiers,
|
|
73
97
|
children: /*#__PURE__*/ _jsx(ListItem.HeadlineContent, {
|
|
74
98
|
children: child
|
|
75
99
|
})
|
|
@@ -85,6 +109,9 @@ import { getFieldItemPosition } from './types';
|
|
|
85
109
|
]
|
|
86
110
|
});
|
|
87
111
|
}
|
|
112
|
+
function isUniversalListItem(node) {
|
|
113
|
+
return /*#__PURE__*/ isValidElement(node) && node.type === UniversalListItem;
|
|
114
|
+
}
|
|
88
115
|
/**
|
|
89
116
|
* Per-position corner radii used to produce the Material 3 grouped-list look.
|
|
90
117
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["universal/FieldGroup/FieldSection.android.tsx"],"sourcesContent":[null],"names":["Column","ComposeColumn","Text","ComposeText","ListItem","useMaterialColors","clip","fillMaxWidth","padding","Shapes","useUniversalLifecycle","getUserSizingOverrides","transformToModifiers","extractFieldSectionSlots","getFieldItemPosition","FieldSection","children","title","style","onAppear","onDisappear","disabled","hidden","testID","titleUppercase","modifiers","extraModifiers","colors","header","footer","rows","widthIsPercentage","width","userOwnsWidth","sectionModifiers","outerModifiers","componentName","headerNode","color","onSurfaceVariant","typography","letterSpacing","undefined","toUpperCase","verticalArrangement","spacedBy","length","map","child","index","position","containerColor","surfaceContainer","
|
|
1
|
+
{"version":3,"sources":["universal/FieldGroup/FieldSection.android.tsx"],"sourcesContent":[null],"names":["Column","ComposeColumn","Text","ComposeText","ListItem","useMaterialColors","clickable","clip","fillMaxWidth","padding","Shapes","cloneElement","isValidElement","UniversalListItem","useUniversalLifecycle","getUserSizingOverrides","transformToModifiers","extractFieldSectionSlots","getFieldItemPosition","FieldSection","children","title","style","onAppear","onDisappear","disabled","hidden","testID","titleUppercase","modifiers","extraModifiers","colors","header","footer","rows","widthIsPercentage","width","userOwnsWidth","sectionModifiers","outerModifiers","componentName","headerNode","color","onSurfaceVariant","typography","letterSpacing","undefined","toUpperCase","verticalArrangement","spacedBy","length","map","child","index","position","rowModifiers","RoundedCorner","cornerRadii","isUniversalListItem","onPress","itemColors","props","key","containerColor","surfaceContainer","HeadlineContent","node","type","full","small","topStart","topEnd","bottomStart","bottomEnd"],"mappings":";AAAA,SACEA,UAAUC,aAAa,EACvBC,QAAQC,WAAW,EACnBC,QAAQ,EACRC,iBAAiB,QACZ,2BAA2B;AAClC,SAASC,SAAS,EAAEC,IAAI,EAAEC,YAAY,EAAEC,OAAO,EAAEC,MAAM,QAAQ,qCAAqC;AACpG,SAASC,YAAY,EAAEC,cAAc,QAA2C,QAAQ;AAExF,SAASR,YAAYS,iBAAiB,QAA4B,cAAc;AAChF,SAASC,qBAAqB,QAAQ,WAAW;AACjD,SAASC,sBAAsB,QAA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AK;YACH,OAAO;gBAAEE,UAAUF;gBAAMG,QAAQH;gBAAMI,aAAaH;gBAAOI,WAAWJ;YAAM;QAC9E,KAAK;YACH,OAAO;gBAAEC,UAAUD;gBAAOE,QAAQF;gBAAOG,aAAaJ;gBAAMK,WAAWL;YAAK;QAC9E,KAAK;QACL;YACE,OAAO;gBAAEE,UAAUD;gBAAOE,QAAQF;gBAAOG,aAAaH;gBAAOI,WAAWJ;YAAM;IAClF;AACF"}
|
|
@@ -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.25",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.ui-58.0.
|
|
28
|
-
"url": "expo.modules.ui-58.0.
|
|
27
|
+
"name": "expo.modules.ui-58.0.25.aar",
|
|
28
|
+
"url": "expo.modules.ui-58.0.25.aar",
|
|
29
29
|
"size": 1946686,
|
|
30
30
|
"sha512": "d9237ef0147bd027e017d66df9f61f7c7e2af64b0ecee9b831a039d63262e45dde5db851cba79829ff5d3a0409f43e70686295d0e550ed8e5be377b2b311c581",
|
|
31
31
|
"sha256": "f1af27ccdcfb9f597881ed992a638e9688a7d42fd7d7b33727b91be3326ca46f",
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
],
|
|
142
142
|
"files": [
|
|
143
143
|
{
|
|
144
|
-
"name": "expo.modules.ui-58.0.
|
|
145
|
-
"url": "expo.modules.ui-58.0.
|
|
144
|
+
"name": "expo.modules.ui-58.0.25.aar",
|
|
145
|
+
"url": "expo.modules.ui-58.0.25.aar",
|
|
146
146
|
"size": 1946686,
|
|
147
147
|
"sha512": "d9237ef0147bd027e017d66df9f61f7c7e2af64b0ecee9b831a039d63262e45dde5db851cba79829ff5d3a0409f43e70686295d0e550ed8e5be377b2b311c581",
|
|
148
148
|
"sha256": "f1af27ccdcfb9f597881ed992a638e9688a7d42fd7d7b33727b91be3326ca46f",
|
|
@@ -161,8 +161,8 @@
|
|
|
161
161
|
},
|
|
162
162
|
"files": [
|
|
163
163
|
{
|
|
164
|
-
"name": "expo.modules.ui-58.0.
|
|
165
|
-
"url": "expo.modules.ui-58.0.
|
|
164
|
+
"name": "expo.modules.ui-58.0.25-sources.jar",
|
|
165
|
+
"url": "expo.modules.ui-58.0.25-sources.jar",
|
|
166
166
|
"size": 122645,
|
|
167
167
|
"sha512": "7067f7aabef1e8872cc798d93f8b8bc1736f678f3668d7eb4c13af5cb301454b1bcd184f3d2f8e54e73ad5638956b3e517955166551e94fe5e74ee25c6e7c703",
|
|
168
168
|
"sha256": "1f04b317f757dbed2ba12650ac539706c6a5d9a7a05cc6c004f4b0d752482ca4",
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
00fa5f80250a7641944241a74f1dc39b
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
87f148a603920eca9955ff39ccefa283932f9627
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ee1ce6b5958aede97efbd68fd62f0db816860f9f76d6c809f629f382db9d65ed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6f8dc44b2cd482c1321242e46eb30c4c02da5472ffd5d983492e482c134fdf3752dcc008612453e40e377588627e9b8ae8f3072d0658739351c1d6cb562eafe9
|
|
@@ -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.25</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.25/expo.modules.ui-58.0.25.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c212440e0d06cd25147b57f6bbae003f
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3780297b6c6f103af3449a71798de47b6558698c
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b78be19358302cd52bce296b7aa89c6a34b6e2624dbc9e42904d41389a17fb80
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8a9735eae90ae90c91881c8a28a3beae4b787ec44c2a4fb4f8cc9801f472d985aed0c2bb2f7f47dce024a1c8dfd39ae7282d66bdefaf675d1ed995c5d045cddc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/ui",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.25",
|
|
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.5",
|
|
145
145
|
"@playwright/test": "^1.59.0",
|
|
146
146
|
"@testing-library/react": "^16.3.0",
|
|
147
147
|
"@testing-library/react-native": "^14.0.1",
|
|
@@ -48,6 +48,7 @@ export function DateTimePicker(props: DateTimePickerProps) {
|
|
|
48
48
|
testID,
|
|
49
49
|
style,
|
|
50
50
|
accentColor,
|
|
51
|
+
themeVariant,
|
|
51
52
|
presentation = 'dialog',
|
|
52
53
|
positiveButton,
|
|
53
54
|
negativeButton,
|
|
@@ -102,13 +103,13 @@ export function DateTimePicker(props: DateTimePickerProps) {
|
|
|
102
103
|
if (presentation === 'dialog') {
|
|
103
104
|
if (mode === 'time') {
|
|
104
105
|
return (
|
|
105
|
-
<Host style={style}>
|
|
106
|
+
<Host colorScheme={themeVariant} style={style}>
|
|
106
107
|
<AndroidTimePickerDialog {...dialogProps} is24Hour={is24Hour} />
|
|
107
108
|
</Host>
|
|
108
109
|
);
|
|
109
110
|
}
|
|
110
111
|
return (
|
|
111
|
-
<Host style={style}>
|
|
112
|
+
<Host colorScheme={themeVariant} style={style}>
|
|
112
113
|
<AndroidDatePickerDialog
|
|
113
114
|
{...dialogProps}
|
|
114
115
|
variant={displayToAndroidVariant(display)}
|
|
@@ -119,7 +120,7 @@ export function DateTimePicker(props: DateTimePickerProps) {
|
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
return (
|
|
122
|
-
<Host matchContents={{ vertical: true }} style={style}>
|
|
123
|
+
<Host matchContents={{ vertical: true }} colorScheme={themeVariant} style={style}>
|
|
123
124
|
<AndroidPicker
|
|
124
125
|
initialDate={initialDate}
|
|
125
126
|
displayedComponents={modeToDisplayedComponents(mode)}
|
|
@@ -127,6 +128,8 @@ export function DateTimePicker(props: DateTimePickerProps) {
|
|
|
127
128
|
selectableDates={selectableDates}
|
|
128
129
|
is24Hour={is24Hour}
|
|
129
130
|
color={accentColor}
|
|
131
|
+
// Match iOS, where the inline picker has no background of its own.
|
|
132
|
+
elementColors={{ containerColor: 'transparent' }}
|
|
130
133
|
onDateSelected={onDateSelected}
|
|
131
134
|
showVariantToggle={false}
|
|
132
135
|
// Match iOS, where the inline picker has no label: hide Material 3's "Select date" title
|
|
@@ -4,8 +4,10 @@ import {
|
|
|
4
4
|
ListItem,
|
|
5
5
|
useMaterialColors,
|
|
6
6
|
} from '@expo/ui/jetpack-compose';
|
|
7
|
-
import { clip, fillMaxWidth, padding, Shapes } from '@expo/ui/jetpack-compose/modifiers';
|
|
7
|
+
import { clickable, clip, fillMaxWidth, padding, Shapes } from '@expo/ui/jetpack-compose/modifiers';
|
|
8
|
+
import { cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react';
|
|
8
9
|
|
|
10
|
+
import { ListItem as UniversalListItem, type ListItemProps } from '../ListItem';
|
|
9
11
|
import { useUniversalLifecycle } from '../hooks';
|
|
10
12
|
import { getUserSizingOverrides } from '../modifierUtils';
|
|
11
13
|
import { transformToModifiers } from '../transformStyle';
|
|
@@ -77,11 +79,31 @@ export function FieldSection({
|
|
|
77
79
|
<ComposeColumn verticalArrangement={{ spacedBy: 2 }} modifiers={[fillMaxWidth()]}>
|
|
78
80
|
{rows.map((child, index) => {
|
|
79
81
|
const position = getFieldItemPosition(index, rows.length);
|
|
82
|
+
const rowModifiers = [
|
|
83
|
+
fillMaxWidth(),
|
|
84
|
+
clip(Shapes.RoundedCorner(cornerRadii(position))),
|
|
85
|
+
];
|
|
86
|
+
if (isUniversalListItem(child)) {
|
|
87
|
+
// A `ListItem` already renders a Compose `ListItem`. Style it as the row instead of
|
|
88
|
+
// nesting it in another one, which would draw a second surface with its own padding.
|
|
89
|
+
const { onPress, modifiers, colors: itemColors } = child.props;
|
|
90
|
+
return cloneElement(child, {
|
|
91
|
+
key: index,
|
|
92
|
+
onPress: undefined,
|
|
93
|
+
colors: { containerColor: colors.surfaceContainer, ...itemColors },
|
|
94
|
+
// Clip before `clickable` so the ripple follows the rounded row.
|
|
95
|
+
modifiers: [
|
|
96
|
+
...rowModifiers,
|
|
97
|
+
...(onPress ? [clickable(onPress)] : []),
|
|
98
|
+
...(modifiers ?? []),
|
|
99
|
+
],
|
|
100
|
+
});
|
|
101
|
+
}
|
|
80
102
|
return (
|
|
81
103
|
<ListItem
|
|
82
104
|
key={index}
|
|
83
105
|
colors={{ containerColor: colors.surfaceContainer }}
|
|
84
|
-
modifiers={
|
|
106
|
+
modifiers={rowModifiers}>
|
|
85
107
|
<ListItem.HeadlineContent>{child}</ListItem.HeadlineContent>
|
|
86
108
|
</ListItem>
|
|
87
109
|
);
|
|
@@ -93,6 +115,10 @@ export function FieldSection({
|
|
|
93
115
|
);
|
|
94
116
|
}
|
|
95
117
|
|
|
118
|
+
function isUniversalListItem(node: ReactNode): node is ReactElement<ListItemProps> {
|
|
119
|
+
return isValidElement(node) && node.type === UniversalListItem;
|
|
120
|
+
}
|
|
121
|
+
|
|
96
122
|
/**
|
|
97
123
|
* Per-position corner radii used to produce the Material 3 grouped-list look.
|
|
98
124
|
*
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.module.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
38f0c536f95d2f5f3fc840403e52e709
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.module.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a739e264bc86774686e262264edb19ecd35f5ad6
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b018bb4a15956f0267805ae2ca622e446fd680e99d01f1a0947492ed63af4732
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
166affc52421f1e056de3c34e8e0d82455ee2673de607661f8fb9f8d5eec4951ee2f2fa41e8306ac44a663d17f1668f47c91d7f5b85d34a3dbdb202eb74908a6
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
47b49c76ac84ddfde9cc1e8740eac820
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0fcb719b9acd0fc46a710c1338722cf5632fe2b7
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
38f70a68469f19a6d150eb63bbcb07323000702e0647a48f4b627a40d50d1814
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.24/expo.modules.ui-58.0.24.pom.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ee248becc86ca6a41c86c066bfe61257fc0dcf7552d91d50a370d690a8fd6bf123c6e35afb689006491eb7c5ccf9dc372eb6c6f6a77aa57456834c583908e8d8
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|