@selfcommunity/react-ui 0.7.0-alpha.79 → 0.7.0-alpha.80
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/cjs/components/FeedObject/FeedObject.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +0 -1
- package/lib/cjs/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/cjs/components/FeedUpdates/FeedUpdates.d.ts.map +1 -1
- package/lib/cjs/components/FeedUpdates/FeedUpdates.js +0 -1
- package/lib/cjs/components/FeedUpdates/FeedUpdates.js.map +1 -1
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.d.ts.map +1 -1
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +5 -2
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js.map +1 -1
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -21
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +15 -16
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js.map +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -21
- package/lib/cjs/components/Notification/Comment/Comment.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.js +23 -24
- package/lib/cjs/components/Notification/Comment/Comment.js.map +1 -1
- package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -21
- package/lib/cjs/components/Notification/Contribution/Contribution.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Contribution/Contribution.js +25 -25
- package/lib/cjs/components/Notification/Contribution/Contribution.js.map +1 -1
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -21
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts.map +1 -1
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +18 -19
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js.map +1 -1
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts +2 -21
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +17 -18
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js.map +1 -1
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +2 -21
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts.map +1 -1
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +16 -19
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -21
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +9 -10
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -21
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +16 -17
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js.map +1 -1
- package/lib/cjs/components/Notification/Mention/Mention.d.ts +2 -21
- package/lib/cjs/components/Notification/Mention/Mention.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Mention/Mention.js +18 -19
- package/lib/cjs/components/Notification/Mention/Mention.js.map +1 -1
- package/lib/cjs/components/Notification/Notification.d.ts +12 -12
- package/lib/cjs/components/Notification/Notification.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Notification.js +33 -86
- package/lib/cjs/components/Notification/Notification.js.map +1 -1
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -21
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +1 -1
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +11 -20
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js.map +1 -1
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -21
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +16 -17
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js.map +1 -1
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts +2 -21
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +10 -11
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js.map +1 -1
- package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts +2 -21
- package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +12 -13
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js.map +1 -1
- package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts +2 -21
- package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +10 -11
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js.map +1 -1
- package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts +2 -21
- package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts.map +1 -1
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +16 -17
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js.map +1 -1
- package/lib/cjs/components/SnippetNotifications/Skeleton.d.ts +1 -1
- package/lib/cjs/components/SnippetNotifications/Skeleton.d.ts.map +1 -1
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +5 -12
- package/lib/cjs/components/SnippetNotifications/Skeleton.js.map +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.d.ts +2 -2
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.d.ts.map +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +7 -21
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js.map +1 -1
- package/lib/cjs/shared/CustomSnackMessage/index.d.ts.map +1 -1
- package/lib/cjs/shared/CustomSnackMessage/index.js +5 -19
- package/lib/cjs/shared/CustomSnackMessage/index.js.map +1 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.d.ts +1 -6
- package/lib/cjs/shared/NotificationItem/NotificationItem.d.ts.map +1 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +13 -123
- package/lib/cjs/shared/NotificationItem/NotificationItem.js.map +1 -1
- package/lib/esm/components/FeedObject/FeedObject.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +0 -1
- package/lib/esm/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/esm/components/FeedUpdates/FeedUpdates.d.ts.map +1 -1
- package/lib/esm/components/FeedUpdates/FeedUpdates.js +0 -1
- package/lib/esm/components/FeedUpdates/FeedUpdates.js.map +1 -1
- package/lib/esm/components/NavigationToolbar/NotificationMenu.d.ts.map +1 -1
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +6 -3
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js.map +1 -1
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -21
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +15 -16
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js.map +1 -1
- package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -21
- package/lib/esm/components/Notification/Comment/Comment.d.ts.map +1 -1
- package/lib/esm/components/Notification/Comment/Comment.js +24 -25
- package/lib/esm/components/Notification/Comment/Comment.js.map +1 -1
- package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -21
- package/lib/esm/components/Notification/Contribution/Contribution.d.ts.map +1 -1
- package/lib/esm/components/Notification/Contribution/Contribution.js +26 -26
- package/lib/esm/components/Notification/Contribution/Contribution.js.map +1 -1
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -21
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts.map +1 -1
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +19 -20
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js.map +1 -1
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts +2 -21
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +17 -18
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js.map +1 -1
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +2 -21
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts.map +1 -1
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +17 -20
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -21
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +9 -10
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -21
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +16 -17
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js.map +1 -1
- package/lib/esm/components/Notification/Mention/Mention.d.ts +2 -21
- package/lib/esm/components/Notification/Mention/Mention.d.ts.map +1 -1
- package/lib/esm/components/Notification/Mention/Mention.js +18 -19
- package/lib/esm/components/Notification/Mention/Mention.js.map +1 -1
- package/lib/esm/components/Notification/Notification.d.ts +12 -12
- package/lib/esm/components/Notification/Notification.d.ts.map +1 -1
- package/lib/esm/components/Notification/Notification.js +35 -88
- package/lib/esm/components/Notification/Notification.js.map +1 -1
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -21
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +1 -1
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +11 -20
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js.map +1 -1
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -21
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +17 -18
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js.map +1 -1
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts +2 -21
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts.map +1 -1
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +11 -12
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js.map +1 -1
- package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts +2 -21
- package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts.map +1 -1
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +13 -14
- package/lib/esm/components/Notification/UserConnection/UserConnection.js.map +1 -1
- package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts +2 -21
- package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts.map +1 -1
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +11 -12
- package/lib/esm/components/Notification/UserFollow/UserFollow.js.map +1 -1
- package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts +2 -21
- package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts.map +1 -1
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +17 -18
- package/lib/esm/components/Notification/VoteUp/VoteUp.js.map +1 -1
- package/lib/esm/components/SnippetNotifications/Skeleton.d.ts +1 -1
- package/lib/esm/components/SnippetNotifications/Skeleton.d.ts.map +1 -1
- package/lib/esm/components/SnippetNotifications/Skeleton.js +6 -13
- package/lib/esm/components/SnippetNotifications/Skeleton.js.map +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.d.ts +2 -2
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.d.ts.map +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +7 -21
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js.map +1 -1
- package/lib/esm/shared/CustomSnackMessage/index.d.ts.map +1 -1
- package/lib/esm/shared/CustomSnackMessage/index.js +5 -19
- package/lib/esm/shared/CustomSnackMessage/index.js.map +1 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.d.ts +1 -6
- package/lib/esm/shared/NotificationItem/NotificationItem.d.ts.map +1 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.js +13 -123
- package/lib/esm/shared/NotificationItem/NotificationItem.js.map +1 -1
- package/lib/umd/react-ui.js +3 -3
- package/lib/umd/react-ui.js.LICENSE.txt +2 -2
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +3 -3
|
@@ -16,13 +16,10 @@ import classNames from 'classnames';
|
|
|
16
16
|
import Widget from '../../components/Widget';
|
|
17
17
|
import { useThemeProps } from '@mui/system';
|
|
18
18
|
import NewChip from '../NewChip/NewChip';
|
|
19
|
-
import { grey } from '@mui/material/colors';
|
|
20
19
|
import { SCNotificationObjectTemplateType } from '../../types/notification';
|
|
21
20
|
const PREFIX = 'SCNotificationItem';
|
|
22
21
|
const classes = {
|
|
23
22
|
root: `${PREFIX}-root`,
|
|
24
|
-
content: `${PREFIX}-content`,
|
|
25
|
-
dense: `${PREFIX}-dense`,
|
|
26
23
|
header: `${PREFIX}-header`,
|
|
27
24
|
image: `${PREFIX}-image`,
|
|
28
25
|
snippetImage: `${PREFIX}-snippet-image`,
|
|
@@ -32,7 +29,7 @@ const classes = {
|
|
|
32
29
|
actions: `${PREFIX}-actions`,
|
|
33
30
|
footer: `${PREFIX}-footer`,
|
|
34
31
|
snippet: `${PREFIX}-snippet`,
|
|
35
|
-
|
|
32
|
+
new: `${PREFIX}-new`,
|
|
36
33
|
newChip: `${PREFIX}-new-chip`
|
|
37
34
|
};
|
|
38
35
|
const Root = styled(Widget, {
|
|
@@ -40,108 +37,7 @@ const Root = styled(Widget, {
|
|
|
40
37
|
slot: 'Root',
|
|
41
38
|
overridesResolver: (props, styles) => styles.root
|
|
42
39
|
})(({ theme }) => ({
|
|
43
|
-
|
|
44
|
-
backgroundColor: 'transparent',
|
|
45
|
-
width: '100%',
|
|
46
|
-
display: 'flex',
|
|
47
|
-
flexDirection: 'column',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
marginTop: theme.spacing(),
|
|
50
|
-
boxSizing: 'border-box',
|
|
51
|
-
'&.MuiPaper-elevation': {
|
|
52
|
-
padding: `${theme.spacing()} ${theme.spacing(2)}`
|
|
53
|
-
},
|
|
54
|
-
'&.MuiPaper-elevation0': {
|
|
55
|
-
borderRadius: 0,
|
|
56
|
-
[`& .${classes.actions}`]: {
|
|
57
|
-
right: 0
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
[`&.${classes.dense}`]: {
|
|
62
|
-
'& .SCNotificationItem-header': {
|
|
63
|
-
alignItems: 'center'
|
|
64
|
-
},
|
|
65
|
-
marginTop: 0,
|
|
66
|
-
padding: `0px ${theme.spacing()} !important`
|
|
67
|
-
},
|
|
68
|
-
[`&.${classes.snippet}`]: {
|
|
69
|
-
'&:before': {
|
|
70
|
-
borderRadius: '5px',
|
|
71
|
-
width: '4px',
|
|
72
|
-
left: 1,
|
|
73
|
-
height: '100%',
|
|
74
|
-
display: 'block',
|
|
75
|
-
zIndex: '20',
|
|
76
|
-
position: 'absolute',
|
|
77
|
-
content: '" "',
|
|
78
|
-
backgroundColor: `${grey[200]}`
|
|
79
|
-
},
|
|
80
|
-
'& .SCNotificationItem-header': {
|
|
81
|
-
alignItems: 'flex-start'
|
|
82
|
-
},
|
|
83
|
-
'& .SCNotificationItem-content': {
|
|
84
|
-
padding: `5px ${theme.spacing()}`
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
[`&.${classes.newSnippet}`]: {
|
|
88
|
-
'&:before': {
|
|
89
|
-
backgroundColor: theme.palette.primary.main
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
[`& .${classes.content}`]: {
|
|
93
|
-
width: '100%',
|
|
94
|
-
display: 'flex',
|
|
95
|
-
flexDirection: 'row',
|
|
96
|
-
justifyContent: 'center',
|
|
97
|
-
alignItems: 'center'
|
|
98
|
-
},
|
|
99
|
-
[`& .${classes.header}`]: {
|
|
100
|
-
display: 'flex',
|
|
101
|
-
flexDirection: 'row',
|
|
102
|
-
justifyContent: 'flex-start',
|
|
103
|
-
alignItems: 'flex-start',
|
|
104
|
-
width: '100%',
|
|
105
|
-
flex: 1
|
|
106
|
-
},
|
|
107
|
-
[`& .${classes.image}`]: {
|
|
108
|
-
flexShrink: 0,
|
|
109
|
-
marginRight: theme.spacing(1)
|
|
110
|
-
},
|
|
111
|
-
[`& .${classes.snippetImage}`]: {
|
|
112
|
-
paddingLeft: `${theme.spacing()}`,
|
|
113
|
-
'& .MuiAvatar-root': {
|
|
114
|
-
width: 25,
|
|
115
|
-
height: 25
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
[`& .${classes.title}`]: {
|
|
119
|
-
flex: '1 1 auto',
|
|
120
|
-
textAlign: 'left',
|
|
121
|
-
width: '100%'
|
|
122
|
-
},
|
|
123
|
-
[`& .${classes.primary}`]: {
|
|
124
|
-
color: theme.palette.text.primary,
|
|
125
|
-
textOverflow: 'ellipsis',
|
|
126
|
-
display: 'inline',
|
|
127
|
-
overflow: 'hidden'
|
|
128
|
-
},
|
|
129
|
-
[`& .${classes.secondary}`]: {
|
|
130
|
-
textOverflow: 'ellipsis',
|
|
131
|
-
display: 'inline',
|
|
132
|
-
overflow: 'hidden',
|
|
133
|
-
color: theme.palette.text.secondary
|
|
134
|
-
},
|
|
135
|
-
[`& .${classes.actions}`]: {
|
|
136
|
-
'> div': {
|
|
137
|
-
justifyContent: 'flex-end'
|
|
138
|
-
},
|
|
139
|
-
flex: 1
|
|
140
|
-
},
|
|
141
|
-
[`& .${classes.footer}`]: {
|
|
142
|
-
padding: `0px ${theme.spacing()}`,
|
|
143
|
-
width: '100%'
|
|
144
|
-
}
|
|
40
|
+
whiteSpace: 'normal'
|
|
145
41
|
}));
|
|
146
42
|
/**
|
|
147
43
|
* > API documentation for the Community-JS BaseItem component. Learn about the available props and the CSS API.
|
|
@@ -162,7 +58,7 @@ const Root = styled(Widget, {
|
|
|
162
58
|
|Rule Name|Global class|Description|
|
|
163
59
|
|---|---|---|
|
|
164
60
|
|root|.SCBaseItem-root|Styles applied to the root element.|
|
|
165
|
-
|
|
|
61
|
+
|new|.SCBaseItem-new-snippet|Styles applied to the root element when notification is marked as new.|
|
|
166
62
|
|content|.SCBaseItem-content|Styles applied to the content element.|
|
|
167
63
|
|header|.SCBaseItem-header|Styles applied to the header element.|
|
|
168
64
|
|image|.SCBaseItem-image|Styles applied to image section.|
|
|
@@ -183,24 +79,18 @@ export default function NotificationItem(inProps) {
|
|
|
183
79
|
name: PREFIX
|
|
184
80
|
});
|
|
185
81
|
const { id = null, className = null, image = null, disableTypography = false, primary = null, primaryTypographyProps = { component: 'span', variant: 'body1' }, secondary = null, secondaryTypographyProps = { component: 'p', variant: 'body2' }, actions = null, footer = null, template = SCNotificationObjectTemplateType.DETAIL, isNew = false, elevation = 0 } = props, rest = __rest(props, ["id", "className", "image", "disableTypography", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps", "actions", "footer", "template", "isNew", "elevation"]);
|
|
186
|
-
const isSnippetTemplate = template === SCNotificationObjectTemplateType.SNIPPET;
|
|
187
|
-
const isDetailTemplate = template === SCNotificationObjectTemplateType.DETAIL;
|
|
188
|
-
const isToastTemplate = template === SCNotificationObjectTemplateType.TOAST;
|
|
189
82
|
// RENDER
|
|
190
|
-
return (React.createElement(Root, Object.assign({ id: id }, rest, { className: classNames(classes.root, className, {
|
|
191
|
-
[classes.
|
|
192
|
-
[classes.snippet]: isSnippetTemplate,
|
|
193
|
-
[classes.newSnippet]: isSnippetTemplate && isNew
|
|
83
|
+
return (React.createElement(Root, Object.assign({ id: id }, rest, { className: classNames(classes.root, className, `${PREFIX}-${template}`, {
|
|
84
|
+
[classes.new]: isNew
|
|
194
85
|
}), elevation: elevation }),
|
|
195
|
-
React.createElement(Box, { className: classes.
|
|
196
|
-
React.createElement(Box, { className: classes.
|
|
197
|
-
|
|
198
|
-
React.createElement(Box, { className: classes.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
actions && React.createElement(Box, { className: classes.actions }, actions)),
|
|
86
|
+
React.createElement(Box, { className: classes.header },
|
|
87
|
+
image && React.createElement(Box, { className: classNames(classes.image) }, image),
|
|
88
|
+
React.createElement(Box, { className: classes.title },
|
|
89
|
+
primary && (React.createElement(Box, { className: classes.primary },
|
|
90
|
+
template === SCNotificationObjectTemplateType.DETAIL && isNew && React.createElement(NewChip, { className: classes.newChip }),
|
|
91
|
+
disableTypography ? primary : React.createElement(Typography, Object.assign({}, primaryTypographyProps), primary))),
|
|
92
|
+
secondary && (React.createElement(Box, { className: classes.secondary }, disableTypography ? secondary : React.createElement(Typography, Object.assign({}, secondaryTypographyProps), secondary))))),
|
|
93
|
+
actions && React.createElement(Box, { className: classes.actions }, actions),
|
|
204
94
|
footer && React.createElement(Box, { className: classes.footer }, footer)));
|
|
205
95
|
}
|
|
206
96
|
//# sourceMappingURL=NotificationItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationItem.js","sourceRoot":"","sources":["../../../../src/shared/NotificationItem/NotificationItem.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,GAAG,EAAE,UAAU,EAAkB,MAAM,eAAe,CAAC;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,OAAO,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationItem.js","sourceRoot":"","sources":["../../../../src/shared/NotificationItem/NotificationItem.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,GAAG,EAAE,UAAU,EAAkB,MAAM,eAAe,CAAC;AAC/D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,OAAO,EAAC,gCAAgC,EAAC,MAAM,0BAA0B,CAAC;AAG1E,MAAM,MAAM,GAAG,oBAAoB,CAAC;AAEpC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,MAAM,EAAE,GAAG,MAAM,SAAS;IAC1B,KAAK,EAAE,GAAG,MAAM,QAAQ;IACxB,YAAY,EAAE,GAAG,MAAM,gBAAgB;IACvC,KAAK,EAAE,GAAG,MAAM,QAAQ;IACxB,OAAO,EAAE,GAAG,MAAM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