55 lines
3.3 KiB
TypeScript
55 lines
3.3 KiB
TypeScript
/* Metro module 12802; source: design/components/TextInput/native/GhostInput.native.tsx; dependencies: [31, 33, 4501, 4573, 697, 6992, 6986, 7682, 6995, 2] */
|
|
function _fun97661(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12992:6, offset: 0x0218c54a, size: 171 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun97662);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/TextInput/native/GhostInput.native.tsx');
|
|
exports.GhostInput = GhostInput;
|
|
}
|
|
|
|
function _fun97662() { // fn#97662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12992:142, offset: 0x0218c5f5, size: 224 bytes, params: 1, frame: 20
|
|
const value = a0;
|
|
const value2 = a1;
|
|
const r6 = value !== undefined ? value : 'lg';
|
|
const r4 = value2 !== undefined ? value2 : 'default';
|
|
const object = {};
|
|
const TextStyleSheet = (require(4573) /* metro dependency 4573: Text */).TextStyleSheet;
|
|
const property = TextStyleSheet['text-md/semibold'];
|
|
copyDataProperties(object, ({md: property, lg: TextStyleSheet['text-lg/semibold']})[r6], property);
|
|
object['color'] = r4 === 'error' ? (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL : (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
|
object['minWidth'] = 48;
|
|
return {input: object, centeredContainerStyle: {alignItems: 'center'}};
|
|
}
|
|
|
|
function GhostInput(a0) { // fn#97663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12992:522, offset: 0x0218c6d5, size: 355 bytes, params: 2, frame: 22
|
|
const value2 = undefined;
|
|
const value3 = (require(6992) /* metro dependency 6992: InputFieldContainerNative */).useInputStyles({size: a0.size});
|
|
const styles = useStyles(a0.size, a0.status);
|
|
const isCentered = a0.isCentered;
|
|
const r12 = value2 === isCentered || isCentered;
|
|
const autoFocus = a0.autoFocus;
|
|
const r8 = value2 === autoFocus || autoFocus;
|
|
const {innerRef, inputProps} = (require(6986) /* metro dependency 6986: useTextFieldNative */).useTextField(a0,
|
|
value2);
|
|
const Input = (require(7682) /* metro dependency 7682: InputNative */).Input;
|
|
const inputProps2 = {...a0};
|
|
inputProps2['containerStyle'] = [a0.containerStyle, r12 ? styles.centeredContainerStyle : value2];
|
|
const NativeTextInput = (require(6995) /* metro dependency 6995: NativeTextInputNative */).NativeTextInput;
|
|
return (
|
|
<Input {...inputProps2}>
|
|
<NativeTextInput
|
|
{...inputProps}
|
|
{...{['ref']: innerRef}}
|
|
{...{['style']: [styles.input]}}
|
|
{...{['placeholderTextColor']: value3.placeholderText.color}}
|
|
{...{['spellCheck']: false}}
|
|
{...{['autoFocus']: r8}}
|
|
/>
|
|
</Input>
|
|
);
|
|
}
|
|
|