@soul-refiner/design-system 2.0.4 → 2.1.1-alpha.1
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/common/colors.js +1 -140
- package/dist/common/date.js +1 -34
- package/dist/common/styles.js +30 -62
- package/dist/components/actions/button/button.js +21 -111
- package/dist/components/actions/dropdown/dropdown.js +21 -176
- package/dist/components/actions/rate/rate.js +4 -55
- package/dist/components/actions/switch/switch.js +5 -39
- package/dist/components/actions/toggle/toggle.js +6 -33
- package/dist/components/actions/upload/upload.js +9 -167
- package/dist/components/atoms/box/box.js +4 -18
- package/dist/components/atoms/hide/hide.js +1 -18
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +1 -36
- package/dist/components/atoms/time_ago/time_ago.js +1 -39
- package/dist/components/atoms/typography/display.js +5 -18
- package/dist/components/atoms/typography/heading.js +6 -43
- package/dist/components/atoms/typography/paragraph.js +7 -20
- package/dist/components/atoms/typography/typography.js +3 -10
- package/dist/components/card/action/action.js +8 -41
- package/dist/components/card/audio/audio.js +7 -57
- package/dist/components/card/card.js +1 -33
- package/dist/components/card/feature/feature.js +14 -86
- package/dist/components/card/meeting/meeting.js +8 -102
- package/dist/components/card/person/person.js +6 -39
- package/dist/components/card/price/price.js +7 -49
- package/dist/components/card/regular/regular.js +5 -26
- package/dist/components/card/styles.js +2 -9
- package/dist/components/card/video/video.js +7 -57
- package/dist/components/card/written/written.js +7 -57
- package/dist/components/custom/courses_selection/courses_selection.js +12 -104
- package/dist/components/custom/users_selection/users_selection.js +12 -86
- package/dist/components/editor/constants.js +1 -195
- package/dist/components/editor/context.js +1 -17
- package/dist/components/editor/editor.js +5 -45
- package/dist/components/editor/icons/border-all.js +1 -12
- package/dist/components/editor/icons/border-bottom.js +1 -12
- package/dist/components/editor/icons/border-left.js +1 -12
- package/dist/components/editor/icons/border-none.js +1 -12
- package/dist/components/editor/icons/border-right.js +1 -12
- package/dist/components/editor/icons/border-top.js +1 -12
- package/dist/components/editor/navbar/alignment_dropdown.js +1 -106
- package/dist/components/editor/navbar/button_modal.js +3 -60
- package/dist/components/editor/navbar/navbar.js +7 -178
- package/dist/components/editor/navbar/style_dropdown.js +1 -74
- package/dist/components/editor/plugins/blocks/blockquote.js +1 -17
- package/dist/components/editor/plugins/blocks/blocks.js +1 -54
- package/dist/components/editor/plugins/blocks/buttons.js +8 -70
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +1 -77
- package/dist/components/editor/plugins/blocks/image.js +1 -60
- package/dist/components/editor/plugins/blocks/list.js +2 -20
- package/dist/components/editor/plugins/blocks/media-popover.js +1 -41
- package/dist/components/editor/plugins/blocks/plate-button.js +1 -63
- package/dist/components/editor/plugins/blocks/popover.js +1 -38
- package/dist/components/editor/plugins/blocks/qa.js +3 -45
- package/dist/components/editor/plugins/blocks/resizable.js +1 -47
- package/dist/components/editor/plugins/blocks/separator.js +1 -43
- package/dist/components/editor/plugins/blocks/table-cell.js +1 -48
- package/dist/components/editor/plugins/blocks/table-row.js +1 -16
- package/dist/components/editor/plugins/blocks/table.js +1 -98
- package/dist/components/editor/plugins/blocks/text.js +1 -103
- package/dist/components/editor/plugins/blocks/video.js +1 -42
- package/dist/components/editor/plugins/leafs/leafs.js +1 -37
- package/dist/components/editor/plugins/leafs/link.js +4 -55
- package/dist/components/editor/plugins/marks/marks.js +1 -17
- package/dist/components/editor/plugins/plate.js +1 -43
- package/dist/components/editor/plugins/utils/exitBreak.js +1 -36
- package/dist/components/editor/plugins/utils/resetBlockType.js +1 -26
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +1 -11
- package/dist/components/editor/plugins/utils/softBreak.js +1 -19
- package/dist/components/editor/plugins/utils/utils.js +1 -17
- package/dist/components/editor/simple_editor/navbar.js +4 -110
- package/dist/components/editor/simple_editor/plugins.js +1 -93
- package/dist/components/editor/simple_editor/simple_editor.js +3 -34
- package/dist/components/editor/styles/menu_button.js +3 -9
- package/dist/components/feedback/animated_toast/animated_toast.js +3 -32
- package/dist/components/feedback/badge/badge.js +7 -56
- package/dist/components/feedback/banner/banner.js +6 -60
- package/dist/components/feedback/chip/chip.js +8 -81
- package/dist/components/feedback/loader/loader.js +9 -33
- package/dist/components/feedback/notification/notification.js +6 -59
- package/dist/components/feedback/progress/progress.js +14 -76
- package/dist/components/feedback/toast/toast.js +7 -55
- package/dist/components/feedback/tooltip/tooltip.js +1 -34
- package/dist/components/iconography/avatar/avatar.js +22 -141
- package/dist/components/iconography/avatar/icons/approved.js +1 -14
- package/dist/components/iconography/avatar/icons/busy.js +1 -14
- package/dist/components/iconography/avatar/icons/declined.js +1 -14
- package/dist/components/iconography/avatar/icons/default.js +1 -13
- package/dist/components/iconography/avatar/icons/focus.js +1 -14
- package/dist/components/iconography/avatar/icons/locked.js +1 -14
- package/dist/components/iconography/avatar/icons/offline.js +1 -14
- package/dist/components/iconography/avatar/icons/online.js +1 -13
- package/dist/components/iconography/avatar/icons/subscribed.js +1 -18
- package/dist/components/iconography/icon/icon.js +3 -18
- package/dist/components/input/calendar/calendar.js +13 -139
- package/dist/components/input/checkbox/checkbox.js +5 -23
- package/dist/components/input/date/date.js +13 -241
- package/dist/components/input/filter/filter.js +13 -212
- package/dist/components/input/filter/filter_option.js +9 -50
- package/dist/components/input/radio/radio.js +7 -45
- package/dist/components/input/search/search.js +17 -83
- package/dist/components/input/select/select.js +6 -27
- package/dist/components/input/text_area/text_area.js +15 -60
- package/dist/components/input/text_input/text_input.js +21 -102
- package/dist/components/input/time/time.js +3 -47
- package/dist/components/media/video/video.js +1 -42
- package/dist/components/media/video-player/playlist-item.js +4 -37
- package/dist/components/media/video-player/video.js +13 -121
- package/dist/components/navigation/breadcrumb/breadcrumb.js +11 -66
- package/dist/components/navigation/inner/inner.js +14 -130
- package/dist/components/navigation/tabs/tabs.js +15 -101
- package/dist/components/surfaces/accordion/accordion.js +5 -46
- package/dist/components/surfaces/calendar_date/calendar_date.js +10 -39
- package/dist/components/surfaces/carousel/card/card.js +7 -55
- package/dist/components/surfaces/comment/comment.js +19 -152
- package/dist/components/surfaces/comment/helpers.js +1 -30
- package/dist/components/surfaces/drawer/drawer.js +7 -75
- package/dist/components/surfaces/message/message.js +4 -39
- package/dist/components/surfaces/modal/modal.js +8 -99
- package/dist/components/surfaces/portal/portal.js +1 -35
- package/dist/components/surfaces/post/post.js +19 -161
- package/dist/components/table/table/table.js +29 -120
- package/dist/emoji/emojis.json.js +1 -36331
- package/dist/icons/arrow/arrow_all.js +1 -15
- package/dist/icons/arrow/arrow_all_diagonal.js +1 -15
- package/dist/icons/arrow/arrow_both_downwards.js +1 -15
- package/dist/icons/arrow/arrow_both_upwards.js +1 -15
- package/dist/icons/arrow/arrow_circle_left.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +1 -17
- package/dist/icons/arrow/arrow_circle_right.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_down.js +1 -15
- package/dist/icons/arrow/arrow_down_bold.js +1 -15
- package/dist/icons/arrow/arrow_down_circle.js +1 -15
- package/dist/icons/arrow/arrow_left.js +1 -15
- package/dist/icons/arrow/arrow_left_bold.js +1 -15
- package/dist/icons/arrow/arrow_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_left_curved.js +1 -15
- package/dist/icons/arrow/arrow_left_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_right.js +1 -15
- package/dist/icons/arrow/arrow_right_bold.js +1 -15
- package/dist/icons/arrow/arrow_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_right_curved.js +1 -15
- package/dist/icons/arrow/arrow_right_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_up.js +1 -15
- package/dist/icons/arrow/arrow_up_bold.js +1 -15
- package/dist/icons/arrow/arrow_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_down.js +1 -15
- package/dist/icons/arrow/chevron_down_circle.js +1 -15
- package/dist/icons/arrow/chevron_down_double.js +1 -15
- package/dist/icons/arrow/chevron_down_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_left.js +1 -15
- package/dist/icons/arrow/chevron_left_circle.js +1 -15
- package/dist/icons/arrow/chevron_left_double.js +1 -15
- package/dist/icons/arrow/chevron_left_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_right.js +1 -15
- package/dist/icons/arrow/chevron_right_circle.js +1 -15
- package/dist/icons/arrow/chevron_right_double.js +1 -15
- package/dist/icons/arrow/chevron_right_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_scroll.js +1 -15
- package/dist/icons/arrow/chevron_up.js +1 -15
- package/dist/icons/arrow/chevron_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_up_double.js +1 -15
- package/dist/icons/arrow/chevron_up_double_circle.js +1 -15
- package/dist/icons/arrow/forward_all.js +1 -15
- package/dist/icons/arrow/forward_all_bold.js +1 -15
- package/dist/icons/arrow/forward_bold.js +1 -15
- package/dist/icons/arrow/redo.js +1 -15
- package/dist/icons/arrow/redo_bold.js +1 -15
- package/dist/icons/arrow/reply.js +1 -15
- package/dist/icons/arrow/reply_all.js +1 -15
- package/dist/icons/arrow/reply_all_bold.js +1 -15
- package/dist/icons/arrow/reply_bold.js +1 -15
- package/dist/icons/arrow/undo.js +1 -15
- package/dist/icons/arrow/undo_bold.js +1 -15
- package/dist/icons/audio_video/drag_indicator.js +1 -15
- package/dist/icons/audio_video/eject.js +1 -15
- package/dist/icons/audio_video/equalizer.js +1 -15
- package/dist/icons/audio_video/fast_forward.js +1 -15
- package/dist/icons/audio_video/fast_forward_30.js +1 -15
- package/dist/icons/audio_video/fullscreen.js +1 -15
- package/dist/icons/audio_video/headphones.js +1 -15
- package/dist/icons/audio_video/library_add.js +1 -15
- package/dist/icons/audio_video/library_music.js +1 -15
- package/dist/icons/audio_video/microphone.js +1 -15
- package/dist/icons/audio_video/musical_note.js +1 -15
- package/dist/icons/audio_video/next.js +1 -15
- package/dist/icons/audio_video/pause.js +1 -15
- package/dist/icons/audio_video/pause_circle.js +1 -15
- package/dist/icons/audio_video/play.js +1 -15
- package/dist/icons/audio_video/play_circle.js +1 -15
- package/dist/icons/audio_video/play_display.js +1 -15
- package/dist/icons/audio_video/play_pause.js +1 -15
- package/dist/icons/audio_video/play_solid.js +1 -15
- package/dist/icons/audio_video/player_list.js +1 -15
- package/dist/icons/audio_video/player_list_add.js +1 -15
- package/dist/icons/audio_video/player_list_play.js +1 -15
- package/dist/icons/audio_video/previous.js +1 -15
- package/dist/icons/audio_video/radio.js +1 -15
- package/dist/icons/audio_video/record.js +1 -15
- package/dist/icons/audio_video/repeat.js +1 -15
- package/dist/icons/audio_video/rewind.js +1 -15
- package/dist/icons/audio_video/rewind_30.js +1 -15
- package/dist/icons/audio_video/shuffle.js +1 -15
- package/dist/icons/audio_video/sound_wave.js +1 -15
- package/dist/icons/audio_video/stop.js +1 -15
- package/dist/icons/audio_video/stop_circle.js +1 -15
- package/dist/icons/audio_video/subscriptions.js +1 -15
- package/dist/icons/audio_video/tuner.js +1 -15
- package/dist/icons/audio_video/volume.js +1 -15
- package/dist/icons/audio_video/volume_high.js +1 -15
- package/dist/icons/audio_video/volume_low.js +1 -15
- package/dist/icons/audio_video/volume_slash.js +1 -15
- package/dist/icons/basic/aa_sansserif.js +1 -16
- package/dist/icons/basic/aa_serif.js +1 -16
- package/dist/icons/basic/anchor.js +1 -17
- package/dist/icons/basic/bible.js +1 -15
- package/dist/icons/basic/bold.js +1 -15
- package/dist/icons/basic/book.js +1 -15
- package/dist/icons/basic/book_open.js +1 -15
- package/dist/icons/basic/bookmark.js +1 -15
- package/dist/icons/basic/bookmark_add.js +1 -15
- package/dist/icons/basic/bookmark_slash.js +1 -15
- package/dist/icons/basic/bookmarks.js +1 -15
- package/dist/icons/basic/books.js +1 -18
- package/dist/icons/basic/box.js +1 -15
- package/dist/icons/basic/briefcase.js +1 -15
- package/dist/icons/basic/browse_activity.js +1 -15
- package/dist/icons/basic/browser.js +1 -15
- package/dist/icons/basic/browser_slash.js +1 -15
- package/dist/icons/basic/calculator.js +1 -15
- package/dist/icons/basic/camera.js +1 -15
- package/dist/icons/basic/camera_add.js +1 -15
- package/dist/icons/basic/camera_slash.js +1 -15
- package/dist/icons/basic/checkmark.js +1 -15
- package/dist/icons/basic/checkmark_circle.js +1 -17
- package/dist/icons/basic/checkmark_filled.js +1 -15
- package/dist/icons/basic/checkmarks.js +1 -15
- package/dist/icons/basic/circle.js +1 -15
- package/dist/icons/basic/circle_slash.js +1 -17
- package/dist/icons/basic/clear_text_style.js +1 -15
- package/dist/icons/basic/close.js +1 -15
- package/dist/icons/basic/close_circle.js +1 -15
- package/dist/icons/basic/close_filled.js +1 -15
- package/dist/icons/basic/copy.js +1 -15
- package/dist/icons/basic/delete.js +1 -15
- package/dist/icons/basic/detail.js +1 -15
- package/dist/icons/basic/dot.js +1 -15
- package/dist/icons/basic/download.js +1 -15
- package/dist/icons/basic/download_arrow.js +1 -15
- package/dist/icons/basic/droplet.js +1 -17
- package/dist/icons/basic/ellipsis_horizontal.js +1 -15
- package/dist/icons/basic/ellipsis_horizontal_circle.js +1 -15
- package/dist/icons/basic/ellipsis_vertical.js +1 -15
- package/dist/icons/basic/ellipsis_vertical_circle.js +1 -15
- package/dist/icons/basic/eye.js +1 -15
- package/dist/icons/basic/eye_slash.js +1 -15
- package/dist/icons/basic/fingerprint.js +1 -15
- package/dist/icons/basic/flag.js +1 -15
- package/dist/icons/basic/flag_wave.js +1 -15
- package/dist/icons/basic/flag_wave_filled.js +1 -15
- package/dist/icons/basic/flame.js +1 -15
- package/dist/icons/basic/gauge.js +1 -15
- package/dist/icons/basic/glasses.js +1 -15
- package/dist/icons/basic/graduation_cap.js +1 -15
- package/dist/icons/basic/hashmark.js +1 -15
- package/dist/icons/basic/heart.js +1 -15
- package/dist/icons/basic/heart_slash.js +1 -15
- package/dist/icons/basic/highlighter.js +1 -15
- package/dist/icons/basic/home.js +1 -15
- package/dist/icons/basic/image.js +1 -15
- package/dist/icons/basic/inbox.js +1 -15
- package/dist/icons/basic/italic.js +1 -15
- package/dist/icons/basic/layers.js +1 -15
- package/dist/icons/basic/lightening.js +1 -15
- package/dist/icons/basic/lightening_slash.js +1 -15
- package/dist/icons/basic/link.js +1 -15
- package/dist/icons/basic/link_slash.js +1 -15
- package/dist/icons/basic/loudspeaker.js +1 -15
- package/dist/icons/basic/maximize.js +1 -15
- package/dist/icons/basic/menu.js +1 -15
- package/dist/icons/basic/menu_circle.js +1 -15
- package/dist/icons/basic/menu_dots.js +1 -15
- package/dist/icons/basic/microphone_slash.js +1 -15
- package/dist/icons/basic/minimize.js +1 -15
- package/dist/icons/basic/minus.js +1 -15
- package/dist/icons/basic/minus_circle.js +1 -15
- package/dist/icons/basic/move_item.js +1 -15
- package/dist/icons/basic/new.js +1 -15
- package/dist/icons/basic/newspaper.js +1 -15
- package/dist/icons/basic/node.js +1 -15
- package/dist/icons/basic/note_pad.js +1 -16
- package/dist/icons/basic/options.js +1 -15
- package/dist/icons/basic/paint_brush.js +1 -15
- package/dist/icons/basic/paperclip.js +1 -15
- package/dist/icons/basic/paperclip_slash.js +1 -15
- package/dist/icons/basic/pencil.js +1 -15
- package/dist/icons/basic/pencil_pad.js +1 -15
- package/dist/icons/basic/plus.js +1 -15
- package/dist/icons/basic/plus_circle.js +1 -15
- package/dist/icons/basic/presentation.js +1 -15
- package/dist/icons/basic/printer.js +1 -15
- package/dist/icons/basic/profile.js +1 -15
- package/dist/icons/basic/profile_check.js +1 -15
- package/dist/icons/basic/pulse.js +1 -15
- package/dist/icons/basic/qr_code.js +1 -15
- package/dist/icons/basic/resize.js +1 -17
- package/dist/icons/basic/scan.js +1 -15
- package/dist/icons/basic/scissors.js +1 -15
- package/dist/icons/basic/screenshot.js +1 -15
- package/dist/icons/basic/search.js +1 -15
- package/dist/icons/basic/select_item.js +1 -16
- package/dist/icons/basic/settings.js +1 -15
- package/dist/icons/basic/share.js +1 -15
- package/dist/icons/basic/share_external.js +1 -15
- package/dist/icons/basic/square.js +1 -15
- package/dist/icons/basic/star.js +1 -15
- package/dist/icons/basic/star_circle.js +1 -15
- package/dist/icons/basic/star_filled.js +1 -15
- package/dist/icons/basic/star_filled_half.js +1 -15
- package/dist/icons/basic/star_slash.js +1 -15
- package/dist/icons/basic/sticker.js +1 -15
- package/dist/icons/basic/strikethrough.js +1 -15
- package/dist/icons/basic/subtask.js +1 -16
- package/dist/icons/basic/tax.js +1 -18
- package/dist/icons/basic/text_bg_color.js +1 -15
- package/dist/icons/basic/text_color.js +1 -15
- package/dist/icons/basic/textbox.js +1 -15
- package/dist/icons/basic/thumbs_down.js +1 -15
- package/dist/icons/basic/thumbs_up.js +1 -15
- package/dist/icons/basic/thumbs_up_filled.js +1 -15
- package/dist/icons/basic/toggle_left.js +1 -15
- package/dist/icons/basic/toggle_right.js +1 -15
- package/dist/icons/basic/translate.js +1 -15
- package/dist/icons/basic/trash.js +1 -15
- package/dist/icons/basic/trash_slash.js +1 -15
- package/dist/icons/basic/underline.js +1 -15
- package/dist/icons/basic/upload.js +1 -15
- package/dist/icons/basic/video.js +1 -15
- package/dist/icons/basic/video_add.js +1 -16
- package/dist/icons/basic/video_slash.js +1 -15
- package/dist/icons/basic/wrench.js +1 -15
- package/dist/icons/basic/zoom_in.js +1 -15
- package/dist/icons/basic/zoom_out.js +1 -15
- package/dist/icons/data/bar_chart.js +1 -15
- package/dist/icons/data/bar_chart_downward.js +1 -15
- package/dist/icons/data/bar_chart_downward_outline.js +1 -15
- package/dist/icons/data/bar_chart_upward.js +1 -15
- package/dist/icons/data/bar_chart_upward_outline.js +1 -15
- package/dist/icons/data/candlestick_chart.js +1 -15
- package/dist/icons/data/four_circles.js +1 -15
- package/dist/icons/data/legend_toggle.js +1 -15
- package/dist/icons/data/line_chart.js +1 -15
- package/dist/icons/data/line_chart_area.js +1 -15
- package/dist/icons/data/line_chart_area_shaded.js +1 -15
- package/dist/icons/data/line_chart_double.js +1 -15
- package/dist/icons/data/line_chart_downward.js +1 -15
- package/dist/icons/data/line_chart_node.js +1 -15
- package/dist/icons/data/line_chart_outline.js +1 -15
- package/dist/icons/data/line_chart_search.js +1 -15
- package/dist/icons/data/line_chart_stars.js +1 -15
- package/dist/icons/data/line_chart_upward.js +1 -15
- package/dist/icons/data/pie_chart.js +1 -16
- package/dist/icons/data/tree.js +1 -15
- package/dist/icons/email/mail.js +1 -15
- package/dist/icons/email/mail_check.js +1 -15
- package/dist/icons/email/mail_minus.js +1 -15
- package/dist/icons/email/mail_send.js +1 -15
- package/dist/icons/email/send.js +1 -15
- package/dist/icons/email/send_close.js +1 -15
- package/dist/icons/email/send_schedule.js +1 -15
- package/dist/icons/email/send_text.js +1 -15
- package/dist/icons/emoji/emoji_add.js +1 -15
- package/dist/icons/emoji/laughing.js +1 -15
- package/dist/icons/emoji/neutral.js +1 -15
- package/dist/icons/emoji/sad.js +1 -15
- package/dist/icons/emoji/shocked.js +1 -15
- package/dist/icons/emoji/smile.js +1 -15
- package/dist/icons/file/clipboard.js +1 -15
- package/dist/icons/file/clipboard_check.js +1 -15
- package/dist/icons/file/clipboard_close.js +1 -15
- package/dist/icons/file/clipboard_minus.js +1 -15
- package/dist/icons/file/clipboard_plus.js +1 -15
- package/dist/icons/file/clipboard_text.js +1 -15
- package/dist/icons/file/file.js +1 -15
- package/dist/icons/file/file_add.js +1 -15
- package/dist/icons/file/file_check.js +1 -15
- package/dist/icons/file/file_close.js +1 -15
- package/dist/icons/file/file_code.js +1 -15
- package/dist/icons/file/file_download.js +1 -15
- package/dist/icons/file/file_draft.js +1 -15
- package/dist/icons/file/file_gear.js +1 -16
- package/dist/icons/file/file_minus.js +1 -15
- package/dist/icons/file/file_plus.js +1 -15
- package/dist/icons/file/file_scan.js +1 -15
- package/dist/icons/file/file_shred.js +1 -15
- package/dist/icons/file/file_text.js +1 -15
- package/dist/icons/file/file_upload.js +1 -15
- package/dist/icons/file/folder.js +1 -15
- package/dist/icons/file/folder_add.js +1 -15
- package/dist/icons/file/folder_arrow.js +1 -15
- package/dist/icons/file/folder_check.js +1 -15
- package/dist/icons/file/folder_close.js +1 -15
- package/dist/icons/file/folder_cloud.js +1 -15
- package/dist/icons/file/folder_gear.js +1 -16
- package/dist/icons/file/folder_minus.js +1 -15
- package/dist/icons/file/folder_music.js +1 -15
- package/dist/icons/file/folder_open.js +1 -15
- package/dist/icons/file/folder_plus.js +1 -15
- package/dist/icons/file/folder_zip.js +1 -15
- package/dist/icons/file/note.js +1 -15
- package/dist/icons/file/note_text.js +1 -15
- package/dist/icons/file/pdf.js +1 -15
- package/dist/icons/file/photo.js +1 -15
- package/dist/icons/finance/bitcoin.js +1 -15
- package/dist/icons/finance/coins.js +1 -19
- package/dist/icons/finance/credit_card.js +1 -15
- package/dist/icons/finance/credit_card_add.js +1 -15
- package/dist/icons/finance/credit_card_face.js +1 -15
- package/dist/icons/finance/credit_card_member.js +1 -15
- package/dist/icons/finance/credit_card_outcome.js +1 -15
- package/dist/icons/finance/credit_card_scan.js +1 -15
- package/dist/icons/finance/credit_card_share.js +1 -15
- package/dist/icons/finance/credit_card_slash.js +1 -15
- package/dist/icons/finance/currency_exchange.js +1 -15
- package/dist/icons/finance/dollar.js +1 -15
- package/dist/icons/finance/ethereum.js +1 -15
- package/dist/icons/finance/paypass.js +1 -15
- package/dist/icons/finance/strongbox.js +1 -15
- package/dist/icons/finance/wallet.js +1 -15
- package/dist/icons/index.js +1 -1095
- package/dist/icons/layout/block_align_bottom.js +1 -15
- package/dist/icons/layout/block_align_center.js +1 -15
- package/dist/icons/layout/block_align_left.js +1 -15
- package/dist/icons/layout/block_align_middle.js +1 -15
- package/dist/icons/layout/block_align_right.js +1 -15
- package/dist/icons/layout/block_align_top.js +1 -15
- package/dist/icons/layout/block_horizontal.js +1 -15
- package/dist/icons/layout/block_vertical.js +1 -15
- package/dist/icons/layout/edit_shape.js +1 -15
- package/dist/icons/layout/elements.js +1 -15
- package/dist/icons/layout/elements_add.js +1 -15
- package/dist/icons/layout/elements_filled.js +1 -15
- package/dist/icons/layout/elements_masonry.js +1 -15
- package/dist/icons/layout/frame.js +1 -15
- package/dist/icons/layout/frame_stack.js +1 -15
- package/dist/icons/layout/grid.js +1 -15
- package/dist/icons/layout/grid_column_three.js +1 -15
- package/dist/icons/layout/grid_column_two.js +1 -15
- package/dist/icons/layout/grid_dynamic.js +1 -15
- package/dist/icons/layout/grid_frame.js +1 -15
- package/dist/icons/layout/grid_row_three.js +1 -15
- package/dist/icons/layout/grid_row_two.js +1 -15
- package/dist/icons/layout/grid_six.js +1 -15
- package/dist/icons/layout/grid_small.js +1 -15
- package/dist/icons/layout/iframe.js +1 -15
- package/dist/icons/layout/kanban.js +1 -15
- package/dist/icons/layout/layout.js +1 -15
- package/dist/icons/layout/list.js +1 -15
- package/dist/icons/layout/list_filled.js +1 -20
- package/dist/icons/layout/padding.js +1 -15
- package/dist/icons/layout/page_break.js +1 -15
- package/dist/icons/layout/rotate_left.js +1 -15
- package/dist/icons/layout/rotate_right.js +1 -15
- package/dist/icons/layout/ruler.js +1 -15
- package/dist/icons/layout/segment.js +1 -15
- package/dist/icons/layout/select_area.js +1 -15
- package/dist/icons/layout/select_boundary.js +1 -15
- package/dist/icons/layout/sidebar_left.js +1 -15
- package/dist/icons/layout/sidebar_right.js +1 -15
- package/dist/icons/layout/slides.js +1 -15
- package/dist/icons/layout/slides_horizontal.js +1 -15
- package/dist/icons/layout/slides_vertical.js +1 -20
- package/dist/icons/layout/stack.js +1 -15
- package/dist/icons/layout/text.js +1 -15
- package/dist/icons/maps/atlas.js +1 -15
- package/dist/icons/maps/compass.js +1 -15
- package/dist/icons/maps/direction.js +1 -15
- package/dist/icons/maps/direction_angled.js +1 -15
- package/dist/icons/maps/globe.js +1 -15
- package/dist/icons/maps/globe_slash.js +1 -15
- package/dist/icons/maps/location.js +1 -15
- package/dist/icons/maps/location_slash.js +1 -15
- package/dist/icons/maps/map.js +1 -15
- package/dist/icons/maps/marker.js +1 -15
- package/dist/icons/maps/panorama.js +1 -15
- package/dist/icons/maps/pin.js +1 -15
- package/dist/icons/maps/pin_arrow.js +1 -15
- package/dist/icons/maps/pin_location.js +1 -15
- package/dist/icons/maps/pin_plus.js +1 -15
- package/dist/icons/maps/pin_question.js +1 -15
- package/dist/icons/maps/pin_slash.js +1 -15
- package/dist/icons/maps/push_pin.js +1 -15
- package/dist/icons/maps/push_pin_filled.js +1 -15
- package/dist/icons/maps/push_pin_slash.js +1 -15
- package/dist/icons/maps/radar.js +1 -15
- package/dist/icons/maps/route.js +1 -15
- package/dist/icons/message/bubble.js +1 -15
- package/dist/icons/message/bubble_question.js +1 -15
- package/dist/icons/message/comment.js +1 -15
- package/dist/icons/message/comment_add.js +1 -15
- package/dist/icons/message/comment_check.js +1 -15
- package/dist/icons/message/comment_close.js +1 -15
- package/dist/icons/message/comment_minus.js +1 -15
- package/dist/icons/message/comment_text.js +1 -15
- package/dist/icons/misc/advertisement.js +1 -15
- package/dist/icons/misc/atom.js +1 -15
- package/dist/icons/misc/bone.js +1 -15
- package/dist/icons/misc/brightness_high.js +1 -15
- package/dist/icons/misc/brightness_low.js +1 -15
- package/dist/icons/misc/contrast.js +1 -15
- package/dist/icons/misc/crosshairs.js +1 -15
- package/dist/icons/misc/crown.js +1 -15
- package/dist/icons/misc/footprint.js +1 -15
- package/dist/icons/misc/form.js +1 -15
- package/dist/icons/misc/funnel.js +1 -15
- package/dist/icons/misc/infinite.js +1 -15
- package/dist/icons/misc/insert_button.js +1 -15
- package/dist/icons/misc/light_bulb.js +1 -15
- package/dist/icons/misc/moon.js +1 -15
- package/dist/icons/misc/nut.js +1 -15
- package/dist/icons/misc/planet.js +1 -15
- package/dist/icons/misc/plus_thick.js +1 -15
- package/dist/icons/misc/pocket.js +1 -15
- package/dist/icons/misc/rocket.js +1 -15
- package/dist/icons/misc/soup.js +1 -19
- package/dist/icons/misc/sun.js +1 -15
- package/dist/icons/misc/toy_horse.js +1 -15
- package/dist/icons/misc/trophy.js +1 -15
- package/dist/icons/misc/watercloset.js +1 -15
- package/dist/icons/notifications/alert_circle.js +1 -15
- package/dist/icons/notifications/alert_octogon.js +1 -15
- package/dist/icons/notifications/alert_triangle.js +1 -15
- package/dist/icons/notifications/app_notification.js +1 -15
- package/dist/icons/notifications/bell.js +1 -15
- package/dist/icons/notifications/bell_alert.js +1 -15
- package/dist/icons/notifications/bell_checkmark.js +1 -15
- package/dist/icons/notifications/bell_minus.js +1 -15
- package/dist/icons/notifications/bell_plus.js +1 -15
- package/dist/icons/notifications/bell_ring.js +1 -17
- package/dist/icons/notifications/bell_slash.js +1 -15
- package/dist/icons/notifications/information.js +1 -15
- package/dist/icons/notifications/minus_octogon.js +1 -15
- package/dist/icons/notifications/question_circle.js +1 -15
- package/dist/icons/people/group.js +1 -15
- package/dist/icons/people/group_add.js +1 -15
- package/dist/icons/people/group_chat.js +1 -17
- package/dist/icons/people/group_remove.js +1 -15
- package/dist/icons/people/group_send.js +1 -16
- package/dist/icons/people/groups.js +1 -15
- package/dist/icons/people/person.js +1 -15
- package/dist/icons/people/person_add.js +1 -15
- package/dist/icons/people/person_checkmark.js +1 -15
- package/dist/icons/people/person_circle.js +1 -17
- package/dist/icons/people/person_close.js +1 -17
- package/dist/icons/people/person_remove.js +1 -15
- package/dist/icons/people/person_slash.js +1 -17
- package/dist/icons/phone/keypad.js +1 -15
- package/dist/icons/phone/phone.js +1 -15
- package/dist/icons/phone/phone_add.js +1 -15
- package/dist/icons/phone/phone_calling.js +1 -15
- package/dist/icons/phone/phone_check.js +1 -15
- package/dist/icons/phone/phone_close.js +1 -15
- package/dist/icons/phone/phone_decline.js +1 -15
- package/dist/icons/phone/phone_forwarded.js +1 -15
- package/dist/icons/phone/phone_hash.js +1 -15
- package/dist/icons/phone/phone_incoming.js +1 -15
- package/dist/icons/phone/phone_outgoing.js +1 -15
- package/dist/icons/phone/phone_pause.js +1 -15
- package/dist/icons/phone/phone_slash.js +1 -15
- package/dist/icons/phone/voicemail.js +1 -15
- package/dist/icons/security/key.js +1 -15
- package/dist/icons/security/key_slash.js +1 -15
- package/dist/icons/security/lock.js +1 -15
- package/dist/icons/security/lock_circle.js +1 -15
- package/dist/icons/security/lock_open.js +1 -15
- package/dist/icons/security/lock_slash.js +1 -15
- package/dist/icons/security/shield.js +1 -15
- package/dist/icons/security/shield_checkmark.js +1 -15
- package/dist/icons/security/shield_lock.js +1 -15
- package/dist/icons/security/shield_slash.js +1 -15
- package/dist/icons/security/verified.js +1 -15
- package/dist/icons/shopping/basket.js +1 -15
- package/dist/icons/shopping/cart.js +1 -15
- package/dist/icons/shopping/cart_filled.js +1 -15
- package/dist/icons/shopping/coupon.js +1 -15
- package/dist/icons/shopping/coupon_cut.js +1 -15
- package/dist/icons/shopping/delivery.js +1 -15
- package/dist/icons/shopping/discount.js +1 -15
- package/dist/icons/shopping/gift.js +1 -15
- package/dist/icons/shopping/gift_bag.js +1 -15
- package/dist/icons/shopping/inventory.js +1 -15
- package/dist/icons/shopping/point_of_sale.js +1 -15
- package/dist/icons/shopping/shirt.js +1 -15
- package/dist/icons/shopping/tag.js +1 -15
- package/dist/icons/shopping/tag_diagonal.js +1 -15
- package/dist/icons/shopping/tote.js +1 -15
- package/dist/icons/special/upload_audio.js +1 -20
- package/dist/icons/special/upload_file.js +1 -15
- package/dist/icons/special/upload_image.js +1 -17
- package/dist/icons/special/upload_video.js +1 -18
- package/dist/icons/symbols/at.js +1 -15
- package/dist/icons/symbols/cc.js +1 -15
- package/dist/icons/symbols/cmd.js +1 -15
- package/dist/icons/symbols/facebook.js +1 -15
- package/dist/icons/symbols/google.js +1 -18
- package/dist/icons/symbols/hash.js +1 -15
- package/dist/icons/symbols/instagram.js +1 -27
- package/dist/icons/symbols/messenger.js +1 -21
- package/dist/icons/symbols/twitter.js +1 -15
- package/dist/icons/technology/battery.js +1 -15
- package/dist/icons/technology/battery_100.js +1 -15
- package/dist/icons/technology/battery_20.js +1 -15
- package/dist/icons/technology/battery_40.js +1 -15
- package/dist/icons/technology/battery_60.js +1 -15
- package/dist/icons/technology/battery_80.js +1 -15
- package/dist/icons/technology/battery_charging.js +1 -15
- package/dist/icons/technology/battery_slash.js +1 -15
- package/dist/icons/technology/devices.js +1 -15
- package/dist/icons/technology/floppy_disk.js +1 -15
- package/dist/icons/technology/iphone.js +1 -15
- package/dist/icons/technology/laptop.js +1 -15
- package/dist/icons/technology/mobile.js +1 -15
- package/dist/icons/technology/monitor.js +1 -15
- package/dist/icons/technology/server.js +1 -15
- package/dist/icons/technology/sim_card.js +1 -15
- package/dist/icons/technology/usb_stick.js +1 -15
- package/dist/icons/text/align_center.js +1 -15
- package/dist/icons/text/align_justified.js +1 -15
- package/dist/icons/text/align_left.js +1 -15
- package/dist/icons/text/align_right.js +1 -15
- package/dist/icons/text/code_block.js +1 -15
- package/dist/icons/text/divider.js +1 -15
- package/dist/icons/text/footnote.js +1 -17
- package/dist/icons/text/indent_decrease.js +1 -15
- package/dist/icons/text/indent_increase.js +1 -15
- package/dist/icons/text/list_ordered.js +1 -15
- package/dist/icons/text/list_unordered.js +1 -15
- package/dist/icons/text/quote.js +1 -15
- package/dist/icons/text/table.js +1 -15
- package/dist/icons/time/alarm.js +1 -15
- package/dist/icons/time/alarm_checkmark.js +1 -15
- package/dist/icons/time/alarm_minus.js +1 -15
- package/dist/icons/time/alarm_plus.js +1 -15
- package/dist/icons/time/alarm_slash.js +1 -15
- package/dist/icons/time/alarm_snooze.js +1 -15
- package/dist/icons/time/calendar.js +1 -15
- package/dist/icons/time/calendar_add.js +1 -15
- package/dist/icons/time/calendar_checkmark.js +1 -15
- package/dist/icons/time/calendar_close.js +1 -15
- package/dist/icons/time/calendar_dates.js +1 -15
- package/dist/icons/time/calendar_minus.js +1 -15
- package/dist/icons/time/calendar_plus.js +1 -15
- package/dist/icons/time/calendar_scroll.js +1 -17
- package/dist/icons/time/clock.js +1 -15
- package/dist/icons/time/clock_history.js +1 -15
- package/dist/icons/time/stopwatch.js +1 -15
- package/dist/icons/time/timer.js +1 -15
- package/dist/icons/time/watch.js +1 -15
- package/dist/index.js +1 -117
- package/dist/styles/output.css +1776 -0
- package/dist/utils/date.js +1 -73
- package/dist/utils/function.js +1 -5
- package/package.json +4 -3
|
@@ -1,195 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var plate = require('@udecode/plate');
|
|
4
|
-
|
|
5
|
-
const ELEMENT_BUTTON = 'button';
|
|
6
|
-
const ELEMENT_QA = 'q-n-a';
|
|
7
|
-
const ELEMENT_VIDEO = 'video';
|
|
8
|
-
const BUTTON_LINK = 'button-link';
|
|
9
|
-
const BUTTON_SUBSCRIBE = 'button-subscribe';
|
|
10
|
-
const COLORS = [
|
|
11
|
-
'var(--color-turquoise-5)',
|
|
12
|
-
'var(--color-green-5)',
|
|
13
|
-
'var(--color-blue-5)',
|
|
14
|
-
'var(--color-purple-5)',
|
|
15
|
-
'var(--color-yellow-5)',
|
|
16
|
-
'var(--color-orange-5)',
|
|
17
|
-
'var(--color-red-5)',
|
|
18
|
-
];
|
|
19
|
-
const PLACEHOLDER = 'This is a placeholder';
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "ELEMENT_BLOCKQUOTE", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return plate.ELEMENT_BLOCKQUOTE; }
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "ELEMENT_CODE_LINE", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () { return plate.ELEMENT_CODE_LINE; }
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, "ELEMENT_CODE_SYNTAX", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return plate.ELEMENT_CODE_SYNTAX; }
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "ELEMENT_DEFAULT", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return plate.ELEMENT_DEFAULT; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "ELEMENT_H1", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return plate.ELEMENT_H1; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "ELEMENT_H2", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return plate.ELEMENT_H2; }
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "ELEMENT_H3", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return plate.ELEMENT_H3; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "ELEMENT_H4", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return plate.ELEMENT_H4; }
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "ELEMENT_H5", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () { return plate.ELEMENT_H5; }
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "ELEMENT_H6", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return plate.ELEMENT_H6; }
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "ELEMENT_HR", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () { return plate.ELEMENT_HR; }
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(exports, "ELEMENT_IMAGE", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () { return plate.ELEMENT_IMAGE; }
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "ELEMENT_LI", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () { return plate.ELEMENT_LI; }
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "ELEMENT_LIC", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () { return plate.ELEMENT_LIC; }
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "ELEMENT_LINK", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function () { return plate.ELEMENT_LINK; }
|
|
80
|
-
});
|
|
81
|
-
Object.defineProperty(exports, "ELEMENT_MEDIA", {
|
|
82
|
-
enumerable: true,
|
|
83
|
-
get: function () { return plate.ELEMENT_MEDIA; }
|
|
84
|
-
});
|
|
85
|
-
Object.defineProperty(exports, "ELEMENT_MEDIA_EMBED", {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
get: function () { return plate.ELEMENT_MEDIA_EMBED; }
|
|
88
|
-
});
|
|
89
|
-
Object.defineProperty(exports, "ELEMENT_MENTION", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function () { return plate.ELEMENT_MENTION; }
|
|
92
|
-
});
|
|
93
|
-
Object.defineProperty(exports, "ELEMENT_MENTION_INPUT", {
|
|
94
|
-
enumerable: true,
|
|
95
|
-
get: function () { return plate.ELEMENT_MENTION_INPUT; }
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(exports, "ELEMENT_OL", {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function () { return plate.ELEMENT_OL; }
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(exports, "ELEMENT_PARAGRAPH", {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function () { return plate.ELEMENT_PARAGRAPH; }
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(exports, "ELEMENT_TABLE", {
|
|
106
|
-
enumerable: true,
|
|
107
|
-
get: function () { return plate.ELEMENT_TABLE; }
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(exports, "ELEMENT_TD", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () { return plate.ELEMENT_TD; }
|
|
112
|
-
});
|
|
113
|
-
Object.defineProperty(exports, "ELEMENT_TH", {
|
|
114
|
-
enumerable: true,
|
|
115
|
-
get: function () { return plate.ELEMENT_TH; }
|
|
116
|
-
});
|
|
117
|
-
Object.defineProperty(exports, "ELEMENT_TODO_LI", {
|
|
118
|
-
enumerable: true,
|
|
119
|
-
get: function () { return plate.ELEMENT_TODO_LI; }
|
|
120
|
-
});
|
|
121
|
-
Object.defineProperty(exports, "ELEMENT_TR", {
|
|
122
|
-
enumerable: true,
|
|
123
|
-
get: function () { return plate.ELEMENT_TR; }
|
|
124
|
-
});
|
|
125
|
-
Object.defineProperty(exports, "ELEMENT_UL", {
|
|
126
|
-
enumerable: true,
|
|
127
|
-
get: function () { return plate.ELEMENT_UL; }
|
|
128
|
-
});
|
|
129
|
-
Object.defineProperty(exports, "MARK_BG_COLOR", {
|
|
130
|
-
enumerable: true,
|
|
131
|
-
get: function () { return plate.MARK_BG_COLOR; }
|
|
132
|
-
});
|
|
133
|
-
Object.defineProperty(exports, "MARK_BOLD", {
|
|
134
|
-
enumerable: true,
|
|
135
|
-
get: function () { return plate.MARK_BOLD; }
|
|
136
|
-
});
|
|
137
|
-
Object.defineProperty(exports, "MARK_CODE", {
|
|
138
|
-
enumerable: true,
|
|
139
|
-
get: function () { return plate.MARK_CODE; }
|
|
140
|
-
});
|
|
141
|
-
Object.defineProperty(exports, "MARK_COLOR", {
|
|
142
|
-
enumerable: true,
|
|
143
|
-
get: function () { return plate.MARK_COLOR; }
|
|
144
|
-
});
|
|
145
|
-
Object.defineProperty(exports, "MARK_FONT_FAMILY", {
|
|
146
|
-
enumerable: true,
|
|
147
|
-
get: function () { return plate.MARK_FONT_FAMILY; }
|
|
148
|
-
});
|
|
149
|
-
Object.defineProperty(exports, "MARK_FONT_SIZE", {
|
|
150
|
-
enumerable: true,
|
|
151
|
-
get: function () { return plate.MARK_FONT_SIZE; }
|
|
152
|
-
});
|
|
153
|
-
Object.defineProperty(exports, "MARK_FONT_WEIGHT", {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () { return plate.MARK_FONT_WEIGHT; }
|
|
156
|
-
});
|
|
157
|
-
Object.defineProperty(exports, "MARK_HIGHLIGHT", {
|
|
158
|
-
enumerable: true,
|
|
159
|
-
get: function () { return plate.MARK_HIGHLIGHT; }
|
|
160
|
-
});
|
|
161
|
-
Object.defineProperty(exports, "MARK_ITALIC", {
|
|
162
|
-
enumerable: true,
|
|
163
|
-
get: function () { return plate.MARK_ITALIC; }
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(exports, "MARK_KBD", {
|
|
166
|
-
enumerable: true,
|
|
167
|
-
get: function () { return plate.MARK_KBD; }
|
|
168
|
-
});
|
|
169
|
-
Object.defineProperty(exports, "MARK_SEARCH_HIGHLIGHT", {
|
|
170
|
-
enumerable: true,
|
|
171
|
-
get: function () { return plate.MARK_SEARCH_HIGHLIGHT; }
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(exports, "MARK_STRIKETHROUGH", {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function () { return plate.MARK_STRIKETHROUGH; }
|
|
176
|
-
});
|
|
177
|
-
Object.defineProperty(exports, "MARK_SUBSCRIPT", {
|
|
178
|
-
enumerable: true,
|
|
179
|
-
get: function () { return plate.MARK_SUBSCRIPT; }
|
|
180
|
-
});
|
|
181
|
-
Object.defineProperty(exports, "MARK_SUPERSCRIPT", {
|
|
182
|
-
enumerable: true,
|
|
183
|
-
get: function () { return plate.MARK_SUPERSCRIPT; }
|
|
184
|
-
});
|
|
185
|
-
Object.defineProperty(exports, "MARK_UNDERLINE", {
|
|
186
|
-
enumerable: true,
|
|
187
|
-
get: function () { return plate.MARK_UNDERLINE; }
|
|
188
|
-
});
|
|
189
|
-
exports.BUTTON_LINK = BUTTON_LINK;
|
|
190
|
-
exports.BUTTON_SUBSCRIBE = BUTTON_SUBSCRIBE;
|
|
191
|
-
exports.COLORS = COLORS;
|
|
192
|
-
exports.ELEMENT_BUTTON = ELEMENT_BUTTON;
|
|
193
|
-
exports.ELEMENT_QA = ELEMENT_QA;
|
|
194
|
-
exports.ELEMENT_VIDEO = ELEMENT_VIDEO;
|
|
195
|
-
exports.PLACEHOLDER = PLACEHOLDER;
|
|
1
|
+
"use strict";var plate=require("@udecode/plate");const ELEMENT_BUTTON="button",ELEMENT_QA="q-n-a",ELEMENT_VIDEO="video",BUTTON_LINK="button-link",BUTTON_SUBSCRIBE="button-subscribe",COLORS=["var(--color-turquoise-5)","var(--color-green-5)","var(--color-blue-5)","var(--color-purple-5)","var(--color-yellow-5)","var(--color-orange-5)","var(--color-red-5)"],PLACEHOLDER="This is a placeholder";Object.defineProperty(exports,"ELEMENT_BLOCKQUOTE",{enumerable:!0,get:function(){return plate.ELEMENT_BLOCKQUOTE}}),Object.defineProperty(exports,"ELEMENT_CODE_LINE",{enumerable:!0,get:function(){return plate.ELEMENT_CODE_LINE}}),Object.defineProperty(exports,"ELEMENT_CODE_SYNTAX",{enumerable:!0,get:function(){return plate.ELEMENT_CODE_SYNTAX}}),Object.defineProperty(exports,"ELEMENT_DEFAULT",{enumerable:!0,get:function(){return plate.ELEMENT_DEFAULT}}),Object.defineProperty(exports,"ELEMENT_H1",{enumerable:!0,get:function(){return plate.ELEMENT_H1}}),Object.defineProperty(exports,"ELEMENT_H2",{enumerable:!0,get:function(){return plate.ELEMENT_H2}}),Object.defineProperty(exports,"ELEMENT_H3",{enumerable:!0,get:function(){return plate.ELEMENT_H3}}),Object.defineProperty(exports,"ELEMENT_H4",{enumerable:!0,get:function(){return plate.ELEMENT_H4}}),Object.defineProperty(exports,"ELEMENT_H5",{enumerable:!0,get:function(){return plate.ELEMENT_H5}}),Object.defineProperty(exports,"ELEMENT_H6",{enumerable:!0,get:function(){return plate.ELEMENT_H6}}),Object.defineProperty(exports,"ELEMENT_HR",{enumerable:!0,get:function(){return plate.ELEMENT_HR}}),Object.defineProperty(exports,"ELEMENT_IMAGE",{enumerable:!0,get:function(){return plate.ELEMENT_IMAGE}}),Object.defineProperty(exports,"ELEMENT_LI",{enumerable:!0,get:function(){return plate.ELEMENT_LI}}),Object.defineProperty(exports,"ELEMENT_LIC",{enumerable:!0,get:function(){return plate.ELEMENT_LIC}}),Object.defineProperty(exports,"ELEMENT_LINK",{enumerable:!0,get:function(){return plate.ELEMENT_LINK}}),Object.defineProperty(exports,"ELEMENT_MEDIA",{enumerable:!0,get:function(){return plate.ELEMENT_MEDIA}}),Object.defineProperty(exports,"ELEMENT_MEDIA_EMBED",{enumerable:!0,get:function(){return plate.ELEMENT_MEDIA_EMBED}}),Object.defineProperty(exports,"ELEMENT_MENTION",{enumerable:!0,get:function(){return plate.ELEMENT_MENTION}}),Object.defineProperty(exports,"ELEMENT_MENTION_INPUT",{enumerable:!0,get:function(){return plate.ELEMENT_MENTION_INPUT}}),Object.defineProperty(exports,"ELEMENT_OL",{enumerable:!0,get:function(){return plate.ELEMENT_OL}}),Object.defineProperty(exports,"ELEMENT_PARAGRAPH",{enumerable:!0,get:function(){return plate.ELEMENT_PARAGRAPH}}),Object.defineProperty(exports,"ELEMENT_TABLE",{enumerable:!0,get:function(){return plate.ELEMENT_TABLE}}),Object.defineProperty(exports,"ELEMENT_TD",{enumerable:!0,get:function(){return plate.ELEMENT_TD}}),Object.defineProperty(exports,"ELEMENT_TH",{enumerable:!0,get:function(){return plate.ELEMENT_TH}}),Object.defineProperty(exports,"ELEMENT_TODO_LI",{enumerable:!0,get:function(){return plate.ELEMENT_TODO_LI}}),Object.defineProperty(exports,"ELEMENT_TR",{enumerable:!0,get:function(){return plate.ELEMENT_TR}}),Object.defineProperty(exports,"ELEMENT_UL",{enumerable:!0,get:function(){return plate.ELEMENT_UL}}),Object.defineProperty(exports,"MARK_BG_COLOR",{enumerable:!0,get:function(){return plate.MARK_BG_COLOR}}),Object.defineProperty(exports,"MARK_BOLD",{enumerable:!0,get:function(){return plate.MARK_BOLD}}),Object.defineProperty(exports,"MARK_CODE",{enumerable:!0,get:function(){return plate.MARK_CODE}}),Object.defineProperty(exports,"MARK_COLOR",{enumerable:!0,get:function(){return plate.MARK_COLOR}}),Object.defineProperty(exports,"MARK_FONT_FAMILY",{enumerable:!0,get:function(){return plate.MARK_FONT_FAMILY}}),Object.defineProperty(exports,"MARK_FONT_SIZE",{enumerable:!0,get:function(){return plate.MARK_FONT_SIZE}}),Object.defineProperty(exports,"MARK_FONT_WEIGHT",{enumerable:!0,get:function(){return plate.MARK_FONT_WEIGHT}}),Object.defineProperty(exports,"MARK_HIGHLIGHT",{enumerable:!0,get:function(){return plate.MARK_HIGHLIGHT}}),Object.defineProperty(exports,"MARK_ITALIC",{enumerable:!0,get:function(){return plate.MARK_ITALIC}}),Object.defineProperty(exports,"MARK_KBD",{enumerable:!0,get:function(){return plate.MARK_KBD}}),Object.defineProperty(exports,"MARK_SEARCH_HIGHLIGHT",{enumerable:!0,get:function(){return plate.MARK_SEARCH_HIGHLIGHT}}),Object.defineProperty(exports,"MARK_STRIKETHROUGH",{enumerable:!0,get:function(){return plate.MARK_STRIKETHROUGH}}),Object.defineProperty(exports,"MARK_SUBSCRIPT",{enumerable:!0,get:function(){return plate.MARK_SUBSCRIPT}}),Object.defineProperty(exports,"MARK_SUPERSCRIPT",{enumerable:!0,get:function(){return plate.MARK_SUPERSCRIPT}}),Object.defineProperty(exports,"MARK_UNDERLINE",{enumerable:!0,get:function(){return plate.MARK_UNDERLINE}}),exports.BUTTON_LINK=BUTTON_LINK,exports.BUTTON_SUBSCRIBE=BUTTON_SUBSCRIBE,exports.COLORS=COLORS,exports.ELEMENT_BUTTON=ELEMENT_BUTTON,exports.ELEMENT_QA=ELEMENT_QA,exports.ELEMENT_VIDEO=ELEMENT_VIDEO,exports.PLACEHOLDER=PLACEHOLDER;
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const EditorContext = React__default.default.createContext({
|
|
10
|
-
commentInputLoader: () => React__default.default.createElement(React__default.default.Fragment, null),
|
|
11
|
-
commentLoader: () => React__default.default.createElement(React__default.default.Fragment, null),
|
|
12
|
-
handleVideoClick: () => undefined,
|
|
13
|
-
imageSrcLoader: async () => '',
|
|
14
|
-
videoTitleLoader: () => React__default.default.createElement(React__default.default.Fragment, null),
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
exports.EditorContext = EditorContext;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const EditorContext=React__default.default.createContext({commentInputLoader:()=>React__default.default.createElement(React__default.default.Fragment,null),commentLoader:()=>React__default.default.createElement(React__default.default.Fragment,null),handleVideoClick:()=>{},imageSrcLoader:async()=>"",videoTitleLoader:()=>React__default.default.createElement(React__default.default.Fragment,null)});exports.EditorContext=EditorContext;
|
|
@@ -1,43 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var plate = require('@udecode/plate');
|
|
7
|
-
var constants = require('./constants.js');
|
|
8
|
-
var context = require('./context.js');
|
|
9
|
-
var navbar = require('./navbar/navbar.js');
|
|
10
|
-
var plate$1 = require('./plugins/plate.js');
|
|
11
|
-
var blocks = require('./plugins/blocks/blocks.js');
|
|
12
|
-
var leafs = require('./plugins/leafs/leafs.js');
|
|
13
|
-
var marks = require('./plugins/marks/marks.js');
|
|
14
|
-
var utils = require('./plugins/utils/utils.js');
|
|
15
|
-
|
|
16
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
-
|
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
|
-
|
|
20
|
-
const plugins = plate.createPlugins([...blocks.blocks, ...leafs.leafs, ...marks.marks, ...utils.utils], {
|
|
21
|
-
components: plate$1.plateUI,
|
|
22
|
-
});
|
|
23
|
-
const Editor = ({ commentInputLoader, commentLoader, editable, handleVideoClick, imageSrcLoader, onChange, previousContent, videoTitleLoader, }) => {
|
|
24
|
-
return (React__default.default.createElement(context.EditorContext.Provider, { value: {
|
|
25
|
-
commentInputLoader,
|
|
26
|
-
commentLoader,
|
|
27
|
-
handleVideoClick,
|
|
28
|
-
imageSrcLoader,
|
|
29
|
-
videoTitleLoader,
|
|
30
|
-
} },
|
|
31
|
-
React__default.default.createElement(plate.Plate, { id: "main", initialValue: previousContent, onChange: onChange, plugins: plugins },
|
|
32
|
-
React__default.default.createElement(Wrapper, null,
|
|
33
|
-
editable && React__default.default.createElement(navbar.EditorBar, null),
|
|
34
|
-
React__default.default.createElement(plate.PlateContent, { id: "main", autoFocus: true, placeholder: constants.PLACEHOLDER, readOnly: !editable, spellCheck: true, onContextMenu: (e) => e.preventDefault(), onCopy: () => {
|
|
35
|
-
if ('clipboard' in navigator) {
|
|
36
|
-
return navigator.clipboard.writeText('');
|
|
37
|
-
}
|
|
38
|
-
} })))));
|
|
39
|
-
};
|
|
40
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),plate=require("@udecode/plate"),constants=require("./constants.js"),context=require("./context.js"),navbar=require("./navbar/navbar.js"),plate$1=require("./plugins/plate.js"),blocks=require("./plugins/blocks/blocks.js"),leafs=require("./plugins/leafs/leafs.js"),marks=require("./plugins/marks/marks.js"),utils=require("./plugins/utils/utils.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const plugins=plate.createPlugins([...blocks.blocks,...leafs.leafs,...marks.marks,...utils.utils],{components:plate$1.plateUI}),Editor=({commentInputLoader:e,commentLoader:t,editable:a,handleVideoClick:l,imageSrcLoader:o,onChange:r,previousContent:i,videoTitleLoader:n})=>React__default.default.createElement(context.EditorContext.Provider,{value:{commentInputLoader:e,commentLoader:t,handleVideoClick:l,imageSrcLoader:o,videoTitleLoader:n}},React__default.default.createElement(plate.Plate,{id:"main",initialValue:i,onChange:r,plugins:plugins},React__default.default.createElement(Wrapper,null,a&&React__default.default.createElement(navbar.EditorBar,null),React__default.default.createElement(plate.PlateContent,{id:"main",autoFocus:!0,placeholder:constants.PLACEHOLDER,readOnly:!a,spellCheck:!0,onContextMenu:e=>e.preventDefault(),onCopy:()=>{if("clipboard"in navigator)return navigator.clipboard.writeText("")}})))),Wrapper=styled.styled.div`
|
|
41
3
|
* {
|
|
42
4
|
font-family: var(--font-inter);
|
|
43
5
|
outline: none;
|
|
@@ -106,9 +68,7 @@ const Wrapper = styled.styled.div `
|
|
|
106
68
|
}
|
|
107
69
|
|
|
108
70
|
position: relative;
|
|
109
|
-
|
|
110
|
-
width:
|
|
111
|
-
margin:
|
|
112
|
-
`;
|
|
113
|
-
|
|
114
|
-
exports.Editor = Editor;
|
|
71
|
+
padding: 24px;
|
|
72
|
+
max-width: 1200px;
|
|
73
|
+
margin: 98px auto 0px;
|
|
74
|
+
`;exports.Editor=Editor;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const BorderAll = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
10
|
-
React__default.default.createElement("path", { d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z" })));
|
|
11
|
-
|
|
12
|
-
exports.BorderAll = BorderAll;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const BorderAll=e=>React__default.default.createElement("svg",{viewBox:"0 0 24 24",height:"48",width:"48",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},React__default.default.createElement("path",{d:"M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6zm10 13h5a1 1 0 0 0 1-1v-5h-6v6zm-2-6H5v5a1 1 0 0 0 1 1h5v-6zm2-2h6V6a1 1 0 0 0-1-1h-5v6zm-2-6H6a1 1 0 0 0-1 1v5h6V5z"}));exports.BorderAll=BorderAll;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const BorderBottom = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
10
|
-
React__default.default.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z" })));
|
|
11
|
-
|
|
12
|
-
exports.BorderBottom = BorderBottom;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var React__default=_interopDefaultCompat(React);const BorderBottom=t=>React__default.default.createElement("svg",{viewBox:"0 0 24 24",height:"48",width:"48",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t},React__default.default.createElement("path",{d:"M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm-2 7a1 1 0 1 1 2 0 1 1 0 0 0 1 1h12a1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm17-8a1 1 0 0 0-1 1v2a1 1 0 1 0 2 0v-2a1 1 0 0 0-1-1zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3z"}));exports.BorderBottom=BorderBottom;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const BorderLeft = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
10
|
-
React__default.default.createElement("path", { d: "M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })));
|
|
11
|
-
|
|
12
|
-
exports.BorderLeft = BorderLeft;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const BorderLeft=e=>React__default.default.createElement("svg",{viewBox:"0 0 24 24",height:"48",width:"48",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},React__default.default.createElement("path",{d:"M6 21a1 1 0 1 0 0-2 1 1 0 0 1-1-1V6a1 1 0 0 1 1-1 1 1 0 0 0 0-2 3 3 0 0 0-3 3v12a3 3 0 0 0 3 3zm7-16a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm6 6a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm4-17a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zm-1 17a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z"}));exports.BorderLeft=BorderLeft;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const BorderNone = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
10
|
-
React__default.default.createElement("path", { d: "M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z" })));
|
|
11
|
-
|
|
12
|
-
exports.BorderNone = BorderNone;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const BorderNone=e=>React__default.default.createElement("svg",{viewBox:"0 0 24 24",height:"48",width:"48",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},React__default.default.createElement("path",{d:"M14 4a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-9 7a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6 10a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zM7 4a1 1 0 0 0-1-1 3 3 0 0 0-3 3 1 1 0 0 0 2 0 1 1 0 0 1 1-1 1 1 0 0 0 1-1zm11-1a1 1 0 1 0 0 2 1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3zM7 20a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1 1 1 0 1 1 2 0 3 3 0 0 1-3 3z"}));exports.BorderNone=BorderNone;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const BorderRight = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
10
|
-
React__default.default.createElement("path", { d: "M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z" })));
|
|
11
|
-
|
|
12
|
-
exports.BorderRight = BorderRight;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const BorderRight=e=>React__default.default.createElement("svg",{viewBox:"0 0 24 24",height:"48",width:"48",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},React__default.default.createElement("path",{d:"M13 5a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2h2zm-8 6a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm9 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zM6 3a1 1 0 0 1 0 2 1 1 0 0 0-1 1 1 1 0 0 1-2 0 3 3 0 0 1 3-3zm1 17a1 1 0 0 1-1 1 3 3 0 0 1-3-3 1 1 0 1 1 2 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1zm11 1a1 1 0 1 1 0-2 1 1 0 0 0 1-1V6a1 1 0 0 0-1-1 1 1 0 1 1 0-2 3 3 0 0 1 3 3v12a3 3 0 0 1-3 3z"}));exports.BorderRight=BorderRight;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const BorderTop = (props) => (React__default.default.createElement("svg", { viewBox: "0 0 24 24", height: "48", width: "48", focusable: "false", role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props },
|
|
10
|
-
React__default.default.createElement("path", { d: "M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z" })));
|
|
11
|
-
|
|
12
|
-
exports.BorderTop = BorderTop;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const BorderTop=e=>React__default.default.createElement("svg",{viewBox:"0 0 24 24",height:"48",width:"48",focusable:"false",role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},React__default.default.createElement("path",{d:"M3 6a1 1 0 0 0 2 0 1 1 0 0 1 1-1h12a1 1 0 0 1 1 1 1 1 0 1 0 2 0 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3zm2 5a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2zm14 0a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-5 9a1 1 0 0 1-1 1h-2a1 1 0 1 1 0-2h2a1 1 0 0 1 1 1zm-8 1a1 1 0 1 0 0-2 1 1 0 0 1-1-1 1 1 0 1 0-2 0 3 3 0 0 0 3 3zm11-1a1 1 0 0 0 1 1 3 3 0 0 0 3-3 1 1 0 1 0-2 0 1 1 0 0 1-1 1 1 1 0 0 0-1 1z"}));exports.BorderTop=BorderTop;
|
|
@@ -1,106 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var plate = require('@udecode/plate');
|
|
5
|
-
var plateAlignment = require('@udecode/plate-alignment');
|
|
6
|
-
var dropdown = require('../../actions/dropdown/dropdown.js');
|
|
7
|
-
var align_center = require('../../../icons/text/align_center.js');
|
|
8
|
-
var align_justified = require('../../../icons/text/align_justified.js');
|
|
9
|
-
var align_left = require('../../../icons/text/align_left.js');
|
|
10
|
-
var align_right = require('../../../icons/text/align_right.js');
|
|
11
|
-
var player_list_play = require('../../../icons/audio_video/player_list_play.js');
|
|
12
|
-
var menu_button = require('../styles/menu_button.js');
|
|
13
|
-
|
|
14
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
|
-
|
|
16
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
|
-
|
|
18
|
-
const items = [
|
|
19
|
-
{
|
|
20
|
-
value: 'left',
|
|
21
|
-
icon: align_left.AlignLeft,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
value: 'center',
|
|
25
|
-
icon: align_center.AlignCenter,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
value: 'right',
|
|
29
|
-
icon: align_right.AlignRight,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
value: 'justify',
|
|
33
|
-
icon: align_justified.AlignJustified,
|
|
34
|
-
},
|
|
35
|
-
];
|
|
36
|
-
const AlignmentDropdown = ({ editorRef }) => {
|
|
37
|
-
const alignState = plateAlignment.useAlignDropdownMenuState();
|
|
38
|
-
const { radioGroupProps } = plateAlignment.useAlignDropdownMenu(alignState);
|
|
39
|
-
const current = radioGroupProps.value;
|
|
40
|
-
const IconValue = items.find((item) => item.value === radioGroupProps.value)?.icon ??
|
|
41
|
-
player_list_play.PlayerListPlay;
|
|
42
|
-
const handleAlign = (event) => {
|
|
43
|
-
const value = event.target?.getAttribute('data-value');
|
|
44
|
-
if (!value)
|
|
45
|
-
return;
|
|
46
|
-
plate.setAlign(editorRef, {
|
|
47
|
-
value: value,
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
return (React__default.default.createElement(dropdown.Dropdown, { onChange: handleAlign, offset: [0, 0], options: [
|
|
51
|
-
{
|
|
52
|
-
icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'left' },
|
|
53
|
-
React__default.default.createElement(align_left.AlignLeft, { size: 24, color: "grey-5" }))),
|
|
54
|
-
sx: 'gap: 0px; padding: 4px;',
|
|
55
|
-
value: 'left',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'center' },
|
|
59
|
-
React__default.default.createElement(align_center.AlignCenter, { size: 24, color: "grey-5" }))),
|
|
60
|
-
sx: 'gap: 0px; padding: 4px;',
|
|
61
|
-
value: 'center',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'right' },
|
|
65
|
-
React__default.default.createElement(align_right.AlignRight, { size: 24, color: "grey-5" }))),
|
|
66
|
-
sx: 'gap: 0px; padding: 4px;',
|
|
67
|
-
value: 'right',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
icon: (React__default.default.createElement(menu_button.MenuButton, { "$active": current === 'justify' },
|
|
71
|
-
React__default.default.createElement(align_justified.AlignJustified, { size: 24, color: "grey-5" }))),
|
|
72
|
-
sx: 'gap: 0px; padding: 4px;',
|
|
73
|
-
value: 'justify',
|
|
74
|
-
},
|
|
75
|
-
], maintainState: false, trigger: React__default.default.createElement(IconValue, { size: 24, color: "grey-5" }) }));
|
|
76
|
-
};
|
|
77
|
-
// <AlignToolbarButton
|
|
78
|
-
// as="div"
|
|
79
|
-
// active={alignment === 'left' ? true : undefined}
|
|
80
|
-
// data-value="left"
|
|
81
|
-
// value="left"
|
|
82
|
-
// icon={<AlignLeft size={24} color="grey-5" />}
|
|
83
|
-
// />
|
|
84
|
-
// <AlignToolbarButton
|
|
85
|
-
// as="div"
|
|
86
|
-
// active={alignment === 'center' ? true : undefined}
|
|
87
|
-
// data-value="center"
|
|
88
|
-
// value="center"
|
|
89
|
-
// icon={<AlignCenter size={24} color="grey-5" />}
|
|
90
|
-
// />
|
|
91
|
-
// <AlignToolbarButton
|
|
92
|
-
// as="div"
|
|
93
|
-
// active={alignment === 'right' ? true : undefined}
|
|
94
|
-
// data-value="right"
|
|
95
|
-
// value="right"
|
|
96
|
-
// icon={<AlignRight size={24} color="grey-5" />}
|
|
97
|
-
// />
|
|
98
|
-
// <AlignToolbarButton
|
|
99
|
-
// as="div"
|
|
100
|
-
// active={alignment === 'justify' ? true : undefined}
|
|
101
|
-
// data-value="justify"
|
|
102
|
-
// value="justify"
|
|
103
|
-
// icon={<AlignJustified size={24} color="grey-5" />}
|
|
104
|
-
// />
|
|
105
|
-
|
|
106
|
-
exports.AlignmentDropdown = AlignmentDropdown;
|
|
1
|
+
"use strict";var React=require("react"),plate=require("@udecode/plate"),plateAlignment=require("@udecode/plate-alignment"),dropdown=require("../../actions/dropdown/dropdown.js"),align_center=require("../../../icons/text/align_center.js"),align_justified=require("../../../icons/text/align_justified.js"),align_left=require("../../../icons/text/align_left.js"),align_right=require("../../../icons/text/align_right.js"),player_list_play=require("../../../icons/audio_video/player_list_play.js"),menu_button=require("../styles/menu_button.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const items=[{value:"left",icon:align_left.AlignLeft},{value:"center",icon:align_center.AlignCenter},{value:"right",icon:align_right.AlignRight},{value:"justify",icon:align_justified.AlignJustified}],AlignmentDropdown=({editorRef:t})=>{var e=plateAlignment.useAlignDropdownMenuState();const n=plateAlignment.useAlignDropdownMenu(e)["radioGroupProps"];var e=n.value,a=items.find(e=>e.value===n.value)?.icon??player_list_play.PlayerListPlay;return React__default.default.createElement(dropdown.Dropdown,{onChange:e=>{e=e.target?.getAttribute("data-value");e&&plate.setAlign(t,{value:e})},offset:[0,0],options:[{icon:React__default.default.createElement(menu_button.MenuButton,{$active:"left"===e},React__default.default.createElement(align_left.AlignLeft,{size:24,color:"grey-5"})),sx:"gap: 0px; padding: 4px;",value:"left"},{icon:React__default.default.createElement(menu_button.MenuButton,{$active:"center"===e},React__default.default.createElement(align_center.AlignCenter,{size:24,color:"grey-5"})),sx:"gap: 0px; padding: 4px;",value:"center"},{icon:React__default.default.createElement(menu_button.MenuButton,{$active:"right"===e},React__default.default.createElement(align_right.AlignRight,{size:24,color:"grey-5"})),sx:"gap: 0px; padding: 4px;",value:"right"},{icon:React__default.default.createElement(menu_button.MenuButton,{$active:"justify"===e},React__default.default.createElement(align_justified.AlignJustified,{size:24,color:"grey-5"})),sx:"gap: 0px; padding: 4px;",value:"justify"}],maintainState:!1,trigger:React__default.default.createElement(a,{size:24,color:"grey-5"})})};exports.AlignmentDropdown=AlignmentDropdown;
|
|
@@ -1,70 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var styled = require('styled-components');
|
|
5
|
-
var box = require('../../atoms/box/box.js');
|
|
6
|
-
var button = require('../../actions/button/button.js');
|
|
7
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
8
|
-
var modal = require('../../surfaces/modal/modal.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
var radio = require('../../input/radio/radio.js');
|
|
11
|
-
var close = require('../../../icons/basic/close.js');
|
|
12
|
-
var insert_button = require('../../../icons/misc/insert_button.js');
|
|
13
|
-
var menu_button = require('../styles/menu_button.js');
|
|
14
|
-
var constants = require('../constants.js');
|
|
15
|
-
|
|
16
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
-
|
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
|
-
|
|
20
|
-
const ButtonModal = ({ onButtonInsert }) => {
|
|
21
|
-
const [buttonType, setButtonType] = React__default.default.useState();
|
|
22
|
-
const handleButtonInsert = () => {
|
|
23
|
-
buttonType && onButtonInsert(buttonType);
|
|
24
|
-
setButtonType(undefined);
|
|
25
|
-
};
|
|
26
|
-
return (React__default.default.createElement(modal.Modal, null,
|
|
27
|
-
React__default.default.createElement(modal.Modal.Trigger, null,
|
|
28
|
-
React__default.default.createElement(menu_button.MenuButton, null,
|
|
29
|
-
React__default.default.createElement(insert_button.InsertButton, { size: 24, color: "grey-5" }))),
|
|
30
|
-
React__default.default.createElement(modal.Modal.Content, { sx: "border-radius: 16px; max-width: 782px; width: 100%; margin: 24px; padding: 0px;" },
|
|
31
|
-
React__default.default.createElement(box.Box, { "$dir": "column" },
|
|
32
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 24px; box-shadow: var(--elevation-2);" },
|
|
33
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$gap": 32 },
|
|
34
|
-
React__default.default.createElement(IconWrapper, null,
|
|
35
|
-
React__default.default.createElement(insert_button.InsertButton, { size: 24, color: "hue-blue-1" })),
|
|
36
|
-
React__default.default.createElement(heading.H, { "$bold": true, "$color": "hue-blue-1", "$fontSize": 20, "$lineHeight": 28 }, "Insert Button")),
|
|
37
|
-
React__default.default.createElement(close.Close, { size: 24, sx: "&:hover { cursor: pointer; border-radius: 50%; background-color: var(--color-grey-9); }" })),
|
|
38
|
-
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 24, sx: "padding: 24px 48px 24px 24px;" },
|
|
39
|
-
React__default.default.createElement(ButtonItem, { active: buttonType === constants.BUTTON_SUBSCRIBE, description: "A button encouraging the reader to purchase a paid subscription to your community", onClick: () => setButtonType(constants.BUTTON_SUBSCRIBE), title: "Subscribe Now" },
|
|
40
|
-
React__default.default.createElement(button.Button, { size: "small", sx: "width: 130px;" }, "Subscribe")),
|
|
41
|
-
React__default.default.createElement(ButtonItem, { active: buttonType === constants.BUTTON_LINK, description: "A button that links to a URL", onClick: () => setButtonType(constants.BUTTON_LINK), title: "Link Button" },
|
|
42
|
-
React__default.default.createElement(button.Button, { size: "small", sx: "width: 130px;" }, "Link"))),
|
|
43
|
-
React__default.default.createElement(box.Box, { "$padding": 24, "$gap": 16, sx: "padding: 24px; background-color: var(--color-white); border-top: 1px solid var(--color-grey-8);" },
|
|
44
|
-
React__default.default.createElement(modal.Modal.Dismiss, null,
|
|
45
|
-
React__default.default.createElement(button.Button, { size: "small", sx: "flex: 1;", type: "outlined", onClick: () => setButtonType(undefined) }, "Cancel")),
|
|
46
|
-
React__default.default.createElement(modal.Modal.Dismiss, null,
|
|
47
|
-
React__default.default.createElement(button.Button, { size: "small", sx: "flex: 1;", onClick: handleButtonInsert }, "Confirm")))))));
|
|
48
|
-
};
|
|
49
|
-
const IconWrapper = styled.styled.div `
|
|
1
|
+
"use strict";var React=require("react"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),heading=require("../../atoms/typography/heading.js"),modal=require("../../surfaces/modal/modal.js"),paragraph=require("../../atoms/typography/paragraph.js"),radio=require("../../input/radio/radio.js"),close=require("../../../icons/basic/close.js"),insert_button=require("../../../icons/misc/insert_button.js"),menu_button=require("../styles/menu_button.js"),constants=require("../constants.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const ButtonModal=({onButtonInsert:e})=>{const[t,a]=React__default.default.useState();return React__default.default.createElement(modal.Modal,null,React__default.default.createElement(modal.Modal.Trigger,null,React__default.default.createElement(menu_button.MenuButton,null,React__default.default.createElement(insert_button.InsertButton,{size:24,color:"grey-5"}))),React__default.default.createElement(modal.Modal.Content,{sx:"border-radius: 16px; max-width: 782px; width: 100%; margin: 24px; padding: 0px;"},React__default.default.createElement(box.Box,{$dir:"column"},React__default.default.createElement(box.Box,{$align:"center",$justify:"space-between",sx:"padding: 24px; box-shadow: var(--elevation-2);"},React__default.default.createElement(box.Box,{$align:"center",$gap:32},React__default.default.createElement(IconWrapper,null,React__default.default.createElement(insert_button.InsertButton,{size:24,color:"hue-blue-1"})),React__default.default.createElement(heading.H,{$bold:!0,$color:"hue-blue-1",$fontSize:20,$lineHeight:28},"Insert Button")),React__default.default.createElement(close.Close,{size:24,sx:"&:hover { cursor: pointer; border-radius: 50%; background-color: var(--color-grey-9); }"})),React__default.default.createElement(box.Box,{$dir:"column",$gap:24,sx:"padding: 24px 48px 24px 24px;"},React__default.default.createElement(ButtonItem,{active:t===constants.BUTTON_SUBSCRIBE,description:"A button encouraging the reader to purchase a paid subscription to your community",onClick:()=>a(constants.BUTTON_SUBSCRIBE),title:"Subscribe Now"},React__default.default.createElement(button.Button,{size:"small",sx:"width: 130px;"},"Subscribe")),React__default.default.createElement(ButtonItem,{active:t===constants.BUTTON_LINK,description:"A button that links to a URL",onClick:()=>a(constants.BUTTON_LINK),title:"Link Button"},React__default.default.createElement(button.Button,{size:"small",sx:"width: 130px;"},"Link"))),React__default.default.createElement(box.Box,{$padding:24,$gap:16,sx:"padding: 24px; background-color: var(--color-white); border-top: 1px solid var(--color-grey-8);"},React__default.default.createElement(modal.Modal.Dismiss,null,React__default.default.createElement(button.Button,{size:"small",sx:"flex: 1;",type:"outlined",onClick:()=>a(void 0)},"Cancel")),React__default.default.createElement(modal.Modal.Dismiss,null,React__default.default.createElement(button.Button,{size:"small",sx:"flex: 1;",onClick:()=>{t&&e(t),a(void 0)}},"Confirm"))))))},IconWrapper=styled.styled.div`
|
|
50
2
|
height: 48px;
|
|
51
3
|
width: 48px;
|
|
52
4
|
box-sizing: border-box;
|
|
53
5
|
padding: 12px;
|
|
54
6
|
border-radius: 8px;
|
|
55
7
|
background-color: var(--color-hue-blue-2);
|
|
56
|
-
|
|
57
|
-
const ButtonItem = ({ active, children, description, onClick, title, }) => (React__default.default.createElement(box.Box, { "$dir": "column", onClick: onClick, sx: "border-radius: 16px; box-shadow: var(--elevation-2); cursor: pointer;" },
|
|
58
|
-
React__default.default.createElement(box.Box, { sx: `
|
|
8
|
+
`,ButtonItem=({active:e,children:t,description:a,onClick:o,title:l})=>React__default.default.createElement(box.Box,{$dir:"column",onClick:o,sx:"border-radius: 16px; box-shadow: var(--elevation-2); cursor: pointer;"},React__default.default.createElement(box.Box,{sx:`
|
|
59
9
|
padding: 24px;
|
|
60
10
|
background-color: var(--color-blue-10);
|
|
61
11
|
border-radius: 8px 8px 0px 0px;
|
|
62
12
|
border-bottom: 1px solid var(--color-grey-9);
|
|
63
|
-
` },
|
|
64
|
-
React__default.default.createElement(radio.Radio, { checked: !!active, sx: "align-items: flex-start;", value: title }),
|
|
65
|
-
React__default.default.createElement(box.Box, { "$dir": "column" },
|
|
66
|
-
React__default.default.createElement(paragraph.P, { "$semiBold": true }, title),
|
|
67
|
-
React__default.default.createElement(paragraph.P, null, description))),
|
|
68
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", sx: "border-radius: 0px 0px 8px 8px; padding: 24px;" }, children)));
|
|
69
|
-
|
|
70
|
-
exports.ButtonModal = ButtonModal;
|
|
13
|
+
`},React__default.default.createElement(radio.Radio,{checked:!!e,sx:"align-items: flex-start;",value:l}),React__default.default.createElement(box.Box,{$dir:"column"},React__default.default.createElement(paragraph.P,{$semiBold:!0},l),React__default.default.createElement(paragraph.P,null,a))),React__default.default.createElement(box.Box,{$align:"center",$justify:"center",sx:"border-radius: 0px 0px 8px 8px; padding: 24px;"},t));exports.ButtonModal=ButtonModal;
|