39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
// Module ID: 7705
|
|
// Function ID: 7706
|
|
// Name: TextInput
|
|
// Dependencies: [109, 19, 21, 4206, 7706, 6222, 2]
|
|
|
|
// Module 7705 (TextInput)
|
|
import useFieldLabelA11yNative from "useFieldLabelA11yNative" /* 4206 */;
|
|
import TextField from "TextField" /* 6222 */;
|
|
import Input from "Input" /* 7706 */;
|
|
import closure_3 from "_objectWithoutProperties" /* 109 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import importAllResult from "noop" /* 19 */;
|
|
|
|
require = arg1;
|
|
let closure_2 = ["labelId"];
|
|
const forwardRefResult = importAllResult.forwardRef((status, ref) => {
|
|
status = status.status;
|
|
let obj = useFieldLabelA11yNative;
|
|
const fieldLabelA11yNative = obj.useFieldLabelA11yNative(status);
|
|
if (status == null) {
|
|
let str;
|
|
if (null != status.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));
|
|
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;
|