@expo/ui 58.0.25 → 58.0.26
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 +9 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +50 -0
- package/android/src/main/java/expo/modules/ui/SplitButtonLayoutView.kt +94 -0
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuGroup.kt +36 -0
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuItem.kt +27 -8
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuPopup.kt +28 -0
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +13 -0
- package/android/src/main/java/expo/modules/ui/menu/SelectableDropdownMenuItem.kt +93 -0
- package/build/community/datetime-picker/DateTimePicker.android.js +1 -0
- package/build/community/datetime-picker/DateTimePicker.android.js.map +1 -1
- package/build/jetpack-compose/DatePicker/index.d.ts +2 -2
- package/build/jetpack-compose/DatePicker/index.js +1 -1
- package/build/jetpack-compose/DatePicker/index.js.map +1 -1
- package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts +10 -0
- package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.js +12 -0
- package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.js.map +1 -1
- package/build/jetpack-compose/DropdownMenu/SelectableDropdownMenuItem.d.ts +89 -0
- package/build/jetpack-compose/DropdownMenu/SelectableDropdownMenuItem.js +80 -0
- package/build/jetpack-compose/DropdownMenu/SelectableDropdownMenuItem.js.map +1 -0
- package/build/jetpack-compose/DropdownMenu/index.d.ts +91 -0
- package/build/jetpack-compose/DropdownMenu/index.js +33 -0
- package/build/jetpack-compose/DropdownMenu/index.js.map +1 -1
- package/build/jetpack-compose/SplitButtonLayout/index.d.ts +102 -0
- package/build/jetpack-compose/SplitButtonLayout/index.js +68 -0
- package/build/jetpack-compose/SplitButtonLayout/index.js.map +1 -0
- 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/universal/TextInput/index.android.d.ts +1 -1
- package/build/universal/TextInput/index.android.js +7 -2
- package/build/universal/TextInput/index.android.js.map +1 -1
- package/build/universal/TextInput/index.d.ts +1 -1
- package/build/universal/TextInput/index.ios.d.ts +1 -1
- package/build/universal/TextInput/index.ios.js +3 -2
- package/build/universal/TextInput/index.ios.js.map +1 -1
- package/build/universal/TextInput/index.js +2 -1
- package/build/universal/TextInput/index.js.map +1 -1
- package/build/universal/TextInput/types.d.ts +4 -0
- package/build/universal/TextInput/types.js.map +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.25/expo.modules.ui-58.0.25-sources.jar → 58.0.26/expo.modules.ui-58.0.26-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26-sources.jar.sha512 +1 -0
- 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 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.25/expo.modules.ui-58.0.25.module → 58.0.26/expo.modules.ui-58.0.26.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{58.0.25/expo.modules.ui-58.0.25.pom → 58.0.26/expo.modules.ui-58.0.26.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha512 +1 -0
- package/package.json +1 -1
- package/src/community/datetime-picker/DateTimePicker.android.tsx +2 -1
- package/src/jetpack-compose/DatePicker/index.tsx +4 -4
- package/src/jetpack-compose/DropdownMenu/DropdownMenuItem.tsx +18 -0
- package/src/jetpack-compose/DropdownMenu/SelectableDropdownMenuItem.tsx +149 -0
- package/src/jetpack-compose/DropdownMenu/index.tsx +147 -0
- package/src/jetpack-compose/SplitButtonLayout/index.tsx +182 -0
- package/src/jetpack-compose/index.ts +1 -0
- package/src/universal/TextInput/index.android.tsx +7 -1
- package/src/universal/TextInput/index.ios.tsx +3 -0
- package/src/universal/TextInput/index.tsx +2 -0
- package/src/universal/TextInput/types.ts +5 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.25/expo.modules.ui-58.0.25.pom.sha512 +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { SecureField, Text, TextField, useNativeState } from '@expo/ui/swift-ui';
|
|
3
|
-
import { autocorrectionDisabled, disabled as disabledMod, foregroundStyle, keyboardType as keyboardTypeMod, lineLimit, multilineTextAlignment, onGeometryChange, onSubmit, submitLabel, textContentType, textInputAutocapitalization, tint } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { accessibilityLabel as accessibilityLabelMod, autocorrectionDisabled, disabled as disabledMod, foregroundStyle, keyboardType as keyboardTypeMod, lineLimit, multilineTextAlignment, onGeometryChange, onSubmit, submitLabel, textContentType, textInputAutocapitalization, tint } from '@expo/ui/swift-ui/modifiers';
|
|
4
4
|
import { useImperativeHandle, useRef } from 'react';
|
|
5
5
|
import { transformToModifiers } from '../transformStyle';
|
|
6
6
|
import { autoCompleteToTextContentType, enterKeyHintToReturnKeyType, inputModeToKeyboardType, resolveEditable } from './utils';
|
|
@@ -17,7 +17,7 @@ function mapKeyboardType(value) {
|
|
|
17
17
|
if (value === 'visible-password') return 'default';
|
|
18
18
|
return value;
|
|
19
19
|
}
|
|
20
|
-
export function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable: editableProp, multiline, keyboardType: keyboardTypeProp, autoCapitalize, autoCorrect, returnKeyType: returnKeyTypeProp, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines: numberOfLinesProp, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus, modifiers: userModifiers }) {
|
|
20
|
+
export function TextInput({ ref, value, onChangeText, placeholder, accessibilityLabel, autoFocus, editable: editableProp, multiline, keyboardType: keyboardTypeProp, autoCapitalize, autoCorrect, returnKeyType: returnKeyTypeProp, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines: numberOfLinesProp, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus, modifiers: userModifiers }) {
|
|
21
21
|
const editable = resolveEditable(editableProp, readOnly);
|
|
22
22
|
const keyboardType = keyboardTypeProp ?? inputModeToKeyboardType(inputMode);
|
|
23
23
|
const returnKeyType = returnKeyTypeProp ?? enterKeyHintToReturnKeyType(enterKeyHint);
|
|
@@ -68,6 +68,7 @@ export function TextInput({ ref, value, onChangeText, placeholder, autoFocus, ed
|
|
|
68
68
|
textStyle
|
|
69
69
|
})
|
|
70
70
|
];
|
|
71
|
+
if (accessibilityLabel !== undefined) modifiers.push(accessibilityLabelMod(accessibilityLabel));
|
|
71
72
|
if (editable === false) modifiers.push(disabledMod(true));
|
|
72
73
|
if (keyboardType) modifiers.push(keyboardTypeMod(mapKeyboardType(keyboardType)));
|
|
73
74
|
if (autoCapitalize) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["universal/TextInput/index.ios.tsx"],"sourcesContent":[null],"names":["SecureField","Text","TextField","useNativeState","autocorrectionDisabled","disabled","disabledMod","foregroundStyle","keyboardType","keyboardTypeMod","lineLimit","multilineTextAlignment","onGeometryChange","onSubmit","submitLabel","textContentType","textInputAutocapitalization","tint","useImperativeHandle","useRef","transformToModifiers","autoCompleteToTextContentType","enterKeyHintToReturnKeyType","inputModeToKeyboardType","resolveEditable","mapReturnKeyType","value","mapKeyboardType","TextInput","ref","onChangeText","placeholder","autoFocus","editable","editableProp","multiline","keyboardTypeProp","autoCapitalize","autoCorrect","returnKeyType","returnKeyTypeProp","onSubmitEditing","onFocus","onBlur","cursorColor","textAlign","readOnly","inputMode","enterKeyHint","defaultValue","numberOfLines","numberOfLinesProp","rows","testID","placeholderTextColor","style","textStyle","secureTextEntry","autoComplete","onContentSizeChange","maxLength","caretHidden","selectionColor","selection","onSelectionChange","selectTextOnFocus","modifiers","userModifiers","initialFallbackRef","fallback","current","state","textFieldRef","secureFieldRef","isFocusedRef","focus","blur","clear","isFocused","setSelection","start","end","__DEV__","console","warn","Promise","resolve","handleFocusChange","focused","length","undefined","componentName","push","reservesSpace","mappedContentType","text","onTextChange","onFocusChange","Placeholder","axis"],"mappings":";AAAA,SACEA,WAAW,EAEXC,IAAI,EACJC,SAAS,EAETC,cAAc,QACT,oBAAoB;AAC3B,SACEC,sBAAsB,EACtBC,YAAYC,WAAW,EACvBC,eAAe,EACfC,gBAAgBC,eAAe,EAC/BC,SAAS,EACTC,sBAAsB,EACtBC,gBAAgB,EAChBC,QAAQ,EACRC,WAAW,EACXC,eAAe,EACfC,2BAA2B,EAC3BC,IAAI,QAEC,8BAA8B;AACrC,SAASC,mBAAmB,EAAEC,MAAM,QAAQ,QAAQ;AAGpD,SAASC,oBAAoB,QAAQ,oBAAoB;AAEzD,SACEC,6BAA6B,EAC7BC,2BAA2B,EAC3BC,uBAAuB,EACvBC,eAAe,QACV,UAAU;AAKjB,SAASC,iBAAiBC,KAA2B;IACnD,IAAIA,UAAU,YAAYA,UAAU,SAAS,OAAO;IACpD,IACEA,UAAU,aACVA,UAAU,UACVA,UAAU,cACVA,UAAU,kBACV;QACA,OAAO;IACT;IACA,OAAOA;AACT;AAEA,SAASC,gBAAgBD,KAA0B;IACjD,IAAIA,UAAU,WAAW,OAAO;IAChC,IAAIA,UAAU,cAAc,OAAO;IACnC,IAAIA,UAAU,oBAAoB,OAAO;IACzC,OAAOA;AACT;AAEA,OAAO,SAASE,UAAU,EACxBC,GAAG,EACHH,KAAK,EACLI,YAAY,EACZC,WAAW,
|
|
1
|
+
{"version":3,"sources":["universal/TextInput/index.ios.tsx"],"sourcesContent":[null],"names":["SecureField","Text","TextField","useNativeState","accessibilityLabel","accessibilityLabelMod","autocorrectionDisabled","disabled","disabledMod","foregroundStyle","keyboardType","keyboardTypeMod","lineLimit","multilineTextAlignment","onGeometryChange","onSubmit","submitLabel","textContentType","textInputAutocapitalization","tint","useImperativeHandle","useRef","transformToModifiers","autoCompleteToTextContentType","enterKeyHintToReturnKeyType","inputModeToKeyboardType","resolveEditable","mapReturnKeyType","value","mapKeyboardType","TextInput","ref","onChangeText","placeholder","autoFocus","editable","editableProp","multiline","keyboardTypeProp","autoCapitalize","autoCorrect","returnKeyType","returnKeyTypeProp","onSubmitEditing","onFocus","onBlur","cursorColor","textAlign","readOnly","inputMode","enterKeyHint","defaultValue","numberOfLines","numberOfLinesProp","rows","testID","placeholderTextColor","style","textStyle","secureTextEntry","autoComplete","onContentSizeChange","maxLength","caretHidden","selectionColor","selection","onSelectionChange","selectTextOnFocus","modifiers","userModifiers","initialFallbackRef","fallback","current","state","textFieldRef","secureFieldRef","isFocusedRef","focus","blur","clear","isFocused","setSelection","start","end","__DEV__","console","warn","Promise","resolve","handleFocusChange","focused","length","undefined","componentName","push","reservesSpace","mappedContentType","text","onTextChange","onFocusChange","Placeholder","axis"],"mappings":";AAAA,SACEA,WAAW,EAEXC,IAAI,EACJC,SAAS,EAETC,cAAc,QACT,oBAAoB;AAC3B,SACEC,sBAAsBC,qBAAqB,EAC3CC,sBAAsB,EACtBC,YAAYC,WAAW,EACvBC,eAAe,EACfC,gBAAgBC,eAAe,EAC/BC,SAAS,EACTC,sBAAsB,EACtBC,gBAAgB,EAChBC,QAAQ,EACRC,WAAW,EACXC,eAAe,EACfC,2BAA2B,EAC3BC,IAAI,QAEC,8BAA8B;AACrC,SAASC,mBAAmB,EAAEC,MAAM,QAAQ,QAAQ;AAGpD,SAASC,oBAAoB,QAAQ,oBAAoB;AAEzD,SACEC,6BAA6B,EAC7BC,2BAA2B,EAC3BC,uBAAuB,EACvBC,eAAe,QACV,UAAU;AAKjB,SAASC,iBAAiBC,KAA2B;IACnD,IAAIA,UAAU,YAAYA,UAAU,SAAS,OAAO;IACpD,IACEA,UAAU,aACVA,UAAU,UACVA,UAAU,cACVA,UAAU,kBACV;QACA,OAAO;IACT;I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G,IAAIvB,YAAYwB;QAC9CrC,QAAQA;kBACPC,wBAAwBvB,4BACvB,KAAC/B,UAAUkG,WAAW;sBACpB,cAAA,KAACnG;gBAAKmE,WAAW;oBAAC3D,gBAAgB+C;iBAAsB;0BAAGvB;;aAE3D;;AAGV;AAEA,cAAc,UAAU"}
|
|
@@ -33,7 +33,7 @@ const styles = StyleSheet.create({
|
|
|
33
33
|
paddingVertical: 11
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
export function TextInput({ ref, value, onChangeText, placeholder, autoFocus, editable, multiline, keyboardType, autoCapitalize, autoCorrect, returnKeyType, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus }) {
|
|
36
|
+
export function TextInput({ ref, value, onChangeText, placeholder, accessibilityLabel, autoFocus, editable, multiline, keyboardType, autoCapitalize, autoCorrect, returnKeyType, onSubmitEditing, onFocus, onBlur, cursorColor, textAlign, readOnly, inputMode, enterKeyHint, defaultValue, numberOfLines, rows, testID, placeholderTextColor, style, textStyle, secureTextEntry, autoComplete, onContentSizeChange, maxLength, caretHidden, selectionColor, selection, onSelectionChange, selectTextOnFocus }) {
|
|
37
37
|
const [focused, setFocused] = useState(false);
|
|
38
38
|
const initialFallbackRef = useRef(defaultValue ?? '');
|
|
39
39
|
const fallback = useNativeState(initialFallbackRef.current);
|
|
@@ -67,6 +67,7 @@ export function TextInput({ ref, value, onChangeText, placeholder, autoFocus, ed
|
|
|
67
67
|
ref: innerRef,
|
|
68
68
|
value: state.value,
|
|
69
69
|
placeholder: placeholder,
|
|
70
|
+
accessibilityLabel: accessibilityLabel,
|
|
70
71
|
placeholderTextColor: placeholderTextColor ?? colors.gray[500],
|
|
71
72
|
autoFocus: autoFocus,
|
|
72
73
|
editable: editable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["universal/TextInput/index.tsx"],"sourcesContent":[null],"names":["useImperativeHandle","useRef","useState","TextInput","RNTextInput","StyleSheet","useNativeState","colors","durations","easings","shadows","styles","create","input","backgroundColor","background","borderColor","gray","borderRadius","borderStyle","borderWidth","boxShadow","boxSizing","color","display","fontSize","height","outlineStyle","outlineWidth","paddingHorizontal","paddingVertical","transitionDuration","fast","transitionProperty","transitionTimingFunction","standard","focused","primary","focus","multiline","ref","value","onChangeText","placeholder","autoFocus","editable","keyboardType","autoCapitalize","autoCorrect","returnKeyType","onSubmitEditing","onFocus","onBlur","cursorColor","textAlign","readOnly","inputMode","enterKeyHint","defaultValue","numberOfLines","rows","testID","placeholderTextColor","style","textStyle","secureTextEntry","autoComplete","onContentSizeChange","maxLength","caretHidden","selectionColor","selection","onSelectionChange","selectTextOnFocus","setFocused","initialFallbackRef","fallback","current","state","innerRef","Promise","resolve","blur","clear","isFocused","setSelection","start","end","e","nativeEvent","text","undefined","contentSize","next"],"mappings":";AAAA,SAASA,mBAAmB,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAC9D,SAASC,aAAaC,WAAW,EAAEC,UAAU,QAAQ,eAAe;AAEpE,SAASC,cAAc,QAAQ,WAAW;AAC1C,SAASC,MAAM,EAAEC,SAAS,EAAEC,OAAO,EAAEC,OAAO,QAAQ,cAAc;AAGlE,MAAMC,SAASN,WAAWO,MAAM,CAAC;IAC/BC,OAAO;QACLC,iBAAiBP,OAAOQ,UAAU;QAClCC,aAAaT,OAAOU,IAAI,CAAC,IAAI;QAC7BC,cAAc;QACdC,aAAa;QACbC,aAAa;QACbC,WAAWX,QAAQG,KAAK;QACxBS,WAAW;QACXC,OAAOhB,OAAOU,IAAI,CAAC,IAAI;QACvBO,SAAS;QACTC,UAAU;QACVC,QAAQ;QACRC,cAAc;QACdC,cAAc;QACdC,mBAAmB;QACnBC,iBAAiB;QACjBC,oBAAoBvB,UAAUwB,IAAI;QAClCC,oBAAoB;QACpBC,0BAA0BzB,QAAQ0B,QAAQ;IAC5C;IACAC,SAAS;QACPpB,aAAaT,OAAO8B,OAAO,CAAC,IAAI;QAChChB,WAAWX,QAAQ4B,KAAK;IAC1B;IACAC,WAAW;QACTb,QAAQ;QACRI,iBAAiB;IACnB;AACF;AAEA,OAAO,SAAS3B,UAAU,EACxBqC,GAAG,EACHC,KAAK,EACLC,YAAY,EACZC,WAAW,EACXC,SAAS,EACTC,QAAQ,
|
|
1
|
+
{"version":3,"sources":["universal/TextInput/index.tsx"],"sourcesContent":[null],"names":["useImperativeHandle","useRef","useState","TextInput","RNTextInput","StyleSheet","useNativeState","colors","durations","easings","shadows","styles","create","input","backgroundColor","background","borderColor","gray","borderRadius","borderStyle","borderWidth","boxShadow","boxSizing","color","display","fontSize","height","outlineStyle","outlineWidth","paddingHorizontal","paddingVertical","transitionDuration","fast","transitionProperty","transitionTimingFunction","standard","focused","primary","focus","multiline","ref","value","onChangeText","placeholder","accessibilityLabel","autoFocus","editable","keyboardType","autoCapitalize","autoCorrect","returnKeyType","onSubmitEditing","onFocus","onBlur","cursorColor","textAlign","readOnly","inputMode","enterKeyHint","defaultValue","numberOfLines","rows","testID","placeholderTextColor","style","textStyle","secureTextEntry","autoComplete","onContentSizeChange","maxLength","caretHidden","selectionColor","selection","onSelectionChange","selectTextOnFocus","setFocused","initialFallbackRef","fallback","current","state","innerRef","Promise","resolve","blur","clear","isFocused","setSelection","start","end","e","nativeEvent","text","undefined","contentSize","next"],"mappings":";AAAA,SAASA,mBAAmB,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAQ;AAC9D,SAASC,aAAaC,WAAW,EAAEC,UAAU,QAAQ,eAAe;AAEpE,SAASC,cAAc,QAAQ,WAAW;AAC1C,SAASC,MAAM,EAAEC,SAAS,EAAEC,OAAO,EAAEC,OAAO,QAAQ,cAAc;AAGlE,MAAMC,SAASN,WAAWO,MAAM,CAAC;IAC/BC,OAAO;QACLC,iBAAiBP,OAAOQ,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A,WAAWA,UAAU/B,KAAK,GAAGqD;YACjCrB,kBAAkBqB;QACpB,IACAtB,YACE,CAACiB;YACCjB,UAAU/B,KAAK,GAAGgD,EAAEC,WAAW,CAAClB,SAAS;QAC3C,IACAoB;QAER5B,OAAO;YACLrD,OAAOE,KAAK;YACZuB,WAAWzB,OAAOyB,OAAO;YACzBG,aAAa5B,OAAO4B,SAAS;YAC7ByB;YACAC;YACAV,aAAaA,cAAc,SAAS;gBAAEA;YAAU,IAAI;SACrD;;AAGP;AAEA,cAAc,UAAU"}
|
|
@@ -45,6 +45,10 @@ export interface TextInputProps {
|
|
|
45
45
|
* Placeholder text shown when the field is empty.
|
|
46
46
|
*/
|
|
47
47
|
placeholder?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Label announced by screen readers, including when the field contains text.
|
|
50
|
+
*/
|
|
51
|
+
accessibilityLabel?: string;
|
|
48
52
|
/**
|
|
49
53
|
* If true, focuses the input on mount.
|
|
50
54
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["universal/TextInput/types.ts"],"sourcesContent":[null],"names":[],"mappings":"AA4BA;;CAEC,GACD,
|
|
1
|
+
{"version":3,"sources":["universal/TextInput/types.ts"],"sourcesContent":[null],"names":[],"mappings":"AA4BA;;CAEC,GACD,WAyQC"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
86ee1f5cbe59fc8fd3532316b486649b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
161044ad8c5afe93447eba78b51e99afbc1d9e21
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bc95695ef06307f2c0099b8ed103d6f4ee1c1bce69682e23413a73d1f5382b66
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
73bf2bbf6c3100c6375b86c350d5533eacdde6dfc09b4441b96f38a57218718a9940dceb935194b0063870fcdfbb46ef6b72f755a13e61a2546bab1b32967b84
|
|
Binary file
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
881118e26c11ff41e0a8f115338a7358
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f9bb58ebd351c2f423eb615d6365671b1f1553b3
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9ff0f17bc171c0a78627d99ec3e3e9daa17da71fb9d691e0a157ae5f249a8ace
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.aar.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3610fc8f33f9a6d61a67482880e1b89515d0116933b15b51f3169bec6950096737c88627d8d20d916c3589d26cea950f51c9b5bbf20d70adcba058c70e48e51f
|
|
@@ -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.26",
|
|
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.26.aar",
|
|
28
|
+
"url": "expo.modules.ui-58.0.26.aar",
|
|
29
|
+
"size": 2019247,
|
|
30
|
+
"sha512": "3610fc8f33f9a6d61a67482880e1b89515d0116933b15b51f3169bec6950096737c88627d8d20d916c3589d26cea950f51c9b5bbf20d70adcba058c70e48e51f",
|
|
31
|
+
"sha256": "9ff0f17bc171c0a78627d99ec3e3e9daa17da71fb9d691e0a157ae5f249a8ace",
|
|
32
|
+
"sha1": "f9bb58ebd351c2f423eb615d6365671b1f1553b3",
|
|
33
|
+
"md5": "881118e26c11ff41e0a8f115338a7358"
|
|
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.26.aar",
|
|
145
|
+
"url": "expo.modules.ui-58.0.26.aar",
|
|
146
|
+
"size": 2019247,
|
|
147
|
+
"sha512": "3610fc8f33f9a6d61a67482880e1b89515d0116933b15b51f3169bec6950096737c88627d8d20d916c3589d26cea950f51c9b5bbf20d70adcba058c70e48e51f",
|
|
148
|
+
"sha256": "9ff0f17bc171c0a78627d99ec3e3e9daa17da71fb9d691e0a157ae5f249a8ace",
|
|
149
|
+
"sha1": "f9bb58ebd351c2f423eb615d6365671b1f1553b3",
|
|
150
|
+
"md5": "881118e26c11ff41e0a8f115338a7358"
|
|
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.26-sources.jar",
|
|
165
|
+
"url": "expo.modules.ui-58.0.26-sources.jar",
|
|
166
|
+
"size": 126202,
|
|
167
|
+
"sha512": "73bf2bbf6c3100c6375b86c350d5533eacdde6dfc09b4441b96f38a57218718a9940dceb935194b0063870fcdfbb46ef6b72f755a13e61a2546bab1b32967b84",
|
|
168
|
+
"sha256": "bc95695ef06307f2c0099b8ed103d6f4ee1c1bce69682e23413a73d1f5382b66",
|
|
169
|
+
"sha1": "161044ad8c5afe93447eba78b51e99afbc1d9e21",
|
|
170
|
+
"md5": "86ee1f5cbe59fc8fd3532316b486649b"
|
|
171
171
|
}
|
|
172
172
|
]
|
|
173
173
|
}
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
526134d76a7a63dd5e6bc5430dbe44ba
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
12d369269ac40c438bd87de1c8152115cdc0aa0a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f4f444a48574e35cbfa2e30acf366b6788a27c2025dc67c1f05801261ffeace3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
934f186cc5e3e67ce6f32a9b41d51c11ccfba401d2a56a9e6818d95fc7251808a4b7a973861f7d150af826c9bfbd2979f222fa551e8a4cf60b13bc2f56a381a2
|
|
@@ -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.26</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.26/expo.modules.ui-58.0.26.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
528606253a6237e3b24104d7b85a9d40
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7f2d1fdb6762621589b11dfc56328633bc6748d2
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
512f093e189a05b11f8d0afcb436e3b4fcb9610a5e8ee6c758d7ee085652f3d1
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/58.0.26/expo.modules.ui-58.0.26.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ed4a2cc21b8fe75b61bcf325630db95a2c03384b48c41e24b4939e220874d10b0bff9a6ff28ff4435e641f0d13ba63250b0f14c00c1b2f85451f346e84f0bcb0
|
package/package.json
CHANGED
|
@@ -79,7 +79,8 @@ export function DateTimePicker(props: DateTimePickerProps) {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
const onDateSelected = (date: Date) => {
|
|
82
|
+
const onDateSelected = (date: Date | null) => {
|
|
83
|
+
if (date === null) return;
|
|
83
84
|
const selected = usesDateComponents ? utcDayToLocalDate(date, value) : date;
|
|
84
85
|
if (onValueChange) {
|
|
85
86
|
onValueChange(buildChangeEvent(selected), selected);
|
|
@@ -138,9 +138,9 @@ export interface DateTimePickerProps {
|
|
|
138
138
|
*/
|
|
139
139
|
initialDate?: string | null;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* Called when the selection changes. The date is `null` when date input is incomplete or invalid.
|
|
142
142
|
*/
|
|
143
|
-
onDateSelected?: (date: Date) => void;
|
|
143
|
+
onDateSelected?: (date: Date | null) => void;
|
|
144
144
|
/**
|
|
145
145
|
* The variant of the picker, which determines its appearance and behavior.
|
|
146
146
|
* @default 'picker'
|
|
@@ -212,7 +212,7 @@ type NativeDatePickerProps = Omit<
|
|
|
212
212
|
initialDate?: number | null;
|
|
213
213
|
selectableDates?: { start?: number | null; end?: number | null } | null;
|
|
214
214
|
elementColors?: DatePickerElementColors & TimePickerElementColors;
|
|
215
|
-
} & ViewEvent<'onDateSelected', { date:
|
|
215
|
+
} & ViewEvent<'onDateSelected', { date: number | null }>;
|
|
216
216
|
|
|
217
217
|
function convertSelectableDates(selectableDates?: {
|
|
218
218
|
start?: Date;
|
|
@@ -243,7 +243,7 @@ function transformDateTimePickerProps(props: DateTimePickerProps): NativeDatePic
|
|
|
243
243
|
initialDate: initialDateTimestamp,
|
|
244
244
|
selectableDates: convertSelectableDates(selectableDates),
|
|
245
245
|
onDateSelected: ({ nativeEvent: { date } }) => {
|
|
246
|
-
props.onDateSelected?.(
|
|
246
|
+
props.onDateSelected?.(convertTimestampToDate(date));
|
|
247
247
|
},
|
|
248
248
|
variant,
|
|
249
249
|
...(elementColors != null ? { elementColors } : undefined),
|
|
@@ -3,6 +3,7 @@ import type { ColorValue } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import type { ModifierConfig, ViewEvent } from '../../types';
|
|
5
5
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
6
|
+
import type { MenuShapePosition } from './index';
|
|
6
7
|
|
|
7
8
|
type SlotNativeViewProps = {
|
|
8
9
|
slotName: string;
|
|
@@ -37,6 +38,12 @@ export interface DropdownMenuItemProps {
|
|
|
37
38
|
* @default true
|
|
38
39
|
*/
|
|
39
40
|
enabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The position of the item in its `DropdownMenuGroup`, which sets its shape through Compose's
|
|
43
|
+
* `MenuDefaults.itemShape(index, count).shape`. When set, the item is a Material 3 Expressive
|
|
44
|
+
* menu item and can show `SupportingText`.
|
|
45
|
+
*/
|
|
46
|
+
shape?: MenuShapePosition;
|
|
40
47
|
/**
|
|
41
48
|
* Color overrides for the menu item.
|
|
42
49
|
*/
|
|
@@ -81,6 +88,16 @@ function TrailingIcon(props: { children: React.ReactNode }) {
|
|
|
81
88
|
return <SlotNativeView slotName="trailingIcon">{props.children}</SlotNativeView>;
|
|
82
89
|
}
|
|
83
90
|
|
|
91
|
+
/**
|
|
92
|
+
* A supporting text slot for `DropdownMenuItem`, shown below the text.
|
|
93
|
+
* Only applies to an item with a `shape`.
|
|
94
|
+
*
|
|
95
|
+
* @platform android
|
|
96
|
+
*/
|
|
97
|
+
function SupportingText(props: { children: React.ReactNode }) {
|
|
98
|
+
return <SlotNativeView slotName="supportingText">{props.children}</SlotNativeView>;
|
|
99
|
+
}
|
|
100
|
+
|
|
84
101
|
/**
|
|
85
102
|
* A text slot for `DropdownMenuItem`.
|
|
86
103
|
* Wrap text content to display as the menu item label.
|
|
@@ -114,5 +131,6 @@ function DropdownMenuItemComponent(props: DropdownMenuItemProps) {
|
|
|
114
131
|
DropdownMenuItemComponent.Text = TextSlot;
|
|
115
132
|
DropdownMenuItemComponent.LeadingIcon = LeadingIcon;
|
|
116
133
|
DropdownMenuItemComponent.TrailingIcon = TrailingIcon;
|
|
134
|
+
DropdownMenuItemComponent.SupportingText = SupportingText;
|
|
117
135
|
|
|
118
136
|
export { DropdownMenuItemComponent as DropdownMenuItem };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { requireNativeView } from 'expo';
|
|
2
|
+
import type { ColorValue } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import type { ModifierConfig, ViewEvent } from '../../types';
|
|
5
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
6
|
+
import type { MenuShapePosition } from './index';
|
|
7
|
+
|
|
8
|
+
const SlotNativeView: React.ComponentType<{
|
|
9
|
+
slotName: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}> = requireNativeView('ExpoUI', 'SlotView');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Color overrides for the `SelectableDropdownMenuItem` component. Each color defaults to the
|
|
15
|
+
* value of Compose's `MenuDefaults.selectableItemColors()`.
|
|
16
|
+
*/
|
|
17
|
+
export type SelectableDropdownMenuItemColors = {
|
|
18
|
+
textColor?: ColorValue;
|
|
19
|
+
containerColor?: ColorValue;
|
|
20
|
+
leadingIconColor?: ColorValue;
|
|
21
|
+
trailingContentColor?: ColorValue;
|
|
22
|
+
disabledTextColor?: ColorValue;
|
|
23
|
+
disabledContainerColor?: ColorValue;
|
|
24
|
+
disabledLeadingIconColor?: ColorValue;
|
|
25
|
+
disabledTrailingContentColor?: ColorValue;
|
|
26
|
+
selectedTextColor?: ColorValue;
|
|
27
|
+
selectedContainerColor?: ColorValue;
|
|
28
|
+
selectedLeadingIconColor?: ColorValue;
|
|
29
|
+
selectedTrailingContentColor?: ColorValue;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Props of the `SelectableDropdownMenuItem` component.
|
|
34
|
+
*/
|
|
35
|
+
export interface SelectableDropdownMenuItemProps {
|
|
36
|
+
/**
|
|
37
|
+
* Whether the item is selected.
|
|
38
|
+
*/
|
|
39
|
+
selected: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Callback that is called when the item is clicked.
|
|
42
|
+
*/
|
|
43
|
+
onClick?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* The position of the item in its `DropdownMenuGroup`, which sets its shape through Compose's
|
|
46
|
+
* `MenuDefaults.itemShape(index, count)`. Defaults to `MenuDefaults.itemShapes()`, the shape of a
|
|
47
|
+
* single item.
|
|
48
|
+
*/
|
|
49
|
+
shapes?: MenuShapePosition;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the item is enabled.
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Color overrides for the item.
|
|
57
|
+
*/
|
|
58
|
+
colors?: SelectableDropdownMenuItemColors;
|
|
59
|
+
/**
|
|
60
|
+
* Modifiers for the component.
|
|
61
|
+
*/
|
|
62
|
+
modifiers?: ModifierConfig[];
|
|
63
|
+
/**
|
|
64
|
+
* Slot children for the text, the icons, and the supporting text.
|
|
65
|
+
*/
|
|
66
|
+
children?: React.ReactNode;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type NativeSelectableDropdownMenuItemProps = Omit<
|
|
70
|
+
SelectableDropdownMenuItemProps,
|
|
71
|
+
'onClick' | 'children'
|
|
72
|
+
> &
|
|
73
|
+
ViewEvent<'onItemPressed', void> & { children?: React.ReactNode };
|
|
74
|
+
|
|
75
|
+
const SelectableDropdownMenuItemNativeView: React.ComponentType<NativeSelectableDropdownMenuItemProps> =
|
|
76
|
+
requireNativeView('ExpoUI', 'SelectableDropdownMenuItemView');
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* A text slot for `SelectableDropdownMenuItem`.
|
|
80
|
+
*
|
|
81
|
+
* @platform android
|
|
82
|
+
*/
|
|
83
|
+
function TextSlot(props: { children: React.ReactNode }) {
|
|
84
|
+
return <SlotNativeView slotName="text">{props.children}</SlotNativeView>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A leading icon slot for `SelectableDropdownMenuItem`. When the item also has a
|
|
89
|
+
* `SelectedLeadingIcon`, this icon shows only while the item is not selected.
|
|
90
|
+
*
|
|
91
|
+
* @platform android
|
|
92
|
+
*/
|
|
93
|
+
function LeadingIcon(props: { children: React.ReactNode }) {
|
|
94
|
+
return <SlotNativeView slotName="leadingIcon">{props.children}</SlotNativeView>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A leading icon slot for `SelectableDropdownMenuItem`, shown while the item is selected.
|
|
99
|
+
*
|
|
100
|
+
* @platform android
|
|
101
|
+
*/
|
|
102
|
+
function SelectedLeadingIcon(props: { children: React.ReactNode }) {
|
|
103
|
+
return <SlotNativeView slotName="selectedLeadingIcon">{props.children}</SlotNativeView>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* A trailing content slot for `SelectableDropdownMenuItem`, shown after the text.
|
|
108
|
+
*
|
|
109
|
+
* @platform android
|
|
110
|
+
*/
|
|
111
|
+
function TrailingContent(props: { children: React.ReactNode }) {
|
|
112
|
+
return <SlotNativeView slotName="trailingContent">{props.children}</SlotNativeView>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A supporting text slot for `SelectableDropdownMenuItem`, shown below the text.
|
|
117
|
+
*
|
|
118
|
+
* @platform android
|
|
119
|
+
*/
|
|
120
|
+
function SupportingText(props: { children: React.ReactNode }) {
|
|
121
|
+
return <SlotNativeView slotName="supportingText">{props.children}</SlotNativeView>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* A Material 3 Expressive menu item that wraps Compose's `SelectableDropdownMenuItem`, for a
|
|
126
|
+
* choice of one option. A selected item gets a highlighted container and shows its
|
|
127
|
+
* `SelectedLeadingIcon`.
|
|
128
|
+
*
|
|
129
|
+
* @platform android
|
|
130
|
+
*/
|
|
131
|
+
export function SelectableDropdownMenuItem(props: SelectableDropdownMenuItemProps) {
|
|
132
|
+
const { onClick, modifiers, children, ...restProps } = props;
|
|
133
|
+
return (
|
|
134
|
+
<SelectableDropdownMenuItemNativeView
|
|
135
|
+
{...restProps}
|
|
136
|
+
modifiers={modifiers}
|
|
137
|
+
{...(modifiers ? createViewModifierEventListener(modifiers) : undefined)}
|
|
138
|
+
enabled={props.enabled ?? true}
|
|
139
|
+
onItemPressed={onClick ? () => onClick() : undefined}>
|
|
140
|
+
{children}
|
|
141
|
+
</SelectableDropdownMenuItemNativeView>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
SelectableDropdownMenuItem.Text = TextSlot;
|
|
146
|
+
SelectableDropdownMenuItem.LeadingIcon = LeadingIcon;
|
|
147
|
+
SelectableDropdownMenuItem.SelectedLeadingIcon = SelectedLeadingIcon;
|
|
148
|
+
SelectableDropdownMenuItem.TrailingContent = TrailingContent;
|
|
149
|
+
SelectableDropdownMenuItem.SupportingText = SupportingText;
|