@soul-refiner/design-system 0.1.28 → 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/tsconfig.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, H, P } from 'components';
|
|
4
|
+
import { Checkmark } from 'icons';
|
|
5
|
+
export const PriceCard = ({ actions, content, featureTitle, features, price, title, }) => {
|
|
6
|
+
const id = React.useId();
|
|
7
|
+
return (React.createElement(Price, null,
|
|
8
|
+
React.createElement(Box, { "$align": "stretch", "$display": "flex", "$dir": "column", "$gap": 24, sx: `
|
|
9
|
+
padding: 24px 48px;
|
|
10
|
+
background-color: var(--color-grey-10);
|
|
11
|
+
border-radius: 16px 16px 0px 0px;
|
|
12
|
+
` },
|
|
13
|
+
React.createElement(H, { as: "h6", "$fontSize": 24, "$lineHeight": 36, "$semiBold": true, "$textAlign": "center" }, title),
|
|
14
|
+
React.createElement(Box, { "$dir": "column" },
|
|
15
|
+
React.createElement(H, { as: "p", "$bold": true, "$fontSize": 32, "$lineHeight": 48, "$textClampLines": 5, "$textAlign": "center" }, price),
|
|
16
|
+
React.createElement(P, { as: "span", "$color": "grey-4", "$textAlign": "center" }, "/month")),
|
|
17
|
+
actions),
|
|
18
|
+
React.createElement(Box, { sx: "padding: 16px 24px; position: relative;", "$display": "flex", "$dir": "column" },
|
|
19
|
+
React.createElement(P, { sx: "padding: 16px 0px;" }, content),
|
|
20
|
+
React.createElement(Divider, null),
|
|
21
|
+
React.createElement(Box, { sx: "padding: 16px 0px;", "$dir": "column", "$gap": 8 },
|
|
22
|
+
React.createElement(P, { "$color": "grey-2", "$mediumBold": true }, featureTitle),
|
|
23
|
+
features.map((item, index) => (React.createElement(Box, { key: id + index.toString(36), "$align": "center", "$gap": 12 },
|
|
24
|
+
React.createElement(Checkmark, { color: "green-5", sx: "padding: 2px; border-radius: 50%; background-color: var(--color-green-9);" }),
|
|
25
|
+
React.createElement(P, { "$fontSize": 14, "$lineHeight": 20 }, item))))))));
|
|
26
|
+
};
|
|
27
|
+
const Price = styled.figure `
|
|
28
|
+
margin: 0px;
|
|
29
|
+
padding: 0px;
|
|
30
|
+
width: 280px;
|
|
31
|
+
height: fit-content;
|
|
32
|
+
border-radius: 16px;
|
|
33
|
+
box-shadow: var(--elevation-2);
|
|
34
|
+
user-select: none;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
border: 1px solid var(--color-primary-blue-3);
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
const Divider = styled.div `
|
|
41
|
+
height: 1px;
|
|
42
|
+
width: 100%;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
background-color: var(--color-grey-9);
|
|
45
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RegularCard } from './regular';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box } from 'components';
|
|
4
|
+
export const RegularCard = ({ children, href, image, sx, }) => {
|
|
5
|
+
return (React.createElement(Wrapper, { "$isLink": !!href, "$sx": sx, as: href ? 'a' : 'div', href: href },
|
|
6
|
+
React.createElement("img", { src: image, alt: "" }),
|
|
7
|
+
React.createElement(Box, { "$dir": "column", "$padding": 24 }, children)));
|
|
8
|
+
};
|
|
9
|
+
const Wrapper = styled.div `
|
|
10
|
+
position: relative;
|
|
11
|
+
display: block;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
box-shadow: var(--elevation-1);
|
|
15
|
+
border-radius: 16px;
|
|
16
|
+
background-color: var(--color-white);
|
|
17
|
+
|
|
18
|
+
${({ $isLink }) => $isLink
|
|
19
|
+
? `
|
|
20
|
+
&:hover {
|
|
21
|
+
border: 1px solid var(--color-primary-blue-3);
|
|
22
|
+
}`
|
|
23
|
+
: ''}
|
|
24
|
+
|
|
25
|
+
img {
|
|
26
|
+
border-radius: 16px 16px 0px 0px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
30
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VideoEpisodeCard } from './video';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, H, P, Rate } from 'components';
|
|
4
|
+
export const VideoEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, rating, subtitle, supportLabel, sx, title, }) => {
|
|
5
|
+
const hasLogo = !!logo;
|
|
6
|
+
return (React.createElement(Wrapper, { "$sx": sx, href: href },
|
|
7
|
+
React.createElement(Figure, null,
|
|
8
|
+
actionDropdown && React.createElement(DropdownWrapper, null, actionDropdown),
|
|
9
|
+
React.createElement("img", { className: "thumbnail", src: image, alt: "" }),
|
|
10
|
+
React.createElement(Figcaption, null,
|
|
11
|
+
React.createElement(Box, { "$display": "block", className: "hidden" }, cta),
|
|
12
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
13
|
+
logo,
|
|
14
|
+
React.createElement(Box, { "$dir": "column" },
|
|
15
|
+
React.createElement(H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
16
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
17
|
+
supportLabel && (React.createElement(P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
18
|
+
React.createElement(P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 4, className: "hidden" }, content),
|
|
19
|
+
React.createElement(Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
20
|
+
React.createElement(Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
21
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
22
|
+
"(",
|
|
23
|
+
numRating,
|
|
24
|
+
")"),
|
|
25
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React.Children.toArray(actions)))))));
|
|
26
|
+
};
|
|
27
|
+
const Wrapper = styled.a `
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
display: block;
|
|
30
|
+
position: relative;
|
|
31
|
+
user-select: none;
|
|
32
|
+
|
|
33
|
+
.hidden {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
.hidden {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.not-hover {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.thumbnail {
|
|
47
|
+
border-radius: 16px 16px 0px 0px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
figure {
|
|
51
|
+
aspect-ratio: 410 / 414;
|
|
52
|
+
box-shadow: var(--elevation-3);
|
|
53
|
+
background: linear-gradient(
|
|
54
|
+
0deg,
|
|
55
|
+
#ffffff 50%,
|
|
56
|
+
rgba(255, 255, 255, 0.85) 55%,
|
|
57
|
+
rgba(255, 255, 255, 0.1) 80%
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
figcaption {
|
|
62
|
+
margin-top: -40px;
|
|
63
|
+
padding: 24px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
68
|
+
`;
|
|
69
|
+
const Figure = styled.figure `
|
|
70
|
+
max-width: 410px;
|
|
71
|
+
margin: 0px;
|
|
72
|
+
border-radius: 16px;
|
|
73
|
+
|
|
74
|
+
.thumbnail {
|
|
75
|
+
position: relative;
|
|
76
|
+
z-index: -1;
|
|
77
|
+
width: 100%;
|
|
78
|
+
aspect-ratio: 410 / 239;
|
|
79
|
+
border-radius: 16px;
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
const Figcaption = styled.figcaption `
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-flow: column nowrap;
|
|
85
|
+
gap: 8px;
|
|
86
|
+
padding: 8px;
|
|
87
|
+
`;
|
|
88
|
+
const DropdownWrapper = styled.div `
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 8px;
|
|
91
|
+
right: 8px;
|
|
92
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WrittenEpisodeCard } from './written';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, H, P, Rate } from 'components';
|
|
4
|
+
export const WrittenEpisodeCard = ({ actions, actionDropdown, content, cta, href, image, logo, numRating, rating, subtitle, supportLabel, sx, title, }) => {
|
|
5
|
+
const hasLogo = !!logo;
|
|
6
|
+
return (React.createElement(Wrapper, { "$sx": sx, href: href },
|
|
7
|
+
React.createElement(Figure, null,
|
|
8
|
+
actionDropdown && React.createElement(DropdownWrapper, null, actionDropdown),
|
|
9
|
+
React.createElement("img", { className: "thumbnail", src: image, alt: "" }),
|
|
10
|
+
React.createElement(Figcaption, null,
|
|
11
|
+
React.createElement(Box, { "$display": "block", className: "hidden" }, cta),
|
|
12
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
13
|
+
logo,
|
|
14
|
+
React.createElement(Box, { "$dir": "column" },
|
|
15
|
+
React.createElement(H, { "$color": "grey-2", "$semiBold": true, "$fontSize": hasLogo ? 18 : 16 }, title),
|
|
16
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16 }, subtitle)),
|
|
17
|
+
supportLabel && (React.createElement(P, { className: "not-hover", "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;" }, supportLabel))),
|
|
18
|
+
React.createElement(P, { "$color": "grey-5", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 6, className: "hidden inline" }, content),
|
|
19
|
+
React.createElement(Box, { className: "hidden", "$align": "center", "$dir": "row" },
|
|
20
|
+
React.createElement(Rate, { isRateable: false, percent: rating, size: "small" }),
|
|
21
|
+
React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, sx: "margin: 0px auto 0px 4px;" },
|
|
22
|
+
"(",
|
|
23
|
+
numRating,
|
|
24
|
+
")"),
|
|
25
|
+
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 8 }, React.Children.toArray(actions)))))));
|
|
26
|
+
};
|
|
27
|
+
const Wrapper = styled.a `
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
display: block;
|
|
30
|
+
position: relative;
|
|
31
|
+
user-select: none;
|
|
32
|
+
|
|
33
|
+
figure {
|
|
34
|
+
max-width: 228px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.hidden {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
.hidden {
|
|
43
|
+
display: flex;
|
|
44
|
+
|
|
45
|
+
&.inline {
|
|
46
|
+
display: -webkit-box;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.not-hover {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.thumbnail {
|
|
55
|
+
border-radius: 16px 16px 0px 0px;
|
|
56
|
+
aspect-ratio: 228 / 228;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
figure {
|
|
60
|
+
max-width: 280px;
|
|
61
|
+
aspect-ratio: 280 / 434;
|
|
62
|
+
box-shadow: var(--elevation-3);
|
|
63
|
+
background: linear-gradient(
|
|
64
|
+
0deg,
|
|
65
|
+
#ffffff 50%,
|
|
66
|
+
rgba(255, 255, 255, 0.85) 55%,
|
|
67
|
+
rgba(255, 255, 255, 0.1) 80%
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
figcaption {
|
|
72
|
+
margin-top: -80px;
|
|
73
|
+
padding: 24px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
${({ $sx }) => ($sx ? $sx : '')};
|
|
78
|
+
`;
|
|
79
|
+
const Figure = styled.figure `
|
|
80
|
+
margin: 0px;
|
|
81
|
+
border-radius: 16px;
|
|
82
|
+
|
|
83
|
+
.thumbnail {
|
|
84
|
+
border-radius: 16px;
|
|
85
|
+
position: relative;
|
|
86
|
+
z-index: -1;
|
|
87
|
+
width: 100%;
|
|
88
|
+
aspect-ratio: 228 / 326;
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
const Figcaption = styled.figcaption `
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-flow: column nowrap;
|
|
94
|
+
gap: 8px;
|
|
95
|
+
padding: 8px;
|
|
96
|
+
`;
|
|
97
|
+
const DropdownWrapper = styled.div `
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 8px;
|
|
100
|
+
right: 8px;
|
|
101
|
+
`;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export { ELEMENT_BLOCKQUOTE, ELEMENT_CODE_LINE, ELEMENT_CODE_SYNTAX, ELEMENT_DEFAULT, ELEMENT_H1, ELEMENT_H2, ELEMENT_H3, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, ELEMENT_HR, ELEMENT_IMAGE, ELEMENT_LI, ELEMENT_LIC, ELEMENT_LINK, ELEMENT_MEDIA, ELEMENT_MEDIA_EMBED, ELEMENT_MENTION, ELEMENT_MENTION_INPUT, ELEMENT_OL, ELEMENT_PARAGRAPH, ELEMENT_TABLE, ELEMENT_TD, ELEMENT_TH, ELEMENT_TODO_LI, ELEMENT_TR, ELEMENT_UL, MARK_BG_COLOR, MARK_BOLD, MARK_CODE, MARK_COLOR, MARK_FONT_FAMILY, MARK_FONT_SIZE, MARK_FONT_WEIGHT, MARK_HIGHLIGHT, MARK_ITALIC, MARK_KBD, MARK_SEARCH_HIGHLIGHT, MARK_STRIKETHROUGH, MARK_SUBSCRIPT, MARK_SUPERSCRIPT, MARK_UNDERLINE, } from '@udecode/plate';
|
|
2
|
+
export const ELEMENT_AUDIO = 'audio';
|
|
3
|
+
export const ELEMENT_BIBLE_QUOTE = 'bible-quote';
|
|
4
|
+
export const ELEMENT_BUTTON = 'button';
|
|
5
|
+
export const ELEMENT_EXAMPLE = 'example';
|
|
6
|
+
export const ELEMENT_FOOTNOTE = 'footnote';
|
|
7
|
+
export const ELEMENT_PAYWALL = 'paywall';
|
|
8
|
+
export const ELEMENT_POLL = 'poll';
|
|
9
|
+
export const ELEMENT_QA = 'q-n-a';
|
|
10
|
+
export const ELEMENT_RECIPE = 'recipe';
|
|
11
|
+
export const ELEMENT_VIDEO = 'video';
|
|
12
|
+
// export const BUTTON_COMMENT = 'button-comment';
|
|
13
|
+
// export const BUTTON_GIFT_SUBSCRIPTION = 'button-gift-subscription';
|
|
14
|
+
// export const BUTTON_SHARE = 'button-share';
|
|
15
|
+
// export const BUTTON_SHARE_PAGE = 'button-share-page';
|
|
16
|
+
// export const BUTTON_SIGNUP = 'signup';
|
|
17
|
+
// export const BUTTON_SPECIAL_OFFER = 'button-special-offer';
|
|
18
|
+
export const BUTTON_LINK = 'button-link';
|
|
19
|
+
export const BUTTON_SUBSCRIBE = 'button-subscribe';
|
|
20
|
+
export const COLORS = [
|
|
21
|
+
'var(--color-turquoise-5)',
|
|
22
|
+
'var(--color-green-5)',
|
|
23
|
+
'var(--color-blue-5)',
|
|
24
|
+
'var(--color-purple-5)',
|
|
25
|
+
'var(--color-yellow-5)',
|
|
26
|
+
'var(--color-orange-5)',
|
|
27
|
+
'var(--color-red-5)',
|
|
28
|
+
];
|
|
29
|
+
export const PLACEHOLDER = 'This is a placeholder';
|
|
30
|
+
export const DEFAULT_CONTENT = [
|
|
31
|
+
{
|
|
32
|
+
type: 'h1',
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
text: 'Module 1: The Warrior Identity',
|
|
36
|
+
bold: true,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'p',
|
|
42
|
+
children: [
|
|
43
|
+
{
|
|
44
|
+
text: 'Welcome to Warpath. You’re about to embark on a journey towards lifelong healing, freedom and victory. This is a season of training. It’s sanctification on steroids, not for the faint-hearted, but for those who truly desire to live the rest of their lives for Jesus. No reserves, no retreats, no regrets.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
text: ' What was once your deepest, darkest secret will now become the word of your testimony that heals and liberates others.',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 'p',
|
|
53
|
+
children: [
|
|
54
|
+
{
|
|
55
|
+
text: 'In this new season, God is calling you up. He’s calling you to a higher level, a place where you’re no longer part of the problem but are becoming a part of the solution.',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
text: '',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: 'blockquote',
|
|
64
|
+
children: [
|
|
65
|
+
{
|
|
66
|
+
text: '"Warpath isn’t about just winning for you; that’s the beginning. Warpath is about you taking the battle and winning for others so they can have their families, and their marriages, and their destinies." \n— ',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
text: 'Dr. Doug Weiss',
|
|
70
|
+
italic: true,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
// {
|
|
75
|
+
// type: 'hr',
|
|
76
|
+
// children: [
|
|
77
|
+
// {
|
|
78
|
+
// text: '',
|
|
79
|
+
// },
|
|
80
|
+
// ],
|
|
81
|
+
// },
|
|
82
|
+
{
|
|
83
|
+
type: 'h3',
|
|
84
|
+
align: 'center',
|
|
85
|
+
children: [
|
|
86
|
+
{
|
|
87
|
+
text: 'THE WARRIOR IDENTITY',
|
|
88
|
+
bold: true,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
// {
|
|
93
|
+
// type: 'hr',
|
|
94
|
+
// children: [
|
|
95
|
+
// {
|
|
96
|
+
// text: '',
|
|
97
|
+
// },
|
|
98
|
+
// ],
|
|
99
|
+
// },
|
|
100
|
+
{
|
|
101
|
+
type: 'img',
|
|
102
|
+
url: 'https://source.unsplash.com/1600x900/?christian',
|
|
103
|
+
children: [
|
|
104
|
+
{
|
|
105
|
+
text: '',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: 'p',
|
|
111
|
+
children: [
|
|
112
|
+
{
|
|
113
|
+
text: 'Identity: You will have to grasp your true identity in Christ. You cannot look at this as a “what”, but instead about a “who”. We must become more like Christ, because He is a warrior.',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: 'p',
|
|
119
|
+
children: [
|
|
120
|
+
{
|
|
121
|
+
text: 'A different DNA: As a warrior, your spiritual genetic code will be different from those who haven’t tasted the victory and grace you’ve experienced from this battle. You’ve experienced truth as a person: Jesus; and it has forever changed you. You’ve been set apart as a “fighting man”, no longer a civilian idly consumed by the cares of this world, but a warrior who’s passionate about the Kingdom and craving some sweet revenge.',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
type: 'p',
|
|
127
|
+
children: [
|
|
128
|
+
{
|
|
129
|
+
text: '',
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
];
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { createPlugins, Plate, PlateProvider } from '@udecode/plate';
|
|
4
|
+
import { DEFAULT_CONTENT, PLACEHOLDER } from './constants';
|
|
5
|
+
import { EditorBar } from './navbar';
|
|
6
|
+
import { plateUI } from './plate';
|
|
7
|
+
import { blocks, inline, marks, utils } from './plugins';
|
|
8
|
+
const plugins = createPlugins([...blocks, ...inline, ...marks, ...utils], {
|
|
9
|
+
components: plateUI,
|
|
10
|
+
});
|
|
11
|
+
export const Editor = ({ editable, handleUploadImage, onChange, }) => {
|
|
12
|
+
return (React.createElement(PlateProvider, { id: "main", initialValue: DEFAULT_CONTENT, onChange: onChange, plugins: plugins },
|
|
13
|
+
React.createElement(Wrapper, null,
|
|
14
|
+
React.createElement(EditorBar, { handleUploadImage: handleUploadImage }),
|
|
15
|
+
React.createElement(Plate, { id: "main", editableProps: {
|
|
16
|
+
readOnly: !editable,
|
|
17
|
+
spellCheck: true,
|
|
18
|
+
autoFocus: true,
|
|
19
|
+
placeholder: PLACEHOLDER,
|
|
20
|
+
} }))));
|
|
21
|
+
};
|
|
22
|
+
const Wrapper = styled.div `
|
|
23
|
+
* {
|
|
24
|
+
font-family: Inter;
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.slate-bold {
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.slate-italic {
|
|
33
|
+
font-style: italic;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.slate-strikethrough {
|
|
37
|
+
text-decoration: line-through;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.slate-underline {
|
|
41
|
+
text-decoration: underline;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
li {
|
|
45
|
+
color: var(--color-grey-3);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.slate-code {
|
|
49
|
+
& > * {
|
|
50
|
+
font-family: 'Roboto Mono';
|
|
51
|
+
& > * {
|
|
52
|
+
font-family: 'Roboto Mono';
|
|
53
|
+
& > * {
|
|
54
|
+
font-family: 'Roboto Mono';
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
background-color: var(--color-grey-9);
|
|
60
|
+
padding: 0.4em 0.4em;
|
|
61
|
+
font-size: 0.8em;
|
|
62
|
+
line-height: 0.8em;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
& > [data-slate-editor='true'] > * {
|
|
66
|
+
margin: 24px 0px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
position: relative;
|
|
70
|
+
padding: 24px;
|
|
71
|
+
max-width: 1200px;
|
|
72
|
+
margin: 98px auto 0px;
|
|
73
|
+
`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Editor } from './editor';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Editor/Rich Text Editor',
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'padded',
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
const Story = (args) => {
|
|
10
|
+
return React.createElement(Editor, { ...args });
|
|
11
|
+
};
|
|
12
|
+
export const Default = Story.bind({});
|
|
13
|
+
Default.args = {
|
|
14
|
+
editable: true,
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Editor } from './editor';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { setAlign, } from '@udecode/plate';
|
|
3
|
+
import { useAlignDropdownMenu, useAlignDropdownMenuState, } from '@udecode/plate-alignment';
|
|
4
|
+
import { Dropdown } from 'components';
|
|
5
|
+
import { PlayerListPlay, AlignCenter, AlignJustified, AlignLeft, AlignRight, } from 'icons';
|
|
6
|
+
import { MenuButton } from './navbar';
|
|
7
|
+
const items = [
|
|
8
|
+
{
|
|
9
|
+
value: 'left',
|
|
10
|
+
icon: AlignLeft,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
value: 'center',
|
|
14
|
+
icon: AlignCenter,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: 'right',
|
|
18
|
+
icon: AlignRight,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: 'justify',
|
|
22
|
+
icon: AlignJustified,
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
export const AlignmentDropdown = ({ editorRef }) => {
|
|
26
|
+
const alignState = useAlignDropdownMenuState();
|
|
27
|
+
const { radioGroupProps } = useAlignDropdownMenu(alignState);
|
|
28
|
+
const current = radioGroupProps.value;
|
|
29
|
+
const IconValue = items.find((item) => item.value === radioGroupProps.value)?.icon ??
|
|
30
|
+
PlayerListPlay;
|
|
31
|
+
const handleAlign = (event) => {
|
|
32
|
+
const value = event.target?.getAttribute('data-value');
|
|
33
|
+
if (!value)
|
|
34
|
+
return;
|
|
35
|
+
setAlign(editorRef, {
|
|
36
|
+
value: value,
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
return (React.createElement(Dropdown, { onChange: handleAlign, offset: [0, 0], options: [
|
|
40
|
+
{
|
|
41
|
+
icon: (React.createElement(MenuButton, { "$active": current === 'left' },
|
|
42
|
+
React.createElement(AlignLeft, { size: 24, color: "grey-5" }))),
|
|
43
|
+
sx: 'gap: 0px; padding: 4px;',
|
|
44
|
+
value: 'left',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
icon: (React.createElement(MenuButton, { "$active": current === 'center' },
|
|
48
|
+
React.createElement(AlignCenter, { size: 24, color: "grey-5" }))),
|
|
49
|
+
sx: 'gap: 0px; padding: 4px;',
|
|
50
|
+
value: 'center',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
icon: (React.createElement(MenuButton, { "$active": current === 'right' },
|
|
54
|
+
React.createElement(AlignRight, { size: 24, color: "grey-5" }))),
|
|
55
|
+
sx: 'gap: 0px; padding: 4px;',
|
|
56
|
+
value: 'right',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
icon: (React.createElement(MenuButton, { "$active": current === 'justify' },
|
|
60
|
+
React.createElement(AlignJustified, { size: 24, color: "grey-5" }))),
|
|
61
|
+
sx: 'gap: 0px; padding: 4px;',
|
|
62
|
+
value: 'justify',
|
|
63
|
+
},
|
|
64
|
+
], maintainState: false, trigger: React.createElement(IconValue, { size: 24, color: "grey-5" }) }));
|
|
65
|
+
};
|
|
66
|
+
// <AlignToolbarButton
|
|
67
|
+
// as="div"
|
|
68
|
+
// active={alignment === 'left' ? true : undefined}
|
|
69
|
+
// data-value="left"
|
|
70
|
+
// value="left"
|
|
71
|
+
// icon={<AlignLeft size={24} color="grey-5" />}
|
|
72
|
+
// />
|
|
73
|
+
// <AlignToolbarButton
|
|
74
|
+
// as="div"
|
|
75
|
+
// active={alignment === 'center' ? true : undefined}
|
|
76
|
+
// data-value="center"
|
|
77
|
+
// value="center"
|
|
78
|
+
// icon={<AlignCenter size={24} color="grey-5" />}
|
|
79
|
+
// />
|
|
80
|
+
// <AlignToolbarButton
|
|
81
|
+
// as="div"
|
|
82
|
+
// active={alignment === 'right' ? true : undefined}
|
|
83
|
+
// data-value="right"
|
|
84
|
+
// value="right"
|
|
85
|
+
// icon={<AlignRight size={24} color="grey-5" />}
|
|
86
|
+
// />
|
|
87
|
+
// <AlignToolbarButton
|
|
88
|
+
// as="div"
|
|
89
|
+
// active={alignment === 'justify' ? true : undefined}
|
|
90
|
+
// data-value="justify"
|
|
91
|
+
// value="justify"
|
|
92
|
+
// icon={<AlignJustified size={24} color="grey-5" />}
|
|
93
|
+
// />
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, Button, H, Modal, P, Radio } from 'components';
|
|
4
|
+
import { Close, InsertButton } from 'icons';
|
|
5
|
+
import { MenuButton } from './navbar';
|
|
6
|
+
import { BUTTON_LINK, BUTTON_SUBSCRIBE } from '../constants';
|
|
7
|
+
export const ButtonModal = ({ onButtonInsert }) => {
|
|
8
|
+
const [buttonType, setButtonType] = React.useState();
|
|
9
|
+
const handleButtonInsert = () => {
|
|
10
|
+
buttonType && onButtonInsert(buttonType);
|
|
11
|
+
setButtonType(undefined);
|
|
12
|
+
};
|
|
13
|
+
return (React.createElement(Modal, null,
|
|
14
|
+
React.createElement(Modal.Trigger, null,
|
|
15
|
+
React.createElement(MenuButton, null,
|
|
16
|
+
React.createElement(InsertButton, { size: 24, color: "grey-5" }))),
|
|
17
|
+
React.createElement(Modal.Content, { sx: "border-radius: 16px; max-width: 782px; width: 100%; margin: 24px; padding: 0px;" },
|
|
18
|
+
React.createElement(Box, { "$dir": "column" },
|
|
19
|
+
React.createElement(Box, { "$align": "center", "$justify": "space-between", sx: "padding: 24px; box-shadow: var(--elevation-2);" },
|
|
20
|
+
React.createElement(Box, { "$align": "center", "$gap": 32 },
|
|
21
|
+
React.createElement(IconWrapper, null,
|
|
22
|
+
React.createElement(InsertButton, { size: 24, color: "hue-blue-1" })),
|
|
23
|
+
React.createElement(H, { "$bold": true, "$color": "hue-blue-1", "$fontSize": 20, "$lineHeight": 28 }, "Insert Button")),
|
|
24
|
+
React.createElement(Close, { size: 24, sx: "&:hover { cursor: pointer; border-radius: 50%; background-color: var(--color-grey-9); }" })),
|
|
25
|
+
React.createElement(Box, { "$dir": "column", "$gap": 24, sx: "padding: 24px 48px 24px 24px;" },
|
|
26
|
+
React.createElement(ButtonItem, { active: buttonType === BUTTON_SUBSCRIBE, description: "A button encouraging the reader to purchase a paid subscription to your community", onClick: () => setButtonType(BUTTON_SUBSCRIBE), title: "Subscribe Now" },
|
|
27
|
+
React.createElement(Button, { size: "small", sx: "width: 130px;" }, "Subscribe")),
|
|
28
|
+
React.createElement(ButtonItem, { active: buttonType === BUTTON_LINK, description: "A button that links to a URL", onClick: () => setButtonType(BUTTON_LINK), title: "Link Button" },
|
|
29
|
+
React.createElement(Button, { size: "small", sx: "width: 130px;" }, "Link"))),
|
|
30
|
+
React.createElement(Box, { "$padding": 24, "$gap": 16, sx: "padding: 24px; background-color: var(--color-white); border-top: 1px solid var(--color-grey-8);" },
|
|
31
|
+
React.createElement(Modal.Dismiss, null,
|
|
32
|
+
React.createElement(Button, { size: "small", sx: "flex: 1;", type: "outlined", onClick: () => setButtonType(undefined) }, "Cancel")),
|
|
33
|
+
React.createElement(Modal.Dismiss, null,
|
|
34
|
+
React.createElement(Button, { size: "small", sx: "flex: 1;", onClick: handleButtonInsert }, "Confirm")))))));
|
|
35
|
+
};
|
|
36
|
+
const IconWrapper = styled.div `
|
|
37
|
+
height: 48px;
|
|
38
|
+
width: 48px;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
padding: 12px;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
background-color: var(--color-hue-blue-2);
|
|
43
|
+
`;
|
|
44
|
+
const ButtonItem = ({ active, children, description, onClick, title, }) => (React.createElement(Box, { "$dir": "column", onClick: onClick, sx: "border-radius: 16px; box-shadow: var(--elevation-2); cursor: pointer;" },
|
|
45
|
+
React.createElement(Box, { sx: `
|
|
46
|
+
padding: 24px;
|
|
47
|
+
background-color: var(--color-blue-10);
|
|
48
|
+
border-radius: 8px 8px 0px 0px;
|
|
49
|
+
border-bottom: 1px solid var(--color-grey-9);
|
|
50
|
+
` },
|
|
51
|
+
React.createElement(Radio, { checked: !!active, sx: "align-items: flex-start;", value: title }),
|
|
52
|
+
React.createElement(Box, { "$dir": "column" },
|
|
53
|
+
React.createElement(P, { "$semiBold": true }, title),
|
|
54
|
+
React.createElement(P, null, description))),
|
|
55
|
+
React.createElement(Box, { "$align": "center", "$justify": "center", sx: "border-radius: 0px 0px 8px 8px; padding: 24px;" }, children)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditorBar } from './navbar';
|