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

50 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 8295
// Function ID: 8296
2026-07-20 16:05:17 +00:00
// Name: VoidTextInput
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 17, 676, 21, 4193, 712, 4039, 500, 4037, 2]
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
// Module 8295 (VoidTextInput)
2026-07-23 10:11:24 +00:00
import { TextInput } from "get ActivityIndicator";
import ME from "ME";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let Fonts;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ KeyboardThemes: c4, Fonts } = ME);
let obj = { input: null, placeholderTextColor: null };
obj = { fontSize: 16, alignSelf: "center", fontFamily: Fonts.PRIMARY_MEDIUM, color: require("Themes").colors.TEXT_DEFAULT };
obj[0] = obj;
createCacheKey = { color: require("Themes").colors.INPUT_PLACEHOLDER_TEXT_DEFAULT };
obj[1] = createCacheKey;
let closure_6 = createCacheKey.createStyles(obj);
const forwardRefResult = require("noop").forwardRef((style, ref) => {
const merged = Object.assign(style, Object.create(null));
const tmp2 = callback();
2026-07-31 08:44:05 +00:00
let obj = require(4039) /* AccessibilityAnnouncer */;
2026-07-20 16:05:17 +00:00
const theme = obj.useThemeContext().theme;
2026-07-31 08:44:05 +00:00
const obj2 = require(4039) /* AccessibilityAnnouncer */;
2026-07-29 08:29:29 +00:00
const unsafe_rawColors = importDefault(712).unsafe_rawColors;
2026-07-31 08:44:05 +00:00
const tmp6 = require(4039) /* 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];
2026-07-31 08:44:05 +00:00
let tmp3Result = tmp3(4039);
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(500);
let hexWithOpacityResult = tmp6;
if (tmp3Result.isAndroid()) {
2026-07-31 08:44:05 +00:00
hexWithOpacityResult = tmp3(4037).hexWithOpacity(tmp6, 0.5);
const tmp3Result1 = tmp3(4037);
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-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("design/void/TextInput/native/TextInput.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;