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