@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
|
@@ -4,9 +4,15 @@ var React = require('react');
|
|
|
4
4
|
var ReactPlayer = require('react-player');
|
|
5
5
|
var Image = require('next/image');
|
|
6
6
|
|
|
7
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
|
+
var ReactPlayer__default = /*#__PURE__*/_interopDefaultCompat(ReactPlayer);
|
|
11
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
12
|
+
|
|
7
13
|
const Video = ({ controls = true, loop = false, muted, playsInline, src, subtitles, style, thumbnail, }) => {
|
|
8
|
-
const ref =
|
|
9
|
-
return (
|
|
14
|
+
const ref = React__default.default.useRef(null);
|
|
15
|
+
return (React__default.default.createElement(ReactPlayer__default.default, { config: {
|
|
10
16
|
file: {
|
|
11
17
|
attributes: {
|
|
12
18
|
crossOrigin: 'true',
|
|
@@ -22,7 +28,7 @@ const Video = ({ controls = true, loop = false, muted, playsInline, src, subtitl
|
|
|
22
28
|
srcLang: subtitle.locale,
|
|
23
29
|
})),
|
|
24
30
|
},
|
|
25
|
-
}, controls: controls, height: "100%", light: thumbnail ? (
|
|
31
|
+
}, controls: controls, height: "100%", light: thumbnail ? (React__default.default.createElement(Image__default.default, { alt: "thumbnail for trailer", layout: "fill", priority: true, quality: 100, src: thumbnail, style: { objectFit: 'contain' } })) : undefined, loop: loop, muted: muted, pip: false, playsinline: playsInline, playing: true, ref: ref, style: {
|
|
26
32
|
backgroundColor: 'var(--color-grey-0)',
|
|
27
33
|
maxHeight: 720,
|
|
28
34
|
maxWidth: 1280,
|
|
@@ -9,16 +9,21 @@ var paragraph = require('../../atoms/typography/paragraph.js');
|
|
|
9
9
|
var lock = require('../../../icons/security/lock.js');
|
|
10
10
|
var play_solid = require('../../../icons/audio_video/play_solid.js');
|
|
11
11
|
|
|
12
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
16
|
+
|
|
12
17
|
const PlaylistItem = ({ duration, onClick, playable, progress = 0, shortDescription, thumbnail, title, }) => {
|
|
13
|
-
return (
|
|
14
|
-
playable ? (
|
|
15
|
-
|
|
16
|
-
progress && duration && (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
shortDescription && (
|
|
20
|
-
duration && (
|
|
21
|
-
|
|
18
|
+
return (React__default.default.createElement(Wrapper, { onClick: playable ? onClick : undefined, "$playable": playable },
|
|
19
|
+
playable ? (React__default.default.createElement(play_solid.PlaySolid, { color: "white", size: 16, sx: "position: absolute; left: 8px; bottom: 4px;" })) : (React__default.default.createElement(lock.Lock, { color: "white", size: 16, sx: "position: absolute; left: 8px; bottom: 4px;" })),
|
|
20
|
+
React__default.default.createElement(Image__default.default, { alt: `thumbnail for ${title}`, height: 75, quality: 100, src: thumbnail, width: 133 }),
|
|
21
|
+
progress && duration && (React__default.default.createElement(ProgressBar, { progressPercent: progress / duration })),
|
|
22
|
+
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4, sx: "margin-left: 16px; margin-right: auto; flex: 0 1 auto; flex-basis: content;" },
|
|
23
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-10", "$semiBold": true }, title),
|
|
24
|
+
shortDescription && (React__default.default.createElement(paragraph.P, { "$color": "grey-9", "$fontSize": 14, "$lineHeight": 20, "$textClampLines": 2, sx: "max-width: min(500px, 75%);" }, shortDescription))),
|
|
25
|
+
duration && (React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, sx: "flex-shrink: 0;" },
|
|
26
|
+
React__default.default.createElement(seconds_to_duration.SecToDuration, { seconds: duration })))));
|
|
22
27
|
};
|
|
23
28
|
const Wrapper = styled.styled.div `
|
|
24
29
|
width: 100%;
|
|
@@ -30,9 +35,9 @@ const Wrapper = styled.styled.div `
|
|
|
30
35
|
cursor: pointer;
|
|
31
36
|
${({ $playable }) => $playable ? '' : 'pointer-events: none; cursor: initial;'}
|
|
32
37
|
`;
|
|
33
|
-
const ProgressBar = ({ progressPercent }) => (
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
const ProgressBar = ({ progressPercent }) => (React__default.default.createElement(ProgressBarSvg, { viewBox: "0 0 133 2", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
39
|
+
React__default.default.createElement("rect", { width: 133 * progressPercent, height: "2", fill: "var(--color-primary-blue-2)" }),
|
|
40
|
+
React__default.default.createElement("rect", { x: 133 * progressPercent, width: 133 - 133 * progressPercent, height: "2", fill: "var(--color-grey-8)" })));
|
|
36
41
|
const ProgressBarSvg = styled.styled.svg `
|
|
37
42
|
width: 133px;
|
|
38
43
|
position: absolute;
|
|
@@ -13,14 +13,20 @@ var lock_circle = require('../../../icons/security/lock_circle.js');
|
|
|
13
13
|
var play_solid = require('../../../icons/audio_video/play_solid.js');
|
|
14
14
|
var playlistItem = require('./playlist-item.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
|
+
var ReactPlayer__default = /*#__PURE__*/_interopDefaultCompat(ReactPlayer);
|
|
21
|
+
|
|
16
22
|
/**
|
|
17
23
|
* ReactPlayer props reference -> https://www.npmjs.com/package/react-player#props
|
|
18
24
|
* HLS Option props reference -> https://github.com/video-dev/hls.js/blob/master/docs/API.md#fine-tuning
|
|
19
25
|
*/
|
|
20
26
|
const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange, onProgress, orientation, setMediaItem, subtitle, title, trailer, }) => {
|
|
21
|
-
const [showingAll, setShowingAll] =
|
|
22
|
-
const [playingTrailer, setPlayingTrailer] =
|
|
23
|
-
const ref =
|
|
27
|
+
const [showingAll, setShowingAll] = React__default.default.useState(false);
|
|
28
|
+
const [playingTrailer, setPlayingTrailer] = React__default.default.useState(!playable);
|
|
29
|
+
const ref = React__default.default.useRef(null);
|
|
24
30
|
const mediaItem = playingTrailer ? trailer : playlist?.[activeIndex];
|
|
25
31
|
const handleReady = () => {
|
|
26
32
|
if (!playingTrailer) {
|
|
@@ -37,12 +43,12 @@ const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange, onProg
|
|
|
37
43
|
const toggleShowingAll = () => setShowingAll((prev) => !prev);
|
|
38
44
|
if (!mediaItem)
|
|
39
45
|
return null;
|
|
40
|
-
return (
|
|
41
|
-
|
|
42
|
-
orientation === 'vertical' && (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
return (React__default.default.createElement(Wrapper, { "$orientation": orientation },
|
|
47
|
+
React__default.default.createElement(InnerWrapper, { "$orientation": orientation, "$playable": playable || playingTrailer },
|
|
48
|
+
orientation === 'vertical' && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4, sx: "margin: 24px;" },
|
|
49
|
+
React__default.default.createElement(heading.H, { as: "h2", "$bold": true, "$color": "white", "$fontSize": 28, "$lineHeight": 36 }, title),
|
|
50
|
+
React__default.default.createElement(paragraph.P, { as: "h3", "$bold": true, "$color": "grey-8" }, subtitle))),
|
|
51
|
+
React__default.default.createElement(ReactPlayer__default.default, { className: "player", config: {
|
|
46
52
|
file: {
|
|
47
53
|
attributes: {
|
|
48
54
|
crossOrigin: 'true',
|
|
@@ -58,9 +64,9 @@ const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange, onProg
|
|
|
58
64
|
srcLang: subtitle.locale,
|
|
59
65
|
})),
|
|
60
66
|
},
|
|
61
|
-
}, controls: true, height: "100%", light:
|
|
67
|
+
}, controls: true, height: "100%", light: React__default.default.createElement(Image__default.default, { alt: `thumbnail for ${title}`, layout: "fill", priority: true, quality: 100, style: {
|
|
62
68
|
objectFit: 'contain',
|
|
63
|
-
}, src: mediaItem.thumbnail }), progressInterval: 4000, onDisablePIP: () => onPipChange && onPipChange(false), onEnablePIP: () => onPipChange && onPipChange(true), onProgress: onProgress, onReady: handleReady, pip: pip, playIcon: playable || playingTrailer ? (
|
|
69
|
+
}, src: mediaItem.thumbnail }), progressInterval: 4000, onDisablePIP: () => onPipChange && onPipChange(false), onEnablePIP: () => onPipChange && onPipChange(true), onProgress: onProgress, onReady: handleReady, pip: pip, playIcon: playable || playingTrailer ? (React__default.default.createElement(play_solid.PlaySolid, { color: "white", size: 24, sx: "position: absolute; width: 54px; height: 54px;" })) : (React__default.default.createElement(lock_circle.LockCircle, { color: "white", size: 24, sx: "position: absolute; width: 54px; height: 54px;" })), playing: playable, ref: ref, style: {
|
|
64
70
|
backgroundColor: 'var(--color-grey-0)',
|
|
65
71
|
maxHeight: 720,
|
|
66
72
|
maxWidth: 1280,
|
|
@@ -68,30 +74,30 @@ const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange, onProg
|
|
|
68
74
|
overflow: 'hidden',
|
|
69
75
|
position: 'relative',
|
|
70
76
|
}, url: mediaItem.src, width: "100%" }),
|
|
71
|
-
orientation === 'horizontal' && (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
!!trailer && (
|
|
77
|
+
orientation === 'horizontal' && (React__default.default.createElement(Side, null,
|
|
78
|
+
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4 },
|
|
79
|
+
React__default.default.createElement(heading.H, { as: "h2", "$bold": true, "$color": "white", "$fontSize": 28, "$lineHeight": 36 }, title),
|
|
80
|
+
React__default.default.createElement(paragraph.P, { as: "h3", "$bold": true, "$color": "grey-8" }, subtitle)),
|
|
81
|
+
!!trailer && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 8, sx: `
|
|
76
82
|
margin-bottom: 8x;
|
|
77
83
|
border-bottom: 1px solid var(--color-grey-4);
|
|
78
84
|
padding-bottom: 16px;
|
|
79
85
|
` },
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
orientation === 'vertical' && (
|
|
87
|
-
!!trailer && (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px 8px 14px;" },
|
|
87
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "Trailer")),
|
|
88
|
+
React__default.default.createElement(playlistItem.PlaylistItem, { onClick: () => setPlayingTrailer(true), playable: true, thumbnail: trailer.thumbnail, title: `${title} Trailer` }))),
|
|
89
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px 8px 14px;" },
|
|
90
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "All lessons")),
|
|
91
|
+
React__default.default.createElement(HorizontalPlaylistWrapper, null, playlist.map((playlistItem$1, index) => (React__default.default.createElement(playlistItem.PlaylistItem, { key: playlistItem$1.id, duration: playlistItem$1.duration, onClick: () => handleMediaItemChange(index), playable: playable, progress: playlistItem$1.progress, shortDescription: playlistItem$1.shortDescription, thumbnail: playlistItem$1.thumbnail, title: playlistItem$1.title })))))),
|
|
92
|
+
orientation === 'vertical' && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 24 },
|
|
93
|
+
!!trailer && (React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 8, sx: "margin: 0px 24px;" },
|
|
94
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px 8px 14px;" },
|
|
95
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "Trailer")),
|
|
96
|
+
React__default.default.createElement(playlistItem.PlaylistItem, { onClick: () => setPlayingTrailer(true), playable: true, thumbnail: trailer.thumbnail, title: `${title} Trailer` }))),
|
|
97
|
+
React__default.default.createElement(box.Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px; margin: 0px 24px; border-bottom: 1px solid var(--color-grey-3);" },
|
|
98
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "All lessons"),
|
|
99
|
+
React__default.default.createElement(button.Button, { onClick: toggleShowingAll, size: "small", sx: "background-color: var(--color-grey-2); border-color: var(--color-grey-8); color: var(--color-grey-8);", type: "text" }, showingAll ? 'Collapse' : 'View all')),
|
|
100
|
+
React__default.default.createElement(VerticalPlaylistWrapper, { "$showingAll": showingAll }, playlist.map((playlistItem$1, index) => (React__default.default.createElement(playlistItem.PlaylistItem, { key: playlistItem$1.id, duration: playlistItem$1.duration, onClick: () => handleMediaItemChange(index), playable: playable, progress: playlistItem$1.progress, shortDescription: playlistItem$1.shortDescription, thumbnail: playlistItem$1.thumbnail, title: playlistItem$1.title })))))))));
|
|
95
101
|
};
|
|
96
102
|
const Wrapper = styled.styled.div `
|
|
97
103
|
display: flex;
|
|
@@ -8,39 +8,44 @@ var box = require('../../atoms/box/box.js');
|
|
|
8
8
|
var chevron_left = require('../../../icons/arrow/chevron_left.js');
|
|
9
9
|
var chevron_right = require('../../../icons/arrow/chevron_right.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 Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
15
|
+
|
|
11
16
|
const Breadcrumb = ({ children, previous }) => {
|
|
12
|
-
const id =
|
|
13
|
-
const _children =
|
|
17
|
+
const id = React__default.default.useId();
|
|
18
|
+
const _children = React__default.default.Children.toArray(children);
|
|
14
19
|
if (previous) {
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
return (React__default.default.createElement(box.Box, { "$align": "center", "$gap": 8, sx: "& > *:last-child { color: var(--color-grey-3) !important; };" },
|
|
21
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
22
|
+
React__default.default.createElement(chevron_left.ChevronLeft, { color: "grey-3", size: 24 }),
|
|
23
|
+
React__default.default.isValidElement(_children[0]) &&
|
|
24
|
+
React__default.default.cloneElement(_children[0], {
|
|
20
25
|
icon: undefined,
|
|
21
26
|
avatar: undefined,
|
|
22
27
|
}))));
|
|
23
28
|
}
|
|
24
|
-
return (
|
|
25
|
-
if (
|
|
29
|
+
return (React__default.default.createElement(box.Box, { "$align": "center", "$gap": 8 }, _children.map((child, index) => {
|
|
30
|
+
if (React__default.default.isValidElement(child) &&
|
|
26
31
|
(child.type?.displayName === 'BreadcrumbItem' ||
|
|
27
32
|
child.type?.displayName === 'Breadcrumb.Item')) {
|
|
28
|
-
return (
|
|
33
|
+
return (React__default.default.createElement(React__default.default.Fragment, { key: id + index.toString(36) },
|
|
29
34
|
child,
|
|
30
|
-
_children.length - 1 !== index && (
|
|
35
|
+
_children.length - 1 !== index && (React__default.default.createElement(chevron_right.ChevronRight, { color: "grey-3", size: 24 }))));
|
|
31
36
|
}
|
|
32
37
|
return null;
|
|
33
38
|
})));
|
|
34
39
|
};
|
|
35
40
|
const BreadcrumbItem = ({ avatar, children, href, icon, iconColor = 'blue', onClick, }) => {
|
|
36
|
-
return (
|
|
37
|
-
icon && (
|
|
41
|
+
return (React__default.default.createElement(Item, { href: href || '#', onClick: onClick, "$type": icon ? 'icon' : avatar ? 'avatar' : 'text', "$iconColor": `hue-${iconColor}-1`, scroll: false },
|
|
42
|
+
icon && (React__default.default.createElement(IconWrapper, { "$color": iconColor }, React__default.default.cloneElement(icon, { color: `hue-${iconColor}-1`, size: 24 }))),
|
|
38
43
|
avatar,
|
|
39
44
|
children));
|
|
40
45
|
};
|
|
41
46
|
Breadcrumb.Item = BreadcrumbItem;
|
|
42
47
|
BreadcrumbItem.displayName = 'Breadcrumb.Item';
|
|
43
|
-
const Item = styled.styled(
|
|
48
|
+
const Item = styled.styled(Link__default.default) `
|
|
44
49
|
display: flex;
|
|
45
50
|
flex-flow: row nowrap;
|
|
46
51
|
align-items: center;
|
|
@@ -10,6 +10,11 @@ var chevron_left = require('../../../icons/arrow/chevron_left.js');
|
|
|
10
10
|
var chevron_up = require('../../../icons/arrow/chevron_up.js');
|
|
11
11
|
var plus = require('../../../icons/basic/plus.js');
|
|
12
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 Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
17
|
+
|
|
13
18
|
const INNER_NAV_CHILD_TYPES = [
|
|
14
19
|
'Header',
|
|
15
20
|
'Item',
|
|
@@ -30,9 +35,9 @@ const InnerNav = ({ children }) => {
|
|
|
30
35
|
Drawer: [],
|
|
31
36
|
Misc: [],
|
|
32
37
|
};
|
|
33
|
-
const _children =
|
|
38
|
+
const _children = React__default.default.Children.toArray(children);
|
|
34
39
|
for (const child of _children) {
|
|
35
|
-
const isValidChild =
|
|
40
|
+
const isValidChild = React__default.default.isValidElement(child);
|
|
36
41
|
const isInnerNavChild = isValidChild &&
|
|
37
42
|
INNER_NAV_CHILD_TYPES.includes(child?.type?.displayName?.replace('InnerNav.', ''));
|
|
38
43
|
if (isInnerNavChild) {
|
|
@@ -43,13 +48,13 @@ const InnerNav = ({ children }) => {
|
|
|
43
48
|
elementsByType['Misc'].push(child);
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
|
-
return (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
return (React__default.default.createElement(NavWrapper, { "aria-label": "side-navigation" },
|
|
52
|
+
React__default.default.createElement("div", null, elementsByType['Header']),
|
|
53
|
+
React__default.default.createElement("div", null, elementsByType['BackButton']),
|
|
54
|
+
React__default.default.createElement("div", null, elementsByType['Drawer']),
|
|
55
|
+
React__default.default.createElement("div", null, elementsByType['Item']),
|
|
56
|
+
React__default.default.createElement("div", null, elementsByType['Dropdown']),
|
|
57
|
+
React__default.default.createElement("div", null, elementsByType['Misc'])));
|
|
53
58
|
};
|
|
54
59
|
const NavWrapper = styled.styled.nav `
|
|
55
60
|
height: 100%;
|
|
@@ -60,11 +65,11 @@ const NavWrapper = styled.styled.nav `
|
|
|
60
65
|
border-right: 1px solid var(--color-grey-9);
|
|
61
66
|
`;
|
|
62
67
|
const InnerNavItem = ({ active, href, icon, label, sx, onClick, }) => {
|
|
63
|
-
return (
|
|
68
|
+
return (React__default.default.createElement(Item, { "$active": active, "$sx": sx, href: href || '#', scroll: false, onClick: onClick },
|
|
64
69
|
icon,
|
|
65
70
|
label));
|
|
66
71
|
};
|
|
67
|
-
const Item = styled.styled(
|
|
72
|
+
const Item = styled.styled(Link__default.default) `
|
|
68
73
|
padding: 14px 16px;
|
|
69
74
|
display: flex;
|
|
70
75
|
gap: 16px;
|
|
@@ -92,14 +97,14 @@ const Item = styled.styled(Link) `
|
|
|
92
97
|
InnerNav.Item = InnerNavItem;
|
|
93
98
|
InnerNavItem.displayName = 'InnerNav.Item';
|
|
94
99
|
const InnerNavDropdown = ({ children, icon, label, open, sx, onClick, }) => {
|
|
95
|
-
return (
|
|
96
|
-
|
|
100
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
101
|
+
React__default.default.createElement(DropdownItem, { "$active": false, "$sx": sx, onClick: onClick },
|
|
97
102
|
icon,
|
|
98
|
-
|
|
103
|
+
React__default.default.createElement(DropdownTriggerWrapper, null,
|
|
99
104
|
label,
|
|
100
|
-
open &&
|
|
101
|
-
!open &&
|
|
102
|
-
open &&
|
|
105
|
+
open && React__default.default.createElement(chevron_up.ChevronUp, { size: 16 }),
|
|
106
|
+
!open && React__default.default.createElement(chevron_down.ChevronDown, { size: 16 }))),
|
|
107
|
+
open && React__default.default.createElement(DropdownContent, null, children)));
|
|
103
108
|
};
|
|
104
109
|
const DropdownContent = styled.styled.div `
|
|
105
110
|
& > a,
|
|
@@ -141,12 +146,12 @@ const DropdownItem = styled.styled.a `
|
|
|
141
146
|
InnerNav.Dropdown = InnerNavDropdown;
|
|
142
147
|
InnerNavDropdown.displayName = 'InnerNav.Dropdown';
|
|
143
148
|
const InnerNavBackButton = ({ href, label, sx }) => {
|
|
144
|
-
return (
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
return (React__default.default.createElement(BackButton, { href: href, "$sx": sx, scroll: false },
|
|
150
|
+
React__default.default.createElement("div", null,
|
|
151
|
+
React__default.default.createElement(chevron_left.ChevronLeft, { size: 24 })),
|
|
147
152
|
label));
|
|
148
153
|
};
|
|
149
|
-
const BackButton = styled.styled(
|
|
154
|
+
const BackButton = styled.styled(Link__default.default) `
|
|
150
155
|
display: flex;
|
|
151
156
|
align-items: center;
|
|
152
157
|
gap: 8px;
|
|
@@ -171,15 +176,15 @@ const BackButton = styled.styled(Link) `
|
|
|
171
176
|
InnerNav.BackButton = InnerNavBackButton;
|
|
172
177
|
InnerNavBackButton.displayName = 'InnerNav.BackButton';
|
|
173
178
|
const InnerNavHeader = ({ children }) => {
|
|
174
|
-
return
|
|
179
|
+
return React__default.default.createElement(HeaderWrapper, null, children);
|
|
175
180
|
};
|
|
176
181
|
const HeaderWrapper = styled.styled.div ``;
|
|
177
182
|
InnerNav.Header = InnerNavHeader;
|
|
178
183
|
InnerNavHeader.displayName = 'InnerNav.Header';
|
|
179
184
|
const InnerNavDrawer = ({ children, label, controlledOpen, onOpenChange, }) => {
|
|
180
|
-
return (
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
return (React__default.default.createElement(drawer.Drawer, { controlledOpen: controlledOpen, onOpenChange: onOpenChange },
|
|
186
|
+
React__default.default.createElement(drawer.Drawer.Trigger, null,
|
|
187
|
+
React__default.default.createElement(button.Button, { icon: React__default.default.createElement(plus.Plus, { color: "white" }), size: "small", sx: "width: 100%; margin-bottom: 24px;", type: "primary", onClick: () => {
|
|
183
188
|
onOpenChange?.();
|
|
184
189
|
} }, label)),
|
|
185
190
|
children));
|
|
@@ -6,6 +6,11 @@ var styled = require('styled-components');
|
|
|
6
6
|
var Link = require('next/link');
|
|
7
7
|
var paragraph = require('../../atoms/typography/paragraph.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 Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
13
|
+
|
|
9
14
|
const colorLookup = {
|
|
10
15
|
blue: {
|
|
11
16
|
bg: 'var(--color-hue-blue-2)',
|
|
@@ -49,8 +54,8 @@ const colorLookup = {
|
|
|
49
54
|
},
|
|
50
55
|
};
|
|
51
56
|
const Tabs = ({ activeIndex, items, onChange, size = 'large', sx, }) => {
|
|
52
|
-
const id =
|
|
53
|
-
return (
|
|
57
|
+
const id = React__default.default.useId();
|
|
58
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx }, items.map((item, index) => (React__default.default.createElement(Item, { active: activeIndex === index, color: item?.color, disabled: item?.disabled, href: item?.href, icon: item?.icon, key: id + index.toString(36), label: item.label, onClick: () => onChange && onChange(index), size: size })))));
|
|
54
59
|
};
|
|
55
60
|
const Wrapper = styled.styled.div `
|
|
56
61
|
display: flex;
|
|
@@ -73,11 +78,11 @@ const Item = ({ active, color, disabled, href, icon, label, onClick, size = 'lar
|
|
|
73
78
|
const bgColor = colorLookup[inputColor].bg;
|
|
74
79
|
const fontSize = size === 'large' ? 16 : size === 'medium' ? 14 : 12;
|
|
75
80
|
const lineHeight = size === 'large' ? 24 : size === 'medium' ? 20 : 16;
|
|
76
|
-
return (
|
|
77
|
-
icon &&
|
|
78
|
-
|
|
81
|
+
return (React__default.default.createElement(Element, { onClick: !disabled && onClick ? onClick : undefined, href: href || '#', scroll: false, "$active": active, "$color": iconColor, "$disabled": disabled, "$hasIcon": !!icon, "$size": size },
|
|
82
|
+
icon && React__default.default.createElement(IconWrapper, { "$bg": bgColor }, icon),
|
|
83
|
+
React__default.default.createElement(paragraph.P, { "$fontSize": fontSize, "$lineHeight": lineHeight, "$semiBold": true }, label)));
|
|
79
84
|
};
|
|
80
|
-
const Element = styled.styled(
|
|
85
|
+
const Element = styled.styled(Link__default.default) `
|
|
81
86
|
position: relative;
|
|
82
87
|
display: flex;
|
|
83
88
|
align-items: center;
|
|
@@ -8,16 +8,20 @@ var _function = require('../../../utils/function.js');
|
|
|
8
8
|
var chevron_down = require('../../../icons/arrow/chevron_down.js');
|
|
9
9
|
var chevron_up = require('../../../icons/arrow/chevron_up.js');
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
|
|
15
|
+
const AccordionContext = React__default.default.createContext([-1, () => undefined]);
|
|
12
16
|
const Accordion = ({ children, sx }) => {
|
|
13
|
-
const [openIndex, setOpenIndex] =
|
|
17
|
+
const [openIndex, setOpenIndex] = React__default.default.useState(-1);
|
|
14
18
|
const handleIndexChange = (index) => {
|
|
15
19
|
setOpenIndex((prev) => (prev === index ? -1 : index));
|
|
16
20
|
};
|
|
17
|
-
return (
|
|
18
|
-
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
21
|
+
return (React__default.default.createElement(AccordionContext.Provider, { value: [openIndex, handleIndexChange] },
|
|
22
|
+
React__default.default.createElement(Wrapper, { "$sx": sx }, React__default.default.Children.map(children, (child, index) => {
|
|
23
|
+
if (React__default.default.isValidElement(child))
|
|
24
|
+
return React__default.default.cloneElement(child, { index });
|
|
21
25
|
return null;
|
|
22
26
|
}))));
|
|
23
27
|
};
|
|
@@ -25,14 +29,14 @@ const Wrapper = styled.styled.div `
|
|
|
25
29
|
${({ $sx }) => ($sx ? $sx : '')};
|
|
26
30
|
`;
|
|
27
31
|
const AccordionItem = ({ buttonSx, children, index, sx, trigger, }) => {
|
|
28
|
-
const [openIndex, setOpenIndex] =
|
|
29
|
-
return (
|
|
30
|
-
|
|
32
|
+
const [openIndex, setOpenIndex] = React__default.default.useContext(AccordionContext);
|
|
33
|
+
return (React__default.default.createElement(box.Box, { "$dir": "column" },
|
|
34
|
+
React__default.default.createElement(TriggerWrapper, { onClick: _function.callAll(
|
|
31
35
|
// eslint-disable-next-line
|
|
32
36
|
() => setOpenIndex(index), trigger?.props?.onClick), "$sx": buttonSx },
|
|
33
37
|
trigger,
|
|
34
|
-
openIndex === index ?
|
|
35
|
-
|
|
38
|
+
openIndex === index ? React__default.default.createElement(chevron_up.ChevronUp, null) : React__default.default.createElement(chevron_down.ChevronDown, null)),
|
|
39
|
+
React__default.default.createElement(box.Box, { sx: openIndex === index ? sx : 'visibility: hidden; height: 0px;' }, children)));
|
|
36
40
|
};
|
|
37
41
|
const TriggerWrapper = styled.styled.button `
|
|
38
42
|
display: flex;
|
|
@@ -6,17 +6,21 @@ var styled = require('styled-components');
|
|
|
6
6
|
var heading = require('../../atoms/typography/heading.js');
|
|
7
7
|
var paragraph = require('../../atoms/typography/paragraph.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
|
+
|
|
9
13
|
const CalendarDate = ({ monthAbbreviation, date, dayOfWeek, startTime, endTime, sx, size = 'large', }) => {
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
size === 'large' && (
|
|
14
|
-
size === 'small' && (
|
|
15
|
-
|
|
16
|
-
size === 'large' && (
|
|
17
|
-
size === 'small' && (
|
|
18
|
-
dayOfWeek && startTime && endTime && (
|
|
19
|
-
|
|
14
|
+
return (React__default.default.createElement(Container, { "$sx": sx },
|
|
15
|
+
React__default.default.createElement(CalendarContainer, { "$size": size },
|
|
16
|
+
React__default.default.createElement(MonthContainer, { "$size": size },
|
|
17
|
+
size === 'large' && (React__default.default.createElement(heading.H.Seven, { "$color": "white", "$textAlign": "center", "$semiBold": true }, monthAbbreviation)),
|
|
18
|
+
size === 'small' && (React__default.default.createElement(paragraph.P, { "$color": "white", "$textAlign": "center", "$fontSize": 14 }, monthAbbreviation))),
|
|
19
|
+
React__default.default.createElement(DateContainer, { "$size": size },
|
|
20
|
+
size === 'large' && (React__default.default.createElement(heading.H.One, { "$textAlign": "center", "$semiBold": true }, date)),
|
|
21
|
+
size === 'small' && (React__default.default.createElement(heading.H.Six, { "$color": "grey-2", "$textAlign": "center" }, date)))),
|
|
22
|
+
dayOfWeek && startTime && endTime && (React__default.default.createElement(TimeContainer, null,
|
|
23
|
+
React__default.default.createElement(paragraph.P, { as: "span", "$color": "red-5" }, `${dayOfWeek}, ${startTime} -> ${endTime}`)))));
|
|
20
24
|
};
|
|
21
25
|
const Container = styled.styled.div `
|
|
22
26
|
display: flex;
|
|
@@ -6,10 +6,14 @@ var styled = require('styled-components');
|
|
|
6
6
|
var chevron_left = require('../../../../icons/arrow/chevron_left.js');
|
|
7
7
|
var chevron_right = require('../../../../icons/arrow/chevron_right.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
|
+
|
|
9
13
|
const DEFAULT_SCROLL_TRIGGER_DISTANCE = 11;
|
|
10
14
|
const DEFAULT_SCROLL_DISTANCE = 450;
|
|
11
15
|
const CardCarousel = ({ children, onScrollEnd, scrollTriggerDistance = DEFAULT_SCROLL_TRIGGER_DISTANCE, scrollDistance = DEFAULT_SCROLL_DISTANCE, sx, }) => {
|
|
12
|
-
const ref =
|
|
16
|
+
const ref = React__default.default.useRef(null);
|
|
13
17
|
const handleScroll = (event) => {
|
|
14
18
|
const target = event.target;
|
|
15
19
|
const scrollDistance = target.scrollWidth - target.scrollLeft;
|
|
@@ -30,12 +34,12 @@ const CardCarousel = ({ children, onScrollEnd, scrollTriggerDistance = DEFAULT_S
|
|
|
30
34
|
ref.current.scrollLeft = amount < 0 ? 0 : amount;
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx },
|
|
38
|
+
React__default.default.createElement(Button, { className: "carousel-navigation", onClick: onNavigateLeft, "$side": "left" },
|
|
39
|
+
React__default.default.createElement(chevron_left.ChevronLeft, { color: "white", size: 48 })),
|
|
40
|
+
React__default.default.createElement(Inner, { onScroll: handleScroll, ref: ref }, children),
|
|
41
|
+
React__default.default.createElement(Button, { className: "carousel-navigation", onClick: onNavigateRight, "$side": "right" },
|
|
42
|
+
React__default.default.createElement(chevron_right.ChevronRight, { color: "white", size: 48 }))));
|
|
39
43
|
};
|
|
40
44
|
const Wrapper = styled.styled.div `
|
|
41
45
|
position: relative;
|