@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,135 @@
|
|
|
1
|
+
export const COLORS = [
|
|
2
|
+
'inherit',
|
|
3
|
+
'page-bg',
|
|
4
|
+
'white',
|
|
5
|
+
'primary-blue-0',
|
|
6
|
+
'primary-blue-1',
|
|
7
|
+
'primary-blue-2',
|
|
8
|
+
'primary-blue-3',
|
|
9
|
+
'primary-blue-4',
|
|
10
|
+
'grey-0',
|
|
11
|
+
'grey-1',
|
|
12
|
+
'grey-2',
|
|
13
|
+
'grey-3',
|
|
14
|
+
'grey-4',
|
|
15
|
+
'grey-5',
|
|
16
|
+
'grey-6',
|
|
17
|
+
'grey-7',
|
|
18
|
+
'grey-8',
|
|
19
|
+
'grey-9',
|
|
20
|
+
'grey-10',
|
|
21
|
+
'red-0',
|
|
22
|
+
'red-1',
|
|
23
|
+
'red-2',
|
|
24
|
+
'red-3',
|
|
25
|
+
'red-4',
|
|
26
|
+
'red-5',
|
|
27
|
+
'red-6',
|
|
28
|
+
'red-7',
|
|
29
|
+
'red-8',
|
|
30
|
+
'red-9',
|
|
31
|
+
'red-10',
|
|
32
|
+
'green-0',
|
|
33
|
+
'green-1',
|
|
34
|
+
'green-2',
|
|
35
|
+
'green-3',
|
|
36
|
+
'green-4',
|
|
37
|
+
'green-5',
|
|
38
|
+
'green-6',
|
|
39
|
+
'green-7',
|
|
40
|
+
'green-8',
|
|
41
|
+
'green-9',
|
|
42
|
+
'green-10',
|
|
43
|
+
'blue-0',
|
|
44
|
+
'blue-1',
|
|
45
|
+
'blue-2',
|
|
46
|
+
'blue-3',
|
|
47
|
+
'blue-4',
|
|
48
|
+
'blue-5',
|
|
49
|
+
'blue-6',
|
|
50
|
+
'blue-7',
|
|
51
|
+
'blue-8',
|
|
52
|
+
'blue-9',
|
|
53
|
+
'blue-10',
|
|
54
|
+
'turquoise-0',
|
|
55
|
+
'turquoise-1',
|
|
56
|
+
'turquoise-2',
|
|
57
|
+
'turquoise-3',
|
|
58
|
+
'turquoise-4',
|
|
59
|
+
'turquoise-5',
|
|
60
|
+
'turquoise-6',
|
|
61
|
+
'turquoise-7',
|
|
62
|
+
'turquoise-8',
|
|
63
|
+
'turquoise-9',
|
|
64
|
+
'turquoise-10',
|
|
65
|
+
'purple-0',
|
|
66
|
+
'purple-1',
|
|
67
|
+
'purple-2',
|
|
68
|
+
'purple-3',
|
|
69
|
+
'purple-4',
|
|
70
|
+
'purple-5',
|
|
71
|
+
'purple-6',
|
|
72
|
+
'purple-7',
|
|
73
|
+
'purple-8',
|
|
74
|
+
'purple-9',
|
|
75
|
+
'purple-10',
|
|
76
|
+
'yellow-0',
|
|
77
|
+
'yellow-1',
|
|
78
|
+
'yellow-2',
|
|
79
|
+
'yellow-3',
|
|
80
|
+
'yellow-4',
|
|
81
|
+
'yellow-5',
|
|
82
|
+
'yellow-6',
|
|
83
|
+
'yellow-7',
|
|
84
|
+
'yellow-8',
|
|
85
|
+
'yellow-9',
|
|
86
|
+
'yellow-10',
|
|
87
|
+
'orange-0',
|
|
88
|
+
'orange-1',
|
|
89
|
+
'orange-2',
|
|
90
|
+
'orange-3',
|
|
91
|
+
'orange-4',
|
|
92
|
+
'orange-5',
|
|
93
|
+
'orange-6',
|
|
94
|
+
'orange-7',
|
|
95
|
+
'orange-8',
|
|
96
|
+
'orange-9',
|
|
97
|
+
'orange-10',
|
|
98
|
+
'hue-pink-1',
|
|
99
|
+
'hue-pink-2',
|
|
100
|
+
'hue-pink-3',
|
|
101
|
+
'hue-purple-1',
|
|
102
|
+
'hue-purple-2',
|
|
103
|
+
'hue-purple-3',
|
|
104
|
+
'hue-ocean-1',
|
|
105
|
+
'hue-ocean-2',
|
|
106
|
+
'hue-ocean-3',
|
|
107
|
+
'hue-mint-1',
|
|
108
|
+
'hue-mint-2',
|
|
109
|
+
'hue-mint-3',
|
|
110
|
+
'hue-blue-1',
|
|
111
|
+
'hue-blue-2',
|
|
112
|
+
'hue-blue-3',
|
|
113
|
+
'hue-orange-1',
|
|
114
|
+
'hue-orange-2',
|
|
115
|
+
'hue-orange-3',
|
|
116
|
+
'special-yellow-1',
|
|
117
|
+
'special-yellow-2',
|
|
118
|
+
'special-orange-1',
|
|
119
|
+
'special-orange-2',
|
|
120
|
+
'special-red-1',
|
|
121
|
+
'special-red-2',
|
|
122
|
+
'special-pink-1',
|
|
123
|
+
'special-pink-2',
|
|
124
|
+
'special-purple-1',
|
|
125
|
+
'special-purple-2',
|
|
126
|
+
'special-blue-1',
|
|
127
|
+
'special-blue-2',
|
|
128
|
+
'special-turquoise-1',
|
|
129
|
+
'special-turquoise-2',
|
|
130
|
+
'special-green-1',
|
|
131
|
+
'special-green-2',
|
|
132
|
+
'special-grape-1',
|
|
133
|
+
'special-grape-2',
|
|
134
|
+
];
|
|
135
|
+
export const colorReference = Object.fromEntries(COLORS.map((item) => [item, `var(--color-${item})`]));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const THIS_YEAR = +new Date().getFullYear();
|
|
2
|
+
export const THIS_MONTH = +new Date().getMonth() + 1;
|
|
3
|
+
export var WEEKDAYS;
|
|
4
|
+
(function (WEEKDAYS) {
|
|
5
|
+
WEEKDAYS["MON"] = "Mon";
|
|
6
|
+
WEEKDAYS["TUE"] = "Tue";
|
|
7
|
+
WEEKDAYS["WED"] = "Wed";
|
|
8
|
+
WEEKDAYS["THU"] = "Thu";
|
|
9
|
+
WEEKDAYS["FRI"] = "Fri";
|
|
10
|
+
WEEKDAYS["SAT"] = "Sat";
|
|
11
|
+
WEEKDAYS["SUN"] = "Sun";
|
|
12
|
+
})(WEEKDAYS || (WEEKDAYS = {}));
|
|
13
|
+
export var MONTHS;
|
|
14
|
+
(function (MONTHS) {
|
|
15
|
+
MONTHS["JAN"] = "Jan";
|
|
16
|
+
MONTHS["FEB"] = "Feb";
|
|
17
|
+
MONTHS["MAR"] = "Mar";
|
|
18
|
+
MONTHS["APR"] = "Apr";
|
|
19
|
+
MONTHS["MAY"] = "May";
|
|
20
|
+
MONTHS["JUN"] = "Jun";
|
|
21
|
+
MONTHS["JUL"] = "Jul";
|
|
22
|
+
MONTHS["AUG"] = "Aug";
|
|
23
|
+
MONTHS["SEP"] = "Sep";
|
|
24
|
+
MONTHS["OCT"] = "Oct";
|
|
25
|
+
MONTHS["NOV"] = "Nov";
|
|
26
|
+
MONTHS["DEC"] = "Dec";
|
|
27
|
+
})(MONTHS || (MONTHS = {}));
|
|
28
|
+
export const CALENDAR_WEEKS = 6;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { css } from 'styled-components';
|
|
2
|
+
import { colorReference } from 'common';
|
|
3
|
+
export var Styles;
|
|
4
|
+
(function (Styles) {
|
|
5
|
+
Styles.backgroundColor = css `
|
|
6
|
+
background-color: ${({ $backgroundColor }) => $backgroundColor ? colorReference[$backgroundColor] : 'var(--page-bg)'};
|
|
7
|
+
`;
|
|
8
|
+
Styles.borderRadius = css `
|
|
9
|
+
border-radius: ${({ $borderRadius }) => $borderRadius ? `var(--${$borderRadius})` : ''};
|
|
10
|
+
`;
|
|
11
|
+
Styles.color = css `
|
|
12
|
+
color: ${({ $color }) => $color ? colorReference[$color] : 'var(--color-grey-3)'};
|
|
13
|
+
`;
|
|
14
|
+
Styles.elevation = css `
|
|
15
|
+
box-shadow: ${({ $elevation }) => $elevation ? `var(--elevation-${$elevation})` : 'none'};
|
|
16
|
+
`;
|
|
17
|
+
Styles.flex = css `
|
|
18
|
+
align-items: ${({ $align }) => $align ?? 'normal'};
|
|
19
|
+
gap: ${({ $gap }) => $gap && typeof $gap === 'number'
|
|
20
|
+
? `${$gap}px`
|
|
21
|
+
: $gap && typeof $gap === 'string'
|
|
22
|
+
? `var(--${$gap})`
|
|
23
|
+
: '0px'};
|
|
24
|
+
flex: ${({ $flex }) => $flex ?? 'none'};
|
|
25
|
+
flex-flow: ${({ $flow }) => $flow ?? 'row'};
|
|
26
|
+
flex-direction: ${({ $dir }) => $dir ?? 'row'};
|
|
27
|
+
justify-content: ${({ $justify }) => $justify ?? 'normal'};
|
|
28
|
+
`;
|
|
29
|
+
Styles.margin = css `
|
|
30
|
+
margin: ${({ $margin }) => $margin && typeof $margin === 'number'
|
|
31
|
+
? `${$margin}px`
|
|
32
|
+
: $margin && typeof $margin === 'string'
|
|
33
|
+
? `var(--${$margin})`
|
|
34
|
+
: '0px'};
|
|
35
|
+
`;
|
|
36
|
+
Styles.padding = css `
|
|
37
|
+
padding: ${({ $padding }) => $padding && typeof $padding === 'number'
|
|
38
|
+
? `${$padding}px;`
|
|
39
|
+
: $padding && typeof $padding === 'string' && $padding.includes('px')
|
|
40
|
+
? $padding
|
|
41
|
+
: $padding && typeof $padding === 'string'
|
|
42
|
+
? `var(--${$padding});`
|
|
43
|
+
: '0px'};
|
|
44
|
+
`;
|
|
45
|
+
Styles.styleable = css `
|
|
46
|
+
${({ sx }) => (sx ? sx : '')}
|
|
47
|
+
`;
|
|
48
|
+
Styles.textClamp = css `
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
display: -webkit-box;
|
|
52
|
+
line-clamp: ${({ $textClampLines }) => $textClampLines ?? 1};
|
|
53
|
+
-webkit-line-clamp: ${({ $textClampLines }) => $textClampLines ?? 1};
|
|
54
|
+
-webkit-box-orient: vertical;
|
|
55
|
+
`;
|
|
56
|
+
Styles.typography = css `
|
|
57
|
+
font-style: ${({ $italic }) => ($italic ? 'italic' : 'normal')};
|
|
58
|
+
text-decoration: ${({ $strikethrough, $underline }) => $strikethrough ? 'line-through' : $underline ? 'underline' : 'none'};
|
|
59
|
+
`;
|
|
60
|
+
Styles.weight = css `
|
|
61
|
+
font-weight: ${({ $bold, $semiBold, $mediumBold }) => $bold ? 700 : $semiBold ? 600 : $mediumBold ? 500 : 400};
|
|
62
|
+
`;
|
|
63
|
+
})(Styles || (Styles = {}));
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
import { Styles } from 'common';
|
|
4
|
+
import { P } from 'components';
|
|
5
|
+
import { Box } from '../../atoms/box/box';
|
|
6
|
+
import { ChevronDown, ChevronUp } from 'icons';
|
|
7
|
+
const LG_ICON_SIZE = 20;
|
|
8
|
+
const LG_ICON_SIZE_WO_CHILDREN = 24;
|
|
9
|
+
const LG_FONT_SIZE = 16;
|
|
10
|
+
const LG_PADDING = '11px 19px';
|
|
11
|
+
const LG_PADDING_WO_CHILDREN = '11px';
|
|
12
|
+
const SM_ICON_SIZE = 16;
|
|
13
|
+
const SM_FONT_SIZE = 14;
|
|
14
|
+
const SM_PADDING = '5px 15px';
|
|
15
|
+
const SM_PADDING_WO_CHILDREN = '7px';
|
|
16
|
+
export const Button = ({ as = 'button', children, disabled, fluid = false, icon, isDropdownOpen, roundness = 'large', size = 'large', sx, type = 'primary', ...props }) => {
|
|
17
|
+
const Component = Components()[type];
|
|
18
|
+
const buttonIcon = React.Children.map(icon, (item) => {
|
|
19
|
+
if (React.isValidElement(item))
|
|
20
|
+
return {
|
|
21
|
+
...item,
|
|
22
|
+
props: {
|
|
23
|
+
size: size === 'large' && !children
|
|
24
|
+
? LG_ICON_SIZE_WO_CHILDREN
|
|
25
|
+
: size === 'large'
|
|
26
|
+
? LG_ICON_SIZE
|
|
27
|
+
: SM_ICON_SIZE,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
})?.[0];
|
|
31
|
+
const dropdownIcon = isDropdownOpen === true ? (React.createElement(ChevronUp, { size: size === 'large' ? LG_ICON_SIZE : SM_ICON_SIZE })) : isDropdownOpen === false ? (React.createElement(ChevronDown, { size: size === 'large' ? LG_ICON_SIZE : SM_ICON_SIZE })) : undefined;
|
|
32
|
+
const padding = !!children
|
|
33
|
+
? size === 'large'
|
|
34
|
+
? LG_PADDING
|
|
35
|
+
: SM_PADDING
|
|
36
|
+
: size === 'large'
|
|
37
|
+
? LG_PADDING_WO_CHILDREN
|
|
38
|
+
: SM_PADDING_WO_CHILDREN;
|
|
39
|
+
return (React.createElement(Component, { as: as, disabled: disabled, "$align": "center", "$display": "flex", "$fluid": fluid, "$gap": size === 'large' ? 12 : 8, "$hasChildren": !!children, "$justify": "center", "$padding": padding, "$roundness": roundness, "$size": size, "$sx": sx, ...props },
|
|
40
|
+
buttonIcon,
|
|
41
|
+
children && (React.createElement(P, { as: "span", "$mediumBold": true, "$fontSize": size === 'large' ? LG_FONT_SIZE : SM_FONT_SIZE, "$color": "inherit" }, children)),
|
|
42
|
+
!!children && dropdownIcon));
|
|
43
|
+
};
|
|
44
|
+
const Components = () => ({
|
|
45
|
+
primary: Primary,
|
|
46
|
+
secondary: Secondary,
|
|
47
|
+
outlined: Outlined,
|
|
48
|
+
danger: Danger,
|
|
49
|
+
raised: Raised,
|
|
50
|
+
special: Special,
|
|
51
|
+
text: Text,
|
|
52
|
+
});
|
|
53
|
+
const base = css `
|
|
54
|
+
display: flex;
|
|
55
|
+
border-radius: ${({ $roundness }) => $roundness === 'large'
|
|
56
|
+
? '32px'
|
|
57
|
+
: $roundness === 'medium-small'
|
|
58
|
+
? '8px'
|
|
59
|
+
: $roundness === 'small'
|
|
60
|
+
? '4px'
|
|
61
|
+
: '0px'};
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
user-select: none;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
outline: none;
|
|
66
|
+
${({ $fluid }) => $fluid
|
|
67
|
+
? `flex-basis: max-content;
|
|
68
|
+
flex: 1 !important;
|
|
69
|
+
width: max-content`
|
|
70
|
+
: ''}
|
|
71
|
+
|
|
72
|
+
svg {
|
|
73
|
+
fill: currentColor;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:disabled {
|
|
77
|
+
background-color: var(--color-grey-9) !important;
|
|
78
|
+
border: 1px solid var(--color-grey-8) !important;
|
|
79
|
+
color: var(--color-grey-7) !important;
|
|
80
|
+
cursor: unset !important;
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
const Primary = styled(Box) `
|
|
84
|
+
background-color: var(--color-primary-blue-2);
|
|
85
|
+
color: var(--color-white);
|
|
86
|
+
border: 1px solid var(--color-primary-blue-2);
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
border: 1px solid var(--color-primary-blue-1);
|
|
90
|
+
background-color: var(--color-primary-blue-1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:active {
|
|
94
|
+
border: 1px solid var(--color-primary-blue-0);
|
|
95
|
+
background-color: var(--color-primary-blue-0);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
${base}
|
|
99
|
+
${Styles.flex}
|
|
100
|
+
${Styles.padding}
|
|
101
|
+
|
|
102
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
103
|
+
`;
|
|
104
|
+
const Secondary = styled(Box) `
|
|
105
|
+
background-color: var(--color-primary-blue-4);
|
|
106
|
+
color: var(--color-primary-blue-2);
|
|
107
|
+
border: 1px solid var(--color-primary-blue-4);
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
border: 1px solid var(--color-primary-blue-2);
|
|
111
|
+
color: var(--color-primary-blue-1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:active {
|
|
115
|
+
color: var(--color-primary-blue-0);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
${base}
|
|
119
|
+
${Styles.flex}
|
|
120
|
+
${Styles.padding}
|
|
121
|
+
|
|
122
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
123
|
+
`;
|
|
124
|
+
const Outlined = styled(Box) `
|
|
125
|
+
background-color: var(--color-white);
|
|
126
|
+
color: var(--color-grey-3);
|
|
127
|
+
border: 1px solid var(--color-grey-8);
|
|
128
|
+
|
|
129
|
+
&:active {
|
|
130
|
+
background-color: var(--color-grey-8);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
${base}
|
|
134
|
+
${Styles.flex}
|
|
135
|
+
${Styles.padding}
|
|
136
|
+
|
|
137
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
138
|
+
`;
|
|
139
|
+
const Danger = styled(Box) `
|
|
140
|
+
background-color: var(--color-red-4);
|
|
141
|
+
color: var(--color-white);
|
|
142
|
+
border: 1px solid var(--color-red-4);
|
|
143
|
+
|
|
144
|
+
&:hover {
|
|
145
|
+
border: 1px solid var(--color-red-3);
|
|
146
|
+
background-color: var(--color-red-3);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&:active {
|
|
150
|
+
border: 1px solid var(--color-red-2);
|
|
151
|
+
background-color: var(--color-red-2);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
${base}
|
|
155
|
+
${Styles.flex}
|
|
156
|
+
${Styles.padding}
|
|
157
|
+
|
|
158
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
159
|
+
`;
|
|
160
|
+
const Text = styled(Box) `
|
|
161
|
+
background-color: transparent;
|
|
162
|
+
border: 1px solid transparent;
|
|
163
|
+
color: var(--color-primary-blue-2);
|
|
164
|
+
|
|
165
|
+
&:hover {
|
|
166
|
+
color: var(--color-primary-blue-1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&:active {
|
|
170
|
+
color: var(--color-primary-blue-0);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&:disabled {
|
|
174
|
+
background-color: transparent !important;
|
|
175
|
+
border: 1px solid transparent !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
${base}
|
|
179
|
+
${Styles.flex}
|
|
180
|
+
${Styles.padding}
|
|
181
|
+
|
|
182
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
183
|
+
`;
|
|
184
|
+
const Raised = styled(Box) `
|
|
185
|
+
background-color: var(--color-white);
|
|
186
|
+
color: var(--color-grey-3);
|
|
187
|
+
border: 1px solid var(--color-white);
|
|
188
|
+
box-shadow: var(--elevation-1);
|
|
189
|
+
|
|
190
|
+
&:hover {
|
|
191
|
+
background-color: var(--color-grey-9);
|
|
192
|
+
border: 1px solid var(--color-grey-9);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:active {
|
|
196
|
+
background-color: var(--color-grey-8);
|
|
197
|
+
border: 1px solid var(--color-grey-8);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:disabled {
|
|
201
|
+
border: 1px solid var(--color-grey-9) !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
${base}
|
|
205
|
+
${Styles.flex}
|
|
206
|
+
${Styles.padding}
|
|
207
|
+
|
|
208
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
209
|
+
`;
|
|
210
|
+
const Special = styled(Box) `
|
|
211
|
+
background-color: transparent;
|
|
212
|
+
border: 1px solid transparent;
|
|
213
|
+
color: var(--color-primary-grey-3);
|
|
214
|
+
|
|
215
|
+
&:hover {
|
|
216
|
+
color: var(--color-grey-3);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&:active {
|
|
220
|
+
background-color: var(--color-grey-9);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&:disabled {
|
|
224
|
+
background-color: transparent !important;
|
|
225
|
+
border: 1px solid transparent !important;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
${base}
|
|
229
|
+
${Styles.flex}
|
|
230
|
+
${Styles.padding}
|
|
231
|
+
|
|
232
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
233
|
+
`;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from './button';
|
|
3
|
+
import { Plus } from 'icons';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Actions/Button',
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
const Story = ({ children, icon, ...args }) => (React.createElement(Button, { icon: icon ? React.createElement(Plus, null) : undefined, ...args }, children));
|
|
11
|
+
export const Default = Story.bind({});
|
|
12
|
+
Default.argTypes = {
|
|
13
|
+
children: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
disabled: {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
},
|
|
19
|
+
icon: {
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
},
|
|
22
|
+
isDropdownOpen: {
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
options: ['large', 'small'],
|
|
28
|
+
control: 'select',
|
|
29
|
+
},
|
|
30
|
+
roundness: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
options: ['none', 'small', 'medium-small', 'large'],
|
|
33
|
+
control: 'select',
|
|
34
|
+
},
|
|
35
|
+
type: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
options: [
|
|
38
|
+
'primary',
|
|
39
|
+
'secondary',
|
|
40
|
+
'outlined',
|
|
41
|
+
'danger',
|
|
42
|
+
'text',
|
|
43
|
+
'raised',
|
|
44
|
+
'special',
|
|
45
|
+
],
|
|
46
|
+
control: 'select',
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
Default.args = {
|
|
50
|
+
children: 'Button',
|
|
51
|
+
disabled: false,
|
|
52
|
+
icon: undefined,
|
|
53
|
+
isDropdownOpen: undefined,
|
|
54
|
+
size: 'large',
|
|
55
|
+
roundness: 'large',
|
|
56
|
+
type: 'primary',
|
|
57
|
+
};
|
|
58
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from './button';
|