@soul-refiner/design-system 2.0.4 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.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 +2 -42
- 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 -44
- 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/discuss_post/discuss_post.js +2 -0
- 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/src/components/surfaces/discuss_post/discuss_post.d.ts +4 -0
- package/dist/src/components/surfaces/discuss_post/index.d.ts +2 -0
- package/dist/src/components/surfaces/index.d.ts +2 -0
- 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,48 +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 rate = require('../../actions/rate/rate.js');
|
|
11
|
-
var cart_filled = require('../../../icons/shopping/cart_filled.js');
|
|
12
|
-
var styles = require('../styles.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 VideoEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }) => {
|
|
20
|
-
const hasLogo = !!logo;
|
|
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 },
|
|
31
|
-
logo,
|
|
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;" },
|
|
40
|
-
"(",
|
|
41
|
-
numRating,
|
|
42
|
-
")"),
|
|
43
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React__default.default.Children.toArray(actions)))))));
|
|
44
|
-
};
|
|
45
|
-
const Wrapper = styled.styled.a `
|
|
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"),rate=require("../../actions/rate/rate.js"),cart_filled=require("../../../icons/shopping/cart_filled.js"),styles=require("../styles.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 VideoEpisodeCard=({actions:e,actionDropdown:t,content:a,cta:r,href:l,image:i,logo:o,numRating:d,purchaseText:n,rating:p,subtitle:s,supportLabel:c,sx:u,title:f})=>{var g=!!o;return React__default.default.createElement(Wrapper,{$sx:u,href:l,$hasPurchaseText:!!n},React__default.default.createElement(Figure,null,t&&React__default.default.createElement(DropdownWrapper,null,t),!!n&&React__default.default.createElement(styles.PurchaseTextWrapper,{className:"not-hover"},React__default.default.createElement(cart_filled.CartFilled,{color:"yellow-5",size:24}),React__default.default.createElement(paragraph.P,{$bold:!0,$color:"white"},n)),React__default.default.createElement(Image__default.default,{alt:"",className:"thumbnail",height:213,quality:100,src:i,width:379}),React__default.default.createElement(Figcaption,null,React__default.default.createElement(box.Box,{$display:"block",className:"hidden"},r),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:16},o,React__default.default.createElement(box.Box,{$dir:"column",$gap:4},React__default.default.createElement(heading.H,{$color:"grey-2",$semiBold:!0,$fontSize:g?18:16},f),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:12,$lineHeight:16},s)),c&&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;"},c)),React__default.default.createElement(paragraph.P,{$color:"grey-5",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:4,className:"hidden"},a),React__default.default.createElement(box.Box,{className:"hidden",$align:"center",$dir:"row"},React__default.default.createElement(rate.Rate,{isRateable:!1,percent:p,size:"small"}),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"margin: 0px auto 0px 4px;"},"(",d,")"),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:8},React__default.default.Children.toArray(e))))))},Wrapper=styled.styled.a`
|
|
46
3
|
cursor: pointer;
|
|
47
4
|
display: block;
|
|
48
5
|
position: relative;
|
|
@@ -56,9 +13,7 @@ const Wrapper = styled.styled.a `
|
|
|
56
13
|
figure {
|
|
57
14
|
transition: width 0.3s;
|
|
58
15
|
width: 379px;
|
|
59
|
-
${({
|
|
60
|
-
? 'background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);'
|
|
61
|
-
: ''}
|
|
16
|
+
${({$hasPurchaseText:e})=>e?"background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);":""}
|
|
62
17
|
|
|
63
18
|
img {
|
|
64
19
|
box-shadow: var(--elevation-3);
|
|
@@ -107,9 +62,8 @@ const Wrapper = styled.styled.a `
|
|
|
107
62
|
}
|
|
108
63
|
}
|
|
109
64
|
|
|
110
|
-
${({
|
|
111
|
-
|
|
112
|
-
const Figure = styled.styled.figure `
|
|
65
|
+
${({$sx:e})=>e||""};
|
|
66
|
+
`,Figure=styled.styled.figure`
|
|
113
67
|
max-width: 410px;
|
|
114
68
|
width: max-content;
|
|
115
69
|
margin: 0px;
|
|
@@ -124,17 +78,13 @@ const Figure = styled.styled.figure `
|
|
|
124
78
|
height: 225px;
|
|
125
79
|
border-radius: 16px;
|
|
126
80
|
}
|
|
127
|
-
|
|
128
|
-
const Figcaption = styled.styled.figcaption `
|
|
81
|
+
`,Figcaption=styled.styled.figcaption`
|
|
129
82
|
display: flex;
|
|
130
83
|
flex-flow: column nowrap;
|
|
131
84
|
gap: 8px;
|
|
132
85
|
padding: 8px;
|
|
133
|
-
|
|
134
|
-
const DropdownWrapper = styled.styled.div `
|
|
86
|
+
`,DropdownWrapper=styled.styled.div`
|
|
135
87
|
position: absolute;
|
|
136
88
|
top: 8px;
|
|
137
89
|
right: 8px;
|
|
138
|
-
`;
|
|
139
|
-
|
|
140
|
-
exports.VideoEpisodeCard = VideoEpisodeCard;
|
|
90
|
+
`;exports.VideoEpisodeCard=VideoEpisodeCard;
|
|
@@ -1,48 +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 rate = require('../../actions/rate/rate.js');
|
|
11
|
-
var cart_filled = require('../../../icons/shopping/cart_filled.js');
|
|
12
|
-
var styles = require('../styles.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 WrittenEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }) => {
|
|
20
|
-
const hasLogo = !!logo;
|
|
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 },
|
|
31
|
-
logo,
|
|
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;" },
|
|
40
|
-
"(",
|
|
41
|
-
numRating,
|
|
42
|
-
")"),
|
|
43
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React__default.default.Children.toArray(actions)))))));
|
|
44
|
-
};
|
|
45
|
-
const Wrapper = styled.styled.a `
|
|
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"),rate=require("../../actions/rate/rate.js"),cart_filled=require("../../../icons/shopping/cart_filled.js"),styles=require("../styles.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 WrittenEpisodeCard=({actions:e,actionDropdown:t,content:a,cta:r,href:l,image:i,logo:o,numRating:n,purchaseText:d,rating:s,subtitle:p,supportLabel:c,sx:u,title:f})=>{var g=!!o;return React__default.default.createElement(Wrapper,{$sx:u,href:l,$hasPurchaseText:!!d},React__default.default.createElement(Figure,null,t&&React__default.default.createElement(DropdownWrapper,null,t),!!d&&React__default.default.createElement(styles.PurchaseTextWrapper,{className:"not-hover"},React__default.default.createElement(cart_filled.CartFilled,{color:"yellow-5",size:24,sx:"flex-shrink: 0;"}),React__default.default.createElement(paragraph.P,{$bold:!0,$color:"white"},d)),React__default.default.createElement(Image__default.default,{alt:"",className:"thumbnail",height:228,quality:100,src:i,width:176}),React__default.default.createElement(Figcaption,null,React__default.default.createElement(box.Box,{$display:"block",className:"hidden"},r),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:16},o,React__default.default.createElement(box.Box,{$dir:"column",$gap:4},React__default.default.createElement(heading.H,{$color:"grey-2",$semiBold:!0,$fontSize:g?18:16},f),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:12,$lineHeight:16},p)),c&&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;"},c)),React__default.default.createElement(paragraph.P,{$color:"grey-5",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:6,className:"hidden inline"},a),React__default.default.createElement(box.Box,{className:"hidden",$align:"center",$dir:"row"},React__default.default.createElement(rate.Rate,{isRateable:!1,percent:s,size:"small"}),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"margin: 0px auto 0px 4px;"},"(",n,")"),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:8},React__default.default.Children.toArray(e))))))},Wrapper=styled.styled.a`
|
|
46
3
|
cursor: pointer;
|
|
47
4
|
display: block;
|
|
48
5
|
position: relative;
|
|
@@ -55,9 +12,7 @@ const Wrapper = styled.styled.a `
|
|
|
55
12
|
figure {
|
|
56
13
|
transition: width 0.3s;
|
|
57
14
|
width: 100%;
|
|
58
|
-
${({
|
|
59
|
-
? 'background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);'
|
|
60
|
-
: ''}
|
|
15
|
+
${({$hasPurchaseText:e})=>e?"background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);":""}
|
|
61
16
|
|
|
62
17
|
img {
|
|
63
18
|
box-shadow: var(--elevation-3);
|
|
@@ -112,9 +67,8 @@ const Wrapper = styled.styled.a `
|
|
|
112
67
|
}
|
|
113
68
|
}
|
|
114
69
|
|
|
115
|
-
${({
|
|
116
|
-
|
|
117
|
-
const Figure = styled.styled.figure `
|
|
70
|
+
${({$sx:e})=>e||""};
|
|
71
|
+
`,Figure=styled.styled.figure`
|
|
118
72
|
margin: 0px;
|
|
119
73
|
border-radius: 16px;
|
|
120
74
|
|
|
@@ -127,17 +81,13 @@ const Figure = styled.styled.figure `
|
|
|
127
81
|
height: 225px;
|
|
128
82
|
aspect-ratio: 149 / 213;
|
|
129
83
|
}
|
|
130
|
-
|
|
131
|
-
const Figcaption = styled.styled.figcaption `
|
|
84
|
+
`,Figcaption=styled.styled.figcaption`
|
|
132
85
|
display: flex;
|
|
133
86
|
flex-flow: column nowrap;
|
|
134
87
|
gap: 8px;
|
|
135
88
|
padding: 8px;
|
|
136
|
-
|
|
137
|
-
const DropdownWrapper = styled.styled.div `
|
|
89
|
+
`,DropdownWrapper=styled.styled.div`
|
|
138
90
|
position: absolute;
|
|
139
91
|
top: 8px;
|
|
140
92
|
right: 8px;
|
|
141
|
-
`;
|
|
142
|
-
|
|
143
|
-
exports.WrittenEpisodeCard = WrittenEpisodeCard;
|
|
93
|
+
`;exports.WrittenEpisodeCard=WrittenEpisodeCard;
|
|
@@ -1,93 +1,10 @@
|
|
|
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 button = require('../../actions/button/button.js');
|
|
8
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
9
|
-
var box = require('../../atoms/box/box.js');
|
|
10
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
11
|
-
var graduation_cap = require('../../../icons/basic/graduation_cap.js');
|
|
12
|
-
var search = require('../../../icons/basic/search.js');
|
|
13
|
-
var plus = require('../../../icons/basic/plus.js');
|
|
14
|
-
var close = require('../../../icons/basic/close.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 CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, courses, label, courseIsSelected, setCourseIsSelected, subtitle, onlyOneCanBeSelected = false, ...rest }) => {
|
|
22
|
-
const wrapperRef = React__default.default.useRef(null);
|
|
23
|
-
const [open, setOpen] = React__default.default.useState(false);
|
|
24
|
-
React__default.default.useEffect(() => {
|
|
25
|
-
if (disabled) {
|
|
26
|
-
setOpen(false);
|
|
27
|
-
}
|
|
28
|
-
}, [disabled]);
|
|
29
|
-
const handleOpen = () => {
|
|
30
|
-
if (disabled) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
setOpen((prev) => !prev);
|
|
34
|
-
};
|
|
35
|
-
const handleBlur = (event) => {
|
|
36
|
-
if (closeOnBlur &&
|
|
37
|
-
wrapperRef?.current &&
|
|
38
|
-
!wrapperRef?.current?.contains(event.relatedTarget)) {
|
|
39
|
-
setOpen(false);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const selectedCourses = courses.filter((course) => courseIsSelected[course.id]);
|
|
43
|
-
return (React__default.default.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
|
|
44
|
-
React__default.default.createElement(box.Box, { "$gap": 16, "$align": "center" },
|
|
45
|
-
React__default.default.createElement(IconWrapper, { "$color": "var(--color-hue-purple-2)" },
|
|
46
|
-
React__default.default.createElement(graduation_cap.GraduationCap, { color: "hue-purple-1", size: 24 })),
|
|
47
|
-
React__default.default.createElement(heading.H.Six, { "$bold": true, "$color": "hue-purple-1" }, "Course")),
|
|
48
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 14, sx: "margin-top: 32px;" }, subtitle),
|
|
49
|
-
React__default.default.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen, customDropdownIcon: search.Search, sx: "margin-top: 32px;" }, label),
|
|
50
|
-
open && (React__default.default.createElement(Container, { "$offset": offset, "$sx": containerSx }, courses.map((course) => (React__default.default.createElement(OptionWrapper, { key: course.id, "$disabled": disabled, onClick: () => {
|
|
51
|
-
setCourseIsSelected(onlyOneCanBeSelected
|
|
52
|
-
? {
|
|
53
|
-
[course.id]: true,
|
|
54
|
-
}
|
|
55
|
-
: {
|
|
56
|
-
...courseIsSelected,
|
|
57
|
-
[course.id]: true,
|
|
58
|
-
});
|
|
59
|
-
if (closeOnChange) {
|
|
60
|
-
setOpen(false);
|
|
61
|
-
}
|
|
62
|
-
} },
|
|
63
|
-
React__default.default.createElement(box.Box, { "$display": "flex", "$align": "center" },
|
|
64
|
-
React__default.default.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, course.name),
|
|
65
|
-
React__default.default.createElement(plus.Plus, { sx: "margin-left: auto;" }))))))),
|
|
66
|
-
!!selectedCourses.length && (React__default.default.createElement("ul", { style: { padding: 0 } }, selectedCourses.map((course) => {
|
|
67
|
-
return (React__default.default.createElement("li", { key: course.id, style: {
|
|
68
|
-
listStyleType: 'none',
|
|
69
|
-
display: 'flex',
|
|
70
|
-
alignItems: 'center',
|
|
71
|
-
marginTop: '16px',
|
|
72
|
-
} },
|
|
73
|
-
React__default.default.createElement(Image__default.default, { alt: "", height: 64, width: 114, src: course.imageSrc, quality: 100, style: {
|
|
74
|
-
borderRadius: '8px',
|
|
75
|
-
marginRight: '16px',
|
|
76
|
-
} }),
|
|
77
|
-
React__default.default.createElement(paragraph.P, { sx: "margin-left: 16px;" }, course.name),
|
|
78
|
-
React__default.default.createElement(close.Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
|
|
79
|
-
...courseIsSelected,
|
|
80
|
-
[course.id]: false,
|
|
81
|
-
}) })));
|
|
82
|
-
})))));
|
|
83
|
-
};
|
|
84
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),button=require("../../actions/button/button.js"),paragraph=require("../../atoms/typography/paragraph.js"),box=require("../../atoms/box/box.js"),heading=require("../../atoms/typography/heading.js"),graduation_cap=require("../../../icons/basic/graduation_cap.js"),search=require("../../../icons/basic/search.js"),plus=require("../../../icons/basic/plus.js"),close=require("../../../icons/basic/close.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 CoursesSelection=({closeOnChange:t=!0,closeOnBlur:a=!0,disabled:r=!1,offset:e=[0,0],sx:l,containerSx:o,courses:n,label:c,courseIsSelected:i,setCourseIsSelected:u,subtitle:d,onlyOneCanBeSelected:s=!1,...p})=>{const f=React__default.default.useRef(null),[g,_]=React__default.default.useState(!1);React__default.default.useEffect(()=>{r&&_(!1)},[r]);var m=n.filter(e=>i[e.id]);return React__default.default.createElement(Wrapper,{$sx:l,tabIndex:0,ref:f,onBlurCapture:e=>{a&&f?.current&&!f?.current?.contains(e.relatedTarget)&&_(!1)},...p},React__default.default.createElement(box.Box,{$gap:16,$align:"center"},React__default.default.createElement(IconWrapper,{$color:"var(--color-hue-purple-2)"},React__default.default.createElement(graduation_cap.GraduationCap,{color:"hue-purple-1",size:24})),React__default.default.createElement(heading.H.Six,{$bold:!0,$color:"hue-purple-1"},"Course")),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:14,sx:"margin-top: 32px;"},d),React__default.default.createElement(button.Button,{type:"dropdown",isDropdownOpen:g,onClick:()=>{r||_(e=>!e)},customDropdownIcon:search.Search,sx:"margin-top: 32px;"},c),g&&React__default.default.createElement(Container,{$offset:e,$sx:o},n.map(e=>React__default.default.createElement(OptionWrapper,{key:e.id,$disabled:r,onClick:()=>{u(s?{[e.id]:!0}:{...i,[e.id]:!0}),t&&_(!1)}},React__default.default.createElement(box.Box,{$display:"flex",$align:"center"},React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:1},e.name),React__default.default.createElement(plus.Plus,{sx:"margin-left: auto;"}))))),!!m.length&&React__default.default.createElement("ul",{style:{padding:0}},m.map(e=>React__default.default.createElement("li",{key:e.id,style:{listStyleType:"none",display:"flex",alignItems:"center",marginTop:"16px"}},React__default.default.createElement(Image__default.default,{alt:"",height:64,width:114,src:e.imageSrc,quality:100,style:{borderRadius:"8px",marginRight:"16px"}}),React__default.default.createElement(paragraph.P,{sx:"margin-left: 16px;"},e.name),React__default.default.createElement(close.Close,{sx:"cursor: pointer; margin-left: auto;",onClick:()=>u({...i,[e.id]:!1})})))))},Wrapper=styled.styled.div`
|
|
85
3
|
position: relative;
|
|
86
4
|
display: block;
|
|
87
5
|
outline: none;
|
|
88
|
-
${({
|
|
89
|
-
|
|
90
|
-
const Container = styled.styled.div `
|
|
6
|
+
${({$sx:e})=>e||""}
|
|
7
|
+
`,Container=styled.styled.div`
|
|
91
8
|
min-width: 280px;
|
|
92
9
|
max-height: 600px;
|
|
93
10
|
display: flex;
|
|
@@ -102,11 +19,10 @@ const Container = styled.styled.div `
|
|
|
102
19
|
overflow: auto;
|
|
103
20
|
z-index: 2;
|
|
104
21
|
|
|
105
|
-
${({
|
|
22
|
+
${({$sx:e})=>e||""}
|
|
106
23
|
|
|
107
|
-
${({
|
|
108
|
-
|
|
109
|
-
const OptionWrapper = styled.styled.div `
|
|
24
|
+
${({$offset:e})=>e?`transform: translate(${e[0]}px, ${e[1]}px);`:""}
|
|
25
|
+
`,OptionWrapper=styled.styled.div`
|
|
110
26
|
position: relative;
|
|
111
27
|
padding: 12px 16px;
|
|
112
28
|
user-select: none;
|
|
@@ -116,13 +32,9 @@ const OptionWrapper = styled.styled.div `
|
|
|
116
32
|
pointer-events: none;
|
|
117
33
|
}
|
|
118
34
|
|
|
119
|
-
${({
|
|
120
|
-
if ($disabled) {
|
|
121
|
-
return `cursor: initial;
|
|
35
|
+
${({$disabled:e})=>e?`cursor: initial;
|
|
122
36
|
color: var(--color-grey-7);
|
|
123
|
-
background-color: var(--color-grey-10)
|
|
124
|
-
}
|
|
125
|
-
return `
|
|
37
|
+
background-color: var(--color-grey-10);`:`
|
|
126
38
|
&:hover {
|
|
127
39
|
background-color: var(--color-grey-10);
|
|
128
40
|
}
|
|
@@ -130,14 +42,10 @@ const OptionWrapper = styled.styled.div `
|
|
|
130
42
|
&:active {
|
|
131
43
|
background-color: var(--color-grey-8);
|
|
132
44
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
`;
|
|
136
|
-
const IconWrapper = styled.styled.div `
|
|
45
|
+
`}
|
|
46
|
+
`,IconWrapper=styled.styled.div`
|
|
137
47
|
padding: 12px;
|
|
138
48
|
border-radius: 8px;
|
|
139
|
-
background-color: ${({
|
|
49
|
+
background-color: ${({$color:e})=>e};
|
|
140
50
|
width: fit-content;
|
|
141
|
-
`;
|
|
142
|
-
|
|
143
|
-
exports.CoursesSelection = CoursesSelection;
|
|
51
|
+
`;exports.CoursesSelection=CoursesSelection;
|
|
@@ -1,74 +1,10 @@
|
|
|
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 button = require('../../actions/button/button.js');
|
|
8
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
9
|
-
var search = require('../../input/search/search.js');
|
|
10
|
-
var checkbox = require('../../input/checkbox/checkbox.js');
|
|
11
|
-
var box = require('../../atoms/box/box.js');
|
|
12
|
-
|
|
13
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
14
|
-
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
17
|
-
|
|
18
|
-
const UsersSelection = ({ closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, searchSx, users, label, title, userIsChecked, setUserIsChecked, icon, ...rest }) => {
|
|
19
|
-
const wrapperRef = React__default.default.useRef(null);
|
|
20
|
-
const [open, setOpen] = React__default.default.useState(false);
|
|
21
|
-
const [searchValue, setSearchValue] = React__default.default.useState('');
|
|
22
|
-
React__default.default.useEffect(() => {
|
|
23
|
-
if (disabled) {
|
|
24
|
-
setOpen(false);
|
|
25
|
-
}
|
|
26
|
-
}, [disabled]);
|
|
27
|
-
const handleOpen = () => {
|
|
28
|
-
if (disabled) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
setOpen((prev) => !prev);
|
|
32
|
-
};
|
|
33
|
-
const handleBlur = (event) => {
|
|
34
|
-
if (closeOnBlur &&
|
|
35
|
-
wrapperRef?.current &&
|
|
36
|
-
!wrapperRef?.current?.contains(event.relatedTarget)) {
|
|
37
|
-
setOpen(false);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const Icon = icon;
|
|
41
|
-
return (React__default.default.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
|
|
42
|
-
React__default.default.createElement(button.Button, { type: "dropdown", isDropdownOpen: open, onClick: handleOpen },
|
|
43
|
-
React__default.default.createElement(Icon, { size: 16, sx: "margin-right: 16px;" }),
|
|
44
|
-
label),
|
|
45
|
-
open && (React__default.default.createElement(Container, { "$offset": offset, "$sx": containerSx },
|
|
46
|
-
React__default.default.createElement(paragraph.P, null, title),
|
|
47
|
-
React__default.default.createElement(search.Search, { onChange: (event) => setSearchValue(event.target.value), onClearText: () => setSearchValue(''), value: searchValue, size: "large", placeholder: "Search...", sx: `margin-top: 8px; margin-bottom: 8px; border-radius: 76px; ${searchSx}` }),
|
|
48
|
-
users
|
|
49
|
-
.filter((user) => searchValue
|
|
50
|
-
? user.fullName
|
|
51
|
-
.toLowerCase()
|
|
52
|
-
.includes(searchValue.toLowerCase())
|
|
53
|
-
: true)
|
|
54
|
-
.map((user) => (React__default.default.createElement(React__default.default.Fragment, { key: user.id },
|
|
55
|
-
React__default.default.createElement(OptionWrapper, { "$disabled": disabled, onClick: () => setUserIsChecked({
|
|
56
|
-
...userIsChecked,
|
|
57
|
-
[user.id]: !userIsChecked[user.id],
|
|
58
|
-
}) },
|
|
59
|
-
React__default.default.createElement(box.Box, { "$display": "flex", "$align": "center" },
|
|
60
|
-
React__default.default.createElement(StyledImage, { alt: "", height: 40, src: user.imageSrc, width: 40 }),
|
|
61
|
-
React__default.default.createElement(paragraph.P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, user.fullName),
|
|
62
|
-
React__default.default.createElement(checkbox.Checkbox, { selected: userIsChecked[user.id], sx: "margin-left: auto;" }))),
|
|
63
|
-
React__default.default.createElement(Spacer, null))))))));
|
|
64
|
-
};
|
|
65
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),button=require("../../actions/button/button.js"),paragraph=require("../../atoms/typography/paragraph.js"),search=require("../../input/search/search.js"),checkbox=require("../../input/checkbox/checkbox.js"),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 UsersSelection=({closeOnBlur:t=!0,disabled:a=!1,offset:e=[0,0],sx:r,containerSx:l,searchSx:o,users:n,label:d,title:c,userIsChecked:u,setUserIsChecked:i,icon:s,...p})=>{const f=React__default.default.useRef(null),[x,_]=React__default.default.useState(!1),[g,m]=React__default.default.useState("");React__default.default.useEffect(()=>{a&&_(!1)},[a]);return React__default.default.createElement(Wrapper,{$sx:r,tabIndex:0,ref:f,onBlurCapture:e=>{t&&f?.current&&!f?.current?.contains(e.relatedTarget)&&_(!1)},...p},React__default.default.createElement(button.Button,{type:"dropdown",isDropdownOpen:x,onClick:()=>{a||_(e=>!e)}},React__default.default.createElement(s,{size:16,sx:"margin-right: 16px;"}),d),x&&React__default.default.createElement(Container,{$offset:e,$sx:l},React__default.default.createElement(paragraph.P,null,c),React__default.default.createElement(search.Search,{onChange:e=>m(e.target.value),onClearText:()=>m(""),value:g,size:"large",placeholder:"Search...",sx:"margin-top: 8px; margin-bottom: 8px; border-radius: 76px; "+o}),n.filter(e=>!g||e.fullName.toLowerCase().includes(g.toLowerCase())).map(e=>React__default.default.createElement(React__default.default.Fragment,{key:e.id},React__default.default.createElement(OptionWrapper,{$disabled:a,onClick:()=>i({...u,[e.id]:!u[e.id]})},React__default.default.createElement(box.Box,{$display:"flex",$align:"center"},React__default.default.createElement(StyledImage,{alt:"",height:40,src:e.imageSrc,width:40}),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:1},e.fullName),React__default.default.createElement(checkbox.Checkbox,{selected:u[e.id],sx:"margin-left: auto;"}))),React__default.default.createElement(Spacer,null)))))},Wrapper=styled.styled.div`
|
|
66
3
|
position: relative;
|
|
67
4
|
display: block;
|
|
68
5
|
outline: none;
|
|
69
|
-
${({
|
|
70
|
-
|
|
71
|
-
const Container = styled.styled.div `
|
|
6
|
+
${({$sx:e})=>e||""}
|
|
7
|
+
`,Container=styled.styled.div`
|
|
72
8
|
min-width: 280px;
|
|
73
9
|
max-height: 600px;
|
|
74
10
|
display: flex;
|
|
@@ -84,11 +20,10 @@ const Container = styled.styled.div `
|
|
|
84
20
|
padding: 24px;
|
|
85
21
|
z-index: 2;
|
|
86
22
|
|
|
87
|
-
${({
|
|
23
|
+
${({$sx:e})=>e||""}
|
|
88
24
|
|
|
89
|
-
${({
|
|
90
|
-
|
|
91
|
-
const OptionWrapper = styled.styled.div `
|
|
25
|
+
${({$offset:e})=>e?`transform: translate(${e[0]}px, ${e[1]}px);`:""}
|
|
26
|
+
`,OptionWrapper=styled.styled.div`
|
|
92
27
|
position: relative;
|
|
93
28
|
padding: 12px 16px;
|
|
94
29
|
user-select: none;
|
|
@@ -98,13 +33,9 @@ const OptionWrapper = styled.styled.div `
|
|
|
98
33
|
pointer-events: none;
|
|
99
34
|
}
|
|
100
35
|
|
|
101
|
-
${({
|
|
102
|
-
if ($disabled) {
|
|
103
|
-
return `cursor: initial;
|
|
36
|
+
${({$disabled:e})=>e?`cursor: initial;
|
|
104
37
|
color: var(--color-grey-7);
|
|
105
|
-
background-color: var(--color-grey-10)
|
|
106
|
-
}
|
|
107
|
-
return `
|
|
38
|
+
background-color: var(--color-grey-10);`:`
|
|
108
39
|
&:hover {
|
|
109
40
|
background-color: var(--color-blue-10);
|
|
110
41
|
}
|
|
@@ -112,16 +43,13 @@ const OptionWrapper = styled.styled.div `
|
|
|
112
43
|
&:active {
|
|
113
44
|
background-color: var(--color-grey-8);
|
|
114
45
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
`;
|
|
118
|
-
const StyledImage = styled.styled(Image__default.default) `
|
|
46
|
+
`}
|
|
47
|
+
`,StyledImage=styled.styled(Image__default.default)`
|
|
119
48
|
border-radius: 50%;
|
|
120
49
|
width: 40px;
|
|
121
50
|
height: 40px;
|
|
122
51
|
margin-right: 16px;
|
|
123
|
-
|
|
124
|
-
const Spacer = styled.styled.div `
|
|
52
|
+
`,Spacer=styled.styled.div`
|
|
125
53
|
width: 100%;
|
|
126
54
|
height: 1px;
|
|
127
55
|
background-color: var(--color-grey-8);
|
|
@@ -129,6 +57,4 @@ const Spacer = styled.styled.div `
|
|
|
129
57
|
&:hover {
|
|
130
58
|
appearance: none;
|
|
131
59
|
}
|
|
132
|
-
`;
|
|
133
|
-
|
|
134
|
-
exports.UsersSelection = UsersSelection;
|
|
60
|
+
`;exports.UsersSelection=UsersSelection;
|