@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.
Files changed (180) hide show
  1. package/lib/cjs/components/FeedObject/FeedObject.d.ts.map +1 -1
  2. package/lib/cjs/components/FeedObject/FeedObject.js +0 -1
  3. package/lib/cjs/components/FeedObject/FeedObject.js.map +1 -1
  4. package/lib/cjs/components/FeedUpdates/FeedUpdates.d.ts.map +1 -1
  5. package/lib/cjs/components/FeedUpdates/FeedUpdates.js +0 -1
  6. package/lib/cjs/components/FeedUpdates/FeedUpdates.js.map +1 -1
  7. package/lib/cjs/components/NavigationToolbar/NotificationMenu.d.ts.map +1 -1
  8. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +5 -2
  9. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js.map +1 -1
  10. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -21
  11. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts.map +1 -1
  12. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +15 -16
  13. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js.map +1 -1
  14. package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -21
  15. package/lib/cjs/components/Notification/Comment/Comment.d.ts.map +1 -1
  16. package/lib/cjs/components/Notification/Comment/Comment.js +23 -24
  17. package/lib/cjs/components/Notification/Comment/Comment.js.map +1 -1
  18. package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -21
  19. package/lib/cjs/components/Notification/Contribution/Contribution.d.ts.map +1 -1
  20. package/lib/cjs/components/Notification/Contribution/Contribution.js +25 -25
  21. package/lib/cjs/components/Notification/Contribution/Contribution.js.map +1 -1
  22. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -21
  23. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts.map +1 -1
  24. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +18 -19
  25. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js.map +1 -1
  26. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts +2 -21
  27. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts.map +1 -1
  28. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +17 -18
  29. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js.map +1 -1
  30. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +2 -21
  31. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts.map +1 -1
  32. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +16 -19
  33. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js.map +1 -1
  34. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -21
  35. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts.map +1 -1
  36. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +9 -10
  37. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js.map +1 -1
  38. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -21
  39. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts.map +1 -1
  40. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +16 -17
  41. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js.map +1 -1
  42. package/lib/cjs/components/Notification/Mention/Mention.d.ts +2 -21
  43. package/lib/cjs/components/Notification/Mention/Mention.d.ts.map +1 -1
  44. package/lib/cjs/components/Notification/Mention/Mention.js +18 -19
  45. package/lib/cjs/components/Notification/Mention/Mention.js.map +1 -1
  46. package/lib/cjs/components/Notification/Notification.d.ts +12 -12
  47. package/lib/cjs/components/Notification/Notification.d.ts.map +1 -1
  48. package/lib/cjs/components/Notification/Notification.js +33 -86
  49. package/lib/cjs/components/Notification/Notification.js.map +1 -1
  50. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -21
  51. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +1 -1
  52. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +11 -20
  53. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js.map +1 -1
  54. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -21
  55. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts.map +1 -1
  56. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +16 -17
  57. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js.map +1 -1
  58. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts +2 -21
  59. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts.map +1 -1
  60. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +10 -11
  61. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js.map +1 -1
  62. package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts +2 -21
  63. package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts.map +1 -1
  64. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +12 -13
  65. package/lib/cjs/components/Notification/UserConnection/UserConnection.js.map +1 -1
  66. package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts +2 -21
  67. package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts.map +1 -1
  68. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +10 -11
  69. package/lib/cjs/components/Notification/UserFollow/UserFollow.js.map +1 -1
  70. package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts +2 -21
  71. package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts.map +1 -1
  72. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +16 -17
  73. package/lib/cjs/components/Notification/VoteUp/VoteUp.js.map +1 -1
  74. package/lib/cjs/components/SnippetNotifications/Skeleton.d.ts +1 -1
  75. package/lib/cjs/components/SnippetNotifications/Skeleton.d.ts.map +1 -1
  76. package/lib/cjs/components/SnippetNotifications/Skeleton.js +5 -12
  77. package/lib/cjs/components/SnippetNotifications/Skeleton.js.map +1 -1
  78. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.d.ts +2 -2
  79. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.d.ts.map +1 -1
  80. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +7 -21
  81. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js.map +1 -1
  82. package/lib/cjs/shared/CustomSnackMessage/index.d.ts.map +1 -1
  83. package/lib/cjs/shared/CustomSnackMessage/index.js +5 -19
  84. package/lib/cjs/shared/CustomSnackMessage/index.js.map +1 -1
  85. package/lib/cjs/shared/NotificationItem/NotificationItem.d.ts +1 -6
  86. package/lib/cjs/shared/NotificationItem/NotificationItem.d.ts.map +1 -1
  87. package/lib/cjs/shared/NotificationItem/NotificationItem.js +13 -123
  88. package/lib/cjs/shared/NotificationItem/NotificationItem.js.map +1 -1
  89. package/lib/esm/components/FeedObject/FeedObject.d.ts.map +1 -1
  90. package/lib/esm/components/FeedObject/FeedObject.js +0 -1
  91. package/lib/esm/components/FeedObject/FeedObject.js.map +1 -1
  92. package/lib/esm/components/FeedUpdates/FeedUpdates.d.ts.map +1 -1
  93. package/lib/esm/components/FeedUpdates/FeedUpdates.js +0 -1
  94. package/lib/esm/components/FeedUpdates/FeedUpdates.js.map +1 -1
  95. package/lib/esm/components/NavigationToolbar/NotificationMenu.d.ts.map +1 -1
  96. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +6 -3
  97. package/lib/esm/components/NavigationToolbar/NotificationMenu.js.map +1 -1
  98. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -21
  99. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts.map +1 -1
  100. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +15 -16
  101. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js.map +1 -1
  102. package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -21
  103. package/lib/esm/components/Notification/Comment/Comment.d.ts.map +1 -1
  104. package/lib/esm/components/Notification/Comment/Comment.js +24 -25
  105. package/lib/esm/components/Notification/Comment/Comment.js.map +1 -1
  106. package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -21
  107. package/lib/esm/components/Notification/Contribution/Contribution.d.ts.map +1 -1
  108. package/lib/esm/components/Notification/Contribution/Contribution.js +26 -26
  109. package/lib/esm/components/Notification/Contribution/Contribution.js.map +1 -1
  110. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -21
  111. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts.map +1 -1
  112. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +19 -20
  113. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js.map +1 -1
  114. package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts +2 -21
  115. package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts.map +1 -1
  116. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +17 -18
  117. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js.map +1 -1
  118. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +2 -21
  119. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts.map +1 -1
  120. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +17 -20
  121. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js.map +1 -1
  122. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -21
  123. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts.map +1 -1
  124. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +9 -10
  125. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js.map +1 -1
  126. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -21
  127. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts.map +1 -1
  128. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +16 -17
  129. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js.map +1 -1
  130. package/lib/esm/components/Notification/Mention/Mention.d.ts +2 -21
  131. package/lib/esm/components/Notification/Mention/Mention.d.ts.map +1 -1
  132. package/lib/esm/components/Notification/Mention/Mention.js +18 -19
  133. package/lib/esm/components/Notification/Mention/Mention.js.map +1 -1
  134. package/lib/esm/components/Notification/Notification.d.ts +12 -12
  135. package/lib/esm/components/Notification/Notification.d.ts.map +1 -1
  136. package/lib/esm/components/Notification/Notification.js +35 -88
  137. package/lib/esm/components/Notification/Notification.js.map +1 -1
  138. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -21
  139. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +1 -1
  140. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +11 -20
  141. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js.map +1 -1
  142. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -21
  143. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts.map +1 -1
  144. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +17 -18
  145. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js.map +1 -1
  146. package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts +2 -21
  147. package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts.map +1 -1
  148. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +11 -12
  149. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js.map +1 -1
  150. package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts +2 -21
  151. package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts.map +1 -1
  152. package/lib/esm/components/Notification/UserConnection/UserConnection.js +13 -14
  153. package/lib/esm/components/Notification/UserConnection/UserConnection.js.map +1 -1
  154. package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts +2 -21
  155. package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts.map +1 -1
  156. package/lib/esm/components/Notification/UserFollow/UserFollow.js +11 -12
  157. package/lib/esm/components/Notification/UserFollow/UserFollow.js.map +1 -1
  158. package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts +2 -21
  159. package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts.map +1 -1
  160. package/lib/esm/components/Notification/VoteUp/VoteUp.js +17 -18
  161. package/lib/esm/components/Notification/VoteUp/VoteUp.js.map +1 -1
  162. package/lib/esm/components/SnippetNotifications/Skeleton.d.ts +1 -1
  163. package/lib/esm/components/SnippetNotifications/Skeleton.d.ts.map +1 -1
  164. package/lib/esm/components/SnippetNotifications/Skeleton.js +6 -13
  165. package/lib/esm/components/SnippetNotifications/Skeleton.js.map +1 -1
  166. package/lib/esm/components/SnippetNotifications/SnippetNotifications.d.ts +2 -2
  167. package/lib/esm/components/SnippetNotifications/SnippetNotifications.d.ts.map +1 -1
  168. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +7 -21
  169. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js.map +1 -1
  170. package/lib/esm/shared/CustomSnackMessage/index.d.ts.map +1 -1
  171. package/lib/esm/shared/CustomSnackMessage/index.js +5 -19
  172. package/lib/esm/shared/CustomSnackMessage/index.js.map +1 -1
  173. package/lib/esm/shared/NotificationItem/NotificationItem.d.ts +1 -6
  174. package/lib/esm/shared/NotificationItem/NotificationItem.d.ts.map +1 -1
  175. package/lib/esm/shared/NotificationItem/NotificationItem.js +13 -123
  176. package/lib/esm/shared/NotificationItem/NotificationItem.js.map +1 -1
  177. package/lib/umd/react-ui.js +3 -3
  178. package/lib/umd/react-ui.js.LICENSE.txt +2 -2
  179. package/lib/umd/react-ui.js.map +1 -1
  180. 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
- newSnippet: `${PREFIX}-new-snippet`,
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
- [`&.${classes.root}`]: {
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
- |newSnippet|.SCBaseItem-new-snippet|Styles applied to the root element when notification is marked as new.|
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.dense]: isSnippetTemplate || isToastTemplate,
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.content },
196
- React.createElement(Box, { className: classes.header },
197
- image && React.createElement(Box, { className: classNames(classes.image, { [classes.snippetImage]: isSnippetTemplate }) }, image),
198
- React.createElement(Box, { className: classes.title },
199
- primary && (React.createElement(Box, { className: classes.primary },
200
- isDetailTemplate && isNew && React.createElement(NewChip, { className: classes.newChip }),
201
- disableTypography ? primary : React.createElement(Typography, Object.assign({}, primaryTypographyProps), primary))),
202
- secondary && (React.createElement(Box, { className: classes.secondary }, disableTypography ? secondary : React.createElement(Typography, Object.assign({}, secondaryTypographyProps), secondary))))),
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;AACzC,OAAO,EAAC,IAAI,EAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAC,gCAAgC,E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