48 lines
1.8 KiB
TypeScript
48 lines
1.8 KiB
TypeScript
// Module ID: 6606
|
|
// Function ID: 6607
|
|
// Name: TextInput
|
|
// Dependencies: [109, 19, 21, 4278, 6607, 6613, 6608, 2]
|
|
|
|
// Module 6606 (TextInput)
|
|
import useFieldLabelA11yNative from "useFieldLabelA11yNative" /* 4278 */;
|
|
import Input from "Input" /* 6607 */;
|
|
import getRequiredFieldA11yName from "getRequiredFieldA11yName" /* 6608 */;
|
|
import TextField from "TextField" /* 6613 */;
|
|
import closure_3 from "_objectWithoutProperties" /* 109 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import importAllResult from "noop" /* 19 */;
|
|
|
|
require = arg1;
|
|
let closure_2 = ["labelId", "accessibilityLabel"];
|
|
const forwardRefResult = importAllResult.forwardRef((status, ref) => {
|
|
status = status.status;
|
|
({ errorMessage, required } = status);
|
|
let obj = useFieldLabelA11yNative;
|
|
const fieldLabelA11yNative = obj.useFieldLabelA11yNative(status);
|
|
const accessibilityLabel = fieldLabelA11yNative.accessibilityLabel;
|
|
if (status == null) {
|
|
let str;
|
|
if (null != errorMessage) {
|
|
str = "error";
|
|
}
|
|
status = str;
|
|
}
|
|
obj = {};
|
|
const merged = Object.assign(status);
|
|
obj.labelId = fieldLabelA11yNative.labelId;
|
|
obj = { ref };
|
|
const merged1 = Object.assign(status);
|
|
obj.status = status;
|
|
const merged2 = Object.assign(callback(fieldLabelA11yNative, closure_2));
|
|
const tmp4 = callback(fieldLabelA11yNative, closure_2);
|
|
let requiredFieldA11yName = getRequiredFieldA11yName.getRequiredFieldA11yName(accessibilityLabel, required);
|
|
if (requiredFieldA11yName == null) {
|
|
requiredFieldA11yName = accessibilityLabel;
|
|
}
|
|
obj.accessibilityLabel = requiredFieldA11yName;
|
|
obj.children = jsx(TextField.TextField, { ref });
|
|
return jsx(Input.Input, { ref });
|
|
});
|
|
const result = require("set").fileFinishedImporting("design/components/TextInput/native/TextInput.native.tsx");
|
|
|
|
export const TextInput = forwardRefResult;
|