@soul-refiner/design-system 2.0.4 → 2.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.js +1 -140
- package/dist/common/date.js +1 -34
- package/dist/common/styles.js +30 -62
- package/dist/components/actions/button/button.js +21 -111
- package/dist/components/actions/dropdown/dropdown.js +21 -176
- package/dist/components/actions/rate/rate.js +4 -55
- package/dist/components/actions/switch/switch.js +5 -39
- package/dist/components/actions/toggle/toggle.js +6 -33
- package/dist/components/actions/upload/upload.js +9 -167
- package/dist/components/atoms/box/box.js +4 -18
- package/dist/components/atoms/hide/hide.js +1 -18
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +1 -36
- package/dist/components/atoms/time_ago/time_ago.js +1 -39
- package/dist/components/atoms/typography/display.js +5 -18
- package/dist/components/atoms/typography/heading.js +6 -43
- package/dist/components/atoms/typography/paragraph.js +7 -20
- package/dist/components/atoms/typography/typography.js +3 -10
- package/dist/components/card/action/action.js +8 -41
- package/dist/components/card/audio/audio.js +7 -57
- package/dist/components/card/card.js +1 -33
- package/dist/components/card/feature/feature.js +14 -86
- package/dist/components/card/meeting/meeting.js +8 -102
- package/dist/components/card/person/person.js +6 -39
- package/dist/components/card/price/price.js +7 -49
- package/dist/components/card/regular/regular.js +5 -26
- package/dist/components/card/styles.js +2 -9
- package/dist/components/card/video/video.js +7 -57
- package/dist/components/card/written/written.js +7 -57
- package/dist/components/custom/courses_selection/courses_selection.js +12 -104
- package/dist/components/custom/users_selection/users_selection.js +12 -86
- package/dist/components/editor/constants.js +1 -195
- package/dist/components/editor/context.js +1 -17
- package/dist/components/editor/editor.js +5 -45
- package/dist/components/editor/icons/border-all.js +1 -12
- package/dist/components/editor/icons/border-bottom.js +1 -12
- package/dist/components/editor/icons/border-left.js +1 -12
- package/dist/components/editor/icons/border-none.js +1 -12
- package/dist/components/editor/icons/border-right.js +1 -12
- package/dist/components/editor/icons/border-top.js +1 -12
- package/dist/components/editor/navbar/alignment_dropdown.js +1 -106
- package/dist/components/editor/navbar/button_modal.js +3 -60
- package/dist/components/editor/navbar/navbar.js +7 -178
- package/dist/components/editor/navbar/style_dropdown.js +1 -74
- package/dist/components/editor/plugins/blocks/blockquote.js +1 -17
- package/dist/components/editor/plugins/blocks/blocks.js +1 -54
- package/dist/components/editor/plugins/blocks/buttons.js +8 -70
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +1 -77
- package/dist/components/editor/plugins/blocks/image.js +1 -60
- package/dist/components/editor/plugins/blocks/list.js +2 -20
- package/dist/components/editor/plugins/blocks/media-popover.js +1 -41
- package/dist/components/editor/plugins/blocks/plate-button.js +1 -63
- package/dist/components/editor/plugins/blocks/popover.js +1 -38
- package/dist/components/editor/plugins/blocks/qa.js +3 -45
- package/dist/components/editor/plugins/blocks/resizable.js +1 -47
- package/dist/components/editor/plugins/blocks/separator.js +1 -43
- package/dist/components/editor/plugins/blocks/table-cell.js +1 -48
- package/dist/components/editor/plugins/blocks/table-row.js +1 -16
- package/dist/components/editor/plugins/blocks/table.js +1 -98
- package/dist/components/editor/plugins/blocks/text.js +1 -103
- package/dist/components/editor/plugins/blocks/video.js +1 -42
- package/dist/components/editor/plugins/leafs/leafs.js +1 -37
- package/dist/components/editor/plugins/leafs/link.js +4 -55
- package/dist/components/editor/plugins/marks/marks.js +1 -17
- package/dist/components/editor/plugins/plate.js +1 -43
- package/dist/components/editor/plugins/utils/exitBreak.js +1 -36
- package/dist/components/editor/plugins/utils/resetBlockType.js +1 -26
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +1 -11
- package/dist/components/editor/plugins/utils/softBreak.js +1 -19
- package/dist/components/editor/plugins/utils/utils.js +1 -17
- package/dist/components/editor/simple_editor/navbar.js +4 -110
- package/dist/components/editor/simple_editor/plugins.js +1 -93
- package/dist/components/editor/simple_editor/simple_editor.js +3 -34
- package/dist/components/editor/styles/menu_button.js +3 -9
- package/dist/components/feedback/animated_toast/animated_toast.js +3 -32
- package/dist/components/feedback/badge/badge.js +7 -56
- package/dist/components/feedback/banner/banner.js +6 -60
- package/dist/components/feedback/chip/chip.js +8 -81
- package/dist/components/feedback/loader/loader.js +9 -33
- package/dist/components/feedback/notification/notification.js +6 -59
- package/dist/components/feedback/progress/progress.js +14 -76
- package/dist/components/feedback/toast/toast.js +7 -55
- package/dist/components/feedback/tooltip/tooltip.js +1 -34
- package/dist/components/iconography/avatar/avatar.js +22 -141
- package/dist/components/iconography/avatar/icons/approved.js +1 -14
- package/dist/components/iconography/avatar/icons/busy.js +1 -14
- package/dist/components/iconography/avatar/icons/declined.js +1 -14
- package/dist/components/iconography/avatar/icons/default.js +1 -13
- package/dist/components/iconography/avatar/icons/focus.js +1 -14
- package/dist/components/iconography/avatar/icons/locked.js +1 -14
- package/dist/components/iconography/avatar/icons/offline.js +1 -14
- package/dist/components/iconography/avatar/icons/online.js +1 -13
- package/dist/components/iconography/avatar/icons/subscribed.js +1 -18
- package/dist/components/iconography/icon/icon.js +3 -18
- package/dist/components/input/calendar/calendar.js +13 -139
- package/dist/components/input/checkbox/checkbox.js +5 -23
- package/dist/components/input/date/date.js +13 -241
- package/dist/components/input/filter/filter.js +13 -212
- package/dist/components/input/filter/filter_option.js +9 -50
- package/dist/components/input/radio/radio.js +7 -45
- package/dist/components/input/search/search.js +17 -83
- package/dist/components/input/select/select.js +6 -27
- package/dist/components/input/text_area/text_area.js +15 -60
- package/dist/components/input/text_input/text_input.js +21 -102
- package/dist/components/input/time/time.js +3 -47
- package/dist/components/media/video/video.js +1 -42
- package/dist/components/media/video-player/playlist-item.js +4 -37
- package/dist/components/media/video-player/video.js +13 -121
- package/dist/components/navigation/breadcrumb/breadcrumb.js +11 -66
- package/dist/components/navigation/inner/inner.js +14 -130
- package/dist/components/navigation/tabs/tabs.js +15 -101
- package/dist/components/surfaces/accordion/accordion.js +5 -46
- package/dist/components/surfaces/calendar_date/calendar_date.js +10 -39
- package/dist/components/surfaces/carousel/card/card.js +7 -55
- package/dist/components/surfaces/comment/comment.js +19 -152
- package/dist/components/surfaces/comment/helpers.js +1 -30
- package/dist/components/surfaces/drawer/drawer.js +7 -75
- package/dist/components/surfaces/message/message.js +4 -39
- package/dist/components/surfaces/modal/modal.js +8 -99
- package/dist/components/surfaces/portal/portal.js +1 -35
- package/dist/components/surfaces/post/post.js +19 -161
- package/dist/components/table/table/table.js +29 -120
- package/dist/emoji/emojis.json.js +1 -36331
- package/dist/icons/arrow/arrow_all.js +1 -15
- package/dist/icons/arrow/arrow_all_diagonal.js +1 -15
- package/dist/icons/arrow/arrow_both_downwards.js +1 -15
- package/dist/icons/arrow/arrow_both_upwards.js +1 -15
- package/dist/icons/arrow/arrow_circle_left.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +1 -17
- package/dist/icons/arrow/arrow_circle_right.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_down.js +1 -15
- package/dist/icons/arrow/arrow_down_bold.js +1 -15
- package/dist/icons/arrow/arrow_down_circle.js +1 -15
- package/dist/icons/arrow/arrow_left.js +1 -15
- package/dist/icons/arrow/arrow_left_bold.js +1 -15
- package/dist/icons/arrow/arrow_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_left_curved.js +1 -15
- package/dist/icons/arrow/arrow_left_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_right.js +1 -15
- package/dist/icons/arrow/arrow_right_bold.js +1 -15
- package/dist/icons/arrow/arrow_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_right_curved.js +1 -15
- package/dist/icons/arrow/arrow_right_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_up.js +1 -15
- package/dist/icons/arrow/arrow_up_bold.js +1 -15
- package/dist/icons/arrow/arrow_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_down.js +1 -15
- package/dist/icons/arrow/chevron_down_circle.js +1 -15
- package/dist/icons/arrow/chevron_down_double.js +1 -15
- package/dist/icons/arrow/chevron_down_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_left.js +1 -15
- package/dist/icons/arrow/chevron_left_circle.js +1 -15
- package/dist/icons/arrow/chevron_left_double.js +1 -15
- package/dist/icons/arrow/chevron_left_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_right.js +1 -15
- package/dist/icons/arrow/chevron_right_circle.js +1 -15
- package/dist/icons/arrow/chevron_right_double.js +1 -15
- package/dist/icons/arrow/chevron_right_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_scroll.js +1 -15
- package/dist/icons/arrow/chevron_up.js +1 -15
- package/dist/icons/arrow/chevron_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_up_double.js +1 -15
- package/dist/icons/arrow/chevron_up_double_circle.js +1 -15
- package/dist/icons/arrow/forward_all.js +1 -15
- package/dist/icons/arrow/forward_all_bold.js +1 -15
- package/dist/icons/arrow/forward_bold.js +1 -15
- package/dist/icons/arrow/redo.js +1 -15
- package/dist/icons/arrow/redo_bold.js +1 -15
- package/dist/icons/arrow/reply.js +1 -15
- package/dist/icons/arrow/reply_all.js +1 -15
- package/dist/icons/arrow/reply_all_bold.js +1 -15
- package/dist/icons/arrow/reply_bold.js +1 -15
- package/dist/icons/arrow/undo.js +1 -15
- package/dist/icons/arrow/undo_bold.js +1 -15
- package/dist/icons/audio_video/drag_indicator.js +1 -15
- package/dist/icons/audio_video/eject.js +1 -15
- package/dist/icons/audio_video/equalizer.js +1 -15
- package/dist/icons/audio_video/fast_forward.js +1 -15
- package/dist/icons/audio_video/fast_forward_30.js +1 -15
- package/dist/icons/audio_video/fullscreen.js +1 -15
- package/dist/icons/audio_video/headphones.js +1 -15
- package/dist/icons/audio_video/library_add.js +1 -15
- package/dist/icons/audio_video/library_music.js +1 -15
- package/dist/icons/audio_video/microphone.js +1 -15
- package/dist/icons/audio_video/musical_note.js +1 -15
- package/dist/icons/audio_video/next.js +1 -15
- package/dist/icons/audio_video/pause.js +1 -15
- package/dist/icons/audio_video/pause_circle.js +1 -15
- package/dist/icons/audio_video/play.js +1 -15
- package/dist/icons/audio_video/play_circle.js +1 -15
- package/dist/icons/audio_video/play_display.js +1 -15
- package/dist/icons/audio_video/play_pause.js +1 -15
- package/dist/icons/audio_video/play_solid.js +1 -15
- package/dist/icons/audio_video/player_list.js +1 -15
- package/dist/icons/audio_video/player_list_add.js +1 -15
- package/dist/icons/audio_video/player_list_play.js +1 -15
- package/dist/icons/audio_video/previous.js +1 -15
- package/dist/icons/audio_video/radio.js +1 -15
- package/dist/icons/audio_video/record.js +1 -15
- package/dist/icons/audio_video/repeat.js +1 -15
- package/dist/icons/audio_video/rewind.js +1 -15
- package/dist/icons/audio_video/rewind_30.js +1 -15
- package/dist/icons/audio_video/shuffle.js +1 -15
- package/dist/icons/audio_video/sound_wave.js +1 -15
- package/dist/icons/audio_video/stop.js +1 -15
- package/dist/icons/audio_video/stop_circle.js +1 -15
- package/dist/icons/audio_video/subscriptions.js +1 -15
- package/dist/icons/audio_video/tuner.js +1 -15
- package/dist/icons/audio_video/volume.js +1 -15
- package/dist/icons/audio_video/volume_high.js +1 -15
- package/dist/icons/audio_video/volume_low.js +1 -15
- package/dist/icons/audio_video/volume_slash.js +1 -15
- package/dist/icons/basic/aa_sansserif.js +1 -16
- package/dist/icons/basic/aa_serif.js +1 -16
- package/dist/icons/basic/anchor.js +1 -17
- package/dist/icons/basic/bible.js +1 -15
- package/dist/icons/basic/bold.js +1 -15
- package/dist/icons/basic/book.js +1 -15
- package/dist/icons/basic/book_open.js +1 -15
- package/dist/icons/basic/bookmark.js +1 -15
- package/dist/icons/basic/bookmark_add.js +1 -15
- package/dist/icons/basic/bookmark_slash.js +1 -15
- package/dist/icons/basic/bookmarks.js +1 -15
- package/dist/icons/basic/books.js +1 -18
- package/dist/icons/basic/box.js +1 -15
- package/dist/icons/basic/briefcase.js +1 -15
- package/dist/icons/basic/browse_activity.js +1 -15
- package/dist/icons/basic/browser.js +1 -15
- package/dist/icons/basic/browser_slash.js +1 -15
- package/dist/icons/basic/calculator.js +1 -15
- package/dist/icons/basic/camera.js +1 -15
- package/dist/icons/basic/camera_add.js +1 -15
- package/dist/icons/basic/camera_slash.js +1 -15
- package/dist/icons/basic/checkmark.js +1 -15
- package/dist/icons/basic/checkmark_circle.js +1 -17
- package/dist/icons/basic/checkmark_filled.js +1 -15
- package/dist/icons/basic/checkmarks.js +1 -15
- package/dist/icons/basic/circle.js +1 -15
- package/dist/icons/basic/circle_slash.js +1 -17
- package/dist/icons/basic/clear_text_style.js +1 -15
- package/dist/icons/basic/close.js +1 -15
- package/dist/icons/basic/close_circle.js +1 -15
- package/dist/icons/basic/close_filled.js +1 -15
- package/dist/icons/basic/copy.js +1 -15
- package/dist/icons/basic/delete.js +1 -15
- package/dist/icons/basic/detail.js +1 -15
- package/dist/icons/basic/dot.js +1 -15
- package/dist/icons/basic/download.js +1 -15
- package/dist/icons/basic/download_arrow.js +1 -15
- package/dist/icons/basic/droplet.js +1 -17
- package/dist/icons/basic/ellipsis_horizontal.js +1 -15
- package/dist/icons/basic/ellipsis_horizontal_circle.js +1 -15
- package/dist/icons/basic/ellipsis_vertical.js +1 -15
- package/dist/icons/basic/ellipsis_vertical_circle.js +1 -15
- package/dist/icons/basic/eye.js +1 -15
- package/dist/icons/basic/eye_slash.js +1 -15
- package/dist/icons/basic/fingerprint.js +1 -15
- package/dist/icons/basic/flag.js +1 -15
- package/dist/icons/basic/flag_wave.js +1 -15
- package/dist/icons/basic/flag_wave_filled.js +1 -15
- package/dist/icons/basic/flame.js +1 -15
- package/dist/icons/basic/gauge.js +1 -15
- package/dist/icons/basic/glasses.js +1 -15
- package/dist/icons/basic/graduation_cap.js +1 -15
- package/dist/icons/basic/hashmark.js +1 -15
- package/dist/icons/basic/heart.js +1 -15
- package/dist/icons/basic/heart_slash.js +1 -15
- package/dist/icons/basic/highlighter.js +1 -15
- package/dist/icons/basic/home.js +1 -15
- package/dist/icons/basic/image.js +1 -15
- package/dist/icons/basic/inbox.js +1 -15
- package/dist/icons/basic/italic.js +1 -15
- package/dist/icons/basic/layers.js +1 -15
- package/dist/icons/basic/lightening.js +1 -15
- package/dist/icons/basic/lightening_slash.js +1 -15
- package/dist/icons/basic/link.js +1 -15
- package/dist/icons/basic/link_slash.js +1 -15
- package/dist/icons/basic/loudspeaker.js +1 -15
- package/dist/icons/basic/maximize.js +1 -15
- package/dist/icons/basic/menu.js +1 -15
- package/dist/icons/basic/menu_circle.js +1 -15
- package/dist/icons/basic/menu_dots.js +1 -15
- package/dist/icons/basic/microphone_slash.js +1 -15
- package/dist/icons/basic/minimize.js +1 -15
- package/dist/icons/basic/minus.js +1 -15
- package/dist/icons/basic/minus_circle.js +1 -15
- package/dist/icons/basic/move_item.js +1 -15
- package/dist/icons/basic/new.js +1 -15
- package/dist/icons/basic/newspaper.js +1 -15
- package/dist/icons/basic/node.js +1 -15
- package/dist/icons/basic/note_pad.js +1 -16
- package/dist/icons/basic/options.js +1 -15
- package/dist/icons/basic/paint_brush.js +1 -15
- package/dist/icons/basic/paperclip.js +1 -15
- package/dist/icons/basic/paperclip_slash.js +1 -15
- package/dist/icons/basic/pencil.js +1 -15
- package/dist/icons/basic/pencil_pad.js +1 -15
- package/dist/icons/basic/plus.js +1 -15
- package/dist/icons/basic/plus_circle.js +1 -15
- package/dist/icons/basic/presentation.js +1 -15
- package/dist/icons/basic/printer.js +1 -15
- package/dist/icons/basic/profile.js +1 -15
- package/dist/icons/basic/profile_check.js +1 -15
- package/dist/icons/basic/pulse.js +1 -15
- package/dist/icons/basic/qr_code.js +1 -15
- package/dist/icons/basic/resize.js +1 -17
- package/dist/icons/basic/scan.js +1 -15
- package/dist/icons/basic/scissors.js +1 -15
- package/dist/icons/basic/screenshot.js +1 -15
- package/dist/icons/basic/search.js +1 -15
- package/dist/icons/basic/select_item.js +1 -16
- package/dist/icons/basic/settings.js +1 -15
- package/dist/icons/basic/share.js +1 -15
- package/dist/icons/basic/share_external.js +1 -15
- package/dist/icons/basic/square.js +1 -15
- package/dist/icons/basic/star.js +1 -15
- package/dist/icons/basic/star_circle.js +1 -15
- package/dist/icons/basic/star_filled.js +1 -15
- package/dist/icons/basic/star_filled_half.js +1 -15
- package/dist/icons/basic/star_slash.js +1 -15
- package/dist/icons/basic/sticker.js +1 -15
- package/dist/icons/basic/strikethrough.js +1 -15
- package/dist/icons/basic/subtask.js +1 -16
- package/dist/icons/basic/tax.js +1 -18
- package/dist/icons/basic/text_bg_color.js +1 -15
- package/dist/icons/basic/text_color.js +1 -15
- package/dist/icons/basic/textbox.js +1 -15
- package/dist/icons/basic/thumbs_down.js +1 -15
- package/dist/icons/basic/thumbs_up.js +1 -15
- package/dist/icons/basic/thumbs_up_filled.js +1 -15
- package/dist/icons/basic/toggle_left.js +1 -15
- package/dist/icons/basic/toggle_right.js +1 -15
- package/dist/icons/basic/translate.js +1 -15
- package/dist/icons/basic/trash.js +1 -15
- package/dist/icons/basic/trash_slash.js +1 -15
- package/dist/icons/basic/underline.js +1 -15
- package/dist/icons/basic/upload.js +1 -15
- package/dist/icons/basic/video.js +1 -15
- package/dist/icons/basic/video_add.js +1 -16
- package/dist/icons/basic/video_slash.js +1 -15
- package/dist/icons/basic/wrench.js +1 -15
- package/dist/icons/basic/zoom_in.js +1 -15
- package/dist/icons/basic/zoom_out.js +1 -15
- package/dist/icons/data/bar_chart.js +1 -15
- package/dist/icons/data/bar_chart_downward.js +1 -15
- package/dist/icons/data/bar_chart_downward_outline.js +1 -15
- package/dist/icons/data/bar_chart_upward.js +1 -15
- package/dist/icons/data/bar_chart_upward_outline.js +1 -15
- package/dist/icons/data/candlestick_chart.js +1 -15
- package/dist/icons/data/four_circles.js +1 -15
- package/dist/icons/data/legend_toggle.js +1 -15
- package/dist/icons/data/line_chart.js +1 -15
- package/dist/icons/data/line_chart_area.js +1 -15
- package/dist/icons/data/line_chart_area_shaded.js +1 -15
- package/dist/icons/data/line_chart_double.js +1 -15
- package/dist/icons/data/line_chart_downward.js +1 -15
- package/dist/icons/data/line_chart_node.js +1 -15
- package/dist/icons/data/line_chart_outline.js +1 -15
- package/dist/icons/data/line_chart_search.js +1 -15
- package/dist/icons/data/line_chart_stars.js +1 -15
- package/dist/icons/data/line_chart_upward.js +1 -15
- package/dist/icons/data/pie_chart.js +1 -16
- package/dist/icons/data/tree.js +1 -15
- package/dist/icons/email/mail.js +1 -15
- package/dist/icons/email/mail_check.js +1 -15
- package/dist/icons/email/mail_minus.js +1 -15
- package/dist/icons/email/mail_send.js +1 -15
- package/dist/icons/email/send.js +1 -15
- package/dist/icons/email/send_close.js +1 -15
- package/dist/icons/email/send_schedule.js +1 -15
- package/dist/icons/email/send_text.js +1 -15
- package/dist/icons/emoji/emoji_add.js +1 -15
- package/dist/icons/emoji/laughing.js +1 -15
- package/dist/icons/emoji/neutral.js +1 -15
- package/dist/icons/emoji/sad.js +1 -15
- package/dist/icons/emoji/shocked.js +1 -15
- package/dist/icons/emoji/smile.js +1 -15
- package/dist/icons/file/clipboard.js +1 -15
- package/dist/icons/file/clipboard_check.js +1 -15
- package/dist/icons/file/clipboard_close.js +1 -15
- package/dist/icons/file/clipboard_minus.js +1 -15
- package/dist/icons/file/clipboard_plus.js +1 -15
- package/dist/icons/file/clipboard_text.js +1 -15
- package/dist/icons/file/file.js +1 -15
- package/dist/icons/file/file_add.js +1 -15
- package/dist/icons/file/file_check.js +1 -15
- package/dist/icons/file/file_close.js +1 -15
- package/dist/icons/file/file_code.js +1 -15
- package/dist/icons/file/file_download.js +1 -15
- package/dist/icons/file/file_draft.js +1 -15
- package/dist/icons/file/file_gear.js +1 -16
- package/dist/icons/file/file_minus.js +1 -15
- package/dist/icons/file/file_plus.js +1 -15
- package/dist/icons/file/file_scan.js +1 -15
- package/dist/icons/file/file_shred.js +1 -15
- package/dist/icons/file/file_text.js +1 -15
- package/dist/icons/file/file_upload.js +1 -15
- package/dist/icons/file/folder.js +1 -15
- package/dist/icons/file/folder_add.js +1 -15
- package/dist/icons/file/folder_arrow.js +1 -15
- package/dist/icons/file/folder_check.js +1 -15
- package/dist/icons/file/folder_close.js +1 -15
- package/dist/icons/file/folder_cloud.js +1 -15
- package/dist/icons/file/folder_gear.js +1 -16
- package/dist/icons/file/folder_minus.js +1 -15
- package/dist/icons/file/folder_music.js +1 -15
- package/dist/icons/file/folder_open.js +1 -15
- package/dist/icons/file/folder_plus.js +1 -15
- package/dist/icons/file/folder_zip.js +1 -15
- package/dist/icons/file/note.js +1 -15
- package/dist/icons/file/note_text.js +1 -15
- package/dist/icons/file/pdf.js +1 -15
- package/dist/icons/file/photo.js +1 -15
- package/dist/icons/finance/bitcoin.js +1 -15
- package/dist/icons/finance/coins.js +1 -19
- package/dist/icons/finance/credit_card.js +1 -15
- package/dist/icons/finance/credit_card_add.js +1 -15
- package/dist/icons/finance/credit_card_face.js +1 -15
- package/dist/icons/finance/credit_card_member.js +1 -15
- package/dist/icons/finance/credit_card_outcome.js +1 -15
- package/dist/icons/finance/credit_card_scan.js +1 -15
- package/dist/icons/finance/credit_card_share.js +1 -15
- package/dist/icons/finance/credit_card_slash.js +1 -15
- package/dist/icons/finance/currency_exchange.js +1 -15
- package/dist/icons/finance/dollar.js +1 -15
- package/dist/icons/finance/ethereum.js +1 -15
- package/dist/icons/finance/paypass.js +1 -15
- package/dist/icons/finance/strongbox.js +1 -15
- package/dist/icons/finance/wallet.js +1 -15
- package/dist/icons/index.js +1 -1095
- package/dist/icons/layout/block_align_bottom.js +1 -15
- package/dist/icons/layout/block_align_center.js +1 -15
- package/dist/icons/layout/block_align_left.js +1 -15
- package/dist/icons/layout/block_align_middle.js +1 -15
- package/dist/icons/layout/block_align_right.js +1 -15
- package/dist/icons/layout/block_align_top.js +1 -15
- package/dist/icons/layout/block_horizontal.js +1 -15
- package/dist/icons/layout/block_vertical.js +1 -15
- package/dist/icons/layout/edit_shape.js +1 -15
- package/dist/icons/layout/elements.js +1 -15
- package/dist/icons/layout/elements_add.js +1 -15
- package/dist/icons/layout/elements_filled.js +1 -15
- package/dist/icons/layout/elements_masonry.js +1 -15
- package/dist/icons/layout/frame.js +1 -15
- package/dist/icons/layout/frame_stack.js +1 -15
- package/dist/icons/layout/grid.js +1 -15
- package/dist/icons/layout/grid_column_three.js +1 -15
- package/dist/icons/layout/grid_column_two.js +1 -15
- package/dist/icons/layout/grid_dynamic.js +1 -15
- package/dist/icons/layout/grid_frame.js +1 -15
- package/dist/icons/layout/grid_row_three.js +1 -15
- package/dist/icons/layout/grid_row_two.js +1 -15
- package/dist/icons/layout/grid_six.js +1 -15
- package/dist/icons/layout/grid_small.js +1 -15
- package/dist/icons/layout/iframe.js +1 -15
- package/dist/icons/layout/kanban.js +1 -15
- package/dist/icons/layout/layout.js +1 -15
- package/dist/icons/layout/list.js +1 -15
- package/dist/icons/layout/list_filled.js +1 -20
- package/dist/icons/layout/padding.js +1 -15
- package/dist/icons/layout/page_break.js +1 -15
- package/dist/icons/layout/rotate_left.js +1 -15
- package/dist/icons/layout/rotate_right.js +1 -15
- package/dist/icons/layout/ruler.js +1 -15
- package/dist/icons/layout/segment.js +1 -15
- package/dist/icons/layout/select_area.js +1 -15
- package/dist/icons/layout/select_boundary.js +1 -15
- package/dist/icons/layout/sidebar_left.js +1 -15
- package/dist/icons/layout/sidebar_right.js +1 -15
- package/dist/icons/layout/slides.js +1 -15
- package/dist/icons/layout/slides_horizontal.js +1 -15
- package/dist/icons/layout/slides_vertical.js +1 -20
- package/dist/icons/layout/stack.js +1 -15
- package/dist/icons/layout/text.js +1 -15
- package/dist/icons/maps/atlas.js +1 -15
- package/dist/icons/maps/compass.js +1 -15
- package/dist/icons/maps/direction.js +1 -15
- package/dist/icons/maps/direction_angled.js +1 -15
- package/dist/icons/maps/globe.js +1 -15
- package/dist/icons/maps/globe_slash.js +1 -15
- package/dist/icons/maps/location.js +1 -15
- package/dist/icons/maps/location_slash.js +1 -15
- package/dist/icons/maps/map.js +1 -15
- package/dist/icons/maps/marker.js +1 -15
- package/dist/icons/maps/panorama.js +1 -15
- package/dist/icons/maps/pin.js +1 -15
- package/dist/icons/maps/pin_arrow.js +1 -15
- package/dist/icons/maps/pin_location.js +1 -15
- package/dist/icons/maps/pin_plus.js +1 -15
- package/dist/icons/maps/pin_question.js +1 -15
- package/dist/icons/maps/pin_slash.js +1 -15
- package/dist/icons/maps/push_pin.js +1 -15
- package/dist/icons/maps/push_pin_filled.js +1 -15
- package/dist/icons/maps/push_pin_slash.js +1 -15
- package/dist/icons/maps/radar.js +1 -15
- package/dist/icons/maps/route.js +1 -15
- package/dist/icons/message/bubble.js +1 -15
- package/dist/icons/message/bubble_question.js +1 -15
- package/dist/icons/message/comment.js +1 -15
- package/dist/icons/message/comment_add.js +1 -15
- package/dist/icons/message/comment_check.js +1 -15
- package/dist/icons/message/comment_close.js +1 -15
- package/dist/icons/message/comment_minus.js +1 -15
- package/dist/icons/message/comment_text.js +1 -15
- package/dist/icons/misc/advertisement.js +1 -15
- package/dist/icons/misc/atom.js +1 -15
- package/dist/icons/misc/bone.js +1 -15
- package/dist/icons/misc/brightness_high.js +1 -15
- package/dist/icons/misc/brightness_low.js +1 -15
- package/dist/icons/misc/contrast.js +1 -15
- package/dist/icons/misc/crosshairs.js +1 -15
- package/dist/icons/misc/crown.js +1 -15
- package/dist/icons/misc/footprint.js +1 -15
- package/dist/icons/misc/form.js +1 -15
- package/dist/icons/misc/funnel.js +1 -15
- package/dist/icons/misc/infinite.js +1 -15
- package/dist/icons/misc/insert_button.js +1 -15
- package/dist/icons/misc/light_bulb.js +1 -15
- package/dist/icons/misc/moon.js +1 -15
- package/dist/icons/misc/nut.js +1 -15
- package/dist/icons/misc/planet.js +1 -15
- package/dist/icons/misc/plus_thick.js +1 -15
- package/dist/icons/misc/pocket.js +1 -15
- package/dist/icons/misc/rocket.js +1 -15
- package/dist/icons/misc/soup.js +1 -19
- package/dist/icons/misc/sun.js +1 -15
- package/dist/icons/misc/toy_horse.js +1 -15
- package/dist/icons/misc/trophy.js +1 -15
- package/dist/icons/misc/watercloset.js +1 -15
- package/dist/icons/notifications/alert_circle.js +1 -15
- package/dist/icons/notifications/alert_octogon.js +1 -15
- package/dist/icons/notifications/alert_triangle.js +1 -15
- package/dist/icons/notifications/app_notification.js +1 -15
- package/dist/icons/notifications/bell.js +1 -15
- package/dist/icons/notifications/bell_alert.js +1 -15
- package/dist/icons/notifications/bell_checkmark.js +1 -15
- package/dist/icons/notifications/bell_minus.js +1 -15
- package/dist/icons/notifications/bell_plus.js +1 -15
- package/dist/icons/notifications/bell_ring.js +1 -17
- package/dist/icons/notifications/bell_slash.js +1 -15
- package/dist/icons/notifications/information.js +1 -15
- package/dist/icons/notifications/minus_octogon.js +1 -15
- package/dist/icons/notifications/question_circle.js +1 -15
- package/dist/icons/people/group.js +1 -15
- package/dist/icons/people/group_add.js +1 -15
- package/dist/icons/people/group_chat.js +1 -17
- package/dist/icons/people/group_remove.js +1 -15
- package/dist/icons/people/group_send.js +1 -16
- package/dist/icons/people/groups.js +1 -15
- package/dist/icons/people/person.js +1 -15
- package/dist/icons/people/person_add.js +1 -15
- package/dist/icons/people/person_checkmark.js +1 -15
- package/dist/icons/people/person_circle.js +1 -17
- package/dist/icons/people/person_close.js +1 -17
- package/dist/icons/people/person_remove.js +1 -15
- package/dist/icons/people/person_slash.js +1 -17
- package/dist/icons/phone/keypad.js +1 -15
- package/dist/icons/phone/phone.js +1 -15
- package/dist/icons/phone/phone_add.js +1 -15
- package/dist/icons/phone/phone_calling.js +1 -15
- package/dist/icons/phone/phone_check.js +1 -15
- package/dist/icons/phone/phone_close.js +1 -15
- package/dist/icons/phone/phone_decline.js +1 -15
- package/dist/icons/phone/phone_forwarded.js +1 -15
- package/dist/icons/phone/phone_hash.js +1 -15
- package/dist/icons/phone/phone_incoming.js +1 -15
- package/dist/icons/phone/phone_outgoing.js +1 -15
- package/dist/icons/phone/phone_pause.js +1 -15
- package/dist/icons/phone/phone_slash.js +1 -15
- package/dist/icons/phone/voicemail.js +1 -15
- package/dist/icons/security/key.js +1 -15
- package/dist/icons/security/key_slash.js +1 -15
- package/dist/icons/security/lock.js +1 -15
- package/dist/icons/security/lock_circle.js +1 -15
- package/dist/icons/security/lock_open.js +1 -15
- package/dist/icons/security/lock_slash.js +1 -15
- package/dist/icons/security/shield.js +1 -15
- package/dist/icons/security/shield_checkmark.js +1 -15
- package/dist/icons/security/shield_lock.js +1 -15
- package/dist/icons/security/shield_slash.js +1 -15
- package/dist/icons/security/verified.js +1 -15
- package/dist/icons/shopping/basket.js +1 -15
- package/dist/icons/shopping/cart.js +1 -15
- package/dist/icons/shopping/cart_filled.js +1 -15
- package/dist/icons/shopping/coupon.js +1 -15
- package/dist/icons/shopping/coupon_cut.js +1 -15
- package/dist/icons/shopping/delivery.js +1 -15
- package/dist/icons/shopping/discount.js +1 -15
- package/dist/icons/shopping/gift.js +1 -15
- package/dist/icons/shopping/gift_bag.js +1 -15
- package/dist/icons/shopping/inventory.js +1 -15
- package/dist/icons/shopping/point_of_sale.js +1 -15
- package/dist/icons/shopping/shirt.js +1 -15
- package/dist/icons/shopping/tag.js +1 -15
- package/dist/icons/shopping/tag_diagonal.js +1 -15
- package/dist/icons/shopping/tote.js +1 -15
- package/dist/icons/special/upload_audio.js +1 -20
- package/dist/icons/special/upload_file.js +1 -15
- package/dist/icons/special/upload_image.js +1 -17
- package/dist/icons/special/upload_video.js +1 -18
- package/dist/icons/symbols/at.js +1 -15
- package/dist/icons/symbols/cc.js +1 -15
- package/dist/icons/symbols/cmd.js +1 -15
- package/dist/icons/symbols/facebook.js +1 -15
- package/dist/icons/symbols/google.js +1 -18
- package/dist/icons/symbols/hash.js +1 -15
- package/dist/icons/symbols/instagram.js +1 -27
- package/dist/icons/symbols/messenger.js +1 -21
- package/dist/icons/symbols/twitter.js +1 -15
- package/dist/icons/technology/battery.js +1 -15
- package/dist/icons/technology/battery_100.js +1 -15
- package/dist/icons/technology/battery_20.js +1 -15
- package/dist/icons/technology/battery_40.js +1 -15
- package/dist/icons/technology/battery_60.js +1 -15
- package/dist/icons/technology/battery_80.js +1 -15
- package/dist/icons/technology/battery_charging.js +1 -15
- package/dist/icons/technology/battery_slash.js +1 -15
- package/dist/icons/technology/devices.js +1 -15
- package/dist/icons/technology/floppy_disk.js +1 -15
- package/dist/icons/technology/iphone.js +1 -15
- package/dist/icons/technology/laptop.js +1 -15
- package/dist/icons/technology/mobile.js +1 -15
- package/dist/icons/technology/monitor.js +1 -15
- package/dist/icons/technology/server.js +1 -15
- package/dist/icons/technology/sim_card.js +1 -15
- package/dist/icons/technology/usb_stick.js +1 -15
- package/dist/icons/text/align_center.js +1 -15
- package/dist/icons/text/align_justified.js +1 -15
- package/dist/icons/text/align_left.js +1 -15
- package/dist/icons/text/align_right.js +1 -15
- package/dist/icons/text/code_block.js +1 -15
- package/dist/icons/text/divider.js +1 -15
- package/dist/icons/text/footnote.js +1 -17
- package/dist/icons/text/indent_decrease.js +1 -15
- package/dist/icons/text/indent_increase.js +1 -15
- package/dist/icons/text/list_ordered.js +1 -15
- package/dist/icons/text/list_unordered.js +1 -15
- package/dist/icons/text/quote.js +1 -15
- package/dist/icons/text/table.js +1 -15
- package/dist/icons/time/alarm.js +1 -15
- package/dist/icons/time/alarm_checkmark.js +1 -15
- package/dist/icons/time/alarm_minus.js +1 -15
- package/dist/icons/time/alarm_plus.js +1 -15
- package/dist/icons/time/alarm_slash.js +1 -15
- package/dist/icons/time/alarm_snooze.js +1 -15
- package/dist/icons/time/calendar.js +1 -15
- package/dist/icons/time/calendar_add.js +1 -15
- package/dist/icons/time/calendar_checkmark.js +1 -15
- package/dist/icons/time/calendar_close.js +1 -15
- package/dist/icons/time/calendar_dates.js +1 -15
- package/dist/icons/time/calendar_minus.js +1 -15
- package/dist/icons/time/calendar_plus.js +1 -15
- package/dist/icons/time/calendar_scroll.js +1 -17
- package/dist/icons/time/clock.js +1 -15
- package/dist/icons/time/clock_history.js +1 -15
- package/dist/icons/time/stopwatch.js +1 -15
- package/dist/icons/time/timer.js +1 -15
- package/dist/icons/time/watch.js +1 -15
- package/dist/index.js +1 -117
- package/dist/styles/output.css +1776 -0
- package/dist/utils/date.js +1 -73
- package/dist/utils/function.js +1 -5
- package/package.json +4 -3
|
@@ -1,63 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var Link = require('next/link');
|
|
7
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
-
var Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
13
|
-
|
|
14
|
-
const colorLookup = {
|
|
15
|
-
blue: {
|
|
16
|
-
bg: 'var(--color-hue-blue-2)',
|
|
17
|
-
icon: 'var(--color-hue-blue-1)',
|
|
18
|
-
},
|
|
19
|
-
green: {
|
|
20
|
-
bg: 'var(--color-green-8)',
|
|
21
|
-
icon: 'var(--color-green-2)',
|
|
22
|
-
},
|
|
23
|
-
grey: {
|
|
24
|
-
bg: 'var(--color-grey-9)',
|
|
25
|
-
icon: 'var(--color-grey-7)',
|
|
26
|
-
},
|
|
27
|
-
mint: {
|
|
28
|
-
bg: 'var(--color-hue-mint-2)',
|
|
29
|
-
icon: 'var(--color-hue-mint-1)',
|
|
30
|
-
},
|
|
31
|
-
ocean: {
|
|
32
|
-
bg: 'var(--color-hue-ocean-2)',
|
|
33
|
-
icon: 'var(--color-hue-ocean-1)',
|
|
34
|
-
},
|
|
35
|
-
orange: {
|
|
36
|
-
bg: 'var(--color-hue-orange-2)',
|
|
37
|
-
icon: 'var(--color-hue-orange-1)',
|
|
38
|
-
},
|
|
39
|
-
pink: {
|
|
40
|
-
bg: 'var(--color-hue-pink-2)',
|
|
41
|
-
icon: 'var(--color-hue-pink-1)',
|
|
42
|
-
},
|
|
43
|
-
purple: {
|
|
44
|
-
bg: 'var(--color-hue-purple-2)',
|
|
45
|
-
icon: 'var(--color-hue-purple-1)',
|
|
46
|
-
},
|
|
47
|
-
red: {
|
|
48
|
-
bg: 'var(--color-red-9)',
|
|
49
|
-
icon: 'var(--color-red-3)',
|
|
50
|
-
},
|
|
51
|
-
yellow: {
|
|
52
|
-
bg: 'var(--color-yellow-8)',
|
|
53
|
-
icon: 'var(--color-yellow-3)',
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
const Tabs = ({ activeIndex, items, onChange, size = 'large', sx, }) => {
|
|
57
|
-
const id = React__default.default.useId();
|
|
58
|
-
return (React__default.default.createElement(Wrapper, { "$sx": sx }, items.map((item, index) => (React__default.default.createElement(Item, { active: activeIndex === index, color: item?.color, disabled: item?.disabled, href: item?.href, icon: item?.icon, key: id + index.toString(36), label: item.label, onClick: () => onChange && onChange(index), size: size })))));
|
|
59
|
-
};
|
|
60
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),Link=require("next/link"),paragraph=require("../../atoms/typography/paragraph.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Link__default=_interopDefaultCompat(Link);const colorLookup={blue:{bg:"var(--color-hue-blue-2)",icon:"var(--color-hue-blue-1)"},green:{bg:"var(--color-green-8)",icon:"var(--color-green-2)"},grey:{bg:"var(--color-grey-9)",icon:"var(--color-grey-7)"},mint:{bg:"var(--color-hue-mint-2)",icon:"var(--color-hue-mint-1)"},ocean:{bg:"var(--color-hue-ocean-2)",icon:"var(--color-hue-ocean-1)"},orange:{bg:"var(--color-hue-orange-2)",icon:"var(--color-hue-orange-1)"},pink:{bg:"var(--color-hue-pink-2)",icon:"var(--color-hue-pink-1)"},purple:{bg:"var(--color-hue-purple-2)",icon:"var(--color-hue-purple-1)"},red:{bg:"var(--color-red-9)",icon:"var(--color-red-3)"},yellow:{bg:"var(--color-yellow-8)",icon:"var(--color-yellow-3)"}},Tabs=({activeIndex:r,items:e,onChange:a,size:l="large",sx:o})=>{const t=React__default.default.useId();return React__default.default.createElement(Wrapper,{$sx:o},e.map((e,o)=>React__default.default.createElement(Item,{active:r===o,color:e?.color,disabled:e?.disabled,href:e?.href,icon:e?.icon,key:t+o.toString(36),label:e.label,onClick:()=>a&&a(o),size:l})))},Wrapper=styled.styled.div`
|
|
61
3
|
display: flex;
|
|
62
4
|
flex-flow: row nowrap;
|
|
63
5
|
align-items: flex-end;
|
|
@@ -70,19 +12,8 @@ const Wrapper = styled.styled.div `
|
|
|
70
12
|
text-decoration: none;
|
|
71
13
|
}
|
|
72
14
|
|
|
73
|
-
${({
|
|
74
|
-
|
|
75
|
-
const Item = ({ active, color, disabled, href, icon, label, onClick, size = 'large', }) => {
|
|
76
|
-
const inputColor = disabled ? 'grey' : color ? color : 'blue';
|
|
77
|
-
const iconColor = colorLookup[inputColor].icon;
|
|
78
|
-
const bgColor = colorLookup[inputColor].bg;
|
|
79
|
-
const fontSize = size === 'large' ? 16 : size === 'medium' ? 14 : 12;
|
|
80
|
-
const lineHeight = size === 'large' ? 24 : size === 'medium' ? 20 : 16;
|
|
81
|
-
return (React__default.default.createElement(Element, { onClick: !disabled && onClick ? onClick : undefined, href: href || '#', scroll: false, "$active": active, "$color": iconColor, "$disabled": disabled, "$hasIcon": !!icon, "$size": size },
|
|
82
|
-
icon && React__default.default.createElement(IconWrapper, { "$bg": bgColor }, icon),
|
|
83
|
-
React__default.default.createElement(paragraph.P, { "$fontSize": fontSize, "$lineHeight": lineHeight, "$semiBold": true }, label)));
|
|
84
|
-
};
|
|
85
|
-
const Element = styled.styled(Link__default.default) `
|
|
15
|
+
${({$sx:e})=>e||""}
|
|
16
|
+
`,Item=({active:e,color:o,disabled:r,href:a,icon:l,label:t,onClick:i,size:c="large"})=>{var o=r?"grey":o||"blue",n=colorLookup[o].icon,o=colorLookup[o].bg,p="large"===c?16:"medium"===c?14:12,d="large"===c?24:"medium"===c?20:16;return React__default.default.createElement(Element,{onClick:!r&&i?i:void 0,href:a||"#",scroll:!1,$active:e,$color:n,$disabled:r,$hasIcon:!!l,$size:c},l&&React__default.default.createElement(IconWrapper,{$bg:o},l),React__default.default.createElement(paragraph.P,{$fontSize:p,$lineHeight:d,$semiBold:!0},t))},Element=styled.styled(Link__default.default)`
|
|
86
17
|
position: relative;
|
|
87
18
|
display: flex;
|
|
88
19
|
align-items: center;
|
|
@@ -90,30 +21,20 @@ const Element = styled.styled(Link__default.default) `
|
|
|
90
21
|
cursor: pointer;
|
|
91
22
|
user-select: none;
|
|
92
23
|
|
|
93
|
-
${({
|
|
94
|
-
? 'padding: 16px 12px;'
|
|
95
|
-
: $size === 'small'
|
|
96
|
-
? 'padding: 10px 8px;'
|
|
97
|
-
: $size === 'medium'
|
|
98
|
-
? 'padding: 14px 10px;'
|
|
99
|
-
: 'padding: 22px 12px;'}
|
|
24
|
+
${({$size:e,$hasIcon:o})=>o?"padding: 16px 12px;":"small"===e?"padding: 10px 8px;":"medium"===e?"padding: 14px 10px;":"padding: 22px 12px;"}
|
|
100
25
|
|
|
101
|
-
${({
|
|
102
|
-
? `
|
|
26
|
+
${({$hasIcon:e,$color:o,$disabled:r})=>r?`
|
|
103
27
|
cursor: initial;
|
|
104
|
-
|
|
105
|
-
: $hasIcon
|
|
106
|
-
? `
|
|
28
|
+
`:e?`
|
|
107
29
|
&:hover {
|
|
108
30
|
p {
|
|
109
|
-
color: ${
|
|
31
|
+
color: ${o};
|
|
110
32
|
}
|
|
111
33
|
}
|
|
112
34
|
|
|
113
35
|
div > svg {
|
|
114
|
-
fill: ${
|
|
115
|
-
}
|
|
116
|
-
: `
|
|
36
|
+
fill: ${o};
|
|
37
|
+
}`:`
|
|
117
38
|
&:hover {
|
|
118
39
|
background-color: var(--color-grey-10);
|
|
119
40
|
&:after {
|
|
@@ -132,8 +53,7 @@ const Element = styled.styled(Link__default.default) `
|
|
|
132
53
|
background-color: var(--color-grey-9);
|
|
133
54
|
}`}
|
|
134
55
|
|
|
135
|
-
${({
|
|
136
|
-
? `
|
|
56
|
+
${({$active:e,$color:o,$hasIcon:r})=>e?`
|
|
137
57
|
&:after {
|
|
138
58
|
position: absolute;
|
|
139
59
|
content: '';
|
|
@@ -141,19 +61,13 @@ const Element = styled.styled(Link__default.default) `
|
|
|
141
61
|
height: 3px;
|
|
142
62
|
bottom: 0px;
|
|
143
63
|
left: 0px;
|
|
144
|
-
background-color: ${
|
|
64
|
+
background-color: ${r?o:"var(--color-primary-blue-2)"} !important;
|
|
145
65
|
border-top-right-radius: 3px;
|
|
146
66
|
border-top-left-radius: 3px;
|
|
147
67
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
`;
|
|
151
|
-
const IconWrapper = styled.styled.div `
|
|
68
|
+
`:""}
|
|
69
|
+
`,IconWrapper=styled.styled.div`
|
|
152
70
|
padding: 8px;
|
|
153
71
|
border-radius: 8px;
|
|
154
|
-
background-color: ${({
|
|
155
|
-
`;
|
|
156
|
-
Tabs.Item = Item;
|
|
157
|
-
Item.displayName = 'Tabs.Item';
|
|
158
|
-
|
|
159
|
-
exports.Tabs = Tabs;
|
|
72
|
+
background-color: ${({$bg:e})=>e};
|
|
73
|
+
`;(Tabs.Item=Item).displayName="Tabs.Item",exports.Tabs=Tabs;
|
|
@@ -1,44 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var box = require('../../atoms/box/box.js');
|
|
7
|
-
var _function = require('../../../utils/function.js');
|
|
8
|
-
var chevron_down = require('../../../icons/arrow/chevron_down.js');
|
|
9
|
-
var chevron_up = require('../../../icons/arrow/chevron_up.js');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
-
|
|
15
|
-
const AccordionContext = React__default.default.createContext([-1, () => undefined]);
|
|
16
|
-
const Accordion = ({ children, sx }) => {
|
|
17
|
-
const [openIndex, setOpenIndex] = React__default.default.useState(-1);
|
|
18
|
-
const handleIndexChange = (index) => {
|
|
19
|
-
setOpenIndex((prev) => (prev === index ? -1 : index));
|
|
20
|
-
};
|
|
21
|
-
return (React__default.default.createElement(AccordionContext.Provider, { value: [openIndex, handleIndexChange] },
|
|
22
|
-
React__default.default.createElement(Wrapper, { "$sx": sx }, React__default.default.Children.map(children, (child, index) => {
|
|
23
|
-
if (React__default.default.isValidElement(child))
|
|
24
|
-
return React__default.default.cloneElement(child, { index });
|
|
25
|
-
return null;
|
|
26
|
-
}))));
|
|
27
|
-
};
|
|
28
|
-
const Wrapper = styled.styled.div `
|
|
29
|
-
${({ $sx }) => ($sx ? $sx : '')};
|
|
30
|
-
`;
|
|
31
|
-
const AccordionItem = ({ buttonSx, children, index, sx, trigger, }) => {
|
|
32
|
-
const [openIndex, setOpenIndex] = React__default.default.useContext(AccordionContext);
|
|
33
|
-
return (React__default.default.createElement(box.Box, { "$dir": "column" },
|
|
34
|
-
React__default.default.createElement(TriggerWrapper, { onClick: _function.callAll(
|
|
35
|
-
// eslint-disable-next-line
|
|
36
|
-
() => setOpenIndex(index), trigger?.props?.onClick), "$sx": buttonSx },
|
|
37
|
-
trigger,
|
|
38
|
-
openIndex === index ? React__default.default.createElement(chevron_up.ChevronUp, null) : React__default.default.createElement(chevron_down.ChevronDown, null)),
|
|
39
|
-
React__default.default.createElement(box.Box, { sx: openIndex === index ? sx : 'visibility: hidden; height: 0px;' }, children)));
|
|
40
|
-
};
|
|
41
|
-
const TriggerWrapper = styled.styled.button `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),_function=require("../../../utils/function.js"),chevron_down=require("../../../icons/arrow/chevron_down.js"),chevron_up=require("../../../icons/arrow/chevron_up.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const AccordionContext=React__default.default.createContext([-1,()=>{}]),Accordion=({children:e,sx:t})=>{const[n,r]=React__default.default.useState(-1);return React__default.default.createElement(AccordionContext.Provider,{value:[n,t=>{r(e=>e===t?-1:t)}]},React__default.default.createElement(Wrapper,{$sx:t},React__default.default.Children.map(e,(e,t)=>React__default.default.isValidElement(e)?React__default.default.cloneElement(e,{index:t}):null)))},Wrapper=styled.styled.div`
|
|
3
|
+
${({$sx:e})=>e||""};
|
|
4
|
+
`,AccordionItem=({buttonSx:e,children:t,index:n,sx:r,trigger:a})=>{const[o,c]=React__default.default.useContext(AccordionContext);return React__default.default.createElement(box.Box,{$dir:"column"},React__default.default.createElement(TriggerWrapper,{onClick:_function.callAll(()=>c(n),a?.props?.onClick),$sx:e},a,o===n?React__default.default.createElement(chevron_up.ChevronUp,null):React__default.default.createElement(chevron_down.ChevronDown,null)),React__default.default.createElement(box.Box,{sx:o===n?r:"visibility: hidden; height: 0px;"},t))},TriggerWrapper=styled.styled.button`
|
|
42
5
|
display: flex;
|
|
43
6
|
align-items: center;
|
|
44
7
|
justify-content: space-between;
|
|
@@ -48,9 +11,5 @@ const TriggerWrapper = styled.styled.button `
|
|
|
48
11
|
outline: none;
|
|
49
12
|
background-color: transparent;
|
|
50
13
|
cursor: pointer;
|
|
51
|
-
${({
|
|
52
|
-
`;
|
|
53
|
-
Accordion.Item = AccordionItem;
|
|
54
|
-
AccordionItem.displayName = 'Accordion.Item';
|
|
55
|
-
|
|
56
|
-
exports.Accordion = Accordion;
|
|
14
|
+
${({$sx:e})=>e||""};
|
|
15
|
+
`;(Accordion.Item=AccordionItem).displayName="Accordion.Item",exports.Accordion=Accordion;
|
|
@@ -1,55 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
7
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
-
|
|
13
|
-
const CalendarDate = ({ monthAbbreviation, date, dayOfWeek, startTime, endTime, sx, size = 'large', }) => {
|
|
14
|
-
return (React__default.default.createElement(Container, { "$sx": sx },
|
|
15
|
-
React__default.default.createElement(CalendarContainer, { "$size": size },
|
|
16
|
-
React__default.default.createElement(MonthContainer, { "$size": size },
|
|
17
|
-
size === 'large' && (React__default.default.createElement(heading.H.Seven, { "$color": "white", "$textAlign": "center", "$semiBold": true }, monthAbbreviation)),
|
|
18
|
-
size === 'small' && (React__default.default.createElement(paragraph.P, { "$color": "white", "$textAlign": "center", "$fontSize": 14 }, monthAbbreviation))),
|
|
19
|
-
React__default.default.createElement(DateContainer, { "$size": size },
|
|
20
|
-
size === 'large' && (React__default.default.createElement(heading.H.One, { "$textAlign": "center", "$semiBold": true }, date)),
|
|
21
|
-
size === 'small' && (React__default.default.createElement(heading.H.Six, { "$color": "grey-2", "$textAlign": "center" }, date)))),
|
|
22
|
-
dayOfWeek && startTime && endTime && (React__default.default.createElement(TimeContainer, null,
|
|
23
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "red-5" }, `${dayOfWeek}, ${startTime} -> ${endTime}`)))));
|
|
24
|
-
};
|
|
25
|
-
const Container = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const CalendarDate=({monthAbbreviation:e,date:t,dayOfWeek:a,startTime:r,endTime:l,sx:n,size:d="large"})=>React__default.default.createElement(Container,{$sx:n},React__default.default.createElement(CalendarContainer,{$size:d},React__default.default.createElement(MonthContainer,{$size:d},"large"===d&&React__default.default.createElement(heading.H.Seven,{$color:"white",$textAlign:"center",$semiBold:!0},e),"small"===d&&React__default.default.createElement(paragraph.P,{$color:"white",$textAlign:"center",$fontSize:14},e)),React__default.default.createElement(DateContainer,{$size:d},"large"===d&&React__default.default.createElement(heading.H.One,{$textAlign:"center",$semiBold:!0},t),"small"===d&&React__default.default.createElement(heading.H.Six,{$color:"grey-2",$textAlign:"center"},t))),a&&r&&l&&React__default.default.createElement(TimeContainer,null,React__default.default.createElement(paragraph.P,{as:"span",$color:"red-5"},a+`, ${r} -> `+l))),Container=styled.styled.div`
|
|
26
3
|
display: flex;
|
|
27
4
|
flex-direction: column;
|
|
28
5
|
align-items: center;
|
|
29
6
|
|
|
30
|
-
${({
|
|
31
|
-
|
|
32
|
-
const CalendarContainer = styled.styled.div `
|
|
7
|
+
${({$sx:e})=>e||""}
|
|
8
|
+
`,CalendarContainer=styled.styled.div`
|
|
33
9
|
display: flex;
|
|
34
10
|
flex-direction: column;
|
|
35
11
|
|
|
36
|
-
${({
|
|
37
|
-
|
|
38
|
-
const MonthContainer = styled.styled.div `
|
|
12
|
+
${({$size:e})=>"large"===e?"width: 120px;":"width: 64px;"}
|
|
13
|
+
`,MonthContainer=styled.styled.div`
|
|
39
14
|
background-color: var(--color-red-5);
|
|
40
15
|
border-radius: 16px 16px 0 0;
|
|
41
16
|
|
|
42
|
-
${({
|
|
43
|
-
|
|
44
|
-
const DateContainer = styled.styled.div `
|
|
17
|
+
${({$size:e})=>"large"===e?"padding: 8px 16px;":"padding: 2px 8px;"}
|
|
18
|
+
`,DateContainer=styled.styled.div`
|
|
45
19
|
background-color: white;
|
|
46
20
|
border-radius: 0 0 16px 16px;
|
|
47
21
|
box-shadow: var(--elevation-3);
|
|
48
22
|
|
|
49
|
-
${({
|
|
50
|
-
|
|
51
|
-
const TimeContainer = styled.styled.div `
|
|
23
|
+
${({$size:e})=>"large"===e?"padding: 8px 16px;":"padding: 2px 16px;"}
|
|
24
|
+
`,TimeContainer=styled.styled.div`
|
|
52
25
|
margin-top: 16px;
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
exports.CalendarDate = CalendarDate;
|
|
26
|
+
`;exports.CalendarDate=CalendarDate;
|
|
@@ -1,47 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var chevron_left = require('../../../../icons/arrow/chevron_left.js');
|
|
7
|
-
var chevron_right = require('../../../../icons/arrow/chevron_right.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
-
|
|
13
|
-
const DEFAULT_SCROLL_TRIGGER_DISTANCE = 11;
|
|
14
|
-
const DEFAULT_SCROLL_DISTANCE = 450;
|
|
15
|
-
const CardCarousel = ({ children, onScrollEnd, scrollTriggerDistance = DEFAULT_SCROLL_TRIGGER_DISTANCE, scrollDistance = DEFAULT_SCROLL_DISTANCE, sx, }) => {
|
|
16
|
-
const ref = React__default.default.useRef(null);
|
|
17
|
-
const handleScroll = (event) => {
|
|
18
|
-
const target = event.target;
|
|
19
|
-
const scrollDistance = target.scrollWidth - target.scrollLeft;
|
|
20
|
-
if (scrollDistance - target.clientWidth < scrollTriggerDistance &&
|
|
21
|
-
onScrollEnd) {
|
|
22
|
-
onScrollEnd();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const onNavigateRight = () => {
|
|
26
|
-
if (ref.current) {
|
|
27
|
-
const amount = ref.current.scrollLeft + scrollDistance;
|
|
28
|
-
ref.current.scrollLeft = amount;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const onNavigateLeft = () => {
|
|
32
|
-
if (ref.current) {
|
|
33
|
-
const amount = ref.current.scrollLeft - scrollDistance;
|
|
34
|
-
ref.current.scrollLeft = amount < 0 ? 0 : amount;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
return (React__default.default.createElement(Wrapper, { "$sx": sx },
|
|
38
|
-
React__default.default.createElement(Button, { className: "carousel-navigation", onClick: onNavigateLeft, "$side": "left" },
|
|
39
|
-
React__default.default.createElement(chevron_left.ChevronLeft, { color: "white", size: 48 })),
|
|
40
|
-
React__default.default.createElement(Inner, { onScroll: handleScroll, ref: ref }, children),
|
|
41
|
-
React__default.default.createElement(Button, { className: "carousel-navigation", onClick: onNavigateRight, "$side": "right" },
|
|
42
|
-
React__default.default.createElement(chevron_right.ChevronRight, { color: "white", size: 48 }))));
|
|
43
|
-
};
|
|
44
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),chevron_left=require("../../../../icons/arrow/chevron_left.js"),chevron_right=require("../../../../icons/arrow/chevron_right.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const DEFAULT_SCROLL_TRIGGER_DISTANCE=11,DEFAULT_SCROLL_DISTANCE=450,CardCarousel=({children:e,onScrollEnd:t,scrollTriggerDistance:r=DEFAULT_SCROLL_TRIGGER_DISTANCE,scrollDistance:l=DEFAULT_SCROLL_DISTANCE,sx:o})=>{const a=React__default.default.useRef(null);return React__default.default.createElement(Wrapper,{$sx:o},React__default.default.createElement(Button,{className:"carousel-navigation",onClick:()=>{var e;a.current&&(e=a.current.scrollLeft-l,a.current.scrollLeft=e<0?0:e)},$side:"left"},React__default.default.createElement(chevron_left.ChevronLeft,{color:"white",size:48})),React__default.default.createElement(Inner,{onScroll:e=>{e=e.target;e.scrollWidth-e.scrollLeft-e.clientWidth<r&&t&&t()},ref:a},e),React__default.default.createElement(Button,{className:"carousel-navigation",onClick:()=>{var e;a.current&&(e=a.current.scrollLeft+l,a.current.scrollLeft=e)},$side:"right"},React__default.default.createElement(chevron_right.ChevronRight,{color:"white",size:48})))},Wrapper=styled.styled.div`
|
|
45
3
|
position: relative;
|
|
46
4
|
height: 288px;
|
|
47
5
|
|
|
@@ -49,9 +7,8 @@ const Wrapper = styled.styled.div `
|
|
|
49
7
|
display: block;
|
|
50
8
|
}
|
|
51
9
|
|
|
52
|
-
${({
|
|
53
|
-
|
|
54
|
-
const Inner = styled.styled.div `
|
|
10
|
+
${({$sx:e})=>e||""}
|
|
11
|
+
`,Inner=styled.styled.div`
|
|
55
12
|
position: absolute;
|
|
56
13
|
width: 100%;
|
|
57
14
|
z-index: 0;
|
|
@@ -76,8 +33,7 @@ const Inner = styled.styled.div `
|
|
|
76
33
|
width: 0px;
|
|
77
34
|
height: 0px;
|
|
78
35
|
}
|
|
79
|
-
|
|
80
|
-
const Button = styled.styled.button `
|
|
36
|
+
`,Button=styled.styled.button`
|
|
81
37
|
position: absolute;
|
|
82
38
|
z-index: 1;
|
|
83
39
|
top: 0px;
|
|
@@ -93,14 +49,10 @@ const Button = styled.styled.button `
|
|
|
93
49
|
|
|
94
50
|
display: none;
|
|
95
51
|
|
|
96
|
-
${({
|
|
97
|
-
? `
|
|
52
|
+
${({$side:e})=>"left"===e?`
|
|
98
53
|
left: 0px;
|
|
99
54
|
border-radius: 0px 16px 16px 0px;
|
|
100
|
-
|
|
101
|
-
: `
|
|
55
|
+
`:`
|
|
102
56
|
right: 0px;
|
|
103
57
|
border-radius: 16px 0px 0px 16px;`};
|
|
104
|
-
`;
|
|
105
|
-
|
|
106
|
-
exports.CardCarousel = CardCarousel;
|
|
58
|
+
`;exports.CardCarousel=CardCarousel;
|
|
@@ -1,122 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var Picker = require('@emoji-mart/react');
|
|
7
|
-
var avatar = require('../../iconography/avatar/avatar.js');
|
|
8
|
-
var box = require('../../atoms/box/box.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
require('../../input/checkbox/checkbox.js');
|
|
11
|
-
require('../../input/date/date.js');
|
|
12
|
-
require('../../input/filter/filter.js');
|
|
13
|
-
require('../../input/radio/radio.js');
|
|
14
|
-
require('../../input/search/search.js');
|
|
15
|
-
require('../../input/select/select.js');
|
|
16
|
-
require('../../input/text_area/text_area.js');
|
|
17
|
-
var text_input = require('../../input/text_input/text_input.js');
|
|
18
|
-
require('../../input/calendar/calendar.js');
|
|
19
|
-
require('../../input/time/time.js');
|
|
20
|
-
var button = require('../../actions/button/button.js');
|
|
21
|
-
var portal = require('../portal/portal.js');
|
|
22
|
-
var emojis = require('../../../emoji/emojis.json.js');
|
|
23
|
-
var styles = require('../../../common/styles.js');
|
|
24
|
-
var thumbs_up = require('../../../icons/basic/thumbs_up.js');
|
|
25
|
-
var comment = require('../../../icons/message/comment.js');
|
|
26
|
-
var helpers = require('./helpers.js');
|
|
27
|
-
|
|
28
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
29
|
-
|
|
30
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
31
|
-
var Picker__default = /*#__PURE__*/_interopDefaultCompat(Picker);
|
|
32
|
-
|
|
33
|
-
const MAX_REACTIONS_SHOWN = 5;
|
|
34
|
-
const Comment = ({ avatarTooltipContent, avatarTooltipSx, content, createdDate, hasMoreReplies, id, onComment, onReact, onShowReplies, reactionModal, reactions, replies, userImageUri, userName, userReactions, userProfileUri, }) => {
|
|
35
|
-
const [showPicker, setShowPicker] = React__default.default.useState(false);
|
|
36
|
-
const [pickerTriggerLoc, setPickerTriggerLoc] = React__default.default.useState({
|
|
37
|
-
x: 0,
|
|
38
|
-
y: 0,
|
|
39
|
-
});
|
|
40
|
-
const [pickerOrientation, setPickerOrientation] = React__default.default.useState('up');
|
|
41
|
-
const [toggleShowCommentInput, setShowCommentInput] = React__default.default.useState(false);
|
|
42
|
-
const [toggleShowReplies, setShowReplies] = React__default.default.useState(false);
|
|
43
|
-
const [comment$1, setComment] = React__default.default.useState('');
|
|
44
|
-
const _replies = React__default.default.Children.toArray(replies);
|
|
45
|
-
const handleCommentChange = (event) => {
|
|
46
|
-
setComment(event.target.value);
|
|
47
|
-
};
|
|
48
|
-
const handleCommentSubmit = (event) => {
|
|
49
|
-
event.stopPropagation();
|
|
50
|
-
event.preventDefault();
|
|
51
|
-
onComment(comment$1);
|
|
52
|
-
setComment('');
|
|
53
|
-
};
|
|
54
|
-
const handleReaction = ({ native }) => {
|
|
55
|
-
onReact(native);
|
|
56
|
-
setShowPicker(false);
|
|
57
|
-
};
|
|
58
|
-
const handlePicker = (event) => {
|
|
59
|
-
event.stopPropagation();
|
|
60
|
-
setShowPicker((prev) => !prev);
|
|
61
|
-
setPickerTriggerLoc({ y: event.clientY, x: event.clientX });
|
|
62
|
-
setPickerOrientation(event.clientY > 400 ? 'up' : 'down');
|
|
63
|
-
};
|
|
64
|
-
const handlePickerBlur = () => setShowPicker(false);
|
|
65
|
-
const handleToggleCommentInput = () => setShowCommentInput((prev) => !prev);
|
|
66
|
-
const handleToggleReplies = () => {
|
|
67
|
-
onShowReplies && onShowReplies();
|
|
68
|
-
setShowReplies(true);
|
|
69
|
-
};
|
|
70
|
-
const createdTime = helpers.abbrTimeBeforeDate(createdDate);
|
|
71
|
-
const reactionElements = reactions &&
|
|
72
|
-
Object.entries(reactions)
|
|
73
|
-
.slice(0, MAX_REACTIONS_SHOWN)
|
|
74
|
-
.sort((a, b) => (a[1] < b[1] ? 1 : -1))
|
|
75
|
-
.map((reaction) => (React__default.default.createElement(Reaction, { key: id + reaction[0], onClick: () => onReact(reaction[0]), "$align": "center", "$dir": "row", "$gap": 5, "$userSelected": userReactions?.includes(reaction[0]) },
|
|
76
|
-
reaction[0],
|
|
77
|
-
React__default.default.createElement(paragraph.P, { "$bold": true, "$fontSize": 10, "$lineHeight": 14 }, reaction[1]))));
|
|
78
|
-
const hasReplies = !!_replies?.length && _replies.length > 0;
|
|
79
|
-
const replyElements = hasReplies &&
|
|
80
|
-
_replies.map((reply, index) => {
|
|
81
|
-
if (!React__default.default.isValidElement(reply))
|
|
82
|
-
return null;
|
|
83
|
-
const key = reply.props?.id;
|
|
84
|
-
const hasLine = index !== _replies.length - 1 || hasMoreReplies;
|
|
85
|
-
return (React__default.default.createElement(ReplyWrapper, { "$hasLine": hasLine, key: key },
|
|
86
|
-
reply,
|
|
87
|
-
React__default.default.createElement(ReplyIndicator, null)));
|
|
88
|
-
});
|
|
89
|
-
return (React__default.default.createElement(Wrapper, { id: id },
|
|
90
|
-
React__default.default.createElement(avatar.Avatar, { href: userProfileUri, image: userImageUri, size: 32, tooltipContent: avatarTooltipContent, tooltipSx: avatarTooltipSx }),
|
|
91
|
-
React__default.default.createElement(box.Box, { "$flex": 1, "$dir": "column" },
|
|
92
|
-
React__default.default.createElement(ContentWrapper, { "$hasReplies": hasReplies || !!hasMoreReplies },
|
|
93
|
-
React__default.default.createElement(CommentBox, null,
|
|
94
|
-
React__default.default.createElement(paragraph.P, { "$bold": true, "$color": "grey-2", "$fontSize": 14, "$lineHeight": 20 }, userName),
|
|
95
|
-
React__default.default.createElement(paragraph.P, { sx: "letter-spacing: -0.176px;" }, content)),
|
|
96
|
-
React__default.default.createElement(box.Box, { "$align": "flex-start", "$dir": "row", "$display": "flex", "$gap": 16, sx: "margin: 8px 0px; position: relative;" },
|
|
97
|
-
React__default.default.createElement(thumbs_up.ThumbsUp, { color: "primary-blue-2", onClick: handlePicker, size: 24, sx: "border-radius: 50%; cursor: pointer; flex-shrink: 0;" }),
|
|
98
|
-
React__default.default.createElement(comment.Comment, { color: "primary-blue-2", onClick: handleToggleCommentInput, size: 24, sx: "border-radius: 50%; cursor: pointer; flex-shrink: 0;" }),
|
|
99
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-7" }, "\u2022"),
|
|
100
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 24, sx: "flex-shrink: 0;" }, createdTime),
|
|
101
|
-
React__default.default.createElement(box.Box, { "$display": "flex", "$flow": "row wrap", "$gap": 6, sx: "max-width: calc(100% - 190px); margin-left: auto;" },
|
|
102
|
-
reactionElements,
|
|
103
|
-
reactionModal),
|
|
104
|
-
showPicker && (React__default.default.createElement(portal.Portal, null,
|
|
105
|
-
React__default.default.createElement(PickerWrapper, { "$pickerOrientation": pickerOrientation, "$top": pickerTriggerLoc.y, "$left": pickerTriggerLoc.x },
|
|
106
|
-
React__default.default.createElement(Picker__default.default, { data: emojis.default, onEmojiSelect: handleReaction, onClickOutside: handlePickerBlur, maxFrequentRows: 1, navPosition: "none", previewPosition: "none", perLine: 9, theme: "auto" })))))),
|
|
107
|
-
hasReplies && toggleShowReplies && (React__default.default.createElement(RepliesWrapper, null, replyElements)),
|
|
108
|
-
!toggleShowReplies && !hasMoreReplies && hasReplies && (React__default.default.createElement(RepliesWrapper, null,
|
|
109
|
-
React__default.default.createElement(ReplyWrapper, { "$hasLine": false },
|
|
110
|
-
React__default.default.createElement(button.Button, { onClick: handleToggleReplies, size: "small", sx: "color: var(--color-grey-3);", type: "text" }, "show replies"),
|
|
111
|
-
React__default.default.createElement(ReplyIndicator, null)))),
|
|
112
|
-
hasMoreReplies && (React__default.default.createElement(RepliesWrapper, null,
|
|
113
|
-
React__default.default.createElement(ReplyWrapper, { "$hasLine": false },
|
|
114
|
-
React__default.default.createElement(button.Button, { onClick: handleToggleReplies, size: "small", sx: "color: var(--color-grey-3);", type: "text" }, "show more replies"),
|
|
115
|
-
React__default.default.createElement(ReplyIndicator, null)))),
|
|
116
|
-
toggleShowCommentInput && (React__default.default.createElement(CommentWrapper, { onSubmit: handleCommentSubmit },
|
|
117
|
-
React__default.default.createElement(text_input.TextInput, { bg: "var(--color-grey-10)", placeholder: "Write a reply", onChange: handleCommentChange, value: comment$1 }))))));
|
|
118
|
-
};
|
|
119
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),Picker=require("@emoji-mart/react"),avatar=require("../../iconography/avatar/avatar.js"),box=require("../../atoms/box/box.js"),paragraph=require("../../atoms/typography/paragraph.js"),text_input=(require("../../input/checkbox/checkbox.js"),require("../../input/date/date.js"),require("../../input/filter/filter.js"),require("../../input/radio/radio.js"),require("../../input/search/search.js"),require("../../input/select/select.js"),require("../../input/text_area/text_area.js"),require("../../input/text_input/text_input.js")),button=(require("../../input/calendar/calendar.js"),require("../../input/time/time.js"),require("../../actions/button/button.js")),portal=require("../portal/portal.js"),emojis=require("../../../emoji/emojis.json.js"),styles=require("../../../common/styles.js"),thumbs_up=require("../../../icons/basic/thumbs_up.js"),comment=require("../../../icons/message/comment.js"),helpers=require("./helpers.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Picker__default=_interopDefaultCompat(Picker);const MAX_REACTIONS_SHOWN=5,Comment=({avatarTooltipContent:e,avatarTooltipSx:t,content:a,createdDate:r,hasMoreReplies:l,id:o,onComment:i,onReact:n,onShowReplies:u,reactionModal:p,reactions:d,replies:s,userImageUri:c,userName:f,userReactions:m,userProfileUri:_})=>{const[x,y]=React__default.default.useState(!1),[R,b]=React__default.default.useState({x:0,y:0}),[h,g]=React__default.default.useState("up"),[$,v]=React__default.default.useState(!1),[E,j]=React__default.default.useState(!1),[C,q]=React__default.default.useState(""),k=React__default.default.Children.toArray(s);var s=()=>{u&&u(),j(!0)},r=helpers.abbrTimeBeforeDate(r),d=d&&Object.entries(d).slice(0,MAX_REACTIONS_SHOWN).sort((e,t)=>e[1]<t[1]?1:-1).map(e=>React__default.default.createElement(Reaction,{key:o+e[0],onClick:()=>n(e[0]),$align:"center",$dir:"row",$gap:5,$userSelected:m?.includes(e[0])},e[0],React__default.default.createElement(paragraph.P,{$bold:!0,$fontSize:10,$lineHeight:14},e[1]))),S=!!k?.length&&0<k.length,W=S&&k.map((e,t)=>{var a;return React__default.default.isValidElement(e)?(a=e.props?.id,t=t!==k.length-1||l,React__default.default.createElement(ReplyWrapper,{$hasLine:t,key:a},e,React__default.default.createElement(ReplyIndicator,null))):null});return React__default.default.createElement(Wrapper,{id:o},React__default.default.createElement(avatar.Avatar,{href:_,image:c,size:32,tooltipContent:e,tooltipSx:t}),React__default.default.createElement(box.Box,{$flex:1,$dir:"column"},React__default.default.createElement(ContentWrapper,{$hasReplies:S||!!l},React__default.default.createElement(CommentBox,null,React__default.default.createElement(paragraph.P,{$bold:!0,$color:"grey-2",$fontSize:14,$lineHeight:20},f),React__default.default.createElement(paragraph.P,{sx:"letter-spacing: -0.176px;"},a)),React__default.default.createElement(box.Box,{$align:"flex-start",$dir:"row",$display:"flex",$gap:16,sx:"margin: 8px 0px; position: relative;"},React__default.default.createElement(thumbs_up.ThumbsUp,{color:"primary-blue-2",onClick:e=>{e.stopPropagation(),y(e=>!e),b({y:e.clientY,x:e.clientX}),g(400<e.clientY?"up":"down")},size:24,sx:"border-radius: 50%; cursor: pointer; flex-shrink: 0;"}),React__default.default.createElement(comment.Comment,{color:"primary-blue-2",onClick:()=>v(e=>!e),size:24,sx:"border-radius: 50%; cursor: pointer; flex-shrink: 0;"}),React__default.default.createElement(paragraph.P,{$color:"grey-7"},"•"),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:12,$lineHeight:24,sx:"flex-shrink: 0;"},r),React__default.default.createElement(box.Box,{$display:"flex",$flow:"row wrap",$gap:6,sx:"max-width: calc(100% - 190px); margin-left: auto;"},d,p),x&&React__default.default.createElement(portal.Portal,null,React__default.default.createElement(PickerWrapper,{$pickerOrientation:h,$top:R.y,$left:R.x},React__default.default.createElement(Picker__default.default,{data:emojis.default,onEmojiSelect:({native:e})=>{n(e),y(!1)},onClickOutside:()=>y(!1),maxFrequentRows:1,navPosition:"none",previewPosition:"none",perLine:9,theme:"auto"}))))),S&&E&&React__default.default.createElement(RepliesWrapper,null,W),!E&&!l&&S&&React__default.default.createElement(RepliesWrapper,null,React__default.default.createElement(ReplyWrapper,{$hasLine:!1},React__default.default.createElement(button.Button,{onClick:s,size:"small",sx:"color: var(--color-grey-3);",type:"text"},"show replies"),React__default.default.createElement(ReplyIndicator,null))),l&&React__default.default.createElement(RepliesWrapper,null,React__default.default.createElement(ReplyWrapper,{$hasLine:!1},React__default.default.createElement(button.Button,{onClick:s,size:"small",sx:"color: var(--color-grey-3);",type:"text"},"show more replies"),React__default.default.createElement(ReplyIndicator,null))),$&&React__default.default.createElement(CommentWrapper,{onSubmit:e=>{e.stopPropagation(),e.preventDefault(),i(C),q("")}},React__default.default.createElement(text_input.TextInput,{bg:"var(--color-grey-10)",placeholder:"Write a reply",onChange:e=>{q(e.target.value)},value:C}))))},Wrapper=styled.styled.div`
|
|
120
3
|
max-width: 700px;
|
|
121
4
|
display: flex;
|
|
122
5
|
flex-direction: row;
|
|
@@ -124,12 +7,10 @@ const Wrapper = styled.styled.div `
|
|
|
124
7
|
gap: 12px;
|
|
125
8
|
justify-content: space-between;
|
|
126
9
|
position: relative;
|
|
127
|
-
|
|
128
|
-
const ContentWrapper = styled.styled.div `
|
|
10
|
+
`,ContentWrapper=styled.styled.div`
|
|
129
11
|
display: flex;
|
|
130
12
|
flex-direction: column;
|
|
131
|
-
${({
|
|
132
|
-
? `
|
|
13
|
+
${({$hasReplies:e})=>e?`
|
|
133
14
|
position: relative;
|
|
134
15
|
|
|
135
16
|
&::before {
|
|
@@ -139,55 +20,44 @@ const ContentWrapper = styled.styled.div `
|
|
|
139
20
|
left: -28px;
|
|
140
21
|
height: calc(100% - 12px);
|
|
141
22
|
border-left: 2px solid var(--color-grey-9);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
`;
|
|
145
|
-
const CommentBox = styled.styled.div `
|
|
23
|
+
}`:""}
|
|
24
|
+
`,CommentBox=styled.styled.div`
|
|
146
25
|
padding: 16px;
|
|
147
26
|
display: flex;
|
|
148
27
|
flex-direction: column;
|
|
149
28
|
gap: 8px;
|
|
150
29
|
background-color: var(--color-grey-10);
|
|
151
30
|
border-radius: 16px;
|
|
152
|
-
|
|
153
|
-
const PickerWrapper = styled.styled.div `
|
|
31
|
+
`,PickerWrapper=styled.styled.div`
|
|
154
32
|
position: absolute;
|
|
155
33
|
z-index: 1000;
|
|
156
34
|
|
|
157
|
-
${({
|
|
158
|
-
top: ${({
|
|
159
|
-
left: ${({
|
|
160
|
-
|
|
161
|
-
const Reaction = styled.styled.div `
|
|
35
|
+
${({$pickerOrientation:e})=>"up"===e?"transform: translateY(-345px);":""}
|
|
36
|
+
top: ${({$top:e})=>e}px;
|
|
37
|
+
left: ${({$left:e})=>e}px;
|
|
38
|
+
`,Reaction=styled.styled.div`
|
|
162
39
|
${styles.Styles.flex}
|
|
163
40
|
display: flex;
|
|
164
41
|
padding: 2px 6px;
|
|
165
42
|
border-radius: 12px;
|
|
166
43
|
cursor: pointer;
|
|
167
|
-
${({
|
|
168
|
-
? `
|
|
44
|
+
${({$userSelected:e})=>e?`
|
|
169
45
|
background-color: var(--color-primary-blue-4);
|
|
170
46
|
border: 1px solid var(--color-primary-blue-3);
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
`;
|
|
174
|
-
const RepliesWrapper = styled.styled.div `
|
|
47
|
+
`:""}
|
|
48
|
+
`,RepliesWrapper=styled.styled.div`
|
|
175
49
|
padding-top: 12px;
|
|
176
|
-
|
|
177
|
-
const ReplyWrapper = styled.styled.div `
|
|
50
|
+
`,ReplyWrapper=styled.styled.div`
|
|
178
51
|
position: relative;
|
|
179
|
-
${({
|
|
180
|
-
? `
|
|
52
|
+
${({$hasLine:e})=>e?`
|
|
181
53
|
&::before {
|
|
182
54
|
content: "";
|
|
183
55
|
position: absolute;
|
|
184
56
|
left: -28px;
|
|
185
57
|
height: 100%;
|
|
186
58
|
border-left: 2px solid var(--color-grey-9);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
`;
|
|
190
|
-
const ReplyIndicator = styled.styled.div `
|
|
59
|
+
}`:""}
|
|
60
|
+
`,ReplyIndicator=styled.styled.div`
|
|
191
61
|
position: absolute;
|
|
192
62
|
top: -12px;
|
|
193
63
|
left: -28px;
|
|
@@ -197,8 +67,7 @@ const ReplyIndicator = styled.styled.div `
|
|
|
197
67
|
border: 2px solid var(--color-grey-9);
|
|
198
68
|
border-top: none;
|
|
199
69
|
border-right: none;
|
|
200
|
-
|
|
201
|
-
const CommentWrapper = styled.styled.form `
|
|
70
|
+
`,CommentWrapper=styled.styled.form`
|
|
202
71
|
label {
|
|
203
72
|
margin-bottom: 16px;
|
|
204
73
|
}
|
|
@@ -206,6 +75,4 @@ const CommentWrapper = styled.styled.form `
|
|
|
206
75
|
box-shadow: var(--elevation-6);
|
|
207
76
|
border-radius: 16px;
|
|
208
77
|
}
|
|
209
|
-
`;
|
|
210
|
-
|
|
211
|
-
exports.Comment = Comment;
|
|
78
|
+
`;exports.Comment=Comment;
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const abbrTimeBeforeDate = (date) => {
|
|
4
|
-
const now = new Date();
|
|
5
|
-
const diff = now.getTime() - date.getTime();
|
|
6
|
-
if (diff < 60000) {
|
|
7
|
-
// under 1 min
|
|
8
|
-
return 'Now';
|
|
9
|
-
}
|
|
10
|
-
else if (diff < 3600000) {
|
|
11
|
-
// under one hour
|
|
12
|
-
const minutes = Math.floor(diff / 60000);
|
|
13
|
-
return `${minutes}m`;
|
|
14
|
-
}
|
|
15
|
-
else if (diff < 86400000) {
|
|
16
|
-
// under one day
|
|
17
|
-
const hours = Math.floor(diff / 3600000);
|
|
18
|
-
return `${hours}h`;
|
|
19
|
-
}
|
|
20
|
-
else if (diff < 604800000) {
|
|
21
|
-
// under one week
|
|
22
|
-
const days = Math.floor(diff / 86400000);
|
|
23
|
-
return `${days}d`;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return `${Math.floor(diff / 604800000)}w`;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
exports.abbrTimeBeforeDate = abbrTimeBeforeDate;
|
|
1
|
+
"use strict";const abbrTimeBeforeDate=e=>{e=(new Date).getTime()-e.getTime();return e<6e4?"Now":e<36e5?Math.floor(e/6e4)+"m":e<864e5?Math.floor(e/36e5)+"h":e<6048e5?Math.floor(e/864e5)+"d":Math.floor(e/6048e5)+"w"};exports.abbrTimeBeforeDate=abbrTimeBeforeDate;
|