@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,10 +1,147 @@
|
|
|
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 button = require('../../actions/button/button.js');
|
|
8
|
+
var paragraph = require('../../atoms/typography/paragraph.js');
|
|
9
|
+
var chevron_down = require('../../../icons/arrow/chevron_down.js');
|
|
10
|
+
var chevron_up = require('../../../icons/arrow/chevron_up.js');
|
|
11
|
+
var close = require('../../../icons/basic/close.js');
|
|
12
|
+
var styles = require('../../../common/styles.js');
|
|
13
|
+
var filter_option = require('./filter_option.js');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
|
+
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
19
|
+
|
|
20
|
+
const Filter = ({ closeOnBlur = true, disabled, graphic, graphicAlignment = 'left', resetGraphic, label = '', sx, triggerType, options, defaultValue = '', closeOnChange = true, optionOnChange, optionShowClose, checkbox, applyOnClick, resetOnClick, applyResetActions, }) => {
|
|
21
|
+
const multiple = !!checkbox;
|
|
22
|
+
const wrapperRef = React__default.default.useRef(null);
|
|
23
|
+
const optionsRef = React__default.default.useRef(null);
|
|
24
|
+
const [open, setOpen] = React__default.default.useState(false);
|
|
25
|
+
const [selected, setSelected] = React__default.default.useState(() => defaultValue ? defaultValue : multiple ? [] : '');
|
|
26
|
+
const [filterLabel, setFilterLabel] = React__default.default.useState('');
|
|
27
|
+
React__default.default.useEffect(() => {
|
|
28
|
+
if (disabled) {
|
|
29
|
+
setOpen(false);
|
|
30
|
+
}
|
|
31
|
+
}, [disabled]);
|
|
32
|
+
React__default.default.useEffect(() => {
|
|
33
|
+
if (triggerType === 'outlined' && defaultValue === undefined) {
|
|
34
|
+
setSelected(multiple
|
|
35
|
+
? [options[0]?.value]
|
|
36
|
+
: options[0]?.value);
|
|
37
|
+
}
|
|
38
|
+
}, [triggerType, defaultValue]);
|
|
39
|
+
React__default.default.useEffect(() => {
|
|
40
|
+
if (open) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!selected.length) {
|
|
44
|
+
setFilterLabel(label);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
// not using selected[0] since it is required to show the first
|
|
48
|
+
const firstSelected = options.find((option) => typeof option !== 'string' && isSelected(option.value));
|
|
49
|
+
if (typeof selected === 'string') {
|
|
50
|
+
setFilterLabel(firstSelected.label);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
setFilterLabel(selected.length > 1
|
|
54
|
+
? `${firstSelected.label} +${selected.length - 1}`
|
|
55
|
+
: firstSelected.label);
|
|
56
|
+
}, [selected, options, open]);
|
|
57
|
+
const handleOpen = () => {
|
|
58
|
+
if (disabled) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
setOpen((prev) => !prev);
|
|
62
|
+
};
|
|
63
|
+
const handleBlur = (event) => {
|
|
64
|
+
if (closeOnBlur &&
|
|
65
|
+
wrapperRef?.current &&
|
|
66
|
+
!wrapperRef?.current?.contains(event.relatedTarget)) {
|
|
67
|
+
setOpen(false);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const handleChangeSingle = (event) => {
|
|
71
|
+
event.stopPropagation();
|
|
72
|
+
const value = event.target.getAttribute('data-value') ?? '';
|
|
73
|
+
if (selected !== value) {
|
|
74
|
+
setSelected(value);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
setSelected('');
|
|
78
|
+
}
|
|
79
|
+
if (closeOnChange && !applyOnClick) {
|
|
80
|
+
setOpen(false);
|
|
81
|
+
}
|
|
82
|
+
if (optionOnChange)
|
|
83
|
+
optionOnChange(event);
|
|
84
|
+
};
|
|
85
|
+
const handleChangeMultiple = (event) => {
|
|
86
|
+
event.stopPropagation();
|
|
87
|
+
const value = event.target.getAttribute('data-value') ?? '';
|
|
88
|
+
if (Array.isArray(selected) && selected.includes(value)) {
|
|
89
|
+
setSelected((prev) => prev.filter((item) => item !== value));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
setSelected((prev) => [value, ...prev]);
|
|
93
|
+
}
|
|
94
|
+
if (closeOnChange && !applyOnClick) {
|
|
95
|
+
setOpen(false);
|
|
96
|
+
}
|
|
97
|
+
if (optionOnChange)
|
|
98
|
+
optionOnChange(event);
|
|
99
|
+
};
|
|
100
|
+
const handleChange = multiple ? handleChangeMultiple : handleChangeSingle;
|
|
101
|
+
const isSelected = (value) => multiple ? selected.includes(value) : value === selected;
|
|
102
|
+
const dropdownOptions = [
|
|
103
|
+
...options.map((option, index) => {
|
|
104
|
+
if (typeof option === 'string' && option === 'break') {
|
|
105
|
+
return React__default.default.createElement(filter_option.Spacer, { key: `${React__default.default.useId()}-spacer-${index}` });
|
|
106
|
+
}
|
|
107
|
+
return (React__default.default.createElement(filter_option.Option, { key: option.value, onClick: handleChange, selected: isSelected(option.value), checkbox: checkbox, radio: !multiple && triggerType === 'pill', showClose: optionShowClose === undefined
|
|
108
|
+
? index === 0 && triggerType === 'pill'
|
|
109
|
+
: optionShowClose, onClose: () => setOpen(false), ...option }));
|
|
110
|
+
}),
|
|
111
|
+
triggerType === 'pill' && React__default.default.createElement(filter_option.Spacer, { key: `spacer-${options.length}` }),
|
|
112
|
+
];
|
|
113
|
+
const showResetGraphic = resetGraphic &&
|
|
114
|
+
(typeof selected === 'string' ? !!selected : !!selected.length);
|
|
115
|
+
return (React__default.default.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur },
|
|
116
|
+
React__default.default.createElement(FilterTrigger, { disabled: disabled, graphic: graphic, graphicAlignment: graphicAlignment, label: label, onClick: handleOpen, onReset: resetGraphic
|
|
117
|
+
? (event) => {
|
|
118
|
+
event.stopPropagation();
|
|
119
|
+
resetOnClick && resetOnClick(event);
|
|
120
|
+
setSelected(multiple ? [] : '');
|
|
121
|
+
setOpen(false);
|
|
122
|
+
}
|
|
123
|
+
: undefined, open: open, resetGraphic: showResetGraphic, type: triggerType, value: filterLabel }),
|
|
124
|
+
open && (React__default.default.createElement(Container, { ref: optionsRef },
|
|
125
|
+
React__default.default.createElement(React__default.default.Fragment, null,
|
|
126
|
+
dropdownOptions,
|
|
127
|
+
triggerType === 'pill' && applyResetActions && (React__default.default.createElement(box.Box, { "$display": "flex", "$dir": "row", "$align": "center", "$justify": "flex-end", "$gap": 8, sx: "margin-top: 8px; padding-right: 8px; padding-bottom: 8px" },
|
|
128
|
+
React__default.default.createElement(button.Button, { onClick: (event) => {
|
|
129
|
+
resetOnClick && resetOnClick(event);
|
|
130
|
+
setSelected(multiple ? [] : '');
|
|
131
|
+
setOpen(false);
|
|
132
|
+
}, size: "small", type: "text" }, "Reset"),
|
|
133
|
+
React__default.default.createElement(button.Button, { onClick: (event) => {
|
|
134
|
+
applyOnClick && applyOnClick(event);
|
|
135
|
+
setOpen(false);
|
|
136
|
+
}, size: "small", type: "primary" }, "Apply"))))))));
|
|
137
|
+
};
|
|
138
|
+
const Wrapper = styled__default.default.div `
|
|
3
139
|
position: relative;
|
|
4
140
|
display: block;
|
|
5
141
|
outline: none;
|
|
6
|
-
${({$sx
|
|
7
|
-
|
|
142
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
143
|
+
`;
|
|
144
|
+
const Container = styled__default.default.div `
|
|
8
145
|
position: absolute;
|
|
9
146
|
width: max-content;
|
|
10
147
|
z-index: 100;
|
|
@@ -21,7 +158,59 @@
|
|
|
21
158
|
& > div:last-of-type {
|
|
22
159
|
border-radius: 0px 0px 8px 8px;
|
|
23
160
|
}
|
|
24
|
-
|
|
161
|
+
`;
|
|
162
|
+
/********************************************************
|
|
163
|
+
* Triggers
|
|
164
|
+
*/
|
|
165
|
+
const textProps = {
|
|
166
|
+
as: 'span',
|
|
167
|
+
$fontSize: 14,
|
|
168
|
+
$lineHeight: 20,
|
|
169
|
+
};
|
|
170
|
+
const wrapperProps = {
|
|
171
|
+
$align: 'center',
|
|
172
|
+
$dir: 'row',
|
|
173
|
+
$gap: 16,
|
|
174
|
+
};
|
|
175
|
+
const FilterTrigger = ({ disabled, graphic, graphicAlignment, label, onClick, resetGraphic, open, onReset, type, value, }) => {
|
|
176
|
+
if (type === 'pill') {
|
|
177
|
+
return (React__default.default.createElement(Pill, { disabled: disabled, onClick: onClick, "$labelIsDefault": value === label, ...wrapperProps },
|
|
178
|
+
graphicAlignment === 'left' ? graphic : null,
|
|
179
|
+
React__default.default.createElement(paragraph.P, { ...textProps }, value),
|
|
180
|
+
resetGraphic ? React__default.default.createElement(close.Close, { color: "blue-3", onClick: onReset }) : null,
|
|
181
|
+
graphicAlignment === 'right' ? graphic : null,
|
|
182
|
+
!graphic && !resetGraphic && (open ? React__default.default.createElement(chevron_up.ChevronUp, null) : React__default.default.createElement(chevron_down.ChevronDown, null))));
|
|
183
|
+
}
|
|
184
|
+
if (type === 'labeled') {
|
|
185
|
+
return (React__default.default.createElement(Labeled, { disabled: disabled, onClick: onClick, ...wrapperProps },
|
|
186
|
+
React__default.default.createElement(paragraph.P, { ...textProps }, label),
|
|
187
|
+
React__default.default.createElement(LabelSeparator, null),
|
|
188
|
+
React__default.default.createElement(paragraph.P, { "$color": "primary-blue-2", "$mediumBold": true, ...textProps }, value),
|
|
189
|
+
open ? React__default.default.createElement(chevron_up.ChevronUp, null) : React__default.default.createElement(chevron_down.ChevronDown, null)));
|
|
190
|
+
}
|
|
191
|
+
if (type === 'avatar') {
|
|
192
|
+
return (React__default.default.createElement(Avatar, { "$align": "center", "$dir": "row", "$gap": 8, disabled: disabled, onClick: onClick },
|
|
193
|
+
graphic,
|
|
194
|
+
open ? React__default.default.createElement(chevron_up.ChevronUp, null) : React__default.default.createElement(chevron_down.ChevronDown, null)));
|
|
195
|
+
}
|
|
196
|
+
if (type === 'text') {
|
|
197
|
+
return (React__default.default.createElement(Text, { disabled: disabled, onClick: onClick, ...wrapperProps },
|
|
198
|
+
React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$semiBold": true, ...textProps },
|
|
199
|
+
label,
|
|
200
|
+
":"),
|
|
201
|
+
React__default.default.createElement(paragraph.P, { "$color": "primary-blue-2", "$semiBold": true, className: "filter-trigger-value", ...textProps }, value),
|
|
202
|
+
open ? React__default.default.createElement(chevron_up.ChevronUp, null) : React__default.default.createElement(chevron_down.ChevronDown, null)));
|
|
203
|
+
}
|
|
204
|
+
return (React__default.default.createElement(Outlined, { disabled: disabled, onClick: onClick, ...wrapperProps },
|
|
205
|
+
graphicAlignment === 'left' ? graphic : null,
|
|
206
|
+
graphic,
|
|
207
|
+
React__default.default.createElement(paragraph.P, { ...textProps }, value),
|
|
208
|
+
graphicAlignment === 'right' ? graphic : null,
|
|
209
|
+
!graphic && (open ? React__default.default.createElement(chevron_up.ChevronUp, null) : React__default.default.createElement(chevron_down.ChevronDown, null))));
|
|
210
|
+
};
|
|
211
|
+
Filter.Trigger = FilterTrigger;
|
|
212
|
+
FilterTrigger.displayName = 'Filter.Trigger';
|
|
213
|
+
const sharedStyles = styled.css `
|
|
25
214
|
display: flex;
|
|
26
215
|
padding: 10px 16px;
|
|
27
216
|
border: none;
|
|
@@ -39,7 +228,8 @@
|
|
|
39
228
|
fill: var(--color-grey-7);
|
|
40
229
|
}
|
|
41
230
|
}
|
|
42
|
-
|
|
231
|
+
`;
|
|
232
|
+
const Outlined = styled__default.default.button `
|
|
43
233
|
${sharedStyles}
|
|
44
234
|
${styles.Styles.flex}
|
|
45
235
|
border: 1px solid var(--color-grey-8);
|
|
@@ -50,7 +240,8 @@
|
|
|
50
240
|
&:hover {
|
|
51
241
|
background-color: var(--color-grey-9);
|
|
52
242
|
}
|
|
53
|
-
|
|
243
|
+
`;
|
|
244
|
+
const Pill = styled__default.default.button `
|
|
54
245
|
${sharedStyles}
|
|
55
246
|
${styles.Styles.flex}
|
|
56
247
|
border: 1px solid var(--color-grey-8);
|
|
@@ -58,7 +249,8 @@
|
|
|
58
249
|
background-color: var(--color-white);
|
|
59
250
|
font-family: var(--font-inter);
|
|
60
251
|
|
|
61
|
-
${({$labelIsDefault
|
|
252
|
+
${({ $labelIsDefault }) => !$labelIsDefault
|
|
253
|
+
? `
|
|
62
254
|
& > * {
|
|
63
255
|
color: var(--color-primary-blue-2);
|
|
64
256
|
fill: currentColor;
|
|
@@ -72,8 +264,10 @@
|
|
|
72
264
|
&:hover {
|
|
73
265
|
background-color: var(--color-primary-blue-4);
|
|
74
266
|
}
|
|
75
|
-
`
|
|
76
|
-
|
|
267
|
+
`
|
|
268
|
+
: ''}
|
|
269
|
+
`;
|
|
270
|
+
const Labeled = styled__default.default.button `
|
|
77
271
|
${sharedStyles}
|
|
78
272
|
${styles.Styles.flex}
|
|
79
273
|
border-radius: 24px;
|
|
@@ -84,11 +278,13 @@
|
|
|
84
278
|
&:hover {
|
|
85
279
|
background-color: var(--color-grey-9);
|
|
86
280
|
}
|
|
87
|
-
|
|
281
|
+
`;
|
|
282
|
+
const LabelSeparator = styled__default.default.div `
|
|
88
283
|
width: 1px;
|
|
89
284
|
height: 20px;
|
|
90
285
|
background-color: var(--color-grey-8);
|
|
91
|
-
|
|
286
|
+
`;
|
|
287
|
+
const Avatar = styled__default.default.button `
|
|
92
288
|
${sharedStyles}
|
|
93
289
|
${styles.Styles.flex}
|
|
94
290
|
padding: 4px 16px;
|
|
@@ -108,7 +304,8 @@
|
|
|
108
304
|
opacity: 0.5;
|
|
109
305
|
}
|
|
110
306
|
}
|
|
111
|
-
|
|
307
|
+
`;
|
|
308
|
+
const Text = styled__default.default.button `
|
|
112
309
|
${sharedStyles}
|
|
113
310
|
${styles.Styles.flex}
|
|
114
311
|
gap: 8px;
|
|
@@ -130,4 +327,6 @@
|
|
|
130
327
|
background-color: transparent;
|
|
131
328
|
border: 1px solid transparent;
|
|
132
329
|
}
|
|
133
|
-
`;
|
|
330
|
+
`;
|
|
331
|
+
|
|
332
|
+
exports.Filter = Filter;
|
|
@@ -1,5 +1,30 @@
|
|
|
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 paragraph = require('../../atoms/typography/paragraph.js');
|
|
8
|
+
var checkbox = require('../checkbox/checkbox.js');
|
|
9
|
+
var radio = require('../radio/radio.js');
|
|
10
|
+
var close = require('../../../icons/basic/close.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
|
+
|
|
16
|
+
const Option = ({ label, onClick, selected, sx, value, checkbox: checkbox$1, radio: radio$1 = false, showClose = false, onClose, }) => {
|
|
17
|
+
return (React__default.default.createElement(OptionWrapper, { "data-value": value, onClick: onClick, "$selected": selected, "$sx": sx, "$hasCheckbox": !!checkbox$1 },
|
|
18
|
+
checkbox$1 && React__default.default.createElement(checkbox.Checkbox, { selected: selected }),
|
|
19
|
+
radio$1 && React__default.default.createElement(radio.Radio, { checked: selected, value: value }),
|
|
20
|
+
React__default.default.createElement(box.Box, { "$dir": "column", "$display": "flex" }, label && (React__default.default.createElement(paragraph.P, { "$color": "grey-4", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, label))),
|
|
21
|
+
showClose && (React__default.default.createElement(close.Close, { sx: "margin-left: auto; pointer-events: auto !important;", size: 16, onClick: (event) => {
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
onClose && onClose();
|
|
24
|
+
} }))));
|
|
25
|
+
};
|
|
26
|
+
Option.displayName = 'Filter.Option';
|
|
27
|
+
const OptionWrapper = styled.styled.div `
|
|
3
28
|
position: relative;
|
|
4
29
|
z-index: 1;
|
|
5
30
|
padding: 12px 16px;
|
|
@@ -13,13 +38,20 @@
|
|
|
13
38
|
pointer-events: none;
|
|
14
39
|
}
|
|
15
40
|
|
|
16
|
-
${({$selected
|
|
41
|
+
${({ $selected, $hasCheckbox }) => {
|
|
42
|
+
if ($selected) {
|
|
43
|
+
return `
|
|
17
44
|
background-color: var(--color-grey-9);
|
|
18
45
|
&:active {
|
|
19
46
|
background-color: var(--color-grey-8);
|
|
20
|
-
}
|
|
47
|
+
}`;
|
|
48
|
+
}
|
|
49
|
+
if ($hasCheckbox) {
|
|
50
|
+
return `&:hover {
|
|
21
51
|
background-color: var(--color-grey-10);
|
|
22
|
-
}
|
|
52
|
+
}`;
|
|
53
|
+
}
|
|
54
|
+
return `
|
|
23
55
|
&:hover {
|
|
24
56
|
background-color: var(--color-grey-10);
|
|
25
57
|
}
|
|
@@ -27,9 +59,15 @@
|
|
|
27
59
|
&:active {
|
|
28
60
|
background-color: var(--color-grey-8);
|
|
29
61
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
62
|
+
`;
|
|
63
|
+
}}
|
|
64
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
65
|
+
`;
|
|
66
|
+
const Spacer = ({ sx }) => {
|
|
67
|
+
return React__default.default.createElement(SpacerWrapper, { "$sx": sx });
|
|
68
|
+
};
|
|
69
|
+
Spacer.displayName = 'Filter.Spacer';
|
|
70
|
+
const SpacerWrapper = styled.styled.div `
|
|
33
71
|
width: 100%;
|
|
34
72
|
height: 1px;
|
|
35
73
|
background-color: var(--color-grey-8);
|
|
@@ -37,5 +75,8 @@
|
|
|
37
75
|
&:hover {
|
|
38
76
|
appearance: none;
|
|
39
77
|
}
|
|
40
|
-
${({$sx
|
|
41
|
-
|
|
78
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
exports.Option = Option;
|
|
82
|
+
exports.Spacer = Spacer;
|
|
@@ -1,23 +1,51 @@
|
|
|
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 paragraph = require('../../atoms/typography/paragraph.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 Radio = ({ checked = false, disabled, label, onClick, reversed, sx, value, ...rest }) => {
|
|
14
|
+
const handleInputClick = (event) => {
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
onClick && onClick(event);
|
|
17
|
+
};
|
|
18
|
+
const handleLabelClick = (event) => {
|
|
19
|
+
event.stopPropagation();
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
onClick && onClick(event);
|
|
22
|
+
};
|
|
23
|
+
return (React__default.default.createElement(Label, { "$disabled": disabled, "$reversed": reversed, "$sx": sx, onClick: handleLabelClick },
|
|
24
|
+
React__default.default.createElement(Input, { checked: checked, onClickCapture: handleInputClick, disabled: disabled, type: "radio", value: value, ...rest }),
|
|
25
|
+
React__default.default.createElement(paragraph.P, { as: "span" }, label)));
|
|
26
|
+
};
|
|
27
|
+
const Label = styled.styled.label `
|
|
3
28
|
display: flex;
|
|
4
29
|
align-items: center;
|
|
5
30
|
gap: 8px;
|
|
6
31
|
user-select: none;
|
|
7
32
|
|
|
8
|
-
${({$disabled
|
|
33
|
+
${({ $disabled }) => $disabled
|
|
34
|
+
? `
|
|
9
35
|
& > * {
|
|
10
36
|
color: var(--color-grey-7);
|
|
11
|
-
}
|
|
37
|
+
}`
|
|
38
|
+
: `
|
|
12
39
|
cursor: pointer;
|
|
13
40
|
&:hover {
|
|
14
41
|
input {
|
|
15
42
|
border-color: var(--color-primary-blue-2);
|
|
16
43
|
}
|
|
17
44
|
}`}
|
|
18
|
-
flex-direction: ${({$reversed
|
|
19
|
-
${({$sx
|
|
20
|
-
|
|
45
|
+
flex-direction: ${({ $reversed }) => ($reversed ? 'row-reverse' : 'row')};
|
|
46
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
47
|
+
`;
|
|
48
|
+
const Input = styled.styled.input `
|
|
21
49
|
appearance: none;
|
|
22
50
|
position: relative;
|
|
23
51
|
height: 20px;
|
|
@@ -51,4 +79,14 @@
|
|
|
51
79
|
}
|
|
52
80
|
}
|
|
53
81
|
}
|
|
54
|
-
|
|
82
|
+
`;
|
|
83
|
+
const RadioGroup = ({ children, name, ...rest }) => {
|
|
84
|
+
return (React__default.default.createElement(box.Box, { ...rest }, React__default.default.Children.map(children, (child) => {
|
|
85
|
+
if (React__default.default.isValidElement(child))
|
|
86
|
+
return React__default.default.createElement(Radio, { key: child.key, name: name, ...child.props });
|
|
87
|
+
})));
|
|
88
|
+
};
|
|
89
|
+
Radio.Group = RadioGroup;
|
|
90
|
+
RadioGroup.displayName = 'Radio.Group';
|
|
91
|
+
|
|
92
|
+
exports.Radio = Radio;
|
|
@@ -1,17 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
var styles = require('../../../common/styles.js');
|
|
7
|
+
var close = require('../../../icons/basic/close.js');
|
|
8
|
+
var search = require('../../../icons/basic/search.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 Search = ({ dropdownFilter, onChange, onClearText, onSubmit, placeholder, size, sx, value, }) => {
|
|
15
|
+
const [expanded, setExpanded] = React__default.default.useState(false);
|
|
16
|
+
const [focused, setFocused] = React__default.default.useState(false);
|
|
17
|
+
const inputRef = React__default.default.useRef(null);
|
|
18
|
+
const isCollapsed = !expanded && size === 'collapsed';
|
|
19
|
+
const iconSize = isCollapsed || size === 'large' ? 24 : 16;
|
|
20
|
+
const handleExpand = () => {
|
|
21
|
+
setExpanded(true);
|
|
22
|
+
inputRef?.current?.focus();
|
|
23
|
+
};
|
|
24
|
+
const handleCollapse = () => {
|
|
25
|
+
setExpanded(false);
|
|
26
|
+
setFocused(false);
|
|
27
|
+
inputRef?.current?.blur();
|
|
28
|
+
};
|
|
29
|
+
const handleFocus = () => {
|
|
30
|
+
inputRef?.current?.focus();
|
|
31
|
+
};
|
|
32
|
+
return (React__default.default.createElement(Wrapper, { "$align": "center", "$dir": "row", "$isCollapsed": isCollapsed, "$isFocused": focused, "$borderRadius": "large", "$size": size, "$sx": sx, onClick: dropdownFilter && size === 'large'
|
|
33
|
+
? undefined
|
|
34
|
+
: isCollapsed
|
|
35
|
+
? handleExpand
|
|
36
|
+
: handleFocus },
|
|
37
|
+
React__default.default.createElement(search.Search, { color: size === 'large' ? 'blue-7' : 'grey-3', size: iconSize, onClick: isCollapsed ? undefined : handleCollapse, sx: isCollapsed || size !== 'collapsed'
|
|
38
|
+
? undefined
|
|
39
|
+
: `
|
|
3
40
|
&:hover {
|
|
4
41
|
cursor: pointer;
|
|
5
42
|
background-color: var(--color-grey-10);
|
|
6
43
|
border-radius: 50%;
|
|
7
|
-
}`}),
|
|
8
|
-
|
|
44
|
+
}` }),
|
|
45
|
+
React__default.default.createElement(Input, { "$isCollapsed": isCollapsed, onBlur: () => setFocused(false), onChange: onChange, onFocus: () => setFocused(true), onSubmit: onSubmit, placeholder: placeholder, ref: inputRef, value: value }),
|
|
46
|
+
!isCollapsed && onClearText && (React__default.default.createElement(close.Close, { size: 16, onClick: onClearText, sx: `
|
|
47
|
+
${value.length === 0 ? 'visibility: hidden;' : ''}
|
|
9
48
|
padding: 4px;
|
|
10
49
|
&:hover {
|
|
11
50
|
cursor: pointer;
|
|
12
51
|
background-color: var(--color-grey-10);
|
|
13
52
|
border-radius: 50%;
|
|
14
|
-
}`})
|
|
53
|
+
}` })),
|
|
54
|
+
size === 'large' && dropdownFilter && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
55
|
+
React__default.default.createElement(Separator, null),
|
|
56
|
+
dropdownFilter))));
|
|
57
|
+
};
|
|
58
|
+
const Wrapper = styled.styled.div `
|
|
15
59
|
${styles.Styles.flex}
|
|
16
60
|
${styles.Styles.padding}
|
|
17
61
|
display: flex;
|
|
@@ -23,48 +67,65 @@
|
|
|
23
67
|
flex-shrink: 0;
|
|
24
68
|
}
|
|
25
69
|
|
|
26
|
-
${({$isCollapsed
|
|
70
|
+
${({ $isCollapsed, $size }) => $isCollapsed
|
|
71
|
+
? `
|
|
27
72
|
padding: 12px;
|
|
28
73
|
border-radius: 50%;
|
|
29
74
|
&:hover {
|
|
30
75
|
background-color: var(--color-grey-10);
|
|
31
76
|
cursor: pointer;
|
|
32
|
-
}
|
|
77
|
+
}`
|
|
78
|
+
: `
|
|
33
79
|
border-radius: 8px;
|
|
34
|
-
|
|
80
|
+
${$size === 'collapsed'
|
|
81
|
+
? // collapsed
|
|
82
|
+
`
|
|
35
83
|
gap: 8px;
|
|
36
84
|
padding: 10px 16px;
|
|
37
85
|
border: 1px solid var(--color-grey-8);
|
|
38
86
|
|
|
39
87
|
&:hover {
|
|
40
88
|
border: 1px solid var(--color-grey-6);
|
|
41
|
-
}
|
|
89
|
+
}`
|
|
90
|
+
: $size === 'small'
|
|
91
|
+
? // small
|
|
92
|
+
`
|
|
42
93
|
gap: 12px;
|
|
43
94
|
padding: 10px 16px;
|
|
44
95
|
border: 1px solid var(--color-grey-8);
|
|
45
96
|
|
|
46
97
|
&:hover {
|
|
47
98
|
border: 1px solid var(--color-grey-6);
|
|
48
|
-
}
|
|
99
|
+
}`
|
|
100
|
+
: $size === 'medium'
|
|
101
|
+
? // medium
|
|
102
|
+
`
|
|
49
103
|
gap: 12px;
|
|
50
104
|
padding: 14px 16px;
|
|
51
105
|
border: 1px solid var(--color-grey-8);
|
|
52
106
|
|
|
53
107
|
&:hover {
|
|
54
108
|
border: 1px solid var(--color-grey-6);
|
|
55
|
-
}
|
|
109
|
+
}`
|
|
110
|
+
: // large
|
|
111
|
+
`
|
|
56
112
|
gap: 16px;
|
|
57
113
|
padding: 16px;
|
|
58
114
|
box-shadow: var(--elevation-1);
|
|
59
115
|
|
|
60
116
|
&:hover {
|
|
61
117
|
border: 1px solid var(--color-grey-6);
|
|
62
|
-
}`
|
|
118
|
+
}`}`}
|
|
63
119
|
|
|
64
|
-
${({$isFocused
|
|
120
|
+
${({ $isFocused, $isCollapsed }) => $isFocused && !$isCollapsed
|
|
121
|
+
? 'border: 1px solid var(--color-primary-blue-2) !important;'
|
|
122
|
+
: ''}
|
|
65
123
|
|
|
66
|
-
${({$sx
|
|
67
|
-
|
|
124
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
125
|
+
`;
|
|
126
|
+
const Input = styled.styled.input.attrs(({ ref }) => ({
|
|
127
|
+
ref: ref,
|
|
128
|
+
})) `
|
|
68
129
|
flex: 1;
|
|
69
130
|
border-radius: 8px;
|
|
70
131
|
outline: none;
|
|
@@ -74,9 +135,14 @@
|
|
|
74
135
|
line-height: 20px;
|
|
75
136
|
color: var(--color-grey-2);
|
|
76
137
|
|
|
77
|
-
${({$isCollapsed
|
|
78
|
-
|
|
138
|
+
${({ $isCollapsed }) => $isCollapsed
|
|
139
|
+
? 'width: 0px; height: 0px; padding: 0px !important; border: none !important;'
|
|
140
|
+
: ''}
|
|
141
|
+
`;
|
|
142
|
+
const Separator = styled.styled.div `
|
|
79
143
|
width: 1px;
|
|
80
144
|
height: 20px;
|
|
81
145
|
background-color: var(--color-grey-9);
|
|
82
|
-
`;
|
|
146
|
+
`;
|
|
147
|
+
|
|
148
|
+
exports.Search = Search;
|