@soul-refiner/design-system 2.0.1-alpha.1 → 2.0.2

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 (673) hide show
  1. package/dist/common/colors.js +140 -1
  2. package/dist/common/date.js +34 -1
  3. package/dist/common/styles.js +62 -30
  4. package/dist/components/actions/button/button.js +111 -21
  5. package/dist/components/actions/dropdown/dropdown.js +176 -21
  6. package/dist/components/actions/rate/rate.js +55 -4
  7. package/dist/components/actions/switch/switch.js +39 -5
  8. package/dist/components/actions/toggle/toggle.js +33 -6
  9. package/dist/components/actions/upload/upload.js +167 -9
  10. package/dist/components/atoms/box/box.js +18 -4
  11. package/dist/components/atoms/hide/hide.js +18 -1
  12. package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +36 -1
  13. package/dist/components/atoms/time_ago/time_ago.js +39 -1
  14. package/dist/components/atoms/typography/display.js +18 -5
  15. package/dist/components/atoms/typography/heading.js +43 -6
  16. package/dist/components/atoms/typography/paragraph.js +20 -7
  17. package/dist/components/atoms/typography/typography.js +10 -3
  18. package/dist/components/card/action/action.js +41 -8
  19. package/dist/components/card/audio/audio.js +57 -7
  20. package/dist/components/card/card.js +33 -1
  21. package/dist/components/card/feature/feature.js +86 -14
  22. package/dist/components/card/meeting/meeting.js +102 -8
  23. package/dist/components/card/person/person.js +39 -6
  24. package/dist/components/card/price/price.js +49 -7
  25. package/dist/components/card/regular/regular.js +26 -5
  26. package/dist/components/card/styles.js +9 -2
  27. package/dist/components/card/video/video.js +57 -7
  28. package/dist/components/card/written/written.js +57 -7
  29. package/dist/components/custom/courses_selection/courses_selection.js +104 -12
  30. package/dist/components/custom/users_selection/users_selection.js +86 -12
  31. package/dist/components/editor/constants.js +195 -1
  32. package/dist/components/editor/context.js +17 -1
  33. package/dist/components/editor/editor.js +45 -5
  34. package/dist/components/editor/icons/border-all.js +12 -1
  35. package/dist/components/editor/icons/border-bottom.js +12 -1
  36. package/dist/components/editor/icons/border-left.js +12 -1
  37. package/dist/components/editor/icons/border-none.js +12 -1
  38. package/dist/components/editor/icons/border-right.js +12 -1
  39. package/dist/components/editor/icons/border-top.js +12 -1
  40. package/dist/components/editor/navbar/alignment_dropdown.js +106 -1
  41. package/dist/components/editor/navbar/button_modal.js +60 -3
  42. package/dist/components/editor/navbar/navbar.js +178 -7
  43. package/dist/components/editor/navbar/style_dropdown.js +74 -1
  44. package/dist/components/editor/plugins/blocks/blockquote.js +17 -1
  45. package/dist/components/editor/plugins/blocks/blocks.js +54 -1
  46. package/dist/components/editor/plugins/blocks/buttons.js +70 -8
  47. package/dist/components/editor/plugins/blocks/dropdown-menu.js +77 -1
  48. package/dist/components/editor/plugins/blocks/image.js +60 -1
  49. package/dist/components/editor/plugins/blocks/list.js +20 -2
  50. package/dist/components/editor/plugins/blocks/media-popover.js +41 -1
  51. package/dist/components/editor/plugins/blocks/plate-button.js +63 -1
  52. package/dist/components/editor/plugins/blocks/popover.js +38 -1
  53. package/dist/components/editor/plugins/blocks/qa.js +44 -3
  54. package/dist/components/editor/plugins/blocks/resizable.js +47 -1
  55. package/dist/components/editor/plugins/blocks/separator.js +43 -1
  56. package/dist/components/editor/plugins/blocks/table-cell.js +48 -1
  57. package/dist/components/editor/plugins/blocks/table-row.js +16 -1
  58. package/dist/components/editor/plugins/blocks/table.js +98 -1
  59. package/dist/components/editor/plugins/blocks/text.js +103 -1
  60. package/dist/components/editor/plugins/blocks/video.js +42 -1
  61. package/dist/components/editor/plugins/leafs/leafs.js +37 -1
  62. package/dist/components/editor/plugins/leafs/link.js +55 -4
  63. package/dist/components/editor/plugins/marks/marks.js +17 -1
  64. package/dist/components/editor/plugins/plate.js +43 -1
  65. package/dist/components/editor/plugins/utils/exitBreak.js +36 -1
  66. package/dist/components/editor/plugins/utils/resetBlockType.js +26 -1
  67. package/dist/components/editor/plugins/utils/selectOnBackspace.js +11 -1
  68. package/dist/components/editor/plugins/utils/softBreak.js +19 -1
  69. package/dist/components/editor/plugins/utils/utils.js +17 -1
  70. package/dist/components/editor/simple_editor/navbar.js +110 -4
  71. package/dist/components/editor/simple_editor/plugins.js +93 -1
  72. package/dist/components/editor/simple_editor/simple_editor.js +34 -3
  73. package/dist/components/editor/styles/menu_button.js +9 -3
  74. package/dist/components/feedback/animated_toast/animated_toast.js +32 -3
  75. package/dist/components/feedback/badge/badge.js +56 -7
  76. package/dist/components/feedback/banner/banner.js +60 -6
  77. package/dist/components/feedback/chip/chip.js +81 -8
  78. package/dist/components/feedback/loader/loader.js +33 -9
  79. package/dist/components/feedback/notification/notification.js +59 -6
  80. package/dist/components/feedback/progress/progress.js +76 -14
  81. package/dist/components/feedback/toast/toast.js +55 -7
  82. package/dist/components/feedback/tooltip/tooltip.js +34 -1
  83. package/dist/components/iconography/avatar/avatar.js +141 -22
  84. package/dist/components/iconography/avatar/icons/approved.js +14 -1
  85. package/dist/components/iconography/avatar/icons/busy.js +14 -1
  86. package/dist/components/iconography/avatar/icons/declined.js +14 -1
  87. package/dist/components/iconography/avatar/icons/default.js +13 -1
  88. package/dist/components/iconography/avatar/icons/focus.js +14 -1
  89. package/dist/components/iconography/avatar/icons/locked.js +14 -1
  90. package/dist/components/iconography/avatar/icons/offline.js +14 -1
  91. package/dist/components/iconography/avatar/icons/online.js +13 -1
  92. package/dist/components/iconography/avatar/icons/subscribed.js +18 -1
  93. package/dist/components/iconography/icon/icon.js +18 -3
  94. package/dist/components/input/calendar/calendar.js +139 -13
  95. package/dist/components/input/checkbox/checkbox.js +23 -5
  96. package/dist/components/input/date/date.js +241 -13
  97. package/dist/components/input/filter/filter.js +212 -13
  98. package/dist/components/input/filter/filter_option.js +50 -9
  99. package/dist/components/input/radio/radio.js +45 -7
  100. package/dist/components/input/search/search.js +83 -17
  101. package/dist/components/input/select/select.js +27 -6
  102. package/dist/components/input/text_area/text_area.js +60 -15
  103. package/dist/components/input/text_input/text_input.js +102 -21
  104. package/dist/components/input/time/time.js +47 -3
  105. package/dist/components/media/video/video.js +42 -1
  106. package/dist/components/media/video-player/playlist-item.js +37 -4
  107. package/dist/components/media/video-player/video.js +121 -13
  108. package/dist/components/navigation/breadcrumb/breadcrumb.js +66 -11
  109. package/dist/components/navigation/inner/inner.js +130 -14
  110. package/dist/components/navigation/tabs/tabs.js +101 -15
  111. package/dist/components/surfaces/accordion/accordion.js +46 -5
  112. package/dist/components/surfaces/calendar_date/calendar_date.js +39 -10
  113. package/dist/components/surfaces/carousel/card/card.js +55 -7
  114. package/dist/components/surfaces/comment/comment.js +152 -19
  115. package/dist/components/surfaces/comment/helpers.js +30 -1
  116. package/dist/components/surfaces/drawer/drawer.js +75 -7
  117. package/dist/components/surfaces/message/message.js +39 -4
  118. package/dist/components/surfaces/modal/modal.js +99 -8
  119. package/dist/components/surfaces/portal/portal.js +35 -1
  120. package/dist/components/surfaces/post/post.js +161 -19
  121. package/dist/components/table/table/table.js +120 -29
  122. package/dist/emoji/emojis.json.js +36331 -1
  123. package/dist/icons/arrow/arrow_all.js +15 -1
  124. package/dist/icons/arrow/arrow_all_diagonal.js +15 -1
  125. package/dist/icons/arrow/arrow_both_downwards.js +15 -1
  126. package/dist/icons/arrow/arrow_both_upwards.js +15 -1
  127. package/dist/icons/arrow/arrow_circle_left.js +15 -1
  128. package/dist/icons/arrow/arrow_circle_left_double.js +15 -1
  129. package/dist/icons/arrow/arrow_circle_left_double_alert.js +17 -1
  130. package/dist/icons/arrow/arrow_circle_right.js +15 -1
  131. package/dist/icons/arrow/arrow_circle_right_double.js +15 -1
  132. package/dist/icons/arrow/arrow_circle_right_double_alert.js +15 -1
  133. package/dist/icons/arrow/arrow_diagonal_down_left.js +15 -1
  134. package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +15 -1
  135. package/dist/icons/arrow/arrow_diagonal_down_right.js +15 -1
  136. package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +15 -1
  137. package/dist/icons/arrow/arrow_diagonal_up_left.js +15 -1
  138. package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +15 -1
  139. package/dist/icons/arrow/arrow_diagonal_up_right.js +15 -1
  140. package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +15 -1
  141. package/dist/icons/arrow/arrow_down.js +15 -1
  142. package/dist/icons/arrow/arrow_down_bold.js +15 -1
  143. package/dist/icons/arrow/arrow_down_circle.js +15 -1
  144. package/dist/icons/arrow/arrow_left.js +15 -1
  145. package/dist/icons/arrow/arrow_left_bold.js +15 -1
  146. package/dist/icons/arrow/arrow_left_circle.js +15 -1
  147. package/dist/icons/arrow/arrow_left_curved.js +15 -1
  148. package/dist/icons/arrow/arrow_left_curved_circle.js +15 -1
  149. package/dist/icons/arrow/arrow_right.js +15 -1
  150. package/dist/icons/arrow/arrow_right_bold.js +15 -1
  151. package/dist/icons/arrow/arrow_right_circle.js +15 -1
  152. package/dist/icons/arrow/arrow_right_curved.js +15 -1
  153. package/dist/icons/arrow/arrow_right_curved_circle.js +15 -1
  154. package/dist/icons/arrow/arrow_up.js +15 -1
  155. package/dist/icons/arrow/arrow_up_bold.js +15 -1
  156. package/dist/icons/arrow/arrow_up_circle.js +15 -1
  157. package/dist/icons/arrow/chevron_down.js +15 -1
  158. package/dist/icons/arrow/chevron_down_circle.js +15 -1
  159. package/dist/icons/arrow/chevron_down_double.js +15 -1
  160. package/dist/icons/arrow/chevron_down_double_circle.js +15 -1
  161. package/dist/icons/arrow/chevron_left.js +15 -1
  162. package/dist/icons/arrow/chevron_left_circle.js +15 -1
  163. package/dist/icons/arrow/chevron_left_double.js +15 -1
  164. package/dist/icons/arrow/chevron_left_double_circle.js +15 -1
  165. package/dist/icons/arrow/chevron_right.js +15 -1
  166. package/dist/icons/arrow/chevron_right_circle.js +15 -1
  167. package/dist/icons/arrow/chevron_right_double.js +15 -1
  168. package/dist/icons/arrow/chevron_right_double_circle.js +15 -1
  169. package/dist/icons/arrow/chevron_scroll.js +15 -1
  170. package/dist/icons/arrow/chevron_up.js +15 -1
  171. package/dist/icons/arrow/chevron_up_circle.js +15 -1
  172. package/dist/icons/arrow/chevron_up_double.js +15 -1
  173. package/dist/icons/arrow/chevron_up_double_circle.js +15 -1
  174. package/dist/icons/arrow/forward_all.js +15 -1
  175. package/dist/icons/arrow/forward_all_bold.js +15 -1
  176. package/dist/icons/arrow/forward_bold.js +15 -1
  177. package/dist/icons/arrow/redo.js +15 -1
  178. package/dist/icons/arrow/redo_bold.js +15 -1
  179. package/dist/icons/arrow/reply.js +15 -1
  180. package/dist/icons/arrow/reply_all.js +15 -1
  181. package/dist/icons/arrow/reply_all_bold.js +15 -1
  182. package/dist/icons/arrow/reply_bold.js +15 -1
  183. package/dist/icons/arrow/undo.js +15 -1
  184. package/dist/icons/arrow/undo_bold.js +15 -1
  185. package/dist/icons/audio_video/drag_indicator.js +15 -1
  186. package/dist/icons/audio_video/eject.js +15 -1
  187. package/dist/icons/audio_video/equalizer.js +15 -1
  188. package/dist/icons/audio_video/fast_forward.js +15 -1
  189. package/dist/icons/audio_video/fast_forward_30.js +15 -1
  190. package/dist/icons/audio_video/fullscreen.js +15 -1
  191. package/dist/icons/audio_video/headphones.js +15 -1
  192. package/dist/icons/audio_video/library_add.js +15 -1
  193. package/dist/icons/audio_video/library_music.js +15 -1
  194. package/dist/icons/audio_video/microphone.js +15 -1
  195. package/dist/icons/audio_video/musical_note.js +15 -1
  196. package/dist/icons/audio_video/next.js +15 -1
  197. package/dist/icons/audio_video/pause.js +15 -1
  198. package/dist/icons/audio_video/pause_circle.js +15 -1
  199. package/dist/icons/audio_video/play.js +15 -1
  200. package/dist/icons/audio_video/play_circle.js +15 -1
  201. package/dist/icons/audio_video/play_display.js +15 -1
  202. package/dist/icons/audio_video/play_pause.js +15 -1
  203. package/dist/icons/audio_video/play_solid.js +15 -1
  204. package/dist/icons/audio_video/player_list.js +15 -1
  205. package/dist/icons/audio_video/player_list_add.js +15 -1
  206. package/dist/icons/audio_video/player_list_play.js +15 -1
  207. package/dist/icons/audio_video/previous.js +15 -1
  208. package/dist/icons/audio_video/radio.js +15 -1
  209. package/dist/icons/audio_video/record.js +15 -1
  210. package/dist/icons/audio_video/repeat.js +15 -1
  211. package/dist/icons/audio_video/rewind.js +15 -1
  212. package/dist/icons/audio_video/rewind_30.js +15 -1
  213. package/dist/icons/audio_video/shuffle.js +15 -1
  214. package/dist/icons/audio_video/sound_wave.js +15 -1
  215. package/dist/icons/audio_video/stop.js +15 -1
  216. package/dist/icons/audio_video/stop_circle.js +15 -1
  217. package/dist/icons/audio_video/subscriptions.js +15 -1
  218. package/dist/icons/audio_video/tuner.js +15 -1
  219. package/dist/icons/audio_video/volume.js +15 -1
  220. package/dist/icons/audio_video/volume_high.js +15 -1
  221. package/dist/icons/audio_video/volume_low.js +15 -1
  222. package/dist/icons/audio_video/volume_slash.js +15 -1
  223. package/dist/icons/basic/aa_sansserif.js +16 -1
  224. package/dist/icons/basic/aa_serif.js +16 -1
  225. package/dist/icons/basic/anchor.js +17 -1
  226. package/dist/icons/basic/bible.js +15 -1
  227. package/dist/icons/basic/bold.js +15 -1
  228. package/dist/icons/basic/book.js +15 -1
  229. package/dist/icons/basic/book_open.js +15 -1
  230. package/dist/icons/basic/bookmark.js +15 -1
  231. package/dist/icons/basic/bookmark_add.js +15 -1
  232. package/dist/icons/basic/bookmark_slash.js +15 -1
  233. package/dist/icons/basic/bookmarks.js +15 -1
  234. package/dist/icons/basic/books.js +18 -1
  235. package/dist/icons/basic/box.js +15 -1
  236. package/dist/icons/basic/briefcase.js +15 -1
  237. package/dist/icons/basic/browse_activity.js +15 -1
  238. package/dist/icons/basic/browser.js +15 -1
  239. package/dist/icons/basic/browser_slash.js +15 -1
  240. package/dist/icons/basic/calculator.js +15 -1
  241. package/dist/icons/basic/camera.js +15 -1
  242. package/dist/icons/basic/camera_add.js +15 -1
  243. package/dist/icons/basic/camera_slash.js +15 -1
  244. package/dist/icons/basic/checkmark.js +15 -1
  245. package/dist/icons/basic/checkmark_circle.js +17 -1
  246. package/dist/icons/basic/checkmark_filled.js +15 -1
  247. package/dist/icons/basic/checkmarks.js +15 -1
  248. package/dist/icons/basic/circle.js +15 -1
  249. package/dist/icons/basic/circle_slash.js +17 -1
  250. package/dist/icons/basic/clear_text_style.js +15 -1
  251. package/dist/icons/basic/close.js +15 -1
  252. package/dist/icons/basic/close_circle.js +15 -1
  253. package/dist/icons/basic/close_filled.js +15 -1
  254. package/dist/icons/basic/copy.js +15 -1
  255. package/dist/icons/basic/delete.js +15 -1
  256. package/dist/icons/basic/detail.js +15 -1
  257. package/dist/icons/basic/dot.js +15 -1
  258. package/dist/icons/basic/download.js +15 -1
  259. package/dist/icons/basic/download_arrow.js +15 -1
  260. package/dist/icons/basic/droplet.js +17 -1
  261. package/dist/icons/basic/ellipsis_horizontal.js +15 -1
  262. package/dist/icons/basic/ellipsis_horizontal_circle.js +15 -1
  263. package/dist/icons/basic/ellipsis_vertical.js +15 -1
  264. package/dist/icons/basic/ellipsis_vertical_circle.js +15 -1
  265. package/dist/icons/basic/eye.js +15 -1
  266. package/dist/icons/basic/eye_slash.js +15 -1
  267. package/dist/icons/basic/fingerprint.js +15 -1
  268. package/dist/icons/basic/flag.js +15 -1
  269. package/dist/icons/basic/flag_wave.js +15 -1
  270. package/dist/icons/basic/flag_wave_filled.js +15 -1
  271. package/dist/icons/basic/flame.js +15 -1
  272. package/dist/icons/basic/gauge.js +15 -1
  273. package/dist/icons/basic/glasses.js +15 -1
  274. package/dist/icons/basic/graduation_cap.js +15 -1
  275. package/dist/icons/basic/hashmark.js +15 -1
  276. package/dist/icons/basic/heart.js +15 -1
  277. package/dist/icons/basic/heart_slash.js +15 -1
  278. package/dist/icons/basic/highlighter.js +15 -1
  279. package/dist/icons/basic/home.js +15 -1
  280. package/dist/icons/basic/image.js +15 -1
  281. package/dist/icons/basic/inbox.js +15 -1
  282. package/dist/icons/basic/italic.js +15 -1
  283. package/dist/icons/basic/layers.js +15 -1
  284. package/dist/icons/basic/lightening.js +15 -1
  285. package/dist/icons/basic/lightening_slash.js +15 -1
  286. package/dist/icons/basic/link.js +15 -1
  287. package/dist/icons/basic/link_slash.js +15 -1
  288. package/dist/icons/basic/loudspeaker.js +15 -1
  289. package/dist/icons/basic/maximize.js +15 -1
  290. package/dist/icons/basic/menu.js +15 -1
  291. package/dist/icons/basic/menu_circle.js +15 -1
  292. package/dist/icons/basic/menu_dots.js +15 -1
  293. package/dist/icons/basic/microphone_slash.js +15 -1
  294. package/dist/icons/basic/minimize.js +15 -1
  295. package/dist/icons/basic/minus.js +15 -1
  296. package/dist/icons/basic/minus_circle.js +15 -1
  297. package/dist/icons/basic/move_item.js +15 -1
  298. package/dist/icons/basic/new.js +15 -1
  299. package/dist/icons/basic/newspaper.js +15 -1
  300. package/dist/icons/basic/node.js +15 -1
  301. package/dist/icons/basic/note_pad.js +16 -1
  302. package/dist/icons/basic/options.js +15 -1
  303. package/dist/icons/basic/paint_brush.js +15 -1
  304. package/dist/icons/basic/paperclip.js +15 -1
  305. package/dist/icons/basic/paperclip_slash.js +15 -1
  306. package/dist/icons/basic/pencil.js +15 -1
  307. package/dist/icons/basic/pencil_pad.js +15 -1
  308. package/dist/icons/basic/plus.js +15 -1
  309. package/dist/icons/basic/plus_circle.js +15 -1
  310. package/dist/icons/basic/presentation.js +15 -1
  311. package/dist/icons/basic/printer.js +15 -1
  312. package/dist/icons/basic/profile.js +15 -1
  313. package/dist/icons/basic/profile_check.js +15 -1
  314. package/dist/icons/basic/pulse.js +15 -1
  315. package/dist/icons/basic/qr_code.js +15 -1
  316. package/dist/icons/basic/resize.js +17 -1
  317. package/dist/icons/basic/scan.js +15 -1
  318. package/dist/icons/basic/scissors.js +15 -1
  319. package/dist/icons/basic/screenshot.js +15 -1
  320. package/dist/icons/basic/search.js +15 -1
  321. package/dist/icons/basic/select_item.js +16 -1
  322. package/dist/icons/basic/settings.js +15 -1
  323. package/dist/icons/basic/share.js +15 -1
  324. package/dist/icons/basic/share_external.js +15 -1
  325. package/dist/icons/basic/square.js +15 -1
  326. package/dist/icons/basic/star.js +15 -1
  327. package/dist/icons/basic/star_circle.js +15 -1
  328. package/dist/icons/basic/star_filled.js +15 -1
  329. package/dist/icons/basic/star_filled_half.js +15 -1
  330. package/dist/icons/basic/star_slash.js +15 -1
  331. package/dist/icons/basic/sticker.js +15 -1
  332. package/dist/icons/basic/strikethrough.js +15 -1
  333. package/dist/icons/basic/subtask.js +16 -1
  334. package/dist/icons/basic/tax.js +18 -1
  335. package/dist/icons/basic/text_bg_color.js +15 -1
  336. package/dist/icons/basic/text_color.js +15 -1
  337. package/dist/icons/basic/textbox.js +15 -1
  338. package/dist/icons/basic/thumbs_down.js +15 -1
  339. package/dist/icons/basic/thumbs_up.js +15 -1
  340. package/dist/icons/basic/thumbs_up_filled.js +15 -1
  341. package/dist/icons/basic/toggle_left.js +15 -1
  342. package/dist/icons/basic/toggle_right.js +15 -1
  343. package/dist/icons/basic/translate.js +15 -1
  344. package/dist/icons/basic/trash.js +15 -1
  345. package/dist/icons/basic/trash_slash.js +15 -1
  346. package/dist/icons/basic/underline.js +15 -1
  347. package/dist/icons/basic/upload.js +15 -1
  348. package/dist/icons/basic/video.js +15 -1
  349. package/dist/icons/basic/video_add.js +16 -1
  350. package/dist/icons/basic/video_slash.js +15 -1
  351. package/dist/icons/basic/wrench.js +15 -1
  352. package/dist/icons/basic/zoom_in.js +15 -1
  353. package/dist/icons/basic/zoom_out.js +15 -1
  354. package/dist/icons/data/bar_chart.js +15 -1
  355. package/dist/icons/data/bar_chart_downward.js +15 -1
  356. package/dist/icons/data/bar_chart_downward_outline.js +15 -1
  357. package/dist/icons/data/bar_chart_upward.js +15 -1
  358. package/dist/icons/data/bar_chart_upward_outline.js +15 -1
  359. package/dist/icons/data/candlestick_chart.js +15 -1
  360. package/dist/icons/data/four_circles.js +15 -1
  361. package/dist/icons/data/legend_toggle.js +15 -1
  362. package/dist/icons/data/line_chart.js +15 -1
  363. package/dist/icons/data/line_chart_area.js +15 -1
  364. package/dist/icons/data/line_chart_area_shaded.js +15 -1
  365. package/dist/icons/data/line_chart_double.js +15 -1
  366. package/dist/icons/data/line_chart_downward.js +15 -1
  367. package/dist/icons/data/line_chart_node.js +15 -1
  368. package/dist/icons/data/line_chart_outline.js +15 -1
  369. package/dist/icons/data/line_chart_search.js +15 -1
  370. package/dist/icons/data/line_chart_stars.js +15 -1
  371. package/dist/icons/data/line_chart_upward.js +15 -1
  372. package/dist/icons/data/pie_chart.js +16 -1
  373. package/dist/icons/data/tree.js +15 -1
  374. package/dist/icons/email/mail.js +15 -1
  375. package/dist/icons/email/mail_check.js +15 -1
  376. package/dist/icons/email/mail_minus.js +15 -1
  377. package/dist/icons/email/mail_send.js +15 -1
  378. package/dist/icons/email/send.js +15 -1
  379. package/dist/icons/email/send_close.js +15 -1
  380. package/dist/icons/email/send_schedule.js +15 -1
  381. package/dist/icons/email/send_text.js +15 -1
  382. package/dist/icons/emoji/emoji_add.js +15 -1
  383. package/dist/icons/emoji/laughing.js +15 -1
  384. package/dist/icons/emoji/neutral.js +15 -1
  385. package/dist/icons/emoji/sad.js +15 -1
  386. package/dist/icons/emoji/shocked.js +15 -1
  387. package/dist/icons/emoji/smile.js +15 -1
  388. package/dist/icons/file/clipboard.js +15 -1
  389. package/dist/icons/file/clipboard_check.js +15 -1
  390. package/dist/icons/file/clipboard_close.js +15 -1
  391. package/dist/icons/file/clipboard_minus.js +15 -1
  392. package/dist/icons/file/clipboard_plus.js +15 -1
  393. package/dist/icons/file/clipboard_text.js +15 -1
  394. package/dist/icons/file/file.js +15 -1
  395. package/dist/icons/file/file_add.js +15 -1
  396. package/dist/icons/file/file_check.js +15 -1
  397. package/dist/icons/file/file_close.js +15 -1
  398. package/dist/icons/file/file_code.js +15 -1
  399. package/dist/icons/file/file_download.js +15 -1
  400. package/dist/icons/file/file_draft.js +15 -1
  401. package/dist/icons/file/file_gear.js +16 -1
  402. package/dist/icons/file/file_minus.js +15 -1
  403. package/dist/icons/file/file_plus.js +15 -1
  404. package/dist/icons/file/file_scan.js +15 -1
  405. package/dist/icons/file/file_shred.js +15 -1
  406. package/dist/icons/file/file_text.js +15 -1
  407. package/dist/icons/file/file_upload.js +15 -1
  408. package/dist/icons/file/folder.js +15 -1
  409. package/dist/icons/file/folder_add.js +15 -1
  410. package/dist/icons/file/folder_arrow.js +15 -1
  411. package/dist/icons/file/folder_check.js +15 -1
  412. package/dist/icons/file/folder_close.js +15 -1
  413. package/dist/icons/file/folder_cloud.js +15 -1
  414. package/dist/icons/file/folder_gear.js +16 -1
  415. package/dist/icons/file/folder_minus.js +15 -1
  416. package/dist/icons/file/folder_music.js +15 -1
  417. package/dist/icons/file/folder_open.js +15 -1
  418. package/dist/icons/file/folder_plus.js +15 -1
  419. package/dist/icons/file/folder_zip.js +15 -1
  420. package/dist/icons/file/note.js +15 -1
  421. package/dist/icons/file/note_text.js +15 -1
  422. package/dist/icons/file/pdf.js +15 -1
  423. package/dist/icons/file/photo.js +15 -1
  424. package/dist/icons/finance/bitcoin.js +15 -1
  425. package/dist/icons/finance/coins.js +19 -1
  426. package/dist/icons/finance/credit_card.js +15 -1
  427. package/dist/icons/finance/credit_card_add.js +15 -1
  428. package/dist/icons/finance/credit_card_face.js +15 -1
  429. package/dist/icons/finance/credit_card_member.js +15 -1
  430. package/dist/icons/finance/credit_card_outcome.js +15 -1
  431. package/dist/icons/finance/credit_card_scan.js +15 -1
  432. package/dist/icons/finance/credit_card_share.js +15 -1
  433. package/dist/icons/finance/credit_card_slash.js +15 -1
  434. package/dist/icons/finance/currency_exchange.js +15 -1
  435. package/dist/icons/finance/dollar.js +15 -1
  436. package/dist/icons/finance/ethereum.js +15 -1
  437. package/dist/icons/finance/paypass.js +15 -1
  438. package/dist/icons/finance/strongbox.js +15 -1
  439. package/dist/icons/finance/wallet.js +15 -1
  440. package/dist/icons/index.js +1095 -1
  441. package/dist/icons/layout/block_align_bottom.js +15 -1
  442. package/dist/icons/layout/block_align_center.js +15 -1
  443. package/dist/icons/layout/block_align_left.js +15 -1
  444. package/dist/icons/layout/block_align_middle.js +15 -1
  445. package/dist/icons/layout/block_align_right.js +15 -1
  446. package/dist/icons/layout/block_align_top.js +15 -1
  447. package/dist/icons/layout/block_horizontal.js +15 -1
  448. package/dist/icons/layout/block_vertical.js +15 -1
  449. package/dist/icons/layout/edit_shape.js +15 -1
  450. package/dist/icons/layout/elements.js +15 -1
  451. package/dist/icons/layout/elements_add.js +15 -1
  452. package/dist/icons/layout/elements_filled.js +15 -1
  453. package/dist/icons/layout/elements_masonry.js +15 -1
  454. package/dist/icons/layout/frame.js +15 -1
  455. package/dist/icons/layout/frame_stack.js +15 -1
  456. package/dist/icons/layout/grid.js +15 -1
  457. package/dist/icons/layout/grid_column_three.js +15 -1
  458. package/dist/icons/layout/grid_column_two.js +15 -1
  459. package/dist/icons/layout/grid_dynamic.js +15 -1
  460. package/dist/icons/layout/grid_frame.js +15 -1
  461. package/dist/icons/layout/grid_row_three.js +15 -1
  462. package/dist/icons/layout/grid_row_two.js +15 -1
  463. package/dist/icons/layout/grid_six.js +15 -1
  464. package/dist/icons/layout/grid_small.js +15 -1
  465. package/dist/icons/layout/iframe.js +15 -1
  466. package/dist/icons/layout/kanban.js +15 -1
  467. package/dist/icons/layout/layout.js +15 -1
  468. package/dist/icons/layout/list.js +15 -1
  469. package/dist/icons/layout/list_filled.js +20 -1
  470. package/dist/icons/layout/padding.js +15 -1
  471. package/dist/icons/layout/page_break.js +15 -1
  472. package/dist/icons/layout/rotate_left.js +15 -1
  473. package/dist/icons/layout/rotate_right.js +15 -1
  474. package/dist/icons/layout/ruler.js +15 -1
  475. package/dist/icons/layout/segment.js +15 -1
  476. package/dist/icons/layout/select_area.js +15 -1
  477. package/dist/icons/layout/select_boundary.js +15 -1
  478. package/dist/icons/layout/sidebar_left.js +15 -1
  479. package/dist/icons/layout/sidebar_right.js +15 -1
  480. package/dist/icons/layout/slides.js +15 -1
  481. package/dist/icons/layout/slides_horizontal.js +15 -1
  482. package/dist/icons/layout/slides_vertical.js +20 -1
  483. package/dist/icons/layout/stack.js +15 -1
  484. package/dist/icons/layout/text.js +15 -1
  485. package/dist/icons/maps/atlas.js +15 -1
  486. package/dist/icons/maps/compass.js +15 -1
  487. package/dist/icons/maps/direction.js +15 -1
  488. package/dist/icons/maps/direction_angled.js +15 -1
  489. package/dist/icons/maps/globe.js +15 -1
  490. package/dist/icons/maps/globe_slash.js +15 -1
  491. package/dist/icons/maps/location.js +15 -1
  492. package/dist/icons/maps/location_slash.js +15 -1
  493. package/dist/icons/maps/map.js +15 -1
  494. package/dist/icons/maps/marker.js +15 -1
  495. package/dist/icons/maps/panorama.js +15 -1
  496. package/dist/icons/maps/pin.js +15 -1
  497. package/dist/icons/maps/pin_arrow.js +15 -1
  498. package/dist/icons/maps/pin_location.js +15 -1
  499. package/dist/icons/maps/pin_plus.js +15 -1
  500. package/dist/icons/maps/pin_question.js +15 -1
  501. package/dist/icons/maps/pin_slash.js +15 -1
  502. package/dist/icons/maps/push_pin.js +15 -1
  503. package/dist/icons/maps/push_pin_filled.js +15 -1
  504. package/dist/icons/maps/push_pin_slash.js +15 -1
  505. package/dist/icons/maps/radar.js +15 -1
  506. package/dist/icons/maps/route.js +15 -1
  507. package/dist/icons/message/bubble.js +15 -1
  508. package/dist/icons/message/bubble_question.js +15 -1
  509. package/dist/icons/message/comment.js +15 -1
  510. package/dist/icons/message/comment_add.js +15 -1
  511. package/dist/icons/message/comment_check.js +15 -1
  512. package/dist/icons/message/comment_close.js +15 -1
  513. package/dist/icons/message/comment_minus.js +15 -1
  514. package/dist/icons/message/comment_text.js +15 -1
  515. package/dist/icons/misc/advertisement.js +15 -1
  516. package/dist/icons/misc/atom.js +15 -1
  517. package/dist/icons/misc/bone.js +15 -1
  518. package/dist/icons/misc/brightness_high.js +15 -1
  519. package/dist/icons/misc/brightness_low.js +15 -1
  520. package/dist/icons/misc/contrast.js +15 -1
  521. package/dist/icons/misc/crosshairs.js +15 -1
  522. package/dist/icons/misc/crown.js +15 -1
  523. package/dist/icons/misc/footprint.js +15 -1
  524. package/dist/icons/misc/form.js +15 -1
  525. package/dist/icons/misc/funnel.js +15 -1
  526. package/dist/icons/misc/infinite.js +15 -1
  527. package/dist/icons/misc/insert_button.js +15 -1
  528. package/dist/icons/misc/light_bulb.js +15 -1
  529. package/dist/icons/misc/moon.js +15 -1
  530. package/dist/icons/misc/nut.js +15 -1
  531. package/dist/icons/misc/planet.js +15 -1
  532. package/dist/icons/misc/plus_thick.js +15 -1
  533. package/dist/icons/misc/pocket.js +15 -1
  534. package/dist/icons/misc/rocket.js +15 -1
  535. package/dist/icons/misc/soup.js +19 -1
  536. package/dist/icons/misc/sun.js +15 -1
  537. package/dist/icons/misc/toy_horse.js +15 -1
  538. package/dist/icons/misc/trophy.js +15 -1
  539. package/dist/icons/misc/watercloset.js +15 -1
  540. package/dist/icons/notifications/alert_circle.js +15 -1
  541. package/dist/icons/notifications/alert_octogon.js +15 -1
  542. package/dist/icons/notifications/alert_triangle.js +15 -1
  543. package/dist/icons/notifications/app_notification.js +15 -1
  544. package/dist/icons/notifications/bell.js +15 -1
  545. package/dist/icons/notifications/bell_alert.js +15 -1
  546. package/dist/icons/notifications/bell_checkmark.js +15 -1
  547. package/dist/icons/notifications/bell_minus.js +15 -1
  548. package/dist/icons/notifications/bell_plus.js +15 -1
  549. package/dist/icons/notifications/bell_ring.js +17 -1
  550. package/dist/icons/notifications/bell_slash.js +15 -1
  551. package/dist/icons/notifications/information.js +15 -1
  552. package/dist/icons/notifications/minus_octogon.js +15 -1
  553. package/dist/icons/notifications/question_circle.js +15 -1
  554. package/dist/icons/people/group.js +15 -1
  555. package/dist/icons/people/group_add.js +15 -1
  556. package/dist/icons/people/group_chat.js +17 -1
  557. package/dist/icons/people/group_remove.js +15 -1
  558. package/dist/icons/people/group_send.js +16 -1
  559. package/dist/icons/people/groups.js +15 -1
  560. package/dist/icons/people/person.js +15 -1
  561. package/dist/icons/people/person_add.js +15 -1
  562. package/dist/icons/people/person_checkmark.js +15 -1
  563. package/dist/icons/people/person_circle.js +17 -1
  564. package/dist/icons/people/person_close.js +17 -1
  565. package/dist/icons/people/person_remove.js +15 -1
  566. package/dist/icons/people/person_slash.js +17 -1
  567. package/dist/icons/phone/keypad.js +15 -1
  568. package/dist/icons/phone/phone.js +15 -1
  569. package/dist/icons/phone/phone_add.js +15 -1
  570. package/dist/icons/phone/phone_calling.js +15 -1
  571. package/dist/icons/phone/phone_check.js +15 -1
  572. package/dist/icons/phone/phone_close.js +15 -1
  573. package/dist/icons/phone/phone_decline.js +15 -1
  574. package/dist/icons/phone/phone_forwarded.js +15 -1
  575. package/dist/icons/phone/phone_hash.js +15 -1
  576. package/dist/icons/phone/phone_incoming.js +15 -1
  577. package/dist/icons/phone/phone_outgoing.js +15 -1
  578. package/dist/icons/phone/phone_pause.js +15 -1
  579. package/dist/icons/phone/phone_slash.js +15 -1
  580. package/dist/icons/phone/voicemail.js +15 -1
  581. package/dist/icons/security/key.js +15 -1
  582. package/dist/icons/security/key_slash.js +15 -1
  583. package/dist/icons/security/lock.js +15 -1
  584. package/dist/icons/security/lock_circle.js +15 -1
  585. package/dist/icons/security/lock_open.js +15 -1
  586. package/dist/icons/security/lock_slash.js +15 -1
  587. package/dist/icons/security/shield.js +15 -1
  588. package/dist/icons/security/shield_checkmark.js +15 -1
  589. package/dist/icons/security/shield_lock.js +15 -1
  590. package/dist/icons/security/shield_slash.js +15 -1
  591. package/dist/icons/security/verified.js +15 -1
  592. package/dist/icons/shopping/basket.js +15 -1
  593. package/dist/icons/shopping/cart.js +15 -1
  594. package/dist/icons/shopping/cart_filled.js +15 -1
  595. package/dist/icons/shopping/coupon.js +15 -1
  596. package/dist/icons/shopping/coupon_cut.js +15 -1
  597. package/dist/icons/shopping/delivery.js +15 -1
  598. package/dist/icons/shopping/discount.js +15 -1
  599. package/dist/icons/shopping/gift.js +15 -1
  600. package/dist/icons/shopping/gift_bag.js +15 -1
  601. package/dist/icons/shopping/inventory.js +15 -1
  602. package/dist/icons/shopping/point_of_sale.js +15 -1
  603. package/dist/icons/shopping/shirt.js +15 -1
  604. package/dist/icons/shopping/tag.js +15 -1
  605. package/dist/icons/shopping/tag_diagonal.js +15 -1
  606. package/dist/icons/shopping/tote.js +15 -1
  607. package/dist/icons/special/upload_audio.js +20 -1
  608. package/dist/icons/special/upload_file.js +15 -1
  609. package/dist/icons/special/upload_image.js +17 -1
  610. package/dist/icons/special/upload_video.js +18 -1
  611. package/dist/icons/symbols/at.js +15 -1
  612. package/dist/icons/symbols/cc.js +15 -1
  613. package/dist/icons/symbols/cmd.js +15 -1
  614. package/dist/icons/symbols/facebook.js +15 -1
  615. package/dist/icons/symbols/google.js +18 -1
  616. package/dist/icons/symbols/hash.js +15 -1
  617. package/dist/icons/symbols/instagram.js +27 -1
  618. package/dist/icons/symbols/messenger.js +21 -1
  619. package/dist/icons/symbols/twitter.js +15 -1
  620. package/dist/icons/technology/battery.js +15 -1
  621. package/dist/icons/technology/battery_100.js +15 -1
  622. package/dist/icons/technology/battery_20.js +15 -1
  623. package/dist/icons/technology/battery_40.js +15 -1
  624. package/dist/icons/technology/battery_60.js +15 -1
  625. package/dist/icons/technology/battery_80.js +15 -1
  626. package/dist/icons/technology/battery_charging.js +15 -1
  627. package/dist/icons/technology/battery_slash.js +15 -1
  628. package/dist/icons/technology/devices.js +15 -1
  629. package/dist/icons/technology/floppy_disk.js +15 -1
  630. package/dist/icons/technology/iphone.js +15 -1
  631. package/dist/icons/technology/laptop.js +15 -1
  632. package/dist/icons/technology/mobile.js +15 -1
  633. package/dist/icons/technology/monitor.js +15 -1
  634. package/dist/icons/technology/server.js +15 -1
  635. package/dist/icons/technology/sim_card.js +15 -1
  636. package/dist/icons/technology/usb_stick.js +15 -1
  637. package/dist/icons/text/align_center.js +15 -1
  638. package/dist/icons/text/align_justified.js +15 -1
  639. package/dist/icons/text/align_left.js +15 -1
  640. package/dist/icons/text/align_right.js +15 -1
  641. package/dist/icons/text/code_block.js +15 -1
  642. package/dist/icons/text/divider.js +15 -1
  643. package/dist/icons/text/footnote.js +17 -1
  644. package/dist/icons/text/indent_decrease.js +15 -1
  645. package/dist/icons/text/indent_increase.js +15 -1
  646. package/dist/icons/text/list_ordered.js +15 -1
  647. package/dist/icons/text/list_unordered.js +15 -1
  648. package/dist/icons/text/quote.js +15 -1
  649. package/dist/icons/text/table.js +15 -1
  650. package/dist/icons/time/alarm.js +15 -1
  651. package/dist/icons/time/alarm_checkmark.js +15 -1
  652. package/dist/icons/time/alarm_minus.js +15 -1
  653. package/dist/icons/time/alarm_plus.js +15 -1
  654. package/dist/icons/time/alarm_slash.js +15 -1
  655. package/dist/icons/time/alarm_snooze.js +15 -1
  656. package/dist/icons/time/calendar.js +15 -1
  657. package/dist/icons/time/calendar_add.js +15 -1
  658. package/dist/icons/time/calendar_checkmark.js +15 -1
  659. package/dist/icons/time/calendar_close.js +15 -1
  660. package/dist/icons/time/calendar_dates.js +15 -1
  661. package/dist/icons/time/calendar_minus.js +15 -1
  662. package/dist/icons/time/calendar_plus.js +15 -1
  663. package/dist/icons/time/calendar_scroll.js +17 -1
  664. package/dist/icons/time/clock.js +15 -1
  665. package/dist/icons/time/clock_history.js +15 -1
  666. package/dist/icons/time/stopwatch.js +15 -1
  667. package/dist/icons/time/timer.js +15 -1
  668. package/dist/icons/time/watch.js +15 -1
  669. package/dist/index.js +117 -1
  670. package/dist/utils/date.js +73 -1
  671. package/dist/utils/function.js +5 -1
  672. package/package.json +2 -4
  673. package/dist/styles/output.css +0 -1776
@@ -1 +1,93 @@
1
- "use strict";var plate=require("@udecode/plate"),text=require("../plugins/blocks/text.js"),link=require("../plugins/leafs/link.js"),plate$1=require("../plugins/plate.js"),exitBreak=require("../plugins/utils/exitBreak.js"),resetBlockType=require("../plugins/utils/resetBlockType.js"),selectOnBackspace=require("../plugins/utils/selectOnBackspace.js"),softBreak=require("../plugins/utils/softBreak.js");const plugins=plate.createPlugins([plate.createHeadingPlugin(),plate.createImagePlugin({options:{disableUploadInsert:!0,disableEmbedInsert:!0}}),plate.createTextIndentPlugin(),plate.createIndentListPlugin({inject:{props:{validTypes:[plate.ELEMENT_PARAGRAPH,plate.ELEMENT_H1,plate.ELEMENT_H2,plate.ELEMENT_H3,plate.ELEMENT_H4,plate.ELEMENT_H5,plate.ELEMENT_H6,plate.ELEMENT_OL,plate.ELEMENT_UL]}}}),plate.createListPlugin(),plate.createMediaEmbedPlugin(),plate.createParagraphPlugin(),text.createHOnePlugin(),text.createHTwoPlugin(),text.createHThreePlugin(),text.createHFourPlugin(),text.createHFivePlugin(),text.createHSixPlugin(),plate.createResetNodePlugin(),plate.createBoldPlugin(),plate.createCodePlugin(),plate.createFontBackgroundColorPlugin(),plate.createFontSizePlugin(),plate.createFontFamilyPlugin(),plate.createItalicPlugin(),plate.createStrikethroughPlugin(),plate.createSubscriptPlugin(),plate.createSuperscriptPlugin(),plate.createUnderlinePlugin(),plate.createAlignPlugin({inject:{props:{validTypes:[plate.ELEMENT_PARAGRAPH,plate.ELEMENT_H1,plate.ELEMENT_H2,plate.ELEMENT_H3,plate.ELEMENT_H4,plate.ELEMENT_H5,plate.ELEMENT_H6]}}}),plate.createIndentPlugin({inject:{props:{validTypes:[plate.ELEMENT_PARAGRAPH,plate.ELEMENT_H1]}}}),plate.createLineHeightPlugin(),plate.createLinkPlugin({renderAfterEditable:link.LinkFloatingMenu}),plate.createExitBreakPlugin(exitBreak.exitBreakPlugin),plate.createHistoryPlugin(),plate.createResetNodePlugin(resetBlockType.resetBlockTypePlugin),plate.createSelectOnBackspacePlugin(selectOnBackspace.selectOnBackspace),plate.createSoftBreakPlugin(softBreak.softBreakPlugin)],{components:plate$1.plateUI});exports.plugins=plugins;
1
+ 'use strict';
2
+
3
+ var plate = require('@udecode/plate');
4
+ var text = require('../plugins/blocks/text.js');
5
+ var link = require('../plugins/leafs/link.js');
6
+ var plate$1 = require('../plugins/plate.js');
7
+ var exitBreak = require('../plugins/utils/exitBreak.js');
8
+ var resetBlockType = require('../plugins/utils/resetBlockType.js');
9
+ var selectOnBackspace = require('../plugins/utils/selectOnBackspace.js');
10
+ var softBreak = require('../plugins/utils/softBreak.js');
11
+
12
+ const plugins = plate.createPlugins([
13
+ plate.createHeadingPlugin(),
14
+ plate.createImagePlugin({
15
+ options: {
16
+ disableUploadInsert: true,
17
+ disableEmbedInsert: true,
18
+ },
19
+ }),
20
+ plate.createTextIndentPlugin(),
21
+ plate.createIndentListPlugin({
22
+ inject: {
23
+ props: {
24
+ validTypes: [
25
+ plate.ELEMENT_PARAGRAPH,
26
+ plate.ELEMENT_H1,
27
+ plate.ELEMENT_H2,
28
+ plate.ELEMENT_H3,
29
+ plate.ELEMENT_H4,
30
+ plate.ELEMENT_H5,
31
+ plate.ELEMENT_H6,
32
+ plate.ELEMENT_OL,
33
+ plate.ELEMENT_UL,
34
+ ],
35
+ },
36
+ },
37
+ }),
38
+ plate.createListPlugin(),
39
+ plate.createMediaEmbedPlugin(),
40
+ plate.createParagraphPlugin(),
41
+ text.createHOnePlugin(),
42
+ text.createHTwoPlugin(),
43
+ text.createHThreePlugin(),
44
+ text.createHFourPlugin(),
45
+ text.createHFivePlugin(),
46
+ text.createHSixPlugin(),
47
+ plate.createResetNodePlugin(),
48
+ plate.createBoldPlugin(),
49
+ plate.createCodePlugin(),
50
+ plate.createFontBackgroundColorPlugin(),
51
+ plate.createFontSizePlugin(),
52
+ plate.createFontFamilyPlugin(),
53
+ plate.createItalicPlugin(),
54
+ plate.createStrikethroughPlugin(),
55
+ plate.createSubscriptPlugin(),
56
+ plate.createSuperscriptPlugin(),
57
+ plate.createUnderlinePlugin(),
58
+ plate.createAlignPlugin({
59
+ inject: {
60
+ props: {
61
+ validTypes: [
62
+ plate.ELEMENT_PARAGRAPH,
63
+ plate.ELEMENT_H1,
64
+ plate.ELEMENT_H2,
65
+ plate.ELEMENT_H3,
66
+ plate.ELEMENT_H4,
67
+ plate.ELEMENT_H5,
68
+ plate.ELEMENT_H6,
69
+ ],
70
+ },
71
+ },
72
+ }),
73
+ plate.createIndentPlugin({
74
+ inject: {
75
+ props: {
76
+ validTypes: [plate.ELEMENT_PARAGRAPH, plate.ELEMENT_H1],
77
+ },
78
+ },
79
+ }),
80
+ plate.createLineHeightPlugin(),
81
+ plate.createLinkPlugin({
82
+ renderAfterEditable: link.LinkFloatingMenu,
83
+ }),
84
+ plate.createExitBreakPlugin(exitBreak.exitBreakPlugin),
85
+ plate.createHistoryPlugin(),
86
+ plate.createResetNodePlugin(resetBlockType.resetBlockTypePlugin),
87
+ plate.createSelectOnBackspacePlugin(selectOnBackspace.selectOnBackspace),
88
+ plate.createSoftBreakPlugin(softBreak.softBreakPlugin),
89
+ ], {
90
+ components: plate$1.plateUI,
91
+ });
92
+
93
+ exports.plugins = plugins;
@@ -1,5 +1,33 @@
1
1
  "use client";
2
- "use strict";var React=require("react"),styled=require("styled-components"),plate=require("@udecode/plate"),plugins=require("./plugins.js"),navbar=require("./navbar.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const SimpleEditor=({editable:e,handleUploadImage:t,onChange:a,placeholder:l="",previousContent:o=[{type:"p",children:[{text:""}]}]})=>React__default.default.createElement(plate.Plate,{id:"main",initialValue:o,onChange:a,plugins:plugins.plugins},React__default.default.createElement(Wrapper,null,e&&React__default.default.createElement(navbar.EditorBar,{handleUploadImage:t}),React__default.default.createElement(InnerWrapper,null,React__default.default.createElement(plate.PlateContent,{id:"main",autoFocus:!0,placeholder:l,readOnly:!e,spellCheck:!0})))),InnerWrapper=styled.styled.div`
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var styled = require('styled-components');
6
+ var plate = require('@udecode/plate');
7
+ var plugins = require('./plugins.js');
8
+ var navbar = require('./navbar.js');
9
+
10
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
+
14
+ const SimpleEditor = ({ editable, handleUploadImage, onChange, placeholder = '', previousContent = [
15
+ {
16
+ type: 'p',
17
+ children: [
18
+ {
19
+ text: '',
20
+ },
21
+ ],
22
+ },
23
+ ], }) => {
24
+ return (React__default.default.createElement(plate.Plate, { id: "main", initialValue: previousContent, onChange: onChange, plugins: plugins.plugins },
25
+ React__default.default.createElement(Wrapper, null,
26
+ editable && React__default.default.createElement(navbar.EditorBar, { handleUploadImage: handleUploadImage }),
27
+ React__default.default.createElement(InnerWrapper, null,
28
+ React__default.default.createElement(plate.PlateContent, { id: "main", autoFocus: true, placeholder: placeholder, readOnly: !editable, spellCheck: true })))));
29
+ };
30
+ const InnerWrapper = styled.styled.div `
3
31
  & > div {
4
32
  padding: 24px;
5
33
  min-height: 224px;
@@ -9,7 +37,8 @@
9
37
  margin: 24px 0px;
10
38
  }
11
39
  }
12
- `,Wrapper=styled.styled.div`
40
+ `;
41
+ const Wrapper = styled.styled.div `
13
42
  position: relative;
14
43
  max-width: 1200px;
15
44
  width: 100%;
@@ -64,4 +93,6 @@
64
93
  & > [data-slate-editor='true'] > * {
65
94
  margin: 24px 0px;
66
95
  }
67
- `;exports.SimpleEditor=SimpleEditor;
96
+ `;
97
+
98
+ exports.SimpleEditor = SimpleEditor;
@@ -1,5 +1,9 @@
1
1
  "use client";
2
- "use strict";var styled=require("styled-components");const MenuButton=styled.styled.button`
2
+ 'use strict';
3
+
4
+ var styled = require('styled-components');
5
+
6
+ const MenuButton = styled.styled.button `
3
7
  padding: 2px;
4
8
  border: none;
5
9
  outline: none;
@@ -26,5 +30,7 @@
26
30
  }
27
31
  }
28
32
 
29
- background-color: ${({$active:o})=>o?"var(--color-grey-9)":"transparent"};
30
- `;exports.MenuButton=MenuButton;
33
+ background-color: ${({ $active }) => $active ? 'var(--color-grey-9)' : 'transparent'};
34
+ `;
35
+
36
+ exports.MenuButton = MenuButton;
@@ -1,10 +1,37 @@
1
1
  "use client";
2
- "use strict";var React=require("react"),styled=require("styled-components"),toast=require("../toast/toast.js");function _interopDefaultCompat(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var React__default=_interopDefaultCompat(React);const AnimatedToast=({message:t,type:e,onClose:a,animationDuration:o=4})=>{const[s,n]=React__default.default.useState(!1),i=React__default.default.useRef(null);return React__default.default.useEffect(()=>(i.current=setTimeout(()=>{n(!0),a&&a()},1e3*o),()=>{clearTimeout(i.current)}),[o,a]),React__default.default.createElement(Container,null,React__default.default.createElement(ToastAnimation,{className:s?"toast-closed":""},React__default.default.createElement(toast.Toast,{content:t,type:e,isAnimated:!0,animationDuration:o})))},Container=styled.styled.div`
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var styled = require('styled-components');
6
+ var toast = require('../toast/toast.js');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
+
12
+ const AnimatedToast = ({ message, type, onClose, animationDuration = 4, }) => {
13
+ const [toastIsClosed, setToastIsClosed] = React__default.default.useState(false);
14
+ const timer = React__default.default.useRef(null);
15
+ React__default.default.useEffect(() => {
16
+ timer.current = setTimeout(() => {
17
+ setToastIsClosed(true);
18
+ !!onClose && onClose();
19
+ }, animationDuration * 1000);
20
+ return () => {
21
+ clearTimeout(timer.current);
22
+ };
23
+ }, [animationDuration, onClose]);
24
+ return (React__default.default.createElement(Container, null,
25
+ React__default.default.createElement(ToastAnimation, { className: `${toastIsClosed ? 'toast-closed' : ''}` },
26
+ React__default.default.createElement(toast.Toast, { content: message, type: type, isAnimated: true, animationDuration: animationDuration }))));
27
+ };
28
+ const Container = styled.styled.div `
3
29
  position: fixed;
4
30
  z-index: 9999;
5
31
  bottom: 16px;
6
32
  right: 16px;
7
- `,ToastAnimation=styled.styled.div`
33
+ `;
34
+ const ToastAnimation = styled.styled.div `
8
35
  animation: slide-in 0.4s ease-in-out forwards;
9
36
 
10
37
  &.toast-closed {
@@ -32,4 +59,6 @@
32
59
  transform: translateX(0%);
33
60
  }
34
61
  }
35
- `;exports.AnimatedToast=AnimatedToast;
62
+ `;
63
+
64
+ exports.AnimatedToast = AnimatedToast;
@@ -1,13 +1,59 @@
1
1
  "use client";
2
- "use strict";var React=require("react"),styled=require("styled-components"),close=require("../../../icons/basic/close.js");function _interopDefaultCompat(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var React__default=_interopDefaultCompat(React);const colorLookup={blue:{primary:"var(--color-hue-blue-1)",secondary:"var(--color-hue-blue-2)",bg:"var(--color-hue-blue-3)"},green:{primary:"var(--color-green-3)",secondary:"var(--color-green-8)",bg:"var(--color-green-10)"},orange:{primary:"var(--color-hue-orange-1)",secondary:"var(--color-hue-orange-2)",bg:"var(--color-hue-orange-3)"},purple:{primary:"var(--color-hue-purple-1)",secondary:"var(--color-hue-purple-2)",bg:"var(--color-hue-purple-3)"},red:{primary:"var(--color-red-4)",secondary:"var(--color-red-9)",bg:"var(--color-red-10)"}},Badge=({children:r,color:e,dot:o,onDismiss:l})=>{var a=colorLookup[e].bg,t=colorLookup[e].primary,e=colorLookup[e].secondary;return React__default.default.createElement(Component,{$bgColor:a,$borderColor:e,$textColor:t},o&&React__default.default.createElement(Dot,{$secondaryColor:t}),r,l&&React__default.default.createElement(close.Close,{size:16}))},Component=styled.styled.div`
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var styled = require('styled-components');
6
+ var close = require('../../../icons/basic/close.js');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
+
12
+ const colorLookup = {
13
+ blue: {
14
+ primary: 'var(--color-hue-blue-1)',
15
+ secondary: 'var(--color-hue-blue-2)',
16
+ bg: 'var(--color-hue-blue-3)',
17
+ },
18
+ green: {
19
+ primary: 'var(--color-green-3)',
20
+ secondary: 'var(--color-green-8)',
21
+ bg: 'var(--color-green-10)',
22
+ },
23
+ orange: {
24
+ primary: 'var(--color-hue-orange-1)',
25
+ secondary: 'var(--color-hue-orange-2)',
26
+ bg: 'var(--color-hue-orange-3)',
27
+ },
28
+ purple: {
29
+ primary: 'var(--color-hue-purple-1)',
30
+ secondary: 'var(--color-hue-purple-2)',
31
+ bg: 'var(--color-hue-purple-3)',
32
+ },
33
+ red: {
34
+ primary: 'var(--color-red-4)',
35
+ secondary: 'var(--color-red-9)',
36
+ bg: 'var(--color-red-10)',
37
+ },
38
+ };
39
+ const Badge = ({ children, color, dot, onDismiss }) => {
40
+ const bgColor = colorLookup[color].bg;
41
+ const textColor = colorLookup[color].primary;
42
+ const borderColor = colorLookup[color].secondary;
43
+ return (React__default.default.createElement(Component, { "$bgColor": bgColor, "$borderColor": borderColor, "$textColor": textColor },
44
+ dot && React__default.default.createElement(Dot, { "$secondaryColor": textColor }),
45
+ children,
46
+ onDismiss && React__default.default.createElement(close.Close, { size: 16 })));
47
+ };
48
+ const Component = styled.styled.div `
3
49
  display: flex;
4
50
  align-items: center;
5
51
  gap: 8px;
6
52
  padding: 1px 7px;
7
53
  border-radius: 32px;
8
- background-color: ${({$bgColor:r})=>r};
9
- color: ${({$textColor:r})=>r};
10
- border: 1px solid ${({$borderColor:r})=>r};
54
+ background-color: ${({ $bgColor }) => $bgColor};
55
+ color: ${({ $textColor }) => $textColor};
56
+ border: 1px solid ${({ $borderColor }) => $borderColor};
11
57
  font-family: var(--font-inter);
12
58
  font-size: 12px;
13
59
  font-weight: 500;
@@ -18,9 +64,12 @@
18
64
  fill: currentColor;
19
65
  cursor: pointer;
20
66
  }
21
- `,Dot=styled.styled.div`
67
+ `;
68
+ const Dot = styled.styled.div `
22
69
  width: 8px;
23
70
  height: 8px;
24
71
  border-radius: 50%;
25
- background-color: ${({$secondaryColor:r})=>r};
26
- `;exports.Badge=Badge;
72
+ background-color: ${({ $secondaryColor }) => $secondaryColor};
73
+ `;
74
+
75
+ exports.Badge = Badge;
@@ -1,17 +1,69 @@
1
1
  "use client";
2
- "use strict";var React=require("react"),styled=require("styled-components"),styles=require("../../../common/styles.js"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),paragraph=require("../../atoms/typography/paragraph.js"),alert_circle=require("../../../icons/notifications/alert_circle.js"),alert_octogon=require("../../../icons/notifications/alert_octogon.js"),alert_triangle=require("../../../icons/notifications/alert_triangle.js"),close=require("../../../icons/basic/close.js"),information=require("../../../icons/notifications/information.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Banner=({content:e,href:t,onClose:r,title:a,type:o,setContentInNewLine:l=!1,additionalContent:n,sx:i})=>{var c={error:React__default.default.createElement(alert_octogon.AlertOctogon,{size:24}),info:React__default.default.createElement(information.Information,{size:24}),success:React__default.default.createElement(alert_circle.AlertCircle,{size:24}),warning:React__default.default.createElement(alert_triangle.AlertTriangle,{size:24})};return React__default.default.createElement(Wrapper,{as:"output",$dir:"row",$gap:8,$type:o,$sx:i},c[o],React__default.default.createElement(box.Box,{$dir:l?"column":"row",$gap:4},React__default.default.createElement(paragraph.P,{as:"span",$semiBold:!0},a),React__default.default.createElement(paragraph.P,{as:"span",sx:l?"margin-top: 12px;":""},e),n&&React__default.default.createElement(paragraph.P,{as:"span"},n),t&&React__default.default.createElement(paragraph.P,{as:"a",href:t,$color:"primary-blue-2"},"Read more")),r&&React__default.default.createElement(button.Button,{icon:React__default.default.createElement(close.Close,{size:24}),onClick:r,type:"special"}))},Wrapper=styled.styled.output`
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var styled = require('styled-components');
6
+ var styles = require('../../../common/styles.js');
7
+ var box = require('../../atoms/box/box.js');
8
+ var button = require('../../actions/button/button.js');
9
+ var paragraph = require('../../atoms/typography/paragraph.js');
10
+ var alert_circle = require('../../../icons/notifications/alert_circle.js');
11
+ var alert_octogon = require('../../../icons/notifications/alert_octogon.js');
12
+ var alert_triangle = require('../../../icons/notifications/alert_triangle.js');
13
+ var close = require('../../../icons/basic/close.js');
14
+ var information = require('../../../icons/notifications/information.js');
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
+
20
+ const Banner = ({ content, href, onClose, title, type, setContentInNewLine = false, additionalContent, sx, }) => {
21
+ const iconLookup = {
22
+ error: React__default.default.createElement(alert_octogon.AlertOctogon, { size: 24 }),
23
+ info: React__default.default.createElement(information.Information, { size: 24 }),
24
+ success: React__default.default.createElement(alert_circle.AlertCircle, { size: 24 }),
25
+ warning: React__default.default.createElement(alert_triangle.AlertTriangle, { size: 24 }),
26
+ };
27
+ return (React__default.default.createElement(Wrapper, { as: "output", "$dir": "row", "$gap": 8, "$type": type, "$sx": sx },
28
+ iconLookup[type],
29
+ React__default.default.createElement(box.Box, { "$dir": setContentInNewLine ? 'column' : 'row', "$gap": 4 },
30
+ React__default.default.createElement(paragraph.P, { as: "span", "$semiBold": true }, title),
31
+ React__default.default.createElement(paragraph.P, { as: "span", sx: setContentInNewLine ? 'margin-top: 12px;' : '' }, content),
32
+ additionalContent && React__default.default.createElement(paragraph.P, { as: "span" }, additionalContent),
33
+ href && (React__default.default.createElement(paragraph.P, { as: "a", href: href, "$color": "primary-blue-2" }, "Read more"))),
34
+ onClose && (React__default.default.createElement(button.Button, { icon: React__default.default.createElement(close.Close, { size: 24 }), onClick: onClose, type: "special" }))));
35
+ };
36
+ const Wrapper = styled.styled.output `
3
37
  width: 100%;
4
38
  box-sizing: border-box;
5
39
  padding: 12px 16px;
6
40
  display: flex;
7
- background-color: ${({$type:e})=>"error"===e?"var(--color-red-9)":"info"===e?"var(--color-blue-9)":"success"===e?"var(--color-green-9)":"var(--color-orange-9)"};
41
+ background-color: ${({ $type }) => $type === 'error'
42
+ ? 'var(--color-red-9)'
43
+ : $type === 'info'
44
+ ? 'var(--color-blue-9)'
45
+ : $type === 'success'
46
+ ? 'var(--color-green-9)'
47
+ : 'var(--color-orange-9)'};
8
48
  border-bottom: 1px solid
9
- ${({$type:e})=>"error"===e?"var(--color-red-4)":"info"===e?"var(--color-blue-4)":"success"===e?"var(--color-green-3)":"var(--color-orange-5)"};
49
+ ${({ $type }) => $type === 'error'
50
+ ? 'var(--color-red-4)'
51
+ : $type === 'info'
52
+ ? 'var(--color-blue-4)'
53
+ : $type === 'success'
54
+ ? 'var(--color-green-3)'
55
+ : 'var(--color-orange-5)'};
10
56
  box-shadow: var(--elevation-2);
11
57
  border-radius: var(--small);
12
58
 
13
59
  & > svg {
14
- fill: ${({$type:e})=>"error"===e?"var(--color-red-4)":"info"===e?"var(--color-blue-4)":"success"===e?"var(--color-green-3)":"var(--color-orange-5)"};
60
+ fill: ${({ $type }) => $type === 'error'
61
+ ? 'var(--color-red-4)'
62
+ : $type === 'info'
63
+ ? 'var(--color-blue-4)'
64
+ : $type === 'success'
65
+ ? 'var(--color-green-3)'
66
+ : 'var(--color-orange-5)'};
15
67
  }
16
68
 
17
69
  a {
@@ -37,5 +89,7 @@
37
89
 
38
90
  ${styles.Styles.flex}
39
91
 
40
- ${({$sx:e})=>e||""}
41
- `;exports.Banner=Banner;
92
+ ${({ $sx }) => ($sx ? $sx : '')}
93
+ `;
94
+
95
+ exports.Banner = Banner;
@@ -1,11 +1,77 @@
1
1
  "use client";
2
- "use strict";var React=require("react"),styled=require("styled-components"),close=require("../../../icons/basic/close.js");function _interopDefaultCompat(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var React__default=_interopDefaultCompat(React);const colorLookup={"primary-blue":{primary:"var(--color-primary-blue-2)",secondary:"var(--color-white)",text:"var(--color-white)"},blue:{primary:"var(--color-blue-9)",secondary:"var(--color-blue-5)",text:"var(--color-grey-4)"},green:{primary:"var(--color-green-9)",secondary:"var(--color-green-5)",text:"var(--color-grey-4)"},grey:{primary:"var(--color-grey-9)",secondary:"var(--color-grey-4)",text:"var(--color-grey-4)"},orange:{primary:"var(--color-orange-9)",secondary:"var(--color-orange-5)",text:"var(--color-grey-4)"},purple:{primary:"var(--color-purple-9)",secondary:"var(--color-purple-5)",text:"var(--color-grey-4)"},red:{primary:"var(--color-red-9)",secondary:"var(--color-red-5)",text:"var(--color-grey-4)"},turquoise:{primary:"var(--color-turquoise-9)",secondary:"var(--color-turquoise-5)",text:"var(--color-grey-4)"},yellow:{primary:"var(--color-yellow-9)",secondary:"var(--color-yellow-9)",text:"var(--color-grey-4)"}},Chip=({children:r,color:o,dot:e,onDismiss:t,size:a})=>{var l=colorLookup[o].primary,c=colorLookup[o].text,o=colorLookup[o].secondary;return React__default.default.createElement(Component,{$bgColor:l,$size:a,$textColor:c},e&&React__default.default.createElement(Dot,{$secondaryColor:o}),r,t&&React__default.default.createElement(close.Close,{size:16,onClick:t}))},Component=styled.styled.div`
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var styled = require('styled-components');
6
+ var close = require('../../../icons/basic/close.js');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
+
12
+ const colorLookup = {
13
+ 'primary-blue': {
14
+ primary: 'var(--color-primary-blue-2)',
15
+ secondary: 'var(--color-white)',
16
+ text: 'var(--color-white)',
17
+ },
18
+ blue: {
19
+ primary: 'var(--color-blue-9)',
20
+ secondary: 'var(--color-blue-5)',
21
+ text: 'var(--color-grey-4)',
22
+ },
23
+ green: {
24
+ primary: 'var(--color-green-9)',
25
+ secondary: 'var(--color-green-5)',
26
+ text: 'var(--color-grey-4)',
27
+ },
28
+ grey: {
29
+ primary: 'var(--color-grey-9)',
30
+ secondary: 'var(--color-grey-4)',
31
+ text: 'var(--color-grey-4)',
32
+ },
33
+ orange: {
34
+ primary: 'var(--color-orange-9)',
35
+ secondary: 'var(--color-orange-5)',
36
+ text: 'var(--color-grey-4)',
37
+ },
38
+ purple: {
39
+ primary: 'var(--color-purple-9)',
40
+ secondary: 'var(--color-purple-5)',
41
+ text: 'var(--color-grey-4)',
42
+ },
43
+ red: {
44
+ primary: 'var(--color-red-9)',
45
+ secondary: 'var(--color-red-5)',
46
+ text: 'var(--color-grey-4)',
47
+ },
48
+ turquoise: {
49
+ primary: 'var(--color-turquoise-9)',
50
+ secondary: 'var(--color-turquoise-5)',
51
+ text: 'var(--color-grey-4)',
52
+ },
53
+ yellow: {
54
+ primary: 'var(--color-yellow-9)',
55
+ secondary: 'var(--color-yellow-9)',
56
+ text: 'var(--color-grey-4)',
57
+ },
58
+ };
59
+ const Chip = ({ children, color, dot, onDismiss, size }) => {
60
+ const bgColor = colorLookup[color].primary;
61
+ const textColor = colorLookup[color].text;
62
+ const dotColor = colorLookup[color].secondary;
63
+ return (React__default.default.createElement(Component, { "$bgColor": bgColor, "$size": size, "$textColor": textColor },
64
+ dot && React__default.default.createElement(Dot, { "$secondaryColor": dotColor }),
65
+ children,
66
+ onDismiss && React__default.default.createElement(close.Close, { size: 16, onClick: onDismiss })));
67
+ };
68
+ const Component = styled.styled.div `
3
69
  display: flex;
4
70
  align-items: center;
5
71
  gap: 8px;
6
72
  border-radius: 32px;
7
- background-color: ${({$bgColor:r})=>r};
8
- color: ${({$textColor:r})=>r};
73
+ background-color: ${({ $bgColor }) => $bgColor};
74
+ color: ${({ $textColor }) => $textColor};
9
75
  font-family: var(--font-inter);
10
76
  user-select: none;
11
77
 
@@ -13,18 +79,25 @@
13
79
  fill: currentColor;
14
80
  cursor: pointer;
15
81
  }
16
- ${({$size:r})=>"small"===r?`
82
+ ${({ $size }) => $size === 'small'
83
+ ? // small
84
+ `
17
85
  padding: 4px 16px;
18
86
  font-size: 12px;
19
87
  line-height: 16px;
20
- font-weight: 500;`:`
88
+ font-weight: 500;`
89
+ : // large
90
+ `
21
91
  padding: 8px 16px;
22
92
  font-size: 14px;
23
93
  line-height: 20px;
24
94
  font-weight: 600;`}
25
- `,Dot=styled.styled.div`
95
+ `;
96
+ const Dot = styled.styled.div `
26
97
  width: 8px;
27
98
  height: 8px;
28
99
  border-radius: 50%;
29
- background-color: ${({$secondaryColor:r})=>r};
30
- `;exports.Chip=Chip;
100
+ background-color: ${({ $secondaryColor }) => $secondaryColor};
101
+ `;
102
+
103
+ exports.Chip = Chip;
@@ -1,20 +1,44 @@
1
1
  "use client";
2
- "use strict";var React=require("react"),styled=require("styled-components"),colors=require("../../../common/colors.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),styled__default=_interopDefaultCompat(styled);const Loader=({color:e="grey-1",inline:t,size:r=16,sx:o})=>{let a=3;return 96<r?a=10:47<r?a=5:23<r&&(a=4),React__default.default.createElement(Component,{$borderWidth:a,$color:e,$inline:!!t,$size:r,$sx:o})},spin=styled.keyframes`
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var styled = require('styled-components');
6
+ var colors = require('../../../common/colors.js');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
+ var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
12
+
13
+ const Loader = ({ color = 'grey-1', inline, size = 16, sx, }) => {
14
+ let borderWidth = 3;
15
+ if (size > 96)
16
+ borderWidth = 10;
17
+ else if (size > 47)
18
+ borderWidth = 5;
19
+ else if (size > 23)
20
+ borderWidth = 4;
21
+ return (React__default.default.createElement(Component, { "$borderWidth": borderWidth, "$color": color, "$inline": !!inline, "$size": size, "$sx": sx }));
22
+ };
23
+ const spin = styled.keyframes `
3
24
  0% { transform: rotate(0deg); }
4
25
  100% { transform: rotate(360deg); }
5
- `,Component=styled__default.default.div`
26
+ `;
27
+ const Component = styled__default.default.div `
6
28
  border: 2px solid transparent;
7
29
  border-radius: 50%;
8
30
  animation: ${spin} 0.8s linear infinite;
9
31
 
10
- border-width: ${({$borderWidth:e})=>e+"px"};
11
- border-color: ${({$color:e})=>colors.colorReference[e]};
32
+ border-width: ${({ $borderWidth }) => `${$borderWidth}px`};
33
+ border-color: ${({ $color }) => colors.colorReference[$color]};
12
34
  border-top-color: transparent;
13
35
 
14
- ${({$size:e})=>`
15
- height: ${e}px;
16
- width: ${e}px;
36
+ ${({ $size }) => `
37
+ height: ${$size}px;
38
+ width: ${$size}px;
17
39
  `}
18
40
 
19
- ${({$sx:e})=>e||""};
20
- `;exports.Loader=Loader;
41
+ ${({ $sx }) => ($sx ? $sx : '')};
42
+ `;
43
+
44
+ exports.Loader = Loader;
@@ -1,18 +1,69 @@
1
1
  "use client";
2
- "use strict";var React=require("react"),styled=require("styled-components"),styles=require("../../../common/styles.js"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),paragraph=require("../../atoms/typography/paragraph.js"),alert_circle=require("../../../icons/notifications/alert_circle.js"),alert_octogon=require("../../../icons/notifications/alert_octogon.js"),alert_triangle=require("../../../icons/notifications/alert_triangle.js"),close=require("../../../icons/basic/close.js"),information=require("../../../icons/notifications/information.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Notification=({content:e,href:t,onClose:r,sx:a,title:o,type:l})=>{var i={error:React__default.default.createElement(alert_octogon.AlertOctogon,{size:24}),info:React__default.default.createElement(information.Information,{size:24}),success:React__default.default.createElement(alert_circle.AlertCircle,{size:24}),warning:React__default.default.createElement(alert_triangle.AlertTriangle,{size:24})};return React__default.default.createElement(Wrapper,{as:t?"a":"output",href:t,$dir:"column",$gap:8,$sx:a,$type:l},React__default.default.createElement(box.Box,{$dir:"row",$gap:8,$flex:1},i[l],React__default.default.createElement(paragraph.P,{as:"span",$semiBold:!0},o),r&&React__default.default.createElement(button.Button,{icon:React__default.default.createElement(close.Close,{size:24}),onClick:r,sx:"margin-left: auto;",type:"special"})),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:4},React__default.default.createElement(paragraph.P,{as:"span",sx:"padding-left: 32px;"},e)))},Wrapper=styled.styled.output`
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var styled = require('styled-components');
6
+ var styles = require('../../../common/styles.js');
7
+ var box = require('../../atoms/box/box.js');
8
+ var button = require('../../actions/button/button.js');
9
+ var paragraph = require('../../atoms/typography/paragraph.js');
10
+ var alert_circle = require('../../../icons/notifications/alert_circle.js');
11
+ var alert_octogon = require('../../../icons/notifications/alert_octogon.js');
12
+ var alert_triangle = require('../../../icons/notifications/alert_triangle.js');
13
+ var close = require('../../../icons/basic/close.js');
14
+ var information = require('../../../icons/notifications/information.js');
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
+
20
+ const Notification = ({ content, href, onClose, sx, title, type, }) => {
21
+ const iconLookup = {
22
+ error: React__default.default.createElement(alert_octogon.AlertOctogon, { size: 24 }),
23
+ info: React__default.default.createElement(information.Information, { size: 24 }),
24
+ success: React__default.default.createElement(alert_circle.AlertCircle, { size: 24 }),
25
+ warning: React__default.default.createElement(alert_triangle.AlertTriangle, { size: 24 }),
26
+ };
27
+ return (React__default.default.createElement(Wrapper, { as: href ? 'a' : 'output', href: href, "$dir": "column", "$gap": 8, "$sx": sx, "$type": type },
28
+ React__default.default.createElement(box.Box, { "$dir": "row", "$gap": 8, "$flex": 1 },
29
+ iconLookup[type],
30
+ React__default.default.createElement(paragraph.P, { as: "span", "$semiBold": true }, title),
31
+ onClose && (React__default.default.createElement(button.Button, { icon: React__default.default.createElement(close.Close, { size: 24 }), onClick: onClose, sx: "margin-left: auto;", type: "special" }))),
32
+ React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 4 },
33
+ React__default.default.createElement(paragraph.P, { as: "span", sx: "padding-left: 32px;" }, content))));
34
+ };
35
+ const Wrapper = styled.styled.output `
3
36
  text-decoration: none;
4
37
  width: 100%;
5
38
  box-sizing: border-box;
6
39
  padding: 16px;
7
40
  display: flex;
8
- background-color: ${({$type:e})=>"error"===e?"var(--color-red-9)":"info"===e?"var(--color-blue-9)":"success"===e?"var(--color-green-9)":"var(--color-orange-9)"};
41
+ background-color: ${({ $type }) => $type === 'error'
42
+ ? 'var(--color-red-9)'
43
+ : $type === 'info'
44
+ ? 'var(--color-blue-9)'
45
+ : $type === 'success'
46
+ ? 'var(--color-green-9)'
47
+ : 'var(--color-orange-9)'};
9
48
  border: 1px solid
10
- ${({$type:e})=>"error"===e?"var(--color-red-8)":"info"===e?"var(--color-blue-8)":"success"===e?"var(--color-green-8)":"var(--color-orange-8)"};
49
+ ${({ $type }) => $type === 'error'
50
+ ? 'var(--color-red-8)'
51
+ : $type === 'info'
52
+ ? 'var(--color-blue-8)'
53
+ : $type === 'success'
54
+ ? 'var(--color-green-8)'
55
+ : 'var(--color-orange-8)'};
11
56
  box-shadow: var(--elevation-2);
12
57
  border-radius: var(--small);
13
58
 
14
59
  & > div > svg {
15
- fill: ${({$type:e})=>"error"===e?"var(--color-red-4)":"info"===e?"var(--color-blue-4)":"success"===e?"var(--color-green-3)":"var(--color-orange-5)"};
60
+ fill: ${({ $type }) => $type === 'error'
61
+ ? 'var(--color-red-4)'
62
+ : $type === 'info'
63
+ ? 'var(--color-blue-4)'
64
+ : $type === 'success'
65
+ ? 'var(--color-green-3)'
66
+ : 'var(--color-orange-5)'};
16
67
  }
17
68
 
18
69
  button > svg {
@@ -30,5 +81,7 @@
30
81
  }
31
82
 
32
83
  ${styles.Styles.flex}
33
- ${({$sx:e})=>e||""}
34
- `;exports.Notification=Notification;
84
+ ${({ $sx }) => ($sx ? $sx : '')}
85
+ `;
86
+
87
+ exports.Notification = Notification;