@soul-refiner/design-system 2.0.0-alpha.14 → 2.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/style-inject/dist/style-inject.es.js +3 -1
- package/dist/src/common/colors.js +4 -1
- package/dist/src/common/date.js +9 -5
- package/dist/src/common/styles.js +19 -19
- package/dist/src/components/actions/button/button.js +45 -39
- package/dist/src/components/actions/dropdown/dropdown.js +41 -35
- package/dist/src/components/actions/rate/rate.js +21 -15
- package/dist/src/components/actions/switch/switch.js +16 -10
- package/dist/src/components/actions/toggle/toggle.js +19 -13
- package/dist/src/components/actions/upload/upload.js +37 -31
- package/dist/src/components/atoms/box/box.js +20 -13
- package/dist/src/components/atoms/hide/hide.js +9 -3
- package/dist/src/components/atoms/seconds_to_duration/seconds_to_duration.js +14 -8
- package/dist/src/components/atoms/time_ago/time_ago.js +9 -3
- package/dist/src/components/atoms/typography/display.js +12 -6
- package/dist/src/components/atoms/typography/heading.js +20 -14
- package/dist/src/components/atoms/typography/paragraph.js +17 -11
- package/dist/src/components/atoms/typography/typography.js +11 -9
- package/dist/src/components/card/action/action.js +29 -22
- package/dist/src/components/card/audio/audio.js +40 -33
- package/dist/src/components/card/card.js +26 -20
- package/dist/src/components/card/feature/feature.js +46 -39
- package/dist/src/components/card/meeting/meeting.js +59 -52
- package/dist/src/components/card/person/person.js +30 -23
- package/dist/src/components/card/price/price.js +39 -33
- package/dist/src/components/card/regular/regular.js +16 -9
- package/dist/src/components/card/styles.js +6 -4
- package/dist/src/components/card/video/video.js +40 -33
- package/dist/src/components/card/written/written.js +40 -33
- package/dist/src/components/custom/courses_selection/courses_selection.js +42 -35
- package/dist/src/components/custom/users_selection/users_selection.js +38 -31
- package/dist/src/components/editor/constants.js +178 -2
- package/dist/src/components/editor/context.js +12 -6
- package/dist/src/components/editor/editor.js +27 -21
- package/dist/src/components/editor/icons/border-all.js +10 -4
- package/dist/src/components/editor/icons/border-bottom.js +10 -4
- package/dist/src/components/editor/icons/border-left.js +10 -4
- package/dist/src/components/editor/icons/border-none.js +10 -4
- package/dist/src/components/editor/icons/border-right.js +10 -4
- package/dist/src/components/editor/icons/border-top.js +10 -4
- package/dist/src/components/editor/navbar/alignment_dropdown.js +35 -29
- package/dist/src/components/editor/navbar/button_modal.js +50 -44
- package/dist/src/components/editor/navbar/navbar.js +133 -126
- package/dist/src/components/editor/navbar/style_dropdown.js +26 -20
- package/dist/src/components/editor/plugins/blocks/blockquote.js +15 -9
- package/dist/src/components/editor/plugins/blocks/blocks.js +38 -36
- package/dist/src/components/editor/plugins/blocks/buttons.js +31 -24
- package/dist/src/components/editor/plugins/blocks/dropdown-menu.js +58 -31
- package/dist/src/components/editor/plugins/blocks/image.js +34 -28
- package/dist/src/components/editor/plugins/blocks/list.js +14 -8
- package/dist/src/components/editor/plugins/blocks/media-popover.js +31 -25
- package/dist/src/components/editor/plugins/blocks/plate-button.js +32 -9
- package/dist/src/components/editor/plugins/blocks/popover.js +38 -12
- package/dist/src/components/editor/plugins/blocks/qa.js +35 -28
- package/dist/src/components/editor/plugins/blocks/resizable.js +19 -11
- package/dist/src/components/editor/plugins/blocks/separator.js +28 -6
- package/dist/src/components/editor/plugins/blocks/table-cell.js +30 -23
- package/dist/src/components/editor/plugins/blocks/table-row.js +13 -7
- package/dist/src/components/editor/plugins/blocks/table.js +81 -73
- package/dist/src/components/editor/plugins/blocks/text.js +73 -54
- package/dist/src/components/editor/plugins/blocks/video.js +22 -15
- package/dist/src/components/editor/plugins/leafs/leafs.js +20 -18
- package/dist/src/components/editor/plugins/leafs/link.js +41 -34
- package/dist/src/components/editor/plugins/marks/marks.js +13 -11
- package/dist/src/components/editor/plugins/plate.js +37 -35
- package/dist/src/components/editor/plugins/utils/exitBreak.js +12 -10
- package/dist/src/components/editor/plugins/utils/resetBlockType.js +8 -6
- package/dist/src/components/editor/plugins/utils/selectOnBackspace.js +5 -3
- package/dist/src/components/editor/plugins/utils/softBreak.js +5 -3
- package/dist/src/components/editor/plugins/utils/utils.js +13 -11
- package/dist/src/components/editor/simple_editor/navbar.js +89 -83
- package/dist/src/components/editor/simple_editor/plugins.js +64 -62
- package/dist/src/components/editor/simple_editor/simple_editor.js +19 -13
- package/dist/src/components/editor/styles/menu_button.js +5 -3
- package/dist/src/components/feedback/animated_toast/animated_toast.js +18 -12
- package/dist/src/components/feedback/badge/badge.js +15 -9
- package/dist/src/components/feedback/banner/banner.js +31 -25
- package/dist/src/components/feedback/chip/chip.js +15 -9
- package/dist/src/components/feedback/loader/loader.js +14 -8
- package/dist/src/components/feedback/notification/notification.js +30 -24
- package/dist/src/components/feedback/progress/progress.js +34 -28
- package/dist/src/components/feedback/toast/toast.js +30 -24
- package/dist/src/components/feedback/tooltip/tooltip.js +15 -9
- package/dist/src/components/iconography/avatar/avatar.js +54 -47
- package/dist/src/components/iconography/avatar/icons/approved.js +12 -6
- package/dist/src/components/iconography/avatar/icons/busy.js +12 -6
- package/dist/src/components/iconography/avatar/icons/declined.js +12 -6
- package/dist/src/components/iconography/avatar/icons/default.js +11 -5
- package/dist/src/components/iconography/avatar/icons/focus.js +12 -6
- package/dist/src/components/iconography/avatar/icons/locked.js +12 -6
- package/dist/src/components/iconography/avatar/icons/offline.js +12 -6
- package/dist/src/components/iconography/avatar/icons/online.js +11 -5
- package/dist/src/components/iconography/avatar/icons/subscribed.js +18 -12
- package/dist/src/components/iconography/icon/icon.js +12 -6
- package/dist/src/components/input/calendar/calendar.js +55 -49
- package/dist/src/components/input/checkbox/checkbox.js +14 -8
- package/dist/src/components/input/date/date.js +72 -66
- package/dist/src/components/input/filter/filter.js +67 -61
- package/dist/src/components/input/filter/filter_option.js +24 -17
- package/dist/src/components/input/radio/radio.js +19 -13
- package/dist/src/components/input/search/search.js +26 -20
- package/dist/src/components/input/select/select.js +16 -10
- package/dist/src/components/input/text_area/text_area.js +27 -21
- package/dist/src/components/input/text_input/text_input.js +30 -24
- package/dist/src/components/input/time/time.js +18 -12
- package/dist/src/components/media/video/video.js +15 -7
- package/dist/src/components/media/video-player/playlist-item.js +30 -23
- package/dist/src/components/media/video-player/video.js +56 -48
- package/dist/src/components/navigation/breadcrumb/breadcrumb.js +29 -22
- package/dist/src/components/navigation/inner/inner.js +51 -44
- package/dist/src/components/navigation/tabs/tabs.js +20 -13
- package/dist/src/components/surfaces/accordion/accordion.js +26 -20
- package/dist/src/components/surfaces/calendar_date/calendar_date.js +26 -20
- package/dist/src/components/surfaces/carousel/card/card.js +21 -15
- package/dist/src/components/surfaces/comment/comment.js +82 -75
- package/dist/src/components/surfaces/comment/helpers.js +3 -1
- package/dist/src/components/surfaces/drawer/drawer.js +32 -26
- package/dist/src/components/surfaces/message/message.js +22 -16
- package/dist/src/components/surfaces/modal/modal.js +35 -29
- package/dist/src/components/surfaces/portal/portal.js +13 -6
- package/dist/src/components/surfaces/post/post.js +63 -55
- package/dist/src/components/table/table/table.js +26 -20
- package/dist/src/emoji/emojis.json.js +9 -1
- package/dist/src/icons/arrow/arrow_all.js +11 -5
- package/dist/src/icons/arrow/arrow_all_diagonal.js +11 -5
- package/dist/src/icons/arrow/arrow_both_downwards.js +11 -5
- package/dist/src/icons/arrow/arrow_both_upwards.js +11 -5
- package/dist/src/icons/arrow/arrow_circle_left.js +11 -5
- package/dist/src/icons/arrow/arrow_circle_left_double.js +11 -5
- package/dist/src/icons/arrow/arrow_circle_left_double_alert.js +13 -7
- package/dist/src/icons/arrow/arrow_circle_right.js +11 -5
- package/dist/src/icons/arrow/arrow_circle_right_double.js +11 -5
- package/dist/src/icons/arrow/arrow_circle_right_double_alert.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_down_left.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_down_left_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_down_right.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_down_right_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_up_left.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_up_left_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_up_right.js +11 -5
- package/dist/src/icons/arrow/arrow_diagonal_up_right_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_down.js +11 -5
- package/dist/src/icons/arrow/arrow_down_bold.js +11 -5
- package/dist/src/icons/arrow/arrow_down_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_left.js +11 -5
- package/dist/src/icons/arrow/arrow_left_bold.js +11 -5
- package/dist/src/icons/arrow/arrow_left_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_left_curved.js +11 -5
- package/dist/src/icons/arrow/arrow_left_curved_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_right.js +11 -5
- package/dist/src/icons/arrow/arrow_right_bold.js +11 -5
- package/dist/src/icons/arrow/arrow_right_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_right_curved.js +11 -5
- package/dist/src/icons/arrow/arrow_right_curved_circle.js +11 -5
- package/dist/src/icons/arrow/arrow_up.js +11 -5
- package/dist/src/icons/arrow/arrow_up_bold.js +11 -5
- package/dist/src/icons/arrow/arrow_up_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_down.js +11 -5
- package/dist/src/icons/arrow/chevron_down_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_down_double.js +11 -5
- package/dist/src/icons/arrow/chevron_down_double_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_left.js +11 -5
- package/dist/src/icons/arrow/chevron_left_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_left_double.js +11 -5
- package/dist/src/icons/arrow/chevron_left_double_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_right.js +11 -5
- package/dist/src/icons/arrow/chevron_right_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_right_double.js +11 -5
- package/dist/src/icons/arrow/chevron_right_double_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_scroll.js +11 -5
- package/dist/src/icons/arrow/chevron_up.js +11 -5
- package/dist/src/icons/arrow/chevron_up_circle.js +11 -5
- package/dist/src/icons/arrow/chevron_up_double.js +11 -5
- package/dist/src/icons/arrow/chevron_up_double_circle.js +11 -5
- package/dist/src/icons/arrow/forward_all.js +11 -5
- package/dist/src/icons/arrow/forward_all_bold.js +11 -5
- package/dist/src/icons/arrow/forward_bold.js +11 -5
- package/dist/src/icons/arrow/redo.js +11 -5
- package/dist/src/icons/arrow/redo_bold.js +11 -5
- package/dist/src/icons/arrow/reply.js +11 -5
- package/dist/src/icons/arrow/reply_all.js +11 -5
- package/dist/src/icons/arrow/reply_all_bold.js +11 -5
- package/dist/src/icons/arrow/reply_bold.js +11 -5
- package/dist/src/icons/arrow/undo.js +11 -5
- package/dist/src/icons/arrow/undo_bold.js +11 -5
- package/dist/src/icons/audio_video/drag_indicator.js +11 -5
- package/dist/src/icons/audio_video/eject.js +11 -5
- package/dist/src/icons/audio_video/equalizer.js +11 -5
- package/dist/src/icons/audio_video/fast_forward.js +11 -5
- package/dist/src/icons/audio_video/fast_forward_30.js +11 -5
- package/dist/src/icons/audio_video/fullscreen.js +11 -5
- package/dist/src/icons/audio_video/headphones.js +11 -5
- package/dist/src/icons/audio_video/library_add.js +11 -5
- package/dist/src/icons/audio_video/library_music.js +11 -5
- package/dist/src/icons/audio_video/microphone.js +11 -5
- package/dist/src/icons/audio_video/musical_note.js +11 -5
- package/dist/src/icons/audio_video/next.js +11 -5
- package/dist/src/icons/audio_video/pause.js +11 -5
- package/dist/src/icons/audio_video/pause_circle.js +11 -5
- package/dist/src/icons/audio_video/play.js +11 -5
- package/dist/src/icons/audio_video/play_circle.js +11 -5
- package/dist/src/icons/audio_video/play_display.js +11 -5
- package/dist/src/icons/audio_video/play_pause.js +11 -5
- package/dist/src/icons/audio_video/play_solid.js +11 -5
- package/dist/src/icons/audio_video/player_list.js +11 -5
- package/dist/src/icons/audio_video/player_list_add.js +11 -5
- package/dist/src/icons/audio_video/player_list_play.js +11 -5
- package/dist/src/icons/audio_video/previous.js +11 -5
- package/dist/src/icons/audio_video/radio.js +11 -5
- package/dist/src/icons/audio_video/record.js +11 -5
- package/dist/src/icons/audio_video/repeat.js +11 -5
- package/dist/src/icons/audio_video/rewind.js +11 -5
- package/dist/src/icons/audio_video/rewind_30.js +11 -5
- package/dist/src/icons/audio_video/shuffle.js +11 -5
- package/dist/src/icons/audio_video/sound_wave.js +11 -5
- package/dist/src/icons/audio_video/stop.js +11 -5
- package/dist/src/icons/audio_video/stop_circle.js +11 -5
- package/dist/src/icons/audio_video/subscriptions.js +11 -5
- package/dist/src/icons/audio_video/tuner.js +11 -5
- package/dist/src/icons/audio_video/volume.js +11 -5
- package/dist/src/icons/audio_video/volume_high.js +11 -5
- package/dist/src/icons/audio_video/volume_low.js +11 -5
- package/dist/src/icons/audio_video/volume_slash.js +11 -5
- package/dist/src/icons/basic/aa_sansserif.js +12 -6
- package/dist/src/icons/basic/aa_serif.js +12 -6
- package/dist/src/icons/basic/anchor.js +13 -7
- package/dist/src/icons/basic/bible.js +11 -5
- package/dist/src/icons/basic/bold.js +11 -5
- package/dist/src/icons/basic/book.js +11 -5
- package/dist/src/icons/basic/book_open.js +11 -5
- package/dist/src/icons/basic/bookmark.js +11 -5
- package/dist/src/icons/basic/bookmark_add.js +11 -5
- package/dist/src/icons/basic/bookmark_slash.js +11 -5
- package/dist/src/icons/basic/bookmarks.js +11 -5
- package/dist/src/icons/basic/books.js +14 -8
- package/dist/src/icons/basic/box.js +11 -5
- package/dist/src/icons/basic/briefcase.js +11 -5
- package/dist/src/icons/basic/browse_activity.js +11 -5
- package/dist/src/icons/basic/browser.js +11 -5
- package/dist/src/icons/basic/browser_slash.js +11 -5
- package/dist/src/icons/basic/calculator.js +11 -5
- package/dist/src/icons/basic/camera.js +11 -5
- package/dist/src/icons/basic/camera_add.js +11 -5
- package/dist/src/icons/basic/camera_slash.js +11 -5
- package/dist/src/icons/basic/checkmark.js +11 -5
- package/dist/src/icons/basic/checkmark_circle.js +13 -7
- package/dist/src/icons/basic/checkmark_filled.js +11 -5
- package/dist/src/icons/basic/checkmarks.js +11 -5
- package/dist/src/icons/basic/circle.js +11 -5
- package/dist/src/icons/basic/circle_slash.js +13 -7
- package/dist/src/icons/basic/clear_text_style.js +11 -5
- package/dist/src/icons/basic/close.js +11 -5
- package/dist/src/icons/basic/close_circle.js +11 -5
- package/dist/src/icons/basic/close_filled.js +11 -5
- package/dist/src/icons/basic/copy.js +11 -5
- package/dist/src/icons/basic/delete.js +11 -5
- package/dist/src/icons/basic/detail.js +11 -5
- package/dist/src/icons/basic/dot.js +11 -5
- package/dist/src/icons/basic/download.js +11 -5
- package/dist/src/icons/basic/download_arrow.js +11 -5
- package/dist/src/icons/basic/droplet.js +13 -7
- package/dist/src/icons/basic/ellipsis_horizontal.js +11 -5
- package/dist/src/icons/basic/ellipsis_horizontal_circle.js +11 -5
- package/dist/src/icons/basic/ellipsis_vertical.js +11 -5
- package/dist/src/icons/basic/ellipsis_vertical_circle.js +11 -5
- package/dist/src/icons/basic/eye.js +11 -5
- package/dist/src/icons/basic/eye_slash.js +11 -5
- package/dist/src/icons/basic/fingerprint.js +11 -5
- package/dist/src/icons/basic/flag.js +11 -5
- package/dist/src/icons/basic/flag_wave.js +11 -5
- package/dist/src/icons/basic/flag_wave_filled.js +11 -5
- package/dist/src/icons/basic/flame.js +11 -5
- package/dist/src/icons/basic/gauge.js +11 -5
- package/dist/src/icons/basic/glasses.js +11 -5
- package/dist/src/icons/basic/graduation_cap.js +11 -5
- package/dist/src/icons/basic/hashmark.js +11 -5
- package/dist/src/icons/basic/heart.js +11 -5
- package/dist/src/icons/basic/heart_slash.js +11 -5
- package/dist/src/icons/basic/highlighter.js +11 -5
- package/dist/src/icons/basic/home.js +11 -5
- package/dist/src/icons/basic/image.js +11 -5
- package/dist/src/icons/basic/inbox.js +11 -5
- package/dist/src/icons/basic/italic.js +11 -5
- package/dist/src/icons/basic/layers.js +11 -5
- package/dist/src/icons/basic/lightening.js +11 -5
- package/dist/src/icons/basic/lightening_slash.js +11 -5
- package/dist/src/icons/basic/link.js +11 -5
- package/dist/src/icons/basic/link_slash.js +11 -5
- package/dist/src/icons/basic/loudspeaker.js +11 -5
- package/dist/src/icons/basic/maximize.js +11 -5
- package/dist/src/icons/basic/menu.js +11 -5
- package/dist/src/icons/basic/menu_circle.js +11 -5
- package/dist/src/icons/basic/menu_dots.js +11 -5
- package/dist/src/icons/basic/microphone_slash.js +11 -5
- package/dist/src/icons/basic/minimize.js +11 -5
- package/dist/src/icons/basic/minus.js +11 -5
- package/dist/src/icons/basic/minus_circle.js +11 -5
- package/dist/src/icons/basic/move_item.js +11 -5
- package/dist/src/icons/basic/new.js +11 -5
- package/dist/src/icons/basic/newspaper.js +11 -5
- package/dist/src/icons/basic/node.js +11 -5
- package/dist/src/icons/basic/note_pad.js +12 -6
- package/dist/src/icons/basic/options.js +11 -5
- package/dist/src/icons/basic/paint_brush.js +11 -5
- package/dist/src/icons/basic/paperclip.js +11 -5
- package/dist/src/icons/basic/paperclip_slash.js +11 -5
- package/dist/src/icons/basic/pencil.js +11 -5
- package/dist/src/icons/basic/pencil_pad.js +11 -5
- package/dist/src/icons/basic/plus.js +11 -5
- package/dist/src/icons/basic/plus_circle.js +11 -5
- package/dist/src/icons/basic/presentation.js +11 -5
- package/dist/src/icons/basic/printer.js +11 -5
- package/dist/src/icons/basic/profile.js +11 -5
- package/dist/src/icons/basic/profile_check.js +11 -5
- package/dist/src/icons/basic/pulse.js +11 -5
- package/dist/src/icons/basic/qr_code.js +11 -5
- package/dist/src/icons/basic/resize.js +13 -7
- package/dist/src/icons/basic/scan.js +11 -5
- package/dist/src/icons/basic/scissors.js +11 -5
- package/dist/src/icons/basic/screenshot.js +11 -5
- package/dist/src/icons/basic/search.js +11 -5
- package/dist/src/icons/basic/select_item.js +12 -6
- package/dist/src/icons/basic/settings.js +11 -5
- package/dist/src/icons/basic/share.js +11 -5
- package/dist/src/icons/basic/share_external.js +11 -5
- package/dist/src/icons/basic/square.js +11 -5
- package/dist/src/icons/basic/star.js +11 -5
- package/dist/src/icons/basic/star_circle.js +11 -5
- package/dist/src/icons/basic/star_filled.js +11 -5
- package/dist/src/icons/basic/star_filled_half.js +11 -5
- package/dist/src/icons/basic/star_slash.js +11 -5
- package/dist/src/icons/basic/sticker.js +11 -5
- package/dist/src/icons/basic/strikethrough.js +11 -5
- package/dist/src/icons/basic/subtask.js +12 -6
- package/dist/src/icons/basic/tax.js +14 -8
- package/dist/src/icons/basic/text_bg_color.js +11 -5
- package/dist/src/icons/basic/text_color.js +11 -5
- package/dist/src/icons/basic/textbox.js +11 -5
- package/dist/src/icons/basic/thumbs_down.js +11 -5
- package/dist/src/icons/basic/thumbs_up.js +11 -5
- package/dist/src/icons/basic/thumbs_up_filled.js +11 -5
- package/dist/src/icons/basic/toggle_left.js +11 -5
- package/dist/src/icons/basic/toggle_right.js +11 -5
- package/dist/src/icons/basic/translate.js +11 -5
- package/dist/src/icons/basic/trash.js +11 -5
- package/dist/src/icons/basic/trash_slash.js +11 -5
- package/dist/src/icons/basic/underline.js +11 -5
- package/dist/src/icons/basic/upload.js +11 -5
- package/dist/src/icons/basic/video.js +11 -5
- package/dist/src/icons/basic/video_add.js +12 -6
- package/dist/src/icons/basic/video_slash.js +11 -5
- package/dist/src/icons/basic/wrench.js +11 -5
- package/dist/src/icons/basic/zoom_in.js +11 -5
- package/dist/src/icons/basic/zoom_out.js +11 -5
- package/dist/src/icons/data/bar_chart.js +11 -5
- package/dist/src/icons/data/bar_chart_downward.js +11 -5
- package/dist/src/icons/data/bar_chart_downward_outline.js +11 -5
- package/dist/src/icons/data/bar_chart_upward.js +11 -5
- package/dist/src/icons/data/bar_chart_upward_outline.js +11 -5
- package/dist/src/icons/data/candlestick_chart.js +11 -5
- package/dist/src/icons/data/four_circles.js +11 -5
- package/dist/src/icons/data/legend_toggle.js +11 -5
- package/dist/src/icons/data/line_chart.js +11 -5
- package/dist/src/icons/data/line_chart_area.js +11 -5
- package/dist/src/icons/data/line_chart_area_shaded.js +11 -5
- package/dist/src/icons/data/line_chart_double.js +11 -5
- package/dist/src/icons/data/line_chart_downward.js +11 -5
- package/dist/src/icons/data/line_chart_node.js +11 -5
- package/dist/src/icons/data/line_chart_outline.js +11 -5
- package/dist/src/icons/data/line_chart_search.js +11 -5
- package/dist/src/icons/data/line_chart_stars.js +11 -5
- package/dist/src/icons/data/line_chart_upward.js +11 -5
- package/dist/src/icons/data/pie_chart.js +12 -6
- package/dist/src/icons/data/tree.js +11 -5
- package/dist/src/icons/email/mail.js +11 -5
- package/dist/src/icons/email/mail_check.js +11 -5
- package/dist/src/icons/email/mail_minus.js +11 -5
- package/dist/src/icons/email/mail_send.js +11 -5
- package/dist/src/icons/email/send.js +11 -5
- package/dist/src/icons/email/send_close.js +11 -5
- package/dist/src/icons/email/send_schedule.js +11 -5
- package/dist/src/icons/email/send_text.js +11 -5
- package/dist/src/icons/emoji/emoji_add.js +11 -5
- package/dist/src/icons/emoji/laughing.js +11 -5
- package/dist/src/icons/emoji/neutral.js +11 -5
- package/dist/src/icons/emoji/sad.js +11 -5
- package/dist/src/icons/emoji/shocked.js +11 -5
- package/dist/src/icons/emoji/smile.js +11 -5
- package/dist/src/icons/file/clipboard.js +11 -5
- package/dist/src/icons/file/clipboard_check.js +11 -5
- package/dist/src/icons/file/clipboard_close.js +11 -5
- package/dist/src/icons/file/clipboard_minus.js +11 -5
- package/dist/src/icons/file/clipboard_plus.js +11 -5
- package/dist/src/icons/file/clipboard_text.js +11 -5
- package/dist/src/icons/file/file.js +11 -5
- package/dist/src/icons/file/file_add.js +11 -5
- package/dist/src/icons/file/file_check.js +11 -5
- package/dist/src/icons/file/file_close.js +11 -5
- package/dist/src/icons/file/file_code.js +11 -5
- package/dist/src/icons/file/file_download.js +11 -5
- package/dist/src/icons/file/file_draft.js +11 -5
- package/dist/src/icons/file/file_gear.js +12 -6
- package/dist/src/icons/file/file_minus.js +11 -5
- package/dist/src/icons/file/file_plus.js +11 -5
- package/dist/src/icons/file/file_scan.js +11 -5
- package/dist/src/icons/file/file_shred.js +11 -5
- package/dist/src/icons/file/file_text.js +11 -5
- package/dist/src/icons/file/file_upload.js +11 -5
- package/dist/src/icons/file/folder.js +11 -5
- package/dist/src/icons/file/folder_add.js +11 -5
- package/dist/src/icons/file/folder_arrow.js +11 -5
- package/dist/src/icons/file/folder_check.js +11 -5
- package/dist/src/icons/file/folder_close.js +11 -5
- package/dist/src/icons/file/folder_cloud.js +11 -5
- package/dist/src/icons/file/folder_gear.js +12 -6
- package/dist/src/icons/file/folder_minus.js +11 -5
- package/dist/src/icons/file/folder_music.js +11 -5
- package/dist/src/icons/file/folder_open.js +11 -5
- package/dist/src/icons/file/folder_plus.js +11 -5
- package/dist/src/icons/file/folder_zip.js +11 -5
- package/dist/src/icons/file/note.js +11 -5
- package/dist/src/icons/file/note_text.js +11 -5
- package/dist/src/icons/file/pdf.js +11 -5
- package/dist/src/icons/file/photo.js +11 -5
- package/dist/src/icons/finance/bitcoin.js +11 -5
- package/dist/src/icons/finance/coins.js +15 -9
- package/dist/src/icons/finance/credit_card.js +11 -5
- package/dist/src/icons/finance/credit_card_add.js +11 -5
- package/dist/src/icons/finance/credit_card_face.js +11 -5
- package/dist/src/icons/finance/credit_card_member.js +11 -5
- package/dist/src/icons/finance/credit_card_outcome.js +11 -5
- package/dist/src/icons/finance/credit_card_scan.js +11 -5
- package/dist/src/icons/finance/credit_card_share.js +11 -5
- package/dist/src/icons/finance/credit_card_slash.js +11 -5
- package/dist/src/icons/finance/currency_exchange.js +11 -5
- package/dist/src/icons/finance/dollar.js +11 -5
- package/dist/src/icons/finance/ethereum.js +11 -5
- package/dist/src/icons/finance/paypass.js +11 -5
- package/dist/src/icons/finance/strongbox.js +11 -5
- package/dist/src/icons/finance/wallet.js +11 -5
- package/dist/src/icons/index.js +1095 -545
- package/dist/src/icons/layout/block_align_bottom.js +11 -5
- package/dist/src/icons/layout/block_align_center.js +11 -5
- package/dist/src/icons/layout/block_align_left.js +11 -5
- package/dist/src/icons/layout/block_align_middle.js +11 -5
- package/dist/src/icons/layout/block_align_right.js +11 -5
- package/dist/src/icons/layout/block_align_top.js +11 -5
- package/dist/src/icons/layout/block_horizontal.js +11 -5
- package/dist/src/icons/layout/block_vertical.js +11 -5
- package/dist/src/icons/layout/edit_shape.js +11 -5
- package/dist/src/icons/layout/elements.js +11 -5
- package/dist/src/icons/layout/elements_add.js +11 -5
- package/dist/src/icons/layout/elements_filled.js +11 -5
- package/dist/src/icons/layout/elements_masonry.js +11 -5
- package/dist/src/icons/layout/frame.js +11 -5
- package/dist/src/icons/layout/frame_stack.js +11 -5
- package/dist/src/icons/layout/grid.js +11 -5
- package/dist/src/icons/layout/grid_column_three.js +11 -5
- package/dist/src/icons/layout/grid_column_two.js +11 -5
- package/dist/src/icons/layout/grid_dynamic.js +11 -5
- package/dist/src/icons/layout/grid_frame.js +11 -5
- package/dist/src/icons/layout/grid_row_three.js +11 -5
- package/dist/src/icons/layout/grid_row_two.js +11 -5
- package/dist/src/icons/layout/grid_six.js +11 -5
- package/dist/src/icons/layout/grid_small.js +11 -5
- package/dist/src/icons/layout/iframe.js +11 -5
- package/dist/src/icons/layout/kanban.js +11 -5
- package/dist/src/icons/layout/layout.js +11 -5
- package/dist/src/icons/layout/list.js +11 -5
- package/dist/src/icons/layout/list_filled.js +16 -10
- package/dist/src/icons/layout/padding.js +11 -5
- package/dist/src/icons/layout/page_break.js +11 -5
- package/dist/src/icons/layout/rotate_left.js +11 -5
- package/dist/src/icons/layout/rotate_right.js +11 -5
- package/dist/src/icons/layout/ruler.js +11 -5
- package/dist/src/icons/layout/segment.js +11 -5
- package/dist/src/icons/layout/select_area.js +11 -5
- package/dist/src/icons/layout/select_boundary.js +11 -5
- package/dist/src/icons/layout/sidebar_left.js +11 -5
- package/dist/src/icons/layout/sidebar_right.js +11 -5
- package/dist/src/icons/layout/slides.js +11 -5
- package/dist/src/icons/layout/slides_horizontal.js +11 -5
- package/dist/src/icons/layout/slides_vertical.js +16 -10
- package/dist/src/icons/layout/stack.js +11 -5
- package/dist/src/icons/layout/text.js +11 -5
- package/dist/src/icons/maps/atlas.js +11 -5
- package/dist/src/icons/maps/compass.js +11 -5
- package/dist/src/icons/maps/direction.js +11 -5
- package/dist/src/icons/maps/direction_angled.js +11 -5
- package/dist/src/icons/maps/globe.js +11 -5
- package/dist/src/icons/maps/globe_slash.js +11 -5
- package/dist/src/icons/maps/location.js +11 -5
- package/dist/src/icons/maps/location_slash.js +11 -5
- package/dist/src/icons/maps/map.js +11 -5
- package/dist/src/icons/maps/marker.js +11 -5
- package/dist/src/icons/maps/panorama.js +11 -5
- package/dist/src/icons/maps/pin.js +11 -5
- package/dist/src/icons/maps/pin_arrow.js +11 -5
- package/dist/src/icons/maps/pin_location.js +11 -5
- package/dist/src/icons/maps/pin_plus.js +11 -5
- package/dist/src/icons/maps/pin_question.js +11 -5
- package/dist/src/icons/maps/pin_slash.js +11 -5
- package/dist/src/icons/maps/push_pin.js +11 -5
- package/dist/src/icons/maps/push_pin_filled.js +11 -5
- package/dist/src/icons/maps/push_pin_slash.js +11 -5
- package/dist/src/icons/maps/radar.js +11 -5
- package/dist/src/icons/maps/route.js +11 -5
- package/dist/src/icons/message/bubble.js +11 -5
- package/dist/src/icons/message/bubble_question.js +11 -5
- package/dist/src/icons/message/comment.js +11 -5
- package/dist/src/icons/message/comment_add.js +11 -5
- package/dist/src/icons/message/comment_check.js +11 -5
- package/dist/src/icons/message/comment_close.js +11 -5
- package/dist/src/icons/message/comment_minus.js +11 -5
- package/dist/src/icons/message/comment_text.js +11 -5
- package/dist/src/icons/misc/advertisement.js +11 -5
- package/dist/src/icons/misc/atom.js +11 -5
- package/dist/src/icons/misc/bone.js +11 -5
- package/dist/src/icons/misc/brightness_high.js +11 -5
- package/dist/src/icons/misc/brightness_low.js +11 -5
- package/dist/src/icons/misc/contrast.js +11 -5
- package/dist/src/icons/misc/crosshairs.js +11 -5
- package/dist/src/icons/misc/crown.js +11 -5
- package/dist/src/icons/misc/footprint.js +11 -5
- package/dist/src/icons/misc/form.js +11 -5
- package/dist/src/icons/misc/funnel.js +11 -5
- package/dist/src/icons/misc/infinite.js +11 -5
- package/dist/src/icons/misc/insert_button.js +11 -5
- package/dist/src/icons/misc/light_bulb.js +11 -5
- package/dist/src/icons/misc/moon.js +11 -5
- package/dist/src/icons/misc/nut.js +11 -5
- package/dist/src/icons/misc/planet.js +11 -5
- package/dist/src/icons/misc/plus_thick.js +11 -5
- package/dist/src/icons/misc/pocket.js +11 -5
- package/dist/src/icons/misc/rocket.js +11 -5
- package/dist/src/icons/misc/soup.js +15 -9
- package/dist/src/icons/misc/sun.js +11 -5
- package/dist/src/icons/misc/toy_horse.js +11 -5
- package/dist/src/icons/misc/trophy.js +11 -5
- package/dist/src/icons/misc/watercloset.js +11 -5
- package/dist/src/icons/notifications/alert_circle.js +11 -5
- package/dist/src/icons/notifications/alert_octogon.js +11 -5
- package/dist/src/icons/notifications/alert_triangle.js +11 -5
- package/dist/src/icons/notifications/app_notification.js +11 -5
- package/dist/src/icons/notifications/bell.js +11 -5
- package/dist/src/icons/notifications/bell_alert.js +11 -5
- package/dist/src/icons/notifications/bell_checkmark.js +11 -5
- package/dist/src/icons/notifications/bell_minus.js +11 -5
- package/dist/src/icons/notifications/bell_plus.js +11 -5
- package/dist/src/icons/notifications/bell_ring.js +13 -7
- package/dist/src/icons/notifications/bell_slash.js +11 -5
- package/dist/src/icons/notifications/information.js +11 -5
- package/dist/src/icons/notifications/minus_octogon.js +11 -5
- package/dist/src/icons/notifications/question_circle.js +11 -5
- package/dist/src/icons/people/group.js +11 -5
- package/dist/src/icons/people/group_add.js +11 -5
- package/dist/src/icons/people/group_chat.js +13 -7
- package/dist/src/icons/people/group_remove.js +11 -5
- package/dist/src/icons/people/group_send.js +12 -6
- package/dist/src/icons/people/groups.js +11 -5
- package/dist/src/icons/people/person.js +11 -5
- package/dist/src/icons/people/person_add.js +11 -5
- package/dist/src/icons/people/person_checkmark.js +11 -5
- package/dist/src/icons/people/person_circle.js +13 -7
- package/dist/src/icons/people/person_close.js +13 -7
- package/dist/src/icons/people/person_remove.js +11 -5
- package/dist/src/icons/people/person_slash.js +13 -7
- package/dist/src/icons/phone/keypad.js +11 -5
- package/dist/src/icons/phone/phone.js +11 -5
- package/dist/src/icons/phone/phone_add.js +11 -5
- package/dist/src/icons/phone/phone_calling.js +11 -5
- package/dist/src/icons/phone/phone_check.js +11 -5
- package/dist/src/icons/phone/phone_close.js +11 -5
- package/dist/src/icons/phone/phone_decline.js +11 -5
- package/dist/src/icons/phone/phone_forwarded.js +11 -5
- package/dist/src/icons/phone/phone_hash.js +11 -5
- package/dist/src/icons/phone/phone_incoming.js +11 -5
- package/dist/src/icons/phone/phone_outgoing.js +11 -5
- package/dist/src/icons/phone/phone_pause.js +11 -5
- package/dist/src/icons/phone/phone_slash.js +11 -5
- package/dist/src/icons/phone/voicemail.js +11 -5
- package/dist/src/icons/security/key.js +11 -5
- package/dist/src/icons/security/key_slash.js +11 -5
- package/dist/src/icons/security/lock.js +11 -5
- package/dist/src/icons/security/lock_circle.js +11 -5
- package/dist/src/icons/security/lock_open.js +11 -5
- package/dist/src/icons/security/lock_slash.js +11 -5
- package/dist/src/icons/security/shield.js +11 -5
- package/dist/src/icons/security/shield_checkmark.js +11 -5
- package/dist/src/icons/security/shield_lock.js +11 -5
- package/dist/src/icons/security/shield_slash.js +11 -5
- package/dist/src/icons/security/verified.js +11 -5
- package/dist/src/icons/shopping/basket.js +11 -5
- package/dist/src/icons/shopping/cart.js +11 -5
- package/dist/src/icons/shopping/cart_filled.js +11 -5
- package/dist/src/icons/shopping/coupon.js +11 -5
- package/dist/src/icons/shopping/coupon_cut.js +11 -5
- package/dist/src/icons/shopping/delivery.js +11 -5
- package/dist/src/icons/shopping/discount.js +11 -5
- package/dist/src/icons/shopping/gift.js +11 -5
- package/dist/src/icons/shopping/gift_bag.js +11 -5
- package/dist/src/icons/shopping/inventory.js +11 -5
- package/dist/src/icons/shopping/point_of_sale.js +11 -5
- package/dist/src/icons/shopping/shirt.js +11 -5
- package/dist/src/icons/shopping/tag.js +11 -5
- package/dist/src/icons/shopping/tag_diagonal.js +11 -5
- package/dist/src/icons/shopping/tote.js +11 -5
- package/dist/src/icons/special/upload_audio.js +16 -10
- package/dist/src/icons/special/upload_file.js +11 -5
- package/dist/src/icons/special/upload_image.js +13 -7
- package/dist/src/icons/special/upload_video.js +14 -8
- package/dist/src/icons/symbols/at.js +11 -5
- package/dist/src/icons/symbols/cc.js +11 -5
- package/dist/src/icons/symbols/cmd.js +11 -5
- package/dist/src/icons/symbols/facebook.js +11 -5
- package/dist/src/icons/symbols/google.js +14 -8
- package/dist/src/icons/symbols/hash.js +11 -5
- package/dist/src/icons/symbols/instagram.js +23 -17
- package/dist/src/icons/symbols/messenger.js +17 -11
- package/dist/src/icons/symbols/twitter.js +11 -5
- package/dist/src/icons/technology/battery.js +11 -5
- package/dist/src/icons/technology/battery_100.js +11 -5
- package/dist/src/icons/technology/battery_20.js +11 -5
- package/dist/src/icons/technology/battery_40.js +11 -5
- package/dist/src/icons/technology/battery_60.js +11 -5
- package/dist/src/icons/technology/battery_80.js +11 -5
- package/dist/src/icons/technology/battery_charging.js +11 -5
- package/dist/src/icons/technology/battery_slash.js +11 -5
- package/dist/src/icons/technology/devices.js +11 -5
- package/dist/src/icons/technology/floppy_disk.js +11 -5
- package/dist/src/icons/technology/iphone.js +11 -5
- package/dist/src/icons/technology/laptop.js +11 -5
- package/dist/src/icons/technology/mobile.js +11 -5
- package/dist/src/icons/technology/monitor.js +11 -5
- package/dist/src/icons/technology/server.js +11 -5
- package/dist/src/icons/technology/sim_card.js +11 -5
- package/dist/src/icons/technology/usb_stick.js +11 -5
- package/dist/src/icons/text/align_center.js +11 -5
- package/dist/src/icons/text/align_justified.js +11 -5
- package/dist/src/icons/text/align_left.js +11 -5
- package/dist/src/icons/text/align_right.js +11 -5
- package/dist/src/icons/text/code_block.js +11 -5
- package/dist/src/icons/text/divider.js +11 -5
- package/dist/src/icons/text/footnote.js +13 -7
- package/dist/src/icons/text/indent_decrease.js +11 -5
- package/dist/src/icons/text/indent_increase.js +11 -5
- package/dist/src/icons/text/list_ordered.js +11 -5
- package/dist/src/icons/text/list_unordered.js +11 -5
- package/dist/src/icons/text/quote.js +11 -5
- package/dist/src/icons/text/table.js +11 -5
- package/dist/src/icons/time/alarm.js +11 -5
- package/dist/src/icons/time/alarm_checkmark.js +11 -5
- package/dist/src/icons/time/alarm_minus.js +11 -5
- package/dist/src/icons/time/alarm_plus.js +11 -5
- package/dist/src/icons/time/alarm_slash.js +11 -5
- package/dist/src/icons/time/alarm_snooze.js +11 -5
- package/dist/src/icons/time/calendar.js +11 -5
- package/dist/src/icons/time/calendar_add.js +11 -5
- package/dist/src/icons/time/calendar_checkmark.js +11 -5
- package/dist/src/icons/time/calendar_close.js +11 -5
- package/dist/src/icons/time/calendar_dates.js +11 -5
- package/dist/src/icons/time/calendar_minus.js +11 -5
- package/dist/src/icons/time/calendar_plus.js +11 -5
- package/dist/src/icons/time/calendar_scroll.js +13 -7
- package/dist/src/icons/time/clock.js +11 -5
- package/dist/src/icons/time/clock_history.js +11 -5
- package/dist/src/icons/time/stopwatch.js +11 -5
- package/dist/src/icons/time/timer.js +11 -5
- package/dist/src/icons/time/watch.js +11 -5
- package/dist/src/index.js +116 -57
- package/dist/src/styles/globals.css.js +5 -3
- package/dist/src/utils/date.js +14 -6
- package/dist/src/utils/function.js +3 -1
- package/package.json +1 -1
|
@@ -1,84 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
import { PlateElement, createPluginFactory, ELEMENT_PARAGRAPH, ELEMENT_H1, ELEMENT_H2, ELEMENT_H3, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6 } from '@udecode/plate';
|
|
3
|
-
import { P } from '../../../atoms/typography/paragraph.js';
|
|
4
|
-
import { H } from '../../../atoms/typography/heading.js';
|
|
1
|
+
'use strict';
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var plate = require('@udecode/plate');
|
|
5
|
+
var paragraph = require('../../../atoms/typography/paragraph.js');
|
|
6
|
+
var heading = require('../../../atoms/typography/heading.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 ParagraphElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
7
13
|
const textAlign = props?.style?.textAlign;
|
|
8
|
-
return (React__default.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
9
|
-
React__default.createElement(React__default.Fragment, null,
|
|
10
|
-
React__default.createElement(P, { as: "div", "$textAlign": textAlign }, children))));
|
|
14
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
15
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
16
|
+
React__default.default.createElement(paragraph.P, { as: "div", "$textAlign": textAlign }, children))));
|
|
11
17
|
});
|
|
12
|
-
const createParagraphPlugin = createPluginFactory({
|
|
13
|
-
key: ELEMENT_PARAGRAPH,
|
|
14
|
-
type: ELEMENT_PARAGRAPH,
|
|
18
|
+
const createParagraphPlugin = plate.createPluginFactory({
|
|
19
|
+
key: plate.ELEMENT_PARAGRAPH,
|
|
20
|
+
type: plate.ELEMENT_PARAGRAPH,
|
|
15
21
|
isElement: true,
|
|
16
22
|
});
|
|
17
|
-
const HOneElement = React__default.forwardRef(({ children, ...props }, ref) => {
|
|
23
|
+
const HOneElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
18
24
|
const textAlign = props?.style?.textAlign;
|
|
19
|
-
return (React__default.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
20
|
-
React__default.createElement(React__default.Fragment, null,
|
|
21
|
-
React__default.createElement(H.One, { "$textAlign": textAlign }, children))));
|
|
25
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
26
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
27
|
+
React__default.default.createElement(heading.H.One, { "$textAlign": textAlign }, children))));
|
|
22
28
|
});
|
|
23
|
-
const createHOnePlugin = createPluginFactory({
|
|
24
|
-
key: ELEMENT_H1,
|
|
25
|
-
type: ELEMENT_H1,
|
|
29
|
+
const createHOnePlugin = plate.createPluginFactory({
|
|
30
|
+
key: plate.ELEMENT_H1,
|
|
31
|
+
type: plate.ELEMENT_H1,
|
|
26
32
|
isElement: true,
|
|
27
33
|
});
|
|
28
|
-
const HTwoElement = React__default.forwardRef(({ children, ...props }, ref) => {
|
|
34
|
+
const HTwoElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
29
35
|
const textAlign = props?.style?.textAlign;
|
|
30
|
-
return (React__default.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
31
|
-
React__default.createElement(React__default.Fragment, null,
|
|
32
|
-
React__default.createElement(H.Two, { "$textAlign": textAlign }, children))));
|
|
36
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
37
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
38
|
+
React__default.default.createElement(heading.H.Two, { "$textAlign": textAlign }, children))));
|
|
33
39
|
});
|
|
34
|
-
const createHTwoPlugin = createPluginFactory({
|
|
35
|
-
key: ELEMENT_H2,
|
|
36
|
-
type: ELEMENT_H2,
|
|
40
|
+
const createHTwoPlugin = plate.createPluginFactory({
|
|
41
|
+
key: plate.ELEMENT_H2,
|
|
42
|
+
type: plate.ELEMENT_H2,
|
|
37
43
|
isElement: true,
|
|
38
44
|
});
|
|
39
|
-
const HThreeElement = React__default.forwardRef(({ children, ...props }, ref) => {
|
|
45
|
+
const HThreeElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
40
46
|
const textAlign = props?.style?.textAlign;
|
|
41
|
-
return (React__default.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
42
|
-
React__default.createElement(React__default.Fragment, null,
|
|
43
|
-
React__default.createElement(H.Three, { "$textAlign": textAlign }, children))));
|
|
47
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
48
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
49
|
+
React__default.default.createElement(heading.H.Three, { "$textAlign": textAlign }, children))));
|
|
44
50
|
});
|
|
45
|
-
const createHThreePlugin = createPluginFactory({
|
|
46
|
-
key: ELEMENT_H3,
|
|
47
|
-
type: ELEMENT_H3,
|
|
51
|
+
const createHThreePlugin = plate.createPluginFactory({
|
|
52
|
+
key: plate.ELEMENT_H3,
|
|
53
|
+
type: plate.ELEMENT_H3,
|
|
48
54
|
isElement: true,
|
|
49
55
|
});
|
|
50
|
-
const HFourElement = React__default.forwardRef(({ children, ...props }, ref) => {
|
|
56
|
+
const HFourElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
51
57
|
const textAlign = props?.style?.textAlign;
|
|
52
|
-
return (React__default.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
53
|
-
React__default.createElement(React__default.Fragment, null,
|
|
54
|
-
React__default.createElement(H.Four, { "$textAlign": textAlign }, children))));
|
|
58
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
59
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
60
|
+
React__default.default.createElement(heading.H.Four, { "$textAlign": textAlign }, children))));
|
|
55
61
|
});
|
|
56
|
-
const createHFourPlugin = createPluginFactory({
|
|
57
|
-
key: ELEMENT_H4,
|
|
58
|
-
type: ELEMENT_H4,
|
|
62
|
+
const createHFourPlugin = plate.createPluginFactory({
|
|
63
|
+
key: plate.ELEMENT_H4,
|
|
64
|
+
type: plate.ELEMENT_H4,
|
|
59
65
|
isElement: true,
|
|
60
66
|
});
|
|
61
|
-
const HFiveElement = React__default.forwardRef(({ children, ...props }, ref) => {
|
|
67
|
+
const HFiveElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
62
68
|
const textAlign = props?.style?.textAlign;
|
|
63
|
-
return (React__default.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
64
|
-
React__default.createElement(React__default.Fragment, null,
|
|
65
|
-
React__default.createElement(H.Five, { "$textAlign": textAlign }, children))));
|
|
69
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
70
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
71
|
+
React__default.default.createElement(heading.H.Five, { "$textAlign": textAlign }, children))));
|
|
66
72
|
});
|
|
67
|
-
const createHFivePlugin = createPluginFactory({
|
|
68
|
-
key: ELEMENT_H5,
|
|
69
|
-
type: ELEMENT_H5,
|
|
73
|
+
const createHFivePlugin = plate.createPluginFactory({
|
|
74
|
+
key: plate.ELEMENT_H5,
|
|
75
|
+
type: plate.ELEMENT_H5,
|
|
70
76
|
isElement: true,
|
|
71
77
|
});
|
|
72
|
-
const HSixElement = React__default.forwardRef(({ children, ...props }, ref) => {
|
|
78
|
+
const HSixElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
73
79
|
const textAlign = props?.style?.textAlign;
|
|
74
|
-
return (React__default.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
75
|
-
React__default.createElement(React__default.Fragment, null,
|
|
76
|
-
React__default.createElement(H.Six, { "$textAlign": textAlign }, children))));
|
|
80
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
81
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
82
|
+
React__default.default.createElement(heading.H.Six, { "$textAlign": textAlign }, children))));
|
|
77
83
|
});
|
|
78
|
-
const createHSixPlugin = createPluginFactory({
|
|
79
|
-
key: ELEMENT_H6,
|
|
80
|
-
type: ELEMENT_H6,
|
|
84
|
+
const createHSixPlugin = plate.createPluginFactory({
|
|
85
|
+
key: plate.ELEMENT_H6,
|
|
86
|
+
type: plate.ELEMENT_H6,
|
|
81
87
|
isElement: true,
|
|
82
88
|
});
|
|
83
89
|
|
|
84
|
-
|
|
90
|
+
exports.HFiveElement = HFiveElement;
|
|
91
|
+
exports.HFourElement = HFourElement;
|
|
92
|
+
exports.HOneElement = HOneElement;
|
|
93
|
+
exports.HSixElement = HSixElement;
|
|
94
|
+
exports.HThreeElement = HThreeElement;
|
|
95
|
+
exports.HTwoElement = HTwoElement;
|
|
96
|
+
exports.ParagraphElement = ParagraphElement;
|
|
97
|
+
exports.createHFivePlugin = createHFivePlugin;
|
|
98
|
+
exports.createHFourPlugin = createHFourPlugin;
|
|
99
|
+
exports.createHOnePlugin = createHOnePlugin;
|
|
100
|
+
exports.createHSixPlugin = createHSixPlugin;
|
|
101
|
+
exports.createHThreePlugin = createHThreePlugin;
|
|
102
|
+
exports.createHTwoPlugin = createHTwoPlugin;
|
|
103
|
+
exports.createParagraphPlugin = createParagraphPlugin;
|
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
import { isEditorReadOnly, PlateElement, createPluginFactory, ELEMENT_H2 } from '@udecode/plate';
|
|
3
|
-
import { ELEMENT_VIDEO } from '../../constants.js';
|
|
4
|
-
import { EditorContext } from '../../context.js';
|
|
1
|
+
'use strict';
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var plate = require('@udecode/plate');
|
|
5
|
+
var constants = require('../../constants.js');
|
|
6
|
+
var context = require('../../context.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 VideoTitleElement = React__default.default.forwardRef(function VideoTitle({ editor, element, ...props }, ref) {
|
|
13
|
+
const editable = !plate.isEditorReadOnly(editor);
|
|
8
14
|
const { id } = element;
|
|
9
|
-
const { handleVideoClick, videoTitleLoader: VideoTitle } = React__default.useContext(EditorContext);
|
|
15
|
+
const { handleVideoClick, videoTitleLoader: VideoTitle } = React__default.default.useContext(context.EditorContext);
|
|
10
16
|
const handleClick = () => {
|
|
11
17
|
if (handleVideoClick && !editable) {
|
|
12
18
|
handleVideoClick(id);
|
|
13
19
|
}
|
|
14
20
|
};
|
|
15
|
-
return (React__default.createElement(PlateElement, { asChild: true, editor: editor, element: element, ref: ref, ...props },
|
|
16
|
-
React__default.createElement("div", { contentEditable: false, onClick: handleClick, style: { cursor: editable ? 'initial' : 'pointer' } },
|
|
17
|
-
React__default.createElement(VideoTitle, { courseMediaId: id }))));
|
|
21
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, editor: editor, element: element, ref: ref, ...props },
|
|
22
|
+
React__default.default.createElement("div", { contentEditable: false, onClick: handleClick, style: { cursor: editable ? 'initial' : 'pointer' } },
|
|
23
|
+
React__default.default.createElement(VideoTitle, { courseMediaId: id }))));
|
|
18
24
|
});
|
|
19
|
-
const createVideoTitlePlugin = createPluginFactory({
|
|
20
|
-
key: ELEMENT_VIDEO,
|
|
21
|
-
type: ELEMENT_VIDEO,
|
|
25
|
+
const createVideoTitlePlugin = plate.createPluginFactory({
|
|
26
|
+
key: constants.ELEMENT_VIDEO,
|
|
27
|
+
type: constants.ELEMENT_VIDEO,
|
|
22
28
|
isElement: true,
|
|
23
29
|
isVoid: true,
|
|
24
30
|
component: VideoTitleElement,
|
|
@@ -26,10 +32,11 @@ const createVideoTitlePlugin = createPluginFactory({
|
|
|
26
32
|
inject: {
|
|
27
33
|
props: {
|
|
28
34
|
classNames: undefined,
|
|
29
|
-
validTypes: [ELEMENT_H2],
|
|
35
|
+
validTypes: [plate.ELEMENT_H2],
|
|
30
36
|
},
|
|
31
37
|
},
|
|
32
38
|
}),
|
|
33
39
|
});
|
|
34
40
|
|
|
35
|
-
|
|
41
|
+
exports.VideoTitleElement = VideoTitleElement;
|
|
42
|
+
exports.createVideoTitlePlugin = createVideoTitlePlugin;
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var plate = require('@udecode/plate');
|
|
4
|
+
var plateLink = require('@udecode/plate-link');
|
|
5
|
+
var link = require('./link.js');
|
|
4
6
|
|
|
5
7
|
const leafs = [
|
|
6
|
-
createAlignPlugin({
|
|
8
|
+
plate.createAlignPlugin({
|
|
7
9
|
inject: {
|
|
8
10
|
props: {
|
|
9
11
|
validTypes: [
|
|
10
|
-
ELEMENT_PARAGRAPH,
|
|
11
|
-
ELEMENT_H1,
|
|
12
|
-
ELEMENT_H2,
|
|
13
|
-
ELEMENT_H3,
|
|
14
|
-
ELEMENT_H4,
|
|
15
|
-
ELEMENT_H5,
|
|
16
|
-
ELEMENT_H6,
|
|
12
|
+
plate.ELEMENT_PARAGRAPH,
|
|
13
|
+
plate.ELEMENT_H1,
|
|
14
|
+
plate.ELEMENT_H2,
|
|
15
|
+
plate.ELEMENT_H3,
|
|
16
|
+
plate.ELEMENT_H4,
|
|
17
|
+
plate.ELEMENT_H5,
|
|
18
|
+
plate.ELEMENT_H6,
|
|
17
19
|
],
|
|
18
20
|
},
|
|
19
21
|
},
|
|
20
22
|
}),
|
|
21
|
-
createIndentPlugin({
|
|
23
|
+
plate.createIndentPlugin({
|
|
22
24
|
inject: {
|
|
23
25
|
props: {
|
|
24
|
-
validTypes: [ELEMENT_PARAGRAPH, ELEMENT_H1],
|
|
26
|
+
validTypes: [plate.ELEMENT_PARAGRAPH, plate.ELEMENT_H1],
|
|
25
27
|
},
|
|
26
28
|
},
|
|
27
29
|
}),
|
|
28
|
-
createLineHeightPlugin(),
|
|
29
|
-
createCodePlugin(),
|
|
30
|
-
createLinkPlugin({
|
|
31
|
-
renderBeforeEditable: LinkFloatingMenu,
|
|
30
|
+
plate.createLineHeightPlugin(),
|
|
31
|
+
plate.createCodePlugin(),
|
|
32
|
+
plateLink.createLinkPlugin({
|
|
33
|
+
renderBeforeEditable: link.LinkFloatingMenu,
|
|
32
34
|
}),
|
|
33
35
|
];
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
exports.leafs = leafs;
|
|
@@ -1,44 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
import { styled } from 'styled-components';
|
|
3
|
-
import { useLink, PlateElement, useFloatingLinkSelectors, useFloatingLinkInsertState, useFloatingLinkInsert, useFloatingLinkEditState, useFloatingLinkEdit, FloatingLinkUrlInput, LinkOpenButton } from '@udecode/plate';
|
|
4
|
-
import { Box } from '../../../atoms/box/box.js';
|
|
5
|
-
import { AASansSerif } from '../../../../icons/basic/aa_sansserif.js';
|
|
6
|
-
import { Link } from '../../../../icons/basic/link.js';
|
|
7
|
-
import { Upload } from '../../../../icons/basic/upload.js';
|
|
1
|
+
'use strict';
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var styledComponents = require('styled-components');
|
|
5
|
+
var plate = require('@udecode/plate');
|
|
6
|
+
var box = require('../../../atoms/box/box.js');
|
|
7
|
+
var aa_sansserif = require('../../../../icons/basic/aa_sansserif.js');
|
|
8
|
+
var link = require('../../../../icons/basic/link.js');
|
|
9
|
+
var upload = require('../../../../icons/basic/upload.js');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
|
|
15
|
+
const LinkElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
16
|
+
const { props: linkProps } = plate.useLink({ element: props.element });
|
|
17
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...linkProps, ...props },
|
|
18
|
+
React__default.default.createElement("a", null, children)));
|
|
13
19
|
});
|
|
14
20
|
const LinkFloatingMenu = ({ readOnly }) => {
|
|
15
|
-
const isEditing = useFloatingLinkSelectors().isEditing();
|
|
16
|
-
const state = useFloatingLinkInsertState();
|
|
17
|
-
const { props: insertProps, ref: insertRef, textInputProps, } = useFloatingLinkInsert(state);
|
|
18
|
-
const editState = useFloatingLinkEditState();
|
|
19
|
-
const { props: editProps, ref: editRef, editButtonProps, } = useFloatingLinkEdit(editState);
|
|
21
|
+
const isEditing = plate.useFloatingLinkSelectors().isEditing();
|
|
22
|
+
const state = plate.useFloatingLinkInsertState();
|
|
23
|
+
const { props: insertProps, ref: insertRef, textInputProps, } = plate.useFloatingLinkInsert(state);
|
|
24
|
+
const editState = plate.useFloatingLinkEditState();
|
|
25
|
+
const { props: editProps, ref: editRef, editButtonProps, } = plate.useFloatingLinkEdit(editState);
|
|
20
26
|
if (readOnly)
|
|
21
27
|
return null;
|
|
22
|
-
const input = (React__default.createElement(Box, { "$dir": "column", sx: `
|
|
28
|
+
const input = (React__default.default.createElement(box.Box, { "$dir": "column", sx: `
|
|
23
29
|
background-color: var(--color-white);
|
|
24
30
|
gap: 16px;
|
|
25
31
|
padding: 16px;
|
|
26
32
|
border-radius: 16px;
|
|
27
33
|
box-shadow: var(--elevation-2);
|
|
28
34
|
` },
|
|
29
|
-
React__default.createElement(Box, { "$align": "center", "$justify": "center", "$gap": 8 },
|
|
30
|
-
React__default.createElement(Box, { "$align": "center", "$justify": "center" },
|
|
31
|
-
React__default.createElement(Link, null)),
|
|
32
|
-
React__default.createElement(FloatingLinkUrlInput, { style: {
|
|
35
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", "$gap": 8 },
|
|
36
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center" },
|
|
37
|
+
React__default.default.createElement(link.Link, null)),
|
|
38
|
+
React__default.default.createElement(plate.FloatingLinkUrlInput, { style: {
|
|
33
39
|
border: 'none',
|
|
34
40
|
outline: 'none',
|
|
35
41
|
padding: '8px 12px',
|
|
36
42
|
}, placeholder: "Paste link" })),
|
|
37
|
-
React__default.createElement(Box, { "$align": "center", "$justify": "center", "$gap": 8 },
|
|
38
|
-
React__default.createElement(Box, { "$align": "center", "$justify": "center" },
|
|
39
|
-
React__default.createElement(AASansSerif, null)),
|
|
40
|
-
React__default.createElement(Input, { placeholder: "Text to display", ...textInputProps }))));
|
|
41
|
-
const editContent = isEditing ? (input) : (React__default.createElement(Box, { "$align": "center", "$justify": "center", sx: `
|
|
43
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", "$gap": 8 },
|
|
44
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center" },
|
|
45
|
+
React__default.default.createElement(aa_sansserif.AASansSerif, null)),
|
|
46
|
+
React__default.default.createElement(Input, { placeholder: "Text to display", ...textInputProps }))));
|
|
47
|
+
const editContent = isEditing ? (input) : (React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", sx: `
|
|
42
48
|
box-sizing: box-content;
|
|
43
49
|
background-color: var(--color-white);
|
|
44
50
|
gap: 8px;
|
|
@@ -63,17 +69,18 @@ const LinkFloatingMenu = ({ readOnly }) => {
|
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
`, "$gap": 8 },
|
|
66
|
-
React__default.createElement("button", { type: "button", ...editButtonProps }, "Edit link"),
|
|
67
|
-
React__default.createElement(LinkOpenButton, null,
|
|
68
|
-
React__default.createElement(Upload, null))));
|
|
69
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
70
|
-
React__default.createElement("div", { ref: insertRef, ...insertProps }, input),
|
|
71
|
-
React__default.createElement("div", { ref: editRef, ...editProps }, editContent)));
|
|
72
|
+
React__default.default.createElement("button", { type: "button", ...editButtonProps }, "Edit link"),
|
|
73
|
+
React__default.default.createElement(plate.LinkOpenButton, null,
|
|
74
|
+
React__default.default.createElement(upload.Upload, null))));
|
|
75
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
76
|
+
React__default.default.createElement("div", { ref: insertRef, ...insertProps }, input),
|
|
77
|
+
React__default.default.createElement("div", { ref: editRef, ...editProps }, editContent)));
|
|
72
78
|
};
|
|
73
|
-
const Input = styled.input `
|
|
79
|
+
const Input = styledComponents.styled.input `
|
|
74
80
|
border: none;
|
|
75
81
|
outline: none;
|
|
76
82
|
padding: 8px 12px;
|
|
77
83
|
`;
|
|
78
84
|
|
|
79
|
-
|
|
85
|
+
exports.LinkElement = LinkElement;
|
|
86
|
+
exports.LinkFloatingMenu = LinkFloatingMenu;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var plate = require('@udecode/plate');
|
|
2
4
|
|
|
3
5
|
const marks = [
|
|
4
|
-
createBoldPlugin(),
|
|
5
|
-
createFontBackgroundColorPlugin(),
|
|
6
|
-
createFontSizePlugin(),
|
|
7
|
-
createFontFamilyPlugin(),
|
|
8
|
-
createItalicPlugin(),
|
|
9
|
-
createStrikethroughPlugin(),
|
|
10
|
-
createSubscriptPlugin(),
|
|
11
|
-
createSuperscriptPlugin(),
|
|
12
|
-
createUnderlinePlugin(),
|
|
6
|
+
plate.createBoldPlugin(),
|
|
7
|
+
plate.createFontBackgroundColorPlugin(),
|
|
8
|
+
plate.createFontSizePlugin(),
|
|
9
|
+
plate.createFontFamilyPlugin(),
|
|
10
|
+
plate.createItalicPlugin(),
|
|
11
|
+
plate.createStrikethroughPlugin(),
|
|
12
|
+
plate.createSubscriptPlugin(),
|
|
13
|
+
plate.createSuperscriptPlugin(),
|
|
14
|
+
plate.createUnderlinePlugin(),
|
|
13
15
|
];
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
exports.marks = marks;
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var cn = require('@udecode/cn');
|
|
4
|
+
var plateCommon = require('@udecode/plate-common');
|
|
5
|
+
var link = require('./leafs/link.js');
|
|
6
|
+
var constants = require('../constants.js');
|
|
7
|
+
var blockquote = require('./blocks/blockquote.js');
|
|
8
|
+
var buttons = require('./blocks/buttons.js');
|
|
9
|
+
var image = require('./blocks/image.js');
|
|
10
|
+
var list = require('./blocks/list.js');
|
|
11
|
+
var table = require('./blocks/table.js');
|
|
12
|
+
var tableCell = require('./blocks/table-cell.js');
|
|
13
|
+
var tableRow = require('./blocks/table-row.js');
|
|
14
|
+
var text = require('./blocks/text.js');
|
|
15
|
+
var plate = require('@udecode/plate');
|
|
14
16
|
|
|
15
17
|
const plateUI = {
|
|
16
|
-
[ELEMENT_PARAGRAPH]: ParagraphElement,
|
|
17
|
-
[ELEMENT_H1]: HOneElement,
|
|
18
|
-
[ELEMENT_H2]: HTwoElement,
|
|
19
|
-
[ELEMENT_H3]: HThreeElement,
|
|
20
|
-
[ELEMENT_H4]: HFourElement,
|
|
21
|
-
[ELEMENT_H5]: HFiveElement,
|
|
22
|
-
[ELEMENT_H6]: HSixElement,
|
|
23
|
-
[ELEMENT_BLOCKQUOTE]: BlockquoteElement,
|
|
24
|
-
[ELEMENT_LINK]: LinkElement,
|
|
25
|
-
[ELEMENT_OL]: withProps(ListElement, {
|
|
26
|
-
variant: ELEMENT_OL,
|
|
18
|
+
[plate.ELEMENT_PARAGRAPH]: text.ParagraphElement,
|
|
19
|
+
[plate.ELEMENT_H1]: text.HOneElement,
|
|
20
|
+
[plate.ELEMENT_H2]: text.HTwoElement,
|
|
21
|
+
[plate.ELEMENT_H3]: text.HThreeElement,
|
|
22
|
+
[plate.ELEMENT_H4]: text.HFourElement,
|
|
23
|
+
[plate.ELEMENT_H5]: text.HFiveElement,
|
|
24
|
+
[plate.ELEMENT_H6]: text.HSixElement,
|
|
25
|
+
[plate.ELEMENT_BLOCKQUOTE]: blockquote.BlockquoteElement,
|
|
26
|
+
[plate.ELEMENT_LINK]: link.LinkElement,
|
|
27
|
+
[plate.ELEMENT_OL]: cn.withProps(list.ListElement, {
|
|
28
|
+
variant: plate.ELEMENT_OL,
|
|
27
29
|
}),
|
|
28
|
-
[ELEMENT_UL]: withProps(ListElement, {
|
|
29
|
-
variant: ELEMENT_UL,
|
|
30
|
+
[plate.ELEMENT_UL]: cn.withProps(list.ListElement, {
|
|
31
|
+
variant: plate.ELEMENT_UL,
|
|
30
32
|
}),
|
|
31
|
-
[ELEMENT_IMAGE]: ImageElement,
|
|
32
|
-
[ELEMENT_BUTTON]: Button,
|
|
33
|
-
[ELEMENT_TABLE]: TableElement,
|
|
34
|
-
[ELEMENT_TD]: TableCellElement,
|
|
35
|
-
[ELEMENT_TH]: TableCellHeaderElement,
|
|
36
|
-
[ELEMENT_TR]: TableRowElement,
|
|
37
|
-
[MARK_SUBSCRIPT]: withProps(PlateLeaf, { as: 'sub' }),
|
|
38
|
-
[MARK_SUPERSCRIPT]: withProps(PlateLeaf, { as: 'sup' }),
|
|
33
|
+
[plate.ELEMENT_IMAGE]: image.ImageElement,
|
|
34
|
+
[constants.ELEMENT_BUTTON]: buttons.Button,
|
|
35
|
+
[plate.ELEMENT_TABLE]: table.TableElement,
|
|
36
|
+
[plate.ELEMENT_TD]: tableCell.TableCellElement,
|
|
37
|
+
[plate.ELEMENT_TH]: tableCell.TableCellHeaderElement,
|
|
38
|
+
[plate.ELEMENT_TR]: tableRow.TableRowElement,
|
|
39
|
+
[plate.MARK_SUBSCRIPT]: cn.withProps(plateCommon.PlateLeaf, { as: 'sub' }),
|
|
40
|
+
[plate.MARK_SUPERSCRIPT]: cn.withProps(plateCommon.PlateLeaf, { as: 'sup' }),
|
|
39
41
|
};
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
exports.plateUI = plateUI;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var plate = require('@udecode/plate');
|
|
4
|
+
var constants = require('../../constants.js');
|
|
3
5
|
|
|
4
6
|
const exitBreakPlugin = {
|
|
5
7
|
options: {
|
|
@@ -17,13 +19,13 @@ const exitBreakPlugin = {
|
|
|
17
19
|
start: true,
|
|
18
20
|
end: true,
|
|
19
21
|
allow: [
|
|
20
|
-
ELEMENT_BLOCKQUOTE,
|
|
21
|
-
ELEMENT_BUTTON,
|
|
22
|
-
ELEMENT_MEDIA,
|
|
23
|
-
ELEMENT_MEDIA_EMBED,
|
|
24
|
-
ELEMENT_OL,
|
|
25
|
-
ELEMENT_UL,
|
|
26
|
-
...KEYS_HEADING,
|
|
22
|
+
plate.ELEMENT_BLOCKQUOTE,
|
|
23
|
+
constants.ELEMENT_BUTTON,
|
|
24
|
+
plate.ELEMENT_MEDIA,
|
|
25
|
+
plate.ELEMENT_MEDIA_EMBED,
|
|
26
|
+
plate.ELEMENT_OL,
|
|
27
|
+
plate.ELEMENT_UL,
|
|
28
|
+
...plate.KEYS_HEADING,
|
|
27
29
|
],
|
|
28
30
|
},
|
|
29
31
|
},
|
|
@@ -31,4 +33,4 @@ const exitBreakPlugin = {
|
|
|
31
33
|
},
|
|
32
34
|
};
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
exports.exitBreakPlugin = exitBreakPlugin;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var plate = require('@udecode/plate');
|
|
2
4
|
|
|
3
5
|
const resetBlockTypesCommonRule = {
|
|
4
|
-
types: [ELEMENT_BLOCKQUOTE, ELEMENT_TODO_LI],
|
|
5
|
-
defaultType: ELEMENT_PARAGRAPH,
|
|
6
|
+
types: [plate.ELEMENT_BLOCKQUOTE, plate.ELEMENT_TODO_LI],
|
|
7
|
+
defaultType: plate.ELEMENT_PARAGRAPH,
|
|
6
8
|
};
|
|
7
9
|
const resetBlockTypePlugin = {
|
|
8
10
|
options: {
|
|
@@ -10,15 +12,15 @@ const resetBlockTypePlugin = {
|
|
|
10
12
|
{
|
|
11
13
|
...resetBlockTypesCommonRule,
|
|
12
14
|
hotkey: 'Enter',
|
|
13
|
-
predicate: isBlockAboveEmpty,
|
|
15
|
+
predicate: plate.isBlockAboveEmpty,
|
|
14
16
|
},
|
|
15
17
|
{
|
|
16
18
|
...resetBlockTypesCommonRule,
|
|
17
19
|
hotkey: 'Backspace',
|
|
18
|
-
predicate: isSelectionAtBlockStart,
|
|
20
|
+
predicate: plate.isSelectionAtBlockStart,
|
|
19
21
|
},
|
|
20
22
|
],
|
|
21
23
|
},
|
|
22
24
|
};
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
exports.resetBlockTypePlugin = resetBlockTypePlugin;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var plate = require('@udecode/plate');
|
|
2
4
|
|
|
3
5
|
const selectOnBackspace = {
|
|
4
6
|
options: {
|
|
5
|
-
query: { allow: [ELEMENT_HR, ELEMENT_IMAGE, ELEMENT_MEDIA_EMBED] },
|
|
7
|
+
query: { allow: [plate.ELEMENT_HR, plate.ELEMENT_IMAGE, plate.ELEMENT_MEDIA_EMBED] },
|
|
6
8
|
},
|
|
7
9
|
};
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
exports.selectOnBackspace = selectOnBackspace;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var plate = require('@udecode/plate');
|
|
2
4
|
|
|
3
5
|
const softBreakPlugin = {
|
|
4
6
|
options: {
|
|
@@ -7,11 +9,11 @@ const softBreakPlugin = {
|
|
|
7
9
|
{
|
|
8
10
|
hotkey: 'enter',
|
|
9
11
|
query: {
|
|
10
|
-
allow: [ELEMENT_CODE_BLOCK, ELEMENT_BLOCKQUOTE, ELEMENT_TD],
|
|
12
|
+
allow: [plate.ELEMENT_CODE_BLOCK, plate.ELEMENT_BLOCKQUOTE, plate.ELEMENT_TD],
|
|
11
13
|
},
|
|
12
14
|
},
|
|
13
15
|
],
|
|
14
16
|
},
|
|
15
17
|
};
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
exports.softBreakPlugin = softBreakPlugin;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var plate = require('@udecode/plate');
|
|
4
|
+
var exitBreak = require('./exitBreak.js');
|
|
5
|
+
var resetBlockType = require('./resetBlockType.js');
|
|
6
|
+
var selectOnBackspace = require('./selectOnBackspace.js');
|
|
7
|
+
var softBreak = require('./softBreak.js');
|
|
6
8
|
|
|
7
9
|
const utils = [
|
|
8
|
-
createExitBreakPlugin(exitBreakPlugin),
|
|
9
|
-
createHistoryPlugin(),
|
|
10
|
-
createResetNodePlugin(resetBlockTypePlugin),
|
|
11
|
-
createSelectOnBackspacePlugin(selectOnBackspace),
|
|
12
|
-
createSoftBreakPlugin(softBreakPlugin),
|
|
10
|
+
plate.createExitBreakPlugin(exitBreak.exitBreakPlugin),
|
|
11
|
+
plate.createHistoryPlugin(),
|
|
12
|
+
plate.createResetNodePlugin(resetBlockType.resetBlockTypePlugin),
|
|
13
|
+
plate.createSelectOnBackspacePlugin(selectOnBackspace.selectOnBackspace),
|
|
14
|
+
plate.createSoftBreakPlugin(softBreak.softBreakPlugin),
|
|
13
15
|
];
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
exports.utils = utils;
|