Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
49 lines
2.2 KiB
TypeScript
49 lines
2.2 KiB
TypeScript
// Module ID: 9827
|
|
// Function ID: 9828
|
|
// Name: TextInput/TextInput
|
|
// Dependencies: [19, 17, 1074, 21, 4605, 576, 4456, 1115, 4454, 2]
|
|
|
|
// Module 9827 (TextInput/TextInput)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import shared from "shared" /* 4456 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const TextInput = fn(17).TextInput;
|
|
const Constants = fn(1074);
|
|
({ KeyboardThemes: closure_4, Fonts } = Constants);
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4605);
|
|
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;
|
|
let hexWithOpacityResult = tmp6;
|
|
if (tmp3Result3.isAndroid()) {
|
|
hexWithOpacityResult = tmp3(4454).hexWithOpacity(tmp6, 0.5);
|
|
const tmp3Result4 = tmp3(4454);
|
|
}
|
|
obj3.selectionColor = hexWithOpacityResult;
|
|
const merged1 = Object.assign(merged);
|
|
return tmp7(tmp8, obj3);
|
|
});
|
|
forwardRefResult.displayName = "VoidTextInput";
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("design/void/TextInput/native/TextInput.tsx");
|
|
|
|
export default forwardRefResult;
|