2023-02-21 11:26:04 +02:00
|
|
|
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
|
|
|
|
|
|
|
|
|
|
const contentColumn = {
|
|
|
|
|
flex: 1,
|
|
|
|
|
flexDirection: 'column',
|
2024-06-12 13:02:04 +03:00
|
|
|
paddingLeft: BaseTheme.spacing[2]
|
2023-02-21 11:26:04 +02:00
|
|
|
};
|
|
|
|
|
|
2023-02-23 11:49:26 +02:00
|
|
|
const notification = {
|
2023-03-29 09:20:18 +03:00
|
|
|
backgroundColor: BaseTheme.palette.ui10,
|
2023-02-23 11:49:26 +02:00
|
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
|
|
|
borderLeftColor: BaseTheme.palette.link01Active,
|
2024-05-30 11:38:47 +03:00
|
|
|
borderLeftWidth: BaseTheme.spacing[1],
|
|
|
|
|
display: 'flex',
|
2023-02-23 11:49:26 +02:00
|
|
|
flexDirection: 'row',
|
2024-07-05 15:25:16 +03:00
|
|
|
marginVertical: BaseTheme.spacing[1],
|
|
|
|
|
maxWidth: 416,
|
|
|
|
|
width: '100%'
|
2023-02-21 11:26:04 +02:00
|
|
|
};
|
2019-03-20 15:09:23 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The styles of the React {@code Components} of the feature notifications.
|
|
|
|
|
*/
|
2019-03-27 15:00:10 +01:00
|
|
|
export default {
|
2019-03-20 15:09:23 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The content (left) column of the notification.
|
|
|
|
|
*/
|
2023-02-21 11:26:04 +02:00
|
|
|
interactiveContentColumn: {
|
|
|
|
|
...contentColumn
|
|
|
|
|
},
|
|
|
|
|
|
2019-03-20 15:09:23 -05:00
|
|
|
contentColumn: {
|
2023-02-21 11:26:04 +02:00
|
|
|
...contentColumn,
|
|
|
|
|
justifyContent: 'center'
|
2019-03-20 15:09:23 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Test style of the notification.
|
|
|
|
|
*/
|
2023-02-21 11:26:04 +02:00
|
|
|
|
|
|
|
|
contentContainer: {
|
2024-06-12 13:02:04 +03:00
|
|
|
paddingHorizontal: BaseTheme.spacing[2]
|
2023-02-21 11:26:04 +02:00
|
|
|
},
|
|
|
|
|
|
2019-03-20 15:09:23 -05:00
|
|
|
contentText: {
|
2023-02-23 11:49:26 +02:00
|
|
|
color: BaseTheme.palette.text04,
|
2025-08-26 15:52:35 +03:00
|
|
|
paddingLeft: BaseTheme.spacing[4],
|
2024-06-12 13:02:04 +03:00
|
|
|
paddingTop: BaseTheme.spacing[1]
|
2023-02-21 11:26:04 +02:00
|
|
|
},
|
|
|
|
|
|
2025-09-19 12:00:54 +03:00
|
|
|
contentTextDescription: {
|
|
|
|
|
color: BaseTheme.palette.text04,
|
|
|
|
|
paddingLeft: BaseTheme.spacing[4],
|
|
|
|
|
paddingTop: BaseTheme.spacing[2]
|
|
|
|
|
},
|
|
|
|
|
|
2025-08-26 15:52:35 +03:00
|
|
|
contentTextTitleDescription: {
|
2023-02-23 11:49:26 +02:00
|
|
|
color: BaseTheme.palette.text04,
|
2023-02-21 11:26:04 +02:00
|
|
|
fontWeight: 'bold',
|
2025-08-26 15:52:35 +03:00
|
|
|
paddingLeft: BaseTheme.spacing[4],
|
2024-06-12 13:02:04 +03:00
|
|
|
paddingTop: BaseTheme.spacing[2]
|
2019-03-20 15:09:23 -05:00
|
|
|
},
|
|
|
|
|
|
2025-08-26 15:52:35 +03:00
|
|
|
contentTextTitle: {
|
|
|
|
|
color: BaseTheme.palette.text04,
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
paddingLeft: BaseTheme.spacing[4],
|
|
|
|
|
paddingTop: BaseTheme.spacing[3]
|
|
|
|
|
},
|
|
|
|
|
|
2019-03-20 15:09:23 -05:00
|
|
|
/**
|
|
|
|
|
* Dismiss icon style.
|
|
|
|
|
*/
|
|
|
|
|
dismissIcon: {
|
2023-02-21 11:26:04 +02:00
|
|
|
color: BaseTheme.palette.icon04,
|
|
|
|
|
fontSize: 20
|
2019-03-20 15:09:23 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
notification: {
|
2023-02-23 11:49:26 +02:00
|
|
|
...notification
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
notificationWithDescription: {
|
|
|
|
|
...notification,
|
|
|
|
|
paddingBottom: BaseTheme.spacing[2]
|
2019-03-20 15:09:23 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Wrapper for the message.
|
|
|
|
|
*/
|
|
|
|
|
notificationContent: {
|
2023-02-21 11:26:04 +02:00
|
|
|
alignItems: 'center',
|
|
|
|
|
flexDirection: 'row'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
participantName: {
|
|
|
|
|
color: BaseTheme.palette.text04,
|
|
|
|
|
overflow: 'hidden'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
iconContainer: {
|
|
|
|
|
position: 'absolute',
|
2024-06-12 13:02:04 +03:00
|
|
|
left: BaseTheme.spacing[2],
|
2024-06-07 14:29:23 +03:00
|
|
|
top: 12
|
2023-02-21 11:26:04 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
btn: {
|
2024-06-12 13:02:04 +03:00
|
|
|
paddingLeft: BaseTheme.spacing[3]
|
2023-02-21 11:26:04 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
btnContainer: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'row',
|
2025-08-26 15:52:35 +03:00
|
|
|
paddingLeft: BaseTheme.spacing[3],
|
2024-06-12 13:02:04 +03:00
|
|
|
paddingTop: BaseTheme.spacing[1]
|
2023-03-14 19:53:55 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
withToolbox: {
|
2023-03-28 08:08:56 -05:00
|
|
|
bottom: 56,
|
|
|
|
|
position: 'absolute',
|
|
|
|
|
width: '100%'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
withToolboxTileView: {
|
|
|
|
|
bottom: 56,
|
2023-03-14 19:53:55 +02:00
|
|
|
position: 'absolute',
|
|
|
|
|
width: '100%'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
withoutToolbox: {
|
|
|
|
|
position: 'absolute',
|
|
|
|
|
width: '100%'
|
2023-03-28 08:08:56 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
withoutToolboxTileView: {
|
|
|
|
|
bottom: 0,
|
|
|
|
|
position: 'absolute',
|
|
|
|
|
width: '100%'
|
2019-03-20 15:09:23 -05:00
|
|
|
}
|
2019-03-27 15:00:10 +01:00
|
|
|
};
|