@soul-refiner/design-system 1.6.1-alpha.3 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.d.ts +1 -1
- package/dist/common/colors.js +135 -0
- package/dist/common/date.js +28 -0
- package/dist/common/index.js +3 -0
- package/dist/common/styles.js +63 -0
- package/dist/components/actions/button/button.d.ts +1 -1
- package/dist/components/actions/button/button.js +280 -0
- package/dist/components/actions/button/index.js +1 -0
- package/dist/components/actions/dropdown/dropdown.js +227 -0
- package/dist/components/actions/dropdown/index.js +1 -0
- package/dist/components/actions/index.js +6 -0
- package/dist/components/actions/rate/index.js +1 -0
- package/dist/components/actions/rate/rate.js +46 -0
- package/dist/components/actions/switch/index.js +1 -0
- package/dist/components/actions/switch/switch.js +72 -0
- package/dist/components/actions/toggle/index.js +1 -0
- package/dist/components/actions/toggle/toggle.js +57 -0
- package/dist/components/actions/upload/index.js +1 -0
- package/dist/components/actions/upload/upload.js +156 -0
- package/dist/components/atoms/box/box.js +16 -0
- package/dist/components/atoms/box/index.js +1 -0
- package/dist/components/atoms/colors/colors.js +35 -0
- package/dist/components/atoms/colors/index.js +1 -0
- package/dist/components/atoms/hide/hide.js +9 -0
- package/dist/components/atoms/hide/index.js +1 -0
- package/dist/components/atoms/index.js +5 -0
- package/dist/components/atoms/seconds_to_duration/index.js +1 -0
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +27 -0
- package/dist/components/atoms/time_ago/index.js +1 -0
- package/dist/components/atoms/time_ago/time_ago.js +31 -0
- package/dist/components/atoms/typography/display.js +10 -0
- package/dist/components/atoms/typography/heading.js +35 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/paragraph.js +18 -0
- package/dist/components/atoms/typography/typography.js +12 -0
- package/dist/components/card/action/action.js +65 -0
- package/dist/components/card/action/index.js +1 -0
- package/dist/components/card/audio/audio.js +113 -0
- package/dist/components/card/audio/index.js +1 -0
- package/dist/components/card/card.js +25 -0
- package/dist/components/card/feature/feature.js +187 -0
- package/dist/components/card/feature/index.js +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/meeting/index.js +1 -0
- package/dist/components/card/meeting/meeting.js +130 -0
- package/dist/components/card/person/index.js +1 -0
- package/dist/components/card/person/person.js +68 -0
- package/dist/components/card/price/index.js +1 -0
- package/dist/components/card/price/price.js +75 -0
- package/dist/components/card/regular/index.js +1 -0
- package/dist/components/card/regular/regular.js +32 -0
- package/dist/components/card/video/index.js +1 -0
- package/dist/components/card/video/video.js +111 -0
- package/dist/components/card/written/index.js +1 -0
- package/dist/components/card/written/written.js +114 -0
- package/dist/components/custom/courses_selection/courses_selection.js +129 -0
- package/dist/components/custom/courses_selection/index.js +1 -0
- package/dist/components/custom/index.js +2 -0
- package/dist/components/custom/users_selection/index.js +1 -0
- package/dist/components/custom/users_selection/users_selection.js +120 -0
- package/dist/components/editor/constants.js +49 -0
- package/dist/components/editor/context.js +8 -0
- package/dist/components/editor/editor.js +102 -0
- package/dist/components/editor/icons/border-all.js +3 -0
- package/dist/components/editor/icons/border-bottom.js +3 -0
- package/dist/components/editor/icons/border-left.js +3 -0
- package/dist/components/editor/icons/border-none.js +3 -0
- package/dist/components/editor/icons/border-right.js +3 -0
- package/dist/components/editor/icons/border-top.js +3 -0
- package/dist/components/editor/icons/index.js +6 -0
- package/dist/components/editor/index.js +2 -0
- package/dist/components/editor/navbar/alignment_dropdown.js +97 -0
- package/dist/components/editor/navbar/button_modal.js +55 -0
- package/dist/components/editor/navbar/index.js +1 -0
- package/dist/components/editor/navbar/navbar.js +201 -0
- package/dist/components/editor/navbar/style_dropdown.js +65 -0
- package/dist/components/editor/plugins/blocks/blockquote.js +8 -0
- package/dist/components/editor/plugins/blocks/blocks.d.ts +1 -1
- package/dist/components/editor/plugins/blocks/blocks.js +50 -0
- package/dist/components/editor/plugins/blocks/buttons.js +81 -0
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +62 -0
- package/dist/components/editor/plugins/blocks/image.js +36 -0
- package/dist/components/editor/plugins/blocks/index.js +1 -0
- package/dist/components/editor/plugins/blocks/list.js +17 -0
- package/dist/components/editor/plugins/blocks/media-popover.js +32 -0
- package/dist/components/editor/plugins/blocks/plate-button.d.ts +2 -2
- package/dist/components/editor/plugins/blocks/plate-button.js +37 -0
- package/dist/components/editor/plugins/blocks/popover.js +11 -0
- package/dist/components/editor/plugins/blocks/qa.js +45 -0
- package/dist/components/editor/plugins/blocks/resizable.d.ts +2 -2
- package/dist/components/editor/plugins/blocks/resizable.js +37 -0
- package/dist/components/editor/plugins/blocks/separator.js +19 -0
- package/dist/components/editor/plugins/blocks/table-cell.js +38 -0
- package/dist/components/editor/plugins/blocks/table-row.js +7 -0
- package/dist/components/editor/plugins/blocks/table.js +82 -0
- package/dist/components/editor/plugins/blocks/text.js +82 -0
- package/dist/components/editor/plugins/blocks/video.js +32 -0
- package/dist/components/editor/plugins/index.js +4 -0
- package/dist/components/editor/plugins/leafs/index.js +1 -0
- package/dist/components/editor/plugins/leafs/leafs.js +33 -0
- package/dist/components/editor/plugins/leafs/link.js +74 -0
- package/dist/components/editor/plugins/marks/index.js +1 -0
- package/dist/components/editor/plugins/marks/marks.js +12 -0
- package/dist/components/editor/plugins/plate.js +37 -0
- package/dist/components/editor/plugins/utils/exitBreak.js +31 -0
- package/dist/components/editor/plugins/utils/index.js +1 -0
- package/dist/components/editor/plugins/utils/resetBlockType.js +22 -0
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +6 -0
- package/dist/components/editor/plugins/utils/softBreak.js +14 -0
- package/dist/components/editor/plugins/utils/utils.js +12 -0
- package/dist/components/editor/simple_editor/index.js +1 -0
- package/dist/components/editor/simple_editor/navbar.js +136 -0
- package/dist/components/editor/simple_editor/plugins.js +89 -0
- package/dist/components/editor/simple_editor/simple_editor.js +89 -0
- package/dist/components/feedback/animated_toast/animated_toast.js +55 -0
- package/dist/components/feedback/animated_toast/index.js +1 -0
- package/dist/components/feedback/badge/badge.js +66 -0
- package/dist/components/feedback/badge/index.js +1 -0
- package/dist/components/feedback/banner/banner.js +80 -0
- package/dist/components/feedback/banner/index.js +1 -0
- package/dist/components/feedback/chip/chip.js +94 -0
- package/dist/components/feedback/chip/index.js +1 -0
- package/dist/components/feedback/index.js +8 -0
- package/dist/components/feedback/loader/index.js +1 -0
- package/dist/components/feedback/loader/loader.js +34 -0
- package/dist/components/feedback/notification/index.js +1 -0
- package/dist/components/feedback/notification/notification.js +72 -0
- package/dist/components/feedback/progress/index.js +1 -0
- package/dist/components/feedback/progress/progress.js +87 -0
- package/dist/components/feedback/toast/index.js +1 -0
- package/dist/components/feedback/toast/toast.js +112 -0
- package/dist/components/feedback/tooltip/index.js +1 -0
- package/dist/components/feedback/tooltip/tooltip.js +26 -0
- package/dist/components/iconography/avatar/avatar.d.ts +1 -2
- package/dist/components/iconography/avatar/avatar.js +169 -0
- package/dist/components/iconography/avatar/icons/approved.js +5 -0
- package/dist/components/iconography/avatar/icons/busy.js +5 -0
- package/dist/components/iconography/avatar/icons/declined.js +5 -0
- package/dist/components/iconography/avatar/icons/default.js +4 -0
- package/dist/components/iconography/avatar/icons/focus.js +5 -0
- package/dist/components/iconography/avatar/icons/index.js +9 -0
- package/dist/components/iconography/avatar/icons/locked.js +5 -0
- package/dist/components/iconography/avatar/icons/offline.js +5 -0
- package/dist/components/iconography/avatar/icons/online.js +4 -0
- package/dist/components/iconography/avatar/icons/subscribed.js +9 -0
- package/dist/components/iconography/avatar/index.js +1 -0
- package/dist/components/iconography/icon/icon.js +10 -0
- package/dist/components/iconography/icon/index.js +1 -0
- package/dist/components/iconography/index.js +2 -0
- package/dist/components/index.js +12 -0
- package/dist/components/input/calendar/calendar.js +249 -0
- package/dist/components/input/calendar/index.js +1 -0
- package/dist/components/input/checkbox/checkbox.js +23 -0
- package/dist/components/input/checkbox/index.js +1 -0
- package/dist/components/input/date/date.js +517 -0
- package/dist/components/input/date/index.js +1 -0
- package/dist/components/input/filter/filter.js +304 -0
- package/dist/components/input/filter/filter_option.js +70 -0
- package/dist/components/input/filter/index.js +1 -0
- package/dist/components/input/index.js +10 -0
- package/dist/components/input/radio/index.js +1 -0
- package/dist/components/input/radio/radio.js +78 -0
- package/dist/components/input/search/index.js +1 -0
- package/dist/components/input/search/search.js +138 -0
- package/dist/components/input/select/index.js +1 -0
- package/dist/components/input/select/select.js +47 -0
- package/dist/components/input/text_area/index.js +1 -0
- package/dist/components/input/text_area/text_area.js +110 -0
- package/dist/components/input/text_input/index.js +1 -0
- package/dist/components/input/text_input/text_input.d.ts +0 -1
- package/dist/components/input/text_input/text_input.js +147 -0
- package/dist/components/input/time/index.js +1 -0
- package/dist/components/input/time/time.js +69 -0
- package/dist/components/media/common.js +1 -0
- package/dist/components/media/index.js +2 -0
- package/dist/components/media/video/index.js +1 -0
- package/dist/components/media/video/video.js +31 -0
- package/dist/components/media/video-player/index.js +1 -0
- package/dist/components/media/video-player/playlist-item.d.ts +2 -2
- package/dist/components/media/video-player/playlist-item.js +37 -0
- package/dist/components/media/video-player/video.d.ts +3 -13
- package/dist/components/media/video-player/video.js +178 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +109 -0
- package/dist/components/navigation/breadcrumb/index.js +1 -0
- package/dist/components/navigation/index.js +3 -0
- package/dist/components/navigation/inner/index.js +1 -0
- package/dist/components/navigation/inner/inner.js +185 -0
- package/dist/components/navigation/tabs/index.js +1 -0
- package/dist/components/navigation/tabs/tabs.js +150 -0
- package/dist/components/surfaces/accordion/accordion.js +47 -0
- package/dist/components/surfaces/accordion/index.js +1 -0
- package/dist/components/surfaces/calendar_date/calendar_date.js +45 -0
- package/dist/components/surfaces/calendar_date/index.js +1 -0
- package/dist/components/surfaces/carousel/card/card.js +96 -0
- package/dist/components/surfaces/carousel/card/index.js +1 -0
- package/dist/components/surfaces/carousel/index.js +1 -0
- package/dist/components/surfaces/comment/comment.js +188 -0
- package/dist/components/surfaces/comment/helpers.js +26 -0
- package/dist/components/surfaces/comment/index.js +1 -0
- package/dist/components/surfaces/drawer/drawer.js +130 -0
- package/dist/components/surfaces/drawer/index.js +1 -0
- package/dist/components/surfaces/index.js +9 -0
- package/dist/components/surfaces/message/index.js +1 -0
- package/dist/components/surfaces/message/message.js +44 -0
- package/dist/components/surfaces/modal/index.js +1 -0
- package/dist/components/surfaces/modal/modal.js +127 -0
- package/dist/components/surfaces/portal/index.js +1 -0
- package/dist/components/surfaces/portal/portal.js +26 -0
- package/dist/components/surfaces/post/index.js +1 -0
- package/dist/components/surfaces/post/post.js +129 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/table/index.js +1 -0
- package/dist/components/table/table/table.js +184 -0
- package/dist/emoji/emojis.json +17577 -0
- package/dist/icons/arrow/arrow_all.js +6 -0
- package/dist/icons/arrow/arrow_all_diagonal.js +6 -0
- package/dist/icons/arrow/arrow_both_downwards.js +6 -0
- package/dist/icons/arrow/arrow_both_upwards.js +6 -0
- package/dist/icons/arrow/arrow_circle_left.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +8 -0
- package/dist/icons/arrow/arrow_circle_right.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_down.js +6 -0
- package/dist/icons/arrow/arrow_down_bold.js +6 -0
- package/dist/icons/arrow/arrow_down_circle.js +6 -0
- package/dist/icons/arrow/arrow_left.js +6 -0
- package/dist/icons/arrow/arrow_left_bold.js +6 -0
- package/dist/icons/arrow/arrow_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_left_curved.js +6 -0
- package/dist/icons/arrow/arrow_left_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_right.js +6 -0
- package/dist/icons/arrow/arrow_right_bold.js +6 -0
- package/dist/icons/arrow/arrow_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_right_curved.js +6 -0
- package/dist/icons/arrow/arrow_right_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_up.js +6 -0
- package/dist/icons/arrow/arrow_up_bold.js +6 -0
- package/dist/icons/arrow/arrow_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_down.js +6 -0
- package/dist/icons/arrow/chevron_down_circle.js +6 -0
- package/dist/icons/arrow/chevron_down_double.js +6 -0
- package/dist/icons/arrow/chevron_down_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_left.js +6 -0
- package/dist/icons/arrow/chevron_left_circle.js +6 -0
- package/dist/icons/arrow/chevron_left_double.js +6 -0
- package/dist/icons/arrow/chevron_left_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_right.js +6 -0
- package/dist/icons/arrow/chevron_right_circle.js +6 -0
- package/dist/icons/arrow/chevron_right_double.js +6 -0
- package/dist/icons/arrow/chevron_right_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_scroll.js +6 -0
- package/dist/icons/arrow/chevron_up.js +6 -0
- package/dist/icons/arrow/chevron_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_up_double.js +6 -0
- package/dist/icons/arrow/chevron_up_double_circle.js +6 -0
- package/dist/icons/arrow/forward_all.js +6 -0
- package/dist/icons/arrow/forward_all_bold.js +6 -0
- package/dist/icons/arrow/forward_bold.js +6 -0
- package/dist/icons/arrow/index.js +62 -0
- package/dist/icons/arrow/redo.js +6 -0
- package/dist/icons/arrow/redo_bold.js +6 -0
- package/dist/icons/arrow/reply.js +6 -0
- package/dist/icons/arrow/reply_all.js +6 -0
- package/dist/icons/arrow/reply_all_bold.js +6 -0
- package/dist/icons/arrow/reply_bold.js +6 -0
- package/dist/icons/arrow/undo.js +6 -0
- package/dist/icons/arrow/undo_bold.js +6 -0
- package/dist/icons/audio_video/drag_indicator.js +6 -0
- package/dist/icons/audio_video/eject.js +6 -0
- package/dist/icons/audio_video/equalizer.js +6 -0
- package/dist/icons/audio_video/fast_forward.js +6 -0
- package/dist/icons/audio_video/fast_forward_30.js +6 -0
- package/dist/icons/audio_video/fullscreen.js +6 -0
- package/dist/icons/audio_video/headphones.js +6 -0
- package/dist/icons/audio_video/index.js +38 -0
- package/dist/icons/audio_video/library_add.js +6 -0
- package/dist/icons/audio_video/library_delay.js +6 -0
- package/dist/icons/audio_video/library_music.js +6 -0
- package/dist/icons/audio_video/library_queue.js +6 -0
- package/dist/icons/audio_video/microphone.js +6 -0
- package/dist/icons/audio_video/musical_note.js +6 -0
- package/dist/icons/audio_video/next.js +6 -0
- package/dist/icons/audio_video/pause.js +6 -0
- package/dist/icons/audio_video/pause_circle.js +6 -0
- package/dist/icons/audio_video/play.js +6 -0
- package/dist/icons/audio_video/play_circle.js +6 -0
- package/dist/icons/audio_video/play_display.js +6 -0
- package/dist/icons/audio_video/play_pause.js +6 -0
- package/dist/icons/audio_video/play_solid.js +6 -0
- package/dist/icons/audio_video/player_list.js +6 -0
- package/dist/icons/audio_video/player_list_add.js +6 -0
- package/dist/icons/audio_video/player_list_play.js +6 -0
- package/dist/icons/audio_video/previous.js +6 -0
- package/dist/icons/audio_video/radio.js +6 -0
- package/dist/icons/audio_video/record.js +6 -0
- package/dist/icons/audio_video/repeat.js +6 -0
- package/dist/icons/audio_video/rewind.js +6 -0
- package/dist/icons/audio_video/rewind_30.js +6 -0
- package/dist/icons/audio_video/shuffle.js +6 -0
- package/dist/icons/audio_video/sound_wave.js +6 -0
- package/dist/icons/audio_video/stop.js +6 -0
- package/dist/icons/audio_video/stop_circle.js +6 -0
- package/dist/icons/audio_video/subscriptions.js +6 -0
- package/dist/icons/audio_video/tuner.js +6 -0
- package/dist/icons/audio_video/volume.js +6 -0
- package/dist/icons/audio_video/volume_high.js +6 -0
- package/dist/icons/audio_video/volume_low.js +6 -0
- package/dist/icons/audio_video/volume_slash.js +6 -0
- package/dist/icons/basic/aa_sansserif.js +7 -0
- package/dist/icons/basic/aa_serif.js +7 -0
- package/dist/icons/basic/anchor.js +8 -0
- package/dist/icons/basic/bible.js +6 -0
- package/dist/icons/basic/bold.js +6 -0
- package/dist/icons/basic/book.js +6 -0
- package/dist/icons/basic/book_open.js +6 -0
- package/dist/icons/basic/bookmark.js +6 -0
- package/dist/icons/basic/bookmark_add.js +6 -0
- package/dist/icons/basic/bookmark_slash.js +6 -0
- package/dist/icons/basic/bookmarks.js +6 -0
- package/dist/icons/basic/books.js +9 -0
- package/dist/icons/basic/box.js +6 -0
- package/dist/icons/basic/briefcase.js +6 -0
- package/dist/icons/basic/browse_activity.js +6 -0
- package/dist/icons/basic/browser.js +6 -0
- package/dist/icons/basic/browser_slash.js +6 -0
- package/dist/icons/basic/calculator.js +6 -0
- package/dist/icons/basic/camera.js +6 -0
- package/dist/icons/basic/camera_add.js +6 -0
- package/dist/icons/basic/camera_slash.js +6 -0
- package/dist/icons/basic/checkmark.js +6 -0
- package/dist/icons/basic/checkmark_circle.js +8 -0
- package/dist/icons/basic/checkmark_filled.js +6 -0
- package/dist/icons/basic/checkmarks.js +6 -0
- package/dist/icons/basic/circle.js +6 -0
- package/dist/icons/basic/circle_slash.js +8 -0
- package/dist/icons/basic/clear_text_style.js +6 -0
- package/dist/icons/basic/close.js +6 -0
- package/dist/icons/basic/close_circle.js +6 -0
- package/dist/icons/basic/close_filled.js +6 -0
- package/dist/icons/basic/copy.js +6 -0
- package/dist/icons/basic/delete.js +6 -0
- package/dist/icons/basic/detail.js +6 -0
- package/dist/icons/basic/dot.js +6 -0
- package/dist/icons/basic/download.js +6 -0
- package/dist/icons/basic/download_arrow.js +6 -0
- package/dist/icons/basic/droplet.js +8 -0
- package/dist/icons/basic/ellipsis_horizontal.js +6 -0
- package/dist/icons/basic/ellipsis_horizontal_circle.js +6 -0
- package/dist/icons/basic/ellipsis_vertical.js +6 -0
- package/dist/icons/basic/ellipsis_vertical_circle.js +6 -0
- package/dist/icons/basic/eye.js +6 -0
- package/dist/icons/basic/eye_slash.js +6 -0
- package/dist/icons/basic/fingerprint.js +6 -0
- package/dist/icons/basic/flag.js +6 -0
- package/dist/icons/basic/flag_wave.js +6 -0
- package/dist/icons/basic/flag_wave_filled.js +6 -0
- package/dist/icons/basic/flame.js +6 -0
- package/dist/icons/basic/gauge.js +6 -0
- package/dist/icons/basic/glasses.js +6 -0
- package/dist/icons/basic/graduation_cap.js +6 -0
- package/dist/icons/basic/hashmark.js +6 -0
- package/dist/icons/basic/heart.js +6 -0
- package/dist/icons/basic/heart_slash.js +6 -0
- package/dist/icons/basic/highlighter.js +6 -0
- package/dist/icons/basic/home.js +6 -0
- package/dist/icons/basic/image.js +6 -0
- package/dist/icons/basic/inbox.js +6 -0
- package/dist/icons/basic/index.js +131 -0
- package/dist/icons/basic/italic.js +6 -0
- package/dist/icons/basic/layers.js +6 -0
- package/dist/icons/basic/lightening.js +6 -0
- package/dist/icons/basic/lightening_slash.js +6 -0
- package/dist/icons/basic/link.js +6 -0
- package/dist/icons/basic/link_slash.js +6 -0
- package/dist/icons/basic/loudspeaker.js +6 -0
- package/dist/icons/basic/maximize.js +6 -0
- package/dist/icons/basic/menu.js +6 -0
- package/dist/icons/basic/menu_circle.js +6 -0
- package/dist/icons/basic/menu_dots.js +6 -0
- package/dist/icons/basic/microphone_slash.js +6 -0
- package/dist/icons/basic/minimize.js +6 -0
- package/dist/icons/basic/minus.js +6 -0
- package/dist/icons/basic/minus_circle.js +6 -0
- package/dist/icons/basic/move_item.js +6 -0
- package/dist/icons/basic/new.js +6 -0
- package/dist/icons/basic/newspaper.js +6 -0
- package/dist/icons/basic/node.js +6 -0
- package/dist/icons/basic/note_pad.js +7 -0
- package/dist/icons/basic/options.js +6 -0
- package/dist/icons/basic/paint_brush.js +6 -0
- package/dist/icons/basic/paperclip.js +6 -0
- package/dist/icons/basic/paperclip_slash.js +6 -0
- package/dist/icons/basic/pencil.js +6 -0
- package/dist/icons/basic/pencil_pad.js +6 -0
- package/dist/icons/basic/plus.js +6 -0
- package/dist/icons/basic/plus_circle.js +6 -0
- package/dist/icons/basic/presentation.js +6 -0
- package/dist/icons/basic/printer.js +6 -0
- package/dist/icons/basic/profile.js +6 -0
- package/dist/icons/basic/profile_check.js +6 -0
- package/dist/icons/basic/pulse.js +6 -0
- package/dist/icons/basic/qr_code.js +6 -0
- package/dist/icons/basic/resize.js +8 -0
- package/dist/icons/basic/scan.js +6 -0
- package/dist/icons/basic/scissors.js +6 -0
- package/dist/icons/basic/screenshot.js +6 -0
- package/dist/icons/basic/search.js +6 -0
- package/dist/icons/basic/select_item.js +7 -0
- package/dist/icons/basic/settings.js +6 -0
- package/dist/icons/basic/share.js +6 -0
- package/dist/icons/basic/share_external.js +6 -0
- package/dist/icons/basic/square.js +6 -0
- package/dist/icons/basic/star.js +6 -0
- package/dist/icons/basic/star_circle.js +6 -0
- package/dist/icons/basic/star_filled.js +6 -0
- package/dist/icons/basic/star_filled_half.js +6 -0
- package/dist/icons/basic/star_slash.js +6 -0
- package/dist/icons/basic/sticker.js +6 -0
- package/dist/icons/basic/strikethrough.js +6 -0
- package/dist/icons/basic/subtask.js +7 -0
- package/dist/icons/basic/tax.js +9 -0
- package/dist/icons/basic/text_bg_color.js +6 -0
- package/dist/icons/basic/text_color.js +6 -0
- package/dist/icons/basic/textbox.js +6 -0
- package/dist/icons/basic/thumbs_down.js +6 -0
- package/dist/icons/basic/thumbs_up.js +6 -0
- package/dist/icons/basic/thumbs_up_filled.js +6 -0
- package/dist/icons/basic/toggle_left.js +6 -0
- package/dist/icons/basic/toggle_right.js +6 -0
- package/dist/icons/basic/translate.js +6 -0
- package/dist/icons/basic/trash.js +6 -0
- package/dist/icons/basic/trash_slash.js +6 -0
- package/dist/icons/basic/underline.js +6 -0
- package/dist/icons/basic/upload.js +6 -0
- package/dist/icons/basic/video.js +6 -0
- package/dist/icons/basic/video_add.js +7 -0
- package/dist/icons/basic/video_slash.js +6 -0
- package/dist/icons/basic/wrench.js +6 -0
- package/dist/icons/basic/zoom_in.js +6 -0
- package/dist/icons/basic/zoom_out.js +6 -0
- package/dist/icons/data/bar_chart.js +6 -0
- package/dist/icons/data/bar_chart_downward.js +6 -0
- package/dist/icons/data/bar_chart_downward_outline.js +6 -0
- package/dist/icons/data/bar_chart_upward.js +6 -0
- package/dist/icons/data/bar_chart_upward_outline.js +6 -0
- package/dist/icons/data/candlestick_chart.js +6 -0
- package/dist/icons/data/four_circles.js +6 -0
- package/dist/icons/data/index.js +20 -0
- package/dist/icons/data/legend_toggle.js +6 -0
- package/dist/icons/data/line_chart.js +6 -0
- package/dist/icons/data/line_chart_area.js +6 -0
- package/dist/icons/data/line_chart_area_shaded.js +6 -0
- package/dist/icons/data/line_chart_double.js +6 -0
- package/dist/icons/data/line_chart_downward.js +6 -0
- package/dist/icons/data/line_chart_node.js +6 -0
- package/dist/icons/data/line_chart_outline.js +6 -0
- package/dist/icons/data/line_chart_search.js +6 -0
- package/dist/icons/data/line_chart_stars.js +6 -0
- package/dist/icons/data/line_chart_upward.js +6 -0
- package/dist/icons/data/pie_chart.js +7 -0
- package/dist/icons/data/tree.js +6 -0
- package/dist/icons/email/index.js +8 -0
- package/dist/icons/email/mail.js +6 -0
- package/dist/icons/email/mail_check.js +6 -0
- package/dist/icons/email/mail_minus.js +6 -0
- package/dist/icons/email/mail_send.js +6 -0
- package/dist/icons/email/send.js +6 -0
- package/dist/icons/email/send_close.js +6 -0
- package/dist/icons/email/send_schedule.js +6 -0
- package/dist/icons/email/send_text.js +6 -0
- package/dist/icons/emoji/emoji_add.js +6 -0
- package/dist/icons/emoji/index.js +6 -0
- package/dist/icons/emoji/laughing.js +6 -0
- package/dist/icons/emoji/neutral.js +6 -0
- package/dist/icons/emoji/sad.js +6 -0
- package/dist/icons/emoji/shocked.js +6 -0
- package/dist/icons/emoji/smile.js +6 -0
- package/dist/icons/file/clipboard.js +6 -0
- package/dist/icons/file/clipboard_check.js +6 -0
- package/dist/icons/file/clipboard_close.js +6 -0
- package/dist/icons/file/clipboard_minus.js +6 -0
- package/dist/icons/file/clipboard_plus.js +6 -0
- package/dist/icons/file/clipboard_text.js +6 -0
- package/dist/icons/file/file.js +6 -0
- package/dist/icons/file/file_add.js +6 -0
- package/dist/icons/file/file_check.js +6 -0
- package/dist/icons/file/file_close.js +6 -0
- package/dist/icons/file/file_code.js +6 -0
- package/dist/icons/file/file_download.js +6 -0
- package/dist/icons/file/file_draft.js +6 -0
- package/dist/icons/file/file_gear.js +7 -0
- package/dist/icons/file/file_minus.js +6 -0
- package/dist/icons/file/file_plus.js +6 -0
- package/dist/icons/file/file_scan.js +6 -0
- package/dist/icons/file/file_shred.js +6 -0
- package/dist/icons/file/file_text.js +6 -0
- package/dist/icons/file/file_upload.js +6 -0
- package/dist/icons/file/folder.js +6 -0
- package/dist/icons/file/folder_add.js +6 -0
- package/dist/icons/file/folder_arrow.js +6 -0
- package/dist/icons/file/folder_check.js +6 -0
- package/dist/icons/file/folder_close.js +6 -0
- package/dist/icons/file/folder_cloud.js +6 -0
- package/dist/icons/file/folder_gear.js +7 -0
- package/dist/icons/file/folder_minus.js +6 -0
- package/dist/icons/file/folder_music.js +6 -0
- package/dist/icons/file/folder_open.js +6 -0
- package/dist/icons/file/folder_plus.js +6 -0
- package/dist/icons/file/folder_zip.js +6 -0
- package/dist/icons/file/index.js +36 -0
- package/dist/icons/file/note.js +6 -0
- package/dist/icons/file/note_text.js +6 -0
- package/dist/icons/file/pdf.js +6 -0
- package/dist/icons/file/photo.js +6 -0
- package/dist/icons/finance/bitcoin.js +6 -0
- package/dist/icons/finance/coins.js +10 -0
- package/dist/icons/finance/credit_card.js +6 -0
- package/dist/icons/finance/credit_card_add.js +6 -0
- package/dist/icons/finance/credit_card_face.js +6 -0
- package/dist/icons/finance/credit_card_member.js +6 -0
- package/dist/icons/finance/credit_card_outcome.js +6 -0
- package/dist/icons/finance/credit_card_scan.js +6 -0
- package/dist/icons/finance/credit_card_share.js +6 -0
- package/dist/icons/finance/credit_card_slash.js +6 -0
- package/dist/icons/finance/currency_exchange.js +6 -0
- package/dist/icons/finance/dollar.js +6 -0
- package/dist/icons/finance/ethereum.js +6 -0
- package/dist/icons/finance/index.js +16 -0
- package/dist/icons/finance/paypass.js +6 -0
- package/dist/icons/finance/strongbox.js +6 -0
- package/dist/icons/finance/wallet.js +6 -0
- package/dist/icons/index.js +22 -0
- package/dist/icons/layout/block_align_bottom.js +6 -0
- package/dist/icons/layout/block_align_center.js +6 -0
- package/dist/icons/layout/block_align_left.js +6 -0
- package/dist/icons/layout/block_align_middle.js +6 -0
- package/dist/icons/layout/block_align_right.js +6 -0
- package/dist/icons/layout/block_align_top.js +6 -0
- package/dist/icons/layout/block_horizontal.js +6 -0
- package/dist/icons/layout/block_vertical.js +6 -0
- package/dist/icons/layout/edit_shape.js +6 -0
- package/dist/icons/layout/elements.js +6 -0
- package/dist/icons/layout/elements_add.js +6 -0
- package/dist/icons/layout/elements_filled.js +6 -0
- package/dist/icons/layout/elements_masonry.js +6 -0
- package/dist/icons/layout/frame.js +6 -0
- package/dist/icons/layout/frame_stack.js +6 -0
- package/dist/icons/layout/grid.js +6 -0
- package/dist/icons/layout/grid_column_three.js +6 -0
- package/dist/icons/layout/grid_column_two.js +6 -0
- package/dist/icons/layout/grid_dynamic.js +6 -0
- package/dist/icons/layout/grid_frame.js +6 -0
- package/dist/icons/layout/grid_row_three.js +6 -0
- package/dist/icons/layout/grid_row_two.js +6 -0
- package/dist/icons/layout/grid_six.js +6 -0
- package/dist/icons/layout/grid_small.js +6 -0
- package/dist/icons/layout/iframe.js +6 -0
- package/dist/icons/layout/index.js +44 -0
- package/dist/icons/layout/kanban.js +6 -0
- package/dist/icons/layout/layout.js +6 -0
- package/dist/icons/layout/list.js +6 -0
- package/dist/icons/layout/list_filled.js +11 -0
- package/dist/icons/layout/padding.js +6 -0
- package/dist/icons/layout/page_break.js +6 -0
- package/dist/icons/layout/rotate_left.js +6 -0
- package/dist/icons/layout/rotate_right.js +6 -0
- package/dist/icons/layout/ruler.js +6 -0
- package/dist/icons/layout/segment.js +6 -0
- package/dist/icons/layout/select_area.js +6 -0
- package/dist/icons/layout/select_boundary.js +6 -0
- package/dist/icons/layout/sidebar_left.js +6 -0
- package/dist/icons/layout/sidebar_right.js +6 -0
- package/dist/icons/layout/slides.js +6 -0
- package/dist/icons/layout/slides_horizontal.js +6 -0
- package/dist/icons/layout/slides_vertical.js +11 -0
- package/dist/icons/layout/stack.js +6 -0
- package/dist/icons/layout/text.js +6 -0
- package/dist/icons/maps/atlas.js +6 -0
- package/dist/icons/maps/compass.js +6 -0
- package/dist/icons/maps/direction.js +6 -0
- package/dist/icons/maps/direction_angled.js +6 -0
- package/dist/icons/maps/globe.js +6 -0
- package/dist/icons/maps/globe_slash.js +6 -0
- package/dist/icons/maps/index.js +22 -0
- package/dist/icons/maps/location.js +6 -0
- package/dist/icons/maps/location_slash.js +6 -0
- package/dist/icons/maps/map.js +6 -0
- package/dist/icons/maps/marker.js +6 -0
- package/dist/icons/maps/panorama.js +6 -0
- package/dist/icons/maps/pin.js +6 -0
- package/dist/icons/maps/pin_arrow.js +6 -0
- package/dist/icons/maps/pin_location.js +6 -0
- package/dist/icons/maps/pin_plus.js +6 -0
- package/dist/icons/maps/pin_question.js +6 -0
- package/dist/icons/maps/pin_slash.js +6 -0
- package/dist/icons/maps/push_pin.js +6 -0
- package/dist/icons/maps/push_pin_filled.js +6 -0
- package/dist/icons/maps/push_pin_slash.js +6 -0
- package/dist/icons/maps/radar.js +6 -0
- package/dist/icons/maps/route.js +6 -0
- package/dist/icons/message/bubble.js +6 -0
- package/dist/icons/message/bubble_question.js +6 -0
- package/dist/icons/message/comment.js +6 -0
- package/dist/icons/message/comment_add.js +6 -0
- package/dist/icons/message/comment_check.js +6 -0
- package/dist/icons/message/comment_close.js +6 -0
- package/dist/icons/message/comment_minus.js +6 -0
- package/dist/icons/message/comment_text.js +6 -0
- package/dist/icons/message/index.js +8 -0
- package/dist/icons/misc/advertisement.js +6 -0
- package/dist/icons/misc/atom.js +6 -0
- package/dist/icons/misc/bone.js +6 -0
- package/dist/icons/misc/brightness_high.js +6 -0
- package/dist/icons/misc/brightness_low.js +6 -0
- package/dist/icons/misc/contrast.js +6 -0
- package/dist/icons/misc/crosshairs.js +6 -0
- package/dist/icons/misc/crown.js +6 -0
- package/dist/icons/misc/footprint.js +6 -0
- package/dist/icons/misc/form.js +6 -0
- package/dist/icons/misc/funnel.js +6 -0
- package/dist/icons/misc/index.js +25 -0
- package/dist/icons/misc/infinite.js +6 -0
- package/dist/icons/misc/insert_button.js +6 -0
- package/dist/icons/misc/light_bulb.js +6 -0
- package/dist/icons/misc/moon.js +6 -0
- package/dist/icons/misc/nut.js +6 -0
- package/dist/icons/misc/planet.js +6 -0
- package/dist/icons/misc/plus_thick.js +6 -0
- package/dist/icons/misc/pocket.js +6 -0
- package/dist/icons/misc/rocket.js +6 -0
- package/dist/icons/misc/soup.js +10 -0
- package/dist/icons/misc/sun.js +6 -0
- package/dist/icons/misc/toy_horse.js +6 -0
- package/dist/icons/misc/trophy.js +6 -0
- package/dist/icons/misc/watercloset.js +6 -0
- package/dist/icons/notifications/alert_circle.js +6 -0
- package/dist/icons/notifications/alert_octogon.js +6 -0
- package/dist/icons/notifications/alert_triangle.js +6 -0
- package/dist/icons/notifications/app_notification.js +6 -0
- package/dist/icons/notifications/bell.js +6 -0
- package/dist/icons/notifications/bell_alert.js +6 -0
- package/dist/icons/notifications/bell_checkmark.js +6 -0
- package/dist/icons/notifications/bell_minus.js +6 -0
- package/dist/icons/notifications/bell_plus.js +6 -0
- package/dist/icons/notifications/bell_ring.js +8 -0
- package/dist/icons/notifications/bell_slash.js +6 -0
- package/dist/icons/notifications/close_octogon.js +6 -0
- package/dist/icons/notifications/index.js +14 -0
- package/dist/icons/notifications/information.js +6 -0
- package/dist/icons/notifications/minus_octogon.js +6 -0
- package/dist/icons/notifications/question_circle.js +6 -0
- package/dist/icons/people/group.js +6 -0
- package/dist/icons/people/group_add.js +6 -0
- package/dist/icons/people/group_chat.js +8 -0
- package/dist/icons/people/group_remove.js +6 -0
- package/dist/icons/people/group_send.js +7 -0
- package/dist/icons/people/groups.js +6 -0
- package/dist/icons/people/index.js +13 -0
- package/dist/icons/people/person.js +6 -0
- package/dist/icons/people/person_add.js +6 -0
- package/dist/icons/people/person_checkmark.js +6 -0
- package/dist/icons/people/person_circle.js +8 -0
- package/dist/icons/people/person_close.js +8 -0
- package/dist/icons/people/person_remove.js +6 -0
- package/dist/icons/people/person_slash.js +8 -0
- package/dist/icons/phone/index.js +14 -0
- package/dist/icons/phone/keypad.js +6 -0
- package/dist/icons/phone/phone.js +6 -0
- package/dist/icons/phone/phone_add.js +6 -0
- package/dist/icons/phone/phone_calling.js +6 -0
- package/dist/icons/phone/phone_check.js +6 -0
- package/dist/icons/phone/phone_close.js +6 -0
- package/dist/icons/phone/phone_decline.js +6 -0
- package/dist/icons/phone/phone_end.js +6 -0
- package/dist/icons/phone/phone_forwarded.js +6 -0
- package/dist/icons/phone/phone_hash.js +6 -0
- package/dist/icons/phone/phone_incoming.js +6 -0
- package/dist/icons/phone/phone_missed.js +6 -0
- package/dist/icons/phone/phone_outgoing.js +6 -0
- package/dist/icons/phone/phone_pause.js +6 -0
- package/dist/icons/phone/phone_slash.js +6 -0
- package/dist/icons/phone/voicemail.js +6 -0
- package/dist/icons/security/index.js +11 -0
- package/dist/icons/security/key.js +6 -0
- package/dist/icons/security/key_slash.js +6 -0
- package/dist/icons/security/lock.js +6 -0
- package/dist/icons/security/lock_circle.js +6 -0
- package/dist/icons/security/lock_open.js +6 -0
- package/dist/icons/security/lock_slash.js +6 -0
- package/dist/icons/security/shield.js +6 -0
- package/dist/icons/security/shield_checkmark.js +6 -0
- package/dist/icons/security/shield_lock.js +6 -0
- package/dist/icons/security/shield_slash.js +6 -0
- package/dist/icons/security/verified.js +6 -0
- package/dist/icons/shopping/basket.js +6 -0
- package/dist/icons/shopping/cart.js +6 -0
- package/dist/icons/shopping/cart_filled.js +6 -0
- package/dist/icons/shopping/coupon.js +6 -0
- package/dist/icons/shopping/coupon_cut.js +6 -0
- package/dist/icons/shopping/delivery.js +6 -0
- package/dist/icons/shopping/discount.js +6 -0
- package/dist/icons/shopping/gift.js +6 -0
- package/dist/icons/shopping/gift_bag.js +6 -0
- package/dist/icons/shopping/index.js +15 -0
- package/dist/icons/shopping/inventory.js +6 -0
- package/dist/icons/shopping/point_of_sale.js +6 -0
- package/dist/icons/shopping/shirt.js +6 -0
- package/dist/icons/shopping/tag.js +6 -0
- package/dist/icons/shopping/tag_diagonal.js +6 -0
- package/dist/icons/shopping/tote.js +6 -0
- package/dist/icons/special/index.js +4 -0
- package/dist/icons/special/upload_audio.js +11 -0
- package/dist/icons/special/upload_file.js +6 -0
- package/dist/icons/special/upload_image.js +8 -0
- package/dist/icons/special/upload_video.js +9 -0
- package/dist/icons/symbols/at.js +6 -0
- package/dist/icons/symbols/cc.js +6 -0
- package/dist/icons/symbols/cmd.js +6 -0
- package/dist/icons/symbols/facebook.js +6 -0
- package/dist/icons/symbols/google.js +9 -0
- package/dist/icons/symbols/hash.js +6 -0
- package/dist/icons/symbols/index.js +9 -0
- package/dist/icons/symbols/instagram.js +18 -0
- package/dist/icons/symbols/messenger.js +12 -0
- package/dist/icons/symbols/twitter.js +6 -0
- package/dist/icons/technology/battery.js +6 -0
- package/dist/icons/technology/battery_100.js +6 -0
- package/dist/icons/technology/battery_20.js +6 -0
- package/dist/icons/technology/battery_40.js +6 -0
- package/dist/icons/technology/battery_60.js +6 -0
- package/dist/icons/technology/battery_80.js +6 -0
- package/dist/icons/technology/battery_charging.js +6 -0
- package/dist/icons/technology/battery_slash.js +6 -0
- package/dist/icons/technology/devices.js +6 -0
- package/dist/icons/technology/floppy_disk.js +6 -0
- package/dist/icons/technology/index.js +17 -0
- package/dist/icons/technology/iphone.js +6 -0
- package/dist/icons/technology/laptop.js +6 -0
- package/dist/icons/technology/mobile.js +6 -0
- package/dist/icons/technology/monitor.js +6 -0
- package/dist/icons/technology/server.js +6 -0
- package/dist/icons/technology/sim_card.js +6 -0
- package/dist/icons/technology/usb_stick.js +6 -0
- package/dist/icons/text/align_center.js +6 -0
- package/dist/icons/text/align_justified.js +6 -0
- package/dist/icons/text/align_left.js +6 -0
- package/dist/icons/text/align_right.js +6 -0
- package/dist/icons/text/code_block.js +6 -0
- package/dist/icons/text/divider.js +6 -0
- package/dist/icons/text/footnote.js +8 -0
- package/dist/icons/text/indent_decrease.js +6 -0
- package/dist/icons/text/indent_increase.js +6 -0
- package/dist/icons/text/index.js +13 -0
- package/dist/icons/text/list_ordered.js +6 -0
- package/dist/icons/text/list_unordered.js +6 -0
- package/dist/icons/text/quote.js +6 -0
- package/dist/icons/text/table.js +6 -0
- package/dist/icons/time/alarm.js +6 -0
- package/dist/icons/time/alarm_checkmark.js +6 -0
- package/dist/icons/time/alarm_minus.js +6 -0
- package/dist/icons/time/alarm_plus.js +6 -0
- package/dist/icons/time/alarm_slash.js +6 -0
- package/dist/icons/time/alarm_snooze.js +6 -0
- package/dist/icons/time/calendar.js +6 -0
- package/dist/icons/time/calendar_add.js +6 -0
- package/dist/icons/time/calendar_checkmark.js +6 -0
- package/dist/icons/time/calendar_close.js +6 -0
- package/dist/icons/time/calendar_dates.js +6 -0
- package/dist/icons/time/calendar_minus.js +6 -0
- package/dist/icons/time/calendar_plus.js +6 -0
- package/dist/icons/time/calendar_scroll.js +8 -0
- package/dist/icons/time/clock.js +6 -0
- package/dist/icons/time/clock_history.js +6 -0
- package/dist/icons/time/index.js +19 -0
- package/dist/icons/time/stopwatch.js +6 -0
- package/dist/icons/time/timer.js +6 -0
- package/dist/icons/time/watch.js +6 -0
- package/dist/index.js +5 -2
- package/dist/styles/output.css +1771 -0
- package/dist/types/attributes.js +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/date.js +98 -0
- package/dist/utils/function.js +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +2 -5
- package/dist/components/actions/dropdown/dropdown.stories.d.ts +0 -5
- package/dist/components/custom/courses_selection/courses_selection.stories.d.ts +0 -5
- package/dist/components/custom/users_selection/users_selection.stories.d.ts +0 -5
- package/dist/components/editor/editor.stories.d.ts +0 -6
- package/dist/components/iconography/avatar/avatar.stories.d.ts +0 -7
- package/dist/components/media/video-player/video.stories.d.ts +0 -6
- package/dist/main.js.LICENSE.txt +0 -90
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Styles } from '../../../common';
|
|
5
|
+
import { Box, Button, P } from '../../';
|
|
6
|
+
import { AlertCircle, AlertOctogon, AlertTriangle, Close, Information, } from '../../../icons';
|
|
7
|
+
export const Notification = ({ content, href, onClose, sx, title, type, }) => {
|
|
8
|
+
const iconLookup = {
|
|
9
|
+
error: React.createElement(AlertOctogon, { size: 24 }),
|
|
10
|
+
info: React.createElement(Information, { size: 24 }),
|
|
11
|
+
success: React.createElement(AlertCircle, { size: 24 }),
|
|
12
|
+
warning: React.createElement(AlertTriangle, { size: 24 }),
|
|
13
|
+
};
|
|
14
|
+
return (React.createElement(Wrapper, { as: href ? 'a' : 'output', href: href, "$dir": "column", "$gap": 8, "$sx": sx, "$type": type },
|
|
15
|
+
React.createElement(Box, { "$dir": "row", "$gap": 8, "$flex": 1 },
|
|
16
|
+
iconLookup[type],
|
|
17
|
+
React.createElement(P, { as: "span", "$semiBold": true }, title),
|
|
18
|
+
onClose && (React.createElement(Button, { icon: React.createElement(Close, { size: 24 }), onClick: onClose, sx: "margin-left: auto;", type: "special" }))),
|
|
19
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 4 },
|
|
20
|
+
React.createElement(P, { as: "span", sx: "padding-left: 32px;" }, content))));
|
|
21
|
+
};
|
|
22
|
+
const Wrapper = styled.output `
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
width: 100%;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
padding: 16px;
|
|
27
|
+
display: flex;
|
|
28
|
+
background-color: ${({ $type }) => $type === 'error'
|
|
29
|
+
? 'var(--color-red-9)'
|
|
30
|
+
: $type === 'info'
|
|
31
|
+
? 'var(--color-blue-9)'
|
|
32
|
+
: $type === 'success'
|
|
33
|
+
? 'var(--color-green-9)'
|
|
34
|
+
: 'var(--color-orange-9)'};
|
|
35
|
+
border: 1px solid
|
|
36
|
+
${({ $type }) => $type === 'error'
|
|
37
|
+
? 'var(--color-red-8)'
|
|
38
|
+
: $type === 'info'
|
|
39
|
+
? 'var(--color-blue-8)'
|
|
40
|
+
: $type === 'success'
|
|
41
|
+
? 'var(--color-green-8)'
|
|
42
|
+
: 'var(--color-orange-8)'};
|
|
43
|
+
box-shadow: var(--elevation-2);
|
|
44
|
+
border-radius: var(--small);
|
|
45
|
+
|
|
46
|
+
& > div > svg {
|
|
47
|
+
fill: ${({ $type }) => $type === 'error'
|
|
48
|
+
? 'var(--color-red-4)'
|
|
49
|
+
: $type === 'info'
|
|
50
|
+
? 'var(--color-blue-4)'
|
|
51
|
+
: $type === 'success'
|
|
52
|
+
? 'var(--color-green-3)'
|
|
53
|
+
: 'var(--color-orange-5)'};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
button > svg {
|
|
57
|
+
fill: unset;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
a {
|
|
61
|
+
position: relative;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
button {
|
|
66
|
+
padding: 0px;
|
|
67
|
+
margin-left: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
${Styles.flex}
|
|
71
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
72
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Progress } from './progress';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { colorReference } from '../../../common';
|
|
5
|
+
import { Box, P } from '../../';
|
|
6
|
+
import { CheckmarkCircle, Checkmarks, Close, MinusCircle, Pause, } from '../../../icons';
|
|
7
|
+
export const Progress = ({ hasError, progress, subtitle, sx, title, type, }) => {
|
|
8
|
+
const isComplete = !hasError && progress > 99;
|
|
9
|
+
const isDetailed = type === 'detailed';
|
|
10
|
+
const percent = hasError || isComplete ? 100 : progress;
|
|
11
|
+
const displayPercent = hasError ? '-' : percent + '%';
|
|
12
|
+
const color = hasError ? 'red-4' : isComplete ? 'green-3' : 'primary-blue-2';
|
|
13
|
+
const gradientColors = hasError
|
|
14
|
+
? {
|
|
15
|
+
start: 'var(--color-red-6)',
|
|
16
|
+
end: 'var(--color-red-4)',
|
|
17
|
+
empty: 'var(--color-red-8)',
|
|
18
|
+
bg: 'var(--color-red-9)',
|
|
19
|
+
}
|
|
20
|
+
: isComplete
|
|
21
|
+
? {
|
|
22
|
+
start: 'var(--color-green-5)',
|
|
23
|
+
end: 'var(--color-green-3)',
|
|
24
|
+
empty: 'var(--color-green-8)',
|
|
25
|
+
bg: 'var(--color-green-9)',
|
|
26
|
+
}
|
|
27
|
+
: {
|
|
28
|
+
start: '#abcfed',
|
|
29
|
+
end: 'var(--color-primary-blue-2)',
|
|
30
|
+
empty: 'var(--color-primary-blue-3)',
|
|
31
|
+
bg: 'var(--color-primary-blue-4)',
|
|
32
|
+
};
|
|
33
|
+
const icon = hasError ? (React.createElement(Close, { size: 24, color: color })) : isComplete ? (React.createElement(Checkmarks, { size: 24, color: color })) : (React.createElement(Pause, { size: 24, color: color }));
|
|
34
|
+
return (React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16, sx: sx },
|
|
35
|
+
isDetailed && (React.createElement(IconWrapper, { "$completedDegree": Math.round(percent * 3.6), "$gradientColors": gradientColors },
|
|
36
|
+
React.createElement(IconInnerWrapper, { "$bg": gradientColors.bg }, icon))),
|
|
37
|
+
React.createElement(Box, { "$dir": "column", "$flex": 1, "$gap": 8 },
|
|
38
|
+
React.createElement(Box, null,
|
|
39
|
+
title && (React.createElement(P, { "$color": "grey-2", "$fontSize": 14, "$lineHeight": 20 }, title)),
|
|
40
|
+
isComplete && (React.createElement(CheckmarkCircle, { color: "green-3", size: 24, sx: "margin-left: auto;" })),
|
|
41
|
+
hasError && (React.createElement(MinusCircle, { color: "red-4", size: 24, sx: "margin-left: auto;" }))),
|
|
42
|
+
React.createElement(BarWrapper, null,
|
|
43
|
+
React.createElement(Bar, { "$color": colorReference[color], "$percent": percent })),
|
|
44
|
+
subtitle && (React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle))),
|
|
45
|
+
isDetailed && (React.createElement(P, { "$color": "grey-4", "$textAlign": "center", sx: "width: 72px;" }, displayPercent))));
|
|
46
|
+
};
|
|
47
|
+
const BarWrapper = styled.div `
|
|
48
|
+
position: relative;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 12px;
|
|
51
|
+
border-radius: 32px;
|
|
52
|
+
background-color: var(--color-grey-8);
|
|
53
|
+
`;
|
|
54
|
+
const Bar = styled.div `
|
|
55
|
+
width: ${({ $percent }) => $percent}%;
|
|
56
|
+
height: 12px;
|
|
57
|
+
background-color: ${({ $color }) => $color};
|
|
58
|
+
border-radius: 32px;
|
|
59
|
+
`;
|
|
60
|
+
const IconWrapper = styled.div `
|
|
61
|
+
position: relative;
|
|
62
|
+
display: block;
|
|
63
|
+
width: 45px;
|
|
64
|
+
height: 45px;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
background: conic-gradient(
|
|
71
|
+
${({ $gradientColors }) => $gradientColors.start},
|
|
72
|
+
${({ $gradientColors }) => $gradientColors.end}
|
|
73
|
+
${({ $completedDegree }) => $completedDegree}deg,
|
|
74
|
+
${({ $gradientColors }) => $gradientColors.empty}
|
|
75
|
+
${({ $completedDegree }) => $completedDegree}deg 360deg
|
|
76
|
+
);
|
|
77
|
+
border: 1px solid ${({ $gradientColors }) => $gradientColors.bg};
|
|
78
|
+
`;
|
|
79
|
+
const IconInnerWrapper = styled.div `
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
height: 39px;
|
|
84
|
+
width: 39px;
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
background-color: ${({ $bg }) => $bg};
|
|
87
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toast } from './toast';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Styles } from '../../../common';
|
|
5
|
+
import { Button, P } from '../../';
|
|
6
|
+
import { AlertCircle, AlertOctogon, AlertTriangle, Close, Information, } from '../../../icons';
|
|
7
|
+
export const Toast = ({ content, href, onClose, type, isAnimated = false, animationDuration, }) => {
|
|
8
|
+
const iconLookup = {
|
|
9
|
+
error: React.createElement(AlertOctogon, { size: 24 }),
|
|
10
|
+
info: React.createElement(Information, { size: 24 }),
|
|
11
|
+
success: React.createElement(AlertCircle, { size: 24 }),
|
|
12
|
+
warning: React.createElement(AlertTriangle, { size: 24 }),
|
|
13
|
+
};
|
|
14
|
+
return (React.createElement(Wrapper, { as: "output", "$align": "center", "$dir": "row", "$gap": 8, "$type": type, "$isAnimated": isAnimated },
|
|
15
|
+
iconLookup[type],
|
|
16
|
+
React.createElement(P, { as: "span" }, content),
|
|
17
|
+
href && (React.createElement(P, { sx: "padding-left: 8px;", as: "a", href: href, "$color": "primary-blue-2" }, "View")),
|
|
18
|
+
!isAnimated && (React.createElement(Button, { icon: React.createElement(Close, { size: 24 }), onClick: onClose, type: "special" })),
|
|
19
|
+
isAnimated && (React.createElement(ToastProgress, { "$animationDuration": animationDuration || 4 },
|
|
20
|
+
React.createElement("div", { className: `toast-progress-bar ${type}` })))));
|
|
21
|
+
};
|
|
22
|
+
const ToastProgress = styled.div `
|
|
23
|
+
position: absolute;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 4px;
|
|
28
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
29
|
+
|
|
30
|
+
.toast-progress-bar {
|
|
31
|
+
height: 100%;
|
|
32
|
+
${({ $animationDuration }) => `animation: progress-bar ${$animationDuration}s linear forwards`};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.toast-progress-bar.success {
|
|
36
|
+
background-color: var(--color-green-3);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.toast-progress-bar.info {
|
|
40
|
+
background-color: var(--color-blue-4);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.toast-progress-bar.warning {
|
|
44
|
+
background-color: var(--color-orange-5);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.toast-progress-bar.error {
|
|
48
|
+
background-color: var(--color-red-4);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes progress-bar {
|
|
52
|
+
0% {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
100% {
|
|
56
|
+
width: 0%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
const Wrapper = styled.output `
|
|
61
|
+
${({ $isAnimated }) => !$isAnimated &&
|
|
62
|
+
`
|
|
63
|
+
position: fixed;
|
|
64
|
+
bottom: 24px;
|
|
65
|
+
right: 24px;`}
|
|
66
|
+
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
padding: 12px 16px;
|
|
69
|
+
display: flex;
|
|
70
|
+
box-shadow: var(--elevation-2);
|
|
71
|
+
border-radius: var(--small);
|
|
72
|
+
|
|
73
|
+
&::before {
|
|
74
|
+
position: absolute;
|
|
75
|
+
content: '';
|
|
76
|
+
left: 0px;
|
|
77
|
+
width: 4px;
|
|
78
|
+
height: 100%;
|
|
79
|
+
background-color: ${({ $type }) => $type === 'error'
|
|
80
|
+
? 'var(--color-red-4)'
|
|
81
|
+
: $type === 'info'
|
|
82
|
+
? 'var(--color-blue-4)'
|
|
83
|
+
: $type === 'success'
|
|
84
|
+
? 'var(--color-green-3)'
|
|
85
|
+
: 'var(--color-orange-5)'};
|
|
86
|
+
border-radius: 8px 0px 0px 8px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& > svg {
|
|
90
|
+
fill: ${({ $type }) => $type === 'error'
|
|
91
|
+
? 'var(--color-red-4)'
|
|
92
|
+
: $type === 'info'
|
|
93
|
+
? 'var(--color-blue-4)'
|
|
94
|
+
: $type === 'success'
|
|
95
|
+
? 'var(--color-green-3)'
|
|
96
|
+
: 'var(--color-orange-5)'};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
a {
|
|
100
|
+
&:hover {
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
text-decoration: underline;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
button {
|
|
107
|
+
padding: 0px;
|
|
108
|
+
margin-left: auto;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
${Styles.flex}
|
|
112
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip } from './tooltip';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Tooltip as ReactTooltip } from 'react-tooltip';
|
|
4
|
+
export const Tooltip = ({ children, content, place = 'top' }) => {
|
|
5
|
+
const id = React.useId();
|
|
6
|
+
return (React.createElement(React.Fragment, null,
|
|
7
|
+
React.createElement(ReactTooltip, { id: id, place: place, style: {
|
|
8
|
+
fontFamily: 'Inter',
|
|
9
|
+
fontSize: '12px',
|
|
10
|
+
fontWeight: 400,
|
|
11
|
+
lineHeight: '150%',
|
|
12
|
+
textAlign: 'center',
|
|
13
|
+
padding: '8px',
|
|
14
|
+
maxWidth: '280px',
|
|
15
|
+
backgroundColor: 'var(--color-grey-3)',
|
|
16
|
+
boxShadow: 'var(--elevation-2)',
|
|
17
|
+
borderRadius: '4px',
|
|
18
|
+
} }),
|
|
19
|
+
React.Children.map(children, (child) => {
|
|
20
|
+
return (React.isValidElement(child) &&
|
|
21
|
+
React.cloneElement(child, {
|
|
22
|
+
'data-tooltip-id': id,
|
|
23
|
+
'data-tooltip-content': content,
|
|
24
|
+
}));
|
|
25
|
+
})));
|
|
26
|
+
};
|
|
@@ -16,14 +16,13 @@ export interface AvatarProps extends NativeProps {
|
|
|
16
16
|
title?: React.ReactNode;
|
|
17
17
|
tooltipContent?: React.ReactElement;
|
|
18
18
|
tooltipSx?: string;
|
|
19
|
-
fallbackImg?: string;
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
21
|
*
|
|
23
22
|
* Avatar
|
|
24
23
|
*/
|
|
25
24
|
declare const Avatar: {
|
|
26
|
-
({ as, href, image,
|
|
25
|
+
({ as, href, image, size, status, subtitle, sx, textPosition, title, tooltipContent, tooltipSx, ...rest }: AvatarProps): React.JSX.Element;
|
|
27
26
|
displayName: string;
|
|
28
27
|
Group: {
|
|
29
28
|
({ children, numDisplayed, total }: AvatarGroupProps): React.JSX.Element;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { Box, H, P } from '../../';
|
|
6
|
+
import { Approved, Busy, Declined, Default, Focus, Locked, Offline, Online, Subscribed, } from './icons';
|
|
7
|
+
/**
|
|
8
|
+
* Lookup tables for sizes
|
|
9
|
+
*/
|
|
10
|
+
const iconReference = {
|
|
11
|
+
approved: Approved,
|
|
12
|
+
busy: Busy,
|
|
13
|
+
declined: Declined,
|
|
14
|
+
focus: Focus,
|
|
15
|
+
locked: Locked,
|
|
16
|
+
none: () => React.createElement(React.Fragment, null),
|
|
17
|
+
online: Online,
|
|
18
|
+
offline: Offline,
|
|
19
|
+
subscribed: Subscribed,
|
|
20
|
+
};
|
|
21
|
+
const iconSize = {
|
|
22
|
+
'96': 18,
|
|
23
|
+
'72': 18,
|
|
24
|
+
'64': 18,
|
|
25
|
+
'56': 15,
|
|
26
|
+
'48': 15,
|
|
27
|
+
'40': 15,
|
|
28
|
+
'36': 14,
|
|
29
|
+
'32': 14,
|
|
30
|
+
'24': 12,
|
|
31
|
+
'16': 8,
|
|
32
|
+
};
|
|
33
|
+
const iconOffsetX = {
|
|
34
|
+
'96': -23,
|
|
35
|
+
'72': -21,
|
|
36
|
+
'64': -20,
|
|
37
|
+
'56': -16,
|
|
38
|
+
'48': -15,
|
|
39
|
+
'40': -13,
|
|
40
|
+
'36': -12,
|
|
41
|
+
'32': -12,
|
|
42
|
+
'24': -10,
|
|
43
|
+
'16': -8,
|
|
44
|
+
};
|
|
45
|
+
const iconOffsetY = {
|
|
46
|
+
'96': 5,
|
|
47
|
+
'72': 3,
|
|
48
|
+
'64': 2,
|
|
49
|
+
'56': 1,
|
|
50
|
+
'48': 0,
|
|
51
|
+
'40': -2,
|
|
52
|
+
'36': -2,
|
|
53
|
+
'32': -2,
|
|
54
|
+
'24': -2,
|
|
55
|
+
'16': -1,
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* Avatar
|
|
60
|
+
*/
|
|
61
|
+
const Avatar = ({ as = 'button', href, image, size = 64, status, subtitle, sx, textPosition = 'left', title, tooltipContent, tooltipSx, ...rest }) => {
|
|
62
|
+
const [displayDefault, setDisplayDefault] = React.useState(false);
|
|
63
|
+
const Icon = iconReference?.[status ?? 'none'];
|
|
64
|
+
return (React.createElement(Box, { "$align": "center", "$gap": 18, sx: `
|
|
65
|
+
position: relative;
|
|
66
|
+
&:hover {
|
|
67
|
+
.tooltipContainer {
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
${sx}
|
|
72
|
+
`, ...rest },
|
|
73
|
+
React.createElement(Container, { as: as, "$size": size, href: href },
|
|
74
|
+
!displayDefault && (React.createElement(Image, { alt: "avatar image", height: size, onError: () => setDisplayDefault(true), quality: 100, sizes: "96 | 72 | 64 | 56 | 48 | 40 | 36 | 32 | 24 | 16", src: image ?? '', width: size })),
|
|
75
|
+
displayDefault && React.createElement(Default, null),
|
|
76
|
+
React.createElement("div", null,
|
|
77
|
+
React.createElement(Icon, null))),
|
|
78
|
+
(title || subtitle) && (React.createElement(TextContainer, { "$textPosition": textPosition },
|
|
79
|
+
title && (React.createElement(H, { as: "h3", "$bold": true, "$color": "grey-2", "$textClampLines": 1, sx: "font-size: 26px;" }, title)),
|
|
80
|
+
subtitle && (React.createElement(P, { "$color": "grey-4", "$textClampLines": 1 }, subtitle)))),
|
|
81
|
+
tooltipContent && (React.createElement(TooltipContainer, { className: "tooltipContainer", "$sx": tooltipSx }, tooltipContent))));
|
|
82
|
+
};
|
|
83
|
+
Avatar.displayName = 'Avatar';
|
|
84
|
+
const Container = styled.div `
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-flow: row nowrap;
|
|
88
|
+
cursor: ${({ as }) => as && (as === 'a' || as === 'button') ? 'pointer' : 'initial'};
|
|
89
|
+
padding: 0px;
|
|
90
|
+
border: 0px;
|
|
91
|
+
position: relative;
|
|
92
|
+
background-color: transparent;
|
|
93
|
+
|
|
94
|
+
> img,
|
|
95
|
+
> svg {
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
object-fit: cover;
|
|
100
|
+
|
|
101
|
+
${({ $size }) => `
|
|
102
|
+
width: ${$size}px;
|
|
103
|
+
height: ${$size}px;
|
|
104
|
+
`}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
div > svg {
|
|
108
|
+
position: relative;
|
|
109
|
+
width: ${({ $size }) => iconSize[`${$size}`]}px;
|
|
110
|
+
margin-left: ${({ $size }) => iconOffsetX[`${$size}`]}px;
|
|
111
|
+
top: ${({ $size }) => iconOffsetY[`${$size}`]}px;
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
const TextContainer = styled.div `
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-flow: column nowrap;
|
|
117
|
+
gap: 4px;
|
|
118
|
+
order: ${({ $textPosition }) => ($textPosition === 'left' ? -1 : 1)};
|
|
119
|
+
`;
|
|
120
|
+
const TooltipContainer = styled.div `
|
|
121
|
+
display: none;
|
|
122
|
+
position: absolute;
|
|
123
|
+
top: 100%;
|
|
124
|
+
z-index: 250;
|
|
125
|
+
background-color: var(--color-white);
|
|
126
|
+
border-radius: 24px;
|
|
127
|
+
box-shadow: var(--elevation-2);
|
|
128
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
129
|
+
`;
|
|
130
|
+
const Group = ({ children, numDisplayed, total }) => {
|
|
131
|
+
let size = 0;
|
|
132
|
+
// filter out ReactNodes and ReactElements that are not Avatars
|
|
133
|
+
const displayedElements = React.Children.map(children, (child, index) => {
|
|
134
|
+
if (React.isValidElement(child) &&
|
|
135
|
+
child.type.displayName === 'Avatar') {
|
|
136
|
+
size = child.props.size;
|
|
137
|
+
return React.createElement(AvatarWrapper, { "$index": index }, child);
|
|
138
|
+
}
|
|
139
|
+
return null;
|
|
140
|
+
}).slice(0, numDisplayed);
|
|
141
|
+
displayedElements.push(React.createElement(Total, { "$index": displayedElements.length + 1, "$size": size },
|
|
142
|
+
React.createElement(P, { "$fontSize": 11, "$lineHeight": 20 },
|
|
143
|
+
"+",
|
|
144
|
+
total - numDisplayed)));
|
|
145
|
+
return React.createElement(Box, null, displayedElements);
|
|
146
|
+
};
|
|
147
|
+
Group.displayName = 'Avatar.Group';
|
|
148
|
+
Avatar.Group = Group;
|
|
149
|
+
const AvatarWrapper = styled.div `
|
|
150
|
+
position: relative;
|
|
151
|
+
z-index: ${({ $index }) => `-${$index}`};
|
|
152
|
+
border-radius: 50%;
|
|
153
|
+
border: 2px solid var(--color-white);
|
|
154
|
+
margin-right: -8px;
|
|
155
|
+
`;
|
|
156
|
+
const Total = styled.div `
|
|
157
|
+
position: relative;
|
|
158
|
+
z-index: ${({ $index }) => `-${$index}`};
|
|
159
|
+
display: flex;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
align-items: center;
|
|
162
|
+
${({ $size }) => `
|
|
163
|
+
width: ${$size}px;
|
|
164
|
+
height: ${$size}px;
|
|
165
|
+
`}
|
|
166
|
+
border-radius: 50%;
|
|
167
|
+
background-color: var(--color-grey-9);
|
|
168
|
+
`;
|
|
169
|
+
export { Avatar };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Approved = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 18 18" },
|
|
3
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", fill: "#09B3A1", rx: "8" }),
|
|
4
|
+
React.createElement("path", { fill: "#fff", d: "M6.485 8.521a1.1 1.1 0 1 0-1.555 1.555l2.199 2.199a1.1 1.1 0 0 0 1.555 0l4.398-4.398a1.1 1.1 0 0 0-1.555-1.555l-3.62 3.62-1.422-1.421Z" }),
|
|
5
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", stroke: "#F8F9F9", strokeWidth: "2", rx: "8" })));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Busy = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 18 18" },
|
|
3
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", fill: "#F34436", rx: "8" }),
|
|
4
|
+
React.createElement("path", { fill: "#fff", d: "m7.839 5.526 4.622 4.622c.33.33.33.825 0 1.155l-1.156 1.155a.798.798 0 0 1-1.155 0L5.528 7.838a.798.798 0 0 1 0-1.156l1.156-1.155a.798.798 0 0 1 1.155 0Z" }),
|
|
5
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", stroke: "#F8F9F9", strokeWidth: "2", rx: "8" })));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Declined = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 18 18" },
|
|
3
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", fill: "#F34436", rx: "8" }),
|
|
4
|
+
React.createElement("path", { fill: "#fff", d: "M10.47 9.015 12 7.479c.402-.404.4-1.056-.005-1.457a1.034 1.034 0 0 0-1.46.005L9.013 7.555 7.464 6.003A1.034 1.034 0 0 0 6.004 6 1.028 1.028 0 0 0 6 7.457l1.556 1.559-1.522 1.528c-.402.403-.4 1.056.004 1.457.404.4 1.058.399 1.46-.005l1.515-1.52 1.486 1.489a1.034 1.034 0 0 0 1.46.003 1.028 1.028 0 0 0 .003-1.457L10.47 9.015Z" }),
|
|
5
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", stroke: "#F8F9F9", strokeWidth: "2", rx: "8" })));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Default = () => (React.createElement("svg", { viewBox: "0 0 229 228", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
3
|
+
React.createElement("rect", { width: "228", height: "228", transform: "translate(0.599976)", fill: "#F8F9F9" }),
|
|
4
|
+
React.createElement("path", { d: "M114.6 114C107.381 114 101.202 111.43 96.0609 106.289C90.9203 101.148 88.35 94.9688 88.35 87.75C88.35 80.5312 90.9203 74.3516 96.0609 69.2109C101.202 64.0703 107.381 61.5 114.6 61.5C121.819 61.5 127.998 64.0703 133.139 69.2109C138.28 74.3516 140.85 80.5312 140.85 87.75C140.85 94.9688 138.28 101.148 133.139 106.289C127.998 111.43 121.819 114 114.6 114ZM62.1 166.5V148.125C62.1 144.406 63.0581 140.987 64.9744 137.868C66.8862 134.753 69.4281 132.375 72.6 130.734C79.3812 127.344 86.2719 124.8 93.2719 123.102C100.272 121.409 107.381 120.562 114.6 120.562C121.819 120.562 128.928 121.409 135.928 123.102C142.928 124.8 149.819 127.344 156.6 130.734C159.772 132.375 162.314 134.753 164.226 137.868C166.142 140.987 167.1 144.406 167.1 148.125V166.5H62.1ZM75.225 153.375H153.975V148.125C153.975 146.922 153.675 145.828 153.076 144.844C152.472 143.859 151.678 143.094 150.694 142.547C144.787 139.594 138.827 137.378 132.811 135.899C126.795 134.425 120.725 133.688 114.6 133.688C108.475 133.688 102.405 134.425 96.389 135.899C90.3734 137.378 84.4125 139.594 78.5062 142.547C77.5219 143.094 76.73 143.859 76.1306 144.844C75.5269 145.828 75.225 146.922 75.225 148.125V153.375ZM114.6 100.875C118.209 100.875 121.3 99.5887 123.873 97.0162C126.441 94.4481 127.725 91.3594 127.725 87.75C127.725 84.1406 126.441 81.0519 123.873 78.4837C121.3 75.9112 118.209 74.625 114.6 74.625C110.991 74.625 107.902 75.9112 105.334 78.4837C102.761 81.0519 101.475 84.1406 101.475 87.75C101.475 91.3594 102.761 94.4481 105.334 97.0162C107.902 99.5887 110.991 100.875 114.6 100.875Z", fill: "#D4E7FA" })));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Focus = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 18 18" },
|
|
3
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", fill: "#fff", rx: "8" }),
|
|
4
|
+
React.createElement("path", { fill: "#A246C1", d: "M9 16A7 7 0 1 1 9 2a7 7 0 0 1 0 14Zm0-2.333a4.667 4.667 0 1 0 0-9.334 4.667 4.667 0 0 0 0 9.334Zm0-2.334a2.333 2.333 0 1 1 0-4.666 2.333 2.333 0 0 1 0 4.666Z" }),
|
|
5
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", stroke: "#F8F9F9", strokeWidth: "2", rx: "8" })));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Approved } from './approved';
|
|
2
|
+
export { Busy } from './busy';
|
|
3
|
+
export { Declined } from './declined';
|
|
4
|
+
export { Default } from './default';
|
|
5
|
+
export { Focus } from './focus';
|
|
6
|
+
export { Locked } from './locked';
|
|
7
|
+
export { Offline } from './offline';
|
|
8
|
+
export { Online } from './online';
|
|
9
|
+
export { Subscribed } from './subscribed';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Locked = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 18 18" },
|
|
3
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", fill: "#B3B7BC", rx: "8" }),
|
|
4
|
+
React.createElement("path", { fill: "#4A4F55", d: "M9.023 4.594H8.98c-1.221 0-2.21.973-2.21 2.175V7.89h1.116V6.78c0-.6.494-1.087 1.105-1.087h.022c.61 0 1.105.486 1.105 1.087v1.11h1.116V6.77c0-1.203-.989-2.176-2.21-2.176ZM6.77 7.89h1.116V8.99H6.769V7.89Zm3.348 0h1.116V8.99h-1.116V7.89Zm0 1.099H6.77c-.616 0-1.116.492-1.116 1.099v1.648c0 .91.742 1.648 1.655 1.648h3.386c.914 0 1.655-.732 1.655-1.648v-1.648c0-.607-.5-1.1-1.116-1.1h-1.116Z" }),
|
|
5
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", stroke: "#F8F9F9", strokeWidth: "2", rx: "8" })));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Offline = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 18 18" },
|
|
3
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", fill: "#4A4F55", rx: "8" }),
|
|
4
|
+
React.createElement("path", { fill: "#B3B7BC", d: "M9 12.3a3.3 3.3 0 1 0 0-6.6 3.3 3.3 0 0 0 0 6.6Z" }),
|
|
5
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", stroke: "#F8F9F9", strokeWidth: "2", rx: "8" })));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Online = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 18 18" },
|
|
3
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", fill: "#3CC260", rx: "8" }),
|
|
4
|
+
React.createElement("rect", { width: "16", height: "16", x: "1", y: "1", stroke: "#F8F9F9", strokeWidth: "2", rx: "8" })));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Subscribed = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 20 20" },
|
|
3
|
+
React.createElement("path", { fill: "#fff", fillRule: "evenodd", d: "M19.088 9.994a9.088 9.088 0 1 1-18.176 0 9.088 9.088 0 0 1 18.176 0Z", clipRule: "evenodd" }),
|
|
4
|
+
React.createElement("path", { fill: "url(#a)", d: "M17.088 9.994a7.088 7.088 0 1 1-14.176 0 7.088 7.088 0 0 1 14.176 0Z" }),
|
|
5
|
+
React.createElement("path", { fill: "#fff", d: "M9.25 5h1.5v.936c.338.048.648.134.927.26.458.202.813.485 1.067.847.255.362.386.781.394 1.258h-1.665a.976.976 0 0 0-.413-.734c-.244-.175-.575-.262-.992-.262-.283 0-.523.039-.718.117a1.01 1.01 0 0 0-.45.316.748.748 0 0 0-.152.461.645.645 0 0 0 .092.375c.07.107.165.2.285.278.12.075.26.141.418.199.157.054.326.101.505.14l.738.172c.359.078.688.183.988.313.299.13.559.29.778.48a2.003 2.003 0 0 1 .698 1.559c-.003.49-.131.914-.385 1.273-.252.357-.615.634-1.091.832-.302.125-.643.21-1.024.255V15h-1.5v-.942a4.002 4.002 0 0 1-.923-.242c-.49-.198-.872-.49-1.148-.879-.273-.39-.416-.873-.429-1.449h1.681c.019.269.098.492.237.672.142.177.33.311.566.402.238.089.507.133.806.133.294 0 .55-.041.767-.125.219-.083.389-.199.509-.347a.79.79 0 0 0 .18-.512c0-.18-.054-.33-.164-.453a1.248 1.248 0 0 0-.473-.313 4.908 4.908 0 0 0-.759-.234l-.894-.219c-.693-.164-1.24-.42-1.641-.77-.402-.348-.601-.818-.598-1.41-.003-.484.13-.907.397-1.269.27-.362.64-.645 1.111-.848.242-.104.5-.181.775-.232V5Z" }),
|
|
6
|
+
React.createElement("defs", null,
|
|
7
|
+
React.createElement("radialGradient", { id: "a", cx: "0", cy: "0", r: "1", gradientTransform: "rotate(-49.924 18.2 -.497) scale(14.7338 19.4196)", gradientUnits: "userSpaceOnUse" },
|
|
8
|
+
React.createElement("stop", { stopColor: "#09B3A1" }),
|
|
9
|
+
React.createElement("stop", { offset: "1", stopColor: "#3AC15E" })))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Avatar } from './avatar';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { colorReference } from '../../../common';
|
|
5
|
+
export const Icon = ({ as, children, color = 'grey-3', size = 16, sx, ...rest }) => {
|
|
6
|
+
return (React.createElement(SVG, { as: as, width: size, height: size, viewBox: "0 0 16 16", fill: colorReference[color], xmlns: "http://www.w3.org/2000/svg", "$sx": sx, ...rest }, children));
|
|
7
|
+
};
|
|
8
|
+
const SVG = styled.svg `
|
|
9
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
10
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icon } from './icon';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './actions';
|
|
2
|
+
export * from './atoms';
|
|
3
|
+
export * from './card';
|
|
4
|
+
export * from './editor';
|
|
5
|
+
export * from './feedback';
|
|
6
|
+
export * from './iconography';
|
|
7
|
+
export * from './input';
|
|
8
|
+
export * from './media';
|
|
9
|
+
export * from './navigation';
|
|
10
|
+
export * from './surfaces';
|
|
11
|
+
export * from './table';
|
|
12
|
+
export * from './custom';
|