@soul-refiner/design-system 2.0.0-alpha.27 → 2.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/actions/button/button.js +19 -14
- package/dist/components/actions/dropdown/dropdown.js +28 -24
- package/dist/components/actions/rate/rate.js +15 -11
- package/dist/components/actions/switch/switch.js +9 -5
- package/dist/components/actions/toggle/toggle.js +9 -5
- package/dist/components/actions/upload/upload.js +21 -17
- package/dist/components/atoms/box/box.js +5 -1
- package/dist/components/atoms/hide/hide.js +5 -1
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +10 -6
- package/dist/components/atoms/time_ago/time_ago.js +5 -1
- package/dist/components/atoms/typography/display.js +5 -1
- package/dist/components/atoms/typography/heading.js +13 -9
- package/dist/components/atoms/typography/paragraph.js +5 -1
- package/dist/components/card/action/action.js +15 -10
- package/dist/components/card/audio/audio.js +24 -19
- package/dist/components/card/card.js +13 -9
- package/dist/components/card/feature/feature.js +26 -21
- package/dist/components/card/meeting/meeting.js +34 -29
- package/dist/components/card/person/person.js +14 -9
- package/dist/components/card/price/price.js +24 -20
- package/dist/components/card/regular/regular.js +8 -3
- package/dist/components/card/video/video.js +24 -19
- package/dist/components/card/written/written.js +24 -19
- package/dist/components/custom/courses_selection/courses_selection.js +24 -19
- package/dist/components/custom/users_selection/users_selection.js +23 -18
- package/dist/components/editor/context.js +8 -4
- package/dist/components/editor/editor.js +9 -5
- package/dist/components/editor/icons/border-all.js +6 -2
- package/dist/components/editor/icons/border-bottom.js +6 -2
- package/dist/components/editor/icons/border-left.js +6 -2
- package/dist/components/editor/icons/border-none.js +6 -2
- package/dist/components/editor/icons/border-right.js +6 -2
- package/dist/components/editor/icons/border-top.js +6 -2
- package/dist/components/editor/navbar/alignment_dropdown.js +14 -10
- package/dist/components/editor/navbar/button_modal.js +34 -30
- package/dist/components/editor/navbar/navbar.js +76 -72
- package/dist/components/editor/navbar/style_dropdown.js +5 -1
- package/dist/components/editor/plugins/blocks/blockquote.js +8 -4
- package/dist/components/editor/plugins/blocks/buttons.js +10 -6
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +4 -3
- package/dist/components/editor/plugins/blocks/image.js +21 -17
- package/dist/components/editor/plugins/blocks/list.js +7 -3
- package/dist/components/editor/plugins/blocks/media-popover.js +13 -9
- package/dist/components/editor/plugins/blocks/plate-button.js +3 -2
- package/dist/components/editor/plugins/blocks/popover.js +4 -3
- package/dist/components/editor/plugins/blocks/qa.js +16 -12
- package/dist/components/editor/plugins/blocks/resizable.js +5 -1
- package/dist/components/editor/plugins/blocks/separator.js +3 -2
- package/dist/components/editor/plugins/blocks/table-cell.js +13 -9
- package/dist/components/editor/plugins/blocks/table-row.js +6 -2
- package/dist/components/editor/plugins/blocks/table.js +46 -42
- package/dist/components/editor/plugins/blocks/text.js +32 -28
- package/dist/components/editor/plugins/blocks/video.js +9 -5
- package/dist/components/editor/plugins/leafs/link.js +23 -19
- package/dist/components/editor/simple_editor/navbar.js +49 -45
- package/dist/components/editor/simple_editor/simple_editor.js +9 -5
- package/dist/components/feedback/animated_toast/animated_toast.js +10 -6
- package/dist/components/feedback/badge/badge.js +7 -3
- package/dist/components/feedback/banner/banner.js +15 -11
- package/dist/components/feedback/chip/chip.js +7 -3
- package/dist/components/feedback/loader/loader.js +7 -2
- package/dist/components/feedback/notification/notification.js +14 -10
- package/dist/components/feedback/progress/progress.js +17 -13
- package/dist/components/feedback/toast/toast.js +14 -10
- package/dist/components/feedback/tooltip/tooltip.js +10 -6
- package/dist/components/iconography/avatar/avatar.js +23 -18
- package/dist/components/iconography/avatar/icons/approved.js +8 -4
- package/dist/components/iconography/avatar/icons/busy.js +8 -4
- package/dist/components/iconography/avatar/icons/declined.js +8 -4
- package/dist/components/iconography/avatar/icons/default.js +7 -3
- package/dist/components/iconography/avatar/icons/focus.js +8 -4
- package/dist/components/iconography/avatar/icons/locked.js +8 -4
- package/dist/components/iconography/avatar/icons/offline.js +8 -4
- package/dist/components/iconography/avatar/icons/online.js +7 -3
- package/dist/components/iconography/avatar/icons/subscribed.js +12 -8
- package/dist/components/iconography/icon/icon.js +5 -1
- package/dist/components/input/calendar/calendar.js +29 -25
- package/dist/components/input/checkbox/checkbox.js +5 -1
- package/dist/components/input/date/date.js +43 -39
- package/dist/components/input/filter/filter.js +49 -44
- package/dist/components/input/filter/filter_option.js +10 -6
- package/dist/components/input/radio/radio.js +10 -6
- package/dist/components/input/search/search.js +13 -9
- package/dist/components/input/select/select.js +8 -4
- package/dist/components/input/text_area/text_area.js +14 -10
- package/dist/components/input/text_input/text_input.js +16 -12
- package/dist/components/input/time/time.js +9 -5
- package/dist/components/media/video/video.js +9 -3
- package/dist/components/media/video-player/playlist-item.js +17 -12
- package/dist/components/media/video-player/video.js +37 -31
- package/dist/components/navigation/breadcrumb/breadcrumb.js +19 -14
- package/dist/components/navigation/inner/inner.js +30 -25
- package/dist/components/navigation/tabs/tabs.js +11 -6
- package/dist/components/surfaces/accordion/accordion.js +15 -11
- package/dist/components/surfaces/calendar_date/calendar_date.js +14 -10
- package/dist/components/surfaces/carousel/card/card.js +11 -7
- package/dist/components/surfaces/comment/comment.js +44 -39
- package/dist/components/surfaces/drawer/drawer.js +20 -16
- package/dist/components/surfaces/message/message.js +12 -8
- package/dist/components/surfaces/modal/modal.js +23 -19
- package/dist/components/surfaces/portal/portal.js +8 -3
- package/dist/components/surfaces/post/post.js +36 -30
- package/dist/components/table/table/table.js +14 -10
- package/dist/icons/arrow/arrow_all.js +6 -2
- package/dist/icons/arrow/arrow_all_diagonal.js +6 -2
- package/dist/icons/arrow/arrow_both_downwards.js +6 -2
- package/dist/icons/arrow/arrow_both_upwards.js +6 -2
- package/dist/icons/arrow/arrow_circle_left.js +6 -2
- package/dist/icons/arrow/arrow_circle_left_double.js +6 -2
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +8 -4
- package/dist/icons/arrow/arrow_circle_right.js +6 -2
- package/dist/icons/arrow/arrow_circle_right_double.js +6 -2
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_left.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_right.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_left.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_right.js +6 -2
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +6 -2
- package/dist/icons/arrow/arrow_down.js +6 -2
- package/dist/icons/arrow/arrow_down_bold.js +6 -2
- package/dist/icons/arrow/arrow_down_circle.js +6 -2
- package/dist/icons/arrow/arrow_left.js +6 -2
- package/dist/icons/arrow/arrow_left_bold.js +6 -2
- package/dist/icons/arrow/arrow_left_circle.js +6 -2
- package/dist/icons/arrow/arrow_left_curved.js +6 -2
- package/dist/icons/arrow/arrow_left_curved_circle.js +6 -2
- package/dist/icons/arrow/arrow_right.js +6 -2
- package/dist/icons/arrow/arrow_right_bold.js +6 -2
- package/dist/icons/arrow/arrow_right_circle.js +6 -2
- package/dist/icons/arrow/arrow_right_curved.js +6 -2
- package/dist/icons/arrow/arrow_right_curved_circle.js +6 -2
- package/dist/icons/arrow/arrow_up.js +6 -2
- package/dist/icons/arrow/arrow_up_bold.js +6 -2
- package/dist/icons/arrow/arrow_up_circle.js +6 -2
- package/dist/icons/arrow/chevron_down.js +6 -2
- package/dist/icons/arrow/chevron_down_circle.js +6 -2
- package/dist/icons/arrow/chevron_down_double.js +6 -2
- package/dist/icons/arrow/chevron_down_double_circle.js +6 -2
- package/dist/icons/arrow/chevron_left.js +6 -2
- package/dist/icons/arrow/chevron_left_circle.js +6 -2
- package/dist/icons/arrow/chevron_left_double.js +6 -2
- package/dist/icons/arrow/chevron_left_double_circle.js +6 -2
- package/dist/icons/arrow/chevron_right.js +6 -2
- package/dist/icons/arrow/chevron_right_circle.js +6 -2
- package/dist/icons/arrow/chevron_right_double.js +6 -2
- package/dist/icons/arrow/chevron_right_double_circle.js +6 -2
- package/dist/icons/arrow/chevron_scroll.js +6 -2
- package/dist/icons/arrow/chevron_up.js +6 -2
- package/dist/icons/arrow/chevron_up_circle.js +6 -2
- package/dist/icons/arrow/chevron_up_double.js +6 -2
- package/dist/icons/arrow/chevron_up_double_circle.js +6 -2
- package/dist/icons/arrow/forward_all.js +6 -2
- package/dist/icons/arrow/forward_all_bold.js +6 -2
- package/dist/icons/arrow/forward_bold.js +6 -2
- package/dist/icons/arrow/redo.js +6 -2
- package/dist/icons/arrow/redo_bold.js +6 -2
- package/dist/icons/arrow/reply.js +6 -2
- package/dist/icons/arrow/reply_all.js +6 -2
- package/dist/icons/arrow/reply_all_bold.js +6 -2
- package/dist/icons/arrow/reply_bold.js +6 -2
- package/dist/icons/arrow/undo.js +6 -2
- package/dist/icons/arrow/undo_bold.js +6 -2
- package/dist/icons/audio_video/drag_indicator.js +6 -2
- package/dist/icons/audio_video/eject.js +6 -2
- package/dist/icons/audio_video/equalizer.js +6 -2
- package/dist/icons/audio_video/fast_forward.js +6 -2
- package/dist/icons/audio_video/fast_forward_30.js +6 -2
- package/dist/icons/audio_video/fullscreen.js +6 -2
- package/dist/icons/audio_video/headphones.js +6 -2
- package/dist/icons/audio_video/library_add.js +6 -2
- package/dist/icons/audio_video/library_music.js +6 -2
- package/dist/icons/audio_video/microphone.js +6 -2
- package/dist/icons/audio_video/musical_note.js +6 -2
- package/dist/icons/audio_video/next.js +6 -2
- package/dist/icons/audio_video/pause.js +6 -2
- package/dist/icons/audio_video/pause_circle.js +6 -2
- package/dist/icons/audio_video/play.js +6 -2
- package/dist/icons/audio_video/play_circle.js +6 -2
- package/dist/icons/audio_video/play_display.js +6 -2
- package/dist/icons/audio_video/play_pause.js +6 -2
- package/dist/icons/audio_video/play_solid.js +6 -2
- package/dist/icons/audio_video/player_list.js +6 -2
- package/dist/icons/audio_video/player_list_add.js +6 -2
- package/dist/icons/audio_video/player_list_play.js +6 -2
- package/dist/icons/audio_video/previous.js +6 -2
- package/dist/icons/audio_video/radio.js +6 -2
- package/dist/icons/audio_video/record.js +6 -2
- package/dist/icons/audio_video/repeat.js +6 -2
- package/dist/icons/audio_video/rewind.js +6 -2
- package/dist/icons/audio_video/rewind_30.js +6 -2
- package/dist/icons/audio_video/shuffle.js +6 -2
- package/dist/icons/audio_video/sound_wave.js +6 -2
- package/dist/icons/audio_video/stop.js +6 -2
- package/dist/icons/audio_video/stop_circle.js +6 -2
- package/dist/icons/audio_video/subscriptions.js +6 -2
- package/dist/icons/audio_video/tuner.js +6 -2
- package/dist/icons/audio_video/volume.js +6 -2
- package/dist/icons/audio_video/volume_high.js +6 -2
- package/dist/icons/audio_video/volume_low.js +6 -2
- package/dist/icons/audio_video/volume_slash.js +6 -2
- package/dist/icons/basic/aa_sansserif.js +7 -3
- package/dist/icons/basic/aa_serif.js +7 -3
- package/dist/icons/basic/anchor.js +8 -4
- package/dist/icons/basic/bible.js +6 -2
- package/dist/icons/basic/bold.js +6 -2
- package/dist/icons/basic/book.js +6 -2
- package/dist/icons/basic/book_open.js +6 -2
- package/dist/icons/basic/bookmark.js +6 -2
- package/dist/icons/basic/bookmark_add.js +6 -2
- package/dist/icons/basic/bookmark_slash.js +6 -2
- package/dist/icons/basic/bookmarks.js +6 -2
- package/dist/icons/basic/books.js +9 -5
- package/dist/icons/basic/box.js +6 -2
- package/dist/icons/basic/briefcase.js +6 -2
- package/dist/icons/basic/browse_activity.js +6 -2
- package/dist/icons/basic/browser.js +6 -2
- package/dist/icons/basic/browser_slash.js +6 -2
- package/dist/icons/basic/calculator.js +6 -2
- package/dist/icons/basic/camera.js +6 -2
- package/dist/icons/basic/camera_add.js +6 -2
- package/dist/icons/basic/camera_slash.js +6 -2
- package/dist/icons/basic/checkmark.js +6 -2
- package/dist/icons/basic/checkmark_circle.js +8 -4
- package/dist/icons/basic/checkmark_filled.js +6 -2
- package/dist/icons/basic/checkmarks.js +6 -2
- package/dist/icons/basic/circle.js +6 -2
- package/dist/icons/basic/circle_slash.js +8 -4
- package/dist/icons/basic/clear_text_style.js +6 -2
- package/dist/icons/basic/close.js +6 -2
- package/dist/icons/basic/close_circle.js +6 -2
- package/dist/icons/basic/close_filled.js +6 -2
- package/dist/icons/basic/copy.js +6 -2
- package/dist/icons/basic/delete.js +6 -2
- package/dist/icons/basic/detail.js +6 -2
- package/dist/icons/basic/dot.js +6 -2
- package/dist/icons/basic/download.js +6 -2
- package/dist/icons/basic/download_arrow.js +6 -2
- package/dist/icons/basic/droplet.js +8 -4
- package/dist/icons/basic/ellipsis_horizontal.js +6 -2
- package/dist/icons/basic/ellipsis_horizontal_circle.js +6 -2
- package/dist/icons/basic/ellipsis_vertical.js +6 -2
- package/dist/icons/basic/ellipsis_vertical_circle.js +6 -2
- package/dist/icons/basic/eye.js +6 -2
- package/dist/icons/basic/eye_slash.js +6 -2
- package/dist/icons/basic/fingerprint.js +6 -2
- package/dist/icons/basic/flag.js +6 -2
- package/dist/icons/basic/flag_wave.js +6 -2
- package/dist/icons/basic/flag_wave_filled.js +6 -2
- package/dist/icons/basic/flame.js +6 -2
- package/dist/icons/basic/gauge.js +6 -2
- package/dist/icons/basic/glasses.js +6 -2
- package/dist/icons/basic/graduation_cap.js +6 -2
- package/dist/icons/basic/hashmark.js +6 -2
- package/dist/icons/basic/heart.js +6 -2
- package/dist/icons/basic/heart_slash.js +6 -2
- package/dist/icons/basic/highlighter.js +6 -2
- package/dist/icons/basic/home.js +6 -2
- package/dist/icons/basic/image.js +6 -2
- package/dist/icons/basic/inbox.js +6 -2
- package/dist/icons/basic/italic.js +6 -2
- package/dist/icons/basic/layers.js +6 -2
- package/dist/icons/basic/lightening.js +6 -2
- package/dist/icons/basic/lightening_slash.js +6 -2
- package/dist/icons/basic/link.js +6 -2
- package/dist/icons/basic/link_slash.js +6 -2
- package/dist/icons/basic/loudspeaker.js +6 -2
- package/dist/icons/basic/maximize.js +6 -2
- package/dist/icons/basic/menu.js +6 -2
- package/dist/icons/basic/menu_circle.js +6 -2
- package/dist/icons/basic/menu_dots.js +6 -2
- package/dist/icons/basic/microphone_slash.js +6 -2
- package/dist/icons/basic/minimize.js +6 -2
- package/dist/icons/basic/minus.js +6 -2
- package/dist/icons/basic/minus_circle.js +6 -2
- package/dist/icons/basic/move_item.js +6 -2
- package/dist/icons/basic/new.js +6 -2
- package/dist/icons/basic/newspaper.js +6 -2
- package/dist/icons/basic/node.js +6 -2
- package/dist/icons/basic/note_pad.js +7 -3
- package/dist/icons/basic/options.js +6 -2
- package/dist/icons/basic/paint_brush.js +6 -2
- package/dist/icons/basic/paperclip.js +6 -2
- package/dist/icons/basic/paperclip_slash.js +6 -2
- package/dist/icons/basic/pencil.js +6 -2
- package/dist/icons/basic/pencil_pad.js +6 -2
- package/dist/icons/basic/plus.js +6 -2
- package/dist/icons/basic/plus_circle.js +6 -2
- package/dist/icons/basic/presentation.js +6 -2
- package/dist/icons/basic/printer.js +6 -2
- package/dist/icons/basic/profile.js +6 -2
- package/dist/icons/basic/profile_check.js +6 -2
- package/dist/icons/basic/pulse.js +6 -2
- package/dist/icons/basic/qr_code.js +6 -2
- package/dist/icons/basic/resize.js +8 -4
- package/dist/icons/basic/scan.js +6 -2
- package/dist/icons/basic/scissors.js +6 -2
- package/dist/icons/basic/screenshot.js +6 -2
- package/dist/icons/basic/search.js +6 -2
- package/dist/icons/basic/select_item.js +7 -3
- package/dist/icons/basic/settings.js +6 -2
- package/dist/icons/basic/share.js +6 -2
- package/dist/icons/basic/share_external.js +6 -2
- package/dist/icons/basic/square.js +6 -2
- package/dist/icons/basic/star.js +6 -2
- package/dist/icons/basic/star_circle.js +6 -2
- package/dist/icons/basic/star_filled.js +6 -2
- package/dist/icons/basic/star_filled_half.js +6 -2
- package/dist/icons/basic/star_slash.js +6 -2
- package/dist/icons/basic/sticker.js +6 -2
- package/dist/icons/basic/strikethrough.js +6 -2
- package/dist/icons/basic/subtask.js +7 -3
- package/dist/icons/basic/tax.js +9 -5
- package/dist/icons/basic/text_bg_color.js +6 -2
- package/dist/icons/basic/text_color.js +6 -2
- package/dist/icons/basic/textbox.js +6 -2
- package/dist/icons/basic/thumbs_down.js +6 -2
- package/dist/icons/basic/thumbs_up.js +6 -2
- package/dist/icons/basic/thumbs_up_filled.js +6 -2
- package/dist/icons/basic/toggle_left.js +6 -2
- package/dist/icons/basic/toggle_right.js +6 -2
- package/dist/icons/basic/translate.js +6 -2
- package/dist/icons/basic/trash.js +6 -2
- package/dist/icons/basic/trash_slash.js +6 -2
- package/dist/icons/basic/underline.js +6 -2
- package/dist/icons/basic/upload.js +6 -2
- package/dist/icons/basic/video.js +6 -2
- package/dist/icons/basic/video_add.js +7 -3
- package/dist/icons/basic/video_slash.js +6 -2
- package/dist/icons/basic/wrench.js +6 -2
- package/dist/icons/basic/zoom_in.js +6 -2
- package/dist/icons/basic/zoom_out.js +6 -2
- package/dist/icons/data/bar_chart.js +6 -2
- package/dist/icons/data/bar_chart_downward.js +6 -2
- package/dist/icons/data/bar_chart_downward_outline.js +6 -2
- package/dist/icons/data/bar_chart_upward.js +6 -2
- package/dist/icons/data/bar_chart_upward_outline.js +6 -2
- package/dist/icons/data/candlestick_chart.js +6 -2
- package/dist/icons/data/four_circles.js +6 -2
- package/dist/icons/data/legend_toggle.js +6 -2
- package/dist/icons/data/line_chart.js +6 -2
- package/dist/icons/data/line_chart_area.js +6 -2
- package/dist/icons/data/line_chart_area_shaded.js +6 -2
- package/dist/icons/data/line_chart_double.js +6 -2
- package/dist/icons/data/line_chart_downward.js +6 -2
- package/dist/icons/data/line_chart_node.js +6 -2
- package/dist/icons/data/line_chart_outline.js +6 -2
- package/dist/icons/data/line_chart_search.js +6 -2
- package/dist/icons/data/line_chart_stars.js +6 -2
- package/dist/icons/data/line_chart_upward.js +6 -2
- package/dist/icons/data/pie_chart.js +7 -3
- package/dist/icons/data/tree.js +6 -2
- package/dist/icons/email/mail.js +6 -2
- package/dist/icons/email/mail_check.js +6 -2
- package/dist/icons/email/mail_minus.js +6 -2
- package/dist/icons/email/mail_send.js +6 -2
- package/dist/icons/email/send.js +6 -2
- package/dist/icons/email/send_close.js +6 -2
- package/dist/icons/email/send_schedule.js +6 -2
- package/dist/icons/email/send_text.js +6 -2
- package/dist/icons/emoji/emoji_add.js +6 -2
- package/dist/icons/emoji/laughing.js +6 -2
- package/dist/icons/emoji/neutral.js +6 -2
- package/dist/icons/emoji/sad.js +6 -2
- package/dist/icons/emoji/shocked.js +6 -2
- package/dist/icons/emoji/smile.js +6 -2
- package/dist/icons/file/clipboard.js +6 -2
- package/dist/icons/file/clipboard_check.js +6 -2
- package/dist/icons/file/clipboard_close.js +6 -2
- package/dist/icons/file/clipboard_minus.js +6 -2
- package/dist/icons/file/clipboard_plus.js +6 -2
- package/dist/icons/file/clipboard_text.js +6 -2
- package/dist/icons/file/file.js +6 -2
- package/dist/icons/file/file_add.js +6 -2
- package/dist/icons/file/file_check.js +6 -2
- package/dist/icons/file/file_close.js +6 -2
- package/dist/icons/file/file_code.js +6 -2
- package/dist/icons/file/file_download.js +6 -2
- package/dist/icons/file/file_draft.js +6 -2
- package/dist/icons/file/file_gear.js +7 -3
- package/dist/icons/file/file_minus.js +6 -2
- package/dist/icons/file/file_plus.js +6 -2
- package/dist/icons/file/file_scan.js +6 -2
- package/dist/icons/file/file_shred.js +6 -2
- package/dist/icons/file/file_text.js +6 -2
- package/dist/icons/file/file_upload.js +6 -2
- package/dist/icons/file/folder.js +6 -2
- package/dist/icons/file/folder_add.js +6 -2
- package/dist/icons/file/folder_arrow.js +6 -2
- package/dist/icons/file/folder_check.js +6 -2
- package/dist/icons/file/folder_close.js +6 -2
- package/dist/icons/file/folder_cloud.js +6 -2
- package/dist/icons/file/folder_gear.js +7 -3
- package/dist/icons/file/folder_minus.js +6 -2
- package/dist/icons/file/folder_music.js +6 -2
- package/dist/icons/file/folder_open.js +6 -2
- package/dist/icons/file/folder_plus.js +6 -2
- package/dist/icons/file/folder_zip.js +6 -2
- package/dist/icons/file/note.js +6 -2
- package/dist/icons/file/note_text.js +6 -2
- package/dist/icons/file/pdf.js +6 -2
- package/dist/icons/file/photo.js +6 -2
- package/dist/icons/finance/bitcoin.js +6 -2
- package/dist/icons/finance/coins.js +10 -6
- package/dist/icons/finance/credit_card.js +6 -2
- package/dist/icons/finance/credit_card_add.js +6 -2
- package/dist/icons/finance/credit_card_face.js +6 -2
- package/dist/icons/finance/credit_card_member.js +6 -2
- package/dist/icons/finance/credit_card_outcome.js +6 -2
- package/dist/icons/finance/credit_card_scan.js +6 -2
- package/dist/icons/finance/credit_card_share.js +6 -2
- package/dist/icons/finance/credit_card_slash.js +6 -2
- package/dist/icons/finance/currency_exchange.js +6 -2
- package/dist/icons/finance/dollar.js +6 -2
- package/dist/icons/finance/ethereum.js +6 -2
- package/dist/icons/finance/paypass.js +6 -2
- package/dist/icons/finance/strongbox.js +6 -2
- package/dist/icons/finance/wallet.js +6 -2
- package/dist/icons/layout/block_align_bottom.js +6 -2
- package/dist/icons/layout/block_align_center.js +6 -2
- package/dist/icons/layout/block_align_left.js +6 -2
- package/dist/icons/layout/block_align_middle.js +6 -2
- package/dist/icons/layout/block_align_right.js +6 -2
- package/dist/icons/layout/block_align_top.js +6 -2
- package/dist/icons/layout/block_horizontal.js +6 -2
- package/dist/icons/layout/block_vertical.js +6 -2
- package/dist/icons/layout/edit_shape.js +6 -2
- package/dist/icons/layout/elements.js +6 -2
- package/dist/icons/layout/elements_add.js +6 -2
- package/dist/icons/layout/elements_filled.js +6 -2
- package/dist/icons/layout/elements_masonry.js +6 -2
- package/dist/icons/layout/frame.js +6 -2
- package/dist/icons/layout/frame_stack.js +6 -2
- package/dist/icons/layout/grid.js +6 -2
- package/dist/icons/layout/grid_column_three.js +6 -2
- package/dist/icons/layout/grid_column_two.js +6 -2
- package/dist/icons/layout/grid_dynamic.js +6 -2
- package/dist/icons/layout/grid_frame.js +6 -2
- package/dist/icons/layout/grid_row_three.js +6 -2
- package/dist/icons/layout/grid_row_two.js +6 -2
- package/dist/icons/layout/grid_six.js +6 -2
- package/dist/icons/layout/grid_small.js +6 -2
- package/dist/icons/layout/iframe.js +6 -2
- package/dist/icons/layout/kanban.js +6 -2
- package/dist/icons/layout/layout.js +6 -2
- package/dist/icons/layout/list.js +6 -2
- package/dist/icons/layout/list_filled.js +11 -7
- package/dist/icons/layout/padding.js +6 -2
- package/dist/icons/layout/page_break.js +6 -2
- package/dist/icons/layout/rotate_left.js +6 -2
- package/dist/icons/layout/rotate_right.js +6 -2
- package/dist/icons/layout/ruler.js +6 -2
- package/dist/icons/layout/segment.js +6 -2
- package/dist/icons/layout/select_area.js +6 -2
- package/dist/icons/layout/select_boundary.js +6 -2
- package/dist/icons/layout/sidebar_left.js +6 -2
- package/dist/icons/layout/sidebar_right.js +6 -2
- package/dist/icons/layout/slides.js +6 -2
- package/dist/icons/layout/slides_horizontal.js +6 -2
- package/dist/icons/layout/slides_vertical.js +11 -7
- package/dist/icons/layout/stack.js +6 -2
- package/dist/icons/layout/text.js +6 -2
- package/dist/icons/maps/atlas.js +6 -2
- package/dist/icons/maps/compass.js +6 -2
- package/dist/icons/maps/direction.js +6 -2
- package/dist/icons/maps/direction_angled.js +6 -2
- package/dist/icons/maps/globe.js +6 -2
- package/dist/icons/maps/globe_slash.js +6 -2
- package/dist/icons/maps/location.js +6 -2
- package/dist/icons/maps/location_slash.js +6 -2
- package/dist/icons/maps/map.js +6 -2
- package/dist/icons/maps/marker.js +6 -2
- package/dist/icons/maps/panorama.js +6 -2
- package/dist/icons/maps/pin.js +6 -2
- package/dist/icons/maps/pin_arrow.js +6 -2
- package/dist/icons/maps/pin_location.js +6 -2
- package/dist/icons/maps/pin_plus.js +6 -2
- package/dist/icons/maps/pin_question.js +6 -2
- package/dist/icons/maps/pin_slash.js +6 -2
- package/dist/icons/maps/push_pin.js +6 -2
- package/dist/icons/maps/push_pin_filled.js +6 -2
- package/dist/icons/maps/push_pin_slash.js +6 -2
- package/dist/icons/maps/radar.js +6 -2
- package/dist/icons/maps/route.js +6 -2
- package/dist/icons/message/bubble.js +6 -2
- package/dist/icons/message/bubble_question.js +6 -2
- package/dist/icons/message/comment.js +6 -2
- package/dist/icons/message/comment_add.js +6 -2
- package/dist/icons/message/comment_check.js +6 -2
- package/dist/icons/message/comment_close.js +6 -2
- package/dist/icons/message/comment_minus.js +6 -2
- package/dist/icons/message/comment_text.js +6 -2
- package/dist/icons/misc/advertisement.js +6 -2
- package/dist/icons/misc/atom.js +6 -2
- package/dist/icons/misc/bone.js +6 -2
- package/dist/icons/misc/brightness_high.js +6 -2
- package/dist/icons/misc/brightness_low.js +6 -2
- package/dist/icons/misc/contrast.js +6 -2
- package/dist/icons/misc/crosshairs.js +6 -2
- package/dist/icons/misc/crown.js +6 -2
- package/dist/icons/misc/footprint.js +6 -2
- package/dist/icons/misc/form.js +6 -2
- package/dist/icons/misc/funnel.js +6 -2
- package/dist/icons/misc/infinite.js +6 -2
- package/dist/icons/misc/insert_button.js +6 -2
- package/dist/icons/misc/light_bulb.js +6 -2
- package/dist/icons/misc/moon.js +6 -2
- package/dist/icons/misc/nut.js +6 -2
- package/dist/icons/misc/planet.js +6 -2
- package/dist/icons/misc/plus_thick.js +6 -2
- package/dist/icons/misc/pocket.js +6 -2
- package/dist/icons/misc/rocket.js +6 -2
- package/dist/icons/misc/soup.js +10 -6
- package/dist/icons/misc/sun.js +6 -2
- package/dist/icons/misc/toy_horse.js +6 -2
- package/dist/icons/misc/trophy.js +6 -2
- package/dist/icons/misc/watercloset.js +6 -2
- package/dist/icons/notifications/alert_circle.js +6 -2
- package/dist/icons/notifications/alert_octogon.js +6 -2
- package/dist/icons/notifications/alert_triangle.js +6 -2
- package/dist/icons/notifications/app_notification.js +6 -2
- package/dist/icons/notifications/bell.js +6 -2
- package/dist/icons/notifications/bell_alert.js +6 -2
- package/dist/icons/notifications/bell_checkmark.js +6 -2
- package/dist/icons/notifications/bell_minus.js +6 -2
- package/dist/icons/notifications/bell_plus.js +6 -2
- package/dist/icons/notifications/bell_ring.js +8 -4
- package/dist/icons/notifications/bell_slash.js +6 -2
- package/dist/icons/notifications/information.js +6 -2
- package/dist/icons/notifications/minus_octogon.js +6 -2
- package/dist/icons/notifications/question_circle.js +6 -2
- package/dist/icons/people/group.js +6 -2
- package/dist/icons/people/group_add.js +6 -2
- package/dist/icons/people/group_chat.js +8 -4
- package/dist/icons/people/group_remove.js +6 -2
- package/dist/icons/people/group_send.js +7 -3
- package/dist/icons/people/groups.js +6 -2
- package/dist/icons/people/person.js +6 -2
- package/dist/icons/people/person_add.js +6 -2
- package/dist/icons/people/person_checkmark.js +6 -2
- package/dist/icons/people/person_circle.js +8 -4
- package/dist/icons/people/person_close.js +8 -4
- package/dist/icons/people/person_remove.js +6 -2
- package/dist/icons/people/person_slash.js +8 -4
- package/dist/icons/phone/keypad.js +6 -2
- package/dist/icons/phone/phone.js +6 -2
- package/dist/icons/phone/phone_add.js +6 -2
- package/dist/icons/phone/phone_calling.js +6 -2
- package/dist/icons/phone/phone_check.js +6 -2
- package/dist/icons/phone/phone_close.js +6 -2
- package/dist/icons/phone/phone_decline.js +6 -2
- package/dist/icons/phone/phone_forwarded.js +6 -2
- package/dist/icons/phone/phone_hash.js +6 -2
- package/dist/icons/phone/phone_incoming.js +6 -2
- package/dist/icons/phone/phone_outgoing.js +6 -2
- package/dist/icons/phone/phone_pause.js +6 -2
- package/dist/icons/phone/phone_slash.js +6 -2
- package/dist/icons/phone/voicemail.js +6 -2
- package/dist/icons/security/key.js +6 -2
- package/dist/icons/security/key_slash.js +6 -2
- package/dist/icons/security/lock.js +6 -2
- package/dist/icons/security/lock_circle.js +6 -2
- package/dist/icons/security/lock_open.js +6 -2
- package/dist/icons/security/lock_slash.js +6 -2
- package/dist/icons/security/shield.js +6 -2
- package/dist/icons/security/shield_checkmark.js +6 -2
- package/dist/icons/security/shield_lock.js +6 -2
- package/dist/icons/security/shield_slash.js +6 -2
- package/dist/icons/security/verified.js +6 -2
- package/dist/icons/shopping/basket.js +6 -2
- package/dist/icons/shopping/cart.js +6 -2
- package/dist/icons/shopping/cart_filled.js +6 -2
- package/dist/icons/shopping/coupon.js +6 -2
- package/dist/icons/shopping/coupon_cut.js +6 -2
- package/dist/icons/shopping/delivery.js +6 -2
- package/dist/icons/shopping/discount.js +6 -2
- package/dist/icons/shopping/gift.js +6 -2
- package/dist/icons/shopping/gift_bag.js +6 -2
- package/dist/icons/shopping/inventory.js +6 -2
- package/dist/icons/shopping/point_of_sale.js +6 -2
- package/dist/icons/shopping/shirt.js +6 -2
- package/dist/icons/shopping/tag.js +6 -2
- package/dist/icons/shopping/tag_diagonal.js +6 -2
- package/dist/icons/shopping/tote.js +6 -2
- package/dist/icons/special/upload_audio.js +11 -7
- package/dist/icons/special/upload_file.js +6 -2
- package/dist/icons/special/upload_image.js +8 -4
- package/dist/icons/special/upload_video.js +9 -5
- package/dist/icons/symbols/at.js +6 -2
- package/dist/icons/symbols/cc.js +6 -2
- package/dist/icons/symbols/cmd.js +6 -2
- package/dist/icons/symbols/facebook.js +6 -2
- package/dist/icons/symbols/google.js +9 -5
- package/dist/icons/symbols/hash.js +6 -2
- package/dist/icons/symbols/instagram.js +18 -14
- package/dist/icons/symbols/messenger.js +12 -8
- package/dist/icons/symbols/twitter.js +6 -2
- package/dist/icons/technology/battery.js +6 -2
- package/dist/icons/technology/battery_100.js +6 -2
- package/dist/icons/technology/battery_20.js +6 -2
- package/dist/icons/technology/battery_40.js +6 -2
- package/dist/icons/technology/battery_60.js +6 -2
- package/dist/icons/technology/battery_80.js +6 -2
- package/dist/icons/technology/battery_charging.js +6 -2
- package/dist/icons/technology/battery_slash.js +6 -2
- package/dist/icons/technology/devices.js +6 -2
- package/dist/icons/technology/floppy_disk.js +6 -2
- package/dist/icons/technology/iphone.js +6 -2
- package/dist/icons/technology/laptop.js +6 -2
- package/dist/icons/technology/mobile.js +6 -2
- package/dist/icons/technology/monitor.js +6 -2
- package/dist/icons/technology/server.js +6 -2
- package/dist/icons/technology/sim_card.js +6 -2
- package/dist/icons/technology/usb_stick.js +6 -2
- package/dist/icons/text/align_center.js +6 -2
- package/dist/icons/text/align_justified.js +6 -2
- package/dist/icons/text/align_left.js +6 -2
- package/dist/icons/text/align_right.js +6 -2
- package/dist/icons/text/code_block.js +6 -2
- package/dist/icons/text/divider.js +6 -2
- package/dist/icons/text/footnote.js +8 -4
- package/dist/icons/text/indent_decrease.js +6 -2
- package/dist/icons/text/indent_increase.js +6 -2
- package/dist/icons/text/list_ordered.js +6 -2
- package/dist/icons/text/list_unordered.js +6 -2
- package/dist/icons/text/quote.js +6 -2
- package/dist/icons/text/table.js +6 -2
- package/dist/icons/time/alarm.js +6 -2
- package/dist/icons/time/alarm_checkmark.js +6 -2
- package/dist/icons/time/alarm_minus.js +6 -2
- package/dist/icons/time/alarm_plus.js +6 -2
- package/dist/icons/time/alarm_slash.js +6 -2
- package/dist/icons/time/alarm_snooze.js +6 -2
- package/dist/icons/time/calendar.js +6 -2
- package/dist/icons/time/calendar_add.js +6 -2
- package/dist/icons/time/calendar_checkmark.js +6 -2
- package/dist/icons/time/calendar_close.js +6 -2
- package/dist/icons/time/calendar_dates.js +6 -2
- package/dist/icons/time/calendar_minus.js +6 -2
- package/dist/icons/time/calendar_plus.js +6 -2
- package/dist/icons/time/calendar_scroll.js +8 -4
- package/dist/icons/time/clock.js +6 -2
- package/dist/icons/time/clock_history.js +6 -2
- package/dist/icons/time/stopwatch.js +6 -2
- package/dist/icons/time/timer.js +6 -2
- package/dist/icons/time/watch.js +6 -2
- package/package.json +1 -1
|
@@ -8,18 +8,23 @@ var box = require('../../atoms/box/box.js');
|
|
|
8
8
|
var heading = require('../../atoms/typography/heading.js');
|
|
9
9
|
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
10
|
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
15
|
+
|
|
11
16
|
const ActionCard = ({ actions, content, href, image, logo, subtitle, sx, title, }) => {
|
|
12
17
|
const isAnchor = !!href;
|
|
13
|
-
return (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
return (React__default.default.createElement(Wrapper, { as: isAnchor ? 'a' : 'div', href: href },
|
|
19
|
+
React__default.default.createElement(Action, { "$backgroundImage": image, "$sx": sx },
|
|
20
|
+
React__default.default.createElement(ImgWrapper, null,
|
|
21
|
+
React__default.default.createElement(Image__default.default, { alt: "", quality: 100, src: image, fill: true })),
|
|
22
|
+
React__default.default.createElement(Figcaption, null,
|
|
23
|
+
React__default.default.createElement(LogoWrapper, null, logo),
|
|
24
|
+
React__default.default.createElement(heading.H, { as: "span", "$mediumBold": true, "$color": "grey-2", "$fontSize": 18, "$lineHeight": 26 }, title),
|
|
25
|
+
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle),
|
|
26
|
+
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-3", "$fontSize": 14, "$lineHeight": 20, "$textAlign": "center", "$textClampLines": 3, sx: "margin-top: 12px;" }, content),
|
|
27
|
+
React__default.default.createElement(box.Box, { "$display": "flex", "$dir": "row", "$gap": 8, sx: "margin-top: auto; width: 100%;" }, React__default.default.Children.toArray(actions))))));
|
|
23
28
|
};
|
|
24
29
|
const Wrapper = styled.styled.div `
|
|
25
30
|
text-decoration: none;
|
|
@@ -11,31 +11,36 @@ var rate = require('../../actions/rate/rate.js');
|
|
|
11
11
|
var cart_filled = require('../../../icons/shopping/cart_filled.js');
|
|
12
12
|
var styles = require('../styles.js');
|
|
13
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
|
+
|
|
14
19
|
const AudioEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }) => {
|
|
15
20
|
const hasLogo = !!logo;
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
actionDropdown &&
|
|
19
|
-
!!purchaseText && (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx, href: href, "$hasPurchaseText": !!purchaseText },
|
|
22
|
+
React__default.default.createElement(Figure, null,
|
|
23
|
+
actionDropdown && React__default.default.createElement(DropdownWrapper, null, actionDropdown),
|
|
24
|
+
!!purchaseText && (React__default.default.createElement(styles.PurchaseTextWrapper, { className: "not-hover" },
|
|
25
|
+
React__default.default.createElement(cart_filled.CartFilled, { color: "yellow-5", size: 24 }),
|
|
26
|
+
React__default.default.createElement(paragraph.P, { "$bold": true, "$color": "white" }, purchaseText))),
|
|
27
|
+
React__default.default.createElement(Image__default.default, { alt: "", className: "thumbnail", height: 228, quality: 100, src: image, width: 228 }),
|
|
28
|
+
React__default.default.createElement(Figcaption, null,
|
|
29
|
+
React__default.default.createElement(box.Box, { "$display": "block", className: "hidden" }, cta),
|
|
30
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
26
31
|
logo,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
supportLabel && (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4 },
|
|
33
|
+
React__default.default.createElement(heading.H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
34
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
35
|
+
supportLabel && (React__default.default.createElement(paragraph.P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
36
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 6, className: "hidden inline" }, content),
|
|
37
|
+
React__default.default.createElement(box.Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
38
|
+
React__default.default.createElement(rate.Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
39
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
35
40
|
"(",
|
|
36
41
|
numRating,
|
|
37
42
|
")"),
|
|
38
|
-
|
|
43
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React__default.default.Children.toArray(actions)))))));
|
|
39
44
|
};
|
|
40
45
|
const Wrapper = styled.styled.a `
|
|
41
46
|
cursor: pointer;
|
|
@@ -12,17 +12,21 @@ var video = require('./video/video.js');
|
|
|
12
12
|
var written = require('./written/written.js');
|
|
13
13
|
var meeting = require('./meeting/meeting.js');
|
|
14
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
|
+
|
|
15
19
|
const Card = ({ type = 'regular', ...rest }) => {
|
|
16
20
|
const lookup = {
|
|
17
|
-
action:
|
|
18
|
-
'audio-episode':
|
|
19
|
-
feature:
|
|
20
|
-
person:
|
|
21
|
-
price:
|
|
22
|
-
regular:
|
|
23
|
-
'video-episode':
|
|
24
|
-
'written-episode': (
|
|
25
|
-
meeting:
|
|
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 }),
|
|
26
30
|
};
|
|
27
31
|
return lookup[type];
|
|
28
32
|
};
|
|
@@ -13,10 +13,15 @@ var close = require('../../../icons/basic/close.js');
|
|
|
13
13
|
var pencil = require('../../../icons/basic/pencil.js');
|
|
14
14
|
var trash = require('../../../icons/basic/trash.js');
|
|
15
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
|
+
|
|
16
21
|
const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx, title = '', uploadModal, }) => {
|
|
17
|
-
const [editing, setEditing] =
|
|
18
|
-
const [editingTitle, setTitle] =
|
|
19
|
-
const [editingContent, setContent] =
|
|
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);
|
|
20
25
|
const handleSetEditing = () => setEditing(true);
|
|
21
26
|
const handleCancelEdit = () => {
|
|
22
27
|
setTitle(title);
|
|
@@ -35,23 +40,23 @@ const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx
|
|
|
35
40
|
};
|
|
36
41
|
const showEditIcon = !editing && editable;
|
|
37
42
|
const isLink = !!href;
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
!editing && (
|
|
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,
|
|
42
47
|
editingTitle,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
showEditIcon && (
|
|
46
|
-
editable && uploadModal && (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
editing && (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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: `
|
|
55
60
|
padding: 8px;
|
|
56
61
|
border-radius: 4px;
|
|
57
62
|
cursor: pointer;
|
|
@@ -61,7 +66,7 @@ const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx
|
|
|
61
66
|
background-color: var(--color-grey-10);
|
|
62
67
|
}
|
|
63
68
|
` }),
|
|
64
|
-
|
|
69
|
+
React__default.default.createElement(close.Close, { onClick: handleCancelEdit, sx: `
|
|
65
70
|
padding: 8px;
|
|
66
71
|
border-radius: 4px;
|
|
67
72
|
cursor: pointer;
|
|
@@ -71,7 +76,7 @@ const FeatureCard = ({ content = '', editable, href, image, onDelete, onSave, sx
|
|
|
71
76
|
background-color: var(--color-grey-10);
|
|
72
77
|
}
|
|
73
78
|
` }),
|
|
74
|
-
onDelete && (
|
|
79
|
+
onDelete && (React__default.default.createElement(trash.Trash, { onClick: onDelete, sx: `
|
|
75
80
|
padding: 8px;
|
|
76
81
|
border-radius: 4px;
|
|
77
82
|
cursor: pointer;
|
|
@@ -19,6 +19,11 @@ var star_filled = require('../../../icons/basic/star_filled.js');
|
|
|
19
19
|
var star = require('../../../icons/basic/star.js');
|
|
20
20
|
var ellipsis_horizontal = require('../../../icons/basic/ellipsis_horizontal.js');
|
|
21
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
|
+
|
|
22
27
|
var RSVP;
|
|
23
28
|
(function (RSVP) {
|
|
24
29
|
RSVP["INTERESTED"] = "INTERESTED";
|
|
@@ -31,7 +36,7 @@ const MeetingCard = ({ href, image, sx, title, actions, course, startDate, endDa
|
|
|
31
36
|
value: 'interested',
|
|
32
37
|
label: 'Interested',
|
|
33
38
|
onClick: handleInterestedOnClick,
|
|
34
|
-
icon:
|
|
39
|
+
icon: React__default.default.createElement(star_filled.StarFilled, { color: "yellow-5" }),
|
|
35
40
|
color: rsvp === RSVP.INTERESTED ? 'primary-blue-2' : undefined,
|
|
36
41
|
});
|
|
37
42
|
!!handleNotInterestedOnClick &&
|
|
@@ -39,7 +44,7 @@ const MeetingCard = ({ href, image, sx, title, actions, course, startDate, endDa
|
|
|
39
44
|
value: 'notInterested',
|
|
40
45
|
label: 'Not Interested',
|
|
41
46
|
onClick: handleNotInterestedOnClick,
|
|
42
|
-
icon:
|
|
47
|
+
icon: React__default.default.createElement(star_filled.StarFilled, { color: "red-4" }),
|
|
43
48
|
color: rsvp === RSVP.NOT_INTERESTED ? 'primary-blue-2' : undefined,
|
|
44
49
|
});
|
|
45
50
|
!!handleVisibleToConnectionsOnClick &&
|
|
@@ -48,39 +53,39 @@ const MeetingCard = ({ href, image, sx, title, actions, course, startDate, endDa
|
|
|
48
53
|
label: 'Visible to connections',
|
|
49
54
|
onClick: handleVisibleToConnectionsOnClick,
|
|
50
55
|
});
|
|
51
|
-
return (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
shareModal && (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
!!secondaryActions.length && (
|
|
61
|
-
(rsvp === RSVP.NOT_INTERESTED && (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
course && (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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 },
|
|
71
76
|
startDate,
|
|
72
77
|
" - ",
|
|
73
78
|
endDate)),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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 },
|
|
77
82
|
startTime,
|
|
78
83
|
" - ",
|
|
79
84
|
endTime)),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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)))));
|
|
84
89
|
};
|
|
85
90
|
const Wrapper = styled.styled.div `
|
|
86
91
|
min-width: 312px;
|
|
@@ -11,16 +11,21 @@ var heading = require('../../atoms/typography/heading.js');
|
|
|
11
11
|
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
12
12
|
var ellipsis_horizontal = require('../../../icons/basic/ellipsis_horizontal.js');
|
|
13
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
|
+
|
|
14
19
|
const PersonCard = ({ actions, dotsActions, href, image, subtitle, sx, title, }) => {
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
dotsActions && !!dotsActions.length && (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
actions && (
|
|
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)))))));
|
|
24
29
|
};
|
|
25
30
|
const Wrapper = styled.styled.div `
|
|
26
31
|
width: 312px;
|
|
@@ -11,40 +11,44 @@ var dropdown = require('../../actions/dropdown/dropdown.js');
|
|
|
11
11
|
var checkmark = require('../../../icons/basic/checkmark.js');
|
|
12
12
|
var ellipsis_horizontal = require('../../../icons/basic/ellipsis_horizontal.js');
|
|
13
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
|
+
|
|
14
18
|
const PriceCard = ({ actions, content, dotsActions, featureTitle, features, label, price, title, }) => {
|
|
15
|
-
const id =
|
|
16
|
-
return (
|
|
17
|
-
dotsActions && !!dotsActions.length && (
|
|
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: `
|
|
18
22
|
position: absolute;
|
|
19
23
|
top: 6px;
|
|
20
24
|
right: 6px;
|
|
21
25
|
display: none;
|
|
22
|
-
`, trigger:
|
|
23
|
-
label && (
|
|
26
|
+
`, 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() })),
|
|
27
|
+
label && (React__default.default.createElement(box.Box, { "$justify": "center", sx: `
|
|
24
28
|
width: 100%;
|
|
25
29
|
position: absolute;
|
|
26
30
|
z-index: -1;
|
|
27
31
|
top: -33px;` },
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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: `
|
|
31
35
|
padding: 24px 48px;
|
|
32
36
|
background-color: var(--color-grey-10);
|
|
33
37
|
border-radius: 16px 16px 0px 0px;
|
|
34
38
|
` },
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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")),
|
|
39
43
|
actions),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
features.map((item, index) => (
|
|
46
|
-
|
|
47
|
-
|
|
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))))))));
|
|
48
52
|
};
|
|
49
53
|
const Price = styled.styled.figure `
|
|
50
54
|
position: relative;
|
|
@@ -6,10 +6,15 @@ var Image = require('next/image');
|
|
|
6
6
|
var styled = require('styled-components');
|
|
7
7
|
var box = require('../../atoms/box/box.js');
|
|
8
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
|
+
|
|
9
14
|
const RegularCard = ({ children, href, image, sx, }) => {
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
|
|
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)));
|
|
13
18
|
};
|
|
14
19
|
const Wrapper = styled.styled.div `
|
|
15
20
|
position: relative;
|
|
@@ -11,31 +11,36 @@ var rate = require('../../actions/rate/rate.js');
|
|
|
11
11
|
var cart_filled = require('../../../icons/shopping/cart_filled.js');
|
|
12
12
|
var styles = require('../styles.js');
|
|
13
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
|
+
|
|
14
19
|
const VideoEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }) => {
|
|
15
20
|
const hasLogo = !!logo;
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
actionDropdown &&
|
|
19
|
-
!!purchaseText && (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx, href: href, "$hasPurchaseText": !!purchaseText },
|
|
22
|
+
React__default.default.createElement(Figure, null,
|
|
23
|
+
actionDropdown && React__default.default.createElement(DropdownWrapper, null, actionDropdown),
|
|
24
|
+
!!purchaseText && (React__default.default.createElement(styles.PurchaseTextWrapper, { className: "not-hover" },
|
|
25
|
+
React__default.default.createElement(cart_filled.CartFilled, { color: "yellow-5", size: 24 }),
|
|
26
|
+
React__default.default.createElement(paragraph.P, { "$bold": true, "$color": "white" }, purchaseText))),
|
|
27
|
+
React__default.default.createElement(Image__default.default, { alt: "", className: "thumbnail", height: 213, quality: 100, src: image, width: 379 }),
|
|
28
|
+
React__default.default.createElement(Figcaption, null,
|
|
29
|
+
React__default.default.createElement(box.Box, { "$display": "block", className: "hidden" }, cta),
|
|
30
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
26
31
|
logo,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
supportLabel && (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4 },
|
|
33
|
+
React__default.default.createElement(heading.H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
34
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
35
|
+
supportLabel && (React__default.default.createElement(paragraph.P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
36
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 4, className: "hidden" }, content),
|
|
37
|
+
React__default.default.createElement(box.Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
38
|
+
React__default.default.createElement(rate.Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
39
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
35
40
|
"(",
|
|
36
41
|
numRating,
|
|
37
42
|
")"),
|
|
38
|
-
|
|
43
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React__default.default.Children.toArray(actions)))))));
|
|
39
44
|
};
|
|
40
45
|
const Wrapper = styled.styled.a `
|
|
41
46
|
cursor: pointer;
|
|
@@ -11,31 +11,36 @@ var rate = require('../../actions/rate/rate.js');
|
|
|
11
11
|
var cart_filled = require('../../../icons/shopping/cart_filled.js');
|
|
12
12
|
var styles = require('../styles.js');
|
|
13
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
|
+
|
|
14
19
|
const WrittenEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }) => {
|
|
15
20
|
const hasLogo = !!logo;
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
actionDropdown &&
|
|
19
|
-
!!purchaseText && (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx, href: href, "$hasPurchaseText": !!purchaseText },
|
|
22
|
+
React__default.default.createElement(Figure, null,
|
|
23
|
+
actionDropdown && React__default.default.createElement(DropdownWrapper, null, actionDropdown),
|
|
24
|
+
!!purchaseText && (React__default.default.createElement(styles.PurchaseTextWrapper, { className: "not-hover" },
|
|
25
|
+
React__default.default.createElement(cart_filled.CartFilled, { color: "yellow-5", size: 24, sx: "flex-shrink: 0;" }),
|
|
26
|
+
React__default.default.createElement(paragraph.P, { "$bold": true, "$color": "white" }, purchaseText))),
|
|
27
|
+
React__default.default.createElement(Image__default.default, { alt: "", className: "thumbnail", height: 228, quality: 100, src: image, width: 176 }),
|
|
28
|
+
React__default.default.createElement(Figcaption, null,
|
|
29
|
+
React__default.default.createElement(box.Box, { "$display": "block", className: "hidden" }, cta),
|
|
30
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
26
31
|
logo,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
supportLabel && (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4 },
|
|
33
|
+
React__default.default.createElement(heading.H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
34
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
35
|
+
supportLabel && (React__default.default.createElement(paragraph.P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
36
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 6, className: "hidden inline" }, content),
|
|
37
|
+
React__default.default.createElement(box.Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
38
|
+
React__default.default.createElement(rate.Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
39
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
35
40
|
"(",
|
|
36
41
|
numRating,
|
|
37
42
|
")"),
|
|
38
|
-
|
|
43
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React__default.default.Children.toArray(actions)))))));
|
|
39
44
|
};
|
|
40
45
|
const Wrapper = styled.styled.a `
|
|
41
46
|
cursor: pointer;
|