@soul-refiner/design-system 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/colors.js +135 -0
- package/dist/common/date.js +28 -0
- package/dist/common/index.js +3 -0
- package/dist/common/styles.js +63 -0
- package/dist/components/actions/button/button.js +233 -0
- package/dist/components/actions/button/button.stories.js +58 -0
- package/dist/components/actions/button/index.js +1 -0
- package/dist/components/actions/dropdown/dropdown.js +202 -0
- package/dist/components/actions/dropdown/dropdown.stories.js +99 -0
- package/dist/components/actions/dropdown/index.js +1 -0
- package/dist/components/actions/index.js +5 -0
- package/dist/components/actions/rate/index.js +1 -0
- package/dist/components/actions/rate/rate.js +45 -0
- package/dist/components/actions/rate/rate.stories.js +29 -0
- package/dist/components/actions/switch/index.js +1 -0
- package/dist/components/actions/switch/switch.js +71 -0
- package/dist/components/actions/switch/switch.stories.js +25 -0
- package/dist/components/actions/toggle/index.js +1 -0
- package/dist/components/actions/toggle/toggle.js +56 -0
- package/dist/components/actions/toggle/toggle.stories.js +20 -0
- package/dist/components/actions/upload/index.js +1 -0
- package/dist/components/actions/upload/upload.js +155 -0
- package/dist/components/actions/upload/upload.stories.js +58 -0
- package/dist/components/atoms/box/box.js +15 -0
- package/dist/components/atoms/box/box.stories.js +85 -0
- package/dist/components/atoms/box/index.js +1 -0
- package/dist/components/atoms/colors/colors.js +34 -0
- package/dist/components/atoms/colors/colors.stories.js +75 -0
- package/dist/components/atoms/colors/index.js +1 -0
- package/dist/components/atoms/index.js +2 -0
- package/dist/components/atoms/typography/display.js +9 -0
- package/dist/components/atoms/typography/heading.js +33 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/paragraph.js +16 -0
- package/dist/components/atoms/typography/typography.js +11 -0
- package/dist/components/atoms/typography/typography.stories.js +96 -0
- package/dist/components/card/action/action.js +51 -0
- package/dist/components/card/action/index.js +1 -0
- package/dist/components/card/audio/audio.js +100 -0
- package/dist/components/card/audio/index.js +1 -0
- package/dist/components/card/card.js +22 -0
- package/dist/components/card/card.stories.js +284 -0
- package/dist/components/card/feature/feature.js +168 -0
- package/dist/components/card/feature/index.js +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/person/index.js +1 -0
- package/dist/components/card/person/person.js +57 -0
- package/dist/components/card/price/index.js +1 -0
- package/dist/components/card/price/price.js +45 -0
- package/dist/components/card/regular/index.js +1 -0
- package/dist/components/card/regular/regular.js +30 -0
- package/dist/components/card/video/index.js +1 -0
- package/dist/components/card/video/video.js +92 -0
- package/dist/components/card/written/index.js +1 -0
- package/dist/components/card/written/written.js +101 -0
- package/dist/components/editor/constants.js +133 -0
- package/dist/components/editor/editor.js +73 -0
- package/dist/components/editor/editor.stories.js +16 -0
- package/dist/components/editor/index.js +1 -0
- package/dist/components/editor/navbar/alignment_dropdown.js +93 -0
- package/dist/components/editor/navbar/button_modal.js +55 -0
- package/dist/components/editor/navbar/index.js +1 -0
- package/dist/components/editor/navbar/navbar.js +205 -0
- package/dist/components/editor/navbar/style_dropdown.js +65 -0
- package/dist/components/editor/plate.js +27 -0
- package/dist/components/editor/plugins/blockquote.js +8 -0
- package/dist/components/editor/plugins/buttons.js +81 -0
- package/dist/components/editor/plugins/exitBreak.js +31 -0
- package/dist/components/editor/plugins/image.js +47 -0
- package/dist/components/editor/plugins/index.js +111 -0
- package/dist/components/editor/plugins/link.js +74 -0
- package/dist/components/editor/plugins/list.js +17 -0
- package/dist/components/editor/plugins/resetBlockType.js +22 -0
- package/dist/components/editor/plugins/selectOnBackspace.js +6 -0
- package/dist/components/editor/plugins/softBreak.js +14 -0
- package/dist/components/editor/plugins/text.js +81 -0
- package/dist/components/feedback/badge/badge.js +65 -0
- package/dist/components/feedback/badge/badge.stories.js +25 -0
- package/dist/components/feedback/badge/index.js +1 -0
- package/dist/components/feedback/banner/banner.js +76 -0
- package/dist/components/feedback/banner/banner.stories.js +33 -0
- package/dist/components/feedback/banner/index.js +1 -0
- package/dist/components/feedback/chip/chip.js +93 -0
- package/dist/components/feedback/chip/chip.stories.js +39 -0
- package/dist/components/feedback/chip/index.js +1 -0
- package/dist/components/feedback/index.js +7 -0
- package/dist/components/feedback/loader/index.js +1 -0
- package/dist/components/feedback/loader/loader.js +33 -0
- package/dist/components/feedback/loader/loader.stories.js +29 -0
- package/dist/components/feedback/notification/index.js +1 -0
- package/dist/components/feedback/notification/notification.js +71 -0
- package/dist/components/feedback/notification/notificition.stories.js +30 -0
- package/dist/components/feedback/progress/index.js +1 -0
- package/dist/components/feedback/progress/progress.js +86 -0
- package/dist/components/feedback/progress/progress.stories.js +32 -0
- package/dist/components/feedback/toast/index.js +1 -0
- package/dist/components/feedback/toast/toast.js +70 -0
- package/dist/components/feedback/toast/toast.stories.js +26 -0
- package/dist/components/feedback/tooltip/index.js +1 -0
- package/dist/components/feedback/tooltip/tooltip.js +25 -0
- package/dist/components/feedback/tooltip/tooltip.stories.js +43 -0
- package/dist/components/iconography/avatar/avatar.js +148 -0
- package/dist/components/iconography/avatar/avatar.stories.js +55 -0
- package/dist/components/iconography/avatar/icons/approved.js +5 -0
- package/dist/components/iconography/avatar/icons/busy.js +5 -0
- package/dist/components/iconography/avatar/icons/declined.js +5 -0
- package/dist/components/iconography/avatar/icons/default.js +3 -0
- package/dist/components/iconography/avatar/icons/focus.js +5 -0
- package/dist/components/iconography/avatar/icons/index.js +9 -0
- package/dist/components/iconography/avatar/icons/locked.js +5 -0
- package/dist/components/iconography/avatar/icons/offline.js +5 -0
- package/dist/components/iconography/avatar/icons/online.js +4 -0
- package/dist/components/iconography/avatar/icons/subscribed.js +9 -0
- package/dist/components/iconography/avatar/index.js +1 -0
- package/dist/components/iconography/icon/icon.js +9 -0
- package/dist/components/iconography/icon/icon.stories.js +113 -0
- package/dist/components/iconography/icon/index.js +1 -0
- package/dist/components/iconography/index.js +2 -0
- package/dist/components/index.js +9 -0
- package/dist/components/input/checkbox/checkbox.js +21 -0
- package/dist/components/input/checkbox/checkbox.stories.js +19 -0
- package/dist/components/input/checkbox/index.js +1 -0
- package/dist/components/input/date/date.js +516 -0
- package/dist/components/input/date/date.stories.js +30 -0
- package/dist/components/input/date/index.js +1 -0
- package/dist/components/input/filter/filter.js +194 -0
- package/dist/components/input/filter/filter.stories.js +30 -0
- package/dist/components/input/filter/index.js +1 -0
- package/dist/components/input/index.js +5 -0
- package/dist/components/input/radio/index.js +1 -0
- package/dist/components/input/radio/radio.js +77 -0
- package/dist/components/input/radio/radio.stories.js +34 -0
- package/dist/components/input/search/index.js +1 -0
- package/dist/components/input/search/search.js +136 -0
- package/dist/components/input/search/search.stories.js +50 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +105 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.stories.js +37 -0
- package/dist/components/navigation/breadcrumb/index.js +1 -0
- package/dist/components/navigation/index.js +2 -0
- package/dist/components/navigation/tabs/index.js +1 -0
- package/dist/components/navigation/tabs/tabs.js +144 -0
- package/dist/components/navigation/tabs/tabs.stories.js +88 -0
- package/dist/components/surfaces/accordion/accordion.js +45 -0
- package/dist/components/surfaces/accordion/accordion.stories.js +16 -0
- package/dist/components/surfaces/accordion/index.js +1 -0
- package/dist/components/surfaces/comment/comment.js +126 -0
- package/dist/components/surfaces/comment/comment.stories.js +82 -0
- package/dist/components/surfaces/comment/helpers.js +38 -0
- package/dist/components/surfaces/comment/index.js +1 -0
- package/dist/components/surfaces/drawer/drawer.js +124 -0
- package/dist/components/surfaces/drawer/drawer.stories.js +77 -0
- package/dist/components/surfaces/drawer/index.js +1 -0
- package/dist/components/surfaces/index.js +5 -0
- package/dist/components/surfaces/message/index.js +1 -0
- package/dist/components/surfaces/message/message.js +43 -0
- package/dist/components/surfaces/message/message.stories.js +71 -0
- package/dist/components/surfaces/modal/index.js +1 -0
- package/dist/components/surfaces/modal/modal.js +100 -0
- package/dist/components/surfaces/modal/modal.stories.js +18 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/table/index.js +1 -0
- package/dist/components/table/table/table.js +183 -0
- package/dist/components/table/table/table.stories.js +45 -0
- package/dist/emoji/emojis.json +17577 -0
- package/dist/icons/arrow/arrow_all.js +6 -0
- package/dist/icons/arrow/arrow_all_diagonal.js +6 -0
- package/dist/icons/arrow/arrow_both_downwards.js +6 -0
- package/dist/icons/arrow/arrow_both_upwards.js +6 -0
- package/dist/icons/arrow/arrow_circle_left.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +8 -0
- package/dist/icons/arrow/arrow_circle_right.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_down.js +6 -0
- package/dist/icons/arrow/arrow_down_bold.js +6 -0
- package/dist/icons/arrow/arrow_down_circle.js +6 -0
- package/dist/icons/arrow/arrow_left.js +6 -0
- package/dist/icons/arrow/arrow_left_bold.js +6 -0
- package/dist/icons/arrow/arrow_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_left_curved.js +6 -0
- package/dist/icons/arrow/arrow_left_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_right.js +6 -0
- package/dist/icons/arrow/arrow_right_bold.js +6 -0
- package/dist/icons/arrow/arrow_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_right_curved.js +6 -0
- package/dist/icons/arrow/arrow_right_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_up.js +6 -0
- package/dist/icons/arrow/arrow_up_bold.js +6 -0
- package/dist/icons/arrow/arrow_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_down.js +6 -0
- package/dist/icons/arrow/chevron_down_circle.js +6 -0
- package/dist/icons/arrow/chevron_down_double.js +6 -0
- package/dist/icons/arrow/chevron_down_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_left.js +6 -0
- package/dist/icons/arrow/chevron_left_circle.js +6 -0
- package/dist/icons/arrow/chevron_left_double.js +6 -0
- package/dist/icons/arrow/chevron_left_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_right.js +6 -0
- package/dist/icons/arrow/chevron_right_circle.js +6 -0
- package/dist/icons/arrow/chevron_right_double.js +6 -0
- package/dist/icons/arrow/chevron_right_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_scroll.js +6 -0
- package/dist/icons/arrow/chevron_up.js +6 -0
- package/dist/icons/arrow/chevron_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_up_double.js +6 -0
- package/dist/icons/arrow/chevron_up_double_circle.js +6 -0
- package/dist/icons/arrow/forward_all.js +6 -0
- package/dist/icons/arrow/forward_all_bold.js +6 -0
- package/dist/icons/arrow/forward_bold.js +6 -0
- package/dist/icons/arrow/index.js +62 -0
- package/dist/icons/arrow/redo.js +6 -0
- package/dist/icons/arrow/redo_bold.js +6 -0
- package/dist/icons/arrow/reply.js +6 -0
- package/dist/icons/arrow/reply_all.js +6 -0
- package/dist/icons/arrow/reply_all_bold.js +6 -0
- package/dist/icons/arrow/reply_bold.js +6 -0
- package/dist/icons/arrow/undo.js +6 -0
- package/dist/icons/arrow/undo_bold.js +6 -0
- package/dist/icons/audio_video/drag_indicator.js +6 -0
- package/dist/icons/audio_video/eject.js +6 -0
- package/dist/icons/audio_video/equalizer.js +6 -0
- package/dist/icons/audio_video/fast_forward.js +6 -0
- package/dist/icons/audio_video/fast_forward_30.js +6 -0
- package/dist/icons/audio_video/fullscreen.js +6 -0
- package/dist/icons/audio_video/headphones.js +6 -0
- package/dist/icons/audio_video/index.js +38 -0
- package/dist/icons/audio_video/library_add.js +6 -0
- package/dist/icons/audio_video/library_delay.js +6 -0
- package/dist/icons/audio_video/library_music.js +6 -0
- package/dist/icons/audio_video/library_queue.js +6 -0
- package/dist/icons/audio_video/microphone.js +6 -0
- package/dist/icons/audio_video/musical_note.js +6 -0
- package/dist/icons/audio_video/next.js +6 -0
- package/dist/icons/audio_video/pause.js +6 -0
- package/dist/icons/audio_video/pause_circle.js +6 -0
- package/dist/icons/audio_video/play.js +6 -0
- package/dist/icons/audio_video/play_circle.js +6 -0
- package/dist/icons/audio_video/play_display.js +6 -0
- package/dist/icons/audio_video/play_pause.js +6 -0
- package/dist/icons/audio_video/play_solid.js +6 -0
- package/dist/icons/audio_video/player_list.js +6 -0
- package/dist/icons/audio_video/player_list_add.js +6 -0
- package/dist/icons/audio_video/player_list_play.js +6 -0
- package/dist/icons/audio_video/previous.js +6 -0
- package/dist/icons/audio_video/radio.js +6 -0
- package/dist/icons/audio_video/record.js +6 -0
- package/dist/icons/audio_video/repeat.js +6 -0
- package/dist/icons/audio_video/rewind.js +6 -0
- package/dist/icons/audio_video/rewind_30.js +6 -0
- package/dist/icons/audio_video/shuffle.js +6 -0
- package/dist/icons/audio_video/sound_wave.js +6 -0
- package/dist/icons/audio_video/stop.js +6 -0
- package/dist/icons/audio_video/stop_circle.js +6 -0
- package/dist/icons/audio_video/subscriptions.js +6 -0
- package/dist/icons/audio_video/tuner.js +6 -0
- package/dist/icons/audio_video/volume.js +6 -0
- package/dist/icons/audio_video/volume_high.js +6 -0
- package/dist/icons/audio_video/volume_low.js +6 -0
- package/dist/icons/audio_video/volume_slash.js +6 -0
- package/dist/icons/basic/aa_sansserif.js +7 -0
- package/dist/icons/basic/aa_serif.js +7 -0
- package/dist/icons/basic/anchor.js +8 -0
- package/dist/icons/basic/bible.js +6 -0
- package/dist/icons/basic/bold.js +6 -0
- package/dist/icons/basic/book.js +6 -0
- package/dist/icons/basic/book_open.js +6 -0
- package/dist/icons/basic/bookmark.js +6 -0
- package/dist/icons/basic/bookmark_add.js +6 -0
- package/dist/icons/basic/bookmark_slash.js +6 -0
- package/dist/icons/basic/bookmarks.js +6 -0
- package/dist/icons/basic/books.js +9 -0
- package/dist/icons/basic/box.js +6 -0
- package/dist/icons/basic/briefcase.js +6 -0
- package/dist/icons/basic/browse_activity.js +6 -0
- package/dist/icons/basic/browser.js +6 -0
- package/dist/icons/basic/browser_slash.js +6 -0
- package/dist/icons/basic/calculator.js +6 -0
- package/dist/icons/basic/camera.js +6 -0
- package/dist/icons/basic/camera_add.js +6 -0
- package/dist/icons/basic/camera_slash.js +6 -0
- package/dist/icons/basic/checkmark.js +6 -0
- package/dist/icons/basic/checkmark_circle.js +8 -0
- package/dist/icons/basic/checkmark_filled.js +6 -0
- package/dist/icons/basic/checkmarks.js +6 -0
- package/dist/icons/basic/circle.js +6 -0
- package/dist/icons/basic/circle_slash.js +8 -0
- package/dist/icons/basic/clear_text_style.js +6 -0
- package/dist/icons/basic/close.js +6 -0
- package/dist/icons/basic/close_circle.js +6 -0
- package/dist/icons/basic/close_filled.js +6 -0
- package/dist/icons/basic/copy.js +6 -0
- package/dist/icons/basic/delete.js +6 -0
- package/dist/icons/basic/detail.js +6 -0
- package/dist/icons/basic/dot.js +6 -0
- package/dist/icons/basic/download.js +6 -0
- package/dist/icons/basic/download_arrow.js +6 -0
- package/dist/icons/basic/droplet.js +8 -0
- package/dist/icons/basic/ellipsis_horizontal.js +6 -0
- package/dist/icons/basic/ellipsis_horizontal_circle.js +6 -0
- package/dist/icons/basic/ellipsis_vertical.js +6 -0
- package/dist/icons/basic/ellipsis_vertical_circle.js +6 -0
- package/dist/icons/basic/eye.js +6 -0
- package/dist/icons/basic/eye_slash.js +6 -0
- package/dist/icons/basic/fingerprint.js +6 -0
- package/dist/icons/basic/flag.js +6 -0
- package/dist/icons/basic/flag_wave.js +6 -0
- package/dist/icons/basic/flag_wave_filled.js +6 -0
- package/dist/icons/basic/flame.js +6 -0
- package/dist/icons/basic/gauge.js +6 -0
- package/dist/icons/basic/glasses.js +6 -0
- package/dist/icons/basic/graduation_cap.js +6 -0
- package/dist/icons/basic/hashmark.js +6 -0
- package/dist/icons/basic/heart.js +6 -0
- package/dist/icons/basic/heart_slash.js +6 -0
- package/dist/icons/basic/highlighter.js +6 -0
- package/dist/icons/basic/home.js +6 -0
- package/dist/icons/basic/image.js +6 -0
- package/dist/icons/basic/inbox.js +6 -0
- package/dist/icons/basic/index.js +128 -0
- package/dist/icons/basic/italic.js +6 -0
- package/dist/icons/basic/layers.js +6 -0
- package/dist/icons/basic/lightening.js +6 -0
- package/dist/icons/basic/lightening_slash.js +6 -0
- package/dist/icons/basic/link.js +6 -0
- package/dist/icons/basic/link_slash.js +6 -0
- package/dist/icons/basic/loudspeaker.js +6 -0
- package/dist/icons/basic/maximize.js +6 -0
- package/dist/icons/basic/menu.js +6 -0
- package/dist/icons/basic/menu_circle.js +6 -0
- package/dist/icons/basic/menu_dots.js +6 -0
- package/dist/icons/basic/microphone_slash.js +6 -0
- package/dist/icons/basic/minimize.js +6 -0
- package/dist/icons/basic/minus.js +6 -0
- package/dist/icons/basic/minus_circle.js +6 -0
- package/dist/icons/basic/move_item.js +6 -0
- package/dist/icons/basic/new.js +6 -0
- package/dist/icons/basic/newspaper.js +6 -0
- package/dist/icons/basic/note_pad.js +7 -0
- package/dist/icons/basic/options.js +6 -0
- package/dist/icons/basic/paint_brush.js +6 -0
- package/dist/icons/basic/paperclip.js +6 -0
- package/dist/icons/basic/paperclip_slash.js +6 -0
- package/dist/icons/basic/pencil.js +6 -0
- package/dist/icons/basic/pencil_pad.js +6 -0
- package/dist/icons/basic/plus.js +6 -0
- package/dist/icons/basic/plus_circle.js +6 -0
- package/dist/icons/basic/presentation.js +6 -0
- package/dist/icons/basic/printer.js +6 -0
- package/dist/icons/basic/profile.js +6 -0
- package/dist/icons/basic/pulse.js +6 -0
- package/dist/icons/basic/qr_code.js +6 -0
- package/dist/icons/basic/resize.js +8 -0
- package/dist/icons/basic/scan.js +6 -0
- package/dist/icons/basic/scissors.js +6 -0
- package/dist/icons/basic/screenshot.js +6 -0
- package/dist/icons/basic/search.js +6 -0
- package/dist/icons/basic/select_item.js +7 -0
- package/dist/icons/basic/settings.js +6 -0
- package/dist/icons/basic/share.js +6 -0
- package/dist/icons/basic/share_external.js +6 -0
- package/dist/icons/basic/square.js +6 -0
- package/dist/icons/basic/star.js +6 -0
- package/dist/icons/basic/star_circle.js +6 -0
- package/dist/icons/basic/star_filled.js +6 -0
- package/dist/icons/basic/star_filled_half.js +6 -0
- package/dist/icons/basic/star_slash.js +6 -0
- package/dist/icons/basic/sticker.js +6 -0
- package/dist/icons/basic/strikethrough.js +6 -0
- package/dist/icons/basic/subtask.js +7 -0
- package/dist/icons/basic/tax.js +9 -0
- package/dist/icons/basic/text_bg_color.js +6 -0
- package/dist/icons/basic/text_color.js +6 -0
- package/dist/icons/basic/textbox.js +6 -0
- package/dist/icons/basic/thumbs_down.js +6 -0
- package/dist/icons/basic/thumbs_up.js +6 -0
- package/dist/icons/basic/thumbs_up_filled.js +6 -0
- package/dist/icons/basic/toggle_left.js +6 -0
- package/dist/icons/basic/toggle_right.js +6 -0
- package/dist/icons/basic/translate.js +6 -0
- package/dist/icons/basic/trash.js +6 -0
- package/dist/icons/basic/trash_slash.js +6 -0
- package/dist/icons/basic/underline.js +6 -0
- package/dist/icons/basic/upload.js +6 -0
- package/dist/icons/basic/video.js +6 -0
- package/dist/icons/basic/video_add.js +7 -0
- package/dist/icons/basic/video_slash.js +6 -0
- package/dist/icons/basic/zoom_in.js +6 -0
- package/dist/icons/basic/zoom_out.js +6 -0
- package/dist/icons/data/bar_chart.js +6 -0
- package/dist/icons/data/bar_chart_downward.js +6 -0
- package/dist/icons/data/bar_chart_downward_outline.js +6 -0
- package/dist/icons/data/bar_chart_upward.js +6 -0
- package/dist/icons/data/bar_chart_upward_outline.js +6 -0
- package/dist/icons/data/candlestick_chart.js +6 -0
- package/dist/icons/data/four_circles.js +6 -0
- package/dist/icons/data/index.js +20 -0
- package/dist/icons/data/legend_toggle.js +6 -0
- package/dist/icons/data/line_chart.js +6 -0
- package/dist/icons/data/line_chart_area.js +6 -0
- package/dist/icons/data/line_chart_area_shaded.js +6 -0
- package/dist/icons/data/line_chart_double.js +6 -0
- package/dist/icons/data/line_chart_downward.js +6 -0
- package/dist/icons/data/line_chart_node.js +6 -0
- package/dist/icons/data/line_chart_outline.js +6 -0
- package/dist/icons/data/line_chart_search.js +6 -0
- package/dist/icons/data/line_chart_stars.js +6 -0
- package/dist/icons/data/line_chart_upward.js +6 -0
- package/dist/icons/data/pie_chart.js +7 -0
- package/dist/icons/data/tree.js +6 -0
- package/dist/icons/email/index.js +8 -0
- package/dist/icons/email/mail.js +6 -0
- package/dist/icons/email/mail_check.js +6 -0
- package/dist/icons/email/mail_minus.js +6 -0
- package/dist/icons/email/mail_send.js +6 -0
- package/dist/icons/email/send.js +6 -0
- package/dist/icons/email/send_close.js +6 -0
- package/dist/icons/email/send_schedule.js +6 -0
- package/dist/icons/email/send_text.js +6 -0
- package/dist/icons/file/clipboard.js +6 -0
- package/dist/icons/file/clipboard_check.js +6 -0
- package/dist/icons/file/clipboard_close.js +6 -0
- package/dist/icons/file/clipboard_minus.js +6 -0
- package/dist/icons/file/clipboard_plus.js +6 -0
- package/dist/icons/file/clipboard_text.js +6 -0
- package/dist/icons/file/file.js +6 -0
- package/dist/icons/file/file_add.js +6 -0
- package/dist/icons/file/file_check.js +6 -0
- package/dist/icons/file/file_close.js +6 -0
- package/dist/icons/file/file_code.js +6 -0
- package/dist/icons/file/file_download.js +6 -0
- package/dist/icons/file/file_draft.js +6 -0
- package/dist/icons/file/file_minus.js +6 -0
- package/dist/icons/file/file_plus.js +6 -0
- package/dist/icons/file/file_scan.js +6 -0
- package/dist/icons/file/file_shred.js +6 -0
- package/dist/icons/file/file_text.js +6 -0
- package/dist/icons/file/file_upload.js +6 -0
- package/dist/icons/file/folder.js +6 -0
- package/dist/icons/file/folder_add.js +6 -0
- package/dist/icons/file/folder_arrow.js +6 -0
- package/dist/icons/file/folder_check.js +6 -0
- package/dist/icons/file/folder_close.js +6 -0
- package/dist/icons/file/folder_cloud.js +6 -0
- package/dist/icons/file/folder_minus.js +6 -0
- package/dist/icons/file/folder_music.js +6 -0
- package/dist/icons/file/folder_open.js +6 -0
- package/dist/icons/file/folder_plus.js +6 -0
- package/dist/icons/file/folder_zip.js +6 -0
- package/dist/icons/file/index.js +34 -0
- package/dist/icons/file/note.js +6 -0
- package/dist/icons/file/note_text.js +6 -0
- package/dist/icons/file/pdf.js +6 -0
- package/dist/icons/file/photo.js +6 -0
- package/dist/icons/finance/bitcoin.js +6 -0
- package/dist/icons/finance/credit_card.js +6 -0
- package/dist/icons/finance/credit_card_add.js +6 -0
- package/dist/icons/finance/credit_card_face.js +6 -0
- package/dist/icons/finance/credit_card_outcome.js +6 -0
- package/dist/icons/finance/credit_card_scan.js +6 -0
- package/dist/icons/finance/credit_card_share.js +6 -0
- package/dist/icons/finance/credit_card_slash.js +6 -0
- package/dist/icons/finance/currency_exchange.js +6 -0
- package/dist/icons/finance/dollar.js +6 -0
- package/dist/icons/finance/ethereum.js +6 -0
- package/dist/icons/finance/index.js +14 -0
- package/dist/icons/finance/paypass.js +6 -0
- package/dist/icons/finance/strongbox.js +6 -0
- package/dist/icons/finance/wallet.js +6 -0
- package/dist/icons/index.js +21 -0
- package/dist/icons/layout/block_align_bottom.js +6 -0
- package/dist/icons/layout/block_align_center.js +6 -0
- package/dist/icons/layout/block_align_left.js +6 -0
- package/dist/icons/layout/block_align_middle.js +6 -0
- package/dist/icons/layout/block_align_right.js +6 -0
- package/dist/icons/layout/block_align_top.js +6 -0
- package/dist/icons/layout/block_horizontal.js +6 -0
- package/dist/icons/layout/block_vertical.js +6 -0
- package/dist/icons/layout/edit_shape.js +6 -0
- package/dist/icons/layout/elements.js +6 -0
- package/dist/icons/layout/elements_add.js +6 -0
- package/dist/icons/layout/elements_filled.js +6 -0
- package/dist/icons/layout/elements_masonry.js +6 -0
- package/dist/icons/layout/frame.js +6 -0
- package/dist/icons/layout/frame_stack.js +6 -0
- package/dist/icons/layout/grid.js +6 -0
- package/dist/icons/layout/grid_column_three.js +6 -0
- package/dist/icons/layout/grid_column_two.js +6 -0
- package/dist/icons/layout/grid_dynamic.js +6 -0
- package/dist/icons/layout/grid_frame.js +6 -0
- package/dist/icons/layout/grid_row_three.js +6 -0
- package/dist/icons/layout/grid_row_two.js +6 -0
- package/dist/icons/layout/grid_six.js +6 -0
- package/dist/icons/layout/grid_small.js +6 -0
- package/dist/icons/layout/iframe.js +6 -0
- package/dist/icons/layout/index.js +44 -0
- package/dist/icons/layout/kanban.js +6 -0
- package/dist/icons/layout/layout.js +6 -0
- package/dist/icons/layout/list.js +6 -0
- package/dist/icons/layout/list_filled.js +11 -0
- package/dist/icons/layout/padding.js +6 -0
- package/dist/icons/layout/page_break.js +6 -0
- package/dist/icons/layout/rotate_left.js +6 -0
- package/dist/icons/layout/rotate_right.js +6 -0
- package/dist/icons/layout/ruler.js +6 -0
- package/dist/icons/layout/segment.js +6 -0
- package/dist/icons/layout/select_area.js +6 -0
- package/dist/icons/layout/select_boundary.js +6 -0
- package/dist/icons/layout/sidebar_left.js +6 -0
- package/dist/icons/layout/sidebar_right.js +6 -0
- package/dist/icons/layout/slides.js +6 -0
- package/dist/icons/layout/slides_horizontal.js +6 -0
- package/dist/icons/layout/slides_vertical.js +11 -0
- package/dist/icons/layout/stack.js +6 -0
- package/dist/icons/layout/text.js +6 -0
- package/dist/icons/maps/atlas.js +6 -0
- package/dist/icons/maps/compass.js +6 -0
- package/dist/icons/maps/direction.js +6 -0
- package/dist/icons/maps/direction_angled.js +6 -0
- package/dist/icons/maps/globe.js +6 -0
- package/dist/icons/maps/globe_slash.js +6 -0
- package/dist/icons/maps/index.js +22 -0
- package/dist/icons/maps/location.js +6 -0
- package/dist/icons/maps/location_slash.js +6 -0
- package/dist/icons/maps/map.js +6 -0
- package/dist/icons/maps/marker.js +6 -0
- package/dist/icons/maps/panorama.js +6 -0
- package/dist/icons/maps/pin.js +6 -0
- package/dist/icons/maps/pin_arrow.js +6 -0
- package/dist/icons/maps/pin_location.js +6 -0
- package/dist/icons/maps/pin_plus.js +6 -0
- package/dist/icons/maps/pin_question.js +6 -0
- package/dist/icons/maps/pin_slash.js +6 -0
- package/dist/icons/maps/push_pin.js +6 -0
- package/dist/icons/maps/push_pin_filled.js +6 -0
- package/dist/icons/maps/push_pin_slash.js +6 -0
- package/dist/icons/maps/radar.js +6 -0
- package/dist/icons/maps/route.js +6 -0
- package/dist/icons/message/bubble.js +6 -0
- package/dist/icons/message/bubble_question.js +6 -0
- package/dist/icons/message/comment.js +6 -0
- package/dist/icons/message/comment_add.js +6 -0
- package/dist/icons/message/comment_check.js +6 -0
- package/dist/icons/message/comment_close.js +6 -0
- package/dist/icons/message/comment_minus.js +6 -0
- package/dist/icons/message/comment_text.js +6 -0
- package/dist/icons/message/index.js +8 -0
- package/dist/icons/misc/advertisement.js +6 -0
- package/dist/icons/misc/atom.js +6 -0
- package/dist/icons/misc/bone.js +6 -0
- package/dist/icons/misc/brightness_high.js +6 -0
- package/dist/icons/misc/brightness_low.js +6 -0
- package/dist/icons/misc/contrast.js +6 -0
- package/dist/icons/misc/crosshairs.js +6 -0
- package/dist/icons/misc/crown.js +6 -0
- package/dist/icons/misc/footprint.js +6 -0
- package/dist/icons/misc/form.js +6 -0
- package/dist/icons/misc/funnel.js +6 -0
- package/dist/icons/misc/index.js +25 -0
- package/dist/icons/misc/infinite.js +6 -0
- package/dist/icons/misc/insert_button.js +6 -0
- package/dist/icons/misc/light_bulb.js +6 -0
- package/dist/icons/misc/moon.js +6 -0
- package/dist/icons/misc/nut.js +6 -0
- package/dist/icons/misc/planet.js +6 -0
- package/dist/icons/misc/plus_thick.js +6 -0
- package/dist/icons/misc/pocket.js +6 -0
- package/dist/icons/misc/rocket.js +6 -0
- package/dist/icons/misc/soup.js +10 -0
- package/dist/icons/misc/sun.js +6 -0
- package/dist/icons/misc/toy_horse.js +6 -0
- package/dist/icons/misc/trophy.js +6 -0
- package/dist/icons/misc/watercloset.js +6 -0
- package/dist/icons/notifications/alert_circle.js +6 -0
- package/dist/icons/notifications/alert_octogon.js +6 -0
- package/dist/icons/notifications/alert_triangle.js +6 -0
- package/dist/icons/notifications/app_notification.js +6 -0
- package/dist/icons/notifications/bell.js +6 -0
- package/dist/icons/notifications/bell_alert.js +6 -0
- package/dist/icons/notifications/bell_checkmark.js +6 -0
- package/dist/icons/notifications/bell_minus.js +6 -0
- package/dist/icons/notifications/bell_plus.js +6 -0
- package/dist/icons/notifications/bell_ring.js +8 -0
- package/dist/icons/notifications/bell_slash.js +6 -0
- package/dist/icons/notifications/close_octogon.js +6 -0
- package/dist/icons/notifications/index.js +14 -0
- package/dist/icons/notifications/information.js +6 -0
- package/dist/icons/notifications/minus_octogon.js +6 -0
- package/dist/icons/notifications/question_circle.js +6 -0
- package/dist/icons/people/group.js +6 -0
- package/dist/icons/people/group_add.js +6 -0
- package/dist/icons/people/group_remove.js +6 -0
- package/dist/icons/people/groups.js +6 -0
- package/dist/icons/people/index.js +9 -0
- package/dist/icons/people/person.js +6 -0
- package/dist/icons/people/person_add.js +6 -0
- package/dist/icons/people/person_checkmark.js +6 -0
- package/dist/icons/people/person_circle.js +8 -0
- package/dist/icons/people/person_remove.js +6 -0
- package/dist/icons/phone/index.js +14 -0
- package/dist/icons/phone/keypad.js +6 -0
- package/dist/icons/phone/phone.js +6 -0
- package/dist/icons/phone/phone_add.js +6 -0
- package/dist/icons/phone/phone_calling.js +6 -0
- package/dist/icons/phone/phone_check.js +6 -0
- package/dist/icons/phone/phone_close.js +6 -0
- package/dist/icons/phone/phone_decline.js +6 -0
- package/dist/icons/phone/phone_end.js +6 -0
- package/dist/icons/phone/phone_forwarded.js +6 -0
- package/dist/icons/phone/phone_hash.js +6 -0
- package/dist/icons/phone/phone_incoming.js +6 -0
- package/dist/icons/phone/phone_missed.js +6 -0
- package/dist/icons/phone/phone_outgoing.js +6 -0
- package/dist/icons/phone/phone_pause.js +6 -0
- package/dist/icons/phone/phone_slash.js +6 -0
- package/dist/icons/phone/voicemail.js +6 -0
- package/dist/icons/security/index.js +11 -0
- package/dist/icons/security/key.js +6 -0
- package/dist/icons/security/key_slash.js +6 -0
- package/dist/icons/security/lock.js +6 -0
- package/dist/icons/security/lock_circle.js +6 -0
- package/dist/icons/security/lock_open.js +6 -0
- package/dist/icons/security/lock_slash.js +6 -0
- package/dist/icons/security/shield.js +6 -0
- package/dist/icons/security/shield_checkmark.js +6 -0
- package/dist/icons/security/shield_lock.js +6 -0
- package/dist/icons/security/shield_slash.js +6 -0
- package/dist/icons/security/verified.js +6 -0
- package/dist/icons/shopping/basket.js +6 -0
- package/dist/icons/shopping/cart.js +6 -0
- package/dist/icons/shopping/coupon.js +6 -0
- package/dist/icons/shopping/coupon_cut.js +6 -0
- package/dist/icons/shopping/delivery.js +6 -0
- package/dist/icons/shopping/discount.js +6 -0
- package/dist/icons/shopping/gift.js +6 -0
- package/dist/icons/shopping/gift_bag.js +6 -0
- package/dist/icons/shopping/index.js +14 -0
- package/dist/icons/shopping/inventory.js +6 -0
- package/dist/icons/shopping/point_of_sale.js +6 -0
- package/dist/icons/shopping/shirt.js +6 -0
- package/dist/icons/shopping/tag.js +6 -0
- package/dist/icons/shopping/tag_diagonal.js +6 -0
- package/dist/icons/shopping/tote.js +6 -0
- package/dist/icons/special/index.js +4 -0
- package/dist/icons/special/upload_audio.js +11 -0
- package/dist/icons/special/upload_file.js +6 -0
- package/dist/icons/special/upload_image.js +8 -0
- package/dist/icons/special/upload_video.js +9 -0
- package/dist/icons/symbols/at.js +6 -0
- package/dist/icons/symbols/cc.js +6 -0
- package/dist/icons/symbols/cmd.js +6 -0
- package/dist/icons/symbols/facebook.js +6 -0
- package/dist/icons/symbols/google.js +9 -0
- package/dist/icons/symbols/hash.js +6 -0
- package/dist/icons/symbols/index.js +9 -0
- package/dist/icons/symbols/instagram.js +18 -0
- package/dist/icons/symbols/messenger.js +12 -0
- package/dist/icons/symbols/twitter.js +6 -0
- package/dist/icons/technology/battery.js +6 -0
- package/dist/icons/technology/battery_100.js +6 -0
- package/dist/icons/technology/battery_20.js +6 -0
- package/dist/icons/technology/battery_40.js +6 -0
- package/dist/icons/technology/battery_60.js +6 -0
- package/dist/icons/technology/battery_80.js +6 -0
- package/dist/icons/technology/battery_charging.js +6 -0
- package/dist/icons/technology/battery_slash.js +6 -0
- package/dist/icons/technology/devices.js +6 -0
- package/dist/icons/technology/floppy_disk.js +6 -0
- package/dist/icons/technology/index.js +17 -0
- package/dist/icons/technology/iphone.js +6 -0
- package/dist/icons/technology/laptop.js +6 -0
- package/dist/icons/technology/mobile.js +6 -0
- package/dist/icons/technology/monitor.js +6 -0
- package/dist/icons/technology/server.js +6 -0
- package/dist/icons/technology/sim_card.js +6 -0
- package/dist/icons/technology/usb_stick.js +6 -0
- package/dist/icons/text/align_center.js +6 -0
- package/dist/icons/text/align_justified.js +6 -0
- package/dist/icons/text/align_left.js +6 -0
- package/dist/icons/text/align_right.js +6 -0
- package/dist/icons/text/indent_decrease.js +6 -0
- package/dist/icons/text/indent_increase.js +6 -0
- package/dist/icons/text/index.js +10 -0
- package/dist/icons/text/list_ordered.js +6 -0
- package/dist/icons/text/list_unordered.js +6 -0
- package/dist/icons/text/quote.js +6 -0
- package/dist/icons/text/table.js +6 -0
- package/dist/icons/time/alarm.js +6 -0
- package/dist/icons/time/alarm_checkmark.js +6 -0
- package/dist/icons/time/alarm_minus.js +6 -0
- package/dist/icons/time/alarm_plus.js +6 -0
- package/dist/icons/time/alarm_slash.js +6 -0
- package/dist/icons/time/alarm_snooze.js +6 -0
- package/dist/icons/time/calendar.js +6 -0
- package/dist/icons/time/calendar_add.js +6 -0
- package/dist/icons/time/calendar_checkmark.js +6 -0
- package/dist/icons/time/calendar_close.js +6 -0
- package/dist/icons/time/calendar_dates.js +6 -0
- package/dist/icons/time/calendar_minus.js +6 -0
- package/dist/icons/time/calendar_plus.js +6 -0
- package/dist/icons/time/calendar_scroll.js +8 -0
- package/dist/icons/time/clock.js +6 -0
- package/dist/icons/time/clock_history.js +6 -0
- package/dist/icons/time/index.js +19 -0
- package/dist/icons/time/stopwatch.js +6 -0
- package/dist/icons/time/timer.js +6 -0
- package/dist/icons/time/watch.js +6 -0
- package/dist/index.js +3 -0
- package/dist/types/attributes.js +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/date.js +98 -0
- package/dist/utils/function.js +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +5 -4
- package/src/components/editor/editor.tsx +4 -0
- package/src/components/editor/plugins/text.tsx +16 -7
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { COLORS } from 'common';
|
|
4
|
+
import { Box, H, P } from 'components';
|
|
5
|
+
// does not recognize index file in subdirectories
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import * as AudioVideoIcons from 'icons/audio_video';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import * as ArrowIcons from 'icons/arrow';
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
import * as BasicIcons from 'icons/basic';
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
import * as DataIcons from 'icons/data';
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import * as EmailIcons from 'icons/email';
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import * as FileIcons from 'icons/file';
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import * as FinanceIcons from 'icons/finance';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import * as LayoutIcons from 'icons/layout';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import * as MapIcons from 'icons/maps';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import * as MessageIcons from 'icons/message';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import * as MiscIcons from 'icons/misc';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import * as NotificationIcons from 'icons/notifications';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import * as PeopleIcons from 'icons/people';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import * as PhoneIcons from 'icons/phone';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import * as SecurityIcons from 'icons/security';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import * as ShoppingIcons from 'icons/shopping';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import * as SymbolIcons from 'icons/symbols';
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
import * as TechnologyIcons from 'icons/technology';
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import * as TextIcons from 'icons/text';
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import * as TimeIcons from 'icons/time';
|
|
46
|
+
const meta = {
|
|
47
|
+
title: 'Iconography/Icons',
|
|
48
|
+
argTypes: {
|
|
49
|
+
color: {
|
|
50
|
+
options: COLORS,
|
|
51
|
+
control: 'select',
|
|
52
|
+
},
|
|
53
|
+
size: {
|
|
54
|
+
options: [16, 20, 24],
|
|
55
|
+
control: 'select',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
args: {
|
|
59
|
+
size: 20,
|
|
60
|
+
color: 'grey-4',
|
|
61
|
+
},
|
|
62
|
+
parameters: {
|
|
63
|
+
layout: 'centered',
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
const StoryComponent = (iconSet, title) => (args) => (React.createElement(React.Fragment, null,
|
|
67
|
+
React.createElement(H.One, { "$textAlign": "center", "$semiBold": true }, title),
|
|
68
|
+
React.createElement(Box, { "$align": "center", "$gap": 32, "$flow": "wrap", "$justify": "center", "$margin": "medium-large", sx: "max-width: 850px;" }, Object.entries(iconSet).map(([name, Item], index) => (React.createElement(Box, { key: index.toString(36), "$dir": "column", "$gap": 8, "$justify": "center", "$align": "center", "$flex": 1 },
|
|
69
|
+
React.createElement(Item, { ...args }),
|
|
70
|
+
React.createElement(P, { as: "h4", "$textClampLines": 3, "$fontSize": 16, "$textAlign": "center" }, name.replaceAll(/[A-Z]/g, (match) => {
|
|
71
|
+
return ` ${match}`;
|
|
72
|
+
}))))))));
|
|
73
|
+
const BasicIconsStory = StoryComponent(BasicIcons, 'Basic Icons');
|
|
74
|
+
export const Basic = BasicIconsStory.bind({});
|
|
75
|
+
const EmailIconsStory = StoryComponent(EmailIcons, 'Email Icons');
|
|
76
|
+
export const Email = EmailIconsStory.bind({});
|
|
77
|
+
const PeopleIconsStory = StoryComponent(PeopleIcons, 'People Icons');
|
|
78
|
+
export const People = PeopleIconsStory.bind({});
|
|
79
|
+
const SecurityIconsStory = StoryComponent(SecurityIcons, 'Security Icons');
|
|
80
|
+
export const Security = SecurityIconsStory.bind({});
|
|
81
|
+
const NotificationsIconsStory = StoryComponent(NotificationIcons, 'Notification Icons');
|
|
82
|
+
export const Notifications = NotificationsIconsStory.bind({});
|
|
83
|
+
const TimeIconsStory = StoryComponent(TimeIcons, 'Time Icons');
|
|
84
|
+
export const Time = TimeIconsStory.bind({});
|
|
85
|
+
const MapIconsStory = StoryComponent(MapIcons, 'Map Icons');
|
|
86
|
+
export const Maps = MapIconsStory.bind({});
|
|
87
|
+
const SymbolIconsStory = StoryComponent(SymbolIcons, 'Symbol Icons');
|
|
88
|
+
export const Symbols = SymbolIconsStory.bind({});
|
|
89
|
+
const FinanceIconsStory = StoryComponent(FinanceIcons, 'Finance Icons');
|
|
90
|
+
export const Finance = FinanceIconsStory.bind({});
|
|
91
|
+
const MessageIconsStory = StoryComponent(MessageIcons, 'Message Icons');
|
|
92
|
+
export const Message = MessageIconsStory.bind({});
|
|
93
|
+
const LayoutStory = StoryComponent(LayoutIcons, 'Layout Icons');
|
|
94
|
+
export const Layout = LayoutStory.bind({});
|
|
95
|
+
const DataIconsStory = StoryComponent(DataIcons, 'Data Icons');
|
|
96
|
+
export const Data = DataIconsStory.bind({});
|
|
97
|
+
const FileIconsStory = StoryComponent(FileIcons, 'File Icons');
|
|
98
|
+
export const File = FileIconsStory.bind({});
|
|
99
|
+
const ArrowIconsStory = StoryComponent(ArrowIcons, 'Arrow Icons');
|
|
100
|
+
export const Arrow = ArrowIconsStory.bind({});
|
|
101
|
+
const MiscIconsStory = StoryComponent(MiscIcons, 'Misc Icons');
|
|
102
|
+
export const Misc = MiscIconsStory.bind({});
|
|
103
|
+
const TextIconsStory = StoryComponent(TextIcons, 'Text Icons');
|
|
104
|
+
export const Text = TextIconsStory.bind({});
|
|
105
|
+
const ShoppingIconsStory = StoryComponent(ShoppingIcons, 'Shopping Icons');
|
|
106
|
+
export const Shopping = ShoppingIconsStory.bind({});
|
|
107
|
+
const TechnologyIconsStory = StoryComponent(TechnologyIcons, 'Technology Icons');
|
|
108
|
+
export const Technology = TechnologyIconsStory.bind({});
|
|
109
|
+
const AudioVideoIconsStory = StoryComponent(AudioVideoIcons, 'Audio-Video Icons');
|
|
110
|
+
export const VideoAudio = AudioVideoIconsStory.bind({});
|
|
111
|
+
const PhoneIconsStory = StoryComponent(PhoneIcons, 'Phone Icons');
|
|
112
|
+
export const Phone = PhoneIconsStory.bind({});
|
|
113
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icon } from './icon';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Styles } from 'common';
|
|
4
|
+
import { Checkmark } from 'icons';
|
|
5
|
+
export const Checkbox = ({ disabled, selected, ...rest }) => {
|
|
6
|
+
return (React.createElement(Box, { "$align": "center", "$disabled": !!disabled, "$display": "flex", "$justify": "center", "$selected": selected, ...rest }, selected && React.createElement(Checkmark, { color: "white" })));
|
|
7
|
+
};
|
|
8
|
+
const Box = styled.div `
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 20px;
|
|
11
|
+
height: 20px;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
|
|
16
|
+
${({ $selected }) => $selected
|
|
17
|
+
? `background-color: var(--color-primary-blue-2);
|
|
18
|
+
border: 1px solid var(--color-primary-blue-2);`
|
|
19
|
+
: 'border: 1px solid var(--color-grey-8);'}
|
|
20
|
+
${Styles.flex}
|
|
21
|
+
`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Checkbox } from './checkbox';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Input/Checkbox',
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'centered',
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
// eslint-disable-next-line
|
|
10
|
+
const Story = ({ selected: _, ...args }) => {
|
|
11
|
+
const [selected, setSelected] = React.useState(false);
|
|
12
|
+
const handleSelected = () => setSelected((prev) => !prev);
|
|
13
|
+
return React.createElement(Checkbox, { selected: selected, onClick: handleSelected, ...args });
|
|
14
|
+
};
|
|
15
|
+
export const Default = Story.bind({});
|
|
16
|
+
Default.args = {
|
|
17
|
+
disabled: false,
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox } from './checkbox';
|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { MONTHS, WEEKDAYS } from 'common';
|
|
4
|
+
import { Button, P } from 'components';
|
|
5
|
+
import { ChevronLeft, ChevronRight, ArrowRight } from 'icons';
|
|
6
|
+
import { buildCalendar, getMonthDays, zeroPad } from 'utils';
|
|
7
|
+
export const DatePicker = ({ endDate, label, onSelect: parentOnSelect, startDate, }) => {
|
|
8
|
+
const today = new Date();
|
|
9
|
+
today.setHours(0);
|
|
10
|
+
today.setMinutes(0);
|
|
11
|
+
today.setSeconds(0);
|
|
12
|
+
today.setMilliseconds(0);
|
|
13
|
+
const firstOfMonth = new Date(today);
|
|
14
|
+
firstOfMonth.setDate(1);
|
|
15
|
+
const thisMonth = firstOfMonth.getMonth() + 1;
|
|
16
|
+
const thisYear = firstOfMonth.getFullYear();
|
|
17
|
+
const isSingleDate = !endDate;
|
|
18
|
+
const pickerRef = React.useRef(null);
|
|
19
|
+
const [show, setShow] = React.useState(false);
|
|
20
|
+
const [displayDate, setDisplayDate] = React.useState(() => endDate?.toDateString() ?? startDate.toDateString());
|
|
21
|
+
const [componentStartDate, setComponentStartDate] = React.useState(() => startDate.toDateString());
|
|
22
|
+
const [componentEndDate, setComponentEndDate] = React.useState(() => endDate?.toDateString() ?? startDate.toDateString());
|
|
23
|
+
const [firstClick, setFirstClick] = React.useState(true);
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
setComponentStartDate(startDate.toDateString());
|
|
26
|
+
}, [startDate]);
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
setComponentEndDate((endDate ?? new Date())?.toDateString());
|
|
29
|
+
}, [endDate]);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
if (!isSingleDate &&
|
|
32
|
+
new Date(componentStartDate).getTime() >
|
|
33
|
+
new Date(componentEndDate).getTime()) {
|
|
34
|
+
const tempStart = componentStartDate;
|
|
35
|
+
setComponentStartDate(componentEndDate);
|
|
36
|
+
setComponentEndDate(tempStart);
|
|
37
|
+
}
|
|
38
|
+
}, [componentEndDate, componentStartDate]);
|
|
39
|
+
const handleShow = () => setShow((prev) => !prev);
|
|
40
|
+
const handleBlur = (event) => {
|
|
41
|
+
if (pickerRef?.current &&
|
|
42
|
+
!pickerRef?.current?.contains(event.relatedTarget)) {
|
|
43
|
+
setShow(false);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const handlePreviousMonth = () => {
|
|
47
|
+
setDisplayDate((prev) => {
|
|
48
|
+
const newDate = new Date(prev);
|
|
49
|
+
newDate.setMonth(newDate.getMonth() - 1);
|
|
50
|
+
return newDate.toDateString();
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const handleNextMonth = () => {
|
|
54
|
+
setDisplayDate((prev) => {
|
|
55
|
+
const newDate = new Date(prev);
|
|
56
|
+
newDate.setMonth(newDate.getMonth() + 1);
|
|
57
|
+
return newDate.toDateString();
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const handleFirstClick = () => !isSingleDate && setFirstClick((prev) => !prev);
|
|
61
|
+
const onSelect = ({ type, value, }) => {
|
|
62
|
+
if (type === 'start') {
|
|
63
|
+
setComponentStartDate(value.toDateString());
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
setComponentEndDate(value.toDateString());
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const handleClick = (event) => {
|
|
70
|
+
handleFirstClick();
|
|
71
|
+
const target = event.target;
|
|
72
|
+
const type = firstClick ? 'start' : 'end';
|
|
73
|
+
const day = target.getAttribute('data-day');
|
|
74
|
+
const month = target.getAttribute('data-month');
|
|
75
|
+
const year = target.getAttribute('data-year');
|
|
76
|
+
onSelect({ type, value: new Date(`${month}-${day}-${year}`) });
|
|
77
|
+
};
|
|
78
|
+
const handleApply = () => {
|
|
79
|
+
parentOnSelect({ type: 'start', value: new Date(componentStartDate) });
|
|
80
|
+
!isSingleDate &&
|
|
81
|
+
parentOnSelect({ type: 'end', value: new Date(componentEndDate) });
|
|
82
|
+
!isSingleDate && setFirstClick(true);
|
|
83
|
+
setShow(false);
|
|
84
|
+
};
|
|
85
|
+
const handleCancel = () => {
|
|
86
|
+
setComponentStartDate(startDate.toDateString());
|
|
87
|
+
setComponentEndDate((endDate ?? new Date())?.toDateString());
|
|
88
|
+
setFirstClick(true);
|
|
89
|
+
setShow(false);
|
|
90
|
+
};
|
|
91
|
+
const handleSetToday = () => {
|
|
92
|
+
onSelect({ type: 'start', value: today });
|
|
93
|
+
onSelect({ type: 'end', value: today });
|
|
94
|
+
setDisplayDate(today.toDateString());
|
|
95
|
+
setFirstClick(true);
|
|
96
|
+
};
|
|
97
|
+
const handleSetYesterday = () => {
|
|
98
|
+
const yesterday = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 1);
|
|
99
|
+
onSelect({ type: 'start', value: yesterday });
|
|
100
|
+
onSelect({ type: 'end', value: yesterday });
|
|
101
|
+
setDisplayDate(today.toDateString());
|
|
102
|
+
setFirstClick(true);
|
|
103
|
+
};
|
|
104
|
+
const handleLastSevenDays = () => {
|
|
105
|
+
const lastWeekDate = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 7);
|
|
106
|
+
onSelect({ type: 'start', value: lastWeekDate });
|
|
107
|
+
onSelect({ type: 'end', value: today });
|
|
108
|
+
setDisplayDate(today.toDateString());
|
|
109
|
+
setFirstClick(true);
|
|
110
|
+
};
|
|
111
|
+
const handleLastThirtyDays = () => {
|
|
112
|
+
const lastMonthDate = new Date(today);
|
|
113
|
+
lastMonthDate.setMonth(thisMonth - 2);
|
|
114
|
+
onSelect({ type: 'start', value: lastMonthDate });
|
|
115
|
+
onSelect({ type: 'end', value: today });
|
|
116
|
+
setDisplayDate(today.toDateString());
|
|
117
|
+
setFirstClick(true);
|
|
118
|
+
};
|
|
119
|
+
const handleThisMonth = () => {
|
|
120
|
+
onSelect({ type: 'start', value: firstOfMonth });
|
|
121
|
+
onSelect({
|
|
122
|
+
type: 'end',
|
|
123
|
+
value: new Date(firstOfMonth.getFullYear(), firstOfMonth.getMonth(), getMonthDays()),
|
|
124
|
+
});
|
|
125
|
+
setDisplayDate(today.toDateString());
|
|
126
|
+
setFirstClick(true);
|
|
127
|
+
};
|
|
128
|
+
const handleLastMonth = () => {
|
|
129
|
+
const lastMonthDate = new Date(firstOfMonth);
|
|
130
|
+
lastMonthDate.setMonth(thisMonth - 2);
|
|
131
|
+
onSelect({ type: 'start', value: lastMonthDate });
|
|
132
|
+
onSelect({
|
|
133
|
+
type: 'end',
|
|
134
|
+
value: new Date(lastMonthDate.getFullYear(), lastMonthDate.getMonth(), getMonthDays(lastMonthDate.getMonth() + 1)),
|
|
135
|
+
});
|
|
136
|
+
setDisplayDate(lastMonthDate.toDateString());
|
|
137
|
+
setFirstClick(true);
|
|
138
|
+
};
|
|
139
|
+
const handleLastYear = () => {
|
|
140
|
+
const lastYearDate = new Date(today);
|
|
141
|
+
lastYearDate.setFullYear(thisYear - 1);
|
|
142
|
+
onSelect({ type: 'start', value: lastYearDate });
|
|
143
|
+
onSelect({ type: 'end', value: today });
|
|
144
|
+
setDisplayDate(today.toDateString());
|
|
145
|
+
setFirstClick(true);
|
|
146
|
+
};
|
|
147
|
+
const calendar = buildCalendar(new Date(displayDate).getMonth() + 1, new Date(displayDate).getFullYear());
|
|
148
|
+
const minRange = new Date(componentStartDate).getTime();
|
|
149
|
+
const maxRange = new Date(componentEndDate).getTime();
|
|
150
|
+
const displayDateObj = new Date(displayDate);
|
|
151
|
+
const displayFirstOfMonth = new Date(displayDateObj);
|
|
152
|
+
displayFirstOfMonth.setDate(1);
|
|
153
|
+
const displayLastOfMonth = new Date(displayDateObj);
|
|
154
|
+
displayLastOfMonth.setDate(getMonthDays(displayDateObj.getMonth() + 1));
|
|
155
|
+
return (React.createElement(Wrapper, { onBlurCapture: handleBlur, ref: pickerRef, tabIndex: 0 },
|
|
156
|
+
React.createElement(Trigger, { onClick: handleShow },
|
|
157
|
+
label && (React.createElement(React.Fragment, null,
|
|
158
|
+
label,
|
|
159
|
+
' | ')),
|
|
160
|
+
React.createElement("span", null, startDate.toLocaleDateString('en-US').replaceAll('/', '-')),
|
|
161
|
+
!!endDate && startDate.toDateString() !== endDate?.toDateString() && (React.createElement(ArrowRight, { sx: "padding: 0px 8px; margin-bottom: -2px;" })),
|
|
162
|
+
startDate.toDateString() !== endDate?.toDateString() && (React.createElement("span", null, endDate?.toLocaleDateString('en-US').replaceAll('/', '-')))),
|
|
163
|
+
show && (React.createElement(DateSelector, null,
|
|
164
|
+
React.createElement(InnerWrapper, null,
|
|
165
|
+
!!endDate && (React.createElement(Left, null,
|
|
166
|
+
React.createElement(Button, { size: "small", type: "text", onClick: handleSetToday }, "Today"),
|
|
167
|
+
React.createElement(Button, { size: "small", type: "text", onClick: handleSetYesterday }, "Yesterday"),
|
|
168
|
+
React.createElement(Button, { size: "small", type: "text", onClick: handleLastSevenDays }, "Last 7 days"),
|
|
169
|
+
React.createElement(Button, { size: "small", type: "text", onClick: handleLastThirtyDays }, "Last 30 days"),
|
|
170
|
+
React.createElement(Button, { size: "small", type: "text", onClick: handleThisMonth }, "This month"),
|
|
171
|
+
React.createElement(Button, { size: "small", type: "text", onClick: handleLastMonth }, "Last month"),
|
|
172
|
+
React.createElement(Button, { size: "small", type: "text", onClick: handleLastYear }, "Last Year"))),
|
|
173
|
+
React.createElement("div", null,
|
|
174
|
+
React.createElement(MonthBar, null,
|
|
175
|
+
React.createElement(Arrow, { onClick: handlePreviousMonth },
|
|
176
|
+
React.createElement(ChevronLeft, { size: 24 })),
|
|
177
|
+
React.createElement(P, null, `${Object.values(MONTHS)[Math.max(0, Math.min(new Date(displayDate).getMonth(), 11))]} ${new Date(displayDate).getFullYear()}`),
|
|
178
|
+
React.createElement(Arrow, { onClick: handleNextMonth },
|
|
179
|
+
React.createElement(ChevronRight, { size: 24 }))),
|
|
180
|
+
React.createElement(WeekdayWrapper, null, Object.values(WEEKDAYS).map((day) => (React.createElement(P, { key: day }, day)))),
|
|
181
|
+
React.createElement(Calendar, null, calendar.map((week, index) => {
|
|
182
|
+
return (React.createElement(Week, { key: 'week-' + index.toString(36) }, week.map((day, dayIndex) => {
|
|
183
|
+
const isCurrMonth = day[1] !==
|
|
184
|
+
zeroPad(new Date(displayDate).getMonth() + 1, 2);
|
|
185
|
+
const dateObj = new Date(`${day[1]}-${day[2]}-${day[0]}`);
|
|
186
|
+
const isToday = Math.abs(dateObj.getTime() - today.getTime()) < 0.5;
|
|
187
|
+
const time = dateObj.toDateString();
|
|
188
|
+
const isStartDate = time === componentStartDate;
|
|
189
|
+
const isEndDate = !isSingleDate && time === componentEndDate;
|
|
190
|
+
const between = !isSingleDate &&
|
|
191
|
+
minRange <= dateObj.getTime() &&
|
|
192
|
+
dateObj.getTime() <= maxRange &&
|
|
193
|
+
!isStartDate &&
|
|
194
|
+
!isEndDate;
|
|
195
|
+
const isFirstOfMonth = displayFirstOfMonth.toDateString() === time;
|
|
196
|
+
const isLastOfMonth = displayLastOfMonth.toDateString() === time;
|
|
197
|
+
return (React.createElement(Day, { className: `${isToday ? 'today' : ''}${isCurrMonth ? ' not-current' : ''}${isStartDate ? ' start-date' : ''}${isEndDate ? ' end-date' : ''}${between ? ' between' : ''}${isFirstOfMonth ? ' first-of-month' : ''}${isLastOfMonth ? ' last-of-month' : ''}`.trim(), "data-day": day[2], "data-month": day[1], "data-year": day[0], key: 'day-' + dayIndex.toString(36), onClick: handleClick }, `${day[2]}`.startsWith('0')
|
|
198
|
+
? `${day[2]}`[1]
|
|
199
|
+
: day[2]));
|
|
200
|
+
})));
|
|
201
|
+
})),
|
|
202
|
+
React.createElement(BottomWrapper, null,
|
|
203
|
+
React.createElement(Button, { onClick: handleCancel, size: "small", sx: "width: 80px;", type: "outlined" }, "Cancel"),
|
|
204
|
+
React.createElement(Button, { onClick: handleApply, size: "small", sx: "width: 80px;" }, "Apply"))))))));
|
|
205
|
+
};
|
|
206
|
+
const Wrapper = styled.div `
|
|
207
|
+
position: relative;
|
|
208
|
+
width: fit-content;
|
|
209
|
+
font-family: Inter;
|
|
210
|
+
`;
|
|
211
|
+
const Trigger = styled.button `
|
|
212
|
+
padding: 12px 24px;
|
|
213
|
+
background-color: #ffffff;
|
|
214
|
+
border: 1px solid var(--color-grey-6);
|
|
215
|
+
border-radius: 24px;
|
|
216
|
+
color: var(--color-grey-3);
|
|
217
|
+
outline: none;
|
|
218
|
+
line-height: 100%;
|
|
219
|
+
font-family: Inter;
|
|
220
|
+
font-size: 14px;
|
|
221
|
+
line-height: 20px;
|
|
222
|
+
cursor: pointer;
|
|
223
|
+
|
|
224
|
+
span {
|
|
225
|
+
line-height: 20px;
|
|
226
|
+
color: var(--color-blue-5);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&:hover {
|
|
230
|
+
background-color: var(--color-blue-5);
|
|
231
|
+
border-color: var(--color-blue-5);
|
|
232
|
+
color: #ffffff;
|
|
233
|
+
span {
|
|
234
|
+
color: #ffffff;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&:active {
|
|
239
|
+
background-color: var(--color-blue-3);
|
|
240
|
+
border-color: var(--color-blue-3);
|
|
241
|
+
}
|
|
242
|
+
`;
|
|
243
|
+
const DateSelector = styled.div `
|
|
244
|
+
transform: translateY(26px);
|
|
245
|
+
position: absolute;
|
|
246
|
+
z-index: 5;
|
|
247
|
+
background-color: #ffffff;
|
|
248
|
+
border-radius: 25px;
|
|
249
|
+
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
|
|
250
|
+
`;
|
|
251
|
+
const InnerWrapper = styled.div `
|
|
252
|
+
display: flex;
|
|
253
|
+
gap: 31px;
|
|
254
|
+
padding: 30px;
|
|
255
|
+
position: relative;
|
|
256
|
+
border-radius: 25px;
|
|
257
|
+
|
|
258
|
+
&::before {
|
|
259
|
+
position: absolute;
|
|
260
|
+
content: '';
|
|
261
|
+
width: 24px;
|
|
262
|
+
height: 24px;
|
|
263
|
+
top: -12px;
|
|
264
|
+
left: 48px;
|
|
265
|
+
background-color: #ffffff;
|
|
266
|
+
transform: rotate(45deg);
|
|
267
|
+
box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.1);
|
|
268
|
+
}
|
|
269
|
+
`;
|
|
270
|
+
const Left = styled.div `
|
|
271
|
+
display: flex;
|
|
272
|
+
flex-flow: column nowrap;
|
|
273
|
+
gap: 24px;
|
|
274
|
+
align-items: flex-start;
|
|
275
|
+
width: max-content;
|
|
276
|
+
margin-bottom: 96px;
|
|
277
|
+
padding-right: 48px;
|
|
278
|
+
border-right: 1px solid var(--color-grey-8);
|
|
279
|
+
user-select: none;
|
|
280
|
+
|
|
281
|
+
button {
|
|
282
|
+
padding: 0px;
|
|
283
|
+
|
|
284
|
+
span {
|
|
285
|
+
font-size: 16px;
|
|
286
|
+
line-height: 24px;
|
|
287
|
+
color: var(--color-grey-5);
|
|
288
|
+
font-weight: 400;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&:hover {
|
|
292
|
+
span {
|
|
293
|
+
color: var(--color-primary-blue-2);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
`;
|
|
298
|
+
const MonthBar = styled.div `
|
|
299
|
+
display: flex;
|
|
300
|
+
justify-content: space-between;
|
|
301
|
+
align-items: center;
|
|
302
|
+
margin-bottom: 32px;
|
|
303
|
+
user-select: none;
|
|
304
|
+
`;
|
|
305
|
+
const Arrow = styled.button `
|
|
306
|
+
appearance: none;
|
|
307
|
+
border: none;
|
|
308
|
+
outline: none;
|
|
309
|
+
padding: 12px;
|
|
310
|
+
display: flex;
|
|
311
|
+
justify-content: center;
|
|
312
|
+
align-items: center;
|
|
313
|
+
border-radius: 50%;
|
|
314
|
+
cursor: pointer;
|
|
315
|
+
background-color: transparent;
|
|
316
|
+
|
|
317
|
+
&:hover {
|
|
318
|
+
background-color: var(--color-primary-blue-2);
|
|
319
|
+
border-color: #ffffff;
|
|
320
|
+
svg {
|
|
321
|
+
fill: #ffffff;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
`;
|
|
325
|
+
const WeekdayWrapper = styled.div `
|
|
326
|
+
display: flex;
|
|
327
|
+
gap: 32px;
|
|
328
|
+
user-select: none;
|
|
329
|
+
`;
|
|
330
|
+
const Calendar = styled.div `
|
|
331
|
+
display: flex;
|
|
332
|
+
flex-direction: column;
|
|
333
|
+
gap: 32px;
|
|
334
|
+
margin: 32px 0px;
|
|
335
|
+
user-select: none;
|
|
336
|
+
`;
|
|
337
|
+
const Week = styled.div `
|
|
338
|
+
display: flex;
|
|
339
|
+
gap: 32px;
|
|
340
|
+
border-radius: 24px;
|
|
341
|
+
`;
|
|
342
|
+
const Day = styled.button `
|
|
343
|
+
outline: none;
|
|
344
|
+
border: none;
|
|
345
|
+
background: transparent;
|
|
346
|
+
display: flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
width: 32px;
|
|
350
|
+
height: 32px;
|
|
351
|
+
border-radius: 50%;
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
font-family: Inter;
|
|
354
|
+
font-size: 16px;
|
|
355
|
+
line-height: 24px;
|
|
356
|
+
|
|
357
|
+
&.today {
|
|
358
|
+
color: var(--color-primary-blue-2);
|
|
359
|
+
font-weight: 600;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
&:hover:not(&[class~='start-date']):not(&[class~='end-date']) {
|
|
363
|
+
background-color: var(--color-primary-blue-4);
|
|
364
|
+
color: var(--color-primary-blue-1);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&[class~='not-current'] {
|
|
368
|
+
color: var(--color-grey-9);
|
|
369
|
+
cursor: default;
|
|
370
|
+
pointer-events: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&[class~='start-date'],
|
|
374
|
+
&[class~='end-date'] {
|
|
375
|
+
background-color: var(--color-primary-blue-2);
|
|
376
|
+
color: #ffffff;
|
|
377
|
+
|
|
378
|
+
&[class~='not-current'] {
|
|
379
|
+
background-color: var(--color-blue-9);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
&[class~='start-date'] + [class~='end-date'] {
|
|
384
|
+
position: relative;
|
|
385
|
+
&::before {
|
|
386
|
+
content: '';
|
|
387
|
+
position: absolute;
|
|
388
|
+
z-index: -2;
|
|
389
|
+
height: 32px;
|
|
390
|
+
width: 64px;
|
|
391
|
+
background-color: var(--color-primary-blue-3);
|
|
392
|
+
right: 16px;
|
|
393
|
+
top: 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&[class~='not-current'] {
|
|
397
|
+
&::before {
|
|
398
|
+
background-color: var(--color-blue-10);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
&[class~='not-current'] {
|
|
404
|
+
position: relative;
|
|
405
|
+
&[class~='end-date']:not(:first-of-type):not(.start-date) {
|
|
406
|
+
&::before {
|
|
407
|
+
content: '';
|
|
408
|
+
position: absolute;
|
|
409
|
+
z-index: -2;
|
|
410
|
+
height: 32px;
|
|
411
|
+
width: 62px;
|
|
412
|
+
background-color: var(--color-blue-10);
|
|
413
|
+
right: 16px;
|
|
414
|
+
top: 0;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
&[class~='first-of-month'] {
|
|
420
|
+
&[class~='end-date'] {
|
|
421
|
+
&::before {
|
|
422
|
+
background-color: var(--color-blue-10);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
&[class~='between'] {
|
|
428
|
+
position: relative;
|
|
429
|
+
|
|
430
|
+
&::before {
|
|
431
|
+
content: '';
|
|
432
|
+
position: absolute;
|
|
433
|
+
z-index: -2;
|
|
434
|
+
height: 32px;
|
|
435
|
+
width: 132px;
|
|
436
|
+
background-color: var(--color-primary-blue-3);
|
|
437
|
+
right: -48px;
|
|
438
|
+
top: 0;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
&:first-of-type::before {
|
|
442
|
+
width: 80px;
|
|
443
|
+
border-radius: 24px 0px 0px 24px;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&:last-of-type::before {
|
|
447
|
+
width: 80px;
|
|
448
|
+
right: 0px;
|
|
449
|
+
border-radius: 0px 24px 24px 0px;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
&[class~='not-current'] {
|
|
453
|
+
&::before {
|
|
454
|
+
background-color: var(--color-blue-10);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
&[class~='first-of-month']:not(:first-of-type) {
|
|
459
|
+
&::before {
|
|
460
|
+
width: 32px;
|
|
461
|
+
border-top-left-radius: 24px;
|
|
462
|
+
border-bottom-left-radius: 24px;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
&[class~='first-of-month']:not([class~='not-current']):not(
|
|
467
|
+
:first-of-type
|
|
468
|
+
):not(:last-of-type) {
|
|
469
|
+
&::before {
|
|
470
|
+
width: 64px;
|
|
471
|
+
border-top-left-radius: 24px;
|
|
472
|
+
border-bottom-left-radius: 24px;
|
|
473
|
+
background-color: var(--color-blue-10);
|
|
474
|
+
right: 16px;
|
|
475
|
+
}
|
|
476
|
+
&::after {
|
|
477
|
+
content: '';
|
|
478
|
+
position: absolute;
|
|
479
|
+
z-index: -2;
|
|
480
|
+
height: 32px;
|
|
481
|
+
width: 70px;
|
|
482
|
+
background-color: var(--color-primary-blue-3);
|
|
483
|
+
right: -32px;
|
|
484
|
+
top: 0;
|
|
485
|
+
border-top-left-radius: 24px;
|
|
486
|
+
border-bottom-left-radius: 24px;
|
|
487
|
+
}
|
|
488
|
+
&:last-of-type {
|
|
489
|
+
&::before {
|
|
490
|
+
width: 32px;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
&[class~='last-of-month']:not(&[class~='not-current']) {
|
|
496
|
+
&::before {
|
|
497
|
+
z-index: -1;
|
|
498
|
+
border-radius: 0px 24px 24px 0px;
|
|
499
|
+
width: 80px;
|
|
500
|
+
right: 0px;
|
|
501
|
+
}
|
|
502
|
+
&:first-of-type {
|
|
503
|
+
&::before {
|
|
504
|
+
border-top-left-radius: 24px;
|
|
505
|
+
border-bottom-left-radius: 24px;
|
|
506
|
+
width: 32px;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
`;
|
|
512
|
+
const BottomWrapper = styled.div `
|
|
513
|
+
display: flex;
|
|
514
|
+
justify-content: flex-end;
|
|
515
|
+
gap: 18px;
|
|
516
|
+
`;
|