@soul-refiner/design-system 2.0.3 → 2.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.js +1 -140
- package/dist/common/date.js +1 -34
- package/dist/common/styles.js +30 -62
- package/dist/components/actions/button/button.js +21 -111
- package/dist/components/actions/dropdown/dropdown.js +21 -176
- package/dist/components/actions/rate/rate.js +4 -55
- package/dist/components/actions/switch/switch.js +5 -39
- package/dist/components/actions/toggle/toggle.js +6 -33
- package/dist/components/actions/upload/upload.js +9 -167
- package/dist/components/atoms/box/box.js +4 -18
- package/dist/components/atoms/hide/hide.js +1 -18
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +1 -36
- package/dist/components/atoms/time_ago/time_ago.js +1 -39
- package/dist/components/atoms/typography/display.js +5 -18
- package/dist/components/atoms/typography/heading.js +6 -43
- package/dist/components/atoms/typography/paragraph.js +7 -20
- package/dist/components/atoms/typography/typography.js +3 -10
- package/dist/components/card/action/action.js +8 -41
- package/dist/components/card/audio/audio.js +7 -57
- package/dist/components/card/card.js +1 -33
- package/dist/components/card/feature/feature.js +14 -86
- package/dist/components/card/meeting/meeting.js +8 -102
- package/dist/components/card/person/person.js +6 -39
- package/dist/components/card/price/price.js +7 -49
- package/dist/components/card/regular/regular.js +5 -26
- package/dist/components/card/styles.js +2 -9
- package/dist/components/card/video/video.js +7 -57
- package/dist/components/card/written/written.js +7 -57
- package/dist/components/custom/courses_selection/courses_selection.js +12 -104
- package/dist/components/custom/users_selection/users_selection.js +12 -86
- package/dist/components/editor/constants.js +1 -195
- package/dist/components/editor/context.js +1 -17
- package/dist/components/editor/editor.js +5 -45
- package/dist/components/editor/icons/border-all.js +1 -12
- package/dist/components/editor/icons/border-bottom.js +1 -12
- package/dist/components/editor/icons/border-left.js +1 -12
- package/dist/components/editor/icons/border-none.js +1 -12
- package/dist/components/editor/icons/border-right.js +1 -12
- package/dist/components/editor/icons/border-top.js +1 -12
- package/dist/components/editor/navbar/alignment_dropdown.js +1 -106
- package/dist/components/editor/navbar/button_modal.js +3 -60
- package/dist/components/editor/navbar/navbar.js +7 -178
- package/dist/components/editor/navbar/style_dropdown.js +1 -74
- package/dist/components/editor/plugins/blocks/blockquote.js +1 -17
- package/dist/components/editor/plugins/blocks/blocks.js +1 -54
- package/dist/components/editor/plugins/blocks/buttons.js +8 -70
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +1 -77
- package/dist/components/editor/plugins/blocks/image.js +1 -60
- package/dist/components/editor/plugins/blocks/list.js +2 -20
- package/dist/components/editor/plugins/blocks/media-popover.js +1 -41
- package/dist/components/editor/plugins/blocks/plate-button.js +1 -63
- package/dist/components/editor/plugins/blocks/popover.js +1 -38
- package/dist/components/editor/plugins/blocks/qa.js +3 -45
- package/dist/components/editor/plugins/blocks/resizable.js +1 -47
- package/dist/components/editor/plugins/blocks/separator.js +1 -43
- package/dist/components/editor/plugins/blocks/table-cell.js +1 -48
- package/dist/components/editor/plugins/blocks/table-row.js +1 -16
- package/dist/components/editor/plugins/blocks/table.js +1 -98
- package/dist/components/editor/plugins/blocks/text.js +1 -103
- package/dist/components/editor/plugins/blocks/video.js +1 -42
- package/dist/components/editor/plugins/leafs/leafs.js +1 -37
- package/dist/components/editor/plugins/leafs/link.js +4 -55
- package/dist/components/editor/plugins/marks/marks.js +1 -17
- package/dist/components/editor/plugins/plate.js +1 -43
- package/dist/components/editor/plugins/utils/exitBreak.js +1 -36
- package/dist/components/editor/plugins/utils/resetBlockType.js +1 -26
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +1 -11
- package/dist/components/editor/plugins/utils/softBreak.js +1 -19
- package/dist/components/editor/plugins/utils/utils.js +1 -17
- package/dist/components/editor/simple_editor/navbar.js +4 -110
- package/dist/components/editor/simple_editor/plugins.js +1 -93
- package/dist/components/editor/simple_editor/simple_editor.js +3 -34
- package/dist/components/editor/styles/menu_button.js +3 -9
- package/dist/components/feedback/animated_toast/animated_toast.js +3 -32
- package/dist/components/feedback/badge/badge.js +7 -56
- package/dist/components/feedback/banner/banner.js +6 -60
- package/dist/components/feedback/chip/chip.js +8 -81
- package/dist/components/feedback/loader/loader.js +9 -33
- package/dist/components/feedback/notification/notification.js +6 -59
- package/dist/components/feedback/progress/progress.js +14 -76
- package/dist/components/feedback/toast/toast.js +7 -55
- package/dist/components/feedback/tooltip/tooltip.js +1 -34
- package/dist/components/iconography/avatar/avatar.js +22 -141
- package/dist/components/iconography/avatar/icons/approved.js +1 -14
- package/dist/components/iconography/avatar/icons/busy.js +1 -14
- package/dist/components/iconography/avatar/icons/declined.js +1 -14
- package/dist/components/iconography/avatar/icons/default.js +1 -13
- package/dist/components/iconography/avatar/icons/focus.js +1 -14
- package/dist/components/iconography/avatar/icons/locked.js +1 -14
- package/dist/components/iconography/avatar/icons/offline.js +1 -14
- package/dist/components/iconography/avatar/icons/online.js +1 -13
- package/dist/components/iconography/avatar/icons/subscribed.js +1 -18
- package/dist/components/iconography/icon/icon.js +3 -18
- package/dist/components/input/calendar/calendar.js +13 -139
- package/dist/components/input/checkbox/checkbox.js +5 -23
- package/dist/components/input/date/date.js +13 -241
- package/dist/components/input/filter/filter.js +13 -212
- package/dist/components/input/filter/filter_option.js +9 -50
- package/dist/components/input/radio/radio.js +7 -45
- package/dist/components/input/search/search.js +17 -83
- package/dist/components/input/select/select.js +6 -27
- package/dist/components/input/text_area/text_area.js +15 -60
- package/dist/components/input/text_input/text_input.js +21 -102
- package/dist/components/input/time/time.js +3 -47
- package/dist/components/media/video/video.js +1 -42
- package/dist/components/media/video-player/playlist-item.js +4 -37
- package/dist/components/media/video-player/video.js +13 -121
- package/dist/components/navigation/breadcrumb/breadcrumb.js +11 -66
- package/dist/components/navigation/inner/inner.js +14 -130
- package/dist/components/navigation/tabs/tabs.js +15 -101
- package/dist/components/surfaces/accordion/accordion.js +5 -46
- package/dist/components/surfaces/calendar_date/calendar_date.js +10 -39
- package/dist/components/surfaces/carousel/card/card.js +7 -55
- package/dist/components/surfaces/comment/comment.js +19 -152
- package/dist/components/surfaces/comment/helpers.js +1 -30
- package/dist/components/surfaces/drawer/drawer.js +7 -75
- package/dist/components/surfaces/message/message.js +4 -39
- package/dist/components/surfaces/modal/modal.js +8 -99
- package/dist/components/surfaces/portal/portal.js +1 -35
- package/dist/components/surfaces/post/post.js +19 -161
- package/dist/components/table/table/table.js +29 -120
- package/dist/emoji/emojis.json.js +1 -36331
- package/dist/icons/arrow/arrow_all.js +1 -15
- package/dist/icons/arrow/arrow_all_diagonal.js +1 -15
- package/dist/icons/arrow/arrow_both_downwards.js +1 -15
- package/dist/icons/arrow/arrow_both_upwards.js +1 -15
- package/dist/icons/arrow/arrow_circle_left.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +1 -17
- package/dist/icons/arrow/arrow_circle_right.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_down.js +1 -15
- package/dist/icons/arrow/arrow_down_bold.js +1 -15
- package/dist/icons/arrow/arrow_down_circle.js +1 -15
- package/dist/icons/arrow/arrow_left.js +1 -15
- package/dist/icons/arrow/arrow_left_bold.js +1 -15
- package/dist/icons/arrow/arrow_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_left_curved.js +1 -15
- package/dist/icons/arrow/arrow_left_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_right.js +1 -15
- package/dist/icons/arrow/arrow_right_bold.js +1 -15
- package/dist/icons/arrow/arrow_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_right_curved.js +1 -15
- package/dist/icons/arrow/arrow_right_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_up.js +1 -15
- package/dist/icons/arrow/arrow_up_bold.js +1 -15
- package/dist/icons/arrow/arrow_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_down.js +1 -15
- package/dist/icons/arrow/chevron_down_circle.js +1 -15
- package/dist/icons/arrow/chevron_down_double.js +1 -15
- package/dist/icons/arrow/chevron_down_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_left.js +1 -15
- package/dist/icons/arrow/chevron_left_circle.js +1 -15
- package/dist/icons/arrow/chevron_left_double.js +1 -15
- package/dist/icons/arrow/chevron_left_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_right.js +1 -15
- package/dist/icons/arrow/chevron_right_circle.js +1 -15
- package/dist/icons/arrow/chevron_right_double.js +1 -15
- package/dist/icons/arrow/chevron_right_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_scroll.js +1 -15
- package/dist/icons/arrow/chevron_up.js +1 -15
- package/dist/icons/arrow/chevron_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_up_double.js +1 -15
- package/dist/icons/arrow/chevron_up_double_circle.js +1 -15
- package/dist/icons/arrow/forward_all.js +1 -15
- package/dist/icons/arrow/forward_all_bold.js +1 -15
- package/dist/icons/arrow/forward_bold.js +1 -15
- package/dist/icons/arrow/redo.js +1 -15
- package/dist/icons/arrow/redo_bold.js +1 -15
- package/dist/icons/arrow/reply.js +1 -15
- package/dist/icons/arrow/reply_all.js +1 -15
- package/dist/icons/arrow/reply_all_bold.js +1 -15
- package/dist/icons/arrow/reply_bold.js +1 -15
- package/dist/icons/arrow/undo.js +1 -15
- package/dist/icons/arrow/undo_bold.js +1 -15
- package/dist/icons/audio_video/drag_indicator.js +1 -15
- package/dist/icons/audio_video/eject.js +1 -15
- package/dist/icons/audio_video/equalizer.js +1 -15
- package/dist/icons/audio_video/fast_forward.js +1 -15
- package/dist/icons/audio_video/fast_forward_30.js +1 -15
- package/dist/icons/audio_video/fullscreen.js +1 -15
- package/dist/icons/audio_video/headphones.js +1 -15
- package/dist/icons/audio_video/library_add.js +1 -15
- package/dist/icons/audio_video/library_music.js +1 -15
- package/dist/icons/audio_video/microphone.js +1 -15
- package/dist/icons/audio_video/musical_note.js +1 -15
- package/dist/icons/audio_video/next.js +1 -15
- package/dist/icons/audio_video/pause.js +1 -15
- package/dist/icons/audio_video/pause_circle.js +1 -15
- package/dist/icons/audio_video/play.js +1 -15
- package/dist/icons/audio_video/play_circle.js +1 -15
- package/dist/icons/audio_video/play_display.js +1 -15
- package/dist/icons/audio_video/play_pause.js +1 -15
- package/dist/icons/audio_video/play_solid.js +1 -15
- package/dist/icons/audio_video/player_list.js +1 -15
- package/dist/icons/audio_video/player_list_add.js +1 -15
- package/dist/icons/audio_video/player_list_play.js +1 -15
- package/dist/icons/audio_video/previous.js +1 -15
- package/dist/icons/audio_video/radio.js +1 -15
- package/dist/icons/audio_video/record.js +1 -15
- package/dist/icons/audio_video/repeat.js +1 -15
- package/dist/icons/audio_video/rewind.js +1 -15
- package/dist/icons/audio_video/rewind_30.js +1 -15
- package/dist/icons/audio_video/shuffle.js +1 -15
- package/dist/icons/audio_video/sound_wave.js +1 -15
- package/dist/icons/audio_video/stop.js +1 -15
- package/dist/icons/audio_video/stop_circle.js +1 -15
- package/dist/icons/audio_video/subscriptions.js +1 -15
- package/dist/icons/audio_video/tuner.js +1 -15
- package/dist/icons/audio_video/volume.js +1 -15
- package/dist/icons/audio_video/volume_high.js +1 -15
- package/dist/icons/audio_video/volume_low.js +1 -15
- package/dist/icons/audio_video/volume_slash.js +1 -15
- package/dist/icons/basic/aa_sansserif.js +1 -16
- package/dist/icons/basic/aa_serif.js +1 -16
- package/dist/icons/basic/anchor.js +1 -17
- package/dist/icons/basic/bible.js +1 -15
- package/dist/icons/basic/bold.js +1 -15
- package/dist/icons/basic/book.js +1 -15
- package/dist/icons/basic/book_open.js +1 -15
- package/dist/icons/basic/bookmark.js +1 -15
- package/dist/icons/basic/bookmark_add.js +1 -15
- package/dist/icons/basic/bookmark_slash.js +1 -15
- package/dist/icons/basic/bookmarks.js +1 -15
- package/dist/icons/basic/books.js +1 -18
- package/dist/icons/basic/box.js +1 -15
- package/dist/icons/basic/briefcase.js +1 -15
- package/dist/icons/basic/browse_activity.js +1 -15
- package/dist/icons/basic/browser.js +1 -15
- package/dist/icons/basic/browser_slash.js +1 -15
- package/dist/icons/basic/calculator.js +1 -15
- package/dist/icons/basic/camera.js +1 -15
- package/dist/icons/basic/camera_add.js +1 -15
- package/dist/icons/basic/camera_slash.js +1 -15
- package/dist/icons/basic/checkmark.js +1 -15
- package/dist/icons/basic/checkmark_circle.js +1 -17
- package/dist/icons/basic/checkmark_filled.js +1 -15
- package/dist/icons/basic/checkmarks.js +1 -15
- package/dist/icons/basic/circle.js +1 -15
- package/dist/icons/basic/circle_slash.js +1 -17
- package/dist/icons/basic/clear_text_style.js +1 -15
- package/dist/icons/basic/close.js +1 -15
- package/dist/icons/basic/close_circle.js +1 -15
- package/dist/icons/basic/close_filled.js +1 -15
- package/dist/icons/basic/copy.js +1 -15
- package/dist/icons/basic/delete.js +1 -15
- package/dist/icons/basic/detail.js +1 -15
- package/dist/icons/basic/dot.js +1 -15
- package/dist/icons/basic/download.js +1 -15
- package/dist/icons/basic/download_arrow.js +1 -15
- package/dist/icons/basic/droplet.js +1 -17
- package/dist/icons/basic/ellipsis_horizontal.js +1 -15
- package/dist/icons/basic/ellipsis_horizontal_circle.js +1 -15
- package/dist/icons/basic/ellipsis_vertical.js +1 -15
- package/dist/icons/basic/ellipsis_vertical_circle.js +1 -15
- package/dist/icons/basic/eye.js +1 -15
- package/dist/icons/basic/eye_slash.js +1 -15
- package/dist/icons/basic/fingerprint.js +1 -15
- package/dist/icons/basic/flag.js +1 -15
- package/dist/icons/basic/flag_wave.js +1 -15
- package/dist/icons/basic/flag_wave_filled.js +1 -15
- package/dist/icons/basic/flame.js +1 -15
- package/dist/icons/basic/gauge.js +1 -15
- package/dist/icons/basic/glasses.js +1 -15
- package/dist/icons/basic/graduation_cap.js +1 -15
- package/dist/icons/basic/hashmark.js +1 -15
- package/dist/icons/basic/heart.js +1 -15
- package/dist/icons/basic/heart_slash.js +1 -15
- package/dist/icons/basic/highlighter.js +1 -15
- package/dist/icons/basic/home.js +1 -15
- package/dist/icons/basic/image.js +1 -15
- package/dist/icons/basic/inbox.js +1 -15
- package/dist/icons/basic/italic.js +1 -15
- package/dist/icons/basic/layers.js +1 -15
- package/dist/icons/basic/lightening.js +1 -15
- package/dist/icons/basic/lightening_slash.js +1 -15
- package/dist/icons/basic/link.js +1 -15
- package/dist/icons/basic/link_slash.js +1 -15
- package/dist/icons/basic/loudspeaker.js +1 -15
- package/dist/icons/basic/maximize.js +1 -15
- package/dist/icons/basic/menu.js +1 -15
- package/dist/icons/basic/menu_circle.js +1 -15
- package/dist/icons/basic/menu_dots.js +1 -15
- package/dist/icons/basic/microphone_slash.js +1 -15
- package/dist/icons/basic/minimize.js +1 -15
- package/dist/icons/basic/minus.js +1 -15
- package/dist/icons/basic/minus_circle.js +1 -15
- package/dist/icons/basic/move_item.js +1 -15
- package/dist/icons/basic/new.js +1 -15
- package/dist/icons/basic/newspaper.js +1 -15
- package/dist/icons/basic/node.js +1 -15
- package/dist/icons/basic/note_pad.js +1 -16
- package/dist/icons/basic/options.js +1 -15
- package/dist/icons/basic/paint_brush.js +1 -15
- package/dist/icons/basic/paperclip.js +1 -15
- package/dist/icons/basic/paperclip_slash.js +1 -15
- package/dist/icons/basic/pencil.js +1 -15
- package/dist/icons/basic/pencil_pad.js +1 -15
- package/dist/icons/basic/plus.js +1 -15
- package/dist/icons/basic/plus_circle.js +1 -15
- package/dist/icons/basic/presentation.js +1 -15
- package/dist/icons/basic/printer.js +1 -15
- package/dist/icons/basic/profile.js +1 -15
- package/dist/icons/basic/profile_check.js +1 -15
- package/dist/icons/basic/pulse.js +1 -15
- package/dist/icons/basic/qr_code.js +1 -15
- package/dist/icons/basic/resize.js +1 -17
- package/dist/icons/basic/scan.js +1 -15
- package/dist/icons/basic/scissors.js +1 -15
- package/dist/icons/basic/screenshot.js +1 -15
- package/dist/icons/basic/search.js +1 -15
- package/dist/icons/basic/select_item.js +1 -16
- package/dist/icons/basic/settings.js +1 -15
- package/dist/icons/basic/share.js +1 -15
- package/dist/icons/basic/share_external.js +1 -15
- package/dist/icons/basic/square.js +1 -15
- package/dist/icons/basic/star.js +1 -15
- package/dist/icons/basic/star_circle.js +1 -15
- package/dist/icons/basic/star_filled.js +1 -15
- package/dist/icons/basic/star_filled_half.js +1 -15
- package/dist/icons/basic/star_slash.js +1 -15
- package/dist/icons/basic/sticker.js +1 -15
- package/dist/icons/basic/strikethrough.js +1 -15
- package/dist/icons/basic/subtask.js +1 -16
- package/dist/icons/basic/tax.js +1 -18
- package/dist/icons/basic/text_bg_color.js +1 -15
- package/dist/icons/basic/text_color.js +1 -15
- package/dist/icons/basic/textbox.js +1 -15
- package/dist/icons/basic/thumbs_down.js +1 -15
- package/dist/icons/basic/thumbs_up.js +1 -15
- package/dist/icons/basic/thumbs_up_filled.js +1 -15
- package/dist/icons/basic/toggle_left.js +1 -15
- package/dist/icons/basic/toggle_right.js +1 -15
- package/dist/icons/basic/translate.js +1 -15
- package/dist/icons/basic/trash.js +1 -15
- package/dist/icons/basic/trash_slash.js +1 -15
- package/dist/icons/basic/underline.js +1 -15
- package/dist/icons/basic/upload.js +1 -15
- package/dist/icons/basic/video.js +1 -15
- package/dist/icons/basic/video_add.js +1 -16
- package/dist/icons/basic/video_slash.js +1 -15
- package/dist/icons/basic/wrench.js +1 -15
- package/dist/icons/basic/zoom_in.js +1 -15
- package/dist/icons/basic/zoom_out.js +1 -15
- package/dist/icons/data/bar_chart.js +1 -15
- package/dist/icons/data/bar_chart_downward.js +1 -15
- package/dist/icons/data/bar_chart_downward_outline.js +1 -15
- package/dist/icons/data/bar_chart_upward.js +1 -15
- package/dist/icons/data/bar_chart_upward_outline.js +1 -15
- package/dist/icons/data/candlestick_chart.js +1 -15
- package/dist/icons/data/four_circles.js +1 -15
- package/dist/icons/data/legend_toggle.js +1 -15
- package/dist/icons/data/line_chart.js +1 -15
- package/dist/icons/data/line_chart_area.js +1 -15
- package/dist/icons/data/line_chart_area_shaded.js +1 -15
- package/dist/icons/data/line_chart_double.js +1 -15
- package/dist/icons/data/line_chart_downward.js +1 -15
- package/dist/icons/data/line_chart_node.js +1 -15
- package/dist/icons/data/line_chart_outline.js +1 -15
- package/dist/icons/data/line_chart_search.js +1 -15
- package/dist/icons/data/line_chart_stars.js +1 -15
- package/dist/icons/data/line_chart_upward.js +1 -15
- package/dist/icons/data/pie_chart.js +1 -16
- package/dist/icons/data/tree.js +1 -15
- package/dist/icons/email/mail.js +1 -15
- package/dist/icons/email/mail_check.js +1 -15
- package/dist/icons/email/mail_minus.js +1 -15
- package/dist/icons/email/mail_send.js +1 -15
- package/dist/icons/email/send.js +1 -15
- package/dist/icons/email/send_close.js +1 -15
- package/dist/icons/email/send_schedule.js +1 -15
- package/dist/icons/email/send_text.js +1 -15
- package/dist/icons/emoji/emoji_add.js +1 -15
- package/dist/icons/emoji/laughing.js +1 -15
- package/dist/icons/emoji/neutral.js +1 -15
- package/dist/icons/emoji/sad.js +1 -15
- package/dist/icons/emoji/shocked.js +1 -15
- package/dist/icons/emoji/smile.js +1 -15
- package/dist/icons/file/clipboard.js +1 -15
- package/dist/icons/file/clipboard_check.js +1 -15
- package/dist/icons/file/clipboard_close.js +1 -15
- package/dist/icons/file/clipboard_minus.js +1 -15
- package/dist/icons/file/clipboard_plus.js +1 -15
- package/dist/icons/file/clipboard_text.js +1 -15
- package/dist/icons/file/file.js +1 -15
- package/dist/icons/file/file_add.js +1 -15
- package/dist/icons/file/file_check.js +1 -15
- package/dist/icons/file/file_close.js +1 -15
- package/dist/icons/file/file_code.js +1 -15
- package/dist/icons/file/file_download.js +1 -15
- package/dist/icons/file/file_draft.js +1 -15
- package/dist/icons/file/file_gear.js +1 -16
- package/dist/icons/file/file_minus.js +1 -15
- package/dist/icons/file/file_plus.js +1 -15
- package/dist/icons/file/file_scan.js +1 -15
- package/dist/icons/file/file_shred.js +1 -15
- package/dist/icons/file/file_text.js +1 -15
- package/dist/icons/file/file_upload.js +1 -15
- package/dist/icons/file/folder.js +1 -15
- package/dist/icons/file/folder_add.js +1 -15
- package/dist/icons/file/folder_arrow.js +1 -15
- package/dist/icons/file/folder_check.js +1 -15
- package/dist/icons/file/folder_close.js +1 -15
- package/dist/icons/file/folder_cloud.js +1 -15
- package/dist/icons/file/folder_gear.js +1 -16
- package/dist/icons/file/folder_minus.js +1 -15
- package/dist/icons/file/folder_music.js +1 -15
- package/dist/icons/file/folder_open.js +1 -15
- package/dist/icons/file/folder_plus.js +1 -15
- package/dist/icons/file/folder_zip.js +1 -15
- package/dist/icons/file/note.js +1 -15
- package/dist/icons/file/note_text.js +1 -15
- package/dist/icons/file/pdf.js +1 -15
- package/dist/icons/file/photo.js +1 -15
- package/dist/icons/finance/bitcoin.js +1 -15
- package/dist/icons/finance/coins.js +1 -19
- package/dist/icons/finance/credit_card.js +1 -15
- package/dist/icons/finance/credit_card_add.js +1 -15
- package/dist/icons/finance/credit_card_face.js +1 -15
- package/dist/icons/finance/credit_card_member.js +1 -15
- package/dist/icons/finance/credit_card_outcome.js +1 -15
- package/dist/icons/finance/credit_card_scan.js +1 -15
- package/dist/icons/finance/credit_card_share.js +1 -15
- package/dist/icons/finance/credit_card_slash.js +1 -15
- package/dist/icons/finance/currency_exchange.js +1 -15
- package/dist/icons/finance/dollar.js +1 -15
- package/dist/icons/finance/ethereum.js +1 -15
- package/dist/icons/finance/paypass.js +1 -15
- package/dist/icons/finance/strongbox.js +1 -15
- package/dist/icons/finance/wallet.js +1 -15
- package/dist/icons/index.js +1 -1095
- package/dist/icons/layout/block_align_bottom.js +1 -15
- package/dist/icons/layout/block_align_center.js +1 -15
- package/dist/icons/layout/block_align_left.js +1 -15
- package/dist/icons/layout/block_align_middle.js +1 -15
- package/dist/icons/layout/block_align_right.js +1 -15
- package/dist/icons/layout/block_align_top.js +1 -15
- package/dist/icons/layout/block_horizontal.js +1 -15
- package/dist/icons/layout/block_vertical.js +1 -15
- package/dist/icons/layout/edit_shape.js +1 -15
- package/dist/icons/layout/elements.js +1 -15
- package/dist/icons/layout/elements_add.js +1 -15
- package/dist/icons/layout/elements_filled.js +1 -15
- package/dist/icons/layout/elements_masonry.js +1 -15
- package/dist/icons/layout/frame.js +1 -15
- package/dist/icons/layout/frame_stack.js +1 -15
- package/dist/icons/layout/grid.js +1 -15
- package/dist/icons/layout/grid_column_three.js +1 -15
- package/dist/icons/layout/grid_column_two.js +1 -15
- package/dist/icons/layout/grid_dynamic.js +1 -15
- package/dist/icons/layout/grid_frame.js +1 -15
- package/dist/icons/layout/grid_row_three.js +1 -15
- package/dist/icons/layout/grid_row_two.js +1 -15
- package/dist/icons/layout/grid_six.js +1 -15
- package/dist/icons/layout/grid_small.js +1 -15
- package/dist/icons/layout/iframe.js +1 -15
- package/dist/icons/layout/kanban.js +1 -15
- package/dist/icons/layout/layout.js +1 -15
- package/dist/icons/layout/list.js +1 -15
- package/dist/icons/layout/list_filled.js +1 -20
- package/dist/icons/layout/padding.js +1 -15
- package/dist/icons/layout/page_break.js +1 -15
- package/dist/icons/layout/rotate_left.js +1 -15
- package/dist/icons/layout/rotate_right.js +1 -15
- package/dist/icons/layout/ruler.js +1 -15
- package/dist/icons/layout/segment.js +1 -15
- package/dist/icons/layout/select_area.js +1 -15
- package/dist/icons/layout/select_boundary.js +1 -15
- package/dist/icons/layout/sidebar_left.js +1 -15
- package/dist/icons/layout/sidebar_right.js +1 -15
- package/dist/icons/layout/slides.js +1 -15
- package/dist/icons/layout/slides_horizontal.js +1 -15
- package/dist/icons/layout/slides_vertical.js +1 -20
- package/dist/icons/layout/stack.js +1 -15
- package/dist/icons/layout/text.js +1 -15
- package/dist/icons/maps/atlas.js +1 -15
- package/dist/icons/maps/compass.js +1 -15
- package/dist/icons/maps/direction.js +1 -15
- package/dist/icons/maps/direction_angled.js +1 -15
- package/dist/icons/maps/globe.js +1 -15
- package/dist/icons/maps/globe_slash.js +1 -15
- package/dist/icons/maps/location.js +1 -15
- package/dist/icons/maps/location_slash.js +1 -15
- package/dist/icons/maps/map.js +1 -15
- package/dist/icons/maps/marker.js +1 -15
- package/dist/icons/maps/panorama.js +1 -15
- package/dist/icons/maps/pin.js +1 -15
- package/dist/icons/maps/pin_arrow.js +1 -15
- package/dist/icons/maps/pin_location.js +1 -15
- package/dist/icons/maps/pin_plus.js +1 -15
- package/dist/icons/maps/pin_question.js +1 -15
- package/dist/icons/maps/pin_slash.js +1 -15
- package/dist/icons/maps/push_pin.js +1 -15
- package/dist/icons/maps/push_pin_filled.js +1 -15
- package/dist/icons/maps/push_pin_slash.js +1 -15
- package/dist/icons/maps/radar.js +1 -15
- package/dist/icons/maps/route.js +1 -15
- package/dist/icons/message/bubble.js +1 -15
- package/dist/icons/message/bubble_question.js +1 -15
- package/dist/icons/message/comment.js +1 -15
- package/dist/icons/message/comment_add.js +1 -15
- package/dist/icons/message/comment_check.js +1 -15
- package/dist/icons/message/comment_close.js +1 -15
- package/dist/icons/message/comment_minus.js +1 -15
- package/dist/icons/message/comment_text.js +1 -15
- package/dist/icons/misc/advertisement.js +1 -15
- package/dist/icons/misc/atom.js +1 -15
- package/dist/icons/misc/bone.js +1 -15
- package/dist/icons/misc/brightness_high.js +1 -15
- package/dist/icons/misc/brightness_low.js +1 -15
- package/dist/icons/misc/contrast.js +1 -15
- package/dist/icons/misc/crosshairs.js +1 -15
- package/dist/icons/misc/crown.js +1 -15
- package/dist/icons/misc/footprint.js +1 -15
- package/dist/icons/misc/form.js +1 -15
- package/dist/icons/misc/funnel.js +1 -15
- package/dist/icons/misc/infinite.js +1 -15
- package/dist/icons/misc/insert_button.js +1 -15
- package/dist/icons/misc/light_bulb.js +1 -15
- package/dist/icons/misc/moon.js +1 -15
- package/dist/icons/misc/nut.js +1 -15
- package/dist/icons/misc/planet.js +1 -15
- package/dist/icons/misc/plus_thick.js +1 -15
- package/dist/icons/misc/pocket.js +1 -15
- package/dist/icons/misc/rocket.js +1 -15
- package/dist/icons/misc/soup.js +1 -19
- package/dist/icons/misc/sun.js +1 -15
- package/dist/icons/misc/toy_horse.js +1 -15
- package/dist/icons/misc/trophy.js +1 -15
- package/dist/icons/misc/watercloset.js +1 -15
- package/dist/icons/notifications/alert_circle.js +1 -15
- package/dist/icons/notifications/alert_octogon.js +1 -15
- package/dist/icons/notifications/alert_triangle.js +1 -15
- package/dist/icons/notifications/app_notification.js +1 -15
- package/dist/icons/notifications/bell.js +1 -15
- package/dist/icons/notifications/bell_alert.js +1 -15
- package/dist/icons/notifications/bell_checkmark.js +1 -15
- package/dist/icons/notifications/bell_minus.js +1 -15
- package/dist/icons/notifications/bell_plus.js +1 -15
- package/dist/icons/notifications/bell_ring.js +1 -17
- package/dist/icons/notifications/bell_slash.js +1 -15
- package/dist/icons/notifications/information.js +1 -15
- package/dist/icons/notifications/minus_octogon.js +1 -15
- package/dist/icons/notifications/question_circle.js +1 -15
- package/dist/icons/people/group.js +1 -15
- package/dist/icons/people/group_add.js +1 -15
- package/dist/icons/people/group_chat.js +1 -17
- package/dist/icons/people/group_remove.js +1 -15
- package/dist/icons/people/group_send.js +1 -16
- package/dist/icons/people/groups.js +1 -15
- package/dist/icons/people/person.js +1 -15
- package/dist/icons/people/person_add.js +1 -15
- package/dist/icons/people/person_checkmark.js +1 -15
- package/dist/icons/people/person_circle.js +1 -17
- package/dist/icons/people/person_close.js +1 -17
- package/dist/icons/people/person_remove.js +1 -15
- package/dist/icons/people/person_slash.js +1 -17
- package/dist/icons/phone/keypad.js +1 -15
- package/dist/icons/phone/phone.js +1 -15
- package/dist/icons/phone/phone_add.js +1 -15
- package/dist/icons/phone/phone_calling.js +1 -15
- package/dist/icons/phone/phone_check.js +1 -15
- package/dist/icons/phone/phone_close.js +1 -15
- package/dist/icons/phone/phone_decline.js +1 -15
- package/dist/icons/phone/phone_forwarded.js +1 -15
- package/dist/icons/phone/phone_hash.js +1 -15
- package/dist/icons/phone/phone_incoming.js +1 -15
- package/dist/icons/phone/phone_outgoing.js +1 -15
- package/dist/icons/phone/phone_pause.js +1 -15
- package/dist/icons/phone/phone_slash.js +1 -15
- package/dist/icons/phone/voicemail.js +1 -15
- package/dist/icons/security/key.js +1 -15
- package/dist/icons/security/key_slash.js +1 -15
- package/dist/icons/security/lock.js +1 -15
- package/dist/icons/security/lock_circle.js +1 -15
- package/dist/icons/security/lock_open.js +1 -15
- package/dist/icons/security/lock_slash.js +1 -15
- package/dist/icons/security/shield.js +1 -15
- package/dist/icons/security/shield_checkmark.js +1 -15
- package/dist/icons/security/shield_lock.js +1 -15
- package/dist/icons/security/shield_slash.js +1 -15
- package/dist/icons/security/verified.js +1 -15
- package/dist/icons/shopping/basket.js +1 -15
- package/dist/icons/shopping/cart.js +1 -15
- package/dist/icons/shopping/cart_filled.js +1 -15
- package/dist/icons/shopping/coupon.js +1 -15
- package/dist/icons/shopping/coupon_cut.js +1 -15
- package/dist/icons/shopping/delivery.js +1 -15
- package/dist/icons/shopping/discount.js +1 -15
- package/dist/icons/shopping/gift.js +1 -15
- package/dist/icons/shopping/gift_bag.js +1 -15
- package/dist/icons/shopping/inventory.js +1 -15
- package/dist/icons/shopping/point_of_sale.js +1 -15
- package/dist/icons/shopping/shirt.js +1 -15
- package/dist/icons/shopping/tag.js +1 -15
- package/dist/icons/shopping/tag_diagonal.js +1 -15
- package/dist/icons/shopping/tote.js +1 -15
- package/dist/icons/special/upload_audio.js +1 -20
- package/dist/icons/special/upload_file.js +1 -15
- package/dist/icons/special/upload_image.js +1 -17
- package/dist/icons/special/upload_video.js +1 -18
- package/dist/icons/symbols/at.js +1 -15
- package/dist/icons/symbols/cc.js +1 -15
- package/dist/icons/symbols/cmd.js +1 -15
- package/dist/icons/symbols/facebook.js +1 -15
- package/dist/icons/symbols/google.js +1 -18
- package/dist/icons/symbols/hash.js +1 -15
- package/dist/icons/symbols/instagram.js +1 -27
- package/dist/icons/symbols/messenger.js +1 -21
- package/dist/icons/symbols/twitter.js +1 -15
- package/dist/icons/technology/battery.js +1 -15
- package/dist/icons/technology/battery_100.js +1 -15
- package/dist/icons/technology/battery_20.js +1 -15
- package/dist/icons/technology/battery_40.js +1 -15
- package/dist/icons/technology/battery_60.js +1 -15
- package/dist/icons/technology/battery_80.js +1 -15
- package/dist/icons/technology/battery_charging.js +1 -15
- package/dist/icons/technology/battery_slash.js +1 -15
- package/dist/icons/technology/devices.js +1 -15
- package/dist/icons/technology/floppy_disk.js +1 -15
- package/dist/icons/technology/iphone.js +1 -15
- package/dist/icons/technology/laptop.js +1 -15
- package/dist/icons/technology/mobile.js +1 -15
- package/dist/icons/technology/monitor.js +1 -15
- package/dist/icons/technology/server.js +1 -15
- package/dist/icons/technology/sim_card.js +1 -15
- package/dist/icons/technology/usb_stick.js +1 -15
- package/dist/icons/text/align_center.js +1 -15
- package/dist/icons/text/align_justified.js +1 -15
- package/dist/icons/text/align_left.js +1 -15
- package/dist/icons/text/align_right.js +1 -15
- package/dist/icons/text/code_block.js +1 -15
- package/dist/icons/text/divider.js +1 -15
- package/dist/icons/text/footnote.js +1 -17
- package/dist/icons/text/indent_decrease.js +1 -15
- package/dist/icons/text/indent_increase.js +1 -15
- package/dist/icons/text/list_ordered.js +1 -15
- package/dist/icons/text/list_unordered.js +1 -15
- package/dist/icons/text/quote.js +1 -15
- package/dist/icons/text/table.js +1 -15
- package/dist/icons/time/alarm.js +1 -15
- package/dist/icons/time/alarm_checkmark.js +1 -15
- package/dist/icons/time/alarm_minus.js +1 -15
- package/dist/icons/time/alarm_plus.js +1 -15
- package/dist/icons/time/alarm_slash.js +1 -15
- package/dist/icons/time/alarm_snooze.js +1 -15
- package/dist/icons/time/calendar.js +1 -15
- package/dist/icons/time/calendar_add.js +1 -15
- package/dist/icons/time/calendar_checkmark.js +1 -15
- package/dist/icons/time/calendar_close.js +1 -15
- package/dist/icons/time/calendar_dates.js +1 -15
- package/dist/icons/time/calendar_minus.js +1 -15
- package/dist/icons/time/calendar_plus.js +1 -15
- package/dist/icons/time/calendar_scroll.js +1 -17
- package/dist/icons/time/clock.js +1 -15
- package/dist/icons/time/clock_history.js +1 -15
- package/dist/icons/time/stopwatch.js +1 -15
- package/dist/icons/time/timer.js +1 -15
- package/dist/icons/time/watch.js +1 -15
- package/dist/index.js +1 -117
- package/dist/styles/output.css +1776 -0
- package/dist/utils/date.js +1 -73
- package/dist/utils/function.js +1 -5
- package/package.json +4 -3
|
@@ -1,34 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var action = require('./action/action.js');
|
|
6
|
-
var audio = require('./audio/audio.js');
|
|
7
|
-
var feature = require('./feature/feature.js');
|
|
8
|
-
var person = require('./person/person.js');
|
|
9
|
-
var price = require('./price/price.js');
|
|
10
|
-
var regular = require('./regular/regular.js');
|
|
11
|
-
var video = require('./video/video.js');
|
|
12
|
-
var written = require('./written/written.js');
|
|
13
|
-
var meeting = require('./meeting/meeting.js');
|
|
14
|
-
|
|
15
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
|
-
|
|
17
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
|
-
|
|
19
|
-
const Card = ({ type = 'regular', ...rest }) => {
|
|
20
|
-
const lookup = {
|
|
21
|
-
action: React__default.default.createElement(action.ActionCard, { ...rest }),
|
|
22
|
-
'audio-episode': React__default.default.createElement(audio.AudioEpisodeCard, { ...rest }),
|
|
23
|
-
feature: React__default.default.createElement(feature.FeatureCard, { ...rest }),
|
|
24
|
-
person: React__default.default.createElement(person.PersonCard, { ...rest }),
|
|
25
|
-
price: React__default.default.createElement(price.PriceCard, { ...rest }),
|
|
26
|
-
regular: React__default.default.createElement(regular.RegularCard, { ...rest }),
|
|
27
|
-
'video-episode': React__default.default.createElement(video.VideoEpisodeCard, { ...rest }),
|
|
28
|
-
'written-episode': (React__default.default.createElement(written.WrittenEpisodeCard, { ...rest })),
|
|
29
|
-
meeting: React__default.default.createElement(meeting.MeetingCard, { ...rest }),
|
|
30
|
-
};
|
|
31
|
-
return lookup[type];
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
exports.Card = Card;
|
|
2
|
+
"use strict";var React=require("react"),action=require("./action/action.js"),audio=require("./audio/audio.js"),feature=require("./feature/feature.js"),person=require("./person/person.js"),price=require("./price/price.js"),regular=require("./regular/regular.js"),video=require("./video/video.js"),written=require("./written/written.js"),meeting=require("./meeting/meeting.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Card=({type:e="regular",...t})=>{return{action:React__default.default.createElement(action.ActionCard,{...t}),"audio-episode":React__default.default.createElement(audio.AudioEpisodeCard,{...t}),feature:React__default.default.createElement(feature.FeatureCard,{...t}),person:React__default.default.createElement(person.PersonCard,{...t}),price:React__default.default.createElement(price.PriceCard,{...t}),regular:React__default.default.createElement(regular.RegularCard,{...t}),"video-episode":React__default.default.createElement(video.VideoEpisodeCard,{...t}),"written-episode":React__default.default.createElement(written.WrittenEpisodeCard,{...t}),meeting:React__default.default.createElement(meeting.MeetingCard,{...t})}[e]};exports.Card=Card;
|
|
@@ -1,62 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('next/image');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var button = require('../../actions/button/button.js');
|
|
9
|
-
var modal = require('../../surfaces/modal/modal.js');
|
|
10
|
-
var camera = require('../../../icons/basic/camera.js');
|
|
11
|
-
var checkmark = require('../../../icons/basic/checkmark.js');
|
|
12
|
-
var close = require('../../../icons/basic/close.js');
|
|
13
|
-
var pencil = require('../../../icons/basic/pencil.js');
|
|
14
|
-
var trash = require('../../../icons/basic/trash.js');
|
|
15
|
-
|
|
16
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
-
|
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
20
|
-
|
|
21
|
-
const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx, title = '', uploadModal, }) => {
|
|
22
|
-
const [editing, setEditing] = React__default.default.useState(false);
|
|
23
|
-
const [editingTitle, setTitle] = React__default.default.useState(() => title);
|
|
24
|
-
const [editingContent, setContent] = React__default.default.useState(() => content);
|
|
25
|
-
const handleSetEditing = () => setEditing(true);
|
|
26
|
-
const handleCancelEdit = () => {
|
|
27
|
-
setTitle(title);
|
|
28
|
-
setContent(content);
|
|
29
|
-
setEditing(false);
|
|
30
|
-
};
|
|
31
|
-
const handleSave = () => {
|
|
32
|
-
setEditing(false);
|
|
33
|
-
onSave && onSave(editingTitle, editingContent);
|
|
34
|
-
};
|
|
35
|
-
const handleTitleChange = (event) => {
|
|
36
|
-
setTitle(event.target.value);
|
|
37
|
-
};
|
|
38
|
-
const handleContentChange = (event) => {
|
|
39
|
-
setContent(event.target.value);
|
|
40
|
-
};
|
|
41
|
-
const showEditIcon = !editing && editable;
|
|
42
|
-
const isLink = !!href;
|
|
43
|
-
return (React__default.default.createElement(Wrapper, { as: isLink ? 'a' : 'div', href: href },
|
|
44
|
-
React__default.default.createElement(Figure, { "$editing": editing, "$isLink": isLink, "$sx": sx },
|
|
45
|
-
React__default.default.createElement(Image__default.default, { alt: title, height: 352, quality: 100, src: image, width: 352 }),
|
|
46
|
-
!editing && (React__default.default.createElement(Title, null,
|
|
47
|
-
editingTitle,
|
|
48
|
-
React__default.default.createElement("figure", null,
|
|
49
|
-
React__default.default.createElement(Content, null, editingContent)),
|
|
50
|
-
showEditIcon && (React__default.default.createElement(pencil.Pencil, { className: "edit", onClick: handleSetEditing })),
|
|
51
|
-
editable && uploadModal && (React__default.default.createElement(modal.Modal, null,
|
|
52
|
-
React__default.default.createElement(modal.Modal.Trigger, null,
|
|
53
|
-
React__default.default.createElement(button.Button, { icon: React__default.default.createElement(camera.Camera, null), type: "outlined", size: "small", sx: "position: absolute; right: 8px; top: -72px;" }, "Edit")),
|
|
54
|
-
React__default.default.createElement(modal.Modal.Content, null, uploadModal))))),
|
|
55
|
-
editing && (React__default.default.createElement(box.Box, { "$align": "flex-end", "$display": "flex", "$dir": "column", "$gap": 8, sx: "position: relative;" },
|
|
56
|
-
React__default.default.createElement(EditTitle, { onChange: handleTitleChange, value: editingTitle }),
|
|
57
|
-
React__default.default.createElement(EditContent, { onChange: handleContentChange, value: editingContent }),
|
|
58
|
-
React__default.default.createElement(box.Box, { "$gap": 8 },
|
|
59
|
-
React__default.default.createElement(checkmark.Checkmark, { onClick: handleSave, sx: `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),modal=require("../../surfaces/modal/modal.js"),camera=require("../../../icons/basic/camera.js"),checkmark=require("../../../icons/basic/checkmark.js"),close=require("../../../icons/basic/close.js"),pencil=require("../../../icons/basic/pencil.js"),trash=require("../../../icons/basic/trash.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);const FeatureCard=({content:e="",editable:t,href:a,image:r,onDelete:o,onSave:l,sx:i,title:n="",uploadModal:d})=>{const[c,u]=React__default.default.useState(!1),[s,p]=React__default.default.useState(()=>n),[f,x]=React__default.default.useState(()=>e);var g=!c&&t,m=!!a;return React__default.default.createElement(Wrapper,{as:m?"a":"div",href:a},React__default.default.createElement(Figure,{$editing:c,$isLink:m,$sx:i},React__default.default.createElement(Image__default.default,{alt:n,height:352,quality:100,src:r,width:352}),!c&&React__default.default.createElement(Title,null,s,React__default.default.createElement("figure",null,React__default.default.createElement(Content,null,f)),g&&React__default.default.createElement(pencil.Pencil,{className:"edit",onClick:()=>u(!0)}),t&&d&&React__default.default.createElement(modal.Modal,null,React__default.default.createElement(modal.Modal.Trigger,null,React__default.default.createElement(button.Button,{icon:React__default.default.createElement(camera.Camera,null),type:"outlined",size:"small",sx:"position: absolute; right: 8px; top: -72px;"},"Edit")),React__default.default.createElement(modal.Modal.Content,null,d))),c&&React__default.default.createElement(box.Box,{$align:"flex-end",$display:"flex",$dir:"column",$gap:8,sx:"position: relative;"},React__default.default.createElement(EditTitle,{onChange:e=>{p(e.target.value)},value:s}),React__default.default.createElement(EditContent,{onChange:e=>{x(e.target.value)},value:f}),React__default.default.createElement(box.Box,{$gap:8},React__default.default.createElement(checkmark.Checkmark,{onClick:()=>{u(!1),l&&l(s,f)},sx:`
|
|
60
3
|
padding: 8px;
|
|
61
4
|
border-radius: 4px;
|
|
62
5
|
cursor: pointer;
|
|
@@ -65,8 +8,7 @@ const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx
|
|
|
65
8
|
&:hover {
|
|
66
9
|
background-color: var(--color-grey-10);
|
|
67
10
|
}
|
|
68
|
-
`
|
|
69
|
-
React__default.default.createElement(close.Close, { onClick: handleCancelEdit, sx: `
|
|
11
|
+
`}),React__default.default.createElement(close.Close,{onClick:()=>{p(n),x(e),u(!1)},sx:`
|
|
70
12
|
padding: 8px;
|
|
71
13
|
border-radius: 4px;
|
|
72
14
|
cursor: pointer;
|
|
@@ -75,8 +17,7 @@ const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx
|
|
|
75
17
|
&:hover {
|
|
76
18
|
background-color: var(--color-grey-10);
|
|
77
19
|
}
|
|
78
|
-
`
|
|
79
|
-
onDelete && (React__default.default.createElement(trash.Trash, { onClick: onDelete, sx: `
|
|
20
|
+
`}),o&&React__default.default.createElement(trash.Trash,{onClick:o,sx:`
|
|
80
21
|
padding: 8px;
|
|
81
22
|
border-radius: 4px;
|
|
82
23
|
cursor: pointer;
|
|
@@ -85,12 +26,9 @@ const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx
|
|
|
85
26
|
&:hover {
|
|
86
27
|
background-color: var(--color-grey-10);
|
|
87
28
|
}
|
|
88
|
-
`
|
|
89
|
-
};
|
|
90
|
-
const Wrapper = styled.styled.div `
|
|
29
|
+
`})))))},Wrapper=styled.styled.div`
|
|
91
30
|
text-decoration: none;
|
|
92
|
-
|
|
93
|
-
const Figure = styled.styled.figure `
|
|
31
|
+
`,Figure=styled.styled.figure`
|
|
94
32
|
max-width: min-content;
|
|
95
33
|
box-sizing: border-box;
|
|
96
34
|
display: flex;
|
|
@@ -103,9 +41,7 @@ const Figure = styled.styled.figure `
|
|
|
103
41
|
border: 1px solid var(--color-white);
|
|
104
42
|
|
|
105
43
|
&:hover {
|
|
106
|
-
${({
|
|
107
|
-
? 'border: 1px solid var(--color-primary-blue-3); cursor: pointer;'
|
|
108
|
-
: 'cursor: arrow;'}
|
|
44
|
+
${({$isLink:e})=>e?"border: 1px solid var(--color-primary-blue-3); cursor: pointer;":"cursor: arrow;"}
|
|
109
45
|
|
|
110
46
|
button {
|
|
111
47
|
display: flex;
|
|
@@ -147,15 +83,12 @@ const Figure = styled.styled.figure `
|
|
|
147
83
|
}
|
|
148
84
|
}
|
|
149
85
|
|
|
150
|
-
${({
|
|
151
|
-
|
|
152
|
-
background-color: var(--color-grey-9);`
|
|
153
|
-
: `
|
|
86
|
+
${({$editing:e})=>e?`
|
|
87
|
+
background-color: var(--color-grey-9);`:`
|
|
154
88
|
background-color: var(--color-white);`}
|
|
155
89
|
|
|
156
|
-
${({
|
|
157
|
-
|
|
158
|
-
const Title = styled.styled.figcaption `
|
|
90
|
+
${({$sx:e})=>e||""};
|
|
91
|
+
`,Title=styled.styled.figcaption`
|
|
159
92
|
position: relative;
|
|
160
93
|
padding-right: 32px;
|
|
161
94
|
color: var(--color-grey-2);
|
|
@@ -165,8 +98,7 @@ const Title = styled.styled.figcaption `
|
|
|
165
98
|
line-height: 26px;
|
|
166
99
|
letter-spacing: -0.252px;
|
|
167
100
|
user-select: none;
|
|
168
|
-
|
|
169
|
-
const Content = styled.styled.figcaption `
|
|
101
|
+
`,Content=styled.styled.figcaption`
|
|
170
102
|
font-size: 14px;
|
|
171
103
|
font-family: var(--font-inter);
|
|
172
104
|
font-weight: 400;
|
|
@@ -178,8 +110,7 @@ const Content = styled.styled.figcaption `
|
|
|
178
110
|
line-clamp: 1;
|
|
179
111
|
-webkit-line-clamp: 1;
|
|
180
112
|
-webkit-box-orient: vertical;
|
|
181
|
-
|
|
182
|
-
const EditTitle = styled.styled.input `
|
|
113
|
+
`,EditTitle=styled.styled.input`
|
|
183
114
|
width: calc(100% - 24px);
|
|
184
115
|
padding: 12px;
|
|
185
116
|
background-color: var(--color-white);
|
|
@@ -191,14 +122,11 @@ const EditTitle = styled.styled.input `
|
|
|
191
122
|
border: none;
|
|
192
123
|
border-radius: 8px;
|
|
193
124
|
outline: none;
|
|
194
|
-
|
|
195
|
-
const EditContent = styled.styled(EditTitle) `
|
|
125
|
+
`,EditContent=styled.styled(EditTitle)`
|
|
196
126
|
padding: 6px 12px;
|
|
197
127
|
font-size: 14px;
|
|
198
128
|
font-family: var(--font-inter);
|
|
199
129
|
font-weight: 400;
|
|
200
130
|
line-height: 20px;
|
|
201
131
|
letter-spacing: -0.084px;
|
|
202
|
-
`;
|
|
203
|
-
|
|
204
|
-
exports.FeatureCard = FeatureCard;
|
|
132
|
+
`;exports.FeatureCard=FeatureCard;
|
|
@@ -1,93 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('next/image');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
var modal = require('../../surfaces/modal/modal.js');
|
|
11
|
-
var button = require('../../actions/button/button.js');
|
|
12
|
-
var dropdown = require('../../actions/dropdown/dropdown.js');
|
|
13
|
-
var calendar = require('../../../icons/time/calendar.js');
|
|
14
|
-
var graduation_cap = require('../../../icons/basic/graduation_cap.js');
|
|
15
|
-
var clock = require('../../../icons/time/clock.js');
|
|
16
|
-
var pin = require('../../../icons/maps/pin.js');
|
|
17
|
-
var forward_bold = require('../../../icons/arrow/forward_bold.js');
|
|
18
|
-
var star_filled = require('../../../icons/basic/star_filled.js');
|
|
19
|
-
var star = require('../../../icons/basic/star.js');
|
|
20
|
-
var ellipsis_horizontal = require('../../../icons/basic/ellipsis_horizontal.js');
|
|
21
|
-
|
|
22
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
23
|
-
|
|
24
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
25
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
26
|
-
|
|
27
|
-
var RSVP;
|
|
28
|
-
(function (RSVP) {
|
|
29
|
-
RSVP["INTERESTED"] = "INTERESTED";
|
|
30
|
-
RSVP["NOT_INTERESTED"] = "NOT_INTERESTED";
|
|
31
|
-
})(RSVP || (RSVP = {}));
|
|
32
|
-
const MeetingCard = ({ href, image, sx, title, actions, course, startDate, endDate, startTime, endTime, location, shareModal, handleInterestedOnClick, handleNotInterestedOnClick, handleVisibleToConnectionsOnClick, rsvp, dotsActions, }) => {
|
|
33
|
-
const secondaryActions = [];
|
|
34
|
-
!!handleInterestedOnClick &&
|
|
35
|
-
secondaryActions.push({
|
|
36
|
-
value: 'interested',
|
|
37
|
-
label: 'Interested',
|
|
38
|
-
onClick: handleInterestedOnClick,
|
|
39
|
-
icon: React__default.default.createElement(star_filled.StarFilled, { color: "yellow-5" }),
|
|
40
|
-
color: rsvp === RSVP.INTERESTED ? 'primary-blue-2' : undefined,
|
|
41
|
-
});
|
|
42
|
-
!!handleNotInterestedOnClick &&
|
|
43
|
-
secondaryActions.push({
|
|
44
|
-
value: 'notInterested',
|
|
45
|
-
label: 'Not Interested',
|
|
46
|
-
onClick: handleNotInterestedOnClick,
|
|
47
|
-
icon: React__default.default.createElement(star_filled.StarFilled, { color: "red-4" }),
|
|
48
|
-
color: rsvp === RSVP.NOT_INTERESTED ? 'primary-blue-2' : undefined,
|
|
49
|
-
});
|
|
50
|
-
!!handleVisibleToConnectionsOnClick &&
|
|
51
|
-
secondaryActions.push('break', {
|
|
52
|
-
value: 'visibleToConnections',
|
|
53
|
-
label: 'Visible to connections',
|
|
54
|
-
onClick: handleVisibleToConnectionsOnClick,
|
|
55
|
-
});
|
|
56
|
-
return (React__default.default.createElement(Wrapper, { "$isLink": !!href, "$sx": sx, as: href ? 'a' : 'div', href: href },
|
|
57
|
-
React__default.default.createElement(Figure, null,
|
|
58
|
-
React__default.default.createElement(Image__default.default, { alt: "", height: 160, quality: 100, src: image, width: 312 }),
|
|
59
|
-
React__default.default.createElement(OverlayTopContainer, { id: "overlayTop" }, dotsActions && !!dotsActions.length && (React__default.default.createElement(dropdown.Dropdown, { hasArrow: true, maintainState: false, options: dotsActions, trigger: React__default.default.createElement(button.Button, { icon: React__default.default.createElement(ellipsis_horizontal.EllipsisHorizontal, null), showChevron: false, type: "outlined", size: "small", className: "icon" }), onClick: (e) => e.preventDefault() }))),
|
|
60
|
-
React__default.default.createElement(OverlayBottomContainer, { id: "overlayBottom" },
|
|
61
|
-
shareModal && (React__default.default.createElement(modal.Modal, null,
|
|
62
|
-
React__default.default.createElement(modal.Modal.Trigger, null,
|
|
63
|
-
React__default.default.createElement(button.Button, { icon: React__default.default.createElement(forward_bold.ForwardBold, null), type: "outlined", size: "small", onClick: (e) => e.preventDefault(), className: "icon" })),
|
|
64
|
-
React__default.default.createElement(modal.Modal.Content, { onClick: (e) => e.preventDefault() }, shareModal))),
|
|
65
|
-
!!secondaryActions.length && (React__default.default.createElement(dropdown.Dropdown, { open: "left", offset: [40, 10], maintainState: false, options: secondaryActions, trigger: React__default.default.createElement(button.Button, { icon: (rsvp === RSVP.INTERESTED && (React__default.default.createElement(star_filled.StarFilled, { sx: "color: var(--color-yellow-5);" }))) ||
|
|
66
|
-
(rsvp === RSVP.NOT_INTERESTED && (React__default.default.createElement(star_filled.StarFilled, { sx: "color: var(--color-red-4);" }))) || React__default.default.createElement(star.Star, null), type: "outlined", size: "small", className: "icon" }), onClick: (e) => e.preventDefault() })))),
|
|
67
|
-
React__default.default.createElement(box.Box, { "$dir": "column", "$padding": 24 },
|
|
68
|
-
React__default.default.createElement(heading.H.Eight, { "$textAlign": "center", "$color": "grey-2", "$mediumBold": true }, title),
|
|
69
|
-
React__default.default.createElement(MeetingInformation, null,
|
|
70
|
-
course && (React__default.default.createElement(box.Box, { "$align": "center", "$gap": 20 },
|
|
71
|
-
React__default.default.createElement(graduation_cap.GraduationCap, { color: "grey-6" }),
|
|
72
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 }, course))),
|
|
73
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$gap": 20 },
|
|
74
|
-
React__default.default.createElement(calendar.Calendar, { color: "grey-6" }),
|
|
75
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 },
|
|
76
|
-
startDate,
|
|
77
|
-
" - ",
|
|
78
|
-
endDate)),
|
|
79
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$gap": 20 },
|
|
80
|
-
React__default.default.createElement(clock.Clock, { color: "grey-6" }),
|
|
81
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 },
|
|
82
|
-
startTime,
|
|
83
|
-
" - ",
|
|
84
|
-
endTime)),
|
|
85
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$gap": 20, sx: "max-width: 264px;" },
|
|
86
|
-
React__default.default.createElement(pin.Pin, { color: "grey-6" }),
|
|
87
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-3", "$lineHeight": 20, "$fontSize": 14 }, location))),
|
|
88
|
-
React__default.default.createElement(box.Box, { "$display": "flex", "$dir": "row", "$gap": 8, sx: "margin-top: 32px; width: 100%;" }, React__default.default.Children.toArray(actions)))));
|
|
89
|
-
};
|
|
90
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js"),modal=require("../../surfaces/modal/modal.js"),button=require("../../actions/button/button.js"),dropdown=require("../../actions/dropdown/dropdown.js"),calendar=require("../../../icons/time/calendar.js"),graduation_cap=require("../../../icons/basic/graduation_cap.js"),clock=require("../../../icons/time/clock.js"),pin=require("../../../icons/maps/pin.js"),forward_bold=require("../../../icons/arrow/forward_bold.js"),star_filled=require("../../../icons/basic/star_filled.js"),star=require("../../../icons/basic/star.js"),ellipsis_horizontal=require("../../../icons/basic/ellipsis_horizontal.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var RSVP,React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);!function(e){e.INTERESTED="INTERESTED",e.NOT_INTERESTED="NOT_INTERESTED"}(RSVP=RSVP||{});const MeetingCard=({href:e,image:t,sx:a,title:l,actions:r,course:o,startDate:i,endDate:n,startTime:d,endTime:c,location:u,shareModal:s,handleInterestedOnClick:p,handleNotInterestedOnClick:f,handleVisibleToConnectionsOnClick:_,rsvp:m,dotsActions:g})=>{var E=[];return p&&E.push({value:"interested",label:"Interested",onClick:p,icon:React__default.default.createElement(star_filled.StarFilled,{color:"yellow-5"}),color:m===RSVP.INTERESTED?"primary-blue-2":void 0}),f&&E.push({value:"notInterested",label:"Not Interested",onClick:f,icon:React__default.default.createElement(star_filled.StarFilled,{color:"red-4"}),color:m===RSVP.NOT_INTERESTED?"primary-blue-2":void 0}),_&&E.push("break",{value:"visibleToConnections",label:"Visible to connections",onClick:_}),React__default.default.createElement(Wrapper,{$isLink:!!e,$sx:a,as:e?"a":"div",href:e},React__default.default.createElement(Figure,null,React__default.default.createElement(Image__default.default,{alt:"",height:160,quality:100,src:t,width:312}),React__default.default.createElement(OverlayTopContainer,{id:"overlayTop"},g&&!!g.length&&React__default.default.createElement(dropdown.Dropdown,{hasArrow:!0,maintainState:!1,options:g,trigger:React__default.default.createElement(button.Button,{icon:React__default.default.createElement(ellipsis_horizontal.EllipsisHorizontal,null),showChevron:!1,type:"outlined",size:"small",className:"icon"}),onClick:e=>e.preventDefault()})),React__default.default.createElement(OverlayBottomContainer,{id:"overlayBottom"},s&&React__default.default.createElement(modal.Modal,null,React__default.default.createElement(modal.Modal.Trigger,null,React__default.default.createElement(button.Button,{icon:React__default.default.createElement(forward_bold.ForwardBold,null),type:"outlined",size:"small",onClick:e=>e.preventDefault(),className:"icon"})),React__default.default.createElement(modal.Modal.Content,{onClick:e=>e.preventDefault()},s)),!!E.length&&React__default.default.createElement(dropdown.Dropdown,{open:"left",offset:[40,10],maintainState:!1,options:E,trigger:React__default.default.createElement(button.Button,{icon:m===RSVP.INTERESTED&&React__default.default.createElement(star_filled.StarFilled,{sx:"color: var(--color-yellow-5);"})||m===RSVP.NOT_INTERESTED&&React__default.default.createElement(star_filled.StarFilled,{sx:"color: var(--color-red-4);"})||React__default.default.createElement(star.Star,null),type:"outlined",size:"small",className:"icon"}),onClick:e=>e.preventDefault()}))),React__default.default.createElement(box.Box,{$dir:"column",$padding:24},React__default.default.createElement(heading.H.Eight,{$textAlign:"center",$color:"grey-2",$mediumBold:!0},l),React__default.default.createElement(MeetingInformation,null,o&&React__default.default.createElement(box.Box,{$align:"center",$gap:20},React__default.default.createElement(graduation_cap.GraduationCap,{color:"grey-6"}),React__default.default.createElement(paragraph.P,{as:"span",$color:"grey-3",$lineHeight:20,$fontSize:14},o)),React__default.default.createElement(box.Box,{$align:"center",$gap:20},React__default.default.createElement(calendar.Calendar,{color:"grey-6"}),React__default.default.createElement(paragraph.P,{as:"span",$color:"grey-3",$lineHeight:20,$fontSize:14},i," - ",n)),React__default.default.createElement(box.Box,{$align:"center",$gap:20},React__default.default.createElement(clock.Clock,{color:"grey-6"}),React__default.default.createElement(paragraph.P,{as:"span",$color:"grey-3",$lineHeight:20,$fontSize:14},d," - ",c)),React__default.default.createElement(box.Box,{$align:"center",$gap:20,sx:"max-width: 264px;"},React__default.default.createElement(pin.Pin,{color:"grey-6"}),React__default.default.createElement(paragraph.P,{as:"span",$color:"grey-3",$lineHeight:20,$fontSize:14},u))),React__default.default.createElement(box.Box,{$display:"flex",$dir:"row",$gap:8,sx:"margin-top: 32px; width: 100%;"},React__default.default.Children.toArray(r))))},Wrapper=styled.styled.div`
|
|
91
3
|
min-width: 312px;
|
|
92
4
|
position: relative;
|
|
93
5
|
display: block;
|
|
@@ -99,7 +11,7 @@ const Wrapper = styled.styled.div `
|
|
|
99
11
|
border: 1px solid var(--color-white);
|
|
100
12
|
|
|
101
13
|
&:hover {
|
|
102
|
-
${({
|
|
14
|
+
${({$isLink:e})=>e?"border: 1px solid var(--color-primary-blue-3);":""}
|
|
103
15
|
|
|
104
16
|
#overlayBottom {
|
|
105
17
|
opacity: 1;
|
|
@@ -117,20 +29,17 @@ const Wrapper = styled.styled.div `
|
|
|
117
29
|
object-fit: cover;
|
|
118
30
|
}
|
|
119
31
|
|
|
120
|
-
${({
|
|
121
|
-
|
|
122
|
-
const MeetingInformation = styled.styled.div `
|
|
32
|
+
${({$sx:e})=>e||""};
|
|
33
|
+
`,MeetingInformation=styled.styled.div`
|
|
123
34
|
display: flex;
|
|
124
35
|
flex-direction: column;
|
|
125
36
|
gap: 16px;
|
|
126
37
|
margin-top: 16px;
|
|
127
38
|
height: 128px;
|
|
128
|
-
|
|
129
|
-
const Figure = styled.styled.figure `
|
|
39
|
+
`,Figure=styled.styled.figure`
|
|
130
40
|
position: relative;
|
|
131
41
|
margin: 0;
|
|
132
|
-
|
|
133
|
-
const OverlayBottomContainer = styled.styled.div `
|
|
42
|
+
`,OverlayBottomContainer=styled.styled.div`
|
|
134
43
|
position: absolute;
|
|
135
44
|
right: 0;
|
|
136
45
|
bottom: 0;
|
|
@@ -138,8 +47,7 @@ const OverlayBottomContainer = styled.styled.div `
|
|
|
138
47
|
opacity: 0;
|
|
139
48
|
display: flex;
|
|
140
49
|
gap: 8px;
|
|
141
|
-
|
|
142
|
-
const OverlayTopContainer = styled.styled.div `
|
|
50
|
+
`,OverlayTopContainer=styled.styled.div`
|
|
143
51
|
position: absolute;
|
|
144
52
|
right: 0;
|
|
145
53
|
top: 0;
|
|
@@ -147,6 +55,4 @@ const OverlayTopContainer = styled.styled.div `
|
|
|
147
55
|
opacity: 0;
|
|
148
56
|
display: flex;
|
|
149
57
|
gap: 8px;
|
|
150
|
-
`;
|
|
151
|
-
|
|
152
|
-
exports.MeetingCard = MeetingCard;
|
|
58
|
+
`;exports.MeetingCard=MeetingCard;
|
|
@@ -1,33 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('next/image');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var button = require('../../actions/button/button.js');
|
|
9
|
-
var dropdown = require('../../actions/dropdown/dropdown.js');
|
|
10
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
11
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
12
|
-
var ellipsis_horizontal = require('../../../icons/basic/ellipsis_horizontal.js');
|
|
13
|
-
|
|
14
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
|
-
|
|
16
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
18
|
-
|
|
19
|
-
const PersonCard = ({ actions, dotsActions, href, image, subtitle, sx, title, }) => {
|
|
20
|
-
return (React__default.default.createElement(Wrapper, { "$image": image, as: href ? 'a' : 'div', href: href },
|
|
21
|
-
React__default.default.createElement(Person, { "$sx": sx },
|
|
22
|
-
dotsActions && !!dotsActions.length && (React__default.default.createElement(dropdown.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__default.default.createElement(button.Button, { className: "icon", icon: React__default.default.createElement(ellipsis_horizontal.EllipsisHorizontal, null), onClick: (event) => event.stopPropagation(), showChevron: false, size: "small", type: "outlined" }) })),
|
|
23
|
-
React__default.default.createElement(Image__default.default, { alt: "", height: 400, quality: 100, src: image, width: 312 }),
|
|
24
|
-
React__default.default.createElement(Shadow, null),
|
|
25
|
-
React__default.default.createElement(Figcaption, null,
|
|
26
|
-
React__default.default.createElement(heading.H, { as: "span", "$bold": true, "$color": "white", "$fontSize": 24, "$lineHeight": 36 }, title),
|
|
27
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "white", "$fontSize": 14, "$lineHeight": 20 }, subtitle),
|
|
28
|
-
actions && (React__default.default.createElement(box.Box, { "$display": "flex", "$dir": "row", "$gap": 8, sx: "margin-top: 16px;" }, React__default.default.Children.toArray(actions)))))));
|
|
29
|
-
};
|
|
30
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),dropdown=require("../../actions/dropdown/dropdown.js"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js"),ellipsis_horizontal=require("../../../icons/basic/ellipsis_horizontal.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);const PersonCard=({actions:e,dotsActions:t,href:a,image:i,subtitle:o,sx:r,title:l})=>React__default.default.createElement(Wrapper,{$image:i,as:a?"a":"div",href:a},React__default.default.createElement(Person,{$sx:r},t&&!!t.length&&React__default.default.createElement(dropdown.Dropdown,{containerSx:"",hasArrow:!0,maintainState:!1,onClick:e=>e.preventDefault(),options:t,sx:"position: absolute; top: 8px; right: 8px; z-index: 24; display: none;",trigger:React__default.default.createElement(button.Button,{className:"icon",icon:React__default.default.createElement(ellipsis_horizontal.EllipsisHorizontal,null),onClick:e=>e.stopPropagation(),showChevron:!1,size:"small",type:"outlined"})}),React__default.default.createElement(Image__default.default,{alt:"",height:400,quality:100,src:i,width:312}),React__default.default.createElement(Shadow,null),React__default.default.createElement(Figcaption,null,React__default.default.createElement(heading.H,{as:"span",$bold:!0,$color:"white",$fontSize:24,$lineHeight:36},l),React__default.default.createElement(paragraph.P,{as:"span",$color:"white",$fontSize:14,$lineHeight:20},o),e&&React__default.default.createElement(box.Box,{$display:"flex",$dir:"row",$gap:8,sx:"margin-top: 16px;"},React__default.default.Children.toArray(e))))),Wrapper=styled.styled.div`
|
|
31
3
|
width: 312px;
|
|
32
4
|
height: 400px;
|
|
33
5
|
display: block;
|
|
@@ -43,8 +15,7 @@ const Wrapper = styled.styled.div `
|
|
|
43
15
|
border-radius: 16px;
|
|
44
16
|
object-fit: cover;
|
|
45
17
|
}
|
|
46
|
-
|
|
47
|
-
const Shadow = styled.styled.div `
|
|
18
|
+
`,Shadow=styled.styled.div`
|
|
48
19
|
border-radius: 16px;
|
|
49
20
|
position: absolute;
|
|
50
21
|
top: 0px;
|
|
@@ -54,8 +25,7 @@ const Shadow = styled.styled.div `
|
|
|
54
25
|
height: 100%;
|
|
55
26
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 66.67%, #000 98.25%),
|
|
56
27
|
transparent 50% / cover no-repeat;
|
|
57
|
-
|
|
58
|
-
const Person = styled.styled.figure `
|
|
28
|
+
`,Person=styled.styled.figure`
|
|
59
29
|
position: relative;
|
|
60
30
|
width: 100%;
|
|
61
31
|
height: 100%;
|
|
@@ -69,15 +39,12 @@ const Person = styled.styled.figure `
|
|
|
69
39
|
display: initial;
|
|
70
40
|
}
|
|
71
41
|
|
|
72
|
-
${({
|
|
73
|
-
|
|
74
|
-
const Figcaption = styled.styled.figcaption `
|
|
42
|
+
${({$sx:e})=>e||""};
|
|
43
|
+
`,Figcaption=styled.styled.figcaption`
|
|
75
44
|
position: relative;
|
|
76
45
|
width: 100%;
|
|
77
46
|
box-sizing: border-box;
|
|
78
47
|
display: flex;
|
|
79
48
|
flex-direction: column;
|
|
80
49
|
padding: 16px 24px;
|
|
81
|
-
`;
|
|
82
|
-
|
|
83
|
-
exports.PersonCard = PersonCard;
|
|
50
|
+
`;exports.PersonCard=PersonCard;
|
|
@@ -1,56 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var box = require('../../atoms/box/box.js');
|
|
7
|
-
var button = require('../../actions/button/button.js');
|
|
8
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
var dropdown = require('../../actions/dropdown/dropdown.js');
|
|
11
|
-
var checkmark = require('../../../icons/basic/checkmark.js');
|
|
12
|
-
var ellipsis_horizontal = require('../../../icons/basic/ellipsis_horizontal.js');
|
|
13
|
-
|
|
14
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
|
-
|
|
16
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
|
-
|
|
18
|
-
const PriceCard = ({ actions, content, dotsActions, featureTitle, features, label, price, title, }) => {
|
|
19
|
-
const id = React__default.default.useId();
|
|
20
|
-
return (React__default.default.createElement(Price, null,
|
|
21
|
-
dotsActions && !!dotsActions.length && (React__default.default.createElement(dropdown.Dropdown, { className: "dot-dropdown", hasArrow: true, maintainState: false, offset: [0, 32], options: dotsActions, sx: `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js"),dropdown=require("../../actions/dropdown/dropdown.js"),checkmark=require("../../../icons/basic/checkmark.js"),ellipsis_horizontal=require("../../../icons/basic/ellipsis_horizontal.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const PriceCard=({actions:e,content:t,dotsActions:a,featureTitle:r,features:o,label:l,price:d,title:i})=>{const n=React__default.default.useId();return React__default.default.createElement(Price,null,a&&!!a.length&&React__default.default.createElement(dropdown.Dropdown,{className:"dot-dropdown",hasArrow:!0,maintainState:!1,offset:[0,32],options:a,sx:`
|
|
22
3
|
position: absolute;
|
|
23
4
|
top: 6px;
|
|
24
5
|
right: 6px;
|
|
25
6
|
display: none;
|
|
26
|
-
`,
|
|
27
|
-
label && (React__default.default.createElement(box.Box, { "$justify": "center", sx: `
|
|
7
|
+
`,trigger:React__default.default.createElement(button.Button,{icon:React__default.default.createElement(ellipsis_horizontal.EllipsisHorizontal,null),showChevron:!1,type:"outlined",size:"small",className:"icon"}),onClick:e=>e.preventDefault()}),l&&React__default.default.createElement(box.Box,{$justify:"center",sx:`
|
|
28
8
|
width: 100%;
|
|
29
9
|
position: absolute;
|
|
30
10
|
z-index: -1;
|
|
31
|
-
top: -33px;`
|
|
32
|
-
React__default.default.createElement(Label, null,
|
|
33
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$fontSize": 12, "$lineHeight": 16, "$mediumBold": true, "$textClampLines": 1 }, label)))),
|
|
34
|
-
React__default.default.createElement(box.Box, { "$align": "stretch", "$display": "flex", "$dir": "column", "$gap": 24, sx: `
|
|
11
|
+
top: -33px;`},React__default.default.createElement(Label,null,React__default.default.createElement(paragraph.P,{as:"span",$fontSize:12,$lineHeight:16,$mediumBold:!0,$textClampLines:1},l))),React__default.default.createElement(box.Box,{$align:"stretch",$display:"flex",$dir:"column",$gap:24,sx:`
|
|
35
12
|
padding: 24px 48px;
|
|
36
13
|
background-color: var(--color-grey-10);
|
|
37
14
|
border-radius: 16px 16px 0px 0px;
|
|
38
|
-
` },
|
|
39
|
-
React__default.default.createElement(heading.H, { as: "h6", "$fontSize": 24, "$lineHeight": 36, "$semiBold": true, "$textAlign": "center" }, title),
|
|
40
|
-
React__default.default.createElement(box.Box, { "$dir": "column" },
|
|
41
|
-
React__default.default.createElement(heading.H, { as: "p", "$bold": true, "$fontSize": 32, "$lineHeight": 48, "$textClampLines": 5, "$textAlign": "center" }, price),
|
|
42
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-4", "$textAlign": "center" }, "/month")),
|
|
43
|
-
actions),
|
|
44
|
-
React__default.default.createElement(box.Box, { sx: "padding: 16px 24px; position: relative;", "$display": "flex", "$dir": "column" },
|
|
45
|
-
React__default.default.createElement(paragraph.P, { sx: "padding: 16px 0px;" }, content),
|
|
46
|
-
React__default.default.createElement(Divider, null),
|
|
47
|
-
React__default.default.createElement(box.Box, { sx: "padding: 16px 0px;", "$dir": "column", "$gap": 8 },
|
|
48
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-2", "$mediumBold": true }, featureTitle),
|
|
49
|
-
features.map((item, index) => (React__default.default.createElement(box.Box, { key: id + index.toString(36), "$align": "center", "$gap": 12 },
|
|
50
|
-
React__default.default.createElement(checkmark.Checkmark, { color: "green-5", sx: "padding: 2px; border-radius: 50%; background-color: var(--color-green-9);" }),
|
|
51
|
-
React__default.default.createElement(paragraph.P, { "$fontSize": 14, "$lineHeight": 20 }, item))))))));
|
|
52
|
-
};
|
|
53
|
-
const Price = styled.styled.figure `
|
|
15
|
+
`},React__default.default.createElement(heading.H,{as:"h6",$fontSize:24,$lineHeight:36,$semiBold:!0,$textAlign:"center"},i),React__default.default.createElement(box.Box,{$dir:"column"},React__default.default.createElement(heading.H,{as:"p",$bold:!0,$fontSize:32,$lineHeight:48,$textClampLines:5,$textAlign:"center"},d),React__default.default.createElement(paragraph.P,{as:"span",$color:"grey-4",$textAlign:"center"},"/month")),e),React__default.default.createElement(box.Box,{sx:"padding: 16px 24px; position: relative;",$display:"flex",$dir:"column"},React__default.default.createElement(paragraph.P,{sx:"padding: 16px 0px;"},t),React__default.default.createElement(Divider,null),React__default.default.createElement(box.Box,{sx:"padding: 16px 0px;",$dir:"column",$gap:8},React__default.default.createElement(paragraph.P,{$color:"grey-2",$mediumBold:!0},r),o.map((e,t)=>React__default.default.createElement(box.Box,{key:n+t.toString(36),$align:"center",$gap:12},React__default.default.createElement(checkmark.Checkmark,{color:"green-5",sx:"padding: 2px; border-radius: 50%; background-color: var(--color-green-9);"}),React__default.default.createElement(paragraph.P,{$fontSize:14,$lineHeight:20},e))))))},Price=styled.styled.figure`
|
|
54
16
|
position: relative;
|
|
55
17
|
z-index: 1;
|
|
56
18
|
margin: 0px;
|
|
@@ -69,8 +31,7 @@ const Price = styled.styled.figure `
|
|
|
69
31
|
display: flex;
|
|
70
32
|
}
|
|
71
33
|
}
|
|
72
|
-
|
|
73
|
-
const Label = styled.styled.div `
|
|
34
|
+
`,Label=styled.styled.div`
|
|
74
35
|
max-width: calc(100% - 32px);
|
|
75
36
|
box-sizing: border-box;
|
|
76
37
|
padding: 8px 24px;
|
|
@@ -78,12 +39,9 @@ const Label = styled.styled.div `
|
|
|
78
39
|
background-color: var(--color-grey-10);
|
|
79
40
|
box-shadow: var(--elevation-2);
|
|
80
41
|
border-bottom: 1px solid var(--color-grey-9);
|
|
81
|
-
|
|
82
|
-
const Divider = styled.styled.div `
|
|
42
|
+
`,Divider=styled.styled.div`
|
|
83
43
|
height: 1px;
|
|
84
44
|
width: 100%;
|
|
85
45
|
box-sizing: border-box;
|
|
86
46
|
background-color: var(--color-grey-9);
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
exports.PriceCard = PriceCard;
|
|
47
|
+
`;exports.PriceCard=PriceCard;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('next/image');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
13
|
-
|
|
14
|
-
const RegularCard = ({ children, href, image, sx, }) => {
|
|
15
|
-
return (React__default.default.createElement(Wrapper, { "$isLink": !!href, "$sx": sx, as: href ? 'a' : 'div', href: href },
|
|
16
|
-
React__default.default.createElement(Image__default.default, { alt: "", height: 352, quality: 100, src: image, width: 352 }),
|
|
17
|
-
React__default.default.createElement(box.Box, { "$dir": "column", "$padding": 24 }, children)));
|
|
18
|
-
};
|
|
19
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);const RegularCard=({children:e,href:t,image:a,sx:r})=>React__default.default.createElement(Wrapper,{$isLink:!!t,$sx:r,as:t?"a":"div",href:t},React__default.default.createElement(Image__default.default,{alt:"",height:352,quality:100,src:a,width:352}),React__default.default.createElement(box.Box,{$dir:"column",$padding:24},e)),Wrapper=styled.styled.div`
|
|
20
3
|
position: relative;
|
|
21
4
|
display: block;
|
|
22
5
|
text-decoration: none;
|
|
@@ -25,19 +8,15 @@ const Wrapper = styled.styled.div `
|
|
|
25
8
|
border-radius: 16px;
|
|
26
9
|
background-color: var(--color-white);
|
|
27
10
|
|
|
28
|
-
${({
|
|
29
|
-
? `
|
|
11
|
+
${({$isLink:e})=>e?`
|
|
30
12
|
&:hover {
|
|
31
13
|
border: 1px solid var(--color-primary-blue-3);
|
|
32
|
-
}
|
|
33
|
-
: ''}
|
|
14
|
+
}`:""}
|
|
34
15
|
|
|
35
16
|
img {
|
|
36
17
|
border-radius: 16px 16px 0px 0px;
|
|
37
18
|
object-fit: cover;
|
|
38
19
|
}
|
|
39
20
|
|
|
40
|
-
${({
|
|
41
|
-
`;
|
|
42
|
-
|
|
43
|
-
exports.RegularCard = RegularCard;
|
|
21
|
+
${({$sx:e})=>e||""};
|
|
22
|
+
`;exports.RegularCard=RegularCard;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var styled = require('styled-components');
|
|
5
|
-
var box = require('../atoms/box/box.js');
|
|
6
|
-
|
|
7
|
-
const PurchaseTextWrapper = styled.styled(box.Box) `
|
|
2
|
+
"use strict";var styled=require("styled-components"),box=require("../atoms/box/box.js");const PurchaseTextWrapper=styled.styled(box.Box)`
|
|
8
3
|
position: absolute;
|
|
9
4
|
top: 16px;
|
|
10
5
|
left: 16px;
|
|
11
6
|
width: calc(100% - 32px);
|
|
12
7
|
gap: 8px;
|
|
13
8
|
align-items: center;
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
exports.PurchaseTextWrapper = PurchaseTextWrapper;
|
|
9
|
+
`;exports.PurchaseTextWrapper=PurchaseTextWrapper;
|