@soul-refiner/design-system 2.0.1-alpha.1 → 2.0.2
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 +140 -1
- package/dist/common/date.js +34 -1
- package/dist/common/styles.js +62 -30
- package/dist/components/actions/button/button.js +111 -21
- package/dist/components/actions/dropdown/dropdown.js +176 -21
- package/dist/components/actions/rate/rate.js +55 -4
- package/dist/components/actions/switch/switch.js +39 -5
- package/dist/components/actions/toggle/toggle.js +33 -6
- package/dist/components/actions/upload/upload.js +167 -9
- package/dist/components/atoms/box/box.js +18 -4
- package/dist/components/atoms/hide/hide.js +18 -1
- package/dist/components/atoms/seconds_to_duration/seconds_to_duration.js +36 -1
- package/dist/components/atoms/time_ago/time_ago.js +39 -1
- package/dist/components/atoms/typography/display.js +18 -5
- package/dist/components/atoms/typography/heading.js +43 -6
- package/dist/components/atoms/typography/paragraph.js +20 -7
- package/dist/components/atoms/typography/typography.js +10 -3
- package/dist/components/card/action/action.js +41 -8
- package/dist/components/card/audio/audio.js +57 -7
- package/dist/components/card/card.js +33 -1
- package/dist/components/card/feature/feature.js +86 -14
- package/dist/components/card/meeting/meeting.js +102 -8
- package/dist/components/card/person/person.js +39 -6
- package/dist/components/card/price/price.js +49 -7
- package/dist/components/card/regular/regular.js +26 -5
- package/dist/components/card/styles.js +9 -2
- package/dist/components/card/video/video.js +57 -7
- package/dist/components/card/written/written.js +57 -7
- package/dist/components/custom/courses_selection/courses_selection.js +104 -12
- package/dist/components/custom/users_selection/users_selection.js +86 -12
- package/dist/components/editor/constants.js +195 -1
- package/dist/components/editor/context.js +17 -1
- package/dist/components/editor/editor.js +45 -5
- package/dist/components/editor/icons/border-all.js +12 -1
- package/dist/components/editor/icons/border-bottom.js +12 -1
- package/dist/components/editor/icons/border-left.js +12 -1
- package/dist/components/editor/icons/border-none.js +12 -1
- package/dist/components/editor/icons/border-right.js +12 -1
- package/dist/components/editor/icons/border-top.js +12 -1
- package/dist/components/editor/navbar/alignment_dropdown.js +106 -1
- package/dist/components/editor/navbar/button_modal.js +60 -3
- package/dist/components/editor/navbar/navbar.js +178 -7
- package/dist/components/editor/navbar/style_dropdown.js +74 -1
- package/dist/components/editor/plugins/blocks/blockquote.js +17 -1
- package/dist/components/editor/plugins/blocks/blocks.js +54 -1
- package/dist/components/editor/plugins/blocks/buttons.js +70 -8
- package/dist/components/editor/plugins/blocks/dropdown-menu.js +77 -1
- package/dist/components/editor/plugins/blocks/image.js +60 -1
- package/dist/components/editor/plugins/blocks/list.js +20 -2
- package/dist/components/editor/plugins/blocks/media-popover.js +41 -1
- package/dist/components/editor/plugins/blocks/plate-button.js +63 -1
- package/dist/components/editor/plugins/blocks/popover.js +38 -1
- package/dist/components/editor/plugins/blocks/qa.js +44 -3
- package/dist/components/editor/plugins/blocks/resizable.js +47 -1
- package/dist/components/editor/plugins/blocks/separator.js +43 -1
- package/dist/components/editor/plugins/blocks/table-cell.js +48 -1
- package/dist/components/editor/plugins/blocks/table-row.js +16 -1
- package/dist/components/editor/plugins/blocks/table.js +98 -1
- package/dist/components/editor/plugins/blocks/text.js +103 -1
- package/dist/components/editor/plugins/blocks/video.js +42 -1
- package/dist/components/editor/plugins/leafs/leafs.js +37 -1
- package/dist/components/editor/plugins/leafs/link.js +55 -4
- package/dist/components/editor/plugins/marks/marks.js +17 -1
- package/dist/components/editor/plugins/plate.js +43 -1
- package/dist/components/editor/plugins/utils/exitBreak.js +36 -1
- package/dist/components/editor/plugins/utils/resetBlockType.js +26 -1
- package/dist/components/editor/plugins/utils/selectOnBackspace.js +11 -1
- package/dist/components/editor/plugins/utils/softBreak.js +19 -1
- package/dist/components/editor/plugins/utils/utils.js +17 -1
- package/dist/components/editor/simple_editor/navbar.js +110 -4
- package/dist/components/editor/simple_editor/plugins.js +93 -1
- package/dist/components/editor/simple_editor/simple_editor.js +34 -3
- package/dist/components/editor/styles/menu_button.js +9 -3
- package/dist/components/feedback/animated_toast/animated_toast.js +32 -3
- package/dist/components/feedback/badge/badge.js +56 -7
- package/dist/components/feedback/banner/banner.js +60 -6
- package/dist/components/feedback/chip/chip.js +81 -8
- package/dist/components/feedback/loader/loader.js +33 -9
- package/dist/components/feedback/notification/notification.js +59 -6
- package/dist/components/feedback/progress/progress.js +76 -14
- package/dist/components/feedback/toast/toast.js +55 -7
- package/dist/components/feedback/tooltip/tooltip.js +34 -1
- package/dist/components/iconography/avatar/avatar.js +141 -22
- package/dist/components/iconography/avatar/icons/approved.js +14 -1
- package/dist/components/iconography/avatar/icons/busy.js +14 -1
- package/dist/components/iconography/avatar/icons/declined.js +14 -1
- package/dist/components/iconography/avatar/icons/default.js +13 -1
- package/dist/components/iconography/avatar/icons/focus.js +14 -1
- package/dist/components/iconography/avatar/icons/locked.js +14 -1
- package/dist/components/iconography/avatar/icons/offline.js +14 -1
- package/dist/components/iconography/avatar/icons/online.js +13 -1
- package/dist/components/iconography/avatar/icons/subscribed.js +18 -1
- package/dist/components/iconography/icon/icon.js +18 -3
- package/dist/components/input/calendar/calendar.js +139 -13
- package/dist/components/input/checkbox/checkbox.js +23 -5
- package/dist/components/input/date/date.js +241 -13
- package/dist/components/input/filter/filter.js +212 -13
- package/dist/components/input/filter/filter_option.js +50 -9
- package/dist/components/input/radio/radio.js +45 -7
- package/dist/components/input/search/search.js +83 -17
- package/dist/components/input/select/select.js +27 -6
- package/dist/components/input/text_area/text_area.js +60 -15
- package/dist/components/input/text_input/text_input.js +102 -21
- package/dist/components/input/time/time.js +47 -3
- package/dist/components/media/video/video.js +42 -1
- package/dist/components/media/video-player/playlist-item.js +37 -4
- package/dist/components/media/video-player/video.js +121 -13
- package/dist/components/navigation/breadcrumb/breadcrumb.js +66 -11
- package/dist/components/navigation/inner/inner.js +130 -14
- package/dist/components/navigation/tabs/tabs.js +101 -15
- package/dist/components/surfaces/accordion/accordion.js +46 -5
- package/dist/components/surfaces/calendar_date/calendar_date.js +39 -10
- package/dist/components/surfaces/carousel/card/card.js +55 -7
- package/dist/components/surfaces/comment/comment.js +152 -19
- package/dist/components/surfaces/comment/helpers.js +30 -1
- package/dist/components/surfaces/drawer/drawer.js +75 -7
- package/dist/components/surfaces/message/message.js +39 -4
- package/dist/components/surfaces/modal/modal.js +99 -8
- package/dist/components/surfaces/portal/portal.js +35 -1
- package/dist/components/surfaces/post/post.js +161 -19
- package/dist/components/table/table/table.js +120 -29
- package/dist/emoji/emojis.json.js +36331 -1
- package/dist/icons/arrow/arrow_all.js +15 -1
- package/dist/icons/arrow/arrow_all_diagonal.js +15 -1
- package/dist/icons/arrow/arrow_both_downwards.js +15 -1
- package/dist/icons/arrow/arrow_both_upwards.js +15 -1
- package/dist/icons/arrow/arrow_circle_left.js +15 -1
- package/dist/icons/arrow/arrow_circle_left_double.js +15 -1
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +17 -1
- package/dist/icons/arrow/arrow_circle_right.js +15 -1
- package/dist/icons/arrow/arrow_circle_right_double.js +15 -1
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_left.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_right.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_left.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_right.js +15 -1
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +15 -1
- package/dist/icons/arrow/arrow_down.js +15 -1
- package/dist/icons/arrow/arrow_down_bold.js +15 -1
- package/dist/icons/arrow/arrow_down_circle.js +15 -1
- package/dist/icons/arrow/arrow_left.js +15 -1
- package/dist/icons/arrow/arrow_left_bold.js +15 -1
- package/dist/icons/arrow/arrow_left_circle.js +15 -1
- package/dist/icons/arrow/arrow_left_curved.js +15 -1
- package/dist/icons/arrow/arrow_left_curved_circle.js +15 -1
- package/dist/icons/arrow/arrow_right.js +15 -1
- package/dist/icons/arrow/arrow_right_bold.js +15 -1
- package/dist/icons/arrow/arrow_right_circle.js +15 -1
- package/dist/icons/arrow/arrow_right_curved.js +15 -1
- package/dist/icons/arrow/arrow_right_curved_circle.js +15 -1
- package/dist/icons/arrow/arrow_up.js +15 -1
- package/dist/icons/arrow/arrow_up_bold.js +15 -1
- package/dist/icons/arrow/arrow_up_circle.js +15 -1
- package/dist/icons/arrow/chevron_down.js +15 -1
- package/dist/icons/arrow/chevron_down_circle.js +15 -1
- package/dist/icons/arrow/chevron_down_double.js +15 -1
- package/dist/icons/arrow/chevron_down_double_circle.js +15 -1
- package/dist/icons/arrow/chevron_left.js +15 -1
- package/dist/icons/arrow/chevron_left_circle.js +15 -1
- package/dist/icons/arrow/chevron_left_double.js +15 -1
- package/dist/icons/arrow/chevron_left_double_circle.js +15 -1
- package/dist/icons/arrow/chevron_right.js +15 -1
- package/dist/icons/arrow/chevron_right_circle.js +15 -1
- package/dist/icons/arrow/chevron_right_double.js +15 -1
- package/dist/icons/arrow/chevron_right_double_circle.js +15 -1
- package/dist/icons/arrow/chevron_scroll.js +15 -1
- package/dist/icons/arrow/chevron_up.js +15 -1
- package/dist/icons/arrow/chevron_up_circle.js +15 -1
- package/dist/icons/arrow/chevron_up_double.js +15 -1
- package/dist/icons/arrow/chevron_up_double_circle.js +15 -1
- package/dist/icons/arrow/forward_all.js +15 -1
- package/dist/icons/arrow/forward_all_bold.js +15 -1
- package/dist/icons/arrow/forward_bold.js +15 -1
- package/dist/icons/arrow/redo.js +15 -1
- package/dist/icons/arrow/redo_bold.js +15 -1
- package/dist/icons/arrow/reply.js +15 -1
- package/dist/icons/arrow/reply_all.js +15 -1
- package/dist/icons/arrow/reply_all_bold.js +15 -1
- package/dist/icons/arrow/reply_bold.js +15 -1
- package/dist/icons/arrow/undo.js +15 -1
- package/dist/icons/arrow/undo_bold.js +15 -1
- package/dist/icons/audio_video/drag_indicator.js +15 -1
- package/dist/icons/audio_video/eject.js +15 -1
- package/dist/icons/audio_video/equalizer.js +15 -1
- package/dist/icons/audio_video/fast_forward.js +15 -1
- package/dist/icons/audio_video/fast_forward_30.js +15 -1
- package/dist/icons/audio_video/fullscreen.js +15 -1
- package/dist/icons/audio_video/headphones.js +15 -1
- package/dist/icons/audio_video/library_add.js +15 -1
- package/dist/icons/audio_video/library_music.js +15 -1
- package/dist/icons/audio_video/microphone.js +15 -1
- package/dist/icons/audio_video/musical_note.js +15 -1
- package/dist/icons/audio_video/next.js +15 -1
- package/dist/icons/audio_video/pause.js +15 -1
- package/dist/icons/audio_video/pause_circle.js +15 -1
- package/dist/icons/audio_video/play.js +15 -1
- package/dist/icons/audio_video/play_circle.js +15 -1
- package/dist/icons/audio_video/play_display.js +15 -1
- package/dist/icons/audio_video/play_pause.js +15 -1
- package/dist/icons/audio_video/play_solid.js +15 -1
- package/dist/icons/audio_video/player_list.js +15 -1
- package/dist/icons/audio_video/player_list_add.js +15 -1
- package/dist/icons/audio_video/player_list_play.js +15 -1
- package/dist/icons/audio_video/previous.js +15 -1
- package/dist/icons/audio_video/radio.js +15 -1
- package/dist/icons/audio_video/record.js +15 -1
- package/dist/icons/audio_video/repeat.js +15 -1
- package/dist/icons/audio_video/rewind.js +15 -1
- package/dist/icons/audio_video/rewind_30.js +15 -1
- package/dist/icons/audio_video/shuffle.js +15 -1
- package/dist/icons/audio_video/sound_wave.js +15 -1
- package/dist/icons/audio_video/stop.js +15 -1
- package/dist/icons/audio_video/stop_circle.js +15 -1
- package/dist/icons/audio_video/subscriptions.js +15 -1
- package/dist/icons/audio_video/tuner.js +15 -1
- package/dist/icons/audio_video/volume.js +15 -1
- package/dist/icons/audio_video/volume_high.js +15 -1
- package/dist/icons/audio_video/volume_low.js +15 -1
- package/dist/icons/audio_video/volume_slash.js +15 -1
- package/dist/icons/basic/aa_sansserif.js +16 -1
- package/dist/icons/basic/aa_serif.js +16 -1
- package/dist/icons/basic/anchor.js +17 -1
- package/dist/icons/basic/bible.js +15 -1
- package/dist/icons/basic/bold.js +15 -1
- package/dist/icons/basic/book.js +15 -1
- package/dist/icons/basic/book_open.js +15 -1
- package/dist/icons/basic/bookmark.js +15 -1
- package/dist/icons/basic/bookmark_add.js +15 -1
- package/dist/icons/basic/bookmark_slash.js +15 -1
- package/dist/icons/basic/bookmarks.js +15 -1
- package/dist/icons/basic/books.js +18 -1
- package/dist/icons/basic/box.js +15 -1
- package/dist/icons/basic/briefcase.js +15 -1
- package/dist/icons/basic/browse_activity.js +15 -1
- package/dist/icons/basic/browser.js +15 -1
- package/dist/icons/basic/browser_slash.js +15 -1
- package/dist/icons/basic/calculator.js +15 -1
- package/dist/icons/basic/camera.js +15 -1
- package/dist/icons/basic/camera_add.js +15 -1
- package/dist/icons/basic/camera_slash.js +15 -1
- package/dist/icons/basic/checkmark.js +15 -1
- package/dist/icons/basic/checkmark_circle.js +17 -1
- package/dist/icons/basic/checkmark_filled.js +15 -1
- package/dist/icons/basic/checkmarks.js +15 -1
- package/dist/icons/basic/circle.js +15 -1
- package/dist/icons/basic/circle_slash.js +17 -1
- package/dist/icons/basic/clear_text_style.js +15 -1
- package/dist/icons/basic/close.js +15 -1
- package/dist/icons/basic/close_circle.js +15 -1
- package/dist/icons/basic/close_filled.js +15 -1
- package/dist/icons/basic/copy.js +15 -1
- package/dist/icons/basic/delete.js +15 -1
- package/dist/icons/basic/detail.js +15 -1
- package/dist/icons/basic/dot.js +15 -1
- package/dist/icons/basic/download.js +15 -1
- package/dist/icons/basic/download_arrow.js +15 -1
- package/dist/icons/basic/droplet.js +17 -1
- package/dist/icons/basic/ellipsis_horizontal.js +15 -1
- package/dist/icons/basic/ellipsis_horizontal_circle.js +15 -1
- package/dist/icons/basic/ellipsis_vertical.js +15 -1
- package/dist/icons/basic/ellipsis_vertical_circle.js +15 -1
- package/dist/icons/basic/eye.js +15 -1
- package/dist/icons/basic/eye_slash.js +15 -1
- package/dist/icons/basic/fingerprint.js +15 -1
- package/dist/icons/basic/flag.js +15 -1
- package/dist/icons/basic/flag_wave.js +15 -1
- package/dist/icons/basic/flag_wave_filled.js +15 -1
- package/dist/icons/basic/flame.js +15 -1
- package/dist/icons/basic/gauge.js +15 -1
- package/dist/icons/basic/glasses.js +15 -1
- package/dist/icons/basic/graduation_cap.js +15 -1
- package/dist/icons/basic/hashmark.js +15 -1
- package/dist/icons/basic/heart.js +15 -1
- package/dist/icons/basic/heart_slash.js +15 -1
- package/dist/icons/basic/highlighter.js +15 -1
- package/dist/icons/basic/home.js +15 -1
- package/dist/icons/basic/image.js +15 -1
- package/dist/icons/basic/inbox.js +15 -1
- package/dist/icons/basic/italic.js +15 -1
- package/dist/icons/basic/layers.js +15 -1
- package/dist/icons/basic/lightening.js +15 -1
- package/dist/icons/basic/lightening_slash.js +15 -1
- package/dist/icons/basic/link.js +15 -1
- package/dist/icons/basic/link_slash.js +15 -1
- package/dist/icons/basic/loudspeaker.js +15 -1
- package/dist/icons/basic/maximize.js +15 -1
- package/dist/icons/basic/menu.js +15 -1
- package/dist/icons/basic/menu_circle.js +15 -1
- package/dist/icons/basic/menu_dots.js +15 -1
- package/dist/icons/basic/microphone_slash.js +15 -1
- package/dist/icons/basic/minimize.js +15 -1
- package/dist/icons/basic/minus.js +15 -1
- package/dist/icons/basic/minus_circle.js +15 -1
- package/dist/icons/basic/move_item.js +15 -1
- package/dist/icons/basic/new.js +15 -1
- package/dist/icons/basic/newspaper.js +15 -1
- package/dist/icons/basic/node.js +15 -1
- package/dist/icons/basic/note_pad.js +16 -1
- package/dist/icons/basic/options.js +15 -1
- package/dist/icons/basic/paint_brush.js +15 -1
- package/dist/icons/basic/paperclip.js +15 -1
- package/dist/icons/basic/paperclip_slash.js +15 -1
- package/dist/icons/basic/pencil.js +15 -1
- package/dist/icons/basic/pencil_pad.js +15 -1
- package/dist/icons/basic/plus.js +15 -1
- package/dist/icons/basic/plus_circle.js +15 -1
- package/dist/icons/basic/presentation.js +15 -1
- package/dist/icons/basic/printer.js +15 -1
- package/dist/icons/basic/profile.js +15 -1
- package/dist/icons/basic/profile_check.js +15 -1
- package/dist/icons/basic/pulse.js +15 -1
- package/dist/icons/basic/qr_code.js +15 -1
- package/dist/icons/basic/resize.js +17 -1
- package/dist/icons/basic/scan.js +15 -1
- package/dist/icons/basic/scissors.js +15 -1
- package/dist/icons/basic/screenshot.js +15 -1
- package/dist/icons/basic/search.js +15 -1
- package/dist/icons/basic/select_item.js +16 -1
- package/dist/icons/basic/settings.js +15 -1
- package/dist/icons/basic/share.js +15 -1
- package/dist/icons/basic/share_external.js +15 -1
- package/dist/icons/basic/square.js +15 -1
- package/dist/icons/basic/star.js +15 -1
- package/dist/icons/basic/star_circle.js +15 -1
- package/dist/icons/basic/star_filled.js +15 -1
- package/dist/icons/basic/star_filled_half.js +15 -1
- package/dist/icons/basic/star_slash.js +15 -1
- package/dist/icons/basic/sticker.js +15 -1
- package/dist/icons/basic/strikethrough.js +15 -1
- package/dist/icons/basic/subtask.js +16 -1
- package/dist/icons/basic/tax.js +18 -1
- package/dist/icons/basic/text_bg_color.js +15 -1
- package/dist/icons/basic/text_color.js +15 -1
- package/dist/icons/basic/textbox.js +15 -1
- package/dist/icons/basic/thumbs_down.js +15 -1
- package/dist/icons/basic/thumbs_up.js +15 -1
- package/dist/icons/basic/thumbs_up_filled.js +15 -1
- package/dist/icons/basic/toggle_left.js +15 -1
- package/dist/icons/basic/toggle_right.js +15 -1
- package/dist/icons/basic/translate.js +15 -1
- package/dist/icons/basic/trash.js +15 -1
- package/dist/icons/basic/trash_slash.js +15 -1
- package/dist/icons/basic/underline.js +15 -1
- package/dist/icons/basic/upload.js +15 -1
- package/dist/icons/basic/video.js +15 -1
- package/dist/icons/basic/video_add.js +16 -1
- package/dist/icons/basic/video_slash.js +15 -1
- package/dist/icons/basic/wrench.js +15 -1
- package/dist/icons/basic/zoom_in.js +15 -1
- package/dist/icons/basic/zoom_out.js +15 -1
- package/dist/icons/data/bar_chart.js +15 -1
- package/dist/icons/data/bar_chart_downward.js +15 -1
- package/dist/icons/data/bar_chart_downward_outline.js +15 -1
- package/dist/icons/data/bar_chart_upward.js +15 -1
- package/dist/icons/data/bar_chart_upward_outline.js +15 -1
- package/dist/icons/data/candlestick_chart.js +15 -1
- package/dist/icons/data/four_circles.js +15 -1
- package/dist/icons/data/legend_toggle.js +15 -1
- package/dist/icons/data/line_chart.js +15 -1
- package/dist/icons/data/line_chart_area.js +15 -1
- package/dist/icons/data/line_chart_area_shaded.js +15 -1
- package/dist/icons/data/line_chart_double.js +15 -1
- package/dist/icons/data/line_chart_downward.js +15 -1
- package/dist/icons/data/line_chart_node.js +15 -1
- package/dist/icons/data/line_chart_outline.js +15 -1
- package/dist/icons/data/line_chart_search.js +15 -1
- package/dist/icons/data/line_chart_stars.js +15 -1
- package/dist/icons/data/line_chart_upward.js +15 -1
- package/dist/icons/data/pie_chart.js +16 -1
- package/dist/icons/data/tree.js +15 -1
- package/dist/icons/email/mail.js +15 -1
- package/dist/icons/email/mail_check.js +15 -1
- package/dist/icons/email/mail_minus.js +15 -1
- package/dist/icons/email/mail_send.js +15 -1
- package/dist/icons/email/send.js +15 -1
- package/dist/icons/email/send_close.js +15 -1
- package/dist/icons/email/send_schedule.js +15 -1
- package/dist/icons/email/send_text.js +15 -1
- package/dist/icons/emoji/emoji_add.js +15 -1
- package/dist/icons/emoji/laughing.js +15 -1
- package/dist/icons/emoji/neutral.js +15 -1
- package/dist/icons/emoji/sad.js +15 -1
- package/dist/icons/emoji/shocked.js +15 -1
- package/dist/icons/emoji/smile.js +15 -1
- package/dist/icons/file/clipboard.js +15 -1
- package/dist/icons/file/clipboard_check.js +15 -1
- package/dist/icons/file/clipboard_close.js +15 -1
- package/dist/icons/file/clipboard_minus.js +15 -1
- package/dist/icons/file/clipboard_plus.js +15 -1
- package/dist/icons/file/clipboard_text.js +15 -1
- package/dist/icons/file/file.js +15 -1
- package/dist/icons/file/file_add.js +15 -1
- package/dist/icons/file/file_check.js +15 -1
- package/dist/icons/file/file_close.js +15 -1
- package/dist/icons/file/file_code.js +15 -1
- package/dist/icons/file/file_download.js +15 -1
- package/dist/icons/file/file_draft.js +15 -1
- package/dist/icons/file/file_gear.js +16 -1
- package/dist/icons/file/file_minus.js +15 -1
- package/dist/icons/file/file_plus.js +15 -1
- package/dist/icons/file/file_scan.js +15 -1
- package/dist/icons/file/file_shred.js +15 -1
- package/dist/icons/file/file_text.js +15 -1
- package/dist/icons/file/file_upload.js +15 -1
- package/dist/icons/file/folder.js +15 -1
- package/dist/icons/file/folder_add.js +15 -1
- package/dist/icons/file/folder_arrow.js +15 -1
- package/dist/icons/file/folder_check.js +15 -1
- package/dist/icons/file/folder_close.js +15 -1
- package/dist/icons/file/folder_cloud.js +15 -1
- package/dist/icons/file/folder_gear.js +16 -1
- package/dist/icons/file/folder_minus.js +15 -1
- package/dist/icons/file/folder_music.js +15 -1
- package/dist/icons/file/folder_open.js +15 -1
- package/dist/icons/file/folder_plus.js +15 -1
- package/dist/icons/file/folder_zip.js +15 -1
- package/dist/icons/file/note.js +15 -1
- package/dist/icons/file/note_text.js +15 -1
- package/dist/icons/file/pdf.js +15 -1
- package/dist/icons/file/photo.js +15 -1
- package/dist/icons/finance/bitcoin.js +15 -1
- package/dist/icons/finance/coins.js +19 -1
- package/dist/icons/finance/credit_card.js +15 -1
- package/dist/icons/finance/credit_card_add.js +15 -1
- package/dist/icons/finance/credit_card_face.js +15 -1
- package/dist/icons/finance/credit_card_member.js +15 -1
- package/dist/icons/finance/credit_card_outcome.js +15 -1
- package/dist/icons/finance/credit_card_scan.js +15 -1
- package/dist/icons/finance/credit_card_share.js +15 -1
- package/dist/icons/finance/credit_card_slash.js +15 -1
- package/dist/icons/finance/currency_exchange.js +15 -1
- package/dist/icons/finance/dollar.js +15 -1
- package/dist/icons/finance/ethereum.js +15 -1
- package/dist/icons/finance/paypass.js +15 -1
- package/dist/icons/finance/strongbox.js +15 -1
- package/dist/icons/finance/wallet.js +15 -1
- package/dist/icons/index.js +1095 -1
- package/dist/icons/layout/block_align_bottom.js +15 -1
- package/dist/icons/layout/block_align_center.js +15 -1
- package/dist/icons/layout/block_align_left.js +15 -1
- package/dist/icons/layout/block_align_middle.js +15 -1
- package/dist/icons/layout/block_align_right.js +15 -1
- package/dist/icons/layout/block_align_top.js +15 -1
- package/dist/icons/layout/block_horizontal.js +15 -1
- package/dist/icons/layout/block_vertical.js +15 -1
- package/dist/icons/layout/edit_shape.js +15 -1
- package/dist/icons/layout/elements.js +15 -1
- package/dist/icons/layout/elements_add.js +15 -1
- package/dist/icons/layout/elements_filled.js +15 -1
- package/dist/icons/layout/elements_masonry.js +15 -1
- package/dist/icons/layout/frame.js +15 -1
- package/dist/icons/layout/frame_stack.js +15 -1
- package/dist/icons/layout/grid.js +15 -1
- package/dist/icons/layout/grid_column_three.js +15 -1
- package/dist/icons/layout/grid_column_two.js +15 -1
- package/dist/icons/layout/grid_dynamic.js +15 -1
- package/dist/icons/layout/grid_frame.js +15 -1
- package/dist/icons/layout/grid_row_three.js +15 -1
- package/dist/icons/layout/grid_row_two.js +15 -1
- package/dist/icons/layout/grid_six.js +15 -1
- package/dist/icons/layout/grid_small.js +15 -1
- package/dist/icons/layout/iframe.js +15 -1
- package/dist/icons/layout/kanban.js +15 -1
- package/dist/icons/layout/layout.js +15 -1
- package/dist/icons/layout/list.js +15 -1
- package/dist/icons/layout/list_filled.js +20 -1
- package/dist/icons/layout/padding.js +15 -1
- package/dist/icons/layout/page_break.js +15 -1
- package/dist/icons/layout/rotate_left.js +15 -1
- package/dist/icons/layout/rotate_right.js +15 -1
- package/dist/icons/layout/ruler.js +15 -1
- package/dist/icons/layout/segment.js +15 -1
- package/dist/icons/layout/select_area.js +15 -1
- package/dist/icons/layout/select_boundary.js +15 -1
- package/dist/icons/layout/sidebar_left.js +15 -1
- package/dist/icons/layout/sidebar_right.js +15 -1
- package/dist/icons/layout/slides.js +15 -1
- package/dist/icons/layout/slides_horizontal.js +15 -1
- package/dist/icons/layout/slides_vertical.js +20 -1
- package/dist/icons/layout/stack.js +15 -1
- package/dist/icons/layout/text.js +15 -1
- package/dist/icons/maps/atlas.js +15 -1
- package/dist/icons/maps/compass.js +15 -1
- package/dist/icons/maps/direction.js +15 -1
- package/dist/icons/maps/direction_angled.js +15 -1
- package/dist/icons/maps/globe.js +15 -1
- package/dist/icons/maps/globe_slash.js +15 -1
- package/dist/icons/maps/location.js +15 -1
- package/dist/icons/maps/location_slash.js +15 -1
- package/dist/icons/maps/map.js +15 -1
- package/dist/icons/maps/marker.js +15 -1
- package/dist/icons/maps/panorama.js +15 -1
- package/dist/icons/maps/pin.js +15 -1
- package/dist/icons/maps/pin_arrow.js +15 -1
- package/dist/icons/maps/pin_location.js +15 -1
- package/dist/icons/maps/pin_plus.js +15 -1
- package/dist/icons/maps/pin_question.js +15 -1
- package/dist/icons/maps/pin_slash.js +15 -1
- package/dist/icons/maps/push_pin.js +15 -1
- package/dist/icons/maps/push_pin_filled.js +15 -1
- package/dist/icons/maps/push_pin_slash.js +15 -1
- package/dist/icons/maps/radar.js +15 -1
- package/dist/icons/maps/route.js +15 -1
- package/dist/icons/message/bubble.js +15 -1
- package/dist/icons/message/bubble_question.js +15 -1
- package/dist/icons/message/comment.js +15 -1
- package/dist/icons/message/comment_add.js +15 -1
- package/dist/icons/message/comment_check.js +15 -1
- package/dist/icons/message/comment_close.js +15 -1
- package/dist/icons/message/comment_minus.js +15 -1
- package/dist/icons/message/comment_text.js +15 -1
- package/dist/icons/misc/advertisement.js +15 -1
- package/dist/icons/misc/atom.js +15 -1
- package/dist/icons/misc/bone.js +15 -1
- package/dist/icons/misc/brightness_high.js +15 -1
- package/dist/icons/misc/brightness_low.js +15 -1
- package/dist/icons/misc/contrast.js +15 -1
- package/dist/icons/misc/crosshairs.js +15 -1
- package/dist/icons/misc/crown.js +15 -1
- package/dist/icons/misc/footprint.js +15 -1
- package/dist/icons/misc/form.js +15 -1
- package/dist/icons/misc/funnel.js +15 -1
- package/dist/icons/misc/infinite.js +15 -1
- package/dist/icons/misc/insert_button.js +15 -1
- package/dist/icons/misc/light_bulb.js +15 -1
- package/dist/icons/misc/moon.js +15 -1
- package/dist/icons/misc/nut.js +15 -1
- package/dist/icons/misc/planet.js +15 -1
- package/dist/icons/misc/plus_thick.js +15 -1
- package/dist/icons/misc/pocket.js +15 -1
- package/dist/icons/misc/rocket.js +15 -1
- package/dist/icons/misc/soup.js +19 -1
- package/dist/icons/misc/sun.js +15 -1
- package/dist/icons/misc/toy_horse.js +15 -1
- package/dist/icons/misc/trophy.js +15 -1
- package/dist/icons/misc/watercloset.js +15 -1
- package/dist/icons/notifications/alert_circle.js +15 -1
- package/dist/icons/notifications/alert_octogon.js +15 -1
- package/dist/icons/notifications/alert_triangle.js +15 -1
- package/dist/icons/notifications/app_notification.js +15 -1
- package/dist/icons/notifications/bell.js +15 -1
- package/dist/icons/notifications/bell_alert.js +15 -1
- package/dist/icons/notifications/bell_checkmark.js +15 -1
- package/dist/icons/notifications/bell_minus.js +15 -1
- package/dist/icons/notifications/bell_plus.js +15 -1
- package/dist/icons/notifications/bell_ring.js +17 -1
- package/dist/icons/notifications/bell_slash.js +15 -1
- package/dist/icons/notifications/information.js +15 -1
- package/dist/icons/notifications/minus_octogon.js +15 -1
- package/dist/icons/notifications/question_circle.js +15 -1
- package/dist/icons/people/group.js +15 -1
- package/dist/icons/people/group_add.js +15 -1
- package/dist/icons/people/group_chat.js +17 -1
- package/dist/icons/people/group_remove.js +15 -1
- package/dist/icons/people/group_send.js +16 -1
- package/dist/icons/people/groups.js +15 -1
- package/dist/icons/people/person.js +15 -1
- package/dist/icons/people/person_add.js +15 -1
- package/dist/icons/people/person_checkmark.js +15 -1
- package/dist/icons/people/person_circle.js +17 -1
- package/dist/icons/people/person_close.js +17 -1
- package/dist/icons/people/person_remove.js +15 -1
- package/dist/icons/people/person_slash.js +17 -1
- package/dist/icons/phone/keypad.js +15 -1
- package/dist/icons/phone/phone.js +15 -1
- package/dist/icons/phone/phone_add.js +15 -1
- package/dist/icons/phone/phone_calling.js +15 -1
- package/dist/icons/phone/phone_check.js +15 -1
- package/dist/icons/phone/phone_close.js +15 -1
- package/dist/icons/phone/phone_decline.js +15 -1
- package/dist/icons/phone/phone_forwarded.js +15 -1
- package/dist/icons/phone/phone_hash.js +15 -1
- package/dist/icons/phone/phone_incoming.js +15 -1
- package/dist/icons/phone/phone_outgoing.js +15 -1
- package/dist/icons/phone/phone_pause.js +15 -1
- package/dist/icons/phone/phone_slash.js +15 -1
- package/dist/icons/phone/voicemail.js +15 -1
- package/dist/icons/security/key.js +15 -1
- package/dist/icons/security/key_slash.js +15 -1
- package/dist/icons/security/lock.js +15 -1
- package/dist/icons/security/lock_circle.js +15 -1
- package/dist/icons/security/lock_open.js +15 -1
- package/dist/icons/security/lock_slash.js +15 -1
- package/dist/icons/security/shield.js +15 -1
- package/dist/icons/security/shield_checkmark.js +15 -1
- package/dist/icons/security/shield_lock.js +15 -1
- package/dist/icons/security/shield_slash.js +15 -1
- package/dist/icons/security/verified.js +15 -1
- package/dist/icons/shopping/basket.js +15 -1
- package/dist/icons/shopping/cart.js +15 -1
- package/dist/icons/shopping/cart_filled.js +15 -1
- package/dist/icons/shopping/coupon.js +15 -1
- package/dist/icons/shopping/coupon_cut.js +15 -1
- package/dist/icons/shopping/delivery.js +15 -1
- package/dist/icons/shopping/discount.js +15 -1
- package/dist/icons/shopping/gift.js +15 -1
- package/dist/icons/shopping/gift_bag.js +15 -1
- package/dist/icons/shopping/inventory.js +15 -1
- package/dist/icons/shopping/point_of_sale.js +15 -1
- package/dist/icons/shopping/shirt.js +15 -1
- package/dist/icons/shopping/tag.js +15 -1
- package/dist/icons/shopping/tag_diagonal.js +15 -1
- package/dist/icons/shopping/tote.js +15 -1
- package/dist/icons/special/upload_audio.js +20 -1
- package/dist/icons/special/upload_file.js +15 -1
- package/dist/icons/special/upload_image.js +17 -1
- package/dist/icons/special/upload_video.js +18 -1
- package/dist/icons/symbols/at.js +15 -1
- package/dist/icons/symbols/cc.js +15 -1
- package/dist/icons/symbols/cmd.js +15 -1
- package/dist/icons/symbols/facebook.js +15 -1
- package/dist/icons/symbols/google.js +18 -1
- package/dist/icons/symbols/hash.js +15 -1
- package/dist/icons/symbols/instagram.js +27 -1
- package/dist/icons/symbols/messenger.js +21 -1
- package/dist/icons/symbols/twitter.js +15 -1
- package/dist/icons/technology/battery.js +15 -1
- package/dist/icons/technology/battery_100.js +15 -1
- package/dist/icons/technology/battery_20.js +15 -1
- package/dist/icons/technology/battery_40.js +15 -1
- package/dist/icons/technology/battery_60.js +15 -1
- package/dist/icons/technology/battery_80.js +15 -1
- package/dist/icons/technology/battery_charging.js +15 -1
- package/dist/icons/technology/battery_slash.js +15 -1
- package/dist/icons/technology/devices.js +15 -1
- package/dist/icons/technology/floppy_disk.js +15 -1
- package/dist/icons/technology/iphone.js +15 -1
- package/dist/icons/technology/laptop.js +15 -1
- package/dist/icons/technology/mobile.js +15 -1
- package/dist/icons/technology/monitor.js +15 -1
- package/dist/icons/technology/server.js +15 -1
- package/dist/icons/technology/sim_card.js +15 -1
- package/dist/icons/technology/usb_stick.js +15 -1
- package/dist/icons/text/align_center.js +15 -1
- package/dist/icons/text/align_justified.js +15 -1
- package/dist/icons/text/align_left.js +15 -1
- package/dist/icons/text/align_right.js +15 -1
- package/dist/icons/text/code_block.js +15 -1
- package/dist/icons/text/divider.js +15 -1
- package/dist/icons/text/footnote.js +17 -1
- package/dist/icons/text/indent_decrease.js +15 -1
- package/dist/icons/text/indent_increase.js +15 -1
- package/dist/icons/text/list_ordered.js +15 -1
- package/dist/icons/text/list_unordered.js +15 -1
- package/dist/icons/text/quote.js +15 -1
- package/dist/icons/text/table.js +15 -1
- package/dist/icons/time/alarm.js +15 -1
- package/dist/icons/time/alarm_checkmark.js +15 -1
- package/dist/icons/time/alarm_minus.js +15 -1
- package/dist/icons/time/alarm_plus.js +15 -1
- package/dist/icons/time/alarm_slash.js +15 -1
- package/dist/icons/time/alarm_snooze.js +15 -1
- package/dist/icons/time/calendar.js +15 -1
- package/dist/icons/time/calendar_add.js +15 -1
- package/dist/icons/time/calendar_checkmark.js +15 -1
- package/dist/icons/time/calendar_close.js +15 -1
- package/dist/icons/time/calendar_dates.js +15 -1
- package/dist/icons/time/calendar_minus.js +15 -1
- package/dist/icons/time/calendar_plus.js +15 -1
- package/dist/icons/time/calendar_scroll.js +17 -1
- package/dist/icons/time/clock.js +15 -1
- package/dist/icons/time/clock_history.js +15 -1
- package/dist/icons/time/stopwatch.js +15 -1
- package/dist/icons/time/timer.js +15 -1
- package/dist/icons/time/watch.js +15 -1
- package/dist/index.js +117 -1
- package/dist/utils/date.js +73 -1
- package/dist/utils/function.js +5 -1
- package/package.json +2 -4
- package/dist/styles/output.css +0 -1776
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
|
|
12
|
+
const Select = ({ label, onClick, selected, sx, value, }) => {
|
|
13
|
+
return (React__default.default.createElement(Label, { onClick: (event) => onClick(event, value), "$sx": sx },
|
|
14
|
+
React__default.default.createElement("input", { value: value, type: "radio", checked: selected, readOnly: true }),
|
|
15
|
+
React__default.default.createElement(SelectBox, { "$selected": selected }),
|
|
16
|
+
React__default.default.createElement(paragraph.P, { as: "div" }, label)));
|
|
17
|
+
};
|
|
18
|
+
const Label = styled.styled.div `
|
|
3
19
|
display: flex;
|
|
4
20
|
flex-flow: row nowrap;
|
|
5
21
|
gap: 24px;
|
|
@@ -10,8 +26,9 @@
|
|
|
10
26
|
input {
|
|
11
27
|
display: none;
|
|
12
28
|
}
|
|
13
|
-
${({$sx
|
|
14
|
-
|
|
29
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
30
|
+
`;
|
|
31
|
+
const SelectBox = styled.styled.div `
|
|
15
32
|
position: relative;
|
|
16
33
|
width: 18px;
|
|
17
34
|
height: 18px;
|
|
@@ -19,7 +36,8 @@
|
|
|
19
36
|
border-radius: 4px;
|
|
20
37
|
flex-shrink: 0;
|
|
21
38
|
|
|
22
|
-
${({$selected
|
|
39
|
+
${({ $selected }) => $selected
|
|
40
|
+
? `
|
|
23
41
|
background-color: var(--color-primary-blue-2);
|
|
24
42
|
border-color: var(--color-primary-blue-2);
|
|
25
43
|
|
|
@@ -31,5 +49,8 @@
|
|
|
31
49
|
font-size: 13px;
|
|
32
50
|
color: var(--color-white);
|
|
33
51
|
font-weight: 500;
|
|
34
|
-
}
|
|
35
|
-
|
|
52
|
+
}`
|
|
53
|
+
: ''}
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
exports.Select = Select;
|
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var box = require('../../atoms/box/box.js');
|
|
7
|
+
var checkmark_circle = require('../../../icons/basic/checkmark_circle.js');
|
|
8
|
+
var alert_circle = require('../../../icons/notifications/alert_circle.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
+
|
|
14
|
+
const TextArea = ({ bg = 'var(--color-blue-10)', disabled, helperText, icon, label, maxCharacters, minHeight, minWidth, name, onChange, placeholder, resize = false, successful, sx, value, warning, }) => {
|
|
15
|
+
const ref = React__default.default.useRef(null);
|
|
16
|
+
React__default.default.useEffect(() => {
|
|
17
|
+
if (ref.current) {
|
|
18
|
+
ref.current.style.height = `${minHeight}px`;
|
|
19
|
+
const scrollHeight = ref.current.scrollHeight;
|
|
20
|
+
ref.current.style.height = scrollHeight + 'px';
|
|
21
|
+
}
|
|
22
|
+
}, [ref.current, value]);
|
|
23
|
+
return (React__default.default.createElement(Label, { "$disabled": disabled, "$sx": sx },
|
|
24
|
+
label,
|
|
25
|
+
React__default.default.createElement(InputWrapper, { "$bg": bg, "$minWidth": minWidth, "$successful": successful, "$warning": warning },
|
|
26
|
+
icon,
|
|
27
|
+
React__default.default.createElement(TextAreaElement, { disabled: disabled, name: name, onChange: onChange, placeholder: placeholder, ref: ref, value: maxCharacters
|
|
28
|
+
? value.slice(0, maxCharacters - 1)
|
|
29
|
+
: value, "$minHeight": minHeight, "$resize": resize }),
|
|
30
|
+
successful && React__default.default.createElement(checkmark_circle.CheckmarkCircle, { color: "green-3" }),
|
|
31
|
+
warning && React__default.default.createElement(alert_circle.AlertCircle, { color: "red-4" })),
|
|
32
|
+
React__default.default.createElement(box.Box, { "$gap": 16, "$justify": "space-between" },
|
|
33
|
+
helperText && React__default.default.createElement(HelperText, null, helperText),
|
|
34
|
+
maxCharacters && (React__default.default.createElement(MaxCharactersText, null,
|
|
35
|
+
value.length,
|
|
36
|
+
" / ",
|
|
37
|
+
maxCharacters)))));
|
|
38
|
+
};
|
|
39
|
+
const Label = styled.styled.label `
|
|
3
40
|
width: 100%;
|
|
4
41
|
display: flex;
|
|
5
42
|
gap: 4px;
|
|
@@ -10,24 +47,27 @@
|
|
|
10
47
|
font-weight: 500;
|
|
11
48
|
line-height: 26px;
|
|
12
49
|
|
|
13
|
-
${({$disabled
|
|
50
|
+
${({ $disabled }) => $disabled
|
|
51
|
+
? `
|
|
14
52
|
color: var(--color-grey-7) !important;
|
|
15
53
|
& > * {
|
|
16
54
|
color: var(--color-grey-7) !important;
|
|
17
55
|
}
|
|
18
56
|
& > div:first-of-type {
|
|
19
57
|
background-color: var(--color-grey-9) !important;
|
|
20
|
-
}
|
|
58
|
+
}`
|
|
59
|
+
: ''}
|
|
21
60
|
|
|
22
|
-
${({$sx
|
|
23
|
-
|
|
24
|
-
|
|
61
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
62
|
+
`;
|
|
63
|
+
const InputWrapper = styled.styled.div `
|
|
64
|
+
min-width: ${({ $minWidth }) => ($minWidth ? $minWidth + 'px;' : '')}
|
|
25
65
|
display: flex;
|
|
26
66
|
gap: 8px;
|
|
27
67
|
align-items: center;
|
|
28
68
|
box-sizing: border-box;
|
|
29
69
|
padding: 12px;
|
|
30
|
-
background-color: ${({$bg
|
|
70
|
+
background-color: ${({ $bg }) => $bg};
|
|
31
71
|
border-radius: 8px;
|
|
32
72
|
border: 1px solid transparent;
|
|
33
73
|
|
|
@@ -39,10 +79,11 @@
|
|
|
39
79
|
border-color: var(--color-primary-blue-2);
|
|
40
80
|
}
|
|
41
81
|
|
|
42
|
-
${({$successful
|
|
43
|
-
${({$warning
|
|
44
|
-
|
|
45
|
-
|
|
82
|
+
${({ $successful }) => $successful ? 'border-color: var(--color-green-3) !important;' : ''}
|
|
83
|
+
${({ $warning }) => $warning ? 'border-color: var(--color-red-4) !important;' : ''}
|
|
84
|
+
`;
|
|
85
|
+
const TextAreaElement = styled.styled.textarea `
|
|
86
|
+
min-width: ${({ $minHeight }) => ($minHeight ? $minHeight - 24 + 'px;' : '')}
|
|
46
87
|
padding: 0px;
|
|
47
88
|
flex: 1;
|
|
48
89
|
font-family: var(--font-inter);
|
|
@@ -58,13 +99,15 @@
|
|
|
58
99
|
color: var(--color-grey-6);
|
|
59
100
|
}
|
|
60
101
|
|
|
61
|
-
${({$resize
|
|
62
|
-
|
|
102
|
+
${({ $resize }) => ($resize ? '' : 'resize: none;')}
|
|
103
|
+
`;
|
|
104
|
+
const HelperText = styled.styled.p `
|
|
63
105
|
color: var(--color-grey-4);
|
|
64
106
|
font-family: var(--font-inter);
|
|
65
107
|
font-size: 14px;
|
|
66
108
|
line-height: 20px;
|
|
67
|
-
|
|
109
|
+
`;
|
|
110
|
+
const MaxCharactersText = styled.styled.p `
|
|
68
111
|
text-align: right;
|
|
69
112
|
color: var(--color-grey-6);
|
|
70
113
|
font-family: var(--font-inter);
|
|
@@ -72,4 +115,6 @@
|
|
|
72
115
|
font-style: normal;
|
|
73
116
|
font-weight: 400;
|
|
74
117
|
line-height: 20px;
|
|
75
|
-
`;
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
exports.TextArea = TextArea;
|
|
@@ -1,32 +1,107 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var chip = require('../../feedback/chip/chip.js');
|
|
7
|
+
var checkmark_circle = require('../../../icons/basic/checkmark_circle.js');
|
|
8
|
+
var alert_circle = require('../../../icons/notifications/alert_circle.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
+
|
|
14
|
+
const TextInput = ({ bg = 'var(--color-blue-10)', disabled, helperText, icon, label, maxCharacters, multiple, name, onChange, onMultipleChange, placeholder, size = 'large', successful, sx, value, warning, type = 'text', placeIconAtTheEnd = false, inputSx, }) => {
|
|
15
|
+
const id = React__default.default.useId();
|
|
16
|
+
const isMultiple = multiple;
|
|
17
|
+
const [multipleValueToAdd, setMultipleValueToAdd] = React__default.default.useState('');
|
|
18
|
+
const handleMultipleValueToAdd = (event) => {
|
|
19
|
+
setMultipleValueToAdd(event.target.value);
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* when there is no text in the input,
|
|
23
|
+
* pop the previous multiple value out
|
|
24
|
+
*/
|
|
25
|
+
const handleMultipleValueDelete = (event) => {
|
|
26
|
+
if (value.length &&
|
|
27
|
+
onMultipleChange &&
|
|
28
|
+
!multipleValueToAdd &&
|
|
29
|
+
(event.key === 'Delete' || event.key === 'Backspace')) {
|
|
30
|
+
onMultipleChange(value.slice(0, value.length - 1));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* when a user presses enter (submit) add the input to the values
|
|
35
|
+
* but don't add the same value twice
|
|
36
|
+
*/
|
|
37
|
+
const handleMultipleAdd = (event) => {
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
const alreadyHasValue = value.includes(multipleValueToAdd);
|
|
41
|
+
if (onMultipleChange && !alreadyHasValue) {
|
|
42
|
+
onMultipleChange([...value, multipleValueToAdd]);
|
|
43
|
+
}
|
|
44
|
+
setMultipleValueToAdd('');
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* when the user clicks on the chip to remove it, remove it frm the value
|
|
48
|
+
*/
|
|
49
|
+
const handleMultipleItemRemoval = (removalItem) => {
|
|
50
|
+
onMultipleChange &&
|
|
51
|
+
onMultipleChange(value.filter((item) => item !== removalItem));
|
|
52
|
+
};
|
|
53
|
+
return (React__default.default.createElement(Label, { "$disabled": disabled, "$size": size, "$sx": sx },
|
|
54
|
+
label,
|
|
55
|
+
React__default.default.createElement(InputWrapper, { "$bg": bg, "$size": size, "$successful": successful, "$warning": warning },
|
|
56
|
+
!placeIconAtTheEnd && icon,
|
|
57
|
+
isMultiple && (React__default.default.createElement(MultipleInputWrapper, { onSubmit: handleMultipleAdd },
|
|
58
|
+
value.filter(Boolean).map((item, index) => (React__default.default.createElement(chip.Chip, { key: id + item + index, color: "blue", size: "small", onDismiss: () => handleMultipleItemRemoval(item) }, item))),
|
|
59
|
+
React__default.default.createElement(Input, { onChange: handleMultipleValueToAdd, onKeyDown: handleMultipleValueDelete, value: multipleValueToAdd, "$size": size, "$sx": inputSx }))),
|
|
60
|
+
!isMultiple && (React__default.default.createElement(Input, { disabled: disabled, name: name, onChange: onChange, placeholder: placeholder, value: type === 'number'
|
|
61
|
+
? value
|
|
62
|
+
: maxCharacters
|
|
63
|
+
? value?.slice(0, maxCharacters - 1) || ''
|
|
64
|
+
: value, "$size": size, type: type, "$sx": inputSx })),
|
|
65
|
+
maxCharacters && type !== 'number' && !placeIconAtTheEnd && (React__default.default.createElement(MaxCharactersText, { "$size": size },
|
|
66
|
+
value?.length || 0,
|
|
67
|
+
" / ",
|
|
68
|
+
maxCharacters)),
|
|
69
|
+
placeIconAtTheEnd && icon,
|
|
70
|
+
successful && React__default.default.createElement(checkmark_circle.CheckmarkCircle, { color: "green-3" }),
|
|
71
|
+
warning && React__default.default.createElement(alert_circle.AlertCircle, { color: "red-4" })),
|
|
72
|
+
helperText && React__default.default.createElement(HelperText, { "$size": size }, helperText)));
|
|
73
|
+
};
|
|
74
|
+
const Label = styled.styled.div `
|
|
3
75
|
width: 100%;
|
|
4
76
|
display: flex;
|
|
5
77
|
gap: 4px;
|
|
6
78
|
flex-flow: column nowrap;
|
|
7
79
|
color: var(--color-grey-2);
|
|
8
80
|
font-family: var(--font-inter);
|
|
9
|
-
font-size: ${({$size
|
|
81
|
+
font-size: ${({ $size }) => ($size === 'small' ? 16 : 18)}px;
|
|
10
82
|
font-weight: 500;
|
|
11
|
-
line-height: ${({$size
|
|
83
|
+
line-height: ${({ $size }) => ($size === 'small' ? 24 : 26)}px;
|
|
12
84
|
|
|
13
|
-
${({$disabled
|
|
85
|
+
${({ $disabled }) => $disabled
|
|
86
|
+
? `
|
|
14
87
|
color: var(--color-grey-7) !important;
|
|
15
88
|
& > * {
|
|
16
89
|
color: var(--color-grey-7) !important;
|
|
17
90
|
}
|
|
18
91
|
& > div {
|
|
19
92
|
background-color: var(--color-grey-9) !important;
|
|
20
|
-
}
|
|
93
|
+
}`
|
|
94
|
+
: ''}
|
|
21
95
|
|
|
22
|
-
${({$sx
|
|
23
|
-
|
|
96
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
97
|
+
`;
|
|
98
|
+
const InputWrapper = styled.styled.div `
|
|
24
99
|
display: flex;
|
|
25
100
|
gap: 8px;
|
|
26
101
|
align-items: center;
|
|
27
102
|
box-sizing: border-box;
|
|
28
|
-
padding: ${({$size
|
|
29
|
-
background-color: ${({$bg
|
|
103
|
+
padding: ${({ $size }) => ($size === 'small' ? '6px 12px' : '12px')};
|
|
104
|
+
background-color: ${({ $bg }) => $bg};
|
|
30
105
|
border-radius: 8px;
|
|
31
106
|
border: 1px solid transparent;
|
|
32
107
|
|
|
@@ -38,14 +113,15 @@
|
|
|
38
113
|
border-color: var(--color-primary-blue-2);
|
|
39
114
|
}
|
|
40
115
|
|
|
41
|
-
${({$successful
|
|
42
|
-
${({$warning
|
|
43
|
-
|
|
116
|
+
${({ $successful }) => $successful ? 'border-color: var(--color-green-3) !important;' : ''}
|
|
117
|
+
${({ $warning }) => $warning ? 'border-color: var(--color-red-4) !important;' : ''}
|
|
118
|
+
`;
|
|
119
|
+
const Input = styled.styled.input `
|
|
44
120
|
padding: 0px;
|
|
45
121
|
flex: 1;
|
|
46
122
|
font-family: var(--font-inter);
|
|
47
|
-
font-size: ${({$size
|
|
48
|
-
line-height: ${({$size
|
|
123
|
+
font-size: ${({ $size }) => ($size === 'small' ? 14 : 16)}px;
|
|
124
|
+
line-height: ${({ $size }) => ($size === 'small' ? 20 : 24)}px;
|
|
49
125
|
color: var(--color-grey-3);
|
|
50
126
|
border: none;
|
|
51
127
|
outline: none;
|
|
@@ -56,21 +132,26 @@
|
|
|
56
132
|
color: var(--color-grey-6);
|
|
57
133
|
}
|
|
58
134
|
|
|
59
|
-
${({$sx
|
|
60
|
-
|
|
135
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
136
|
+
`;
|
|
137
|
+
const HelperText = styled.styled.span `
|
|
61
138
|
color: var(--color-grey-4);
|
|
62
139
|
font-family: var(--font-inter);
|
|
63
|
-
font-size: ${({$size
|
|
64
|
-
line-height: ${({$size
|
|
65
|
-
|
|
140
|
+
font-size: ${({ $size }) => ($size === 'small' ? 12 : 14)}px;
|
|
141
|
+
line-height: ${({ $size }) => ($size === 'small' ? 16 : 20)}px;
|
|
142
|
+
`;
|
|
143
|
+
const MaxCharactersText = styled.styled.span `
|
|
66
144
|
color: var(--color-grey-6);
|
|
67
145
|
font-family: var(--font-inter);
|
|
68
146
|
font-size: 14px;
|
|
69
147
|
font-style: normal;
|
|
70
148
|
font-weight: 400;
|
|
71
149
|
line-height: 20px;
|
|
72
|
-
|
|
150
|
+
`;
|
|
151
|
+
const MultipleInputWrapper = styled.styled.form `
|
|
73
152
|
display: flex;
|
|
74
153
|
flex-flow: row wrap;
|
|
75
154
|
gap: 8px 16px;
|
|
76
|
-
`;
|
|
155
|
+
`;
|
|
156
|
+
|
|
157
|
+
exports.TextInput = TextInput;
|
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var dropdown = require('../../actions/dropdown/dropdown.js');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var clock = require('../../../icons/time/clock.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
+
|
|
13
|
+
const Time = ({ selectedTime, setTime, selectedPeriod, setPeriod, }) => {
|
|
14
|
+
const hours = React__default.default.useMemo(() => {
|
|
15
|
+
const hours = [];
|
|
16
|
+
for (let i = 1; i <= 12; i++) {
|
|
17
|
+
hours.push(`${i}:00`);
|
|
18
|
+
hours.push(`${i}:15`);
|
|
19
|
+
hours.push(`${i}:30`);
|
|
20
|
+
hours.push(`${i}:45`);
|
|
21
|
+
}
|
|
22
|
+
return hours;
|
|
23
|
+
}, []);
|
|
24
|
+
return (React__default.default.createElement(dropdown.Dropdown, { options: hours.map((hour) => ({
|
|
25
|
+
value: hour,
|
|
26
|
+
label: hour,
|
|
27
|
+
})), containerSx: "height: 440px;", trigger: React__default.default.createElement(InputWrapper, null,
|
|
28
|
+
React__default.default.createElement(Input, { readOnly: true, value: `${selectedTime} ${selectedPeriod}` }),
|
|
29
|
+
React__default.default.createElement(clock.Clock, null)), additionalOptions: [
|
|
30
|
+
{
|
|
31
|
+
label: 'AM',
|
|
32
|
+
value: 'AM',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'PM',
|
|
36
|
+
value: 'PM',
|
|
37
|
+
},
|
|
38
|
+
], onChange: (event) => {
|
|
39
|
+
const value = event.target.getAttribute('data-value') ?? '';
|
|
40
|
+
setTime(value);
|
|
41
|
+
}, additionalOnChange: setPeriod, defaultValue: selectedTime, defaultAdditionalValue: selectedPeriod }));
|
|
42
|
+
};
|
|
43
|
+
const InputWrapper = styled.styled.div `
|
|
3
44
|
width: fit-content;
|
|
4
45
|
display: flex;
|
|
5
46
|
gap: 8px;
|
|
@@ -17,7 +58,8 @@
|
|
|
17
58
|
&:focus-within {
|
|
18
59
|
border-color: var(--color-primary-blue-2);
|
|
19
60
|
}
|
|
20
|
-
|
|
61
|
+
`;
|
|
62
|
+
const Input = styled.styled.input `
|
|
21
63
|
max-width: 120px;
|
|
22
64
|
padding: 0px;
|
|
23
65
|
flex: 1;
|
|
@@ -33,4 +75,6 @@
|
|
|
33
75
|
&::placeholder {
|
|
34
76
|
color: var(--color-grey-6);
|
|
35
77
|
}
|
|
36
|
-
`;
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
exports.Time = Time;
|
|
@@ -1 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var ReactPlayer = require('react-player');
|
|
5
|
+
var Image = require('next/image');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
|
+
var ReactPlayer__default = /*#__PURE__*/_interopDefaultCompat(ReactPlayer);
|
|
11
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
12
|
+
|
|
13
|
+
const Video = ({ controls = true, loop = false, muted, playsInline, src, subtitles, style, thumbnail, }) => {
|
|
14
|
+
const ref = React__default.default.useRef(null);
|
|
15
|
+
return (React__default.default.createElement(ReactPlayer__default.default, { config: {
|
|
16
|
+
file: {
|
|
17
|
+
attributes: {
|
|
18
|
+
crossOrigin: 'true',
|
|
19
|
+
},
|
|
20
|
+
forceHLS: true,
|
|
21
|
+
hlsOptions: {
|
|
22
|
+
autoStartLoad: true,
|
|
23
|
+
},
|
|
24
|
+
tracks: subtitles?.map((subtitle) => ({
|
|
25
|
+
kind: 'subtitles',
|
|
26
|
+
label: subtitle.label,
|
|
27
|
+
src: subtitle.src,
|
|
28
|
+
srcLang: subtitle.locale,
|
|
29
|
+
})),
|
|
30
|
+
},
|
|
31
|
+
}, controls: controls, height: "100%", light: thumbnail ? (React__default.default.createElement(Image__default.default, { alt: "thumbnail for trailer", layout: "fill", priority: true, quality: 100, src: thumbnail, style: { objectFit: 'contain' } })) : undefined, loop: loop, muted: muted, pip: false, playsinline: playsInline, playing: true, ref: ref, style: {
|
|
32
|
+
backgroundColor: 'var(--color-grey-0)',
|
|
33
|
+
maxHeight: 720,
|
|
34
|
+
maxWidth: 1280,
|
|
35
|
+
minHeight: 480,
|
|
36
|
+
overflow: 'hidden',
|
|
37
|
+
position: 'relative',
|
|
38
|
+
...(style || {}),
|
|
39
|
+
}, url: src, width: "100%" }));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.Video = Video;
|
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var Image = require('next/image');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var box = require('../../atoms/box/box.js');
|
|
7
|
+
var seconds_to_duration = require('../../atoms/seconds_to_duration/seconds_to_duration.js');
|
|
8
|
+
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
9
|
+
var lock = require('../../../icons/security/lock.js');
|
|
10
|
+
var play_solid = require('../../../icons/audio_video/play_solid.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
+
var Image__default = /*#__PURE__*/_interopDefaultCompat(Image);
|
|
16
|
+
|
|
17
|
+
const PlaylistItem = ({ duration, onClick, playable, progress = 0, shortDescription, thumbnail, title, }) => {
|
|
18
|
+
return (React__default.default.createElement(Wrapper, { onClick: playable ? onClick : undefined, "$playable": playable },
|
|
19
|
+
playable ? (React__default.default.createElement(play_solid.PlaySolid, { color: "white", size: 16, sx: "position: absolute; left: 8px; bottom: 4px;" })) : (React__default.default.createElement(lock.Lock, { color: "white", size: 16, sx: "position: absolute; left: 8px; bottom: 4px;" })),
|
|
20
|
+
React__default.default.createElement(Image__default.default, { alt: `thumbnail for ${title}`, height: 75, quality: 100, src: thumbnail, width: 133 }),
|
|
21
|
+
progress && duration && (React__default.default.createElement(ProgressBar, { progressPercent: progress / duration })),
|
|
22
|
+
React__default.default.createElement(box.Box, { "$dir": "column", "$gap": 4, sx: "margin-left: 16px; margin-right: auto; flex: 0 1 auto; flex-basis: content;" },
|
|
23
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-10", "$semiBold": true }, title),
|
|
24
|
+
shortDescription && (React__default.default.createElement(paragraph.P, { "$color": "grey-9", "$fontSize": 14, "$lineHeight": 20, "$textClampLines": 2, sx: "max-width: min(500px, 75%);" }, shortDescription))),
|
|
25
|
+
duration && (React__default.default.createElement(paragraph.P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, sx: "flex-shrink: 0;" },
|
|
26
|
+
React__default.default.createElement(seconds_to_duration.SecToDuration, { seconds: duration })))));
|
|
27
|
+
};
|
|
28
|
+
const Wrapper = styled.styled.div `
|
|
2
29
|
width: 100%;
|
|
3
30
|
flex: 0 1 auto;
|
|
4
31
|
display: flex;
|
|
@@ -6,10 +33,16 @@
|
|
|
6
33
|
position: relative;
|
|
7
34
|
box-sizing: border-box;
|
|
8
35
|
cursor: pointer;
|
|
9
|
-
${({$playable
|
|
10
|
-
|
|
36
|
+
${({ $playable }) => $playable ? '' : 'pointer-events: none; cursor: initial;'}
|
|
37
|
+
`;
|
|
38
|
+
const ProgressBar = ({ progressPercent }) => (React__default.default.createElement(ProgressBarSvg, { viewBox: "0 0 133 2", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
39
|
+
React__default.default.createElement("rect", { width: 133 * progressPercent, height: "2", fill: "var(--color-primary-blue-2)" }),
|
|
40
|
+
React__default.default.createElement("rect", { x: 133 * progressPercent, width: 133 - 133 * progressPercent, height: "2", fill: "var(--color-grey-8)" })));
|
|
41
|
+
const ProgressBarSvg = styled.styled.svg `
|
|
11
42
|
width: 133px;
|
|
12
43
|
position: absolute;
|
|
13
44
|
bottom: 0px;
|
|
14
45
|
left: 0px;
|
|
15
|
-
`;
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
exports.PlaylistItem = PlaylistItem;
|