decord/source/design/components/TextInput/native/GhostInput.native.tsx

63 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 13489
// Function ID: 13490
2026-07-20 16:05:17 +00:00
// Name: GhostInput
2026-08-13 07:00:46 +00:00
// Dependencies: [19, 21, 4342, 4338, 712, 6043, 6037, 7836, 6046, 2]
2026-07-20 16:05:17 +00:00
// Exports: GhostInput
2026-08-13 07:00:46 +00:00
// Module 13489 (GhostInput)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let closure_4 = createCacheKey.createStyles(() => {
2026-07-20 16:05:17 +00:00
let str = arg0;
if (arg0 === undefined) {
str = "lg";
}
2026-07-29 08:29:29 +00:00
let str2 = arg1;
if (arg1 === undefined) {
2026-07-20 16:05:17 +00:00
str2 = "default";
}
2026-07-29 08:29:29 +00:00
const input = {};
2026-08-13 07:00:46 +00:00
const merged = Object.assign({ md: require(4338) /* Text */.TextStyleSheet["text-md/semibold"], lg: require(4338) /* Text */.TextStyleSheet["text-lg/semibold"] }[str]);
2026-07-20 16:05:17 +00:00
if ("error" === str2) {
2026-07-29 08:29:29 +00:00
let TEXT_DEFAULT = importDefault(712).colors.TEXT_FEEDBACK_CRITICAL;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
TEXT_DEFAULT = importDefault(712).colors.TEXT_DEFAULT;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
input.color = TEXT_DEFAULT;
input.minWidth = 48;
return { input, centeredContainerStyle: { alignItems: "center" } };
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
const result = require("createCacheKey").fileFinishedImporting("design/components/TextInput/native/GhostInput.native.tsx");
2026-07-20 16:05:17 +00:00
export const GhostInput = function GhostInput(size) {
2026-08-13 07:00:46 +00:00
let obj = require(6043) /* useInputStyles */;
2026-07-20 16:05:17 +00:00
obj = { size: size.size };
const inputStyles = obj.useInputStyles(obj);
2026-07-29 08:29:29 +00:00
const tmp4 = callback(size.size, size.status);
2026-07-20 16:05:17 +00:00
const isCentered = size.isCentered;
const autoFocus = size.autoFocus;
2026-08-13 07:00:46 +00:00
const textField = require(6037) /* useTextFieldState */.useTextField(size, undefined);
2026-07-20 16:05:17 +00:00
obj = {};
const merged = Object.assign(size);
const items = [size.containerStyle, ];
let prop;
2026-07-29 08:29:29 +00:00
if (tmp5) {
prop = tmp4.centeredContainerStyle;
2026-07-20 16:05:17 +00:00
}
items[1] = prop;
2026-07-29 08:29:29 +00:00
obj.containerStyle = items;
2026-07-20 16:05:17 +00:00
const obj1 = {};
const merged1 = Object.assign(textField.inputProps);
2026-07-29 08:29:29 +00:00
obj1.ref = textField.innerRef;
const items1 = [tmp4.input];
obj1.style = items1;
obj1.placeholderTextColor = inputStyles.placeholderText.color;
obj1.spellCheck = false;
obj1.autoFocus = undefined === autoFocus || autoFocus;
2026-08-13 07:00:46 +00:00
obj.children = jsx(require(6046) /* useKeyboardBlurring */.NativeTextInput, {});
return jsx(require(7836) /* Input */.Input, {});
2026-07-20 16:05:17 +00:00
};