decord/source/design/components/TextField/native/TextField.native.tsx

40 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 6231
// Function ID: 6232
2026-07-20 16:05:17 +00:00
// Name: TextField
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 21, 6232, 6233, 6237, 6240, 2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 6231 (TextField)
import useTextFieldState from "useTextFieldState" /* 6232 */;
import useInputClearButton from "useInputClearButton" /* 6233 */;
import InputAttachmentContainer from "InputAttachmentContainer" /* 6237 */;
import BaseTextField from "BaseTextField" /* 6240 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const forwardRefResult = importAllResult.forwardRef((onClear, ref) => {
let obj = useTextFieldState;
2026-07-29 08:29:29 +00:00
const textField = obj.useTextField(onClear, ref);
({ inputProps, innerRef, state } = textField);
2026-08-24 06:08:38 +00:00
const inputClearButtonConfig = useInputClearButton.useInputClearButtonConfig(onClear, state);
2026-07-29 08:29:29 +00:00
let tmp5;
2026-07-20 16:05:17 +00:00
if (null != inputClearButtonConfig) {
2026-07-29 08:29:29 +00:00
obj = { trailing: null, trailingPressableProps: null };
({ content: obj3[0], pressableProps: obj3[1] } = inputClearButtonConfig);
tmp5 = obj;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const obj2 = useInputClearButton;
const inputAttachments = InputAttachmentContainer.useInputAttachments(onClear, tmp5);
2026-07-20 16:05:17 +00:00
({ leading, trailing, inputStyle } = inputAttachments);
obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(inputProps);
obj.ref = innerRef;
obj.leading = leading;
obj.trailing = trailing;
obj.inputStyle = inputStyle;
2026-08-24 06:08:38 +00:00
return jsx(BaseTextField.BaseTextField, {});
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("design/components/TextField/native/TextField.native.tsx");
2026-07-20 16:05:17 +00:00
export const TextField = forwardRefResult;