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

50 lines
2.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9762
// Function ID: 9763
2026-07-20 16:05:17 +00:00
// Name: VoidTextInput
// Dependencies: [19, 17, 1074, 21, 4560, 576, 4411, 1115, 4409, 2]
2026-07-20 16:05:17 +00:00
// Module 9762 (VoidTextInput)
import ThemesDefault from "Themes" /* 576 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 4411 */;
2026-08-24 06:08:38 +00:00
import { TextInput } from "get ActivityIndicator" /* 17 */;
import ME from "ME" /* 1074 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ KeyboardThemes: c4, Fonts } = ME);
let obj = { input: null, placeholderTextColor: null };
2026-08-24 06:08:38 +00:00
obj = { fontSize: 16, alignSelf: "center", fontFamily: Fonts.PRIMARY_MEDIUM, color: ThemesDefault.colors.TEXT_DEFAULT };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
createCacheKey = { color: ThemesDefault.colors.INPUT_PLACEHOLDER_TEXT_DEFAULT };
2026-07-29 08:29:29 +00:00
obj[1] = createCacheKey;
let closure_6 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
const forwardRefResult = importAllResult.forwardRef((style, ref) => {
2026-07-29 08:29:29 +00:00
const merged = Object.assign(style, Object.create(null));
const tmp2 = callback();
2026-08-24 06:08:38 +00:00
let obj = AccessibilityAnnouncer;
2026-07-20 16:05:17 +00:00
const theme = obj.useThemeContext().theme;
2026-08-24 06:08:38 +00:00
const obj2 = AccessibilityAnnouncer;
const unsafe_rawColors = ThemesDefault.unsafe_rawColors;
const tmp6 = AccessibilityAnnouncer.isThemeDark(theme) ? unsafe_rawColors.PRIMARY_100 : unsafe_rawColors.PRIMARY_500;
2026-07-29 08:29:29 +00:00
obj = { ref, style: items, keyboardAppearance: null, placeholderTextColor: null, selectionColor: null };
items = [tmp2.input, style.style];
let tmp3Result = tmp3(4411);
2026-07-29 08:29:29 +00:00
obj[2] = tmp3Result.isThemeDark(theme) ? closure_4.DARK : closure_4.LIGHT;
obj[3] = tmp2.placeholderTextColor.color;
tmp3Result = tmp3(1115);
2026-07-29 08:29:29 +00:00
let hexWithOpacityResult = tmp6;
if (tmp3Result.isAndroid()) {
hexWithOpacityResult = tmp3(4409).hexWithOpacity(tmp6, 0.5);
const tmp3Result1 = tmp3(4409);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[4] = hexWithOpacityResult;
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
return <TextInput ref={arg1} style={items} keyboardAppearance={null} placeholderTextColor={null} selectionColor={null} />;
2026-07-20 16:05:17 +00:00
});
forwardRefResult.displayName = "VoidTextInput";
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("design/void/TextInput/native/TextInput.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;