2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 14198
|
|
|
|
|
// Function ID: 14199
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: GhostInput
|
2026-09-10 05:38:07 +00:00
|
|
|
// Dependencies: [109, 19, 21, 4574, 4570, 576, 6635, 4293, 6628, 6621, 6638, 6622, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: GhostInput
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 14198 (GhostInput)
|
|
|
|
|
import nativeDefault from "native" /* 576 */;
|
|
|
|
|
import useFieldLabelA11yNative from "useFieldLabelA11yNative" /* 4293 */;
|
|
|
|
|
import Text_Text from "Text/Text" /* 4570 */;
|
|
|
|
|
import Input from "Input" /* 6621 */;
|
|
|
|
|
import getRequiredFieldA11yName from "getRequiredFieldA11yName" /* 6622 */;
|
|
|
|
|
import useTextField from "useTextField" /* 6628 */;
|
|
|
|
|
import InputFieldContainer from "InputFieldContainer" /* 6635 */;
|
|
|
|
|
import NativeTextInput from "NativeTextInput" /* 6638 */;
|
|
|
|
|
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-09-05 10:56:28 +00:00
|
|
|
let closure_3 = ["labelId", "accessibilityLabel"];
|
2026-09-10 05:38:07 +00:00
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const createStyles = fn(4574);
|
|
|
|
|
let closure_6 = createStyles.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-09-10 05:38:07 +00:00
|
|
|
const merged = Object.assign({ md: Text_Text.TextStyleSheet["text-md/semibold"], lg: Text_Text.TextStyleSheet["text-lg/semibold"] }[str]);
|
2026-07-20 16:05:17 +00:00
|
|
|
if ("error" === str2) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let TEXT_DEFAULT = nativeDefault.colors.TEXT_FEEDBACK_CRITICAL;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
TEXT_DEFAULT = nativeDefault.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-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("design/components/TextInput/native/GhostInput.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const GhostInput = function GhostInput(size) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const inputStyles = InputFieldContainer.useInputStyles({ size: size.size });
|
|
|
|
|
const tmp4 = closure_6(size.size, size.status);
|
2026-07-20 16:05:17 +00:00
|
|
|
const isCentered = size.isCentered;
|
|
|
|
|
const autoFocus = size.autoFocus;
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { size: size.size };
|
|
|
|
|
const tmp5 = undefined === isCentered || isCentered;
|
|
|
|
|
const tmp6 = undefined === autoFocus || autoFocus;
|
|
|
|
|
const fieldLabelA11yNative = useFieldLabelA11yNative.useFieldLabelA11yNative(size);
|
2026-09-05 10:56:28 +00:00
|
|
|
const accessibilityLabel = fieldLabelA11yNative.accessibilityLabel;
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmpResult = useFieldLabelA11yNative;
|
|
|
|
|
const tmp8 = _objectWithoutProperties(fieldLabelA11yNative, closure_3);
|
|
|
|
|
const textField = useTextField.useTextField(size, undefined);
|
|
|
|
|
const obj3 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(size);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3.labelId = fieldLabelA11yNative.labelId;
|
2026-07-20 16:05:17 +00:00
|
|
|
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-09-10 05:38:07 +00:00
|
|
|
obj3.containerStyle = items;
|
|
|
|
|
const obj4 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged1 = Object.assign(textField.inputProps);
|
2026-09-10 05:38:07 +00:00
|
|
|
const merged2 = Object.assign(tmp8);
|
|
|
|
|
const tmpResult3 = useTextField;
|
2026-09-05 10:56:28 +00:00
|
|
|
let requiredFieldA11yName = getRequiredFieldA11yName.getRequiredFieldA11yName(accessibilityLabel, size.required);
|
|
|
|
|
if (requiredFieldA11yName == null) {
|
|
|
|
|
requiredFieldA11yName = accessibilityLabel;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj4.accessibilityLabel = requiredFieldA11yName;
|
|
|
|
|
obj4.ref = textField.innerRef;
|
2026-07-29 08:29:29 +00:00
|
|
|
const items1 = [tmp4.input];
|
2026-09-10 05:38:07 +00:00
|
|
|
obj4.style = items1;
|
|
|
|
|
obj4.placeholderTextColor = inputStyles.placeholderText.color;
|
|
|
|
|
obj4.spellCheck = false;
|
|
|
|
|
obj4.autoFocus = tmp6;
|
|
|
|
|
obj3.children = jsx(NativeTextInput.NativeTextInput, {});
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(Input.Input, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|