@soul-refiner/design-system 2.0.0-alpha.27 → 2.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/actions/button/button.js +19 -14
- package/dist/components/actions/dropdown/dropdown.js +28 -24
- package/dist/components/actions/rate/rate.js +15 -11
- package/dist/components/actions/switch/switch.js +9 -5
- package/dist/components/actions/toggle/toggle.js +9 -5
- package/dist/components/actions/upload/upload.js +21 -17
- package/dist/components/atoms/box/box.js +5 -1
- package/dist/components/atoms/hide/hide.js +5 -1
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +10 -6
- package/dist/components/atoms/time_ago/time_ago.js +5 -1
- package/dist/components/atoms/typography/display.js +5 -1
- package/dist/components/atoms/typography/heading.js +13 -9
- package/dist/components/atoms/typography/paragraph.js +5 -1
- package/dist/components/card/action/action.js +15 -10
- package/dist/components/card/audio/audio.js +24 -19
- package/dist/components/card/card.js +13 -9
- package/dist/components/card/feature/feature.js +26 -21
- package/dist/components/card/meeting/meeting.js +34 -29
- package/dist/components/card/person/person.js +14 -9
- package/dist/components/card/price/price.js +24 -20
- package/dist/components/card/regular/regular.js +8 -3
- package/dist/components/card/video/video.js +24 -19
- package/dist/components/card/written/written.js +24 -19
- package/dist/components/custom/courses_selection/courses_selection.js +24 -19
- package/dist/components/custom/users_selection/users_selection.js +23 -18
- package/dist/components/editor/context.js +8 -4
- package/dist/components/editor/editor.js +9 -5
- package/dist/components/editor/icons/border-all.js +6 -2
- package/dist/components/editor/icons/border-bottom.js +6 -2
- package/dist/components/editor/icons/border-left.js +6 -2
- package/dist/components/editor/icons/border-none.js +6 -2
- package/dist/components/editor/icons/border-right.js +6 -2
- package/dist/components/editor/icons/border-top.js +6 -2
- package/dist/components/editor/navbar/alignment_dropdown.js +14 -10
- package/dist/components/editor/navbar/button_modal.js +34 -30
- package/dist/components/editor/navbar/navbar.js +76 -72
- package/dist/components/editor/navbar/style_dropdown.js +5 -1
- package/dist/components/editor/plugins/blocks/blockquote.js +8 -4
- package/dist/components/editor/plugins/blocks/buttons.js +10 -6
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +4 -3
- package/dist/components/editor/plugins/blocks/image.js +21 -17
- package/dist/components/editor/plugins/blocks/list.js +7 -3
- package/dist/components/editor/plugins/blocks/media-popover.js +13 -9
- package/dist/components/editor/plugins/blocks/plate-button.js +3 -2
- package/dist/components/editor/plugins/blocks/popover.js +4 -3
- package/dist/components/editor/plugins/blocks/qa.js +16 -12
- package/dist/components/editor/plugins/blocks/resizable.js +5 -1
- package/dist/components/editor/plugins/blocks/separator.js +3 -2
- package/dist/components/editor/plugins/blocks/table-cell.js +13 -9
- package/dist/components/editor/plugins/blocks/table-row.js +6 -2
- package/dist/components/editor/plugins/blocks/table.js +46 -42
- package/dist/components/editor/plugins/blocks/text.js +32 -28
- package/dist/components/editor/plugins/blocks/video.js +9 -5
- package/dist/components/editor/plugins/leafs/link.js +23 -19
- package/dist/components/editor/simple_editor/navbar.js +49 -45
- package/dist/components/editor/simple_editor/simple_editor.js +9 -5
- package/dist/components/feedback/animated_toast/animated_toast.js +10 -6
- package/dist/components/feedback/badge/badge.js +7 -3
- package/dist/components/feedback/banner/banner.js +15 -11
- package/dist/components/feedback/chip/chip.js +7 -3
- package/dist/components/feedback/loader/loader.js +7 -2
- package/dist/components/feedback/notification/notification.js +14 -10
- package/dist/components/feedback/progress/progress.js +17 -13
- package/dist/components/feedback/toast/toast.js +14 -10
- package/dist/components/feedback/tooltip/tooltip.js +10 -6
- package/dist/components/iconography/avatar/avatar.js +23 -18
- package/dist/components/iconography/avatar/icons/approved.js +8 -4
- package/dist/components/iconography/avatar/icons/busy.js +8 -4
- package/dist/components/iconography/avatar/icons/declined.js +8 -4
- package/dist/components/iconography/avatar/icons/default.js +7 -3
- package/dist/components/iconography/avatar/icons/focus.js +8 -4
- package/dist/components/iconography/avatar/icons/locked.js +8 -4
- package/dist/components/iconography/avatar/icons/offline.js +8 -4
- package/dist/components/iconography/avatar/icons/online.js +7 -3
- package/dist/components/iconography/avatar/icons/subscribed.js +12 -8
- package/dist/components/iconography/icon/icon.js +5 -1
- package/dist/components/input/calendar/calendar.js +29 -25
- package/dist/components/input/checkbox/checkbox.js +5 -1
- package/dist/components/input/date/date.js +43 -39
- package/dist/components/input/filter/filter.js +49 -44
- package/dist/components/input/filter/filter_option.js +10 -6
- package/dist/components/input/radio/radio.js +10 -6
- package/dist/components/input/search/search.js +13 -9
- package/dist/components/input/select/select.js +8 -4
- package/dist/components/input/text_area/text_area.js +14 -10
- package/dist/components/input/text_input/text_input.js +16 -12
- package/dist/components/input/time/time.js +9 -5
- package/dist/components/media/video/video.js +9 -3
- package/dist/components/media/video-player/playlist-item.js +17 -12
- package/dist/components/media/video-player/video.js +37 -31
- package/dist/components/navigation/breadcrumb/breadcrumb.js +19 -14
- package/dist/components/navigation/inner/inner.js +30 -25
- package/dist/components/navigation/tabs/tabs.js +11 -6
- package/dist/components/surfaces/accordion/accordion.js +15 -11
- package/dist/components/surfaces/calendar_date/calendar_date.js +14 -10
- package/dist/components/surfaces/carousel/card/card.js +11 -7
- package/dist/components/surfaces/comment/comment.js +44 -39
- package/dist/components/surfaces/drawer/drawer.js +20 -16
- package/dist/components/surfaces/message/message.js +12 -8
- package/dist/components/surfaces/modal/modal.js +23 -19
- package/dist/components/surfaces/portal/portal.js +8 -3
- package/dist/components/surfaces/post/post.js +36 -30
- package/dist/components/table/table/table.js +14 -10
- package/dist/icons/arrow/arrow_all.js +6 -2
- package/dist/icons/arrow/arrow_all_diagonal.js +6 -2
- package/dist/icons/arrow/arrow_both_downwards.js +6 -2
- package/dist/icons/arrow/arrow_both_upwards.js +6 -2
- package/dist/icons/arrow/arrow_circle_left.js +6 -2
- package/dist/icons/arrow/arrow_circle_left_double.js +6 -2
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +8 -4
- package/dist/icons/arrow/arrow_circle_right.js +6 -2
- package/dist/icons/arrow/arrow_circle_right_double.js +6 -2
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_left.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_right.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_left.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_right.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +6 -2
- package/dist/icons/arrow/arrow_down.js +6 -2
- package/dist/icons/arrow/arrow_down_bold.js +6 -2
- package/dist/icons/arrow/arrow_down_circle.js +6 -2
- package/dist/icons/arrow/arrow_left.js +6 -2
- package/dist/icons/arrow/arrow_left_bold.js +6 -2
- package/dist/icons/arrow/arrow_left_circle.js +6 -2
- package/dist/icons/arrow/arrow_left_curved.js +6 -2
- package/dist/icons/arrow/arrow_left_curved_circle.js +6 -2
- package/dist/icons/arrow/arrow_right.js +6 -2
- package/dist/icons/arrow/arrow_right_bold.js +6 -2
- package/dist/icons/arrow/arrow_right_circle.js +6 -2
- package/dist/icons/arrow/arrow_right_curved.js +6 -2
- package/dist/icons/arrow/arrow_right_curved_circle.js +6 -2
- package/dist/icons/arrow/arrow_up.js +6 -2
- package/dist/icons/arrow/arrow_up_bold.js +6 -2
- package/dist/icons/arrow/arrow_up_circle.js +6 -2
- package/dist/icons/arrow/chevron_down.js +6 -2
- package/dist/icons/arrow/chevron_down_circle.js +6 -2
- package/dist/icons/arrow/chevron_down_double.js +6 -2
- package/dist/icons/arrow/chevron_down_double_circle.js +6 -2
- package/dist/icons/arrow/chevron_left.js +6 -2
- package/dist/icons/arrow/chevron_left_circle.js +6 -2
- package/dist/icons/arrow/chevron_left_double.js +6 -2
- package/dist/icons/arrow/chevron_left_double_circle.js +6 -2
- package/dist/icons/arrow/chevron_right.js +6 -2
- package/dist/icons/arrow/chevron_right_circle.js +6 -2
- package/dist/icons/arrow/chevron_right_double.js +6 -2
- package/dist/icons/arrow/chevron_right_double_circle.js +6 -2
- package/dist/icons/arrow/chevron_scroll.js +6 -2
- package/dist/icons/arrow/chevron_up.js +6 -2
- package/dist/icons/arrow/chevron_up_circle.js +6 -2
- package/dist/icons/arrow/chevron_up_double.js +6 -2
- package/dist/icons/arrow/chevron_up_double_circle.js +6 -2
- package/dist/icons/arrow/forward_all.js +6 -2
- package/dist/icons/arrow/forward_all_bold.js +6 -2
- package/dist/icons/arrow/forward_bold.js +6 -2
- package/dist/icons/arrow/redo.js +6 -2
- package/dist/icons/arrow/redo_bold.js +6 -2
- package/dist/icons/arrow/reply.js +6 -2
- package/dist/icons/arrow/reply_all.js +6 -2
- package/dist/icons/arrow/reply_all_bold.js +6 -2
- package/dist/icons/arrow/reply_bold.js +6 -2
- package/dist/icons/arrow/undo.js +6 -2
- package/dist/icons/arrow/undo_bold.js +6 -2
- package/dist/icons/audio_video/drag_indicator.js +6 -2
- package/dist/icons/audio_video/eject.js +6 -2
- package/dist/icons/audio_video/equalizer.js +6 -2
- package/dist/icons/audio_video/fast_forward.js +6 -2
- package/dist/icons/audio_video/fast_forward_30.js +6 -2
- package/dist/icons/audio_video/fullscreen.js +6 -2
- package/dist/icons/audio_video/headphones.js +6 -2
- package/dist/icons/audio_video/library_add.js +6 -2
- package/dist/icons/audio_video/library_music.js +6 -2
- package/dist/icons/audio_video/microphone.js +6 -2
- package/dist/icons/audio_video/musical_note.js +6 -2
- package/dist/icons/audio_video/next.js +6 -2
- package/dist/icons/audio_video/pause.js +6 -2
- package/dist/icons/audio_video/pause_circle.js +6 -2
- package/dist/icons/audio_video/play.js +6 -2
- package/dist/icons/audio_video/play_circle.js +6 -2
- package/dist/icons/audio_video/play_display.js +6 -2
- package/dist/icons/audio_video/play_pause.js +6 -2
- package/dist/icons/audio_video/play_solid.js +6 -2
- package/dist/icons/audio_video/player_list.js +6 -2
- package/dist/icons/audio_video/player_list_add.js +6 -2
- package/dist/icons/audio_video/player_list_play.js +6 -2
- package/dist/icons/audio_video/previous.js +6 -2
- package/dist/icons/audio_video/radio.js +6 -2
- package/dist/icons/audio_video/record.js +6 -2
- package/dist/icons/audio_video/repeat.js +6 -2
- package/dist/icons/audio_video/rewind.js +6 -2
- package/dist/icons/audio_video/rewind_30.js +6 -2
- package/dist/icons/audio_video/shuffle.js +6 -2
- package/dist/icons/audio_video/sound_wave.js +6 -2
- package/dist/icons/audio_video/stop.js +6 -2
- package/dist/icons/audio_video/stop_circle.js +6 -2
- package/dist/icons/audio_video/subscriptions.js +6 -2
- package/dist/icons/audio_video/tuner.js +6 -2
- package/dist/icons/audio_video/volume.js +6 -2
- package/dist/icons/audio_video/volume_high.js +6 -2
- package/dist/icons/audio_video/volume_low.js +6 -2
- package/dist/icons/audio_video/volume_slash.js +6 -2
- package/dist/icons/basic/aa_sansserif.js +7 -3
- package/dist/icons/basic/aa_serif.js +7 -3
- package/dist/icons/basic/anchor.js +8 -4
- package/dist/icons/basic/bible.js +6 -2
- package/dist/icons/basic/bold.js +6 -2
- package/dist/icons/basic/book.js +6 -2
- package/dist/icons/basic/book_open.js +6 -2
- package/dist/icons/basic/bookmark.js +6 -2
- package/dist/icons/basic/bookmark_add.js +6 -2
- package/dist/icons/basic/bookmark_slash.js +6 -2
- package/dist/icons/basic/bookmarks.js +6 -2
- package/dist/icons/basic/books.js +9 -5
- package/dist/icons/basic/box.js +6 -2
- package/dist/icons/basic/briefcase.js +6 -2
- package/dist/icons/basic/browse_activity.js +6 -2
- package/dist/icons/basic/browser.js +6 -2
- package/dist/icons/basic/browser_slash.js +6 -2
- package/dist/icons/basic/calculator.js +6 -2
- package/dist/icons/basic/camera.js +6 -2
- package/dist/icons/basic/camera_add.js +6 -2
- package/dist/icons/basic/camera_slash.js +6 -2
- package/dist/icons/basic/checkmark.js +6 -2
- package/dist/icons/basic/checkmark_circle.js +8 -4
- package/dist/icons/basic/checkmark_filled.js +6 -2
- package/dist/icons/basic/checkmarks.js +6 -2
- package/dist/icons/basic/circle.js +6 -2
- package/dist/icons/basic/circle_slash.js +8 -4
- package/dist/icons/basic/clear_text_style.js +6 -2
- package/dist/icons/basic/close.js +6 -2
- package/dist/icons/basic/close_circle.js +6 -2
- package/dist/icons/basic/close_filled.js +6 -2
- package/dist/icons/basic/copy.js +6 -2
- package/dist/icons/basic/delete.js +6 -2
- package/dist/icons/basic/detail.js +6 -2
- package/dist/icons/basic/dot.js +6 -2
- package/dist/icons/basic/download.js +6 -2
- package/dist/icons/basic/download_arrow.js +6 -2
- package/dist/icons/basic/droplet.js +8 -4
- package/dist/icons/basic/ellipsis_horizontal.js +6 -2
- package/dist/icons/basic/ellipsis_horizontal_circle.js +6 -2
- package/dist/icons/basic/ellipsis_vertical.js +6 -2
- package/dist/icons/basic/ellipsis_vertical_circle.js +6 -2
- package/dist/icons/basic/eye.js +6 -2
- package/dist/icons/basic/eye_slash.js +6 -2
- package/dist/icons/basic/fingerprint.js +6 -2
- package/dist/icons/basic/flag.js +6 -2
- package/dist/icons/basic/flag_wave.js +6 -2
- package/dist/icons/basic/flag_wave_filled.js +6 -2
- package/dist/icons/basic/flame.js +6 -2
- package/dist/icons/basic/gauge.js +6 -2
- package/dist/icons/basic/glasses.js +6 -2
- package/dist/icons/basic/graduation_cap.js +6 -2
- package/dist/icons/basic/hashmark.js +6 -2
- package/dist/icons/basic/heart.js +6 -2
- package/dist/icons/basic/heart_slash.js +6 -2
- package/dist/icons/basic/highlighter.js +6 -2
- package/dist/icons/basic/home.js +6 -2
- package/dist/icons/basic/image.js +6 -2
- package/dist/icons/basic/inbox.js +6 -2
- package/dist/icons/basic/italic.js +6 -2
- package/dist/icons/basic/layers.js +6 -2
- package/dist/icons/basic/lightening.js +6 -2
- package/dist/icons/basic/lightening_slash.js +6 -2
- package/dist/icons/basic/link.js +6 -2
- package/dist/icons/basic/link_slash.js +6 -2
- package/dist/icons/basic/loudspeaker.js +6 -2
- package/dist/icons/basic/maximize.js +6 -2
- package/dist/icons/basic/menu.js +6 -2
- package/dist/icons/basic/menu_circle.js +6 -2
- package/dist/icons/basic/menu_dots.js +6 -2
- package/dist/icons/basic/microphone_slash.js +6 -2
- package/dist/icons/basic/minimize.js +6 -2
- package/dist/icons/basic/minus.js +6 -2
- package/dist/icons/basic/minus_circle.js +6 -2
- package/dist/icons/basic/move_item.js +6 -2
- package/dist/icons/basic/new.js +6 -2
- package/dist/icons/basic/newspaper.js +6 -2
- package/dist/icons/basic/node.js +6 -2
- package/dist/icons/basic/note_pad.js +7 -3
- package/dist/icons/basic/options.js +6 -2
- package/dist/icons/basic/paint_brush.js +6 -2
- package/dist/icons/basic/paperclip.js +6 -2
- package/dist/icons/basic/paperclip_slash.js +6 -2
- package/dist/icons/basic/pencil.js +6 -2
- package/dist/icons/basic/pencil_pad.js +6 -2
- package/dist/icons/basic/plus.js +6 -2
- package/dist/icons/basic/plus_circle.js +6 -2
- package/dist/icons/basic/presentation.js +6 -2
- package/dist/icons/basic/printer.js +6 -2
- package/dist/icons/basic/profile.js +6 -2
- package/dist/icons/basic/profile_check.js +6 -2
- package/dist/icons/basic/pulse.js +6 -2
- package/dist/icons/basic/qr_code.js +6 -2
- package/dist/icons/basic/resize.js +8 -4
- package/dist/icons/basic/scan.js +6 -2
- package/dist/icons/basic/scissors.js +6 -2
- package/dist/icons/basic/screenshot.js +6 -2
- package/dist/icons/basic/search.js +6 -2
- package/dist/icons/basic/select_item.js +7 -3
- package/dist/icons/basic/settings.js +6 -2
- package/dist/icons/basic/share.js +6 -2
- package/dist/icons/basic/share_external.js +6 -2
- package/dist/icons/basic/square.js +6 -2
- package/dist/icons/basic/star.js +6 -2
- package/dist/icons/basic/star_circle.js +6 -2
- package/dist/icons/basic/star_filled.js +6 -2
- package/dist/icons/basic/star_filled_half.js +6 -2
- package/dist/icons/basic/star_slash.js +6 -2
- package/dist/icons/basic/sticker.js +6 -2
- package/dist/icons/basic/strikethrough.js +6 -2
- package/dist/icons/basic/subtask.js +7 -3
- package/dist/icons/basic/tax.js +9 -5
- package/dist/icons/basic/text_bg_color.js +6 -2
- package/dist/icons/basic/text_color.js +6 -2
- package/dist/icons/basic/textbox.js +6 -2
- package/dist/icons/basic/thumbs_down.js +6 -2
- package/dist/icons/basic/thumbs_up.js +6 -2
- package/dist/icons/basic/thumbs_up_filled.js +6 -2
- package/dist/icons/basic/toggle_left.js +6 -2
- package/dist/icons/basic/toggle_right.js +6 -2
- package/dist/icons/basic/translate.js +6 -2
- package/dist/icons/basic/trash.js +6 -2
- package/dist/icons/basic/trash_slash.js +6 -2
- package/dist/icons/basic/underline.js +6 -2
- package/dist/icons/basic/upload.js +6 -2
- package/dist/icons/basic/video.js +6 -2
- package/dist/icons/basic/video_add.js +7 -3
- package/dist/icons/basic/video_slash.js +6 -2
- package/dist/icons/basic/wrench.js +6 -2
- package/dist/icons/basic/zoom_in.js +6 -2
- package/dist/icons/basic/zoom_out.js +6 -2
- package/dist/icons/data/bar_chart.js +6 -2
- package/dist/icons/data/bar_chart_downward.js +6 -2
- package/dist/icons/data/bar_chart_downward_outline.js +6 -2
- package/dist/icons/data/bar_chart_upward.js +6 -2
- package/dist/icons/data/bar_chart_upward_outline.js +6 -2
- package/dist/icons/data/candlestick_chart.js +6 -2
- package/dist/icons/data/four_circles.js +6 -2
- package/dist/icons/data/legend_toggle.js +6 -2
- package/dist/icons/data/line_chart.js +6 -2
- package/dist/icons/data/line_chart_area.js +6 -2
- package/dist/icons/data/line_chart_area_shaded.js +6 -2
- package/dist/icons/data/line_chart_double.js +6 -2
- package/dist/icons/data/line_chart_downward.js +6 -2
- package/dist/icons/data/line_chart_node.js +6 -2
- package/dist/icons/data/line_chart_outline.js +6 -2
- package/dist/icons/data/line_chart_search.js +6 -2
- package/dist/icons/data/line_chart_stars.js +6 -2
- package/dist/icons/data/line_chart_upward.js +6 -2
- package/dist/icons/data/pie_chart.js +7 -3
- package/dist/icons/data/tree.js +6 -2
- package/dist/icons/email/mail.js +6 -2
- package/dist/icons/email/mail_check.js +6 -2
- package/dist/icons/email/mail_minus.js +6 -2
- package/dist/icons/email/mail_send.js +6 -2
- package/dist/icons/email/send.js +6 -2
- package/dist/icons/email/send_close.js +6 -2
- package/dist/icons/email/send_schedule.js +6 -2
- package/dist/icons/email/send_text.js +6 -2
- package/dist/icons/emoji/emoji_add.js +6 -2
- package/dist/icons/emoji/laughing.js +6 -2
- package/dist/icons/emoji/neutral.js +6 -2
- package/dist/icons/emoji/sad.js +6 -2
- package/dist/icons/emoji/shocked.js +6 -2
- package/dist/icons/emoji/smile.js +6 -2
- package/dist/icons/file/clipboard.js +6 -2
- package/dist/icons/file/clipboard_check.js +6 -2
- package/dist/icons/file/clipboard_close.js +6 -2
- package/dist/icons/file/clipboard_minus.js +6 -2
- package/dist/icons/file/clipboard_plus.js +6 -2
- package/dist/icons/file/clipboard_text.js +6 -2
- package/dist/icons/file/file.js +6 -2
- package/dist/icons/file/file_add.js +6 -2
- package/dist/icons/file/file_check.js +6 -2
- package/dist/icons/file/file_close.js +6 -2
- package/dist/icons/file/file_code.js +6 -2
- package/dist/icons/file/file_download.js +6 -2
- package/dist/icons/file/file_draft.js +6 -2
- package/dist/icons/file/file_gear.js +7 -3
- package/dist/icons/file/file_minus.js +6 -2
- package/dist/icons/file/file_plus.js +6 -2
- package/dist/icons/file/file_scan.js +6 -2
- package/dist/icons/file/file_shred.js +6 -2
- package/dist/icons/file/file_text.js +6 -2
- package/dist/icons/file/file_upload.js +6 -2
- package/dist/icons/file/folder.js +6 -2
- package/dist/icons/file/folder_add.js +6 -2
- package/dist/icons/file/folder_arrow.js +6 -2
- package/dist/icons/file/folder_check.js +6 -2
- package/dist/icons/file/folder_close.js +6 -2
- package/dist/icons/file/folder_cloud.js +6 -2
- package/dist/icons/file/folder_gear.js +7 -3
- package/dist/icons/file/folder_minus.js +6 -2
- package/dist/icons/file/folder_music.js +6 -2
- package/dist/icons/file/folder_open.js +6 -2
- package/dist/icons/file/folder_plus.js +6 -2
- package/dist/icons/file/folder_zip.js +6 -2
- package/dist/icons/file/note.js +6 -2
- package/dist/icons/file/note_text.js +6 -2
- package/dist/icons/file/pdf.js +6 -2
- package/dist/icons/file/photo.js +6 -2
- package/dist/icons/finance/bitcoin.js +6 -2
- package/dist/icons/finance/coins.js +10 -6
- package/dist/icons/finance/credit_card.js +6 -2
- package/dist/icons/finance/credit_card_add.js +6 -2
- package/dist/icons/finance/credit_card_face.js +6 -2
- package/dist/icons/finance/credit_card_member.js +6 -2
- package/dist/icons/finance/credit_card_outcome.js +6 -2
- package/dist/icons/finance/credit_card_scan.js +6 -2
- package/dist/icons/finance/credit_card_share.js +6 -2
- package/dist/icons/finance/credit_card_slash.js +6 -2
- package/dist/icons/finance/currency_exchange.js +6 -2
- package/dist/icons/finance/dollar.js +6 -2
- package/dist/icons/finance/ethereum.js +6 -2
- package/dist/icons/finance/paypass.js +6 -2
- package/dist/icons/finance/strongbox.js +6 -2
- package/dist/icons/finance/wallet.js +6 -2
- package/dist/icons/layout/block_align_bottom.js +6 -2
- package/dist/icons/layout/block_align_center.js +6 -2
- package/dist/icons/layout/block_align_left.js +6 -2
- package/dist/icons/layout/block_align_middle.js +6 -2
- package/dist/icons/layout/block_align_right.js +6 -2
- package/dist/icons/layout/block_align_top.js +6 -2
- package/dist/icons/layout/block_horizontal.js +6 -2
- package/dist/icons/layout/block_vertical.js +6 -2
- package/dist/icons/layout/edit_shape.js +6 -2
- package/dist/icons/layout/elements.js +6 -2
- package/dist/icons/layout/elements_add.js +6 -2
- package/dist/icons/layout/elements_filled.js +6 -2
- package/dist/icons/layout/elements_masonry.js +6 -2
- package/dist/icons/layout/frame.js +6 -2
- package/dist/icons/layout/frame_stack.js +6 -2
- package/dist/icons/layout/grid.js +6 -2
- package/dist/icons/layout/grid_column_three.js +6 -2
- package/dist/icons/layout/grid_column_two.js +6 -2
- package/dist/icons/layout/grid_dynamic.js +6 -2
- package/dist/icons/layout/grid_frame.js +6 -2
- package/dist/icons/layout/grid_row_three.js +6 -2
- package/dist/icons/layout/grid_row_two.js +6 -2
- package/dist/icons/layout/grid_six.js +6 -2
- package/dist/icons/layout/grid_small.js +6 -2
- package/dist/icons/layout/iframe.js +6 -2
- package/dist/icons/layout/kanban.js +6 -2
- package/dist/icons/layout/layout.js +6 -2
- package/dist/icons/layout/list.js +6 -2
- package/dist/icons/layout/list_filled.js +11 -7
- package/dist/icons/layout/padding.js +6 -2
- package/dist/icons/layout/page_break.js +6 -2
- package/dist/icons/layout/rotate_left.js +6 -2
- package/dist/icons/layout/rotate_right.js +6 -2
- package/dist/icons/layout/ruler.js +6 -2
- package/dist/icons/layout/segment.js +6 -2
- package/dist/icons/layout/select_area.js +6 -2
- package/dist/icons/layout/select_boundary.js +6 -2
- package/dist/icons/layout/sidebar_left.js +6 -2
- package/dist/icons/layout/sidebar_right.js +6 -2
- package/dist/icons/layout/slides.js +6 -2
- package/dist/icons/layout/slides_horizontal.js +6 -2
- package/dist/icons/layout/slides_vertical.js +11 -7
- package/dist/icons/layout/stack.js +6 -2
- package/dist/icons/layout/text.js +6 -2
- package/dist/icons/maps/atlas.js +6 -2
- package/dist/icons/maps/compass.js +6 -2
- package/dist/icons/maps/direction.js +6 -2
- package/dist/icons/maps/direction_angled.js +6 -2
- package/dist/icons/maps/globe.js +6 -2
- package/dist/icons/maps/globe_slash.js +6 -2
- package/dist/icons/maps/location.js +6 -2
- package/dist/icons/maps/location_slash.js +6 -2
- package/dist/icons/maps/map.js +6 -2
- package/dist/icons/maps/marker.js +6 -2
- package/dist/icons/maps/panorama.js +6 -2
- package/dist/icons/maps/pin.js +6 -2
- package/dist/icons/maps/pin_arrow.js +6 -2
- package/dist/icons/maps/pin_location.js +6 -2
- package/dist/icons/maps/pin_plus.js +6 -2
- package/dist/icons/maps/pin_question.js +6 -2
- package/dist/icons/maps/pin_slash.js +6 -2
- package/dist/icons/maps/push_pin.js +6 -2
- package/dist/icons/maps/push_pin_filled.js +6 -2
- package/dist/icons/maps/push_pin_slash.js +6 -2
- package/dist/icons/maps/radar.js +6 -2
- package/dist/icons/maps/route.js +6 -2
- package/dist/icons/message/bubble.js +6 -2
- package/dist/icons/message/bubble_question.js +6 -2
- package/dist/icons/message/comment.js +6 -2
- package/dist/icons/message/comment_add.js +6 -2
- package/dist/icons/message/comment_check.js +6 -2
- package/dist/icons/message/comment_close.js +6 -2
- package/dist/icons/message/comment_minus.js +6 -2
- package/dist/icons/message/comment_text.js +6 -2
- package/dist/icons/misc/advertisement.js +6 -2
- package/dist/icons/misc/atom.js +6 -2
- package/dist/icons/misc/bone.js +6 -2
- package/dist/icons/misc/brightness_high.js +6 -2
- package/dist/icons/misc/brightness_low.js +6 -2
- package/dist/icons/misc/contrast.js +6 -2
- package/dist/icons/misc/crosshairs.js +6 -2
- package/dist/icons/misc/crown.js +6 -2
- package/dist/icons/misc/footprint.js +6 -2
- package/dist/icons/misc/form.js +6 -2
- package/dist/icons/misc/funnel.js +6 -2
- package/dist/icons/misc/infinite.js +6 -2
- package/dist/icons/misc/insert_button.js +6 -2
- package/dist/icons/misc/light_bulb.js +6 -2
- package/dist/icons/misc/moon.js +6 -2
- package/dist/icons/misc/nut.js +6 -2
- package/dist/icons/misc/planet.js +6 -2
- package/dist/icons/misc/plus_thick.js +6 -2
- package/dist/icons/misc/pocket.js +6 -2
- package/dist/icons/misc/rocket.js +6 -2
- package/dist/icons/misc/soup.js +10 -6
- package/dist/icons/misc/sun.js +6 -2
- package/dist/icons/misc/toy_horse.js +6 -2
- package/dist/icons/misc/trophy.js +6 -2
- package/dist/icons/misc/watercloset.js +6 -2
- package/dist/icons/notifications/alert_circle.js +6 -2
- package/dist/icons/notifications/alert_octogon.js +6 -2
- package/dist/icons/notifications/alert_triangle.js +6 -2
- package/dist/icons/notifications/app_notification.js +6 -2
- package/dist/icons/notifications/bell.js +6 -2
- package/dist/icons/notifications/bell_alert.js +6 -2
- package/dist/icons/notifications/bell_checkmark.js +6 -2
- package/dist/icons/notifications/bell_minus.js +6 -2
- package/dist/icons/notifications/bell_plus.js +6 -2
- package/dist/icons/notifications/bell_ring.js +8 -4
- package/dist/icons/notifications/bell_slash.js +6 -2
- package/dist/icons/notifications/information.js +6 -2
- package/dist/icons/notifications/minus_octogon.js +6 -2
- package/dist/icons/notifications/question_circle.js +6 -2
- package/dist/icons/people/group.js +6 -2
- package/dist/icons/people/group_add.js +6 -2
- package/dist/icons/people/group_chat.js +8 -4
- package/dist/icons/people/group_remove.js +6 -2
- package/dist/icons/people/group_send.js +7 -3
- package/dist/icons/people/groups.js +6 -2
- package/dist/icons/people/person.js +6 -2
- package/dist/icons/people/person_add.js +6 -2
- package/dist/icons/people/person_checkmark.js +6 -2
- package/dist/icons/people/person_circle.js +8 -4
- package/dist/icons/people/person_close.js +8 -4
- package/dist/icons/people/person_remove.js +6 -2
- package/dist/icons/people/person_slash.js +8 -4
- package/dist/icons/phone/keypad.js +6 -2
- package/dist/icons/phone/phone.js +6 -2
- package/dist/icons/phone/phone_add.js +6 -2
- package/dist/icons/phone/phone_calling.js +6 -2
- package/dist/icons/phone/phone_check.js +6 -2
- package/dist/icons/phone/phone_close.js +6 -2
- package/dist/icons/phone/phone_decline.js +6 -2
- package/dist/icons/phone/phone_forwarded.js +6 -2
- package/dist/icons/phone/phone_hash.js +6 -2
- package/dist/icons/phone/phone_incoming.js +6 -2
- package/dist/icons/phone/phone_outgoing.js +6 -2
- package/dist/icons/phone/phone_pause.js +6 -2
- package/dist/icons/phone/phone_slash.js +6 -2
- package/dist/icons/phone/voicemail.js +6 -2
- package/dist/icons/security/key.js +6 -2
- package/dist/icons/security/key_slash.js +6 -2
- package/dist/icons/security/lock.js +6 -2
- package/dist/icons/security/lock_circle.js +6 -2
- package/dist/icons/security/lock_open.js +6 -2
- package/dist/icons/security/lock_slash.js +6 -2
- package/dist/icons/security/shield.js +6 -2
- package/dist/icons/security/shield_checkmark.js +6 -2
- package/dist/icons/security/shield_lock.js +6 -2
- package/dist/icons/security/shield_slash.js +6 -2
- package/dist/icons/security/verified.js +6 -2
- package/dist/icons/shopping/basket.js +6 -2
- package/dist/icons/shopping/cart.js +6 -2
- package/dist/icons/shopping/cart_filled.js +6 -2
- package/dist/icons/shopping/coupon.js +6 -2
- package/dist/icons/shopping/coupon_cut.js +6 -2
- package/dist/icons/shopping/delivery.js +6 -2
- package/dist/icons/shopping/discount.js +6 -2
- package/dist/icons/shopping/gift.js +6 -2
- package/dist/icons/shopping/gift_bag.js +6 -2
- package/dist/icons/shopping/inventory.js +6 -2
- package/dist/icons/shopping/point_of_sale.js +6 -2
- package/dist/icons/shopping/shirt.js +6 -2
- package/dist/icons/shopping/tag.js +6 -2
- package/dist/icons/shopping/tag_diagonal.js +6 -2
- package/dist/icons/shopping/tote.js +6 -2
- package/dist/icons/special/upload_audio.js +11 -7
- package/dist/icons/special/upload_file.js +6 -2
- package/dist/icons/special/upload_image.js +8 -4
- package/dist/icons/special/upload_video.js +9 -5
- package/dist/icons/symbols/at.js +6 -2
- package/dist/icons/symbols/cc.js +6 -2
- package/dist/icons/symbols/cmd.js +6 -2
- package/dist/icons/symbols/facebook.js +6 -2
- package/dist/icons/symbols/google.js +9 -5
- package/dist/icons/symbols/hash.js +6 -2
- package/dist/icons/symbols/instagram.js +18 -14
- package/dist/icons/symbols/messenger.js +12 -8
- package/dist/icons/symbols/twitter.js +6 -2
- package/dist/icons/technology/battery.js +6 -2
- package/dist/icons/technology/battery_100.js +6 -2
- package/dist/icons/technology/battery_20.js +6 -2
- package/dist/icons/technology/battery_40.js +6 -2
- package/dist/icons/technology/battery_60.js +6 -2
- package/dist/icons/technology/battery_80.js +6 -2
- package/dist/icons/technology/battery_charging.js +6 -2
- package/dist/icons/technology/battery_slash.js +6 -2
- package/dist/icons/technology/devices.js +6 -2
- package/dist/icons/technology/floppy_disk.js +6 -2
- package/dist/icons/technology/iphone.js +6 -2
- package/dist/icons/technology/laptop.js +6 -2
- package/dist/icons/technology/mobile.js +6 -2
- package/dist/icons/technology/monitor.js +6 -2
- package/dist/icons/technology/server.js +6 -2
- package/dist/icons/technology/sim_card.js +6 -2
- package/dist/icons/technology/usb_stick.js +6 -2
- package/dist/icons/text/align_center.js +6 -2
- package/dist/icons/text/align_justified.js +6 -2
- package/dist/icons/text/align_left.js +6 -2
- package/dist/icons/text/align_right.js +6 -2
- package/dist/icons/text/code_block.js +6 -2
- package/dist/icons/text/divider.js +6 -2
- package/dist/icons/text/footnote.js +8 -4
- package/dist/icons/text/indent_decrease.js +6 -2
- package/dist/icons/text/indent_increase.js +6 -2
- package/dist/icons/text/list_ordered.js +6 -2
- package/dist/icons/text/list_unordered.js +6 -2
- package/dist/icons/text/quote.js +6 -2
- package/dist/icons/text/table.js +6 -2
- package/dist/icons/time/alarm.js +6 -2
- package/dist/icons/time/alarm_checkmark.js +6 -2
- package/dist/icons/time/alarm_minus.js +6 -2
- package/dist/icons/time/alarm_plus.js +6 -2
- package/dist/icons/time/alarm_slash.js +6 -2
- package/dist/icons/time/alarm_snooze.js +6 -2
- package/dist/icons/time/calendar.js +6 -2
- package/dist/icons/time/calendar_add.js +6 -2
- package/dist/icons/time/calendar_checkmark.js +6 -2
- package/dist/icons/time/calendar_close.js +6 -2
- package/dist/icons/time/calendar_dates.js +6 -2
- package/dist/icons/time/calendar_minus.js +6 -2
- package/dist/icons/time/calendar_plus.js +6 -2
- package/dist/icons/time/calendar_scroll.js +8 -4
- package/dist/icons/time/clock.js +6 -2
- package/dist/icons/time/clock_history.js +6 -2
- package/dist/icons/time/stopwatch.js +6 -2
- package/dist/icons/time/timer.js +6 -2
- package/dist/icons/time/watch.js +6 -2
- package/package.json +1 -1
|
@@ -18,28 +18,32 @@ var borderNone = require('../../icons/border-none.js');
|
|
|
18
18
|
var borderRight = require('../../icons/border-right.js');
|
|
19
19
|
var borderTop = require('../../icons/border-top.js');
|
|
20
20
|
|
|
21
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
22
|
+
|
|
23
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
24
|
+
|
|
21
25
|
const TableBordersDropdownMenuContent = cn.withRef((props, ref) => {
|
|
22
26
|
const { getOnSelectTableBorder, hasOuterBorders, hasBottomBorder, hasLeftBorder, hasNoBorders, hasRightBorder, hasTopBorder, } = plateTable.useTableBordersDropdownMenuContentState();
|
|
23
|
-
return (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
return (React__default.default.createElement(dropdownMenu.DropdownMenuContent, { ref: ref, className: cn.cn('min-w-[220px]'), side: "right", align: "start", sideOffset: 0, ...props },
|
|
28
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuCheckboxItem, { checked: hasBottomBorder, onCheckedChange: getOnSelectTableBorder('bottom') },
|
|
29
|
+
React__default.default.createElement(borderBottom.BorderBottom, { className: "mr-2 h-4 w-4" }),
|
|
30
|
+
React__default.default.createElement("div", null, "Bottom Border")),
|
|
31
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuCheckboxItem, { checked: hasTopBorder, onCheckedChange: getOnSelectTableBorder('top') },
|
|
32
|
+
React__default.default.createElement(borderTop.BorderTop, { className: "mr-2 h-4 w-4" }),
|
|
33
|
+
React__default.default.createElement("div", null, "Top Border")),
|
|
34
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuCheckboxItem, { checked: hasLeftBorder, onCheckedChange: getOnSelectTableBorder('left') },
|
|
35
|
+
React__default.default.createElement(borderLeft.BorderLeft, { className: "mr-2 h-4 w-4" }),
|
|
36
|
+
React__default.default.createElement("div", null, "Left Border")),
|
|
37
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuCheckboxItem, { checked: hasRightBorder, onCheckedChange: getOnSelectTableBorder('right') },
|
|
38
|
+
React__default.default.createElement(borderRight.BorderRight, { className: "mr-2 h-4 w-4" }),
|
|
39
|
+
React__default.default.createElement("div", null, "Right Border")),
|
|
40
|
+
React__default.default.createElement(separator.Separator, null),
|
|
41
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuCheckboxItem, { checked: hasNoBorders, onCheckedChange: getOnSelectTableBorder('none') },
|
|
42
|
+
React__default.default.createElement(borderNone.BorderNone, { className: "mr-2 h-4 w-4" }),
|
|
43
|
+
React__default.default.createElement("div", null, "No Border")),
|
|
44
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuCheckboxItem, { checked: hasOuterBorders, onCheckedChange: getOnSelectTableBorder('outer') },
|
|
45
|
+
React__default.default.createElement(borderAll.BorderAll, { className: "mr-2 h-4 w-4" }),
|
|
46
|
+
React__default.default.createElement("div", null, "Outside Borders"))));
|
|
43
47
|
});
|
|
44
48
|
const TableFloatingToolbar = cn.withRef(({ children, ...props }, ref) => {
|
|
45
49
|
const element = plateCommon.useElement();
|
|
@@ -51,26 +55,26 @@ const TableFloatingToolbar = cn.withRef(({ children, ...props }, ref) => {
|
|
|
51
55
|
const collapsed = !readOnly && selected && selectionCollapsed;
|
|
52
56
|
const open = !readOnly && selected;
|
|
53
57
|
const { canMerge, canUnmerge } = plateTable.useTableMergeState();
|
|
54
|
-
const mergeContent = canMerge && (
|
|
55
|
-
|
|
58
|
+
const mergeContent = canMerge && (React__default.default.createElement(plateButton.Button, { contentEditable: false, variant: "ghost", isMenu: true, onClick: () => plateTable.mergeTableCells(editor) },
|
|
59
|
+
React__default.default.createElement(lucideReact.Combine, { className: "mr-2 h-4 w-4" }),
|
|
56
60
|
"Merge"));
|
|
57
|
-
const unmergeButton = canUnmerge && (
|
|
58
|
-
|
|
61
|
+
const unmergeButton = canUnmerge && (React__default.default.createElement(plateButton.Button, { contentEditable: false, variant: "ghost", isMenu: true, onClick: () => plateTable.unmergeTableCells(editor) },
|
|
62
|
+
React__default.default.createElement(lucideReact.Ungroup, { className: "mr-2 h-4 w-4" }),
|
|
59
63
|
"Unmerge"));
|
|
60
|
-
const bordersContent = collapsed && (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
const bordersContent = collapsed && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
65
|
+
React__default.default.createElement(dropdownMenu.DropdownMenu, { modal: false },
|
|
66
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuTrigger, { asChild: true },
|
|
67
|
+
React__default.default.createElement(plateButton.Button, { variant: "ghost", isMenu: true },
|
|
68
|
+
React__default.default.createElement(borderAll.BorderAll, { className: "mr-2 h-4 w-4" }),
|
|
65
69
|
"Borders")),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
React__default.default.createElement(dropdownMenu.DropdownMenuPortal, null,
|
|
71
|
+
React__default.default.createElement(TableBordersDropdownMenuContent, null))),
|
|
72
|
+
React__default.default.createElement(plateButton.Button, { contentEditable: false, variant: "ghost", isMenu: true, ...buttonProps },
|
|
73
|
+
React__default.default.createElement(lucideReact.Trash, { className: "mr-2 h-4 w-4" }),
|
|
70
74
|
"Delete")));
|
|
71
|
-
return (
|
|
72
|
-
|
|
73
|
-
(canMerge || canUnmerge || collapsed) && (
|
|
75
|
+
return (React__default.default.createElement(popover.Popover, { open: open, modal: false },
|
|
76
|
+
React__default.default.createElement(PopoverPrimitive.PopoverAnchor, { asChild: true }, children),
|
|
77
|
+
(canMerge || canUnmerge || collapsed) && (React__default.default.createElement(popover.PopoverContent, { ref: ref, className: cn.cn(popover.popoverVariants(), 'flex w-[220px] flex-col gap-1 p-1'), onOpenAutoFocus: (e) => e.preventDefault(), ...props },
|
|
74
78
|
unmergeButton,
|
|
75
79
|
mergeContent,
|
|
76
80
|
bordersContent))));
|
|
@@ -78,15 +82,15 @@ const TableFloatingToolbar = cn.withRef(({ children, ...props }, ref) => {
|
|
|
78
82
|
const TableElement = plateCommon.withHOC(plateTable.TableProvider, cn.withRef(({ className, children, ...props }, ref) => {
|
|
79
83
|
const { colSizes, isSelectingCell, minColumnWidth, marginLeft } = plateTable.useTableElementState();
|
|
80
84
|
const { props: tableProps, colGroupProps } = plateTable.useTableElement();
|
|
81
|
-
return (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
return (React__default.default.createElement(TableFloatingToolbar, null,
|
|
86
|
+
React__default.default.createElement("div", { style: { paddingLeft: marginLeft } },
|
|
87
|
+
React__default.default.createElement(plateCommon.PlateElement, { ref: ref, asChild: true, className: cn.cn('my-4 ml-px mr-0 table h-px w-full table-fixed border-collapse', isSelectingCell && '[&_*::selection]:bg-none', className), ...tableProps, ...props },
|
|
88
|
+
React__default.default.createElement("table", null,
|
|
89
|
+
React__default.default.createElement("colgroup", { ...colGroupProps }, colSizes.map((width, index) => (React__default.default.createElement("col", { key: index, style: {
|
|
86
90
|
minWidth: minColumnWidth,
|
|
87
91
|
width: width || undefined,
|
|
88
92
|
} })))),
|
|
89
|
-
|
|
93
|
+
React__default.default.createElement("tbody", { className: "min-w-full" }, children))))));
|
|
90
94
|
}));
|
|
91
95
|
|
|
92
96
|
exports.TableBordersDropdownMenuContent = TableBordersDropdownMenuContent;
|
|
@@ -5,77 +5,81 @@ var plate = require('@udecode/plate');
|
|
|
5
5
|
var paragraph = require('../../../atoms/typography/paragraph.js');
|
|
6
6
|
var heading = require('../../../atoms/typography/heading.js');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
12
|
+
const ParagraphElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
9
13
|
const textAlign = props?.style?.textAlign;
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
15
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
16
|
+
React__default.default.createElement(paragraph.P, { as: "div", "$textAlign": textAlign }, children))));
|
|
13
17
|
});
|
|
14
18
|
const createParagraphPlugin = plate.createPluginFactory({
|
|
15
19
|
key: plate.ELEMENT_PARAGRAPH,
|
|
16
20
|
type: plate.ELEMENT_PARAGRAPH,
|
|
17
21
|
isElement: true,
|
|
18
22
|
});
|
|
19
|
-
const HOneElement =
|
|
23
|
+
const HOneElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
20
24
|
const textAlign = props?.style?.textAlign;
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
26
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
27
|
+
React__default.default.createElement(heading.H.One, { "$textAlign": textAlign }, children))));
|
|
24
28
|
});
|
|
25
29
|
const createHOnePlugin = plate.createPluginFactory({
|
|
26
30
|
key: plate.ELEMENT_H1,
|
|
27
31
|
type: plate.ELEMENT_H1,
|
|
28
32
|
isElement: true,
|
|
29
33
|
});
|
|
30
|
-
const HTwoElement =
|
|
34
|
+
const HTwoElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
31
35
|
const textAlign = props?.style?.textAlign;
|
|
32
|
-
return (
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
37
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
38
|
+
React__default.default.createElement(heading.H.Two, { "$textAlign": textAlign }, children))));
|
|
35
39
|
});
|
|
36
40
|
const createHTwoPlugin = plate.createPluginFactory({
|
|
37
41
|
key: plate.ELEMENT_H2,
|
|
38
42
|
type: plate.ELEMENT_H2,
|
|
39
43
|
isElement: true,
|
|
40
44
|
});
|
|
41
|
-
const HThreeElement =
|
|
45
|
+
const HThreeElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
42
46
|
const textAlign = props?.style?.textAlign;
|
|
43
|
-
return (
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
48
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
49
|
+
React__default.default.createElement(heading.H.Three, { "$textAlign": textAlign }, children))));
|
|
46
50
|
});
|
|
47
51
|
const createHThreePlugin = plate.createPluginFactory({
|
|
48
52
|
key: plate.ELEMENT_H3,
|
|
49
53
|
type: plate.ELEMENT_H3,
|
|
50
54
|
isElement: true,
|
|
51
55
|
});
|
|
52
|
-
const HFourElement =
|
|
56
|
+
const HFourElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
53
57
|
const textAlign = props?.style?.textAlign;
|
|
54
|
-
return (
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
59
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
60
|
+
React__default.default.createElement(heading.H.Four, { "$textAlign": textAlign }, children))));
|
|
57
61
|
});
|
|
58
62
|
const createHFourPlugin = plate.createPluginFactory({
|
|
59
63
|
key: plate.ELEMENT_H4,
|
|
60
64
|
type: plate.ELEMENT_H4,
|
|
61
65
|
isElement: true,
|
|
62
66
|
});
|
|
63
|
-
const HFiveElement =
|
|
67
|
+
const HFiveElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
64
68
|
const textAlign = props?.style?.textAlign;
|
|
65
|
-
return (
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
70
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
71
|
+
React__default.default.createElement(heading.H.Five, { "$textAlign": textAlign }, children))));
|
|
68
72
|
});
|
|
69
73
|
const createHFivePlugin = plate.createPluginFactory({
|
|
70
74
|
key: plate.ELEMENT_H5,
|
|
71
75
|
type: plate.ELEMENT_H5,
|
|
72
76
|
isElement: true,
|
|
73
77
|
});
|
|
74
|
-
const HSixElement =
|
|
78
|
+
const HSixElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
75
79
|
const textAlign = props?.style?.textAlign;
|
|
76
|
-
return (
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...props },
|
|
81
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
82
|
+
React__default.default.createElement(heading.H.Six, { "$textAlign": textAlign }, children))));
|
|
79
83
|
});
|
|
80
84
|
const createHSixPlugin = plate.createPluginFactory({
|
|
81
85
|
key: plate.ELEMENT_H6,
|
|
@@ -5,18 +5,22 @@ var plate = require('@udecode/plate');
|
|
|
5
5
|
var constants = require('../../constants.js');
|
|
6
6
|
var context = require('../../context.js');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
12
|
+
const VideoTitleElement = React__default.default.forwardRef(function VideoTitle({ editor, element, ...props }, ref) {
|
|
9
13
|
const editable = !plate.isEditorReadOnly(editor);
|
|
10
14
|
const { id } = element;
|
|
11
|
-
const { handleVideoClick, videoTitleLoader: VideoTitle } =
|
|
15
|
+
const { handleVideoClick, videoTitleLoader: VideoTitle } = React__default.default.useContext(context.EditorContext);
|
|
12
16
|
const handleClick = () => {
|
|
13
17
|
if (handleVideoClick && !editable) {
|
|
14
18
|
handleVideoClick(id);
|
|
15
19
|
}
|
|
16
20
|
};
|
|
17
|
-
return (
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, editor: editor, element: element, ref: ref, ...props },
|
|
22
|
+
React__default.default.createElement("div", { contentEditable: false, onClick: handleClick, style: { cursor: editable ? 'initial' : 'pointer' } },
|
|
23
|
+
React__default.default.createElement(VideoTitle, { courseMediaId: id }))));
|
|
20
24
|
});
|
|
21
25
|
const createVideoTitlePlugin = plate.createPluginFactory({
|
|
22
26
|
key: constants.ELEMENT_VIDEO,
|
|
@@ -8,10 +8,14 @@ var aa_sansserif = require('../../../../icons/basic/aa_sansserif.js');
|
|
|
8
8
|
var link = require('../../../../icons/basic/link.js');
|
|
9
9
|
var upload = require('../../../../icons/basic/upload.js');
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
|
|
15
|
+
const LinkElement = React__default.default.forwardRef(({ children, ...props }, ref) => {
|
|
12
16
|
const { props: linkProps } = plate.useLink({ element: props.element });
|
|
13
|
-
return (
|
|
14
|
-
|
|
17
|
+
return (React__default.default.createElement(plate.PlateElement, { asChild: true, ref: ref, ...linkProps, ...props },
|
|
18
|
+
React__default.default.createElement("a", null, children)));
|
|
15
19
|
});
|
|
16
20
|
const LinkFloatingMenu = ({ readOnly }) => {
|
|
17
21
|
const isEditing = plate.useFloatingLinkSelectors().isEditing();
|
|
@@ -21,26 +25,26 @@ const LinkFloatingMenu = ({ readOnly }) => {
|
|
|
21
25
|
const { props: editProps, ref: editRef, editButtonProps, } = plate.useFloatingLinkEdit(editState);
|
|
22
26
|
if (readOnly)
|
|
23
27
|
return null;
|
|
24
|
-
const input = (
|
|
28
|
+
const input = (React__default.default.createElement(box.Box, { "$dir": "column", sx: `
|
|
25
29
|
background-color: var(--color-white);
|
|
26
30
|
gap: 16px;
|
|
27
31
|
padding: 16px;
|
|
28
32
|
border-radius: 16px;
|
|
29
33
|
box-shadow: var(--elevation-2);
|
|
30
34
|
` },
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", "$gap": 8 },
|
|
36
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center" },
|
|
37
|
+
React__default.default.createElement(link.Link, null)),
|
|
38
|
+
React__default.default.createElement(plate.FloatingLinkUrlInput, { style: {
|
|
35
39
|
border: 'none',
|
|
36
40
|
outline: 'none',
|
|
37
41
|
padding: '8px 12px',
|
|
38
42
|
}, placeholder: "Paste link" })),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const editContent = isEditing ? (input) : (
|
|
43
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", "$gap": 8 },
|
|
44
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center" },
|
|
45
|
+
React__default.default.createElement(aa_sansserif.AASansSerif, null)),
|
|
46
|
+
React__default.default.createElement(Input, { placeholder: "Text to display", ...textInputProps }))));
|
|
47
|
+
const editContent = isEditing ? (input) : (React__default.default.createElement(box.Box, { "$align": "center", "$justify": "center", sx: `
|
|
44
48
|
box-sizing: box-content;
|
|
45
49
|
background-color: var(--color-white);
|
|
46
50
|
gap: 8px;
|
|
@@ -65,12 +69,12 @@ const LinkFloatingMenu = ({ readOnly }) => {
|
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
`, "$gap": 8 },
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
React__default.default.createElement("button", { type: "button", ...editButtonProps }, "Edit link"),
|
|
73
|
+
React__default.default.createElement(plate.LinkOpenButton, null,
|
|
74
|
+
React__default.default.createElement(upload.Upload, null))));
|
|
75
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
76
|
+
React__default.default.createElement("div", { ref: insertRef, ...insertProps }, input),
|
|
77
|
+
React__default.default.createElement("div", { ref: editRef, ...editProps }, editContent)));
|
|
74
78
|
};
|
|
75
79
|
const Input = styled.styled.input `
|
|
76
80
|
border: none;
|
|
@@ -17,9 +17,13 @@ var underline = require('../../../icons/basic/underline.js');
|
|
|
17
17
|
var undo = require('../../../icons/arrow/undo.js');
|
|
18
18
|
var menu_button = require('../styles/menu_button.js');
|
|
19
19
|
|
|
20
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
21
|
+
|
|
22
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
23
|
+
|
|
20
24
|
const EditorBar = ({ handleUploadImage }) => {
|
|
21
25
|
const editorRef = plate.useEditorRef('main');
|
|
22
|
-
const imageRef =
|
|
26
|
+
const imageRef = React__default.default.useRef(null);
|
|
23
27
|
const boldState = plate.useMarkToolbarButtonState({ nodeType: plate.MARK_BOLD });
|
|
24
28
|
const { props: { pressed: currBold, onClick: handleBold }, } = plate.useMarkToolbarButton(boldState);
|
|
25
29
|
const italicState = plate.useMarkToolbarButtonState({ nodeType: plate.MARK_ITALIC });
|
|
@@ -51,50 +55,50 @@ const EditorBar = ({ handleUploadImage }) => {
|
|
|
51
55
|
};
|
|
52
56
|
const handleRedo = () => editorRef.redo();
|
|
53
57
|
const handleUndo = () => editorRef.undo();
|
|
54
|
-
return (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
58
|
+
return (React__default.default.createElement(Menu, { "aria-label": "editor-navigation" },
|
|
59
|
+
React__default.default.createElement(MenuSection, null,
|
|
60
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Undo", place: "top" },
|
|
61
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": false, onClick: handleUndo },
|
|
62
|
+
React__default.default.createElement(undo.Undo, { size: 24, color: "grey-5" }))),
|
|
63
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Redo", place: "top" },
|
|
64
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": false, onClick: handleRedo },
|
|
65
|
+
React__default.default.createElement(redo.Redo, { size: 24, color: "grey-5" })))),
|
|
66
|
+
React__default.default.createElement(Divider, null),
|
|
67
|
+
React__default.default.createElement(MenuSection, null,
|
|
68
|
+
React__default.default.createElement(style_dropdown.StyleDropdown, { editorRef: editorRef })),
|
|
69
|
+
React__default.default.createElement(Divider, null),
|
|
70
|
+
React__default.default.createElement(MenuSection, null,
|
|
71
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": false, as: "div" },
|
|
72
|
+
React__default.default.createElement(alignment_dropdown.AlignmentDropdown, { editorRef: editorRef }))),
|
|
73
|
+
React__default.default.createElement(Divider, null),
|
|
74
|
+
React__default.default.createElement(MenuSection, null,
|
|
75
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Bold", place: "top" },
|
|
76
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": currBold, onClick: handleBold },
|
|
77
|
+
React__default.default.createElement(bold.Bold, { size: 24, color: "grey-5" }))),
|
|
78
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Italic", place: "top" },
|
|
79
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": currItalic, onClick: handleItalic },
|
|
80
|
+
React__default.default.createElement(italic.Italic, { size: 24, color: "grey-5" }))),
|
|
81
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Underline", place: "top" },
|
|
82
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": currUnderline, onClick: handleUnderline },
|
|
83
|
+
React__default.default.createElement(underline.Underline, { size: 24, color: "grey-5" })))),
|
|
84
|
+
React__default.default.createElement(Divider, null),
|
|
85
|
+
React__default.default.createElement(MenuSection, null,
|
|
86
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Link", place: "top" },
|
|
87
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": currLink, onClick: handleLink },
|
|
88
|
+
React__default.default.createElement(link.Link, { size: 24, color: "grey-5" }))),
|
|
89
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Image", place: "top" },
|
|
90
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": false, as: "label", onChange: handleImageChange },
|
|
91
|
+
React__default.default.createElement("div", null,
|
|
92
|
+
React__default.default.createElement("input", { accept: "image/*", ref: imageRef, style: { display: 'none' }, type: "file" }),
|
|
93
|
+
React__default.default.createElement(image.Image, { size: 24, color: "grey-5" }))))),
|
|
94
|
+
React__default.default.createElement(Divider, null),
|
|
95
|
+
React__default.default.createElement(MenuSection, null,
|
|
96
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Unordered List", place: "top" },
|
|
97
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": currUnorderedList, onClick: handleUnorderedList },
|
|
98
|
+
React__default.default.createElement(list_unordered.ListUnordered, { size: 24, color: "grey-5" }))),
|
|
99
|
+
React__default.default.createElement(tooltip.Tooltip, { content: "Ordered List", place: "top" },
|
|
100
|
+
React__default.default.createElement(menu_button.MenuButton, { "$active": currOrderedList, onClick: handleOrderedList },
|
|
101
|
+
React__default.default.createElement(list_ordered.ListOrdered, { size: 24, color: "grey-5" }))))));
|
|
98
102
|
};
|
|
99
103
|
const Menu = styled.styled.nav `
|
|
100
104
|
display: flex;
|
|
@@ -7,6 +7,10 @@ var plate = require('@udecode/plate');
|
|
|
7
7
|
var plugins = require('./plugins.js');
|
|
8
8
|
var navbar = require('./navbar.js');
|
|
9
9
|
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
+
|
|
10
14
|
const SimpleEditor = ({ editable, handleUploadImage, onChange, placeholder = '', previousContent = [
|
|
11
15
|
{
|
|
12
16
|
type: 'p',
|
|
@@ -17,11 +21,11 @@ const SimpleEditor = ({ editable, handleUploadImage, onChange, placeholder = '',
|
|
|
17
21
|
],
|
|
18
22
|
},
|
|
19
23
|
], }) => {
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
editable &&
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
return (React__default.default.createElement(plate.Plate, { id: "main", initialValue: previousContent, onChange: onChange, plugins: plugins.plugins },
|
|
25
|
+
React__default.default.createElement(Wrapper, null,
|
|
26
|
+
editable && React__default.default.createElement(navbar.EditorBar, { handleUploadImage: handleUploadImage }),
|
|
27
|
+
React__default.default.createElement(InnerWrapper, null,
|
|
28
|
+
React__default.default.createElement(plate.PlateContent, { id: "main", autoFocus: true, placeholder: placeholder, readOnly: !editable, spellCheck: true })))));
|
|
25
29
|
};
|
|
26
30
|
const InnerWrapper = styled.styled.div `
|
|
27
31
|
& > div {
|
|
@@ -5,10 +5,14 @@ var React = require('react');
|
|
|
5
5
|
var styled = require('styled-components');
|
|
6
6
|
var toast = require('../toast/toast.js');
|
|
7
7
|
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
8
12
|
const AnimatedToast = ({ message, type, onClose, animationDuration = 4, }) => {
|
|
9
|
-
const [toastIsClosed, setToastIsClosed] =
|
|
10
|
-
const timer =
|
|
11
|
-
|
|
13
|
+
const [toastIsClosed, setToastIsClosed] = React__default.default.useState(false);
|
|
14
|
+
const timer = React__default.default.useRef(null);
|
|
15
|
+
React__default.default.useEffect(() => {
|
|
12
16
|
timer.current = setTimeout(() => {
|
|
13
17
|
setToastIsClosed(true);
|
|
14
18
|
!!onClose && onClose();
|
|
@@ -17,9 +21,9 @@ const AnimatedToast = ({ message, type, onClose, animationDuration = 4, }) => {
|
|
|
17
21
|
clearTimeout(timer.current);
|
|
18
22
|
};
|
|
19
23
|
}, [animationDuration, onClose]);
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
return (React__default.default.createElement(Container, null,
|
|
25
|
+
React__default.default.createElement(ToastAnimation, { className: `${toastIsClosed ? 'toast-closed' : ''}` },
|
|
26
|
+
React__default.default.createElement(toast.Toast, { content: message, type: type, isAnimated: true, animationDuration: animationDuration }))));
|
|
23
27
|
};
|
|
24
28
|
const Container = styled.styled.div `
|
|
25
29
|
position: fixed;
|
|
@@ -5,6 +5,10 @@ var React = require('react');
|
|
|
5
5
|
var styled = require('styled-components');
|
|
6
6
|
var close = require('../../../icons/basic/close.js');
|
|
7
7
|
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
8
12
|
const colorLookup = {
|
|
9
13
|
blue: {
|
|
10
14
|
primary: 'var(--color-hue-blue-1)',
|
|
@@ -36,10 +40,10 @@ const Badge = ({ children, color, dot, onDismiss }) => {
|
|
|
36
40
|
const bgColor = colorLookup[color].bg;
|
|
37
41
|
const textColor = colorLookup[color].primary;
|
|
38
42
|
const borderColor = colorLookup[color].secondary;
|
|
39
|
-
return (
|
|
40
|
-
dot &&
|
|
43
|
+
return (React__default.default.createElement(Component, { "$bgColor": bgColor, "$borderColor": borderColor, "$textColor": textColor },
|
|
44
|
+
dot && React__default.default.createElement(Dot, { "$secondaryColor": textColor }),
|
|
41
45
|
children,
|
|
42
|
-
onDismiss &&
|
|
46
|
+
onDismiss && React__default.default.createElement(close.Close, { size: 16 })));
|
|
43
47
|
};
|
|
44
48
|
const Component = styled.styled.div `
|
|
45
49
|
display: flex;
|
|
@@ -13,21 +13,25 @@ var alert_triangle = require('../../../icons/notifications/alert_triangle.js');
|
|
|
13
13
|
var close = require('../../../icons/basic/close.js');
|
|
14
14
|
var information = require('../../../icons/notifications/information.js');
|
|
15
15
|
|
|
16
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
+
|
|
18
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
|
+
|
|
16
20
|
const Banner = ({ content, href, onClose, title, type, setContentInNewLine = false, additionalContent, sx, }) => {
|
|
17
21
|
const iconLookup = {
|
|
18
|
-
error:
|
|
19
|
-
info:
|
|
20
|
-
success:
|
|
21
|
-
warning:
|
|
22
|
+
error: React__default.default.createElement(alert_octogon.AlertOctogon, { size: 24 }),
|
|
23
|
+
info: React__default.default.createElement(information.Information, { size: 24 }),
|
|
24
|
+
success: React__default.default.createElement(alert_circle.AlertCircle, { size: 24 }),
|
|
25
|
+
warning: React__default.default.createElement(alert_triangle.AlertTriangle, { size: 24 }),
|
|
22
26
|
};
|
|
23
|
-
return (
|
|
27
|
+
return (React__default.default.createElement(Wrapper, { as: "output", "$dir": "row", "$gap": 8, "$type": type, "$sx": sx },
|
|
24
28
|
iconLookup[type],
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
additionalContent &&
|
|
29
|
-
href && (
|
|
30
|
-
onClose && (
|
|
29
|
+
React__default.default.createElement(box.Box, { "$dir": setContentInNewLine ? 'column' : 'row', "$gap": 4 },
|
|
30
|
+
React__default.default.createElement(paragraph.P, { as: "span", "$semiBold": true }, title),
|
|
31
|
+
React__default.default.createElement(paragraph.P, { as: "span", sx: setContentInNewLine ? 'margin-top: 12px;' : '' }, content),
|
|
32
|
+
additionalContent && React__default.default.createElement(paragraph.P, { as: "span" }, additionalContent),
|
|
33
|
+
href && (React__default.default.createElement(paragraph.P, { as: "a", href: href, "$color": "primary-blue-2" }, "Read more"))),
|
|
34
|
+
onClose && (React__default.default.createElement(button.Button, { icon: React__default.default.createElement(close.Close, { size: 24 }), onClick: onClose, type: "special" }))));
|
|
31
35
|
};
|
|
32
36
|
const Wrapper = styled.styled.output `
|
|
33
37
|
width: 100%;
|
|
@@ -5,6 +5,10 @@ var React = require('react');
|
|
|
5
5
|
var styled = require('styled-components');
|
|
6
6
|
var close = require('../../../icons/basic/close.js');
|
|
7
7
|
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
8
12
|
const colorLookup = {
|
|
9
13
|
'primary-blue': {
|
|
10
14
|
primary: 'var(--color-primary-blue-2)',
|
|
@@ -56,10 +60,10 @@ const Chip = ({ children, color, dot, onDismiss, size }) => {
|
|
|
56
60
|
const bgColor = colorLookup[color].primary;
|
|
57
61
|
const textColor = colorLookup[color].text;
|
|
58
62
|
const dotColor = colorLookup[color].secondary;
|
|
59
|
-
return (
|
|
60
|
-
dot &&
|
|
63
|
+
return (React__default.default.createElement(Component, { "$bgColor": bgColor, "$size": size, "$textColor": textColor },
|
|
64
|
+
dot && React__default.default.createElement(Dot, { "$secondaryColor": dotColor }),
|
|
61
65
|
children,
|
|
62
|
-
onDismiss &&
|
|
66
|
+
onDismiss && React__default.default.createElement(close.Close, { size: 16, onClick: onDismiss })));
|
|
63
67
|
};
|
|
64
68
|
const Component = styled.styled.div `
|
|
65
69
|
display: flex;
|