@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
|
@@ -13,10 +13,15 @@ var search = require('../../../icons/basic/search.js');
|
|
|
13
13
|
var plus = require('../../../icons/basic/plus.js');
|
|
14
14
|
var close = require('../../../icons/basic/close.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
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
20
|
+
|
|
16
21
|
const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, courses, label, courseIsSelected, setCourseIsSelected, subtitle, onlyOneCanBeSelected = false, ...rest }) => {
|
|
17
|
-
const wrapperRef =
|
|
18
|
-
const [open, setOpen] =
|
|
19
|
-
|
|
22
|
+
const wrapperRef = React__default.default.useRef(null);
|
|
23
|
+
const [open, setOpen] = React__default.default.useState(false);
|
|
24
|
+
React__default.default.useEffect(() => {
|
|
20
25
|
if (disabled) {
|
|
21
26
|
setOpen(false);
|
|
22
27
|
}
|
|
@@ -35,14 +40,14 @@ const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled =
|
|
|
35
40
|
}
|
|
36
41
|
};
|
|
37
42
|
const selectedCourses = courses.filter((course) => courseIsSelected[course.id]);
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
open && (
|
|
43
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
|
|
44
|
+
React__default.default.createElement(box.Box, { "$gap": 16, "$align": "center" },
|
|
45
|
+
React__default.default.createElement(IconWrapper, { "$color": "var(--color-hue-purple-2)" },
|
|
46
|
+
React__default.default.createElement(graduation_cap.GraduationCap, { color: "hue-purple-1", size: 24 })),
|
|
47
|
+
React__default.default.createElement(heading.H.Six, { "$bold": true, "$color": "hue-purple-1" }, "Course")),
|
|
48
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 14, sx: "margin-top: 32px;" }, subtitle),
|
|
49
|
+
React__default.default.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen, customDropdownIcon: search.Search, sx: "margin-top: 32px;" }, label),
|
|
50
|
+
open && (React__default.default.createElement(Container, { "$offset": offset, "$sx": containerSx }, courses.map((course) => (React__default.default.createElement(OptionWrapper, { key: course.id, "$disabled": disabled, onClick: () => {
|
|
46
51
|
setCourseIsSelected(onlyOneCanBeSelected
|
|
47
52
|
? {
|
|
48
53
|
[course.id]: true,
|
|
@@ -55,22 +60,22 @@ const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled =
|
|
|
55
60
|
setOpen(false);
|
|
56
61
|
}
|
|
57
62
|
} },
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
!!selectedCourses.length && (
|
|
62
|
-
return (
|
|
63
|
+
React__default.default.createElement(box.Box, { "$display": "flex", "$align": "center" },
|
|
64
|
+
React__default.default.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, course.name),
|
|
65
|
+
React__default.default.createElement(plus.Plus, { sx: "margin-left: auto;" }))))))),
|
|
66
|
+
!!selectedCourses.length && (React__default.default.createElement("ul", { style: { padding: 0 } }, selectedCourses.map((course) => {
|
|
67
|
+
return (React__default.default.createElement("li", { key: course.id, style: {
|
|
63
68
|
listStyleType: 'none',
|
|
64
69
|
display: 'flex',
|
|
65
70
|
alignItems: 'center',
|
|
66
71
|
marginTop: '16px',
|
|
67
72
|
} },
|
|
68
|
-
|
|
73
|
+
React__default.default.createElement(Image__default.default, { alt: "", height: 64, width: 114, src: course.imageSrc, quality: 100, style: {
|
|
69
74
|
borderRadius: '8px',
|
|
70
75
|
marginRight: '16px',
|
|
71
76
|
} }),
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
React__default.default.createElement(paragraph.P, { sx: "margin-left: 16px;" }, course.name),
|
|
78
|
+
React__default.default.createElement(close.Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
|
|
74
79
|
...courseIsSelected,
|
|
75
80
|
[course.id]: false,
|
|
76
81
|
}) })));
|
|
@@ -10,11 +10,16 @@ var search = require('../../input/search/search.js');
|
|
|
10
10
|
var checkbox = require('../../input/checkbox/checkbox.js');
|
|
11
11
|
var box = require('../../atoms/box/box.js');
|
|
12
12
|
|
|
13
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
17
|
+
|
|
13
18
|
const UsersSelection = ({ closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, searchSx, users, label, title, userIsChecked, setUserIsChecked, icon, ...rest }) => {
|
|
14
|
-
const wrapperRef =
|
|
15
|
-
const [open, setOpen] =
|
|
16
|
-
const [searchValue, setSearchValue] =
|
|
17
|
-
|
|
19
|
+
const wrapperRef = React__default.default.useRef(null);
|
|
20
|
+
const [open, setOpen] = React__default.default.useState(false);
|
|
21
|
+
const [searchValue, setSearchValue] = React__default.default.useState('');
|
|
22
|
+
React__default.default.useEffect(() => {
|
|
18
23
|
if (disabled) {
|
|
19
24
|
setOpen(false);
|
|
20
25
|
}
|
|
@@ -33,29 +38,29 @@ const UsersSelection = ({ closeOnBlur = true, disabled = false, offset = [0, 0],
|
|
|
33
38
|
}
|
|
34
39
|
};
|
|
35
40
|
const Icon = icon;
|
|
36
|
-
return (
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
|
|
42
|
+
React__default.default.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen },
|
|
43
|
+
React__default.default.createElement(Icon, { size: 16, sx: "margin-right: 16px;" }),
|
|
39
44
|
label),
|
|
40
|
-
open && (
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
open && (React__default.default.createElement(Container, { "$offset": offset, "$sx": containerSx },
|
|
46
|
+
React__default.default.createElement(paragraph.P, null, title),
|
|
47
|
+
React__default.default.createElement(search.Search, { onChange: (event) => setSearchValue(event.target.value), onClearText: () => setSearchValue(''), value: searchValue, size: "large", placeholder: "Search...", sx: `margin-top: 8px; margin-bottom: 8px; border-radius: 76px; ${searchSx}` }),
|
|
43
48
|
users
|
|
44
49
|
.filter((user) => searchValue
|
|
45
50
|
? user.fullName
|
|
46
51
|
.toLowerCase()
|
|
47
52
|
.includes(searchValue.toLowerCase())
|
|
48
53
|
: true)
|
|
49
|
-
.map((user) => (
|
|
50
|
-
|
|
54
|
+
.map((user) => (React__default.default.createElement(React__default.default.Fragment, { key: user.id },
|
|
55
|
+
React__default.default.createElement(OptionWrapper, { "$disabled": disabled, onClick: () => setUserIsChecked({
|
|
51
56
|
...userIsChecked,
|
|
52
57
|
[user.id]: !userIsChecked[user.id],
|
|
53
58
|
}) },
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
React__default.default.createElement(box.Box, { "$display": "flex", "$align": "center" },
|
|
60
|
+
React__default.default.createElement(StyledImage, { alt: "", height: 40, src: user.imageSrc, width: 40 }),
|
|
61
|
+
React__default.default.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, user.fullName),
|
|
62
|
+
React__default.default.createElement(checkbox.Checkbox, { selected: userIsChecked[user.id], sx: "margin-left: auto;" }))),
|
|
63
|
+
React__default.default.createElement(Spacer, null))))))));
|
|
59
64
|
};
|
|
60
65
|
const Wrapper = styled.styled.div `
|
|
61
66
|
position: relative;
|
|
@@ -110,7 +115,7 @@ const OptionWrapper = styled.styled.div `
|
|
|
110
115
|
`;
|
|
111
116
|
}}
|
|
112
117
|
`;
|
|
113
|
-
const StyledImage = styled.styled(
|
|
118
|
+
const StyledImage = styled.styled(Image__default.default) `
|
|
114
119
|
border-radius: 50%;
|
|
115
120
|
width: 40px;
|
|
116
121
|
height: 40px;
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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),
|
|
8
12
|
handleVideoClick: () => undefined,
|
|
9
13
|
imageSrcLoader: async () => '',
|
|
10
|
-
videoTitleLoader: () =>
|
|
14
|
+
videoTitleLoader: () => React__default.default.createElement(React__default.default.Fragment, null),
|
|
11
15
|
});
|
|
12
16
|
|
|
13
17
|
exports.EditorContext = EditorContext;
|
|
@@ -13,21 +13,25 @@ var leafs = require('./plugins/leafs/leafs.js');
|
|
|
13
13
|
var marks = require('./plugins/marks/marks.js');
|
|
14
14
|
var utils = require('./plugins/utils/utils.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 plugins = plate.createPlugins([...blocks.blocks, ...leafs.leafs, ...marks.marks, ...utils.utils], {
|
|
17
21
|
components: plate$1.plateUI,
|
|
18
22
|
});
|
|
19
23
|
const Editor = ({ commentInputLoader, commentLoader, editable, handleVideoClick, imageSrcLoader, onChange, previousContent, videoTitleLoader, }) => {
|
|
20
|
-
return (
|
|
24
|
+
return (React__default.default.createElement(context.EditorContext.Provider, { value: {
|
|
21
25
|
commentInputLoader,
|
|
22
26
|
commentLoader,
|
|
23
27
|
handleVideoClick,
|
|
24
28
|
imageSrcLoader,
|
|
25
29
|
videoTitleLoader,
|
|
26
30
|
} },
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
editable &&
|
|
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: () => {
|
|
31
35
|
if ('clipboard' in navigator) {
|
|
32
36
|
return navigator.clipboard.writeText('');
|
|
33
37
|
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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" })));
|
|
7
11
|
|
|
8
12
|
exports.BorderAll = BorderAll;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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" })));
|
|
7
11
|
|
|
8
12
|
exports.BorderBottom = BorderBottom;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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" })));
|
|
7
11
|
|
|
8
12
|
exports.BorderLeft = BorderLeft;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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" })));
|
|
7
11
|
|
|
8
12
|
exports.BorderNone = BorderNone;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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" })));
|
|
7
11
|
|
|
8
12
|
exports.BorderRight = BorderRight;
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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" })));
|
|
7
11
|
|
|
8
12
|
exports.BorderTop = BorderTop;
|
|
@@ -11,6 +11,10 @@ var align_right = require('../../../icons/text/align_right.js');
|
|
|
11
11
|
var player_list_play = require('../../../icons/audio_video/player_list_play.js');
|
|
12
12
|
var menu_button = require('../styles/menu_button.js');
|
|
13
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
|
+
|
|
14
18
|
const items = [
|
|
15
19
|
{
|
|
16
20
|
value: 'left',
|
|
@@ -43,32 +47,32 @@ const AlignmentDropdown = ({ editorRef }) => {
|
|
|
43
47
|
value: value,
|
|
44
48
|
});
|
|
45
49
|
};
|
|
46
|
-
return (
|
|
50
|
+
return (React__default.default.createElement(dropdown.Dropdown, { onChange: handleAlign, offset: [0, 0], options: [
|
|
47
51
|
{
|
|
48
|
-
icon: (
|
|
49
|
-
|
|
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" }))),
|
|
50
54
|
sx: 'gap: 0px; padding: 4px;',
|
|
51
55
|
value: 'left',
|
|
52
56
|
},
|
|
53
57
|
{
|
|
54
|
-
icon: (
|
|
55
|
-
|
|
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" }))),
|
|
56
60
|
sx: 'gap: 0px; padding: 4px;',
|
|
57
61
|
value: 'center',
|
|
58
62
|
},
|
|
59
63
|
{
|
|
60
|
-
icon: (
|
|
61
|
-
|
|
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" }))),
|
|
62
66
|
sx: 'gap: 0px; padding: 4px;',
|
|
63
67
|
value: 'right',
|
|
64
68
|
},
|
|
65
69
|
{
|
|
66
|
-
icon: (
|
|
67
|
-
|
|
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" }))),
|
|
68
72
|
sx: 'gap: 0px; padding: 4px;',
|
|
69
73
|
value: 'justify',
|
|
70
74
|
},
|
|
71
|
-
], maintainState: false, trigger:
|
|
75
|
+
], maintainState: false, trigger: React__default.default.createElement(IconValue, { size: 24, color: "grey-5" }) }));
|
|
72
76
|
};
|
|
73
77
|
// <AlignToolbarButton
|
|
74
78
|
// as="div"
|
|
@@ -13,34 +13,38 @@ var insert_button = require('../../../icons/misc/insert_button.js');
|
|
|
13
13
|
var menu_button = require('../styles/menu_button.js');
|
|
14
14
|
var constants = require('../constants.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 ButtonModal = ({ onButtonInsert }) => {
|
|
17
|
-
const [buttonType, setButtonType] =
|
|
21
|
+
const [buttonType, setButtonType] = React__default.default.useState();
|
|
18
22
|
const handleButtonInsert = () => {
|
|
19
23
|
buttonType && onButtonInsert(buttonType);
|
|
20
24
|
setButtonType(undefined);
|
|
21
25
|
};
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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")))))));
|
|
44
48
|
};
|
|
45
49
|
const IconWrapper = styled.styled.div `
|
|
46
50
|
height: 48px;
|
|
@@ -50,17 +54,17 @@ const IconWrapper = styled.styled.div `
|
|
|
50
54
|
border-radius: 8px;
|
|
51
55
|
background-color: var(--color-hue-blue-2);
|
|
52
56
|
`;
|
|
53
|
-
const ButtonItem = ({ active, children, description, onClick, title, }) => (
|
|
54
|
-
|
|
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: `
|
|
55
59
|
padding: 24px;
|
|
56
60
|
background-color: var(--color-blue-10);
|
|
57
61
|
border-radius: 8px 8px 0px 0px;
|
|
58
62
|
border-bottom: 1px solid var(--color-grey-9);
|
|
59
63
|
` },
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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)));
|
|
65
69
|
|
|
66
70
|
exports.ButtonModal = ButtonModal;
|