@soul-refiner/design-system 0.1.27 → 0.1.29
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 +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.js +233 -0
- package/dist/components/actions/button/button.stories.js +58 -0
- package/dist/components/actions/button/index.js +1 -0
- package/dist/components/actions/dropdown/dropdown.js +202 -0
- package/dist/components/actions/dropdown/dropdown.stories.js +99 -0
- package/dist/components/actions/dropdown/index.js +1 -0
- package/dist/components/actions/index.js +5 -0
- package/dist/components/actions/rate/index.js +1 -0
- package/dist/components/actions/rate/rate.js +45 -0
- package/dist/components/actions/rate/rate.stories.js +29 -0
- package/dist/components/actions/switch/index.js +1 -0
- package/dist/components/actions/switch/switch.js +71 -0
- package/dist/components/actions/switch/switch.stories.js +25 -0
- package/dist/components/actions/toggle/index.js +1 -0
- package/dist/components/actions/toggle/toggle.js +56 -0
- package/dist/components/actions/toggle/toggle.stories.js +20 -0
- package/dist/components/actions/upload/index.js +1 -0
- package/dist/components/actions/upload/upload.js +155 -0
- package/dist/components/actions/upload/upload.stories.js +58 -0
- package/dist/components/atoms/box/box.js +15 -0
- package/dist/components/atoms/box/box.stories.js +85 -0
- package/dist/components/atoms/box/index.js +1 -0
- package/dist/components/atoms/colors/colors.js +34 -0
- package/dist/components/atoms/colors/colors.stories.js +75 -0
- package/dist/components/atoms/colors/index.js +1 -0
- package/dist/components/atoms/index.js +2 -0
- package/dist/components/atoms/typography/display.js +9 -0
- package/dist/components/atoms/typography/heading.js +33 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/paragraph.js +16 -0
- package/dist/components/atoms/typography/typography.js +11 -0
- package/dist/components/atoms/typography/typography.stories.js +96 -0
- package/dist/components/card/action/action.js +51 -0
- package/dist/components/card/action/index.js +1 -0
- package/dist/components/card/audio/audio.js +100 -0
- package/dist/components/card/audio/index.js +1 -0
- package/dist/components/card/card.js +22 -0
- package/dist/components/card/card.stories.js +284 -0
- package/dist/components/card/feature/feature.js +168 -0
- package/dist/components/card/feature/index.js +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/person/index.js +1 -0
- package/dist/components/card/person/person.js +57 -0
- package/dist/components/card/price/index.js +1 -0
- package/dist/components/card/price/price.js +45 -0
- package/dist/components/card/regular/index.js +1 -0
- package/dist/components/card/regular/regular.js +30 -0
- package/dist/components/card/video/index.js +1 -0
- package/dist/components/card/video/video.js +92 -0
- package/dist/components/card/written/index.js +1 -0
- package/dist/components/card/written/written.js +101 -0
- package/dist/components/editor/constants.js +133 -0
- package/dist/components/editor/editor.js +73 -0
- package/dist/components/editor/editor.stories.js +16 -0
- package/dist/components/editor/index.js +1 -0
- package/dist/components/editor/navbar/alignment_dropdown.js +93 -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 +205 -0
- package/dist/components/editor/navbar/style_dropdown.js +65 -0
- package/dist/components/editor/plate.js +27 -0
- package/dist/components/editor/plugins/blockquote.js +8 -0
- package/dist/components/editor/plugins/buttons.js +81 -0
- package/dist/components/editor/plugins/exitBreak.js +31 -0
- package/dist/components/editor/plugins/image.js +47 -0
- package/dist/components/editor/plugins/index.js +111 -0
- package/dist/components/editor/plugins/link.js +74 -0
- package/dist/components/editor/plugins/list.js +17 -0
- package/dist/components/editor/plugins/resetBlockType.js +22 -0
- package/dist/components/editor/plugins/selectOnBackspace.js +6 -0
- package/dist/components/editor/plugins/softBreak.js +14 -0
- package/dist/components/editor/plugins/text.js +81 -0
- package/dist/components/feedback/badge/badge.js +65 -0
- package/dist/components/feedback/badge/badge.stories.js +25 -0
- package/dist/components/feedback/badge/index.js +1 -0
- package/dist/components/feedback/banner/banner.js +76 -0
- package/dist/components/feedback/banner/banner.stories.js +33 -0
- package/dist/components/feedback/banner/index.js +1 -0
- package/dist/components/feedback/chip/chip.js +93 -0
- package/dist/components/feedback/chip/chip.stories.js +39 -0
- package/dist/components/feedback/chip/index.js +1 -0
- package/dist/components/feedback/index.js +7 -0
- package/dist/components/feedback/loader/index.js +1 -0
- package/dist/components/feedback/loader/loader.js +33 -0
- package/dist/components/feedback/loader/loader.stories.js +29 -0
- package/dist/components/feedback/notification/index.js +1 -0
- package/dist/components/feedback/notification/notification.js +71 -0
- package/dist/components/feedback/notification/notificition.stories.js +30 -0
- package/dist/components/feedback/progress/index.js +1 -0
- package/dist/components/feedback/progress/progress.js +86 -0
- package/dist/components/feedback/progress/progress.stories.js +32 -0
- package/dist/components/feedback/toast/index.js +1 -0
- package/dist/components/feedback/toast/toast.js +70 -0
- package/dist/components/feedback/toast/toast.stories.js +26 -0
- package/dist/components/feedback/tooltip/index.js +1 -0
- package/dist/components/feedback/tooltip/tooltip.js +25 -0
- package/dist/components/feedback/tooltip/tooltip.stories.js +43 -0
- package/dist/components/iconography/avatar/avatar.js +148 -0
- package/dist/components/iconography/avatar/avatar.stories.js +55 -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 +3 -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 +9 -0
- package/dist/components/iconography/icon/icon.stories.js +113 -0
- package/dist/components/iconography/icon/index.js +1 -0
- package/dist/components/iconography/index.js +2 -0
- package/dist/components/index.js +9 -0
- package/dist/components/input/checkbox/checkbox.js +21 -0
- package/dist/components/input/checkbox/checkbox.stories.js +19 -0
- package/dist/components/input/checkbox/index.js +1 -0
- package/dist/components/input/date/date.js +516 -0
- package/dist/components/input/date/date.stories.js +30 -0
- package/dist/components/input/date/index.js +1 -0
- package/dist/components/input/filter/filter.js +194 -0
- package/dist/components/input/filter/filter.stories.js +30 -0
- package/dist/components/input/filter/index.js +1 -0
- package/dist/components/input/index.js +5 -0
- package/dist/components/input/radio/index.js +1 -0
- package/dist/components/input/radio/radio.js +77 -0
- package/dist/components/input/radio/radio.stories.js +34 -0
- package/dist/components/input/search/index.js +1 -0
- package/dist/components/input/search/search.js +136 -0
- package/dist/components/input/search/search.stories.js +50 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +105 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.stories.js +37 -0
- package/dist/components/navigation/breadcrumb/index.js +1 -0
- package/dist/components/navigation/index.js +2 -0
- package/dist/components/navigation/tabs/index.js +1 -0
- package/dist/components/navigation/tabs/tabs.js +144 -0
- package/dist/components/navigation/tabs/tabs.stories.js +88 -0
- package/dist/components/surfaces/accordion/accordion.js +45 -0
- package/dist/components/surfaces/accordion/accordion.stories.js +16 -0
- package/dist/components/surfaces/accordion/index.js +1 -0
- package/dist/components/surfaces/comment/comment.js +126 -0
- package/dist/components/surfaces/comment/comment.stories.js +82 -0
- package/dist/components/surfaces/comment/helpers.js +38 -0
- package/dist/components/surfaces/comment/index.js +1 -0
- package/dist/components/surfaces/drawer/drawer.js +124 -0
- package/dist/components/surfaces/drawer/drawer.stories.js +77 -0
- package/dist/components/surfaces/drawer/index.js +1 -0
- package/dist/components/surfaces/index.js +5 -0
- package/dist/components/surfaces/message/index.js +1 -0
- package/dist/components/surfaces/message/message.js +43 -0
- package/dist/components/surfaces/message/message.stories.js +71 -0
- package/dist/components/surfaces/modal/index.js +1 -0
- package/dist/components/surfaces/modal/modal.js +100 -0
- package/dist/components/surfaces/modal/modal.stories.js +18 -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 +183 -0
- package/dist/components/table/table/table.stories.js +45 -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 +128 -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/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/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/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/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_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_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 +34 -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/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_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 +14 -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 +21 -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_remove.js +6 -0
- package/dist/icons/people/groups.js +6 -0
- package/dist/icons/people/index.js +9 -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_remove.js +6 -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/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 +14 -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/indent_decrease.js +6 -0
- package/dist/icons/text/indent_increase.js +6 -0
- package/dist/icons/text/index.js +10 -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 +3 -0
- package/dist/types/attributes.js +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/date.js +98 -0
- package/dist/utils/function.js +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +5 -4
- package/src/components/editor/editor.tsx +4 -0
- package/src/components/editor/plugins/text.tsx +16 -7
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { colorReference } from 'common';
|
|
4
|
+
import { Box, P } from 'components';
|
|
5
|
+
import { CheckmarkCircle, Checkmarks, Close, MinusCircle, Pause } from 'icons';
|
|
6
|
+
export const Progress = ({ hasError, progress, subtitle, sx, title, type, }) => {
|
|
7
|
+
const isComplete = !hasError && progress > 99;
|
|
8
|
+
const isDetailed = type === 'detailed';
|
|
9
|
+
const percent = hasError || isComplete ? 100 : progress;
|
|
10
|
+
const displayPercent = hasError ? '-' : percent + '%';
|
|
11
|
+
const color = hasError ? 'red-4' : isComplete ? 'green-3' : 'primary-blue-2';
|
|
12
|
+
const gradientColors = hasError
|
|
13
|
+
? {
|
|
14
|
+
start: 'var(--color-red-6)',
|
|
15
|
+
end: 'var(--color-red-4)',
|
|
16
|
+
empty: 'var(--color-red-8)',
|
|
17
|
+
bg: 'var(--color-red-9)',
|
|
18
|
+
}
|
|
19
|
+
: isComplete
|
|
20
|
+
? {
|
|
21
|
+
start: 'var(--color-green-5)',
|
|
22
|
+
end: 'var(--color-green-3)',
|
|
23
|
+
empty: 'var(--color-green-8)',
|
|
24
|
+
bg: 'var(--color-green-9)',
|
|
25
|
+
}
|
|
26
|
+
: {
|
|
27
|
+
start: '#abcfed',
|
|
28
|
+
end: 'var(--color-primary-blue-2)',
|
|
29
|
+
empty: 'var(--color-primary-blue-3)',
|
|
30
|
+
bg: 'var(--color-primary-blue-4)',
|
|
31
|
+
};
|
|
32
|
+
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 }));
|
|
33
|
+
return (React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16, sx: sx },
|
|
34
|
+
isDetailed && (React.createElement(IconWrapper, { "$completedDegree": Math.round(percent * 3.6), "$gradientColors": gradientColors },
|
|
35
|
+
React.createElement(IconInnerWrapper, { "$bg": gradientColors.bg }, icon))),
|
|
36
|
+
React.createElement(Box, { "$dir": "column", "$flex": 1, "$gap": 8 },
|
|
37
|
+
React.createElement(Box, null,
|
|
38
|
+
title && (React.createElement(P, { "$color": "grey-2", "$fontSize": 14, "$lineHeight": 20 }, title)),
|
|
39
|
+
isComplete && (React.createElement(CheckmarkCircle, { color: "green-3", size: 24, sx: "margin-left: auto;" })),
|
|
40
|
+
hasError && (React.createElement(MinusCircle, { color: "red-4", size: 24, sx: "margin-left: auto;" }))),
|
|
41
|
+
React.createElement(BarWrapper, null,
|
|
42
|
+
React.createElement(Bar, { "$color": colorReference[color], "$percent": percent })),
|
|
43
|
+
subtitle && (React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle))),
|
|
44
|
+
isDetailed && (React.createElement(P, { "$color": "grey-4", "$textAlign": "center", sx: "width: 72px;" }, displayPercent))));
|
|
45
|
+
};
|
|
46
|
+
const BarWrapper = styled.div `
|
|
47
|
+
position: relative;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 12px;
|
|
50
|
+
border-radius: 32px;
|
|
51
|
+
background-color: var(--color-grey-8);
|
|
52
|
+
`;
|
|
53
|
+
const Bar = styled.div `
|
|
54
|
+
width: ${({ $percent }) => $percent}%;
|
|
55
|
+
height: 12px;
|
|
56
|
+
background-color: ${({ $color }) => $color};
|
|
57
|
+
border-radius: 32px;
|
|
58
|
+
`;
|
|
59
|
+
const IconWrapper = styled.div `
|
|
60
|
+
position: relative;
|
|
61
|
+
display: block;
|
|
62
|
+
width: 45px;
|
|
63
|
+
height: 45px;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
border-radius: 50%;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
background: conic-gradient(
|
|
70
|
+
${({ $gradientColors }) => $gradientColors.start},
|
|
71
|
+
${({ $gradientColors }) => $gradientColors.end}
|
|
72
|
+
${({ $completedDegree }) => $completedDegree}deg,
|
|
73
|
+
${({ $gradientColors }) => $gradientColors.empty}
|
|
74
|
+
${({ $completedDegree }) => $completedDegree}deg 360deg
|
|
75
|
+
);
|
|
76
|
+
border: 1px solid ${({ $gradientColors }) => $gradientColors.bg};
|
|
77
|
+
`;
|
|
78
|
+
const IconInnerWrapper = styled.div `
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
align-items: center;
|
|
82
|
+
height: 39px;
|
|
83
|
+
width: 39px;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
background-color: ${({ $bg }) => $bg};
|
|
86
|
+
`;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Progress } from './progress';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Feedback/Progress Bar',
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'centered',
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
const Story = (args) => (React.createElement(Progress, { sx: "min-width: 452px;", ...args }));
|
|
10
|
+
export const Default = Story.bind({});
|
|
11
|
+
Default.argTypes = {
|
|
12
|
+
hasError: {
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
},
|
|
15
|
+
progress: {
|
|
16
|
+
type: 'number',
|
|
17
|
+
control: 'range',
|
|
18
|
+
step: 1,
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
options: ['compact', 'detailed'],
|
|
22
|
+
control: 'select',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
Default.args = {
|
|
26
|
+
hasError: false,
|
|
27
|
+
progress: 52,
|
|
28
|
+
subtitle: 'Support Text',
|
|
29
|
+
title: 'Title label',
|
|
30
|
+
type: 'compact',
|
|
31
|
+
};
|
|
32
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toast } from './toast';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Styles } from 'common';
|
|
4
|
+
import { Button, P } from 'components';
|
|
5
|
+
import { AlertCircle, AlertOctogon, AlertTriangle, Close, Information, } from 'icons';
|
|
6
|
+
export const Toast = ({ content, href, onClose, type }) => {
|
|
7
|
+
const iconLookup = {
|
|
8
|
+
error: React.createElement(AlertOctogon, { size: 24 }),
|
|
9
|
+
info: React.createElement(Information, { size: 24 }),
|
|
10
|
+
success: React.createElement(AlertCircle, { size: 24 }),
|
|
11
|
+
warning: React.createElement(AlertTriangle, { size: 24 }),
|
|
12
|
+
};
|
|
13
|
+
return (React.createElement(Wrapper, { as: "output", "$align": "center", "$dir": "row", "$gap": 8, "$type": type },
|
|
14
|
+
iconLookup[type],
|
|
15
|
+
React.createElement(P, { as: "span" }, content),
|
|
16
|
+
href && (React.createElement(P, { sx: "padding-left: 8px;", as: "a", href: href, "$color": "primary-blue-2" }, "View")),
|
|
17
|
+
React.createElement(Button, { icon: React.createElement(Close, { size: 24 }), onClick: onClose, type: "special" })));
|
|
18
|
+
};
|
|
19
|
+
const Wrapper = styled.output `
|
|
20
|
+
position: fixed;
|
|
21
|
+
bottom: 24px;
|
|
22
|
+
right: 24px;
|
|
23
|
+
width: 99vw;
|
|
24
|
+
max-width: 476px;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
padding: 12px 16px;
|
|
27
|
+
display: flex;
|
|
28
|
+
box-shadow: var(--elevation-2);
|
|
29
|
+
border-radius: var(--small);
|
|
30
|
+
|
|
31
|
+
&::before {
|
|
32
|
+
position: absolute;
|
|
33
|
+
content: '';
|
|
34
|
+
left: 0px;
|
|
35
|
+
width: 4px;
|
|
36
|
+
height: 100%;
|
|
37
|
+
background-color: ${({ $type }) => $type === 'error'
|
|
38
|
+
? 'var(--color-red-4)'
|
|
39
|
+
: $type === 'info'
|
|
40
|
+
? 'var(--color-blue-4)'
|
|
41
|
+
: $type === 'success'
|
|
42
|
+
? 'var(--color-green-3)'
|
|
43
|
+
: 'var(--color-orange-5)'};
|
|
44
|
+
border-radius: 8px 0px 0px 8px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
& > svg {
|
|
48
|
+
fill: ${({ $type }) => $type === 'error'
|
|
49
|
+
? 'var(--color-red-4)'
|
|
50
|
+
: $type === 'info'
|
|
51
|
+
? 'var(--color-blue-4)'
|
|
52
|
+
: $type === 'success'
|
|
53
|
+
? 'var(--color-green-3)'
|
|
54
|
+
: 'var(--color-orange-5)'};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
a {
|
|
58
|
+
&:hover {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
text-decoration: underline;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
button {
|
|
65
|
+
padding: 0px;
|
|
66
|
+
margin-left: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
${Styles.flex}
|
|
70
|
+
`;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Toast } from './toast';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Feedback/Toast',
|
|
5
|
+
};
|
|
6
|
+
const Story = (args) => React.createElement(Toast, { ...args });
|
|
7
|
+
export const Default = Story.bind({});
|
|
8
|
+
Default.argTypes = {
|
|
9
|
+
content: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
},
|
|
12
|
+
href: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
options: ['error', 'info', 'success', 'warning'],
|
|
18
|
+
control: 'select',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
Default.args = {
|
|
22
|
+
content: 'Notification message title',
|
|
23
|
+
href: '',
|
|
24
|
+
type: 'success',
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip } from './tooltip';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tooltip as ReactTooltip } from 'react-tooltip';
|
|
3
|
+
export const Tooltip = ({ children, content, place = 'top' }) => {
|
|
4
|
+
const id = React.useId();
|
|
5
|
+
return (React.createElement(React.Fragment, null,
|
|
6
|
+
React.createElement(ReactTooltip, { id: id, place: place, style: {
|
|
7
|
+
fontFamily: 'Inter',
|
|
8
|
+
fontSize: '12px',
|
|
9
|
+
fontWeight: 400,
|
|
10
|
+
lineHeight: '150%',
|
|
11
|
+
textAlign: 'center',
|
|
12
|
+
padding: '8px',
|
|
13
|
+
maxWidth: '280px',
|
|
14
|
+
backgroundColor: 'var(--color-grey-3)',
|
|
15
|
+
boxShadow: 'var(--elevation-2)',
|
|
16
|
+
borderRadius: '4px',
|
|
17
|
+
} }),
|
|
18
|
+
React.Children.map(children, (child) => {
|
|
19
|
+
return (React.isValidElement(child) &&
|
|
20
|
+
React.cloneElement(child, {
|
|
21
|
+
'data-tooltip-id': id,
|
|
22
|
+
'data-tooltip-content': content,
|
|
23
|
+
}));
|
|
24
|
+
})));
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, Button } from 'components';
|
|
3
|
+
import { Tooltip } from './tooltip';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Feedback/Tooltip',
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
const Story = (args) => (React.createElement(Box, null,
|
|
11
|
+
React.createElement(Tooltip, { ...args },
|
|
12
|
+
React.createElement(Button, { type: "special" }, "Trigger 1")),
|
|
13
|
+
React.createElement(Tooltip, { ...args },
|
|
14
|
+
React.createElement(Button, { type: "special" }, "Trigger 2")),
|
|
15
|
+
React.createElement(Tooltip, { ...args },
|
|
16
|
+
React.createElement(Button, { type: "special" }, "Trigger 3")),
|
|
17
|
+
React.createElement(Tooltip, { ...args },
|
|
18
|
+
React.createElement(Button, { type: "special" }, "Trigger 4"))));
|
|
19
|
+
export const Default = Story.bind({});
|
|
20
|
+
Default.args = {
|
|
21
|
+
content: 'Assertively deploy resource maximizing supply chains rather than highly efficient information. Progressively leverage others installed base resources whereas tactical.',
|
|
22
|
+
place: 'bottom',
|
|
23
|
+
};
|
|
24
|
+
Default.argTypes = {
|
|
25
|
+
place: {
|
|
26
|
+
options: [
|
|
27
|
+
'top',
|
|
28
|
+
'top-start',
|
|
29
|
+
'top-end',
|
|
30
|
+
'right',
|
|
31
|
+
'right-start',
|
|
32
|
+
'right-end',
|
|
33
|
+
'bottom',
|
|
34
|
+
'bottom-start',
|
|
35
|
+
'bottom-end',
|
|
36
|
+
'left',
|
|
37
|
+
'left-start',
|
|
38
|
+
'left-end',
|
|
39
|
+
],
|
|
40
|
+
control: 'select',
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, H, P } from 'components';
|
|
4
|
+
import { Approved, Busy, Declined, Default, Focus, Locked, Offline, Online, Subscribed, } from './icons';
|
|
5
|
+
/**
|
|
6
|
+
* Lookup tables for sizes
|
|
7
|
+
*/
|
|
8
|
+
const iconReference = {
|
|
9
|
+
approved: Approved,
|
|
10
|
+
busy: Busy,
|
|
11
|
+
declined: Declined,
|
|
12
|
+
focus: Focus,
|
|
13
|
+
locked: Locked,
|
|
14
|
+
none: () => React.createElement(React.Fragment, null),
|
|
15
|
+
online: Online,
|
|
16
|
+
offline: Offline,
|
|
17
|
+
subscribed: Subscribed,
|
|
18
|
+
};
|
|
19
|
+
const iconSize = {
|
|
20
|
+
'96': 18,
|
|
21
|
+
'72': 18,
|
|
22
|
+
'64': 18,
|
|
23
|
+
'56': 15,
|
|
24
|
+
'48': 15,
|
|
25
|
+
'40': 15,
|
|
26
|
+
'36': 14,
|
|
27
|
+
'32': 14,
|
|
28
|
+
'24': 12,
|
|
29
|
+
'16': 8,
|
|
30
|
+
};
|
|
31
|
+
const iconOffsetX = {
|
|
32
|
+
'96': -23,
|
|
33
|
+
'72': -21,
|
|
34
|
+
'64': -20,
|
|
35
|
+
'56': -16,
|
|
36
|
+
'48': -15,
|
|
37
|
+
'40': -13,
|
|
38
|
+
'36': -12,
|
|
39
|
+
'32': -12,
|
|
40
|
+
'24': -10,
|
|
41
|
+
'16': -8,
|
|
42
|
+
};
|
|
43
|
+
const iconOffsetY = {
|
|
44
|
+
'96': 5,
|
|
45
|
+
'72': 3,
|
|
46
|
+
'64': 2,
|
|
47
|
+
'56': 1,
|
|
48
|
+
'48': 0,
|
|
49
|
+
'40': -2,
|
|
50
|
+
'36': -2,
|
|
51
|
+
'32': -2,
|
|
52
|
+
'24': -2,
|
|
53
|
+
'16': -1,
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* Avatar
|
|
58
|
+
*/
|
|
59
|
+
const Avatar = ({ as = 'button', href, image, size = 64, status, subtitle, sx, textPosition = 'left', title, ...rest }) => {
|
|
60
|
+
const [displayDefault, setDisplayDefault] = React.useState(false);
|
|
61
|
+
const Icon = iconReference?.[status ?? 'none'];
|
|
62
|
+
return (React.createElement(Box, { "$align": "center", "$gap": 18, ...rest, sx: sx },
|
|
63
|
+
React.createElement(Container, { as: as, "$size": size, href: href },
|
|
64
|
+
!displayDefault && (React.createElement("img", { src: image ?? '', onError: () => setDisplayDefault(true) })),
|
|
65
|
+
displayDefault && React.createElement(Default, null),
|
|
66
|
+
React.createElement("div", null,
|
|
67
|
+
React.createElement(Icon, null))),
|
|
68
|
+
(title || subtitle) && (React.createElement(TextContainer, { "$textPosition": textPosition },
|
|
69
|
+
title && (React.createElement(H, { as: "h3", "$bold": true, "$color": "grey-2", "$textClampLines": 1, sx: "font-size: 26px;" }, title)),
|
|
70
|
+
subtitle && (React.createElement(P, { "$color": "grey-4", "$textClampLines": 1 }, subtitle))))));
|
|
71
|
+
};
|
|
72
|
+
Avatar.displayName = 'Avatar';
|
|
73
|
+
const Container = styled.div `
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-flow: row nowrap;
|
|
77
|
+
cursor: ${({ as }) => as && (as === 'a' || as === 'button') ? 'pointer' : 'initial'};
|
|
78
|
+
padding: 0px;
|
|
79
|
+
border: 0px;
|
|
80
|
+
position: relative;
|
|
81
|
+
background-color: transparent;
|
|
82
|
+
|
|
83
|
+
> img,
|
|
84
|
+
> svg {
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
object-fit: cover;
|
|
89
|
+
|
|
90
|
+
${({ $size }) => `
|
|
91
|
+
width: ${$size}px;
|
|
92
|
+
height: ${$size}px;
|
|
93
|
+
`}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
div > svg {
|
|
97
|
+
position: relative;
|
|
98
|
+
width: ${({ $size }) => iconSize[`${$size}`]}px;
|
|
99
|
+
margin-left: ${({ $size }) => iconOffsetX[`${$size}`]}px;
|
|
100
|
+
top: ${({ $size }) => iconOffsetY[`${$size}`]}px;
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
103
|
+
const TextContainer = styled.div `
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-flow: column nowrap;
|
|
106
|
+
gap: 4px;
|
|
107
|
+
order: ${({ $textPosition }) => ($textPosition === 'left' ? -1 : 1)};
|
|
108
|
+
`;
|
|
109
|
+
const Group = ({ children, numDisplayed, total }) => {
|
|
110
|
+
let size = 0;
|
|
111
|
+
// filter out ReactNodes and ReactElements that are not Avatars
|
|
112
|
+
const displayedElements = React.Children.map(children, (child, index) => {
|
|
113
|
+
if (React.isValidElement(child) &&
|
|
114
|
+
child.type.displayName === 'Avatar') {
|
|
115
|
+
size = child.props.size;
|
|
116
|
+
return React.createElement(AvatarWrapper, { "$index": index }, child);
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}).slice(0, numDisplayed);
|
|
120
|
+
displayedElements.push(React.createElement(Total, { "$index": displayedElements.length + 1, "$size": size },
|
|
121
|
+
React.createElement(P, { "$fontSize": 11, "$lineHeight": 20 },
|
|
122
|
+
"+",
|
|
123
|
+
total - numDisplayed)));
|
|
124
|
+
return React.createElement(Box, null, displayedElements);
|
|
125
|
+
};
|
|
126
|
+
Group.displayName = 'Avatar.Group';
|
|
127
|
+
Avatar.Group = Group;
|
|
128
|
+
const AvatarWrapper = styled.div `
|
|
129
|
+
position: relative;
|
|
130
|
+
z-index: ${({ $index }) => `-${$index}`};
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
border: 2px solid var(--color-white);
|
|
133
|
+
margin-right: -8px;
|
|
134
|
+
`;
|
|
135
|
+
const Total = styled.div `
|
|
136
|
+
position: relative;
|
|
137
|
+
z-index: ${({ $index }) => `-${$index}`};
|
|
138
|
+
display: flex;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
align-items: center;
|
|
141
|
+
${({ $size }) => `
|
|
142
|
+
width: ${$size}px;
|
|
143
|
+
height: ${$size}px;
|
|
144
|
+
`}
|
|
145
|
+
border-radius: 50%;
|
|
146
|
+
background-color: var(--color-grey-9);
|
|
147
|
+
`;
|
|
148
|
+
export { Avatar };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Avatar } from './avatar';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Iconography/Avatar',
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'centered',
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
const Story = (args) => React.createElement(Avatar, { ...args });
|
|
10
|
+
const GroupStory = ({ ...args }) => (React.createElement(Avatar.Group, { ...args },
|
|
11
|
+
React.createElement(Avatar, { image: "https://f005.backblazeb2.com/file/sr-platform/avatar.jpg", size: 40 }),
|
|
12
|
+
React.createElement(Avatar, { image: "https://f005.backblazeb2.com/file/sr-platform/avatar.jpg", size: 40 }),
|
|
13
|
+
React.createElement(Avatar, { image: "https://f005.backblazeb2.com/file/sr-platform/avatar.jpg", size: 40 }),
|
|
14
|
+
React.createElement(Avatar, { image: "https://f005.backblazeb2.com/file/sr-platform/avatar.jpg", size: 40 }),
|
|
15
|
+
React.createElement(Avatar, { image: "https://f005.backblazeb2.com/file/sr-platform/avatar.jpg", size: 40 })));
|
|
16
|
+
export const Default = Story.bind({});
|
|
17
|
+
Default.argTypes = {
|
|
18
|
+
size: {
|
|
19
|
+
options: [96, 72, 64, 56, 48, 40, 36, 32, 24],
|
|
20
|
+
control: 'select',
|
|
21
|
+
},
|
|
22
|
+
status: {
|
|
23
|
+
options: [
|
|
24
|
+
'offline',
|
|
25
|
+
'focus',
|
|
26
|
+
'busy',
|
|
27
|
+
'online',
|
|
28
|
+
'subscribed',
|
|
29
|
+
'locked',
|
|
30
|
+
'declined',
|
|
31
|
+
'approved',
|
|
32
|
+
null,
|
|
33
|
+
],
|
|
34
|
+
control: 'select',
|
|
35
|
+
},
|
|
36
|
+
textPosition: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
options: ['left', 'right'],
|
|
39
|
+
control: 'select',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
Default.args = {
|
|
43
|
+
image: 'https://f005.backblazeb2.com/file/sr-platform/avatar.jpg',
|
|
44
|
+
size: 96,
|
|
45
|
+
status: 'online',
|
|
46
|
+
subtitle: '1 hour ago',
|
|
47
|
+
textPosition: 'right',
|
|
48
|
+
title: 'Cody Moore',
|
|
49
|
+
};
|
|
50
|
+
export const Group = GroupStory.bind({});
|
|
51
|
+
Group.args = {
|
|
52
|
+
numDisplayed: 3,
|
|
53
|
+
total: 5,
|
|
54
|
+
};
|
|
55
|
+
export default meta;
|
|
@@ -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,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const Default = () => (React.createElement("svg", { fill: "none", viewBox: "0 0 40 40" },
|
|
3
|
+
React.createElement("path", { fill: "#9DA7B2", fillRule: "evenodd", d: "M18.86 4.074c-1.343.172-2.791.707-3.872 1.43-.68.454-1.672 1.376-2.148 1.995a9.549 9.549 0 0 0-1.714 3.824c-.158.832-.16 2.573-.006 3.384a9.399 9.399 0 0 0 1.436 3.447c.466.701 1.46 1.711 2.167 2.202l.556.387-.517.182c-.705.247-2.2.992-2.906 1.447-1.454.938-3.103 2.506-4.07 3.87a15.669 15.669 0 0 0-2.603 6.205c-.177.989-.242 2.697-.114 3.005.146.353.466.548.898.548.683 0 1.054-.389 1.055-1.105.001-.562.13-1.684.282-2.448.26-1.312.87-2.892 1.563-4.043.814-1.356 2.114-2.808 3.308-3.694 1.842-1.368 3.803-2.192 6.015-2.529.28-.043 1.124-.111 1.874-.153.75-.04 1.601-.13 1.891-.198.691-.161 1.536-.467 2.167-.785.792-.399 1.841-1.187 2.437-1.831 1.223-1.322 1.991-2.866 2.334-4.687.138-.735.12-2.41-.033-3.186-.372-1.869-1.231-3.456-2.576-4.756-.395-.382-.928-.837-1.186-1.011a9.262 9.262 0 0 0-3.797-1.466 8.33 8.33 0 0 0-2.442-.034Zm2.677 2.178c.755.18 1.733.618 2.408 1.077.589.4 1.345 1.152 1.732 1.723.587.865 1 1.867 1.174 2.854.045.255.082.77.082 1.143 0 1.708-.668 3.39-1.866 4.697-.822.895-1.965 1.591-3.266 1.986-.6.182-.82.208-1.778.209-.886.001-1.213-.031-1.718-.17-1.257-.343-2.528-1.093-3.378-1.99-.742-.785-1.377-1.945-1.674-3.057-.08-.302-.166-.935-.19-1.408-.036-.683-.014-1.01.109-1.601.085-.409.265-1.01.401-1.335.628-1.51 1.874-2.844 3.326-3.563 1.078-.534 1.831-.709 3.084-.716.647-.005 1.082.038 1.554.15Zm7.33 17.533c-.284.154-.45.494-.45.921 0 .288.052.414.303.726.167.208.503.571.747.808.52.504 1.295 1.529 1.745 2.31.708 1.226 1.296 2.848 1.535 4.234.064.373.147 1.132.184 1.686l.067 1.008.285.26c.252.232.335.262.723.262.398 0 .464-.026.715-.276l.276-.277-.044-1.266c-.053-1.488-.27-2.65-.762-4.079-.398-1.157-1.243-2.815-1.908-3.745-.606-.847-1.5-1.864-2.062-2.343-.363-.31-.455-.35-.776-.348-.2.002-.46.055-.578.119Z", clipRule: "evenodd" })));
|
|
@@ -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,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { colorReference } from 'common';
|
|
4
|
+
export const Icon = ({ as, children, color = 'grey-3', size = 16, sx, ...rest }) => {
|
|
5
|
+
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));
|
|
6
|
+
};
|
|
7
|
+
const SVG = styled.svg `
|
|
8
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
9
|
+
`;
|