@soul-refiner/design-system 2.0.0-alpha.26 → 2.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.js +140 -0
- package/dist/common/date.js +34 -0
- package/dist/common/styles.js +66 -0
- package/dist/components/actions/button/button.js +330 -0
- package/dist/components/actions/dropdown/dropdown.js +237 -0
- package/dist/components/actions/rate/rate.js +56 -0
- package/dist/components/actions/switch/switch.js +81 -0
- package/dist/components/actions/toggle/toggle.js +67 -0
- package/dist/components/actions/upload/upload.js +170 -0
- package/dist/components/atoms/box/box.js +26 -0
- package/dist/components/atoms/hide/hide.js +18 -0
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +36 -0
- package/dist/components/atoms/time_ago/time_ago.js +40 -0
- package/dist/components/atoms/typography/display.js +19 -0
- package/dist/components/atoms/typography/heading.js +44 -0
- package/dist/components/atoms/typography/paragraph.js +27 -0
- package/dist/components/atoms/typography/typography.js +17 -0
- package/dist/components/card/action/action.js +84 -0
- package/dist/components/card/audio/audio.js +143 -0
- package/dist/components/card/card.js +34 -0
- package/dist/components/card/feature/feature.js +204 -0
- package/dist/components/card/meeting/meeting.js +152 -0
- package/dist/components/card/person/person.js +83 -0
- package/dist/components/card/price/price.js +89 -0
- package/dist/components/card/regular/regular.js +43 -0
- package/dist/components/card/styles.js +16 -0
- package/dist/components/card/video/video.js +140 -0
- package/dist/components/card/written/written.js +143 -0
- package/dist/components/custom/courses_selection/courses_selection.js +143 -0
- package/dist/components/custom/users_selection/users_selection.js +134 -0
- package/dist/components/editor/constants.js +195 -0
- package/dist/components/editor/context.js +17 -0
- package/dist/components/editor/editor.js +114 -0
- package/dist/components/editor/icons/border-all.js +12 -0
- package/dist/components/editor/icons/border-bottom.js +12 -0
- package/dist/components/editor/icons/border-left.js +12 -0
- package/dist/components/editor/icons/border-none.js +12 -0
- package/dist/components/editor/icons/border-right.js +12 -0
- package/dist/components/editor/icons/border-top.js +12 -0
- package/dist/components/editor/navbar/alignment_dropdown.js +106 -0
- package/dist/components/editor/navbar/button_modal.js +70 -0
- package/dist/components/editor/navbar/navbar.js +225 -0
- package/dist/components/editor/navbar/style_dropdown.js +74 -0
- package/dist/components/editor/plugins/blocks/blockquote.js +17 -0
- package/dist/components/editor/plugins/blocks/blocks.js +54 -0
- package/dist/components/editor/plugins/blocks/buttons.js +91 -0
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +78 -0
- package/dist/components/editor/plugins/blocks/image.js +60 -0
- package/dist/components/editor/plugins/blocks/list.js +26 -0
- package/dist/components/editor/plugins/blocks/media-popover.js +41 -0
- package/dist/components/editor/plugins/blocks/plate-button.js +63 -0
- package/dist/components/editor/plugins/blocks/popover.js +39 -0
- package/dist/components/editor/plugins/blocks/qa.js +55 -0
- package/dist/components/editor/plugins/blocks/resizable.js +48 -0
- package/dist/components/editor/plugins/blocks/separator.js +44 -0
- package/dist/components/editor/plugins/blocks/table-cell.js +48 -0
- package/dist/components/editor/plugins/blocks/table-row.js +16 -0
- package/dist/components/editor/plugins/blocks/table.js +98 -0
- package/dist/components/editor/plugins/blocks/text.js +103 -0
- package/dist/components/editor/plugins/blocks/video.js +42 -0
- package/dist/components/editor/plugins/leafs/leafs.js +37 -0
- package/dist/components/editor/plugins/leafs/link.js +86 -0
- package/dist/components/editor/plugins/marks/marks.js +17 -0
- package/dist/components/editor/plugins/plate.js +43 -0
- package/dist/components/editor/plugins/utils/exitBreak.js +36 -0
- package/dist/components/editor/plugins/utils/resetBlockType.js +26 -0
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +11 -0
- package/dist/components/editor/plugins/utils/softBreak.js +19 -0
- package/dist/components/editor/plugins/utils/utils.js +17 -0
- package/dist/components/editor/simple_editor/navbar.js +128 -0
- package/dist/components/editor/simple_editor/plugins.js +93 -0
- package/dist/components/editor/simple_editor/simple_editor.js +98 -0
- package/dist/components/editor/styles/menu_button.js +36 -0
- package/dist/components/feedback/animated_toast/animated_toast.js +64 -0
- package/dist/components/feedback/badge/badge.js +75 -0
- package/dist/components/feedback/banner/banner.js +95 -0
- package/dist/components/feedback/chip/chip.js +103 -0
- package/dist/components/feedback/loader/loader.js +44 -0
- package/dist/components/feedback/notification/notification.js +87 -0
- package/dist/components/feedback/progress/progress.js +101 -0
- package/dist/components/feedback/toast/toast.js +126 -0
- package/dist/components/feedback/tooltip/tooltip.js +35 -0
- package/dist/components/iconography/avatar/avatar.js +190 -0
- package/dist/components/iconography/avatar/icons/approved.js +14 -0
- package/dist/components/iconography/avatar/icons/busy.js +14 -0
- package/dist/components/iconography/avatar/icons/declined.js +14 -0
- package/dist/components/iconography/avatar/icons/default.js +13 -0
- package/dist/components/iconography/avatar/icons/focus.js +14 -0
- package/dist/components/iconography/avatar/icons/locked.js +14 -0
- package/dist/components/iconography/avatar/icons/offline.js +14 -0
- package/dist/components/iconography/avatar/icons/online.js +13 -0
- package/dist/components/iconography/avatar/icons/subscribed.js +18 -0
- package/dist/components/iconography/icon/icon.js +19 -0
- package/dist/components/input/calendar/calendar.js +267 -0
- package/dist/components/input/checkbox/checkbox.js +32 -0
- package/dist/components/input/date/date.js +529 -0
- package/dist/components/input/filter/filter.js +332 -0
- package/dist/components/input/filter/filter_option.js +82 -0
- package/dist/components/input/radio/radio.js +92 -0
- package/dist/components/input/search/search.js +148 -0
- package/dist/components/input/select/select.js +56 -0
- package/dist/components/input/text_area/text_area.js +120 -0
- package/dist/components/input/text_input/text_input.js +157 -0
- package/dist/components/input/time/time.js +80 -0
- package/dist/components/media/video/video.js +42 -0
- package/dist/components/media/video-player/playlist-item.js +48 -0
- package/dist/components/media/video-player/video.js +210 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +119 -0
- package/dist/components/navigation/inner/inner.js +199 -0
- package/dist/components/navigation/tabs/tabs.js +159 -0
- package/dist/components/surfaces/accordion/accordion.js +56 -0
- package/dist/components/surfaces/calendar_date/calendar_date.js +55 -0
- package/dist/components/surfaces/carousel/card/card.js +106 -0
- package/dist/components/surfaces/comment/comment.js +210 -0
- package/dist/components/surfaces/comment/helpers.js +30 -0
- package/dist/components/surfaces/drawer/drawer.js +140 -0
- package/dist/components/surfaces/message/message.js +56 -0
- package/dist/components/surfaces/modal/modal.js +135 -0
- package/dist/components/surfaces/portal/portal.js +36 -0
- package/dist/components/surfaces/post/post.js +246 -0
- package/dist/components/table/table/table.js +192 -0
- package/dist/icons/arrow/arrow_all.js +15 -0
- package/dist/icons/arrow/arrow_all_diagonal.js +15 -0
- package/dist/icons/arrow/arrow_both_downwards.js +15 -0
- package/dist/icons/arrow/arrow_both_upwards.js +15 -0
- package/dist/icons/arrow/arrow_circle_left.js +15 -0
- package/dist/icons/arrow/arrow_circle_left_double.js +15 -0
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +17 -0
- package/dist/icons/arrow/arrow_circle_right.js +15 -0
- package/dist/icons/arrow/arrow_circle_right_double.js +15 -0
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_down_left.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_down_right.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_up_left.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_up_right.js +15 -0
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +15 -0
- package/dist/icons/arrow/arrow_down.js +15 -0
- package/dist/icons/arrow/arrow_down_bold.js +15 -0
- package/dist/icons/arrow/arrow_down_circle.js +15 -0
- package/dist/icons/arrow/arrow_left.js +15 -0
- package/dist/icons/arrow/arrow_left_bold.js +15 -0
- package/dist/icons/arrow/arrow_left_circle.js +15 -0
- package/dist/icons/arrow/arrow_left_curved.js +15 -0
- package/dist/icons/arrow/arrow_left_curved_circle.js +15 -0
- package/dist/icons/arrow/arrow_right.js +15 -0
- package/dist/icons/arrow/arrow_right_bold.js +15 -0
- package/dist/icons/arrow/arrow_right_circle.js +15 -0
- package/dist/icons/arrow/arrow_right_curved.js +15 -0
- package/dist/icons/arrow/arrow_right_curved_circle.js +15 -0
- package/dist/icons/arrow/arrow_up.js +15 -0
- package/dist/icons/arrow/arrow_up_bold.js +15 -0
- package/dist/icons/arrow/arrow_up_circle.js +15 -0
- package/dist/icons/arrow/chevron_down.js +15 -0
- package/dist/icons/arrow/chevron_down_circle.js +15 -0
- package/dist/icons/arrow/chevron_down_double.js +15 -0
- package/dist/icons/arrow/chevron_down_double_circle.js +15 -0
- package/dist/icons/arrow/chevron_left.js +15 -0
- package/dist/icons/arrow/chevron_left_circle.js +15 -0
- package/dist/icons/arrow/chevron_left_double.js +15 -0
- package/dist/icons/arrow/chevron_left_double_circle.js +15 -0
- package/dist/icons/arrow/chevron_right.js +15 -0
- package/dist/icons/arrow/chevron_right_circle.js +15 -0
- package/dist/icons/arrow/chevron_right_double.js +15 -0
- package/dist/icons/arrow/chevron_right_double_circle.js +15 -0
- package/dist/icons/arrow/chevron_scroll.js +15 -0
- package/dist/icons/arrow/chevron_up.js +15 -0
- package/dist/icons/arrow/chevron_up_circle.js +15 -0
- package/dist/icons/arrow/chevron_up_double.js +15 -0
- package/dist/icons/arrow/chevron_up_double_circle.js +15 -0
- package/dist/icons/arrow/forward_all.js +15 -0
- package/dist/icons/arrow/forward_all_bold.js +15 -0
- package/dist/icons/arrow/forward_bold.js +15 -0
- package/dist/icons/arrow/redo.js +15 -0
- package/dist/icons/arrow/redo_bold.js +15 -0
- package/dist/icons/arrow/reply.js +15 -0
- package/dist/icons/arrow/reply_all.js +15 -0
- package/dist/icons/arrow/reply_all_bold.js +15 -0
- package/dist/icons/arrow/reply_bold.js +15 -0
- package/dist/icons/arrow/undo.js +15 -0
- package/dist/icons/arrow/undo_bold.js +15 -0
- package/dist/icons/audio_video/drag_indicator.js +15 -0
- package/dist/icons/audio_video/eject.js +15 -0
- package/dist/icons/audio_video/equalizer.js +15 -0
- package/dist/icons/audio_video/fast_forward.js +15 -0
- package/dist/icons/audio_video/fast_forward_30.js +15 -0
- package/dist/icons/audio_video/fullscreen.js +15 -0
- package/dist/icons/audio_video/headphones.js +15 -0
- package/dist/icons/audio_video/library_add.js +15 -0
- package/dist/icons/audio_video/library_music.js +15 -0
- package/dist/icons/audio_video/microphone.js +15 -0
- package/dist/icons/audio_video/musical_note.js +15 -0
- package/dist/icons/audio_video/next.js +15 -0
- package/dist/icons/audio_video/pause.js +15 -0
- package/dist/icons/audio_video/pause_circle.js +15 -0
- package/dist/icons/audio_video/play.js +15 -0
- package/dist/icons/audio_video/play_circle.js +15 -0
- package/dist/icons/audio_video/play_display.js +15 -0
- package/dist/icons/audio_video/play_pause.js +15 -0
- package/dist/icons/audio_video/play_solid.js +15 -0
- package/dist/icons/audio_video/player_list.js +15 -0
- package/dist/icons/audio_video/player_list_add.js +15 -0
- package/dist/icons/audio_video/player_list_play.js +15 -0
- package/dist/icons/audio_video/previous.js +15 -0
- package/dist/icons/audio_video/radio.js +15 -0
- package/dist/icons/audio_video/record.js +15 -0
- package/dist/icons/audio_video/repeat.js +15 -0
- package/dist/icons/audio_video/rewind.js +15 -0
- package/dist/icons/audio_video/rewind_30.js +15 -0
- package/dist/icons/audio_video/shuffle.js +15 -0
- package/dist/icons/audio_video/sound_wave.js +15 -0
- package/dist/icons/audio_video/stop.js +15 -0
- package/dist/icons/audio_video/stop_circle.js +15 -0
- package/dist/icons/audio_video/subscriptions.js +15 -0
- package/dist/icons/audio_video/tuner.js +15 -0
- package/dist/icons/audio_video/volume.js +15 -0
- package/dist/icons/audio_video/volume_high.js +15 -0
- package/dist/icons/audio_video/volume_low.js +15 -0
- package/dist/icons/audio_video/volume_slash.js +15 -0
- package/dist/icons/basic/aa_sansserif.js +16 -0
- package/dist/icons/basic/aa_serif.js +16 -0
- package/dist/icons/basic/anchor.js +17 -0
- package/dist/icons/basic/bible.js +15 -0
- package/dist/icons/basic/bold.js +15 -0
- package/dist/icons/basic/book.js +15 -0
- package/dist/icons/basic/book_open.js +15 -0
- package/dist/icons/basic/bookmark.js +15 -0
- package/dist/icons/basic/bookmark_add.js +15 -0
- package/dist/icons/basic/bookmark_slash.js +15 -0
- package/dist/icons/basic/bookmarks.js +15 -0
- package/dist/icons/basic/books.js +18 -0
- package/dist/icons/basic/box.js +15 -0
- package/dist/icons/basic/briefcase.js +15 -0
- package/dist/icons/basic/browse_activity.js +15 -0
- package/dist/icons/basic/browser.js +15 -0
- package/dist/icons/basic/browser_slash.js +15 -0
- package/dist/icons/basic/calculator.js +15 -0
- package/dist/icons/basic/camera.js +15 -0
- package/dist/icons/basic/camera_add.js +15 -0
- package/dist/icons/basic/camera_slash.js +15 -0
- package/dist/icons/basic/checkmark.js +15 -0
- package/dist/icons/basic/checkmark_circle.js +17 -0
- package/dist/icons/basic/checkmark_filled.js +15 -0
- package/dist/icons/basic/checkmarks.js +15 -0
- package/dist/icons/basic/circle.js +15 -0
- package/dist/icons/basic/circle_slash.js +17 -0
- package/dist/icons/basic/clear_text_style.js +15 -0
- package/dist/icons/basic/close.js +15 -0
- package/dist/icons/basic/close_circle.js +15 -0
- package/dist/icons/basic/close_filled.js +15 -0
- package/dist/icons/basic/copy.js +15 -0
- package/dist/icons/basic/delete.js +15 -0
- package/dist/icons/basic/detail.js +15 -0
- package/dist/icons/basic/dot.js +15 -0
- package/dist/icons/basic/download.js +15 -0
- package/dist/icons/basic/download_arrow.js +15 -0
- package/dist/icons/basic/droplet.js +17 -0
- package/dist/icons/basic/ellipsis_horizontal.js +15 -0
- package/dist/icons/basic/ellipsis_horizontal_circle.js +15 -0
- package/dist/icons/basic/ellipsis_vertical.js +15 -0
- package/dist/icons/basic/ellipsis_vertical_circle.js +15 -0
- package/dist/icons/basic/eye.js +15 -0
- package/dist/icons/basic/eye_slash.js +15 -0
- package/dist/icons/basic/fingerprint.js +15 -0
- package/dist/icons/basic/flag.js +15 -0
- package/dist/icons/basic/flag_wave.js +15 -0
- package/dist/icons/basic/flag_wave_filled.js +15 -0
- package/dist/icons/basic/flame.js +15 -0
- package/dist/icons/basic/gauge.js +15 -0
- package/dist/icons/basic/glasses.js +15 -0
- package/dist/icons/basic/graduation_cap.js +15 -0
- package/dist/icons/basic/hashmark.js +15 -0
- package/dist/icons/basic/heart.js +15 -0
- package/dist/icons/basic/heart_slash.js +15 -0
- package/dist/icons/basic/highlighter.js +15 -0
- package/dist/icons/basic/home.js +15 -0
- package/dist/icons/basic/image.js +15 -0
- package/dist/icons/basic/inbox.js +15 -0
- package/dist/icons/basic/italic.js +15 -0
- package/dist/icons/basic/layers.js +15 -0
- package/dist/icons/basic/lightening.js +15 -0
- package/dist/icons/basic/lightening_slash.js +15 -0
- package/dist/icons/basic/link.js +15 -0
- package/dist/icons/basic/link_slash.js +15 -0
- package/dist/icons/basic/loudspeaker.js +15 -0
- package/dist/icons/basic/maximize.js +15 -0
- package/dist/icons/basic/menu.js +15 -0
- package/dist/icons/basic/menu_circle.js +15 -0
- package/dist/icons/basic/menu_dots.js +15 -0
- package/dist/icons/basic/microphone_slash.js +15 -0
- package/dist/icons/basic/minimize.js +15 -0
- package/dist/icons/basic/minus.js +15 -0
- package/dist/icons/basic/minus_circle.js +15 -0
- package/dist/icons/basic/move_item.js +15 -0
- package/dist/icons/basic/new.js +15 -0
- package/dist/icons/basic/newspaper.js +15 -0
- package/dist/icons/basic/node.js +15 -0
- package/dist/icons/basic/note_pad.js +16 -0
- package/dist/icons/basic/options.js +15 -0
- package/dist/icons/basic/paint_brush.js +15 -0
- package/dist/icons/basic/paperclip.js +15 -0
- package/dist/icons/basic/paperclip_slash.js +15 -0
- package/dist/icons/basic/pencil.js +15 -0
- package/dist/icons/basic/pencil_pad.js +15 -0
- package/dist/icons/basic/plus.js +15 -0
- package/dist/icons/basic/plus_circle.js +15 -0
- package/dist/icons/basic/presentation.js +15 -0
- package/dist/icons/basic/printer.js +15 -0
- package/dist/icons/basic/profile.js +15 -0
- package/dist/icons/basic/profile_check.js +15 -0
- package/dist/icons/basic/pulse.js +15 -0
- package/dist/icons/basic/qr_code.js +15 -0
- package/dist/icons/basic/resize.js +17 -0
- package/dist/icons/basic/scan.js +15 -0
- package/dist/icons/basic/scissors.js +15 -0
- package/dist/icons/basic/screenshot.js +15 -0
- package/dist/icons/basic/search.js +15 -0
- package/dist/icons/basic/select_item.js +16 -0
- package/dist/icons/basic/settings.js +15 -0
- package/dist/icons/basic/share.js +15 -0
- package/dist/icons/basic/share_external.js +15 -0
- package/dist/icons/basic/square.js +15 -0
- package/dist/icons/basic/star.js +15 -0
- package/dist/icons/basic/star_circle.js +15 -0
- package/dist/icons/basic/star_filled.js +15 -0
- package/dist/icons/basic/star_filled_half.js +15 -0
- package/dist/icons/basic/star_slash.js +15 -0
- package/dist/icons/basic/sticker.js +15 -0
- package/dist/icons/basic/strikethrough.js +15 -0
- package/dist/icons/basic/subtask.js +16 -0
- package/dist/icons/basic/tax.js +18 -0
- package/dist/icons/basic/text_bg_color.js +15 -0
- package/dist/icons/basic/text_color.js +15 -0
- package/dist/icons/basic/textbox.js +15 -0
- package/dist/icons/basic/thumbs_down.js +15 -0
- package/dist/icons/basic/thumbs_up.js +15 -0
- package/dist/icons/basic/thumbs_up_filled.js +15 -0
- package/dist/icons/basic/toggle_left.js +15 -0
- package/dist/icons/basic/toggle_right.js +15 -0
- package/dist/icons/basic/translate.js +15 -0
- package/dist/icons/basic/trash.js +15 -0
- package/dist/icons/basic/trash_slash.js +15 -0
- package/dist/icons/basic/underline.js +15 -0
- package/dist/icons/basic/upload.js +15 -0
- package/dist/icons/basic/video.js +15 -0
- package/dist/icons/basic/video_add.js +16 -0
- package/dist/icons/basic/video_slash.js +15 -0
- package/dist/icons/basic/wrench.js +15 -0
- package/dist/icons/basic/zoom_in.js +15 -0
- package/dist/icons/basic/zoom_out.js +15 -0
- package/dist/icons/data/bar_chart.js +15 -0
- package/dist/icons/data/bar_chart_downward.js +15 -0
- package/dist/icons/data/bar_chart_downward_outline.js +15 -0
- package/dist/icons/data/bar_chart_upward.js +15 -0
- package/dist/icons/data/bar_chart_upward_outline.js +15 -0
- package/dist/icons/data/candlestick_chart.js +15 -0
- package/dist/icons/data/four_circles.js +15 -0
- package/dist/icons/data/legend_toggle.js +15 -0
- package/dist/icons/data/line_chart.js +15 -0
- package/dist/icons/data/line_chart_area.js +15 -0
- package/dist/icons/data/line_chart_area_shaded.js +15 -0
- package/dist/icons/data/line_chart_double.js +15 -0
- package/dist/icons/data/line_chart_downward.js +15 -0
- package/dist/icons/data/line_chart_node.js +15 -0
- package/dist/icons/data/line_chart_outline.js +15 -0
- package/dist/icons/data/line_chart_search.js +15 -0
- package/dist/icons/data/line_chart_stars.js +15 -0
- package/dist/icons/data/line_chart_upward.js +15 -0
- package/dist/icons/data/pie_chart.js +16 -0
- package/dist/icons/data/tree.js +15 -0
- package/dist/icons/email/mail.js +15 -0
- package/dist/icons/email/mail_check.js +15 -0
- package/dist/icons/email/mail_minus.js +15 -0
- package/dist/icons/email/mail_send.js +15 -0
- package/dist/icons/email/send.js +15 -0
- package/dist/icons/email/send_close.js +15 -0
- package/dist/icons/email/send_schedule.js +15 -0
- package/dist/icons/email/send_text.js +15 -0
- package/dist/icons/emoji/emoji_add.js +15 -0
- package/dist/icons/emoji/laughing.js +15 -0
- package/dist/icons/emoji/neutral.js +15 -0
- package/dist/icons/emoji/sad.js +15 -0
- package/dist/icons/emoji/shocked.js +15 -0
- package/dist/icons/emoji/smile.js +15 -0
- package/dist/icons/file/clipboard.js +15 -0
- package/dist/icons/file/clipboard_check.js +15 -0
- package/dist/icons/file/clipboard_close.js +15 -0
- package/dist/icons/file/clipboard_minus.js +15 -0
- package/dist/icons/file/clipboard_plus.js +15 -0
- package/dist/icons/file/clipboard_text.js +15 -0
- package/dist/icons/file/file.js +15 -0
- package/dist/icons/file/file_add.js +15 -0
- package/dist/icons/file/file_check.js +15 -0
- package/dist/icons/file/file_close.js +15 -0
- package/dist/icons/file/file_code.js +15 -0
- package/dist/icons/file/file_download.js +15 -0
- package/dist/icons/file/file_draft.js +15 -0
- package/dist/icons/file/file_gear.js +16 -0
- package/dist/icons/file/file_minus.js +15 -0
- package/dist/icons/file/file_plus.js +15 -0
- package/dist/icons/file/file_scan.js +15 -0
- package/dist/icons/file/file_shred.js +15 -0
- package/dist/icons/file/file_text.js +15 -0
- package/dist/icons/file/file_upload.js +15 -0
- package/dist/icons/file/folder.js +15 -0
- package/dist/icons/file/folder_add.js +15 -0
- package/dist/icons/file/folder_arrow.js +15 -0
- package/dist/icons/file/folder_check.js +15 -0
- package/dist/icons/file/folder_close.js +15 -0
- package/dist/icons/file/folder_cloud.js +15 -0
- package/dist/icons/file/folder_gear.js +16 -0
- package/dist/icons/file/folder_minus.js +15 -0
- package/dist/icons/file/folder_music.js +15 -0
- package/dist/icons/file/folder_open.js +15 -0
- package/dist/icons/file/folder_plus.js +15 -0
- package/dist/icons/file/folder_zip.js +15 -0
- package/dist/icons/file/note.js +15 -0
- package/dist/icons/file/note_text.js +15 -0
- package/dist/icons/file/pdf.js +15 -0
- package/dist/icons/file/photo.js +15 -0
- package/dist/icons/finance/bitcoin.js +15 -0
- package/dist/icons/finance/coins.js +19 -0
- package/dist/icons/finance/credit_card.js +15 -0
- package/dist/icons/finance/credit_card_add.js +15 -0
- package/dist/icons/finance/credit_card_face.js +15 -0
- package/dist/icons/finance/credit_card_member.js +15 -0
- package/dist/icons/finance/credit_card_outcome.js +15 -0
- package/dist/icons/finance/credit_card_scan.js +15 -0
- package/dist/icons/finance/credit_card_share.js +15 -0
- package/dist/icons/finance/credit_card_slash.js +15 -0
- package/dist/icons/finance/currency_exchange.js +15 -0
- package/dist/icons/finance/dollar.js +15 -0
- package/dist/icons/finance/ethereum.js +15 -0
- package/dist/icons/finance/paypass.js +15 -0
- package/dist/icons/finance/strongbox.js +15 -0
- package/dist/icons/finance/wallet.js +15 -0
- package/dist/icons/index.js +1095 -0
- package/dist/icons/layout/block_align_bottom.js +15 -0
- package/dist/icons/layout/block_align_center.js +15 -0
- package/dist/icons/layout/block_align_left.js +15 -0
- package/dist/icons/layout/block_align_middle.js +15 -0
- package/dist/icons/layout/block_align_right.js +15 -0
- package/dist/icons/layout/block_align_top.js +15 -0
- package/dist/icons/layout/block_horizontal.js +15 -0
- package/dist/icons/layout/block_vertical.js +15 -0
- package/dist/icons/layout/edit_shape.js +15 -0
- package/dist/icons/layout/elements.js +15 -0
- package/dist/icons/layout/elements_add.js +15 -0
- package/dist/icons/layout/elements_filled.js +15 -0
- package/dist/icons/layout/elements_masonry.js +15 -0
- package/dist/icons/layout/frame.js +15 -0
- package/dist/icons/layout/frame_stack.js +15 -0
- package/dist/icons/layout/grid.js +15 -0
- package/dist/icons/layout/grid_column_three.js +15 -0
- package/dist/icons/layout/grid_column_two.js +15 -0
- package/dist/icons/layout/grid_dynamic.js +15 -0
- package/dist/icons/layout/grid_frame.js +15 -0
- package/dist/icons/layout/grid_row_three.js +15 -0
- package/dist/icons/layout/grid_row_two.js +15 -0
- package/dist/icons/layout/grid_six.js +15 -0
- package/dist/icons/layout/grid_small.js +15 -0
- package/dist/icons/layout/iframe.js +15 -0
- package/dist/icons/layout/kanban.js +15 -0
- package/dist/icons/layout/layout.js +15 -0
- package/dist/icons/layout/list.js +15 -0
- package/dist/icons/layout/list_filled.js +20 -0
- package/dist/icons/layout/padding.js +15 -0
- package/dist/icons/layout/page_break.js +15 -0
- package/dist/icons/layout/rotate_left.js +15 -0
- package/dist/icons/layout/rotate_right.js +15 -0
- package/dist/icons/layout/ruler.js +15 -0
- package/dist/icons/layout/segment.js +15 -0
- package/dist/icons/layout/select_area.js +15 -0
- package/dist/icons/layout/select_boundary.js +15 -0
- package/dist/icons/layout/sidebar_left.js +15 -0
- package/dist/icons/layout/sidebar_right.js +15 -0
- package/dist/icons/layout/slides.js +15 -0
- package/dist/icons/layout/slides_horizontal.js +15 -0
- package/dist/icons/layout/slides_vertical.js +20 -0
- package/dist/icons/layout/stack.js +15 -0
- package/dist/icons/layout/text.js +15 -0
- package/dist/icons/maps/atlas.js +15 -0
- package/dist/icons/maps/compass.js +15 -0
- package/dist/icons/maps/direction.js +15 -0
- package/dist/icons/maps/direction_angled.js +15 -0
- package/dist/icons/maps/globe.js +15 -0
- package/dist/icons/maps/globe_slash.js +15 -0
- package/dist/icons/maps/location.js +15 -0
- package/dist/icons/maps/location_slash.js +15 -0
- package/dist/icons/maps/map.js +15 -0
- package/dist/icons/maps/marker.js +15 -0
- package/dist/icons/maps/panorama.js +15 -0
- package/dist/icons/maps/pin.js +15 -0
- package/dist/icons/maps/pin_arrow.js +15 -0
- package/dist/icons/maps/pin_location.js +15 -0
- package/dist/icons/maps/pin_plus.js +15 -0
- package/dist/icons/maps/pin_question.js +15 -0
- package/dist/icons/maps/pin_slash.js +15 -0
- package/dist/icons/maps/push_pin.js +15 -0
- package/dist/icons/maps/push_pin_filled.js +15 -0
- package/dist/icons/maps/push_pin_slash.js +15 -0
- package/dist/icons/maps/radar.js +15 -0
- package/dist/icons/maps/route.js +15 -0
- package/dist/icons/message/bubble.js +15 -0
- package/dist/icons/message/bubble_question.js +15 -0
- package/dist/icons/message/comment.js +15 -0
- package/dist/icons/message/comment_add.js +15 -0
- package/dist/icons/message/comment_check.js +15 -0
- package/dist/icons/message/comment_close.js +15 -0
- package/dist/icons/message/comment_minus.js +15 -0
- package/dist/icons/message/comment_text.js +15 -0
- package/dist/icons/misc/advertisement.js +15 -0
- package/dist/icons/misc/atom.js +15 -0
- package/dist/icons/misc/bone.js +15 -0
- package/dist/icons/misc/brightness_high.js +15 -0
- package/dist/icons/misc/brightness_low.js +15 -0
- package/dist/icons/misc/contrast.js +15 -0
- package/dist/icons/misc/crosshairs.js +15 -0
- package/dist/icons/misc/crown.js +15 -0
- package/dist/icons/misc/footprint.js +15 -0
- package/dist/icons/misc/form.js +15 -0
- package/dist/icons/misc/funnel.js +15 -0
- package/dist/icons/misc/infinite.js +15 -0
- package/dist/icons/misc/insert_button.js +15 -0
- package/dist/icons/misc/light_bulb.js +15 -0
- package/dist/icons/misc/moon.js +15 -0
- package/dist/icons/misc/nut.js +15 -0
- package/dist/icons/misc/planet.js +15 -0
- package/dist/icons/misc/plus_thick.js +15 -0
- package/dist/icons/misc/pocket.js +15 -0
- package/dist/icons/misc/rocket.js +15 -0
- package/dist/icons/misc/soup.js +19 -0
- package/dist/icons/misc/sun.js +15 -0
- package/dist/icons/misc/toy_horse.js +15 -0
- package/dist/icons/misc/trophy.js +15 -0
- package/dist/icons/misc/watercloset.js +15 -0
- package/dist/icons/notifications/alert_circle.js +15 -0
- package/dist/icons/notifications/alert_octogon.js +15 -0
- package/dist/icons/notifications/alert_triangle.js +15 -0
- package/dist/icons/notifications/app_notification.js +15 -0
- package/dist/icons/notifications/bell.js +15 -0
- package/dist/icons/notifications/bell_alert.js +15 -0
- package/dist/icons/notifications/bell_checkmark.js +15 -0
- package/dist/icons/notifications/bell_minus.js +15 -0
- package/dist/icons/notifications/bell_plus.js +15 -0
- package/dist/icons/notifications/bell_ring.js +17 -0
- package/dist/icons/notifications/bell_slash.js +15 -0
- package/dist/icons/notifications/information.js +15 -0
- package/dist/icons/notifications/minus_octogon.js +15 -0
- package/dist/icons/notifications/question_circle.js +15 -0
- package/dist/icons/people/group.js +15 -0
- package/dist/icons/people/group_add.js +15 -0
- package/dist/icons/people/group_chat.js +17 -0
- package/dist/icons/people/group_remove.js +15 -0
- package/dist/icons/people/group_send.js +16 -0
- package/dist/icons/people/groups.js +15 -0
- package/dist/icons/people/person.js +15 -0
- package/dist/icons/people/person_add.js +15 -0
- package/dist/icons/people/person_checkmark.js +15 -0
- package/dist/icons/people/person_circle.js +17 -0
- package/dist/icons/people/person_close.js +17 -0
- package/dist/icons/people/person_remove.js +15 -0
- package/dist/icons/people/person_slash.js +17 -0
- package/dist/icons/phone/keypad.js +15 -0
- package/dist/icons/phone/phone.js +15 -0
- package/dist/icons/phone/phone_add.js +15 -0
- package/dist/icons/phone/phone_calling.js +15 -0
- package/dist/icons/phone/phone_check.js +15 -0
- package/dist/icons/phone/phone_close.js +15 -0
- package/dist/icons/phone/phone_decline.js +15 -0
- package/dist/icons/phone/phone_forwarded.js +15 -0
- package/dist/icons/phone/phone_hash.js +15 -0
- package/dist/icons/phone/phone_incoming.js +15 -0
- package/dist/icons/phone/phone_outgoing.js +15 -0
- package/dist/icons/phone/phone_pause.js +15 -0
- package/dist/icons/phone/phone_slash.js +15 -0
- package/dist/icons/phone/voicemail.js +15 -0
- package/dist/icons/security/key.js +15 -0
- package/dist/icons/security/key_slash.js +15 -0
- package/dist/icons/security/lock.js +15 -0
- package/dist/icons/security/lock_circle.js +15 -0
- package/dist/icons/security/lock_open.js +15 -0
- package/dist/icons/security/lock_slash.js +15 -0
- package/dist/icons/security/shield.js +15 -0
- package/dist/icons/security/shield_checkmark.js +15 -0
- package/dist/icons/security/shield_lock.js +15 -0
- package/dist/icons/security/shield_slash.js +15 -0
- package/dist/icons/security/verified.js +15 -0
- package/dist/icons/shopping/basket.js +15 -0
- package/dist/icons/shopping/cart.js +15 -0
- package/dist/icons/shopping/cart_filled.js +15 -0
- package/dist/icons/shopping/coupon.js +15 -0
- package/dist/icons/shopping/coupon_cut.js +15 -0
- package/dist/icons/shopping/delivery.js +15 -0
- package/dist/icons/shopping/discount.js +15 -0
- package/dist/icons/shopping/gift.js +15 -0
- package/dist/icons/shopping/gift_bag.js +15 -0
- package/dist/icons/shopping/inventory.js +15 -0
- package/dist/icons/shopping/point_of_sale.js +15 -0
- package/dist/icons/shopping/shirt.js +15 -0
- package/dist/icons/shopping/tag.js +15 -0
- package/dist/icons/shopping/tag_diagonal.js +15 -0
- package/dist/icons/shopping/tote.js +15 -0
- package/dist/icons/special/upload_audio.js +20 -0
- package/dist/icons/special/upload_file.js +15 -0
- package/dist/icons/special/upload_image.js +17 -0
- package/dist/icons/special/upload_video.js +18 -0
- package/dist/icons/symbols/at.js +15 -0
- package/dist/icons/symbols/cc.js +15 -0
- package/dist/icons/symbols/cmd.js +15 -0
- package/dist/icons/symbols/facebook.js +15 -0
- package/dist/icons/symbols/google.js +18 -0
- package/dist/icons/symbols/hash.js +15 -0
- package/dist/icons/symbols/instagram.js +27 -0
- package/dist/icons/symbols/messenger.js +21 -0
- package/dist/icons/symbols/twitter.js +15 -0
- package/dist/icons/technology/battery.js +15 -0
- package/dist/icons/technology/battery_100.js +15 -0
- package/dist/icons/technology/battery_20.js +15 -0
- package/dist/icons/technology/battery_40.js +15 -0
- package/dist/icons/technology/battery_60.js +15 -0
- package/dist/icons/technology/battery_80.js +15 -0
- package/dist/icons/technology/battery_charging.js +15 -0
- package/dist/icons/technology/battery_slash.js +15 -0
- package/dist/icons/technology/devices.js +15 -0
- package/dist/icons/technology/floppy_disk.js +15 -0
- package/dist/icons/technology/iphone.js +15 -0
- package/dist/icons/technology/laptop.js +15 -0
- package/dist/icons/technology/mobile.js +15 -0
- package/dist/icons/technology/monitor.js +15 -0
- package/dist/icons/technology/server.js +15 -0
- package/dist/icons/technology/sim_card.js +15 -0
- package/dist/icons/technology/usb_stick.js +15 -0
- package/dist/icons/text/align_center.js +15 -0
- package/dist/icons/text/align_justified.js +15 -0
- package/dist/icons/text/align_left.js +15 -0
- package/dist/icons/text/align_right.js +15 -0
- package/dist/icons/text/code_block.js +15 -0
- package/dist/icons/text/divider.js +15 -0
- package/dist/icons/text/footnote.js +17 -0
- package/dist/icons/text/indent_decrease.js +15 -0
- package/dist/icons/text/indent_increase.js +15 -0
- package/dist/icons/text/list_ordered.js +15 -0
- package/dist/icons/text/list_unordered.js +15 -0
- package/dist/icons/text/quote.js +15 -0
- package/dist/icons/text/table.js +15 -0
- package/dist/icons/time/alarm.js +15 -0
- package/dist/icons/time/alarm_checkmark.js +15 -0
- package/dist/icons/time/alarm_minus.js +15 -0
- package/dist/icons/time/alarm_plus.js +15 -0
- package/dist/icons/time/alarm_slash.js +15 -0
- package/dist/icons/time/alarm_snooze.js +15 -0
- package/dist/icons/time/calendar.js +15 -0
- package/dist/icons/time/calendar_add.js +15 -0
- package/dist/icons/time/calendar_checkmark.js +15 -0
- package/dist/icons/time/calendar_close.js +15 -0
- package/dist/icons/time/calendar_dates.js +15 -0
- package/dist/icons/time/calendar_minus.js +15 -0
- package/dist/icons/time/calendar_plus.js +15 -0
- package/dist/icons/time/calendar_scroll.js +17 -0
- package/dist/icons/time/clock.js +15 -0
- package/dist/icons/time/clock_history.js +15 -0
- package/dist/icons/time/stopwatch.js +15 -0
- package/dist/icons/time/timer.js +15 -0
- package/dist/icons/time/watch.js +15 -0
- package/dist/index.js +112 -11878
- package/dist/utils/date.js +73 -0
- package/dist/utils/function.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var button = require('../../actions/button/button.js');
|
|
7
|
+
var close = require('../../../icons/basic/close.js');
|
|
8
|
+
var _function = require('../../../utils/function.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
+
|
|
14
|
+
const ModalContext = React__default.default.createContext([false, (() => undefined)]);
|
|
15
|
+
const Modal = ({ alwaysRender = true, controlledOpen, onChange, children, ...props }) => {
|
|
16
|
+
const [open, setOpen] = React__default.default.useState(controlledOpen || false);
|
|
17
|
+
React__default.default.useEffect(() => {
|
|
18
|
+
if (controlledOpen !== undefined) {
|
|
19
|
+
setOpen(controlledOpen);
|
|
20
|
+
}
|
|
21
|
+
}, [controlledOpen]);
|
|
22
|
+
React__default.default.useEffect(() => {
|
|
23
|
+
onChange && onChange(open);
|
|
24
|
+
}, [open]);
|
|
25
|
+
let trigger;
|
|
26
|
+
const rest = [];
|
|
27
|
+
React__default.default.Children.forEach(children, (child) => {
|
|
28
|
+
const type = React__default.default.isValidElement(child) && child.type?.displayName;
|
|
29
|
+
if (type && type.toLowerCase().includes('trigger')) {
|
|
30
|
+
trigger = child;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
rest.push(child);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return (React__default.default.createElement(ModalContext.Provider, { value: [open, setOpen], ...props },
|
|
37
|
+
trigger,
|
|
38
|
+
(open || alwaysRender) && rest));
|
|
39
|
+
};
|
|
40
|
+
const ModalTrigger = ({ children: child, }) => {
|
|
41
|
+
const [, setOpen] = React__default.default.useContext(ModalContext);
|
|
42
|
+
return (child &&
|
|
43
|
+
React__default.default.cloneElement(child, {
|
|
44
|
+
onClick: _function.callAll(() => setOpen(true), child.props.onClick, (event) => {
|
|
45
|
+
event?.stopPropagation();
|
|
46
|
+
event?.preventDefault();
|
|
47
|
+
}),
|
|
48
|
+
}));
|
|
49
|
+
};
|
|
50
|
+
ModalTrigger.displayName = 'Modal.Trigger';
|
|
51
|
+
Modal.Trigger = ModalTrigger;
|
|
52
|
+
const ModalDismiss = ({ children: child, setClosed, }) => {
|
|
53
|
+
const [, setOpen] = React__default.default.useContext(ModalContext);
|
|
54
|
+
return (child &&
|
|
55
|
+
React__default.default.cloneElement(child, {
|
|
56
|
+
onClick: _function.callAll(() => setOpen(false), child.props.onClick, (event) => {
|
|
57
|
+
setClosed && setClosed();
|
|
58
|
+
event?.stopPropagation();
|
|
59
|
+
event?.preventDefault();
|
|
60
|
+
}),
|
|
61
|
+
}));
|
|
62
|
+
};
|
|
63
|
+
ModalDismiss.displayName = 'Modal.Dismiss';
|
|
64
|
+
Modal.Dismiss = ModalDismiss;
|
|
65
|
+
const ModalContent = ({ backgroundDark = true, children, footer, header, setClosed, sx, ...props }) => {
|
|
66
|
+
const [open, setOpen] = React__default.default.useContext(ModalContext);
|
|
67
|
+
const handleOutsideClick = (event) => {
|
|
68
|
+
if (event.currentTarget != event.target)
|
|
69
|
+
return;
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
event.stopPropagation();
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
setClosed ? setClosed() : setOpen(false);
|
|
74
|
+
};
|
|
75
|
+
return (React__default.default.createElement(Wrapper, { "$backgroundDark": backgroundDark, "$open": open, onClick: handleOutsideClick },
|
|
76
|
+
React__default.default.createElement(Content, { ...props, "$sx": sx },
|
|
77
|
+
header && (React__default.default.createElement("div", { className: "header" },
|
|
78
|
+
React__default.default.createElement("div", null, header),
|
|
79
|
+
React__default.default.createElement(Modal.Dismiss, { setClosed: setClosed },
|
|
80
|
+
React__default.default.createElement(button.Button, { icon: React__default.default.createElement(close.Close, null), type: "special" })))),
|
|
81
|
+
children,
|
|
82
|
+
footer && React__default.default.createElement("div", { className: "footer" }, footer))));
|
|
83
|
+
};
|
|
84
|
+
ModalContent.displayName = 'Modal.Content';
|
|
85
|
+
Modal.Content = ModalContent;
|
|
86
|
+
const Wrapper = styled.styled.div `
|
|
87
|
+
${({ $open }) => $open
|
|
88
|
+
? `display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;`
|
|
92
|
+
: 'display: none;'}
|
|
93
|
+
${({ $backgroundDark }) => $backgroundDark
|
|
94
|
+
? `background: rgba(0, 0, 0, 0.5);
|
|
95
|
+
cursor: pointer;`
|
|
96
|
+
: ''}
|
|
97
|
+
position: fixed;
|
|
98
|
+
top: 0;
|
|
99
|
+
left: 0;
|
|
100
|
+
z-index: 100;
|
|
101
|
+
width: 100vw;
|
|
102
|
+
height: 100vh;
|
|
103
|
+
padding: 0px;
|
|
104
|
+
margin: 0px;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
`;
|
|
107
|
+
const Content = styled.styled.div `
|
|
108
|
+
position: absolute;
|
|
109
|
+
z-index: 101;
|
|
110
|
+
background-color: var(--color-white);
|
|
111
|
+
box-shadow: var(--elevation-2);
|
|
112
|
+
border-radius: var(--small);
|
|
113
|
+
cursor: initial;
|
|
114
|
+
padding: 24px;
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
gap: 24px;
|
|
118
|
+
|
|
119
|
+
[class~='header'] {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
|
|
123
|
+
div:first-child {
|
|
124
|
+
flex: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[class~='footer'] {
|
|
129
|
+
position: relative;
|
|
130
|
+
padding-top: 16px;
|
|
131
|
+
}
|
|
132
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
exports.Modal = Modal;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var ReactDOM = require('react-dom');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
|
|
11
|
+
|
|
12
|
+
const Portal = ({ children, wrapperId = 'root-portal-wrapper', }) => {
|
|
13
|
+
const [wrapper, setWrapper] = React__default.default.useState(null);
|
|
14
|
+
React__default.default.useEffect(() => {
|
|
15
|
+
let element = document.getElementById(wrapperId);
|
|
16
|
+
let portalCreated = false;
|
|
17
|
+
if (!element) {
|
|
18
|
+
portalCreated = true;
|
|
19
|
+
element = document.createElement('div');
|
|
20
|
+
element.setAttribute('id', wrapperId);
|
|
21
|
+
document.body.appendChild(element);
|
|
22
|
+
}
|
|
23
|
+
setWrapper(element);
|
|
24
|
+
return () => {
|
|
25
|
+
if (portalCreated && element?.parentNode) {
|
|
26
|
+
element.parentNode.removeChild(element);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}, [wrapperId]);
|
|
30
|
+
if (!wrapper) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return ReactDOM__default.default.createPortal(children, wrapper);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.Portal = Portal;
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var Image = require('next/image');
|
|
6
|
+
var Link = require('next/link');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
|
+
var heading = require('../../atoms/typography/heading.js');
|
|
9
|
+
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
10
|
+
require('../../atoms/box/box.js');
|
|
11
|
+
require('../../atoms/typography/display.js');
|
|
12
|
+
require('../../atoms/typography/typography.js');
|
|
13
|
+
var time_ago = require('../../atoms/time_ago/time_ago.js');
|
|
14
|
+
var button = require('../../actions/button/button.js');
|
|
15
|
+
var avatar = require('../../iconography/avatar/avatar.js');
|
|
16
|
+
var lock = require('../../../icons/security/lock.js');
|
|
17
|
+
var modal = require('../modal/modal.js');
|
|
18
|
+
var chevron_left = require('../../../icons/arrow/chevron_left.js');
|
|
19
|
+
var chevron_right = require('../../../icons/arrow/chevron_right.js');
|
|
20
|
+
|
|
21
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
22
|
+
|
|
23
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
24
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
25
|
+
var Link__default = /*#__PURE__*/_interopDefaultCompat(Link);
|
|
26
|
+
|
|
27
|
+
const Post = ({ actions, author, authorActive, authorHref, authorImage, avatarTooltipContent, avatarTooltipSx, children, content, createdDate, dropdown, hasComments, id, images, isPaywalled = false, onJoin, }) => {
|
|
28
|
+
const componentId = React__default.default.useId();
|
|
29
|
+
const [curr, setCurr] = React__default.default.useState(-1);
|
|
30
|
+
const [modalContentSize, setModalContentSize] = React__default.default.useState({
|
|
31
|
+
x: '30vw',
|
|
32
|
+
y: '30vh',
|
|
33
|
+
});
|
|
34
|
+
React__default.default.useEffect(() => {
|
|
35
|
+
const handleKeyEvent = (event) => {
|
|
36
|
+
if (event.key === 'ArrowLeft') {
|
|
37
|
+
handleDecrement();
|
|
38
|
+
}
|
|
39
|
+
else if (event.key === 'ArrowRight') {
|
|
40
|
+
handleIncrement();
|
|
41
|
+
}
|
|
42
|
+
else if (event.key === 'Escape' || event.key === 'Enter') {
|
|
43
|
+
setCurr(-1);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
if (typeof document !== 'undefined' && !!images?.length) {
|
|
47
|
+
document.addEventListener('keydown', handleKeyEvent);
|
|
48
|
+
}
|
|
49
|
+
return () => {
|
|
50
|
+
images?.length &&
|
|
51
|
+
document.removeEventListener('keydown', handleKeyEvent);
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
const _actions = React__default.default.Children.toArray(actions);
|
|
55
|
+
const _comments = React__default.default.Children.toArray(children);
|
|
56
|
+
const handleImageLoad = (event) => {
|
|
57
|
+
const { naturalHeight, naturalWidth } = event.target;
|
|
58
|
+
let x = `${naturalWidth}px`;
|
|
59
|
+
let y = `${naturalHeight}px`;
|
|
60
|
+
// if natural size is smaller than window height and width
|
|
61
|
+
if (window?.innerHeight < naturalHeight &&
|
|
62
|
+
window?.innerWidth < naturalWidth) {
|
|
63
|
+
x = `${Math.floor((window.innerHeight * 0.95 * naturalWidth) / naturalHeight)}px`;
|
|
64
|
+
y = `${Math.round((window.innerWidth * 0.95 * naturalHeight) / naturalWidth)}px`;
|
|
65
|
+
// just smaller than height
|
|
66
|
+
}
|
|
67
|
+
else if (window?.innerHeight < naturalHeight) {
|
|
68
|
+
x = `${Math.floor((window.innerHeight * 0.95 * naturalWidth) / naturalHeight)}px`;
|
|
69
|
+
y = '95vh';
|
|
70
|
+
// just smaller than width
|
|
71
|
+
}
|
|
72
|
+
else if (window?.innerWidth < naturalWidth) {
|
|
73
|
+
x = '95vw';
|
|
74
|
+
y = `${Math.round((window.innerWidth * 0.95 * naturalHeight) / naturalWidth)}px`;
|
|
75
|
+
}
|
|
76
|
+
setModalContentSize({ x, y });
|
|
77
|
+
};
|
|
78
|
+
const handleIncrement = () => {
|
|
79
|
+
setCurr((prev) => {
|
|
80
|
+
if (images?.length && prev !== images.length - 1) {
|
|
81
|
+
return prev + 1;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return prev;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
const handleDecrement = () => {
|
|
89
|
+
setCurr((prev) => {
|
|
90
|
+
if (images?.length && prev !== 0) {
|
|
91
|
+
return prev - 1;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return prev;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
return (React__default.default.createElement(Wrapper, { id: id },
|
|
99
|
+
curr > -1 && !!images?.[curr] && (React__default.default.createElement(modal.Modal, { alwaysRender: false, controlledOpen: true, onChange: (open) => !open && setCurr(-1) },
|
|
100
|
+
React__default.default.createElement(modal.Modal.Content, { sx: `
|
|
101
|
+
position: relative;
|
|
102
|
+
height: ${modalContentSize.y};
|
|
103
|
+
width: ${modalContentSize.x};
|
|
104
|
+
margin: 0 auto;
|
|
105
|
+
` },
|
|
106
|
+
React__default.default.createElement(NavArrow, { "$side": "left", "$visible": curr !== 0, onClick: handleDecrement },
|
|
107
|
+
React__default.default.createElement(chevron_left.ChevronLeft, { color: "white", size: 48 })),
|
|
108
|
+
React__default.default.createElement(Image__default.default, { alt: "", fill: true, quality: 100, onLoad: handleImageLoad, priority: true, sizes: "100vw", src: images[curr], style: { objectFit: 'cover' } }),
|
|
109
|
+
React__default.default.createElement(NavArrow, { "$side": "right", "$visible": curr !== images.length - 1, onClick: handleIncrement },
|
|
110
|
+
React__default.default.createElement(chevron_right.ChevronRight, { color: "white", size: 48 }))))),
|
|
111
|
+
React__default.default.createElement(Header, null,
|
|
112
|
+
React__default.default.createElement(avatar.Avatar, { as: !!authorHref ? Link__default.default : 'button', href: authorHref, image: authorImage, size: 64, status: authorActive ? 'online' : undefined, subtitle: React__default.default.createElement(paragraph.P, { as: "span", sx: "vertical-align: top;", "$fontSize": 14, "$lineHeight": 20 },
|
|
113
|
+
React__default.default.createElement(time_ago.TimeAgo, { date: new Date(createdDate) })), title: React__default.default.createElement(heading.H, { as: "span", "$bold": true, "$fontSize": 18, "$lineHeight": 26 }, author), textPosition: "right", tooltipContent: avatarTooltipContent, tooltipSx: avatarTooltipSx, sx: !!authorHref ? 'img { cursor: pointer; }' : undefined }),
|
|
114
|
+
dropdown),
|
|
115
|
+
!!content?.length && (React__default.default.createElement("div", { style: { padding: '16px 24px' } },
|
|
116
|
+
React__default.default.createElement(paragraph.P, { "$textClampLines": isPaywalled ? 2 : undefined }, content))),
|
|
117
|
+
!!images?.length && (React__default.default.createElement(ImagesWrapper, { "$numImages": images.length, "$isPaywalled": isPaywalled },
|
|
118
|
+
images.slice(0, 4).map((url, i) => (React__default.default.createElement(ImageWrapper, { key: `${componentId}${url.slice(0, 15)}${i}` },
|
|
119
|
+
React__default.default.createElement(Image__default.default, { alt: "", fill: true, onClick: () => setCurr(i), quality: 100, src: url, style: { cursor: 'pointer' } })))),
|
|
120
|
+
images.length > 4 && (React__default.default.createElement(heading.H, { as: "p", className: "more-than", "$color": "grey-10", "$fontSize": 28, "$lineHeight": 36, "$semiBold": true },
|
|
121
|
+
"+",
|
|
122
|
+
images.length - 4)))),
|
|
123
|
+
!!images?.length && isPaywalled && (React__default.default.createElement(PaywallWrapper, null,
|
|
124
|
+
React__default.default.createElement(lock.Lock, { size: 40, color: "grey-7" }),
|
|
125
|
+
React__default.default.createElement(paragraph.P, { "$fontSize": 14, "$bold": true, "$lineHeight": 20, "$color": "white" },
|
|
126
|
+
"Become a member",
|
|
127
|
+
React__default.default.createElement("br", null),
|
|
128
|
+
"to unlock this post"),
|
|
129
|
+
React__default.default.createElement(button.Button, { onClick: onJoin, size: "small", sx: "width: 213px;", type: "outlined" }, "Join now"))),
|
|
130
|
+
!!_actions.length && (React__default.default.createElement(ActionsWrapper, null, !isPaywalled && _actions)),
|
|
131
|
+
hasComments && !!_comments.length && (React__default.default.createElement(CommentWrapper, null, _comments))));
|
|
132
|
+
};
|
|
133
|
+
const Wrapper = styled.styled.div `
|
|
134
|
+
position: relative;
|
|
135
|
+
max-width: 700px;
|
|
136
|
+
width: 100%;
|
|
137
|
+
background-color: var(--color-white);
|
|
138
|
+
border-radius: 24px;
|
|
139
|
+
box-shadow: var(--elevation-7);
|
|
140
|
+
|
|
141
|
+
label > div {
|
|
142
|
+
box-shadow: var(--elevation-6);
|
|
143
|
+
border-radius: 16px;
|
|
144
|
+
}
|
|
145
|
+
`;
|
|
146
|
+
const Header = styled.styled.div `
|
|
147
|
+
padding: 16px 24px;
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
align-items: flex-start;
|
|
151
|
+
border-bottom: 1px solid var(--color-grey-9);
|
|
152
|
+
`;
|
|
153
|
+
const ImagesWrapper = styled.styled.div `
|
|
154
|
+
position: relative;
|
|
155
|
+
display: flex;
|
|
156
|
+
gap: 8px;
|
|
157
|
+
flex-flow: row wrap;
|
|
158
|
+
justify-content: space-between;
|
|
159
|
+
|
|
160
|
+
@media screen and (max-width: 532px) {
|
|
161
|
+
overflow-y: auto;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.more-than {
|
|
165
|
+
position: absolute;
|
|
166
|
+
bottom: 94px;
|
|
167
|
+
right: 154px;
|
|
168
|
+
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
${({ $numImages }) => $numImages > 1
|
|
172
|
+
? `
|
|
173
|
+
div {
|
|
174
|
+
min-width: calc(50% - 4px);
|
|
175
|
+
max-width: calc(50% - 4px);
|
|
176
|
+
|
|
177
|
+
flex:1;
|
|
178
|
+
img {
|
|
179
|
+
object-fit: cover;
|
|
180
|
+
width: 100%;
|
|
181
|
+
height: 100%;
|
|
182
|
+
}
|
|
183
|
+
}`
|
|
184
|
+
: `
|
|
185
|
+
div > img {
|
|
186
|
+
object-fit: contain;
|
|
187
|
+
width: 100%;
|
|
188
|
+
height: 100%;
|
|
189
|
+
}
|
|
190
|
+
`}
|
|
191
|
+
|
|
192
|
+
${({ $isPaywalled }) => $isPaywalled
|
|
193
|
+
? /** TODO REMOVE USER CAN CHANGE -> SECURITY */
|
|
194
|
+
`
|
|
195
|
+
filter: blur(10px) brightness(0.6);
|
|
196
|
+
clip-path: inset(0px 0px 0px 0px);`
|
|
197
|
+
: ''}
|
|
198
|
+
`;
|
|
199
|
+
const ImageWrapper = styled.styled.div `
|
|
200
|
+
position: relative;
|
|
201
|
+
aspect-ratio: 700 / 427;
|
|
202
|
+
flex: 1;
|
|
203
|
+
min-width: min(227px, 80vw);
|
|
204
|
+
`;
|
|
205
|
+
const PaywallWrapper = styled.styled.div `
|
|
206
|
+
position: absolute;
|
|
207
|
+
display: flex;
|
|
208
|
+
flex-direction: column;
|
|
209
|
+
gap: 16px;
|
|
210
|
+
align-items: center;
|
|
211
|
+
top: 310px;
|
|
212
|
+
left: 242px;
|
|
213
|
+
`;
|
|
214
|
+
const ActionsWrapper = styled.styled.div `
|
|
215
|
+
display: flex;
|
|
216
|
+
justify-content: space-around;
|
|
217
|
+
align-items: center;
|
|
218
|
+
padding: 24px;
|
|
219
|
+
`;
|
|
220
|
+
const CommentWrapper = styled.styled.div `
|
|
221
|
+
padding: 24px;
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-flow: column nowrap;
|
|
224
|
+
gap: 24px;
|
|
225
|
+
`;
|
|
226
|
+
const NavArrow = styled.styled.button `
|
|
227
|
+
width: 48px;
|
|
228
|
+
height: 150px;
|
|
229
|
+
display: flex;
|
|
230
|
+
align-items: center;
|
|
231
|
+
justify-content: center;
|
|
232
|
+
position: fixed;
|
|
233
|
+
z-index: 100;
|
|
234
|
+
top: calc(50vh - 75px);
|
|
235
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
236
|
+
${({ $side }) => $side}: 0;
|
|
237
|
+
border-radius: ${({ $side }) => $side === 'left' ? '0 12px 12px 0' : '12px 0 0 12px'};
|
|
238
|
+
${({ $visible }) => $visible
|
|
239
|
+
? 'visibility: visible; cursor: pointer;'
|
|
240
|
+
: 'visibility: hidden; pointer-events: none;'}
|
|
241
|
+
&:hover {
|
|
242
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
243
|
+
}
|
|
244
|
+
`;
|
|
245
|
+
|
|
246
|
+
exports.Post = Post;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var box = require('../../atoms/box/box.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 Table = ({ border = true, children, compact, footer, header, separated, striped, sx, padding = 32, }) => {
|
|
13
|
+
return (React__default.default.createElement(box.Box, { "$backgroundColor": "white", "$borderRadius": "large", "$display": "flex", "$dir": "column", "$gap": 32, "$padding": padding, sx: compact ? 'width: fit-content;' : '' },
|
|
14
|
+
!!header && header,
|
|
15
|
+
React__default.default.createElement(box.Box, { "$borderRadius": "small", sx: border ? 'border: 1px solid var(--color-grey-8);' : '' },
|
|
16
|
+
React__default.default.createElement(TableElement, { "$compact": compact, "$separated": separated, "$striped": striped, "$sx": sx }, children)),
|
|
17
|
+
!!footer && footer));
|
|
18
|
+
};
|
|
19
|
+
const TableElement = styled.styled.table `
|
|
20
|
+
width: 100%;
|
|
21
|
+
border-collapse: collapse;
|
|
22
|
+
border-spacing: 0;
|
|
23
|
+
${({ $compact }) => ($compact ? 'width: fit-content;' : '')}
|
|
24
|
+
${({ $separated }) => $separated
|
|
25
|
+
? `
|
|
26
|
+
& > tbody > * {
|
|
27
|
+
border-bottom: 1px solid var(--color-grey-9);
|
|
28
|
+
&:last-child {
|
|
29
|
+
border-bottom: none;
|
|
30
|
+
}
|
|
31
|
+
}`
|
|
32
|
+
: ''}
|
|
33
|
+
${({ $striped }) => $striped
|
|
34
|
+
? `
|
|
35
|
+
& > tbody > *:nth-of-type(even) {
|
|
36
|
+
background-color: var(--color-grey-10);
|
|
37
|
+
}`
|
|
38
|
+
: ''}
|
|
39
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
40
|
+
`;
|
|
41
|
+
/********************************************************
|
|
42
|
+
* Table Head
|
|
43
|
+
*/
|
|
44
|
+
const Head = ({ children, ...rest }) => {
|
|
45
|
+
return React__default.default.createElement(HeadElement, { ...rest }, children);
|
|
46
|
+
};
|
|
47
|
+
const HeadElement = styled.styled.thead `
|
|
48
|
+
tr {
|
|
49
|
+
background-color: var(--color-grey-10);
|
|
50
|
+
border-top-left-radius: 8px;
|
|
51
|
+
border-top-right-radius: 8px;
|
|
52
|
+
|
|
53
|
+
& > *:first-of-type {
|
|
54
|
+
border-top-left-radius: 8px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& > *:last-of-type {
|
|
58
|
+
border-top-right-radius: 8px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
Head.displayName = 'Table.Head';
|
|
63
|
+
Table.Head = Head;
|
|
64
|
+
/********************************************************
|
|
65
|
+
* Table Body
|
|
66
|
+
*/
|
|
67
|
+
const Body = ({ children, ...rest }) => {
|
|
68
|
+
return React__default.default.createElement(BodyElement, { ...rest }, children);
|
|
69
|
+
};
|
|
70
|
+
const BodyElement = styled.styled.tbody `
|
|
71
|
+
& > tr:last-of-type {
|
|
72
|
+
& > *:first-child {
|
|
73
|
+
border-bottom-left-radius: 8px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
& > *:last-child {
|
|
77
|
+
border-bottom-right-radius: 8px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
Body.displayName = 'Table.Body';
|
|
82
|
+
Table.Body = Body;
|
|
83
|
+
/********************************************************
|
|
84
|
+
* Table Foot
|
|
85
|
+
*/
|
|
86
|
+
const Foot = ({ children, ...rest }) => {
|
|
87
|
+
return React__default.default.createElement("tfoot", { ...rest }, children);
|
|
88
|
+
};
|
|
89
|
+
Foot.displayName = 'Table.Foot';
|
|
90
|
+
Table.Footer = Foot;
|
|
91
|
+
const Row = ({ children, disabled, href, hoverable = false, onClick, selected, sx, ...rest }) => {
|
|
92
|
+
const handleClick = href
|
|
93
|
+
? (event) => {
|
|
94
|
+
if (event.metaKey || event.ctrlKey) {
|
|
95
|
+
const win = window.open(href, '_blank');
|
|
96
|
+
win?.focus();
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
window.location.href = href;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
: onClick
|
|
103
|
+
? (event) => {
|
|
104
|
+
onClick(event);
|
|
105
|
+
}
|
|
106
|
+
: undefined;
|
|
107
|
+
return (React__default.default.createElement(RowElement, { onClick: handleClick, "$disabled": disabled, "$hoverable": hoverable, "$isAnchor": !!href, "$selected": selected, "$sx": sx, ...rest }, children));
|
|
108
|
+
};
|
|
109
|
+
const RowElement = styled.styled.tr `
|
|
110
|
+
display: table-row;
|
|
111
|
+
|
|
112
|
+
${({ $disabled }) => $disabled
|
|
113
|
+
? `
|
|
114
|
+
background-color: var(--color-grey-9) !important;
|
|
115
|
+
color: var(--color-grey-7);
|
|
116
|
+
& > * {
|
|
117
|
+
color: var(--color-grey-7) !important;
|
|
118
|
+
}`
|
|
119
|
+
: ''}
|
|
120
|
+
|
|
121
|
+
${({ $disabled, $hoverable }) => !$disabled && $hoverable ? 'background-color: var(--color-grey-9);' : ''}
|
|
122
|
+
|
|
123
|
+
${({ $disabled, $selected }) => !$disabled && $selected ? 'background-color: var(--color-grey-8;' : ''}
|
|
124
|
+
|
|
125
|
+
${({ $disabled, $isAnchor }) => !$disabled && $isAnchor
|
|
126
|
+
? `
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
padding-right: 24px;
|
|
129
|
+
|
|
130
|
+
&:hover {
|
|
131
|
+
background-color: var(--color-grey-10);
|
|
132
|
+
|
|
133
|
+
& > td:last-child {
|
|
134
|
+
position: relative;
|
|
135
|
+
}
|
|
136
|
+
& > td:last-child::after {
|
|
137
|
+
content: "❯";
|
|
138
|
+
color: var(--color-blue-3);
|
|
139
|
+
position: absolute;
|
|
140
|
+
right: 12px;
|
|
141
|
+
top: calc(50% - 11px);
|
|
142
|
+
}
|
|
143
|
+
}`
|
|
144
|
+
: ''}
|
|
145
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
146
|
+
`;
|
|
147
|
+
Row.displayName = 'Table.Row';
|
|
148
|
+
Table.Row = Row;
|
|
149
|
+
const Cell = ({ children, lines, padding = '16px 24px', sx, textAlign = 'left', verticalAlign = 'middle', width, }) => {
|
|
150
|
+
const percentageWidth = width ? width * (1 / 16) + '%' : undefined;
|
|
151
|
+
return (React__default.default.createElement(CellElement, { "$clamp": lines, "$padding": padding, "$sx": sx, "$textAlign": textAlign, "$verticalAlign": verticalAlign, "$width": percentageWidth ? percentageWidth : 'fit-content' },
|
|
152
|
+
React__default.default.createElement("div", null, children)));
|
|
153
|
+
};
|
|
154
|
+
const CellElement = styled.styled.td `
|
|
155
|
+
width: ${({ $width }) => $width};
|
|
156
|
+
height: 20px;
|
|
157
|
+
font-family: var(--font-inter);
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
font-weight: 400;
|
|
160
|
+
line-height: 20px;
|
|
161
|
+
color: var(--color-grey-3);
|
|
162
|
+
vertical-align: ${({ $verticalAlign }) => $verticalAlign ? $verticalAlign : ''};
|
|
163
|
+
text-align: ${({ $textAlign }) => ($textAlign ? $textAlign : '')};
|
|
164
|
+
padding: ${({ $padding }) => $padding};
|
|
165
|
+
${({ $clamp }) => $clamp
|
|
166
|
+
? `
|
|
167
|
+
& > div {
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
text-overflow: ellipsis;
|
|
170
|
+
display: -webkit-box;
|
|
171
|
+
line-clamp: ${$clamp};
|
|
172
|
+
-webkit-line-clamp: ${$clamp};
|
|
173
|
+
-webkit-box-orient: vertical;
|
|
174
|
+
}`
|
|
175
|
+
: ''}
|
|
176
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
177
|
+
`;
|
|
178
|
+
Cell.displayName = 'Table.Cell';
|
|
179
|
+
Table.Cell = Cell;
|
|
180
|
+
const HeaderCell = ({ children, lines, padding = '16px 24px', sx, textAlign = 'left', verticalAlign = 'middle', width, }) => {
|
|
181
|
+
const percentageWidth = width ? width * (100 / 16) + '%' : undefined;
|
|
182
|
+
return (React__default.default.createElement(HeadCellElement, { as: "th", "$clamp": lines, "$padding": padding, "$sx": sx, "$textAlign": textAlign, "$verticalAlign": verticalAlign, "$width": percentageWidth ? percentageWidth : 'fit-content' }, children));
|
|
183
|
+
};
|
|
184
|
+
const HeadCellElement = styled.styled(CellElement) `
|
|
185
|
+
font-size: 16px;
|
|
186
|
+
font-weight: 700;
|
|
187
|
+
line-height: 24px;
|
|
188
|
+
`;
|
|
189
|
+
HeaderCell.displayName = 'Table.HeaderCell';
|
|
190
|
+
Table.HeaderCell = HeaderCell;
|
|
191
|
+
|
|
192
|
+
exports.Table = Table;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var icon = require('../../components/iconography/icon/icon.js');
|
|
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 ArrowAll = (props) => {
|
|
11
|
+
return (React__default.default.createElement(icon.Icon, { ...props },
|
|
12
|
+
React__default.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.0573 8.66671H8.66677V13.0572L10.1954 11.5286L11.1382 12.4714L8.0001 15.6095L4.86203 12.4714L5.80484 11.5286L7.33343 13.0572V8.66671H2.94291L4.47151 10.1953L3.5287 11.1381L0.390625 8.00004L3.5287 4.86197L4.47151 5.80478L2.94291 7.33337H7.33343V2.94285L5.80484 4.47144L4.86203 3.52864L8.0001 0.390564L11.1382 3.52864L10.1954 4.47144L8.66677 2.94285V7.33337H13.0573L11.5287 5.80478L12.4715 4.86197L15.6096 8.00004L12.4715 11.1381L11.5287 10.1953L13.0573 8.66671Z" })));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.ArrowAll = ArrowAll;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var icon = require('../../components/iconography/icon/icon.js');
|
|
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 ArrowAllDiagonal = (props) => {
|
|
11
|
+
return (React__default.default.createElement(icon.Icon, { ...props },
|
|
12
|
+
React__default.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94281 8L12.6667 11.7239V9.33333H14V14H9.33333V12.6667H11.7239L8 8.94281L4.27614 12.6667H6.66667V14H2V9.33333H3.33333V11.7239L7.05719 8L3.33333 4.27614V6.66667H2V2H6.66667V3.33333H4.27614L8 7.05719L11.7239 3.33333H9.33333V2H14V6.66667H12.6667V4.27614L8.94281 8Z" })));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.ArrowAllDiagonal = ArrowAllDiagonal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var icon = require('../../components/iconography/icon/icon.js');
|
|
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 ArrowBothDownwards = (props) => {
|
|
11
|
+
return (React__default.default.createElement(icon.Icon, { ...props },
|
|
12
|
+
React__default.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.27614 3.33333L12.6667 11.7239V9.33333H14V14H9.33333V12.6667H11.7239L3.33333 4.27614V6.66667H2V2H6.66667V3.33333H4.27614Z" })));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.ArrowBothDownwards = ArrowBothDownwards;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var icon = require('../../components/iconography/icon/icon.js');
|
|
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 ArrowBothUpwards = (props) => {
|
|
11
|
+
return (React__default.default.createElement(icon.Icon, { ...props },
|
|
12
|
+
React__default.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.33333 3.33333V2H14V6.66667H12.6667V4.27614L4.27614 12.6667H6.66667V14H2V9.33333H3.33333V11.7239L11.7239 3.33333H9.33333Z" })));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.ArrowBothUpwards = ArrowBothUpwards;
|