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

50 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-26 06:04:24 +00:00
// Module ID: 9226
// Function ID: 9227
2026-07-20 16:05:17 +00:00
// Name: VoidTextInput
2026-08-26 06:04:24 +00:00
// Dependencies: [19, 17, 676, 21, 4444, 712, 1363, 500, 4292, 2]
2026-07-20 16:05:17 +00:00
2026-08-26 06:04:24 +00:00
// Module 9226 (VoidTextInput)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1363 */;
import { TextInput } from "get ActivityIndicator" /* 17 */;
import ME from "ME" /* 676 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-26 06:04:24 +00:00
import createCacheKey from "createCacheKey" /* 4444 */;
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];
2026-08-11 06:20:06 +00:00
let tmp3Result = tmp3(1363);
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-08-26 06:04:24 +00:00
hexWithOpacityResult = tmp3(4292).hexWithOpacity(tmp6, 0.5);
const tmp3Result1 = tmp3(4292);
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;