@sendbird/uikit-react-native-foundation 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/lib/commonjs/index.js +0 -16
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/theme/DarkUIKitTheme.js +0 -10
  4. package/lib/commonjs/theme/DarkUIKitTheme.js.map +1 -1
  5. package/lib/commonjs/theme/LightUIKitTheme.js +0 -10
  6. package/lib/commonjs/theme/LightUIKitTheme.js.map +1 -1
  7. package/lib/commonjs/types.js.map +1 -1
  8. package/lib/commonjs/ui/GroupChannelPreview/index.js +2 -11
  9. package/lib/commonjs/ui/GroupChannelPreview/index.js.map +1 -1
  10. package/lib/module/index.js +0 -2
  11. package/lib/module/index.js.map +1 -1
  12. package/lib/module/theme/DarkUIKitTheme.js +0 -10
  13. package/lib/module/theme/DarkUIKitTheme.js.map +1 -1
  14. package/lib/module/theme/LightUIKitTheme.js +0 -10
  15. package/lib/module/theme/LightUIKitTheme.js.map +1 -1
  16. package/lib/module/types.js.map +1 -1
  17. package/lib/module/ui/GroupChannelPreview/index.js +2 -11
  18. package/lib/module/ui/GroupChannelPreview/index.js.map +1 -1
  19. package/lib/typescript/src/index.d.ts +0 -2
  20. package/lib/typescript/src/types.d.ts +1 -5
  21. package/lib/typescript/src/ui/GroupChannelPreview/index.d.ts +1 -2
  22. package/package.json +3 -3
  23. package/src/index.ts +0 -2
  24. package/src/theme/DarkUIKitTheme.ts +0 -10
  25. package/src/theme/LightUIKitTheme.ts +0 -10
  26. package/src/types.ts +1 -7
  27. package/src/ui/GroupChannelPreview/index.tsx +0 -13
  28. package/lib/commonjs/ui/OutlinedButton/index.js +0 -57
  29. package/lib/commonjs/ui/OutlinedButton/index.js.map +0 -1
  30. package/lib/commonjs/ui/ProfileCard/index.js +0 -94
  31. package/lib/commonjs/ui/ProfileCard/index.js.map +0 -1
  32. package/lib/module/ui/OutlinedButton/index.js +0 -43
  33. package/lib/module/ui/OutlinedButton/index.js.map +0 -1
  34. package/lib/module/ui/ProfileCard/index.js +0 -78
  35. package/lib/module/ui/ProfileCard/index.js.map +0 -1
  36. package/lib/typescript/src/ui/OutlinedButton/index.d.ts +0 -8
  37. package/lib/typescript/src/ui/ProfileCard/index.d.ts +0 -11
  38. package/src/ui/OutlinedButton/index.tsx +0 -42
  39. package/src/ui/ProfileCard/index.tsx +0 -73
@@ -1,42 +0,0 @@
1
- import React from 'react';
2
- import { Pressable, StyleProp, ViewStyle } from 'react-native';
3
-
4
- import Text from '../../components/Text';
5
- import createStyleSheet from '../../styles/createStyleSheet';
6
- import useUIKitTheme from '../../theme/useUIKitTheme';
7
-
8
- type OutlinedButtonProps = {
9
- children: string;
10
- containerStyle?: StyleProp<ViewStyle>;
11
- onPress?: () => void;
12
- };
13
-
14
- const OutlinedButton = ({ children, onPress, containerStyle }: OutlinedButtonProps) => {
15
- const { colors } = useUIKitTheme();
16
- return (
17
- <Pressable
18
- onPress={onPress}
19
- style={[styles.outlinedButton, { borderColor: colors.onBackground01 }, containerStyle]}
20
- >
21
- <Text button color={colors.onBackground01} numberOfLines={1} style={styles.outlinedButtonText}>
22
- {children}
23
- </Text>
24
- </Pressable>
25
- );
26
- };
27
-
28
- const styles = createStyleSheet({
29
- outlinedButton: {
30
- borderRadius: 4,
31
- padding: 16,
32
- borderWidth: 1,
33
- alignItems: 'center',
34
- justifyContent: 'center',
35
- },
36
- outlinedButtonText: {
37
- textAlign: 'center',
38
- width: '100%',
39
- },
40
- });
41
-
42
- export default OutlinedButton;
@@ -1,73 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, View, ViewStyle } from 'react-native';
3
-
4
- import Divider from '../../components/Divider';
5
- import Text from '../../components/Text';
6
- import createStyleSheet from '../../styles/createStyleSheet';
7
- import useUIKitTheme from '../../theme/useUIKitTheme';
8
- import Avatar from '../Avatar';
9
-
10
- type Props = {
11
- uri: string;
12
- username: string;
13
-
14
- button?: JSX.Element;
15
-
16
- bodyLabel: string;
17
- body: string;
18
-
19
- containerStyle?: StyleProp<ViewStyle>;
20
- };
21
-
22
- const ProfileCard = ({ uri, username, bodyLabel, body, button, containerStyle }: Props) => {
23
- const { colors } = useUIKitTheme();
24
- const color = colors.ui.profileCard.default.none;
25
-
26
- return (
27
- <View style={[styles.container, { backgroundColor: color.background }, containerStyle]}>
28
- <View style={styles.profileContainer}>
29
- <Avatar uri={uri} size={80} containerStyle={styles.profileAvatar} />
30
- <Text h1 color={color.textUsername} numberOfLines={1}>
31
- {username}
32
- </Text>
33
- </View>
34
- {button && <View style={styles.messageButtonArea}>{button}</View>}
35
- <Divider space={16} />
36
- <View style={styles.profileInfoContainer}>
37
- <Text body2 color={color.textBodyLabel} style={styles.profileInfoBodyLabel}>
38
- {bodyLabel}
39
- </Text>
40
- <Text body3 numberOfLines={1} color={color.textBody}>
41
- {body}
42
- </Text>
43
- </View>
44
- </View>
45
- );
46
- };
47
-
48
- const styles = createStyleSheet({
49
- container: {
50
- paddingTop: 32,
51
- width: '100%',
52
- },
53
- profileContainer: {
54
- alignItems: 'center',
55
- paddingHorizontal: 16,
56
- marginBottom: 24,
57
- },
58
- profileAvatar: {
59
- marginBottom: 8,
60
- },
61
- profileInfoContainer: {
62
- padding: 16,
63
- },
64
- profileInfoBodyLabel: {
65
- marginBottom: 4,
66
- },
67
- messageButtonArea: {
68
- marginHorizontal: 24,
69
- marginBottom: 24,
70
- },
71
- });
72
-
73
- export default ProfileCard;