@soul-refiner/design-system 2.0.3 → 2.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.js +1 -140
- package/dist/common/date.js +1 -34
- package/dist/common/styles.js +30 -62
- package/dist/components/actions/button/button.js +21 -111
- package/dist/components/actions/dropdown/dropdown.js +21 -176
- package/dist/components/actions/rate/rate.js +4 -55
- package/dist/components/actions/switch/switch.js +5 -39
- package/dist/components/actions/toggle/toggle.js +6 -33
- package/dist/components/actions/upload/upload.js +9 -167
- package/dist/components/atoms/box/box.js +4 -18
- package/dist/components/atoms/hide/hide.js +1 -18
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +1 -36
- package/dist/components/atoms/time_ago/time_ago.js +1 -39
- package/dist/components/atoms/typography/display.js +5 -18
- package/dist/components/atoms/typography/heading.js +6 -43
- package/dist/components/atoms/typography/paragraph.js +7 -20
- package/dist/components/atoms/typography/typography.js +3 -10
- package/dist/components/card/action/action.js +8 -41
- package/dist/components/card/audio/audio.js +7 -57
- package/dist/components/card/card.js +1 -33
- package/dist/components/card/feature/feature.js +14 -86
- package/dist/components/card/meeting/meeting.js +8 -102
- package/dist/components/card/person/person.js +6 -39
- package/dist/components/card/price/price.js +7 -49
- package/dist/components/card/regular/regular.js +5 -26
- package/dist/components/card/styles.js +2 -9
- package/dist/components/card/video/video.js +7 -57
- package/dist/components/card/written/written.js +7 -57
- package/dist/components/custom/courses_selection/courses_selection.js +12 -104
- package/dist/components/custom/users_selection/users_selection.js +12 -86
- package/dist/components/editor/constants.js +1 -195
- package/dist/components/editor/context.js +1 -17
- package/dist/components/editor/editor.js +5 -45
- package/dist/components/editor/icons/border-all.js +1 -12
- package/dist/components/editor/icons/border-bottom.js +1 -12
- package/dist/components/editor/icons/border-left.js +1 -12
- package/dist/components/editor/icons/border-none.js +1 -12
- package/dist/components/editor/icons/border-right.js +1 -12
- package/dist/components/editor/icons/border-top.js +1 -12
- package/dist/components/editor/navbar/alignment_dropdown.js +1 -106
- package/dist/components/editor/navbar/button_modal.js +3 -60
- package/dist/components/editor/navbar/navbar.js +7 -178
- package/dist/components/editor/navbar/style_dropdown.js +1 -74
- package/dist/components/editor/plugins/blocks/blockquote.js +1 -17
- package/dist/components/editor/plugins/blocks/blocks.js +1 -54
- package/dist/components/editor/plugins/blocks/buttons.js +8 -70
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +1 -77
- package/dist/components/editor/plugins/blocks/image.js +1 -60
- package/dist/components/editor/plugins/blocks/list.js +2 -20
- package/dist/components/editor/plugins/blocks/media-popover.js +1 -41
- package/dist/components/editor/plugins/blocks/plate-button.js +1 -63
- package/dist/components/editor/plugins/blocks/popover.js +1 -38
- package/dist/components/editor/plugins/blocks/qa.js +3 -45
- package/dist/components/editor/plugins/blocks/resizable.js +1 -47
- package/dist/components/editor/plugins/blocks/separator.js +1 -43
- package/dist/components/editor/plugins/blocks/table-cell.js +1 -48
- package/dist/components/editor/plugins/blocks/table-row.js +1 -16
- package/dist/components/editor/plugins/blocks/table.js +1 -98
- package/dist/components/editor/plugins/blocks/text.js +1 -103
- package/dist/components/editor/plugins/blocks/video.js +1 -42
- package/dist/components/editor/plugins/leafs/leafs.js +1 -37
- package/dist/components/editor/plugins/leafs/link.js +4 -55
- package/dist/components/editor/plugins/marks/marks.js +1 -17
- package/dist/components/editor/plugins/plate.js +1 -43
- package/dist/components/editor/plugins/utils/exitBreak.js +1 -36
- package/dist/components/editor/plugins/utils/resetBlockType.js +1 -26
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +1 -11
- package/dist/components/editor/plugins/utils/softBreak.js +1 -19
- package/dist/components/editor/plugins/utils/utils.js +1 -17
- package/dist/components/editor/simple_editor/navbar.js +4 -110
- package/dist/components/editor/simple_editor/plugins.js +1 -93
- package/dist/components/editor/simple_editor/simple_editor.js +3 -34
- package/dist/components/editor/styles/menu_button.js +3 -9
- package/dist/components/feedback/animated_toast/animated_toast.js +3 -32
- package/dist/components/feedback/badge/badge.js +7 -56
- package/dist/components/feedback/banner/banner.js +6 -60
- package/dist/components/feedback/chip/chip.js +8 -81
- package/dist/components/feedback/loader/loader.js +9 -33
- package/dist/components/feedback/notification/notification.js +6 -59
- package/dist/components/feedback/progress/progress.js +14 -76
- package/dist/components/feedback/toast/toast.js +7 -55
- package/dist/components/feedback/tooltip/tooltip.js +1 -34
- package/dist/components/iconography/avatar/avatar.js +22 -141
- package/dist/components/iconography/avatar/icons/approved.js +1 -14
- package/dist/components/iconography/avatar/icons/busy.js +1 -14
- package/dist/components/iconography/avatar/icons/declined.js +1 -14
- package/dist/components/iconography/avatar/icons/default.js +1 -13
- package/dist/components/iconography/avatar/icons/focus.js +1 -14
- package/dist/components/iconography/avatar/icons/locked.js +1 -14
- package/dist/components/iconography/avatar/icons/offline.js +1 -14
- package/dist/components/iconography/avatar/icons/online.js +1 -13
- package/dist/components/iconography/avatar/icons/subscribed.js +1 -18
- package/dist/components/iconography/icon/icon.js +3 -18
- package/dist/components/input/calendar/calendar.js +13 -139
- package/dist/components/input/checkbox/checkbox.js +5 -23
- package/dist/components/input/date/date.js +13 -241
- package/dist/components/input/filter/filter.js +13 -212
- package/dist/components/input/filter/filter_option.js +9 -50
- package/dist/components/input/radio/radio.js +7 -45
- package/dist/components/input/search/search.js +17 -83
- package/dist/components/input/select/select.js +6 -27
- package/dist/components/input/text_area/text_area.js +15 -60
- package/dist/components/input/text_input/text_input.js +21 -102
- package/dist/components/input/time/time.js +3 -47
- package/dist/components/media/video/video.js +1 -42
- package/dist/components/media/video-player/playlist-item.js +4 -37
- package/dist/components/media/video-player/video.js +13 -121
- package/dist/components/navigation/breadcrumb/breadcrumb.js +11 -66
- package/dist/components/navigation/inner/inner.js +14 -130
- package/dist/components/navigation/tabs/tabs.js +15 -101
- package/dist/components/surfaces/accordion/accordion.js +5 -46
- package/dist/components/surfaces/calendar_date/calendar_date.js +10 -39
- package/dist/components/surfaces/carousel/card/card.js +7 -55
- package/dist/components/surfaces/comment/comment.js +19 -152
- package/dist/components/surfaces/comment/helpers.js +1 -30
- package/dist/components/surfaces/drawer/drawer.js +7 -75
- package/dist/components/surfaces/message/message.js +4 -39
- package/dist/components/surfaces/modal/modal.js +8 -99
- package/dist/components/surfaces/portal/portal.js +1 -35
- package/dist/components/surfaces/post/post.js +19 -161
- package/dist/components/table/table/table.js +29 -120
- package/dist/emoji/emojis.json.js +1 -36331
- package/dist/icons/arrow/arrow_all.js +1 -15
- package/dist/icons/arrow/arrow_all_diagonal.js +1 -15
- package/dist/icons/arrow/arrow_both_downwards.js +1 -15
- package/dist/icons/arrow/arrow_both_upwards.js +1 -15
- package/dist/icons/arrow/arrow_circle_left.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +1 -17
- package/dist/icons/arrow/arrow_circle_right.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double.js +1 -15
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right.js +1 -15
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_down.js +1 -15
- package/dist/icons/arrow/arrow_down_bold.js +1 -15
- package/dist/icons/arrow/arrow_down_circle.js +1 -15
- package/dist/icons/arrow/arrow_left.js +1 -15
- package/dist/icons/arrow/arrow_left_bold.js +1 -15
- package/dist/icons/arrow/arrow_left_circle.js +1 -15
- package/dist/icons/arrow/arrow_left_curved.js +1 -15
- package/dist/icons/arrow/arrow_left_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_right.js +1 -15
- package/dist/icons/arrow/arrow_right_bold.js +1 -15
- package/dist/icons/arrow/arrow_right_circle.js +1 -15
- package/dist/icons/arrow/arrow_right_curved.js +1 -15
- package/dist/icons/arrow/arrow_right_curved_circle.js +1 -15
- package/dist/icons/arrow/arrow_up.js +1 -15
- package/dist/icons/arrow/arrow_up_bold.js +1 -15
- package/dist/icons/arrow/arrow_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_down.js +1 -15
- package/dist/icons/arrow/chevron_down_circle.js +1 -15
- package/dist/icons/arrow/chevron_down_double.js +1 -15
- package/dist/icons/arrow/chevron_down_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_left.js +1 -15
- package/dist/icons/arrow/chevron_left_circle.js +1 -15
- package/dist/icons/arrow/chevron_left_double.js +1 -15
- package/dist/icons/arrow/chevron_left_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_right.js +1 -15
- package/dist/icons/arrow/chevron_right_circle.js +1 -15
- package/dist/icons/arrow/chevron_right_double.js +1 -15
- package/dist/icons/arrow/chevron_right_double_circle.js +1 -15
- package/dist/icons/arrow/chevron_scroll.js +1 -15
- package/dist/icons/arrow/chevron_up.js +1 -15
- package/dist/icons/arrow/chevron_up_circle.js +1 -15
- package/dist/icons/arrow/chevron_up_double.js +1 -15
- package/dist/icons/arrow/chevron_up_double_circle.js +1 -15
- package/dist/icons/arrow/forward_all.js +1 -15
- package/dist/icons/arrow/forward_all_bold.js +1 -15
- package/dist/icons/arrow/forward_bold.js +1 -15
- package/dist/icons/arrow/redo.js +1 -15
- package/dist/icons/arrow/redo_bold.js +1 -15
- package/dist/icons/arrow/reply.js +1 -15
- package/dist/icons/arrow/reply_all.js +1 -15
- package/dist/icons/arrow/reply_all_bold.js +1 -15
- package/dist/icons/arrow/reply_bold.js +1 -15
- package/dist/icons/arrow/undo.js +1 -15
- package/dist/icons/arrow/undo_bold.js +1 -15
- package/dist/icons/audio_video/drag_indicator.js +1 -15
- package/dist/icons/audio_video/eject.js +1 -15
- package/dist/icons/audio_video/equalizer.js +1 -15
- package/dist/icons/audio_video/fast_forward.js +1 -15
- package/dist/icons/audio_video/fast_forward_30.js +1 -15
- package/dist/icons/audio_video/fullscreen.js +1 -15
- package/dist/icons/audio_video/headphones.js +1 -15
- package/dist/icons/audio_video/library_add.js +1 -15
- package/dist/icons/audio_video/library_music.js +1 -15
- package/dist/icons/audio_video/microphone.js +1 -15
- package/dist/icons/audio_video/musical_note.js +1 -15
- package/dist/icons/audio_video/next.js +1 -15
- package/dist/icons/audio_video/pause.js +1 -15
- package/dist/icons/audio_video/pause_circle.js +1 -15
- package/dist/icons/audio_video/play.js +1 -15
- package/dist/icons/audio_video/play_circle.js +1 -15
- package/dist/icons/audio_video/play_display.js +1 -15
- package/dist/icons/audio_video/play_pause.js +1 -15
- package/dist/icons/audio_video/play_solid.js +1 -15
- package/dist/icons/audio_video/player_list.js +1 -15
- package/dist/icons/audio_video/player_list_add.js +1 -15
- package/dist/icons/audio_video/player_list_play.js +1 -15
- package/dist/icons/audio_video/previous.js +1 -15
- package/dist/icons/audio_video/radio.js +1 -15
- package/dist/icons/audio_video/record.js +1 -15
- package/dist/icons/audio_video/repeat.js +1 -15
- package/dist/icons/audio_video/rewind.js +1 -15
- package/dist/icons/audio_video/rewind_30.js +1 -15
- package/dist/icons/audio_video/shuffle.js +1 -15
- package/dist/icons/audio_video/sound_wave.js +1 -15
- package/dist/icons/audio_video/stop.js +1 -15
- package/dist/icons/audio_video/stop_circle.js +1 -15
- package/dist/icons/audio_video/subscriptions.js +1 -15
- package/dist/icons/audio_video/tuner.js +1 -15
- package/dist/icons/audio_video/volume.js +1 -15
- package/dist/icons/audio_video/volume_high.js +1 -15
- package/dist/icons/audio_video/volume_low.js +1 -15
- package/dist/icons/audio_video/volume_slash.js +1 -15
- package/dist/icons/basic/aa_sansserif.js +1 -16
- package/dist/icons/basic/aa_serif.js +1 -16
- package/dist/icons/basic/anchor.js +1 -17
- package/dist/icons/basic/bible.js +1 -15
- package/dist/icons/basic/bold.js +1 -15
- package/dist/icons/basic/book.js +1 -15
- package/dist/icons/basic/book_open.js +1 -15
- package/dist/icons/basic/bookmark.js +1 -15
- package/dist/icons/basic/bookmark_add.js +1 -15
- package/dist/icons/basic/bookmark_slash.js +1 -15
- package/dist/icons/basic/bookmarks.js +1 -15
- package/dist/icons/basic/books.js +1 -18
- package/dist/icons/basic/box.js +1 -15
- package/dist/icons/basic/briefcase.js +1 -15
- package/dist/icons/basic/browse_activity.js +1 -15
- package/dist/icons/basic/browser.js +1 -15
- package/dist/icons/basic/browser_slash.js +1 -15
- package/dist/icons/basic/calculator.js +1 -15
- package/dist/icons/basic/camera.js +1 -15
- package/dist/icons/basic/camera_add.js +1 -15
- package/dist/icons/basic/camera_slash.js +1 -15
- package/dist/icons/basic/checkmark.js +1 -15
- package/dist/icons/basic/checkmark_circle.js +1 -17
- package/dist/icons/basic/checkmark_filled.js +1 -15
- package/dist/icons/basic/checkmarks.js +1 -15
- package/dist/icons/basic/circle.js +1 -15
- package/dist/icons/basic/circle_slash.js +1 -17
- package/dist/icons/basic/clear_text_style.js +1 -15
- package/dist/icons/basic/close.js +1 -15
- package/dist/icons/basic/close_circle.js +1 -15
- package/dist/icons/basic/close_filled.js +1 -15
- package/dist/icons/basic/copy.js +1 -15
- package/dist/icons/basic/delete.js +1 -15
- package/dist/icons/basic/detail.js +1 -15
- package/dist/icons/basic/dot.js +1 -15
- package/dist/icons/basic/download.js +1 -15
- package/dist/icons/basic/download_arrow.js +1 -15
- package/dist/icons/basic/droplet.js +1 -17
- package/dist/icons/basic/ellipsis_horizontal.js +1 -15
- package/dist/icons/basic/ellipsis_horizontal_circle.js +1 -15
- package/dist/icons/basic/ellipsis_vertical.js +1 -15
- package/dist/icons/basic/ellipsis_vertical_circle.js +1 -15
- package/dist/icons/basic/eye.js +1 -15
- package/dist/icons/basic/eye_slash.js +1 -15
- package/dist/icons/basic/fingerprint.js +1 -15
- package/dist/icons/basic/flag.js +1 -15
- package/dist/icons/basic/flag_wave.js +1 -15
- package/dist/icons/basic/flag_wave_filled.js +1 -15
- package/dist/icons/basic/flame.js +1 -15
- package/dist/icons/basic/gauge.js +1 -15
- package/dist/icons/basic/glasses.js +1 -15
- package/dist/icons/basic/graduation_cap.js +1 -15
- package/dist/icons/basic/hashmark.js +1 -15
- package/dist/icons/basic/heart.js +1 -15
- package/dist/icons/basic/heart_slash.js +1 -15
- package/dist/icons/basic/highlighter.js +1 -15
- package/dist/icons/basic/home.js +1 -15
- package/dist/icons/basic/image.js +1 -15
- package/dist/icons/basic/inbox.js +1 -15
- package/dist/icons/basic/italic.js +1 -15
- package/dist/icons/basic/layers.js +1 -15
- package/dist/icons/basic/lightening.js +1 -15
- package/dist/icons/basic/lightening_slash.js +1 -15
- package/dist/icons/basic/link.js +1 -15
- package/dist/icons/basic/link_slash.js +1 -15
- package/dist/icons/basic/loudspeaker.js +1 -15
- package/dist/icons/basic/maximize.js +1 -15
- package/dist/icons/basic/menu.js +1 -15
- package/dist/icons/basic/menu_circle.js +1 -15
- package/dist/icons/basic/menu_dots.js +1 -15
- package/dist/icons/basic/microphone_slash.js +1 -15
- package/dist/icons/basic/minimize.js +1 -15
- package/dist/icons/basic/minus.js +1 -15
- package/dist/icons/basic/minus_circle.js +1 -15
- package/dist/icons/basic/move_item.js +1 -15
- package/dist/icons/basic/new.js +1 -15
- package/dist/icons/basic/newspaper.js +1 -15
- package/dist/icons/basic/node.js +1 -15
- package/dist/icons/basic/note_pad.js +1 -16
- package/dist/icons/basic/options.js +1 -15
- package/dist/icons/basic/paint_brush.js +1 -15
- package/dist/icons/basic/paperclip.js +1 -15
- package/dist/icons/basic/paperclip_slash.js +1 -15
- package/dist/icons/basic/pencil.js +1 -15
- package/dist/icons/basic/pencil_pad.js +1 -15
- package/dist/icons/basic/plus.js +1 -15
- package/dist/icons/basic/plus_circle.js +1 -15
- package/dist/icons/basic/presentation.js +1 -15
- package/dist/icons/basic/printer.js +1 -15
- package/dist/icons/basic/profile.js +1 -15
- package/dist/icons/basic/profile_check.js +1 -15
- package/dist/icons/basic/pulse.js +1 -15
- package/dist/icons/basic/qr_code.js +1 -15
- package/dist/icons/basic/resize.js +1 -17
- package/dist/icons/basic/scan.js +1 -15
- package/dist/icons/basic/scissors.js +1 -15
- package/dist/icons/basic/screenshot.js +1 -15
- package/dist/icons/basic/search.js +1 -15
- package/dist/icons/basic/select_item.js +1 -16
- package/dist/icons/basic/settings.js +1 -15
- package/dist/icons/basic/share.js +1 -15
- package/dist/icons/basic/share_external.js +1 -15
- package/dist/icons/basic/square.js +1 -15
- package/dist/icons/basic/star.js +1 -15
- package/dist/icons/basic/star_circle.js +1 -15
- package/dist/icons/basic/star_filled.js +1 -15
- package/dist/icons/basic/star_filled_half.js +1 -15
- package/dist/icons/basic/star_slash.js +1 -15
- package/dist/icons/basic/sticker.js +1 -15
- package/dist/icons/basic/strikethrough.js +1 -15
- package/dist/icons/basic/subtask.js +1 -16
- package/dist/icons/basic/tax.js +1 -18
- package/dist/icons/basic/text_bg_color.js +1 -15
- package/dist/icons/basic/text_color.js +1 -15
- package/dist/icons/basic/textbox.js +1 -15
- package/dist/icons/basic/thumbs_down.js +1 -15
- package/dist/icons/basic/thumbs_up.js +1 -15
- package/dist/icons/basic/thumbs_up_filled.js +1 -15
- package/dist/icons/basic/toggle_left.js +1 -15
- package/dist/icons/basic/toggle_right.js +1 -15
- package/dist/icons/basic/translate.js +1 -15
- package/dist/icons/basic/trash.js +1 -15
- package/dist/icons/basic/trash_slash.js +1 -15
- package/dist/icons/basic/underline.js +1 -15
- package/dist/icons/basic/upload.js +1 -15
- package/dist/icons/basic/video.js +1 -15
- package/dist/icons/basic/video_add.js +1 -16
- package/dist/icons/basic/video_slash.js +1 -15
- package/dist/icons/basic/wrench.js +1 -15
- package/dist/icons/basic/zoom_in.js +1 -15
- package/dist/icons/basic/zoom_out.js +1 -15
- package/dist/icons/data/bar_chart.js +1 -15
- package/dist/icons/data/bar_chart_downward.js +1 -15
- package/dist/icons/data/bar_chart_downward_outline.js +1 -15
- package/dist/icons/data/bar_chart_upward.js +1 -15
- package/dist/icons/data/bar_chart_upward_outline.js +1 -15
- package/dist/icons/data/candlestick_chart.js +1 -15
- package/dist/icons/data/four_circles.js +1 -15
- package/dist/icons/data/legend_toggle.js +1 -15
- package/dist/icons/data/line_chart.js +1 -15
- package/dist/icons/data/line_chart_area.js +1 -15
- package/dist/icons/data/line_chart_area_shaded.js +1 -15
- package/dist/icons/data/line_chart_double.js +1 -15
- package/dist/icons/data/line_chart_downward.js +1 -15
- package/dist/icons/data/line_chart_node.js +1 -15
- package/dist/icons/data/line_chart_outline.js +1 -15
- package/dist/icons/data/line_chart_search.js +1 -15
- package/dist/icons/data/line_chart_stars.js +1 -15
- package/dist/icons/data/line_chart_upward.js +1 -15
- package/dist/icons/data/pie_chart.js +1 -16
- package/dist/icons/data/tree.js +1 -15
- package/dist/icons/email/mail.js +1 -15
- package/dist/icons/email/mail_check.js +1 -15
- package/dist/icons/email/mail_minus.js +1 -15
- package/dist/icons/email/mail_send.js +1 -15
- package/dist/icons/email/send.js +1 -15
- package/dist/icons/email/send_close.js +1 -15
- package/dist/icons/email/send_schedule.js +1 -15
- package/dist/icons/email/send_text.js +1 -15
- package/dist/icons/emoji/emoji_add.js +1 -15
- package/dist/icons/emoji/laughing.js +1 -15
- package/dist/icons/emoji/neutral.js +1 -15
- package/dist/icons/emoji/sad.js +1 -15
- package/dist/icons/emoji/shocked.js +1 -15
- package/dist/icons/emoji/smile.js +1 -15
- package/dist/icons/file/clipboard.js +1 -15
- package/dist/icons/file/clipboard_check.js +1 -15
- package/dist/icons/file/clipboard_close.js +1 -15
- package/dist/icons/file/clipboard_minus.js +1 -15
- package/dist/icons/file/clipboard_plus.js +1 -15
- package/dist/icons/file/clipboard_text.js +1 -15
- package/dist/icons/file/file.js +1 -15
- package/dist/icons/file/file_add.js +1 -15
- package/dist/icons/file/file_check.js +1 -15
- package/dist/icons/file/file_close.js +1 -15
- package/dist/icons/file/file_code.js +1 -15
- package/dist/icons/file/file_download.js +1 -15
- package/dist/icons/file/file_draft.js +1 -15
- package/dist/icons/file/file_gear.js +1 -16
- package/dist/icons/file/file_minus.js +1 -15
- package/dist/icons/file/file_plus.js +1 -15
- package/dist/icons/file/file_scan.js +1 -15
- package/dist/icons/file/file_shred.js +1 -15
- package/dist/icons/file/file_text.js +1 -15
- package/dist/icons/file/file_upload.js +1 -15
- package/dist/icons/file/folder.js +1 -15
- package/dist/icons/file/folder_add.js +1 -15
- package/dist/icons/file/folder_arrow.js +1 -15
- package/dist/icons/file/folder_check.js +1 -15
- package/dist/icons/file/folder_close.js +1 -15
- package/dist/icons/file/folder_cloud.js +1 -15
- package/dist/icons/file/folder_gear.js +1 -16
- package/dist/icons/file/folder_minus.js +1 -15
- package/dist/icons/file/folder_music.js +1 -15
- package/dist/icons/file/folder_open.js +1 -15
- package/dist/icons/file/folder_plus.js +1 -15
- package/dist/icons/file/folder_zip.js +1 -15
- package/dist/icons/file/note.js +1 -15
- package/dist/icons/file/note_text.js +1 -15
- package/dist/icons/file/pdf.js +1 -15
- package/dist/icons/file/photo.js +1 -15
- package/dist/icons/finance/bitcoin.js +1 -15
- package/dist/icons/finance/coins.js +1 -19
- package/dist/icons/finance/credit_card.js +1 -15
- package/dist/icons/finance/credit_card_add.js +1 -15
- package/dist/icons/finance/credit_card_face.js +1 -15
- package/dist/icons/finance/credit_card_member.js +1 -15
- package/dist/icons/finance/credit_card_outcome.js +1 -15
- package/dist/icons/finance/credit_card_scan.js +1 -15
- package/dist/icons/finance/credit_card_share.js +1 -15
- package/dist/icons/finance/credit_card_slash.js +1 -15
- package/dist/icons/finance/currency_exchange.js +1 -15
- package/dist/icons/finance/dollar.js +1 -15
- package/dist/icons/finance/ethereum.js +1 -15
- package/dist/icons/finance/paypass.js +1 -15
- package/dist/icons/finance/strongbox.js +1 -15
- package/dist/icons/finance/wallet.js +1 -15
- package/dist/icons/index.js +1 -1095
- package/dist/icons/layout/block_align_bottom.js +1 -15
- package/dist/icons/layout/block_align_center.js +1 -15
- package/dist/icons/layout/block_align_left.js +1 -15
- package/dist/icons/layout/block_align_middle.js +1 -15
- package/dist/icons/layout/block_align_right.js +1 -15
- package/dist/icons/layout/block_align_top.js +1 -15
- package/dist/icons/layout/block_horizontal.js +1 -15
- package/dist/icons/layout/block_vertical.js +1 -15
- package/dist/icons/layout/edit_shape.js +1 -15
- package/dist/icons/layout/elements.js +1 -15
- package/dist/icons/layout/elements_add.js +1 -15
- package/dist/icons/layout/elements_filled.js +1 -15
- package/dist/icons/layout/elements_masonry.js +1 -15
- package/dist/icons/layout/frame.js +1 -15
- package/dist/icons/layout/frame_stack.js +1 -15
- package/dist/icons/layout/grid.js +1 -15
- package/dist/icons/layout/grid_column_three.js +1 -15
- package/dist/icons/layout/grid_column_two.js +1 -15
- package/dist/icons/layout/grid_dynamic.js +1 -15
- package/dist/icons/layout/grid_frame.js +1 -15
- package/dist/icons/layout/grid_row_three.js +1 -15
- package/dist/icons/layout/grid_row_two.js +1 -15
- package/dist/icons/layout/grid_six.js +1 -15
- package/dist/icons/layout/grid_small.js +1 -15
- package/dist/icons/layout/iframe.js +1 -15
- package/dist/icons/layout/kanban.js +1 -15
- package/dist/icons/layout/layout.js +1 -15
- package/dist/icons/layout/list.js +1 -15
- package/dist/icons/layout/list_filled.js +1 -20
- package/dist/icons/layout/padding.js +1 -15
- package/dist/icons/layout/page_break.js +1 -15
- package/dist/icons/layout/rotate_left.js +1 -15
- package/dist/icons/layout/rotate_right.js +1 -15
- package/dist/icons/layout/ruler.js +1 -15
- package/dist/icons/layout/segment.js +1 -15
- package/dist/icons/layout/select_area.js +1 -15
- package/dist/icons/layout/select_boundary.js +1 -15
- package/dist/icons/layout/sidebar_left.js +1 -15
- package/dist/icons/layout/sidebar_right.js +1 -15
- package/dist/icons/layout/slides.js +1 -15
- package/dist/icons/layout/slides_horizontal.js +1 -15
- package/dist/icons/layout/slides_vertical.js +1 -20
- package/dist/icons/layout/stack.js +1 -15
- package/dist/icons/layout/text.js +1 -15
- package/dist/icons/maps/atlas.js +1 -15
- package/dist/icons/maps/compass.js +1 -15
- package/dist/icons/maps/direction.js +1 -15
- package/dist/icons/maps/direction_angled.js +1 -15
- package/dist/icons/maps/globe.js +1 -15
- package/dist/icons/maps/globe_slash.js +1 -15
- package/dist/icons/maps/location.js +1 -15
- package/dist/icons/maps/location_slash.js +1 -15
- package/dist/icons/maps/map.js +1 -15
- package/dist/icons/maps/marker.js +1 -15
- package/dist/icons/maps/panorama.js +1 -15
- package/dist/icons/maps/pin.js +1 -15
- package/dist/icons/maps/pin_arrow.js +1 -15
- package/dist/icons/maps/pin_location.js +1 -15
- package/dist/icons/maps/pin_plus.js +1 -15
- package/dist/icons/maps/pin_question.js +1 -15
- package/dist/icons/maps/pin_slash.js +1 -15
- package/dist/icons/maps/push_pin.js +1 -15
- package/dist/icons/maps/push_pin_filled.js +1 -15
- package/dist/icons/maps/push_pin_slash.js +1 -15
- package/dist/icons/maps/radar.js +1 -15
- package/dist/icons/maps/route.js +1 -15
- package/dist/icons/message/bubble.js +1 -15
- package/dist/icons/message/bubble_question.js +1 -15
- package/dist/icons/message/comment.js +1 -15
- package/dist/icons/message/comment_add.js +1 -15
- package/dist/icons/message/comment_check.js +1 -15
- package/dist/icons/message/comment_close.js +1 -15
- package/dist/icons/message/comment_minus.js +1 -15
- package/dist/icons/message/comment_text.js +1 -15
- package/dist/icons/misc/advertisement.js +1 -15
- package/dist/icons/misc/atom.js +1 -15
- package/dist/icons/misc/bone.js +1 -15
- package/dist/icons/misc/brightness_high.js +1 -15
- package/dist/icons/misc/brightness_low.js +1 -15
- package/dist/icons/misc/contrast.js +1 -15
- package/dist/icons/misc/crosshairs.js +1 -15
- package/dist/icons/misc/crown.js +1 -15
- package/dist/icons/misc/footprint.js +1 -15
- package/dist/icons/misc/form.js +1 -15
- package/dist/icons/misc/funnel.js +1 -15
- package/dist/icons/misc/infinite.js +1 -15
- package/dist/icons/misc/insert_button.js +1 -15
- package/dist/icons/misc/light_bulb.js +1 -15
- package/dist/icons/misc/moon.js +1 -15
- package/dist/icons/misc/nut.js +1 -15
- package/dist/icons/misc/planet.js +1 -15
- package/dist/icons/misc/plus_thick.js +1 -15
- package/dist/icons/misc/pocket.js +1 -15
- package/dist/icons/misc/rocket.js +1 -15
- package/dist/icons/misc/soup.js +1 -19
- package/dist/icons/misc/sun.js +1 -15
- package/dist/icons/misc/toy_horse.js +1 -15
- package/dist/icons/misc/trophy.js +1 -15
- package/dist/icons/misc/watercloset.js +1 -15
- package/dist/icons/notifications/alert_circle.js +1 -15
- package/dist/icons/notifications/alert_octogon.js +1 -15
- package/dist/icons/notifications/alert_triangle.js +1 -15
- package/dist/icons/notifications/app_notification.js +1 -15
- package/dist/icons/notifications/bell.js +1 -15
- package/dist/icons/notifications/bell_alert.js +1 -15
- package/dist/icons/notifications/bell_checkmark.js +1 -15
- package/dist/icons/notifications/bell_minus.js +1 -15
- package/dist/icons/notifications/bell_plus.js +1 -15
- package/dist/icons/notifications/bell_ring.js +1 -17
- package/dist/icons/notifications/bell_slash.js +1 -15
- package/dist/icons/notifications/information.js +1 -15
- package/dist/icons/notifications/minus_octogon.js +1 -15
- package/dist/icons/notifications/question_circle.js +1 -15
- package/dist/icons/people/group.js +1 -15
- package/dist/icons/people/group_add.js +1 -15
- package/dist/icons/people/group_chat.js +1 -17
- package/dist/icons/people/group_remove.js +1 -15
- package/dist/icons/people/group_send.js +1 -16
- package/dist/icons/people/groups.js +1 -15
- package/dist/icons/people/person.js +1 -15
- package/dist/icons/people/person_add.js +1 -15
- package/dist/icons/people/person_checkmark.js +1 -15
- package/dist/icons/people/person_circle.js +1 -17
- package/dist/icons/people/person_close.js +1 -17
- package/dist/icons/people/person_remove.js +1 -15
- package/dist/icons/people/person_slash.js +1 -17
- package/dist/icons/phone/keypad.js +1 -15
- package/dist/icons/phone/phone.js +1 -15
- package/dist/icons/phone/phone_add.js +1 -15
- package/dist/icons/phone/phone_calling.js +1 -15
- package/dist/icons/phone/phone_check.js +1 -15
- package/dist/icons/phone/phone_close.js +1 -15
- package/dist/icons/phone/phone_decline.js +1 -15
- package/dist/icons/phone/phone_forwarded.js +1 -15
- package/dist/icons/phone/phone_hash.js +1 -15
- package/dist/icons/phone/phone_incoming.js +1 -15
- package/dist/icons/phone/phone_outgoing.js +1 -15
- package/dist/icons/phone/phone_pause.js +1 -15
- package/dist/icons/phone/phone_slash.js +1 -15
- package/dist/icons/phone/voicemail.js +1 -15
- package/dist/icons/security/key.js +1 -15
- package/dist/icons/security/key_slash.js +1 -15
- package/dist/icons/security/lock.js +1 -15
- package/dist/icons/security/lock_circle.js +1 -15
- package/dist/icons/security/lock_open.js +1 -15
- package/dist/icons/security/lock_slash.js +1 -15
- package/dist/icons/security/shield.js +1 -15
- package/dist/icons/security/shield_checkmark.js +1 -15
- package/dist/icons/security/shield_lock.js +1 -15
- package/dist/icons/security/shield_slash.js +1 -15
- package/dist/icons/security/verified.js +1 -15
- package/dist/icons/shopping/basket.js +1 -15
- package/dist/icons/shopping/cart.js +1 -15
- package/dist/icons/shopping/cart_filled.js +1 -15
- package/dist/icons/shopping/coupon.js +1 -15
- package/dist/icons/shopping/coupon_cut.js +1 -15
- package/dist/icons/shopping/delivery.js +1 -15
- package/dist/icons/shopping/discount.js +1 -15
- package/dist/icons/shopping/gift.js +1 -15
- package/dist/icons/shopping/gift_bag.js +1 -15
- package/dist/icons/shopping/inventory.js +1 -15
- package/dist/icons/shopping/point_of_sale.js +1 -15
- package/dist/icons/shopping/shirt.js +1 -15
- package/dist/icons/shopping/tag.js +1 -15
- package/dist/icons/shopping/tag_diagonal.js +1 -15
- package/dist/icons/shopping/tote.js +1 -15
- package/dist/icons/special/upload_audio.js +1 -20
- package/dist/icons/special/upload_file.js +1 -15
- package/dist/icons/special/upload_image.js +1 -17
- package/dist/icons/special/upload_video.js +1 -18
- package/dist/icons/symbols/at.js +1 -15
- package/dist/icons/symbols/cc.js +1 -15
- package/dist/icons/symbols/cmd.js +1 -15
- package/dist/icons/symbols/facebook.js +1 -15
- package/dist/icons/symbols/google.js +1 -18
- package/dist/icons/symbols/hash.js +1 -15
- package/dist/icons/symbols/instagram.js +1 -27
- package/dist/icons/symbols/messenger.js +1 -21
- package/dist/icons/symbols/twitter.js +1 -15
- package/dist/icons/technology/battery.js +1 -15
- package/dist/icons/technology/battery_100.js +1 -15
- package/dist/icons/technology/battery_20.js +1 -15
- package/dist/icons/technology/battery_40.js +1 -15
- package/dist/icons/technology/battery_60.js +1 -15
- package/dist/icons/technology/battery_80.js +1 -15
- package/dist/icons/technology/battery_charging.js +1 -15
- package/dist/icons/technology/battery_slash.js +1 -15
- package/dist/icons/technology/devices.js +1 -15
- package/dist/icons/technology/floppy_disk.js +1 -15
- package/dist/icons/technology/iphone.js +1 -15
- package/dist/icons/technology/laptop.js +1 -15
- package/dist/icons/technology/mobile.js +1 -15
- package/dist/icons/technology/monitor.js +1 -15
- package/dist/icons/technology/server.js +1 -15
- package/dist/icons/technology/sim_card.js +1 -15
- package/dist/icons/technology/usb_stick.js +1 -15
- package/dist/icons/text/align_center.js +1 -15
- package/dist/icons/text/align_justified.js +1 -15
- package/dist/icons/text/align_left.js +1 -15
- package/dist/icons/text/align_right.js +1 -15
- package/dist/icons/text/code_block.js +1 -15
- package/dist/icons/text/divider.js +1 -15
- package/dist/icons/text/footnote.js +1 -17
- package/dist/icons/text/indent_decrease.js +1 -15
- package/dist/icons/text/indent_increase.js +1 -15
- package/dist/icons/text/list_ordered.js +1 -15
- package/dist/icons/text/list_unordered.js +1 -15
- package/dist/icons/text/quote.js +1 -15
- package/dist/icons/text/table.js +1 -15
- package/dist/icons/time/alarm.js +1 -15
- package/dist/icons/time/alarm_checkmark.js +1 -15
- package/dist/icons/time/alarm_minus.js +1 -15
- package/dist/icons/time/alarm_plus.js +1 -15
- package/dist/icons/time/alarm_slash.js +1 -15
- package/dist/icons/time/alarm_snooze.js +1 -15
- package/dist/icons/time/calendar.js +1 -15
- package/dist/icons/time/calendar_add.js +1 -15
- package/dist/icons/time/calendar_checkmark.js +1 -15
- package/dist/icons/time/calendar_close.js +1 -15
- package/dist/icons/time/calendar_dates.js +1 -15
- package/dist/icons/time/calendar_minus.js +1 -15
- package/dist/icons/time/calendar_plus.js +1 -15
- package/dist/icons/time/calendar_scroll.js +1 -17
- package/dist/icons/time/clock.js +1 -15
- package/dist/icons/time/clock_history.js +1 -15
- package/dist/icons/time/stopwatch.js +1 -15
- package/dist/icons/time/timer.js +1 -15
- package/dist/icons/time/watch.js +1 -15
- package/dist/index.js +1 -117
- package/dist/styles/output.css +1776 -0
- package/dist/utils/date.js +1 -73
- package/dist/utils/function.js +1 -5
- package/package.json +4 -3
|
@@ -1,170 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var colors = require('../../../common/colors.js');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var button = require('../button/button.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
var upload_audio = require('../../../icons/special/upload_audio.js');
|
|
11
|
-
var upload_file = require('../../../icons/special/upload_file.js');
|
|
12
|
-
var upload_image = require('../../../icons/special/upload_image.js');
|
|
13
|
-
var upload_video = require('../../../icons/special/upload_video.js');
|
|
14
|
-
|
|
15
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
|
-
|
|
17
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
|
-
|
|
19
|
-
const Upload = ({ background = 'hue-blue-3', borderColor = 'hue-blue-2', children, iconColor = 'primary-blue-2', multiple, onDrop, size = 'large', subtext, text, type, height, }) => {
|
|
20
|
-
const filesRef = React__default.default.useRef(null);
|
|
21
|
-
const [draggingOver, setDraggingOver] = React__default.default.useState(false);
|
|
22
|
-
const fileTypeLookup = {
|
|
23
|
-
video: 'video/*',
|
|
24
|
-
audio: 'audio/*',
|
|
25
|
-
image: 'image/*',
|
|
26
|
-
file: '.xlsx, .xls, .doc, .docx, .ppt, .pptx, .txt, .pdf, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, text/plain, application/pdf,',
|
|
27
|
-
};
|
|
28
|
-
const heightLookup = {
|
|
29
|
-
audio: {
|
|
30
|
-
icon: {
|
|
31
|
-
'fit-content': 28,
|
|
32
|
-
large: 28,
|
|
33
|
-
small: 28,
|
|
34
|
-
},
|
|
35
|
-
height: {
|
|
36
|
-
'fit-content': 281,
|
|
37
|
-
large: 281,
|
|
38
|
-
small: 75,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
file: {
|
|
42
|
-
icon: {
|
|
43
|
-
'fit-content': 68,
|
|
44
|
-
large: 68,
|
|
45
|
-
small: 57,
|
|
46
|
-
},
|
|
47
|
-
height: {
|
|
48
|
-
'fit-content': 281,
|
|
49
|
-
large: 281,
|
|
50
|
-
small: 75,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
image: {
|
|
54
|
-
icon: {
|
|
55
|
-
'fit-content': 162,
|
|
56
|
-
large: 162,
|
|
57
|
-
small: 57,
|
|
58
|
-
},
|
|
59
|
-
height: {
|
|
60
|
-
'fit-content': 281,
|
|
61
|
-
large: 281,
|
|
62
|
-
small: 75,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
video: {
|
|
66
|
-
icon: {
|
|
67
|
-
'fit-content': 140,
|
|
68
|
-
large: 140,
|
|
69
|
-
small: 57,
|
|
70
|
-
},
|
|
71
|
-
height: {
|
|
72
|
-
'fit-content': 336,
|
|
73
|
-
large: 562,
|
|
74
|
-
small: 75,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
const iconProps = {
|
|
79
|
-
color: iconColor,
|
|
80
|
-
size: heightLookup[type].icon[size],
|
|
81
|
-
};
|
|
82
|
-
const iconLookup = {
|
|
83
|
-
audio: React__default.default.createElement(upload_audio.UploadAudio, { ...iconProps }),
|
|
84
|
-
file: React__default.default.createElement(upload_file.UploadFile, { ...iconProps }),
|
|
85
|
-
image: React__default.default.createElement(upload_image.UploadImage, { ...iconProps }),
|
|
86
|
-
video: React__default.default.createElement(upload_video.UploadVideo, { ...iconProps }),
|
|
87
|
-
};
|
|
88
|
-
const handleDragOver = (event) => {
|
|
89
|
-
event.preventDefault();
|
|
90
|
-
setDraggingOver(true);
|
|
91
|
-
};
|
|
92
|
-
const handleDragLeave = (event) => {
|
|
93
|
-
event.preventDefault();
|
|
94
|
-
setDraggingOver(false);
|
|
95
|
-
};
|
|
96
|
-
const handleDrop = (event) => {
|
|
97
|
-
event.preventDefault();
|
|
98
|
-
setDraggingOver(false);
|
|
99
|
-
const files = event.dataTransfer.files;
|
|
100
|
-
const dataTransfer = new DataTransfer();
|
|
101
|
-
for (let i = 0; i < files.length; i++) {
|
|
102
|
-
const file = files.item(i);
|
|
103
|
-
if (file !== null) {
|
|
104
|
-
dataTransfer.items.add(file);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
const fileInput = filesRef.current;
|
|
108
|
-
if (fileInput !== null) {
|
|
109
|
-
fileInput.files = dataTransfer.files;
|
|
110
|
-
if (onDrop) {
|
|
111
|
-
onDrop(fileInput.files);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
const handleFileChange = () => {
|
|
116
|
-
const fileInput = filesRef.current;
|
|
117
|
-
if (fileInput !== null) {
|
|
118
|
-
if (onDrop && fileInput.files && fileInput.files.length) {
|
|
119
|
-
onDrop(fileInput.files);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
const removeFileFromState = () => {
|
|
124
|
-
if (filesRef.current)
|
|
125
|
-
filesRef.current.value = '';
|
|
126
|
-
};
|
|
127
|
-
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
128
|
-
React__default.default.createElement(Wrapper, { "$background": background, "$borderColor": borderColor, "$draggingOver": draggingOver, "$height": height || heightLookup[type].height[size], "$size": size, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop },
|
|
129
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$borderRadius": "medium", "$dir": "column", "$display": "flex", "$gap": 16, "$justify": "center", sx: "height: 100%; width: 100%; svg { flex-shrink: 0; };" },
|
|
130
|
-
iconLookup[type],
|
|
131
|
-
size !== 'small' && (React__default.default.createElement(box.Box, { "$align": "center", "$dir": "column", "$display": "flex", "$gap": 8, "$justify": "center", sx: "width: 100%;" },
|
|
132
|
-
React__default.default.createElement(paragraph.P, { "$textAlign": "center", sx: "width: 100%;" },
|
|
133
|
-
text,
|
|
134
|
-
React__default.default.createElement(button.Button, { onClick: () => filesRef.current?.click(), size: "small", sx: "display: inline;", type: "text" }, "Browse")),
|
|
135
|
-
React__default.default.createElement(paragraph.P, { "$textAlign": "center", sx: "width: 100%;" }, subtext))),
|
|
136
|
-
React__default.default.createElement(Input, { "data-testid": "dropzone-upload-input", ref: filesRef, type: "file", multiple: multiple, accept: fileTypeLookup[type], name: "Files", onChange: handleFileChange }))),
|
|
137
|
-
React__default.default.Children.map(children, (child) => {
|
|
138
|
-
if (React__default.default.isValidElement(child)) {
|
|
139
|
-
return React__default.default.cloneElement(child, {
|
|
140
|
-
handleUpload: () => filesRef.current?.click(),
|
|
141
|
-
removeFileFromState,
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
return child;
|
|
145
|
-
})));
|
|
146
|
-
};
|
|
147
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),colors=require("../../../common/colors.js"),box=require("../../atoms/box/box.js"),button=require("../button/button.js"),paragraph=require("../../atoms/typography/paragraph.js"),upload_audio=require("../../../icons/special/upload_audio.js"),upload_file=require("../../../icons/special/upload_file.js"),upload_image=require("../../../icons/special/upload_image.js"),upload_video=require("../../../icons/special/upload_video.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Upload=({background:e="hue-blue-3",borderColor:t="hue-blue-2",children:a,iconColor:l="primary-blue-2",multiple:i,onDrop:r,size:o="large",subtext:n,text:d,type:u,height:c})=>{const p=React__default.default.useRef(null),[s,f]=React__default.default.useState(!1);var g={audio:{icon:{"fit-content":28,large:28,small:28},height:{"fit-content":281,large:281,small:75}},file:{icon:{"fit-content":68,large:68,small:57},height:{"fit-content":281,large:281,small:75}},image:{icon:{"fit-content":162,large:162,small:57},height:{"fit-content":281,large:281,small:75}},video:{icon:{"fit-content":140,large:140,small:57},height:{"fit-content":336,large:562,small:75}}},l={color:l,size:g[u].icon[o]},l={audio:React__default.default.createElement(upload_audio.UploadAudio,{...l}),file:React__default.default.createElement(upload_file.UploadFile,{...l}),image:React__default.default.createElement(upload_image.UploadImage,{...l}),video:React__default.default.createElement(upload_video.UploadVideo,{...l})};const m=()=>{p.current&&(p.current.value="")};return React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement(Wrapper,{$background:e,$borderColor:t,$draggingOver:s,$height:c||g[u].height[o],$size:o,onDragOver:e=>{e.preventDefault(),f(!0)},onDragLeave:e=>{e.preventDefault(),f(!1)},onDrop:e=>{e.preventDefault(),f(!1);var t=e.dataTransfer.files,a=new DataTransfer;for(let e=0;e<t.length;e++){var l=t.item(e);null!==l&&a.items.add(l)}e=p.current;null!==e&&(e.files=a.files,r)&&r(e.files)}},React__default.default.createElement(box.Box,{$align:"center",$borderRadius:"medium",$dir:"column",$display:"flex",$gap:16,$justify:"center",sx:"height: 100%; width: 100%; svg { flex-shrink: 0; };"},l[u],"small"!==o&&React__default.default.createElement(box.Box,{$align:"center",$dir:"column",$display:"flex",$gap:8,$justify:"center",sx:"width: 100%;"},React__default.default.createElement(paragraph.P,{$textAlign:"center",sx:"width: 100%;"},d,React__default.default.createElement(button.Button,{onClick:()=>p.current?.click(),size:"small",sx:"display: inline;",type:"text"},"Browse")),React__default.default.createElement(paragraph.P,{$textAlign:"center",sx:"width: 100%;"},n)),React__default.default.createElement(Input,{"data-testid":"dropzone-upload-input",ref:p,type:"file",multiple:i,accept:{video:"video/*",audio:"audio/*",image:"image/*",file:".xlsx, .xls, .doc, .docx, .ppt, .pptx, .txt, .pdf, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, text/plain, application/pdf,"}[u],name:"Files",onChange:()=>{var e=p.current;null!==e&&r&&e.files&&e.files.length&&r(e.files)}}))),React__default.default.Children.map(a,e=>React__default.default.isValidElement(e)?React__default.default.cloneElement(e,{handleUpload:()=>p.current?.click(),removeFileFromState:m}):e))},Wrapper=styled.styled.div`
|
|
148
3
|
box-sizing: border-box;
|
|
149
|
-
width: ${({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
? '64px 32px'
|
|
157
|
-
: $size === 'fit-content'
|
|
158
|
-
? '64px 16px'
|
|
159
|
-
: 'initial'};
|
|
160
|
-
background-color: ${({ $background }) => colors.COLORS.includes($background)
|
|
161
|
-
? `var(--color-${$background})`
|
|
162
|
-
: $background};
|
|
163
|
-
border: 2px dashed var(--color-${({ $borderColor }) => $borderColor});
|
|
164
|
-
border-radius: ${({ $size }) => ($size === 'large' ? '16px' : '8px')};
|
|
165
|
-
`;
|
|
166
|
-
const Input = styled.styled.input `
|
|
4
|
+
width: ${({$size:e})=>"large"===e?"100%":"fit-content"===e?"fit-content":"134px"};
|
|
5
|
+
height: ${({$height:e})=>e}px;
|
|
6
|
+
padding: ${({$size:e})=>"large"===e?"64px 32px":"fit-content"===e?"64px 16px":"initial"};
|
|
7
|
+
background-color: ${({$background:e})=>colors.COLORS.includes(e)?`var(--color-${e})`:e};
|
|
8
|
+
border: 2px dashed var(--color-${({$borderColor:e})=>e});
|
|
9
|
+
border-radius: ${({$size:e})=>"large"===e?"16px":"8px"};
|
|
10
|
+
`,Input=styled.styled.input`
|
|
167
11
|
display: none;
|
|
168
|
-
`;
|
|
169
|
-
|
|
170
|
-
exports.Upload = Upload;
|
|
12
|
+
`;exports.Upload=Upload;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var styles = require('../../../common/styles.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
|
|
12
|
-
const Box = ({ $display = 'flex', sx, ...args }) => (React__default.default.createElement(Component, { "$display": $display, "$sx": sx, ...args }));
|
|
13
|
-
const Component = styled.styled.div `
|
|
14
|
-
${({ $display }) => ($display === 'flex' ? 'display: flex;' : '')}
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),styles=require("../../../common/styles.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Box=({$display:e="flex",sx:t,...s})=>React__default.default.createElement(Component,{$display:e,$sx:t,...s}),Component=styled.styled.div`
|
|
3
|
+
${({$display:e})=>"flex"===e?"display: flex;":""}
|
|
15
4
|
${styles.Styles.flex}
|
|
16
5
|
${styles.Styles.backgroundColor}
|
|
17
6
|
${styles.Styles.borderRadius}
|
|
@@ -19,8 +8,5 @@ const Component = styled.styled.div `
|
|
|
19
8
|
${styles.Styles.margin}
|
|
20
9
|
${styles.Styles.padding}
|
|
21
10
|
${styles.Styles.styleable}
|
|
22
|
-
${({
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
exports.Box = Box;
|
|
26
|
-
exports.Component = Component;
|
|
11
|
+
${({$sx:e})=>e||""}
|
|
12
|
+
`;exports.Box=Box,exports.Component=Component;
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const HideButRender = ({ children, displaceContent = false, show = false, styles, }) => {
|
|
10
|
-
return (React__default.default.createElement("div", { style: {
|
|
11
|
-
visibility: show ? 'visible' : 'hidden',
|
|
12
|
-
position: displaceContent || show ? 'initial' : 'absolute',
|
|
13
|
-
zIndex: show ? 'initial' : -100,
|
|
14
|
-
...styles,
|
|
15
|
-
} }, children));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.HideButRender = HideButRender;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const HideButRender=({children:e,displaceContent:t=!1,show:i=!1,styles:a})=>React__default.default.createElement("div",{style:{visibility:i?"visible":"hidden",position:t||i?"initial":"absolute",zIndex:i?"initial":-100,...a}},e);exports.HideButRender=HideButRender;
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
|
|
5
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
-
|
|
7
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
-
|
|
9
|
-
const SecToDuration = ({ seconds }) => {
|
|
10
|
-
if (seconds <= 0)
|
|
11
|
-
throw new Error('Seconds cannot be less than 0');
|
|
12
|
-
if (seconds === 1)
|
|
13
|
-
return React__default.default.createElement(React__default.default.Fragment, null, "1 sec");
|
|
14
|
-
if (seconds < 60)
|
|
15
|
-
return React__default.default.createElement(React__default.default.Fragment, null,
|
|
16
|
-
seconds,
|
|
17
|
-
" secs");
|
|
18
|
-
if (Math.round(seconds / 60) === 1)
|
|
19
|
-
return React__default.default.createElement(React__default.default.Fragment, null, "1 min");
|
|
20
|
-
if (seconds < 3600)
|
|
21
|
-
return React__default.default.createElement(React__default.default.Fragment, null,
|
|
22
|
-
Math.round(seconds / 60),
|
|
23
|
-
" mins");
|
|
24
|
-
if (Math.round(seconds / 36) === 100)
|
|
25
|
-
return React__default.default.createElement(React__default.default.Fragment, null, "1 hr");
|
|
26
|
-
const hours = Math.floor(seconds / 3600);
|
|
27
|
-
const hourText = hours === 1 ? '1 hr' : `${hours} hrs`;
|
|
28
|
-
const min = Math.round((seconds % 3600) / 60);
|
|
29
|
-
const minText = min === 0 ? '' : min === 1 ? '1 min' : `${min} mins`;
|
|
30
|
-
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
31
|
-
hourText,
|
|
32
|
-
" ",
|
|
33
|
-
minText));
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
exports.SecToDuration = SecToDuration;
|
|
1
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const SecToDuration=({seconds:e})=>{if(e<=0)throw new Error("Seconds cannot be less than 0");var t;return 1===e?React__default.default.createElement(React__default.default.Fragment,null,"1 sec"):e<60?React__default.default.createElement(React__default.default.Fragment,null,e," secs"):1===Math.round(e/60)?React__default.default.createElement(React__default.default.Fragment,null,"1 min"):e<3600?React__default.default.createElement(React__default.default.Fragment,null,Math.round(e/60)," mins"):100===Math.round(e/36)?React__default.default.createElement(React__default.default.Fragment,null,"1 hr"):(t=1===(t=Math.floor(e/3600))?"1 hr":t+" hrs",e=Math.round(e%3600/60),React__default.default.createElement(React__default.default.Fragment,null,t," ",0===e?"":1===e?"1 min":e+" mins"))};exports.SecToDuration=SecToDuration;
|
|
@@ -1,40 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
9
|
-
|
|
10
|
-
const TimeAgo = ({ date }) => {
|
|
11
|
-
return React__default.default.createElement(React__default.default.Fragment, null, abbrTimeBeforeDate(date));
|
|
12
|
-
};
|
|
13
|
-
const abbrTimeBeforeDate = (date) => {
|
|
14
|
-
const now = new Date();
|
|
15
|
-
const diff = now.getTime() - date.getTime();
|
|
16
|
-
if (diff < 60000) {
|
|
17
|
-
// under 1 min
|
|
18
|
-
return 'Just now';
|
|
19
|
-
}
|
|
20
|
-
else if (diff < 3600000) {
|
|
21
|
-
// under one hour
|
|
22
|
-
const minutes = Math.floor(diff / 60000);
|
|
23
|
-
return `${minutes} ${minutes === 1 ? 'min' : 'mins'} ago`;
|
|
24
|
-
}
|
|
25
|
-
else if (diff < 86400000) {
|
|
26
|
-
// under one day
|
|
27
|
-
const hours = Math.floor(diff / 3600000);
|
|
28
|
-
return `${hours} ${hours === 1 ? 'hour' : 'hours'} ago`;
|
|
29
|
-
}
|
|
30
|
-
else if (diff < 604800000) {
|
|
31
|
-
// under one week
|
|
32
|
-
const days = Math.floor(diff / 86400000);
|
|
33
|
-
return `${days} ${days === 1 ? 'day' : 'days'} ago`;
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return date.toDateString().slice(4);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
exports.TimeAgo = TimeAgo;
|
|
2
|
+
"use strict";var React=require("react");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const TimeAgo=({date:e})=>React__default.default.createElement(React__default.default.Fragment,null,abbrTimeBeforeDate(e)),abbrTimeBeforeDate=e=>{var t,a=(new Date).getTime()-e.getTime();return a<6e4?"Just now":a<36e5?(t=Math.floor(a/6e4))+` ${1===t?"min":"mins"} ago`:a<864e5?(t=Math.floor(a/36e5))+` ${1===t?"hour":"hours"} ago`:a<6048e5?(t=Math.floor(a/864e5))+` ${1===t?"day":"days"} ago`:e.toDateString().slice(4)};exports.TimeAgo=TimeAgo;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
|
|
12
|
-
const Display = ({ as = 'h1', $fontSize = 64, $lineHeight = 96, $textAlign = 'left', ...rest }) => (React__default.default.createElement(StyledDisplay, { as: as || 'h1', "$fontSize": $fontSize, "$lineHeight": $lineHeight, "$textAlign": $textAlign, ...rest }));
|
|
13
|
-
const StyledDisplay = styled.styled(typography.Typography) `
|
|
14
|
-
font-size: ${({ $fontSize }) => $fontSize + 'px'};
|
|
15
|
-
line-height: ${({ $lineHeight }) => $lineHeight + 'px'};
|
|
16
|
-
text-align: ${({ $textAlign }) => $textAlign || 'left'};
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
exports.Display = Display;
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),typography=require("./typography.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const Display=({as:e="h1",$fontSize:t=64,$lineHeight:a=96,$textAlign:i="left",...l})=>React__default.default.createElement(StyledDisplay,{as:e||"h1",$fontSize:t,$lineHeight:a,$textAlign:i,...l}),StyledDisplay=styled.styled(typography.Typography)`
|
|
3
|
+
font-size: ${({$fontSize:e})=>e+"px"};
|
|
4
|
+
line-height: ${({$lineHeight:e})=>e+"px"};
|
|
5
|
+
text-align: ${({$textAlign:e})=>e||"left"};
|
|
6
|
+
`;exports.Display=Display;
|
|
@@ -1,44 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
|
|
12
|
-
const StyledH = styled.styled(typography.Typography) `
|
|
13
|
-
font-size: ${({ $fontSize }) => $fontSize + 'px'};
|
|
14
|
-
line-height: ${({ $lineHeight }) => $lineHeight + 'px'};
|
|
15
|
-
text-align: ${({ $textAlign }) => $textAlign || 'left'};
|
|
16
|
-
${({ $sx }) => ($sx ? $sx : '')}
|
|
17
|
-
`;
|
|
18
|
-
const H = ({ sx, ...args }) => (React__default.default.createElement(StyledH, { "$sx": sx, ...args }));
|
|
19
|
-
const One = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h1', "$fontSize": 48, "$lineHeight": 64, "$sx": sx, ...rest }));
|
|
20
|
-
One.displayName = 'H.One';
|
|
21
|
-
H.One = One;
|
|
22
|
-
const Two = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h2', "$fontSize": 40, "$lineHeight": 60, "$sx": sx, ...rest }));
|
|
23
|
-
Two.displayName = 'H.Two';
|
|
24
|
-
H.Two = Two;
|
|
25
|
-
const Three = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h3', "$fontSize": 36, "$lineHeight": 54, "$sx": sx, ...rest }));
|
|
26
|
-
Three.displayName = 'H.Three';
|
|
27
|
-
H.Three = Three;
|
|
28
|
-
const Four = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h4', "$fontSize": 32, "$lineHeight": 48, "$sx": sx, ...rest }));
|
|
29
|
-
Four.displayName = 'H.Four';
|
|
30
|
-
H.Four = Four;
|
|
31
|
-
const Five = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h5', "$fontSize": 28, "$lineHeight": 36, "$sx": sx, ...rest }));
|
|
32
|
-
Five.displayName = 'H.Five';
|
|
33
|
-
H.Five = Five;
|
|
34
|
-
const Six = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h6', "$fontSize": 24, "$lineHeight": 36, "$sx": sx, ...rest }));
|
|
35
|
-
Six.displayName = 'H.Six';
|
|
36
|
-
H.Six = Six;
|
|
37
|
-
const Seven = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h6', "$fontSize": 20, "$lineHeight": 28, "$sx": sx, ...rest }));
|
|
38
|
-
Seven.displayName = 'H.Seven';
|
|
39
|
-
H.Seven = Seven;
|
|
40
|
-
const Eight = ({ sx, ...rest }) => (React__default.default.createElement(StyledH, { as: 'h6', "$fontSize": 18, "$lineHeight": 26, "$sx": sx, ...rest }));
|
|
41
|
-
Eight.displayName = 'H.Eight';
|
|
42
|
-
H.Eight = Eight;
|
|
43
|
-
|
|
44
|
-
exports.H = H;
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),typography=require("./typography.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const StyledH=styled.styled(typography.Typography)`
|
|
3
|
+
font-size: ${({$fontSize:e})=>e+"px"};
|
|
4
|
+
line-height: ${({$lineHeight:e})=>e+"px"};
|
|
5
|
+
text-align: ${({$textAlign:e})=>e||"left"};
|
|
6
|
+
${({$sx:e})=>e||""}
|
|
7
|
+
`,H=({sx:e,...t})=>React__default.default.createElement(StyledH,{$sx:e,...t}),One=({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h1",$fontSize:48,$lineHeight:64,$sx:e,...t}),Two=(One.displayName="H.One",H.One=One,({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h2",$fontSize:40,$lineHeight:60,$sx:e,...t})),Three=(Two.displayName="H.Two",H.Two=Two,({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h3",$fontSize:36,$lineHeight:54,$sx:e,...t})),Four=(Three.displayName="H.Three",H.Three=Three,({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h4",$fontSize:32,$lineHeight:48,$sx:e,...t})),Five=(Four.displayName="H.Four",H.Four=Four,({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h5",$fontSize:28,$lineHeight:36,$sx:e,...t})),Six=(Five.displayName="H.Five",H.Five=Five,({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h6",$fontSize:24,$lineHeight:36,$sx:e,...t})),Seven=(Six.displayName="H.Six",H.Six=Six,({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h6",$fontSize:20,$lineHeight:28,$sx:e,...t})),Eight=(Seven.displayName="H.Seven",H.Seven=Seven,({sx:e,...t})=>React__default.default.createElement(StyledH,{as:"h6",$fontSize:18,$lineHeight:26,$sx:e,...t}));Eight.displayName="H.Eight",H.Eight=Eight,exports.H=H;
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var styled = require('styled-components');
|
|
6
|
-
var styles = require('../../../common/styles.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
-
|
|
12
|
-
const P = ({ as = 'p', children, $fontSize = 16, $lineHeight = 24, $textAlign = 'left', sx, ...rest }) => (React__default.default.createElement(StyledP, { as: as, "$fontSize": $fontSize, "$lineHeight": $lineHeight, "$textAlign": $textAlign, "$sx": sx, ...rest }, children));
|
|
13
|
-
const StyledP = styled.styled.p `
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),styles=require("../../../common/styles.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const P=({as:e="p",children:t,$fontSize:l=16,$lineHeight:s=24,$textAlign:i="left",sx:n,...a})=>React__default.default.createElement(StyledP,{as:e,$fontSize:l,$lineHeight:s,$textAlign:i,$sx:n,...a},t),StyledP=styled.styled.p`
|
|
14
3
|
margin: 0px;
|
|
15
4
|
font-family: var(--font-inter);
|
|
16
|
-
font-size: ${({
|
|
17
|
-
line-height: ${({
|
|
18
|
-
text-align: ${({
|
|
5
|
+
font-size: ${({$fontSize:e})=>e+"px"};
|
|
6
|
+
line-height: ${({$lineHeight:e})=>e+"px"};
|
|
7
|
+
text-align: ${({$textAlign:e})=>e||"left"};
|
|
19
8
|
${styles.Styles.color}
|
|
20
9
|
${styles.Styles.weight}
|
|
21
10
|
${styles.Styles.typography}
|
|
22
11
|
${styles.Styles.styleable}
|
|
23
|
-
${({
|
|
24
|
-
${({
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports.P = P;
|
|
12
|
+
${({$textClampLines:e})=>e?styles.Styles.textClamp:""}
|
|
13
|
+
${({$sx:e})=>e||""}
|
|
14
|
+
`;exports.P=P;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var styled = require('styled-components');
|
|
5
|
-
var styles = require('../../../common/styles.js');
|
|
6
|
-
|
|
7
|
-
const Typography = styled.styled.p `
|
|
2
|
+
"use strict";var styled=require("styled-components"),styles=require("../../../common/styles.js");const Typography=styled.styled.p`
|
|
8
3
|
margin: 0px;
|
|
9
4
|
font-family: var(--font-inter);
|
|
10
5
|
${styles.Styles.color}
|
|
11
6
|
${styles.Styles.weight}
|
|
12
7
|
${styles.Styles.typography}
|
|
13
8
|
${styles.Styles.styleable}
|
|
14
|
-
${({
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
exports.Typography = Typography;
|
|
9
|
+
${({$textClampLines:s})=>s?styles.Styles.textClamp:""}
|
|
10
|
+
`;exports.Typography=Typography;
|
|
@@ -1,36 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('next/image');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
15
|
-
|
|
16
|
-
const ActionCard = ({ actions, content, href, image, logo, subtitle, sx, title, }) => {
|
|
17
|
-
const isAnchor = !!href;
|
|
18
|
-
return (React__default.default.createElement(Wrapper, { as: isAnchor ? 'a' : 'div', href: href },
|
|
19
|
-
React__default.default.createElement(Action, { "$backgroundImage": image, "$sx": sx },
|
|
20
|
-
React__default.default.createElement(ImgWrapper, null,
|
|
21
|
-
React__default.default.createElement(Image__default.default, { alt: "", quality: 100, src: image, fill: true })),
|
|
22
|
-
React__default.default.createElement(Figcaption, null,
|
|
23
|
-
React__default.default.createElement(LogoWrapper, null, logo),
|
|
24
|
-
React__default.default.createElement(heading.H, { as: "span", "$mediumBold": true, "$color": "grey-2", "$fontSize": 18, "$lineHeight": 26 }, title),
|
|
25
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle),
|
|
26
|
-
React__default.default.createElement(paragraph.P, { as: "span", "$color": "grey-3", "$fontSize": 14, "$lineHeight": 20, "$textAlign": "center", "$textClampLines": 3, sx: "margin-top: 12px;" }, content),
|
|
27
|
-
React__default.default.createElement(box.Box, { "$display": "flex", "$dir": "row", "$gap": 8, sx: "margin-top: auto; width: 100%;" }, React__default.default.Children.toArray(actions))))));
|
|
28
|
-
};
|
|
29
|
-
const Wrapper = styled.styled.div `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);const ActionCard=({actions:e,content:t,href:a,image:r,logo:o,subtitle:l,sx:i,title:d})=>{var n=!!a;return React__default.default.createElement(Wrapper,{as:n?"a":"div",href:a},React__default.default.createElement(Action,{$backgroundImage:r,$sx:i},React__default.default.createElement(ImgWrapper,null,React__default.default.createElement(Image__default.default,{alt:"",quality:100,src:r,fill:!0})),React__default.default.createElement(Figcaption,null,React__default.default.createElement(LogoWrapper,null,o),React__default.default.createElement(heading.H,{as:"span",$mediumBold:!0,$color:"grey-2",$fontSize:18,$lineHeight:26},d),React__default.default.createElement(paragraph.P,{as:"span",$color:"grey-4",$fontSize:12,$lineHeight:16},l),React__default.default.createElement(paragraph.P,{as:"span",$color:"grey-3",$fontSize:14,$lineHeight:20,$textAlign:"center",$textClampLines:3,sx:"margin-top: 12px;"},t),React__default.default.createElement(box.Box,{$display:"flex",$dir:"row",$gap:8,sx:"margin-top: auto; width: 100%;"},React__default.default.Children.toArray(e)))))},Wrapper=styled.styled.div`
|
|
30
3
|
text-decoration: none;
|
|
31
|
-
${({
|
|
32
|
-
|
|
33
|
-
const Action = styled.styled.figure `
|
|
4
|
+
${({as:e})=>"a"===e?"cursor: pointer;":""}
|
|
5
|
+
`,Action=styled.styled.figure`
|
|
34
6
|
position: relative;
|
|
35
7
|
border-radius: 16px;
|
|
36
8
|
width: 318px;
|
|
@@ -46,9 +18,8 @@ const Action = styled.styled.figure `
|
|
|
46
18
|
border-color: var(--color-primary-blue-3);
|
|
47
19
|
}
|
|
48
20
|
|
|
49
|
-
${({
|
|
50
|
-
|
|
51
|
-
const ImgWrapper = styled.styled.div `
|
|
21
|
+
${({$sx:e})=>e||""};
|
|
22
|
+
`,ImgWrapper=styled.styled.div`
|
|
52
23
|
width: 318px;
|
|
53
24
|
height: 160px;
|
|
54
25
|
position: relative;
|
|
@@ -60,8 +31,7 @@ const ImgWrapper = styled.styled.div `
|
|
|
60
31
|
object-fit: cover;
|
|
61
32
|
border-radius: 16px 16px 0 0;
|
|
62
33
|
}
|
|
63
|
-
|
|
64
|
-
const Figcaption = styled.styled.figcaption `
|
|
34
|
+
`,Figcaption=styled.styled.figcaption`
|
|
65
35
|
position: relative;
|
|
66
36
|
display: flex;
|
|
67
37
|
align-items: center;
|
|
@@ -72,13 +42,10 @@ const Figcaption = styled.styled.figcaption `
|
|
|
72
42
|
background-color: var(--color-white);
|
|
73
43
|
border-radius: 0px 0px 15px 15px;
|
|
74
44
|
text-align: center;
|
|
75
|
-
|
|
76
|
-
const LogoWrapper = styled.styled.div `
|
|
45
|
+
`,LogoWrapper=styled.styled.div`
|
|
77
46
|
position: absolute;
|
|
78
47
|
top: -28px;
|
|
79
48
|
right: calc(50% - 28px);
|
|
80
49
|
border: 4px solid var(--color-white);
|
|
81
50
|
border-radius: 50%;
|
|
82
|
-
`;
|
|
83
|
-
|
|
84
|
-
exports.ActionCard = ActionCard;
|
|
51
|
+
`;exports.ActionCard=ActionCard;
|
|
@@ -1,48 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var Image = require('next/image');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var box = require('../../atoms/box/box.js');
|
|
8
|
-
var heading = require('../../atoms/typography/heading.js');
|
|
9
|
-
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
-
var rate = require('../../actions/rate/rate.js');
|
|
11
|
-
var cart_filled = require('../../../icons/shopping/cart_filled.js');
|
|
12
|
-
var styles = require('../styles.js');
|
|
13
|
-
|
|
14
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
|
-
|
|
16
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
|
-
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
18
|
-
|
|
19
|
-
const AudioEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }) => {
|
|
20
|
-
const hasLogo = !!logo;
|
|
21
|
-
return (React__default.default.createElement(Wrapper, { "$sx": sx, href: href, "$hasPurchaseText": !!purchaseText },
|
|
22
|
-
React__default.default.createElement(Figure, null,
|
|
23
|
-
actionDropdown && React__default.default.createElement(DropdownWrapper, null, actionDropdown),
|
|
24
|
-
!!purchaseText && (React__default.default.createElement(styles.PurchaseTextWrapper, { className: "not-hover" },
|
|
25
|
-
React__default.default.createElement(cart_filled.CartFilled, { color: "yellow-5", size: 24 }),
|
|
26
|
-
React__default.default.createElement(paragraph.P, { "$bold": true, "$color": "white" }, purchaseText))),
|
|
27
|
-
React__default.default.createElement(Image__default.default, { alt: "", className: "thumbnail", height: 228, quality: 100, src: image, width: 228 }),
|
|
28
|
-
React__default.default.createElement(Figcaption, null,
|
|
29
|
-
React__default.default.createElement(box.Box, { "$display": "block", className: "hidden" }, cta),
|
|
30
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
31
|
-
logo,
|
|
32
|
-
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4 },
|
|
33
|
-
React__default.default.createElement(heading.H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
34
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
35
|
-
supportLabel && (React__default.default.createElement(paragraph.P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
36
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 6, className: "hidden inline" }, content),
|
|
37
|
-
React__default.default.createElement(box.Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
38
|
-
React__default.default.createElement(rate.Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
39
|
-
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
40
|
-
"(",
|
|
41
|
-
numRating,
|
|
42
|
-
")"),
|
|
43
|
-
React__default.default.createElement(box.Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React__default.default.Children.toArray(actions)))))));
|
|
44
|
-
};
|
|
45
|
-
const Wrapper = styled.styled.a `
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js"),rate=require("../../actions/rate/rate.js"),cart_filled=require("../../../icons/shopping/cart_filled.js"),styles=require("../styles.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);const AudioEpisodeCard=({actions:e,actionDropdown:a,content:t,cta:r,href:l,image:i,logo:o,numRating:d,purchaseText:n,rating:p,subtitle:s,supportLabel:u,sx:c,title:f})=>{var g=!!o;return React__default.default.createElement(Wrapper,{$sx:c,href:l,$hasPurchaseText:!!n},React__default.default.createElement(Figure,null,a&&React__default.default.createElement(DropdownWrapper,null,a),!!n&&React__default.default.createElement(styles.PurchaseTextWrapper,{className:"not-hover"},React__default.default.createElement(cart_filled.CartFilled,{color:"yellow-5",size:24}),React__default.default.createElement(paragraph.P,{$bold:!0,$color:"white"},n)),React__default.default.createElement(Image__default.default,{alt:"",className:"thumbnail",height:228,quality:100,src:i,width:228}),React__default.default.createElement(Figcaption,null,React__default.default.createElement(box.Box,{$display:"block",className:"hidden"},r),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:16},o,React__default.default.createElement(box.Box,{$dir:"column",$gap:4},React__default.default.createElement(heading.H,{$color:"grey-2",$semiBold:!0,$fontSize:g?18:16},f),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:12,$lineHeight:16},s)),u&&React__default.default.createElement(paragraph.P,{className:"not-hover",$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;"},u)),React__default.default.createElement(paragraph.P,{$color:"grey-5",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:6,className:"hidden inline"},t),React__default.default.createElement(box.Box,{className:"hidden",$align:"center",$dir:"row"},React__default.default.createElement(rate.Rate,{isRateable:!1,percent:p,size:"small"}),React__default.default.createElement(paragraph.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"margin: 0px auto 0px 4px;"},"(",d,")"),React__default.default.createElement(box.Box,{$align:"center",$dir:"row",$gap:8},React__default.default.Children.toArray(e))))))},Wrapper=styled.styled.a`
|
|
46
3
|
cursor: pointer;
|
|
47
4
|
display: block;
|
|
48
5
|
position: relative;
|
|
@@ -55,9 +12,7 @@ const Wrapper = styled.styled.a `
|
|
|
55
12
|
figure {
|
|
56
13
|
transition: width 0.3s;
|
|
57
14
|
width: 213px;
|
|
58
|
-
${({
|
|
59
|
-
? 'background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);'
|
|
60
|
-
: ''}
|
|
15
|
+
${({$hasPurchaseText:e})=>e?"background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);":""}
|
|
61
16
|
|
|
62
17
|
img {
|
|
63
18
|
box-shadow: var(--elevation-3);
|
|
@@ -112,9 +67,8 @@ const Wrapper = styled.styled.a `
|
|
|
112
67
|
}
|
|
113
68
|
}
|
|
114
69
|
|
|
115
|
-
${({
|
|
116
|
-
|
|
117
|
-
const Figure = styled.styled.figure `
|
|
70
|
+
${({$sx:e})=>e||""};
|
|
71
|
+
`,Figure=styled.styled.figure`
|
|
118
72
|
margin: 0px;
|
|
119
73
|
border-radius: 16px;
|
|
120
74
|
|
|
@@ -127,17 +81,13 @@ const Figure = styled.styled.figure `
|
|
|
127
81
|
height: 225px;
|
|
128
82
|
aspect-ratio: 228 / 228;
|
|
129
83
|
}
|
|
130
|
-
|
|
131
|
-
const Figcaption = styled.styled.figcaption `
|
|
84
|
+
`,Figcaption=styled.styled.figcaption`
|
|
132
85
|
display: flex;
|
|
133
86
|
flex-flow: column nowrap;
|
|
134
87
|
gap: 8px;
|
|
135
88
|
padding: 8px;
|
|
136
|
-
|
|
137
|
-
const DropdownWrapper = styled.styled.div `
|
|
89
|
+
`,DropdownWrapper=styled.styled.div`
|
|
138
90
|
position: absolute;
|
|
139
91
|
top: 8px;
|
|
140
92
|
right: 8px;
|
|
141
|
-
`;
|
|
142
|
-
|
|
143
|
-
exports.AudioEpisodeCard = AudioEpisodeCard;
|
|
93
|
+
`;exports.AudioEpisodeCard=AudioEpisodeCard;
|