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

78 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9145
2026-07-27 11:26:19 +00:00
// Function ID: 71821
2026-07-20 16:05:17 +00:00
// Name: SplitTextField
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 6683, 6677, 6678, 6682, 6685, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 9145 (SplitTextField)
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import { jsx } from "jsxProd";
import importAllResult from "result";
let closure_2;
let closure_3;
const require = arg1;
({ Pressable: closure_2, View: closure_3 } = get_ActivityIndicator);
const forwardRefResult = require("result").forwardRef((size) => {
2026-07-20 16:05:17 +00:00
let innerRef;
let inputStyle;
let state;
let trailing;
2026-07-25 08:10:48 +00:00
let obj = require(6683) /* useInputStyles */;
2026-07-20 16:05:17 +00:00
obj = { size: size.size, isRound: size.isRound };
const inputStyles = obj.useInputStyles(obj);
2026-07-25 08:10:48 +00:00
let obj2 = require(6677) /* useTextFieldState */;
2026-07-20 16:05:17 +00:00
const textField = obj2.useTextField(size, arg1);
({ innerRef, state } = textField);
2026-07-25 08:10:48 +00:00
let obj3 = require(6678) /* useInputClearButtonConfig */;
2026-07-20 16:05:17 +00:00
const inputClearButtonConfig = obj3.useInputClearButtonConfig(size, state);
let tmp4;
if (null != inputClearButtonConfig) {
obj = {};
({ content: obj5.trailing, pressableProps: obj5.trailingPressableProps } = inputClearButtonConfig);
tmp4 = obj;
}
2026-07-25 08:10:48 +00:00
const inputAttachments = require(6682) /* estimateAttachmentWidth */.useInputAttachments(size, tmp4);
2026-07-20 16:05:17 +00:00
let tmp6 = null;
({ trailing, inputStyle } = inputAttachments);
if (null != size.leadingText) {
tmp6 = null;
if (size.leadingText.length > 0) {
const obj1 = { style: inputStyles.splitBorder };
obj2 = {
style(pressed) {
let tmp;
if (pressed.pressed) {
const obj = { opacity: 0.2 };
tmp = obj;
}
const items = [tmp];
return items;
}
};
const merged = Object.assign(size.leadingPressableProps);
2026-07-25 08:10:48 +00:00
obj2["children"] = require(6682) /* estimateAttachmentWidth */.renderInputAttachment(undefined, size.leadingText, inputStyles.text);
2026-07-23 10:11:24 +00:00
obj1.children = <closure_2 style={function style(pressed) {
let tmp;
if (pressed.pressed) {
const obj = { opacity: 0.2 };
tmp = obj;
}
const items = [tmp];
return items;
}} />;
tmp6 = <closure_3 style={inputStyles.splitBorder} />;
2026-07-25 08:10:48 +00:00
const obj9 = require(6682) /* estimateAttachmentWidth */;
2026-07-20 16:05:17 +00:00
}
}
obj3 = {};
const merged1 = Object.assign(textField.inputProps);
obj3["ref"] = innerRef;
obj3["leading"] = tmp6;
obj3["trailing"] = trailing;
obj3["inputStyle"] = inputStyle;
2026-07-25 08:10:48 +00:00
return jsx(require(6685) /* collapseNewlines */.BaseTextField, {});
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("design/components/SplitTextInput/native/SplitTextField.native.tsx");
2026-07-20 16:05:17 +00:00
export const SplitTextField = forwardRefResult;