mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 00:01:24 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
84 lines
1.6 KiB
TypeScript
84 lines
1.6 KiB
TypeScript
import React from 'react';
|
|
import {
|
|
TextInput,
|
|
StyleSheet,
|
|
View,
|
|
TextInputProps,
|
|
StyleProp,
|
|
ViewStyle,
|
|
TextStyle,
|
|
} from 'react-native';
|
|
|
|
export interface TextFieldProps extends Omit<TextInputProps, 'style'> {
|
|
value: string;
|
|
onChangeText: (text: string) => void;
|
|
placeholder?: string;
|
|
multiline?: boolean;
|
|
numberOfLines?: number;
|
|
style?: StyleProp<TextStyle>;
|
|
placeholderTextColor?: string;
|
|
variant?: 'default' | 'large';
|
|
}
|
|
|
|
const TextField: React.FC<TextFieldProps> = ({
|
|
value,
|
|
onChangeText,
|
|
placeholder,
|
|
multiline = false,
|
|
style,
|
|
placeholderTextColor = '#999',
|
|
variant = 'default',
|
|
...rest
|
|
}) => {
|
|
const variantStyles = variant === 'large' ? styles.large : {};
|
|
const multilineVariantStyles =
|
|
variant === 'large' && multiline ? styles.multilineLarge : multiline ? styles.multiline : {};
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<TextInput
|
|
style={[styles.input, variantStyles, multilineVariantStyles, style]}
|
|
value={value}
|
|
onChangeText={onChangeText}
|
|
placeholder={placeholder}
|
|
placeholderTextColor={placeholderTextColor}
|
|
multiline={multiline}
|
|
{...rest}
|
|
/>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
width: '100%',
|
|
marginBottom: 16,
|
|
},
|
|
input: {
|
|
backgroundColor: '#333',
|
|
color: '#fff',
|
|
padding: 12,
|
|
borderRadius: 8,
|
|
fontSize: 16,
|
|
borderWidth: 1,
|
|
borderColor: 'rgba(255, 255, 255, 0.12)',
|
|
width: '100%',
|
|
},
|
|
multiline: {
|
|
height: 100,
|
|
textAlignVertical: 'top',
|
|
paddingTop: 12,
|
|
},
|
|
large: {
|
|
padding: 16,
|
|
borderRadius: 12,
|
|
fontSize: 18,
|
|
},
|
|
multilineLarge: {
|
|
height: 140,
|
|
textAlignVertical: 'top',
|
|
paddingTop: 16,
|
|
},
|
|
});
|
|
|
|
export default TextField;
|