@soul-refiner/design-system 1.6.1-alpha.3 → 1.6.2
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.d.ts +1 -1
- package/dist/common/colors.js +135 -0
- package/dist/common/date.js +28 -0
- package/dist/common/index.js +3 -0
- package/dist/common/styles.js +63 -0
- package/dist/components/actions/button/button.d.ts +1 -1
- package/dist/components/actions/button/button.js +280 -0
- package/dist/components/actions/button/index.js +1 -0
- package/dist/components/actions/dropdown/dropdown.js +227 -0
- package/dist/components/actions/dropdown/index.js +1 -0
- package/dist/components/actions/index.js +6 -0
- package/dist/components/actions/rate/index.js +1 -0
- package/dist/components/actions/rate/rate.js +46 -0
- package/dist/components/actions/switch/index.js +1 -0
- package/dist/components/actions/switch/switch.js +72 -0
- package/dist/components/actions/toggle/index.js +1 -0
- package/dist/components/actions/toggle/toggle.js +57 -0
- package/dist/components/actions/upload/index.js +1 -0
- package/dist/components/actions/upload/upload.js +156 -0
- package/dist/components/atoms/box/box.js +16 -0
- package/dist/components/atoms/box/index.js +1 -0
- package/dist/components/atoms/colors/colors.js +35 -0
- package/dist/components/atoms/colors/index.js +1 -0
- package/dist/components/atoms/hide/hide.js +9 -0
- package/dist/components/atoms/hide/index.js +1 -0
- package/dist/components/atoms/index.js +5 -0
- package/dist/components/atoms/seconds_to_duration/index.js +1 -0
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +27 -0
- package/dist/components/atoms/time_ago/index.js +1 -0
- package/dist/components/atoms/time_ago/time_ago.js +31 -0
- package/dist/components/atoms/typography/display.js +10 -0
- package/dist/components/atoms/typography/heading.js +35 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/paragraph.js +18 -0
- package/dist/components/atoms/typography/typography.js +12 -0
- package/dist/components/card/action/action.js +65 -0
- package/dist/components/card/action/index.js +1 -0
- package/dist/components/card/audio/audio.js +113 -0
- package/dist/components/card/audio/index.js +1 -0
- package/dist/components/card/card.js +25 -0
- package/dist/components/card/feature/feature.js +187 -0
- package/dist/components/card/feature/index.js +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/meeting/index.js +1 -0
- package/dist/components/card/meeting/meeting.js +130 -0
- package/dist/components/card/person/index.js +1 -0
- package/dist/components/card/person/person.js +68 -0
- package/dist/components/card/price/index.js +1 -0
- package/dist/components/card/price/price.js +75 -0
- package/dist/components/card/regular/index.js +1 -0
- package/dist/components/card/regular/regular.js +32 -0
- package/dist/components/card/video/index.js +1 -0
- package/dist/components/card/video/video.js +111 -0
- package/dist/components/card/written/index.js +1 -0
- package/dist/components/card/written/written.js +114 -0
- package/dist/components/custom/courses_selection/courses_selection.js +129 -0
- package/dist/components/custom/courses_selection/index.js +1 -0
- package/dist/components/custom/index.js +2 -0
- package/dist/components/custom/users_selection/index.js +1 -0
- package/dist/components/custom/users_selection/users_selection.js +120 -0
- package/dist/components/editor/constants.js +49 -0
- package/dist/components/editor/context.js +8 -0
- package/dist/components/editor/editor.js +102 -0
- package/dist/components/editor/icons/border-all.js +3 -0
- package/dist/components/editor/icons/border-bottom.js +3 -0
- package/dist/components/editor/icons/border-left.js +3 -0
- package/dist/components/editor/icons/border-none.js +3 -0
- package/dist/components/editor/icons/border-right.js +3 -0
- package/dist/components/editor/icons/border-top.js +3 -0
- package/dist/components/editor/icons/index.js +6 -0
- package/dist/components/editor/index.js +2 -0
- package/dist/components/editor/navbar/alignment_dropdown.js +97 -0
- package/dist/components/editor/navbar/button_modal.js +55 -0
- package/dist/components/editor/navbar/index.js +1 -0
- package/dist/components/editor/navbar/navbar.js +201 -0
- package/dist/components/editor/navbar/style_dropdown.js +65 -0
- package/dist/components/editor/plugins/blocks/blockquote.js +8 -0
- package/dist/components/editor/plugins/blocks/blocks.d.ts +1 -1
- package/dist/components/editor/plugins/blocks/blocks.js +50 -0
- package/dist/components/editor/plugins/blocks/buttons.js +81 -0
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +62 -0
- package/dist/components/editor/plugins/blocks/image.js +36 -0
- package/dist/components/editor/plugins/blocks/index.js +1 -0
- package/dist/components/editor/plugins/blocks/list.js +17 -0
- package/dist/components/editor/plugins/blocks/media-popover.js +32 -0
- package/dist/components/editor/plugins/blocks/plate-button.d.ts +2 -2
- package/dist/components/editor/plugins/blocks/plate-button.js +37 -0
- package/dist/components/editor/plugins/blocks/popover.js +11 -0
- package/dist/components/editor/plugins/blocks/qa.js +45 -0
- package/dist/components/editor/plugins/blocks/resizable.d.ts +2 -2
- package/dist/components/editor/plugins/blocks/resizable.js +37 -0
- package/dist/components/editor/plugins/blocks/separator.js +19 -0
- package/dist/components/editor/plugins/blocks/table-cell.js +38 -0
- package/dist/components/editor/plugins/blocks/table-row.js +7 -0
- package/dist/components/editor/plugins/blocks/table.js +82 -0
- package/dist/components/editor/plugins/blocks/text.js +82 -0
- package/dist/components/editor/plugins/blocks/video.js +32 -0
- package/dist/components/editor/plugins/index.js +4 -0
- package/dist/components/editor/plugins/leafs/index.js +1 -0
- package/dist/components/editor/plugins/leafs/leafs.js +33 -0
- package/dist/components/editor/plugins/leafs/link.js +74 -0
- package/dist/components/editor/plugins/marks/index.js +1 -0
- package/dist/components/editor/plugins/marks/marks.js +12 -0
- package/dist/components/editor/plugins/plate.js +37 -0
- package/dist/components/editor/plugins/utils/exitBreak.js +31 -0
- package/dist/components/editor/plugins/utils/index.js +1 -0
- package/dist/components/editor/plugins/utils/resetBlockType.js +22 -0
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +6 -0
- package/dist/components/editor/plugins/utils/softBreak.js +14 -0
- package/dist/components/editor/plugins/utils/utils.js +12 -0
- package/dist/components/editor/simple_editor/index.js +1 -0
- package/dist/components/editor/simple_editor/navbar.js +136 -0
- package/dist/components/editor/simple_editor/plugins.js +89 -0
- package/dist/components/editor/simple_editor/simple_editor.js +89 -0
- package/dist/components/feedback/animated_toast/animated_toast.js +55 -0
- package/dist/components/feedback/animated_toast/index.js +1 -0
- package/dist/components/feedback/badge/badge.js +66 -0
- package/dist/components/feedback/badge/index.js +1 -0
- package/dist/components/feedback/banner/banner.js +80 -0
- package/dist/components/feedback/banner/index.js +1 -0
- package/dist/components/feedback/chip/chip.js +94 -0
- package/dist/components/feedback/chip/index.js +1 -0
- package/dist/components/feedback/index.js +8 -0
- package/dist/components/feedback/loader/index.js +1 -0
- package/dist/components/feedback/loader/loader.js +34 -0
- package/dist/components/feedback/notification/index.js +1 -0
- package/dist/components/feedback/notification/notification.js +72 -0
- package/dist/components/feedback/progress/index.js +1 -0
- package/dist/components/feedback/progress/progress.js +87 -0
- package/dist/components/feedback/toast/index.js +1 -0
- package/dist/components/feedback/toast/toast.js +112 -0
- package/dist/components/feedback/tooltip/index.js +1 -0
- package/dist/components/feedback/tooltip/tooltip.js +26 -0
- package/dist/components/iconography/avatar/avatar.d.ts +1 -2
- package/dist/components/iconography/avatar/avatar.js +169 -0
- package/dist/components/iconography/avatar/icons/approved.js +5 -0
- package/dist/components/iconography/avatar/icons/busy.js +5 -0
- package/dist/components/iconography/avatar/icons/declined.js +5 -0
- package/dist/components/iconography/avatar/icons/default.js +4 -0
- package/dist/components/iconography/avatar/icons/focus.js +5 -0
- package/dist/components/iconography/avatar/icons/index.js +9 -0
- package/dist/components/iconography/avatar/icons/locked.js +5 -0
- package/dist/components/iconography/avatar/icons/offline.js +5 -0
- package/dist/components/iconography/avatar/icons/online.js +4 -0
- package/dist/components/iconography/avatar/icons/subscribed.js +9 -0
- package/dist/components/iconography/avatar/index.js +1 -0
- package/dist/components/iconography/icon/icon.js +10 -0
- package/dist/components/iconography/icon/index.js +1 -0
- package/dist/components/iconography/index.js +2 -0
- package/dist/components/index.js +12 -0
- package/dist/components/input/calendar/calendar.js +249 -0
- package/dist/components/input/calendar/index.js +1 -0
- package/dist/components/input/checkbox/checkbox.js +23 -0
- package/dist/components/input/checkbox/index.js +1 -0
- package/dist/components/input/date/date.js +517 -0
- package/dist/components/input/date/index.js +1 -0
- package/dist/components/input/filter/filter.js +304 -0
- package/dist/components/input/filter/filter_option.js +70 -0
- package/dist/components/input/filter/index.js +1 -0
- package/dist/components/input/index.js +10 -0
- package/dist/components/input/radio/index.js +1 -0
- package/dist/components/input/radio/radio.js +78 -0
- package/dist/components/input/search/index.js +1 -0
- package/dist/components/input/search/search.js +138 -0
- package/dist/components/input/select/index.js +1 -0
- package/dist/components/input/select/select.js +47 -0
- package/dist/components/input/text_area/index.js +1 -0
- package/dist/components/input/text_area/text_area.js +110 -0
- package/dist/components/input/text_input/index.js +1 -0
- package/dist/components/input/text_input/text_input.d.ts +0 -1
- package/dist/components/input/text_input/text_input.js +147 -0
- package/dist/components/input/time/index.js +1 -0
- package/dist/components/input/time/time.js +69 -0
- package/dist/components/media/common.js +1 -0
- package/dist/components/media/index.js +2 -0
- package/dist/components/media/video/index.js +1 -0
- package/dist/components/media/video/video.js +31 -0
- package/dist/components/media/video-player/index.js +1 -0
- package/dist/components/media/video-player/playlist-item.d.ts +2 -2
- package/dist/components/media/video-player/playlist-item.js +37 -0
- package/dist/components/media/video-player/video.d.ts +3 -13
- package/dist/components/media/video-player/video.js +178 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +109 -0
- package/dist/components/navigation/breadcrumb/index.js +1 -0
- package/dist/components/navigation/index.js +3 -0
- package/dist/components/navigation/inner/index.js +1 -0
- package/dist/components/navigation/inner/inner.js +185 -0
- package/dist/components/navigation/tabs/index.js +1 -0
- package/dist/components/navigation/tabs/tabs.js +150 -0
- package/dist/components/surfaces/accordion/accordion.js +47 -0
- package/dist/components/surfaces/accordion/index.js +1 -0
- package/dist/components/surfaces/calendar_date/calendar_date.js +45 -0
- package/dist/components/surfaces/calendar_date/index.js +1 -0
- package/dist/components/surfaces/carousel/card/card.js +96 -0
- package/dist/components/surfaces/carousel/card/index.js +1 -0
- package/dist/components/surfaces/carousel/index.js +1 -0
- package/dist/components/surfaces/comment/comment.js +188 -0
- package/dist/components/surfaces/comment/helpers.js +26 -0
- package/dist/components/surfaces/comment/index.js +1 -0
- package/dist/components/surfaces/drawer/drawer.js +130 -0
- package/dist/components/surfaces/drawer/index.js +1 -0
- package/dist/components/surfaces/index.js +9 -0
- package/dist/components/surfaces/message/index.js +1 -0
- package/dist/components/surfaces/message/message.js +44 -0
- package/dist/components/surfaces/modal/index.js +1 -0
- package/dist/components/surfaces/modal/modal.js +127 -0
- package/dist/components/surfaces/portal/index.js +1 -0
- package/dist/components/surfaces/portal/portal.js +26 -0
- package/dist/components/surfaces/post/index.js +1 -0
- package/dist/components/surfaces/post/post.js +129 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/table/index.js +1 -0
- package/dist/components/table/table/table.js +184 -0
- package/dist/emoji/emojis.json +17577 -0
- package/dist/icons/arrow/arrow_all.js +6 -0
- package/dist/icons/arrow/arrow_all_diagonal.js +6 -0
- package/dist/icons/arrow/arrow_both_downwards.js +6 -0
- package/dist/icons/arrow/arrow_both_upwards.js +6 -0
- package/dist/icons/arrow/arrow_circle_left.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +8 -0
- package/dist/icons/arrow/arrow_circle_right.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_down.js +6 -0
- package/dist/icons/arrow/arrow_down_bold.js +6 -0
- package/dist/icons/arrow/arrow_down_circle.js +6 -0
- package/dist/icons/arrow/arrow_left.js +6 -0
- package/dist/icons/arrow/arrow_left_bold.js +6 -0
- package/dist/icons/arrow/arrow_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_left_curved.js +6 -0
- package/dist/icons/arrow/arrow_left_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_right.js +6 -0
- package/dist/icons/arrow/arrow_right_bold.js +6 -0
- package/dist/icons/arrow/arrow_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_right_curved.js +6 -0
- package/dist/icons/arrow/arrow_right_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_up.js +6 -0
- package/dist/icons/arrow/arrow_up_bold.js +6 -0
- package/dist/icons/arrow/arrow_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_down.js +6 -0
- package/dist/icons/arrow/chevron_down_circle.js +6 -0
- package/dist/icons/arrow/chevron_down_double.js +6 -0
- package/dist/icons/arrow/chevron_down_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_left.js +6 -0
- package/dist/icons/arrow/chevron_left_circle.js +6 -0
- package/dist/icons/arrow/chevron_left_double.js +6 -0
- package/dist/icons/arrow/chevron_left_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_right.js +6 -0
- package/dist/icons/arrow/chevron_right_circle.js +6 -0
- package/dist/icons/arrow/chevron_right_double.js +6 -0
- package/dist/icons/arrow/chevron_right_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_scroll.js +6 -0
- package/dist/icons/arrow/chevron_up.js +6 -0
- package/dist/icons/arrow/chevron_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_up_double.js +6 -0
- package/dist/icons/arrow/chevron_up_double_circle.js +6 -0
- package/dist/icons/arrow/forward_all.js +6 -0
- package/dist/icons/arrow/forward_all_bold.js +6 -0
- package/dist/icons/arrow/forward_bold.js +6 -0
- package/dist/icons/arrow/index.js +62 -0
- package/dist/icons/arrow/redo.js +6 -0
- package/dist/icons/arrow/redo_bold.js +6 -0
- package/dist/icons/arrow/reply.js +6 -0
- package/dist/icons/arrow/reply_all.js +6 -0
- package/dist/icons/arrow/reply_all_bold.js +6 -0
- package/dist/icons/arrow/reply_bold.js +6 -0
- package/dist/icons/arrow/undo.js +6 -0
- package/dist/icons/arrow/undo_bold.js +6 -0
- package/dist/icons/audio_video/drag_indicator.js +6 -0
- package/dist/icons/audio_video/eject.js +6 -0
- package/dist/icons/audio_video/equalizer.js +6 -0
- package/dist/icons/audio_video/fast_forward.js +6 -0
- package/dist/icons/audio_video/fast_forward_30.js +6 -0
- package/dist/icons/audio_video/fullscreen.js +6 -0
- package/dist/icons/audio_video/headphones.js +6 -0
- package/dist/icons/audio_video/index.js +38 -0
- package/dist/icons/audio_video/library_add.js +6 -0
- package/dist/icons/audio_video/library_delay.js +6 -0
- package/dist/icons/audio_video/library_music.js +6 -0
- package/dist/icons/audio_video/library_queue.js +6 -0
- package/dist/icons/audio_video/microphone.js +6 -0
- package/dist/icons/audio_video/musical_note.js +6 -0
- package/dist/icons/audio_video/next.js +6 -0
- package/dist/icons/audio_video/pause.js +6 -0
- package/dist/icons/audio_video/pause_circle.js +6 -0
- package/dist/icons/audio_video/play.js +6 -0
- package/dist/icons/audio_video/play_circle.js +6 -0
- package/dist/icons/audio_video/play_display.js +6 -0
- package/dist/icons/audio_video/play_pause.js +6 -0
- package/dist/icons/audio_video/play_solid.js +6 -0
- package/dist/icons/audio_video/player_list.js +6 -0
- package/dist/icons/audio_video/player_list_add.js +6 -0
- package/dist/icons/audio_video/player_list_play.js +6 -0
- package/dist/icons/audio_video/previous.js +6 -0
- package/dist/icons/audio_video/radio.js +6 -0
- package/dist/icons/audio_video/record.js +6 -0
- package/dist/icons/audio_video/repeat.js +6 -0
- package/dist/icons/audio_video/rewind.js +6 -0
- package/dist/icons/audio_video/rewind_30.js +6 -0
- package/dist/icons/audio_video/shuffle.js +6 -0
- package/dist/icons/audio_video/sound_wave.js +6 -0
- package/dist/icons/audio_video/stop.js +6 -0
- package/dist/icons/audio_video/stop_circle.js +6 -0
- package/dist/icons/audio_video/subscriptions.js +6 -0
- package/dist/icons/audio_video/tuner.js +6 -0
- package/dist/icons/audio_video/volume.js +6 -0
- package/dist/icons/audio_video/volume_high.js +6 -0
- package/dist/icons/audio_video/volume_low.js +6 -0
- package/dist/icons/audio_video/volume_slash.js +6 -0
- package/dist/icons/basic/aa_sansserif.js +7 -0
- package/dist/icons/basic/aa_serif.js +7 -0
- package/dist/icons/basic/anchor.js +8 -0
- package/dist/icons/basic/bible.js +6 -0
- package/dist/icons/basic/bold.js +6 -0
- package/dist/icons/basic/book.js +6 -0
- package/dist/icons/basic/book_open.js +6 -0
- package/dist/icons/basic/bookmark.js +6 -0
- package/dist/icons/basic/bookmark_add.js +6 -0
- package/dist/icons/basic/bookmark_slash.js +6 -0
- package/dist/icons/basic/bookmarks.js +6 -0
- package/dist/icons/basic/books.js +9 -0
- package/dist/icons/basic/box.js +6 -0
- package/dist/icons/basic/briefcase.js +6 -0
- package/dist/icons/basic/browse_activity.js +6 -0
- package/dist/icons/basic/browser.js +6 -0
- package/dist/icons/basic/browser_slash.js +6 -0
- package/dist/icons/basic/calculator.js +6 -0
- package/dist/icons/basic/camera.js +6 -0
- package/dist/icons/basic/camera_add.js +6 -0
- package/dist/icons/basic/camera_slash.js +6 -0
- package/dist/icons/basic/checkmark.js +6 -0
- package/dist/icons/basic/checkmark_circle.js +8 -0
- package/dist/icons/basic/checkmark_filled.js +6 -0
- package/dist/icons/basic/checkmarks.js +6 -0
- package/dist/icons/basic/circle.js +6 -0
- package/dist/icons/basic/circle_slash.js +8 -0
- package/dist/icons/basic/clear_text_style.js +6 -0
- package/dist/icons/basic/close.js +6 -0
- package/dist/icons/basic/close_circle.js +6 -0
- package/dist/icons/basic/close_filled.js +6 -0
- package/dist/icons/basic/copy.js +6 -0
- package/dist/icons/basic/delete.js +6 -0
- package/dist/icons/basic/detail.js +6 -0
- package/dist/icons/basic/dot.js +6 -0
- package/dist/icons/basic/download.js +6 -0
- package/dist/icons/basic/download_arrow.js +6 -0
- package/dist/icons/basic/droplet.js +8 -0
- package/dist/icons/basic/ellipsis_horizontal.js +6 -0
- package/dist/icons/basic/ellipsis_horizontal_circle.js +6 -0
- package/dist/icons/basic/ellipsis_vertical.js +6 -0
- package/dist/icons/basic/ellipsis_vertical_circle.js +6 -0
- package/dist/icons/basic/eye.js +6 -0
- package/dist/icons/basic/eye_slash.js +6 -0
- package/dist/icons/basic/fingerprint.js +6 -0
- package/dist/icons/basic/flag.js +6 -0
- package/dist/icons/basic/flag_wave.js +6 -0
- package/dist/icons/basic/flag_wave_filled.js +6 -0
- package/dist/icons/basic/flame.js +6 -0
- package/dist/icons/basic/gauge.js +6 -0
- package/dist/icons/basic/glasses.js +6 -0
- package/dist/icons/basic/graduation_cap.js +6 -0
- package/dist/icons/basic/hashmark.js +6 -0
- package/dist/icons/basic/heart.js +6 -0
- package/dist/icons/basic/heart_slash.js +6 -0
- package/dist/icons/basic/highlighter.js +6 -0
- package/dist/icons/basic/home.js +6 -0
- package/dist/icons/basic/image.js +6 -0
- package/dist/icons/basic/inbox.js +6 -0
- package/dist/icons/basic/index.js +131 -0
- package/dist/icons/basic/italic.js +6 -0
- package/dist/icons/basic/layers.js +6 -0
- package/dist/icons/basic/lightening.js +6 -0
- package/dist/icons/basic/lightening_slash.js +6 -0
- package/dist/icons/basic/link.js +6 -0
- package/dist/icons/basic/link_slash.js +6 -0
- package/dist/icons/basic/loudspeaker.js +6 -0
- package/dist/icons/basic/maximize.js +6 -0
- package/dist/icons/basic/menu.js +6 -0
- package/dist/icons/basic/menu_circle.js +6 -0
- package/dist/icons/basic/menu_dots.js +6 -0
- package/dist/icons/basic/microphone_slash.js +6 -0
- package/dist/icons/basic/minimize.js +6 -0
- package/dist/icons/basic/minus.js +6 -0
- package/dist/icons/basic/minus_circle.js +6 -0
- package/dist/icons/basic/move_item.js +6 -0
- package/dist/icons/basic/new.js +6 -0
- package/dist/icons/basic/newspaper.js +6 -0
- package/dist/icons/basic/node.js +6 -0
- package/dist/icons/basic/note_pad.js +7 -0
- package/dist/icons/basic/options.js +6 -0
- package/dist/icons/basic/paint_brush.js +6 -0
- package/dist/icons/basic/paperclip.js +6 -0
- package/dist/icons/basic/paperclip_slash.js +6 -0
- package/dist/icons/basic/pencil.js +6 -0
- package/dist/icons/basic/pencil_pad.js +6 -0
- package/dist/icons/basic/plus.js +6 -0
- package/dist/icons/basic/plus_circle.js +6 -0
- package/dist/icons/basic/presentation.js +6 -0
- package/dist/icons/basic/printer.js +6 -0
- package/dist/icons/basic/profile.js +6 -0
- package/dist/icons/basic/profile_check.js +6 -0
- package/dist/icons/basic/pulse.js +6 -0
- package/dist/icons/basic/qr_code.js +6 -0
- package/dist/icons/basic/resize.js +8 -0
- package/dist/icons/basic/scan.js +6 -0
- package/dist/icons/basic/scissors.js +6 -0
- package/dist/icons/basic/screenshot.js +6 -0
- package/dist/icons/basic/search.js +6 -0
- package/dist/icons/basic/select_item.js +7 -0
- package/dist/icons/basic/settings.js +6 -0
- package/dist/icons/basic/share.js +6 -0
- package/dist/icons/basic/share_external.js +6 -0
- package/dist/icons/basic/square.js +6 -0
- package/dist/icons/basic/star.js +6 -0
- package/dist/icons/basic/star_circle.js +6 -0
- package/dist/icons/basic/star_filled.js +6 -0
- package/dist/icons/basic/star_filled_half.js +6 -0
- package/dist/icons/basic/star_slash.js +6 -0
- package/dist/icons/basic/sticker.js +6 -0
- package/dist/icons/basic/strikethrough.js +6 -0
- package/dist/icons/basic/subtask.js +7 -0
- package/dist/icons/basic/tax.js +9 -0
- package/dist/icons/basic/text_bg_color.js +6 -0
- package/dist/icons/basic/text_color.js +6 -0
- package/dist/icons/basic/textbox.js +6 -0
- package/dist/icons/basic/thumbs_down.js +6 -0
- package/dist/icons/basic/thumbs_up.js +6 -0
- package/dist/icons/basic/thumbs_up_filled.js +6 -0
- package/dist/icons/basic/toggle_left.js +6 -0
- package/dist/icons/basic/toggle_right.js +6 -0
- package/dist/icons/basic/translate.js +6 -0
- package/dist/icons/basic/trash.js +6 -0
- package/dist/icons/basic/trash_slash.js +6 -0
- package/dist/icons/basic/underline.js +6 -0
- package/dist/icons/basic/upload.js +6 -0
- package/dist/icons/basic/video.js +6 -0
- package/dist/icons/basic/video_add.js +7 -0
- package/dist/icons/basic/video_slash.js +6 -0
- package/dist/icons/basic/wrench.js +6 -0
- package/dist/icons/basic/zoom_in.js +6 -0
- package/dist/icons/basic/zoom_out.js +6 -0
- package/dist/icons/data/bar_chart.js +6 -0
- package/dist/icons/data/bar_chart_downward.js +6 -0
- package/dist/icons/data/bar_chart_downward_outline.js +6 -0
- package/dist/icons/data/bar_chart_upward.js +6 -0
- package/dist/icons/data/bar_chart_upward_outline.js +6 -0
- package/dist/icons/data/candlestick_chart.js +6 -0
- package/dist/icons/data/four_circles.js +6 -0
- package/dist/icons/data/index.js +20 -0
- package/dist/icons/data/legend_toggle.js +6 -0
- package/dist/icons/data/line_chart.js +6 -0
- package/dist/icons/data/line_chart_area.js +6 -0
- package/dist/icons/data/line_chart_area_shaded.js +6 -0
- package/dist/icons/data/line_chart_double.js +6 -0
- package/dist/icons/data/line_chart_downward.js +6 -0
- package/dist/icons/data/line_chart_node.js +6 -0
- package/dist/icons/data/line_chart_outline.js +6 -0
- package/dist/icons/data/line_chart_search.js +6 -0
- package/dist/icons/data/line_chart_stars.js +6 -0
- package/dist/icons/data/line_chart_upward.js +6 -0
- package/dist/icons/data/pie_chart.js +7 -0
- package/dist/icons/data/tree.js +6 -0
- package/dist/icons/email/index.js +8 -0
- package/dist/icons/email/mail.js +6 -0
- package/dist/icons/email/mail_check.js +6 -0
- package/dist/icons/email/mail_minus.js +6 -0
- package/dist/icons/email/mail_send.js +6 -0
- package/dist/icons/email/send.js +6 -0
- package/dist/icons/email/send_close.js +6 -0
- package/dist/icons/email/send_schedule.js +6 -0
- package/dist/icons/email/send_text.js +6 -0
- package/dist/icons/emoji/emoji_add.js +6 -0
- package/dist/icons/emoji/index.js +6 -0
- package/dist/icons/emoji/laughing.js +6 -0
- package/dist/icons/emoji/neutral.js +6 -0
- package/dist/icons/emoji/sad.js +6 -0
- package/dist/icons/emoji/shocked.js +6 -0
- package/dist/icons/emoji/smile.js +6 -0
- package/dist/icons/file/clipboard.js +6 -0
- package/dist/icons/file/clipboard_check.js +6 -0
- package/dist/icons/file/clipboard_close.js +6 -0
- package/dist/icons/file/clipboard_minus.js +6 -0
- package/dist/icons/file/clipboard_plus.js +6 -0
- package/dist/icons/file/clipboard_text.js +6 -0
- package/dist/icons/file/file.js +6 -0
- package/dist/icons/file/file_add.js +6 -0
- package/dist/icons/file/file_check.js +6 -0
- package/dist/icons/file/file_close.js +6 -0
- package/dist/icons/file/file_code.js +6 -0
- package/dist/icons/file/file_download.js +6 -0
- package/dist/icons/file/file_draft.js +6 -0
- package/dist/icons/file/file_gear.js +7 -0
- package/dist/icons/file/file_minus.js +6 -0
- package/dist/icons/file/file_plus.js +6 -0
- package/dist/icons/file/file_scan.js +6 -0
- package/dist/icons/file/file_shred.js +6 -0
- package/dist/icons/file/file_text.js +6 -0
- package/dist/icons/file/file_upload.js +6 -0
- package/dist/icons/file/folder.js +6 -0
- package/dist/icons/file/folder_add.js +6 -0
- package/dist/icons/file/folder_arrow.js +6 -0
- package/dist/icons/file/folder_check.js +6 -0
- package/dist/icons/file/folder_close.js +6 -0
- package/dist/icons/file/folder_cloud.js +6 -0
- package/dist/icons/file/folder_gear.js +7 -0
- package/dist/icons/file/folder_minus.js +6 -0
- package/dist/icons/file/folder_music.js +6 -0
- package/dist/icons/file/folder_open.js +6 -0
- package/dist/icons/file/folder_plus.js +6 -0
- package/dist/icons/file/folder_zip.js +6 -0
- package/dist/icons/file/index.js +36 -0
- package/dist/icons/file/note.js +6 -0
- package/dist/icons/file/note_text.js +6 -0
- package/dist/icons/file/pdf.js +6 -0
- package/dist/icons/file/photo.js +6 -0
- package/dist/icons/finance/bitcoin.js +6 -0
- package/dist/icons/finance/coins.js +10 -0
- package/dist/icons/finance/credit_card.js +6 -0
- package/dist/icons/finance/credit_card_add.js +6 -0
- package/dist/icons/finance/credit_card_face.js +6 -0
- package/dist/icons/finance/credit_card_member.js +6 -0
- package/dist/icons/finance/credit_card_outcome.js +6 -0
- package/dist/icons/finance/credit_card_scan.js +6 -0
- package/dist/icons/finance/credit_card_share.js +6 -0
- package/dist/icons/finance/credit_card_slash.js +6 -0
- package/dist/icons/finance/currency_exchange.js +6 -0
- package/dist/icons/finance/dollar.js +6 -0
- package/dist/icons/finance/ethereum.js +6 -0
- package/dist/icons/finance/index.js +16 -0
- package/dist/icons/finance/paypass.js +6 -0
- package/dist/icons/finance/strongbox.js +6 -0
- package/dist/icons/finance/wallet.js +6 -0
- package/dist/icons/index.js +22 -0
- package/dist/icons/layout/block_align_bottom.js +6 -0
- package/dist/icons/layout/block_align_center.js +6 -0
- package/dist/icons/layout/block_align_left.js +6 -0
- package/dist/icons/layout/block_align_middle.js +6 -0
- package/dist/icons/layout/block_align_right.js +6 -0
- package/dist/icons/layout/block_align_top.js +6 -0
- package/dist/icons/layout/block_horizontal.js +6 -0
- package/dist/icons/layout/block_vertical.js +6 -0
- package/dist/icons/layout/edit_shape.js +6 -0
- package/dist/icons/layout/elements.js +6 -0
- package/dist/icons/layout/elements_add.js +6 -0
- package/dist/icons/layout/elements_filled.js +6 -0
- package/dist/icons/layout/elements_masonry.js +6 -0
- package/dist/icons/layout/frame.js +6 -0
- package/dist/icons/layout/frame_stack.js +6 -0
- package/dist/icons/layout/grid.js +6 -0
- package/dist/icons/layout/grid_column_three.js +6 -0
- package/dist/icons/layout/grid_column_two.js +6 -0
- package/dist/icons/layout/grid_dynamic.js +6 -0
- package/dist/icons/layout/grid_frame.js +6 -0
- package/dist/icons/layout/grid_row_three.js +6 -0
- package/dist/icons/layout/grid_row_two.js +6 -0
- package/dist/icons/layout/grid_six.js +6 -0
- package/dist/icons/layout/grid_small.js +6 -0
- package/dist/icons/layout/iframe.js +6 -0
- package/dist/icons/layout/index.js +44 -0
- package/dist/icons/layout/kanban.js +6 -0
- package/dist/icons/layout/layout.js +6 -0
- package/dist/icons/layout/list.js +6 -0
- package/dist/icons/layout/list_filled.js +11 -0
- package/dist/icons/layout/padding.js +6 -0
- package/dist/icons/layout/page_break.js +6 -0
- package/dist/icons/layout/rotate_left.js +6 -0
- package/dist/icons/layout/rotate_right.js +6 -0
- package/dist/icons/layout/ruler.js +6 -0
- package/dist/icons/layout/segment.js +6 -0
- package/dist/icons/layout/select_area.js +6 -0
- package/dist/icons/layout/select_boundary.js +6 -0
- package/dist/icons/layout/sidebar_left.js +6 -0
- package/dist/icons/layout/sidebar_right.js +6 -0
- package/dist/icons/layout/slides.js +6 -0
- package/dist/icons/layout/slides_horizontal.js +6 -0
- package/dist/icons/layout/slides_vertical.js +11 -0
- package/dist/icons/layout/stack.js +6 -0
- package/dist/icons/layout/text.js +6 -0
- package/dist/icons/maps/atlas.js +6 -0
- package/dist/icons/maps/compass.js +6 -0
- package/dist/icons/maps/direction.js +6 -0
- package/dist/icons/maps/direction_angled.js +6 -0
- package/dist/icons/maps/globe.js +6 -0
- package/dist/icons/maps/globe_slash.js +6 -0
- package/dist/icons/maps/index.js +22 -0
- package/dist/icons/maps/location.js +6 -0
- package/dist/icons/maps/location_slash.js +6 -0
- package/dist/icons/maps/map.js +6 -0
- package/dist/icons/maps/marker.js +6 -0
- package/dist/icons/maps/panorama.js +6 -0
- package/dist/icons/maps/pin.js +6 -0
- package/dist/icons/maps/pin_arrow.js +6 -0
- package/dist/icons/maps/pin_location.js +6 -0
- package/dist/icons/maps/pin_plus.js +6 -0
- package/dist/icons/maps/pin_question.js +6 -0
- package/dist/icons/maps/pin_slash.js +6 -0
- package/dist/icons/maps/push_pin.js +6 -0
- package/dist/icons/maps/push_pin_filled.js +6 -0
- package/dist/icons/maps/push_pin_slash.js +6 -0
- package/dist/icons/maps/radar.js +6 -0
- package/dist/icons/maps/route.js +6 -0
- package/dist/icons/message/bubble.js +6 -0
- package/dist/icons/message/bubble_question.js +6 -0
- package/dist/icons/message/comment.js +6 -0
- package/dist/icons/message/comment_add.js +6 -0
- package/dist/icons/message/comment_check.js +6 -0
- package/dist/icons/message/comment_close.js +6 -0
- package/dist/icons/message/comment_minus.js +6 -0
- package/dist/icons/message/comment_text.js +6 -0
- package/dist/icons/message/index.js +8 -0
- package/dist/icons/misc/advertisement.js +6 -0
- package/dist/icons/misc/atom.js +6 -0
- package/dist/icons/misc/bone.js +6 -0
- package/dist/icons/misc/brightness_high.js +6 -0
- package/dist/icons/misc/brightness_low.js +6 -0
- package/dist/icons/misc/contrast.js +6 -0
- package/dist/icons/misc/crosshairs.js +6 -0
- package/dist/icons/misc/crown.js +6 -0
- package/dist/icons/misc/footprint.js +6 -0
- package/dist/icons/misc/form.js +6 -0
- package/dist/icons/misc/funnel.js +6 -0
- package/dist/icons/misc/index.js +25 -0
- package/dist/icons/misc/infinite.js +6 -0
- package/dist/icons/misc/insert_button.js +6 -0
- package/dist/icons/misc/light_bulb.js +6 -0
- package/dist/icons/misc/moon.js +6 -0
- package/dist/icons/misc/nut.js +6 -0
- package/dist/icons/misc/planet.js +6 -0
- package/dist/icons/misc/plus_thick.js +6 -0
- package/dist/icons/misc/pocket.js +6 -0
- package/dist/icons/misc/rocket.js +6 -0
- package/dist/icons/misc/soup.js +10 -0
- package/dist/icons/misc/sun.js +6 -0
- package/dist/icons/misc/toy_horse.js +6 -0
- package/dist/icons/misc/trophy.js +6 -0
- package/dist/icons/misc/watercloset.js +6 -0
- package/dist/icons/notifications/alert_circle.js +6 -0
- package/dist/icons/notifications/alert_octogon.js +6 -0
- package/dist/icons/notifications/alert_triangle.js +6 -0
- package/dist/icons/notifications/app_notification.js +6 -0
- package/dist/icons/notifications/bell.js +6 -0
- package/dist/icons/notifications/bell_alert.js +6 -0
- package/dist/icons/notifications/bell_checkmark.js +6 -0
- package/dist/icons/notifications/bell_minus.js +6 -0
- package/dist/icons/notifications/bell_plus.js +6 -0
- package/dist/icons/notifications/bell_ring.js +8 -0
- package/dist/icons/notifications/bell_slash.js +6 -0
- package/dist/icons/notifications/close_octogon.js +6 -0
- package/dist/icons/notifications/index.js +14 -0
- package/dist/icons/notifications/information.js +6 -0
- package/dist/icons/notifications/minus_octogon.js +6 -0
- package/dist/icons/notifications/question_circle.js +6 -0
- package/dist/icons/people/group.js +6 -0
- package/dist/icons/people/group_add.js +6 -0
- package/dist/icons/people/group_chat.js +8 -0
- package/dist/icons/people/group_remove.js +6 -0
- package/dist/icons/people/group_send.js +7 -0
- package/dist/icons/people/groups.js +6 -0
- package/dist/icons/people/index.js +13 -0
- package/dist/icons/people/person.js +6 -0
- package/dist/icons/people/person_add.js +6 -0
- package/dist/icons/people/person_checkmark.js +6 -0
- package/dist/icons/people/person_circle.js +8 -0
- package/dist/icons/people/person_close.js +8 -0
- package/dist/icons/people/person_remove.js +6 -0
- package/dist/icons/people/person_slash.js +8 -0
- package/dist/icons/phone/index.js +14 -0
- package/dist/icons/phone/keypad.js +6 -0
- package/dist/icons/phone/phone.js +6 -0
- package/dist/icons/phone/phone_add.js +6 -0
- package/dist/icons/phone/phone_calling.js +6 -0
- package/dist/icons/phone/phone_check.js +6 -0
- package/dist/icons/phone/phone_close.js +6 -0
- package/dist/icons/phone/phone_decline.js +6 -0
- package/dist/icons/phone/phone_end.js +6 -0
- package/dist/icons/phone/phone_forwarded.js +6 -0
- package/dist/icons/phone/phone_hash.js +6 -0
- package/dist/icons/phone/phone_incoming.js +6 -0
- package/dist/icons/phone/phone_missed.js +6 -0
- package/dist/icons/phone/phone_outgoing.js +6 -0
- package/dist/icons/phone/phone_pause.js +6 -0
- package/dist/icons/phone/phone_slash.js +6 -0
- package/dist/icons/phone/voicemail.js +6 -0
- package/dist/icons/security/index.js +11 -0
- package/dist/icons/security/key.js +6 -0
- package/dist/icons/security/key_slash.js +6 -0
- package/dist/icons/security/lock.js +6 -0
- package/dist/icons/security/lock_circle.js +6 -0
- package/dist/icons/security/lock_open.js +6 -0
- package/dist/icons/security/lock_slash.js +6 -0
- package/dist/icons/security/shield.js +6 -0
- package/dist/icons/security/shield_checkmark.js +6 -0
- package/dist/icons/security/shield_lock.js +6 -0
- package/dist/icons/security/shield_slash.js +6 -0
- package/dist/icons/security/verified.js +6 -0
- package/dist/icons/shopping/basket.js +6 -0
- package/dist/icons/shopping/cart.js +6 -0
- package/dist/icons/shopping/cart_filled.js +6 -0
- package/dist/icons/shopping/coupon.js +6 -0
- package/dist/icons/shopping/coupon_cut.js +6 -0
- package/dist/icons/shopping/delivery.js +6 -0
- package/dist/icons/shopping/discount.js +6 -0
- package/dist/icons/shopping/gift.js +6 -0
- package/dist/icons/shopping/gift_bag.js +6 -0
- package/dist/icons/shopping/index.js +15 -0
- package/dist/icons/shopping/inventory.js +6 -0
- package/dist/icons/shopping/point_of_sale.js +6 -0
- package/dist/icons/shopping/shirt.js +6 -0
- package/dist/icons/shopping/tag.js +6 -0
- package/dist/icons/shopping/tag_diagonal.js +6 -0
- package/dist/icons/shopping/tote.js +6 -0
- package/dist/icons/special/index.js +4 -0
- package/dist/icons/special/upload_audio.js +11 -0
- package/dist/icons/special/upload_file.js +6 -0
- package/dist/icons/special/upload_image.js +8 -0
- package/dist/icons/special/upload_video.js +9 -0
- package/dist/icons/symbols/at.js +6 -0
- package/dist/icons/symbols/cc.js +6 -0
- package/dist/icons/symbols/cmd.js +6 -0
- package/dist/icons/symbols/facebook.js +6 -0
- package/dist/icons/symbols/google.js +9 -0
- package/dist/icons/symbols/hash.js +6 -0
- package/dist/icons/symbols/index.js +9 -0
- package/dist/icons/symbols/instagram.js +18 -0
- package/dist/icons/symbols/messenger.js +12 -0
- package/dist/icons/symbols/twitter.js +6 -0
- package/dist/icons/technology/battery.js +6 -0
- package/dist/icons/technology/battery_100.js +6 -0
- package/dist/icons/technology/battery_20.js +6 -0
- package/dist/icons/technology/battery_40.js +6 -0
- package/dist/icons/technology/battery_60.js +6 -0
- package/dist/icons/technology/battery_80.js +6 -0
- package/dist/icons/technology/battery_charging.js +6 -0
- package/dist/icons/technology/battery_slash.js +6 -0
- package/dist/icons/technology/devices.js +6 -0
- package/dist/icons/technology/floppy_disk.js +6 -0
- package/dist/icons/technology/index.js +17 -0
- package/dist/icons/technology/iphone.js +6 -0
- package/dist/icons/technology/laptop.js +6 -0
- package/dist/icons/technology/mobile.js +6 -0
- package/dist/icons/technology/monitor.js +6 -0
- package/dist/icons/technology/server.js +6 -0
- package/dist/icons/technology/sim_card.js +6 -0
- package/dist/icons/technology/usb_stick.js +6 -0
- package/dist/icons/text/align_center.js +6 -0
- package/dist/icons/text/align_justified.js +6 -0
- package/dist/icons/text/align_left.js +6 -0
- package/dist/icons/text/align_right.js +6 -0
- package/dist/icons/text/code_block.js +6 -0
- package/dist/icons/text/divider.js +6 -0
- package/dist/icons/text/footnote.js +8 -0
- package/dist/icons/text/indent_decrease.js +6 -0
- package/dist/icons/text/indent_increase.js +6 -0
- package/dist/icons/text/index.js +13 -0
- package/dist/icons/text/list_ordered.js +6 -0
- package/dist/icons/text/list_unordered.js +6 -0
- package/dist/icons/text/quote.js +6 -0
- package/dist/icons/text/table.js +6 -0
- package/dist/icons/time/alarm.js +6 -0
- package/dist/icons/time/alarm_checkmark.js +6 -0
- package/dist/icons/time/alarm_minus.js +6 -0
- package/dist/icons/time/alarm_plus.js +6 -0
- package/dist/icons/time/alarm_slash.js +6 -0
- package/dist/icons/time/alarm_snooze.js +6 -0
- package/dist/icons/time/calendar.js +6 -0
- package/dist/icons/time/calendar_add.js +6 -0
- package/dist/icons/time/calendar_checkmark.js +6 -0
- package/dist/icons/time/calendar_close.js +6 -0
- package/dist/icons/time/calendar_dates.js +6 -0
- package/dist/icons/time/calendar_minus.js +6 -0
- package/dist/icons/time/calendar_plus.js +6 -0
- package/dist/icons/time/calendar_scroll.js +8 -0
- package/dist/icons/time/clock.js +6 -0
- package/dist/icons/time/clock_history.js +6 -0
- package/dist/icons/time/index.js +19 -0
- package/dist/icons/time/stopwatch.js +6 -0
- package/dist/icons/time/timer.js +6 -0
- package/dist/icons/time/watch.js +6 -0
- package/dist/index.js +5 -2
- package/dist/styles/output.css +1771 -0
- package/dist/types/attributes.js +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/date.js +98 -0
- package/dist/utils/function.js +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +2 -5
- package/dist/components/actions/dropdown/dropdown.stories.d.ts +0 -5
- package/dist/components/custom/courses_selection/courses_selection.stories.d.ts +0 -5
- package/dist/components/custom/users_selection/users_selection.stories.d.ts +0 -5
- package/dist/components/editor/editor.stories.d.ts +0 -6
- package/dist/components/iconography/avatar/avatar.stories.d.ts +0 -7
- package/dist/components/media/video-player/video.stories.d.ts +0 -6
- package/dist/main.js.LICENSE.txt +0 -90
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { Box, H, P, Modal, Button, Dropdown } from '../..';
|
|
6
|
+
import { Calendar, GraduationCap, Clock, Pin, ForwardBold, StarFilled, Star, EllipsisHorizontal, } from '../../../icons';
|
|
7
|
+
var RSVP;
|
|
8
|
+
(function (RSVP) {
|
|
9
|
+
RSVP["INTERESTED"] = "INTERESTED";
|
|
10
|
+
RSVP["NOT_INTERESTED"] = "NOT_INTERESTED";
|
|
11
|
+
})(RSVP || (RSVP = {}));
|
|
12
|
+
export const MeetingCard = ({ href, image, sx, title, actions, course, startDate, endDate, startTime, endTime, location, shareModal, handleInterestedOnClick, handleNotInterestedOnClick, handleVisibleToConnectionsOnClick, rsvp, dotsActions, }) => {
|
|
13
|
+
const secondaryActions = [];
|
|
14
|
+
!!handleInterestedOnClick &&
|
|
15
|
+
secondaryActions.push({
|
|
16
|
+
value: 'interested',
|
|
17
|
+
label: 'Interested',
|
|
18
|
+
onClick: handleInterestedOnClick,
|
|
19
|
+
icon: React.createElement(StarFilled, { color: "yellow-5" }),
|
|
20
|
+
color: rsvp === RSVP.INTERESTED ? 'primary-blue-2' : undefined,
|
|
21
|
+
});
|
|
22
|
+
!!handleNotInterestedOnClick &&
|
|
23
|
+
secondaryActions.push({
|
|
24
|
+
value: 'notInterested',
|
|
25
|
+
label: 'Not Interested',
|
|
26
|
+
onClick: handleNotInterestedOnClick,
|
|
27
|
+
icon: React.createElement(StarFilled, { color: "red-4" }),
|
|
28
|
+
color: rsvp === RSVP.NOT_INTERESTED ? 'primary-blue-2' : undefined,
|
|
29
|
+
});
|
|
30
|
+
!!handleVisibleToConnectionsOnClick &&
|
|
31
|
+
secondaryActions.push('break', {
|
|
32
|
+
value: 'visibleToConnections',
|
|
33
|
+
label: 'Visible to connections',
|
|
34
|
+
onClick: handleVisibleToConnectionsOnClick,
|
|
35
|
+
});
|
|
36
|
+
return (React.createElement(Wrapper, { "$isLink": !!href, "$sx": sx, as: href ? 'a' : 'div', href: href },
|
|
37
|
+
React.createElement(Figure, null,
|
|
38
|
+
React.createElement(Image, { alt: "", height: 160, quality: 100, src: image, width: 312 }),
|
|
39
|
+
React.createElement(OverlayTopContainer, { id: "overlayTop" }, dotsActions && !!dotsActions.length && (React.createElement(Dropdown, { hasArrow: true, maintainState: false, options: dotsActions, trigger: React.createElement(Button, { icon: React.createElement(EllipsisHorizontal, null), showChevron: false, type: "outlined", size: "small", className: "icon" }), onClick: (e) => e.preventDefault() }))),
|
|
40
|
+
React.createElement(OverlayBottomContainer, { id: "overlayBottom" },
|
|
41
|
+
shareModal && (React.createElement(Modal, null,
|
|
42
|
+
React.createElement(Modal.Trigger, null,
|
|
43
|
+
React.createElement(Button, { icon: React.createElement(ForwardBold, null), type: "outlined", size: "small", onClick: (e) => e.preventDefault(), className: "icon" })),
|
|
44
|
+
React.createElement(Modal.Content, { onClick: (e) => e.preventDefault() }, shareModal))),
|
|
45
|
+
!!secondaryActions.length && (React.createElement(Dropdown, { open: "left", offset: [40, 10], maintainState: false, options: secondaryActions, trigger: React.createElement(Button, { icon: (rsvp === RSVP.INTERESTED && (React.createElement(StarFilled, { sx: "color: var(--color-yellow-5);" }))) ||
|
|
46
|
+
(rsvp === RSVP.NOT_INTERESTED && (React.createElement(StarFilled, { sx: "color: var(--color-red-4);" }))) || React.createElement(Star, null), type: "outlined", size: "small", className: "icon" }), onClick: (e) => e.preventDefault() })))),
|
|
47
|
+
React.createElement(Box, { "$dir": "column", "$padding": 24 },
|
|
48
|
+
React.createElement(H.Eight, { "$textAlign": "center", "$color": "grey-2" }, title),
|
|
49
|
+
React.createElement(MeetingInformation, null,
|
|
50
|
+
course && (React.createElement(Box, { "$align": "center", "$gap": 20 },
|
|
51
|
+
React.createElement(GraduationCap, { color: "grey-6" }),
|
|
52
|
+
React.createElement(P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 }, course))),
|
|
53
|
+
React.createElement(Box, { "$align": "center", "$gap": 20 },
|
|
54
|
+
React.createElement(Calendar, { color: "grey-6" }),
|
|
55
|
+
React.createElement(P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 },
|
|
56
|
+
startDate,
|
|
57
|
+
" - ",
|
|
58
|
+
endDate)),
|
|
59
|
+
React.createElement(Box, { "$align": "center", "$gap": 20 },
|
|
60
|
+
React.createElement(Clock, { color: "grey-6" }),
|
|
61
|
+
React.createElement(P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 },
|
|
62
|
+
startTime,
|
|
63
|
+
" - ",
|
|
64
|
+
endTime)),
|
|
65
|
+
React.createElement(Box, { "$align": "center", "$gap": 20, sx: "max-width: 264px;" },
|
|
66
|
+
React.createElement(Pin, { color: "grey-6" }),
|
|
67
|
+
React.createElement(P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 }, location))),
|
|
68
|
+
React.createElement(Box, { "$display": "flex", "$dir": "row", "$gap": 8, sx: "margin-top: 32px; width: 100%;" }, React.Children.toArray(actions)))));
|
|
69
|
+
};
|
|
70
|
+
const Wrapper = styled.div `
|
|
71
|
+
min-width: 312px;
|
|
72
|
+
position: relative;
|
|
73
|
+
display: block;
|
|
74
|
+
text-decoration: none;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
box-shadow: var(--elevation-1);
|
|
77
|
+
border-radius: 16px;
|
|
78
|
+
background-color: var(--color-white);
|
|
79
|
+
border: 1px solid var(--color-white);
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
${({ $isLink }) => $isLink ? 'border: 1px solid var(--color-primary-blue-3);' : ''}
|
|
83
|
+
|
|
84
|
+
#overlayBottom {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#overlayTop {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
img {
|
|
94
|
+
border-radius: 16px 16px 0px 0px;
|
|
95
|
+
height: 160px;
|
|
96
|
+
width: 100%;
|
|
97
|
+
object-fit: cover;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
101
|
+
`;
|
|
102
|
+
const MeetingInformation = styled.div `
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
gap: 16px;
|
|
106
|
+
margin-top: 16px;
|
|
107
|
+
height: 128px;
|
|
108
|
+
`;
|
|
109
|
+
const Figure = styled.figure `
|
|
110
|
+
position: relative;
|
|
111
|
+
margin: 0;
|
|
112
|
+
`;
|
|
113
|
+
const OverlayBottomContainer = styled.div `
|
|
114
|
+
position: absolute;
|
|
115
|
+
right: 0;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
padding: 0 10px 10px 0;
|
|
118
|
+
opacity: 0;
|
|
119
|
+
display: flex;
|
|
120
|
+
gap: 8px;
|
|
121
|
+
`;
|
|
122
|
+
const OverlayTopContainer = styled.div `
|
|
123
|
+
position: absolute;
|
|
124
|
+
right: 0;
|
|
125
|
+
top: 0;
|
|
126
|
+
padding: 10px 10px 0 0;
|
|
127
|
+
opacity: 0;
|
|
128
|
+
display: flex;
|
|
129
|
+
gap: 8px;
|
|
130
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PersonCard } from './person';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { Box, Button, Dropdown, H, P } from '../../';
|
|
6
|
+
import { EllipsisHorizontal } from '../../../icons';
|
|
7
|
+
export const PersonCard = ({ actions, dotsActions, href, image, subtitle, sx, title, }) => {
|
|
8
|
+
return (React.createElement(Wrapper, { "$image": image, as: href ? 'a' : 'div', href: href },
|
|
9
|
+
React.createElement(Person, { "$sx": sx },
|
|
10
|
+
dotsActions && !!dotsActions.length && (React.createElement(Dropdown, { containerSx: "", hasArrow: true, maintainState: false, onClick: (e) => e.preventDefault(), options: dotsActions, sx: "position: absolute; top: 8px; right: 8px; z-index: 24; display: none;", trigger: React.createElement(Button, { className: "icon", icon: React.createElement(EllipsisHorizontal, null), onClick: (event) => event.stopPropagation(), showChevron: false, size: "small", type: "outlined" }) })),
|
|
11
|
+
React.createElement(Image, { alt: "", height: 400, quality: 100, src: image, width: 312 }),
|
|
12
|
+
React.createElement(Shadow, null),
|
|
13
|
+
React.createElement(Figcaption, null,
|
|
14
|
+
React.createElement(H, { as: "span", "$bold": true, "$color": "white", "$fontSize": 24, "$lineHeight": 36 }, title),
|
|
15
|
+
React.createElement(P, { as: "span", "$color": "white", "$fontSize": 14, "$lineHeight": 20 }, subtitle),
|
|
16
|
+
actions && (React.createElement(Box, { "$display": "flex", "$dir": "row", "$gap": 8, sx: "margin-top: 16px;" }, React.Children.toArray(actions)))))));
|
|
17
|
+
};
|
|
18
|
+
const Wrapper = styled.div `
|
|
19
|
+
width: 312px;
|
|
20
|
+
height: 400px;
|
|
21
|
+
display: block;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
|
|
25
|
+
img {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0px;
|
|
28
|
+
left: 0px;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
border-radius: 16px;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
const Shadow = styled.div `
|
|
35
|
+
border-radius: 16px;
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0px;
|
|
38
|
+
left: 0px;
|
|
39
|
+
right: 0px;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 66.67%, #000 98.25%),
|
|
43
|
+
transparent 50% / cover no-repeat;
|
|
44
|
+
`;
|
|
45
|
+
const Person = styled.figure `
|
|
46
|
+
position: relative;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 100%;
|
|
49
|
+
margin: 0px;
|
|
50
|
+
border-radius: 16px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: flex-end;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
|
|
55
|
+
&:hover > div {
|
|
56
|
+
display: initial;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
60
|
+
`;
|
|
61
|
+
const Figcaption = styled.figcaption `
|
|
62
|
+
position: relative;
|
|
63
|
+
width: 100%;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
padding: 16px 24px;
|
|
68
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PriceCard } from './price';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Box, Button, H, P, Dropdown } from '../../';
|
|
5
|
+
import { Checkmark, EllipsisHorizontal } from '../../../icons';
|
|
6
|
+
export const PriceCard = ({ actions, content, dotsActions, featureTitle, features, label, price, title, }) => {
|
|
7
|
+
const id = React.useId();
|
|
8
|
+
return (React.createElement(Price, null,
|
|
9
|
+
dotsActions && !!dotsActions.length && (React.createElement(Dropdown, { className: "dot-dropdown", hasArrow: true, maintainState: false, offset: [0, 32], options: dotsActions, sx: `
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 6px;
|
|
12
|
+
right: 6px;
|
|
13
|
+
display: none;
|
|
14
|
+
`, trigger: React.createElement(Button, { icon: React.createElement(EllipsisHorizontal, null), showChevron: false, type: "outlined", size: "small", className: "icon" }), onClick: (e) => e.preventDefault() })),
|
|
15
|
+
label && (React.createElement(Box, { "$justify": "center", sx: `
|
|
16
|
+
width: 100%;
|
|
17
|
+
position: absolute;
|
|
18
|
+
z-index: -1;
|
|
19
|
+
top: -33px;` },
|
|
20
|
+
React.createElement(Label, null,
|
|
21
|
+
React.createElement(P, { as: "span", "$fontSize": 12, "$lineHeight": 16, "$mediumBold": true, "$textClampLines": 1 }, label)))),
|
|
22
|
+
React.createElement(Box, { "$align": "stretch", "$display": "flex", "$dir": "column", "$gap": 24, sx: `
|
|
23
|
+
padding: 24px 48px;
|
|
24
|
+
background-color: var(--color-grey-10);
|
|
25
|
+
border-radius: 16px 16px 0px 0px;
|
|
26
|
+
` },
|
|
27
|
+
React.createElement(H, { as: "h6", "$fontSize": 24, "$lineHeight": 36, "$semiBold": true, "$textAlign": "center" }, title),
|
|
28
|
+
React.createElement(Box, { "$dir": "column" },
|
|
29
|
+
React.createElement(H, { as: "p", "$bold": true, "$fontSize": 32, "$lineHeight": 48, "$textClampLines": 5, "$textAlign": "center" }, price),
|
|
30
|
+
React.createElement(P, { as: "span", "$color": "grey-4", "$textAlign": "center" }, "/month")),
|
|
31
|
+
actions),
|
|
32
|
+
React.createElement(Box, { sx: "padding: 16px 24px; position: relative;", "$display": "flex", "$dir": "column" },
|
|
33
|
+
React.createElement(P, { sx: "padding: 16px 0px;" }, content),
|
|
34
|
+
React.createElement(Divider, null),
|
|
35
|
+
React.createElement(Box, { sx: "padding: 16px 0px;", "$dir": "column", "$gap": 8 },
|
|
36
|
+
React.createElement(P, { "$color": "grey-2", "$mediumBold": true }, featureTitle),
|
|
37
|
+
features.map((item, index) => (React.createElement(Box, { key: id + index.toString(36), "$align": "center", "$gap": 12 },
|
|
38
|
+
React.createElement(Checkmark, { color: "green-5", sx: "padding: 2px; border-radius: 50%; background-color: var(--color-green-9);" }),
|
|
39
|
+
React.createElement(P, { "$fontSize": 14, "$lineHeight": 20 }, item))))))));
|
|
40
|
+
};
|
|
41
|
+
const Price = styled.figure `
|
|
42
|
+
position: relative;
|
|
43
|
+
z-index: 1;
|
|
44
|
+
margin: 0px;
|
|
45
|
+
padding: 0px;
|
|
46
|
+
width: 280px;
|
|
47
|
+
height: fit-content;
|
|
48
|
+
border-radius: 16px;
|
|
49
|
+
box-shadow: var(--elevation-2);
|
|
50
|
+
user-select: none;
|
|
51
|
+
border: 1px solid transparent;
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
border: 1px solid var(--color-primary-blue-3);
|
|
55
|
+
|
|
56
|
+
.dot-dropdown {
|
|
57
|
+
display: flex;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
const Label = styled.div `
|
|
62
|
+
max-width: calc(100% - 32px);
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
padding: 8px 24px;
|
|
65
|
+
border-radius: 16px 16px 0px 0px;
|
|
66
|
+
background-color: var(--color-grey-10);
|
|
67
|
+
box-shadow: var(--elevation-2);
|
|
68
|
+
border-bottom: 1px solid var(--color-grey-9);
|
|
69
|
+
`;
|
|
70
|
+
const Divider = styled.div `
|
|
71
|
+
height: 1px;
|
|
72
|
+
width: 100%;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
background-color: var(--color-grey-9);
|
|
75
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RegularCard } from './regular';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { Box } from '../../';
|
|
6
|
+
export const RegularCard = ({ children, href, image, sx, }) => {
|
|
7
|
+
return (React.createElement(Wrapper, { "$isLink": !!href, "$sx": sx, as: href ? 'a' : 'div', href: href },
|
|
8
|
+
React.createElement(Image, { alt: "", height: 352, quality: 100, src: image, width: 352 }),
|
|
9
|
+
React.createElement(Box, { "$dir": "column", "$padding": 24 }, children)));
|
|
10
|
+
};
|
|
11
|
+
const Wrapper = styled.div `
|
|
12
|
+
position: relative;
|
|
13
|
+
display: block;
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
box-shadow: var(--elevation-1);
|
|
17
|
+
border-radius: 16px;
|
|
18
|
+
background-color: var(--color-white);
|
|
19
|
+
|
|
20
|
+
${({ $isLink }) => $isLink
|
|
21
|
+
? `
|
|
22
|
+
&:hover {
|
|
23
|
+
border: 1px solid var(--color-primary-blue-3);
|
|
24
|
+
}`
|
|
25
|
+
: ''}
|
|
26
|
+
|
|
27
|
+
img {
|
|
28
|
+
border-radius: 16px 16px 0px 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
32
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VideoEpisodeCard } from './video';
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { Box, H, P, Rate } from '../../';
|
|
6
|
+
export const VideoEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, rating, subtitle, supportLabel, sx, title, }) => {
|
|
7
|
+
const hasLogo = !!logo;
|
|
8
|
+
return (React.createElement(Wrapper, { "$sx": sx, href: href },
|
|
9
|
+
React.createElement(Figure, null,
|
|
10
|
+
actionDropdown && React.createElement(DropdownWrapper, null, actionDropdown),
|
|
11
|
+
React.createElement(Image, { alt: "", className: "thumbnail", height: 213, quality: 100, src: image, width: 379 }),
|
|
12
|
+
React.createElement(Figcaption, null,
|
|
13
|
+
React.createElement(Box, { "$display": "block", className: "hidden" }, cta),
|
|
14
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
15
|
+
logo,
|
|
16
|
+
React.createElement(Box, { "$dir": "column" },
|
|
17
|
+
React.createElement(H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
18
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
19
|
+
supportLabel && (React.createElement(P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
20
|
+
React.createElement(P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 4, className: "hidden" }, content),
|
|
21
|
+
React.createElement(Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
22
|
+
React.createElement(Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
23
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
24
|
+
"(",
|
|
25
|
+
numRating,
|
|
26
|
+
")"),
|
|
27
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React.Children.toArray(actions)))))));
|
|
28
|
+
};
|
|
29
|
+
const Wrapper = styled.a `
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
display: block;
|
|
32
|
+
position: relative;
|
|
33
|
+
z-index: 1;
|
|
34
|
+
user-select: none;
|
|
35
|
+
position: relative;
|
|
36
|
+
height: 288px;
|
|
37
|
+
width: 379px;
|
|
38
|
+
transition: transform 0.3s;
|
|
39
|
+
|
|
40
|
+
figure {
|
|
41
|
+
transition: width 0.3s;
|
|
42
|
+
width: 379px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.hidden {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
transform: translate(-13px, -55px);
|
|
51
|
+
z-index: 6;
|
|
52
|
+
|
|
53
|
+
.hidden {
|
|
54
|
+
display: -webkit-box;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.not-hover {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.thumbnail {
|
|
62
|
+
border-radius: 16px 16px 0px 0px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
figure {
|
|
66
|
+
position: absolute;
|
|
67
|
+
width: 406px;
|
|
68
|
+
box-shadow: var(--elevation-3);
|
|
69
|
+
background: linear-gradient(
|
|
70
|
+
0deg,
|
|
71
|
+
#ffffff 50%,
|
|
72
|
+
rgba(255, 255, 255, 0.85) 55%,
|
|
73
|
+
rgba(255, 255, 255, 0.1) 80%
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
figcaption {
|
|
78
|
+
margin-top: -40px;
|
|
79
|
+
padding: 24px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
84
|
+
`;
|
|
85
|
+
const Figure = styled.figure `
|
|
86
|
+
max-width: 410px;
|
|
87
|
+
width: max-content;
|
|
88
|
+
margin: 0px;
|
|
89
|
+
border-radius: 16px;
|
|
90
|
+
|
|
91
|
+
.thumbnail {
|
|
92
|
+
position: relative;
|
|
93
|
+
object-fit: cover;
|
|
94
|
+
z-index: -1;
|
|
95
|
+
width: 100%;
|
|
96
|
+
aspect-ratio: 379 / 213;
|
|
97
|
+
height: 228px;
|
|
98
|
+
border-radius: 16px;
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
const Figcaption = styled.figcaption `
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-flow: column nowrap;
|
|
104
|
+
gap: 8px;
|
|
105
|
+
padding: 8px;
|
|
106
|
+
`;
|
|
107
|
+
const DropdownWrapper = styled.div `
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 8px;
|
|
110
|
+
right: 8px;
|
|
111
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WrittenEpisodeCard } from './written';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { Box, H, P, Rate } from '../../';
|
|
6
|
+
export const WrittenEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, rating, subtitle, supportLabel, sx, title, }) => {
|
|
7
|
+
const hasLogo = !!logo;
|
|
8
|
+
return (React.createElement(Wrapper, { "$sx": sx, href: href },
|
|
9
|
+
React.createElement(Figure, null,
|
|
10
|
+
actionDropdown && React.createElement(DropdownWrapper, null, actionDropdown),
|
|
11
|
+
React.createElement(Image, { alt: "", className: "thumbnail", height: 228, quality: 100, src: image, width: 176 }),
|
|
12
|
+
React.createElement(Figcaption, null,
|
|
13
|
+
React.createElement(Box, { "$display": "block", className: "hidden" }, cta),
|
|
14
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
15
|
+
logo,
|
|
16
|
+
React.createElement(Box, { "$dir": "column" },
|
|
17
|
+
React.createElement(H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
18
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
19
|
+
supportLabel && (React.createElement(P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
20
|
+
React.createElement(P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 6, className: "hidden inline" }, content),
|
|
21
|
+
React.createElement(Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
22
|
+
React.createElement(Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
23
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
24
|
+
"(",
|
|
25
|
+
numRating,
|
|
26
|
+
")"),
|
|
27
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React.Children.toArray(actions)))))));
|
|
28
|
+
};
|
|
29
|
+
const Wrapper = styled.a `
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
display: block;
|
|
32
|
+
position: relative;
|
|
33
|
+
z-index: 1;
|
|
34
|
+
user-select: none;
|
|
35
|
+
width: 149px;
|
|
36
|
+
height: 288px;
|
|
37
|
+
transition: transform 0.3s;
|
|
38
|
+
|
|
39
|
+
figure {
|
|
40
|
+
transition: width 0.3s;
|
|
41
|
+
width: 149px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.hidden {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
transform: translate(-65px, -55px);
|
|
50
|
+
z-index: 6;
|
|
51
|
+
|
|
52
|
+
.hidden {
|
|
53
|
+
display: flex;
|
|
54
|
+
|
|
55
|
+
&.inline {
|
|
56
|
+
display: -webkit-box;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.not-hover {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.thumbnail {
|
|
65
|
+
border-radius: 16px 16px 0px 0px;
|
|
66
|
+
aspect-ratio: 228 / 228;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
figure {
|
|
70
|
+
position: absolute;
|
|
71
|
+
width: 280px;
|
|
72
|
+
aspect-ratio: 280 / 434;
|
|
73
|
+
box-shadow: var(--elevation-3);
|
|
74
|
+
background: linear-gradient(
|
|
75
|
+
0deg,
|
|
76
|
+
#ffffff 50%,
|
|
77
|
+
rgba(255, 255, 255, 0.85) 55%,
|
|
78
|
+
rgba(255, 255, 255, 0.1) 80%
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
figcaption {
|
|
83
|
+
margin-top: -80px;
|
|
84
|
+
padding: 24px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
89
|
+
`;
|
|
90
|
+
const Figure = styled.figure `
|
|
91
|
+
margin: 0px;
|
|
92
|
+
border-radius: 16px;
|
|
93
|
+
|
|
94
|
+
.thumbnail {
|
|
95
|
+
border-radius: 16px;
|
|
96
|
+
object-fit: cover;
|
|
97
|
+
position: relative;
|
|
98
|
+
z-index: -1;
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 228px;
|
|
101
|
+
aspect-ratio: 228 / 326;
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const Figcaption = styled.figcaption `
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-flow: column nowrap;
|
|
107
|
+
gap: 8px;
|
|
108
|
+
padding: 8px;
|
|
109
|
+
`;
|
|
110
|
+
const DropdownWrapper = styled.div `
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 8px;
|
|
113
|
+
right: 8px;
|
|
114
|
+
`;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Button, P, Box, H } from '../..';
|
|
5
|
+
import { GraduationCap, Search as SearchIcon, Plus, Close, } from '../../../icons';
|
|
6
|
+
export const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, courses, label, courseIsSelected, setCourseIsSelected, subtitle, onlyOneCanBeSelected = false, ...rest }) => {
|
|
7
|
+
const wrapperRef = React.useRef(null);
|
|
8
|
+
const [open, setOpen] = React.useState(false);
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
if (disabled) {
|
|
11
|
+
setOpen(false);
|
|
12
|
+
}
|
|
13
|
+
}, [disabled]);
|
|
14
|
+
const handleOpen = () => {
|
|
15
|
+
if (disabled) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
setOpen((prev) => !prev);
|
|
19
|
+
};
|
|
20
|
+
const handleBlur = (event) => {
|
|
21
|
+
if (closeOnBlur &&
|
|
22
|
+
wrapperRef?.current &&
|
|
23
|
+
!wrapperRef?.current?.contains(event.relatedTarget)) {
|
|
24
|
+
setOpen(false);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const selectedCourses = courses.filter((course) => courseIsSelected[course.id]);
|
|
28
|
+
return (React.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
|
|
29
|
+
React.createElement(Box, { "$gap": 16, "$align": "center" },
|
|
30
|
+
React.createElement(IconWrapper, { "$color": "var(--color-hue-purple-2)" },
|
|
31
|
+
React.createElement(GraduationCap, { color: "hue-purple-1", size: 24 })),
|
|
32
|
+
React.createElement(H.Six, { "$bold": true, "$color": "hue-purple-1" }, "Course")),
|
|
33
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 14, sx: "margin-top: 32px;" }, subtitle),
|
|
34
|
+
React.createElement(Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen, customDropdownIcon: SearchIcon, sx: "margin-top: 32px;" }, label),
|
|
35
|
+
open && (React.createElement(Container, { "$offset": offset, "$sx": containerSx }, courses.map((course) => (React.createElement(OptionWrapper, { key: course.id, "$disabled": disabled, onClick: () => {
|
|
36
|
+
setCourseIsSelected(onlyOneCanBeSelected
|
|
37
|
+
? {
|
|
38
|
+
[course.id]: true,
|
|
39
|
+
}
|
|
40
|
+
: {
|
|
41
|
+
...courseIsSelected,
|
|
42
|
+
[course.id]: true,
|
|
43
|
+
});
|
|
44
|
+
if (closeOnChange) {
|
|
45
|
+
setOpen(false);
|
|
46
|
+
}
|
|
47
|
+
} },
|
|
48
|
+
React.createElement(Box, { "$display": "flex", "$align": "center" },
|
|
49
|
+
React.createElement(P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, course.name),
|
|
50
|
+
React.createElement(Plus, { sx: "margin-left: auto;" }))))))),
|
|
51
|
+
!!selectedCourses.length && (React.createElement("ul", { style: { padding: 0 } }, selectedCourses.map((course) => {
|
|
52
|
+
return (React.createElement("li", { key: course.id, style: {
|
|
53
|
+
listStyleType: 'none',
|
|
54
|
+
display: 'flex',
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
marginTop: '16px',
|
|
57
|
+
} },
|
|
58
|
+
React.createElement(StyledImage, { alt: "", height: 64, src: course.imageSrc, width: 114 }),
|
|
59
|
+
React.createElement(P, { sx: "margin-left: 16px;" }, course.name),
|
|
60
|
+
React.createElement(Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
|
|
61
|
+
...courseIsSelected,
|
|
62
|
+
[course.id]: false,
|
|
63
|
+
}) })));
|
|
64
|
+
})))));
|
|
65
|
+
};
|
|
66
|
+
const Wrapper = styled.div `
|
|
67
|
+
position: relative;
|
|
68
|
+
display: block;
|
|
69
|
+
outline: none;
|
|
70
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
71
|
+
`;
|
|
72
|
+
const Container = styled.div `
|
|
73
|
+
min-width: 280px;
|
|
74
|
+
max-height: 600px;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
background-color: var(--color-white);
|
|
78
|
+
position: absolute;
|
|
79
|
+
width: 100%;
|
|
80
|
+
outline: none;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
box-shadow: var(--elevation-2);
|
|
83
|
+
border-radius: 8px;
|
|
84
|
+
overflow: auto;
|
|
85
|
+
z-index: 2;
|
|
86
|
+
|
|
87
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
88
|
+
|
|
89
|
+
${({ $offset }) => $offset ? `transform: translate(${$offset[0]}px, ${$offset[1]}px);` : ''}
|
|
90
|
+
`;
|
|
91
|
+
const OptionWrapper = styled.div `
|
|
92
|
+
position: relative;
|
|
93
|
+
padding: 12px 16px;
|
|
94
|
+
user-select: none;
|
|
95
|
+
gap: 8px;
|
|
96
|
+
|
|
97
|
+
& > * {
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
${({ $disabled }) => {
|
|
102
|
+
if ($disabled) {
|
|
103
|
+
return `cursor: initial;
|
|
104
|
+
color: var(--color-grey-7);
|
|
105
|
+
background-color: var(--color-grey-10);`;
|
|
106
|
+
}
|
|
107
|
+
return `
|
|
108
|
+
&:hover {
|
|
109
|
+
background-color: var(--color-grey-10);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:active {
|
|
113
|
+
background-color: var(--color-grey-8);
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
}}
|
|
117
|
+
`;
|
|
118
|
+
const StyledImage = styled.img `
|
|
119
|
+
border-radius: 8px;
|
|
120
|
+
width: 113.78px;
|
|
121
|
+
height: 64px;
|
|
122
|
+
margin-right: 16px;
|
|
123
|
+
`;
|
|
124
|
+
const IconWrapper = styled.div `
|
|
125
|
+
padding: 12px;
|
|
126
|
+
border-radius: 8px;
|
|
127
|
+
background-color: ${({ $color }) => $color};
|
|
128
|
+
width: fit-content;
|
|
129
|
+
`;
|