@soul-refiner/design-system 0.1.38 → 0.1.39
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/package.json +12 -2
- package/public/logo.svg +0 -12
- package/src/common/colors.ts +0 -138
- package/src/common/date.ts +0 -30
- package/src/common/index.ts +0 -9
- package/src/common/styles.ts +0 -95
- package/src/components/actions/button/button.tsx +0 -364
- package/src/components/actions/button/index.ts +0 -2
- package/src/components/actions/dropdown/dropdown.tsx +0 -397
- package/src/components/actions/dropdown/index.ts +0 -6
- package/src/components/actions/index.ts +0 -14
- package/src/components/actions/rate/index.ts +0 -2
- package/src/components/actions/rate/rate.tsx +0 -90
- package/src/components/actions/switch/index.ts +0 -2
- package/src/components/actions/switch/switch.tsx +0 -118
- package/src/components/actions/toggle/index.ts +0 -1
- package/src/components/actions/toggle/toggle.tsx +0 -77
- package/src/components/actions/upload/index.ts +0 -2
- package/src/components/actions/upload/upload.tsx +0 -268
- package/src/components/atoms/box/box.tsx +0 -69
- package/src/components/atoms/box/index.ts +0 -2
- package/src/components/atoms/colors/colors.tsx +0 -58
- package/src/components/atoms/colors/index.ts +0 -1
- package/src/components/atoms/index.ts +0 -9
- package/src/components/atoms/typography/display.tsx +0 -37
- package/src/components/atoms/typography/heading.tsx +0 -71
- package/src/components/atoms/typography/index.ts +0 -8
- package/src/components/atoms/typography/paragraph.tsx +0 -48
- package/src/components/atoms/typography/typography.tsx +0 -49
- package/src/components/card/action/action.tsx +0 -108
- package/src/components/card/action/index.ts +0 -2
- package/src/components/card/audio/audio.tsx +0 -177
- package/src/components/card/audio/index.ts +0 -2
- package/src/components/card/card.tsx +0 -51
- package/src/components/card/feature/feature.tsx +0 -250
- package/src/components/card/feature/index.ts +0 -2
- package/src/components/card/index.ts +0 -2
- package/src/components/card/person/index.ts +0 -2
- package/src/components/card/person/person.tsx +0 -98
- package/src/components/card/price/index.ts +0 -2
- package/src/components/card/price/price.tsx +0 -112
- package/src/components/card/regular/index.ts +0 -2
- package/src/components/card/regular/regular.tsx +0 -54
- package/src/components/card/video/index.ts +0 -2
- package/src/components/card/video/video.tsx +0 -169
- package/src/components/card/written/index.ts +0 -2
- package/src/components/card/written/written.tsx +0 -178
- package/src/components/editor/constants.ts +0 -181
- package/src/components/editor/editor.tsx +0 -101
- package/src/components/editor/index.ts +0 -2
- package/src/components/editor/navbar/alignment_dropdown.tsx +0 -137
- package/src/components/editor/navbar/button_modal.tsx +0 -146
- package/src/components/editor/navbar/index.ts +0 -2
- package/src/components/editor/navbar/navbar.tsx +0 -350
- package/src/components/editor/navbar/style_dropdown.tsx +0 -107
- package/src/components/editor/plate.ts +0 -37
- package/src/components/editor/plugins/blockquote.tsx +0 -25
- package/src/components/editor/plugins/buttons.tsx +0 -140
- package/src/components/editor/plugins/exitBreak.ts +0 -39
- package/src/components/editor/plugins/image.tsx +0 -80
- package/src/components/editor/plugins/index.ts +0 -162
- package/src/components/editor/plugins/link.tsx +0 -144
- package/src/components/editor/plugins/list.tsx +0 -34
- package/src/components/editor/plugins/resetBlockType.ts +0 -29
- package/src/components/editor/plugins/selectOnBackspace.ts +0 -7
- package/src/components/editor/plugins/softBreak.ts +0 -19
- package/src/components/editor/plugins/text.tsx +0 -151
- package/src/components/feedback/badge/badge.tsx +0 -96
- package/src/components/feedback/badge/index.ts +0 -2
- package/src/components/feedback/banner/banner.tsx +0 -118
- package/src/components/feedback/banner/index.ts +0 -2
- package/src/components/feedback/chip/chip.tsx +0 -132
- package/src/components/feedback/chip/index.ts +0 -2
- package/src/components/feedback/index.ts +0 -14
- package/src/components/feedback/loader/index.ts +0 -2
- package/src/components/feedback/loader/loader.tsx +0 -64
- package/src/components/feedback/notification/index.ts +0 -2
- package/src/components/feedback/notification/notification.tsx +0 -129
- package/src/components/feedback/progress/index.ts +0 -2
- package/src/components/feedback/progress/progress.tsx +0 -169
- package/src/components/feedback/toast/index.ts +0 -2
- package/src/components/feedback/toast/toast.tsx +0 -103
- package/src/components/feedback/tooltip/index.ts +0 -2
- package/src/components/feedback/tooltip/tooltip.tsx +0 -42
- package/src/components/iconography/avatar/avatar.tsx +0 -298
- package/src/components/iconography/avatar/icons/approved.tsx +0 -20
- package/src/components/iconography/avatar/icons/busy.tsx +0 -20
- package/src/components/iconography/avatar/icons/declined.tsx +0 -20
- package/src/components/iconography/avatar/icons/default.tsx +0 -12
- package/src/components/iconography/avatar/icons/focus.tsx +0 -20
- package/src/components/iconography/avatar/icons/index.ts +0 -9
- package/src/components/iconography/avatar/icons/locked.tsx +0 -20
- package/src/components/iconography/avatar/icons/offline.tsx +0 -17
- package/src/components/iconography/avatar/icons/online.tsx +0 -16
- package/src/components/iconography/avatar/icons/subscribed.tsx +0 -33
- package/src/components/iconography/avatar/index.ts +0 -2
- package/src/components/iconography/icon/icon.tsx +0 -64
- package/src/components/iconography/icon/index.ts +0 -2
- package/src/components/iconography/index.ts +0 -4
- package/src/components/index.ts +0 -9
- package/src/components/input/checkbox/checkbox.tsx +0 -60
- package/src/components/input/checkbox/index.ts +0 -2
- package/src/components/input/date/date.tsx +0 -699
- package/src/components/input/date/index.ts +0 -2
- package/src/components/input/filter/filter.tsx +0 -307
- package/src/components/input/filter/index.ts +0 -2
- package/src/components/input/index.ts +0 -10
- package/src/components/input/radio/index.ts +0 -2
- package/src/components/input/radio/radio.tsx +0 -142
- package/src/components/input/search/index.ts +0 -2
- package/src/components/input/search/search.tsx +0 -225
- package/src/components/navigation/breadcrumb/breadcrumb.tsx +0 -174
- package/src/components/navigation/breadcrumb/index.ts +0 -2
- package/src/components/navigation/index.ts +0 -4
- package/src/components/navigation/tabs/index.ts +0 -2
- package/src/components/navigation/tabs/tabs.tsx +0 -248
- package/src/components/surfaces/accordion/accordion.tsx +0 -89
- package/src/components/surfaces/accordion/index.ts +0 -2
- package/src/components/surfaces/comment/comment.tsx +0 -245
- package/src/components/surfaces/comment/helpers.ts +0 -35
- package/src/components/surfaces/comment/index.ts +0 -2
- package/src/components/surfaces/drawer/drawer.tsx +0 -182
- package/src/components/surfaces/drawer/index.ts +0 -2
- package/src/components/surfaces/index.ts +0 -10
- package/src/components/surfaces/message/index.ts +0 -2
- package/src/components/surfaces/message/message.tsx +0 -124
- package/src/components/surfaces/modal/index.ts +0 -2
- package/src/components/surfaces/modal/modal.tsx +0 -178
- package/src/components/table/index.ts +0 -7
- package/src/components/table/table/index.ts +0 -7
- package/src/components/table/table/table.tsx +0 -385
- package/src/emoji/emojis.json +0 -17577
- package/src/icons/arrow/arrow_all.tsx +0 -14
- package/src/icons/arrow/arrow_all_diagonal.tsx +0 -14
- package/src/icons/arrow/arrow_both_downwards.tsx +0 -14
- package/src/icons/arrow/arrow_both_upwards.tsx +0 -14
- package/src/icons/arrow/arrow_circle_left.tsx +0 -14
- package/src/icons/arrow/arrow_circle_left_double.tsx +0 -14
- package/src/icons/arrow/arrow_circle_left_double_alert.tsx +0 -23
- package/src/icons/arrow/arrow_circle_right.tsx +0 -14
- package/src/icons/arrow/arrow_circle_right_double.tsx +0 -14
- package/src/icons/arrow/arrow_circle_right_double_alert.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_down_left.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_down_left_circle.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_down_right.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_down_right_circle.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_up_left.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_up_left_circle.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_up_right.tsx +0 -14
- package/src/icons/arrow/arrow_diagonal_up_right_circle.tsx +0 -14
- package/src/icons/arrow/arrow_down.tsx +0 -14
- package/src/icons/arrow/arrow_down_bold.tsx +0 -14
- package/src/icons/arrow/arrow_down_circle.tsx +0 -14
- package/src/icons/arrow/arrow_left.tsx +0 -14
- package/src/icons/arrow/arrow_left_bold.tsx +0 -14
- package/src/icons/arrow/arrow_left_circle.tsx +0 -14
- package/src/icons/arrow/arrow_left_curved.tsx +0 -14
- package/src/icons/arrow/arrow_left_curved_circle.tsx +0 -14
- package/src/icons/arrow/arrow_right.tsx +0 -14
- package/src/icons/arrow/arrow_right_bold.tsx +0 -14
- package/src/icons/arrow/arrow_right_circle.tsx +0 -14
- package/src/icons/arrow/arrow_right_curved.tsx +0 -14
- package/src/icons/arrow/arrow_right_curved_circle.tsx +0 -14
- package/src/icons/arrow/arrow_up.tsx +0 -14
- package/src/icons/arrow/arrow_up_bold.tsx +0 -14
- package/src/icons/arrow/arrow_up_circle.tsx +0 -14
- package/src/icons/arrow/chevron_down.tsx +0 -14
- package/src/icons/arrow/chevron_down_circle.tsx +0 -14
- package/src/icons/arrow/chevron_down_double.tsx +0 -14
- package/src/icons/arrow/chevron_down_double_circle.tsx +0 -14
- package/src/icons/arrow/chevron_left.tsx +0 -14
- package/src/icons/arrow/chevron_left_circle.tsx +0 -14
- package/src/icons/arrow/chevron_left_double.tsx +0 -14
- package/src/icons/arrow/chevron_left_double_circle.tsx +0 -14
- package/src/icons/arrow/chevron_right.tsx +0 -14
- package/src/icons/arrow/chevron_right_circle.tsx +0 -14
- package/src/icons/arrow/chevron_right_double.tsx +0 -14
- package/src/icons/arrow/chevron_right_double_circle.tsx +0 -14
- package/src/icons/arrow/chevron_scroll.tsx +0 -14
- package/src/icons/arrow/chevron_up.tsx +0 -14
- package/src/icons/arrow/chevron_up_circle.tsx +0 -14
- package/src/icons/arrow/chevron_up_double.tsx +0 -14
- package/src/icons/arrow/chevron_up_double_circle.tsx +0 -14
- package/src/icons/arrow/forward_all.tsx +0 -14
- package/src/icons/arrow/forward_all_bold.tsx +0 -14
- package/src/icons/arrow/forward_bold.tsx +0 -14
- package/src/icons/arrow/index.ts +0 -62
- package/src/icons/arrow/redo.tsx +0 -14
- package/src/icons/arrow/redo_bold.tsx +0 -14
- package/src/icons/arrow/reply.tsx +0 -14
- package/src/icons/arrow/reply_all.tsx +0 -14
- package/src/icons/arrow/reply_all_bold.tsx +0 -14
- package/src/icons/arrow/reply_bold.tsx +0 -14
- package/src/icons/arrow/undo.tsx +0 -14
- package/src/icons/arrow/undo_bold.tsx +0 -14
- package/src/icons/audio_video/drag_indicator.tsx +0 -10
- package/src/icons/audio_video/eject.tsx +0 -14
- package/src/icons/audio_video/equalizer.tsx +0 -14
- package/src/icons/audio_video/fast_forward.tsx +0 -14
- package/src/icons/audio_video/fast_forward_30.tsx +0 -10
- package/src/icons/audio_video/fullscreen.tsx +0 -10
- package/src/icons/audio_video/headphones.tsx +0 -10
- package/src/icons/audio_video/index.ts +0 -38
- package/src/icons/audio_video/library_add.tsx +0 -14
- package/src/icons/audio_video/library_delay.tsx +0 -14
- package/src/icons/audio_video/library_music.tsx +0 -14
- package/src/icons/audio_video/library_queue.tsx +0 -14
- package/src/icons/audio_video/microphone.tsx +0 -10
- package/src/icons/audio_video/musical_note.tsx +0 -14
- package/src/icons/audio_video/next.tsx +0 -14
- package/src/icons/audio_video/pause.tsx +0 -14
- package/src/icons/audio_video/pause_circle.tsx +0 -14
- package/src/icons/audio_video/play.tsx +0 -14
- package/src/icons/audio_video/play_circle.tsx +0 -14
- package/src/icons/audio_video/play_display.tsx +0 -10
- package/src/icons/audio_video/play_pause.tsx +0 -14
- package/src/icons/audio_video/play_solid.tsx +0 -10
- package/src/icons/audio_video/player_list.tsx +0 -14
- package/src/icons/audio_video/player_list_add.tsx +0 -14
- package/src/icons/audio_video/player_list_play.tsx +0 -14
- package/src/icons/audio_video/previous.tsx +0 -14
- package/src/icons/audio_video/radio.tsx +0 -14
- package/src/icons/audio_video/record.tsx +0 -14
- package/src/icons/audio_video/repeat.tsx +0 -14
- package/src/icons/audio_video/rewind.tsx +0 -14
- package/src/icons/audio_video/rewind_30.tsx +0 -10
- package/src/icons/audio_video/shuffle.tsx +0 -14
- package/src/icons/audio_video/sound_wave.tsx +0 -14
- package/src/icons/audio_video/stop.tsx +0 -14
- package/src/icons/audio_video/stop_circle.tsx +0 -14
- package/src/icons/audio_video/subscriptions.tsx +0 -10
- package/src/icons/audio_video/tuner.tsx +0 -14
- package/src/icons/audio_video/volume.tsx +0 -14
- package/src/icons/audio_video/volume_high.tsx +0 -14
- package/src/icons/audio_video/volume_low.tsx +0 -14
- package/src/icons/audio_video/volume_slash.tsx +0 -14
- package/src/icons/basic/aa_sansserif.tsx +0 -11
- package/src/icons/basic/aa_serif.tsx +0 -11
- package/src/icons/basic/anchor.tsx +0 -24
- package/src/icons/basic/bible.tsx +0 -14
- package/src/icons/basic/bold.tsx +0 -14
- package/src/icons/basic/book.tsx +0 -14
- package/src/icons/basic/book_open.tsx +0 -10
- package/src/icons/basic/bookmark.tsx +0 -14
- package/src/icons/basic/bookmark_add.tsx +0 -14
- package/src/icons/basic/bookmark_slash.tsx +0 -14
- package/src/icons/basic/bookmarks.tsx +0 -14
- package/src/icons/basic/books.tsx +0 -13
- package/src/icons/basic/box.tsx +0 -14
- package/src/icons/basic/briefcase.tsx +0 -14
- package/src/icons/basic/browse_activity.tsx +0 -10
- package/src/icons/basic/browser.tsx +0 -14
- package/src/icons/basic/browser_slash.tsx +0 -14
- package/src/icons/basic/calculator.tsx +0 -14
- package/src/icons/basic/camera.tsx +0 -14
- package/src/icons/basic/camera_add.tsx +0 -14
- package/src/icons/basic/camera_slash.tsx +0 -14
- package/src/icons/basic/checkmark.tsx +0 -14
- package/src/icons/basic/checkmark_circle.tsx +0 -23
- package/src/icons/basic/checkmark_filled.tsx +0 -10
- package/src/icons/basic/checkmarks.tsx +0 -14
- package/src/icons/basic/circle.tsx +0 -14
- package/src/icons/basic/circle_slash.tsx +0 -23
- package/src/icons/basic/clear_text_style.tsx +0 -14
- package/src/icons/basic/close.tsx +0 -10
- package/src/icons/basic/close_circle.tsx +0 -14
- package/src/icons/basic/close_filled.tsx +0 -10
- package/src/icons/basic/copy.tsx +0 -14
- package/src/icons/basic/delete.tsx +0 -14
- package/src/icons/basic/detail.tsx +0 -10
- package/src/icons/basic/dot.tsx +0 -10
- package/src/icons/basic/download.tsx +0 -14
- package/src/icons/basic/download_arrow.tsx +0 -14
- package/src/icons/basic/droplet.tsx +0 -23
- package/src/icons/basic/ellipsis_horizontal.tsx +0 -14
- package/src/icons/basic/ellipsis_horizontal_circle.tsx +0 -14
- package/src/icons/basic/ellipsis_vertical.tsx +0 -14
- package/src/icons/basic/ellipsis_vertical_circle.tsx +0 -14
- package/src/icons/basic/eye.tsx +0 -14
- package/src/icons/basic/eye_slash.tsx +0 -14
- package/src/icons/basic/fingerprint.tsx +0 -10
- package/src/icons/basic/flag.tsx +0 -14
- package/src/icons/basic/flag_wave.tsx +0 -10
- package/src/icons/basic/flag_wave_filled.tsx +0 -10
- package/src/icons/basic/flame.tsx +0 -14
- package/src/icons/basic/gauge.tsx +0 -14
- package/src/icons/basic/glasses.tsx +0 -14
- package/src/icons/basic/graduation_cap.tsx +0 -10
- package/src/icons/basic/hashmark.tsx +0 -10
- package/src/icons/basic/heart.tsx +0 -14
- package/src/icons/basic/heart_slash.tsx +0 -14
- package/src/icons/basic/highlighter.tsx +0 -10
- package/src/icons/basic/home.tsx +0 -14
- package/src/icons/basic/image.tsx +0 -14
- package/src/icons/basic/inbox.tsx +0 -14
- package/src/icons/basic/index.ts +0 -131
- package/src/icons/basic/italic.tsx +0 -10
- package/src/icons/basic/layers.tsx +0 -14
- package/src/icons/basic/lightening.tsx +0 -14
- package/src/icons/basic/lightening_slash.tsx +0 -14
- package/src/icons/basic/link.tsx +0 -14
- package/src/icons/basic/link_slash.tsx +0 -14
- package/src/icons/basic/loudspeaker.tsx +0 -10
- package/src/icons/basic/maximize.tsx +0 -14
- package/src/icons/basic/menu.tsx +0 -14
- package/src/icons/basic/menu_circle.tsx +0 -14
- package/src/icons/basic/menu_dots.tsx +0 -14
- package/src/icons/basic/microphone_slash.tsx +0 -14
- package/src/icons/basic/minimize.tsx +0 -14
- package/src/icons/basic/minus.tsx +0 -14
- package/src/icons/basic/minus_circle.tsx +0 -14
- package/src/icons/basic/move_item.tsx +0 -10
- package/src/icons/basic/new.tsx +0 -10
- package/src/icons/basic/newspaper.tsx +0 -14
- package/src/icons/basic/node.tsx +0 -14
- package/src/icons/basic/note_pad.tsx +0 -19
- package/src/icons/basic/options.tsx +0 -14
- package/src/icons/basic/paint_brush.tsx +0 -14
- package/src/icons/basic/paperclip.tsx +0 -14
- package/src/icons/basic/paperclip_slash.tsx +0 -14
- package/src/icons/basic/pencil.tsx +0 -14
- package/src/icons/basic/pencil_pad.tsx +0 -14
- package/src/icons/basic/plus.tsx +0 -14
- package/src/icons/basic/plus_circle.tsx +0 -14
- package/src/icons/basic/presentation.tsx +0 -14
- package/src/icons/basic/printer.tsx +0 -14
- package/src/icons/basic/profile.tsx +0 -14
- package/src/icons/basic/profile_check.tsx +0 -14
- package/src/icons/basic/pulse.tsx +0 -14
- package/src/icons/basic/qr_code.tsx +0 -14
- package/src/icons/basic/resize.tsx +0 -23
- package/src/icons/basic/scan.tsx +0 -14
- package/src/icons/basic/scissors.tsx +0 -14
- package/src/icons/basic/screenshot.tsx +0 -14
- package/src/icons/basic/search.tsx +0 -14
- package/src/icons/basic/select_item.tsx +0 -11
- package/src/icons/basic/settings.tsx +0 -14
- package/src/icons/basic/share.tsx +0 -14
- package/src/icons/basic/share_external.tsx +0 -14
- package/src/icons/basic/square.tsx +0 -14
- package/src/icons/basic/star.tsx +0 -14
- package/src/icons/basic/star_circle.tsx +0 -14
- package/src/icons/basic/star_filled.tsx +0 -10
- package/src/icons/basic/star_filled_half.tsx +0 -14
- package/src/icons/basic/star_slash.tsx +0 -14
- package/src/icons/basic/sticker.tsx +0 -14
- package/src/icons/basic/strikethrough.tsx +0 -10
- package/src/icons/basic/subtask.tsx +0 -21
- package/src/icons/basic/tax.tsx +0 -21
- package/src/icons/basic/text_bg_color.tsx +0 -14
- package/src/icons/basic/text_color.tsx +0 -14
- package/src/icons/basic/textbox.tsx +0 -10
- package/src/icons/basic/thumbs_down.tsx +0 -14
- package/src/icons/basic/thumbs_up.tsx +0 -14
- package/src/icons/basic/thumbs_up_filled.tsx +0 -10
- package/src/icons/basic/toggle_left.tsx +0 -14
- package/src/icons/basic/toggle_right.tsx +0 -14
- package/src/icons/basic/translate.tsx +0 -10
- package/src/icons/basic/trash.tsx +0 -14
- package/src/icons/basic/trash_slash.tsx +0 -14
- package/src/icons/basic/underline.tsx +0 -10
- package/src/icons/basic/upload.tsx +0 -14
- package/src/icons/basic/video.tsx +0 -14
- package/src/icons/basic/video_add.tsx +0 -15
- package/src/icons/basic/video_slash.tsx +0 -14
- package/src/icons/basic/wrench.tsx +0 -10
- package/src/icons/basic/zoom_in.tsx +0 -14
- package/src/icons/basic/zoom_out.tsx +0 -14
- package/src/icons/data/bar_chart.tsx +0 -10
- package/src/icons/data/bar_chart_downward.tsx +0 -10
- package/src/icons/data/bar_chart_downward_outline.tsx +0 -10
- package/src/icons/data/bar_chart_upward.tsx +0 -10
- package/src/icons/data/bar_chart_upward_outline.tsx +0 -14
- package/src/icons/data/candlestick_chart.tsx +0 -10
- package/src/icons/data/four_circles.tsx +0 -14
- package/src/icons/data/index.ts +0 -20
- package/src/icons/data/legend_toggle.tsx +0 -10
- package/src/icons/data/line_chart.tsx +0 -10
- package/src/icons/data/line_chart_area.tsx +0 -10
- package/src/icons/data/line_chart_area_shaded.tsx +0 -10
- package/src/icons/data/line_chart_double.tsx +0 -10
- package/src/icons/data/line_chart_downward.tsx +0 -10
- package/src/icons/data/line_chart_node.tsx +0 -10
- package/src/icons/data/line_chart_outline.tsx +0 -10
- package/src/icons/data/line_chart_search.tsx +0 -10
- package/src/icons/data/line_chart_stars.tsx +0 -10
- package/src/icons/data/line_chart_upward.tsx +0 -10
- package/src/icons/data/pie_chart.tsx +0 -19
- package/src/icons/data/tree.tsx +0 -10
- package/src/icons/email/index.ts +0 -8
- package/src/icons/email/mail.tsx +0 -14
- package/src/icons/email/mail_check.tsx +0 -14
- package/src/icons/email/mail_minus.tsx +0 -14
- package/src/icons/email/mail_send.tsx +0 -14
- package/src/icons/email/send.tsx +0 -14
- package/src/icons/email/send_close.tsx +0 -10
- package/src/icons/email/send_schedule.tsx +0 -10
- package/src/icons/email/send_text.tsx +0 -14
- package/src/icons/file/clipboard.tsx +0 -14
- package/src/icons/file/clipboard_check.tsx +0 -14
- package/src/icons/file/clipboard_close.tsx +0 -14
- package/src/icons/file/clipboard_minus.tsx +0 -14
- package/src/icons/file/clipboard_plus.tsx +0 -14
- package/src/icons/file/clipboard_text.tsx +0 -14
- package/src/icons/file/file.tsx +0 -14
- package/src/icons/file/file_add.tsx +0 -14
- package/src/icons/file/file_check.tsx +0 -14
- package/src/icons/file/file_close.tsx +0 -14
- package/src/icons/file/file_code.tsx +0 -14
- package/src/icons/file/file_download.tsx +0 -14
- package/src/icons/file/file_draft.tsx +0 -14
- package/src/icons/file/file_gear.tsx +0 -15
- package/src/icons/file/file_minus.tsx +0 -14
- package/src/icons/file/file_plus.tsx +0 -14
- package/src/icons/file/file_scan.tsx +0 -14
- package/src/icons/file/file_shred.tsx +0 -14
- package/src/icons/file/file_text.tsx +0 -14
- package/src/icons/file/file_upload.tsx +0 -14
- package/src/icons/file/folder.tsx +0 -14
- package/src/icons/file/folder_add.tsx +0 -14
- package/src/icons/file/folder_arrow.tsx +0 -14
- package/src/icons/file/folder_check.tsx +0 -14
- package/src/icons/file/folder_close.tsx +0 -14
- package/src/icons/file/folder_cloud.tsx +0 -14
- package/src/icons/file/folder_minus.tsx +0 -14
- package/src/icons/file/folder_music.tsx +0 -14
- package/src/icons/file/folder_open.tsx +0 -14
- package/src/icons/file/folder_plus.tsx +0 -14
- package/src/icons/file/folder_zip.tsx +0 -14
- package/src/icons/file/index.ts +0 -35
- package/src/icons/file/note.tsx +0 -14
- package/src/icons/file/note_text.tsx +0 -14
- package/src/icons/file/pdf.tsx +0 -10
- package/src/icons/file/photo.tsx +0 -14
- package/src/icons/finance/bitcoin.tsx +0 -14
- package/src/icons/finance/coins.tsx +0 -34
- package/src/icons/finance/credit_card.tsx +0 -14
- package/src/icons/finance/credit_card_add.tsx +0 -14
- package/src/icons/finance/credit_card_face.tsx +0 -14
- package/src/icons/finance/credit_card_member.tsx +0 -10
- package/src/icons/finance/credit_card_outcome.tsx +0 -14
- package/src/icons/finance/credit_card_scan.tsx +0 -14
- package/src/icons/finance/credit_card_share.tsx +0 -14
- package/src/icons/finance/credit_card_slash.tsx +0 -14
- package/src/icons/finance/currency_exchange.tsx +0 -10
- package/src/icons/finance/dollar.tsx +0 -10
- package/src/icons/finance/ethereum.tsx +0 -14
- package/src/icons/finance/index.ts +0 -16
- package/src/icons/finance/paypass.tsx +0 -14
- package/src/icons/finance/strongbox.tsx +0 -14
- package/src/icons/finance/wallet.tsx +0 -14
- package/src/icons/index.ts +0 -21
- package/src/icons/layout/block_align_bottom.tsx +0 -14
- package/src/icons/layout/block_align_center.tsx +0 -14
- package/src/icons/layout/block_align_left.tsx +0 -14
- package/src/icons/layout/block_align_middle.tsx +0 -14
- package/src/icons/layout/block_align_right.tsx +0 -14
- package/src/icons/layout/block_align_top.tsx +0 -14
- package/src/icons/layout/block_horizontal.tsx +0 -14
- package/src/icons/layout/block_vertical.tsx +0 -14
- package/src/icons/layout/edit_shape.tsx +0 -14
- package/src/icons/layout/elements.tsx +0 -10
- package/src/icons/layout/elements_add.tsx +0 -14
- package/src/icons/layout/elements_filled.tsx +0 -10
- package/src/icons/layout/elements_masonry.tsx +0 -14
- package/src/icons/layout/frame.tsx +0 -14
- package/src/icons/layout/frame_stack.tsx +0 -14
- package/src/icons/layout/grid.tsx +0 -14
- package/src/icons/layout/grid_column_three.tsx +0 -14
- package/src/icons/layout/grid_column_two.tsx +0 -14
- package/src/icons/layout/grid_dynamic.tsx +0 -14
- package/src/icons/layout/grid_frame.tsx +0 -14
- package/src/icons/layout/grid_row_three.tsx +0 -14
- package/src/icons/layout/grid_row_two.tsx +0 -14
- package/src/icons/layout/grid_six.tsx +0 -14
- package/src/icons/layout/grid_small.tsx +0 -14
- package/src/icons/layout/iframe.tsx +0 -14
- package/src/icons/layout/index.ts +0 -44
- package/src/icons/layout/kanban.tsx +0 -14
- package/src/icons/layout/layout.tsx +0 -14
- package/src/icons/layout/list.tsx +0 -14
- package/src/icons/layout/list_filled.tsx +0 -15
- package/src/icons/layout/padding.tsx +0 -14
- package/src/icons/layout/page_break.tsx +0 -14
- package/src/icons/layout/rotate_left.tsx +0 -14
- package/src/icons/layout/rotate_right.tsx +0 -14
- package/src/icons/layout/ruler.tsx +0 -14
- package/src/icons/layout/segment.tsx +0 -14
- package/src/icons/layout/select_area.tsx +0 -14
- package/src/icons/layout/select_boundary.tsx +0 -14
- package/src/icons/layout/sidebar_left.tsx +0 -14
- package/src/icons/layout/sidebar_right.tsx +0 -14
- package/src/icons/layout/slides.tsx +0 -14
- package/src/icons/layout/slides_horizontal.tsx +0 -14
- package/src/icons/layout/slides_vertical.tsx +0 -19
- package/src/icons/layout/stack.tsx +0 -14
- package/src/icons/layout/text.tsx +0 -14
- package/src/icons/maps/atlas.tsx +0 -14
- package/src/icons/maps/compass.tsx +0 -14
- package/src/icons/maps/direction.tsx +0 -14
- package/src/icons/maps/direction_angled.tsx +0 -14
- package/src/icons/maps/globe.tsx +0 -14
- package/src/icons/maps/globe_slash.tsx +0 -14
- package/src/icons/maps/index.ts +0 -22
- package/src/icons/maps/location.tsx +0 -14
- package/src/icons/maps/location_slash.tsx +0 -14
- package/src/icons/maps/map.tsx +0 -14
- package/src/icons/maps/marker.tsx +0 -14
- package/src/icons/maps/panorama.tsx +0 -14
- package/src/icons/maps/pin.tsx +0 -14
- package/src/icons/maps/pin_arrow.tsx +0 -14
- package/src/icons/maps/pin_location.tsx +0 -14
- package/src/icons/maps/pin_plus.tsx +0 -14
- package/src/icons/maps/pin_question.tsx +0 -14
- package/src/icons/maps/pin_slash.tsx +0 -14
- package/src/icons/maps/push_pin.tsx +0 -14
- package/src/icons/maps/push_pin_filled.tsx +0 -14
- package/src/icons/maps/push_pin_slash.tsx +0 -14
- package/src/icons/maps/radar.tsx +0 -14
- package/src/icons/maps/route.tsx +0 -14
- package/src/icons/message/bubble.tsx +0 -14
- package/src/icons/message/bubble_question.tsx +0 -14
- package/src/icons/message/comment.tsx +0 -14
- package/src/icons/message/comment_add.tsx +0 -14
- package/src/icons/message/comment_check.tsx +0 -14
- package/src/icons/message/comment_close.tsx +0 -14
- package/src/icons/message/comment_minus.tsx +0 -14
- package/src/icons/message/comment_text.tsx +0 -14
- package/src/icons/message/index.ts +0 -8
- package/src/icons/misc/advertisement.tsx +0 -14
- package/src/icons/misc/atom.tsx +0 -14
- package/src/icons/misc/bone.tsx +0 -14
- package/src/icons/misc/brightness_high.tsx +0 -14
- package/src/icons/misc/brightness_low.tsx +0 -14
- package/src/icons/misc/contrast.tsx +0 -14
- package/src/icons/misc/crosshairs.tsx +0 -14
- package/src/icons/misc/crown.tsx +0 -10
- package/src/icons/misc/footprint.tsx +0 -10
- package/src/icons/misc/form.tsx +0 -14
- package/src/icons/misc/funnel.tsx +0 -14
- package/src/icons/misc/index.ts +0 -25
- package/src/icons/misc/infinite.tsx +0 -14
- package/src/icons/misc/insert_button.tsx +0 -14
- package/src/icons/misc/light_bulb.tsx +0 -14
- package/src/icons/misc/moon.tsx +0 -14
- package/src/icons/misc/nut.tsx +0 -14
- package/src/icons/misc/planet.tsx +0 -14
- package/src/icons/misc/plus_thick.tsx +0 -14
- package/src/icons/misc/pocket.tsx +0 -14
- package/src/icons/misc/rocket.tsx +0 -14
- package/src/icons/misc/soup.tsx +0 -18
- package/src/icons/misc/sun.tsx +0 -14
- package/src/icons/misc/toy_horse.tsx +0 -14
- package/src/icons/misc/trophy.tsx +0 -14
- package/src/icons/misc/watercloset.tsx +0 -10
- package/src/icons/notifications/alert_circle.tsx +0 -14
- package/src/icons/notifications/alert_octogon.tsx +0 -14
- package/src/icons/notifications/alert_triangle.tsx +0 -14
- package/src/icons/notifications/app_notification.tsx +0 -14
- package/src/icons/notifications/bell.tsx +0 -14
- package/src/icons/notifications/bell_alert.tsx +0 -14
- package/src/icons/notifications/bell_checkmark.tsx +0 -14
- package/src/icons/notifications/bell_minus.tsx +0 -14
- package/src/icons/notifications/bell_plus.tsx +0 -14
- package/src/icons/notifications/bell_ring.tsx +0 -16
- package/src/icons/notifications/bell_slash.tsx +0 -14
- package/src/icons/notifications/close_octogon.tsx +0 -14
- package/src/icons/notifications/index.ts +0 -14
- package/src/icons/notifications/information.tsx +0 -14
- package/src/icons/notifications/minus_octogon.tsx +0 -14
- package/src/icons/notifications/question_circle.tsx +0 -14
- package/src/icons/people/group.tsx +0 -10
- package/src/icons/people/group_add.tsx +0 -10
- package/src/icons/people/group_chat.tsx +0 -20
- package/src/icons/people/group_remove.tsx +0 -10
- package/src/icons/people/group_send.tsx +0 -11
- package/src/icons/people/groups.tsx +0 -10
- package/src/icons/people/index.ts +0 -13
- package/src/icons/people/person.tsx +0 -10
- package/src/icons/people/person_add.tsx +0 -10
- package/src/icons/people/person_checkmark.tsx +0 -10
- package/src/icons/people/person_circle.tsx +0 -20
- package/src/icons/people/person_close.tsx +0 -20
- package/src/icons/people/person_remove.tsx +0 -10
- package/src/icons/people/person_slash.tsx +0 -24
- package/src/icons/phone/index.ts +0 -14
- package/src/icons/phone/keypad.tsx +0 -14
- package/src/icons/phone/phone.tsx +0 -14
- package/src/icons/phone/phone_add.tsx +0 -14
- package/src/icons/phone/phone_calling.tsx +0 -14
- package/src/icons/phone/phone_check.tsx +0 -14
- package/src/icons/phone/phone_close.tsx +0 -14
- package/src/icons/phone/phone_decline.tsx +0 -14
- package/src/icons/phone/phone_end.tsx +0 -14
- package/src/icons/phone/phone_forwarded.tsx +0 -14
- package/src/icons/phone/phone_hash.tsx +0 -14
- package/src/icons/phone/phone_incoming.tsx +0 -14
- package/src/icons/phone/phone_missed.tsx +0 -14
- package/src/icons/phone/phone_outgoing.tsx +0 -14
- package/src/icons/phone/phone_pause.tsx +0 -14
- package/src/icons/phone/phone_slash.tsx +0 -14
- package/src/icons/phone/voicemail.tsx +0 -14
- package/src/icons/security/index.ts +0 -11
- package/src/icons/security/key.tsx +0 -14
- package/src/icons/security/key_slash.tsx +0 -14
- package/src/icons/security/lock.tsx +0 -14
- package/src/icons/security/lock_circle.tsx +0 -14
- package/src/icons/security/lock_open.tsx +0 -14
- package/src/icons/security/lock_slash.tsx +0 -14
- package/src/icons/security/shield.tsx +0 -14
- package/src/icons/security/shield_checkmark.tsx +0 -14
- package/src/icons/security/shield_lock.tsx +0 -14
- package/src/icons/security/shield_slash.tsx +0 -14
- package/src/icons/security/verified.tsx +0 -14
- package/src/icons/shopping/basket.tsx +0 -14
- package/src/icons/shopping/cart.tsx +0 -14
- package/src/icons/shopping/cart_filled.tsx +0 -14
- package/src/icons/shopping/coupon.tsx +0 -14
- package/src/icons/shopping/coupon_cut.tsx +0 -14
- package/src/icons/shopping/delivery.tsx +0 -14
- package/src/icons/shopping/discount.tsx +0 -14
- package/src/icons/shopping/gift.tsx +0 -14
- package/src/icons/shopping/gift_bag.tsx +0 -14
- package/src/icons/shopping/index.ts +0 -15
- package/src/icons/shopping/inventory.tsx +0 -10
- package/src/icons/shopping/point_of_sale.tsx +0 -14
- package/src/icons/shopping/shirt.tsx +0 -10
- package/src/icons/shopping/tag.tsx +0 -14
- package/src/icons/shopping/tag_diagonal.tsx +0 -10
- package/src/icons/shopping/tote.tsx +0 -14
- package/src/icons/special/index.ts +0 -4
- package/src/icons/special/upload_audio.tsx +0 -58
- package/src/icons/special/upload_file.tsx +0 -50
- package/src/icons/special/upload_image.tsx +0 -52
- package/src/icons/special/upload_video.tsx +0 -61
- package/src/icons/symbols/at.tsx +0 -14
- package/src/icons/symbols/cc.tsx +0 -14
- package/src/icons/symbols/cmd.tsx +0 -14
- package/src/icons/symbols/facebook.tsx +0 -13
- package/src/icons/symbols/google.tsx +0 -33
- package/src/icons/symbols/hash.tsx +0 -14
- package/src/icons/symbols/index.ts +0 -9
- package/src/icons/symbols/instagram.tsx +0 -48
- package/src/icons/symbols/messenger.tsx +0 -30
- package/src/icons/symbols/twitter.tsx +0 -13
- package/src/icons/technology/battery.tsx +0 -14
- package/src/icons/technology/battery_100.tsx +0 -14
- package/src/icons/technology/battery_20.tsx +0 -14
- package/src/icons/technology/battery_40.tsx +0 -14
- package/src/icons/technology/battery_60.tsx +0 -14
- package/src/icons/technology/battery_80.tsx +0 -14
- package/src/icons/technology/battery_charging.tsx +0 -14
- package/src/icons/technology/battery_slash.tsx +0 -14
- package/src/icons/technology/devices.tsx +0 -14
- package/src/icons/technology/floppy_disk.tsx +0 -14
- package/src/icons/technology/index.ts +0 -17
- package/src/icons/technology/iphone.tsx +0 -14
- package/src/icons/technology/laptop.tsx +0 -14
- package/src/icons/technology/mobile.tsx +0 -14
- package/src/icons/technology/monitor.tsx +0 -14
- package/src/icons/technology/server.tsx +0 -14
- package/src/icons/technology/sim_card.tsx +0 -14
- package/src/icons/technology/usb_stick.tsx +0 -14
- package/src/icons/text/align_center.tsx +0 -14
- package/src/icons/text/align_justified.tsx +0 -14
- package/src/icons/text/align_left.tsx +0 -14
- package/src/icons/text/align_right.tsx +0 -14
- package/src/icons/text/code_block.tsx +0 -10
- package/src/icons/text/divider.tsx +0 -14
- package/src/icons/text/footnote.tsx +0 -12
- package/src/icons/text/indent_decrease.tsx +0 -10
- package/src/icons/text/indent_increase.tsx +0 -10
- package/src/icons/text/index.ts +0 -13
- package/src/icons/text/list_ordered.tsx +0 -10
- package/src/icons/text/list_unordered.tsx +0 -14
- package/src/icons/text/quote.tsx +0 -10
- package/src/icons/text/table.tsx +0 -14
- package/src/icons/time/alarm.tsx +0 -14
- package/src/icons/time/alarm_checkmark.tsx +0 -14
- package/src/icons/time/alarm_minus.tsx +0 -14
- package/src/icons/time/alarm_plus.tsx +0 -14
- package/src/icons/time/alarm_slash.tsx +0 -14
- package/src/icons/time/alarm_snooze.tsx +0 -14
- package/src/icons/time/calendar.tsx +0 -14
- package/src/icons/time/calendar_add.tsx +0 -14
- package/src/icons/time/calendar_checkmark.tsx +0 -14
- package/src/icons/time/calendar_close.tsx +0 -14
- package/src/icons/time/calendar_dates.tsx +0 -14
- package/src/icons/time/calendar_minus.tsx +0 -14
- package/src/icons/time/calendar_plus.tsx +0 -14
- package/src/icons/time/calendar_scroll.tsx +0 -16
- package/src/icons/time/clock.tsx +0 -14
- package/src/icons/time/clock_history.tsx +0 -14
- package/src/icons/time/index.ts +0 -19
- package/src/icons/time/stopwatch.tsx +0 -14
- package/src/icons/time/timer.tsx +0 -14
- package/src/icons/time/watch.tsx +0 -14
- package/src/index.ts +0 -2
- package/src/types/attributes.ts +0 -83
- package/src/types/index.ts +0 -17
- package/src/utils/date.ts +0 -118
- package/src/utils/function.ts +0 -4
- package/src/utils/index.ts +0 -14
- package/tsconfig.build.json +0 -29
- package/tsconfig.json +0 -29
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import {
|
|
4
|
-
Box,
|
|
5
|
-
Caption,
|
|
6
|
-
CaptionTextarea,
|
|
7
|
-
Image,
|
|
8
|
-
PlateElement,
|
|
9
|
-
PlateElementProps,
|
|
10
|
-
Resizable,
|
|
11
|
-
TImageElement,
|
|
12
|
-
useMediaState,
|
|
13
|
-
Value,
|
|
14
|
-
} from '@udecode/plate';
|
|
15
|
-
import { useReadOnly } from 'slate-react';
|
|
16
|
-
|
|
17
|
-
const align = 'center';
|
|
18
|
-
|
|
19
|
-
export const ImageElement = ({
|
|
20
|
-
...props
|
|
21
|
-
}: PlateElementProps<Value, TImageElement>) => {
|
|
22
|
-
const { children, nodeProps } = props;
|
|
23
|
-
|
|
24
|
-
const readOnly = useReadOnly();
|
|
25
|
-
|
|
26
|
-
useMediaState();
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<PlateElement {...props}>
|
|
30
|
-
<Figure className="group" contentEditable={false}>
|
|
31
|
-
<Resizable
|
|
32
|
-
style={{
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
width: '100%',
|
|
35
|
-
maxWidth: '100%',
|
|
36
|
-
marginLeft: 'auto',
|
|
37
|
-
marginRight: 'auto',
|
|
38
|
-
}}
|
|
39
|
-
options={{
|
|
40
|
-
renderHandleLeft: (htmlProps) => <Box {...htmlProps} />,
|
|
41
|
-
renderHandleRight: (htmlProps) => <Box {...htmlProps} />,
|
|
42
|
-
align,
|
|
43
|
-
readOnly,
|
|
44
|
-
}}
|
|
45
|
-
>
|
|
46
|
-
<Image {...nodeProps} />
|
|
47
|
-
</Resizable>
|
|
48
|
-
<Caption className="HERE">
|
|
49
|
-
<Textarea
|
|
50
|
-
$readOnly={readOnly}
|
|
51
|
-
placeholder="Write a caption..."
|
|
52
|
-
readOnly={readOnly}
|
|
53
|
-
/>
|
|
54
|
-
</Caption>
|
|
55
|
-
</Figure>
|
|
56
|
-
{children}
|
|
57
|
-
</PlateElement>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const Figure = styled.figure`
|
|
62
|
-
position: relative;
|
|
63
|
-
margin: 0px;
|
|
64
|
-
width: 100%;
|
|
65
|
-
|
|
66
|
-
img {
|
|
67
|
-
width: 100%;
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
|
|
71
|
-
const Textarea = styled(CaptionTextarea)<{ $readOnly: boolean }>`
|
|
72
|
-
width: 100%;
|
|
73
|
-
padding: 8px 16px;
|
|
74
|
-
box-sizing: border-box;
|
|
75
|
-
text-align: center;
|
|
76
|
-
resize: none;
|
|
77
|
-
outline: none;
|
|
78
|
-
border: 1px solid
|
|
79
|
-
${({ $readOnly }) => ($readOnly ? 'transparent' : 'var(--color-grey-9)')};
|
|
80
|
-
`;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PLUGINS
|
|
3
|
-
*/
|
|
4
|
-
import {
|
|
5
|
-
createBlockquotePlugin,
|
|
6
|
-
createCodeBlockPlugin,
|
|
7
|
-
createHeadingPlugin,
|
|
8
|
-
createHorizontalRulePlugin,
|
|
9
|
-
createIndentListPlugin,
|
|
10
|
-
createImagePlugin,
|
|
11
|
-
createTextIndentPlugin,
|
|
12
|
-
createListPlugin,
|
|
13
|
-
createMediaEmbedPlugin,
|
|
14
|
-
createResetNodePlugin,
|
|
15
|
-
createTablePlugin,
|
|
16
|
-
createBoldPlugin,
|
|
17
|
-
createCodePlugin,
|
|
18
|
-
createFontBackgroundColorPlugin,
|
|
19
|
-
createFontSizePlugin,
|
|
20
|
-
createFontFamilyPlugin,
|
|
21
|
-
createItalicPlugin,
|
|
22
|
-
createStrikethroughPlugin,
|
|
23
|
-
createSubscriptPlugin,
|
|
24
|
-
createSuperscriptPlugin,
|
|
25
|
-
createUnderlinePlugin,
|
|
26
|
-
createAlignPlugin,
|
|
27
|
-
createIndentPlugin,
|
|
28
|
-
createLineHeightPlugin,
|
|
29
|
-
createLinkPlugin,
|
|
30
|
-
createExitBreakPlugin,
|
|
31
|
-
createHistoryPlugin,
|
|
32
|
-
createSelectOnBackspacePlugin,
|
|
33
|
-
createSoftBreakPlugin,
|
|
34
|
-
} from '@udecode/plate';
|
|
35
|
-
import { createButtonsPlugin } from './buttons';
|
|
36
|
-
import { exitBreakPlugin } from './exitBreak';
|
|
37
|
-
import { resetBlockTypePlugin } from './resetBlockType';
|
|
38
|
-
import { selectOnBackspace } from './selectOnBackspace';
|
|
39
|
-
import { softBreakPlugin } from './softBreak';
|
|
40
|
-
import {
|
|
41
|
-
createParagraphPlugin,
|
|
42
|
-
createHOnePlugin,
|
|
43
|
-
createHTwoPlugin,
|
|
44
|
-
createHThreePlugin,
|
|
45
|
-
createHFourPlugin,
|
|
46
|
-
createHFivePlugin,
|
|
47
|
-
createHSixPlugin,
|
|
48
|
-
} from './text';
|
|
49
|
-
|
|
50
|
-
import { LinkFloatingMenu } from './link';
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* ELEMENT TYPES
|
|
54
|
-
*/
|
|
55
|
-
import {
|
|
56
|
-
ELEMENT_PARAGRAPH,
|
|
57
|
-
ELEMENT_H1,
|
|
58
|
-
ELEMENT_H2,
|
|
59
|
-
ELEMENT_H3,
|
|
60
|
-
ELEMENT_H4,
|
|
61
|
-
ELEMENT_H5,
|
|
62
|
-
ELEMENT_H6,
|
|
63
|
-
ELEMENT_OL,
|
|
64
|
-
ELEMENT_UL,
|
|
65
|
-
} from '../constants';
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* ELEMENT TYPES
|
|
69
|
-
*/
|
|
70
|
-
export const blocks = [
|
|
71
|
-
createButtonsPlugin(),
|
|
72
|
-
createBlockquotePlugin(),
|
|
73
|
-
createCodeBlockPlugin(),
|
|
74
|
-
createHeadingPlugin(),
|
|
75
|
-
createHorizontalRulePlugin(),
|
|
76
|
-
createImagePlugin({
|
|
77
|
-
options: {
|
|
78
|
-
disableUploadInsert: true,
|
|
79
|
-
disableCaption: true,
|
|
80
|
-
disableEmbedInsert: true,
|
|
81
|
-
},
|
|
82
|
-
}),
|
|
83
|
-
createTextIndentPlugin(),
|
|
84
|
-
createIndentListPlugin({
|
|
85
|
-
inject: {
|
|
86
|
-
props: {
|
|
87
|
-
validTypes: [
|
|
88
|
-
ELEMENT_PARAGRAPH,
|
|
89
|
-
ELEMENT_H1,
|
|
90
|
-
ELEMENT_H2,
|
|
91
|
-
ELEMENT_H3,
|
|
92
|
-
ELEMENT_H4,
|
|
93
|
-
ELEMENT_H5,
|
|
94
|
-
ELEMENT_H6,
|
|
95
|
-
ELEMENT_OL,
|
|
96
|
-
ELEMENT_UL,
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
}),
|
|
101
|
-
createListPlugin(),
|
|
102
|
-
createMediaEmbedPlugin(),
|
|
103
|
-
createParagraphPlugin(),
|
|
104
|
-
createHOnePlugin(),
|
|
105
|
-
createHTwoPlugin(),
|
|
106
|
-
createHThreePlugin(),
|
|
107
|
-
createHFourPlugin(),
|
|
108
|
-
createHFivePlugin(),
|
|
109
|
-
createHSixPlugin(),
|
|
110
|
-
createResetNodePlugin(),
|
|
111
|
-
createTablePlugin(),
|
|
112
|
-
];
|
|
113
|
-
|
|
114
|
-
export const marks = [
|
|
115
|
-
createBoldPlugin(),
|
|
116
|
-
createCodePlugin(),
|
|
117
|
-
createFontBackgroundColorPlugin(),
|
|
118
|
-
createFontSizePlugin(),
|
|
119
|
-
createFontFamilyPlugin(),
|
|
120
|
-
createItalicPlugin(),
|
|
121
|
-
createStrikethroughPlugin(),
|
|
122
|
-
createSubscriptPlugin(),
|
|
123
|
-
createSuperscriptPlugin(),
|
|
124
|
-
createUnderlinePlugin(),
|
|
125
|
-
];
|
|
126
|
-
|
|
127
|
-
export const inline = [
|
|
128
|
-
createAlignPlugin({
|
|
129
|
-
inject: {
|
|
130
|
-
props: {
|
|
131
|
-
validTypes: [
|
|
132
|
-
ELEMENT_PARAGRAPH,
|
|
133
|
-
ELEMENT_H1,
|
|
134
|
-
ELEMENT_H2,
|
|
135
|
-
ELEMENT_H3,
|
|
136
|
-
ELEMENT_H4,
|
|
137
|
-
ELEMENT_H5,
|
|
138
|
-
ELEMENT_H6,
|
|
139
|
-
],
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
}),
|
|
143
|
-
createIndentPlugin({
|
|
144
|
-
inject: {
|
|
145
|
-
props: {
|
|
146
|
-
validTypes: [ELEMENT_PARAGRAPH, ELEMENT_H1],
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
}),
|
|
150
|
-
createLineHeightPlugin(),
|
|
151
|
-
createLinkPlugin({
|
|
152
|
-
renderAfterEditable: LinkFloatingMenu,
|
|
153
|
-
}),
|
|
154
|
-
];
|
|
155
|
-
|
|
156
|
-
export const utils = [
|
|
157
|
-
createExitBreakPlugin(exitBreakPlugin),
|
|
158
|
-
createHistoryPlugin(),
|
|
159
|
-
createResetNodePlugin(resetBlockTypePlugin),
|
|
160
|
-
createSelectOnBackspacePlugin(selectOnBackspace),
|
|
161
|
-
createSoftBreakPlugin(softBreakPlugin),
|
|
162
|
-
];
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import {
|
|
4
|
-
FloatingLinkUrlInput,
|
|
5
|
-
LinkOpenButton,
|
|
6
|
-
PlateElement,
|
|
7
|
-
PlateElementProps,
|
|
8
|
-
TEditableProps,
|
|
9
|
-
TLinkElement,
|
|
10
|
-
useFloatingLinkEdit,
|
|
11
|
-
useFloatingLinkEditState,
|
|
12
|
-
useFloatingLinkInsert,
|
|
13
|
-
useFloatingLinkInsertState,
|
|
14
|
-
useFloatingLinkSelectors,
|
|
15
|
-
useLink,
|
|
16
|
-
Value,
|
|
17
|
-
} from '@udecode/plate';
|
|
18
|
-
import { Box } from '../../';
|
|
19
|
-
import { AASansSerif, Link, Upload } from '../../../icons';
|
|
20
|
-
|
|
21
|
-
export const LinkElement = React.forwardRef<
|
|
22
|
-
React.ElementRef<typeof PlateElement>,
|
|
23
|
-
PlateElementProps<Value, TLinkElement>
|
|
24
|
-
>(({ children, ...props }, ref) => {
|
|
25
|
-
const { props: linkProps } = useLink({ element: props.element });
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<PlateElement asChild ref={ref} {...linkProps} {...(props as any)}>
|
|
29
|
-
<a>{children}</a>
|
|
30
|
-
</PlateElement>
|
|
31
|
-
);
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export const LinkFloatingMenu = ({ readOnly }: TEditableProps) => {
|
|
35
|
-
const isEditing = useFloatingLinkSelectors().isEditing();
|
|
36
|
-
|
|
37
|
-
const state = useFloatingLinkInsertState();
|
|
38
|
-
const {
|
|
39
|
-
props: insertProps,
|
|
40
|
-
ref: insertRef,
|
|
41
|
-
textInputProps,
|
|
42
|
-
} = useFloatingLinkInsert(state);
|
|
43
|
-
|
|
44
|
-
const editState = useFloatingLinkEditState();
|
|
45
|
-
const {
|
|
46
|
-
props: editProps,
|
|
47
|
-
ref: editRef,
|
|
48
|
-
editButtonProps,
|
|
49
|
-
} = useFloatingLinkEdit(editState);
|
|
50
|
-
|
|
51
|
-
if (readOnly) return null;
|
|
52
|
-
|
|
53
|
-
const input = (
|
|
54
|
-
<Box
|
|
55
|
-
$dir="column"
|
|
56
|
-
sx={`
|
|
57
|
-
background-color: var(--color-white);
|
|
58
|
-
gap: 16px;
|
|
59
|
-
padding: 16px;
|
|
60
|
-
border-radius: 16px;
|
|
61
|
-
box-shadow: var(--elevation-2);
|
|
62
|
-
`}
|
|
63
|
-
>
|
|
64
|
-
<Box $align="center" $justify="center" $gap={8}>
|
|
65
|
-
<Box $align="center" $justify="center">
|
|
66
|
-
<Link />
|
|
67
|
-
</Box>
|
|
68
|
-
<FloatingLinkUrlInput
|
|
69
|
-
style={{
|
|
70
|
-
border: 'none',
|
|
71
|
-
outline: 'none',
|
|
72
|
-
padding: '8px 12px',
|
|
73
|
-
}}
|
|
74
|
-
placeholder="Paste link"
|
|
75
|
-
/>
|
|
76
|
-
</Box>
|
|
77
|
-
<Box $align="center" $justify="center" $gap={8}>
|
|
78
|
-
<Box $align="center" $justify="center">
|
|
79
|
-
<AASansSerif />
|
|
80
|
-
</Box>
|
|
81
|
-
<Input placeholder="Text to display" {...textInputProps} />
|
|
82
|
-
</Box>
|
|
83
|
-
</Box>
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
const editContent = isEditing ? (
|
|
87
|
-
input
|
|
88
|
-
) : (
|
|
89
|
-
<Box
|
|
90
|
-
$align="center"
|
|
91
|
-
$justify="center"
|
|
92
|
-
sx={`
|
|
93
|
-
box-sizing: box-content;
|
|
94
|
-
background-color: var(--color-white);
|
|
95
|
-
gap: 8px;
|
|
96
|
-
padding: 16px;
|
|
97
|
-
border-radius: 16px;
|
|
98
|
-
box-shadow: var(--elevation-2);
|
|
99
|
-
|
|
100
|
-
a,
|
|
101
|
-
button {
|
|
102
|
-
padding: 8px 12px;
|
|
103
|
-
background-color: transparent;
|
|
104
|
-
outline: none;
|
|
105
|
-
border: none;
|
|
106
|
-
border-radius: 8px;
|
|
107
|
-
cursor: pointer;
|
|
108
|
-
width: max-content;
|
|
109
|
-
font-size: 16px;
|
|
110
|
-
line-height: 16px;
|
|
111
|
-
|
|
112
|
-
&:hover {
|
|
113
|
-
background-color: var(--color-grey-9);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
`}
|
|
117
|
-
$gap={8}
|
|
118
|
-
>
|
|
119
|
-
<button type="button" {...editButtonProps}>
|
|
120
|
-
Edit link
|
|
121
|
-
</button>
|
|
122
|
-
<LinkOpenButton>
|
|
123
|
-
<Upload />
|
|
124
|
-
</LinkOpenButton>
|
|
125
|
-
</Box>
|
|
126
|
-
);
|
|
127
|
-
|
|
128
|
-
return (
|
|
129
|
-
<>
|
|
130
|
-
<div ref={insertRef} {...insertProps}>
|
|
131
|
-
{input}
|
|
132
|
-
</div>
|
|
133
|
-
<div ref={editRef} {...editProps}>
|
|
134
|
-
{editContent}
|
|
135
|
-
</div>
|
|
136
|
-
</>
|
|
137
|
-
);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const Input = styled.input`
|
|
141
|
-
border: none;
|
|
142
|
-
outline: none;
|
|
143
|
-
padding: 8px 12px;
|
|
144
|
-
`;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PlateElement, PlateElementProps } from '@udecode/plate';
|
|
3
|
-
import { styled } from 'styled-components';
|
|
4
|
-
|
|
5
|
-
export const ListElement = ({
|
|
6
|
-
children,
|
|
7
|
-
variant = 'ul',
|
|
8
|
-
...props
|
|
9
|
-
}: PlateElementProps & {
|
|
10
|
-
variant: 'ul' | 'ol';
|
|
11
|
-
}) => {
|
|
12
|
-
const Element = variant;
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<PlateElement asChild {...props}>
|
|
16
|
-
<>
|
|
17
|
-
<Element>
|
|
18
|
-
{React.Children.map(children, (child) => (
|
|
19
|
-
<Li>{child}</Li>
|
|
20
|
-
))}
|
|
21
|
-
</Element>
|
|
22
|
-
</>
|
|
23
|
-
</PlateElement>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const Li = styled.li`
|
|
28
|
-
margin: 16px 0px;
|
|
29
|
-
padding-left: 8px;
|
|
30
|
-
|
|
31
|
-
&::marker {
|
|
32
|
-
color: var(--color-grey-4);
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { isBlockAboveEmpty, isSelectionAtBlockStart } from '@udecode/plate';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ELEMENT_BLOCKQUOTE,
|
|
5
|
-
ELEMENT_PARAGRAPH,
|
|
6
|
-
ELEMENT_TODO_LI,
|
|
7
|
-
} from '../constants';
|
|
8
|
-
|
|
9
|
-
const resetBlockTypesCommonRule = {
|
|
10
|
-
types: [ELEMENT_BLOCKQUOTE, ELEMENT_TODO_LI],
|
|
11
|
-
defaultType: ELEMENT_PARAGRAPH,
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const resetBlockTypePlugin = {
|
|
15
|
-
options: {
|
|
16
|
-
rules: [
|
|
17
|
-
{
|
|
18
|
-
...resetBlockTypesCommonRule,
|
|
19
|
-
hotkey: 'Enter',
|
|
20
|
-
predicate: isBlockAboveEmpty,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
...resetBlockTypesCommonRule,
|
|
24
|
-
hotkey: 'Backspace',
|
|
25
|
-
predicate: isSelectionAtBlockStart,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ELEMENT_BLOCKQUOTE,
|
|
3
|
-
ELEMENT_CODE_BLOCK,
|
|
4
|
-
ELEMENT_TD,
|
|
5
|
-
} from '@udecode/plate';
|
|
6
|
-
|
|
7
|
-
export const softBreakPlugin = {
|
|
8
|
-
options: {
|
|
9
|
-
rules: [
|
|
10
|
-
{ hotkey: 'shift+enter' },
|
|
11
|
-
{
|
|
12
|
-
hotkey: 'enter',
|
|
13
|
-
query: {
|
|
14
|
-
allow: [ELEMENT_CODE_BLOCK, ELEMENT_BLOCKQUOTE, ELEMENT_TD],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
createPluginFactory,
|
|
4
|
-
PlateElement,
|
|
5
|
-
PlateElementProps,
|
|
6
|
-
PlateRenderElementProps,
|
|
7
|
-
} from '@udecode/plate';
|
|
8
|
-
import { H, P } from '../../';
|
|
9
|
-
import * as Elements from '../constants';
|
|
10
|
-
|
|
11
|
-
export const ParagraphElement = React.forwardRef<
|
|
12
|
-
React.ElementRef<typeof PlateElement>,
|
|
13
|
-
PlateElementProps
|
|
14
|
-
>(({ children, ...props }: PlateRenderElementProps, ref) => {
|
|
15
|
-
const textAlign = (props as any)?.style?.textAlign;
|
|
16
|
-
return (
|
|
17
|
-
<PlateElement asChild ref={ref} {...props}>
|
|
18
|
-
<>
|
|
19
|
-
<P as="div" $textAlign={textAlign}>
|
|
20
|
-
{children}
|
|
21
|
-
</P>
|
|
22
|
-
</>
|
|
23
|
-
</PlateElement>
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export const createParagraphPlugin = createPluginFactory({
|
|
28
|
-
key: Elements.ELEMENT_PARAGRAPH,
|
|
29
|
-
type: Elements.ELEMENT_PARAGRAPH,
|
|
30
|
-
isElement: true,
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export const HOneElement = React.forwardRef<
|
|
34
|
-
React.ElementRef<typeof PlateElement>,
|
|
35
|
-
PlateElementProps
|
|
36
|
-
>(({ children, ...props }: PlateRenderElementProps, ref) => {
|
|
37
|
-
const textAlign = (props as any)?.style?.textAlign;
|
|
38
|
-
return (
|
|
39
|
-
<PlateElement asChild ref={ref} {...props}>
|
|
40
|
-
<>
|
|
41
|
-
<H.One $textAlign={textAlign}>{children}</H.One>
|
|
42
|
-
</>
|
|
43
|
-
</PlateElement>
|
|
44
|
-
);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
export const createHOnePlugin = createPluginFactory({
|
|
48
|
-
key: Elements.ELEMENT_H1,
|
|
49
|
-
type: Elements.ELEMENT_H1,
|
|
50
|
-
isElement: true,
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export const HTwoElement = React.forwardRef<
|
|
54
|
-
React.ElementRef<typeof PlateElement>,
|
|
55
|
-
PlateElementProps
|
|
56
|
-
>(({ children, ...props }: PlateRenderElementProps, ref) => {
|
|
57
|
-
const textAlign = (props as any)?.style?.textAlign;
|
|
58
|
-
return (
|
|
59
|
-
<PlateElement asChild ref={ref} {...props}>
|
|
60
|
-
<>
|
|
61
|
-
<H.Two $textAlign={textAlign}>{children}</H.Two>
|
|
62
|
-
</>
|
|
63
|
-
</PlateElement>
|
|
64
|
-
);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export const createHTwoPlugin = createPluginFactory({
|
|
68
|
-
key: Elements.ELEMENT_H2,
|
|
69
|
-
type: Elements.ELEMENT_H2,
|
|
70
|
-
isElement: true,
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
export const HThreeElement = React.forwardRef<
|
|
74
|
-
React.ElementRef<typeof PlateElement>,
|
|
75
|
-
PlateElementProps
|
|
76
|
-
>(({ children, ...props }: PlateRenderElementProps, ref) => {
|
|
77
|
-
const textAlign = (props as any)?.style?.textAlign;
|
|
78
|
-
return (
|
|
79
|
-
<PlateElement asChild ref={ref} {...props}>
|
|
80
|
-
<>
|
|
81
|
-
<H.Three $textAlign={textAlign}>{children}</H.Three>
|
|
82
|
-
</>
|
|
83
|
-
</PlateElement>
|
|
84
|
-
);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
export const createHThreePlugin = createPluginFactory({
|
|
88
|
-
key: Elements.ELEMENT_H3,
|
|
89
|
-
type: Elements.ELEMENT_H3,
|
|
90
|
-
isElement: true,
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
export const HFourElement = React.forwardRef<
|
|
94
|
-
React.ElementRef<typeof PlateElement>,
|
|
95
|
-
PlateElementProps
|
|
96
|
-
>(({ children, ...props }: PlateRenderElementProps, ref) => {
|
|
97
|
-
const textAlign = (props as any)?.style?.textAlign;
|
|
98
|
-
return (
|
|
99
|
-
<PlateElement asChild ref={ref} {...props}>
|
|
100
|
-
<>
|
|
101
|
-
<H.Four $textAlign={textAlign}>{children}</H.Four>
|
|
102
|
-
</>
|
|
103
|
-
</PlateElement>
|
|
104
|
-
);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
export const createHFourPlugin = createPluginFactory({
|
|
108
|
-
key: Elements.ELEMENT_H4,
|
|
109
|
-
type: Elements.ELEMENT_H4,
|
|
110
|
-
isElement: true,
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
export const HFiveElement = React.forwardRef<
|
|
114
|
-
React.ElementRef<typeof PlateElement>,
|
|
115
|
-
PlateElementProps
|
|
116
|
-
>(({ children, ...props }: PlateRenderElementProps, ref) => {
|
|
117
|
-
const textAlign = (props as any)?.style?.textAlign;
|
|
118
|
-
return (
|
|
119
|
-
<PlateElement asChild ref={ref} {...props}>
|
|
120
|
-
<>
|
|
121
|
-
<H.Five $textAlign={textAlign}>{children}</H.Five>
|
|
122
|
-
</>
|
|
123
|
-
</PlateElement>
|
|
124
|
-
);
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
export const createHFivePlugin = createPluginFactory({
|
|
128
|
-
key: Elements.ELEMENT_H5,
|
|
129
|
-
type: Elements.ELEMENT_H5,
|
|
130
|
-
isElement: true,
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
export const HSixElement = React.forwardRef<
|
|
134
|
-
React.ElementRef<typeof PlateElement>,
|
|
135
|
-
PlateElementProps
|
|
136
|
-
>(({ children, ...props }: PlateRenderElementProps, ref) => {
|
|
137
|
-
const textAlign = (props as any)?.style?.textAlign;
|
|
138
|
-
return (
|
|
139
|
-
<PlateElement asChild ref={ref} {...props}>
|
|
140
|
-
<>
|
|
141
|
-
<H.Six $textAlign={textAlign}>{children}</H.Six>
|
|
142
|
-
</>
|
|
143
|
-
</PlateElement>
|
|
144
|
-
);
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
export const createHSixPlugin = createPluginFactory({
|
|
148
|
-
key: Elements.ELEMENT_H6,
|
|
149
|
-
type: Elements.ELEMENT_H6,
|
|
150
|
-
isElement: true,
|
|
151
|
-
});
|