@soul-refiner/design-system 2.0.0-alpha.27 → 2.0.0-alpha.28

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 (649) hide show
  1. package/dist/components/actions/button/button.js +19 -14
  2. package/dist/components/actions/dropdown/dropdown.js +28 -24
  3. package/dist/components/actions/rate/rate.js +15 -11
  4. package/dist/components/actions/switch/switch.js +9 -5
  5. package/dist/components/actions/toggle/toggle.js +9 -5
  6. package/dist/components/actions/upload/upload.js +21 -17
  7. package/dist/components/atoms/box/box.js +5 -1
  8. package/dist/components/atoms/hide/hide.js +5 -1
  9. package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +10 -6
  10. package/dist/components/atoms/time_ago/time_ago.js +5 -1
  11. package/dist/components/atoms/typography/display.js +5 -1
  12. package/dist/components/atoms/typography/heading.js +13 -9
  13. package/dist/components/atoms/typography/paragraph.js +5 -1
  14. package/dist/components/card/action/action.js +15 -10
  15. package/dist/components/card/audio/audio.js +24 -19
  16. package/dist/components/card/card.js +13 -9
  17. package/dist/components/card/feature/feature.js +26 -21
  18. package/dist/components/card/meeting/meeting.js +34 -29
  19. package/dist/components/card/person/person.js +14 -9
  20. package/dist/components/card/price/price.js +24 -20
  21. package/dist/components/card/regular/regular.js +8 -3
  22. package/dist/components/card/video/video.js +24 -19
  23. package/dist/components/card/written/written.js +24 -19
  24. package/dist/components/custom/courses_selection/courses_selection.js +24 -19
  25. package/dist/components/custom/users_selection/users_selection.js +23 -18
  26. package/dist/components/editor/context.js +8 -4
  27. package/dist/components/editor/editor.js +9 -5
  28. package/dist/components/editor/icons/border-all.js +6 -2
  29. package/dist/components/editor/icons/border-bottom.js +6 -2
  30. package/dist/components/editor/icons/border-left.js +6 -2
  31. package/dist/components/editor/icons/border-none.js +6 -2
  32. package/dist/components/editor/icons/border-right.js +6 -2
  33. package/dist/components/editor/icons/border-top.js +6 -2
  34. package/dist/components/editor/navbar/alignment_dropdown.js +14 -10
  35. package/dist/components/editor/navbar/button_modal.js +34 -30
  36. package/dist/components/editor/navbar/navbar.js +76 -72
  37. package/dist/components/editor/navbar/style_dropdown.js +5 -1
  38. package/dist/components/editor/plugins/blocks/blockquote.js +8 -4
  39. package/dist/components/editor/plugins/blocks/buttons.js +10 -6
  40. package/dist/components/editor/plugins/blocks/dropdown-menu.js +4 -3
  41. package/dist/components/editor/plugins/blocks/image.js +21 -17
  42. package/dist/components/editor/plugins/blocks/list.js +7 -3
  43. package/dist/components/editor/plugins/blocks/media-popover.js +13 -9
  44. package/dist/components/editor/plugins/blocks/plate-button.js +3 -2
  45. package/dist/components/editor/plugins/blocks/popover.js +4 -3
  46. package/dist/components/editor/plugins/blocks/qa.js +16 -12
  47. package/dist/components/editor/plugins/blocks/resizable.js +5 -1
  48. package/dist/components/editor/plugins/blocks/separator.js +3 -2
  49. package/dist/components/editor/plugins/blocks/table-cell.js +13 -9
  50. package/dist/components/editor/plugins/blocks/table-row.js +6 -2
  51. package/dist/components/editor/plugins/blocks/table.js +46 -42
  52. package/dist/components/editor/plugins/blocks/text.js +32 -28
  53. package/dist/components/editor/plugins/blocks/video.js +9 -5
  54. package/dist/components/editor/plugins/leafs/link.js +23 -19
  55. package/dist/components/editor/simple_editor/navbar.js +49 -45
  56. package/dist/components/editor/simple_editor/simple_editor.js +9 -5
  57. package/dist/components/feedback/animated_toast/animated_toast.js +10 -6
  58. package/dist/components/feedback/badge/badge.js +7 -3
  59. package/dist/components/feedback/banner/banner.js +15 -11
  60. package/dist/components/feedback/chip/chip.js +7 -3
  61. package/dist/components/feedback/loader/loader.js +7 -2
  62. package/dist/components/feedback/notification/notification.js +14 -10
  63. package/dist/components/feedback/progress/progress.js +17 -13
  64. package/dist/components/feedback/toast/toast.js +14 -10
  65. package/dist/components/feedback/tooltip/tooltip.js +10 -6
  66. package/dist/components/iconography/avatar/avatar.js +23 -18
  67. package/dist/components/iconography/avatar/icons/approved.js +8 -4
  68. package/dist/components/iconography/avatar/icons/busy.js +8 -4
  69. package/dist/components/iconography/avatar/icons/declined.js +8 -4
  70. package/dist/components/iconography/avatar/icons/default.js +7 -3
  71. package/dist/components/iconography/avatar/icons/focus.js +8 -4
  72. package/dist/components/iconography/avatar/icons/locked.js +8 -4
  73. package/dist/components/iconography/avatar/icons/offline.js +8 -4
  74. package/dist/components/iconography/avatar/icons/online.js +7 -3
  75. package/dist/components/iconography/avatar/icons/subscribed.js +12 -8
  76. package/dist/components/iconography/icon/icon.js +5 -1
  77. package/dist/components/input/calendar/calendar.js +29 -25
  78. package/dist/components/input/checkbox/checkbox.js +5 -1
  79. package/dist/components/input/date/date.js +43 -39
  80. package/dist/components/input/filter/filter.js +49 -44
  81. package/dist/components/input/filter/filter_option.js +10 -6
  82. package/dist/components/input/radio/radio.js +10 -6
  83. package/dist/components/input/search/search.js +13 -9
  84. package/dist/components/input/select/select.js +8 -4
  85. package/dist/components/input/text_area/text_area.js +14 -10
  86. package/dist/components/input/text_input/text_input.js +16 -12
  87. package/dist/components/input/time/time.js +9 -5
  88. package/dist/components/media/video/video.js +9 -3
  89. package/dist/components/media/video-player/playlist-item.js +17 -12
  90. package/dist/components/media/video-player/video.js +37 -31
  91. package/dist/components/navigation/breadcrumb/breadcrumb.js +19 -14
  92. package/dist/components/navigation/inner/inner.js +30 -25
  93. package/dist/components/navigation/tabs/tabs.js +11 -6
  94. package/dist/components/surfaces/accordion/accordion.js +15 -11
  95. package/dist/components/surfaces/calendar_date/calendar_date.js +14 -10
  96. package/dist/components/surfaces/carousel/card/card.js +11 -7
  97. package/dist/components/surfaces/comment/comment.js +44 -39
  98. package/dist/components/surfaces/drawer/drawer.js +20 -16
  99. package/dist/components/surfaces/message/message.js +12 -8
  100. package/dist/components/surfaces/modal/modal.js +23 -19
  101. package/dist/components/surfaces/portal/portal.js +8 -3
  102. package/dist/components/surfaces/post/post.js +36 -30
  103. package/dist/components/table/table/table.js +14 -10
  104. package/dist/icons/arrow/arrow_all.js +6 -2
  105. package/dist/icons/arrow/arrow_all_diagonal.js +6 -2
  106. package/dist/icons/arrow/arrow_both_downwards.js +6 -2
  107. package/dist/icons/arrow/arrow_both_upwards.js +6 -2
  108. package/dist/icons/arrow/arrow_circle_left.js +6 -2
  109. package/dist/icons/arrow/arrow_circle_left_double.js +6 -2
  110. package/dist/icons/arrow/arrow_circle_left_double_alert.js +8 -4
  111. package/dist/icons/arrow/arrow_circle_right.js +6 -2
  112. package/dist/icons/arrow/arrow_circle_right_double.js +6 -2
  113. package/dist/icons/arrow/arrow_circle_right_double_alert.js +6 -2
  114. package/dist/icons/arrow/arrow_diagonal_down_left.js +6 -2
  115. package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +6 -2
  116. package/dist/icons/arrow/arrow_diagonal_down_right.js +6 -2
  117. package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +6 -2
  118. package/dist/icons/arrow/arrow_diagonal_up_left.js +6 -2
  119. package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +6 -2
  120. package/dist/icons/arrow/arrow_diagonal_up_right.js +6 -2
  121. package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +6 -2
  122. package/dist/icons/arrow/arrow_down.js +6 -2
  123. package/dist/icons/arrow/arrow_down_bold.js +6 -2
  124. package/dist/icons/arrow/arrow_down_circle.js +6 -2
  125. package/dist/icons/arrow/arrow_left.js +6 -2
  126. package/dist/icons/arrow/arrow_left_bold.js +6 -2
  127. package/dist/icons/arrow/arrow_left_circle.js +6 -2
  128. package/dist/icons/arrow/arrow_left_curved.js +6 -2
  129. package/dist/icons/arrow/arrow_left_curved_circle.js +6 -2
  130. package/dist/icons/arrow/arrow_right.js +6 -2
  131. package/dist/icons/arrow/arrow_right_bold.js +6 -2
  132. package/dist/icons/arrow/arrow_right_circle.js +6 -2
  133. package/dist/icons/arrow/arrow_right_curved.js +6 -2
  134. package/dist/icons/arrow/arrow_right_curved_circle.js +6 -2
  135. package/dist/icons/arrow/arrow_up.js +6 -2
  136. package/dist/icons/arrow/arrow_up_bold.js +6 -2
  137. package/dist/icons/arrow/arrow_up_circle.js +6 -2
  138. package/dist/icons/arrow/chevron_down.js +6 -2
  139. package/dist/icons/arrow/chevron_down_circle.js +6 -2
  140. package/dist/icons/arrow/chevron_down_double.js +6 -2
  141. package/dist/icons/arrow/chevron_down_double_circle.js +6 -2
  142. package/dist/icons/arrow/chevron_left.js +6 -2
  143. package/dist/icons/arrow/chevron_left_circle.js +6 -2
  144. package/dist/icons/arrow/chevron_left_double.js +6 -2
  145. package/dist/icons/arrow/chevron_left_double_circle.js +6 -2
  146. package/dist/icons/arrow/chevron_right.js +6 -2
  147. package/dist/icons/arrow/chevron_right_circle.js +6 -2
  148. package/dist/icons/arrow/chevron_right_double.js +6 -2
  149. package/dist/icons/arrow/chevron_right_double_circle.js +6 -2
  150. package/dist/icons/arrow/chevron_scroll.js +6 -2
  151. package/dist/icons/arrow/chevron_up.js +6 -2
  152. package/dist/icons/arrow/chevron_up_circle.js +6 -2
  153. package/dist/icons/arrow/chevron_up_double.js +6 -2
  154. package/dist/icons/arrow/chevron_up_double_circle.js +6 -2
  155. package/dist/icons/arrow/forward_all.js +6 -2
  156. package/dist/icons/arrow/forward_all_bold.js +6 -2
  157. package/dist/icons/arrow/forward_bold.js +6 -2
  158. package/dist/icons/arrow/redo.js +6 -2
  159. package/dist/icons/arrow/redo_bold.js +6 -2
  160. package/dist/icons/arrow/reply.js +6 -2
  161. package/dist/icons/arrow/reply_all.js +6 -2
  162. package/dist/icons/arrow/reply_all_bold.js +6 -2
  163. package/dist/icons/arrow/reply_bold.js +6 -2
  164. package/dist/icons/arrow/undo.js +6 -2
  165. package/dist/icons/arrow/undo_bold.js +6 -2
  166. package/dist/icons/audio_video/drag_indicator.js +6 -2
  167. package/dist/icons/audio_video/eject.js +6 -2
  168. package/dist/icons/audio_video/equalizer.js +6 -2
  169. package/dist/icons/audio_video/fast_forward.js +6 -2
  170. package/dist/icons/audio_video/fast_forward_30.js +6 -2
  171. package/dist/icons/audio_video/fullscreen.js +6 -2
  172. package/dist/icons/audio_video/headphones.js +6 -2
  173. package/dist/icons/audio_video/library_add.js +6 -2
  174. package/dist/icons/audio_video/library_music.js +6 -2
  175. package/dist/icons/audio_video/microphone.js +6 -2
  176. package/dist/icons/audio_video/musical_note.js +6 -2
  177. package/dist/icons/audio_video/next.js +6 -2
  178. package/dist/icons/audio_video/pause.js +6 -2
  179. package/dist/icons/audio_video/pause_circle.js +6 -2
  180. package/dist/icons/audio_video/play.js +6 -2
  181. package/dist/icons/audio_video/play_circle.js +6 -2
  182. package/dist/icons/audio_video/play_display.js +6 -2
  183. package/dist/icons/audio_video/play_pause.js +6 -2
  184. package/dist/icons/audio_video/play_solid.js +6 -2
  185. package/dist/icons/audio_video/player_list.js +6 -2
  186. package/dist/icons/audio_video/player_list_add.js +6 -2
  187. package/dist/icons/audio_video/player_list_play.js +6 -2
  188. package/dist/icons/audio_video/previous.js +6 -2
  189. package/dist/icons/audio_video/radio.js +6 -2
  190. package/dist/icons/audio_video/record.js +6 -2
  191. package/dist/icons/audio_video/repeat.js +6 -2
  192. package/dist/icons/audio_video/rewind.js +6 -2
  193. package/dist/icons/audio_video/rewind_30.js +6 -2
  194. package/dist/icons/audio_video/shuffle.js +6 -2
  195. package/dist/icons/audio_video/sound_wave.js +6 -2
  196. package/dist/icons/audio_video/stop.js +6 -2
  197. package/dist/icons/audio_video/stop_circle.js +6 -2
  198. package/dist/icons/audio_video/subscriptions.js +6 -2
  199. package/dist/icons/audio_video/tuner.js +6 -2
  200. package/dist/icons/audio_video/volume.js +6 -2
  201. package/dist/icons/audio_video/volume_high.js +6 -2
  202. package/dist/icons/audio_video/volume_low.js +6 -2
  203. package/dist/icons/audio_video/volume_slash.js +6 -2
  204. package/dist/icons/basic/aa_sansserif.js +7 -3
  205. package/dist/icons/basic/aa_serif.js +7 -3
  206. package/dist/icons/basic/anchor.js +8 -4
  207. package/dist/icons/basic/bible.js +6 -2
  208. package/dist/icons/basic/bold.js +6 -2
  209. package/dist/icons/basic/book.js +6 -2
  210. package/dist/icons/basic/book_open.js +6 -2
  211. package/dist/icons/basic/bookmark.js +6 -2
  212. package/dist/icons/basic/bookmark_add.js +6 -2
  213. package/dist/icons/basic/bookmark_slash.js +6 -2
  214. package/dist/icons/basic/bookmarks.js +6 -2
  215. package/dist/icons/basic/books.js +9 -5
  216. package/dist/icons/basic/box.js +6 -2
  217. package/dist/icons/basic/briefcase.js +6 -2
  218. package/dist/icons/basic/browse_activity.js +6 -2
  219. package/dist/icons/basic/browser.js +6 -2
  220. package/dist/icons/basic/browser_slash.js +6 -2
  221. package/dist/icons/basic/calculator.js +6 -2
  222. package/dist/icons/basic/camera.js +6 -2
  223. package/dist/icons/basic/camera_add.js +6 -2
  224. package/dist/icons/basic/camera_slash.js +6 -2
  225. package/dist/icons/basic/checkmark.js +6 -2
  226. package/dist/icons/basic/checkmark_circle.js +8 -4
  227. package/dist/icons/basic/checkmark_filled.js +6 -2
  228. package/dist/icons/basic/checkmarks.js +6 -2
  229. package/dist/icons/basic/circle.js +6 -2
  230. package/dist/icons/basic/circle_slash.js +8 -4
  231. package/dist/icons/basic/clear_text_style.js +6 -2
  232. package/dist/icons/basic/close.js +6 -2
  233. package/dist/icons/basic/close_circle.js +6 -2
  234. package/dist/icons/basic/close_filled.js +6 -2
  235. package/dist/icons/basic/copy.js +6 -2
  236. package/dist/icons/basic/delete.js +6 -2
  237. package/dist/icons/basic/detail.js +6 -2
  238. package/dist/icons/basic/dot.js +6 -2
  239. package/dist/icons/basic/download.js +6 -2
  240. package/dist/icons/basic/download_arrow.js +6 -2
  241. package/dist/icons/basic/droplet.js +8 -4
  242. package/dist/icons/basic/ellipsis_horizontal.js +6 -2
  243. package/dist/icons/basic/ellipsis_horizontal_circle.js +6 -2
  244. package/dist/icons/basic/ellipsis_vertical.js +6 -2
  245. package/dist/icons/basic/ellipsis_vertical_circle.js +6 -2
  246. package/dist/icons/basic/eye.js +6 -2
  247. package/dist/icons/basic/eye_slash.js +6 -2
  248. package/dist/icons/basic/fingerprint.js +6 -2
  249. package/dist/icons/basic/flag.js +6 -2
  250. package/dist/icons/basic/flag_wave.js +6 -2
  251. package/dist/icons/basic/flag_wave_filled.js +6 -2
  252. package/dist/icons/basic/flame.js +6 -2
  253. package/dist/icons/basic/gauge.js +6 -2
  254. package/dist/icons/basic/glasses.js +6 -2
  255. package/dist/icons/basic/graduation_cap.js +6 -2
  256. package/dist/icons/basic/hashmark.js +6 -2
  257. package/dist/icons/basic/heart.js +6 -2
  258. package/dist/icons/basic/heart_slash.js +6 -2
  259. package/dist/icons/basic/highlighter.js +6 -2
  260. package/dist/icons/basic/home.js +6 -2
  261. package/dist/icons/basic/image.js +6 -2
  262. package/dist/icons/basic/inbox.js +6 -2
  263. package/dist/icons/basic/italic.js +6 -2
  264. package/dist/icons/basic/layers.js +6 -2
  265. package/dist/icons/basic/lightening.js +6 -2
  266. package/dist/icons/basic/lightening_slash.js +6 -2
  267. package/dist/icons/basic/link.js +6 -2
  268. package/dist/icons/basic/link_slash.js +6 -2
  269. package/dist/icons/basic/loudspeaker.js +6 -2
  270. package/dist/icons/basic/maximize.js +6 -2
  271. package/dist/icons/basic/menu.js +6 -2
  272. package/dist/icons/basic/menu_circle.js +6 -2
  273. package/dist/icons/basic/menu_dots.js +6 -2
  274. package/dist/icons/basic/microphone_slash.js +6 -2
  275. package/dist/icons/basic/minimize.js +6 -2
  276. package/dist/icons/basic/minus.js +6 -2
  277. package/dist/icons/basic/minus_circle.js +6 -2
  278. package/dist/icons/basic/move_item.js +6 -2
  279. package/dist/icons/basic/new.js +6 -2
  280. package/dist/icons/basic/newspaper.js +6 -2
  281. package/dist/icons/basic/node.js +6 -2
  282. package/dist/icons/basic/note_pad.js +7 -3
  283. package/dist/icons/basic/options.js +6 -2
  284. package/dist/icons/basic/paint_brush.js +6 -2
  285. package/dist/icons/basic/paperclip.js +6 -2
  286. package/dist/icons/basic/paperclip_slash.js +6 -2
  287. package/dist/icons/basic/pencil.js +6 -2
  288. package/dist/icons/basic/pencil_pad.js +6 -2
  289. package/dist/icons/basic/plus.js +6 -2
  290. package/dist/icons/basic/plus_circle.js +6 -2
  291. package/dist/icons/basic/presentation.js +6 -2
  292. package/dist/icons/basic/printer.js +6 -2
  293. package/dist/icons/basic/profile.js +6 -2
  294. package/dist/icons/basic/profile_check.js +6 -2
  295. package/dist/icons/basic/pulse.js +6 -2
  296. package/dist/icons/basic/qr_code.js +6 -2
  297. package/dist/icons/basic/resize.js +8 -4
  298. package/dist/icons/basic/scan.js +6 -2
  299. package/dist/icons/basic/scissors.js +6 -2
  300. package/dist/icons/basic/screenshot.js +6 -2
  301. package/dist/icons/basic/search.js +6 -2
  302. package/dist/icons/basic/select_item.js +7 -3
  303. package/dist/icons/basic/settings.js +6 -2
  304. package/dist/icons/basic/share.js +6 -2
  305. package/dist/icons/basic/share_external.js +6 -2
  306. package/dist/icons/basic/square.js +6 -2
  307. package/dist/icons/basic/star.js +6 -2
  308. package/dist/icons/basic/star_circle.js +6 -2
  309. package/dist/icons/basic/star_filled.js +6 -2
  310. package/dist/icons/basic/star_filled_half.js +6 -2
  311. package/dist/icons/basic/star_slash.js +6 -2
  312. package/dist/icons/basic/sticker.js +6 -2
  313. package/dist/icons/basic/strikethrough.js +6 -2
  314. package/dist/icons/basic/subtask.js +7 -3
  315. package/dist/icons/basic/tax.js +9 -5
  316. package/dist/icons/basic/text_bg_color.js +6 -2
  317. package/dist/icons/basic/text_color.js +6 -2
  318. package/dist/icons/basic/textbox.js +6 -2
  319. package/dist/icons/basic/thumbs_down.js +6 -2
  320. package/dist/icons/basic/thumbs_up.js +6 -2
  321. package/dist/icons/basic/thumbs_up_filled.js +6 -2
  322. package/dist/icons/basic/toggle_left.js +6 -2
  323. package/dist/icons/basic/toggle_right.js +6 -2
  324. package/dist/icons/basic/translate.js +6 -2
  325. package/dist/icons/basic/trash.js +6 -2
  326. package/dist/icons/basic/trash_slash.js +6 -2
  327. package/dist/icons/basic/underline.js +6 -2
  328. package/dist/icons/basic/upload.js +6 -2
  329. package/dist/icons/basic/video.js +6 -2
  330. package/dist/icons/basic/video_add.js +7 -3
  331. package/dist/icons/basic/video_slash.js +6 -2
  332. package/dist/icons/basic/wrench.js +6 -2
  333. package/dist/icons/basic/zoom_in.js +6 -2
  334. package/dist/icons/basic/zoom_out.js +6 -2
  335. package/dist/icons/data/bar_chart.js +6 -2
  336. package/dist/icons/data/bar_chart_downward.js +6 -2
  337. package/dist/icons/data/bar_chart_downward_outline.js +6 -2
  338. package/dist/icons/data/bar_chart_upward.js +6 -2
  339. package/dist/icons/data/bar_chart_upward_outline.js +6 -2
  340. package/dist/icons/data/candlestick_chart.js +6 -2
  341. package/dist/icons/data/four_circles.js +6 -2
  342. package/dist/icons/data/legend_toggle.js +6 -2
  343. package/dist/icons/data/line_chart.js +6 -2
  344. package/dist/icons/data/line_chart_area.js +6 -2
  345. package/dist/icons/data/line_chart_area_shaded.js +6 -2
  346. package/dist/icons/data/line_chart_double.js +6 -2
  347. package/dist/icons/data/line_chart_downward.js +6 -2
  348. package/dist/icons/data/line_chart_node.js +6 -2
  349. package/dist/icons/data/line_chart_outline.js +6 -2
  350. package/dist/icons/data/line_chart_search.js +6 -2
  351. package/dist/icons/data/line_chart_stars.js +6 -2
  352. package/dist/icons/data/line_chart_upward.js +6 -2
  353. package/dist/icons/data/pie_chart.js +7 -3
  354. package/dist/icons/data/tree.js +6 -2
  355. package/dist/icons/email/mail.js +6 -2
  356. package/dist/icons/email/mail_check.js +6 -2
  357. package/dist/icons/email/mail_minus.js +6 -2
  358. package/dist/icons/email/mail_send.js +6 -2
  359. package/dist/icons/email/send.js +6 -2
  360. package/dist/icons/email/send_close.js +6 -2
  361. package/dist/icons/email/send_schedule.js +6 -2
  362. package/dist/icons/email/send_text.js +6 -2
  363. package/dist/icons/emoji/emoji_add.js +6 -2
  364. package/dist/icons/emoji/laughing.js +6 -2
  365. package/dist/icons/emoji/neutral.js +6 -2
  366. package/dist/icons/emoji/sad.js +6 -2
  367. package/dist/icons/emoji/shocked.js +6 -2
  368. package/dist/icons/emoji/smile.js +6 -2
  369. package/dist/icons/file/clipboard.js +6 -2
  370. package/dist/icons/file/clipboard_check.js +6 -2
  371. package/dist/icons/file/clipboard_close.js +6 -2
  372. package/dist/icons/file/clipboard_minus.js +6 -2
  373. package/dist/icons/file/clipboard_plus.js +6 -2
  374. package/dist/icons/file/clipboard_text.js +6 -2
  375. package/dist/icons/file/file.js +6 -2
  376. package/dist/icons/file/file_add.js +6 -2
  377. package/dist/icons/file/file_check.js +6 -2
  378. package/dist/icons/file/file_close.js +6 -2
  379. package/dist/icons/file/file_code.js +6 -2
  380. package/dist/icons/file/file_download.js +6 -2
  381. package/dist/icons/file/file_draft.js +6 -2
  382. package/dist/icons/file/file_gear.js +7 -3
  383. package/dist/icons/file/file_minus.js +6 -2
  384. package/dist/icons/file/file_plus.js +6 -2
  385. package/dist/icons/file/file_scan.js +6 -2
  386. package/dist/icons/file/file_shred.js +6 -2
  387. package/dist/icons/file/file_text.js +6 -2
  388. package/dist/icons/file/file_upload.js +6 -2
  389. package/dist/icons/file/folder.js +6 -2
  390. package/dist/icons/file/folder_add.js +6 -2
  391. package/dist/icons/file/folder_arrow.js +6 -2
  392. package/dist/icons/file/folder_check.js +6 -2
  393. package/dist/icons/file/folder_close.js +6 -2
  394. package/dist/icons/file/folder_cloud.js +6 -2
  395. package/dist/icons/file/folder_gear.js +7 -3
  396. package/dist/icons/file/folder_minus.js +6 -2
  397. package/dist/icons/file/folder_music.js +6 -2
  398. package/dist/icons/file/folder_open.js +6 -2
  399. package/dist/icons/file/folder_plus.js +6 -2
  400. package/dist/icons/file/folder_zip.js +6 -2
  401. package/dist/icons/file/note.js +6 -2
  402. package/dist/icons/file/note_text.js +6 -2
  403. package/dist/icons/file/pdf.js +6 -2
  404. package/dist/icons/file/photo.js +6 -2
  405. package/dist/icons/finance/bitcoin.js +6 -2
  406. package/dist/icons/finance/coins.js +10 -6
  407. package/dist/icons/finance/credit_card.js +6 -2
  408. package/dist/icons/finance/credit_card_add.js +6 -2
  409. package/dist/icons/finance/credit_card_face.js +6 -2
  410. package/dist/icons/finance/credit_card_member.js +6 -2
  411. package/dist/icons/finance/credit_card_outcome.js +6 -2
  412. package/dist/icons/finance/credit_card_scan.js +6 -2
  413. package/dist/icons/finance/credit_card_share.js +6 -2
  414. package/dist/icons/finance/credit_card_slash.js +6 -2
  415. package/dist/icons/finance/currency_exchange.js +6 -2
  416. package/dist/icons/finance/dollar.js +6 -2
  417. package/dist/icons/finance/ethereum.js +6 -2
  418. package/dist/icons/finance/paypass.js +6 -2
  419. package/dist/icons/finance/strongbox.js +6 -2
  420. package/dist/icons/finance/wallet.js +6 -2
  421. package/dist/icons/layout/block_align_bottom.js +6 -2
  422. package/dist/icons/layout/block_align_center.js +6 -2
  423. package/dist/icons/layout/block_align_left.js +6 -2
  424. package/dist/icons/layout/block_align_middle.js +6 -2
  425. package/dist/icons/layout/block_align_right.js +6 -2
  426. package/dist/icons/layout/block_align_top.js +6 -2
  427. package/dist/icons/layout/block_horizontal.js +6 -2
  428. package/dist/icons/layout/block_vertical.js +6 -2
  429. package/dist/icons/layout/edit_shape.js +6 -2
  430. package/dist/icons/layout/elements.js +6 -2
  431. package/dist/icons/layout/elements_add.js +6 -2
  432. package/dist/icons/layout/elements_filled.js +6 -2
  433. package/dist/icons/layout/elements_masonry.js +6 -2
  434. package/dist/icons/layout/frame.js +6 -2
  435. package/dist/icons/layout/frame_stack.js +6 -2
  436. package/dist/icons/layout/grid.js +6 -2
  437. package/dist/icons/layout/grid_column_three.js +6 -2
  438. package/dist/icons/layout/grid_column_two.js +6 -2
  439. package/dist/icons/layout/grid_dynamic.js +6 -2
  440. package/dist/icons/layout/grid_frame.js +6 -2
  441. package/dist/icons/layout/grid_row_three.js +6 -2
  442. package/dist/icons/layout/grid_row_two.js +6 -2
  443. package/dist/icons/layout/grid_six.js +6 -2
  444. package/dist/icons/layout/grid_small.js +6 -2
  445. package/dist/icons/layout/iframe.js +6 -2
  446. package/dist/icons/layout/kanban.js +6 -2
  447. package/dist/icons/layout/layout.js +6 -2
  448. package/dist/icons/layout/list.js +6 -2
  449. package/dist/icons/layout/list_filled.js +11 -7
  450. package/dist/icons/layout/padding.js +6 -2
  451. package/dist/icons/layout/page_break.js +6 -2
  452. package/dist/icons/layout/rotate_left.js +6 -2
  453. package/dist/icons/layout/rotate_right.js +6 -2
  454. package/dist/icons/layout/ruler.js +6 -2
  455. package/dist/icons/layout/segment.js +6 -2
  456. package/dist/icons/layout/select_area.js +6 -2
  457. package/dist/icons/layout/select_boundary.js +6 -2
  458. package/dist/icons/layout/sidebar_left.js +6 -2
  459. package/dist/icons/layout/sidebar_right.js +6 -2
  460. package/dist/icons/layout/slides.js +6 -2
  461. package/dist/icons/layout/slides_horizontal.js +6 -2
  462. package/dist/icons/layout/slides_vertical.js +11 -7
  463. package/dist/icons/layout/stack.js +6 -2
  464. package/dist/icons/layout/text.js +6 -2
  465. package/dist/icons/maps/atlas.js +6 -2
  466. package/dist/icons/maps/compass.js +6 -2
  467. package/dist/icons/maps/direction.js +6 -2
  468. package/dist/icons/maps/direction_angled.js +6 -2
  469. package/dist/icons/maps/globe.js +6 -2
  470. package/dist/icons/maps/globe_slash.js +6 -2
  471. package/dist/icons/maps/location.js +6 -2
  472. package/dist/icons/maps/location_slash.js +6 -2
  473. package/dist/icons/maps/map.js +6 -2
  474. package/dist/icons/maps/marker.js +6 -2
  475. package/dist/icons/maps/panorama.js +6 -2
  476. package/dist/icons/maps/pin.js +6 -2
  477. package/dist/icons/maps/pin_arrow.js +6 -2
  478. package/dist/icons/maps/pin_location.js +6 -2
  479. package/dist/icons/maps/pin_plus.js +6 -2
  480. package/dist/icons/maps/pin_question.js +6 -2
  481. package/dist/icons/maps/pin_slash.js +6 -2
  482. package/dist/icons/maps/push_pin.js +6 -2
  483. package/dist/icons/maps/push_pin_filled.js +6 -2
  484. package/dist/icons/maps/push_pin_slash.js +6 -2
  485. package/dist/icons/maps/radar.js +6 -2
  486. package/dist/icons/maps/route.js +6 -2
  487. package/dist/icons/message/bubble.js +6 -2
  488. package/dist/icons/message/bubble_question.js +6 -2
  489. package/dist/icons/message/comment.js +6 -2
  490. package/dist/icons/message/comment_add.js +6 -2
  491. package/dist/icons/message/comment_check.js +6 -2
  492. package/dist/icons/message/comment_close.js +6 -2
  493. package/dist/icons/message/comment_minus.js +6 -2
  494. package/dist/icons/message/comment_text.js +6 -2
  495. package/dist/icons/misc/advertisement.js +6 -2
  496. package/dist/icons/misc/atom.js +6 -2
  497. package/dist/icons/misc/bone.js +6 -2
  498. package/dist/icons/misc/brightness_high.js +6 -2
  499. package/dist/icons/misc/brightness_low.js +6 -2
  500. package/dist/icons/misc/contrast.js +6 -2
  501. package/dist/icons/misc/crosshairs.js +6 -2
  502. package/dist/icons/misc/crown.js +6 -2
  503. package/dist/icons/misc/footprint.js +6 -2
  504. package/dist/icons/misc/form.js +6 -2
  505. package/dist/icons/misc/funnel.js +6 -2
  506. package/dist/icons/misc/infinite.js +6 -2
  507. package/dist/icons/misc/insert_button.js +6 -2
  508. package/dist/icons/misc/light_bulb.js +6 -2
  509. package/dist/icons/misc/moon.js +6 -2
  510. package/dist/icons/misc/nut.js +6 -2
  511. package/dist/icons/misc/planet.js +6 -2
  512. package/dist/icons/misc/plus_thick.js +6 -2
  513. package/dist/icons/misc/pocket.js +6 -2
  514. package/dist/icons/misc/rocket.js +6 -2
  515. package/dist/icons/misc/soup.js +10 -6
  516. package/dist/icons/misc/sun.js +6 -2
  517. package/dist/icons/misc/toy_horse.js +6 -2
  518. package/dist/icons/misc/trophy.js +6 -2
  519. package/dist/icons/misc/watercloset.js +6 -2
  520. package/dist/icons/notifications/alert_circle.js +6 -2
  521. package/dist/icons/notifications/alert_octogon.js +6 -2
  522. package/dist/icons/notifications/alert_triangle.js +6 -2
  523. package/dist/icons/notifications/app_notification.js +6 -2
  524. package/dist/icons/notifications/bell.js +6 -2
  525. package/dist/icons/notifications/bell_alert.js +6 -2
  526. package/dist/icons/notifications/bell_checkmark.js +6 -2
  527. package/dist/icons/notifications/bell_minus.js +6 -2
  528. package/dist/icons/notifications/bell_plus.js +6 -2
  529. package/dist/icons/notifications/bell_ring.js +8 -4
  530. package/dist/icons/notifications/bell_slash.js +6 -2
  531. package/dist/icons/notifications/information.js +6 -2
  532. package/dist/icons/notifications/minus_octogon.js +6 -2
  533. package/dist/icons/notifications/question_circle.js +6 -2
  534. package/dist/icons/people/group.js +6 -2
  535. package/dist/icons/people/group_add.js +6 -2
  536. package/dist/icons/people/group_chat.js +8 -4
  537. package/dist/icons/people/group_remove.js +6 -2
  538. package/dist/icons/people/group_send.js +7 -3
  539. package/dist/icons/people/groups.js +6 -2
  540. package/dist/icons/people/person.js +6 -2
  541. package/dist/icons/people/person_add.js +6 -2
  542. package/dist/icons/people/person_checkmark.js +6 -2
  543. package/dist/icons/people/person_circle.js +8 -4
  544. package/dist/icons/people/person_close.js +8 -4
  545. package/dist/icons/people/person_remove.js +6 -2
  546. package/dist/icons/people/person_slash.js +8 -4
  547. package/dist/icons/phone/keypad.js +6 -2
  548. package/dist/icons/phone/phone.js +6 -2
  549. package/dist/icons/phone/phone_add.js +6 -2
  550. package/dist/icons/phone/phone_calling.js +6 -2
  551. package/dist/icons/phone/phone_check.js +6 -2
  552. package/dist/icons/phone/phone_close.js +6 -2
  553. package/dist/icons/phone/phone_decline.js +6 -2
  554. package/dist/icons/phone/phone_forwarded.js +6 -2
  555. package/dist/icons/phone/phone_hash.js +6 -2
  556. package/dist/icons/phone/phone_incoming.js +6 -2
  557. package/dist/icons/phone/phone_outgoing.js +6 -2
  558. package/dist/icons/phone/phone_pause.js +6 -2
  559. package/dist/icons/phone/phone_slash.js +6 -2
  560. package/dist/icons/phone/voicemail.js +6 -2
  561. package/dist/icons/security/key.js +6 -2
  562. package/dist/icons/security/key_slash.js +6 -2
  563. package/dist/icons/security/lock.js +6 -2
  564. package/dist/icons/security/lock_circle.js +6 -2
  565. package/dist/icons/security/lock_open.js +6 -2
  566. package/dist/icons/security/lock_slash.js +6 -2
  567. package/dist/icons/security/shield.js +6 -2
  568. package/dist/icons/security/shield_checkmark.js +6 -2
  569. package/dist/icons/security/shield_lock.js +6 -2
  570. package/dist/icons/security/shield_slash.js +6 -2
  571. package/dist/icons/security/verified.js +6 -2
  572. package/dist/icons/shopping/basket.js +6 -2
  573. package/dist/icons/shopping/cart.js +6 -2
  574. package/dist/icons/shopping/cart_filled.js +6 -2
  575. package/dist/icons/shopping/coupon.js +6 -2
  576. package/dist/icons/shopping/coupon_cut.js +6 -2
  577. package/dist/icons/shopping/delivery.js +6 -2
  578. package/dist/icons/shopping/discount.js +6 -2
  579. package/dist/icons/shopping/gift.js +6 -2
  580. package/dist/icons/shopping/gift_bag.js +6 -2
  581. package/dist/icons/shopping/inventory.js +6 -2
  582. package/dist/icons/shopping/point_of_sale.js +6 -2
  583. package/dist/icons/shopping/shirt.js +6 -2
  584. package/dist/icons/shopping/tag.js +6 -2
  585. package/dist/icons/shopping/tag_diagonal.js +6 -2
  586. package/dist/icons/shopping/tote.js +6 -2
  587. package/dist/icons/special/upload_audio.js +11 -7
  588. package/dist/icons/special/upload_file.js +6 -2
  589. package/dist/icons/special/upload_image.js +8 -4
  590. package/dist/icons/special/upload_video.js +9 -5
  591. package/dist/icons/symbols/at.js +6 -2
  592. package/dist/icons/symbols/cc.js +6 -2
  593. package/dist/icons/symbols/cmd.js +6 -2
  594. package/dist/icons/symbols/facebook.js +6 -2
  595. package/dist/icons/symbols/google.js +9 -5
  596. package/dist/icons/symbols/hash.js +6 -2
  597. package/dist/icons/symbols/instagram.js +18 -14
  598. package/dist/icons/symbols/messenger.js +12 -8
  599. package/dist/icons/symbols/twitter.js +6 -2
  600. package/dist/icons/technology/battery.js +6 -2
  601. package/dist/icons/technology/battery_100.js +6 -2
  602. package/dist/icons/technology/battery_20.js +6 -2
  603. package/dist/icons/technology/battery_40.js +6 -2
  604. package/dist/icons/technology/battery_60.js +6 -2
  605. package/dist/icons/technology/battery_80.js +6 -2
  606. package/dist/icons/technology/battery_charging.js +6 -2
  607. package/dist/icons/technology/battery_slash.js +6 -2
  608. package/dist/icons/technology/devices.js +6 -2
  609. package/dist/icons/technology/floppy_disk.js +6 -2
  610. package/dist/icons/technology/iphone.js +6 -2
  611. package/dist/icons/technology/laptop.js +6 -2
  612. package/dist/icons/technology/mobile.js +6 -2
  613. package/dist/icons/technology/monitor.js +6 -2
  614. package/dist/icons/technology/server.js +6 -2
  615. package/dist/icons/technology/sim_card.js +6 -2
  616. package/dist/icons/technology/usb_stick.js +6 -2
  617. package/dist/icons/text/align_center.js +6 -2
  618. package/dist/icons/text/align_justified.js +6 -2
  619. package/dist/icons/text/align_left.js +6 -2
  620. package/dist/icons/text/align_right.js +6 -2
  621. package/dist/icons/text/code_block.js +6 -2
  622. package/dist/icons/text/divider.js +6 -2
  623. package/dist/icons/text/footnote.js +8 -4
  624. package/dist/icons/text/indent_decrease.js +6 -2
  625. package/dist/icons/text/indent_increase.js +6 -2
  626. package/dist/icons/text/list_ordered.js +6 -2
  627. package/dist/icons/text/list_unordered.js +6 -2
  628. package/dist/icons/text/quote.js +6 -2
  629. package/dist/icons/text/table.js +6 -2
  630. package/dist/icons/time/alarm.js +6 -2
  631. package/dist/icons/time/alarm_checkmark.js +6 -2
  632. package/dist/icons/time/alarm_minus.js +6 -2
  633. package/dist/icons/time/alarm_plus.js +6 -2
  634. package/dist/icons/time/alarm_slash.js +6 -2
  635. package/dist/icons/time/alarm_snooze.js +6 -2
  636. package/dist/icons/time/calendar.js +6 -2
  637. package/dist/icons/time/calendar_add.js +6 -2
  638. package/dist/icons/time/calendar_checkmark.js +6 -2
  639. package/dist/icons/time/calendar_close.js +6 -2
  640. package/dist/icons/time/calendar_dates.js +6 -2
  641. package/dist/icons/time/calendar_minus.js +6 -2
  642. package/dist/icons/time/calendar_plus.js +6 -2
  643. package/dist/icons/time/calendar_scroll.js +8 -4
  644. package/dist/icons/time/clock.js +6 -2
  645. package/dist/icons/time/clock_history.js +6 -2
  646. package/dist/icons/time/stopwatch.js +6 -2
  647. package/dist/icons/time/timer.js +6 -2
  648. package/dist/icons/time/watch.js +6 -2
  649. package/package.json +1 -1
@@ -13,10 +13,15 @@ var search = require('../../../icons/basic/search.js');
13
13
  var plus = require('../../../icons/basic/plus.js');
14
14
  var close = require('../../../icons/basic/close.js');
15
15
 
16
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
+
18
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
+ var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
20
+
16
21
  const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, courses, label, courseIsSelected, setCourseIsSelected, subtitle, onlyOneCanBeSelected = false, ...rest }) => {
17
- const wrapperRef = React.useRef(null);
18
- const [open, setOpen] = React.useState(false);
19
- React.useEffect(() => {
22
+ const wrapperRef = React__default.default.useRef(null);
23
+ const [open, setOpen] = React__default.default.useState(false);
24
+ React__default.default.useEffect(() => {
20
25
  if (disabled) {
21
26
  setOpen(false);
22
27
  }
@@ -35,14 +40,14 @@ const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled =
35
40
  }
36
41
  };
37
42
  const selectedCourses = courses.filter((course) => courseIsSelected[course.id]);
38
- return (React.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
39
- React.createElement(box.Box, { "$gap": 16, "$align": "center" },
40
- React.createElement(IconWrapper, { "$color": "var(--color-hue-purple-2)" },
41
- React.createElement(graduation_cap.GraduationCap, { color: "hue-purple-1", size: 24 })),
42
- React.createElement(heading.H.Six, { "$bold": true, "$color": "hue-purple-1" }, "Course")),
43
- React.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 14, sx: "margin-top: 32px;" }, subtitle),
44
- React.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen, customDropdownIcon: search.Search, sx: "margin-top: 32px;" }, label),
45
- open && (React.createElement(Container, { "$offset": offset, "$sx": containerSx }, courses.map((course) => (React.createElement(OptionWrapper, { key: course.id, "$disabled": disabled, onClick: () => {
43
+ return (React__default.default.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
44
+ React__default.default.createElement(box.Box, { "$gap": 16, "$align": "center" },
45
+ React__default.default.createElement(IconWrapper, { "$color": "var(--color-hue-purple-2)" },
46
+ React__default.default.createElement(graduation_cap.GraduationCap, { color: "hue-purple-1", size: 24 })),
47
+ React__default.default.createElement(heading.H.Six, { "$bold": true, "$color": "hue-purple-1" }, "Course")),
48
+ React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 14, sx: "margin-top: 32px;" }, subtitle),
49
+ React__default.default.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen, customDropdownIcon: search.Search, sx: "margin-top: 32px;" }, label),
50
+ open && (React__default.default.createElement(Container, { "$offset": offset, "$sx": containerSx }, courses.map((course) => (React__default.default.createElement(OptionWrapper, { key: course.id, "$disabled": disabled, onClick: () => {
46
51
  setCourseIsSelected(onlyOneCanBeSelected
47
52
  ? {
48
53
  [course.id]: true,
@@ -55,22 +60,22 @@ const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled =
55
60
  setOpen(false);
56
61
  }
57
62
  } },
58
- React.createElement(box.Box, { "$display": "flex", "$align": "center" },
59
- React.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, course.name),
60
- React.createElement(plus.Plus, { sx: "margin-left: auto;" }))))))),
61
- !!selectedCourses.length && (React.createElement("ul", { style: { padding: 0 } }, selectedCourses.map((course) => {
62
- return (React.createElement("li", { key: course.id, style: {
63
+ React__default.default.createElement(box.Box, { "$display": "flex", "$align": "center" },
64
+ React__default.default.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, course.name),
65
+ React__default.default.createElement(plus.Plus, { sx: "margin-left: auto;" }))))))),
66
+ !!selectedCourses.length && (React__default.default.createElement("ul", { style: { padding: 0 } }, selectedCourses.map((course) => {
67
+ return (React__default.default.createElement("li", { key: course.id, style: {
63
68
  listStyleType: 'none',
64
69
  display: 'flex',
65
70
  alignItems: 'center',
66
71
  marginTop: '16px',
67
72
  } },
68
- React.createElement(Image, { alt: "", height: 64, width: 114, src: course.imageSrc, quality: 100, style: {
73
+ React__default.default.createElement(Image__default.default, { alt: "", height: 64, width: 114, src: course.imageSrc, quality: 100, style: {
69
74
  borderRadius: '8px',
70
75
  marginRight: '16px',
71
76
  } }),
72
- React.createElement(paragraph.P, { sx: "margin-left: 16px;" }, course.name),
73
- React.createElement(close.Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
77
+ React__default.default.createElement(paragraph.P, { sx: "margin-left: 16px;" }, course.name),
78
+ React__default.default.createElement(close.Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
74
79
  ...courseIsSelected,
75
80
  [course.id]: false,
76
81
  }) })));
@@ -10,11 +10,16 @@ var search = require('../../input/search/search.js');
10
10
  var checkbox = require('../../input/checkbox/checkbox.js');
11
11
  var box = require('../../atoms/box/box.js');
12
12
 
13
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
14
+
15
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
+ var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
17
+
13
18
  const UsersSelection = ({ closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, searchSx, users, label, title, userIsChecked, setUserIsChecked, icon, ...rest }) => {
14
- const wrapperRef = React.useRef(null);
15
- const [open, setOpen] = React.useState(false);
16
- const [searchValue, setSearchValue] = React.useState('');
17
- React.useEffect(() => {
19
+ const wrapperRef = React__default.default.useRef(null);
20
+ const [open, setOpen] = React__default.default.useState(false);
21
+ const [searchValue, setSearchValue] = React__default.default.useState('');
22
+ React__default.default.useEffect(() => {
18
23
  if (disabled) {
19
24
  setOpen(false);
20
25
  }
@@ -33,29 +38,29 @@ const UsersSelection = ({ closeOnBlur = true, disabled = false, offset = [0, 0],
33
38
  }
34
39
  };
35
40
  const Icon = icon;
36
- return (React.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
37
- React.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen },
38
- React.createElement(Icon, { size: 16, sx: "margin-right: 16px;" }),
41
+ return (React__default.default.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
42
+ React__default.default.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen },
43
+ React__default.default.createElement(Icon, { size: 16, sx: "margin-right: 16px;" }),
39
44
  label),
40
- open && (React.createElement(Container, { "$offset": offset, "$sx": containerSx },
41
- React.createElement(paragraph.P, null, title),
42
- React.createElement(search.Search, { onChange: (event) => setSearchValue(event.target.value), onClearText: () => setSearchValue(''), value: searchValue, size: "large", placeholder: "Search...", sx: `margin-top: 8px; margin-bottom: 8px; border-radius: 76px; ${searchSx}` }),
45
+ open && (React__default.default.createElement(Container, { "$offset": offset, "$sx": containerSx },
46
+ React__default.default.createElement(paragraph.P, null, title),
47
+ React__default.default.createElement(search.Search, { onChange: (event) => setSearchValue(event.target.value), onClearText: () => setSearchValue(''), value: searchValue, size: "large", placeholder: "Search...", sx: `margin-top: 8px; margin-bottom: 8px; border-radius: 76px; ${searchSx}` }),
43
48
  users
44
49
  .filter((user) => searchValue
45
50
  ? user.fullName
46
51
  .toLowerCase()
47
52
  .includes(searchValue.toLowerCase())
48
53
  : true)
49
- .map((user) => (React.createElement(React.Fragment, { key: user.id },
50
- React.createElement(OptionWrapper, { "$disabled": disabled, onClick: () => setUserIsChecked({
54
+ .map((user) => (React__default.default.createElement(React__default.default.Fragment, { key: user.id },
55
+ React__default.default.createElement(OptionWrapper, { "$disabled": disabled, onClick: () => setUserIsChecked({
51
56
  ...userIsChecked,
52
57
  [user.id]: !userIsChecked[user.id],
53
58
  }) },
54
- React.createElement(box.Box, { "$display": "flex", "$align": "center" },
55
- React.createElement(StyledImage, { alt: "", height: 40, src: user.imageSrc, width: 40 }),
56
- React.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, user.fullName),
57
- React.createElement(checkbox.Checkbox, { selected: userIsChecked[user.id], sx: "margin-left: auto;" }))),
58
- React.createElement(Spacer, null))))))));
59
+ React__default.default.createElement(box.Box, { "$display": "flex", "$align": "center" },
60
+ React__default.default.createElement(StyledImage, { alt: "", height: 40, src: user.imageSrc, width: 40 }),
61
+ React__default.default.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, user.fullName),
62
+ React__default.default.createElement(checkbox.Checkbox, { selected: userIsChecked[user.id], sx: "margin-left: auto;" }))),
63
+ React__default.default.createElement(Spacer, null))))))));
59
64
  };
60
65
  const Wrapper = styled.styled.div `
61
66
  position: relative;
@@ -110,7 +115,7 @@ const OptionWrapper = styled.styled.div `
110
115
  `;
111
116
  }}
112
117
  `;
113
- const StyledImage = styled.styled(Image) `
118
+ const StyledImage = styled.styled(Image__default.default) `
114
119
  border-radius: 50%;
115
120
  width: 40px;
116
121
  height: 40px;
@@ -2,12 +2,16 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const EditorContext = React.createContext({
6
- commentInputLoader: () => React.createElement(React.Fragment, null),
7
- commentLoader: () => React.createElement(React.Fragment, null),
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
+
9
+ const EditorContext = React__default.default.createContext({
10
+ commentInputLoader: () => React__default.default.createElement(React__default.default.Fragment, null),
11
+ commentLoader: () => React__default.default.createElement(React__default.default.Fragment, null),
8
12
  handleVideoClick: () => undefined,
9
13
  imageSrcLoader: async () => '',
10
- videoTitleLoader: () => React.createElement(React.Fragment, null),
14
+ videoTitleLoader: () => React__default.default.createElement(React__default.default.Fragment, null),
11
15
  });
12
16
 
13
17
  exports.EditorContext = EditorContext;
@@ -13,21 +13,25 @@ var leafs = require('./plugins/leafs/leafs.js');
13
13
  var marks = require('./plugins/marks/marks.js');
14
14
  var utils = require('./plugins/utils/utils.js');
15
15
 
16
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
+
18
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
+
16
20
  const plugins = plate.createPlugins([...blocks.blocks, ...leafs.leafs, ...marks.marks, ...utils.utils], {
17
21
  components: plate$1.plateUI,
18
22
  });
19
23
  const Editor = ({ commentInputLoader, commentLoader, editable, handleVideoClick, imageSrcLoader, onChange, previousContent, videoTitleLoader, }) => {
20
- return (React.createElement(context.EditorContext.Provider, { value: {
24
+ return (React__default.default.createElement(context.EditorContext.Provider, { value: {
21
25
  commentInputLoader,
22
26
  commentLoader,
23
27
  handleVideoClick,
24
28
  imageSrcLoader,
25
29
  videoTitleLoader,
26
30
  } },
27
- React.createElement(plate.Plate, { id: "main", initialValue: previousContent, onChange: onChange, plugins: plugins },
28
- React.createElement(Wrapper, null,
29
- editable && React.createElement(navbar.EditorBar, null),
30
- React.createElement(plate.PlateContent, { id: "main", autoFocus: true, placeholder: constants.PLACEHOLDER, readOnly: !editable, spellCheck: true, onContextMenu: (e) => e.preventDefault(), onCopy: () => {
31
+ React__default.default.createElement(plate.Plate, { id: "main", initialValue: previousContent, onChange: onChange, plugins: plugins },
32
+ React__default.default.createElement(Wrapper, null,
33
+ editable && React__default.default.createElement(navbar.EditorBar, null),
34
+ React__default.default.createElement(plate.PlateContent, { id: "main", autoFocus: true, placeholder: constants.PLACEHOLDER, readOnly: !editable, spellCheck: true, onContextMenu: (e) => e.preventDefault(), onCopy: () => {
31
35
  if ('clipboard' in navigator) {
32
36
  return navigator.clipboard.writeText('');
33
37
  }
@@ -2,7 +2,11 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const BorderAll = (props) => (React.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
6
- React.createElement("path", { d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z" })));
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
+
9
+ const BorderAll = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
10
+ React__default.default.createElement("path", { d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z" })));
7
11
 
8
12
  exports.BorderAll = BorderAll;
@@ -2,7 +2,11 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const BorderBottom = (props) => (React.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
6
- React.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z" })));
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
+
9
+ const BorderBottom = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
10
+ React__default.default.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z" })));
7
11
 
8
12
  exports.BorderBottom = BorderBottom;
@@ -2,7 +2,11 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const BorderLeft = (props) => (React.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
6
- React.createElement("path", { d: "M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })));
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
+
9
+ const BorderLeft = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
10
+ React__default.default.createElement("path", { d: "M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })));
7
11
 
8
12
  exports.BorderLeft = BorderLeft;
@@ -2,7 +2,11 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const BorderNone = (props) => (React.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
6
- React.createElement("path", { d: "M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z" })));
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
+
9
+ const BorderNone = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
10
+ React__default.default.createElement("path", { d: "M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z" })));
7
11
 
8
12
  exports.BorderNone = BorderNone;
@@ -2,7 +2,11 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const BorderRight = (props) => (React.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
6
- React.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z" })));
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
+
9
+ const BorderRight = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
10
+ React__default.default.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z" })));
7
11
 
8
12
  exports.BorderRight = BorderRight;
@@ -2,7 +2,11 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const BorderTop = (props) => (React.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
6
- React.createElement("path", { d: "M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })));
5
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
+
9
+ const BorderTop = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
10
+ React__default.default.createElement("path", { d: "M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })));
7
11
 
8
12
  exports.BorderTop = BorderTop;
@@ -11,6 +11,10 @@ var align_right = require('../../../icons/text/align_right.js');
11
11
  var player_list_play = require('../../../icons/audio_video/player_list_play.js');
12
12
  var menu_button = require('../styles/menu_button.js');
13
13
 
14
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
15
+
16
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
+
14
18
  const items = [
15
19
  {
16
20
  value: 'left',
@@ -43,32 +47,32 @@ const AlignmentDropdown = ({ editorRef }) => {
43
47
  value: value,
44
48
  });
45
49
  };
46
- return (React.createElement(dropdown.Dropdown, { onChange: handleAlign, offset: [0, 0], options: [
50
+ return (React__default.default.createElement(dropdown.Dropdown, { onChange: handleAlign, offset: [0, 0], options: [
47
51
  {
48
- icon: (React.createElement(menu_button.MenuButton, { "$active": current === 'left' },
49
- React.createElement(align_left.AlignLeft, { size: 24, color: "grey-5" }))),
52
+ icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'left' },
53
+ React__default.default.createElement(align_left.AlignLeft, { size: 24, color: "grey-5" }))),
50
54
  sx: 'gap: 0px; padding: 4px;',
51
55
  value: 'left',
52
56
  },
53
57
  {
54
- icon: (React.createElement(menu_button.MenuButton, { "$active": current === 'center' },
55
- React.createElement(align_center.AlignCenter, { size: 24, color: "grey-5" }))),
58
+ icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'center' },
59
+ React__default.default.createElement(align_center.AlignCenter, { size: 24, color: "grey-5" }))),
56
60
  sx: 'gap: 0px; padding: 4px;',
57
61
  value: 'center',
58
62
  },
59
63
  {
60
- icon: (React.createElement(menu_button.MenuButton, { "$active": current === 'right' },
61
- React.createElement(align_right.AlignRight, { size: 24, color: "grey-5" }))),
64
+ icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'right' },
65
+ React__default.default.createElement(align_right.AlignRight, { size: 24, color: "grey-5" }))),
62
66
  sx: 'gap: 0px; padding: 4px;',
63
67
  value: 'right',
64
68
  },
65
69
  {
66
- icon: (React.createElement(menu_button.MenuButton, { "$active": current === 'justify' },
67
- React.createElement(align_justified.AlignJustified, { size: 24, color: "grey-5" }))),
70
+ icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'justify' },
71
+ React__default.default.createElement(align_justified.AlignJustified, { size: 24, color: "grey-5" }))),
68
72
  sx: 'gap: 0px; padding: 4px;',
69
73
  value: 'justify',
70
74
  },
71
- ], maintainState: false, trigger: React.createElement(IconValue, { size: 24, color: "grey-5" }) }));
75
+ ], maintainState: false, trigger: React__default.default.createElement(IconValue, { size: 24, color: "grey-5" }) }));
72
76
  };
73
77
  // <AlignToolbarButton
74
78
  // as="div"
@@ -13,34 +13,38 @@ var insert_button = require('../../../icons/misc/insert_button.js');
13
13
  var menu_button = require('../styles/menu_button.js');
14
14
  var constants = require('../constants.js');
15
15
 
16
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
+
18
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
+
16
20
  const ButtonModal = ({ onButtonInsert }) => {
17
- const [buttonType, setButtonType] = React.useState();
21
+ const [buttonType, setButtonType] = React__default.default.useState();
18
22
  const handleButtonInsert = () => {
19
23
  buttonType && onButtonInsert(buttonType);
20
24
  setButtonType(undefined);
21
25
  };
22
- return (React.createElement(modal.Modal, null,
23
- React.createElement(modal.Modal.Trigger, null,
24
- React.createElement(menu_button.MenuButton, null,
25
- React.createElement(insert_button.InsertButton, { size: 24, color: "grey-5" }))),
26
- React.createElement(modal.Modal.Content, { sx: "border-radius: 16px; max-width: 782px; width: 100%; margin: 24px; padding: 0px;" },
27
- React.createElement(box.Box, { "$dir": "column" },
28
- React.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 24px; box-shadow: var(--elevation-2);" },
29
- React.createElement(box.Box, { "$align": "center", "$gap": 32 },
30
- React.createElement(IconWrapper, null,
31
- React.createElement(insert_button.InsertButton, { size: 24, color: "hue-blue-1" })),
32
- React.createElement(heading.H, { "$bold": true, "$color": "hue-blue-1", "$fontSize": 20, "$lineHeight": 28 }, "Insert Button")),
33
- React.createElement(close.Close, { size: 24, sx: "&:hover { cursor: pointer; border-radius: 50%; background-color: var(--color-grey-9); }" })),
34
- React.createElement(box.Box, { "$dir": "column", "$gap": 24, sx: "padding: 24px 48px 24px 24px;" },
35
- React.createElement(ButtonItem, { active: buttonType === constants.BUTTON_SUBSCRIBE, description: "A button encouraging the reader to purchase a paid subscription to your community", onClick: () => setButtonType(constants.BUTTON_SUBSCRIBE), title: "Subscribe Now" },
36
- React.createElement(button.Button, { size: "small", sx: "width: 130px;" }, "Subscribe")),
37
- React.createElement(ButtonItem, { active: buttonType === constants.BUTTON_LINK, description: "A button that links to a URL", onClick: () => setButtonType(constants.BUTTON_LINK), title: "Link Button" },
38
- React.createElement(button.Button, { size: "small", sx: "width: 130px;" }, "Link"))),
39
- React.createElement(box.Box, { "$padding": 24, "$gap": 16, sx: "padding: 24px; background-color: var(--color-white); border-top: 1px solid var(--color-grey-8);" },
40
- React.createElement(modal.Modal.Dismiss, null,
41
- React.createElement(button.Button, { size: "small", sx: "flex: 1;", type: "outlined", onClick: () => setButtonType(undefined) }, "Cancel")),
42
- React.createElement(modal.Modal.Dismiss, null,
43
- React.createElement(button.Button, { size: "small", sx: "flex: 1;", onClick: handleButtonInsert }, "Confirm")))))));
26
+ return (React__default.default.createElement(modal.Modal, null,
27
+ React__default.default.createElement(modal.Modal.Trigger, null,
28
+ React__default.default.createElement(menu_button.MenuButton, null,
29
+ React__default.default.createElement(insert_button.InsertButton, { size: 24, color: "grey-5" }))),
30
+ React__default.default.createElement(modal.Modal.Content, { sx: "border-radius: 16px; max-width: 782px; width: 100%; margin: 24px; padding: 0px;" },
31
+ React__default.default.createElement(box.Box, { "$dir": "column" },
32
+ React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 24px; box-shadow: var(--elevation-2);" },
33
+ React__default.default.createElement(box.Box, { "$align": "center", "$gap": 32 },
34
+ React__default.default.createElement(IconWrapper, null,
35
+ React__default.default.createElement(insert_button.InsertButton, { size: 24, color: "hue-blue-1" })),
36
+ React__default.default.createElement(heading.H, { "$bold": true, "$color": "hue-blue-1", "$fontSize": 20, "$lineHeight": 28 }, "Insert Button")),
37
+ React__default.default.createElement(close.Close, { size: 24, sx: "&:hover { cursor: pointer; border-radius: 50%; background-color: var(--color-grey-9); }" })),
38
+ React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 24, sx: "padding: 24px 48px 24px 24px;" },
39
+ React__default.default.createElement(ButtonItem, { active: buttonType === constants.BUTTON_SUBSCRIBE, description: "A button encouraging the reader to purchase a paid subscription to your community", onClick: () => setButtonType(constants.BUTTON_SUBSCRIBE), title: "Subscribe Now" },
40
+ React__default.default.createElement(button.Button, { size: "small", sx: "width: 130px;" }, "Subscribe")),
41
+ React__default.default.createElement(ButtonItem, { active: buttonType === constants.BUTTON_LINK, description: "A button that links to a URL", onClick: () => setButtonType(constants.BUTTON_LINK), title: "Link Button" },
42
+ React__default.default.createElement(button.Button, { size: "small", sx: "width: 130px;" }, "Link"))),
43
+ React__default.default.createElement(box.Box, { "$padding": 24, "$gap": 16, sx: "padding: 24px; background-color: var(--color-white); border-top: 1px solid var(--color-grey-8);" },
44
+ React__default.default.createElement(modal.Modal.Dismiss, null,
45
+ React__default.default.createElement(button.Button, { size: "small", sx: "flex: 1;", type: "outlined", onClick: () => setButtonType(undefined) }, "Cancel")),
46
+ React__default.default.createElement(modal.Modal.Dismiss, null,
47
+ React__default.default.createElement(button.Button, { size: "small", sx: "flex: 1;", onClick: handleButtonInsert }, "Confirm")))))));
44
48
  };
45
49
  const IconWrapper = styled.styled.div `
46
50
  height: 48px;
@@ -50,17 +54,17 @@ const IconWrapper = styled.styled.div `
50
54
  border-radius: 8px;
51
55
  background-color: var(--color-hue-blue-2);
52
56
  `;
53
- const ButtonItem = ({ active, children, description, onClick, title, }) => (React.createElement(box.Box, { "$dir": "column", onClick: onClick, sx: "border-radius: 16px; box-shadow: var(--elevation-2); cursor: pointer;" },
54
- React.createElement(box.Box, { sx: `
57
+ const ButtonItem = ({ active, children, description, onClick, title, }) => (React__default.default.createElement(box.Box, { "$dir": "column", onClick: onClick, sx: "border-radius: 16px; box-shadow: var(--elevation-2); cursor: pointer;" },
58
+ React__default.default.createElement(box.Box, { sx: `
55
59
  padding: 24px;
56
60
  background-color: var(--color-blue-10);
57
61
  border-radius: 8px 8px 0px 0px;
58
62
  border-bottom: 1px solid var(--color-grey-9);
59
63
  ` },
60
- React.createElement(radio.Radio, { checked: !!active, sx: "align-items: flex-start;", value: title }),
61
- React.createElement(box.Box, { "$dir": "column" },
62
- React.createElement(paragraph.P, { "$semiBold": true }, title),
63
- React.createElement(paragraph.P, null, description))),
64
- React.createElement(box.Box, { "$align": "center", "$justify": "center", sx: "border-radius: 0px 0px 8px 8px; padding: 24px;" }, children)));
64
+ React__default.default.createElement(radio.Radio, { checked: !!active, sx: "align-items: flex-start;", value: title }),
65
+ React__default.default.createElement(box.Box, { "$dir": "column" },
66
+ React__default.default.createElement(paragraph.P, { "$semiBold": true }, title),
67
+ React__default.default.createElement(paragraph.P, null, description))),
68
+ React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", sx: "border-radius: 0px 0px 8px 8px; padding: 24px;" }, children)));
65
69
 
66
70
  exports.ButtonModal = ButtonModal;