@soul-refiner/design-system 2.0.3 → 2.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.js +1 -140
- package/dist/common/date.js +1 -34
- package/dist/common/styles.js +30 -62
- package/dist/components/actions/button/button.js +21 -111
- package/dist/components/actions/dropdown/dropdown.js +21 -176
- package/dist/components/actions/rate/rate.js +4 -55
- package/dist/components/actions/switch/switch.js +5 -39
- package/dist/components/actions/toggle/toggle.js +6 -33
- package/dist/components/actions/upload/upload.js +9 -167
- package/dist/components/atoms/box/box.js +4 -18
- package/dist/components/atoms/hide/hide.js +1 -18
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +1 -36
- package/dist/components/atoms/time_ago/time_ago.js +1 -39
- package/dist/components/atoms/typography/display.js +5 -18
- package/dist/components/atoms/typography/heading.js +6 -43
- package/dist/components/atoms/typography/paragraph.js +7 -20
- package/dist/components/atoms/typography/typography.js +3 -10
- package/dist/components/card/action/action.js +8 -41
- package/dist/components/card/audio/audio.js +7 -57
- package/dist/components/card/card.js +1 -33
- package/dist/components/card/feature/feature.js +14 -86
- package/dist/components/card/meeting/meeting.js +8 -102
- package/dist/components/card/person/person.js +6 -39
- package/dist/components/card/price/price.js +7 -49
- package/dist/components/card/regular/regular.js +5 -26
- package/dist/components/card/styles.js +2 -9
- package/dist/components/card/video/video.js +7 -57
- package/dist/components/card/written/written.js +7 -57
- package/dist/components/custom/courses_selection/courses_selection.js +12 -104
- package/dist/components/custom/users_selection/users_selection.js +12 -86
- package/dist/components/editor/constants.js +1 -195
- package/dist/components/editor/context.js +1 -17
- package/dist/components/editor/editor.js +5 -45
- package/dist/components/editor/icons/border-all.js +1 -12
- package/dist/components/editor/icons/border-bottom.js +1 -12
- package/dist/components/editor/icons/border-left.js +1 -12
- package/dist/components/editor/icons/border-none.js +1 -12
- package/dist/components/editor/icons/border-right.js +1 -12
- package/dist/components/editor/icons/border-top.js +1 -12
- package/dist/components/editor/navbar/alignment_dropdown.js +1 -106
- package/dist/components/editor/navbar/button_modal.js +3 -60
- package/dist/components/editor/navbar/navbar.js +7 -178
- package/dist/components/editor/navbar/style_dropdown.js +1 -74
- package/dist/components/editor/plugins/blocks/blockquote.js +1 -17
- package/dist/components/editor/plugins/blocks/blocks.js +1 -54
- package/dist/components/editor/plugins/blocks/buttons.js +8 -70
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +1 -77
- package/dist/components/editor/plugins/blocks/image.js +1 -60
- package/dist/components/editor/plugins/blocks/list.js +2 -20
- package/dist/components/editor/plugins/blocks/media-popover.js +1 -41
- package/dist/components/editor/plugins/blocks/plate-button.js +1 -63
- package/dist/components/editor/plugins/blocks/popover.js +1 -38
- package/dist/components/editor/plugins/blocks/qa.js +3 -45
- package/dist/components/editor/plugins/blocks/resizable.js +1 -47
- package/dist/components/editor/plugins/blocks/separator.js +1 -43
- package/dist/components/editor/plugins/blocks/table-cell.js +1 -48
- package/dist/components/editor/plugins/blocks/table-row.js +1 -16
- package/dist/components/editor/plugins/blocks/table.js +1 -98
- package/dist/components/editor/plugins/blocks/text.js +1 -103
- package/dist/components/editor/plugins/blocks/video.js +1 -42
- package/dist/components/editor/plugins/leafs/leafs.js +1 -37
- package/dist/components/editor/plugins/leafs/link.js +4 -55
- package/dist/components/editor/plugins/marks/marks.js +1 -17
- package/dist/components/editor/plugins/plate.js +1 -43
- package/dist/components/editor/plugins/utils/exitBreak.js +1 -36
- package/dist/components/editor/plugins/utils/resetBlockType.js +1 -26
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +1 -11
- package/dist/components/editor/plugins/utils/softBreak.js +1 -19
- package/dist/components/editor/plugins/utils/utils.js +1 -17
- package/dist/components/editor/simple_editor/navbar.js +4 -110
- package/dist/components/editor/simple_editor/plugins.js +1 -93
- package/dist/components/editor/simple_editor/simple_editor.js +3 -34
- package/dist/components/editor/styles/menu_button.js +3 -9
- package/dist/components/feedback/animated_toast/animated_toast.js +3 -32
- package/dist/components/feedback/badge/badge.js +7 -56
- package/dist/components/feedback/banner/banner.js +6 -60
- package/dist/components/feedback/chip/chip.js +8 -81
- package/dist/components/feedback/loader/loader.js +9 -33
- package/dist/components/feedback/notification/notification.js +6 -59
- package/dist/components/feedback/progress/progress.js +14 -76
- package/dist/components/feedback/toast/toast.js +7 -55
- package/dist/components/feedback/tooltip/tooltip.js +1 -34
- package/dist/components/iconography/avatar/avatar.js +22 -141
- package/dist/components/iconography/avatar/icons/approved.js +1 -14
- package/dist/components/iconography/avatar/icons/busy.js +1 -14
- package/dist/components/iconography/avatar/icons/declined.js +1 -14
- package/dist/components/iconography/avatar/icons/default.js +1 -13
- package/dist/components/iconography/avatar/icons/focus.js +1 -14
- package/dist/components/iconography/avatar/icons/locked.js +1 -14
- package/dist/components/iconography/avatar/icons/offline.js +1 -14
- package/dist/components/iconography/avatar/icons/online.js +1 -13
- package/dist/components/iconography/avatar/icons/subscribed.js +1 -18
- package/dist/components/iconography/icon/icon.js +3 -18
- package/dist/components/input/calendar/calendar.js +13 -139
- package/dist/components/input/checkbox/checkbox.js +5 -23
- package/dist/components/input/date/date.js +13 -241
- package/dist/components/input/filter/filter.js +13 -212
- package/dist/components/input/filter/filter_option.js +9 -50
- package/dist/components/input/radio/radio.js +7 -45
- package/dist/components/input/search/search.js +17 -83
- package/dist/components/input/select/select.js +6 -27
- package/dist/components/input/text_area/text_area.js +15 -60
- package/dist/components/input/text_input/text_input.js +21 -102
- package/dist/components/input/time/time.js +3 -47
- package/dist/components/media/video/video.js +1 -42
- package/dist/components/media/video-player/playlist-item.js +4 -37
- package/dist/components/media/video-player/video.js +13 -121
- package/dist/components/navigation/breadcrumb/breadcrumb.js +11 -66
- package/dist/components/navigation/inner/inner.js +14 -130
- package/dist/components/navigation/tabs/tabs.js +15 -101
- package/dist/components/surfaces/accordion/accordion.js +5 -46
- package/dist/components/surfaces/calendar_date/calendar_date.js +10 -39
- package/dist/components/surfaces/carousel/card/card.js +7 -55
- package/dist/components/surfaces/comment/comment.js +19 -152
- package/dist/components/surfaces/comment/helpers.js +1 -30
- package/dist/components/surfaces/drawer/drawer.js +7 -75
- package/dist/components/surfaces/message/message.js +4 -39
- package/dist/components/surfaces/modal/modal.js +8 -99
- package/dist/components/surfaces/portal/portal.js +1 -35
- package/dist/components/surfaces/post/post.js +19 -161
- package/dist/components/table/table/table.js +29 -120
- package/dist/emoji/emojis.json.js +1 -36331
- package/dist/icons/arrow/arrow_all.js +1 -15
- package/dist/icons/arrow/arrow_all_diagonal.js +1 -15
- package/dist/icons/arrow/arrow_both_downwards.js +1 -15
- package/dist/icons/arrow/arrow_both_upwards.js +1 -15
- package/dist/icons/arrow/arrow_circle_left.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +1 -17
- package/dist/icons/arrow/arrow_circle_right.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_down.js +1 -15
- package/dist/icons/arrow/arrow_down_bold.js +1 -15
- package/dist/icons/arrow/arrow_down_circle.js +1 -15
- package/dist/icons/arrow/arrow_left.js +1 -15
- package/dist/icons/arrow/arrow_left_bold.js +1 -15
- package/dist/icons/arrow/arrow_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_left_curved.js +1 -15
- package/dist/icons/arrow/arrow_left_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_right.js +1 -15
- package/dist/icons/arrow/arrow_right_bold.js +1 -15
- package/dist/icons/arrow/arrow_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_right_curved.js +1 -15
- package/dist/icons/arrow/arrow_right_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_up.js +1 -15
- package/dist/icons/arrow/arrow_up_bold.js +1 -15
- package/dist/icons/arrow/arrow_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_down.js +1 -15
- package/dist/icons/arrow/chevron_down_circle.js +1 -15
- package/dist/icons/arrow/chevron_down_double.js +1 -15
- package/dist/icons/arrow/chevron_down_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_left.js +1 -15
- package/dist/icons/arrow/chevron_left_circle.js +1 -15
- package/dist/icons/arrow/chevron_left_double.js +1 -15
- package/dist/icons/arrow/chevron_left_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_right.js +1 -15
- package/dist/icons/arrow/chevron_right_circle.js +1 -15
- package/dist/icons/arrow/chevron_right_double.js +1 -15
- package/dist/icons/arrow/chevron_right_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_scroll.js +1 -15
- package/dist/icons/arrow/chevron_up.js +1 -15
- package/dist/icons/arrow/chevron_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_up_double.js +1 -15
- package/dist/icons/arrow/chevron_up_double_circle.js +1 -15
- package/dist/icons/arrow/forward_all.js +1 -15
- package/dist/icons/arrow/forward_all_bold.js +1 -15
- package/dist/icons/arrow/forward_bold.js +1 -15
- package/dist/icons/arrow/redo.js +1 -15
- package/dist/icons/arrow/redo_bold.js +1 -15
- package/dist/icons/arrow/reply.js +1 -15
- package/dist/icons/arrow/reply_all.js +1 -15
- package/dist/icons/arrow/reply_all_bold.js +1 -15
- package/dist/icons/arrow/reply_bold.js +1 -15
- package/dist/icons/arrow/undo.js +1 -15
- package/dist/icons/arrow/undo_bold.js +1 -15
- package/dist/icons/audio_video/drag_indicator.js +1 -15
- package/dist/icons/audio_video/eject.js +1 -15
- package/dist/icons/audio_video/equalizer.js +1 -15
- package/dist/icons/audio_video/fast_forward.js +1 -15
- package/dist/icons/audio_video/fast_forward_30.js +1 -15
- package/dist/icons/audio_video/fullscreen.js +1 -15
- package/dist/icons/audio_video/headphones.js +1 -15
- package/dist/icons/audio_video/library_add.js +1 -15
- package/dist/icons/audio_video/library_music.js +1 -15
- package/dist/icons/audio_video/microphone.js +1 -15
- package/dist/icons/audio_video/musical_note.js +1 -15
- package/dist/icons/audio_video/next.js +1 -15
- package/dist/icons/audio_video/pause.js +1 -15
- package/dist/icons/audio_video/pause_circle.js +1 -15
- package/dist/icons/audio_video/play.js +1 -15
- package/dist/icons/audio_video/play_circle.js +1 -15
- package/dist/icons/audio_video/play_display.js +1 -15
- package/dist/icons/audio_video/play_pause.js +1 -15
- package/dist/icons/audio_video/play_solid.js +1 -15
- package/dist/icons/audio_video/player_list.js +1 -15
- package/dist/icons/audio_video/player_list_add.js +1 -15
- package/dist/icons/audio_video/player_list_play.js +1 -15
- package/dist/icons/audio_video/previous.js +1 -15
- package/dist/icons/audio_video/radio.js +1 -15
- package/dist/icons/audio_video/record.js +1 -15
- package/dist/icons/audio_video/repeat.js +1 -15
- package/dist/icons/audio_video/rewind.js +1 -15
- package/dist/icons/audio_video/rewind_30.js +1 -15
- package/dist/icons/audio_video/shuffle.js +1 -15
- package/dist/icons/audio_video/sound_wave.js +1 -15
- package/dist/icons/audio_video/stop.js +1 -15
- package/dist/icons/audio_video/stop_circle.js +1 -15
- package/dist/icons/audio_video/subscriptions.js +1 -15
- package/dist/icons/audio_video/tuner.js +1 -15
- package/dist/icons/audio_video/volume.js +1 -15
- package/dist/icons/audio_video/volume_high.js +1 -15
- package/dist/icons/audio_video/volume_low.js +1 -15
- package/dist/icons/audio_video/volume_slash.js +1 -15
- package/dist/icons/basic/aa_sansserif.js +1 -16
- package/dist/icons/basic/aa_serif.js +1 -16
- package/dist/icons/basic/anchor.js +1 -17
- package/dist/icons/basic/bible.js +1 -15
- package/dist/icons/basic/bold.js +1 -15
- package/dist/icons/basic/book.js +1 -15
- package/dist/icons/basic/book_open.js +1 -15
- package/dist/icons/basic/bookmark.js +1 -15
- package/dist/icons/basic/bookmark_add.js +1 -15
- package/dist/icons/basic/bookmark_slash.js +1 -15
- package/dist/icons/basic/bookmarks.js +1 -15
- package/dist/icons/basic/books.js +1 -18
- package/dist/icons/basic/box.js +1 -15
- package/dist/icons/basic/briefcase.js +1 -15
- package/dist/icons/basic/browse_activity.js +1 -15
- package/dist/icons/basic/browser.js +1 -15
- package/dist/icons/basic/browser_slash.js +1 -15
- package/dist/icons/basic/calculator.js +1 -15
- package/dist/icons/basic/camera.js +1 -15
- package/dist/icons/basic/camera_add.js +1 -15
- package/dist/icons/basic/camera_slash.js +1 -15
- package/dist/icons/basic/checkmark.js +1 -15
- package/dist/icons/basic/checkmark_circle.js +1 -17
- package/dist/icons/basic/checkmark_filled.js +1 -15
- package/dist/icons/basic/checkmarks.js +1 -15
- package/dist/icons/basic/circle.js +1 -15
- package/dist/icons/basic/circle_slash.js +1 -17
- package/dist/icons/basic/clear_text_style.js +1 -15
- package/dist/icons/basic/close.js +1 -15
- package/dist/icons/basic/close_circle.js +1 -15
- package/dist/icons/basic/close_filled.js +1 -15
- package/dist/icons/basic/copy.js +1 -15
- package/dist/icons/basic/delete.js +1 -15
- package/dist/icons/basic/detail.js +1 -15
- package/dist/icons/basic/dot.js +1 -15
- package/dist/icons/basic/download.js +1 -15
- package/dist/icons/basic/download_arrow.js +1 -15
- package/dist/icons/basic/droplet.js +1 -17
- package/dist/icons/basic/ellipsis_horizontal.js +1 -15
- package/dist/icons/basic/ellipsis_horizontal_circle.js +1 -15
- package/dist/icons/basic/ellipsis_vertical.js +1 -15
- package/dist/icons/basic/ellipsis_vertical_circle.js +1 -15
- package/dist/icons/basic/eye.js +1 -15
- package/dist/icons/basic/eye_slash.js +1 -15
- package/dist/icons/basic/fingerprint.js +1 -15
- package/dist/icons/basic/flag.js +1 -15
- package/dist/icons/basic/flag_wave.js +1 -15
- package/dist/icons/basic/flag_wave_filled.js +1 -15
- package/dist/icons/basic/flame.js +1 -15
- package/dist/icons/basic/gauge.js +1 -15
- package/dist/icons/basic/glasses.js +1 -15
- package/dist/icons/basic/graduation_cap.js +1 -15
- package/dist/icons/basic/hashmark.js +1 -15
- package/dist/icons/basic/heart.js +1 -15
- package/dist/icons/basic/heart_slash.js +1 -15
- package/dist/icons/basic/highlighter.js +1 -15
- package/dist/icons/basic/home.js +1 -15
- package/dist/icons/basic/image.js +1 -15
- package/dist/icons/basic/inbox.js +1 -15
- package/dist/icons/basic/italic.js +1 -15
- package/dist/icons/basic/layers.js +1 -15
- package/dist/icons/basic/lightening.js +1 -15
- package/dist/icons/basic/lightening_slash.js +1 -15
- package/dist/icons/basic/link.js +1 -15
- package/dist/icons/basic/link_slash.js +1 -15
- package/dist/icons/basic/loudspeaker.js +1 -15
- package/dist/icons/basic/maximize.js +1 -15
- package/dist/icons/basic/menu.js +1 -15
- package/dist/icons/basic/menu_circle.js +1 -15
- package/dist/icons/basic/menu_dots.js +1 -15
- package/dist/icons/basic/microphone_slash.js +1 -15
- package/dist/icons/basic/minimize.js +1 -15
- package/dist/icons/basic/minus.js +1 -15
- package/dist/icons/basic/minus_circle.js +1 -15
- package/dist/icons/basic/move_item.js +1 -15
- package/dist/icons/basic/new.js +1 -15
- package/dist/icons/basic/newspaper.js +1 -15
- package/dist/icons/basic/node.js +1 -15
- package/dist/icons/basic/note_pad.js +1 -16
- package/dist/icons/basic/options.js +1 -15
- package/dist/icons/basic/paint_brush.js +1 -15
- package/dist/icons/basic/paperclip.js +1 -15
- package/dist/icons/basic/paperclip_slash.js +1 -15
- package/dist/icons/basic/pencil.js +1 -15
- package/dist/icons/basic/pencil_pad.js +1 -15
- package/dist/icons/basic/plus.js +1 -15
- package/dist/icons/basic/plus_circle.js +1 -15
- package/dist/icons/basic/presentation.js +1 -15
- package/dist/icons/basic/printer.js +1 -15
- package/dist/icons/basic/profile.js +1 -15
- package/dist/icons/basic/profile_check.js +1 -15
- package/dist/icons/basic/pulse.js +1 -15
- package/dist/icons/basic/qr_code.js +1 -15
- package/dist/icons/basic/resize.js +1 -17
- package/dist/icons/basic/scan.js +1 -15
- package/dist/icons/basic/scissors.js +1 -15
- package/dist/icons/basic/screenshot.js +1 -15
- package/dist/icons/basic/search.js +1 -15
- package/dist/icons/basic/select_item.js +1 -16
- package/dist/icons/basic/settings.js +1 -15
- package/dist/icons/basic/share.js +1 -15
- package/dist/icons/basic/share_external.js +1 -15
- package/dist/icons/basic/square.js +1 -15
- package/dist/icons/basic/star.js +1 -15
- package/dist/icons/basic/star_circle.js +1 -15
- package/dist/icons/basic/star_filled.js +1 -15
- package/dist/icons/basic/star_filled_half.js +1 -15
- package/dist/icons/basic/star_slash.js +1 -15
- package/dist/icons/basic/sticker.js +1 -15
- package/dist/icons/basic/strikethrough.js +1 -15
- package/dist/icons/basic/subtask.js +1 -16
- package/dist/icons/basic/tax.js +1 -18
- package/dist/icons/basic/text_bg_color.js +1 -15
- package/dist/icons/basic/text_color.js +1 -15
- package/dist/icons/basic/textbox.js +1 -15
- package/dist/icons/basic/thumbs_down.js +1 -15
- package/dist/icons/basic/thumbs_up.js +1 -15
- package/dist/icons/basic/thumbs_up_filled.js +1 -15
- package/dist/icons/basic/toggle_left.js +1 -15
- package/dist/icons/basic/toggle_right.js +1 -15
- package/dist/icons/basic/translate.js +1 -15
- package/dist/icons/basic/trash.js +1 -15
- package/dist/icons/basic/trash_slash.js +1 -15
- package/dist/icons/basic/underline.js +1 -15
- package/dist/icons/basic/upload.js +1 -15
- package/dist/icons/basic/video.js +1 -15
- package/dist/icons/basic/video_add.js +1 -16
- package/dist/icons/basic/video_slash.js +1 -15
- package/dist/icons/basic/wrench.js +1 -15
- package/dist/icons/basic/zoom_in.js +1 -15
- package/dist/icons/basic/zoom_out.js +1 -15
- package/dist/icons/data/bar_chart.js +1 -15
- package/dist/icons/data/bar_chart_downward.js +1 -15
- package/dist/icons/data/bar_chart_downward_outline.js +1 -15
- package/dist/icons/data/bar_chart_upward.js +1 -15
- package/dist/icons/data/bar_chart_upward_outline.js +1 -15
- package/dist/icons/data/candlestick_chart.js +1 -15
- package/dist/icons/data/four_circles.js +1 -15
- package/dist/icons/data/legend_toggle.js +1 -15
- package/dist/icons/data/line_chart.js +1 -15
- package/dist/icons/data/line_chart_area.js +1 -15
- package/dist/icons/data/line_chart_area_shaded.js +1 -15
- package/dist/icons/data/line_chart_double.js +1 -15
- package/dist/icons/data/line_chart_downward.js +1 -15
- package/dist/icons/data/line_chart_node.js +1 -15
- package/dist/icons/data/line_chart_outline.js +1 -15
- package/dist/icons/data/line_chart_search.js +1 -15
- package/dist/icons/data/line_chart_stars.js +1 -15
- package/dist/icons/data/line_chart_upward.js +1 -15
- package/dist/icons/data/pie_chart.js +1 -16
- package/dist/icons/data/tree.js +1 -15
- package/dist/icons/email/mail.js +1 -15
- package/dist/icons/email/mail_check.js +1 -15
- package/dist/icons/email/mail_minus.js +1 -15
- package/dist/icons/email/mail_send.js +1 -15
- package/dist/icons/email/send.js +1 -15
- package/dist/icons/email/send_close.js +1 -15
- package/dist/icons/email/send_schedule.js +1 -15
- package/dist/icons/email/send_text.js +1 -15
- package/dist/icons/emoji/emoji_add.js +1 -15
- package/dist/icons/emoji/laughing.js +1 -15
- package/dist/icons/emoji/neutral.js +1 -15
- package/dist/icons/emoji/sad.js +1 -15
- package/dist/icons/emoji/shocked.js +1 -15
- package/dist/icons/emoji/smile.js +1 -15
- package/dist/icons/file/clipboard.js +1 -15
- package/dist/icons/file/clipboard_check.js +1 -15
- package/dist/icons/file/clipboard_close.js +1 -15
- package/dist/icons/file/clipboard_minus.js +1 -15
- package/dist/icons/file/clipboard_plus.js +1 -15
- package/dist/icons/file/clipboard_text.js +1 -15
- package/dist/icons/file/file.js +1 -15
- package/dist/icons/file/file_add.js +1 -15
- package/dist/icons/file/file_check.js +1 -15
- package/dist/icons/file/file_close.js +1 -15
- package/dist/icons/file/file_code.js +1 -15
- package/dist/icons/file/file_download.js +1 -15
- package/dist/icons/file/file_draft.js +1 -15
- package/dist/icons/file/file_gear.js +1 -16
- package/dist/icons/file/file_minus.js +1 -15
- package/dist/icons/file/file_plus.js +1 -15
- package/dist/icons/file/file_scan.js +1 -15
- package/dist/icons/file/file_shred.js +1 -15
- package/dist/icons/file/file_text.js +1 -15
- package/dist/icons/file/file_upload.js +1 -15
- package/dist/icons/file/folder.js +1 -15
- package/dist/icons/file/folder_add.js +1 -15
- package/dist/icons/file/folder_arrow.js +1 -15
- package/dist/icons/file/folder_check.js +1 -15
- package/dist/icons/file/folder_close.js +1 -15
- package/dist/icons/file/folder_cloud.js +1 -15
- package/dist/icons/file/folder_gear.js +1 -16
- package/dist/icons/file/folder_minus.js +1 -15
- package/dist/icons/file/folder_music.js +1 -15
- package/dist/icons/file/folder_open.js +1 -15
- package/dist/icons/file/folder_plus.js +1 -15
- package/dist/icons/file/folder_zip.js +1 -15
- package/dist/icons/file/note.js +1 -15
- package/dist/icons/file/note_text.js +1 -15
- package/dist/icons/file/pdf.js +1 -15
- package/dist/icons/file/photo.js +1 -15
- package/dist/icons/finance/bitcoin.js +1 -15
- package/dist/icons/finance/coins.js +1 -19
- package/dist/icons/finance/credit_card.js +1 -15
- package/dist/icons/finance/credit_card_add.js +1 -15
- package/dist/icons/finance/credit_card_face.js +1 -15
- package/dist/icons/finance/credit_card_member.js +1 -15
- package/dist/icons/finance/credit_card_outcome.js +1 -15
- package/dist/icons/finance/credit_card_scan.js +1 -15
- package/dist/icons/finance/credit_card_share.js +1 -15
- package/dist/icons/finance/credit_card_slash.js +1 -15
- package/dist/icons/finance/currency_exchange.js +1 -15
- package/dist/icons/finance/dollar.js +1 -15
- package/dist/icons/finance/ethereum.js +1 -15
- package/dist/icons/finance/paypass.js +1 -15
- package/dist/icons/finance/strongbox.js +1 -15
- package/dist/icons/finance/wallet.js +1 -15
- package/dist/icons/index.js +1 -1095
- package/dist/icons/layout/block_align_bottom.js +1 -15
- package/dist/icons/layout/block_align_center.js +1 -15
- package/dist/icons/layout/block_align_left.js +1 -15
- package/dist/icons/layout/block_align_middle.js +1 -15
- package/dist/icons/layout/block_align_right.js +1 -15
- package/dist/icons/layout/block_align_top.js +1 -15
- package/dist/icons/layout/block_horizontal.js +1 -15
- package/dist/icons/layout/block_vertical.js +1 -15
- package/dist/icons/layout/edit_shape.js +1 -15
- package/dist/icons/layout/elements.js +1 -15
- package/dist/icons/layout/elements_add.js +1 -15
- package/dist/icons/layout/elements_filled.js +1 -15
- package/dist/icons/layout/elements_masonry.js +1 -15
- package/dist/icons/layout/frame.js +1 -15
- package/dist/icons/layout/frame_stack.js +1 -15
- package/dist/icons/layout/grid.js +1 -15
- package/dist/icons/layout/grid_column_three.js +1 -15
- package/dist/icons/layout/grid_column_two.js +1 -15
- package/dist/icons/layout/grid_dynamic.js +1 -15
- package/dist/icons/layout/grid_frame.js +1 -15
- package/dist/icons/layout/grid_row_three.js +1 -15
- package/dist/icons/layout/grid_row_two.js +1 -15
- package/dist/icons/layout/grid_six.js +1 -15
- package/dist/icons/layout/grid_small.js +1 -15
- package/dist/icons/layout/iframe.js +1 -15
- package/dist/icons/layout/kanban.js +1 -15
- package/dist/icons/layout/layout.js +1 -15
- package/dist/icons/layout/list.js +1 -15
- package/dist/icons/layout/list_filled.js +1 -20
- package/dist/icons/layout/padding.js +1 -15
- package/dist/icons/layout/page_break.js +1 -15
- package/dist/icons/layout/rotate_left.js +1 -15
- package/dist/icons/layout/rotate_right.js +1 -15
- package/dist/icons/layout/ruler.js +1 -15
- package/dist/icons/layout/segment.js +1 -15
- package/dist/icons/layout/select_area.js +1 -15
- package/dist/icons/layout/select_boundary.js +1 -15
- package/dist/icons/layout/sidebar_left.js +1 -15
- package/dist/icons/layout/sidebar_right.js +1 -15
- package/dist/icons/layout/slides.js +1 -15
- package/dist/icons/layout/slides_horizontal.js +1 -15
- package/dist/icons/layout/slides_vertical.js +1 -20
- package/dist/icons/layout/stack.js +1 -15
- package/dist/icons/layout/text.js +1 -15
- package/dist/icons/maps/atlas.js +1 -15
- package/dist/icons/maps/compass.js +1 -15
- package/dist/icons/maps/direction.js +1 -15
- package/dist/icons/maps/direction_angled.js +1 -15
- package/dist/icons/maps/globe.js +1 -15
- package/dist/icons/maps/globe_slash.js +1 -15
- package/dist/icons/maps/location.js +1 -15
- package/dist/icons/maps/location_slash.js +1 -15
- package/dist/icons/maps/map.js +1 -15
- package/dist/icons/maps/marker.js +1 -15
- package/dist/icons/maps/panorama.js +1 -15
- package/dist/icons/maps/pin.js +1 -15
- package/dist/icons/maps/pin_arrow.js +1 -15
- package/dist/icons/maps/pin_location.js +1 -15
- package/dist/icons/maps/pin_plus.js +1 -15
- package/dist/icons/maps/pin_question.js +1 -15
- package/dist/icons/maps/pin_slash.js +1 -15
- package/dist/icons/maps/push_pin.js +1 -15
- package/dist/icons/maps/push_pin_filled.js +1 -15
- package/dist/icons/maps/push_pin_slash.js +1 -15
- package/dist/icons/maps/radar.js +1 -15
- package/dist/icons/maps/route.js +1 -15
- package/dist/icons/message/bubble.js +1 -15
- package/dist/icons/message/bubble_question.js +1 -15
- package/dist/icons/message/comment.js +1 -15
- package/dist/icons/message/comment_add.js +1 -15
- package/dist/icons/message/comment_check.js +1 -15
- package/dist/icons/message/comment_close.js +1 -15
- package/dist/icons/message/comment_minus.js +1 -15
- package/dist/icons/message/comment_text.js +1 -15
- package/dist/icons/misc/advertisement.js +1 -15
- package/dist/icons/misc/atom.js +1 -15
- package/dist/icons/misc/bone.js +1 -15
- package/dist/icons/misc/brightness_high.js +1 -15
- package/dist/icons/misc/brightness_low.js +1 -15
- package/dist/icons/misc/contrast.js +1 -15
- package/dist/icons/misc/crosshairs.js +1 -15
- package/dist/icons/misc/crown.js +1 -15
- package/dist/icons/misc/footprint.js +1 -15
- package/dist/icons/misc/form.js +1 -15
- package/dist/icons/misc/funnel.js +1 -15
- package/dist/icons/misc/infinite.js +1 -15
- package/dist/icons/misc/insert_button.js +1 -15
- package/dist/icons/misc/light_bulb.js +1 -15
- package/dist/icons/misc/moon.js +1 -15
- package/dist/icons/misc/nut.js +1 -15
- package/dist/icons/misc/planet.js +1 -15
- package/dist/icons/misc/plus_thick.js +1 -15
- package/dist/icons/misc/pocket.js +1 -15
- package/dist/icons/misc/rocket.js +1 -15
- package/dist/icons/misc/soup.js +1 -19
- package/dist/icons/misc/sun.js +1 -15
- package/dist/icons/misc/toy_horse.js +1 -15
- package/dist/icons/misc/trophy.js +1 -15
- package/dist/icons/misc/watercloset.js +1 -15
- package/dist/icons/notifications/alert_circle.js +1 -15
- package/dist/icons/notifications/alert_octogon.js +1 -15
- package/dist/icons/notifications/alert_triangle.js +1 -15
- package/dist/icons/notifications/app_notification.js +1 -15
- package/dist/icons/notifications/bell.js +1 -15
- package/dist/icons/notifications/bell_alert.js +1 -15
- package/dist/icons/notifications/bell_checkmark.js +1 -15
- package/dist/icons/notifications/bell_minus.js +1 -15
- package/dist/icons/notifications/bell_plus.js +1 -15
- package/dist/icons/notifications/bell_ring.js +1 -17
- package/dist/icons/notifications/bell_slash.js +1 -15
- package/dist/icons/notifications/information.js +1 -15
- package/dist/icons/notifications/minus_octogon.js +1 -15
- package/dist/icons/notifications/question_circle.js +1 -15
- package/dist/icons/people/group.js +1 -15
- package/dist/icons/people/group_add.js +1 -15
- package/dist/icons/people/group_chat.js +1 -17
- package/dist/icons/people/group_remove.js +1 -15
- package/dist/icons/people/group_send.js +1 -16
- package/dist/icons/people/groups.js +1 -15
- package/dist/icons/people/person.js +1 -15
- package/dist/icons/people/person_add.js +1 -15
- package/dist/icons/people/person_checkmark.js +1 -15
- package/dist/icons/people/person_circle.js +1 -17
- package/dist/icons/people/person_close.js +1 -17
- package/dist/icons/people/person_remove.js +1 -15
- package/dist/icons/people/person_slash.js +1 -17
- package/dist/icons/phone/keypad.js +1 -15
- package/dist/icons/phone/phone.js +1 -15
- package/dist/icons/phone/phone_add.js +1 -15
- package/dist/icons/phone/phone_calling.js +1 -15
- package/dist/icons/phone/phone_check.js +1 -15
- package/dist/icons/phone/phone_close.js +1 -15
- package/dist/icons/phone/phone_decline.js +1 -15
- package/dist/icons/phone/phone_forwarded.js +1 -15
- package/dist/icons/phone/phone_hash.js +1 -15
- package/dist/icons/phone/phone_incoming.js +1 -15
- package/dist/icons/phone/phone_outgoing.js +1 -15
- package/dist/icons/phone/phone_pause.js +1 -15
- package/dist/icons/phone/phone_slash.js +1 -15
- package/dist/icons/phone/voicemail.js +1 -15
- package/dist/icons/security/key.js +1 -15
- package/dist/icons/security/key_slash.js +1 -15
- package/dist/icons/security/lock.js +1 -15
- package/dist/icons/security/lock_circle.js +1 -15
- package/dist/icons/security/lock_open.js +1 -15
- package/dist/icons/security/lock_slash.js +1 -15
- package/dist/icons/security/shield.js +1 -15
- package/dist/icons/security/shield_checkmark.js +1 -15
- package/dist/icons/security/shield_lock.js +1 -15
- package/dist/icons/security/shield_slash.js +1 -15
- package/dist/icons/security/verified.js +1 -15
- package/dist/icons/shopping/basket.js +1 -15
- package/dist/icons/shopping/cart.js +1 -15
- package/dist/icons/shopping/cart_filled.js +1 -15
- package/dist/icons/shopping/coupon.js +1 -15
- package/dist/icons/shopping/coupon_cut.js +1 -15
- package/dist/icons/shopping/delivery.js +1 -15
- package/dist/icons/shopping/discount.js +1 -15
- package/dist/icons/shopping/gift.js +1 -15
- package/dist/icons/shopping/gift_bag.js +1 -15
- package/dist/icons/shopping/inventory.js +1 -15
- package/dist/icons/shopping/point_of_sale.js +1 -15
- package/dist/icons/shopping/shirt.js +1 -15
- package/dist/icons/shopping/tag.js +1 -15
- package/dist/icons/shopping/tag_diagonal.js +1 -15
- package/dist/icons/shopping/tote.js +1 -15
- package/dist/icons/special/upload_audio.js +1 -20
- package/dist/icons/special/upload_file.js +1 -15
- package/dist/icons/special/upload_image.js +1 -17
- package/dist/icons/special/upload_video.js +1 -18
- package/dist/icons/symbols/at.js +1 -15
- package/dist/icons/symbols/cc.js +1 -15
- package/dist/icons/symbols/cmd.js +1 -15
- package/dist/icons/symbols/facebook.js +1 -15
- package/dist/icons/symbols/google.js +1 -18
- package/dist/icons/symbols/hash.js +1 -15
- package/dist/icons/symbols/instagram.js +1 -27
- package/dist/icons/symbols/messenger.js +1 -21
- package/dist/icons/symbols/twitter.js +1 -15
- package/dist/icons/technology/battery.js +1 -15
- package/dist/icons/technology/battery_100.js +1 -15
- package/dist/icons/technology/battery_20.js +1 -15
- package/dist/icons/technology/battery_40.js +1 -15
- package/dist/icons/technology/battery_60.js +1 -15
- package/dist/icons/technology/battery_80.js +1 -15
- package/dist/icons/technology/battery_charging.js +1 -15
- package/dist/icons/technology/battery_slash.js +1 -15
- package/dist/icons/technology/devices.js +1 -15
- package/dist/icons/technology/floppy_disk.js +1 -15
- package/dist/icons/technology/iphone.js +1 -15
- package/dist/icons/technology/laptop.js +1 -15
- package/dist/icons/technology/mobile.js +1 -15
- package/dist/icons/technology/monitor.js +1 -15
- package/dist/icons/technology/server.js +1 -15
- package/dist/icons/technology/sim_card.js +1 -15
- package/dist/icons/technology/usb_stick.js +1 -15
- package/dist/icons/text/align_center.js +1 -15
- package/dist/icons/text/align_justified.js +1 -15
- package/dist/icons/text/align_left.js +1 -15
- package/dist/icons/text/align_right.js +1 -15
- package/dist/icons/text/code_block.js +1 -15
- package/dist/icons/text/divider.js +1 -15
- package/dist/icons/text/footnote.js +1 -17
- package/dist/icons/text/indent_decrease.js +1 -15
- package/dist/icons/text/indent_increase.js +1 -15
- package/dist/icons/text/list_ordered.js +1 -15
- package/dist/icons/text/list_unordered.js +1 -15
- package/dist/icons/text/quote.js +1 -15
- package/dist/icons/text/table.js +1 -15
- package/dist/icons/time/alarm.js +1 -15
- package/dist/icons/time/alarm_checkmark.js +1 -15
- package/dist/icons/time/alarm_minus.js +1 -15
- package/dist/icons/time/alarm_plus.js +1 -15
- package/dist/icons/time/alarm_slash.js +1 -15
- package/dist/icons/time/alarm_snooze.js +1 -15
- package/dist/icons/time/calendar.js +1 -15
- package/dist/icons/time/calendar_add.js +1 -15
- package/dist/icons/time/calendar_checkmark.js +1 -15
- package/dist/icons/time/calendar_close.js +1 -15
- package/dist/icons/time/calendar_dates.js +1 -15
- package/dist/icons/time/calendar_minus.js +1 -15
- package/dist/icons/time/calendar_plus.js +1 -15
- package/dist/icons/time/calendar_scroll.js +1 -17
- package/dist/icons/time/clock.js +1 -15
- package/dist/icons/time/clock_history.js +1 -15
- package/dist/icons/time/stopwatch.js +1 -15
- package/dist/icons/time/timer.js +1 -15
- package/dist/icons/time/watch.js +1 -15
- package/dist/index.js +1 -117
- package/dist/styles/output.css +1776 -0
- package/dist/utils/date.js +1 -73
- package/dist/utils/function.js +1 -5
- package/package.json +4 -3
|
@@ -1,93 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var plate = require('@udecode/plate');
|
|
4
|
-
var text = require('../plugins/blocks/text.js');
|
|
5
|
-
var link = require('../plugins/leafs/link.js');
|
|
6
|
-
var plate$1 = require('../plugins/plate.js');
|
|
7
|
-
var exitBreak = require('../plugins/utils/exitBreak.js');
|
|
8
|
-
var resetBlockType = require('../plugins/utils/resetBlockType.js');
|
|
9
|
-
var selectOnBackspace = require('../plugins/utils/selectOnBackspace.js');
|
|
10
|
-
var softBreak = require('../plugins/utils/softBreak.js');
|
|
11
|
-
|
|
12
|
-
const plugins = plate.createPlugins([
|
|
13
|
-
plate.createHeadingPlugin(),
|
|
14
|
-
plate.createImagePlugin({
|
|
15
|
-
options: {
|
|
16
|
-
disableUploadInsert: true,
|
|
17
|
-
disableEmbedInsert: true,
|
|
18
|
-
},
|
|
19
|
-
}),
|
|
20
|
-
plate.createTextIndentPlugin(),
|
|
21
|
-
plate.createIndentListPlugin({
|
|
22
|
-
inject: {
|
|
23
|
-
props: {
|
|
24
|
-
validTypes: [
|
|
25
|
-
plate.ELEMENT_PARAGRAPH,
|
|
26
|
-
plate.ELEMENT_H1,
|
|
27
|
-
plate.ELEMENT_H2,
|
|
28
|
-
plate.ELEMENT_H3,
|
|
29
|
-
plate.ELEMENT_H4,
|
|
30
|
-
plate.ELEMENT_H5,
|
|
31
|
-
plate.ELEMENT_H6,
|
|
32
|
-
plate.ELEMENT_OL,
|
|
33
|
-
plate.ELEMENT_UL,
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
}),
|
|
38
|
-
plate.createListPlugin(),
|
|
39
|
-
plate.createMediaEmbedPlugin(),
|
|
40
|
-
plate.createParagraphPlugin(),
|
|
41
|
-
text.createHOnePlugin(),
|
|
42
|
-
text.createHTwoPlugin(),
|
|
43
|
-
text.createHThreePlugin(),
|
|
44
|
-
text.createHFourPlugin(),
|
|
45
|
-
text.createHFivePlugin(),
|
|
46
|
-
text.createHSixPlugin(),
|
|
47
|
-
plate.createResetNodePlugin(),
|
|
48
|
-
plate.createBoldPlugin(),
|
|
49
|
-
plate.createCodePlugin(),
|
|
50
|
-
plate.createFontBackgroundColorPlugin(),
|
|
51
|
-
plate.createFontSizePlugin(),
|
|
52
|
-
plate.createFontFamilyPlugin(),
|
|
53
|
-
plate.createItalicPlugin(),
|
|
54
|
-
plate.createStrikethroughPlugin(),
|
|
55
|
-
plate.createSubscriptPlugin(),
|
|
56
|
-
plate.createSuperscriptPlugin(),
|
|
57
|
-
plate.createUnderlinePlugin(),
|
|
58
|
-
plate.createAlignPlugin({
|
|
59
|
-
inject: {
|
|
60
|
-
props: {
|
|
61
|
-
validTypes: [
|
|
62
|
-
plate.ELEMENT_PARAGRAPH,
|
|
63
|
-
plate.ELEMENT_H1,
|
|
64
|
-
plate.ELEMENT_H2,
|
|
65
|
-
plate.ELEMENT_H3,
|
|
66
|
-
plate.ELEMENT_H4,
|
|
67
|
-
plate.ELEMENT_H5,
|
|
68
|
-
plate.ELEMENT_H6,
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
}),
|
|
73
|
-
plate.createIndentPlugin({
|
|
74
|
-
inject: {
|
|
75
|
-
props: {
|
|
76
|
-
validTypes: [plate.ELEMENT_PARAGRAPH, plate.ELEMENT_H1],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
}),
|
|
80
|
-
plate.createLineHeightPlugin(),
|
|
81
|
-
plate.createLinkPlugin({
|
|
82
|
-
renderAfterEditable: link.LinkFloatingMenu,
|
|
83
|
-
}),
|
|
84
|
-
plate.createExitBreakPlugin(exitBreak.exitBreakPlugin),
|
|
85
|
-
plate.createHistoryPlugin(),
|
|
86
|
-
plate.createResetNodePlugin(resetBlockType.resetBlockTypePlugin),
|
|
87
|
-
plate.createSelectOnBackspacePlugin(selectOnBackspace.selectOnBackspace),
|
|
88
|
-
plate.createSoftBreakPlugin(softBreak.softBreakPlugin),
|
|
89
|
-
], {
|
|
90
|
-
components: plate$1.plateUI,
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
exports.plugins = plugins;
|
|
1
|
+
"use strict";var plate=require("@udecode/plate"),text=require("../plugins/blocks/text.js"),link=require("../plugins/leafs/link.js"),plate$1=require("../plugins/plate.js"),exitBreak=require("../plugins/utils/exitBreak.js"),resetBlockType=require("../plugins/utils/resetBlockType.js"),selectOnBackspace=require("../plugins/utils/selectOnBackspace.js"),softBreak=require("../plugins/utils/softBreak.js");const plugins=plate.createPlugins([plate.createHeadingPlugin(),plate.createImagePlugin({options:{disableUploadInsert:!0,disableEmbedInsert:!0}}),plate.createTextIndentPlugin(),plate.createIndentListPlugin({inject:{props:{validTypes:[plate.ELEMENT_PARAGRAPH,plate.ELEMENT_H1,plate.ELEMENT_H2,plate.ELEMENT_H3,plate.ELEMENT_H4,plate.ELEMENT_H5,plate.ELEMENT_H6,plate.ELEMENT_OL,plate.ELEMENT_UL]}}}),plate.createListPlugin(),plate.createMediaEmbedPlugin(),plate.createParagraphPlugin(),text.createHOnePlugin(),text.createHTwoPlugin(),text.createHThreePlugin(),text.createHFourPlugin(),text.createHFivePlugin(),text.createHSixPlugin(),plate.createResetNodePlugin(),plate.createBoldPlugin(),plate.createCodePlugin(),plate.createFontBackgroundColorPlugin(),plate.createFontSizePlugin(),plate.createFontFamilyPlugin(),plate.createItalicPlugin(),plate.createStrikethroughPlugin(),plate.createSubscriptPlugin(),plate.createSuperscriptPlugin(),plate.createUnderlinePlugin(),plate.createAlignPlugin({inject:{props:{validTypes:[plate.ELEMENT_PARAGRAPH,plate.ELEMENT_H1,plate.ELEMENT_H2,plate.ELEMENT_H3,plate.ELEMENT_H4,plate.ELEMENT_H5,plate.ELEMENT_H6]}}}),plate.createIndentPlugin({inject:{props:{validTypes:[plate.ELEMENT_PARAGRAPH,plate.ELEMENT_H1]}}}),plate.createLineHeightPlugin(),plate.createLinkPlugin({renderAfterEditable:link.LinkFloatingMenu}),plate.createExitBreakPlugin(exitBreak.exitBreakPlugin),plate.createHistoryPlugin(),plate.createResetNodePlugin(resetBlockType.resetBlockTypePlugin),plate.createSelectOnBackspacePlugin(selectOnBackspace.selectOnBackspace),plate.createSoftBreakPlugin(softBreak.softBreakPlugin)],{components:plate$1.plateUI});exports.plugins=plugins;
|
|
@@ -1,33 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var plate = require('@udecode/plate');
|
|
7
|
-
var plugins = require('./plugins.js');
|
|
8
|
-
var navbar = require('./navbar.js');
|
|
9
|
-
|
|
10
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
-
|
|
14
|
-
const SimpleEditor = ({ editable, handleUploadImage, onChange, placeholder = '', previousContent = [
|
|
15
|
-
{
|
|
16
|
-
type: 'p',
|
|
17
|
-
children: [
|
|
18
|
-
{
|
|
19
|
-
text: '',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
], }) => {
|
|
24
|
-
return (React__default.default.createElement(plate.Plate, { id: "main", initialValue: previousContent, onChange: onChange, plugins: plugins.plugins },
|
|
25
|
-
React__default.default.createElement(Wrapper, null,
|
|
26
|
-
editable && React__default.default.createElement(navbar.EditorBar, { handleUploadImage: handleUploadImage }),
|
|
27
|
-
React__default.default.createElement(InnerWrapper, null,
|
|
28
|
-
React__default.default.createElement(plate.PlateContent, { id: "main", autoFocus: true, placeholder: placeholder, readOnly: !editable, spellCheck: true })))));
|
|
29
|
-
};
|
|
30
|
-
const InnerWrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),plate=require("@udecode/plate"),plugins=require("./plugins.js"),navbar=require("./navbar.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const SimpleEditor=({editable:e,handleUploadImage:t,onChange:a,placeholder:l="",previousContent:o=[{type:"p",children:[{text:""}]}]})=>React__default.default.createElement(plate.Plate,{id:"main",initialValue:o,onChange:a,plugins:plugins.plugins},React__default.default.createElement(Wrapper,null,e&&React__default.default.createElement(navbar.EditorBar,{handleUploadImage:t}),React__default.default.createElement(InnerWrapper,null,React__default.default.createElement(plate.PlateContent,{id:"main",autoFocus:!0,placeholder:l,readOnly:!e,spellCheck:!0})))),InnerWrapper=styled.styled.div`
|
|
31
3
|
& > div {
|
|
32
4
|
padding: 24px;
|
|
33
5
|
min-height: 224px;
|
|
@@ -37,8 +9,7 @@ const InnerWrapper = styled.styled.div `
|
|
|
37
9
|
margin: 24px 0px;
|
|
38
10
|
}
|
|
39
11
|
}
|
|
40
|
-
|
|
41
|
-
const Wrapper = styled.styled.div `
|
|
12
|
+
`,Wrapper=styled.styled.div`
|
|
42
13
|
position: relative;
|
|
43
14
|
max-width: 1200px;
|
|
44
15
|
width: 100%;
|
|
@@ -93,6 +64,4 @@ const Wrapper = styled.styled.div `
|
|
|
93
64
|
& > [data-slate-editor='true'] > * {
|
|
94
65
|
margin: 24px 0px;
|
|
95
66
|
}
|
|
96
|
-
`;
|
|
97
|
-
|
|
98
|
-
exports.SimpleEditor = SimpleEditor;
|
|
67
|
+
`;exports.SimpleEditor=SimpleEditor;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var styled = require('styled-components');
|
|
5
|
-
|
|
6
|
-
const MenuButton = styled.styled.button `
|
|
2
|
+
"use strict";var styled=require("styled-components");const MenuButton=styled.styled.button`
|
|
7
3
|
padding: 2px;
|
|
8
4
|
border: none;
|
|
9
5
|
outline: none;
|
|
@@ -30,7 +26,5 @@ const MenuButton = styled.styled.button `
|
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
background-color: ${({
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
exports.MenuButton = MenuButton;
|
|
29
|
+
background-color: ${({$active:o})=>o?"var(--color-grey-9)":"transparent"};
|
|
30
|
+
`;exports.MenuButton=MenuButton;
|
|
@@ -1,37 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var toast = require('../toast/toast.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
|
|
12
|
-
const AnimatedToast = ({ message, type, onClose, animationDuration = 4, }) => {
|
|
13
|
-
const [toastIsClosed, setToastIsClosed] = React__default.default.useState(false);
|
|
14
|
-
const timer = React__default.default.useRef(null);
|
|
15
|
-
React__default.default.useEffect(() => {
|
|
16
|
-
timer.current = setTimeout(() => {
|
|
17
|
-
setToastIsClosed(true);
|
|
18
|
-
!!onClose && onClose();
|
|
19
|
-
}, animationDuration * 1000);
|
|
20
|
-
return () => {
|
|
21
|
-
clearTimeout(timer.current);
|
|
22
|
-
};
|
|
23
|
-
}, [animationDuration, onClose]);
|
|
24
|
-
return (React__default.default.createElement(Container, null,
|
|
25
|
-
React__default.default.createElement(ToastAnimation, { className: `${toastIsClosed ? 'toast-closed' : ''}` },
|
|
26
|
-
React__default.default.createElement(toast.Toast, { content: message, type: type, isAnimated: true, animationDuration: animationDuration }))));
|
|
27
|
-
};
|
|
28
|
-
const Container = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),toast=require("../toast/toast.js");function _interopDefaultCompat(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var React__default=_interopDefaultCompat(React);const AnimatedToast=({message:t,type:e,onClose:a,animationDuration:o=4})=>{const[s,n]=React__default.default.useState(!1),i=React__default.default.useRef(null);return React__default.default.useEffect(()=>(i.current=setTimeout(()=>{n(!0),a&&a()},1e3*o),()=>{clearTimeout(i.current)}),[o,a]),React__default.default.createElement(Container,null,React__default.default.createElement(ToastAnimation,{className:s?"toast-closed":""},React__default.default.createElement(toast.Toast,{content:t,type:e,isAnimated:!0,animationDuration:o})))},Container=styled.styled.div`
|
|
29
3
|
position: fixed;
|
|
30
4
|
z-index: 9999;
|
|
31
5
|
bottom: 16px;
|
|
32
6
|
right: 16px;
|
|
33
|
-
|
|
34
|
-
const ToastAnimation = styled.styled.div `
|
|
7
|
+
`,ToastAnimation=styled.styled.div`
|
|
35
8
|
animation: slide-in 0.4s ease-in-out forwards;
|
|
36
9
|
|
|
37
10
|
&.toast-closed {
|
|
@@ -59,6 +32,4 @@ const ToastAnimation = styled.styled.div `
|
|
|
59
32
|
transform: translateX(0%);
|
|
60
33
|
}
|
|
61
34
|
}
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
exports.AnimatedToast = AnimatedToast;
|
|
35
|
+
`;exports.AnimatedToast=AnimatedToast;
|
|
@@ -1,59 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var close = require('../../../icons/basic/close.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
|
|
12
|
-
const colorLookup = {
|
|
13
|
-
blue: {
|
|
14
|
-
primary: 'var(--color-hue-blue-1)',
|
|
15
|
-
secondary: 'var(--color-hue-blue-2)',
|
|
16
|
-
bg: 'var(--color-hue-blue-3)',
|
|
17
|
-
},
|
|
18
|
-
green: {
|
|
19
|
-
primary: 'var(--color-green-3)',
|
|
20
|
-
secondary: 'var(--color-green-8)',
|
|
21
|
-
bg: 'var(--color-green-10)',
|
|
22
|
-
},
|
|
23
|
-
orange: {
|
|
24
|
-
primary: 'var(--color-hue-orange-1)',
|
|
25
|
-
secondary: 'var(--color-hue-orange-2)',
|
|
26
|
-
bg: 'var(--color-hue-orange-3)',
|
|
27
|
-
},
|
|
28
|
-
purple: {
|
|
29
|
-
primary: 'var(--color-hue-purple-1)',
|
|
30
|
-
secondary: 'var(--color-hue-purple-2)',
|
|
31
|
-
bg: 'var(--color-hue-purple-3)',
|
|
32
|
-
},
|
|
33
|
-
red: {
|
|
34
|
-
primary: 'var(--color-red-4)',
|
|
35
|
-
secondary: 'var(--color-red-9)',
|
|
36
|
-
bg: 'var(--color-red-10)',
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const Badge = ({ children, color, dot, onDismiss }) => {
|
|
40
|
-
const bgColor = colorLookup[color].bg;
|
|
41
|
-
const textColor = colorLookup[color].primary;
|
|
42
|
-
const borderColor = colorLookup[color].secondary;
|
|
43
|
-
return (React__default.default.createElement(Component, { "$bgColor": bgColor, "$borderColor": borderColor, "$textColor": textColor },
|
|
44
|
-
dot && React__default.default.createElement(Dot, { "$secondaryColor": textColor }),
|
|
45
|
-
children,
|
|
46
|
-
onDismiss && React__default.default.createElement(close.Close, { size: 16 })));
|
|
47
|
-
};
|
|
48
|
-
const Component = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),close=require("../../../icons/basic/close.js");function _interopDefaultCompat(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var React__default=_interopDefaultCompat(React);const colorLookup={blue:{primary:"var(--color-hue-blue-1)",secondary:"var(--color-hue-blue-2)",bg:"var(--color-hue-blue-3)"},green:{primary:"var(--color-green-3)",secondary:"var(--color-green-8)",bg:"var(--color-green-10)"},orange:{primary:"var(--color-hue-orange-1)",secondary:"var(--color-hue-orange-2)",bg:"var(--color-hue-orange-3)"},purple:{primary:"var(--color-hue-purple-1)",secondary:"var(--color-hue-purple-2)",bg:"var(--color-hue-purple-3)"},red:{primary:"var(--color-red-4)",secondary:"var(--color-red-9)",bg:"var(--color-red-10)"}},Badge=({children:r,color:e,dot:o,onDismiss:l})=>{var a=colorLookup[e].bg,t=colorLookup[e].primary,e=colorLookup[e].secondary;return React__default.default.createElement(Component,{$bgColor:a,$borderColor:e,$textColor:t},o&&React__default.default.createElement(Dot,{$secondaryColor:t}),r,l&&React__default.default.createElement(close.Close,{size:16}))},Component=styled.styled.div`
|
|
49
3
|
display: flex;
|
|
50
4
|
align-items: center;
|
|
51
5
|
gap: 8px;
|
|
52
6
|
padding: 1px 7px;
|
|
53
7
|
border-radius: 32px;
|
|
54
|
-
background-color: ${({
|
|
55
|
-
color: ${({
|
|
56
|
-
border: 1px solid ${({
|
|
8
|
+
background-color: ${({$bgColor:r})=>r};
|
|
9
|
+
color: ${({$textColor:r})=>r};
|
|
10
|
+
border: 1px solid ${({$borderColor:r})=>r};
|
|
57
11
|
font-family: var(--font-inter);
|
|
58
12
|
font-size: 12px;
|
|
59
13
|
font-weight: 500;
|
|
@@ -64,12 +18,9 @@ const Component = styled.styled.div `
|
|
|
64
18
|
fill: currentColor;
|
|
65
19
|
cursor: pointer;
|
|
66
20
|
}
|
|
67
|
-
|
|
68
|
-
const Dot = styled.styled.div `
|
|
21
|
+
`,Dot=styled.styled.div`
|
|
69
22
|
width: 8px;
|
|
70
23
|
height: 8px;
|
|
71
24
|
border-radius: 50%;
|
|
72
|
-
background-color: ${({
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
exports.Badge = Badge;
|
|
25
|
+
background-color: ${({$secondaryColor:r})=>r};
|
|
26
|
+
`;exports.Badge=Badge;
|
|
@@ -1,69 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var styles = require('../../../common/styles.js');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var button = require('../../actions/button/button.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
var alert_circle = require('../../../icons/notifications/alert_circle.js');
|
|
11
|
-
var alert_octogon = require('../../../icons/notifications/alert_octogon.js');
|
|
12
|
-
var alert_triangle = require('../../../icons/notifications/alert_triangle.js');
|
|
13
|
-
var close = require('../../../icons/basic/close.js');
|
|
14
|
-
var information = require('../../../icons/notifications/information.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 Banner = ({ content, href, onClose, title, type, setContentInNewLine = false, additionalContent, sx, }) => {
|
|
21
|
-
const iconLookup = {
|
|
22
|
-
error: React__default.default.createElement(alert_octogon.AlertOctogon, { size: 24 }),
|
|
23
|
-
info: React__default.default.createElement(information.Information, { size: 24 }),
|
|
24
|
-
success: React__default.default.createElement(alert_circle.AlertCircle, { size: 24 }),
|
|
25
|
-
warning: React__default.default.createElement(alert_triangle.AlertTriangle, { size: 24 }),
|
|
26
|
-
};
|
|
27
|
-
return (React__default.default.createElement(Wrapper, { as: "output", "$dir": "row", "$gap": 8, "$type": type, "$sx": sx },
|
|
28
|
-
iconLookup[type],
|
|
29
|
-
React__default.default.createElement(box.Box, { "$dir": setContentInNewLine ? 'column' : 'row', "$gap": 4 },
|
|
30
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$semiBold": true }, title),
|
|
31
|
-
React__default.default.createElement(paragraph.P, { as: "span", sx: setContentInNewLine ? 'margin-top: 12px;' : '' }, content),
|
|
32
|
-
additionalContent && React__default.default.createElement(paragraph.P, { as: "span" }, additionalContent),
|
|
33
|
-
href && (React__default.default.createElement(paragraph.P, { as: "a", href: href, "$color": "primary-blue-2" }, "Read more"))),
|
|
34
|
-
onClose && (React__default.default.createElement(button.Button, { icon: React__default.default.createElement(close.Close, { size: 24 }), onClick: onClose, type: "special" }))));
|
|
35
|
-
};
|
|
36
|
-
const Wrapper = styled.styled.output `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),styles=require("../../../common/styles.js"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),paragraph=require("../../atoms/typography/paragraph.js"),alert_circle=require("../../../icons/notifications/alert_circle.js"),alert_octogon=require("../../../icons/notifications/alert_octogon.js"),alert_triangle=require("../../../icons/notifications/alert_triangle.js"),close=require("../../../icons/basic/close.js"),information=require("../../../icons/notifications/information.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Banner=({content:e,href:t,onClose:r,title:a,type:o,setContentInNewLine:l=!1,additionalContent:n,sx:i})=>{var c={error:React__default.default.createElement(alert_octogon.AlertOctogon,{size:24}),info:React__default.default.createElement(information.Information,{size:24}),success:React__default.default.createElement(alert_circle.AlertCircle,{size:24}),warning:React__default.default.createElement(alert_triangle.AlertTriangle,{size:24})};return React__default.default.createElement(Wrapper,{as:"output",$dir:"row",$gap:8,$type:o,$sx:i},c[o],React__default.default.createElement(box.Box,{$dir:l?"column":"row",$gap:4},React__default.default.createElement(paragraph.P,{as:"span",$semiBold:!0},a),React__default.default.createElement(paragraph.P,{as:"span",sx:l?"margin-top: 12px;":""},e),n&&React__default.default.createElement(paragraph.P,{as:"span"},n),t&&React__default.default.createElement(paragraph.P,{as:"a",href:t,$color:"primary-blue-2"},"Read more")),r&&React__default.default.createElement(button.Button,{icon:React__default.default.createElement(close.Close,{size:24}),onClick:r,type:"special"}))},Wrapper=styled.styled.output`
|
|
37
3
|
width: 100%;
|
|
38
4
|
box-sizing: border-box;
|
|
39
5
|
padding: 12px 16px;
|
|
40
6
|
display: flex;
|
|
41
|
-
background-color: ${({
|
|
42
|
-
? 'var(--color-red-9)'
|
|
43
|
-
: $type === 'info'
|
|
44
|
-
? 'var(--color-blue-9)'
|
|
45
|
-
: $type === 'success'
|
|
46
|
-
? 'var(--color-green-9)'
|
|
47
|
-
: 'var(--color-orange-9)'};
|
|
7
|
+
background-color: ${({$type:e})=>"error"===e?"var(--color-red-9)":"info"===e?"var(--color-blue-9)":"success"===e?"var(--color-green-9)":"var(--color-orange-9)"};
|
|
48
8
|
border-bottom: 1px solid
|
|
49
|
-
${({
|
|
50
|
-
? 'var(--color-red-4)'
|
|
51
|
-
: $type === 'info'
|
|
52
|
-
? 'var(--color-blue-4)'
|
|
53
|
-
: $type === 'success'
|
|
54
|
-
? 'var(--color-green-3)'
|
|
55
|
-
: 'var(--color-orange-5)'};
|
|
9
|
+
${({$type:e})=>"error"===e?"var(--color-red-4)":"info"===e?"var(--color-blue-4)":"success"===e?"var(--color-green-3)":"var(--color-orange-5)"};
|
|
56
10
|
box-shadow: var(--elevation-2);
|
|
57
11
|
border-radius: var(--small);
|
|
58
12
|
|
|
59
13
|
& > svg {
|
|
60
|
-
fill: ${({
|
|
61
|
-
? 'var(--color-red-4)'
|
|
62
|
-
: $type === 'info'
|
|
63
|
-
? 'var(--color-blue-4)'
|
|
64
|
-
: $type === 'success'
|
|
65
|
-
? 'var(--color-green-3)'
|
|
66
|
-
: 'var(--color-orange-5)'};
|
|
14
|
+
fill: ${({$type:e})=>"error"===e?"var(--color-red-4)":"info"===e?"var(--color-blue-4)":"success"===e?"var(--color-green-3)":"var(--color-orange-5)"};
|
|
67
15
|
}
|
|
68
16
|
|
|
69
17
|
a {
|
|
@@ -89,7 +37,5 @@ const Wrapper = styled.styled.output `
|
|
|
89
37
|
|
|
90
38
|
${styles.Styles.flex}
|
|
91
39
|
|
|
92
|
-
${({
|
|
93
|
-
`;
|
|
94
|
-
|
|
95
|
-
exports.Banner = Banner;
|
|
40
|
+
${({$sx:e})=>e||""}
|
|
41
|
+
`;exports.Banner=Banner;
|
|
@@ -1,77 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var close = require('../../../icons/basic/close.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
|
|
12
|
-
const colorLookup = {
|
|
13
|
-
'primary-blue': {
|
|
14
|
-
primary: 'var(--color-primary-blue-2)',
|
|
15
|
-
secondary: 'var(--color-white)',
|
|
16
|
-
text: 'var(--color-white)',
|
|
17
|
-
},
|
|
18
|
-
blue: {
|
|
19
|
-
primary: 'var(--color-blue-9)',
|
|
20
|
-
secondary: 'var(--color-blue-5)',
|
|
21
|
-
text: 'var(--color-grey-4)',
|
|
22
|
-
},
|
|
23
|
-
green: {
|
|
24
|
-
primary: 'var(--color-green-9)',
|
|
25
|
-
secondary: 'var(--color-green-5)',
|
|
26
|
-
text: 'var(--color-grey-4)',
|
|
27
|
-
},
|
|
28
|
-
grey: {
|
|
29
|
-
primary: 'var(--color-grey-9)',
|
|
30
|
-
secondary: 'var(--color-grey-4)',
|
|
31
|
-
text: 'var(--color-grey-4)',
|
|
32
|
-
},
|
|
33
|
-
orange: {
|
|
34
|
-
primary: 'var(--color-orange-9)',
|
|
35
|
-
secondary: 'var(--color-orange-5)',
|
|
36
|
-
text: 'var(--color-grey-4)',
|
|
37
|
-
},
|
|
38
|
-
purple: {
|
|
39
|
-
primary: 'var(--color-purple-9)',
|
|
40
|
-
secondary: 'var(--color-purple-5)',
|
|
41
|
-
text: 'var(--color-grey-4)',
|
|
42
|
-
},
|
|
43
|
-
red: {
|
|
44
|
-
primary: 'var(--color-red-9)',
|
|
45
|
-
secondary: 'var(--color-red-5)',
|
|
46
|
-
text: 'var(--color-grey-4)',
|
|
47
|
-
},
|
|
48
|
-
turquoise: {
|
|
49
|
-
primary: 'var(--color-turquoise-9)',
|
|
50
|
-
secondary: 'var(--color-turquoise-5)',
|
|
51
|
-
text: 'var(--color-grey-4)',
|
|
52
|
-
},
|
|
53
|
-
yellow: {
|
|
54
|
-
primary: 'var(--color-yellow-9)',
|
|
55
|
-
secondary: 'var(--color-yellow-9)',
|
|
56
|
-
text: 'var(--color-grey-4)',
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
const Chip = ({ children, color, dot, onDismiss, size }) => {
|
|
60
|
-
const bgColor = colorLookup[color].primary;
|
|
61
|
-
const textColor = colorLookup[color].text;
|
|
62
|
-
const dotColor = colorLookup[color].secondary;
|
|
63
|
-
return (React__default.default.createElement(Component, { "$bgColor": bgColor, "$size": size, "$textColor": textColor },
|
|
64
|
-
dot && React__default.default.createElement(Dot, { "$secondaryColor": dotColor }),
|
|
65
|
-
children,
|
|
66
|
-
onDismiss && React__default.default.createElement(close.Close, { size: 16, onClick: onDismiss })));
|
|
67
|
-
};
|
|
68
|
-
const Component = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),close=require("../../../icons/basic/close.js");function _interopDefaultCompat(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var React__default=_interopDefaultCompat(React);const colorLookup={"primary-blue":{primary:"var(--color-primary-blue-2)",secondary:"var(--color-white)",text:"var(--color-white)"},blue:{primary:"var(--color-blue-9)",secondary:"var(--color-blue-5)",text:"var(--color-grey-4)"},green:{primary:"var(--color-green-9)",secondary:"var(--color-green-5)",text:"var(--color-grey-4)"},grey:{primary:"var(--color-grey-9)",secondary:"var(--color-grey-4)",text:"var(--color-grey-4)"},orange:{primary:"var(--color-orange-9)",secondary:"var(--color-orange-5)",text:"var(--color-grey-4)"},purple:{primary:"var(--color-purple-9)",secondary:"var(--color-purple-5)",text:"var(--color-grey-4)"},red:{primary:"var(--color-red-9)",secondary:"var(--color-red-5)",text:"var(--color-grey-4)"},turquoise:{primary:"var(--color-turquoise-9)",secondary:"var(--color-turquoise-5)",text:"var(--color-grey-4)"},yellow:{primary:"var(--color-yellow-9)",secondary:"var(--color-yellow-9)",text:"var(--color-grey-4)"}},Chip=({children:r,color:o,dot:e,onDismiss:t,size:a})=>{var l=colorLookup[o].primary,c=colorLookup[o].text,o=colorLookup[o].secondary;return React__default.default.createElement(Component,{$bgColor:l,$size:a,$textColor:c},e&&React__default.default.createElement(Dot,{$secondaryColor:o}),r,t&&React__default.default.createElement(close.Close,{size:16,onClick:t}))},Component=styled.styled.div`
|
|
69
3
|
display: flex;
|
|
70
4
|
align-items: center;
|
|
71
5
|
gap: 8px;
|
|
72
6
|
border-radius: 32px;
|
|
73
|
-
background-color: ${({
|
|
74
|
-
color: ${({
|
|
7
|
+
background-color: ${({$bgColor:r})=>r};
|
|
8
|
+
color: ${({$textColor:r})=>r};
|
|
75
9
|
font-family: var(--font-inter);
|
|
76
10
|
user-select: none;
|
|
77
11
|
|
|
@@ -79,25 +13,18 @@ const Component = styled.styled.div `
|
|
|
79
13
|
fill: currentColor;
|
|
80
14
|
cursor: pointer;
|
|
81
15
|
}
|
|
82
|
-
${({
|
|
83
|
-
? // small
|
|
84
|
-
`
|
|
16
|
+
${({$size:r})=>"small"===r?`
|
|
85
17
|
padding: 4px 16px;
|
|
86
18
|
font-size: 12px;
|
|
87
19
|
line-height: 16px;
|
|
88
|
-
font-weight: 500
|
|
89
|
-
: // large
|
|
90
|
-
`
|
|
20
|
+
font-weight: 500;`:`
|
|
91
21
|
padding: 8px 16px;
|
|
92
22
|
font-size: 14px;
|
|
93
23
|
line-height: 20px;
|
|
94
24
|
font-weight: 600;`}
|
|
95
|
-
|
|
96
|
-
const Dot = styled.styled.div `
|
|
25
|
+
`,Dot=styled.styled.div`
|
|
97
26
|
width: 8px;
|
|
98
27
|
height: 8px;
|
|
99
28
|
border-radius: 50%;
|
|
100
|
-
background-color: ${({
|
|
101
|
-
`;
|
|
102
|
-
|
|
103
|
-
exports.Chip = Chip;
|
|
29
|
+
background-color: ${({$secondaryColor:r})=>r};
|
|
30
|
+
`;exports.Chip=Chip;
|
|
@@ -1,44 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var colors = require('../../../common/colors.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
12
|
-
|
|
13
|
-
const Loader = ({ color = 'grey-1', inline, size = 16, sx, }) => {
|
|
14
|
-
let borderWidth = 3;
|
|
15
|
-
if (size > 96)
|
|
16
|
-
borderWidth = 10;
|
|
17
|
-
else if (size > 47)
|
|
18
|
-
borderWidth = 5;
|
|
19
|
-
else if (size > 23)
|
|
20
|
-
borderWidth = 4;
|
|
21
|
-
return (React__default.default.createElement(Component, { "$borderWidth": borderWidth, "$color": color, "$inline": !!inline, "$size": size, "$sx": sx }));
|
|
22
|
-
};
|
|
23
|
-
const spin = styled.keyframes `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),colors=require("../../../common/colors.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),styled__default=_interopDefaultCompat(styled);const Loader=({color:e="grey-1",inline:t,size:r=16,sx:o})=>{let a=3;return 96<r?a=10:47<r?a=5:23<r&&(a=4),React__default.default.createElement(Component,{$borderWidth:a,$color:e,$inline:!!t,$size:r,$sx:o})},spin=styled.keyframes`
|
|
24
3
|
0% { transform: rotate(0deg); }
|
|
25
4
|
100% { transform: rotate(360deg); }
|
|
26
|
-
|
|
27
|
-
const Component = styled__default.default.div `
|
|
5
|
+
`,Component=styled__default.default.div`
|
|
28
6
|
border: 2px solid transparent;
|
|
29
7
|
border-radius: 50%;
|
|
30
8
|
animation: ${spin} 0.8s linear infinite;
|
|
31
9
|
|
|
32
|
-
border-width: ${({
|
|
33
|
-
border-color: ${({
|
|
10
|
+
border-width: ${({$borderWidth:e})=>e+"px"};
|
|
11
|
+
border-color: ${({$color:e})=>colors.colorReference[e]};
|
|
34
12
|
border-top-color: transparent;
|
|
35
13
|
|
|
36
|
-
${({
|
|
37
|
-
height: ${
|
|
38
|
-
width: ${
|
|
14
|
+
${({$size:e})=>`
|
|
15
|
+
height: ${e}px;
|
|
16
|
+
width: ${e}px;
|
|
39
17
|
`}
|
|
40
18
|
|
|
41
|
-
${({
|
|
42
|
-
`;
|
|
43
|
-
|
|
44
|
-
exports.Loader = Loader;
|
|
19
|
+
${({$sx:e})=>e||""};
|
|
20
|
+
`;exports.Loader=Loader;
|
|
@@ -1,69 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var styles = require('../../../common/styles.js');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var button = require('../../actions/button/button.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
var alert_circle = require('../../../icons/notifications/alert_circle.js');
|
|
11
|
-
var alert_octogon = require('../../../icons/notifications/alert_octogon.js');
|
|
12
|
-
var alert_triangle = require('../../../icons/notifications/alert_triangle.js');
|
|
13
|
-
var close = require('../../../icons/basic/close.js');
|
|
14
|
-
var information = require('../../../icons/notifications/information.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 Notification = ({ content, href, onClose, sx, title, type, }) => {
|
|
21
|
-
const iconLookup = {
|
|
22
|
-
error: React__default.default.createElement(alert_octogon.AlertOctogon, { size: 24 }),
|
|
23
|
-
info: React__default.default.createElement(information.Information, { size: 24 }),
|
|
24
|
-
success: React__default.default.createElement(alert_circle.AlertCircle, { size: 24 }),
|
|
25
|
-
warning: React__default.default.createElement(alert_triangle.AlertTriangle, { size: 24 }),
|
|
26
|
-
};
|
|
27
|
-
return (React__default.default.createElement(Wrapper, { as: href ? 'a' : 'output', href: href, "$dir": "column", "$gap": 8, "$sx": sx, "$type": type },
|
|
28
|
-
React__default.default.createElement(box.Box, { "$dir": "row", "$gap": 8, "$flex": 1 },
|
|
29
|
-
iconLookup[type],
|
|
30
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$semiBold": true }, title),
|
|
31
|
-
onClose && (React__default.default.createElement(button.Button, { icon: React__default.default.createElement(close.Close, { size: 24 }), onClick: onClose, sx: "margin-left: auto;", type: "special" }))),
|
|
32
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 4 },
|
|
33
|
-
React__default.default.createElement(paragraph.P, { as: "span", sx: "padding-left: 32px;" }, content))));
|
|
34
|
-
};
|
|
35
|
-
const Wrapper = styled.styled.output `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),styles=require("../../../common/styles.js"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),paragraph=require("../../atoms/typography/paragraph.js"),alert_circle=require("../../../icons/notifications/alert_circle.js"),alert_octogon=require("../../../icons/notifications/alert_octogon.js"),alert_triangle=require("../../../icons/notifications/alert_triangle.js"),close=require("../../../icons/basic/close.js"),information=require("../../../icons/notifications/information.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Notification=({content:e,href:t,onClose:r,sx:a,title:o,type:l})=>{var i={error:React__default.default.createElement(alert_octogon.AlertOctogon,{size:24}),info:React__default.default.createElement(information.Information,{size:24}),success:React__default.default.createElement(alert_circle.AlertCircle,{size:24}),warning:React__default.default.createElement(alert_triangle.AlertTriangle,{size:24})};return React__default.default.createElement(Wrapper,{as:t?"a":"output",href:t,$dir:"column",$gap:8,$sx:a,$type:l},React__default.default.createElement(box.Box,{$dir:"row",$gap:8,$flex:1},i[l],React__default.default.createElement(paragraph.P,{as:"span",$semiBold:!0},o),r&&React__default.default.createElement(button.Button,{icon:React__default.default.createElement(close.Close,{size:24}),onClick:r,sx:"margin-left: auto;",type:"special"})),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:4},React__default.default.createElement(paragraph.P,{as:"span",sx:"padding-left: 32px;"},e)))},Wrapper=styled.styled.output`
|
|
36
3
|
text-decoration: none;
|
|
37
4
|
width: 100%;
|
|
38
5
|
box-sizing: border-box;
|
|
39
6
|
padding: 16px;
|
|
40
7
|
display: flex;
|
|
41
|
-
background-color: ${({
|
|
42
|
-
? 'var(--color-red-9)'
|
|
43
|
-
: $type === 'info'
|
|
44
|
-
? 'var(--color-blue-9)'
|
|
45
|
-
: $type === 'success'
|
|
46
|
-
? 'var(--color-green-9)'
|
|
47
|
-
: 'var(--color-orange-9)'};
|
|
8
|
+
background-color: ${({$type:e})=>"error"===e?"var(--color-red-9)":"info"===e?"var(--color-blue-9)":"success"===e?"var(--color-green-9)":"var(--color-orange-9)"};
|
|
48
9
|
border: 1px solid
|
|
49
|
-
${({
|
|
50
|
-
? 'var(--color-red-8)'
|
|
51
|
-
: $type === 'info'
|
|
52
|
-
? 'var(--color-blue-8)'
|
|
53
|
-
: $type === 'success'
|
|
54
|
-
? 'var(--color-green-8)'
|
|
55
|
-
: 'var(--color-orange-8)'};
|
|
10
|
+
${({$type:e})=>"error"===e?"var(--color-red-8)":"info"===e?"var(--color-blue-8)":"success"===e?"var(--color-green-8)":"var(--color-orange-8)"};
|
|
56
11
|
box-shadow: var(--elevation-2);
|
|
57
12
|
border-radius: var(--small);
|
|
58
13
|
|
|
59
14
|
& > div > svg {
|
|
60
|
-
fill: ${({
|
|
61
|
-
? 'var(--color-red-4)'
|
|
62
|
-
: $type === 'info'
|
|
63
|
-
? 'var(--color-blue-4)'
|
|
64
|
-
: $type === 'success'
|
|
65
|
-
? 'var(--color-green-3)'
|
|
66
|
-
: 'var(--color-orange-5)'};
|
|
15
|
+
fill: ${({$type:e})=>"error"===e?"var(--color-red-4)":"info"===e?"var(--color-blue-4)":"success"===e?"var(--color-green-3)":"var(--color-orange-5)"};
|
|
67
16
|
}
|
|
68
17
|
|
|
69
18
|
button > svg {
|
|
@@ -81,7 +30,5 @@ const Wrapper = styled.styled.output `
|
|
|
81
30
|
}
|
|
82
31
|
|
|
83
32
|
${styles.Styles.flex}
|
|
84
|
-
${({
|
|
85
|
-
`;
|
|
86
|
-
|
|
87
|
-
exports.Notification = Notification;
|
|
33
|
+
${({$sx:e})=>e||""}
|
|
34
|
+
`;exports.Notification=Notification;
|