@soul-refiner/design-system 1.7.22 → 2.0.0-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/components/editor/plugins/blocks/plate-button.d.ts +2 -2
- package/dist/components/editor/plugins/blocks/separator.d.ts +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +48153 -5
- package/package.json +15 -14
- package/dist/common/colors.js +0 -135
- package/dist/common/date.js +0 -28
- package/dist/common/index.js +0 -3
- package/dist/common/styles.js +0 -63
- package/dist/components/actions/button/button.js +0 -318
- package/dist/components/actions/button/index.js +0 -1
- package/dist/components/actions/dropdown/dropdown.js +0 -227
- package/dist/components/actions/dropdown/index.js +0 -1
- package/dist/components/actions/index.js +0 -6
- package/dist/components/actions/rate/index.js +0 -1
- package/dist/components/actions/rate/rate.js +0 -47
- package/dist/components/actions/switch/index.js +0 -1
- package/dist/components/actions/switch/switch.js +0 -72
- package/dist/components/actions/toggle/index.js +0 -1
- package/dist/components/actions/toggle/toggle.js +0 -57
- package/dist/components/actions/upload/index.js +0 -1
- package/dist/components/actions/upload/upload.js +0 -156
- package/dist/components/atoms/box/box.js +0 -16
- package/dist/components/atoms/box/index.js +0 -1
- package/dist/components/atoms/colors/colors.js +0 -35
- package/dist/components/atoms/colors/index.js +0 -1
- package/dist/components/atoms/hide/hide.js +0 -9
- package/dist/components/atoms/hide/index.js +0 -1
- package/dist/components/atoms/index.js +0 -5
- package/dist/components/atoms/seconds_to_duration/index.js +0 -1
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +0 -27
- package/dist/components/atoms/time_ago/index.js +0 -1
- package/dist/components/atoms/time_ago/time_ago.js +0 -31
- package/dist/components/atoms/typography/display.js +0 -10
- package/dist/components/atoms/typography/heading.js +0 -35
- package/dist/components/atoms/typography/index.js +0 -4
- package/dist/components/atoms/typography/paragraph.js +0 -18
- package/dist/components/atoms/typography/typography.js +0 -12
- package/dist/components/card/action/action.js +0 -72
- package/dist/components/card/action/index.js +0 -1
- package/dist/components/card/audio/audio.js +0 -130
- package/dist/components/card/audio/index.js +0 -1
- package/dist/components/card/card.js +0 -35
- package/dist/components/card/feature/feature.js +0 -188
- package/dist/components/card/feature/index.js +0 -1
- package/dist/components/card/index.js +0 -1
- package/dist/components/card/meeting/index.js +0 -1
- package/dist/components/card/meeting/meeting.js +0 -130
- package/dist/components/card/person/index.js +0 -1
- package/dist/components/card/person/person.js +0 -69
- package/dist/components/card/price/index.js +0 -1
- package/dist/components/card/price/price.js +0 -75
- package/dist/components/card/regular/index.js +0 -1
- package/dist/components/card/regular/regular.js +0 -33
- package/dist/components/card/video/index.js +0 -1
- package/dist/components/card/video/video.js +0 -127
- package/dist/components/card/written/index.js +0 -1
- package/dist/components/card/written/written.js +0 -130
- package/dist/components/custom/courses_selection/courses_selection.js +0 -127
- package/dist/components/custom/courses_selection/index.js +0 -1
- package/dist/components/custom/index.js +0 -2
- package/dist/components/custom/users_selection/index.js +0 -1
- package/dist/components/custom/users_selection/users_selection.js +0 -120
- package/dist/components/editor/constants.js +0 -49
- package/dist/components/editor/context.js +0 -8
- package/dist/components/editor/editor.js +0 -102
- package/dist/components/editor/icons/border-all.js +0 -3
- package/dist/components/editor/icons/border-bottom.js +0 -3
- package/dist/components/editor/icons/border-left.js +0 -3
- package/dist/components/editor/icons/border-none.js +0 -3
- package/dist/components/editor/icons/border-right.js +0 -3
- package/dist/components/editor/icons/border-top.js +0 -3
- package/dist/components/editor/icons/index.js +0 -6
- package/dist/components/editor/index.js +0 -2
- package/dist/components/editor/navbar/alignment_dropdown.js +0 -97
- package/dist/components/editor/navbar/button_modal.js +0 -55
- package/dist/components/editor/navbar/index.js +0 -1
- package/dist/components/editor/navbar/navbar.js +0 -201
- package/dist/components/editor/navbar/style_dropdown.js +0 -65
- package/dist/components/editor/plugins/blocks/blockquote.js +0 -8
- package/dist/components/editor/plugins/blocks/blocks.js +0 -50
- package/dist/components/editor/plugins/blocks/buttons.js +0 -81
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +0 -62
- package/dist/components/editor/plugins/blocks/image.js +0 -51
- package/dist/components/editor/plugins/blocks/index.js +0 -1
- package/dist/components/editor/plugins/blocks/list.js +0 -17
- package/dist/components/editor/plugins/blocks/media-popover.js +0 -32
- package/dist/components/editor/plugins/blocks/plate-button.js +0 -37
- package/dist/components/editor/plugins/blocks/popover.js +0 -11
- package/dist/components/editor/plugins/blocks/qa.js +0 -45
- package/dist/components/editor/plugins/blocks/resizable.js +0 -37
- package/dist/components/editor/plugins/blocks/separator.js +0 -19
- package/dist/components/editor/plugins/blocks/table-cell.js +0 -38
- package/dist/components/editor/plugins/blocks/table-row.js +0 -7
- package/dist/components/editor/plugins/blocks/table.js +0 -82
- package/dist/components/editor/plugins/blocks/text.js +0 -82
- package/dist/components/editor/plugins/blocks/video.js +0 -32
- package/dist/components/editor/plugins/index.js +0 -4
- package/dist/components/editor/plugins/leafs/index.js +0 -1
- package/dist/components/editor/plugins/leafs/leafs.js +0 -33
- package/dist/components/editor/plugins/leafs/link.js +0 -74
- package/dist/components/editor/plugins/marks/index.js +0 -1
- package/dist/components/editor/plugins/marks/marks.js +0 -12
- package/dist/components/editor/plugins/plate.js +0 -37
- package/dist/components/editor/plugins/utils/exitBreak.js +0 -31
- package/dist/components/editor/plugins/utils/index.js +0 -1
- package/dist/components/editor/plugins/utils/resetBlockType.js +0 -22
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +0 -6
- package/dist/components/editor/plugins/utils/softBreak.js +0 -14
- package/dist/components/editor/plugins/utils/utils.js +0 -12
- package/dist/components/editor/simple_editor/index.js +0 -1
- package/dist/components/editor/simple_editor/navbar.js +0 -140
- package/dist/components/editor/simple_editor/plugins.js +0 -89
- package/dist/components/editor/simple_editor/simple_editor.js +0 -89
- package/dist/components/feedback/animated_toast/animated_toast.js +0 -55
- package/dist/components/feedback/animated_toast/index.js +0 -1
- package/dist/components/feedback/badge/badge.js +0 -66
- package/dist/components/feedback/badge/index.js +0 -1
- package/dist/components/feedback/banner/banner.js +0 -80
- package/dist/components/feedback/banner/index.js +0 -1
- package/dist/components/feedback/chip/chip.js +0 -94
- package/dist/components/feedback/chip/index.js +0 -1
- package/dist/components/feedback/index.js +0 -8
- package/dist/components/feedback/loader/index.js +0 -1
- package/dist/components/feedback/loader/loader.js +0 -34
- package/dist/components/feedback/notification/index.js +0 -1
- package/dist/components/feedback/notification/notification.js +0 -72
- package/dist/components/feedback/progress/index.js +0 -1
- package/dist/components/feedback/progress/progress.js +0 -87
- package/dist/components/feedback/toast/index.js +0 -1
- package/dist/components/feedback/toast/toast.js +0 -112
- package/dist/components/feedback/tooltip/index.js +0 -1
- package/dist/components/feedback/tooltip/tooltip.js +0 -26
- package/dist/components/iconography/avatar/avatar.js +0 -171
- package/dist/components/iconography/avatar/icons/approved.js +0 -5
- package/dist/components/iconography/avatar/icons/busy.js +0 -5
- package/dist/components/iconography/avatar/icons/declined.js +0 -5
- package/dist/components/iconography/avatar/icons/default.js +0 -4
- package/dist/components/iconography/avatar/icons/focus.js +0 -5
- package/dist/components/iconography/avatar/icons/index.js +0 -9
- package/dist/components/iconography/avatar/icons/locked.js +0 -5
- package/dist/components/iconography/avatar/icons/offline.js +0 -5
- package/dist/components/iconography/avatar/icons/online.js +0 -4
- package/dist/components/iconography/avatar/icons/subscribed.js +0 -9
- package/dist/components/iconography/avatar/index.js +0 -1
- package/dist/components/iconography/icon/icon.js +0 -10
- package/dist/components/iconography/icon/index.js +0 -1
- package/dist/components/iconography/index.js +0 -2
- package/dist/components/index.js +0 -12
- package/dist/components/input/calendar/calendar.js +0 -255
- package/dist/components/input/calendar/index.js +0 -1
- package/dist/components/input/checkbox/checkbox.js +0 -23
- package/dist/components/input/checkbox/index.js +0 -1
- package/dist/components/input/date/date.js +0 -517
- package/dist/components/input/date/index.js +0 -1
- package/dist/components/input/filter/filter.js +0 -319
- package/dist/components/input/filter/filter_option.js +0 -70
- package/dist/components/input/filter/index.js +0 -1
- package/dist/components/input/index.js +0 -10
- package/dist/components/input/radio/index.js +0 -1
- package/dist/components/input/radio/radio.js +0 -83
- package/dist/components/input/search/index.js +0 -1
- package/dist/components/input/search/search.js +0 -138
- package/dist/components/input/select/index.js +0 -1
- package/dist/components/input/select/select.js +0 -47
- package/dist/components/input/text_area/index.js +0 -1
- package/dist/components/input/text_area/text_area.js +0 -110
- package/dist/components/input/text_input/index.js +0 -1
- package/dist/components/input/text_input/text_input.js +0 -147
- package/dist/components/input/time/index.js +0 -1
- package/dist/components/input/time/time.js +0 -71
- package/dist/components/media/common.js +0 -1
- package/dist/components/media/index.js +0 -2
- package/dist/components/media/video/index.js +0 -1
- package/dist/components/media/video/video.js +0 -31
- package/dist/components/media/video-player/index.js +0 -1
- package/dist/components/media/video-player/playlist-item.js +0 -37
- package/dist/components/media/video-player/video.js +0 -197
- package/dist/components/navigation/breadcrumb/breadcrumb.js +0 -109
- package/dist/components/navigation/breadcrumb/index.js +0 -1
- package/dist/components/navigation/index.js +0 -3
- package/dist/components/navigation/inner/index.js +0 -1
- package/dist/components/navigation/inner/inner.js +0 -187
- package/dist/components/navigation/tabs/index.js +0 -1
- package/dist/components/navigation/tabs/tabs.js +0 -150
- package/dist/components/surfaces/accordion/accordion.js +0 -47
- package/dist/components/surfaces/accordion/index.js +0 -1
- package/dist/components/surfaces/calendar_date/calendar_date.js +0 -45
- package/dist/components/surfaces/calendar_date/index.js +0 -1
- package/dist/components/surfaces/carousel/card/card.js +0 -96
- package/dist/components/surfaces/carousel/card/index.js +0 -1
- package/dist/components/surfaces/carousel/index.js +0 -1
- package/dist/components/surfaces/comment/comment.js +0 -188
- package/dist/components/surfaces/comment/helpers.js +0 -26
- package/dist/components/surfaces/comment/index.js +0 -1
- package/dist/components/surfaces/drawer/drawer.js +0 -130
- package/dist/components/surfaces/drawer/index.js +0 -1
- package/dist/components/surfaces/index.js +0 -9
- package/dist/components/surfaces/message/index.js +0 -1
- package/dist/components/surfaces/message/message.js +0 -44
- package/dist/components/surfaces/modal/index.js +0 -1
- package/dist/components/surfaces/modal/modal.js +0 -127
- package/dist/components/surfaces/portal/index.js +0 -1
- package/dist/components/surfaces/portal/portal.js +0 -26
- package/dist/components/surfaces/post/index.js +0 -1
- package/dist/components/surfaces/post/post.js +0 -230
- package/dist/components/table/index.js +0 -1
- package/dist/components/table/table/index.js +0 -1
- package/dist/components/table/table/table.js +0 -184
- package/dist/emoji/emojis.json +0 -17577
- package/dist/icons/arrow/arrow_all.js +0 -6
- package/dist/icons/arrow/arrow_all_diagonal.js +0 -6
- package/dist/icons/arrow/arrow_both_downwards.js +0 -6
- package/dist/icons/arrow/arrow_both_upwards.js +0 -6
- package/dist/icons/arrow/arrow_circle_left.js +0 -6
- package/dist/icons/arrow/arrow_circle_left_double.js +0 -6
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +0 -8
- package/dist/icons/arrow/arrow_circle_right.js +0 -6
- package/dist/icons/arrow/arrow_circle_right_double.js +0 -6
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_down_left.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_down_right.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_up_left.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_up_right.js +0 -6
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +0 -6
- package/dist/icons/arrow/arrow_down.js +0 -6
- package/dist/icons/arrow/arrow_down_bold.js +0 -6
- package/dist/icons/arrow/arrow_down_circle.js +0 -6
- package/dist/icons/arrow/arrow_left.js +0 -6
- package/dist/icons/arrow/arrow_left_bold.js +0 -6
- package/dist/icons/arrow/arrow_left_circle.js +0 -6
- package/dist/icons/arrow/arrow_left_curved.js +0 -6
- package/dist/icons/arrow/arrow_left_curved_circle.js +0 -6
- package/dist/icons/arrow/arrow_right.js +0 -6
- package/dist/icons/arrow/arrow_right_bold.js +0 -6
- package/dist/icons/arrow/arrow_right_circle.js +0 -6
- package/dist/icons/arrow/arrow_right_curved.js +0 -6
- package/dist/icons/arrow/arrow_right_curved_circle.js +0 -6
- package/dist/icons/arrow/arrow_up.js +0 -6
- package/dist/icons/arrow/arrow_up_bold.js +0 -6
- package/dist/icons/arrow/arrow_up_circle.js +0 -6
- package/dist/icons/arrow/chevron_down.js +0 -6
- package/dist/icons/arrow/chevron_down_circle.js +0 -6
- package/dist/icons/arrow/chevron_down_double.js +0 -6
- package/dist/icons/arrow/chevron_down_double_circle.js +0 -6
- package/dist/icons/arrow/chevron_left.js +0 -6
- package/dist/icons/arrow/chevron_left_circle.js +0 -6
- package/dist/icons/arrow/chevron_left_double.js +0 -6
- package/dist/icons/arrow/chevron_left_double_circle.js +0 -6
- package/dist/icons/arrow/chevron_right.js +0 -6
- package/dist/icons/arrow/chevron_right_circle.js +0 -6
- package/dist/icons/arrow/chevron_right_double.js +0 -6
- package/dist/icons/arrow/chevron_right_double_circle.js +0 -6
- package/dist/icons/arrow/chevron_scroll.js +0 -6
- package/dist/icons/arrow/chevron_up.js +0 -6
- package/dist/icons/arrow/chevron_up_circle.js +0 -6
- package/dist/icons/arrow/chevron_up_double.js +0 -6
- package/dist/icons/arrow/chevron_up_double_circle.js +0 -6
- package/dist/icons/arrow/forward_all.js +0 -6
- package/dist/icons/arrow/forward_all_bold.js +0 -6
- package/dist/icons/arrow/forward_bold.js +0 -6
- package/dist/icons/arrow/index.js +0 -62
- package/dist/icons/arrow/redo.js +0 -6
- package/dist/icons/arrow/redo_bold.js +0 -6
- package/dist/icons/arrow/reply.js +0 -6
- package/dist/icons/arrow/reply_all.js +0 -6
- package/dist/icons/arrow/reply_all_bold.js +0 -6
- package/dist/icons/arrow/reply_bold.js +0 -6
- package/dist/icons/arrow/undo.js +0 -6
- package/dist/icons/arrow/undo_bold.js +0 -6
- package/dist/icons/audio_video/drag_indicator.js +0 -6
- package/dist/icons/audio_video/eject.js +0 -6
- package/dist/icons/audio_video/equalizer.js +0 -6
- package/dist/icons/audio_video/fast_forward.js +0 -6
- package/dist/icons/audio_video/fast_forward_30.js +0 -6
- package/dist/icons/audio_video/fullscreen.js +0 -6
- package/dist/icons/audio_video/headphones.js +0 -6
- package/dist/icons/audio_video/index.js +0 -38
- package/dist/icons/audio_video/library_add.js +0 -6
- package/dist/icons/audio_video/library_delay.js +0 -6
- package/dist/icons/audio_video/library_music.js +0 -6
- package/dist/icons/audio_video/library_queue.js +0 -6
- package/dist/icons/audio_video/microphone.js +0 -6
- package/dist/icons/audio_video/musical_note.js +0 -6
- package/dist/icons/audio_video/next.js +0 -6
- package/dist/icons/audio_video/pause.js +0 -6
- package/dist/icons/audio_video/pause_circle.js +0 -6
- package/dist/icons/audio_video/play.js +0 -6
- package/dist/icons/audio_video/play_circle.js +0 -6
- package/dist/icons/audio_video/play_display.js +0 -6
- package/dist/icons/audio_video/play_pause.js +0 -6
- package/dist/icons/audio_video/play_solid.js +0 -6
- package/dist/icons/audio_video/player_list.js +0 -6
- package/dist/icons/audio_video/player_list_add.js +0 -6
- package/dist/icons/audio_video/player_list_play.js +0 -6
- package/dist/icons/audio_video/previous.js +0 -6
- package/dist/icons/audio_video/radio.js +0 -6
- package/dist/icons/audio_video/record.js +0 -6
- package/dist/icons/audio_video/repeat.js +0 -6
- package/dist/icons/audio_video/rewind.js +0 -6
- package/dist/icons/audio_video/rewind_30.js +0 -6
- package/dist/icons/audio_video/shuffle.js +0 -6
- package/dist/icons/audio_video/sound_wave.js +0 -6
- package/dist/icons/audio_video/stop.js +0 -6
- package/dist/icons/audio_video/stop_circle.js +0 -6
- package/dist/icons/audio_video/subscriptions.js +0 -6
- package/dist/icons/audio_video/tuner.js +0 -6
- package/dist/icons/audio_video/volume.js +0 -6
- package/dist/icons/audio_video/volume_high.js +0 -6
- package/dist/icons/audio_video/volume_low.js +0 -6
- package/dist/icons/audio_video/volume_slash.js +0 -6
- package/dist/icons/basic/aa_sansserif.js +0 -7
- package/dist/icons/basic/aa_serif.js +0 -7
- package/dist/icons/basic/anchor.js +0 -8
- package/dist/icons/basic/bible.js +0 -6
- package/dist/icons/basic/bold.js +0 -6
- package/dist/icons/basic/book.js +0 -6
- package/dist/icons/basic/book_open.js +0 -6
- package/dist/icons/basic/bookmark.js +0 -6
- package/dist/icons/basic/bookmark_add.js +0 -6
- package/dist/icons/basic/bookmark_slash.js +0 -6
- package/dist/icons/basic/bookmarks.js +0 -6
- package/dist/icons/basic/books.js +0 -9
- package/dist/icons/basic/box.js +0 -6
- package/dist/icons/basic/briefcase.js +0 -6
- package/dist/icons/basic/browse_activity.js +0 -6
- package/dist/icons/basic/browser.js +0 -6
- package/dist/icons/basic/browser_slash.js +0 -6
- package/dist/icons/basic/calculator.js +0 -6
- package/dist/icons/basic/camera.js +0 -6
- package/dist/icons/basic/camera_add.js +0 -6
- package/dist/icons/basic/camera_slash.js +0 -6
- package/dist/icons/basic/checkmark.js +0 -6
- package/dist/icons/basic/checkmark_circle.js +0 -8
- package/dist/icons/basic/checkmark_filled.js +0 -6
- package/dist/icons/basic/checkmarks.js +0 -6
- package/dist/icons/basic/circle.js +0 -6
- package/dist/icons/basic/circle_slash.js +0 -8
- package/dist/icons/basic/clear_text_style.js +0 -6
- package/dist/icons/basic/close.js +0 -6
- package/dist/icons/basic/close_circle.js +0 -6
- package/dist/icons/basic/close_filled.js +0 -6
- package/dist/icons/basic/copy.js +0 -6
- package/dist/icons/basic/delete.js +0 -6
- package/dist/icons/basic/detail.js +0 -6
- package/dist/icons/basic/dot.js +0 -6
- package/dist/icons/basic/download.js +0 -6
- package/dist/icons/basic/download_arrow.js +0 -6
- package/dist/icons/basic/droplet.js +0 -8
- package/dist/icons/basic/ellipsis_horizontal.js +0 -6
- package/dist/icons/basic/ellipsis_horizontal_circle.js +0 -6
- package/dist/icons/basic/ellipsis_vertical.js +0 -6
- package/dist/icons/basic/ellipsis_vertical_circle.js +0 -6
- package/dist/icons/basic/eye.js +0 -6
- package/dist/icons/basic/eye_slash.js +0 -6
- package/dist/icons/basic/fingerprint.js +0 -6
- package/dist/icons/basic/flag.js +0 -6
- package/dist/icons/basic/flag_wave.js +0 -6
- package/dist/icons/basic/flag_wave_filled.js +0 -6
- package/dist/icons/basic/flame.js +0 -6
- package/dist/icons/basic/gauge.js +0 -6
- package/dist/icons/basic/glasses.js +0 -6
- package/dist/icons/basic/graduation_cap.js +0 -6
- package/dist/icons/basic/hashmark.js +0 -6
- package/dist/icons/basic/heart.js +0 -6
- package/dist/icons/basic/heart_slash.js +0 -6
- package/dist/icons/basic/highlighter.js +0 -6
- package/dist/icons/basic/home.js +0 -6
- package/dist/icons/basic/image.js +0 -6
- package/dist/icons/basic/inbox.js +0 -6
- package/dist/icons/basic/index.js +0 -131
- package/dist/icons/basic/italic.js +0 -6
- package/dist/icons/basic/layers.js +0 -6
- package/dist/icons/basic/lightening.js +0 -6
- package/dist/icons/basic/lightening_slash.js +0 -6
- package/dist/icons/basic/link.js +0 -6
- package/dist/icons/basic/link_slash.js +0 -6
- package/dist/icons/basic/loudspeaker.js +0 -6
- package/dist/icons/basic/maximize.js +0 -6
- package/dist/icons/basic/menu.js +0 -6
- package/dist/icons/basic/menu_circle.js +0 -6
- package/dist/icons/basic/menu_dots.js +0 -6
- package/dist/icons/basic/microphone_slash.js +0 -6
- package/dist/icons/basic/minimize.js +0 -6
- package/dist/icons/basic/minus.js +0 -6
- package/dist/icons/basic/minus_circle.js +0 -6
- package/dist/icons/basic/move_item.js +0 -6
- package/dist/icons/basic/new.js +0 -6
- package/dist/icons/basic/newspaper.js +0 -6
- package/dist/icons/basic/node.js +0 -6
- package/dist/icons/basic/note_pad.js +0 -7
- package/dist/icons/basic/options.js +0 -6
- package/dist/icons/basic/paint_brush.js +0 -6
- package/dist/icons/basic/paperclip.js +0 -6
- package/dist/icons/basic/paperclip_slash.js +0 -6
- package/dist/icons/basic/pencil.js +0 -6
- package/dist/icons/basic/pencil_pad.js +0 -6
- package/dist/icons/basic/plus.js +0 -6
- package/dist/icons/basic/plus_circle.js +0 -6
- package/dist/icons/basic/presentation.js +0 -6
- package/dist/icons/basic/printer.js +0 -6
- package/dist/icons/basic/profile.js +0 -6
- package/dist/icons/basic/profile_check.js +0 -6
- package/dist/icons/basic/pulse.js +0 -6
- package/dist/icons/basic/qr_code.js +0 -6
- package/dist/icons/basic/resize.js +0 -8
- package/dist/icons/basic/scan.js +0 -6
- package/dist/icons/basic/scissors.js +0 -6
- package/dist/icons/basic/screenshot.js +0 -6
- package/dist/icons/basic/search.js +0 -6
- package/dist/icons/basic/select_item.js +0 -7
- package/dist/icons/basic/settings.js +0 -6
- package/dist/icons/basic/share.js +0 -6
- package/dist/icons/basic/share_external.js +0 -6
- package/dist/icons/basic/square.js +0 -6
- package/dist/icons/basic/star.js +0 -6
- package/dist/icons/basic/star_circle.js +0 -6
- package/dist/icons/basic/star_filled.js +0 -6
- package/dist/icons/basic/star_filled_half.js +0 -6
- package/dist/icons/basic/star_slash.js +0 -6
- package/dist/icons/basic/sticker.js +0 -6
- package/dist/icons/basic/strikethrough.js +0 -6
- package/dist/icons/basic/subtask.js +0 -7
- package/dist/icons/basic/tax.js +0 -9
- package/dist/icons/basic/text_bg_color.js +0 -6
- package/dist/icons/basic/text_color.js +0 -6
- package/dist/icons/basic/textbox.js +0 -6
- package/dist/icons/basic/thumbs_down.js +0 -6
- package/dist/icons/basic/thumbs_up.js +0 -6
- package/dist/icons/basic/thumbs_up_filled.js +0 -6
- package/dist/icons/basic/toggle_left.js +0 -6
- package/dist/icons/basic/toggle_right.js +0 -6
- package/dist/icons/basic/translate.js +0 -6
- package/dist/icons/basic/trash.js +0 -6
- package/dist/icons/basic/trash_slash.js +0 -6
- package/dist/icons/basic/underline.js +0 -6
- package/dist/icons/basic/upload.js +0 -6
- package/dist/icons/basic/video.js +0 -6
- package/dist/icons/basic/video_add.js +0 -7
- package/dist/icons/basic/video_slash.js +0 -6
- package/dist/icons/basic/wrench.js +0 -6
- package/dist/icons/basic/zoom_in.js +0 -6
- package/dist/icons/basic/zoom_out.js +0 -6
- package/dist/icons/data/bar_chart.js +0 -6
- package/dist/icons/data/bar_chart_downward.js +0 -6
- package/dist/icons/data/bar_chart_downward_outline.js +0 -6
- package/dist/icons/data/bar_chart_upward.js +0 -6
- package/dist/icons/data/bar_chart_upward_outline.js +0 -6
- package/dist/icons/data/candlestick_chart.js +0 -6
- package/dist/icons/data/four_circles.js +0 -6
- package/dist/icons/data/index.js +0 -20
- package/dist/icons/data/legend_toggle.js +0 -6
- package/dist/icons/data/line_chart.js +0 -6
- package/dist/icons/data/line_chart_area.js +0 -6
- package/dist/icons/data/line_chart_area_shaded.js +0 -6
- package/dist/icons/data/line_chart_double.js +0 -6
- package/dist/icons/data/line_chart_downward.js +0 -6
- package/dist/icons/data/line_chart_node.js +0 -6
- package/dist/icons/data/line_chart_outline.js +0 -6
- package/dist/icons/data/line_chart_search.js +0 -6
- package/dist/icons/data/line_chart_stars.js +0 -6
- package/dist/icons/data/line_chart_upward.js +0 -6
- package/dist/icons/data/pie_chart.js +0 -7
- package/dist/icons/data/tree.js +0 -6
- package/dist/icons/email/index.js +0 -8
- package/dist/icons/email/mail.js +0 -6
- package/dist/icons/email/mail_check.js +0 -6
- package/dist/icons/email/mail_minus.js +0 -6
- package/dist/icons/email/mail_send.js +0 -6
- package/dist/icons/email/send.js +0 -6
- package/dist/icons/email/send_close.js +0 -6
- package/dist/icons/email/send_schedule.js +0 -6
- package/dist/icons/email/send_text.js +0 -6
- package/dist/icons/emoji/emoji_add.js +0 -6
- package/dist/icons/emoji/index.js +0 -6
- package/dist/icons/emoji/laughing.js +0 -6
- package/dist/icons/emoji/neutral.js +0 -6
- package/dist/icons/emoji/sad.js +0 -6
- package/dist/icons/emoji/shocked.js +0 -6
- package/dist/icons/emoji/smile.js +0 -6
- package/dist/icons/file/clipboard.js +0 -6
- package/dist/icons/file/clipboard_check.js +0 -6
- package/dist/icons/file/clipboard_close.js +0 -6
- package/dist/icons/file/clipboard_minus.js +0 -6
- package/dist/icons/file/clipboard_plus.js +0 -6
- package/dist/icons/file/clipboard_text.js +0 -6
- package/dist/icons/file/file.js +0 -6
- package/dist/icons/file/file_add.js +0 -6
- package/dist/icons/file/file_check.js +0 -6
- package/dist/icons/file/file_close.js +0 -6
- package/dist/icons/file/file_code.js +0 -6
- package/dist/icons/file/file_download.js +0 -6
- package/dist/icons/file/file_draft.js +0 -6
- package/dist/icons/file/file_gear.js +0 -7
- package/dist/icons/file/file_minus.js +0 -6
- package/dist/icons/file/file_plus.js +0 -6
- package/dist/icons/file/file_scan.js +0 -6
- package/dist/icons/file/file_shred.js +0 -6
- package/dist/icons/file/file_text.js +0 -6
- package/dist/icons/file/file_upload.js +0 -6
- package/dist/icons/file/folder.js +0 -6
- package/dist/icons/file/folder_add.js +0 -6
- package/dist/icons/file/folder_arrow.js +0 -6
- package/dist/icons/file/folder_check.js +0 -6
- package/dist/icons/file/folder_close.js +0 -6
- package/dist/icons/file/folder_cloud.js +0 -6
- package/dist/icons/file/folder_gear.js +0 -7
- package/dist/icons/file/folder_minus.js +0 -6
- package/dist/icons/file/folder_music.js +0 -6
- package/dist/icons/file/folder_open.js +0 -6
- package/dist/icons/file/folder_plus.js +0 -6
- package/dist/icons/file/folder_zip.js +0 -6
- package/dist/icons/file/index.js +0 -36
- package/dist/icons/file/note.js +0 -6
- package/dist/icons/file/note_text.js +0 -6
- package/dist/icons/file/pdf.js +0 -6
- package/dist/icons/file/photo.js +0 -6
- package/dist/icons/finance/bitcoin.js +0 -6
- package/dist/icons/finance/coins.js +0 -10
- package/dist/icons/finance/credit_card.js +0 -6
- package/dist/icons/finance/credit_card_add.js +0 -6
- package/dist/icons/finance/credit_card_face.js +0 -6
- package/dist/icons/finance/credit_card_member.js +0 -6
- package/dist/icons/finance/credit_card_outcome.js +0 -6
- package/dist/icons/finance/credit_card_scan.js +0 -6
- package/dist/icons/finance/credit_card_share.js +0 -6
- package/dist/icons/finance/credit_card_slash.js +0 -6
- package/dist/icons/finance/currency_exchange.js +0 -6
- package/dist/icons/finance/dollar.js +0 -6
- package/dist/icons/finance/ethereum.js +0 -6
- package/dist/icons/finance/index.js +0 -16
- package/dist/icons/finance/paypass.js +0 -6
- package/dist/icons/finance/strongbox.js +0 -6
- package/dist/icons/finance/wallet.js +0 -6
- package/dist/icons/index.js +0 -22
- package/dist/icons/layout/block_align_bottom.js +0 -6
- package/dist/icons/layout/block_align_center.js +0 -6
- package/dist/icons/layout/block_align_left.js +0 -6
- package/dist/icons/layout/block_align_middle.js +0 -6
- package/dist/icons/layout/block_align_right.js +0 -6
- package/dist/icons/layout/block_align_top.js +0 -6
- package/dist/icons/layout/block_horizontal.js +0 -6
- package/dist/icons/layout/block_vertical.js +0 -6
- package/dist/icons/layout/edit_shape.js +0 -6
- package/dist/icons/layout/elements.js +0 -6
- package/dist/icons/layout/elements_add.js +0 -6
- package/dist/icons/layout/elements_filled.js +0 -6
- package/dist/icons/layout/elements_masonry.js +0 -6
- package/dist/icons/layout/frame.js +0 -6
- package/dist/icons/layout/frame_stack.js +0 -6
- package/dist/icons/layout/grid.js +0 -6
- package/dist/icons/layout/grid_column_three.js +0 -6
- package/dist/icons/layout/grid_column_two.js +0 -6
- package/dist/icons/layout/grid_dynamic.js +0 -6
- package/dist/icons/layout/grid_frame.js +0 -6
- package/dist/icons/layout/grid_row_three.js +0 -6
- package/dist/icons/layout/grid_row_two.js +0 -6
- package/dist/icons/layout/grid_six.js +0 -6
- package/dist/icons/layout/grid_small.js +0 -6
- package/dist/icons/layout/iframe.js +0 -6
- package/dist/icons/layout/index.js +0 -44
- package/dist/icons/layout/kanban.js +0 -6
- package/dist/icons/layout/layout.js +0 -6
- package/dist/icons/layout/list.js +0 -6
- package/dist/icons/layout/list_filled.js +0 -11
- package/dist/icons/layout/padding.js +0 -6
- package/dist/icons/layout/page_break.js +0 -6
- package/dist/icons/layout/rotate_left.js +0 -6
- package/dist/icons/layout/rotate_right.js +0 -6
- package/dist/icons/layout/ruler.js +0 -6
- package/dist/icons/layout/segment.js +0 -6
- package/dist/icons/layout/select_area.js +0 -6
- package/dist/icons/layout/select_boundary.js +0 -6
- package/dist/icons/layout/sidebar_left.js +0 -6
- package/dist/icons/layout/sidebar_right.js +0 -6
- package/dist/icons/layout/slides.js +0 -6
- package/dist/icons/layout/slides_horizontal.js +0 -6
- package/dist/icons/layout/slides_vertical.js +0 -11
- package/dist/icons/layout/stack.js +0 -6
- package/dist/icons/layout/text.js +0 -6
- package/dist/icons/maps/atlas.js +0 -6
- package/dist/icons/maps/compass.js +0 -6
- package/dist/icons/maps/direction.js +0 -6
- package/dist/icons/maps/direction_angled.js +0 -6
- package/dist/icons/maps/globe.js +0 -6
- package/dist/icons/maps/globe_slash.js +0 -6
- package/dist/icons/maps/index.js +0 -22
- package/dist/icons/maps/location.js +0 -6
- package/dist/icons/maps/location_slash.js +0 -6
- package/dist/icons/maps/map.js +0 -6
- package/dist/icons/maps/marker.js +0 -6
- package/dist/icons/maps/panorama.js +0 -6
- package/dist/icons/maps/pin.js +0 -6
- package/dist/icons/maps/pin_arrow.js +0 -6
- package/dist/icons/maps/pin_location.js +0 -6
- package/dist/icons/maps/pin_plus.js +0 -6
- package/dist/icons/maps/pin_question.js +0 -6
- package/dist/icons/maps/pin_slash.js +0 -6
- package/dist/icons/maps/push_pin.js +0 -6
- package/dist/icons/maps/push_pin_filled.js +0 -6
- package/dist/icons/maps/push_pin_slash.js +0 -6
- package/dist/icons/maps/radar.js +0 -6
- package/dist/icons/maps/route.js +0 -6
- package/dist/icons/message/bubble.js +0 -6
- package/dist/icons/message/bubble_question.js +0 -6
- package/dist/icons/message/comment.js +0 -6
- package/dist/icons/message/comment_add.js +0 -6
- package/dist/icons/message/comment_check.js +0 -6
- package/dist/icons/message/comment_close.js +0 -6
- package/dist/icons/message/comment_minus.js +0 -6
- package/dist/icons/message/comment_text.js +0 -6
- package/dist/icons/message/index.js +0 -8
- package/dist/icons/misc/advertisement.js +0 -6
- package/dist/icons/misc/atom.js +0 -6
- package/dist/icons/misc/bone.js +0 -6
- package/dist/icons/misc/brightness_high.js +0 -6
- package/dist/icons/misc/brightness_low.js +0 -6
- package/dist/icons/misc/contrast.js +0 -6
- package/dist/icons/misc/crosshairs.js +0 -6
- package/dist/icons/misc/crown.js +0 -6
- package/dist/icons/misc/footprint.js +0 -6
- package/dist/icons/misc/form.js +0 -6
- package/dist/icons/misc/funnel.js +0 -6
- package/dist/icons/misc/index.js +0 -25
- package/dist/icons/misc/infinite.js +0 -6
- package/dist/icons/misc/insert_button.js +0 -6
- package/dist/icons/misc/light_bulb.js +0 -6
- package/dist/icons/misc/moon.js +0 -6
- package/dist/icons/misc/nut.js +0 -6
- package/dist/icons/misc/planet.js +0 -6
- package/dist/icons/misc/plus_thick.js +0 -6
- package/dist/icons/misc/pocket.js +0 -6
- package/dist/icons/misc/rocket.js +0 -6
- package/dist/icons/misc/soup.js +0 -10
- package/dist/icons/misc/sun.js +0 -6
- package/dist/icons/misc/toy_horse.js +0 -6
- package/dist/icons/misc/trophy.js +0 -6
- package/dist/icons/misc/watercloset.js +0 -6
- package/dist/icons/notifications/alert_circle.js +0 -6
- package/dist/icons/notifications/alert_octogon.js +0 -6
- package/dist/icons/notifications/alert_triangle.js +0 -6
- package/dist/icons/notifications/app_notification.js +0 -6
- package/dist/icons/notifications/bell.js +0 -6
- package/dist/icons/notifications/bell_alert.js +0 -6
- package/dist/icons/notifications/bell_checkmark.js +0 -6
- package/dist/icons/notifications/bell_minus.js +0 -6
- package/dist/icons/notifications/bell_plus.js +0 -6
- package/dist/icons/notifications/bell_ring.js +0 -8
- package/dist/icons/notifications/bell_slash.js +0 -6
- package/dist/icons/notifications/close_octogon.js +0 -6
- package/dist/icons/notifications/index.js +0 -14
- package/dist/icons/notifications/information.js +0 -6
- package/dist/icons/notifications/minus_octogon.js +0 -6
- package/dist/icons/notifications/question_circle.js +0 -6
- package/dist/icons/people/group.js +0 -6
- package/dist/icons/people/group_add.js +0 -6
- package/dist/icons/people/group_chat.js +0 -8
- package/dist/icons/people/group_remove.js +0 -6
- package/dist/icons/people/group_send.js +0 -7
- package/dist/icons/people/groups.js +0 -6
- package/dist/icons/people/index.js +0 -13
- package/dist/icons/people/person.js +0 -6
- package/dist/icons/people/person_add.js +0 -6
- package/dist/icons/people/person_checkmark.js +0 -6
- package/dist/icons/people/person_circle.js +0 -8
- package/dist/icons/people/person_close.js +0 -8
- package/dist/icons/people/person_remove.js +0 -6
- package/dist/icons/people/person_slash.js +0 -8
- package/dist/icons/phone/index.js +0 -14
- package/dist/icons/phone/keypad.js +0 -6
- package/dist/icons/phone/phone.js +0 -6
- package/dist/icons/phone/phone_add.js +0 -6
- package/dist/icons/phone/phone_calling.js +0 -6
- package/dist/icons/phone/phone_check.js +0 -6
- package/dist/icons/phone/phone_close.js +0 -6
- package/dist/icons/phone/phone_decline.js +0 -6
- package/dist/icons/phone/phone_end.js +0 -6
- package/dist/icons/phone/phone_forwarded.js +0 -6
- package/dist/icons/phone/phone_hash.js +0 -6
- package/dist/icons/phone/phone_incoming.js +0 -6
- package/dist/icons/phone/phone_missed.js +0 -6
- package/dist/icons/phone/phone_outgoing.js +0 -6
- package/dist/icons/phone/phone_pause.js +0 -6
- package/dist/icons/phone/phone_slash.js +0 -6
- package/dist/icons/phone/voicemail.js +0 -6
- package/dist/icons/security/index.js +0 -11
- package/dist/icons/security/key.js +0 -6
- package/dist/icons/security/key_slash.js +0 -6
- package/dist/icons/security/lock.js +0 -6
- package/dist/icons/security/lock_circle.js +0 -6
- package/dist/icons/security/lock_open.js +0 -6
- package/dist/icons/security/lock_slash.js +0 -6
- package/dist/icons/security/shield.js +0 -6
- package/dist/icons/security/shield_checkmark.js +0 -6
- package/dist/icons/security/shield_lock.js +0 -6
- package/dist/icons/security/shield_slash.js +0 -6
- package/dist/icons/security/verified.js +0 -6
- package/dist/icons/shopping/basket.js +0 -6
- package/dist/icons/shopping/cart.js +0 -6
- package/dist/icons/shopping/cart_filled.js +0 -6
- package/dist/icons/shopping/coupon.js +0 -6
- package/dist/icons/shopping/coupon_cut.js +0 -6
- package/dist/icons/shopping/delivery.js +0 -6
- package/dist/icons/shopping/discount.js +0 -6
- package/dist/icons/shopping/gift.js +0 -6
- package/dist/icons/shopping/gift_bag.js +0 -6
- package/dist/icons/shopping/index.js +0 -15
- package/dist/icons/shopping/inventory.js +0 -6
- package/dist/icons/shopping/point_of_sale.js +0 -6
- package/dist/icons/shopping/shirt.js +0 -6
- package/dist/icons/shopping/tag.js +0 -6
- package/dist/icons/shopping/tag_diagonal.js +0 -6
- package/dist/icons/shopping/tote.js +0 -6
- package/dist/icons/special/index.js +0 -4
- package/dist/icons/special/upload_audio.js +0 -11
- package/dist/icons/special/upload_file.js +0 -6
- package/dist/icons/special/upload_image.js +0 -8
- package/dist/icons/special/upload_video.js +0 -9
- package/dist/icons/symbols/at.js +0 -6
- package/dist/icons/symbols/cc.js +0 -6
- package/dist/icons/symbols/cmd.js +0 -6
- package/dist/icons/symbols/facebook.js +0 -6
- package/dist/icons/symbols/google.js +0 -9
- package/dist/icons/symbols/hash.js +0 -6
- package/dist/icons/symbols/index.js +0 -9
- package/dist/icons/symbols/instagram.js +0 -18
- package/dist/icons/symbols/messenger.js +0 -12
- package/dist/icons/symbols/twitter.js +0 -6
- package/dist/icons/technology/battery.js +0 -6
- package/dist/icons/technology/battery_100.js +0 -6
- package/dist/icons/technology/battery_20.js +0 -6
- package/dist/icons/technology/battery_40.js +0 -6
- package/dist/icons/technology/battery_60.js +0 -6
- package/dist/icons/technology/battery_80.js +0 -6
- package/dist/icons/technology/battery_charging.js +0 -6
- package/dist/icons/technology/battery_slash.js +0 -6
- package/dist/icons/technology/devices.js +0 -6
- package/dist/icons/technology/floppy_disk.js +0 -6
- package/dist/icons/technology/index.js +0 -17
- package/dist/icons/technology/iphone.js +0 -6
- package/dist/icons/technology/laptop.js +0 -6
- package/dist/icons/technology/mobile.js +0 -6
- package/dist/icons/technology/monitor.js +0 -6
- package/dist/icons/technology/server.js +0 -6
- package/dist/icons/technology/sim_card.js +0 -6
- package/dist/icons/technology/usb_stick.js +0 -6
- package/dist/icons/text/align_center.js +0 -6
- package/dist/icons/text/align_justified.js +0 -6
- package/dist/icons/text/align_left.js +0 -6
- package/dist/icons/text/align_right.js +0 -6
- package/dist/icons/text/code_block.js +0 -6
- package/dist/icons/text/divider.js +0 -6
- package/dist/icons/text/footnote.js +0 -8
- package/dist/icons/text/indent_decrease.js +0 -6
- package/dist/icons/text/indent_increase.js +0 -6
- package/dist/icons/text/index.js +0 -13
- package/dist/icons/text/list_ordered.js +0 -6
- package/dist/icons/text/list_unordered.js +0 -6
- package/dist/icons/text/quote.js +0 -6
- package/dist/icons/text/table.js +0 -6
- package/dist/icons/time/alarm.js +0 -6
- package/dist/icons/time/alarm_checkmark.js +0 -6
- package/dist/icons/time/alarm_minus.js +0 -6
- package/dist/icons/time/alarm_plus.js +0 -6
- package/dist/icons/time/alarm_slash.js +0 -6
- package/dist/icons/time/alarm_snooze.js +0 -6
- package/dist/icons/time/calendar.js +0 -6
- package/dist/icons/time/calendar_add.js +0 -6
- package/dist/icons/time/calendar_checkmark.js +0 -6
- package/dist/icons/time/calendar_close.js +0 -6
- package/dist/icons/time/calendar_dates.js +0 -6
- package/dist/icons/time/calendar_minus.js +0 -6
- package/dist/icons/time/calendar_plus.js +0 -6
- package/dist/icons/time/calendar_scroll.js +0 -8
- package/dist/icons/time/clock.js +0 -6
- package/dist/icons/time/clock_history.js +0 -6
- package/dist/icons/time/index.js +0 -19
- package/dist/icons/time/stopwatch.js +0 -6
- package/dist/icons/time/timer.js +0 -6
- package/dist/icons/time/watch.js +0 -6
- package/dist/styles/output.css +0 -1771
- package/dist/types/attributes.js +0 -1
- package/dist/types/index.js +0 -1
- package/dist/utils/date.js +0 -98
- package/dist/utils/function.js +0 -1
- package/dist/utils/index.js +0 -2
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { H, P } from '../../atoms/typography';
|
|
7
|
-
import { TimeAgo } from '../../atoms/time_ago/time_ago';
|
|
8
|
-
import { Button } from '../../actions/button';
|
|
9
|
-
import { Avatar } from '../../iconography/avatar';
|
|
10
|
-
import { Lock } from '../../../icons';
|
|
11
|
-
import { Modal } from '../modal';
|
|
12
|
-
import { ChevronLeft, ChevronRight } from '../../../icons/arrow';
|
|
13
|
-
export const Post = ({ actions, author, authorActive, authorHref, authorImage, avatarTooltipContent, avatarTooltipSx, children, content, createdDate, dropdown, hasComments, id, images, isPaywalled = false, onJoin, }) => {
|
|
14
|
-
const componentId = React.useId();
|
|
15
|
-
const [curr, setCurr] = React.useState(-1);
|
|
16
|
-
const [modalContentSize, setModalContentSize] = React.useState({
|
|
17
|
-
x: '30vw',
|
|
18
|
-
y: '30vh',
|
|
19
|
-
});
|
|
20
|
-
React.useEffect(() => {
|
|
21
|
-
const handleKeyEvent = (event) => {
|
|
22
|
-
if (event.key === 'ArrowLeft') {
|
|
23
|
-
handleDecrement();
|
|
24
|
-
}
|
|
25
|
-
else if (event.key === 'ArrowRight') {
|
|
26
|
-
handleIncrement();
|
|
27
|
-
}
|
|
28
|
-
else if (event.key === 'Escape' || event.key === 'Enter') {
|
|
29
|
-
setCurr(-1);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
if (typeof document !== 'undefined' && !!images?.length) {
|
|
33
|
-
document.addEventListener('keydown', handleKeyEvent);
|
|
34
|
-
}
|
|
35
|
-
return () => {
|
|
36
|
-
images?.length &&
|
|
37
|
-
document.removeEventListener('keydown', handleKeyEvent);
|
|
38
|
-
};
|
|
39
|
-
}, []);
|
|
40
|
-
const _actions = React.Children.toArray(actions);
|
|
41
|
-
const _comments = React.Children.toArray(children);
|
|
42
|
-
const handleImageLoad = (event) => {
|
|
43
|
-
const { naturalHeight, naturalWidth } = event.target;
|
|
44
|
-
let x = `${naturalWidth}px`;
|
|
45
|
-
let y = `${naturalHeight}px`;
|
|
46
|
-
// if natural size is smaller than window height and width
|
|
47
|
-
if (window?.innerHeight < naturalHeight &&
|
|
48
|
-
window?.innerWidth < naturalWidth) {
|
|
49
|
-
x = `${Math.floor((window.innerHeight * 0.95 * naturalWidth) / naturalHeight)}px`;
|
|
50
|
-
y = `${Math.round((window.innerWidth * 0.95 * naturalHeight) / naturalWidth)}px`;
|
|
51
|
-
// just smaller than height
|
|
52
|
-
}
|
|
53
|
-
else if (window?.innerHeight < naturalHeight) {
|
|
54
|
-
x = `${Math.floor((window.innerHeight * 0.95 * naturalWidth) / naturalHeight)}px`;
|
|
55
|
-
y = '95vh';
|
|
56
|
-
// just smaller than width
|
|
57
|
-
}
|
|
58
|
-
else if (window?.innerWidth < naturalWidth) {
|
|
59
|
-
x = '95vw';
|
|
60
|
-
y = `${Math.round((window.innerWidth * 0.95 * naturalHeight) / naturalWidth)}px`;
|
|
61
|
-
}
|
|
62
|
-
setModalContentSize({ x, y });
|
|
63
|
-
};
|
|
64
|
-
const handleIncrement = () => {
|
|
65
|
-
setCurr((prev) => {
|
|
66
|
-
if (images?.length && prev !== images.length - 1) {
|
|
67
|
-
return prev + 1;
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return prev;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
const handleDecrement = () => {
|
|
75
|
-
setCurr((prev) => {
|
|
76
|
-
if (images?.length && prev !== 0) {
|
|
77
|
-
return prev - 1;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return prev;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
return (React.createElement(Wrapper, { id: id },
|
|
85
|
-
curr > -1 && !!images?.[curr] && (React.createElement(Modal, { alwaysRender: false, controlledOpen: true, onChange: (open) => !open && setCurr(-1) },
|
|
86
|
-
React.createElement(Modal.Content, { sx: `
|
|
87
|
-
position: relative;
|
|
88
|
-
height: ${modalContentSize.y};
|
|
89
|
-
width: ${modalContentSize.x};
|
|
90
|
-
margin: 0 auto;
|
|
91
|
-
` },
|
|
92
|
-
React.createElement(NavArrow, { "$side": "left", "$visible": curr !== 0, onClick: handleDecrement },
|
|
93
|
-
React.createElement(ChevronLeft, { color: "white", size: 48 })),
|
|
94
|
-
React.createElement(Image, { alt: "", fill: true, quality: 100, onLoad: handleImageLoad, priority: true, sizes: "100vw", src: images[curr], style: { objectFit: 'cover' } }),
|
|
95
|
-
React.createElement(NavArrow, { "$side": "right", "$visible": curr !== images.length - 1, onClick: handleIncrement },
|
|
96
|
-
React.createElement(ChevronRight, { color: "white", size: 48 }))))),
|
|
97
|
-
React.createElement(Header, null,
|
|
98
|
-
React.createElement(Avatar, { as: !!authorHref ? Link : 'button', href: authorHref, image: authorImage, size: 64, status: authorActive ? 'online' : undefined, subtitle: React.createElement(P, { as: "span", sx: "vertical-align: top;", "$fontSize": 14, "$lineHeight": 20 },
|
|
99
|
-
React.createElement(TimeAgo, { date: new Date(createdDate) })), title: React.createElement(H, { as: "span", "$bold": true, "$fontSize": 18, "$lineHeight": 26 }, author), textPosition: "right", tooltipContent: avatarTooltipContent, tooltipSx: avatarTooltipSx, sx: !!authorHref ? 'img { cursor: pointer; }' : undefined }),
|
|
100
|
-
dropdown),
|
|
101
|
-
!!content?.length && (React.createElement("div", { style: { padding: '16px 24px' } },
|
|
102
|
-
React.createElement(P, { "$textClampLines": isPaywalled ? 2 : undefined }, content))),
|
|
103
|
-
!!images?.length && (React.createElement(ImagesWrapper, { "$numImages": images.length, "$isPaywalled": isPaywalled },
|
|
104
|
-
images.slice(0, 4).map((url, i) => (React.createElement(ImageWrapper, { key: `${componentId}${url.slice(0, 15)}${i}` },
|
|
105
|
-
React.createElement(Image, { alt: "", fill: true, onClick: () => setCurr(i), quality: 100, src: url, style: { cursor: 'pointer' } })))),
|
|
106
|
-
images.length > 4 && (React.createElement(H, { as: "p", className: "more-than", "$color": "grey-10", "$fontSize": 28, "$lineHeight": 36, "$semiBold": true },
|
|
107
|
-
"+",
|
|
108
|
-
images.length - 4)))),
|
|
109
|
-
!!images?.length && isPaywalled && (React.createElement(PaywallWrapper, null,
|
|
110
|
-
React.createElement(Lock, { size: 40, color: "grey-7" }),
|
|
111
|
-
React.createElement(P, { "$fontSize": 14, "$bold": true, "$lineHeight": 20, "$color": "white" },
|
|
112
|
-
"Become a member",
|
|
113
|
-
React.createElement("br", null),
|
|
114
|
-
"to unlock this post"),
|
|
115
|
-
React.createElement(Button, { onClick: onJoin, size: "small", sx: "width: 213px;", type: "outlined" }, "Join now"))),
|
|
116
|
-
!!_actions.length && (React.createElement(ActionsWrapper, null, !isPaywalled && _actions)),
|
|
117
|
-
hasComments && !!_comments.length && (React.createElement(CommentWrapper, null, _comments))));
|
|
118
|
-
};
|
|
119
|
-
const Wrapper = styled.div `
|
|
120
|
-
position: relative;
|
|
121
|
-
max-width: 700px;
|
|
122
|
-
width: 100%;
|
|
123
|
-
background-color: var(--color-white);
|
|
124
|
-
border-radius: 24px;
|
|
125
|
-
box-shadow: var(--elevation-7);
|
|
126
|
-
|
|
127
|
-
label > div {
|
|
128
|
-
box-shadow: var(--elevation-6);
|
|
129
|
-
border-radius: 16px;
|
|
130
|
-
}
|
|
131
|
-
`;
|
|
132
|
-
const Header = styled.div `
|
|
133
|
-
padding: 16px 24px;
|
|
134
|
-
display: flex;
|
|
135
|
-
justify-content: space-between;
|
|
136
|
-
align-items: flex-start;
|
|
137
|
-
border-bottom: 1px solid var(--color-grey-9);
|
|
138
|
-
`;
|
|
139
|
-
const ImagesWrapper = styled.div `
|
|
140
|
-
position: relative;
|
|
141
|
-
display: flex;
|
|
142
|
-
gap: 8px;
|
|
143
|
-
flex-flow: row wrap;
|
|
144
|
-
justify-content: space-between;
|
|
145
|
-
|
|
146
|
-
@media screen and (max-width: 532px) {
|
|
147
|
-
overflow-y: auto;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.more-than {
|
|
151
|
-
position: absolute;
|
|
152
|
-
bottom: 94px;
|
|
153
|
-
right: 154px;
|
|
154
|
-
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
${({ $numImages }) => $numImages > 1
|
|
158
|
-
? `
|
|
159
|
-
div {
|
|
160
|
-
min-width: calc(50% - 4px);
|
|
161
|
-
max-width: calc(50% - 4px);
|
|
162
|
-
|
|
163
|
-
flex:1;
|
|
164
|
-
img {
|
|
165
|
-
object-fit: cover;
|
|
166
|
-
width: 100%;
|
|
167
|
-
height: 100%;
|
|
168
|
-
}
|
|
169
|
-
}`
|
|
170
|
-
: `
|
|
171
|
-
div > img {
|
|
172
|
-
object-fit: contain;
|
|
173
|
-
width: 100%;
|
|
174
|
-
height: 100%;
|
|
175
|
-
}
|
|
176
|
-
`}
|
|
177
|
-
|
|
178
|
-
${({ $isPaywalled }) => $isPaywalled
|
|
179
|
-
? /** TODO REMOVE USER CAN CHANGE -> SECURITY */
|
|
180
|
-
`
|
|
181
|
-
filter: blur(10px) brightness(0.6);
|
|
182
|
-
clip-path: inset(0px 0px 0px 0px);`
|
|
183
|
-
: ''}
|
|
184
|
-
`;
|
|
185
|
-
const ImageWrapper = styled.div `
|
|
186
|
-
position: relative;
|
|
187
|
-
aspect-ratio: 700 / 427;
|
|
188
|
-
flex: 1;
|
|
189
|
-
min-width: min(227px, 80vw);
|
|
190
|
-
`;
|
|
191
|
-
const PaywallWrapper = styled.div `
|
|
192
|
-
position: absolute;
|
|
193
|
-
display: flex;
|
|
194
|
-
flex-direction: column;
|
|
195
|
-
gap: 16px;
|
|
196
|
-
align-items: center;
|
|
197
|
-
top: 310px;
|
|
198
|
-
left: 242px;
|
|
199
|
-
`;
|
|
200
|
-
const ActionsWrapper = styled.div `
|
|
201
|
-
display: flex;
|
|
202
|
-
justify-content: space-around;
|
|
203
|
-
align-items: center;
|
|
204
|
-
padding: 24px;
|
|
205
|
-
`;
|
|
206
|
-
const CommentWrapper = styled.div `
|
|
207
|
-
padding: 24px;
|
|
208
|
-
display: flex;
|
|
209
|
-
flex-flow: column nowrap;
|
|
210
|
-
gap: 24px;
|
|
211
|
-
`;
|
|
212
|
-
const NavArrow = styled.button `
|
|
213
|
-
width: 48px;
|
|
214
|
-
height: 150px;
|
|
215
|
-
display: flex;
|
|
216
|
-
align-items: center;
|
|
217
|
-
justify-content: center;
|
|
218
|
-
position: fixed;
|
|
219
|
-
z-index: 100;
|
|
220
|
-
top: calc(50vh - 75px);
|
|
221
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
222
|
-
${({ $side }) => $side}: 0;
|
|
223
|
-
border-radius: ${({ $side }) => $side === 'left' ? '0 12px 12px 0' : '12px 0 0 12px'};
|
|
224
|
-
${({ $visible }) => $visible
|
|
225
|
-
? 'visibility: visible; cursor: pointer;'
|
|
226
|
-
: 'visibility: hidden; pointer-events: none;'}
|
|
227
|
-
&:hover {
|
|
228
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
229
|
-
}
|
|
230
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Table } from './table';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Table } from './table';
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { Box } from '../../';
|
|
5
|
-
const Table = ({ border = true, children, compact, footer, header, separated, striped, sx, padding = 32, }) => {
|
|
6
|
-
return (React.createElement(Box, { "$backgroundColor": "white", "$borderRadius": "large", "$display": "flex", "$dir": "column", "$gap": 32, "$padding": padding, sx: compact ? 'width: fit-content;' : '' },
|
|
7
|
-
!!header && header,
|
|
8
|
-
React.createElement(Box, { "$borderRadius": "small", sx: border ? 'border: 1px solid var(--color-grey-8);' : '' },
|
|
9
|
-
React.createElement(TableElement, { "$compact": compact, "$separated": separated, "$striped": striped, "$sx": sx }, children)),
|
|
10
|
-
!!footer && footer));
|
|
11
|
-
};
|
|
12
|
-
const TableElement = styled.table `
|
|
13
|
-
width: 100%;
|
|
14
|
-
border-collapse: collapse;
|
|
15
|
-
border-spacing: 0;
|
|
16
|
-
${({ $compact }) => ($compact ? 'width: fit-content;' : '')}
|
|
17
|
-
${({ $separated }) => $separated
|
|
18
|
-
? `
|
|
19
|
-
& > tbody > * {
|
|
20
|
-
border-bottom: 1px solid var(--color-grey-9);
|
|
21
|
-
&:last-child {
|
|
22
|
-
border-bottom: none;
|
|
23
|
-
}
|
|
24
|
-
}`
|
|
25
|
-
: ''}
|
|
26
|
-
${({ $striped }) => $striped
|
|
27
|
-
? `
|
|
28
|
-
& > tbody > *:nth-of-type(even) {
|
|
29
|
-
background-color: var(--color-grey-10);
|
|
30
|
-
}`
|
|
31
|
-
: ''}
|
|
32
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
33
|
-
`;
|
|
34
|
-
/********************************************************
|
|
35
|
-
* Table Head
|
|
36
|
-
*/
|
|
37
|
-
const Head = ({ children, ...rest }) => {
|
|
38
|
-
return React.createElement(HeadElement, { ...rest }, children);
|
|
39
|
-
};
|
|
40
|
-
const HeadElement = styled.thead `
|
|
41
|
-
tr {
|
|
42
|
-
background-color: var(--color-grey-10);
|
|
43
|
-
border-top-left-radius: 8px;
|
|
44
|
-
border-top-right-radius: 8px;
|
|
45
|
-
|
|
46
|
-
& > *:first-of-type {
|
|
47
|
-
border-top-left-radius: 8px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
& > *:last-of-type {
|
|
51
|
-
border-top-right-radius: 8px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
55
|
-
Head.displayName = 'Table.Head';
|
|
56
|
-
Table.Head = Head;
|
|
57
|
-
/********************************************************
|
|
58
|
-
* Table Body
|
|
59
|
-
*/
|
|
60
|
-
const Body = ({ children, ...rest }) => {
|
|
61
|
-
return React.createElement(BodyElement, { ...rest }, children);
|
|
62
|
-
};
|
|
63
|
-
const BodyElement = styled.tbody `
|
|
64
|
-
& > tr:last-of-type {
|
|
65
|
-
& > *:first-child {
|
|
66
|
-
border-bottom-left-radius: 8px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
& > *:last-child {
|
|
70
|
-
border-bottom-right-radius: 8px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
`;
|
|
74
|
-
Body.displayName = 'Table.Body';
|
|
75
|
-
Table.Body = Body;
|
|
76
|
-
/********************************************************
|
|
77
|
-
* Table Foot
|
|
78
|
-
*/
|
|
79
|
-
const Foot = ({ children, ...rest }) => {
|
|
80
|
-
return React.createElement("tfoot", { ...rest }, children);
|
|
81
|
-
};
|
|
82
|
-
Foot.displayName = 'Table.Foot';
|
|
83
|
-
Table.Footer = Foot;
|
|
84
|
-
const Row = ({ children, disabled, href, hoverable = false, onClick, selected, sx, ...rest }) => {
|
|
85
|
-
const handleClick = href
|
|
86
|
-
? (event) => {
|
|
87
|
-
if (event.metaKey || event.ctrlKey) {
|
|
88
|
-
const win = window.open(href, '_blank');
|
|
89
|
-
win?.focus();
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
window.location.href = href;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
: onClick
|
|
96
|
-
? (event) => {
|
|
97
|
-
onClick(event);
|
|
98
|
-
}
|
|
99
|
-
: undefined;
|
|
100
|
-
return (React.createElement(RowElement, { onClick: handleClick, "$disabled": disabled, "$hoverable": hoverable, "$isAnchor": !!href, "$selected": selected, "$sx": sx, ...rest }, children));
|
|
101
|
-
};
|
|
102
|
-
const RowElement = styled.tr `
|
|
103
|
-
display: table-row;
|
|
104
|
-
|
|
105
|
-
${({ $disabled }) => $disabled
|
|
106
|
-
? `
|
|
107
|
-
background-color: var(--color-grey-9) !important;
|
|
108
|
-
color: var(--color-grey-7);
|
|
109
|
-
& > * {
|
|
110
|
-
color: var(--color-grey-7) !important;
|
|
111
|
-
}`
|
|
112
|
-
: ''}
|
|
113
|
-
|
|
114
|
-
${({ $disabled, $hoverable }) => !$disabled && $hoverable ? 'background-color: var(--color-grey-9);' : ''}
|
|
115
|
-
|
|
116
|
-
${({ $disabled, $selected }) => !$disabled && $selected ? 'background-color: var(--color-grey-8;' : ''}
|
|
117
|
-
|
|
118
|
-
${({ $disabled, $isAnchor }) => !$disabled && $isAnchor
|
|
119
|
-
? `
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
padding-right: 24px;
|
|
122
|
-
|
|
123
|
-
&:hover {
|
|
124
|
-
background-color: var(--color-grey-10);
|
|
125
|
-
|
|
126
|
-
& > td:last-child {
|
|
127
|
-
position: relative;
|
|
128
|
-
}
|
|
129
|
-
& > td:last-child::after {
|
|
130
|
-
content: "❯";
|
|
131
|
-
color: var(--color-blue-3);
|
|
132
|
-
position: absolute;
|
|
133
|
-
right: 12px;
|
|
134
|
-
top: calc(50% - 11px);
|
|
135
|
-
}
|
|
136
|
-
}`
|
|
137
|
-
: ''}
|
|
138
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
139
|
-
`;
|
|
140
|
-
Row.displayName = 'Table.Row';
|
|
141
|
-
Table.Row = Row;
|
|
142
|
-
const Cell = ({ children, lines, padding = '16px 24px', sx, textAlign = 'left', verticalAlign = 'middle', width, }) => {
|
|
143
|
-
const percentageWidth = width ? width * (1 / 16) + '%' : undefined;
|
|
144
|
-
return (React.createElement(CellElement, { "$clamp": lines, "$padding": padding, "$sx": sx, "$textAlign": textAlign, "$verticalAlign": verticalAlign, "$width": percentageWidth ? percentageWidth : 'fit-content' },
|
|
145
|
-
React.createElement("div", null, children)));
|
|
146
|
-
};
|
|
147
|
-
const CellElement = styled.td `
|
|
148
|
-
width: ${({ $width }) => $width};
|
|
149
|
-
height: 20px;
|
|
150
|
-
font-family: var(--font-inter);
|
|
151
|
-
font-size: 14px;
|
|
152
|
-
font-weight: 400;
|
|
153
|
-
line-height: 20px;
|
|
154
|
-
color: var(--color-grey-3);
|
|
155
|
-
vertical-align: ${({ $verticalAlign }) => $verticalAlign ? $verticalAlign : ''};
|
|
156
|
-
text-align: ${({ $textAlign }) => ($textAlign ? $textAlign : '')};
|
|
157
|
-
padding: ${({ $padding }) => $padding};
|
|
158
|
-
${({ $clamp }) => $clamp
|
|
159
|
-
? `
|
|
160
|
-
& > div {
|
|
161
|
-
overflow: hidden;
|
|
162
|
-
text-overflow: ellipsis;
|
|
163
|
-
display: -webkit-box;
|
|
164
|
-
line-clamp: ${$clamp};
|
|
165
|
-
-webkit-line-clamp: ${$clamp};
|
|
166
|
-
-webkit-box-orient: vertical;
|
|
167
|
-
}`
|
|
168
|
-
: ''}
|
|
169
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
170
|
-
`;
|
|
171
|
-
Cell.displayName = 'Table.Cell';
|
|
172
|
-
Table.Cell = Cell;
|
|
173
|
-
export { Table };
|
|
174
|
-
const HeaderCell = ({ children, lines, padding = '16px 24px', sx, textAlign = 'left', verticalAlign = 'middle', width, }) => {
|
|
175
|
-
const percentageWidth = width ? width * (100 / 16) + '%' : undefined;
|
|
176
|
-
return (React.createElement(HeadCellElement, { as: "th", "$clamp": lines, "$padding": padding, "$sx": sx, "$textAlign": textAlign, "$verticalAlign": verticalAlign, "$width": percentageWidth ? percentageWidth : 'fit-content' }, children));
|
|
177
|
-
};
|
|
178
|
-
const HeadCellElement = styled(CellElement) `
|
|
179
|
-
font-size: 16px;
|
|
180
|
-
font-weight: 700;
|
|
181
|
-
line-height: 24px;
|
|
182
|
-
`;
|
|
183
|
-
HeaderCell.displayName = 'Table.HeaderCell';
|
|
184
|
-
Table.HeaderCell = HeaderCell;
|