decord/source/design/void/TextInput/native/TextInput.tsx

50 lines
2.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9897
// Function ID: 9898
// Name: TextInput/TextInput
// Dependencies: [19, 17, 1074, 21, 4638, 576, 4489, 1364, 4487, 2]
2026-07-20 16:05:17 +00:00
// Module 9897 (TextInput/TextInput)
import nativeDefault from "native" /* 576 */;
import shared from "shared" /* 4489 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const TextInput = fn(17).TextInput;
const Constants = fn(1074);
({ KeyboardThemes: closure_4, Fonts } = Constants);
const jsx = fn(21).jsx;
const createStyles = fn(4638);
let obj = { input: { fontSize: 16, alignSelf: "center", fontFamily: Fonts.PRIMARY_MEDIUM, color: nativeDefault.colors.TEXT_DEFAULT }, placeholderTextColor: null };
let obj3 = { fontSize: 16, alignSelf: "center", fontFamily: Fonts.PRIMARY_MEDIUM, color: nativeDefault.colors.TEXT_DEFAULT };
obj.placeholderTextColor = { color: nativeDefault.colors.INPUT_PLACEHOLDER_TEXT_DEFAULT };
let closure_6 = createStyles.createStyles(obj);
const forwardRefResult = noop.forwardRef((style, ref) => {
const merged = Object.assign(style, Object.assign({ style: 0 }));
const tmp2 = closure_6();
const theme = shared.useThemeContext().theme;
const unsafe_rawColors = nativeDefault.unsafe_rawColors;
const tmp6 = shared.isThemeDark(theme) ? unsafe_rawColors.PRIMARY_100 : unsafe_rawColors.PRIMARY_500;
const obj3 = { ref, style: null, keyboardAppearance: null, placeholderTextColor: null, selectionColor: null };
const items = [tmp2.input, style.style];
obj3.style = items;
const isThemeDarkResult = shared.isThemeDark(theme);
const tmp7 = jsx;
const tmp8 = TextInput;
obj3.keyboardAppearance = shared.isThemeDark(theme) ? React4.DARK : React4.LIGHT;
obj3.placeholderTextColor = tmp2.placeholderTextColor.color;
const tmp3Result = shared;
2026-07-29 08:29:29 +00:00
let hexWithOpacityResult = tmp6;
if (tmp3Result3.isAndroid()) {
hexWithOpacityResult = tmp3(4487).hexWithOpacity(tmp6, 0.5);
const tmp3Result4 = tmp3(4487);
2026-07-20 16:05:17 +00:00
}
obj3.selectionColor = hexWithOpacityResult;
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
return tmp7(tmp8, obj3);
2026-07-20 16:05:17 +00:00
});
forwardRefResult.displayName = "VoidTextInput";
const size = fn(2);
const result = size.fileFinishedImporting("design/void/TextInput/native/TextInput.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;