@soul-refiner/design-system 2.0.1-alpha.1 → 2.0.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 +140 -1
- package/dist/common/date.js +34 -1
- package/dist/common/styles.js +62 -30
- package/dist/components/actions/button/button.js +111 -21
- package/dist/components/actions/dropdown/dropdown.js +176 -21
- package/dist/components/actions/rate/rate.js +55 -4
- package/dist/components/actions/switch/switch.js +39 -5
- package/dist/components/actions/toggle/toggle.js +33 -6
- package/dist/components/actions/upload/upload.js +167 -9
- package/dist/components/atoms/box/box.js +18 -4
- package/dist/components/atoms/hide/hide.js +18 -1
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +36 -1
- package/dist/components/atoms/time_ago/time_ago.js +39 -1
- package/dist/components/atoms/typography/display.js +18 -5
- package/dist/components/atoms/typography/heading.js +43 -6
- package/dist/components/atoms/typography/paragraph.js +20 -7
- package/dist/components/atoms/typography/typography.js +10 -3
- package/dist/components/card/action/action.js +41 -8
- package/dist/components/card/audio/audio.js +57 -7
- package/dist/components/card/card.js +33 -1
- package/dist/components/card/feature/feature.js +86 -14
- package/dist/components/card/meeting/meeting.js +102 -8
- package/dist/components/card/person/person.js +39 -6
- package/dist/components/card/price/price.js +49 -7
- package/dist/components/card/regular/regular.js +26 -5
- package/dist/components/card/styles.js +9 -2
- package/dist/components/card/video/video.js +57 -7
- package/dist/components/card/written/written.js +57 -7
- package/dist/components/custom/courses_selection/courses_selection.js +104 -12
- package/dist/components/custom/users_selection/users_selection.js +86 -12
- package/dist/components/editor/constants.js +195 -1
- package/dist/components/editor/context.js +17 -1
- package/dist/components/editor/editor.js +45 -5
- package/dist/components/editor/icons/border-all.js +12 -1
- package/dist/components/editor/icons/border-bottom.js +12 -1
- package/dist/components/editor/icons/border-left.js +12 -1
- package/dist/components/editor/icons/border-none.js +12 -1
- package/dist/components/editor/icons/border-right.js +12 -1
- package/dist/components/editor/icons/border-top.js +12 -1
- package/dist/components/editor/navbar/alignment_dropdown.js +106 -1
- package/dist/components/editor/navbar/button_modal.js +60 -3
- package/dist/components/editor/navbar/navbar.js +178 -7
- package/dist/components/editor/navbar/style_dropdown.js +74 -1
- package/dist/components/editor/plugins/blocks/blockquote.js +17 -1
- package/dist/components/editor/plugins/blocks/blocks.js +54 -1
- package/dist/components/editor/plugins/blocks/buttons.js +70 -8
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +77 -1
- package/dist/components/editor/plugins/blocks/image.js +60 -1
- package/dist/components/editor/plugins/blocks/list.js +20 -2
- package/dist/components/editor/plugins/blocks/media-popover.js +41 -1
- package/dist/components/editor/plugins/blocks/plate-button.js +63 -1
- package/dist/components/editor/plugins/blocks/popover.js +38 -1
- package/dist/components/editor/plugins/blocks/qa.js +44 -3
- package/dist/components/editor/plugins/blocks/resizable.js +47 -1
- package/dist/components/editor/plugins/blocks/separator.js +43 -1
- package/dist/components/editor/plugins/blocks/table-cell.js +48 -1
- package/dist/components/editor/plugins/blocks/table-row.js +16 -1
- package/dist/components/editor/plugins/blocks/table.js +98 -1
- package/dist/components/editor/plugins/blocks/text.js +103 -1
- package/dist/components/editor/plugins/blocks/video.js +42 -1
- package/dist/components/editor/plugins/leafs/leafs.js +37 -1
- package/dist/components/editor/plugins/leafs/link.js +55 -4
- package/dist/components/editor/plugins/marks/marks.js +17 -1
- package/dist/components/editor/plugins/plate.js +43 -1
- package/dist/components/editor/plugins/utils/exitBreak.js +36 -1
- package/dist/components/editor/plugins/utils/resetBlockType.js +26 -1
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +11 -1
- package/dist/components/editor/plugins/utils/softBreak.js +19 -1
- package/dist/components/editor/plugins/utils/utils.js +17 -1
- package/dist/components/editor/simple_editor/navbar.js +110 -4
- package/dist/components/editor/simple_editor/plugins.js +93 -1
- package/dist/components/editor/simple_editor/simple_editor.js +34 -3
- package/dist/components/editor/styles/menu_button.js +9 -3
- package/dist/components/feedback/animated_toast/animated_toast.js +32 -3
- package/dist/components/feedback/badge/badge.js +56 -7
- package/dist/components/feedback/banner/banner.js +60 -6
- package/dist/components/feedback/chip/chip.js +81 -8
- package/dist/components/feedback/loader/loader.js +33 -9
- package/dist/components/feedback/notification/notification.js +59 -6
- package/dist/components/feedback/progress/progress.js +76 -14
- package/dist/components/feedback/toast/toast.js +55 -7
- package/dist/components/feedback/tooltip/tooltip.js +34 -1
- package/dist/components/iconography/avatar/avatar.js +141 -22
- package/dist/components/iconography/avatar/icons/approved.js +14 -1
- package/dist/components/iconography/avatar/icons/busy.js +14 -1
- package/dist/components/iconography/avatar/icons/declined.js +14 -1
- package/dist/components/iconography/avatar/icons/default.js +13 -1
- package/dist/components/iconography/avatar/icons/focus.js +14 -1
- package/dist/components/iconography/avatar/icons/locked.js +14 -1
- package/dist/components/iconography/avatar/icons/offline.js +14 -1
- package/dist/components/iconography/avatar/icons/online.js +13 -1
- package/dist/components/iconography/avatar/icons/subscribed.js +18 -1
- package/dist/components/iconography/icon/icon.js +18 -3
- package/dist/components/input/calendar/calendar.js +139 -13
- package/dist/components/input/checkbox/checkbox.js +23 -5
- package/dist/components/input/date/date.js +241 -13
- package/dist/components/input/filter/filter.js +212 -13
- package/dist/components/input/filter/filter_option.js +50 -9
- package/dist/components/input/radio/radio.js +45 -7
- package/dist/components/input/search/search.js +83 -17
- package/dist/components/input/select/select.js +27 -6
- package/dist/components/input/text_area/text_area.js +60 -15
- package/dist/components/input/text_input/text_input.js +102 -21
- package/dist/components/input/time/time.js +47 -3
- package/dist/components/media/video/video.js +42 -1
- package/dist/components/media/video-player/playlist-item.js +37 -4
- package/dist/components/media/video-player/video.js +121 -13
- package/dist/components/navigation/breadcrumb/breadcrumb.js +66 -11
- package/dist/components/navigation/inner/inner.js +130 -14
- package/dist/components/navigation/tabs/tabs.js +101 -15
- package/dist/components/surfaces/accordion/accordion.js +46 -5
- package/dist/components/surfaces/calendar_date/calendar_date.js +39 -10
- package/dist/components/surfaces/carousel/card/card.js +55 -7
- package/dist/components/surfaces/comment/comment.js +152 -19
- package/dist/components/surfaces/comment/helpers.js +30 -1
- package/dist/components/surfaces/drawer/drawer.js +75 -7
- package/dist/components/surfaces/message/message.js +39 -4
- package/dist/components/surfaces/modal/modal.js +99 -8
- package/dist/components/surfaces/portal/portal.js +35 -1
- package/dist/components/surfaces/post/post.js +161 -19
- package/dist/components/table/table/table.js +120 -29
- package/dist/emoji/emojis.json.js +36331 -1
- package/dist/icons/arrow/arrow_all.js +15 -1
- package/dist/icons/arrow/arrow_all_diagonal.js +15 -1
- package/dist/icons/arrow/arrow_both_downwards.js +15 -1
- package/dist/icons/arrow/arrow_both_upwards.js +15 -1
- package/dist/icons/arrow/arrow_circle_left.js +15 -1
- package/dist/icons/arrow/arrow_circle_left_double.js +15 -1
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +17 -1
- package/dist/icons/arrow/arrow_circle_right.js +15 -1
- package/dist/icons/arrow/arrow_circle_right_double.js +15 -1
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_left.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_right.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_left.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_right.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +15 -1
- package/dist/icons/arrow/arrow_down.js +15 -1
- package/dist/icons/arrow/arrow_down_bold.js +15 -1
- package/dist/icons/arrow/arrow_down_circle.js +15 -1
- package/dist/icons/arrow/arrow_left.js +15 -1
- package/dist/icons/arrow/arrow_left_bold.js +15 -1
- package/dist/icons/arrow/arrow_left_circle.js +15 -1
- package/dist/icons/arrow/arrow_left_curved.js +15 -1
- package/dist/icons/arrow/arrow_left_curved_circle.js +15 -1
- package/dist/icons/arrow/arrow_right.js +15 -1
- package/dist/icons/arrow/arrow_right_bold.js +15 -1
- package/dist/icons/arrow/arrow_right_circle.js +15 -1
- package/dist/icons/arrow/arrow_right_curved.js +15 -1
- package/dist/icons/arrow/arrow_right_curved_circle.js +15 -1
- package/dist/icons/arrow/arrow_up.js +15 -1
- package/dist/icons/arrow/arrow_up_bold.js +15 -1
- package/dist/icons/arrow/arrow_up_circle.js +15 -1
- package/dist/icons/arrow/chevron_down.js +15 -1
- package/dist/icons/arrow/chevron_down_circle.js +15 -1
- package/dist/icons/arrow/chevron_down_double.js +15 -1
- package/dist/icons/arrow/chevron_down_double_circle.js +15 -1
- package/dist/icons/arrow/chevron_left.js +15 -1
- package/dist/icons/arrow/chevron_left_circle.js +15 -1
- package/dist/icons/arrow/chevron_left_double.js +15 -1
- package/dist/icons/arrow/chevron_left_double_circle.js +15 -1
- package/dist/icons/arrow/chevron_right.js +15 -1
- package/dist/icons/arrow/chevron_right_circle.js +15 -1
- package/dist/icons/arrow/chevron_right_double.js +15 -1
- package/dist/icons/arrow/chevron_right_double_circle.js +15 -1
- package/dist/icons/arrow/chevron_scroll.js +15 -1
- package/dist/icons/arrow/chevron_up.js +15 -1
- package/dist/icons/arrow/chevron_up_circle.js +15 -1
- package/dist/icons/arrow/chevron_up_double.js +15 -1
- package/dist/icons/arrow/chevron_up_double_circle.js +15 -1
- package/dist/icons/arrow/forward_all.js +15 -1
- package/dist/icons/arrow/forward_all_bold.js +15 -1
- package/dist/icons/arrow/forward_bold.js +15 -1
- package/dist/icons/arrow/redo.js +15 -1
- package/dist/icons/arrow/redo_bold.js +15 -1
- package/dist/icons/arrow/reply.js +15 -1
- package/dist/icons/arrow/reply_all.js +15 -1
- package/dist/icons/arrow/reply_all_bold.js +15 -1
- package/dist/icons/arrow/reply_bold.js +15 -1
- package/dist/icons/arrow/undo.js +15 -1
- package/dist/icons/arrow/undo_bold.js +15 -1
- package/dist/icons/audio_video/drag_indicator.js +15 -1
- package/dist/icons/audio_video/eject.js +15 -1
- package/dist/icons/audio_video/equalizer.js +15 -1
- package/dist/icons/audio_video/fast_forward.js +15 -1
- package/dist/icons/audio_video/fast_forward_30.js +15 -1
- package/dist/icons/audio_video/fullscreen.js +15 -1
- package/dist/icons/audio_video/headphones.js +15 -1
- package/dist/icons/audio_video/library_add.js +15 -1
- package/dist/icons/audio_video/library_music.js +15 -1
- package/dist/icons/audio_video/microphone.js +15 -1
- package/dist/icons/audio_video/musical_note.js +15 -1
- package/dist/icons/audio_video/next.js +15 -1
- package/dist/icons/audio_video/pause.js +15 -1
- package/dist/icons/audio_video/pause_circle.js +15 -1
- package/dist/icons/audio_video/play.js +15 -1
- package/dist/icons/audio_video/play_circle.js +15 -1
- package/dist/icons/audio_video/play_display.js +15 -1
- package/dist/icons/audio_video/play_pause.js +15 -1
- package/dist/icons/audio_video/play_solid.js +15 -1
- package/dist/icons/audio_video/player_list.js +15 -1
- package/dist/icons/audio_video/player_list_add.js +15 -1
- package/dist/icons/audio_video/player_list_play.js +15 -1
- package/dist/icons/audio_video/previous.js +15 -1
- package/dist/icons/audio_video/radio.js +15 -1
- package/dist/icons/audio_video/record.js +15 -1
- package/dist/icons/audio_video/repeat.js +15 -1
- package/dist/icons/audio_video/rewind.js +15 -1
- package/dist/icons/audio_video/rewind_30.js +15 -1
- package/dist/icons/audio_video/shuffle.js +15 -1
- package/dist/icons/audio_video/sound_wave.js +15 -1
- package/dist/icons/audio_video/stop.js +15 -1
- package/dist/icons/audio_video/stop_circle.js +15 -1
- package/dist/icons/audio_video/subscriptions.js +15 -1
- package/dist/icons/audio_video/tuner.js +15 -1
- package/dist/icons/audio_video/volume.js +15 -1
- package/dist/icons/audio_video/volume_high.js +15 -1
- package/dist/icons/audio_video/volume_low.js +15 -1
- package/dist/icons/audio_video/volume_slash.js +15 -1
- package/dist/icons/basic/aa_sansserif.js +16 -1
- package/dist/icons/basic/aa_serif.js +16 -1
- package/dist/icons/basic/anchor.js +17 -1
- package/dist/icons/basic/bible.js +15 -1
- package/dist/icons/basic/bold.js +15 -1
- package/dist/icons/basic/book.js +15 -1
- package/dist/icons/basic/book_open.js +15 -1
- package/dist/icons/basic/bookmark.js +15 -1
- package/dist/icons/basic/bookmark_add.js +15 -1
- package/dist/icons/basic/bookmark_slash.js +15 -1
- package/dist/icons/basic/bookmarks.js +15 -1
- package/dist/icons/basic/books.js +18 -1
- package/dist/icons/basic/box.js +15 -1
- package/dist/icons/basic/briefcase.js +15 -1
- package/dist/icons/basic/browse_activity.js +15 -1
- package/dist/icons/basic/browser.js +15 -1
- package/dist/icons/basic/browser_slash.js +15 -1
- package/dist/icons/basic/calculator.js +15 -1
- package/dist/icons/basic/camera.js +15 -1
- package/dist/icons/basic/camera_add.js +15 -1
- package/dist/icons/basic/camera_slash.js +15 -1
- package/dist/icons/basic/checkmark.js +15 -1
- package/dist/icons/basic/checkmark_circle.js +17 -1
- package/dist/icons/basic/checkmark_filled.js +15 -1
- package/dist/icons/basic/checkmarks.js +15 -1
- package/dist/icons/basic/circle.js +15 -1
- package/dist/icons/basic/circle_slash.js +17 -1
- package/dist/icons/basic/clear_text_style.js +15 -1
- package/dist/icons/basic/close.js +15 -1
- package/dist/icons/basic/close_circle.js +15 -1
- package/dist/icons/basic/close_filled.js +15 -1
- package/dist/icons/basic/copy.js +15 -1
- package/dist/icons/basic/delete.js +15 -1
- package/dist/icons/basic/detail.js +15 -1
- package/dist/icons/basic/dot.js +15 -1
- package/dist/icons/basic/download.js +15 -1
- package/dist/icons/basic/download_arrow.js +15 -1
- package/dist/icons/basic/droplet.js +17 -1
- package/dist/icons/basic/ellipsis_horizontal.js +15 -1
- package/dist/icons/basic/ellipsis_horizontal_circle.js +15 -1
- package/dist/icons/basic/ellipsis_vertical.js +15 -1
- package/dist/icons/basic/ellipsis_vertical_circle.js +15 -1
- package/dist/icons/basic/eye.js +15 -1
- package/dist/icons/basic/eye_slash.js +15 -1
- package/dist/icons/basic/fingerprint.js +15 -1
- package/dist/icons/basic/flag.js +15 -1
- package/dist/icons/basic/flag_wave.js +15 -1
- package/dist/icons/basic/flag_wave_filled.js +15 -1
- package/dist/icons/basic/flame.js +15 -1
- package/dist/icons/basic/gauge.js +15 -1
- package/dist/icons/basic/glasses.js +15 -1
- package/dist/icons/basic/graduation_cap.js +15 -1
- package/dist/icons/basic/hashmark.js +15 -1
- package/dist/icons/basic/heart.js +15 -1
- package/dist/icons/basic/heart_slash.js +15 -1
- package/dist/icons/basic/highlighter.js +15 -1
- package/dist/icons/basic/home.js +15 -1
- package/dist/icons/basic/image.js +15 -1
- package/dist/icons/basic/inbox.js +15 -1
- package/dist/icons/basic/italic.js +15 -1
- package/dist/icons/basic/layers.js +15 -1
- package/dist/icons/basic/lightening.js +15 -1
- package/dist/icons/basic/lightening_slash.js +15 -1
- package/dist/icons/basic/link.js +15 -1
- package/dist/icons/basic/link_slash.js +15 -1
- package/dist/icons/basic/loudspeaker.js +15 -1
- package/dist/icons/basic/maximize.js +15 -1
- package/dist/icons/basic/menu.js +15 -1
- package/dist/icons/basic/menu_circle.js +15 -1
- package/dist/icons/basic/menu_dots.js +15 -1
- package/dist/icons/basic/microphone_slash.js +15 -1
- package/dist/icons/basic/minimize.js +15 -1
- package/dist/icons/basic/minus.js +15 -1
- package/dist/icons/basic/minus_circle.js +15 -1
- package/dist/icons/basic/move_item.js +15 -1
- package/dist/icons/basic/new.js +15 -1
- package/dist/icons/basic/newspaper.js +15 -1
- package/dist/icons/basic/node.js +15 -1
- package/dist/icons/basic/note_pad.js +16 -1
- package/dist/icons/basic/options.js +15 -1
- package/dist/icons/basic/paint_brush.js +15 -1
- package/dist/icons/basic/paperclip.js +15 -1
- package/dist/icons/basic/paperclip_slash.js +15 -1
- package/dist/icons/basic/pencil.js +15 -1
- package/dist/icons/basic/pencil_pad.js +15 -1
- package/dist/icons/basic/plus.js +15 -1
- package/dist/icons/basic/plus_circle.js +15 -1
- package/dist/icons/basic/presentation.js +15 -1
- package/dist/icons/basic/printer.js +15 -1
- package/dist/icons/basic/profile.js +15 -1
- package/dist/icons/basic/profile_check.js +15 -1
- package/dist/icons/basic/pulse.js +15 -1
- package/dist/icons/basic/qr_code.js +15 -1
- package/dist/icons/basic/resize.js +17 -1
- package/dist/icons/basic/scan.js +15 -1
- package/dist/icons/basic/scissors.js +15 -1
- package/dist/icons/basic/screenshot.js +15 -1
- package/dist/icons/basic/search.js +15 -1
- package/dist/icons/basic/select_item.js +16 -1
- package/dist/icons/basic/settings.js +15 -1
- package/dist/icons/basic/share.js +15 -1
- package/dist/icons/basic/share_external.js +15 -1
- package/dist/icons/basic/square.js +15 -1
- package/dist/icons/basic/star.js +15 -1
- package/dist/icons/basic/star_circle.js +15 -1
- package/dist/icons/basic/star_filled.js +15 -1
- package/dist/icons/basic/star_filled_half.js +15 -1
- package/dist/icons/basic/star_slash.js +15 -1
- package/dist/icons/basic/sticker.js +15 -1
- package/dist/icons/basic/strikethrough.js +15 -1
- package/dist/icons/basic/subtask.js +16 -1
- package/dist/icons/basic/tax.js +18 -1
- package/dist/icons/basic/text_bg_color.js +15 -1
- package/dist/icons/basic/text_color.js +15 -1
- package/dist/icons/basic/textbox.js +15 -1
- package/dist/icons/basic/thumbs_down.js +15 -1
- package/dist/icons/basic/thumbs_up.js +15 -1
- package/dist/icons/basic/thumbs_up_filled.js +15 -1
- package/dist/icons/basic/toggle_left.js +15 -1
- package/dist/icons/basic/toggle_right.js +15 -1
- package/dist/icons/basic/translate.js +15 -1
- package/dist/icons/basic/trash.js +15 -1
- package/dist/icons/basic/trash_slash.js +15 -1
- package/dist/icons/basic/underline.js +15 -1
- package/dist/icons/basic/upload.js +15 -1
- package/dist/icons/basic/video.js +15 -1
- package/dist/icons/basic/video_add.js +16 -1
- package/dist/icons/basic/video_slash.js +15 -1
- package/dist/icons/basic/wrench.js +15 -1
- package/dist/icons/basic/zoom_in.js +15 -1
- package/dist/icons/basic/zoom_out.js +15 -1
- package/dist/icons/data/bar_chart.js +15 -1
- package/dist/icons/data/bar_chart_downward.js +15 -1
- package/dist/icons/data/bar_chart_downward_outline.js +15 -1
- package/dist/icons/data/bar_chart_upward.js +15 -1
- package/dist/icons/data/bar_chart_upward_outline.js +15 -1
- package/dist/icons/data/candlestick_chart.js +15 -1
- package/dist/icons/data/four_circles.js +15 -1
- package/dist/icons/data/legend_toggle.js +15 -1
- package/dist/icons/data/line_chart.js +15 -1
- package/dist/icons/data/line_chart_area.js +15 -1
- package/dist/icons/data/line_chart_area_shaded.js +15 -1
- package/dist/icons/data/line_chart_double.js +15 -1
- package/dist/icons/data/line_chart_downward.js +15 -1
- package/dist/icons/data/line_chart_node.js +15 -1
- package/dist/icons/data/line_chart_outline.js +15 -1
- package/dist/icons/data/line_chart_search.js +15 -1
- package/dist/icons/data/line_chart_stars.js +15 -1
- package/dist/icons/data/line_chart_upward.js +15 -1
- package/dist/icons/data/pie_chart.js +16 -1
- package/dist/icons/data/tree.js +15 -1
- package/dist/icons/email/mail.js +15 -1
- package/dist/icons/email/mail_check.js +15 -1
- package/dist/icons/email/mail_minus.js +15 -1
- package/dist/icons/email/mail_send.js +15 -1
- package/dist/icons/email/send.js +15 -1
- package/dist/icons/email/send_close.js +15 -1
- package/dist/icons/email/send_schedule.js +15 -1
- package/dist/icons/email/send_text.js +15 -1
- package/dist/icons/emoji/emoji_add.js +15 -1
- package/dist/icons/emoji/laughing.js +15 -1
- package/dist/icons/emoji/neutral.js +15 -1
- package/dist/icons/emoji/sad.js +15 -1
- package/dist/icons/emoji/shocked.js +15 -1
- package/dist/icons/emoji/smile.js +15 -1
- package/dist/icons/file/clipboard.js +15 -1
- package/dist/icons/file/clipboard_check.js +15 -1
- package/dist/icons/file/clipboard_close.js +15 -1
- package/dist/icons/file/clipboard_minus.js +15 -1
- package/dist/icons/file/clipboard_plus.js +15 -1
- package/dist/icons/file/clipboard_text.js +15 -1
- package/dist/icons/file/file.js +15 -1
- package/dist/icons/file/file_add.js +15 -1
- package/dist/icons/file/file_check.js +15 -1
- package/dist/icons/file/file_close.js +15 -1
- package/dist/icons/file/file_code.js +15 -1
- package/dist/icons/file/file_download.js +15 -1
- package/dist/icons/file/file_draft.js +15 -1
- package/dist/icons/file/file_gear.js +16 -1
- package/dist/icons/file/file_minus.js +15 -1
- package/dist/icons/file/file_plus.js +15 -1
- package/dist/icons/file/file_scan.js +15 -1
- package/dist/icons/file/file_shred.js +15 -1
- package/dist/icons/file/file_text.js +15 -1
- package/dist/icons/file/file_upload.js +15 -1
- package/dist/icons/file/folder.js +15 -1
- package/dist/icons/file/folder_add.js +15 -1
- package/dist/icons/file/folder_arrow.js +15 -1
- package/dist/icons/file/folder_check.js +15 -1
- package/dist/icons/file/folder_close.js +15 -1
- package/dist/icons/file/folder_cloud.js +15 -1
- package/dist/icons/file/folder_gear.js +16 -1
- package/dist/icons/file/folder_minus.js +15 -1
- package/dist/icons/file/folder_music.js +15 -1
- package/dist/icons/file/folder_open.js +15 -1
- package/dist/icons/file/folder_plus.js +15 -1
- package/dist/icons/file/folder_zip.js +15 -1
- package/dist/icons/file/note.js +15 -1
- package/dist/icons/file/note_text.js +15 -1
- package/dist/icons/file/pdf.js +15 -1
- package/dist/icons/file/photo.js +15 -1
- package/dist/icons/finance/bitcoin.js +15 -1
- package/dist/icons/finance/coins.js +19 -1
- package/dist/icons/finance/credit_card.js +15 -1
- package/dist/icons/finance/credit_card_add.js +15 -1
- package/dist/icons/finance/credit_card_face.js +15 -1
- package/dist/icons/finance/credit_card_member.js +15 -1
- package/dist/icons/finance/credit_card_outcome.js +15 -1
- package/dist/icons/finance/credit_card_scan.js +15 -1
- package/dist/icons/finance/credit_card_share.js +15 -1
- package/dist/icons/finance/credit_card_slash.js +15 -1
- package/dist/icons/finance/currency_exchange.js +15 -1
- package/dist/icons/finance/dollar.js +15 -1
- package/dist/icons/finance/ethereum.js +15 -1
- package/dist/icons/finance/paypass.js +15 -1
- package/dist/icons/finance/strongbox.js +15 -1
- package/dist/icons/finance/wallet.js +15 -1
- package/dist/icons/index.js +1095 -1
- package/dist/icons/layout/block_align_bottom.js +15 -1
- package/dist/icons/layout/block_align_center.js +15 -1
- package/dist/icons/layout/block_align_left.js +15 -1
- package/dist/icons/layout/block_align_middle.js +15 -1
- package/dist/icons/layout/block_align_right.js +15 -1
- package/dist/icons/layout/block_align_top.js +15 -1
- package/dist/icons/layout/block_horizontal.js +15 -1
- package/dist/icons/layout/block_vertical.js +15 -1
- package/dist/icons/layout/edit_shape.js +15 -1
- package/dist/icons/layout/elements.js +15 -1
- package/dist/icons/layout/elements_add.js +15 -1
- package/dist/icons/layout/elements_filled.js +15 -1
- package/dist/icons/layout/elements_masonry.js +15 -1
- package/dist/icons/layout/frame.js +15 -1
- package/dist/icons/layout/frame_stack.js +15 -1
- package/dist/icons/layout/grid.js +15 -1
- package/dist/icons/layout/grid_column_three.js +15 -1
- package/dist/icons/layout/grid_column_two.js +15 -1
- package/dist/icons/layout/grid_dynamic.js +15 -1
- package/dist/icons/layout/grid_frame.js +15 -1
- package/dist/icons/layout/grid_row_three.js +15 -1
- package/dist/icons/layout/grid_row_two.js +15 -1
- package/dist/icons/layout/grid_six.js +15 -1
- package/dist/icons/layout/grid_small.js +15 -1
- package/dist/icons/layout/iframe.js +15 -1
- package/dist/icons/layout/kanban.js +15 -1
- package/dist/icons/layout/layout.js +15 -1
- package/dist/icons/layout/list.js +15 -1
- package/dist/icons/layout/list_filled.js +20 -1
- package/dist/icons/layout/padding.js +15 -1
- package/dist/icons/layout/page_break.js +15 -1
- package/dist/icons/layout/rotate_left.js +15 -1
- package/dist/icons/layout/rotate_right.js +15 -1
- package/dist/icons/layout/ruler.js +15 -1
- package/dist/icons/layout/segment.js +15 -1
- package/dist/icons/layout/select_area.js +15 -1
- package/dist/icons/layout/select_boundary.js +15 -1
- package/dist/icons/layout/sidebar_left.js +15 -1
- package/dist/icons/layout/sidebar_right.js +15 -1
- package/dist/icons/layout/slides.js +15 -1
- package/dist/icons/layout/slides_horizontal.js +15 -1
- package/dist/icons/layout/slides_vertical.js +20 -1
- package/dist/icons/layout/stack.js +15 -1
- package/dist/icons/layout/text.js +15 -1
- package/dist/icons/maps/atlas.js +15 -1
- package/dist/icons/maps/compass.js +15 -1
- package/dist/icons/maps/direction.js +15 -1
- package/dist/icons/maps/direction_angled.js +15 -1
- package/dist/icons/maps/globe.js +15 -1
- package/dist/icons/maps/globe_slash.js +15 -1
- package/dist/icons/maps/location.js +15 -1
- package/dist/icons/maps/location_slash.js +15 -1
- package/dist/icons/maps/map.js +15 -1
- package/dist/icons/maps/marker.js +15 -1
- package/dist/icons/maps/panorama.js +15 -1
- package/dist/icons/maps/pin.js +15 -1
- package/dist/icons/maps/pin_arrow.js +15 -1
- package/dist/icons/maps/pin_location.js +15 -1
- package/dist/icons/maps/pin_plus.js +15 -1
- package/dist/icons/maps/pin_question.js +15 -1
- package/dist/icons/maps/pin_slash.js +15 -1
- package/dist/icons/maps/push_pin.js +15 -1
- package/dist/icons/maps/push_pin_filled.js +15 -1
- package/dist/icons/maps/push_pin_slash.js +15 -1
- package/dist/icons/maps/radar.js +15 -1
- package/dist/icons/maps/route.js +15 -1
- package/dist/icons/message/bubble.js +15 -1
- package/dist/icons/message/bubble_question.js +15 -1
- package/dist/icons/message/comment.js +15 -1
- package/dist/icons/message/comment_add.js +15 -1
- package/dist/icons/message/comment_check.js +15 -1
- package/dist/icons/message/comment_close.js +15 -1
- package/dist/icons/message/comment_minus.js +15 -1
- package/dist/icons/message/comment_text.js +15 -1
- package/dist/icons/misc/advertisement.js +15 -1
- package/dist/icons/misc/atom.js +15 -1
- package/dist/icons/misc/bone.js +15 -1
- package/dist/icons/misc/brightness_high.js +15 -1
- package/dist/icons/misc/brightness_low.js +15 -1
- package/dist/icons/misc/contrast.js +15 -1
- package/dist/icons/misc/crosshairs.js +15 -1
- package/dist/icons/misc/crown.js +15 -1
- package/dist/icons/misc/footprint.js +15 -1
- package/dist/icons/misc/form.js +15 -1
- package/dist/icons/misc/funnel.js +15 -1
- package/dist/icons/misc/infinite.js +15 -1
- package/dist/icons/misc/insert_button.js +15 -1
- package/dist/icons/misc/light_bulb.js +15 -1
- package/dist/icons/misc/moon.js +15 -1
- package/dist/icons/misc/nut.js +15 -1
- package/dist/icons/misc/planet.js +15 -1
- package/dist/icons/misc/plus_thick.js +15 -1
- package/dist/icons/misc/pocket.js +15 -1
- package/dist/icons/misc/rocket.js +15 -1
- package/dist/icons/misc/soup.js +19 -1
- package/dist/icons/misc/sun.js +15 -1
- package/dist/icons/misc/toy_horse.js +15 -1
- package/dist/icons/misc/trophy.js +15 -1
- package/dist/icons/misc/watercloset.js +15 -1
- package/dist/icons/notifications/alert_circle.js +15 -1
- package/dist/icons/notifications/alert_octogon.js +15 -1
- package/dist/icons/notifications/alert_triangle.js +15 -1
- package/dist/icons/notifications/app_notification.js +15 -1
- package/dist/icons/notifications/bell.js +15 -1
- package/dist/icons/notifications/bell_alert.js +15 -1
- package/dist/icons/notifications/bell_checkmark.js +15 -1
- package/dist/icons/notifications/bell_minus.js +15 -1
- package/dist/icons/notifications/bell_plus.js +15 -1
- package/dist/icons/notifications/bell_ring.js +17 -1
- package/dist/icons/notifications/bell_slash.js +15 -1
- package/dist/icons/notifications/information.js +15 -1
- package/dist/icons/notifications/minus_octogon.js +15 -1
- package/dist/icons/notifications/question_circle.js +15 -1
- package/dist/icons/people/group.js +15 -1
- package/dist/icons/people/group_add.js +15 -1
- package/dist/icons/people/group_chat.js +17 -1
- package/dist/icons/people/group_remove.js +15 -1
- package/dist/icons/people/group_send.js +16 -1
- package/dist/icons/people/groups.js +15 -1
- package/dist/icons/people/person.js +15 -1
- package/dist/icons/people/person_add.js +15 -1
- package/dist/icons/people/person_checkmark.js +15 -1
- package/dist/icons/people/person_circle.js +17 -1
- package/dist/icons/people/person_close.js +17 -1
- package/dist/icons/people/person_remove.js +15 -1
- package/dist/icons/people/person_slash.js +17 -1
- package/dist/icons/phone/keypad.js +15 -1
- package/dist/icons/phone/phone.js +15 -1
- package/dist/icons/phone/phone_add.js +15 -1
- package/dist/icons/phone/phone_calling.js +15 -1
- package/dist/icons/phone/phone_check.js +15 -1
- package/dist/icons/phone/phone_close.js +15 -1
- package/dist/icons/phone/phone_decline.js +15 -1
- package/dist/icons/phone/phone_forwarded.js +15 -1
- package/dist/icons/phone/phone_hash.js +15 -1
- package/dist/icons/phone/phone_incoming.js +15 -1
- package/dist/icons/phone/phone_outgoing.js +15 -1
- package/dist/icons/phone/phone_pause.js +15 -1
- package/dist/icons/phone/phone_slash.js +15 -1
- package/dist/icons/phone/voicemail.js +15 -1
- package/dist/icons/security/key.js +15 -1
- package/dist/icons/security/key_slash.js +15 -1
- package/dist/icons/security/lock.js +15 -1
- package/dist/icons/security/lock_circle.js +15 -1
- package/dist/icons/security/lock_open.js +15 -1
- package/dist/icons/security/lock_slash.js +15 -1
- package/dist/icons/security/shield.js +15 -1
- package/dist/icons/security/shield_checkmark.js +15 -1
- package/dist/icons/security/shield_lock.js +15 -1
- package/dist/icons/security/shield_slash.js +15 -1
- package/dist/icons/security/verified.js +15 -1
- package/dist/icons/shopping/basket.js +15 -1
- package/dist/icons/shopping/cart.js +15 -1
- package/dist/icons/shopping/cart_filled.js +15 -1
- package/dist/icons/shopping/coupon.js +15 -1
- package/dist/icons/shopping/coupon_cut.js +15 -1
- package/dist/icons/shopping/delivery.js +15 -1
- package/dist/icons/shopping/discount.js +15 -1
- package/dist/icons/shopping/gift.js +15 -1
- package/dist/icons/shopping/gift_bag.js +15 -1
- package/dist/icons/shopping/inventory.js +15 -1
- package/dist/icons/shopping/point_of_sale.js +15 -1
- package/dist/icons/shopping/shirt.js +15 -1
- package/dist/icons/shopping/tag.js +15 -1
- package/dist/icons/shopping/tag_diagonal.js +15 -1
- package/dist/icons/shopping/tote.js +15 -1
- package/dist/icons/special/upload_audio.js +20 -1
- package/dist/icons/special/upload_file.js +15 -1
- package/dist/icons/special/upload_image.js +17 -1
- package/dist/icons/special/upload_video.js +18 -1
- package/dist/icons/symbols/at.js +15 -1
- package/dist/icons/symbols/cc.js +15 -1
- package/dist/icons/symbols/cmd.js +15 -1
- package/dist/icons/symbols/facebook.js +15 -1
- package/dist/icons/symbols/google.js +18 -1
- package/dist/icons/symbols/hash.js +15 -1
- package/dist/icons/symbols/instagram.js +27 -1
- package/dist/icons/symbols/messenger.js +21 -1
- package/dist/icons/symbols/twitter.js +15 -1
- package/dist/icons/technology/battery.js +15 -1
- package/dist/icons/technology/battery_100.js +15 -1
- package/dist/icons/technology/battery_20.js +15 -1
- package/dist/icons/technology/battery_40.js +15 -1
- package/dist/icons/technology/battery_60.js +15 -1
- package/dist/icons/technology/battery_80.js +15 -1
- package/dist/icons/technology/battery_charging.js +15 -1
- package/dist/icons/technology/battery_slash.js +15 -1
- package/dist/icons/technology/devices.js +15 -1
- package/dist/icons/technology/floppy_disk.js +15 -1
- package/dist/icons/technology/iphone.js +15 -1
- package/dist/icons/technology/laptop.js +15 -1
- package/dist/icons/technology/mobile.js +15 -1
- package/dist/icons/technology/monitor.js +15 -1
- package/dist/icons/technology/server.js +15 -1
- package/dist/icons/technology/sim_card.js +15 -1
- package/dist/icons/technology/usb_stick.js +15 -1
- package/dist/icons/text/align_center.js +15 -1
- package/dist/icons/text/align_justified.js +15 -1
- package/dist/icons/text/align_left.js +15 -1
- package/dist/icons/text/align_right.js +15 -1
- package/dist/icons/text/code_block.js +15 -1
- package/dist/icons/text/divider.js +15 -1
- package/dist/icons/text/footnote.js +17 -1
- package/dist/icons/text/indent_decrease.js +15 -1
- package/dist/icons/text/indent_increase.js +15 -1
- package/dist/icons/text/list_ordered.js +15 -1
- package/dist/icons/text/list_unordered.js +15 -1
- package/dist/icons/text/quote.js +15 -1
- package/dist/icons/text/table.js +15 -1
- package/dist/icons/time/alarm.js +15 -1
- package/dist/icons/time/alarm_checkmark.js +15 -1
- package/dist/icons/time/alarm_minus.js +15 -1
- package/dist/icons/time/alarm_plus.js +15 -1
- package/dist/icons/time/alarm_slash.js +15 -1
- package/dist/icons/time/alarm_snooze.js +15 -1
- package/dist/icons/time/calendar.js +15 -1
- package/dist/icons/time/calendar_add.js +15 -1
- package/dist/icons/time/calendar_checkmark.js +15 -1
- package/dist/icons/time/calendar_close.js +15 -1
- package/dist/icons/time/calendar_dates.js +15 -1
- package/dist/icons/time/calendar_minus.js +15 -1
- package/dist/icons/time/calendar_plus.js +15 -1
- package/dist/icons/time/calendar_scroll.js +17 -1
- package/dist/icons/time/clock.js +15 -1
- package/dist/icons/time/clock_history.js +15 -1
- package/dist/icons/time/stopwatch.js +15 -1
- package/dist/icons/time/timer.js +15 -1
- package/dist/icons/time/watch.js +15 -1
- package/dist/index.js +117 -1
- package/dist/utils/date.js +73 -1
- package/dist/utils/function.js +5 -1
- package/package.json +2 -4
- package/dist/styles/output.css +0 -1776
|
@@ -1,9 +1,105 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var Image = require('next/image');
|
|
6
|
+
var ReactPlayer = require('react-player');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
|
+
var box = require('../../atoms/box/box.js');
|
|
9
|
+
var heading = require('../../atoms/typography/heading.js');
|
|
10
|
+
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
11
|
+
var button = require('../../actions/button/button.js');
|
|
12
|
+
var lock_circle = require('../../../icons/security/lock_circle.js');
|
|
13
|
+
var play_solid = require('../../../icons/audio_video/play_solid.js');
|
|
14
|
+
var playlistItem = require('./playlist-item.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
|
+
var ReactPlayer__default = /*#__PURE__*/_interopDefaultCompat(ReactPlayer);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* ReactPlayer props reference -> https://www.npmjs.com/package/react-player#props
|
|
24
|
+
* HLS Option props reference -> https://github.com/video-dev/hls.js/blob/master/docs/API.md#fine-tuning
|
|
25
|
+
*/
|
|
26
|
+
const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange, onProgress, orientation, setMediaItem, subtitle, title, trailer, }) => {
|
|
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);
|
|
30
|
+
const mediaItem = playingTrailer ? trailer : playlist?.[activeIndex];
|
|
31
|
+
const handleReady = () => {
|
|
32
|
+
if (!playingTrailer) {
|
|
33
|
+
const currTime = ref?.current?.getCurrentTime();
|
|
34
|
+
if (currTime === 0 && mediaItem?.progress !== 0) {
|
|
35
|
+
ref.current.seekTo(mediaItem.progress);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const handleMediaItemChange = (id) => {
|
|
40
|
+
setPlayingTrailer(false);
|
|
41
|
+
setMediaItem(id);
|
|
42
|
+
};
|
|
43
|
+
const toggleShowingAll = () => setShowingAll((prev) => !prev);
|
|
44
|
+
if (!mediaItem)
|
|
45
|
+
return null;
|
|
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: {
|
|
52
|
+
file: {
|
|
53
|
+
attributes: {
|
|
54
|
+
crossOrigin: 'true',
|
|
55
|
+
},
|
|
56
|
+
forceHLS: true,
|
|
57
|
+
hlsOptions: {
|
|
58
|
+
autoStartLoad: true,
|
|
59
|
+
},
|
|
60
|
+
tracks: mediaItem.subtitles.map((subtitle) => ({
|
|
61
|
+
kind: 'subtitles',
|
|
62
|
+
label: subtitle.label,
|
|
63
|
+
src: subtitle.src,
|
|
64
|
+
srcLang: subtitle.locale,
|
|
65
|
+
})),
|
|
66
|
+
},
|
|
67
|
+
}, controls: true, height: "100%", light: React__default.default.createElement(Image__default.default, { alt: `thumbnail for ${title}`, layout: "fill", priority: true, quality: 100, style: {
|
|
68
|
+
objectFit: 'contain',
|
|
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: {
|
|
70
|
+
backgroundColor: 'var(--color-grey-0)',
|
|
71
|
+
maxHeight: 720,
|
|
72
|
+
maxWidth: 1280,
|
|
73
|
+
minHeight: 480,
|
|
74
|
+
overflow: 'hidden',
|
|
75
|
+
position: 'relative',
|
|
76
|
+
}, url: mediaItem.src, width: "100%" }),
|
|
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: `
|
|
3
82
|
margin-bottom: 8x;
|
|
4
83
|
border-bottom: 1px solid var(--color-grey-4);
|
|
5
84
|
padding-bottom: 16px;
|
|
6
|
-
`
|
|
85
|
+
` },
|
|
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 })))))))));
|
|
101
|
+
};
|
|
102
|
+
const Wrapper = styled.styled.div `
|
|
7
103
|
display: flex;
|
|
8
104
|
justify-content: center;
|
|
9
105
|
background-color: var(--color-grey-0);
|
|
@@ -12,24 +108,29 @@
|
|
|
12
108
|
object-fit: cover !important;
|
|
13
109
|
}
|
|
14
110
|
|
|
15
|
-
${({$orientation
|
|
16
|
-
|
|
111
|
+
${({ $orientation }) => $orientation === 'vertical' ? 'max-width: 960px; height: max-content;' : ''}
|
|
112
|
+
`;
|
|
113
|
+
const InnerWrapper = styled.styled.div `
|
|
17
114
|
max-width: 2284px;
|
|
18
115
|
flex: 1;
|
|
19
116
|
display: flex;
|
|
20
117
|
justify-content: flex-end;
|
|
21
118
|
|
|
22
|
-
${({$playable
|
|
119
|
+
${({ $playable }) => $playable
|
|
120
|
+
? ''
|
|
121
|
+
: `
|
|
23
122
|
.player {
|
|
24
123
|
cursor: initial;
|
|
25
124
|
pointer-events: none;
|
|
26
125
|
user-select: none;
|
|
27
126
|
}`}
|
|
28
127
|
|
|
29
|
-
${({$orientation
|
|
128
|
+
${({ $orientation }) => $orientation === 'vertical'
|
|
129
|
+
? `
|
|
30
130
|
flex-direction: column;
|
|
31
131
|
gap: 24px;
|
|
32
|
-
justify-content: flex-start
|
|
132
|
+
justify-content: flex-start;`
|
|
133
|
+
: `
|
|
33
134
|
& > div:first-of-type {
|
|
34
135
|
flex: 5;
|
|
35
136
|
aspect-ratio: 1280 / 720;
|
|
@@ -37,14 +138,16 @@
|
|
|
37
138
|
& > div:last-of-type {
|
|
38
139
|
flex: 3;
|
|
39
140
|
}`}
|
|
40
|
-
|
|
141
|
+
`;
|
|
142
|
+
const Side = styled.styled.div `
|
|
41
143
|
position: relative;
|
|
42
144
|
box-sizing: border-box;
|
|
43
145
|
display: flex;
|
|
44
146
|
flex-direction: column;
|
|
45
147
|
padding: 24px;
|
|
46
148
|
gap: 24px;
|
|
47
|
-
|
|
149
|
+
`;
|
|
150
|
+
const HorizontalPlaylistWrapper = styled.styled.div `
|
|
48
151
|
display: flex;
|
|
49
152
|
flex-direction: column;
|
|
50
153
|
gap: 24px;
|
|
@@ -69,7 +172,8 @@
|
|
|
69
172
|
background-color: var(--color-grey-6);
|
|
70
173
|
opacity: 30%;
|
|
71
174
|
}
|
|
72
|
-
|
|
175
|
+
`;
|
|
176
|
+
const VerticalPlaylistWrapper = styled.styled.div `
|
|
73
177
|
display: flex;
|
|
74
178
|
flex-direction: column;
|
|
75
179
|
gap: 24px;
|
|
@@ -96,7 +200,11 @@
|
|
|
96
200
|
opacity: 30%;
|
|
97
201
|
}
|
|
98
202
|
|
|
99
|
-
${({$showingAll
|
|
203
|
+
${({ $showingAll }) => $showingAll
|
|
204
|
+
? `
|
|
100
205
|
max-height: unset;
|
|
101
|
-
overflow-y: visible
|
|
102
|
-
|
|
206
|
+
overflow-y: visible;`
|
|
207
|
+
: ''}
|
|
208
|
+
`;
|
|
209
|
+
|
|
210
|
+
exports.VideoPlayer = VideoPlayer;
|
|
@@ -1,12 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var Link = require('next/link');
|
|
7
|
+
var box = require('../../atoms/box/box.js');
|
|
8
|
+
var chevron_left = require('../../../icons/arrow/chevron_left.js');
|
|
9
|
+
var chevron_right = require('../../../icons/arrow/chevron_right.js');
|
|
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
|
+
|
|
16
|
+
const Breadcrumb = ({ children, previous }) => {
|
|
17
|
+
const id = React__default.default.useId();
|
|
18
|
+
const _children = React__default.default.Children.toArray(children);
|
|
19
|
+
if (previous) {
|
|
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], {
|
|
25
|
+
icon: undefined,
|
|
26
|
+
avatar: undefined,
|
|
27
|
+
}))));
|
|
28
|
+
}
|
|
29
|
+
return (React__default.default.createElement(box.Box, { "$align": "center", "$gap": 8 }, _children.map((child, index) => {
|
|
30
|
+
if (React__default.default.isValidElement(child) &&
|
|
31
|
+
(child.type?.displayName === 'BreadcrumbItem' ||
|
|
32
|
+
child.type?.displayName === 'Breadcrumb.Item')) {
|
|
33
|
+
return (React__default.default.createElement(React__default.default.Fragment, { key: id + index.toString(36) },
|
|
34
|
+
child,
|
|
35
|
+
_children.length - 1 !== index && (React__default.default.createElement(chevron_right.ChevronRight, { color: "grey-3", size: 24 }))));
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
const BreadcrumbItem = ({ avatar, children, href, icon, iconColor = 'blue', onClick, }) => {
|
|
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 }))),
|
|
43
|
+
avatar,
|
|
44
|
+
children));
|
|
45
|
+
};
|
|
46
|
+
Breadcrumb.Item = BreadcrumbItem;
|
|
47
|
+
BreadcrumbItem.displayName = 'Breadcrumb.Item';
|
|
48
|
+
const Item = styled.styled(Link__default.default) `
|
|
3
49
|
display: flex;
|
|
4
50
|
flex-flow: row nowrap;
|
|
5
51
|
align-items: center;
|
|
6
52
|
font-family: var(--font-inter);
|
|
7
53
|
color: var(--color-grey-3);
|
|
8
54
|
|
|
9
|
-
${({as
|
|
55
|
+
${({ as }) => as === 'a'
|
|
56
|
+
? `
|
|
10
57
|
text-decoration: none;
|
|
11
58
|
color: var(--color-primary-blue-2);
|
|
12
59
|
|
|
@@ -21,21 +68,25 @@
|
|
|
21
68
|
right: 0px;
|
|
22
69
|
background-color: var(--color-primary-blue-1);
|
|
23
70
|
}
|
|
24
|
-
}
|
|
71
|
+
}`
|
|
72
|
+
: ''}
|
|
25
73
|
|
|
26
|
-
${({$type
|
|
74
|
+
${({ $type, $iconColor }) => $type === 'icon'
|
|
75
|
+
? `
|
|
27
76
|
gap: 32px;
|
|
28
77
|
font-size: 24px;
|
|
29
78
|
font-weight: 700;
|
|
30
79
|
line-height: 36px;
|
|
31
|
-
color: var(--color-${
|
|
80
|
+
color: var(--color-${$iconColor});
|
|
32
81
|
|
|
33
82
|
&:hover {
|
|
34
83
|
&:after {
|
|
35
84
|
width: calc(100% - 80px);
|
|
36
|
-
background-color: var(--color-${
|
|
85
|
+
background-color: var(--color-${$iconColor});
|
|
37
86
|
}
|
|
38
|
-
}
|
|
87
|
+
}`
|
|
88
|
+
: $type === 'avatar'
|
|
89
|
+
? `
|
|
39
90
|
padding: 4px;
|
|
40
91
|
gap: 16px;
|
|
41
92
|
font-size: 18px;
|
|
@@ -46,14 +97,16 @@
|
|
|
46
97
|
&:after {
|
|
47
98
|
background-color: var(--color-primary-blue-2);
|
|
48
99
|
}
|
|
49
|
-
}
|
|
100
|
+
}`
|
|
101
|
+
: `
|
|
50
102
|
padding: 4px 0px;
|
|
51
103
|
font-size: 16px;
|
|
52
104
|
font-weight: 500;
|
|
53
105
|
line-height: 24px;
|
|
54
106
|
`}
|
|
55
|
-
|
|
56
|
-
|
|
107
|
+
`;
|
|
108
|
+
const IconWrapper = styled.styled.div `
|
|
109
|
+
background-color: ${({ $color }) => `var(--color-hue-${$color}-2)`};
|
|
57
110
|
height: 48px;
|
|
58
111
|
width: 48px;
|
|
59
112
|
display: flex;
|
|
@@ -61,4 +114,6 @@
|
|
|
61
114
|
align-items: center;
|
|
62
115
|
box-sizing: border-box;
|
|
63
116
|
border-radius: 8px;
|
|
64
|
-
`;
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
exports.Breadcrumb = Breadcrumb;
|
|
@@ -1,11 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var styled = require('styled-components');
|
|
5
|
+
var Link = require('next/link');
|
|
6
|
+
var button = require('../../actions/button/button.js');
|
|
7
|
+
var drawer = require('../../surfaces/drawer/drawer.js');
|
|
8
|
+
var chevron_down = require('../../../icons/arrow/chevron_down.js');
|
|
9
|
+
var chevron_left = require('../../../icons/arrow/chevron_left.js');
|
|
10
|
+
var chevron_up = require('../../../icons/arrow/chevron_up.js');
|
|
11
|
+
var plus = require('../../../icons/basic/plus.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 Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
17
|
+
|
|
18
|
+
const INNER_NAV_CHILD_TYPES = [
|
|
19
|
+
'Header',
|
|
20
|
+
'Item',
|
|
21
|
+
'Dropdown',
|
|
22
|
+
'BackButton',
|
|
23
|
+
'Drawer',
|
|
24
|
+
'Misc',
|
|
25
|
+
];
|
|
26
|
+
/*************************************************************************************************************************
|
|
27
|
+
* Inner Navigation
|
|
28
|
+
*/
|
|
29
|
+
const InnerNav = ({ children }) => {
|
|
30
|
+
const elementsByType = {
|
|
31
|
+
Header: [],
|
|
32
|
+
Item: [],
|
|
33
|
+
Dropdown: [],
|
|
34
|
+
BackButton: [],
|
|
35
|
+
Drawer: [],
|
|
36
|
+
Misc: [],
|
|
37
|
+
};
|
|
38
|
+
const _children = React__default.default.Children.toArray(children);
|
|
39
|
+
for (const child of _children) {
|
|
40
|
+
const isValidChild = React__default.default.isValidElement(child);
|
|
41
|
+
const isInnerNavChild = isValidChild &&
|
|
42
|
+
INNER_NAV_CHILD_TYPES.includes(child?.type?.displayName?.replace('InnerNav.', ''));
|
|
43
|
+
if (isInnerNavChild) {
|
|
44
|
+
const type = child?.type?.displayName.replace('InnerNav.', '');
|
|
45
|
+
elementsByType[type].push(child);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
elementsByType['Misc'].push(child);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
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'])));
|
|
58
|
+
};
|
|
59
|
+
const NavWrapper = styled.styled.nav `
|
|
2
60
|
height: 100%;
|
|
3
61
|
width: 365px;
|
|
4
62
|
padding: 24px 12px 24px 16px;
|
|
5
63
|
box-sizing: border-box;
|
|
6
64
|
background-color: var(--color-blue-10);
|
|
7
65
|
border-right: 1px solid var(--color-grey-9);
|
|
8
|
-
|
|
66
|
+
`;
|
|
67
|
+
const InnerNavItem = ({ active, href, icon, label, sx, onClick, }) => {
|
|
68
|
+
return (React__default.default.createElement(Item, { "$active": active, "$sx": sx, href: href || '#', scroll: false, onClick: onClick },
|
|
69
|
+
icon,
|
|
70
|
+
label));
|
|
71
|
+
};
|
|
72
|
+
const Item = styled.styled(Link__default.default) `
|
|
9
73
|
padding: 14px 16px;
|
|
10
74
|
display: flex;
|
|
11
75
|
gap: 16px;
|
|
@@ -20,24 +84,41 @@
|
|
|
20
84
|
svg {
|
|
21
85
|
fill: var(--color-blue-2);
|
|
22
86
|
}
|
|
23
|
-
${({$active
|
|
24
|
-
|
|
87
|
+
${({ $active }) => $active
|
|
88
|
+
? `
|
|
89
|
+
background-color: var(--color-primary-blue-3);`
|
|
90
|
+
: `
|
|
25
91
|
&:hover {
|
|
26
92
|
background-color: var(--color-primary-blue-4);
|
|
27
93
|
}`}
|
|
28
94
|
|
|
29
|
-
${({$sx
|
|
30
|
-
|
|
95
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
96
|
+
`;
|
|
97
|
+
InnerNav.Item = InnerNavItem;
|
|
98
|
+
InnerNavItem.displayName = 'InnerNav.Item';
|
|
99
|
+
const InnerNavDropdown = ({ children, icon, label, open, sx, onClick, }) => {
|
|
100
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
101
|
+
React__default.default.createElement(DropdownItem, { "$active": false, "$sx": sx, onClick: onClick },
|
|
102
|
+
icon,
|
|
103
|
+
React__default.default.createElement(DropdownTriggerWrapper, null,
|
|
104
|
+
label,
|
|
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)));
|
|
108
|
+
};
|
|
109
|
+
const DropdownContent = styled.styled.div `
|
|
31
110
|
& > a,
|
|
32
111
|
& > button {
|
|
33
112
|
padding-left: 40px;
|
|
34
113
|
}
|
|
35
|
-
|
|
114
|
+
`;
|
|
115
|
+
const DropdownTriggerWrapper = styled.styled.div `
|
|
36
116
|
display: flex;
|
|
37
117
|
justify-content: space-between;
|
|
38
118
|
align-items: center;
|
|
39
119
|
flex: 1;
|
|
40
|
-
|
|
120
|
+
`;
|
|
121
|
+
const DropdownItem = styled.styled.a `
|
|
41
122
|
padding: 14px 16px;
|
|
42
123
|
display: flex;
|
|
43
124
|
gap: 16px;
|
|
@@ -52,14 +133,25 @@
|
|
|
52
133
|
svg {
|
|
53
134
|
fill: var(--color-blue-2);
|
|
54
135
|
}
|
|
55
|
-
${({$active
|
|
56
|
-
|
|
136
|
+
${({ $active }) => $active
|
|
137
|
+
? `
|
|
138
|
+
background-color: var(--color-primary-blue-3);`
|
|
139
|
+
: `
|
|
57
140
|
&:hover {
|
|
58
141
|
background-color: var(--color-primary-blue-4);
|
|
59
142
|
}`}
|
|
60
143
|
|
|
61
|
-
${({$sx
|
|
62
|
-
|
|
144
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
145
|
+
`;
|
|
146
|
+
InnerNav.Dropdown = InnerNavDropdown;
|
|
147
|
+
InnerNavDropdown.displayName = 'InnerNav.Dropdown';
|
|
148
|
+
const InnerNavBackButton = ({ href, label, sx }) => {
|
|
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 })),
|
|
152
|
+
label));
|
|
153
|
+
};
|
|
154
|
+
const BackButton = styled.styled(Link__default.default) `
|
|
63
155
|
display: flex;
|
|
64
156
|
align-items: center;
|
|
65
157
|
gap: 8px;
|
|
@@ -79,5 +171,29 @@
|
|
|
79
171
|
padding: 12px;
|
|
80
172
|
}
|
|
81
173
|
|
|
82
|
-
${({$sx
|
|
83
|
-
|
|
174
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
175
|
+
`;
|
|
176
|
+
InnerNav.BackButton = InnerNavBackButton;
|
|
177
|
+
InnerNavBackButton.displayName = 'InnerNav.BackButton';
|
|
178
|
+
const InnerNavHeader = ({ children }) => {
|
|
179
|
+
return React__default.default.createElement(HeaderWrapper, null, children);
|
|
180
|
+
};
|
|
181
|
+
const HeaderWrapper = styled.styled.div ``;
|
|
182
|
+
InnerNav.Header = InnerNavHeader;
|
|
183
|
+
InnerNavHeader.displayName = 'InnerNav.Header';
|
|
184
|
+
const InnerNavDrawer = ({ children, label, controlledOpen, onOpenChange, }) => {
|
|
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: () => {
|
|
188
|
+
onOpenChange?.();
|
|
189
|
+
} }, label)),
|
|
190
|
+
children));
|
|
191
|
+
};
|
|
192
|
+
InnerNav.Drawer = InnerNavDrawer;
|
|
193
|
+
InnerNavDrawer.displayName = 'InnerNav.Drawer';
|
|
194
|
+
InnerNav.DrawerHeader = drawer.Drawer.Header;
|
|
195
|
+
InnerNav.DrawerContent = drawer.Drawer.Content;
|
|
196
|
+
InnerNav.DrawerFooter = drawer.Drawer.Footer;
|
|
197
|
+
InnerNav.DrawerTrigger = drawer.Drawer.Trigger;
|
|
198
|
+
|
|
199
|
+
exports.InnerNav = InnerNav;
|