@soul-refiner/design-system 0.0.26 → 0.1.0
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/package.json +64 -69
- package/public/logo.svg +12 -0
- package/src/common/colors.ts +137 -0
- package/src/common/index.ts +2 -0
- package/src/common/styles.ts +93 -0
- package/src/components/atoms/box/box.tsx +64 -0
- package/src/components/atoms/box/index.ts +2 -0
- package/src/components/atoms/colors/colors.tsx +56 -0
- package/src/components/atoms/colors/index.ts +1 -0
- package/src/components/atoms/index.ts +9 -0
- package/src/components/atoms/typography/display.tsx +35 -0
- package/src/components/atoms/typography/heading.tsx +69 -0
- package/src/components/atoms/typography/index.ts +8 -0
- package/src/components/atoms/typography/paragraph.tsx +38 -0
- package/src/components/atoms/typography/typography.tsx +47 -0
- package/src/components/iconography/avatar/avatar.tsx +278 -0
- package/src/components/iconography/avatar/icons/approved.tsx +20 -0
- package/src/components/iconography/avatar/icons/busy.tsx +20 -0
- package/src/components/iconography/avatar/icons/declined.tsx +20 -0
- package/src/components/iconography/avatar/icons/default.tsx +12 -0
- package/src/components/iconography/avatar/icons/focus.tsx +20 -0
- package/src/components/iconography/avatar/icons/index.ts +9 -0
- package/src/components/iconography/avatar/icons/locked.tsx +20 -0
- package/src/components/iconography/avatar/icons/offline.tsx +17 -0
- package/src/components/iconography/avatar/icons/online.tsx +16 -0
- package/src/components/iconography/avatar/icons/subscribed.tsx +33 -0
- package/src/components/iconography/avatar/index.ts +2 -0
- package/src/components/iconography/icon/icon.tsx +57 -0
- package/src/components/iconography/icon/index.ts +2 -0
- package/src/components/iconography/index.ts +4 -0
- package/src/components/index.ts +10 -0
- package/src/icons/arrow/arrow_all.tsx +14 -0
- package/src/icons/arrow/arrow_all_diagonal.tsx +14 -0
- package/src/icons/arrow/arrow_both_downwards.tsx +14 -0
- package/src/icons/arrow/arrow_both_upwards.tsx +14 -0
- package/src/icons/arrow/arrow_circle_left.tsx +14 -0
- package/src/icons/arrow/arrow_circle_left_double.tsx +14 -0
- package/src/icons/arrow/arrow_circle_left_double_alert.tsx +23 -0
- package/src/icons/arrow/arrow_circle_right.tsx +14 -0
- package/src/icons/arrow/arrow_circle_right_double.tsx +14 -0
- package/src/icons/arrow/arrow_circle_right_double_alert.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_down_left.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_down_left_circle.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_down_right.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_down_right_circle.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_up_left.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_up_left_circle.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_up_right.tsx +14 -0
- package/src/icons/arrow/arrow_diagonal_up_right_circle.tsx +14 -0
- package/src/icons/arrow/arrow_down.tsx +14 -0
- package/src/icons/arrow/arrow_down_bold.tsx +14 -0
- package/src/icons/arrow/arrow_down_circle.tsx +14 -0
- package/src/icons/arrow/arrow_left.tsx +14 -0
- package/src/icons/arrow/arrow_left_bold.tsx +14 -0
- package/src/icons/arrow/arrow_left_circle.tsx +14 -0
- package/src/icons/arrow/arrow_left_curved.tsx +14 -0
- package/src/icons/arrow/arrow_left_curved_circle.tsx +14 -0
- package/src/icons/arrow/arrow_right.tsx +14 -0
- package/src/icons/arrow/arrow_right_bold.tsx +14 -0
- package/src/icons/arrow/arrow_right_circle.tsx +14 -0
- package/src/icons/arrow/arrow_right_curved.tsx +14 -0
- package/src/icons/arrow/arrow_right_curved_circle.tsx +14 -0
- package/src/icons/arrow/arrow_up.tsx +14 -0
- package/src/icons/arrow/arrow_up_bold.tsx +14 -0
- package/src/icons/arrow/arrow_up_circle.tsx +14 -0
- package/src/icons/arrow/chevron_down.tsx +14 -0
- package/src/icons/arrow/chevron_down_circle.tsx +14 -0
- package/src/icons/arrow/chevron_down_double.tsx +14 -0
- package/src/icons/arrow/chevron_down_double_circle.tsx +14 -0
- package/src/icons/arrow/chevron_left.tsx +14 -0
- package/src/icons/arrow/chevron_left_circle.tsx +14 -0
- package/src/icons/arrow/chevron_left_double.tsx +14 -0
- package/src/icons/arrow/chevron_left_double_circle.tsx +14 -0
- package/src/icons/arrow/chevron_right.tsx +14 -0
- package/src/icons/arrow/chevron_right_circle.tsx +14 -0
- package/src/icons/arrow/chevron_right_double.tsx +14 -0
- package/src/icons/arrow/chevron_right_double_circle.tsx +14 -0
- package/src/icons/arrow/chevron_scroll.tsx +14 -0
- package/src/icons/arrow/chevron_up.tsx +14 -0
- package/src/icons/arrow/chevron_up_circle.tsx +14 -0
- package/src/icons/arrow/chevron_up_double.tsx +14 -0
- package/src/icons/arrow/chevron_up_double_circle.tsx +14 -0
- package/src/icons/arrow/forward_all.tsx +14 -0
- package/src/icons/arrow/forward_all_bold.tsx +14 -0
- package/src/icons/arrow/forward_bold.tsx +14 -0
- package/src/icons/arrow/index.ts +62 -0
- package/src/icons/arrow/redo.tsx +14 -0
- package/src/icons/arrow/redo_bold.tsx +14 -0
- package/src/icons/arrow/reply.tsx +14 -0
- package/src/icons/arrow/reply_all.tsx +14 -0
- package/src/icons/arrow/reply_all_bold.tsx +14 -0
- package/src/icons/arrow/reply_bold.tsx +14 -0
- package/src/icons/arrow/undo.tsx +14 -0
- package/src/icons/arrow/undo_bold.tsx +14 -0
- package/src/icons/audio_video/drag_indicator.tsx +10 -0
- package/src/icons/audio_video/eject.tsx +14 -0
- package/src/icons/audio_video/equalizer.tsx +14 -0
- package/src/icons/audio_video/fast_forward.tsx +14 -0
- package/src/icons/audio_video/fast_forward_30.tsx +10 -0
- package/src/icons/audio_video/fullscreen.tsx +10 -0
- package/src/icons/audio_video/headphones.tsx +10 -0
- package/src/icons/audio_video/index.ts +38 -0
- package/src/icons/audio_video/library_add.tsx +14 -0
- package/src/icons/audio_video/library_delay.tsx +14 -0
- package/src/icons/audio_video/library_music.tsx +14 -0
- package/src/icons/audio_video/library_queue.tsx +14 -0
- package/src/icons/audio_video/microphone.tsx +10 -0
- package/src/icons/audio_video/musical_note.tsx +14 -0
- package/src/icons/audio_video/next.tsx +14 -0
- package/src/icons/audio_video/pause.tsx +14 -0
- package/src/icons/audio_video/pause_circle.tsx +14 -0
- package/src/icons/audio_video/play.tsx +14 -0
- package/src/icons/audio_video/play_circle.tsx +14 -0
- package/src/icons/audio_video/play_display.tsx +10 -0
- package/src/icons/audio_video/play_pause.tsx +14 -0
- package/src/icons/audio_video/play_solid.tsx +10 -0
- package/src/icons/audio_video/player_list.tsx +14 -0
- package/src/icons/audio_video/player_list_add.tsx +14 -0
- package/src/icons/audio_video/player_list_play.tsx +14 -0
- package/src/icons/audio_video/previous.tsx +14 -0
- package/src/icons/audio_video/radio.tsx +14 -0
- package/src/icons/audio_video/record.tsx +14 -0
- package/src/icons/audio_video/repeat.tsx +14 -0
- package/src/icons/audio_video/rewind.tsx +14 -0
- package/src/icons/audio_video/rewind_30.tsx +10 -0
- package/src/icons/audio_video/shuffle.tsx +14 -0
- package/src/icons/audio_video/sound_wave.tsx +14 -0
- package/src/icons/audio_video/stop.tsx +14 -0
- package/src/icons/audio_video/stop_circle.tsx +14 -0
- package/src/icons/audio_video/subscriptions.tsx +10 -0
- package/src/icons/audio_video/tuner.tsx +14 -0
- package/src/icons/audio_video/volume.tsx +14 -0
- package/src/icons/audio_video/volume_high.tsx +14 -0
- package/src/icons/audio_video/volume_low.tsx +14 -0
- package/src/icons/audio_video/volume_slash.tsx +14 -0
- package/src/icons/basic/aa_sansserif.tsx +11 -0
- package/src/icons/basic/aa_serif.tsx +11 -0
- package/src/icons/basic/anchor.tsx +24 -0
- package/src/icons/basic/bible.tsx +14 -0
- package/src/icons/basic/bold.tsx +14 -0
- package/src/icons/basic/book.tsx +14 -0
- package/src/icons/basic/book_open.tsx +10 -0
- package/src/icons/basic/bookmark.tsx +14 -0
- package/src/icons/basic/bookmark_add.tsx +14 -0
- package/src/icons/basic/bookmark_slash.tsx +14 -0
- package/src/icons/basic/bookmarks.tsx +14 -0
- package/src/icons/basic/books.tsx +13 -0
- package/src/icons/basic/box.tsx +14 -0
- package/src/icons/basic/briefcase.tsx +14 -0
- package/src/icons/basic/browse_activity.tsx +10 -0
- package/src/icons/basic/browser.tsx +14 -0
- package/src/icons/basic/browser_slash.tsx +14 -0
- package/src/icons/basic/calculator.tsx +14 -0
- package/src/icons/basic/camera.tsx +14 -0
- package/src/icons/basic/camera_add.tsx +14 -0
- package/src/icons/basic/camera_slash.tsx +14 -0
- package/src/icons/basic/checkmark.tsx +14 -0
- package/src/icons/basic/checkmark_circle.tsx +23 -0
- package/src/icons/basic/checkmarks.tsx +14 -0
- package/src/icons/basic/circle.tsx +14 -0
- package/src/icons/basic/circle_slash.tsx +23 -0
- package/src/icons/basic/clear_text_style.tsx +14 -0
- package/src/icons/basic/close.tsx +10 -0
- package/src/icons/basic/close_circle.tsx +14 -0
- package/src/icons/basic/copy.tsx +14 -0
- package/src/icons/basic/delete.tsx +14 -0
- package/src/icons/basic/detail.tsx +10 -0
- package/src/icons/basic/dot.tsx +10 -0
- package/src/icons/basic/download.tsx +14 -0
- package/src/icons/basic/download_arrow.tsx +14 -0
- package/src/icons/basic/droplet.tsx +23 -0
- package/src/icons/basic/ellipsis_horizontal.tsx +14 -0
- package/src/icons/basic/ellipsis_horizontal_circle.tsx +14 -0
- package/src/icons/basic/ellipsis_vertical.tsx +14 -0
- package/src/icons/basic/ellipsis_vertical_circle.tsx +14 -0
- package/src/icons/basic/eye.tsx +14 -0
- package/src/icons/basic/eye_slash.tsx +14 -0
- package/src/icons/basic/fingerprint.tsx +10 -0
- package/src/icons/basic/flag.tsx +14 -0
- package/src/icons/basic/flag_wave.tsx +10 -0
- package/src/icons/basic/flag_wave_filled.tsx +10 -0
- package/src/icons/basic/flame.tsx +14 -0
- package/src/icons/basic/gauge.tsx +14 -0
- package/src/icons/basic/glasses.tsx +14 -0
- package/src/icons/basic/graduation_cap.tsx +10 -0
- package/src/icons/basic/hashmark.tsx +10 -0
- package/src/icons/basic/heart.tsx +14 -0
- package/src/icons/basic/heart_slash.tsx +14 -0
- package/src/icons/basic/highlighter.tsx +10 -0
- package/src/icons/basic/home.tsx +14 -0
- package/src/icons/basic/image.tsx +14 -0
- package/src/icons/basic/inbox.tsx +14 -0
- package/src/icons/basic/index.ts +126 -0
- package/src/icons/basic/italic.tsx +10 -0
- package/src/icons/basic/layers.tsx +14 -0
- package/src/icons/basic/lightening.tsx +14 -0
- package/src/icons/basic/lightening_slash.tsx +14 -0
- package/src/icons/basic/link.tsx +14 -0
- package/src/icons/basic/link_slash.tsx +14 -0
- package/src/icons/basic/loudspeaker.tsx +10 -0
- package/src/icons/basic/maximize.tsx +14 -0
- package/src/icons/basic/menu.tsx +14 -0
- package/src/icons/basic/menu_circle.tsx +14 -0
- package/src/icons/basic/menu_dots.tsx +14 -0
- package/src/icons/basic/microphone.tsx +14 -0
- package/src/icons/basic/microphone_slash.tsx +14 -0
- package/src/icons/basic/minimize.tsx +14 -0
- package/src/icons/basic/minus.tsx +14 -0
- package/src/icons/basic/minus_circle.tsx +14 -0
- package/src/icons/basic/new.tsx +10 -0
- package/src/icons/basic/newspaper.tsx +14 -0
- package/src/icons/basic/note.tsx +19 -0
- package/src/icons/basic/options.tsx +14 -0
- package/src/icons/basic/paint_brush.tsx +14 -0
- package/src/icons/basic/paperclip.tsx +14 -0
- package/src/icons/basic/paperclip_slash.tsx +14 -0
- package/src/icons/basic/pencil.tsx +14 -0
- package/src/icons/basic/pencil_pad.tsx +14 -0
- package/src/icons/basic/plus.tsx +14 -0
- package/src/icons/basic/plus_circle.tsx +14 -0
- package/src/icons/basic/presentation.tsx +14 -0
- package/src/icons/basic/printer.tsx +14 -0
- package/src/icons/basic/profile.tsx +14 -0
- package/src/icons/basic/pulse.tsx +14 -0
- package/src/icons/basic/qr_code.tsx +14 -0
- package/src/icons/basic/resize.tsx +23 -0
- package/src/icons/basic/scan.tsx +14 -0
- package/src/icons/basic/scissors.tsx +14 -0
- package/src/icons/basic/screenshot.tsx +14 -0
- package/src/icons/basic/search.tsx +14 -0
- package/src/icons/basic/select_item.tsx +11 -0
- package/src/icons/basic/settings.tsx +14 -0
- package/src/icons/basic/share.tsx +14 -0
- package/src/icons/basic/share_external.tsx +14 -0
- package/src/icons/basic/square.tsx +14 -0
- package/src/icons/basic/star.tsx +14 -0
- package/src/icons/basic/star_circle.tsx +14 -0
- package/src/icons/basic/star_filled.tsx +10 -0
- package/src/icons/basic/star_filled_half.tsx +14 -0
- package/src/icons/basic/star_slash.tsx +14 -0
- package/src/icons/basic/sticker.tsx +14 -0
- package/src/icons/basic/strikethrough.tsx +10 -0
- package/src/icons/basic/subtask.tsx +21 -0
- package/src/icons/basic/tax.tsx +21 -0
- package/src/icons/basic/text_bg_color.tsx +14 -0
- package/src/icons/basic/text_color.tsx +14 -0
- package/src/icons/basic/textbox.tsx +10 -0
- package/src/icons/basic/thumbs_down.tsx +14 -0
- package/src/icons/basic/thumbs_up.tsx +14 -0
- package/src/icons/basic/thumbs_up_filled.tsx +10 -0
- package/src/icons/basic/toggle_left.tsx +14 -0
- package/src/icons/basic/toggle_right.tsx +14 -0
- package/src/icons/basic/translate.tsx +10 -0
- package/src/icons/basic/trash.tsx +14 -0
- package/src/icons/basic/trash_slash.tsx +14 -0
- package/src/icons/basic/underline.tsx +10 -0
- package/src/icons/basic/upload.tsx +14 -0
- package/src/icons/basic/video.tsx +14 -0
- package/src/icons/basic/video_add.tsx +15 -0
- package/src/icons/basic/video_slash.tsx +14 -0
- package/src/icons/basic/zoom_in.tsx +14 -0
- package/src/icons/basic/zoom_out.tsx +14 -0
- package/src/icons/data/bar_chart.tsx +10 -0
- package/src/icons/data/bar_chart_downward.tsx +10 -0
- package/src/icons/data/bar_chart_downward_outline.tsx +10 -0
- package/src/icons/data/bar_chart_upward.tsx +10 -0
- package/src/icons/data/bar_chart_upward_outline.tsx +14 -0
- package/src/icons/data/candlestick_chart.tsx +10 -0
- package/src/icons/data/four_circles.tsx +14 -0
- package/src/icons/data/index.ts +20 -0
- package/src/icons/data/legend_toggle.tsx +10 -0
- package/src/icons/data/line_chart.tsx +10 -0
- package/src/icons/data/line_chart_area.tsx +10 -0
- package/src/icons/data/line_chart_area_shaded.tsx +10 -0
- package/src/icons/data/line_chart_double.tsx +10 -0
- package/src/icons/data/line_chart_downward.tsx +10 -0
- package/src/icons/data/line_chart_node.tsx +10 -0
- package/src/icons/data/line_chart_outline.tsx +10 -0
- package/src/icons/data/line_chart_search.tsx +10 -0
- package/src/icons/data/line_chart_stars.tsx +10 -0
- package/src/icons/data/line_chart_upward.tsx +10 -0
- package/src/icons/data/pie_chart.tsx +19 -0
- package/src/icons/data/tree.tsx +10 -0
- package/src/icons/email/index.ts +8 -0
- package/src/icons/email/mail.tsx +14 -0
- package/src/icons/email/mail_check.tsx +14 -0
- package/src/icons/email/mail_minus.tsx +14 -0
- package/src/icons/email/mail_send.tsx +14 -0
- package/src/icons/email/send.tsx +14 -0
- package/src/icons/email/send_close.tsx +10 -0
- package/src/icons/email/send_schedule.tsx +10 -0
- package/src/icons/email/send_text.tsx +14 -0
- package/src/icons/file/clipboard.tsx +14 -0
- package/src/icons/file/clipboard_check.tsx +14 -0
- package/src/icons/file/clipboard_close.tsx +14 -0
- package/src/icons/file/clipboard_minus.tsx +14 -0
- package/src/icons/file/clipboard_plus.tsx +14 -0
- package/src/icons/file/clipboard_text.tsx +14 -0
- package/src/icons/file/file.tsx +14 -0
- package/src/icons/file/file_add.tsx +14 -0
- package/src/icons/file/file_check.tsx +14 -0
- package/src/icons/file/file_close.tsx +14 -0
- package/src/icons/file/file_code.tsx +14 -0
- package/src/icons/file/file_download.tsx +14 -0
- package/src/icons/file/file_draft.tsx +14 -0
- package/src/icons/file/file_minus.tsx +14 -0
- package/src/icons/file/file_plus.tsx +14 -0
- package/src/icons/file/file_scan.tsx +14 -0
- package/src/icons/file/file_shred.tsx +14 -0
- package/src/icons/file/file_text.tsx +14 -0
- package/src/icons/file/file_upload.tsx +14 -0
- package/src/icons/file/folder.tsx +14 -0
- package/src/icons/file/folder_add.tsx +14 -0
- package/src/icons/file/folder_arrow.tsx +14 -0
- package/src/icons/file/folder_check.tsx +14 -0
- package/src/icons/file/folder_close.tsx +14 -0
- package/src/icons/file/folder_cloud.tsx +14 -0
- package/src/icons/file/folder_minus.tsx +14 -0
- package/src/icons/file/folder_music.tsx +14 -0
- package/src/icons/file/folder_open.tsx +14 -0
- package/src/icons/file/folder_plus.tsx +14 -0
- package/src/icons/file/folder_zip.tsx +14 -0
- package/src/icons/file/index.ts +34 -0
- package/src/icons/file/note.tsx +14 -0
- package/src/icons/file/note_text.tsx +14 -0
- package/src/icons/file/pdf.tsx +10 -0
- package/src/icons/file/photo.tsx +14 -0
- package/src/icons/finance/bitcoin.tsx +14 -0
- package/src/icons/finance/credit_card.tsx +14 -0
- package/src/icons/finance/credit_card_add.tsx +14 -0
- package/src/icons/finance/credit_card_face.tsx +14 -0
- package/src/icons/finance/credit_card_outcome.tsx +14 -0
- package/src/icons/finance/credit_card_scan.tsx +14 -0
- package/src/icons/finance/credit_card_share.tsx +14 -0
- package/src/icons/finance/credit_card_slash.tsx +14 -0
- package/src/icons/finance/currency_exchange.tsx +10 -0
- package/src/icons/finance/dollar.tsx +10 -0
- package/src/icons/finance/ethereum.tsx +14 -0
- package/src/icons/finance/index.ts +14 -0
- package/src/icons/finance/paypass.tsx +14 -0
- package/src/icons/finance/strongbox.tsx +14 -0
- package/src/icons/finance/wallet.tsx +14 -0
- package/src/icons/index.ts +13 -0
- package/src/icons/layout/block_align_bottom.tsx +14 -0
- package/src/icons/layout/block_align_center.tsx +14 -0
- package/src/icons/layout/block_align_left.tsx +14 -0
- package/src/icons/layout/block_align_middle.tsx +14 -0
- package/src/icons/layout/block_align_right.tsx +14 -0
- package/src/icons/layout/block_align_top.tsx +14 -0
- package/src/icons/layout/block_horizontal.tsx +14 -0
- package/src/icons/layout/block_vertical.tsx +14 -0
- package/src/icons/layout/edit_shape.tsx +14 -0
- package/src/icons/layout/elements.tsx +10 -0
- package/src/icons/layout/elements_add.tsx +14 -0
- package/src/icons/layout/elements_filled.tsx +10 -0
- package/src/icons/layout/elements_masonry.tsx +14 -0
- package/src/icons/layout/frame.tsx +14 -0
- package/src/icons/layout/frame_stack.tsx +14 -0
- package/src/icons/layout/grid.tsx +14 -0
- package/src/icons/layout/grid_column_three.tsx +14 -0
- package/src/icons/layout/grid_column_two.tsx +14 -0
- package/src/icons/layout/grid_dynamic.tsx +14 -0
- package/src/icons/layout/grid_frame.tsx +14 -0
- package/src/icons/layout/grid_row_three.tsx +14 -0
- package/src/icons/layout/grid_row_two.tsx +14 -0
- package/src/icons/layout/grid_six.tsx +14 -0
- package/src/icons/layout/grid_small.tsx +14 -0
- package/src/icons/layout/iframe.tsx +14 -0
- package/src/icons/layout/index.ts +44 -0
- package/src/icons/layout/kanban.tsx +14 -0
- package/src/icons/layout/layout.tsx +14 -0
- package/src/icons/layout/list.tsx +14 -0
- package/src/icons/layout/list_filled.tsx +15 -0
- package/src/icons/layout/padding.tsx +14 -0
- package/src/icons/layout/page_break.tsx +14 -0
- package/src/icons/layout/rotate_left.tsx +14 -0
- package/src/icons/layout/rotate_right.tsx +14 -0
- package/src/icons/layout/ruler.tsx +14 -0
- package/src/icons/layout/segment.tsx +14 -0
- package/src/icons/layout/select_area.tsx +14 -0
- package/src/icons/layout/select_boundary.tsx +14 -0
- package/src/icons/layout/sidebar_left.tsx +14 -0
- package/src/icons/layout/sidebar_right.tsx +14 -0
- package/src/icons/layout/slides.tsx +14 -0
- package/src/icons/layout/slides_horizontal.tsx +14 -0
- package/src/icons/layout/slides_vertical.tsx +19 -0
- package/src/icons/layout/stack.tsx +14 -0
- package/src/icons/layout/text.tsx +14 -0
- package/src/icons/maps/atlas.tsx +14 -0
- package/src/icons/maps/compass.tsx +14 -0
- package/src/icons/maps/direction.tsx +14 -0
- package/src/icons/maps/direction_angled.tsx +14 -0
- package/src/icons/maps/globe.tsx +14 -0
- package/src/icons/maps/globe_slash.tsx +14 -0
- package/src/icons/maps/index.ts +22 -0
- package/src/icons/maps/location.tsx +14 -0
- package/src/icons/maps/location_slash.tsx +14 -0
- package/src/icons/maps/map.tsx +14 -0
- package/src/icons/maps/marker.tsx +14 -0
- package/src/icons/maps/panorama.tsx +14 -0
- package/src/icons/maps/pin.tsx +14 -0
- package/src/icons/maps/pin_arrow.tsx +14 -0
- package/src/icons/maps/pin_location.tsx +14 -0
- package/src/icons/maps/pin_plus.tsx +14 -0
- package/src/icons/maps/pin_question.tsx +14 -0
- package/src/icons/maps/pin_slash.tsx +14 -0
- package/src/icons/maps/push_pin.tsx +14 -0
- package/src/icons/maps/push_pin_filled.tsx +14 -0
- package/src/icons/maps/push_pin_slash.tsx +14 -0
- package/src/icons/maps/radar.tsx +14 -0
- package/src/icons/maps/route.tsx +14 -0
- package/src/icons/message/bubble.tsx +14 -0
- package/src/icons/message/bubble_question.tsx +14 -0
- package/src/icons/message/comment.tsx +14 -0
- package/src/icons/message/comment_add.tsx +14 -0
- package/src/icons/message/comment_check.tsx +14 -0
- package/src/icons/message/comment_close.tsx +14 -0
- package/src/icons/message/comment_minus.tsx +14 -0
- package/src/icons/message/comment_text.tsx +14 -0
- package/src/icons/message/index.ts +8 -0
- package/src/icons/misc/advertisement.tsx +14 -0
- package/src/icons/misc/atom.tsx +14 -0
- package/src/icons/misc/bone.tsx +14 -0
- package/src/icons/misc/brightness_high.tsx +14 -0
- package/src/icons/misc/brightness_low.tsx +14 -0
- package/src/icons/misc/contrast.tsx +14 -0
- package/src/icons/misc/crosshairs.tsx +14 -0
- package/src/icons/misc/crown.tsx +10 -0
- package/src/icons/misc/footprint.tsx +10 -0
- package/src/icons/misc/form.tsx +14 -0
- package/src/icons/misc/funnel.tsx +14 -0
- package/src/icons/misc/index.ts +25 -0
- package/src/icons/misc/infinite.tsx +14 -0
- package/src/icons/misc/insert_button.tsx +14 -0
- package/src/icons/misc/light_bulb.tsx +14 -0
- package/src/icons/misc/moon.tsx +14 -0
- package/src/icons/misc/nut.tsx +14 -0
- package/src/icons/misc/planet.tsx +14 -0
- package/src/icons/misc/plus.tsx +14 -0
- package/src/icons/misc/pocket.tsx +14 -0
- package/src/icons/misc/rocket.tsx +14 -0
- package/src/icons/misc/soup.tsx +18 -0
- package/src/icons/misc/sun.tsx +14 -0
- package/src/icons/misc/toy_horse.tsx +14 -0
- package/src/icons/misc/trophy.tsx +14 -0
- package/src/icons/misc/watercloset.tsx +10 -0
- package/src/icons/notifications/alert_circle.tsx +14 -0
- package/src/icons/notifications/alert_octogon.tsx +14 -0
- package/src/icons/notifications/alert_triangle.tsx +14 -0
- package/src/icons/notifications/app_notification.tsx +14 -0
- package/src/icons/notifications/bell.tsx +14 -0
- package/src/icons/notifications/bell_alert.tsx +14 -0
- package/src/icons/notifications/bell_checkmark.tsx +14 -0
- package/src/icons/notifications/bell_minus.tsx +14 -0
- package/src/icons/notifications/bell_plus.tsx +14 -0
- package/src/icons/notifications/bell_ring.tsx +16 -0
- package/src/icons/notifications/bell_slash.tsx +14 -0
- package/src/icons/notifications/close_octogon.tsx +14 -0
- package/src/icons/notifications/index.ts +14 -0
- package/src/icons/notifications/information.tsx +14 -0
- package/src/icons/notifications/minus_octogon.tsx +14 -0
- package/src/icons/notifications/question_circle.tsx +14 -0
- package/src/icons/people/group.tsx +10 -0
- package/src/icons/people/group_add.tsx +10 -0
- package/src/icons/people/group_remove.tsx +10 -0
- package/src/icons/people/groups.tsx +10 -0
- package/src/icons/people/index.ts +9 -0
- package/src/icons/people/person.tsx +10 -0
- package/src/icons/people/person_add.tsx +10 -0
- package/src/icons/people/person_checkmark.tsx +10 -0
- package/src/icons/people/person_circle.tsx +20 -0
- package/src/icons/people/person_remove.tsx +10 -0
- package/src/icons/phone/index.ts +14 -0
- package/src/icons/phone/keypad.tsx +14 -0
- package/src/icons/phone/phone.tsx +14 -0
- package/src/icons/phone/phone_add.tsx +14 -0
- package/src/icons/phone/phone_calling.tsx +14 -0
- package/src/icons/phone/phone_check.tsx +14 -0
- package/src/icons/phone/phone_close.tsx +14 -0
- package/src/icons/phone/phone_decline.tsx +14 -0
- package/src/icons/phone/phone_end.tsx +14 -0
- package/src/icons/phone/phone_forwarded.tsx +14 -0
- package/src/icons/phone/phone_hash.tsx +14 -0
- package/src/icons/phone/phone_incoming.tsx +14 -0
- package/src/icons/phone/phone_missed.tsx +14 -0
- package/src/icons/phone/phone_outgoing.tsx +14 -0
- package/src/icons/phone/phone_pause.tsx +14 -0
- package/src/icons/phone/phone_slash.tsx +14 -0
- package/src/icons/phone/voicemail.tsx +14 -0
- package/src/icons/security/index.ts +11 -0
- package/src/icons/security/key.tsx +14 -0
- package/src/icons/security/key_slash.tsx +14 -0
- package/src/icons/security/lock.tsx +14 -0
- package/src/icons/security/lock_circle.tsx +14 -0
- package/src/icons/security/lock_open.tsx +14 -0
- package/src/icons/security/lock_slash.tsx +14 -0
- package/src/icons/security/shield.tsx +14 -0
- package/src/icons/security/shield_checkmark.tsx +14 -0
- package/src/icons/security/shield_lock.tsx +14 -0
- package/src/icons/security/shield_slash.tsx +14 -0
- package/src/icons/security/verified.tsx +14 -0
- package/src/icons/shopping/basket.tsx +14 -0
- package/src/icons/shopping/cart.tsx +14 -0
- package/src/icons/shopping/coupon.tsx +14 -0
- package/src/icons/shopping/coupon_cut.tsx +14 -0
- package/src/icons/shopping/delivery.tsx +14 -0
- package/src/icons/shopping/discount.tsx +14 -0
- package/src/icons/shopping/gift.tsx +14 -0
- package/src/icons/shopping/gift_bag.tsx +14 -0
- package/src/icons/shopping/index.ts +14 -0
- package/src/icons/shopping/inventory.tsx +10 -0
- package/src/icons/shopping/point_of_sale.tsx +14 -0
- package/src/icons/shopping/shirt.tsx +10 -0
- package/src/icons/shopping/tag.tsx +14 -0
- package/src/icons/shopping/tag_diagonal.tsx +10 -0
- package/src/icons/shopping/tote.tsx +14 -0
- package/src/icons/symbols/at.tsx +14 -0
- package/src/icons/symbols/cc.tsx +14 -0
- package/src/icons/symbols/cmd.tsx +14 -0
- package/src/icons/symbols/facebook.tsx +13 -0
- package/src/icons/symbols/google.tsx +33 -0
- package/src/icons/symbols/hash.tsx +14 -0
- package/src/icons/symbols/index.ts +9 -0
- package/src/icons/symbols/instagram.tsx +48 -0
- package/src/icons/symbols/messenger.tsx +30 -0
- package/src/icons/symbols/twitter.tsx +13 -0
- package/src/icons/technology/battery.tsx +14 -0
- package/src/icons/technology/battery_100.tsx +14 -0
- package/src/icons/technology/battery_20.tsx +14 -0
- package/src/icons/technology/battery_40.tsx +14 -0
- package/src/icons/technology/battery_60.tsx +14 -0
- package/src/icons/technology/battery_80.tsx +14 -0
- package/src/icons/technology/battery_charging.tsx +14 -0
- package/src/icons/technology/battery_slash.tsx +14 -0
- package/src/icons/technology/devices.tsx +14 -0
- package/src/icons/technology/floppy_disk.tsx +14 -0
- package/src/icons/technology/index.ts +17 -0
- package/src/icons/technology/iphone.tsx +14 -0
- package/src/icons/technology/laptop.tsx +14 -0
- package/src/icons/technology/mobile.tsx +14 -0
- package/src/icons/technology/monitor.tsx +14 -0
- package/src/icons/technology/server.tsx +14 -0
- package/src/icons/technology/sim_card.tsx +14 -0
- package/src/icons/technology/usb_stick.tsx +14 -0
- package/src/icons/text/align_center.tsx +14 -0
- package/src/icons/text/align_justified.tsx +14 -0
- package/src/icons/text/align_left.tsx +14 -0
- package/src/icons/text/align_right.tsx +14 -0
- package/src/icons/text/indent_decrease.tsx +10 -0
- package/src/icons/text/indent_increase.tsx +10 -0
- package/src/icons/text/index.ts +10 -0
- package/src/icons/text/list_ordered.tsx +10 -0
- package/src/icons/text/list_unordered.tsx +14 -0
- package/src/icons/text/quote.tsx +10 -0
- package/src/icons/text/table.tsx +14 -0
- package/src/icons/time/alarm.tsx +14 -0
- package/src/icons/time/alarm_checkmark.tsx +14 -0
- package/src/icons/time/alarm_minus.tsx +14 -0
- package/src/icons/time/alarm_plus.tsx +14 -0
- package/src/icons/time/alarm_slash.tsx +14 -0
- package/src/icons/time/alarm_snooze.tsx +14 -0
- package/src/icons/time/calendar.tsx +14 -0
- package/src/icons/time/calendar_add.tsx +14 -0
- package/src/icons/time/calendar_checkmark.tsx +14 -0
- package/src/icons/time/calendar_close.tsx +14 -0
- package/src/icons/time/calendar_dates.tsx +14 -0
- package/src/icons/time/calendar_minus.tsx +14 -0
- package/src/icons/time/calendar_plus.tsx +14 -0
- package/src/icons/time/calendar_scroll.tsx +16 -0
- package/src/icons/time/clock.tsx +14 -0
- package/src/icons/time/clock_history.tsx +14 -0
- package/src/icons/time/index.ts +19 -0
- package/src/icons/time/stopwatch.tsx +14 -0
- package/src/icons/time/timer.tsx +14 -0
- package/src/icons/time/watch.tsx +14 -0
- package/src/index.ts +1 -0
- package/src/types/attributes.ts +83 -0
- package/src/types/index.ts +17 -0
- package/tsconfig.json +26 -0
- package/dist/global.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -119660
- package/dist/index.umd.js +0 -1426
- package/dist/src/actions/Button/Button.d.ts +0 -22
- package/dist/src/actions/Button/index.d.ts +0 -1
- package/dist/src/actions/Dropdown/Dropdown.d.ts +0 -38
- package/dist/src/actions/Dropdown/index.d.ts +0 -1
- package/dist/src/actions/Dropzone/Dropzone.d.ts +0 -16
- package/dist/src/actions/Dropzone/index.d.ts +0 -1
- package/dist/src/actions/Rate/Rate.d.ts +0 -8
- package/dist/src/actions/Rate/index.d.ts +0 -1
- package/dist/src/actions/Switch/Switch.d.ts +0 -8
- package/dist/src/actions/Switch/index.d.ts +0 -1
- package/dist/src/actions/index.d.ts +0 -5
- package/dist/src/cards/CourseCard/CourseCard.d.ts +0 -22
- package/dist/src/cards/CourseCard/index.d.ts +0 -1
- package/dist/src/cards/EpisodeCard/EpisodeCard.d.ts +0 -18
- package/dist/src/cards/EpisodeCard/index.d.ts +0 -1
- package/dist/src/cards/FeatureCard/FeatureCard.d.ts +0 -13
- package/dist/src/cards/FeatureCard/index.d.ts +0 -1
- package/dist/src/cards/index.d.ts +0 -3
- package/dist/src/data/Bar/Bar.d.ts +0 -26
- package/dist/src/data/Bar/index.d.ts +0 -1
- package/dist/src/data/Line/Line.d.ts +0 -18
- package/dist/src/data/Line/index.d.ts +0 -1
- package/dist/src/data/Pie/Pie.d.ts +0 -14
- package/dist/src/data/Pie/index.d.ts +0 -1
- package/dist/src/data/index.d.ts +0 -3
- package/dist/src/editor/Editor.d.ts +0 -49
- package/dist/src/editor/common/elements.d.ts +0 -19
- package/dist/src/editor/common/index.d.ts +0 -2
- package/dist/src/editor/common/marks.d.ts +0 -2
- package/dist/src/editor/components/MediaDrawer/MediaDrawer.d.ts +0 -8
- package/dist/src/editor/components/MediaDrawer/index.d.ts +0 -1
- package/dist/src/editor/components/index.d.ts +0 -1
- package/dist/src/editor/config/default.d.ts +0 -162
- package/dist/src/editor/config/index.d.ts +0 -2
- package/dist/src/editor/config/props.d.ts +0 -2
- package/dist/src/editor/index.d.ts +0 -2
- package/dist/src/editor/plateUI.d.ts +0 -1
- package/dist/src/editor/plugins/blocks.d.ts +0 -1
- package/dist/src/editor/plugins/custom/assets/DefaultThumbnail.d.ts +0 -2
- package/dist/src/editor/plugins/custom/assets/index.d.ts +0 -1
- package/dist/src/editor/plugins/custom/buttons.d.ts +0 -5
- package/dist/src/editor/plugins/custom/example.d.ts +0 -6
- package/dist/src/editor/plugins/custom/exitBreak.d.ts +0 -21
- package/dist/src/editor/plugins/custom/footnote.d.ts +0 -5
- package/dist/src/editor/plugins/custom/index.d.ts +0 -10
- package/dist/src/editor/plugins/custom/paywall.d.ts +0 -5
- package/dist/src/editor/plugins/custom/qa.d.ts +0 -5
- package/dist/src/editor/plugins/custom/resetBlockType.d.ts +0 -10
- package/dist/src/editor/plugins/custom/selectOnBackspace.d.ts +0 -7
- package/dist/src/editor/plugins/custom/softBreak.d.ts +0 -13
- package/dist/src/editor/plugins/custom/video.d.ts +0 -5
- package/dist/src/editor/plugins/index.d.ts +0 -5
- package/dist/src/editor/plugins/inline.d.ts +0 -1
- package/dist/src/editor/plugins/marks.d.ts +0 -1
- package/dist/src/editor/plugins/utils.d.ts +0 -1
- package/dist/src/feedback/Chip/Chip.d.ts +0 -9
- package/dist/src/feedback/Chip/index.d.ts +0 -1
- package/dist/src/feedback/Loader/Loader.d.ts +0 -9
- package/dist/src/feedback/Loader/index.d.ts +0 -1
- package/dist/src/feedback/ProgressBar/ProgressBar.d.ts +0 -8
- package/dist/src/feedback/ProgressBar/index.d.ts +0 -1
- package/dist/src/feedback/Toast/Toast.d.ts +0 -8
- package/dist/src/feedback/Toast/index.d.ts +0 -1
- package/dist/src/feedback/Tooltip/Tooltip.d.ts +0 -5
- package/dist/src/feedback/Tooltip/index.d.ts +0 -1
- package/dist/src/feedback/index.d.ts +0 -5
- package/dist/src/iconography/Avatar/Avatar.d.ts +0 -12
- package/dist/src/iconography/Avatar/DefaultIcon.d.ts +0 -2
- package/dist/src/iconography/Avatar/iconHelpers.d.ts +0 -11
- package/dist/src/iconography/Avatar/index.d.ts +0 -1
- package/dist/src/iconography/ColoredIcon/ColoredIcon.d.ts +0 -15
- package/dist/src/iconography/ColoredIcon/index.d.ts +0 -1
- package/dist/src/iconography/DevicePreview/DevicePreview.d.ts +0 -10
- package/dist/src/iconography/DevicePreview/index.d.ts +0 -1
- package/dist/src/iconography/IconHeader/IconHeader.d.ts +0 -10
- package/dist/src/iconography/IconHeader/index.d.ts +0 -1
- package/dist/src/iconography/StarRating/StarRating.d.ts +0 -8
- package/dist/src/iconography/StarRating/index.d.ts +0 -1
- package/dist/src/iconography/index.d.ts +0 -5
- package/dist/src/implementations/JoinGroupModal/JoinGroupModal.d.ts +0 -10
- package/dist/src/implementations/JoinGroupModal/index.d.ts +0 -1
- package/dist/src/implementations/index.d.ts +0 -1
- package/dist/src/index.d.ts +0 -13
- package/dist/src/inputs/CalendarInput/CalendarInput.d.ts +0 -5
- package/dist/src/inputs/CalendarInput/index.d.ts +0 -1
- package/dist/src/inputs/CheckboxInput/CheckboxInput.d.ts +0 -7
- package/dist/src/inputs/CheckboxInput/index.d.ts +0 -1
- package/dist/src/inputs/FeedInput/FeedInput.d.ts +0 -4
- package/dist/src/inputs/FeedInput/index.d.ts +0 -1
- package/dist/src/inputs/InboxInput/InboxInput.d.ts +0 -4
- package/dist/src/inputs/InboxInput/index.d.ts +0 -1
- package/dist/src/inputs/PostInput/PostInput.d.ts +0 -6
- package/dist/src/inputs/PostInput/index.d.ts +0 -1
- package/dist/src/inputs/RadioInput/RadioInput.d.ts +0 -7
- package/dist/src/inputs/RadioInput/index.d.ts +0 -1
- package/dist/src/inputs/SearchInput/SearchInput.d.ts +0 -9
- package/dist/src/inputs/SearchInput/index.d.ts +0 -1
- package/dist/src/inputs/SelectInput/SelectInput.d.ts +0 -9
- package/dist/src/inputs/SelectInput/index.d.ts +0 -1
- package/dist/src/inputs/TagInput/TagInput.d.ts +0 -6
- package/dist/src/inputs/TagInput/index.d.ts +0 -1
- package/dist/src/inputs/TextInput/TextInput.d.ts +0 -5
- package/dist/src/inputs/TextInput/index.d.ts +0 -1
- package/dist/src/inputs/index.d.ts +0 -10
- package/dist/src/lists/ContactDetails/ContactDetails.d.ts +0 -14
- package/dist/src/lists/ContactDetails/index.d.ts +0 -1
- package/dist/src/lists/index.d.ts +0 -1
- package/dist/src/navigation/Breadcrumbs/Breadcrumbs.d.ts +0 -10
- package/dist/src/navigation/Breadcrumbs/index.d.ts +0 -1
- package/dist/src/navigation/Drawer/Drawer.d.ts +0 -40
- package/dist/src/navigation/Drawer/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/EditorBar.d.ts +0 -9
- package/dist/src/navigation/EditorBar/components/AlignmentDropdown/AlignmentDropdown.d.ts +0 -7
- package/dist/src/navigation/EditorBar/components/AlignmentDropdown/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/components/ButtonModal/ButtonModal.d.ts +0 -7
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Comment.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/GiftSubscription.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Link.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Share.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/ShareCommunity.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Signup.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Special.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Subscribe.d.ts +0 -2
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/index.d.ts +0 -8
- package/dist/src/navigation/EditorBar/components/ButtonModal/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/components/FontDropdown/FontDropdown.d.ts +0 -7
- package/dist/src/navigation/EditorBar/components/FontDropdown/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/components/MoreDropdown/MoreDropdown.d.ts +0 -7
- package/dist/src/navigation/EditorBar/components/MoreDropdown/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/components/OutlineDropdown/OutlineDropdown.d.ts +0 -6
- package/dist/src/navigation/EditorBar/components/OutlineDropdown/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/components/TextTypeDropdown/TextTypeDropdown.d.ts +0 -6
- package/dist/src/navigation/EditorBar/components/TextTypeDropdown/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/components/VideoModal/VideoModal.d.ts +0 -6
- package/dist/src/navigation/EditorBar/components/VideoModal/index.d.ts +0 -1
- package/dist/src/navigation/EditorBar/components/index.d.ts +0 -7
- package/dist/src/navigation/EditorBar/index.d.ts +0 -1
- package/dist/src/navigation/MenuTabs/MenuTabs.d.ts +0 -7
- package/dist/src/navigation/MenuTabs/index.d.ts +0 -1
- package/dist/src/navigation/Navigation/Navigation.d.ts +0 -32
- package/dist/src/navigation/Navigation/SubNavigation.d.ts +0 -98
- package/dist/src/navigation/Navigation/index.d.ts +0 -2
- package/dist/src/navigation/Pagination/Pagination.d.ts +0 -12
- package/dist/src/navigation/Pagination/index.d.ts +0 -1
- package/dist/src/navigation/index.d.ts +0 -6
- package/dist/src/surfaces/Comment/Comment.d.ts +0 -10
- package/dist/src/surfaces/Comment/index.d.ts +0 -1
- package/dist/src/surfaces/Faq/Faq.d.ts +0 -12
- package/dist/src/surfaces/Faq/index.d.ts +0 -1
- package/dist/src/surfaces/Message/Message.d.ts +0 -8
- package/dist/src/surfaces/Message/index.d.ts +0 -1
- package/dist/src/surfaces/Modal/Modal.d.ts +0 -35
- package/dist/src/surfaces/Modal/index.d.ts +0 -1
- package/dist/src/surfaces/Plan/Plan.d.ts +0 -11
- package/dist/src/surfaces/Plan/index.d.ts +0 -1
- package/dist/src/surfaces/Post/Post.d.ts +0 -19
- package/dist/src/surfaces/Post/index.d.ts +0 -1
- package/dist/src/surfaces/Post/postHelpers.d.ts +0 -2
- package/dist/src/surfaces/ProfileHeader/ProfileHeader.d.ts +0 -17
- package/dist/src/surfaces/ProfileHeader/index.d.ts +0 -1
- package/dist/src/surfaces/RatingsOverview/RatingsOverview.d.ts +0 -16
- package/dist/src/surfaces/RatingsOverview/index.d.ts +0 -1
- package/dist/src/surfaces/Review/Review.d.ts +0 -15
- package/dist/src/surfaces/Review/index.d.ts +0 -1
- package/dist/src/surfaces/index.d.ts +0 -9
- package/dist/src/tables/Filter/Filter.d.ts +0 -7
- package/dist/src/tables/Filter/index.d.ts +0 -1
- package/dist/src/tables/Table/Table.d.ts +0 -68
- package/dist/src/tables/Table/index.d.ts +0 -1
- package/dist/src/tables/index.d.ts +0 -2
- package/dist/style.css +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Typography, TypographyProps } from './typography';
|
|
4
|
+
|
|
5
|
+
export interface CommonProps extends TypographyProps {
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
$textAlign?: 'center' | 'inherit' | 'justify' | 'left' | 'right';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ParagraphProps extends CommonProps {
|
|
11
|
+
$fontSize?: 10 | 11 | 12 | 14 | 16;
|
|
12
|
+
$lineHeight?: 14 | 16 | 20 | 24;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const P = ({
|
|
16
|
+
as = 'p',
|
|
17
|
+
children,
|
|
18
|
+
$fontSize = 16,
|
|
19
|
+
$lineHeight = 24,
|
|
20
|
+
$textAlign = 'left',
|
|
21
|
+
...rest
|
|
22
|
+
}: ParagraphProps) => (
|
|
23
|
+
<StyledP
|
|
24
|
+
as={as}
|
|
25
|
+
$fontSize={$fontSize}
|
|
26
|
+
$lineHeight={$lineHeight}
|
|
27
|
+
$textAlign={$textAlign}
|
|
28
|
+
{...rest}
|
|
29
|
+
>
|
|
30
|
+
{children}
|
|
31
|
+
</StyledP>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const StyledP = styled(Typography)<ParagraphProps>`
|
|
35
|
+
font-size: ${({ $fontSize }) => $fontSize + 'px'};
|
|
36
|
+
line-height: ${({ $lineHeight }) => $lineHeight + 'px'};
|
|
37
|
+
text-align: ${({ $textAlign }) => $textAlign || 'left'};
|
|
38
|
+
`;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Styles } from 'common';
|
|
3
|
+
import {
|
|
4
|
+
Color,
|
|
5
|
+
Styleable,
|
|
6
|
+
TextClamp,
|
|
7
|
+
TypographyStyle,
|
|
8
|
+
TypographyWeight,
|
|
9
|
+
} from 'types';
|
|
10
|
+
|
|
11
|
+
export type TypographyProps = Pick<
|
|
12
|
+
React.HTMLAttributes<HTMLParagraphElement>,
|
|
13
|
+
| 'children'
|
|
14
|
+
| 'className'
|
|
15
|
+
| 'dangerouslySetInnerHTML'
|
|
16
|
+
| 'id'
|
|
17
|
+
| 'onBlur'
|
|
18
|
+
| 'onBlurCapture'
|
|
19
|
+
| 'onClick'
|
|
20
|
+
| 'onChange'
|
|
21
|
+
| 'onCopy'
|
|
22
|
+
| 'onCut'
|
|
23
|
+
| 'onKeyDown'
|
|
24
|
+
| 'onKeyDownCapture'
|
|
25
|
+
| 'onKeyUp'
|
|
26
|
+
| 'onKeyUpCapture'
|
|
27
|
+
| 'onMouseDown'
|
|
28
|
+
| 'onMouseDownCapture'
|
|
29
|
+
| 'onMouseEnter'
|
|
30
|
+
| 'onMouseLeave'
|
|
31
|
+
| 'onMouseOut'
|
|
32
|
+
| 'onMouseOver'
|
|
33
|
+
> & { value?: string } & Color &
|
|
34
|
+
Styleable &
|
|
35
|
+
TextClamp &
|
|
36
|
+
TypographyStyle &
|
|
37
|
+
TypographyWeight;
|
|
38
|
+
|
|
39
|
+
export const Typography = styled.p<TypographyProps>`
|
|
40
|
+
margin: 0px;
|
|
41
|
+
font-family: Inter;
|
|
42
|
+
${Styles.color}
|
|
43
|
+
${Styles.weight}
|
|
44
|
+
${Styles.typography}
|
|
45
|
+
${Styles.textClamp}
|
|
46
|
+
${Styles.styleable}
|
|
47
|
+
`;
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, H, P } from 'components';
|
|
4
|
+
import {
|
|
5
|
+
Approved,
|
|
6
|
+
Busy,
|
|
7
|
+
Declined,
|
|
8
|
+
Default,
|
|
9
|
+
Focus,
|
|
10
|
+
Locked,
|
|
11
|
+
Offline,
|
|
12
|
+
Online,
|
|
13
|
+
Subscribed,
|
|
14
|
+
} from './icons';
|
|
15
|
+
|
|
16
|
+
type NativeProps = Pick<
|
|
17
|
+
React.HTMLAttributes<HTMLAnchorElement>,
|
|
18
|
+
| 'onBlur'
|
|
19
|
+
| 'onBlurCapture'
|
|
20
|
+
| 'onClick'
|
|
21
|
+
| 'onChange'
|
|
22
|
+
| 'onCopy'
|
|
23
|
+
| 'onCut'
|
|
24
|
+
| 'onKeyDown'
|
|
25
|
+
| 'onKeyDownCapture'
|
|
26
|
+
| 'onKeyUp'
|
|
27
|
+
| 'onKeyUpCapture'
|
|
28
|
+
| 'onMouseDown'
|
|
29
|
+
| 'onMouseDownCapture'
|
|
30
|
+
| 'onMouseEnter'
|
|
31
|
+
| 'onMouseLeave'
|
|
32
|
+
| 'onMouseOut'
|
|
33
|
+
| 'onMouseOver'
|
|
34
|
+
> & { value?: string };
|
|
35
|
+
|
|
36
|
+
type Status =
|
|
37
|
+
| 'offline'
|
|
38
|
+
| 'focus'
|
|
39
|
+
| 'busy'
|
|
40
|
+
| 'online'
|
|
41
|
+
| 'subscribed'
|
|
42
|
+
| 'locked'
|
|
43
|
+
| 'declined'
|
|
44
|
+
| 'approved';
|
|
45
|
+
|
|
46
|
+
type Size = 96 | 72 | 64 | 56 | 48 | 40 | 36 | 32 | 24;
|
|
47
|
+
type SizeStrings = '96' | '72' | '64' | '56' | '48' | '40' | '36' | '32' | '24';
|
|
48
|
+
|
|
49
|
+
export interface AvatarProps extends NativeProps {
|
|
50
|
+
as?: React.ElementType;
|
|
51
|
+
href?: string;
|
|
52
|
+
image: string;
|
|
53
|
+
size: Size;
|
|
54
|
+
status?: Status;
|
|
55
|
+
subtitle?: React.ReactNode;
|
|
56
|
+
textPosition?: 'left' | 'right';
|
|
57
|
+
title?: React.ReactNode;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Lookup tables for sizes
|
|
62
|
+
*/
|
|
63
|
+
const iconReference: Record<
|
|
64
|
+
Status | 'none',
|
|
65
|
+
React.JSXElementConstructor<SVGElement>
|
|
66
|
+
> = {
|
|
67
|
+
approved: Approved,
|
|
68
|
+
busy: Busy,
|
|
69
|
+
declined: Declined,
|
|
70
|
+
focus: Focus,
|
|
71
|
+
locked: Locked,
|
|
72
|
+
none: () => <></>,
|
|
73
|
+
online: Online,
|
|
74
|
+
offline: Offline,
|
|
75
|
+
subscribed: Subscribed,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const iconSize: Record<SizeStrings, number> = {
|
|
79
|
+
'96': 18,
|
|
80
|
+
'72': 18,
|
|
81
|
+
'64': 18,
|
|
82
|
+
'56': 15,
|
|
83
|
+
'48': 15,
|
|
84
|
+
'40': 15,
|
|
85
|
+
'36': 14,
|
|
86
|
+
'32': 14,
|
|
87
|
+
'24': 12,
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const iconOffsetX: Record<SizeStrings, number> = {
|
|
91
|
+
'96': -23,
|
|
92
|
+
'72': -21,
|
|
93
|
+
'64': -20,
|
|
94
|
+
'56': -16,
|
|
95
|
+
'48': -15,
|
|
96
|
+
'40': -13,
|
|
97
|
+
'36': -12,
|
|
98
|
+
'32': -12,
|
|
99
|
+
'24': -10,
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const iconOffsetY: Record<SizeStrings, number> = {
|
|
103
|
+
'96': 5,
|
|
104
|
+
'72': 3,
|
|
105
|
+
'64': 2,
|
|
106
|
+
'56': 1,
|
|
107
|
+
'48': 0,
|
|
108
|
+
'40': -2,
|
|
109
|
+
'36': -2,
|
|
110
|
+
'32': -2,
|
|
111
|
+
'24': -2,
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* Avatar
|
|
117
|
+
*/
|
|
118
|
+
const Avatar = ({
|
|
119
|
+
as = 'button',
|
|
120
|
+
href,
|
|
121
|
+
image,
|
|
122
|
+
size = 64,
|
|
123
|
+
status,
|
|
124
|
+
subtitle,
|
|
125
|
+
textPosition = 'left',
|
|
126
|
+
title,
|
|
127
|
+
...rest
|
|
128
|
+
}: AvatarProps) => {
|
|
129
|
+
const [displayDefault, setDisplayDefault] = React.useState(false);
|
|
130
|
+
|
|
131
|
+
const Icon = iconReference?.[status ?? 'none'];
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<Box $align="center" $gap={18} {...rest}>
|
|
135
|
+
<Container as={as} $size={size} href={href}>
|
|
136
|
+
{!displayDefault && (
|
|
137
|
+
<img src={image ?? ''} onError={() => setDisplayDefault(true)} />
|
|
138
|
+
)}
|
|
139
|
+
{displayDefault && <Default />}
|
|
140
|
+
<div>
|
|
141
|
+
<Icon />
|
|
142
|
+
</div>
|
|
143
|
+
</Container>
|
|
144
|
+
{(title || subtitle) && (
|
|
145
|
+
<TextContainer $textPosition={textPosition}>
|
|
146
|
+
{title && (
|
|
147
|
+
<H
|
|
148
|
+
as="h3"
|
|
149
|
+
$bold
|
|
150
|
+
$color="grey-2"
|
|
151
|
+
$textClampLines={1}
|
|
152
|
+
sx="font-size: 26px;"
|
|
153
|
+
>
|
|
154
|
+
{title}
|
|
155
|
+
</H>
|
|
156
|
+
)}
|
|
157
|
+
{subtitle && (
|
|
158
|
+
<P $color="grey-4" $textClampLines={1}>
|
|
159
|
+
{subtitle}
|
|
160
|
+
</P>
|
|
161
|
+
)}
|
|
162
|
+
</TextContainer>
|
|
163
|
+
)}
|
|
164
|
+
</Box>
|
|
165
|
+
);
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
Avatar.displayName = 'Avatar';
|
|
169
|
+
|
|
170
|
+
const Container = styled.div<{
|
|
171
|
+
$size: number;
|
|
172
|
+
href?: string;
|
|
173
|
+
}>`
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-flow: row nowrap;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
padding: 0px;
|
|
178
|
+
border: 0px;
|
|
179
|
+
position: relative;
|
|
180
|
+
background-color: transparent;
|
|
181
|
+
|
|
182
|
+
> img,
|
|
183
|
+
> svg {
|
|
184
|
+
border-radius: 50%;
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
object-fit: cover;
|
|
187
|
+
|
|
188
|
+
${({ $size }) => `
|
|
189
|
+
width: ${$size}px;
|
|
190
|
+
height: ${$size}px;
|
|
191
|
+
`}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
div > svg {
|
|
195
|
+
position: relative;
|
|
196
|
+
width: ${({ $size }) => iconSize[`${$size}` as SizeStrings]}px;
|
|
197
|
+
margin-left: ${({ $size }) => iconOffsetX[`${$size}` as SizeStrings]}px;
|
|
198
|
+
top: ${({ $size }) => iconOffsetY[`${$size}` as SizeStrings]}px;
|
|
199
|
+
}
|
|
200
|
+
`;
|
|
201
|
+
|
|
202
|
+
const TextContainer = styled.div<{
|
|
203
|
+
$textPosition: 'left' | 'right';
|
|
204
|
+
}>`
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-flow: column nowrap;
|
|
207
|
+
gap: 4px;
|
|
208
|
+
order: ${({ $textPosition }) => ($textPosition === 'left' ? -1 : 1)};
|
|
209
|
+
`;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Avatar Group
|
|
213
|
+
*/
|
|
214
|
+
export interface AvatarGroupProps extends React.PropsWithChildren {
|
|
215
|
+
numDisplayed: number;
|
|
216
|
+
total: number;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const Group = ({ children, numDisplayed, total }: AvatarGroupProps) => {
|
|
220
|
+
let size = 0;
|
|
221
|
+
// filter out ReactNodes and ReactElements that are not Avatars
|
|
222
|
+
const displayedElements = React.Children.map(
|
|
223
|
+
children as React.ReactElement[],
|
|
224
|
+
(child, index) => {
|
|
225
|
+
if (
|
|
226
|
+
React.isValidElement(child) &&
|
|
227
|
+
(child.type as any).displayName === 'Avatar'
|
|
228
|
+
) {
|
|
229
|
+
size = (child.props as { size: number }).size;
|
|
230
|
+
|
|
231
|
+
return <AvatarWrapper $index={index}>{child}</AvatarWrapper>;
|
|
232
|
+
}
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
).slice(0, numDisplayed);
|
|
236
|
+
|
|
237
|
+
displayedElements.push(
|
|
238
|
+
<Total $index={displayedElements.length + 1} $size={size}>
|
|
239
|
+
<P $fontSize={11} $lineHeight={20}>
|
|
240
|
+
+{total - numDisplayed}
|
|
241
|
+
</P>
|
|
242
|
+
</Total>
|
|
243
|
+
);
|
|
244
|
+
|
|
245
|
+
return <Box>{displayedElements}</Box>;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
Group.displayName = 'Avatar.Group';
|
|
249
|
+
Avatar.Group = Group;
|
|
250
|
+
|
|
251
|
+
const AvatarWrapper = styled.div<{
|
|
252
|
+
$index: number;
|
|
253
|
+
}>`
|
|
254
|
+
position: relative;
|
|
255
|
+
z-index: ${({ $index }) => `-${$index}`};
|
|
256
|
+
border-radius: 50%;
|
|
257
|
+
border: 2px solid var(--color-white);
|
|
258
|
+
margin-right: -8px;
|
|
259
|
+
`;
|
|
260
|
+
|
|
261
|
+
const Total = styled.div<{
|
|
262
|
+
$index: number;
|
|
263
|
+
$size: number;
|
|
264
|
+
}>`
|
|
265
|
+
position: relative;
|
|
266
|
+
z-index: ${({ $index }) => `-${$index}`};
|
|
267
|
+
display: flex;
|
|
268
|
+
justify-content: center;
|
|
269
|
+
align-items: center;
|
|
270
|
+
${({ $size }) => `
|
|
271
|
+
width: ${$size}px;
|
|
272
|
+
height: ${$size}px;
|
|
273
|
+
`}
|
|
274
|
+
border-radius: 50%;
|
|
275
|
+
background-color: var(--color-grey-9);
|
|
276
|
+
`;
|
|
277
|
+
|
|
278
|
+
export { Avatar };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Approved = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 18 18">
|
|
5
|
+
<rect width="16" height="16" x="1" y="1" fill="#09B3A1" rx="8" />
|
|
6
|
+
<path
|
|
7
|
+
fill="#fff"
|
|
8
|
+
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"
|
|
9
|
+
/>
|
|
10
|
+
<rect
|
|
11
|
+
width="16"
|
|
12
|
+
height="16"
|
|
13
|
+
x="1"
|
|
14
|
+
y="1"
|
|
15
|
+
stroke="#F8F9F9"
|
|
16
|
+
strokeWidth="2"
|
|
17
|
+
rx="8"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Busy = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 18 18">
|
|
5
|
+
<rect width="16" height="16" x="1" y="1" fill="#F34436" rx="8" />
|
|
6
|
+
<path
|
|
7
|
+
fill="#fff"
|
|
8
|
+
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"
|
|
9
|
+
/>
|
|
10
|
+
<rect
|
|
11
|
+
width="16"
|
|
12
|
+
height="16"
|
|
13
|
+
x="1"
|
|
14
|
+
y="1"
|
|
15
|
+
stroke="#F8F9F9"
|
|
16
|
+
strokeWidth="2"
|
|
17
|
+
rx="8"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Declined = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 18 18">
|
|
5
|
+
<rect width="16" height="16" x="1" y="1" fill="#F34436" rx="8" />
|
|
6
|
+
<path
|
|
7
|
+
fill="#fff"
|
|
8
|
+
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"
|
|
9
|
+
/>
|
|
10
|
+
<rect
|
|
11
|
+
width="16"
|
|
12
|
+
height="16"
|
|
13
|
+
x="1"
|
|
14
|
+
y="1"
|
|
15
|
+
stroke="#F8F9F9"
|
|
16
|
+
strokeWidth="2"
|
|
17
|
+
rx="8"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Default = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 40 40">
|
|
5
|
+
<path
|
|
6
|
+
fill="#9DA7B2"
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
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"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
12
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Focus = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 18 18">
|
|
5
|
+
<rect width="16" height="16" x="1" y="1" fill="#fff" rx="8" />
|
|
6
|
+
<path
|
|
7
|
+
fill="#A246C1"
|
|
8
|
+
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"
|
|
9
|
+
/>
|
|
10
|
+
<rect
|
|
11
|
+
width="16"
|
|
12
|
+
height="16"
|
|
13
|
+
x="1"
|
|
14
|
+
y="1"
|
|
15
|
+
stroke="#F8F9F9"
|
|
16
|
+
strokeWidth="2"
|
|
17
|
+
rx="8"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
@@ -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,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Locked = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 18 18">
|
|
5
|
+
<rect width="16" height="16" x="1" y="1" fill="#B3B7BC" rx="8" />
|
|
6
|
+
<path
|
|
7
|
+
fill="#4A4F55"
|
|
8
|
+
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"
|
|
9
|
+
/>
|
|
10
|
+
<rect
|
|
11
|
+
width="16"
|
|
12
|
+
height="16"
|
|
13
|
+
x="1"
|
|
14
|
+
y="1"
|
|
15
|
+
stroke="#F8F9F9"
|
|
16
|
+
strokeWidth="2"
|
|
17
|
+
rx="8"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Offline = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 18 18">
|
|
5
|
+
<rect width="16" height="16" x="1" y="1" fill="#4A4F55" rx="8" />
|
|
6
|
+
<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" />
|
|
7
|
+
<rect
|
|
8
|
+
width="16"
|
|
9
|
+
height="16"
|
|
10
|
+
x="1"
|
|
11
|
+
y="1"
|
|
12
|
+
stroke="#F8F9F9"
|
|
13
|
+
strokeWidth="2"
|
|
14
|
+
rx="8"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Online = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 18 18">
|
|
5
|
+
<rect width="16" height="16" x="1" y="1" fill="#3CC260" rx="8" />
|
|
6
|
+
<rect
|
|
7
|
+
width="16"
|
|
8
|
+
height="16"
|
|
9
|
+
x="1"
|
|
10
|
+
y="1"
|
|
11
|
+
stroke="#F8F9F9"
|
|
12
|
+
strokeWidth="2"
|
|
13
|
+
rx="8"
|
|
14
|
+
/>
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Subscribed = () => (
|
|
4
|
+
<svg fill="none" viewBox="0 0 20 20">
|
|
5
|
+
<path
|
|
6
|
+
fill="#fff"
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
d="M19.088 9.994a9.088 9.088 0 1 1-18.176 0 9.088 9.088 0 0 1 18.176 0Z"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
/>
|
|
11
|
+
<path
|
|
12
|
+
fill="url(#a)"
|
|
13
|
+
d="M17.088 9.994a7.088 7.088 0 1 1-14.176 0 7.088 7.088 0 0 1 14.176 0Z"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
fill="#fff"
|
|
17
|
+
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"
|
|
18
|
+
/>
|
|
19
|
+
<defs>
|
|
20
|
+
<radialGradient
|
|
21
|
+
id="a"
|
|
22
|
+
cx="0"
|
|
23
|
+
cy="0"
|
|
24
|
+
r="1"
|
|
25
|
+
gradientTransform="rotate(-49.924 18.2 -.497) scale(14.7338 19.4196)"
|
|
26
|
+
gradientUnits="userSpaceOnUse"
|
|
27
|
+
>
|
|
28
|
+
<stop stopColor="#09B3A1" />
|
|
29
|
+
<stop offset="1" stopColor="#3AC15E" />
|
|
30
|
+
</radialGradient>
|
|
31
|
+
</defs>
|
|
32
|
+
</svg>
|
|
33
|
+
);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { COLORS, colorReference } from 'common';
|
|
4
|
+
|
|
5
|
+
type NativeProps = Pick<
|
|
6
|
+
React.HTMLAttributes<SVGElement>,
|
|
7
|
+
| 'children'
|
|
8
|
+
| 'className'
|
|
9
|
+
| 'dangerouslySetInnerHTML'
|
|
10
|
+
| 'id'
|
|
11
|
+
| 'onBlur'
|
|
12
|
+
| 'onBlurCapture'
|
|
13
|
+
| 'onClick'
|
|
14
|
+
| 'onChange'
|
|
15
|
+
| 'onCopy'
|
|
16
|
+
| 'onCut'
|
|
17
|
+
| 'onKeyDown'
|
|
18
|
+
| 'onKeyDownCapture'
|
|
19
|
+
| 'onKeyUp'
|
|
20
|
+
| 'onKeyUpCapture'
|
|
21
|
+
| 'onMouseDown'
|
|
22
|
+
| 'onMouseDownCapture'
|
|
23
|
+
| 'onMouseEnter'
|
|
24
|
+
| 'onMouseLeave'
|
|
25
|
+
| 'onMouseOut'
|
|
26
|
+
| 'onMouseOver'
|
|
27
|
+
> & { value?: string };
|
|
28
|
+
|
|
29
|
+
export interface IconProps extends NativeProps {
|
|
30
|
+
as?: React.ElementType;
|
|
31
|
+
color?: (typeof COLORS)[number];
|
|
32
|
+
size?: 16 | 20 | 24;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const Icon = ({
|
|
36
|
+
as,
|
|
37
|
+
children,
|
|
38
|
+
color = 'grey-3',
|
|
39
|
+
size = 16,
|
|
40
|
+
...rest
|
|
41
|
+
}: IconProps) => {
|
|
42
|
+
return (
|
|
43
|
+
<SVG
|
|
44
|
+
as={as}
|
|
45
|
+
width={size}
|
|
46
|
+
height={size}
|
|
47
|
+
viewBox="0 0 16 16"
|
|
48
|
+
fill={colorReference[color]}
|
|
49
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
50
|
+
{...rest}
|
|
51
|
+
>
|
|
52
|
+
{children}
|
|
53
|
+
</SVG>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const SVG = styled.svg``;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Box, Display, H, P, Typography } from './atoms';
|
|
2
|
+
export type {
|
|
3
|
+
BoxProps,
|
|
4
|
+
DisplayProps,
|
|
5
|
+
HeadingProps,
|
|
6
|
+
ParagraphProps,
|
|
7
|
+
TypographyProps,
|
|
8
|
+
} from './atoms';
|
|
9
|
+
export { Avatar, Icon } from './iconography';
|
|
10
|
+
export type { AvatarGroupProps, AvatarProps, IconProps } from './iconography';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Icon, IconProps } from 'components';
|
|
3
|
+
|
|
4
|
+
export const ArrowAll = (props: IconProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Icon {...props}>
|
|
7
|
+
<path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M13.0573 8.66671H8.66677V13.0572L10.1954 11.5286L11.1382 12.4714L8.0001 15.6095L4.86203 12.4714L5.80484 11.5286L7.33343 13.0572V8.66671H2.94291L4.47151 10.1953L3.5287 11.1381L0.390625 8.00004L3.5287 4.86197L4.47151 5.80478L2.94291 7.33337H7.33343V2.94285L5.80484 4.47144L4.86203 3.52864L8.0001 0.390564L11.1382 3.52864L10.1954 4.47144L8.66677 2.94285V7.33337H13.0573L11.5287 5.80478L12.4715 4.86197L15.6096 8.00004L12.4715 11.1381L11.5287 10.1953L13.0573 8.66671Z"
|
|
11
|
+
/>
|
|
12
|
+
</Icon>
|
|
13
|
+
);
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Icon, IconProps } from 'components';
|
|
3
|
+
|
|
4
|
+
export const ArrowAllDiagonal = (props: IconProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Icon {...props}>
|
|
7
|
+
<path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M8.94281 8L12.6667 11.7239V9.33333H14V14H9.33333V12.6667H11.7239L8 8.94281L4.27614 12.6667H6.66667V14H2V9.33333H3.33333V11.7239L7.05719 8L3.33333 4.27614V6.66667H2V2H6.66667V3.33333H4.27614L8 7.05719L11.7239 3.33333H9.33333V2H14V6.66667H12.6667V4.27614L8.94281 8Z"
|
|
11
|
+
/>
|
|
12
|
+
</Icon>
|
|
13
|
+
);
|
|
14
|
+
};
|