@sendbird/uikit-react-native-foundation 3.7.6 → 3.8.0
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.
- package/lib/commonjs/assets/bundle-icons.js.map +1 -1
- package/lib/commonjs/assets/icon/icon-thread.png +0 -0
- package/lib/commonjs/assets/icon/icon-thread@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-thread@3x.png +0 -0
- package/lib/commonjs/assets/icon/index.js +1 -2
- package/lib/commonjs/assets/icon/index.js.map +1 -1
- package/lib/commonjs/components/Box/index.js +8 -10
- package/lib/commonjs/components/Box/index.js.map +1 -1
- package/lib/commonjs/components/Divider/index.js +6 -8
- package/lib/commonjs/components/Divider/index.js.map +1 -1
- package/lib/commonjs/components/Icon/index.js +36 -18
- package/lib/commonjs/components/Icon/index.js.map +1 -1
- package/lib/commonjs/components/Image/FastImageInternal.js +1 -2
- package/lib/commonjs/components/Image/FastImageInternal.js.map +1 -1
- package/lib/commonjs/components/Image/Image.fastimage.js +14 -17
- package/lib/commonjs/components/Image/Image.fastimage.js.map +1 -1
- package/lib/commonjs/components/Image/Image.reactnative.js +10 -12
- package/lib/commonjs/components/Image/Image.reactnative.js.map +1 -1
- package/lib/commonjs/components/Image/index.js +1 -2
- package/lib/commonjs/components/Image/index.js.map +1 -1
- package/lib/commonjs/components/ImageWithPlaceholder/index.js +5 -7
- package/lib/commonjs/components/ImageWithPlaceholder/index.js.map +1 -1
- package/lib/commonjs/components/Modal/index.js +28 -37
- package/lib/commonjs/components/Modal/index.js.map +1 -1
- package/lib/commonjs/components/PressBox/index.js +17 -20
- package/lib/commonjs/components/PressBox/index.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/index.js +24 -16
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -1
- package/lib/commonjs/components/RegexText/index.js +11 -14
- package/lib/commonjs/components/RegexText/index.js.map +1 -1
- package/lib/commonjs/components/Switch/index.js +19 -19
- package/lib/commonjs/components/Switch/index.js.map +1 -1
- package/lib/commonjs/components/Text/index.js +46 -29
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/TextInput/index.js +38 -18
- package/lib/commonjs/components/TextInput/index.js.map +1 -1
- package/lib/commonjs/components/VideoThumbnail/index.js +11 -13
- package/lib/commonjs/components/VideoThumbnail/index.js.map +1 -1
- package/lib/commonjs/index.js +3 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/styles/HeaderStyleContext.js +8 -10
- package/lib/commonjs/styles/HeaderStyleContext.js.map +1 -1
- package/lib/commonjs/styles/createScaleFactor.js +3 -6
- package/lib/commonjs/styles/createScaleFactor.js.map +1 -1
- package/lib/commonjs/styles/createSelectByColorScheme.js +1 -2
- package/lib/commonjs/styles/createSelectByColorScheme.js.map +1 -1
- package/lib/commonjs/styles/createStyleSheet.js +9 -4
- package/lib/commonjs/styles/createStyleSheet.js.map +1 -1
- package/lib/commonjs/styles/createTypography.js +2 -5
- package/lib/commonjs/styles/createTypography.js.map +1 -1
- package/lib/commonjs/styles/getDefaultHeaderHeight.js +1 -2
- package/lib/commonjs/styles/getDefaultHeaderHeight.js.map +1 -1
- package/lib/commonjs/styles/useHeaderStyle.js +1 -2
- package/lib/commonjs/styles/useHeaderStyle.js.map +1 -1
- package/lib/commonjs/theme/DarkUIKitTheme.js +2 -3
- package/lib/commonjs/theme/DarkUIKitTheme.js.map +1 -1
- package/lib/commonjs/theme/LightUIKitTheme.js +2 -3
- package/lib/commonjs/theme/LightUIKitTheme.js.map +1 -1
- package/lib/commonjs/theme/Palette.js +1 -2
- package/lib/commonjs/theme/Palette.js.map +1 -1
- package/lib/commonjs/theme/UIKitThemeContext.js +2 -3
- package/lib/commonjs/theme/UIKitThemeContext.js.map +1 -1
- package/lib/commonjs/theme/UIKitThemeProvider.js +6 -8
- package/lib/commonjs/theme/UIKitThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/createTheme.js +11 -13
- package/lib/commonjs/theme/createTheme.js.map +1 -1
- package/lib/commonjs/theme/useUIKitTheme.js +2 -3
- package/lib/commonjs/theme/useUIKitTheme.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/ui/ActionMenu/index.js +17 -17
- package/lib/commonjs/ui/ActionMenu/index.js.map +1 -1
- package/lib/commonjs/ui/Alert/index.js +23 -29
- package/lib/commonjs/ui/Alert/index.js.map +1 -1
- package/lib/commonjs/ui/Avatar/AvatarGroup.js +13 -15
- package/lib/commonjs/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/commonjs/ui/Avatar/AvatarIcon.js +8 -10
- package/lib/commonjs/ui/Avatar/AvatarIcon.js.map +1 -1
- package/lib/commonjs/ui/Avatar/AvatarStack.js +13 -15
- package/lib/commonjs/ui/Avatar/AvatarStack.js.map +1 -1
- package/lib/commonjs/ui/Avatar/index.js +14 -17
- package/lib/commonjs/ui/Avatar/index.js.map +1 -1
- package/lib/commonjs/ui/Badge/index.js +10 -12
- package/lib/commonjs/ui/Badge/index.js.map +1 -1
- package/lib/commonjs/ui/BottomSheet/index.js +30 -39
- package/lib/commonjs/ui/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/ui/Button/index.js +19 -23
- package/lib/commonjs/ui/Button/index.js.map +1 -1
- package/lib/commonjs/ui/ChannelFrozenBanner/index.js +8 -10
- package/lib/commonjs/ui/ChannelFrozenBanner/index.js.map +1 -1
- package/lib/commonjs/ui/Dialog/DialogBox.js +6 -8
- package/lib/commonjs/ui/Dialog/DialogBox.js.map +1 -1
- package/lib/commonjs/ui/Dialog/DialogSheet.js +23 -22
- package/lib/commonjs/ui/Dialog/DialogSheet.js.map +1 -1
- package/lib/commonjs/ui/Dialog/index.js +11 -12
- package/lib/commonjs/ui/Dialog/index.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.admin.js +2 -3
- package/lib/commonjs/ui/GroupChannelMessage/Message.admin.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.image.js +2 -3
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.image.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.js +6 -8
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.video.js +2 -3
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.video.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.voice.js +8 -9
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.voice.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.unknown.js +5 -7
- package/lib/commonjs/ui/GroupChannelMessage/Message.unknown.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.user.js +8 -12
- package/lib/commonjs/ui/GroupChannelMessage/Message.user.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.user.og.js +16 -20
- package/lib/commonjs/ui/GroupChannelMessage/Message.user.og.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/MessageBubbleWithText.js +28 -24
- package/lib/commonjs/ui/GroupChannelMessage/MessageBubbleWithText.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/MessageContainer.js +29 -31
- package/lib/commonjs/ui/GroupChannelMessage/MessageContainer.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/MessageOpenGraph.js +38 -43
- package/lib/commonjs/ui/GroupChannelMessage/MessageOpenGraph.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/index.js +2 -3
- package/lib/commonjs/ui/GroupChannelMessage/index.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelPreview/index.js +55 -61
- package/lib/commonjs/ui/GroupChannelPreview/index.js.map +1 -1
- package/lib/commonjs/ui/Header/index.js +45 -56
- package/lib/commonjs/ui/Header/index.js.map +1 -1
- package/lib/commonjs/ui/LoadingSpinner/index.js +14 -18
- package/lib/commonjs/ui/LoadingSpinner/index.js.map +1 -1
- package/lib/commonjs/ui/MenuBar/index.js +23 -21
- package/lib/commonjs/ui/MenuBar/index.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/Message.admin.js +2 -3
- package/lib/commonjs/ui/OpenChannelMessage/Message.admin.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/Message.file.image.js +2 -3
- package/lib/commonjs/ui/OpenChannelMessage/Message.file.image.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/Message.file.js +6 -8
- package/lib/commonjs/ui/OpenChannelMessage/Message.file.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/Message.file.video.js +2 -3
- package/lib/commonjs/ui/OpenChannelMessage/Message.file.video.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/Message.unknown.js +6 -8
- package/lib/commonjs/ui/OpenChannelMessage/Message.unknown.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/Message.user.js +28 -20
- package/lib/commonjs/ui/OpenChannelMessage/Message.user.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/Message.user.og.js +54 -49
- package/lib/commonjs/ui/OpenChannelMessage/Message.user.og.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/MessageContainer.js +16 -19
- package/lib/commonjs/ui/OpenChannelMessage/MessageContainer.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/index.js +2 -3
- package/lib/commonjs/ui/OpenChannelMessage/index.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelPreview/index.js +25 -30
- package/lib/commonjs/ui/OpenChannelPreview/index.js.map +1 -1
- package/lib/commonjs/ui/OutlinedButton/index.js +7 -9
- package/lib/commonjs/ui/OutlinedButton/index.js.map +1 -1
- package/lib/commonjs/ui/Placeholder/index.js +9 -11
- package/lib/commonjs/ui/Placeholder/index.js.map +1 -1
- package/lib/commonjs/ui/ProfileCard/index.js +11 -12
- package/lib/commonjs/ui/ProfileCard/index.js.map +1 -1
- package/lib/commonjs/ui/Prompt/index.js +30 -37
- package/lib/commonjs/ui/Prompt/index.js.map +1 -1
- package/lib/commonjs/ui/Toast/index.js +21 -27
- package/lib/commonjs/ui/Toast/index.js.map +1 -1
- package/lib/commonjs/ui/TypingIndicatorBubble/index.js +25 -32
- package/lib/commonjs/ui/TypingIndicatorBubble/index.js.map +1 -1
- package/lib/module/assets/bundle-icons.js.map +1 -1
- package/lib/module/assets/icon/icon-thread.png +0 -0
- package/lib/module/assets/icon/icon-thread@2x.png +0 -0
- package/lib/module/assets/icon/icon-thread@3x.png +0 -0
- package/lib/module/assets/icon/index.js.map +1 -1
- package/lib/module/components/Box/index.js +6 -7
- package/lib/module/components/Box/index.js.map +1 -1
- package/lib/module/components/Divider/index.js +4 -5
- package/lib/module/components/Divider/index.js.map +1 -1
- package/lib/module/components/Icon/index.js +35 -16
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/Image/FastImageInternal.js.map +1 -1
- package/lib/module/components/Image/Image.fastimage.js +12 -14
- package/lib/module/components/Image/Image.fastimage.js.map +1 -1
- package/lib/module/components/Image/Image.reactnative.js +8 -9
- package/lib/module/components/Image/Image.reactnative.js.map +1 -1
- package/lib/module/components/Image/index.js.map +1 -1
- package/lib/module/components/ImageWithPlaceholder/index.js +1 -2
- package/lib/module/components/ImageWithPlaceholder/index.js.map +1 -1
- package/lib/module/components/Modal/index.js +24 -32
- package/lib/module/components/Modal/index.js.map +1 -1
- package/lib/module/components/PressBox/index.js +10 -12
- package/lib/module/components/PressBox/index.js.map +1 -1
- package/lib/module/components/ProgressBar/index.js +21 -12
- package/lib/module/components/ProgressBar/index.js.map +1 -1
- package/lib/module/components/RegexText/index.js +9 -11
- package/lib/module/components/RegexText/index.js.map +1 -1
- package/lib/module/components/Switch/index.js +16 -15
- package/lib/module/components/Switch/index.js.map +1 -1
- package/lib/module/components/Text/index.js +45 -27
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/TextInput/index.js +37 -16
- package/lib/module/components/TextInput/index.js.map +1 -1
- package/lib/module/components/VideoThumbnail/index.js +8 -10
- package/lib/module/components/VideoThumbnail/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/styles/HeaderStyleContext.js +6 -7
- package/lib/module/styles/HeaderStyleContext.js.map +1 -1
- package/lib/module/styles/createScaleFactor.js +1 -2
- package/lib/module/styles/createScaleFactor.js.map +1 -1
- package/lib/module/styles/createSelectByColorScheme.js.map +1 -1
- package/lib/module/styles/createStyleSheet.js +8 -2
- package/lib/module/styles/createStyleSheet.js.map +1 -1
- package/lib/module/styles/createTypography.js +1 -3
- package/lib/module/styles/createTypography.js.map +1 -1
- package/lib/module/styles/getDefaultHeaderHeight.js.map +1 -1
- package/lib/module/styles/useHeaderStyle.js.map +1 -1
- package/lib/module/theme/DarkUIKitTheme.js.map +1 -1
- package/lib/module/theme/LightUIKitTheme.js.map +1 -1
- package/lib/module/theme/Palette.js.map +1 -1
- package/lib/module/theme/UIKitThemeContext.js.map +1 -1
- package/lib/module/theme/UIKitThemeProvider.js +4 -5
- package/lib/module/theme/UIKitThemeProvider.js.map +1 -1
- package/lib/module/theme/createTheme.js +9 -10
- package/lib/module/theme/createTheme.js.map +1 -1
- package/lib/module/theme/useUIKitTheme.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/ui/ActionMenu/index.js +13 -12
- package/lib/module/ui/ActionMenu/index.js.map +1 -1
- package/lib/module/ui/Alert/index.js +21 -26
- package/lib/module/ui/Alert/index.js.map +1 -1
- package/lib/module/ui/Avatar/AvatarGroup.js +11 -12
- package/lib/module/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/module/ui/Avatar/AvatarIcon.js +6 -7
- package/lib/module/ui/Avatar/AvatarIcon.js.map +1 -1
- package/lib/module/ui/Avatar/AvatarStack.js +11 -12
- package/lib/module/ui/Avatar/AvatarStack.js.map +1 -1
- package/lib/module/ui/Avatar/index.js +10 -12
- package/lib/module/ui/Avatar/index.js.map +1 -1
- package/lib/module/ui/Badge/index.js +8 -9
- package/lib/module/ui/Badge/index.js.map +1 -1
- package/lib/module/ui/BottomSheet/index.js +28 -36
- package/lib/module/ui/BottomSheet/index.js.map +1 -1
- package/lib/module/ui/Button/index.js +17 -20
- package/lib/module/ui/Button/index.js.map +1 -1
- package/lib/module/ui/ChannelFrozenBanner/index.js +6 -7
- package/lib/module/ui/ChannelFrozenBanner/index.js.map +1 -1
- package/lib/module/ui/Dialog/DialogBox.js +4 -5
- package/lib/module/ui/Dialog/DialogBox.js.map +1 -1
- package/lib/module/ui/Dialog/DialogSheet.js +21 -19
- package/lib/module/ui/Dialog/DialogSheet.js.map +1 -1
- package/lib/module/ui/Dialog/index.js +8 -9
- package/lib/module/ui/Dialog/index.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.admin.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.file.image.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.file.js +4 -5
- package/lib/module/ui/GroupChannelMessage/Message.file.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.file.video.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.file.voice.js +4 -4
- package/lib/module/ui/GroupChannelMessage/Message.file.voice.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.unknown.js +3 -4
- package/lib/module/ui/GroupChannelMessage/Message.unknown.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.user.js +6 -9
- package/lib/module/ui/GroupChannelMessage/Message.user.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.user.og.js +14 -17
- package/lib/module/ui/GroupChannelMessage/Message.user.og.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/MessageBubbleWithText.js +26 -21
- package/lib/module/ui/GroupChannelMessage/MessageBubbleWithText.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/MessageContainer.js +27 -28
- package/lib/module/ui/GroupChannelMessage/MessageContainer.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/MessageOpenGraph.js +36 -40
- package/lib/module/ui/GroupChannelMessage/MessageOpenGraph.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/index.js.map +1 -1
- package/lib/module/ui/GroupChannelPreview/index.js +53 -58
- package/lib/module/ui/GroupChannelPreview/index.js.map +1 -1
- package/lib/module/ui/Header/index.js +44 -54
- package/lib/module/ui/Header/index.js.map +1 -1
- package/lib/module/ui/LoadingSpinner/index.js +10 -13
- package/lib/module/ui/LoadingSpinner/index.js.map +1 -1
- package/lib/module/ui/MenuBar/index.js +21 -18
- package/lib/module/ui/MenuBar/index.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/Message.admin.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/Message.file.image.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/Message.file.js +4 -5
- package/lib/module/ui/OpenChannelMessage/Message.file.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/Message.file.video.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/Message.unknown.js +4 -5
- package/lib/module/ui/OpenChannelMessage/Message.unknown.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/Message.user.js +26 -17
- package/lib/module/ui/OpenChannelMessage/Message.user.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/Message.user.og.js +52 -46
- package/lib/module/ui/OpenChannelMessage/Message.user.og.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/MessageContainer.js +14 -16
- package/lib/module/ui/OpenChannelMessage/MessageContainer.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/index.js.map +1 -1
- package/lib/module/ui/OpenChannelPreview/index.js +23 -27
- package/lib/module/ui/OpenChannelPreview/index.js.map +1 -1
- package/lib/module/ui/OutlinedButton/index.js +5 -6
- package/lib/module/ui/OutlinedButton/index.js.map +1 -1
- package/lib/module/ui/Placeholder/index.js +7 -8
- package/lib/module/ui/Placeholder/index.js.map +1 -1
- package/lib/module/ui/ProfileCard/index.js +9 -9
- package/lib/module/ui/ProfileCard/index.js.map +1 -1
- package/lib/module/ui/Prompt/index.js +26 -32
- package/lib/module/ui/Prompt/index.js.map +1 -1
- package/lib/module/ui/Toast/index.js +17 -22
- package/lib/module/ui/Toast/index.js.map +1 -1
- package/lib/module/ui/TypingIndicatorBubble/index.js +21 -27
- package/lib/module/ui/TypingIndicatorBubble/index.js.map +1 -1
- package/lib/typescript/src/components/Box/index.d.ts +12 -2
- package/lib/typescript/src/components/Icon/index.d.ts +2 -1
- package/lib/typescript/src/components/Text/index.d.ts +14 -2
- package/lib/typescript/src/components/TextInput/index.d.ts +2 -1
- package/package.json +3 -3
- package/src/assets/icon/icon-thread.png +0 -0
- package/src/assets/icon/icon-thread@2x.png +0 -0
- package/src/assets/icon/icon-thread@3x.png +0 -0
- package/src/components/Box/index.tsx +16 -5
- package/src/components/Icon/index.tsx +35 -3
- package/src/components/ProgressBar/index.tsx +23 -12
- package/src/components/Switch/index.tsx +10 -6
- package/src/components/Text/index.tsx +48 -7
- package/src/components/TextInput/index.tsx +39 -12
- package/src/styles/createStyleSheet.ts +8 -2
- package/src/ui/ActionMenu/index.tsx +3 -1
- package/src/ui/Alert/index.tsx +4 -4
- package/src/ui/Avatar/AvatarGroup.tsx +6 -6
- package/src/ui/Avatar/AvatarStack.tsx +3 -3
- package/src/ui/BottomSheet/index.tsx +5 -4
- package/src/ui/Button/index.tsx +1 -1
- package/src/ui/Dialog/DialogSheet.tsx +15 -12
- package/src/ui/GroupChannelMessage/Message.file.tsx +1 -1
- package/src/ui/GroupChannelMessage/Message.file.voice.tsx +1 -1
- package/src/ui/GroupChannelMessage/MessageBubbleWithText.tsx +5 -2
- package/src/ui/GroupChannelMessage/MessageContainer.tsx +7 -7
- package/src/ui/GroupChannelPreview/index.tsx +46 -48
- package/src/ui/Header/index.tsx +4 -5
- package/src/ui/MenuBar/index.tsx +9 -6
- package/src/ui/OpenChannelMessage/Message.file.tsx +1 -1
- package/src/ui/OpenChannelMessage/Message.user.og.tsx +43 -29
- package/src/ui/OpenChannelMessage/Message.user.tsx +46 -29
- package/src/ui/OpenChannelMessage/MessageContainer.tsx +4 -4
- package/src/ui/OpenChannelPreview/index.tsx +9 -9
- package/src/ui/ProfileCard/index.tsx +1 -0
- package/src/ui/Prompt/index.tsx +4 -5
- package/src/ui/Toast/index.tsx +1 -1
- package/src/ui/TypingIndicatorBubble/index.tsx +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
2
|
|
|
4
3
|
import { conditionChaining } from '@sendbird/uikit-utils';
|
|
5
4
|
|
|
5
|
+
import Box from '../../components/Box';
|
|
6
6
|
import Icon from '../../components/Icon';
|
|
7
7
|
import Image from '../../components/Image';
|
|
8
8
|
import Text from '../../components/Text';
|
|
@@ -54,8 +54,8 @@ const GroupChannelPreview = ({
|
|
|
54
54
|
const color = colors.ui.groupChannelPreview;
|
|
55
55
|
|
|
56
56
|
return (
|
|
57
|
-
<
|
|
58
|
-
<
|
|
57
|
+
<Box style={[styles.container, { backgroundColor: color.default.none.background }]}>
|
|
58
|
+
<Box style={styles.coverContainer}>
|
|
59
59
|
{conditionChaining(
|
|
60
60
|
[Boolean(customCover)],
|
|
61
61
|
[
|
|
@@ -67,10 +67,10 @@ const GroupChannelPreview = ({
|
|
|
67
67
|
/>,
|
|
68
68
|
],
|
|
69
69
|
)}
|
|
70
|
-
</
|
|
71
|
-
<
|
|
72
|
-
<
|
|
73
|
-
<
|
|
70
|
+
</Box>
|
|
71
|
+
<Box style={styles.rightSection}>
|
|
72
|
+
<Box style={styles.rightTopSection}>
|
|
73
|
+
<Box style={styles.channelInfoContainer}>
|
|
74
74
|
{broadcast && (
|
|
75
75
|
<Icon
|
|
76
76
|
size={16}
|
|
@@ -91,18 +91,18 @@ const GroupChannelPreview = ({
|
|
|
91
91
|
<Icon size={16} icon={'freeze'} color={colors.primary} containerStyle={styles.channelInfoFrozen} />
|
|
92
92
|
)}
|
|
93
93
|
{notificationOff && <Icon size={16} icon={'notifications-off-filled'} color={colors.onBackground03} />}
|
|
94
|
-
</
|
|
95
|
-
<
|
|
94
|
+
</Box>
|
|
95
|
+
<Box style={styles.titleCaptionContainer}>
|
|
96
96
|
{titleCaptionLeft}
|
|
97
97
|
<Text caption2 color={color.default.none.textTitleCaption} style={styles.titleCaptionText}>
|
|
98
98
|
{titleCaption}
|
|
99
99
|
</Text>
|
|
100
|
-
</
|
|
101
|
-
</
|
|
100
|
+
</Box>
|
|
101
|
+
</Box>
|
|
102
102
|
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
<
|
|
103
|
+
<Box style={styles.rightBottomSection}>
|
|
104
|
+
<Box style={styles.body}>
|
|
105
|
+
<Box style={styles.bodyWrapper}>
|
|
106
106
|
{bodyIcon && (
|
|
107
107
|
<Icon
|
|
108
108
|
size={18}
|
|
@@ -114,34 +114,35 @@ const GroupChannelPreview = ({
|
|
|
114
114
|
]}
|
|
115
115
|
/>
|
|
116
116
|
)}
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
117
|
+
<Box flex={1} alignItems={'flex-start'}>
|
|
118
|
+
<Text
|
|
119
|
+
body3
|
|
120
|
+
numberOfLines={1}
|
|
121
|
+
ellipsizeMode={bodyIcon ? 'middle' : 'tail'}
|
|
122
|
+
color={color.default.none.textBody}
|
|
123
|
+
>
|
|
124
|
+
{body}
|
|
125
|
+
</Text>
|
|
126
|
+
</Box>
|
|
127
|
+
</Box>
|
|
128
|
+
</Box>
|
|
129
|
+
<Box style={styles.unreadContainer}>
|
|
129
130
|
{mentioned && (
|
|
130
131
|
<Text h2 color={colors.ui.badge.default.none.background} style={styles.unreadMention}>
|
|
131
132
|
{mentionTrigger}
|
|
132
133
|
</Text>
|
|
133
134
|
)}
|
|
134
135
|
{badgeCount > 0 && <Badge count={badgeCount} maxCount={maxBadgeCount} />}
|
|
135
|
-
</
|
|
136
|
-
</
|
|
136
|
+
</Box>
|
|
137
|
+
</Box>
|
|
137
138
|
<Separator color={color.default.none.separator} />
|
|
138
|
-
</
|
|
139
|
-
</
|
|
139
|
+
</Box>
|
|
140
|
+
</Box>
|
|
140
141
|
);
|
|
141
142
|
};
|
|
142
143
|
|
|
143
144
|
type SeparatorProps = { color: string };
|
|
144
|
-
const Separator = ({ color }: SeparatorProps) => <
|
|
145
|
+
const Separator = ({ color }: SeparatorProps) => <Box style={[styles.separator, { backgroundColor: color }]} />;
|
|
145
146
|
|
|
146
147
|
const styles = createStyleSheet({
|
|
147
148
|
container: {
|
|
@@ -152,8 +153,8 @@ const styles = createStyleSheet({
|
|
|
152
153
|
justifyContent: 'center',
|
|
153
154
|
},
|
|
154
155
|
coverContainer: {
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
marginStart: 16,
|
|
157
|
+
marginEnd: 16,
|
|
157
158
|
},
|
|
158
159
|
channelCover: {
|
|
159
160
|
width: 56,
|
|
@@ -163,7 +164,7 @@ const styles = createStyleSheet({
|
|
|
163
164
|
rightSection: {
|
|
164
165
|
flex: 1,
|
|
165
166
|
paddingTop: 10,
|
|
166
|
-
|
|
167
|
+
paddingEnd: 16,
|
|
167
168
|
},
|
|
168
169
|
rightTopSection: {
|
|
169
170
|
flexDirection: 'row',
|
|
@@ -171,28 +172,28 @@ const styles = createStyleSheet({
|
|
|
171
172
|
},
|
|
172
173
|
channelInfoContainer: {
|
|
173
174
|
flex: 1,
|
|
174
|
-
|
|
175
|
+
marginEnd: 4,
|
|
175
176
|
alignItems: 'center',
|
|
176
177
|
flexDirection: 'row',
|
|
177
178
|
},
|
|
178
179
|
channelInfoBroadcast: {
|
|
179
|
-
|
|
180
|
+
marginEnd: 4,
|
|
180
181
|
},
|
|
181
182
|
channelInfoTitle: {
|
|
182
183
|
flexShrink: 1,
|
|
183
|
-
|
|
184
|
+
marginEnd: 4,
|
|
184
185
|
},
|
|
185
186
|
channelInfoMemberCount: {
|
|
186
187
|
paddingTop: 2,
|
|
187
|
-
|
|
188
|
+
marginEnd: 4,
|
|
188
189
|
},
|
|
189
190
|
channelInfoFrozen: {
|
|
190
|
-
|
|
191
|
+
marginEnd: 4,
|
|
191
192
|
},
|
|
192
193
|
titleCaptionContainer: {
|
|
193
194
|
alignItems: 'flex-start',
|
|
194
195
|
flexDirection: 'row',
|
|
195
|
-
|
|
196
|
+
marginStart: 4,
|
|
196
197
|
},
|
|
197
198
|
titleCaptionText: {
|
|
198
199
|
marginTop: 2,
|
|
@@ -203,7 +204,7 @@ const styles = createStyleSheet({
|
|
|
203
204
|
flexDirection: 'row',
|
|
204
205
|
},
|
|
205
206
|
body: {
|
|
206
|
-
|
|
207
|
+
marginEnd: 4,
|
|
207
208
|
flex: 1,
|
|
208
209
|
flexDirection: 'row',
|
|
209
210
|
alignItems: 'flex-start',
|
|
@@ -212,26 +213,23 @@ const styles = createStyleSheet({
|
|
|
212
213
|
flexDirection: 'row',
|
|
213
214
|
alignItems: 'center',
|
|
214
215
|
},
|
|
215
|
-
bodyText: {
|
|
216
|
-
flex: 1,
|
|
217
|
-
},
|
|
218
216
|
bodyIcon: {
|
|
219
217
|
borderRadius: 8,
|
|
220
218
|
width: 26,
|
|
221
219
|
height: 26,
|
|
222
|
-
|
|
220
|
+
marginEnd: 4,
|
|
223
221
|
},
|
|
224
222
|
unreadContainer: {
|
|
225
223
|
flexDirection: 'row',
|
|
226
224
|
alignItems: 'flex-start',
|
|
227
225
|
},
|
|
228
226
|
unreadMention: {
|
|
229
|
-
|
|
227
|
+
marginEnd: 4,
|
|
230
228
|
},
|
|
231
229
|
separator: {
|
|
232
230
|
position: 'absolute',
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
start: 0,
|
|
232
|
+
end: -16,
|
|
235
233
|
bottom: 0,
|
|
236
234
|
height: 1,
|
|
237
235
|
},
|
package/src/ui/Header/index.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TouchableOpacity, TouchableOpacityProps, View } from 'react-native';
|
|
3
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
3
|
|
|
5
|
-
import { conditionChaining } from '@sendbird/uikit-utils';
|
|
4
|
+
import { conditionChaining, useSafeAreaPadding } from '@sendbird/uikit-utils';
|
|
6
5
|
|
|
7
6
|
import Text, { TextProps } from '../../components/Text';
|
|
8
7
|
import type { BaseHeaderProps, HeaderElement } from '../../index';
|
|
@@ -41,7 +40,7 @@ const Header = ({
|
|
|
41
40
|
const { topInset, defaultTitleAlign, defaultHeight } = useHeaderStyle();
|
|
42
41
|
|
|
43
42
|
const { colors } = useUIKitTheme();
|
|
44
|
-
const
|
|
43
|
+
const safeArea = useSafeAreaPadding(['left', 'right']);
|
|
45
44
|
|
|
46
45
|
const actualTitleAlign = titleAlign ?? defaultTitleAlign;
|
|
47
46
|
const actualTopInset = clearStatusBarTopInset ? 0 : topInset;
|
|
@@ -60,8 +59,8 @@ const Header = ({
|
|
|
60
59
|
styles.container,
|
|
61
60
|
{
|
|
62
61
|
[statusBarTopInsetAs === 'padding' ? 'paddingTop' : 'marginTop']: actualTopInset,
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
paddingStart: safeArea.paddingStart + styles.container.paddingHorizontal,
|
|
63
|
+
paddingEnd: safeArea.paddingEnd + styles.container.paddingHorizontal,
|
|
65
64
|
backgroundColor: colors.ui.header.nav.none.background,
|
|
66
65
|
borderBottomColor: colors.ui.header.nav.none.borderBottom,
|
|
67
66
|
},
|
package/src/ui/MenuBar/index.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Pressable, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { conditionChaining } from '@sendbird/uikit-utils';
|
|
5
5
|
|
|
6
|
+
import Box from '../../components/Box';
|
|
6
7
|
import Divider from '../../components/Divider';
|
|
7
8
|
import Icon from '../../components/Icon';
|
|
8
9
|
import Text from '../../components/Text';
|
|
@@ -58,9 +59,11 @@ const MenuBar = ({
|
|
|
58
59
|
]}
|
|
59
60
|
/>
|
|
60
61
|
)}
|
|
61
|
-
<
|
|
62
|
-
{name}
|
|
63
|
-
|
|
62
|
+
<Box flex={1} alignItems={'flex-start'}>
|
|
63
|
+
<Text subtitle2 numberOfLines={1} style={styles.name}>
|
|
64
|
+
{name}
|
|
65
|
+
</Text>
|
|
66
|
+
</Box>
|
|
64
67
|
{Boolean(actionLabel) && (
|
|
65
68
|
<Text subtitle2 numberOfLines={1} color={colors.onBackground02} style={styles.actionLabel}>
|
|
66
69
|
{actionLabel}
|
|
@@ -81,17 +84,17 @@ const styles = createStyleSheet({
|
|
|
81
84
|
},
|
|
82
85
|
name: {
|
|
83
86
|
flex: 1,
|
|
84
|
-
|
|
87
|
+
marginEnd: 8,
|
|
85
88
|
},
|
|
86
89
|
icon: {
|
|
87
|
-
|
|
90
|
+
marginEnd: 16,
|
|
88
91
|
},
|
|
89
92
|
containedIcon: {
|
|
90
93
|
borderRadius: 24,
|
|
91
94
|
padding: 4,
|
|
92
95
|
},
|
|
93
96
|
actionLabel: {
|
|
94
|
-
|
|
97
|
+
marginEnd: 4,
|
|
95
98
|
},
|
|
96
99
|
});
|
|
97
100
|
|
|
@@ -24,38 +24,51 @@ const OpenGraphUserMessage = (props: OpenChannelMessageProps<SendbirdUserMessage
|
|
|
24
24
|
<PressBox onPress={onPress} onLongPress={onLongPress}>
|
|
25
25
|
{({ pressed }) => (
|
|
26
26
|
<MessageContainer pressed={pressed} {...rest}>
|
|
27
|
-
<
|
|
28
|
-
<
|
|
27
|
+
<Box alignItems={'flex-start'}>
|
|
28
|
+
<Text
|
|
29
29
|
body3
|
|
30
30
|
color={color.enabled.textMsg}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
replacer({ match, parentProps, keyPrefix, index }) {
|
|
35
|
-
return (
|
|
36
|
-
<Text
|
|
37
|
-
{...parentProps}
|
|
38
|
-
key={`${keyPrefix}-${index}`}
|
|
39
|
-
onPress={() => onPressURL?.(match)}
|
|
40
|
-
onLongPress={onLongPress}
|
|
41
|
-
color={colors.primary}
|
|
42
|
-
style={parentProps?.style}
|
|
43
|
-
>
|
|
44
|
-
{match}
|
|
45
|
-
</Text>
|
|
46
|
-
);
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
]}
|
|
31
|
+
suppressHighlighting
|
|
32
|
+
supportRTLAlign
|
|
33
|
+
originalText={props.message.message}
|
|
50
34
|
>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{props.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
<RegexText
|
|
36
|
+
body3
|
|
37
|
+
suppressHighlighting
|
|
38
|
+
supportRTLAlign
|
|
39
|
+
originalText={props.message.message}
|
|
40
|
+
color={color.enabled.textMsg}
|
|
41
|
+
patterns={[
|
|
42
|
+
{
|
|
43
|
+
regex: urlRegexRough,
|
|
44
|
+
replacer({ match, parentProps, keyPrefix, index }) {
|
|
45
|
+
return (
|
|
46
|
+
<Text
|
|
47
|
+
{...parentProps}
|
|
48
|
+
key={`${keyPrefix}-${index}`}
|
|
49
|
+
onPress={() => onPressURL?.(match)}
|
|
50
|
+
onLongPress={onLongPress}
|
|
51
|
+
color={colors.primary}
|
|
52
|
+
style={parentProps?.style}
|
|
53
|
+
supportRTLAlign
|
|
54
|
+
originalText={match}
|
|
55
|
+
>
|
|
56
|
+
{match}
|
|
57
|
+
</Text>
|
|
58
|
+
);
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
]}
|
|
62
|
+
>
|
|
63
|
+
{props.message.message}
|
|
64
|
+
</RegexText>
|
|
65
|
+
{Boolean(props.message.updatedAt) && (
|
|
66
|
+
<Text body3 color={color.enabled.textMsgPostfix}>
|
|
67
|
+
{props.strings?.edited ?? ' (edited)'}
|
|
68
|
+
</Text>
|
|
69
|
+
)}
|
|
70
|
+
</Text>
|
|
71
|
+
</Box>
|
|
59
72
|
</MessageContainer>
|
|
60
73
|
)}
|
|
61
74
|
</PressBox>
|
|
@@ -73,6 +86,7 @@ const OpenGraphUserMessage = (props: OpenChannelMessageProps<SendbirdUserMessage
|
|
|
73
86
|
borderRadius={8}
|
|
74
87
|
style={styles.ogContainer}
|
|
75
88
|
backgroundColor={pressed ? color.pressed.bubbleBackground : color.enabled.bubbleBackground}
|
|
89
|
+
alignItems={'flex-start'}
|
|
76
90
|
>
|
|
77
91
|
<Text numberOfLines={1} caption2 color={colors.onBackground02} style={styles.ogUrl}>
|
|
78
92
|
{props.message.ogMetaData.url}
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
4
4
|
import { urlRegexStrict } from '@sendbird/uikit-utils';
|
|
5
5
|
|
|
6
|
+
import Box from '../../components/Box';
|
|
6
7
|
import PressBox from '../../components/PressBox';
|
|
7
8
|
import RegexText from '../../components/RegexText';
|
|
8
9
|
import Text from '../../components/Text';
|
|
@@ -20,38 +21,54 @@ const UserMessage = (props: OpenChannelMessageProps<SendbirdUserMessage, Props>)
|
|
|
20
21
|
<PressBox onPress={onPress} onLongPress={onLongPress}>
|
|
21
22
|
{({ pressed }) => (
|
|
22
23
|
<MessageContainer pressed={pressed} {...rest}>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
24
|
+
<Box alignItems={'flex-start'}>
|
|
25
|
+
<Text
|
|
25
26
|
body3
|
|
26
27
|
color={color.enabled.textMsg}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
replacer({ match, parentProps, keyPrefix, index }) {
|
|
31
|
-
return (
|
|
32
|
-
<Text
|
|
33
|
-
{...parentProps}
|
|
34
|
-
key={`${keyPrefix}-${index}`}
|
|
35
|
-
onPress={() => onPressURL?.(match)}
|
|
36
|
-
onLongPress={onLongPress}
|
|
37
|
-
color={colors.primary}
|
|
38
|
-
style={parentProps?.style}
|
|
39
|
-
>
|
|
40
|
-
{match}
|
|
41
|
-
</Text>
|
|
42
|
-
);
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
]}
|
|
28
|
+
suppressHighlighting
|
|
29
|
+
supportRTLAlign
|
|
30
|
+
originalText={props.message.message}
|
|
46
31
|
>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
{props.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
<RegexText
|
|
33
|
+
body3
|
|
34
|
+
suppressHighlighting
|
|
35
|
+
supportRTLAlign
|
|
36
|
+
originalText={props.message.message}
|
|
37
|
+
color={color.enabled.textMsg}
|
|
38
|
+
patterns={[
|
|
39
|
+
{
|
|
40
|
+
regex: urlRegexStrict,
|
|
41
|
+
replacer({ match, parentProps, keyPrefix, index }) {
|
|
42
|
+
return (
|
|
43
|
+
<Text
|
|
44
|
+
{...parentProps}
|
|
45
|
+
key={`${keyPrefix}-${index}`}
|
|
46
|
+
onPress={() => onPressURL?.(match)}
|
|
47
|
+
onLongPress={onLongPress}
|
|
48
|
+
color={colors.primary}
|
|
49
|
+
style={parentProps?.style}
|
|
50
|
+
>
|
|
51
|
+
{match}
|
|
52
|
+
</Text>
|
|
53
|
+
);
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
]}
|
|
57
|
+
>
|
|
58
|
+
{props.message.message}
|
|
59
|
+
</RegexText>
|
|
60
|
+
{Boolean(props.message.updatedAt) && (
|
|
61
|
+
<Text
|
|
62
|
+
body3
|
|
63
|
+
color={color.enabled.textMsgPostfix}
|
|
64
|
+
supportRTLAlign
|
|
65
|
+
originalText={props.strings?.edited ?? ' (edited)'}
|
|
66
|
+
>
|
|
67
|
+
{props.strings?.edited ?? ' (edited)'}
|
|
68
|
+
</Text>
|
|
69
|
+
)}
|
|
70
|
+
</Text>
|
|
71
|
+
</Box>
|
|
55
72
|
</MessageContainer>
|
|
56
73
|
)}
|
|
57
74
|
</PressBox>
|
|
@@ -56,11 +56,11 @@ const MessageContainer = ({
|
|
|
56
56
|
<Box
|
|
57
57
|
flexDirection={'row'}
|
|
58
58
|
paddingVertical={grouped ? 5 : 6}
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
paddingStart={12}
|
|
60
|
+
paddingEnd={12}
|
|
61
61
|
backgroundColor={pressed ? color.pressed.background : color.enabled.background}
|
|
62
62
|
>
|
|
63
|
-
<Box
|
|
63
|
+
<Box marginEnd={12}>
|
|
64
64
|
{!grouped && 'sender' in props.message ? (
|
|
65
65
|
<PressBox onPress={props.onPressAvatar}>
|
|
66
66
|
<Avatar size={styles.avatar.width} uri={props.message.sender.profileUrl} />
|
|
@@ -72,7 +72,7 @@ const MessageContainer = ({
|
|
|
72
72
|
<Box flexShrink={1} flex={1} flexDirection={'column'} alignItems={'flex-start'}>
|
|
73
73
|
{!grouped && 'sender' in props.message && (
|
|
74
74
|
<Box flexDirection={'row'} alignItems={'center'} marginBottom={2}>
|
|
75
|
-
<Box
|
|
75
|
+
<Box marginEnd={4} flexShrink={1}>
|
|
76
76
|
<Text
|
|
77
77
|
caption1
|
|
78
78
|
ellipsizeMode={'middle'}
|
|
@@ -34,7 +34,7 @@ const OpenChannelPreview = ({ customCover, coverUrl, participantsCount = 0, titl
|
|
|
34
34
|
height={styles.channelCover.height}
|
|
35
35
|
borderRadius={styles.channelCover.width}
|
|
36
36
|
overflow={'hidden'}
|
|
37
|
-
|
|
37
|
+
marginEnd={16}
|
|
38
38
|
>
|
|
39
39
|
{conditionChaining(
|
|
40
40
|
[Boolean(customCover)],
|
|
@@ -53,11 +53,11 @@ const OpenChannelPreview = ({ customCover, coverUrl, participantsCount = 0, titl
|
|
|
53
53
|
<Text subtitle1 style={styles.channelInfoTitle} numberOfLines={1} color={color.textTitle}>
|
|
54
54
|
{title}
|
|
55
55
|
</Text>
|
|
56
|
-
{frozen && <Icon size={16} icon={'freeze'} color={color.frozenIcon} containerStyle={styles.
|
|
56
|
+
{frozen && <Icon size={16} icon={'freeze'} color={color.frozenIcon} containerStyle={styles.marginStart} />}
|
|
57
57
|
</Box>
|
|
58
58
|
<Box flexDirection={'row'} flexShrink={1} alignItems={'center'} justifyContent={'flex-start'}>
|
|
59
59
|
<Box flexDirection={'row'} alignItems={'center'}>
|
|
60
|
-
<Icon size={16} icon={'members'} color={color.participantsIcon} containerStyle={styles.
|
|
60
|
+
<Icon size={16} icon={'members'} color={color.participantsIcon} containerStyle={styles.marginEnd} />
|
|
61
61
|
<Text caption2 color={color.textParticipants}>
|
|
62
62
|
{truncatedCount(participantsCount, 999)}
|
|
63
63
|
</Text>
|
|
@@ -79,16 +79,16 @@ const styles = createStyleSheet({
|
|
|
79
79
|
channelInfoTitle: {
|
|
80
80
|
flexShrink: 1,
|
|
81
81
|
},
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
marginEnd: {
|
|
83
|
+
marginEnd: 4,
|
|
84
84
|
},
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
marginStart: {
|
|
86
|
+
marginStart: 4,
|
|
87
87
|
},
|
|
88
88
|
separator: {
|
|
89
89
|
position: 'absolute',
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
start: 0,
|
|
91
|
+
end: -16,
|
|
92
92
|
bottom: 0,
|
|
93
93
|
height: 1,
|
|
94
94
|
},
|
package/src/ui/Prompt/index.tsx
CHANGED
|
@@ -84,7 +84,7 @@ const Prompt = ({
|
|
|
84
84
|
<DialogBox style={styles.container}>
|
|
85
85
|
{Boolean(title) && (
|
|
86
86
|
<View style={styles.titleContainer}>
|
|
87
|
-
<Text h1 color={colors.ui.dialog.default.none.text} numberOfLines={1}
|
|
87
|
+
<Text h1 color={colors.ui.dialog.default.none.text} numberOfLines={1}>
|
|
88
88
|
{title}
|
|
89
89
|
</Text>
|
|
90
90
|
</View>
|
|
@@ -98,7 +98,7 @@ const Prompt = ({
|
|
|
98
98
|
variant={'underline'}
|
|
99
99
|
value={text}
|
|
100
100
|
onChangeText={setText}
|
|
101
|
-
style={{
|
|
101
|
+
style={{ paddingStart: 0, paddingEnd: 0, paddingTop: 10, paddingBottom: 10 }}
|
|
102
102
|
/>
|
|
103
103
|
</View>
|
|
104
104
|
|
|
@@ -137,8 +137,7 @@ const styles = createStyleSheet({
|
|
|
137
137
|
marginBottom: 12,
|
|
138
138
|
paddingVertical: 12,
|
|
139
139
|
paddingHorizontal: 24,
|
|
140
|
-
|
|
141
|
-
alignItems: 'center',
|
|
140
|
+
alignItems: 'flex-start',
|
|
142
141
|
},
|
|
143
142
|
inputContainer: {
|
|
144
143
|
paddingHorizontal: 24,
|
|
@@ -151,7 +150,7 @@ const styles = createStyleSheet({
|
|
|
151
150
|
padding: 12,
|
|
152
151
|
},
|
|
153
152
|
button: {
|
|
154
|
-
|
|
153
|
+
marginStart: 8,
|
|
155
154
|
},
|
|
156
155
|
});
|
|
157
156
|
|
package/src/ui/Toast/index.tsx
CHANGED
|
@@ -28,7 +28,7 @@ const TypingIndicatorBubble = ({ typingUsers, containerStyle, maxAvatar }: Props
|
|
|
28
28
|
remainsTextColor: colors.onBackground02,
|
|
29
29
|
remainsBackgroundColor: select({ light: palette.background100, dark: palette.background400 }),
|
|
30
30
|
}}
|
|
31
|
-
containerStyle={{
|
|
31
|
+
containerStyle={{ marginEnd: 12 }}
|
|
32
32
|
>
|
|
33
33
|
{typingUsers.map((user, index) => (
|
|
34
34
|
<Avatar key={index} uri={user.profileUrl} />
|
|
@@ -78,7 +78,7 @@ const TypingDots = ({ dotColor, backgroundColor }: TypingDotsProps) => {
|
|
|
78
78
|
style={[
|
|
79
79
|
styles.dot,
|
|
80
80
|
{
|
|
81
|
-
|
|
81
|
+
marginEnd: index === dots.length - 1 ? 0 : 6,
|
|
82
82
|
opacity: opacity,
|
|
83
83
|
transform: [{ scale: scale }],
|
|
84
84
|
backgroundColor: backgroundColor,
|