decord/source/design/components/SplitTextInput/native/SplitTextField.native.tsx

68 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8641
// Function ID: 8642
2026-07-20 16:05:17 +00:00
// Name: SplitTextField
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 7383, 7377, 7378, 7382, 7385, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 8641 (SplitTextField)
import useTextFieldState from "useTextFieldState" /* 7377 */;
import useInputClearButton from "useInputClearButton" /* 7378 */;
import useInputStyles from "useInputStyles" /* 7383 */;
import BaseTextField from "BaseTextField" /* 7385 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
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;
2026-07-29 08:29:29 +00:00
({ Pressable: obj1, View: c3 } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
const forwardRefResult = importAllResult.forwardRef((size, ref) => {
let obj = useInputStyles;
2026-07-20 16:05:17 +00:00
obj = { size: size.size, isRound: size.isRound };
const inputStyles = obj.useInputStyles(obj);
2026-08-24 06:08:38 +00:00
let obj2 = useTextFieldState;
2026-07-29 08:29:29 +00:00
const textField = obj2.useTextField(size, ref);
({ inputProps, innerRef, state } = textField);
2026-08-24 06:08:38 +00:00
let obj3 = useInputClearButton;
2026-07-20 16:05:17 +00:00
const inputClearButtonConfig = obj3.useInputClearButtonConfig(size, state);
2026-07-29 08:29:29 +00:00
let tmp6;
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: obj5[0], pressableProps: obj5[1] } = inputClearButtonConfig);
tmp6 = obj;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
let tmpResult = tmp(7382);
2026-07-29 08:29:29 +00:00
const inputAttachments = tmpResult.useInputAttachments(size, tmp6);
let tmp8 = null;
2026-07-20 16:05:17 +00:00
({ trailing, inputStyle } = inputAttachments);
if (null != size.leadingText) {
2026-07-29 08:29:29 +00:00
tmp8 = null;
2026-07-20 16:05:17 +00:00
if (size.leadingText.length > 0) {
2026-08-24 06:08:38 +00:00
obj1 = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = inputStyles.splitBorder;
obj2 = { style: null };
obj2[0] = function style(pressed) {
let obj;
2026-07-23 10:11:24 +00:00
if (pressed.pressed) {
2026-07-29 08:29:29 +00:00
obj = { opacity: 0.2 };
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
const items = [obj];
2026-07-23 10:11:24 +00:00
return items;
2026-07-29 08:29:29 +00:00
};
const merged = Object.assign(size.leadingPressableProps);
2026-08-24 06:08:38 +00:00
tmpResult = tmp(7382);
2026-07-29 08:29:29 +00:00
obj2.children = tmpResult.renderInputAttachment(undefined, size.leadingText, inputStyles.text);
obj1[1] = <closure_2 style={null} />;
tmp8 = <closure_3 style={null}>{null}</closure_3>;
2026-07-20 16:05:17 +00:00
}
}
obj3 = {};
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(inputProps);
obj3.ref = innerRef;
obj3.leading = tmp8;
obj3.trailing = trailing;
obj3.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/SplitTextInput/native/SplitTextField.native.tsx");
2026-07-20 16:05:17 +00:00
export const SplitTextField = forwardRefResult;