@selfcommunity/react-ui 0.11.0-alpha.65 → 0.11.0-alpha.66

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 (740) hide show
  1. package/lib/cjs/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +2 -2
  2. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -2
  3. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +2 -4
  4. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +2 -3
  5. package/lib/cjs/components/AccountDelete/AccountDelete.js +1 -2
  6. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +2 -3
  7. package/lib/cjs/components/AccountRecover/AccountRecover.js +1 -2
  8. package/lib/cjs/components/AccountReset/AccountReset.js +1 -2
  9. package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -2
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -2
  11. package/lib/cjs/components/BroadcastMessages/Message.js +3 -5
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +2 -3
  13. package/lib/cjs/components/Categories/Categories.js +1 -2
  14. package/lib/cjs/components/Categories/Skeleton.js +1 -2
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +2 -3
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +2 -3
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -4
  19. package/lib/cjs/components/Category/Category.js +1 -2
  20. package/lib/cjs/components/Category/Skeleton.js +2 -4
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +2 -3
  22. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +3 -8
  23. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +2 -2
  24. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.d.ts +1 -1
  25. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -5
  26. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -2
  27. package/lib/cjs/components/CategoryHeader/Skeleton.js +3 -6
  28. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +4 -6
  29. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  30. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +3 -5
  31. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -4
  32. package/lib/cjs/components/ChangeCover/ChangeCover.js +3 -6
  33. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +2 -4
  34. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +2 -4
  35. package/lib/cjs/components/ChangePicture/ChangePicture.js +2 -4
  36. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +3 -8
  37. package/lib/cjs/components/CommentObject/CommentObject.js +1 -2
  38. package/lib/cjs/components/CommentObject/Skeleton.js +2 -4
  39. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -2
  40. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +3 -5
  41. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/CommentsObject/CommentsObject.js +2 -4
  43. package/lib/cjs/components/CommentsObject/Skeleton.js +1 -2
  44. package/lib/cjs/components/Composer/Attributes/Attributes.js +3 -5
  45. package/lib/cjs/components/Composer/Composer.js +5 -7
  46. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +1 -2
  47. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +1 -2
  48. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -9
  49. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -2
  50. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +2 -3
  51. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -9
  52. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -5
  53. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -5
  54. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
  55. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -5
  56. package/lib/cjs/components/Composer/Skeleton.js +2 -5
  57. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -2
  58. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +1 -2
  59. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +6 -13
  60. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -6
  61. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.d.ts +1 -1
  62. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +1 -3
  63. package/lib/cjs/components/Course/Course.js +3 -4
  64. package/lib/cjs/components/Course/CreatePlaceholder.js +1 -2
  65. package/lib/cjs/components/Course/Skeleton.js +5 -7
  66. package/lib/cjs/components/CourseContentMenu/CourseContentMenu.js +1 -2
  67. package/lib/cjs/components/CourseForm/CourseForm.js +1 -2
  68. package/lib/cjs/components/CourseForm/Edit.js +1 -2
  69. package/lib/cjs/components/CourseForm/UploadCourseCover.js +2 -4
  70. package/lib/cjs/components/CourseFormDialog/CourseFormDialog.js +2 -2
  71. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +2 -2
  72. package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
  73. package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.js +2 -3
  74. package/lib/cjs/components/Courses/Skeleton.js +1 -2
  75. package/lib/cjs/components/CreateCourseButton/CreateCourseButton.js +1 -2
  76. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -2
  77. package/lib/cjs/components/CreateEventWidget/Skeleton.js +2 -4
  78. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.d.ts +1 -1
  79. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +1 -2
  80. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +1 -1
  81. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +1 -2
  82. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +2 -4
  83. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +3 -4
  84. package/lib/cjs/components/CustomAdv/CustomAdv.js +1 -2
  85. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -2
  86. package/lib/cjs/components/EditCourse/MenuRow.js +1 -3
  87. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -2
  88. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -2
  89. package/lib/cjs/components/Editor/Editor.js +1 -2
  90. package/lib/cjs/components/Editor/Skeleton.js +2 -2
  91. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +1 -2
  92. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +2 -5
  93. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +2 -2
  94. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +1 -2
  95. package/lib/cjs/components/Editor/plugins/MediaPlugin.js +1 -2
  96. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +2 -4
  97. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +1 -2
  98. package/lib/cjs/components/Event/Event.js +4 -5
  99. package/lib/cjs/components/Event/Skeleton.js +7 -9
  100. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.d.ts +2 -3
  101. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +2 -6
  102. package/lib/cjs/components/EventForm/EventAddress.js +3 -5
  103. package/lib/cjs/components/EventForm/EventForm.js +1 -2
  104. package/lib/cjs/components/EventForm/UploadEventCover.js +2 -4
  105. package/lib/cjs/components/EventFormDialog/EventFormDialog.js +2 -2
  106. package/lib/cjs/components/EventHeader/EventHeader.js +1 -2
  107. package/lib/cjs/components/EventHeader/Skeleton.js +2 -5
  108. package/lib/cjs/components/EventInviteButton/EventInviteButton.d.ts +1 -1
  109. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +3 -5
  110. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +1 -2
  111. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -2
  112. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +2 -3
  113. package/lib/cjs/components/EventMediaWidget/Skeleton.js +3 -5
  114. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +2 -4
  115. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
  116. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +2 -3
  117. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +4 -5
  118. package/lib/cjs/components/Events/LocationEventsFilter.js +1 -2
  119. package/lib/cjs/components/Events/Skeleton.js +1 -2
  120. package/lib/cjs/components/Feed/Feed.js +2 -3
  121. package/lib/cjs/components/Feed/Skeleton.js +1 -2
  122. package/lib/cjs/components/FeedObject/Actions/Actions.js +3 -3
  123. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -6
  124. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +2 -4
  125. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +4 -9
  126. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -2
  127. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +1 -2
  128. package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -2
  129. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -9
  130. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -2
  131. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +1 -2
  132. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +1 -2
  133. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +2 -4
  134. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +1 -2
  135. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -2
  136. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -2
  137. package/lib/cjs/components/FeedObject/FeedObject.js +5 -8
  138. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -6
  139. package/lib/cjs/components/FeedObject/Poll/Poll.js +2 -6
  140. package/lib/cjs/components/FeedObject/Skeleton.js +3 -5
  141. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +2 -3
  142. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -2
  143. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  144. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +2 -2
  145. package/lib/cjs/components/Footer/Footer.js +1 -2
  146. package/lib/cjs/components/Footer/Skeleton.js +2 -5
  147. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +2 -2
  148. package/lib/cjs/components/Group/Group.js +1 -2
  149. package/lib/cjs/components/Group/Skeleton.js +2 -4
  150. package/lib/cjs/components/GroupActionsMenu/index.js +7 -9
  151. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.d.ts +2 -3
  152. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +2 -6
  153. package/lib/cjs/components/GroupForm/GroupForm.js +1 -2
  154. package/lib/cjs/components/GroupHeader/GroupHeader.js +1 -2
  155. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -5
  156. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +1 -2
  157. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -2
  158. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.d.ts +1 -1
  159. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +3 -5
  160. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +3 -5
  161. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -2
  162. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.d.ts +1 -1
  163. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -5
  164. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +4 -6
  165. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -2
  166. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +3 -5
  167. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -2
  168. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +4 -6
  169. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +2 -2
  170. package/lib/cjs/components/Groups/Groups.js +1 -2
  171. package/lib/cjs/components/Groups/Skeleton.js +2 -2
  172. package/lib/cjs/components/Incubator/Incubator.js +3 -6
  173. package/lib/cjs/components/Incubator/Skeleton.js +2 -4
  174. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -4
  175. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -2
  176. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +3 -7
  177. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +3 -5
  178. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +2 -2
  179. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +3 -5
  180. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +3 -5
  181. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -2
  182. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -4
  183. package/lib/cjs/components/InviteUserEventButton/InviteUserEventButton.js +2 -2
  184. package/lib/cjs/components/LessonAppbar/LessonAppbar.js +1 -2
  185. package/lib/cjs/components/LessonCommentObject/LessonCommentObject.js +1 -2
  186. package/lib/cjs/components/LessonCommentObject/Skeleton.js +2 -4
  187. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -2
  188. package/lib/cjs/components/LessonCommentObjects/Skeleton.js +1 -2
  189. package/lib/cjs/components/LessonDrawer/LessonDrawer.js +1 -2
  190. package/lib/cjs/components/LessonEditForm/LessonEditForm.js +1 -2
  191. package/lib/cjs/components/LessonObject/LessonObject.js +2 -4
  192. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +9 -9
  193. package/lib/cjs/components/LiveStream/LiveStream.js +4 -5
  194. package/lib/cjs/components/LiveStream/Skeleton.js +7 -9
  195. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +1 -2
  196. package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.js +1 -2
  197. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +3 -5
  198. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +2 -5
  199. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -5
  200. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +1 -2
  201. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +10 -12
  202. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +1 -2
  203. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +2 -4
  204. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -3
  205. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +2 -5
  206. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +2 -4
  207. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -2
  208. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -2
  209. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -2
  210. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +1 -2
  211. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -2
  212. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -2
  213. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -2
  214. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +3 -4
  215. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +7 -8
  216. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  217. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +2 -3
  218. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -5
  219. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -4
  220. package/lib/cjs/components/Notification/Comment/Comment.js +1 -2
  221. package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -2
  222. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +1 -2
  223. package/lib/cjs/components/Notification/Course/Course.js +1 -2
  224. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -4
  225. package/lib/cjs/components/Notification/Event/Event.js +1 -2
  226. package/lib/cjs/components/Notification/Group/Group.js +1 -2
  227. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -2
  228. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -4
  229. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -4
  230. package/lib/cjs/components/Notification/LiveStream/LiveStream.js +1 -2
  231. package/lib/cjs/components/Notification/Mention/Mention.js +1 -2
  232. package/lib/cjs/components/Notification/Notification.js +3 -6
  233. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +1 -2
  234. package/lib/cjs/components/Notification/Skeleton.js +3 -6
  235. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -4
  236. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +2 -4
  237. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +1 -2
  238. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +1 -2
  239. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +1 -2
  240. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +3 -4
  241. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +3 -4
  242. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +2 -5
  243. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +2 -4
  244. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +5 -8
  245. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -5
  246. package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +2 -4
  247. package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +2 -4
  248. package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +3 -6
  249. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +2 -4
  250. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -4
  251. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -2
  252. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -4
  253. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +3 -5
  254. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -4
  255. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +1 -2
  256. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -2
  257. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +4 -6
  258. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +5 -7
  259. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -2
  260. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +10 -12
  261. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +1 -2
  262. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -8
  263. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +2 -4
  264. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -4
  265. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +2 -5
  266. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -4
  267. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +7 -10
  268. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -7
  269. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +3 -5
  270. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  271. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +1 -2
  272. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +1 -2
  273. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -4
  274. package/lib/cjs/components/SnippetNotifications/Skeleton.js +2 -4
  275. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +1 -2
  276. package/lib/cjs/components/TagAutocomplete/TagAutocomplete.d.ts +2 -3
  277. package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +3 -5
  278. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -2
  279. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +1 -2
  280. package/lib/cjs/components/User/Skeleton.js +2 -4
  281. package/lib/cjs/components/User/User.js +1 -2
  282. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +3 -4
  283. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  284. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +3 -5
  285. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  286. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +3 -5
  287. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -2
  288. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +3 -5
  289. package/lib/cjs/components/UserCounters/UserCounters.js +1 -2
  290. package/lib/cjs/components/UserCreatedCoursesWidget/Skeleton.js +2 -4
  291. package/lib/cjs/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +3 -5
  292. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  293. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +3 -5
  294. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  295. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +3 -5
  296. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -2
  297. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +3 -5
  298. package/lib/cjs/components/UserInfo/Skeleton.js +2 -5
  299. package/lib/cjs/components/UserInfo/UserInfo.js +1 -2
  300. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
  301. package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -2
  302. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +4 -6
  303. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +2 -4
  304. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +1 -2
  305. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  306. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -5
  307. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -2
  308. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -5
  309. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -2
  310. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -2
  311. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -4
  312. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +3 -5
  313. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -2
  314. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +2 -3
  315. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +6 -8
  316. package/lib/cjs/components/VoteButton/VoteButton.js +4 -6
  317. package/lib/cjs/components/Widget/index.js +1 -2
  318. package/lib/cjs/shared/AutoPlayer/index.js +2 -2
  319. package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts +1 -1
  320. package/lib/cjs/shared/BaseDialog/BaseDialog.js +6 -14
  321. package/lib/cjs/shared/BaseItem/BaseItem.js +1 -2
  322. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +1 -2
  323. package/lib/cjs/shared/Bullet/index.js +2 -2
  324. package/lib/cjs/shared/CentralProgress/index.d.ts +1 -1
  325. package/lib/cjs/shared/CentralProgress/index.js +2 -5
  326. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -5
  327. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -5
  328. package/lib/cjs/shared/ContributionActionsMenu/index.js +8 -11
  329. package/lib/cjs/shared/CopyTextArea/index.d.ts +1 -1
  330. package/lib/cjs/shared/CopyTextArea/index.js +1 -2
  331. package/lib/cjs/shared/CustomSnackMessage/index.js +2 -4
  332. package/lib/cjs/shared/DateTimeAgo/index.js +2 -4
  333. package/lib/cjs/shared/EmailTextField/index.js +1 -2
  334. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -2
  335. package/lib/cjs/shared/EventActionsMenu/index.js +8 -10
  336. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -2
  337. package/lib/cjs/shared/LanguageSwitcher/index.d.ts +1 -2
  338. package/lib/cjs/shared/LanguageSwitcher/index.js +1 -2
  339. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +4 -7
  340. package/lib/cjs/shared/LessonFilePreview/index.js +2 -4
  341. package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -2
  342. package/lib/cjs/shared/Lightbox/Lightbox.js +2 -2
  343. package/lib/cjs/shared/Media/File/DisplayComponent.js +5 -7
  344. package/lib/cjs/shared/Media/File/PreviewComponent.js +2 -4
  345. package/lib/cjs/shared/Media/File/TriggerButton.js +10 -12
  346. package/lib/cjs/shared/Media/Link/DisplayComponent.d.ts +1 -1
  347. package/lib/cjs/shared/Media/Link/DisplayComponent.js +3 -5
  348. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -5
  349. package/lib/cjs/shared/Media/Link/PreviewComponent.d.ts +1 -1
  350. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  351. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -4
  352. package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -4
  353. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -6
  354. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -4
  355. package/lib/cjs/shared/NewChip/NewChip.js +1 -2
  356. package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -2
  357. package/lib/cjs/shared/PasswordTextField/index.js +2 -5
  358. package/lib/cjs/shared/PhoneTextField/index.js +1 -2
  359. package/lib/cjs/shared/ProgressBar/index.d.ts +1 -1
  360. package/lib/cjs/shared/ProgressBar/index.js +2 -4
  361. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  362. package/lib/cjs/shared/TagChip/index.d.ts +1 -3
  363. package/lib/cjs/shared/TagChip/index.js +2 -3
  364. package/lib/cjs/shared/Tags/index.js +7 -13
  365. package/lib/cjs/shared/UpScalingTierBadge/index.js +2 -3
  366. package/lib/cjs/shared/UrlTextField/index.js +1 -2
  367. package/lib/cjs/shared/UserAvatar/UserAvatar.js +1 -2
  368. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -2
  369. package/lib/cjs/shared/UsernameTextField/index.js +1 -2
  370. package/lib/esm/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +1 -1
  371. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -2
  372. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +1 -3
  373. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -2
  374. package/lib/esm/components/AccountDelete/AccountDelete.js +1 -2
  375. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -2
  376. package/lib/esm/components/AccountRecover/AccountRecover.js +1 -2
  377. package/lib/esm/components/AccountReset/AccountReset.js +1 -2
  378. package/lib/esm/components/AccountVerify/AccountVerify.js +1 -2
  379. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -2
  380. package/lib/esm/components/BroadcastMessages/Message.js +1 -3
  381. package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -2
  382. package/lib/esm/components/Categories/Categories.js +1 -2
  383. package/lib/esm/components/Categories/Skeleton.js +1 -2
  384. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -2
  385. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +1 -1
  386. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -2
  387. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -3
  388. package/lib/esm/components/Category/Category.js +1 -2
  389. package/lib/esm/components/Category/Skeleton.js +1 -3
  390. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +2 -3
  391. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -6
  392. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +1 -1
  393. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.d.ts +1 -1
  394. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -3
  395. package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -2
  396. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -4
  397. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +1 -3
  398. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -3
  399. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -3
  400. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -3
  401. package/lib/esm/components/ChangeCover/ChangeCover.js +1 -4
  402. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -3
  403. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -3
  404. package/lib/esm/components/ChangePicture/ChangePicture.js +1 -3
  405. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
  406. package/lib/esm/components/CommentObject/CommentObject.js +1 -2
  407. package/lib/esm/components/CommentObject/Skeleton.js +1 -3
  408. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -2
  409. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +1 -3
  410. package/lib/esm/components/CommentsFeedObject/Skeleton.js +1 -1
  411. package/lib/esm/components/CommentsObject/CommentsObject.js +1 -3
  412. package/lib/esm/components/CommentsObject/Skeleton.js +1 -2
  413. package/lib/esm/components/Composer/Attributes/Attributes.js +1 -3
  414. package/lib/esm/components/Composer/Composer.js +1 -3
  415. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +1 -2
  416. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +1 -2
  417. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +4 -7
  418. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -2
  419. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +2 -3
  420. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +1 -5
  421. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -4
  422. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -5
  423. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
  424. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -5
  425. package/lib/esm/components/Composer/Skeleton.js +1 -3
  426. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -2
  427. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +1 -2
  428. package/lib/esm/components/ConsentSolution/ConsentSolution.js +1 -8
  429. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -3
  430. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.d.ts +1 -1
  431. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +1 -3
  432. package/lib/esm/components/Course/Course.js +1 -2
  433. package/lib/esm/components/Course/CreatePlaceholder.js +1 -2
  434. package/lib/esm/components/Course/Skeleton.js +1 -3
  435. package/lib/esm/components/CourseContentMenu/CourseContentMenu.js +1 -2
  436. package/lib/esm/components/CourseForm/CourseForm.js +1 -2
  437. package/lib/esm/components/CourseForm/Edit.js +1 -2
  438. package/lib/esm/components/CourseForm/UploadCourseCover.js +1 -3
  439. package/lib/esm/components/CourseFormDialog/CourseFormDialog.js +1 -1
  440. package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +1 -1
  441. package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
  442. package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.js +1 -2
  443. package/lib/esm/components/Courses/Skeleton.js +1 -2
  444. package/lib/esm/components/CreateCourseButton/CreateCourseButton.js +1 -2
  445. package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -2
  446. package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -3
  447. package/lib/esm/components/CreateGroupButton/CreateGroupButton.d.ts +1 -1
  448. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +1 -2
  449. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +1 -1
  450. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +1 -2
  451. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +1 -3
  452. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +1 -2
  453. package/lib/esm/components/CustomAdv/CustomAdv.js +1 -2
  454. package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
  455. package/lib/esm/components/EditCourse/MenuRow.js +1 -2
  456. package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
  457. package/lib/esm/components/EditGroupButton/EditGroupButton.js +1 -1
  458. package/lib/esm/components/Editor/Editor.js +1 -2
  459. package/lib/esm/components/Editor/Skeleton.js +1 -1
  460. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +1 -2
  461. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +1 -3
  462. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +1 -1
  463. package/lib/esm/components/Editor/plugins/ImagePlugin.js +1 -2
  464. package/lib/esm/components/Editor/plugins/MediaPlugin.js +1 -2
  465. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +1 -3
  466. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +1 -2
  467. package/lib/esm/components/Event/Event.js +1 -2
  468. package/lib/esm/components/Event/Skeleton.js +1 -3
  469. package/lib/esm/components/EventAutocomplete/EventAutocomplete.d.ts +2 -3
  470. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -5
  471. package/lib/esm/components/EventForm/EventAddress.js +1 -3
  472. package/lib/esm/components/EventForm/EventForm.js +1 -2
  473. package/lib/esm/components/EventForm/UploadEventCover.js +1 -3
  474. package/lib/esm/components/EventFormDialog/EventFormDialog.js +1 -1
  475. package/lib/esm/components/EventHeader/EventHeader.js +1 -2
  476. package/lib/esm/components/EventHeader/Skeleton.js +1 -3
  477. package/lib/esm/components/EventInviteButton/EventInviteButton.d.ts +1 -1
  478. package/lib/esm/components/EventInviteButton/EventInviteButton.js +1 -3
  479. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +1 -2
  480. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -2
  481. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +1 -2
  482. package/lib/esm/components/EventMediaWidget/Skeleton.js +1 -3
  483. package/lib/esm/components/EventMediaWidget/TriggerButton.js +1 -3
  484. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
  485. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -2
  486. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +1 -2
  487. package/lib/esm/components/Events/LocationEventsFilter.js +1 -2
  488. package/lib/esm/components/Events/Skeleton.js +1 -2
  489. package/lib/esm/components/Feed/Feed.js +1 -2
  490. package/lib/esm/components/Feed/Skeleton.js +1 -2
  491. package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
  492. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +1 -4
  493. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -3
  494. package/lib/esm/components/FeedObject/Actions/Share/Share.js +1 -6
  495. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -2
  496. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +1 -2
  497. package/lib/esm/components/FeedObject/Activities/Activities.js +1 -2
  498. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +1 -6
  499. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -2
  500. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +1 -2
  501. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +1 -2
  502. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -3
  503. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +1 -2
  504. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -2
  505. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -2
  506. package/lib/esm/components/FeedObject/FeedObject.js +1 -4
  507. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +1 -4
  508. package/lib/esm/components/FeedObject/Poll/Poll.js +1 -5
  509. package/lib/esm/components/FeedObject/Skeleton.js +1 -3
  510. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -2
  511. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -2
  512. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +1 -1
  513. package/lib/esm/components/FollowUserButton/FollowUserButton.js +1 -1
  514. package/lib/esm/components/Footer/Footer.js +1 -2
  515. package/lib/esm/components/Footer/Skeleton.js +1 -3
  516. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +1 -1
  517. package/lib/esm/components/Group/Group.js +1 -2
  518. package/lib/esm/components/Group/Skeleton.js +1 -3
  519. package/lib/esm/components/GroupActionsMenu/index.js +1 -3
  520. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.d.ts +2 -3
  521. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -5
  522. package/lib/esm/components/GroupForm/GroupForm.js +1 -2
  523. package/lib/esm/components/GroupHeader/GroupHeader.js +1 -2
  524. package/lib/esm/components/GroupHeader/Skeleton.js +1 -3
  525. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +1 -2
  526. package/lib/esm/components/GroupInfoWidget/Skeleton.js +1 -1
  527. package/lib/esm/components/GroupInviteButton/GroupInviteButton.d.ts +1 -1
  528. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +1 -3
  529. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -3
  530. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +1 -1
  531. package/lib/esm/components/GroupMembersButton/GroupMembersButton.d.ts +1 -1
  532. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -3
  533. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +1 -3
  534. package/lib/esm/components/GroupMembersWidget/Skeleton.js +1 -1
  535. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -3
  536. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +1 -1
  537. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -3
  538. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +1 -1
  539. package/lib/esm/components/Groups/Groups.js +1 -2
  540. package/lib/esm/components/Groups/Skeleton.js +2 -2
  541. package/lib/esm/components/Incubator/Incubator.js +1 -4
  542. package/lib/esm/components/Incubator/Skeleton.js +1 -3
  543. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +1 -3
  544. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -2
  545. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +1 -5
  546. package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -3
  547. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +1 -1
  548. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -3
  549. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -3
  550. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -2
  551. package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -3
  552. package/lib/esm/components/InviteUserEventButton/InviteUserEventButton.js +1 -1
  553. package/lib/esm/components/LessonAppbar/LessonAppbar.js +1 -2
  554. package/lib/esm/components/LessonCommentObject/LessonCommentObject.js +1 -2
  555. package/lib/esm/components/LessonCommentObject/Skeleton.js +1 -3
  556. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -2
  557. package/lib/esm/components/LessonCommentObjects/Skeleton.js +1 -2
  558. package/lib/esm/components/LessonDrawer/LessonDrawer.js +1 -2
  559. package/lib/esm/components/LessonEditForm/LessonEditForm.js +1 -2
  560. package/lib/esm/components/LessonObject/LessonObject.js +1 -3
  561. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +1 -1
  562. package/lib/esm/components/LiveStream/LiveStream.js +1 -2
  563. package/lib/esm/components/LiveStream/Skeleton.js +1 -3
  564. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +1 -2
  565. package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.js +1 -2
  566. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +1 -3
  567. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +1 -4
  568. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +1 -3
  569. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +1 -2
  570. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -3
  571. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +1 -2
  572. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +1 -3
  573. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.d.ts +2 -3
  574. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -4
  575. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -3
  576. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -2
  577. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -2
  578. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -2
  579. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +1 -2
  580. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -2
  581. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +1 -2
  582. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +1 -2
  583. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +1 -2
  584. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +1 -2
  585. package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -3
  586. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +1 -2
  587. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -3
  588. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -3
  589. package/lib/esm/components/Notification/Comment/Comment.js +1 -2
  590. package/lib/esm/components/Notification/Contribution/Contribution.js +1 -2
  591. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +1 -2
  592. package/lib/esm/components/Notification/Course/Course.js +1 -2
  593. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -3
  594. package/lib/esm/components/Notification/Event/Event.js +1 -2
  595. package/lib/esm/components/Notification/Group/Group.js +1 -2
  596. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -2
  597. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -3
  598. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +1 -3
  599. package/lib/esm/components/Notification/LiveStream/LiveStream.js +1 -2
  600. package/lib/esm/components/Notification/Mention/Mention.js +1 -2
  601. package/lib/esm/components/Notification/Notification.js +1 -4
  602. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +1 -2
  603. package/lib/esm/components/Notification/Skeleton.js +1 -4
  604. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -3
  605. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +1 -3
  606. package/lib/esm/components/Notification/UserConnection/UserConnection.js +1 -2
  607. package/lib/esm/components/Notification/UserFollow/UserFollow.js +1 -2
  608. package/lib/esm/components/Notification/VoteUp/VoteUp.js +1 -2
  609. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +1 -2
  610. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +1 -2
  611. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -3
  612. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +1 -3
  613. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +1 -4
  614. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +1 -3
  615. package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -3
  616. package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +1 -3
  617. package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -4
  618. package/lib/esm/components/PlatformWidget/PlatformWidget.js +1 -3
  619. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -3
  620. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -2
  621. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +1 -3
  622. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -3
  623. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -3
  624. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +1 -2
  625. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -2
  626. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +1 -3
  627. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +1 -3
  628. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +1 -1
  629. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +1 -3
  630. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +1 -2
  631. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -6
  632. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +1 -3
  633. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -3
  634. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +1 -4
  635. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -3
  636. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +1 -4
  637. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +1 -5
  638. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -3
  639. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +1 -1
  640. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +1 -2
  641. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +1 -2
  642. package/lib/esm/components/Skeleton/GenericSkeleton.js +1 -3
  643. package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -3
  644. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +1 -2
  645. package/lib/esm/components/TagAutocomplete/TagAutocomplete.d.ts +2 -3
  646. package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +1 -3
  647. package/lib/esm/components/ToastNotifications/Skeleton.js +1 -1
  648. package/lib/esm/components/ToastNotifications/ToastNotifications.js +1 -2
  649. package/lib/esm/components/User/Skeleton.js +1 -3
  650. package/lib/esm/components/User/User.js +1 -2
  651. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +1 -2
  652. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +1 -1
  653. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -3
  654. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +1 -1
  655. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -3
  656. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +1 -1
  657. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -3
  658. package/lib/esm/components/UserCounters/UserCounters.js +1 -2
  659. package/lib/esm/components/UserCreatedCoursesWidget/Skeleton.js +1 -3
  660. package/lib/esm/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +1 -3
  661. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +1 -1
  662. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -3
  663. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +1 -1
  664. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -3
  665. package/lib/esm/components/UserFollowersWidget/Skeleton.js +1 -1
  666. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -3
  667. package/lib/esm/components/UserInfo/Skeleton.js +1 -3
  668. package/lib/esm/components/UserInfo/UserInfo.js +1 -2
  669. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
  670. package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -2
  671. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -3
  672. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +1 -3
  673. package/lib/esm/components/UserProfileEdit/Section/Settings.js +1 -2
  674. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -3
  675. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -3
  676. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -2
  677. package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -3
  678. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -2
  679. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -2
  680. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -3
  681. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -3
  682. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -2
  683. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -2
  684. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +1 -3
  685. package/lib/esm/components/VoteButton/VoteButton.js +1 -3
  686. package/lib/esm/components/Widget/index.js +1 -2
  687. package/lib/esm/shared/AutoPlayer/index.js +1 -1
  688. package/lib/esm/shared/BaseDialog/BaseDialog.d.ts +1 -1
  689. package/lib/esm/shared/BaseDialog/BaseDialog.js +1 -9
  690. package/lib/esm/shared/BaseItem/BaseItem.js +1 -2
  691. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +1 -2
  692. package/lib/esm/shared/Bullet/index.js +1 -1
  693. package/lib/esm/shared/CentralProgress/index.d.ts +1 -1
  694. package/lib/esm/shared/CentralProgress/index.js +1 -3
  695. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -4
  696. package/lib/esm/shared/ConsentSolutionSwitch/index.js +1 -3
  697. package/lib/esm/shared/ContributionActionsMenu/index.js +1 -4
  698. package/lib/esm/shared/CopyTextArea/index.d.ts +1 -1
  699. package/lib/esm/shared/CopyTextArea/index.js +1 -2
  700. package/lib/esm/shared/CustomSnackMessage/index.js +1 -3
  701. package/lib/esm/shared/DateTimeAgo/index.js +1 -3
  702. package/lib/esm/shared/EmailTextField/index.js +1 -2
  703. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -2
  704. package/lib/esm/shared/EventActionsMenu/index.js +1 -3
  705. package/lib/esm/shared/HiddenPlaceholder/index.js +1 -1
  706. package/lib/esm/shared/LanguageSwitcher/index.d.ts +1 -2
  707. package/lib/esm/shared/LanguageSwitcher/index.js +1 -2
  708. package/lib/esm/shared/LessonCommentActionsMenu/index.js +1 -4
  709. package/lib/esm/shared/LessonFilePreview/index.js +1 -3
  710. package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -2
  711. package/lib/esm/shared/Lightbox/Lightbox.js +1 -1
  712. package/lib/esm/shared/Media/File/DisplayComponent.js +1 -3
  713. package/lib/esm/shared/Media/File/PreviewComponent.js +1 -3
  714. package/lib/esm/shared/Media/File/TriggerButton.js +7 -9
  715. package/lib/esm/shared/Media/Link/DisplayComponent.d.ts +1 -1
  716. package/lib/esm/shared/Media/Link/DisplayComponent.js +1 -3
  717. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -5
  718. package/lib/esm/shared/Media/Link/PreviewComponent.d.ts +1 -1
  719. package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -3
  720. package/lib/esm/shared/Media/Link/TriggerButton.js +1 -3
  721. package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -4
  722. package/lib/esm/shared/Media/Link/UrlTextField/index.js +1 -4
  723. package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -2
  724. package/lib/esm/shared/NewChip/NewChip.js +1 -2
  725. package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -2
  726. package/lib/esm/shared/PasswordTextField/index.js +1 -3
  727. package/lib/esm/shared/PhoneTextField/index.js +1 -2
  728. package/lib/esm/shared/ProgressBar/index.d.ts +1 -1
  729. package/lib/esm/shared/ProgressBar/index.js +1 -3
  730. package/lib/esm/shared/ScrollContainer/index.js +1 -1
  731. package/lib/esm/shared/TagChip/index.d.ts +1 -3
  732. package/lib/esm/shared/TagChip/index.js +1 -2
  733. package/lib/esm/shared/Tags/index.js +1 -7
  734. package/lib/esm/shared/UpScalingTierBadge/index.js +1 -2
  735. package/lib/esm/shared/UrlTextField/index.js +1 -2
  736. package/lib/esm/shared/UserAvatar/UserAvatar.js +1 -2
  737. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -2
  738. package/lib/esm/shared/UsernameTextField/index.js +1 -2
  739. package/lib/umd/react-ui.js +1 -1
  740. package/package.json +4 -4
@@ -4,7 +4,6 @@ const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const material_1 = require("@mui/material");
7
- const styles_1 = require("@mui/material/styles");
8
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
9
8
  const Editor_1 = tslib_1.__importDefault(require("../../../Editor"));
10
9
  const react_intl_1 = require("react-intl");
@@ -19,7 +18,7 @@ const classes = {
19
18
  medias: `${constants_1.PREFIX}-content-discussion-medias`,
20
19
  editor: `${constants_1.PREFIX}-content-discussion-editor`
21
20
  };
22
- const Root = (0, styles_1.styled)(material_1.Box, {
21
+ const Root = (0, material_1.styled)(material_1.Box, {
23
22
  name: constants_1.PREFIX,
24
23
  slot: 'ContentDiscussionRoot'
25
24
  })(({ theme }) => ({}));
@@ -4,7 +4,6 @@ const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const material_1 = require("@mui/material");
7
- const styles_1 = require("@mui/material/styles");
8
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
9
8
  const Editor_1 = tslib_1.__importDefault(require("../../../Editor"));
10
9
  const react_intl_1 = require("react-intl");
@@ -19,7 +18,7 @@ const classes = {
19
18
  editor: `${constants_1.PREFIX}-content-lesson-editor`,
20
19
  link: `${constants_1.PREFIX}-content-lesson-link`
21
20
  };
22
- const Root = (0, styles_1.styled)(material_1.Box, {
21
+ const Root = (0, material_1.styled)(material_1.Box, {
23
22
  name: constants_1.PREFIX,
24
23
  slot: 'ContentLessonRoot'
25
24
  })(({ theme }) => ({}));
@@ -4,11 +4,8 @@ const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const material_1 = require("@mui/material");
7
- const styles_1 = require("@mui/material/styles");
8
7
  const react_intl_1 = require("react-intl");
9
- const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
10
8
  const react_sortablejs_1 = require("react-sortablejs");
11
- const InputAdornment_1 = tslib_1.__importDefault(require("@mui/material/InputAdornment"));
12
9
  const x_date_pickers_1 = require("@mui/x-date-pickers");
13
10
  const AdapterDateFns_1 = require("@mui/x-date-pickers/AdapterDateFns");
14
11
  const Composer_1 = require("../../../../constants/Composer");
@@ -30,7 +27,7 @@ const classes = {
30
27
  choiceNew: `${constants_1.PREFIX}-content-poll-choice-new`,
31
28
  metadata: `${constants_1.PREFIX}-content-poll-metadata`
32
29
  };
33
- const Root = (0, styles_1.styled)(material_1.Box, {
30
+ const Root = (0, material_1.styled)(material_1.Box, {
34
31
  name: constants_1.PREFIX,
35
32
  slot: 'ContentPollRoot'
36
33
  })(({ theme }) => ({}));
@@ -63,7 +60,7 @@ exports.default = (inProps) => {
63
60
  const { className = null, value = { poll: Object.assign({}, DEFAULT_POLL) }, error = {}, disabled, onChange } = props;
64
61
  const { titleError = null, error: generalError = null } = Object.assign({}, error);
65
62
  // MEMO
66
- const poll = (0, react_1.useMemo)(() => value.poll ? value.poll : Object.assign({}, DEFAULT_POLL), [value, DEFAULT_POLL]);
63
+ const poll = (0, react_1.useMemo)(() => (value.poll ? value.poll : Object.assign({}, DEFAULT_POLL)), [value, DEFAULT_POLL]);
67
64
  // INTL
68
65
  const intl = (0, react_intl_1.useIntl)();
69
66
  // HANDLERS
@@ -102,10 +99,10 @@ exports.default = (inProps) => {
102
99
  minDate.setDate(minDate.getDate() + Composer_1.COMPOSER_POLL_MIN_CLOSE_DATE_DELTA);
103
100
  return minDate;
104
101
  }, []);
105
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [generalError && (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.generalError }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.composer.content.poll.error.${generalError}`, defaultMessage: `ui.composer.content.poll.error.${generalError}` }) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { autoFocus: true, disabled: disabled, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.title", defaultMessage: "ui.composer.content.poll.title" }), variant: "outlined", value: poll.title, onChange: handleChangeTitle, fullWidth: true, error: Boolean(titleError), helperText: titleError && titleError, InputProps: {
102
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [generalError && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.generalError }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.composer.content.poll.error.${generalError}`, defaultMessage: `ui.composer.content.poll.error.${generalError}` }) }))), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { autoFocus: true, disabled: disabled, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.title", defaultMessage: "ui.composer.content.poll.title" }), variant: "outlined", value: poll.title, onChange: handleChangeTitle, fullWidth: true, error: Boolean(titleError), helperText: titleError && titleError, InputProps: {
106
103
  endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Composer_1.COMPOSER_POLL_TITLE_MAX_LENGTH - poll.title.length }))
107
104
  } }) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.choices }, { children: (0, jsx_runtime_1.jsx)(react_sortablejs_1.ReactSortable, Object.assign({ list: [...poll.choices], setList: handleSortChoices, tag: SortableComponent }, { children: poll.choices.map((choice, index) => ((0, jsx_runtime_1.jsx)(material_1.TextField, { placeholder: intl.formatMessage(messages.choicePlaceholder), value: choice.choice, onChange: handleChangeChoice(index), variant: "outlined", disabled: disabled, InputProps: {
108
- startAdornment: ((0, jsx_runtime_1.jsx)(InputAdornment_1.default, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "drag" }) }))),
109
- endAdornment: ((0, jsx_runtime_1.jsx)(InputAdornment_1.default, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete.disabled", defaultMessage: "ui.composer.content.poll.choice.delete.disabled" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete", defaultMessage: "ui.composer.content.poll.choice.delete" })) }, { children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleDeleteChoice(index), disabled: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES, edge: "end" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "delete" }) })) }) })) })))
110
- } }, index))) })) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.choiceNew }, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ color: "inherit", variant: "text", onClick: handleAddChoice }, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { children: "add" }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.add", defaultMessage: "ui.composer.choice.add" })] })) })), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.metadata }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: poll.multiple_choices, onChange: handleChangeMultiple }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.multiple", defaultMessage: "ui.composer.content.poll.multiple" }) }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: localeMap[intl.locale] }, { children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DatePicker, { disabled: disabled, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.expiration", defaultMessage: "ui.composer.content.poll.expiration" }), value: typeof poll.expiration_at === 'string' ? (0, date_fns_1.parseISO)(poll.expiration_at) : poll.expiration_at, onChange: handleChangeExpiration, slotProps: { textField: { variant: 'outlined' } }, minDate: minDate }) }))] }))] })));
105
+ startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "drag" }) }))),
106
+ endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete.disabled", defaultMessage: "ui.composer.content.poll.choice.delete.disabled" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete", defaultMessage: "ui.composer.content.poll.choice.delete" })) }, { children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleDeleteChoice(index), disabled: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES, edge: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) })) }) })) })))
107
+ } }, index))) })) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.choiceNew }, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ color: "inherit", variant: "text", onClick: handleAddChoice }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add" }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.add", defaultMessage: "ui.composer.choice.add" })] })) })), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.metadata }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: poll.multiple_choices, onChange: handleChangeMultiple }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.multiple", defaultMessage: "ui.composer.content.poll.multiple" }) }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: localeMap[intl.locale] }, { children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DatePicker, { disabled: disabled, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.expiration", defaultMessage: "ui.composer.content.poll.expiration" }), value: typeof poll.expiration_at === 'string' ? (0, date_fns_1.parseISO)(poll.expiration_at) : poll.expiration_at, onChange: handleChangeExpiration, slotProps: { textField: { variant: 'outlined' } }, minDate: minDate }) }))] }))] })));
111
108
  };
@@ -4,7 +4,6 @@ const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const material_1 = require("@mui/material");
7
- const styles_1 = require("@mui/material/styles");
8
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
9
8
  const Editor_1 = tslib_1.__importDefault(require("../../../Editor"));
10
9
  const constants_1 = require("../../constants");
@@ -15,7 +14,7 @@ const classes = {
15
14
  medias: `${constants_1.PREFIX}-content-post-medias`,
16
15
  editor: `${constants_1.PREFIX}-content-post-editor`
17
16
  };
18
- const Root = (0, styles_1.styled)(material_1.Box, {
17
+ const Root = (0, material_1.styled)(material_1.Box, {
19
18
  name: constants_1.PREFIX,
20
19
  slot: 'ContentPostRoot'
21
20
  })(({ theme }) => ({}));
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import { TextFieldProps } from '@mui/material/TextField';
3
- import { BoxProps } from '@mui/material';
4
- import { SCTagType } from '@selfcommunity/types/src/index';
2
+ import { BoxProps, TextFieldProps } from '@mui/material';
3
+ import { SCTagType } from '@selfcommunity/types';
5
4
  import { ComposerLayerProps } from '../../../../types/composer';
6
5
  import { SCGroupType } from '@selfcommunity/types';
7
6
  export declare enum AudienceTypes {
@@ -5,15 +5,11 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_1 = tslib_1.__importStar(require("react"));
7
7
  const react_intl_1 = require("react-intl");
8
- const TextField_1 = tslib_1.__importDefault(require("@mui/material/TextField"));
9
8
  const parse_1 = tslib_1.__importDefault(require("autosuggest-highlight/parse"));
10
9
  const match_1 = tslib_1.__importDefault(require("autosuggest-highlight/match"));
11
10
  const material_1 = require("@mui/material");
12
- const styles_1 = require("@mui/material/styles");
13
11
  const TagChip_1 = tslib_1.__importDefault(require("../../../../shared/TagChip"));
14
12
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
15
- const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
16
- const DialogContent_1 = tslib_1.__importDefault(require("@mui/material/DialogContent"));
17
13
  const react_core_1 = require("@selfcommunity/react-core");
18
14
  const constants_1 = require("../../constants");
19
15
  const GroupAutocomplete_1 = tslib_1.__importDefault(require("../../../GroupAutocomplete"));
@@ -33,7 +29,7 @@ const classes = {
33
29
  message: `${constants_1.PREFIX}-layer-audience-message`,
34
30
  autocomplete: `${constants_1.PREFIX}-layer-audience-autocomplete`
35
31
  };
36
- const Root = (0, styles_1.styled)(material_1.Box, {
32
+ const Root = (0, material_1.styled)(material_1.Box, {
37
33
  name: constants_1.PREFIX,
38
34
  slot: 'LayerAudienceRoot'
39
35
  })(() => ({}));
@@ -85,18 +81,18 @@ const AudienceLayer = react_1.default.forwardRef((props, ref) => {
85
81
  const handleChangeAudience = (0, react_1.useCallback)((_event, data) => setAudience(data), []);
86
82
  const handleAutocompleteOpen = (0, react_1.useCallback)(() => setAutocompleteOpen(true), []);
87
83
  const handleAutocompleteClose = (0, react_1.useCallback)(() => setAutocompleteOpen(false), []);
88
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.title", defaultMessage: "ui.composer.layer.audience.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ value: audience, onChange: handleChangeAudience, "aria-label": "audience type" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { value: AudienceTypes.AUDIENCE_ALL, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "public" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all", defaultMessage: "ui.composer.layer.audience.all" }) }), eventsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: (Boolean(value === null || value === void 0 ? void 0 : value.length) && !Object.prototype.hasOwnProperty.call(value, 'recurring')) ||
84
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.title", defaultMessage: "ui.composer.layer.audience.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ value: audience, onChange: handleChangeAudience, "aria-label": "audience type" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { value: AudienceTypes.AUDIENCE_ALL, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "public" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all", defaultMessage: "ui.composer.layer.audience.all" }) }), eventsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: (Boolean(value === null || value === void 0 ? void 0 : value.length) && !Object.prototype.hasOwnProperty.call(value, 'recurring')) ||
89
85
  (value !== undefined && Boolean(!(value === null || value === void 0 ? void 0 : value.length)) && audience !== AudienceTypes.AUDIENCE_ALL) ||
90
- (Boolean((value === null || value === void 0 ? void 0 : value.length) === 0) && audience === AudienceTypes.AUDIENCE_ALL && Boolean((defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.length) !== 0)), value: AudienceTypes.AUDIENCE_EVENT, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "CalendarIcon" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event", defaultMessage: "ui.composer.layer.audience.event" }) })), groupsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: (Boolean(value === null || value === void 0 ? void 0 : value.length) && !Object.prototype.hasOwnProperty.call(value, 'managed_by')) ||
86
+ (Boolean((value === null || value === void 0 ? void 0 : value.length) === 0) && audience === AudienceTypes.AUDIENCE_ALL && Boolean((defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.length) !== 0)), value: AudienceTypes.AUDIENCE_EVENT, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event", defaultMessage: "ui.composer.layer.audience.event" }) })), groupsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: (Boolean(value === null || value === void 0 ? void 0 : value.length) && !Object.prototype.hasOwnProperty.call(value, 'managed_by')) ||
91
87
  (value !== undefined && Boolean(!(value === null || value === void 0 ? void 0 : value.length)) && audience !== AudienceTypes.AUDIENCE_ALL) ||
92
- (Boolean((value === null || value === void 0 ? void 0 : value.length) === 0) && audience === AudienceTypes.AUDIENCE_ALL && Boolean((defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.length) !== 0)), value: AudienceTypes.AUDIENCE_GROUP, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "groups" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group", defaultMessage: "ui.composer.layer.audience.group" }) })), (0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: value && Object.prototype.hasOwnProperty.call(value, 'managed_by'), value: AudienceTypes.AUDIENCE_TAG, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "label" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag", defaultMessage: "ui.composer.layer.audience.tag" }) })] })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.message }, { children: [audience === AudienceTypes.AUDIENCE_ALL && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all.message", defaultMessage: "ui.composer.audience.layer.all.message" })), audience === AudienceTypes.AUDIENCE_EVENT && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event.message", defaultMessage: "ui.composer.audience.layer.event.message" })), audience === AudienceTypes.AUDIENCE_GROUP && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group.message", defaultMessage: "ui.composer.audience.layer.group.message" })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag.message", defaultMessage: "ui.composer.audience.layer.tag.message" }))] })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { className: classes.autocomplete, open: autocompleteOpen, onOpen: handleAutocompleteOpen, onClose: handleAutocompleteClose, multiple: true, options: scAddressingTags || [], getOptionLabel: (option) => option.name || '', value: value, selectOnFocus: true, clearOnBlur: true, handleHomeEndKeys: true, clearIcon: null, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tags.empty", defaultMessage: "ui.composer.layer.audience.tags.empty" }), onChange: handleChange, isOptionEqualToValue: (option, value) => value.id === option.id, renderTags: (value, getTagProps) => {
88
+ (Boolean((value === null || value === void 0 ? void 0 : value.length) === 0) && audience === AudienceTypes.AUDIENCE_ALL && Boolean((defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.length) !== 0)), value: AudienceTypes.AUDIENCE_GROUP, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group", defaultMessage: "ui.composer.layer.audience.group" }) })), (0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: value && Object.prototype.hasOwnProperty.call(value, 'managed_by'), value: AudienceTypes.AUDIENCE_TAG, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "label" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag", defaultMessage: "ui.composer.layer.audience.tag" }) })] })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.message }, { children: [audience === AudienceTypes.AUDIENCE_ALL && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all.message", defaultMessage: "ui.composer.audience.layer.all.message" })), audience === AudienceTypes.AUDIENCE_EVENT && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event.message", defaultMessage: "ui.composer.audience.layer.event.message" })), audience === AudienceTypes.AUDIENCE_GROUP && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group.message", defaultMessage: "ui.composer.audience.layer.group.message" })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag.message", defaultMessage: "ui.composer.audience.layer.tag.message" }))] })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { className: classes.autocomplete, open: autocompleteOpen, onOpen: handleAutocompleteOpen, onClose: handleAutocompleteClose, multiple: true, options: scAddressingTags || [], getOptionLabel: (option) => option.name || '', value: value, selectOnFocus: true, clearOnBlur: true, handleHomeEndKeys: true, clearIcon: null, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tags.empty", defaultMessage: "ui.composer.layer.audience.tags.empty" }), onChange: handleChange, isOptionEqualToValue: (option, value) => value.id === option.id, renderTags: (value, getTagProps) => {
93
89
  return value.map((option, index) => (0, jsx_runtime_1.jsx)(TagChip_1.default, Object.assign({ tag: option }, getTagProps({ index })), option.id));
94
90
  }, renderOption: (props, option, { selected, inputValue }) => {
95
91
  const matches = (0, match_1.default)(option.name, inputValue);
96
92
  const parts = (0, parse_1.default)(option.name, matches);
97
93
  return ((0, jsx_runtime_1.jsx)("li", Object.assign({}, props, { children: (0, jsx_runtime_1.jsx)(TagChip_1.default, { tag: option, label: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)("span", Object.assign({ style: { fontWeight: part.highlight ? 700 : 400 } }, { children: part.text }), index))) }) }, option.id) })));
98
94
  }, renderInput: (params) => {
99
- return ((0, jsx_runtime_1.jsx)(TextField_1.default, Object.assign({}, params, TextFieldProps, { InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'addressing', endAdornment: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: params.InputProps.endAdornment }) }) })));
95
+ return ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, TextFieldProps, { InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'addressing', endAdornment: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: params.InputProps.endAdornment }) }) })));
100
96
  } })), audience === AudienceTypes.AUDIENCE_GROUP && (0, jsx_runtime_1.jsx)(GroupAutocomplete_1.default, { onChange: handleGroupChange, defaultValue: defaultValue }), audience === AudienceTypes.AUDIENCE_EVENT && (0, jsx_runtime_1.jsx)(EventAutocomplete_1.default, { onChange: handleEventChange, defaultValue: defaultValue })] }))] })));
101
97
  });
102
98
  exports.default = AudienceLayer;
@@ -5,11 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
6
  const react_intl_1 = require("react-intl");
7
7
  const material_1 = require("@mui/material");
8
- const styles_1 = require("@mui/material/styles");
9
8
  const react_core_1 = require("@selfcommunity/react-core");
10
- const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
11
9
  const CategoryAutocomplete_1 = tslib_1.__importDefault(require("../../../CategoryAutocomplete"));
12
- const DialogContent_1 = tslib_1.__importDefault(require("@mui/material/DialogContent"));
13
10
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
14
11
  const constants_1 = require("../../constants");
15
12
  const classes = {
@@ -17,7 +14,7 @@ const classes = {
17
14
  title: `${constants_1.PREFIX}-layer-title`,
18
15
  content: `${constants_1.PREFIX}-layer-content`
19
16
  };
20
- const Root = (0, styles_1.styled)(material_1.Box, {
17
+ const Root = (0, material_1.styled)(material_1.Box, {
21
18
  name: constants_1.PREFIX,
22
19
  slot: 'LayerCategoryRoot'
23
20
  })(() => ({}));
@@ -31,6 +28,6 @@ const CategoryLayer = react_1.default.forwardRef((props, ref) => {
31
28
  // HANDLERS
32
29
  const handleSave = (0, react_1.useCallback)(() => onSave(value), [value, onSave]);
33
30
  const handleChange = (0, react_1.useCallback)((categories) => setValue(categories), []);
34
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.category.title", defaultMessage: "ui.composer.layer.category.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsx)(DialogContent_1.default, Object.assign({ className: classes.content }, { children: (0, jsx_runtime_1.jsx)(CategoryAutocomplete_1.default, Object.assign({ multiple: true, onChange: handleChange, defaultValue: defaultValue }, (!react_core_1.UserUtils.isStaff(scUserContext.user) && { endpointQueryParams: { can_create_content: true } }))) }))] })));
31
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.category.title", defaultMessage: "ui.composer.layer.category.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsx)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: (0, jsx_runtime_1.jsx)(CategoryAutocomplete_1.default, Object.assign({ multiple: true, onChange: handleChange, defaultValue: defaultValue }, (!react_core_1.UserUtils.isStaff(scUserContext.user) && { endpointQueryParams: { can_create_content: true } }))) }))] })));
35
32
  });
36
33
  exports.default = CategoryLayer;
@@ -5,9 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const react_intl_1 = require("react-intl");
7
7
  const material_1 = require("@mui/material");
8
- const styles_1 = require("@mui/material/styles");
9
- const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
10
- const DialogContent_1 = tslib_1.__importDefault(require("@mui/material/DialogContent"));
11
8
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
9
  const constants_1 = require("../../constants");
13
10
  const classes = {
@@ -15,13 +12,13 @@ const classes = {
15
12
  title: `${constants_1.PREFIX}-layer-title`,
16
13
  content: `${constants_1.PREFIX}-layer-content`
17
14
  };
18
- const Root = (0, styles_1.styled)(material_1.Box, {
15
+ const Root = (0, material_1.styled)(material_1.Box, {
19
16
  name: constants_1.PREFIX,
20
17
  slot: 'LayerCloseRoot'
21
18
  })(() => ({}));
22
19
  const CloseLayer = react_1.default.forwardRef((props, ref) => {
23
20
  // Props
24
21
  const { className, onClose, onSave, defaultValue = [] } = props, rest = tslib_1.__rest(props, ["className", "onClose", "onSave", "defaultValue"]);
25
- return (0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.title", defaultMessage: "ui.composer.layer.close.title" }) })] })), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.text", defaultMessage: "ui.composer.layer.close.text" }) }), (0, jsx_runtime_1.jsxs)(material_1.List, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.no", defaultMessage: "ui.composer.layer.close.no" }) }) })) }), (0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ onClick: onSave }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.yes", defaultMessage: "ui.composer.layer.close.yes" }) }) })) })] })] }))] }));
22
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.title", defaultMessage: "ui.composer.layer.close.title" }) })] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.text", defaultMessage: "ui.composer.layer.close.text" }) }), (0, jsx_runtime_1.jsxs)(material_1.List, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.no", defaultMessage: "ui.composer.layer.close.no" }) }) })) }), (0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ onClick: onSave }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.close.yes", defaultMessage: "ui.composer.layer.close.yes" }) }) })) })] })] }))] })));
26
23
  });
27
24
  exports.default = CloseLayer;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '@mui/material';
3
- import { SCContributionLocation } from '@selfcommunity/types/src/index';
3
+ import { SCContributionLocation } from '@selfcommunity/types';
4
4
  import { ComposerLayerProps } from '../../../../types/composer';
5
5
  export interface LocationLayerProps extends Omit<BoxProps, 'defaultValue'>, Omit<ComposerLayerProps, 'defaultValue'> {
6
6
  defaultValue: SCContributionLocation;
@@ -5,10 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
6
  const react_intl_1 = require("react-intl");
7
7
  const material_1 = require("@mui/material");
8
- const styles_1 = require("@mui/material/styles");
9
- const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
10
8
  const LocationAutocomplete_1 = tslib_1.__importDefault(require("../../../LocationAutocomplete"));
11
- const DialogContent_1 = tslib_1.__importDefault(require("@mui/material/DialogContent"));
12
9
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
13
10
  const constants_1 = require("../../constants");
14
11
  const classes = {
@@ -16,7 +13,7 @@ const classes = {
16
13
  title: `${constants_1.PREFIX}-layer-title`,
17
14
  content: `${constants_1.PREFIX}-layer-content`
18
15
  };
19
- const Root = (0, styles_1.styled)(material_1.Box, {
16
+ const Root = (0, material_1.styled)(material_1.Box, {
20
17
  name: constants_1.PREFIX,
21
18
  slot: 'LayerLocationRoot'
22
19
  })(() => ({}));
@@ -28,6 +25,6 @@ const LocationLayer = react_1.default.forwardRef((props, ref) => {
28
25
  // HANDLERS
29
26
  const handleSave = (0, react_1.useCallback)(() => onSave(value), [value, onSave]);
30
27
  const handleChange = (0, react_1.useCallback)((location) => setValue(location), []);
31
- return (0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.location.title", defaultMessage: "ui.composer.layer.location.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsx)(DialogContent_1.default, Object.assign({ className: classes.content }, { children: (0, jsx_runtime_1.jsx)(LocationAutocomplete_1.default, { onChange: handleChange, defaultValue: value ? value : '' }) }))] }));
28
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.location.title", defaultMessage: "ui.composer.layer.location.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsx)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: (0, jsx_runtime_1.jsx)(LocationAutocomplete_1.default, { onChange: handleChange, defaultValue: value ? value : '' }) }))] })));
32
29
  });
33
30
  exports.default = LocationLayer;
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const styles_1 = require("@mui/material/styles");
6
- const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
7
4
  const material_1 = require("@mui/material");
8
5
  const constants_1 = require("./constants");
9
6
  const classes = {
@@ -13,7 +10,7 @@ const classes = {
13
10
  content: `${constants_1.PREFIX}-content`,
14
11
  actions: `${constants_1.PREFIX}-actions`
15
12
  };
16
- const Root = (0, styles_1.styled)(material_1.Box, {
13
+ const Root = (0, material_1.styled)(material_1.Box, {
17
14
  name: constants_1.PREFIX,
18
15
  slot: 'SkeletonRoot'
19
16
  })(() => ({}));
@@ -38,6 +35,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
38
35
  *
39
36
  */
40
37
  function ComposerSkeleton() {
41
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { sx: { height: 190 }, animation: "wave", variant: "rectangular" }) })));
38
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { sx: { height: 190 }, animation: "wave", variant: "rectangular" }) })));
42
39
  }
43
40
  exports.default = ComposerSkeleton;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const styles_1 = require("@mui/material/styles");
6
5
  const material_1 = require("@mui/material");
7
6
  const react_1 = require("react");
8
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
@@ -13,7 +12,7 @@ const constants_1 = require("../constants");
13
12
  const classes = {
14
13
  root: `${constants_1.PREFIX}-typeswitch-root`
15
14
  };
16
- const Root = (0, styles_1.styled)(material_1.ToggleButtonGroup, {
15
+ const Root = (0, material_1.styled)(material_1.ToggleButtonGroup, {
17
16
  name: constants_1.PREFIX,
18
17
  slot: 'TypeSwitchButtonGroupRoot'
19
18
  })(() => ({}));
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
- const styles_1 = require("@mui/material/styles");
7
6
  const react_core_1 = require("@selfcommunity/react-core");
8
7
  const material_1 = require("@mui/material");
9
8
  const FollowUserButton_1 = tslib_1.__importDefault(require("../FollowUserButton"));
@@ -13,7 +12,7 @@ const PREFIX = 'SCConnectionUserButton';
13
12
  const classes = {
14
13
  root: `${PREFIX}-root`
15
14
  };
16
- const Root = (0, styles_1.styled)(material_1.Box, {
15
+ const Root = (0, material_1.styled)(material_1.Box, {
17
16
  name: PREFIX,
18
17
  slot: 'Root',
19
18
  overridesResolver: (props, styles) => styles.root
@@ -5,20 +5,13 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_1 = tslib_1.__importStar(require("react"));
7
7
  const system_1 = require("@mui/system");
8
- const styles_1 = require("@mui/material/styles");
9
8
  const material_1 = require("@mui/material");
10
9
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
11
- const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
12
10
  const api_services_1 = require("@selfcommunity/api-services");
13
11
  const utils_1 = require("@selfcommunity/utils");
14
12
  const react_core_1 = require("@selfcommunity/react-core");
15
13
  const ConsentSolutionSwitch_1 = tslib_1.__importDefault(require("../../shared/ConsentSolutionSwitch"));
16
14
  const Errors_1 = require("../../constants/Errors");
17
- const Dialog_1 = tslib_1.__importDefault(require("@mui/material/Dialog"));
18
- const DialogActions_1 = tslib_1.__importDefault(require("@mui/material/DialogActions"));
19
- const DialogContent_1 = tslib_1.__importDefault(require("@mui/material/DialogContent"));
20
- const DialogTitle_1 = tslib_1.__importDefault(require("@mui/material/DialogTitle"));
21
- const Slide_1 = tslib_1.__importDefault(require("@mui/material/Slide"));
22
15
  const LegalPolicies_1 = require("./../../constants/LegalPolicies");
23
16
  const Skeleton_1 = tslib_1.__importDefault(require("./Skeleton"));
24
17
  const legalPages_1 = require("../../utils/legalPages");
@@ -45,7 +38,7 @@ const classes = {
45
38
  alertAcceptDocument: `${constants_1.PREFIX}-alert-accept-document`,
46
39
  acceptConditions: `${constants_1.PREFIX}-accept-conditions`
47
40
  };
48
- const Root = (0, styles_1.styled)(Dialog_1.default, {
41
+ const Root = (0, material_1.styled)(material_1.Dialog, {
49
42
  name: constants_1.PREFIX,
50
43
  slot: 'Root'
51
44
  })(() => ({}));
@@ -66,7 +59,7 @@ const messages = (0, react_intl_1.defineMessages)({
66
59
  * Dialog default transition
67
60
  */
68
61
  const DialogTransition = (0, react_1.forwardRef)(function Transition(props, ref) {
69
- return (0, jsx_runtime_1.jsx)(Slide_1.default, Object.assign({ direction: "up", ref: ref }, props));
62
+ return (0, jsx_runtime_1.jsx)(material_1.Slide, Object.assign({ direction: "up", ref: ref }, props));
70
63
  });
71
64
  /**
72
65
  * Dialog views
@@ -253,9 +246,9 @@ function ConsentSolution(inProps) {
253
246
  return null;
254
247
  }
255
248
  const isAccept = Boolean(doc.ack && doc.ack.accepted_at);
256
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(DialogTitle_1.default, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.acceptDocumentTitle", defaultMessage: "ui.consentSolution.acceptDocumentTitle", values: { label: doc.title } }) })), (0, jsx_runtime_1.jsx)(DialogContent_1.default, Object.assign({ className: classes.content, dividers: true, ref: contentDialog }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, { component: "div", gutterBottom: true, dangerouslySetInnerHTML: {
249
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.acceptDocumentTitle", defaultMessage: "ui.consentSolution.acceptDocumentTitle", values: { label: doc.title } }) })), (0, jsx_runtime_1.jsx)(material_1.DialogContent, Object.assign({ className: classes.content, dividers: true, ref: contentDialog }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, { component: "div", gutterBottom: true, dangerouslySetInnerHTML: {
257
250
  __html: (0, legalPages_1.getDocumentBody)(doc)
258
- } }) })), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, Object.assign({ className: classes.consent, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { className: classes.consentSwitch, control: (0, jsx_runtime_1.jsx)(ConsentSolutionSwitch_1.default, { loading: loadingAck, disabled: loadingAck, checked: isAccept, onChange: () => handleChangeConsent(!isAccept), name: "consent" }), label: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.consentSwitchLabel", defaultMessage: "ui.consentSolution.consentSwitchLabel" }) }) }), rejected ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error", className: classes.alertAcceptDocument }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccountAlert", defaultMessage: "ui.consentSolution.deleteAccountAlert" }), (0, jsx_runtime_1.jsx)("a", Object.assign({ onClick: () => setView(exports.REJECTION_VIEW), className: classes.deleteAccountButton }, { children: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccount", defaultMessage: "ui.consentSolution.deleteAccount" }) }) }))] }))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.acceptConditions }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.consentSwitchDetail", defaultMessage: "ui.consentSolution.consentSwitchDetail" }) })) }))] })), (0, jsx_runtime_1.jsxs)(DialogActions_1.default, Object.assign({ className: classes.actions }, { children: [currentDocument > 0 && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", onClick: () => setCurrentDocument((prev) => prev - 1), className: classes.backButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.backButton", defaultMessage: "ui.consentSolution.backButton" }) }))), currentDocument < documents.length - 1 ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', disabled: !isAccept, onClick: handleNext, className: classes.nextButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.nextButton", defaultMessage: "ui.consentSolution.nextButton" }) }))) : ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', disabled: !isAccept, onClick: (e) => handleClose(e, null), className: classes.closeButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.closeButton", defaultMessage: "ui.consentSolution.closeButton" }) })))] }))] }));
251
+ } }) })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.consent, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { className: classes.consentSwitch, control: (0, jsx_runtime_1.jsx)(ConsentSolutionSwitch_1.default, { loading: loadingAck, disabled: loadingAck, checked: isAccept, onChange: () => handleChangeConsent(!isAccept), name: "consent" }), label: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.consentSwitchLabel", defaultMessage: "ui.consentSolution.consentSwitchLabel" }) }) }), rejected ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error", className: classes.alertAcceptDocument }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccountAlert", defaultMessage: "ui.consentSolution.deleteAccountAlert" }), (0, jsx_runtime_1.jsx)("a", Object.assign({ onClick: () => setView(exports.REJECTION_VIEW), className: classes.deleteAccountButton }, { children: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccount", defaultMessage: "ui.consentSolution.deleteAccount" }) }) }))] }))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", className: classes.acceptConditions }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.consentSwitchDetail", defaultMessage: "ui.consentSolution.consentSwitchDetail" }) })) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, Object.assign({ className: classes.actions }, { children: [currentDocument > 0 && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", onClick: () => setCurrentDocument((prev) => prev - 1), className: classes.backButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.backButton", defaultMessage: "ui.consentSolution.backButton" }) }))), currentDocument < documents.length - 1 ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', disabled: !isAccept, onClick: handleNext, className: classes.nextButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.nextButton", defaultMessage: "ui.consentSolution.nextButton" }) }))) : ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', disabled: !isAccept, onClick: (e) => handleClose(e, null), className: classes.closeButton }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.closeButton", defaultMessage: "ui.consentSolution.closeButton" }) })))] }))] }));
259
252
  };
260
253
  /**
261
254
  * Render document detail view
@@ -265,13 +258,13 @@ function ConsentSolution(inProps) {
265
258
  if (!doc) {
266
259
  return null;
267
260
  }
268
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(DialogTitle_1.default, Object.assign({ className: (0, classnames_1.default)(classes.title, classes.titleBack) }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', onClick: () => setView(exports.ACCEPT_VIEW), className: classes.backButton, startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "arrow_back" }) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.backButton", defaultMessage: "ui.consentSolution.backButton" }) })) })), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, Object.assign({ className: classes.content, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(AccountDataPortability_1.default, { className: classes.dataPortability }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccountDpSectionTitle", defaultMessage: "ui.consentSolution.deleteAccountDpSectionTitle", values: { username: (0, utils_1.capitalize)(scUserContext.user.username) } }) })), (0, jsx_runtime_1.jsx)("ul", { children: intl.formatMessage(messages.deleteAccountDpSectionInfo, { communityName, li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }) }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { className: classes.dataPortabilityCheck, checked: dataPortabilityChecked, onChange: () => setDataPortabilityChecked((p) => !p) }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccountDpSectionCheckboxLabel", defaultMessage: "ui.consentSolution.deleteAccountDpSectionCheckboxLabel" }) }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "delete_outlined" }), disabled: !dataPortabilityChecked, variant: 'contained', className: classes.confirmDeleteAccountButton, onClick: () => setView(exports.CONFIRM_DELETE_ACCOUNT) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.confirmDeleteAccountButton", defaultMessage: "ui.consentSolution.confirmDeleteAccountButton" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', className: classes.logoutAccountButton, startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "upload" }), onClick: handleLogout }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.logoutImmediatelyButton", defaultMessage: "ui.consentSolution.logoutImmediatelyButton" }) }))] }))] }));
261
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, Object.assign({ className: (0, classnames_1.default)(classes.title, classes.titleBack) }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', onClick: () => setView(exports.ACCEPT_VIEW), className: classes.backButton, startIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.backButton", defaultMessage: "ui.consentSolution.backButton" }) })) })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(AccountDataPortability_1.default, { className: classes.dataPortability }), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccountDpSectionTitle", defaultMessage: "ui.consentSolution.deleteAccountDpSectionTitle", values: { username: (0, utils_1.capitalize)(scUserContext.user.username) } }) })), (0, jsx_runtime_1.jsx)("ul", { children: intl.formatMessage(messages.deleteAccountDpSectionInfo, { communityName, li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }) }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { className: classes.dataPortabilityCheck, checked: dataPortabilityChecked, onChange: () => setDataPortabilityChecked((p) => !p) }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.deleteAccountDpSectionCheckboxLabel", defaultMessage: "ui.consentSolution.deleteAccountDpSectionCheckboxLabel" }) }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", startIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete_outlined" }), disabled: !dataPortabilityChecked, variant: 'contained', className: classes.confirmDeleteAccountButton, onClick: () => setView(exports.CONFIRM_DELETE_ACCOUNT) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.confirmDeleteAccountButton", defaultMessage: "ui.consentSolution.confirmDeleteAccountButton" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: 'outlined', className: classes.logoutAccountButton, startIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "upload" }), onClick: handleLogout }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.logoutImmediatelyButton", defaultMessage: "ui.consentSolution.logoutImmediatelyButton" }) }))] }))] }));
269
262
  };
270
263
  /**
271
264
  * Render delete account view
272
265
  */
273
266
  const renderDeleteAccountView = () => {
274
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(DialogTitle_1.default, Object.assign({ className: (0, classnames_1.default)(classes.title, classes.titleBack) }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", disabled: loadingDeleteAccount, variant: 'outlined', onClick: () => setView(exports.REJECTION_VIEW), className: classes.backButton, startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "arrow_back" }) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.backButton", defaultMessage: "ui.consentSolution.backButton" }) })) })), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, Object.assign({ className: classes.content, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountTitle", defaultMessage: "ui.consentSolution.removeAccountTitle" }) })), (0, jsx_runtime_1.jsx)("ul", { children: intl.formatMessage(messages.deleteAccountDpSectionInfo, { communityName, li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }) }) }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountConfirm", defaultMessage: "ui.consentSolution.removeAccountConfirm" }) }) }))] })), (0, jsx_runtime_1.jsxs)(DialogActions_1.default, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", disabled: loadingDeleteAccount, variant: 'outlined', onClick: () => setView(exports.REJECTION_VIEW) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountCancelButton", defaultMessage: "ui.consentSolution.removeAccountCancelButton" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", disabled: loadingDeleteAccount, variant: 'outlined', onClick: handleConfirmDeleteAccount }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountConfirmButton", defaultMessage: "ui.consentSolution.removeAccountConfirmButton" }) }))] }))] }));
267
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, Object.assign({ className: (0, classnames_1.default)(classes.title, classes.titleBack) }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", disabled: loadingDeleteAccount, variant: 'outlined', onClick: () => setView(exports.REJECTION_VIEW), className: classes.backButton, startIcon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.backButton", defaultMessage: "ui.consentSolution.backButton" }) })) })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountTitle", defaultMessage: "ui.consentSolution.removeAccountTitle" }) })), (0, jsx_runtime_1.jsx)("ul", { children: intl.formatMessage(messages.deleteAccountDpSectionInfo, { communityName, li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }) }) }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountConfirm", defaultMessage: "ui.consentSolution.removeAccountConfirm" }) }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", disabled: loadingDeleteAccount, variant: 'outlined', onClick: () => setView(exports.REJECTION_VIEW) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountCancelButton", defaultMessage: "ui.consentSolution.removeAccountCancelButton" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", disabled: loadingDeleteAccount, variant: 'outlined', onClick: handleConfirmDeleteAccount }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.consentSolution.removeAccountConfirmButton", defaultMessage: "ui.consentSolution.removeAccountConfirmButton" }) }))] }))] }));
275
268
  };
276
269
  /**
277
270
  * If there's no authUserId, component is hidden.
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const styles_1 = require("@mui/material/styles");
6
- const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
7
4
  const material_1 = require("@mui/material");
8
5
  const constants_1 = require("./constants");
9
6
  const classes = {
@@ -15,7 +12,7 @@ const classes = {
15
12
  consentSwitchLabel: `${constants_1.PREFIX}-consent-switch-label`,
16
13
  actions: `${constants_1.PREFIX}-actions`
17
14
  };
18
- const Root = (0, styles_1.styled)(material_1.Box, {
15
+ const Root = (0, material_1.styled)(material_1.Box, {
19
16
  name: constants_1.PREFIX,
20
17
  slot: 'SkeletonRoot'
21
18
  })(() => ({}));
@@ -45,7 +42,7 @@ const Root = (0, styles_1.styled)(material_1.Box, {
45
42
  *
46
43
  */
47
44
  function ConsentSolutionSkeleton() {
48
- const ContentSection = () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: "100%" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: "80%" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: "60%" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: "30%" }), (0, jsx_runtime_1.jsx)("br", {})] }));
49
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 25, width: "70%" }) })), (0, jsx_runtime_1.jsx)(material_1.DialogContent, Object.assign({ className: classes.content, dividers: true }, { children: [...Array(2)].map((_, i) => ((0, jsx_runtime_1.jsx)(ContentSection, {}, i))) })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.consent, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { height: 64, className: classes.consentSwitch }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 20, width: "50%", variant: 'text', className: classes.consentSwitchLabel })] })), (0, jsx_runtime_1.jsx)(material_1.DialogActions, Object.assign({ className: classes.actions }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 40, width: "20%" }) }))] })));
45
+ const ContentSection = () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "100%" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "80%" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "60%" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "30%" }), (0, jsx_runtime_1.jsx)("br", {})] }));
46
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 25, width: "70%" }) })), (0, jsx_runtime_1.jsx)(material_1.DialogContent, Object.assign({ className: classes.content, dividers: true }, { children: [...Array(2)].map((_, i) => ((0, jsx_runtime_1.jsx)(ContentSection, {}, i))) })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.consent, dividers: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: 64, className: classes.consentSwitch }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 20, width: "50%", variant: 'text', className: classes.consentSwitchLabel })] })), (0, jsx_runtime_1.jsx)(material_1.DialogActions, Object.assign({ className: classes.actions }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 40, width: "20%" }) }))] })));
50
47
  }
51
48
  exports.default = ConsentSolutionSkeleton;
@@ -1,5 +1,5 @@
1
1
  import { ConsentSolutionProps } from '../ConsentSolution';
2
- import { ButtonProps } from '@mui/material/Button/Button';
2
+ import { ButtonProps } from '@mui/material';
3
3
  export interface ConsentSolutionButtonProps extends ButtonProps {
4
4
  /**
5
5
  * Overrides or extends the styles applied to the component.
@@ -4,8 +4,6 @@ const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
6
  const system_1 = require("@mui/system");
7
- const styles_1 = require("@mui/material/styles");
8
- const Dialog_1 = tslib_1.__importDefault(require("@mui/material/Dialog"));
9
7
  const ConsentSolution_1 = tslib_1.__importDefault(require("../ConsentSolution"));
10
8
  const material_1 = require("@mui/material");
11
9
  const react_intl_1 = require("react-intl");
@@ -14,7 +12,7 @@ const PREFIX = 'SCConsentSolutionButton';
14
12
  const classes = {
15
13
  root: `${PREFIX}-root`
16
14
  };
17
- const Root = (0, styles_1.styled)(Dialog_1.default, {
15
+ const Root = (0, material_1.styled)(material_1.Dialog, {
18
16
  name: PREFIX,
19
17
  slot: 'Root',
20
18
  overridesResolver: (props, styles) => styles.root
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
- const styles_1 = require("@mui/material/styles");
7
6
  const system_1 = require("@mui/system");
8
7
  const react_core_1 = require("@selfcommunity/react-core");
9
8
  const types_1 = require("@selfcommunity/types");
@@ -40,17 +39,17 @@ const classes = {
40
39
  snippetAvatarUserProfile: `${constants_1.PREFIX}-snippet-avatar-user-profile-view`,
41
40
  snippetImage: `${constants_1.PREFIX}-snippet-image`
42
41
  };
43
- const Root = (0, styles_1.styled)(Widget_1.default, {
42
+ const Root = (0, material_1.styled)(Widget_1.default, {
44
43
  name: constants_1.PREFIX,
45
44
  slot: 'Root',
46
45
  overridesResolver: (_props, styles) => styles.root
47
46
  })(() => ({}));
48
- const PreviewRoot = (0, styles_1.styled)(material_1.Box, {
47
+ const PreviewRoot = (0, material_1.styled)(material_1.Box, {
49
48
  name: constants_1.PREFIX,
50
49
  slot: 'PreviewRoot',
51
50
  overridesResolver: (_props, styles) => styles.previewRoot
52
51
  })(() => ({}));
53
- const SnippetRoot = (0, styles_1.styled)(BaseItemButton_1.default, {
52
+ const SnippetRoot = (0, material_1.styled)(BaseItemButton_1.default, {
54
53
  name: constants_1.PREFIX,
55
54
  slot: 'SnippetRoot',
56
55
  overridesResolver: (_props, styles) => styles.snippetRoot
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
- const styles_1 = require("@mui/material/styles");
7
6
  const system_1 = require("@mui/system");
8
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
9
8
  const Widget_1 = tslib_1.__importDefault(require("../Widget"));
@@ -17,7 +16,7 @@ const classes = {
17
16
  icon: `${constants_1.PREFIX}-create-placeholder-icon`,
18
17
  actions: `${constants_1.PREFIX}-create-placeholder-actions`
19
18
  };
20
- const Root = (0, styles_1.styled)(Widget_1.default, {
19
+ const Root = (0, material_1.styled)(Widget_1.default, {
21
20
  name: constants_1.PREFIX,
22
21
  slot: 'CreatePlaceholderRoot'
23
22
  })(() => ({}));