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

50 lines
2.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9686
// Function ID: 9687
2026-07-20 16:05:17 +00:00
// Name: VoidTextInput
// Dependencies: [19, 17, 673, 21, 4481, 709, 1362, 1234, 4329, 2]
2026-07-20 16:05:17 +00:00
// Module 9686 (VoidTextInput)
2026-09-02 09:53:35 +00:00
import ThemesDefault from "Themes" /* 709 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1362 */;
2026-08-24 06:08:38 +00:00
import { TextInput } from "get ActivityIndicator" /* 17 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4481 */;
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-09-02 09:53:35 +00:00
let tmp3Result = tmp3(1362);
2026-07-29 08:29:29 +00:00
obj[2] = tmp3Result.isThemeDark(theme) ? closure_4.DARK : closure_4.LIGHT;
obj[3] = tmp2.placeholderTextColor.color;
2026-09-02 09:53:35 +00:00
tmp3Result = tmp3(1234);
2026-07-29 08:29:29 +00:00
let hexWithOpacityResult = tmp6;
if (tmp3Result.isAndroid()) {
hexWithOpacityResult = tmp3(4329).hexWithOpacity(tmp6, 0.5);
const tmp3Result1 = tmp3(4329);
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;