@soul-refiner/design-system 0.1.28 → 0.1.30
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.d.ts +2 -0
- package/dist/common/colors.js +135 -0
- package/dist/common/date.d.ts +26 -0
- package/dist/common/date.js +28 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/styles.d.ts +14 -0
- package/dist/common/styles.js +63 -0
- package/dist/components/actions/button/button.d.ts +20 -0
- package/dist/components/actions/button/button.js +233 -0
- package/dist/components/actions/button/button.stories.d.ts +5 -0
- package/dist/components/actions/button/button.stories.js +58 -0
- package/dist/components/actions/button/index.d.ts +2 -0
- package/dist/components/actions/button/index.js +1 -0
- package/dist/components/actions/dropdown/dropdown.d.ts +44 -0
- package/dist/components/actions/dropdown/dropdown.js +202 -0
- package/dist/components/actions/dropdown/dropdown.stories.d.ts +5 -0
- package/dist/components/actions/dropdown/dropdown.stories.js +99 -0
- package/dist/components/actions/dropdown/index.d.ts +2 -0
- package/dist/components/actions/dropdown/index.js +1 -0
- package/dist/components/actions/index.d.ts +10 -0
- package/dist/components/actions/index.js +5 -0
- package/dist/components/actions/rate/index.d.ts +2 -0
- package/dist/components/actions/rate/index.js +1 -0
- package/dist/components/actions/rate/rate.d.ts +9 -0
- package/dist/components/actions/rate/rate.js +45 -0
- package/dist/components/actions/rate/rate.stories.d.ts +5 -0
- package/dist/components/actions/rate/rate.stories.js +29 -0
- package/dist/components/actions/switch/index.d.ts +2 -0
- package/dist/components/actions/switch/index.js +1 -0
- package/dist/components/actions/switch/switch.d.ts +21 -0
- package/dist/components/actions/switch/switch.js +71 -0
- package/dist/components/actions/switch/switch.stories.d.ts +5 -0
- package/dist/components/actions/switch/switch.stories.js +25 -0
- package/dist/components/actions/toggle/index.d.ts +1 -0
- package/dist/components/actions/toggle/index.js +1 -0
- package/dist/components/actions/toggle/toggle.d.ts +7 -0
- package/dist/components/actions/toggle/toggle.js +56 -0
- package/dist/components/actions/toggle/toggle.stories.d.ts +5 -0
- package/dist/components/actions/toggle/toggle.stories.js +20 -0
- package/dist/components/actions/upload/index.d.ts +2 -0
- package/dist/components/actions/upload/index.js +1 -0
- package/dist/components/actions/upload/upload.d.ts +16 -0
- package/dist/components/actions/upload/upload.js +155 -0
- package/dist/components/actions/upload/upload.stories.d.ts +5 -0
- package/dist/components/actions/upload/upload.stories.js +58 -0
- package/dist/components/atoms/box/box.d.ts +15 -0
- package/dist/components/atoms/box/box.js +15 -0
- package/dist/components/atoms/box/box.stories.d.ts +5 -0
- package/dist/components/atoms/box/box.stories.js +85 -0
- package/dist/components/atoms/box/index.d.ts +2 -0
- package/dist/components/atoms/box/index.js +1 -0
- package/dist/components/atoms/colors/colors.d.ts +6 -0
- package/dist/components/atoms/colors/colors.js +34 -0
- package/dist/components/atoms/colors/colors.stories.d.ts +15 -0
- package/dist/components/atoms/colors/colors.stories.js +75 -0
- package/dist/components/atoms/colors/index.d.ts +1 -0
- package/dist/components/atoms/colors/index.js +1 -0
- package/dist/components/atoms/index.d.ts +4 -0
- package/dist/components/atoms/index.js +2 -0
- package/dist/components/atoms/typography/display.d.ts +11 -0
- package/dist/components/atoms/typography/display.js +9 -0
- package/dist/components/atoms/typography/heading.d.ts +45 -0
- package/dist/components/atoms/typography/heading.js +33 -0
- package/dist/components/atoms/typography/index.d.ts +8 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/paragraph.d.ts +11 -0
- package/dist/components/atoms/typography/paragraph.js +16 -0
- package/dist/components/atoms/typography/typography.d.ts +9 -0
- package/dist/components/atoms/typography/typography.js +11 -0
- package/dist/components/atoms/typography/typography.stories.d.ts +12 -0
- package/dist/components/atoms/typography/typography.stories.js +96 -0
- package/dist/components/card/action/action.d.ts +11 -0
- package/dist/components/card/action/action.js +51 -0
- package/dist/components/card/action/index.d.ts +2 -0
- package/dist/components/card/action/index.js +1 -0
- package/dist/components/card/audio/audio.d.ts +17 -0
- package/dist/components/card/audio/audio.js +100 -0
- package/dist/components/card/audio/index.d.ts +2 -0
- package/dist/components/card/audio/index.js +1 -0
- package/dist/components/card/card.d.ts +15 -0
- package/dist/components/card/card.js +22 -0
- package/dist/components/card/card.stories.d.ts +18 -0
- package/dist/components/card/card.stories.js +284 -0
- package/dist/components/card/feature/feature.d.ts +12 -0
- package/dist/components/card/feature/feature.js +168 -0
- package/dist/components/card/feature/index.d.ts +2 -0
- package/dist/components/card/feature/index.js +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/person/index.d.ts +2 -0
- package/dist/components/card/person/index.js +1 -0
- package/dist/components/card/person/person.d.ts +10 -0
- package/dist/components/card/person/person.js +57 -0
- package/dist/components/card/price/index.d.ts +2 -0
- package/dist/components/card/price/index.js +1 -0
- package/dist/components/card/price/price.d.ts +10 -0
- package/dist/components/card/price/price.js +45 -0
- package/dist/components/card/regular/index.d.ts +2 -0
- package/dist/components/card/regular/index.js +1 -0
- package/dist/components/card/regular/regular.d.ts +7 -0
- package/dist/components/card/regular/regular.js +30 -0
- package/dist/components/card/video/index.d.ts +2 -0
- package/dist/components/card/video/index.js +1 -0
- package/dist/components/card/video/video.d.ts +17 -0
- package/dist/components/card/video/video.js +92 -0
- package/dist/components/card/written/index.d.ts +2 -0
- package/dist/components/card/written/index.js +1 -0
- package/dist/components/card/written/written.d.ts +17 -0
- package/dist/components/card/written/written.js +101 -0
- package/dist/components/editor/constants.d.ts +50 -0
- package/dist/components/editor/constants.js +133 -0
- package/dist/components/editor/editor.d.ts +9 -0
- package/dist/components/editor/editor.js +73 -0
- package/dist/components/editor/editor.stories.d.ts +5 -0
- package/dist/components/editor/editor.stories.js +16 -0
- package/dist/components/editor/index.d.ts +2 -0
- package/dist/components/editor/index.js +1 -0
- package/dist/components/editor/navbar/alignment_dropdown.d.ts +6 -0
- package/dist/components/editor/navbar/alignment_dropdown.js +93 -0
- package/dist/components/editor/navbar/button_modal.d.ts +6 -0
- package/dist/components/editor/navbar/button_modal.js +55 -0
- package/dist/components/editor/navbar/index.d.ts +2 -0
- package/dist/components/editor/navbar/index.js +1 -0
- package/dist/components/editor/navbar/navbar.d.ts +8 -0
- package/dist/components/editor/navbar/navbar.js +205 -0
- package/dist/components/editor/navbar/style_dropdown.d.ts +6 -0
- package/dist/components/editor/navbar/style_dropdown.js +65 -0
- package/dist/components/editor/plate.d.ts +16 -0
- package/dist/components/editor/plate.js +27 -0
- package/dist/components/editor/plugins/blockquote.d.ts +3 -0
- package/dist/components/editor/plugins/blockquote.js +8 -0
- package/dist/components/editor/plugins/buttons.d.ts +4 -0
- package/dist/components/editor/plugins/buttons.js +81 -0
- package/dist/components/editor/plugins/exitBreak.d.ts +21 -0
- package/dist/components/editor/plugins/exitBreak.js +31 -0
- package/dist/components/editor/plugins/image.d.ts +3 -0
- package/dist/components/editor/plugins/image.js +47 -0
- package/dist/components/editor/plugins/index.d.ts +7 -0
- package/dist/components/editor/plugins/index.js +111 -0
- package/dist/components/editor/plugins/link.d.ts +4 -0
- package/dist/components/editor/plugins/link.js +74 -0
- package/dist/components/editor/plugins/list.d.ts +12 -0
- package/dist/components/editor/plugins/list.js +17 -0
- package/dist/components/editor/plugins/resetBlockType.d.ts +10 -0
- package/dist/components/editor/plugins/resetBlockType.js +22 -0
- package/dist/components/editor/plugins/selectOnBackspace.d.ts +7 -0
- package/dist/components/editor/plugins/selectOnBackspace.js +6 -0
- package/dist/components/editor/plugins/softBreak.d.ts +13 -0
- package/dist/components/editor/plugins/softBreak.js +14 -0
- package/dist/components/editor/plugins/text.d.ts +16 -0
- package/dist/components/editor/plugins/text.js +81 -0
- package/dist/components/feedback/badge/badge.d.ts +9 -0
- package/dist/components/feedback/badge/badge.js +65 -0
- package/dist/components/feedback/badge/badge.stories.d.ts +7 -0
- package/dist/components/feedback/badge/badge.stories.js +25 -0
- package/dist/components/feedback/badge/index.d.ts +2 -0
- package/dist/components/feedback/badge/index.js +1 -0
- package/dist/components/feedback/banner/banner.d.ts +11 -0
- package/dist/components/feedback/banner/banner.js +76 -0
- package/dist/components/feedback/banner/banner.stories.d.ts +5 -0
- package/dist/components/feedback/banner/banner.stories.js +33 -0
- package/dist/components/feedback/banner/index.d.ts +2 -0
- package/dist/components/feedback/banner/index.js +1 -0
- package/dist/components/feedback/chip/chip.d.ts +11 -0
- package/dist/components/feedback/chip/chip.js +93 -0
- package/dist/components/feedback/chip/chip.stories.d.ts +7 -0
- package/dist/components/feedback/chip/chip.stories.js +39 -0
- package/dist/components/feedback/chip/index.d.ts +2 -0
- package/dist/components/feedback/chip/index.js +1 -0
- package/dist/components/feedback/index.d.ts +14 -0
- package/dist/components/feedback/index.js +7 -0
- package/dist/components/feedback/loader/index.d.ts +2 -0
- package/dist/components/feedback/loader/index.js +1 -0
- package/dist/components/feedback/loader/loader.d.ts +10 -0
- package/dist/components/feedback/loader/loader.js +33 -0
- package/dist/components/feedback/loader/loader.stories.d.ts +5 -0
- package/dist/components/feedback/loader/loader.stories.js +29 -0
- package/dist/components/feedback/notification/index.d.ts +2 -0
- package/dist/components/feedback/notification/index.js +1 -0
- package/dist/components/feedback/notification/notification.d.ts +12 -0
- package/dist/components/feedback/notification/notification.js +71 -0
- package/dist/components/feedback/notification/notificition.stories.d.ts +5 -0
- package/dist/components/feedback/notification/notificition.stories.js +30 -0
- package/dist/components/feedback/progress/index.d.ts +2 -0
- package/dist/components/feedback/progress/index.js +1 -0
- package/dist/components/feedback/progress/progress.d.ts +16 -0
- package/dist/components/feedback/progress/progress.js +86 -0
- package/dist/components/feedback/progress/progress.stories.d.ts +5 -0
- package/dist/components/feedback/progress/progress.stories.js +32 -0
- package/dist/components/feedback/toast/index.d.ts +2 -0
- package/dist/components/feedback/toast/index.js +1 -0
- package/dist/components/feedback/toast/toast.d.ts +10 -0
- package/dist/components/feedback/toast/toast.js +70 -0
- package/dist/components/feedback/toast/toast.stories.d.ts +5 -0
- package/dist/components/feedback/toast/toast.stories.js +26 -0
- package/dist/components/feedback/tooltip/index.d.ts +2 -0
- package/dist/components/feedback/tooltip/index.js +1 -0
- package/dist/components/feedback/tooltip/tooltip.d.ts +7 -0
- package/dist/components/feedback/tooltip/tooltip.js +25 -0
- package/dist/components/feedback/tooltip/tooltip.stories.d.ts +5 -0
- package/dist/components/feedback/tooltip/tooltip.stories.js +43 -0
- package/dist/components/iconography/avatar/avatar.d.ts +37 -0
- package/dist/components/iconography/avatar/avatar.js +148 -0
- package/dist/components/iconography/avatar/avatar.stories.d.ts +6 -0
- package/dist/components/iconography/avatar/avatar.stories.js +55 -0
- package/dist/components/iconography/avatar/icons/approved.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/approved.js +5 -0
- package/dist/components/iconography/avatar/icons/busy.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/busy.js +5 -0
- package/dist/components/iconography/avatar/icons/declined.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/declined.js +5 -0
- package/dist/components/iconography/avatar/icons/default.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/default.js +3 -0
- package/dist/components/iconography/avatar/icons/focus.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/focus.js +5 -0
- package/dist/components/iconography/avatar/icons/index.d.ts +9 -0
- package/dist/components/iconography/avatar/icons/index.js +9 -0
- package/dist/components/iconography/avatar/icons/locked.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/locked.js +5 -0
- package/dist/components/iconography/avatar/icons/offline.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/offline.js +5 -0
- package/dist/components/iconography/avatar/icons/online.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/online.js +4 -0
- package/dist/components/iconography/avatar/icons/subscribed.d.ts +2 -0
- package/dist/components/iconography/avatar/icons/subscribed.js +9 -0
- package/dist/components/iconography/avatar/index.d.ts +2 -0
- package/dist/components/iconography/avatar/index.js +1 -0
- package/dist/components/iconography/icon/icon.d.ts +13 -0
- package/dist/components/iconography/icon/icon.js +9 -0
- package/dist/components/iconography/icon/icon.stories.d.ts +24 -0
- package/dist/components/iconography/icon/icon.stories.js +113 -0
- package/dist/components/iconography/icon/index.d.ts +2 -0
- package/dist/components/iconography/icon/index.js +1 -0
- package/dist/components/iconography/index.d.ts +4 -0
- package/dist/components/iconography/index.js +2 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +9 -0
- package/dist/components/input/checkbox/checkbox.d.ts +8 -0
- package/dist/components/input/checkbox/checkbox.js +21 -0
- package/dist/components/input/checkbox/checkbox.stories.d.ts +5 -0
- package/dist/components/input/checkbox/checkbox.stories.js +19 -0
- package/dist/components/input/checkbox/index.d.ts +2 -0
- package/dist/components/input/checkbox/index.js +1 -0
- package/dist/components/input/date/date.d.ts +11 -0
- package/dist/components/input/date/date.js +516 -0
- package/dist/components/input/date/date.stories.d.ts +5 -0
- package/dist/components/input/date/date.stories.js +30 -0
- package/dist/components/input/date/index.d.ts +2 -0
- package/dist/components/input/date/index.js +1 -0
- package/dist/components/input/filter/filter.d.ts +32 -0
- package/dist/components/input/filter/filter.js +194 -0
- package/dist/components/input/filter/filter.stories.d.ts +7 -0
- package/dist/components/input/filter/filter.stories.js +30 -0
- package/dist/components/input/filter/index.d.ts +2 -0
- package/dist/components/input/filter/index.js +1 -0
- package/dist/components/input/index.d.ts +10 -0
- package/dist/components/input/index.js +5 -0
- package/dist/components/input/radio/index.d.ts +2 -0
- package/dist/components/input/radio/index.js +1 -0
- package/dist/components/input/radio/radio.d.ts +25 -0
- package/dist/components/input/radio/radio.js +77 -0
- package/dist/components/input/radio/radio.stories.d.ts +6 -0
- package/dist/components/input/radio/radio.stories.js +34 -0
- package/dist/components/input/search/index.d.ts +2 -0
- package/dist/components/input/search/index.js +1 -0
- package/dist/components/input/search/search.d.ts +12 -0
- package/dist/components/input/search/search.js +136 -0
- package/dist/components/input/search/search.stories.d.ts +5 -0
- package/dist/components/input/search/search.stories.js +50 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +20 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +105 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.stories.d.ts +9 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.stories.js +37 -0
- package/dist/components/navigation/breadcrumb/index.d.ts +2 -0
- package/dist/components/navigation/breadcrumb/index.js +1 -0
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/navigation/index.js +2 -0
- package/dist/components/navigation/tabs/index.d.ts +2 -0
- package/dist/components/navigation/tabs/index.js +1 -0
- package/dist/components/navigation/tabs/tabs.d.ts +32 -0
- package/dist/components/navigation/tabs/tabs.js +144 -0
- package/dist/components/navigation/tabs/tabs.stories.d.ts +6 -0
- package/dist/components/navigation/tabs/tabs.stories.js +88 -0
- package/dist/components/surfaces/accordion/accordion.d.ts +17 -0
- package/dist/components/surfaces/accordion/accordion.js +45 -0
- package/dist/components/surfaces/accordion/accordion.stories.d.ts +5 -0
- package/dist/components/surfaces/accordion/accordion.stories.js +16 -0
- package/dist/components/surfaces/accordion/index.d.ts +2 -0
- package/dist/components/surfaces/accordion/index.js +1 -0
- package/dist/components/surfaces/comment/comment.d.ts +14 -0
- package/dist/components/surfaces/comment/comment.js +126 -0
- package/dist/components/surfaces/comment/comment.stories.d.ts +5 -0
- package/dist/components/surfaces/comment/comment.stories.js +82 -0
- package/dist/components/surfaces/comment/helpers.d.ts +5 -0
- package/dist/components/surfaces/comment/helpers.js +38 -0
- package/dist/components/surfaces/comment/index.d.ts +2 -0
- package/dist/components/surfaces/comment/index.js +1 -0
- package/dist/components/surfaces/drawer/drawer.d.ts +30 -0
- package/dist/components/surfaces/drawer/drawer.js +124 -0
- package/dist/components/surfaces/drawer/drawer.stories.d.ts +5 -0
- package/dist/components/surfaces/drawer/drawer.stories.js +77 -0
- package/dist/components/surfaces/drawer/index.d.ts +2 -0
- package/dist/components/surfaces/drawer/index.js +1 -0
- package/dist/components/surfaces/index.d.ts +10 -0
- package/dist/components/surfaces/index.js +5 -0
- package/dist/components/surfaces/message/index.d.ts +2 -0
- package/dist/components/surfaces/message/index.js +1 -0
- package/dist/components/surfaces/message/message.d.ts +13 -0
- package/dist/components/surfaces/message/message.js +43 -0
- package/dist/components/surfaces/message/message.stories.d.ts +5 -0
- package/dist/components/surfaces/message/message.stories.js +71 -0
- package/dist/components/surfaces/modal/index.d.ts +2 -0
- package/dist/components/surfaces/modal/index.js +1 -0
- package/dist/components/surfaces/modal/modal.d.ts +36 -0
- package/dist/components/surfaces/modal/modal.js +100 -0
- package/dist/components/surfaces/modal/modal.stories.d.ts +5 -0
- package/dist/components/surfaces/modal/modal.stories.js +18 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/table/index.d.ts +2 -0
- package/dist/components/table/table/index.js +1 -0
- package/dist/components/table/table/table.d.ts +75 -0
- package/dist/components/table/table/table.js +183 -0
- package/dist/components/table/table/table.stories.d.ts +5 -0
- package/dist/components/table/table/table.stories.js +45 -0
- package/dist/emoji/emojis.json +17577 -0
- package/dist/icons/arrow/arrow_all.d.ts +3 -0
- package/dist/icons/arrow/arrow_all.js +6 -0
- package/dist/icons/arrow/arrow_all_diagonal.d.ts +3 -0
- package/dist/icons/arrow/arrow_all_diagonal.js +6 -0
- package/dist/icons/arrow/arrow_both_downwards.d.ts +3 -0
- package/dist/icons/arrow/arrow_both_downwards.js +6 -0
- package/dist/icons/arrow/arrow_both_upwards.d.ts +3 -0
- package/dist/icons/arrow/arrow_both_upwards.js +6 -0
- package/dist/icons/arrow/arrow_circle_left.d.ts +3 -0
- package/dist/icons/arrow/arrow_circle_left.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double.d.ts +3 -0
- package/dist/icons/arrow/arrow_circle_left_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_left_double_alert.d.ts +3 -0
- package/dist/icons/arrow/arrow_circle_left_double_alert.js +8 -0
- package/dist/icons/arrow/arrow_circle_right.d.ts +3 -0
- package/dist/icons/arrow/arrow_circle_right.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double.d.ts +3 -0
- package/dist/icons/arrow/arrow_circle_right_double.js +6 -0
- package/dist/icons/arrow/arrow_circle_right_double_alert.d.ts +3 -0
- package/dist/icons/arrow/arrow_circle_right_double_alert.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_down_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_down_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_down_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_down_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_up_left.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_up_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_up_right.js +6 -0
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_diagonal_up_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_down.d.ts +3 -0
- package/dist/icons/arrow/arrow_down.js +6 -0
- package/dist/icons/arrow/arrow_down_bold.d.ts +3 -0
- package/dist/icons/arrow/arrow_down_bold.js +6 -0
- package/dist/icons/arrow/arrow_down_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_down_circle.js +6 -0
- package/dist/icons/arrow/arrow_left.d.ts +3 -0
- package/dist/icons/arrow/arrow_left.js +6 -0
- package/dist/icons/arrow/arrow_left_bold.d.ts +3 -0
- package/dist/icons/arrow/arrow_left_bold.js +6 -0
- package/dist/icons/arrow/arrow_left_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_left_circle.js +6 -0
- package/dist/icons/arrow/arrow_left_curved.d.ts +3 -0
- package/dist/icons/arrow/arrow_left_curved.js +6 -0
- package/dist/icons/arrow/arrow_left_curved_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_left_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_right.d.ts +3 -0
- package/dist/icons/arrow/arrow_right.js +6 -0
- package/dist/icons/arrow/arrow_right_bold.d.ts +3 -0
- package/dist/icons/arrow/arrow_right_bold.js +6 -0
- package/dist/icons/arrow/arrow_right_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_right_circle.js +6 -0
- package/dist/icons/arrow/arrow_right_curved.d.ts +3 -0
- package/dist/icons/arrow/arrow_right_curved.js +6 -0
- package/dist/icons/arrow/arrow_right_curved_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_right_curved_circle.js +6 -0
- package/dist/icons/arrow/arrow_up.d.ts +3 -0
- package/dist/icons/arrow/arrow_up.js +6 -0
- package/dist/icons/arrow/arrow_up_bold.d.ts +3 -0
- package/dist/icons/arrow/arrow_up_bold.js +6 -0
- package/dist/icons/arrow/arrow_up_circle.d.ts +3 -0
- package/dist/icons/arrow/arrow_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_down.d.ts +3 -0
- package/dist/icons/arrow/chevron_down.js +6 -0
- package/dist/icons/arrow/chevron_down_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_down_circle.js +6 -0
- package/dist/icons/arrow/chevron_down_double.d.ts +3 -0
- package/dist/icons/arrow/chevron_down_double.js +6 -0
- package/dist/icons/arrow/chevron_down_double_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_down_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_left.d.ts +3 -0
- package/dist/icons/arrow/chevron_left.js +6 -0
- package/dist/icons/arrow/chevron_left_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_left_circle.js +6 -0
- package/dist/icons/arrow/chevron_left_double.d.ts +3 -0
- package/dist/icons/arrow/chevron_left_double.js +6 -0
- package/dist/icons/arrow/chevron_left_double_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_left_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_right.d.ts +3 -0
- package/dist/icons/arrow/chevron_right.js +6 -0
- package/dist/icons/arrow/chevron_right_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_right_circle.js +6 -0
- package/dist/icons/arrow/chevron_right_double.d.ts +3 -0
- package/dist/icons/arrow/chevron_right_double.js +6 -0
- package/dist/icons/arrow/chevron_right_double_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_right_double_circle.js +6 -0
- package/dist/icons/arrow/chevron_scroll.d.ts +3 -0
- package/dist/icons/arrow/chevron_scroll.js +6 -0
- package/dist/icons/arrow/chevron_up.d.ts +3 -0
- package/dist/icons/arrow/chevron_up.js +6 -0
- package/dist/icons/arrow/chevron_up_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_up_circle.js +6 -0
- package/dist/icons/arrow/chevron_up_double.d.ts +3 -0
- package/dist/icons/arrow/chevron_up_double.js +6 -0
- package/dist/icons/arrow/chevron_up_double_circle.d.ts +3 -0
- package/dist/icons/arrow/chevron_up_double_circle.js +6 -0
- package/dist/icons/arrow/forward_all.d.ts +3 -0
- package/dist/icons/arrow/forward_all.js +6 -0
- package/dist/icons/arrow/forward_all_bold.d.ts +3 -0
- package/dist/icons/arrow/forward_all_bold.js +6 -0
- package/dist/icons/arrow/forward_bold.d.ts +3 -0
- package/dist/icons/arrow/forward_bold.js +6 -0
- package/dist/icons/arrow/index.d.ts +62 -0
- package/dist/icons/arrow/index.js +62 -0
- package/dist/icons/arrow/redo.d.ts +3 -0
- package/dist/icons/arrow/redo.js +6 -0
- package/dist/icons/arrow/redo_bold.d.ts +3 -0
- package/dist/icons/arrow/redo_bold.js +6 -0
- package/dist/icons/arrow/reply.d.ts +3 -0
- package/dist/icons/arrow/reply.js +6 -0
- package/dist/icons/arrow/reply_all.d.ts +3 -0
- package/dist/icons/arrow/reply_all.js +6 -0
- package/dist/icons/arrow/reply_all_bold.d.ts +3 -0
- package/dist/icons/arrow/reply_all_bold.js +6 -0
- package/dist/icons/arrow/reply_bold.d.ts +3 -0
- package/dist/icons/arrow/reply_bold.js +6 -0
- package/dist/icons/arrow/undo.d.ts +3 -0
- package/dist/icons/arrow/undo.js +6 -0
- package/dist/icons/arrow/undo_bold.d.ts +3 -0
- package/dist/icons/arrow/undo_bold.js +6 -0
- package/dist/icons/audio_video/drag_indicator.d.ts +3 -0
- package/dist/icons/audio_video/drag_indicator.js +6 -0
- package/dist/icons/audio_video/eject.d.ts +3 -0
- package/dist/icons/audio_video/eject.js +6 -0
- package/dist/icons/audio_video/equalizer.d.ts +3 -0
- package/dist/icons/audio_video/equalizer.js +6 -0
- package/dist/icons/audio_video/fast_forward.d.ts +3 -0
- package/dist/icons/audio_video/fast_forward.js +6 -0
- package/dist/icons/audio_video/fast_forward_30.d.ts +3 -0
- package/dist/icons/audio_video/fast_forward_30.js +6 -0
- package/dist/icons/audio_video/fullscreen.d.ts +3 -0
- package/dist/icons/audio_video/fullscreen.js +6 -0
- package/dist/icons/audio_video/headphones.d.ts +3 -0
- package/dist/icons/audio_video/headphones.js +6 -0
- package/dist/icons/audio_video/index.d.ts +38 -0
- package/dist/icons/audio_video/index.js +38 -0
- package/dist/icons/audio_video/library_add.d.ts +3 -0
- package/dist/icons/audio_video/library_add.js +6 -0
- package/dist/icons/audio_video/library_delay.d.ts +3 -0
- package/dist/icons/audio_video/library_delay.js +6 -0
- package/dist/icons/audio_video/library_music.d.ts +3 -0
- package/dist/icons/audio_video/library_music.js +6 -0
- package/dist/icons/audio_video/library_queue.d.ts +3 -0
- package/dist/icons/audio_video/library_queue.js +6 -0
- package/dist/icons/audio_video/microphone.d.ts +3 -0
- package/dist/icons/audio_video/microphone.js +6 -0
- package/dist/icons/audio_video/musical_note.d.ts +3 -0
- package/dist/icons/audio_video/musical_note.js +6 -0
- package/dist/icons/audio_video/next.d.ts +3 -0
- package/dist/icons/audio_video/next.js +6 -0
- package/dist/icons/audio_video/pause.d.ts +3 -0
- package/dist/icons/audio_video/pause.js +6 -0
- package/dist/icons/audio_video/pause_circle.d.ts +3 -0
- package/dist/icons/audio_video/pause_circle.js +6 -0
- package/dist/icons/audio_video/play.d.ts +3 -0
- package/dist/icons/audio_video/play.js +6 -0
- package/dist/icons/audio_video/play_circle.d.ts +3 -0
- package/dist/icons/audio_video/play_circle.js +6 -0
- package/dist/icons/audio_video/play_display.d.ts +3 -0
- package/dist/icons/audio_video/play_display.js +6 -0
- package/dist/icons/audio_video/play_pause.d.ts +3 -0
- package/dist/icons/audio_video/play_pause.js +6 -0
- package/dist/icons/audio_video/play_solid.d.ts +3 -0
- package/dist/icons/audio_video/play_solid.js +6 -0
- package/dist/icons/audio_video/player_list.d.ts +3 -0
- package/dist/icons/audio_video/player_list.js +6 -0
- package/dist/icons/audio_video/player_list_add.d.ts +3 -0
- package/dist/icons/audio_video/player_list_add.js +6 -0
- package/dist/icons/audio_video/player_list_play.d.ts +3 -0
- package/dist/icons/audio_video/player_list_play.js +6 -0
- package/dist/icons/audio_video/previous.d.ts +3 -0
- package/dist/icons/audio_video/previous.js +6 -0
- package/dist/icons/audio_video/radio.d.ts +3 -0
- package/dist/icons/audio_video/radio.js +6 -0
- package/dist/icons/audio_video/record.d.ts +3 -0
- package/dist/icons/audio_video/record.js +6 -0
- package/dist/icons/audio_video/repeat.d.ts +3 -0
- package/dist/icons/audio_video/repeat.js +6 -0
- package/dist/icons/audio_video/rewind.d.ts +3 -0
- package/dist/icons/audio_video/rewind.js +6 -0
- package/dist/icons/audio_video/rewind_30.d.ts +3 -0
- package/dist/icons/audio_video/rewind_30.js +6 -0
- package/dist/icons/audio_video/shuffle.d.ts +3 -0
- package/dist/icons/audio_video/shuffle.js +6 -0
- package/dist/icons/audio_video/sound_wave.d.ts +3 -0
- package/dist/icons/audio_video/sound_wave.js +6 -0
- package/dist/icons/audio_video/stop.d.ts +3 -0
- package/dist/icons/audio_video/stop.js +6 -0
- package/dist/icons/audio_video/stop_circle.d.ts +3 -0
- package/dist/icons/audio_video/stop_circle.js +6 -0
- package/dist/icons/audio_video/subscriptions.d.ts +3 -0
- package/dist/icons/audio_video/subscriptions.js +6 -0
- package/dist/icons/audio_video/tuner.d.ts +3 -0
- package/dist/icons/audio_video/tuner.js +6 -0
- package/dist/icons/audio_video/volume.d.ts +3 -0
- package/dist/icons/audio_video/volume.js +6 -0
- package/dist/icons/audio_video/volume_high.d.ts +3 -0
- package/dist/icons/audio_video/volume_high.js +6 -0
- package/dist/icons/audio_video/volume_low.d.ts +3 -0
- package/dist/icons/audio_video/volume_low.js +6 -0
- package/dist/icons/audio_video/volume_slash.d.ts +3 -0
- package/dist/icons/audio_video/volume_slash.js +6 -0
- package/dist/icons/basic/aa_sansserif.d.ts +3 -0
- package/dist/icons/basic/aa_sansserif.js +7 -0
- package/dist/icons/basic/aa_serif.d.ts +3 -0
- package/dist/icons/basic/aa_serif.js +7 -0
- package/dist/icons/basic/anchor.d.ts +3 -0
- package/dist/icons/basic/anchor.js +8 -0
- package/dist/icons/basic/bible.d.ts +3 -0
- package/dist/icons/basic/bible.js +6 -0
- package/dist/icons/basic/bold.d.ts +3 -0
- package/dist/icons/basic/bold.js +6 -0
- package/dist/icons/basic/book.d.ts +3 -0
- package/dist/icons/basic/book.js +6 -0
- package/dist/icons/basic/book_open.d.ts +3 -0
- package/dist/icons/basic/book_open.js +6 -0
- package/dist/icons/basic/bookmark.d.ts +3 -0
- package/dist/icons/basic/bookmark.js +6 -0
- package/dist/icons/basic/bookmark_add.d.ts +3 -0
- package/dist/icons/basic/bookmark_add.js +6 -0
- package/dist/icons/basic/bookmark_slash.d.ts +3 -0
- package/dist/icons/basic/bookmark_slash.js +6 -0
- package/dist/icons/basic/bookmarks.d.ts +3 -0
- package/dist/icons/basic/bookmarks.js +6 -0
- package/dist/icons/basic/books.d.ts +3 -0
- package/dist/icons/basic/books.js +9 -0
- package/dist/icons/basic/box.d.ts +3 -0
- package/dist/icons/basic/box.js +6 -0
- package/dist/icons/basic/briefcase.d.ts +3 -0
- package/dist/icons/basic/briefcase.js +6 -0
- package/dist/icons/basic/browse_activity.d.ts +3 -0
- package/dist/icons/basic/browse_activity.js +6 -0
- package/dist/icons/basic/browser.d.ts +3 -0
- package/dist/icons/basic/browser.js +6 -0
- package/dist/icons/basic/browser_slash.d.ts +3 -0
- package/dist/icons/basic/browser_slash.js +6 -0
- package/dist/icons/basic/calculator.d.ts +3 -0
- package/dist/icons/basic/calculator.js +6 -0
- package/dist/icons/basic/camera.d.ts +3 -0
- package/dist/icons/basic/camera.js +6 -0
- package/dist/icons/basic/camera_add.d.ts +3 -0
- package/dist/icons/basic/camera_add.js +6 -0
- package/dist/icons/basic/camera_slash.d.ts +3 -0
- package/dist/icons/basic/camera_slash.js +6 -0
- package/dist/icons/basic/checkmark.d.ts +3 -0
- package/dist/icons/basic/checkmark.js +6 -0
- package/dist/icons/basic/checkmark_circle.d.ts +3 -0
- package/dist/icons/basic/checkmark_circle.js +8 -0
- package/dist/icons/basic/checkmark_filled.d.ts +3 -0
- package/dist/icons/basic/checkmark_filled.js +6 -0
- package/dist/icons/basic/checkmarks.d.ts +3 -0
- package/dist/icons/basic/checkmarks.js +6 -0
- package/dist/icons/basic/circle.d.ts +3 -0
- package/dist/icons/basic/circle.js +6 -0
- package/dist/icons/basic/circle_slash.d.ts +3 -0
- package/dist/icons/basic/circle_slash.js +8 -0
- package/dist/icons/basic/clear_text_style.d.ts +3 -0
- package/dist/icons/basic/clear_text_style.js +6 -0
- package/dist/icons/basic/close.d.ts +3 -0
- package/dist/icons/basic/close.js +6 -0
- package/dist/icons/basic/close_circle.d.ts +3 -0
- package/dist/icons/basic/close_circle.js +6 -0
- package/dist/icons/basic/close_filled.d.ts +3 -0
- package/dist/icons/basic/close_filled.js +6 -0
- package/dist/icons/basic/copy.d.ts +3 -0
- package/dist/icons/basic/copy.js +6 -0
- package/dist/icons/basic/delete.d.ts +3 -0
- package/dist/icons/basic/delete.js +6 -0
- package/dist/icons/basic/detail.d.ts +3 -0
- package/dist/icons/basic/detail.js +6 -0
- package/dist/icons/basic/dot.d.ts +3 -0
- package/dist/icons/basic/dot.js +6 -0
- package/dist/icons/basic/download.d.ts +3 -0
- package/dist/icons/basic/download.js +6 -0
- package/dist/icons/basic/download_arrow.d.ts +3 -0
- package/dist/icons/basic/download_arrow.js +6 -0
- package/dist/icons/basic/droplet.d.ts +3 -0
- package/dist/icons/basic/droplet.js +8 -0
- package/dist/icons/basic/ellipsis_horizontal.d.ts +3 -0
- package/dist/icons/basic/ellipsis_horizontal.js +6 -0
- package/dist/icons/basic/ellipsis_horizontal_circle.d.ts +3 -0
- package/dist/icons/basic/ellipsis_horizontal_circle.js +6 -0
- package/dist/icons/basic/ellipsis_vertical.d.ts +3 -0
- package/dist/icons/basic/ellipsis_vertical.js +6 -0
- package/dist/icons/basic/ellipsis_vertical_circle.d.ts +3 -0
- package/dist/icons/basic/ellipsis_vertical_circle.js +6 -0
- package/dist/icons/basic/eye.d.ts +3 -0
- package/dist/icons/basic/eye.js +6 -0
- package/dist/icons/basic/eye_slash.d.ts +3 -0
- package/dist/icons/basic/eye_slash.js +6 -0
- package/dist/icons/basic/fingerprint.d.ts +3 -0
- package/dist/icons/basic/fingerprint.js +6 -0
- package/dist/icons/basic/flag.d.ts +3 -0
- package/dist/icons/basic/flag.js +6 -0
- package/dist/icons/basic/flag_wave.d.ts +3 -0
- package/dist/icons/basic/flag_wave.js +6 -0
- package/dist/icons/basic/flag_wave_filled.d.ts +3 -0
- package/dist/icons/basic/flag_wave_filled.js +6 -0
- package/dist/icons/basic/flame.d.ts +3 -0
- package/dist/icons/basic/flame.js +6 -0
- package/dist/icons/basic/gauge.d.ts +3 -0
- package/dist/icons/basic/gauge.js +6 -0
- package/dist/icons/basic/glasses.d.ts +3 -0
- package/dist/icons/basic/glasses.js +6 -0
- package/dist/icons/basic/graduation_cap.d.ts +3 -0
- package/dist/icons/basic/graduation_cap.js +6 -0
- package/dist/icons/basic/hashmark.d.ts +3 -0
- package/dist/icons/basic/hashmark.js +6 -0
- package/dist/icons/basic/heart.d.ts +3 -0
- package/dist/icons/basic/heart.js +6 -0
- package/dist/icons/basic/heart_slash.d.ts +3 -0
- package/dist/icons/basic/heart_slash.js +6 -0
- package/dist/icons/basic/highlighter.d.ts +3 -0
- package/dist/icons/basic/highlighter.js +6 -0
- package/dist/icons/basic/home.d.ts +3 -0
- package/dist/icons/basic/home.js +6 -0
- package/dist/icons/basic/image.d.ts +3 -0
- package/dist/icons/basic/image.js +6 -0
- package/dist/icons/basic/inbox.d.ts +3 -0
- package/dist/icons/basic/inbox.js +6 -0
- package/dist/icons/basic/index.d.ts +128 -0
- package/dist/icons/basic/index.js +128 -0
- package/dist/icons/basic/italic.d.ts +3 -0
- package/dist/icons/basic/italic.js +6 -0
- package/dist/icons/basic/layers.d.ts +3 -0
- package/dist/icons/basic/layers.js +6 -0
- package/dist/icons/basic/lightening.d.ts +3 -0
- package/dist/icons/basic/lightening.js +6 -0
- package/dist/icons/basic/lightening_slash.d.ts +3 -0
- package/dist/icons/basic/lightening_slash.js +6 -0
- package/dist/icons/basic/link.d.ts +3 -0
- package/dist/icons/basic/link.js +6 -0
- package/dist/icons/basic/link_slash.d.ts +3 -0
- package/dist/icons/basic/link_slash.js +6 -0
- package/dist/icons/basic/loudspeaker.d.ts +3 -0
- package/dist/icons/basic/loudspeaker.js +6 -0
- package/dist/icons/basic/maximize.d.ts +3 -0
- package/dist/icons/basic/maximize.js +6 -0
- package/dist/icons/basic/menu.d.ts +3 -0
- package/dist/icons/basic/menu.js +6 -0
- package/dist/icons/basic/menu_circle.d.ts +3 -0
- package/dist/icons/basic/menu_circle.js +6 -0
- package/dist/icons/basic/menu_dots.d.ts +3 -0
- package/dist/icons/basic/menu_dots.js +6 -0
- package/dist/icons/basic/microphone_slash.d.ts +3 -0
- package/dist/icons/basic/microphone_slash.js +6 -0
- package/dist/icons/basic/minimize.d.ts +3 -0
- package/dist/icons/basic/minimize.js +6 -0
- package/dist/icons/basic/minus.d.ts +3 -0
- package/dist/icons/basic/minus.js +6 -0
- package/dist/icons/basic/minus_circle.d.ts +3 -0
- package/dist/icons/basic/minus_circle.js +6 -0
- package/dist/icons/basic/move_item.d.ts +3 -0
- package/dist/icons/basic/move_item.js +6 -0
- package/dist/icons/basic/new.d.ts +3 -0
- package/dist/icons/basic/new.js +6 -0
- package/dist/icons/basic/newspaper.d.ts +3 -0
- package/dist/icons/basic/newspaper.js +6 -0
- package/dist/icons/basic/note_pad.d.ts +3 -0
- package/dist/icons/basic/note_pad.js +7 -0
- package/dist/icons/basic/options.d.ts +3 -0
- package/dist/icons/basic/options.js +6 -0
- package/dist/icons/basic/paint_brush.d.ts +3 -0
- package/dist/icons/basic/paint_brush.js +6 -0
- package/dist/icons/basic/paperclip.d.ts +3 -0
- package/dist/icons/basic/paperclip.js +6 -0
- package/dist/icons/basic/paperclip_slash.d.ts +3 -0
- package/dist/icons/basic/paperclip_slash.js +6 -0
- package/dist/icons/basic/pencil.d.ts +3 -0
- package/dist/icons/basic/pencil.js +6 -0
- package/dist/icons/basic/pencil_pad.d.ts +3 -0
- package/dist/icons/basic/pencil_pad.js +6 -0
- package/dist/icons/basic/plus.d.ts +3 -0
- package/dist/icons/basic/plus.js +6 -0
- package/dist/icons/basic/plus_circle.d.ts +3 -0
- package/dist/icons/basic/plus_circle.js +6 -0
- package/dist/icons/basic/presentation.d.ts +3 -0
- package/dist/icons/basic/presentation.js +6 -0
- package/dist/icons/basic/printer.d.ts +3 -0
- package/dist/icons/basic/printer.js +6 -0
- package/dist/icons/basic/profile.d.ts +3 -0
- package/dist/icons/basic/profile.js +6 -0
- package/dist/icons/basic/pulse.d.ts +3 -0
- package/dist/icons/basic/pulse.js +6 -0
- package/dist/icons/basic/qr_code.d.ts +3 -0
- package/dist/icons/basic/qr_code.js +6 -0
- package/dist/icons/basic/resize.d.ts +3 -0
- package/dist/icons/basic/resize.js +8 -0
- package/dist/icons/basic/scan.d.ts +3 -0
- package/dist/icons/basic/scan.js +6 -0
- package/dist/icons/basic/scissors.d.ts +3 -0
- package/dist/icons/basic/scissors.js +6 -0
- package/dist/icons/basic/screenshot.d.ts +3 -0
- package/dist/icons/basic/screenshot.js +6 -0
- package/dist/icons/basic/search.d.ts +3 -0
- package/dist/icons/basic/search.js +6 -0
- package/dist/icons/basic/select_item.d.ts +3 -0
- package/dist/icons/basic/select_item.js +7 -0
- package/dist/icons/basic/settings.d.ts +3 -0
- package/dist/icons/basic/settings.js +6 -0
- package/dist/icons/basic/share.d.ts +3 -0
- package/dist/icons/basic/share.js +6 -0
- package/dist/icons/basic/share_external.d.ts +3 -0
- package/dist/icons/basic/share_external.js +6 -0
- package/dist/icons/basic/square.d.ts +3 -0
- package/dist/icons/basic/square.js +6 -0
- package/dist/icons/basic/star.d.ts +3 -0
- package/dist/icons/basic/star.js +6 -0
- package/dist/icons/basic/star_circle.d.ts +3 -0
- package/dist/icons/basic/star_circle.js +6 -0
- package/dist/icons/basic/star_filled.d.ts +3 -0
- package/dist/icons/basic/star_filled.js +6 -0
- package/dist/icons/basic/star_filled_half.d.ts +3 -0
- package/dist/icons/basic/star_filled_half.js +6 -0
- package/dist/icons/basic/star_slash.d.ts +3 -0
- package/dist/icons/basic/star_slash.js +6 -0
- package/dist/icons/basic/sticker.d.ts +3 -0
- package/dist/icons/basic/sticker.js +6 -0
- package/dist/icons/basic/strikethrough.d.ts +3 -0
- package/dist/icons/basic/strikethrough.js +6 -0
- package/dist/icons/basic/subtask.d.ts +3 -0
- package/dist/icons/basic/subtask.js +7 -0
- package/dist/icons/basic/tax.d.ts +3 -0
- package/dist/icons/basic/tax.js +9 -0
- package/dist/icons/basic/text_bg_color.d.ts +3 -0
- package/dist/icons/basic/text_bg_color.js +6 -0
- package/dist/icons/basic/text_color.d.ts +3 -0
- package/dist/icons/basic/text_color.js +6 -0
- package/dist/icons/basic/textbox.d.ts +3 -0
- package/dist/icons/basic/textbox.js +6 -0
- package/dist/icons/basic/thumbs_down.d.ts +3 -0
- package/dist/icons/basic/thumbs_down.js +6 -0
- package/dist/icons/basic/thumbs_up.d.ts +3 -0
- package/dist/icons/basic/thumbs_up.js +6 -0
- package/dist/icons/basic/thumbs_up_filled.d.ts +3 -0
- package/dist/icons/basic/thumbs_up_filled.js +6 -0
- package/dist/icons/basic/toggle_left.d.ts +3 -0
- package/dist/icons/basic/toggle_left.js +6 -0
- package/dist/icons/basic/toggle_right.d.ts +3 -0
- package/dist/icons/basic/toggle_right.js +6 -0
- package/dist/icons/basic/translate.d.ts +3 -0
- package/dist/icons/basic/translate.js +6 -0
- package/dist/icons/basic/trash.d.ts +3 -0
- package/dist/icons/basic/trash.js +6 -0
- package/dist/icons/basic/trash_slash.d.ts +3 -0
- package/dist/icons/basic/trash_slash.js +6 -0
- package/dist/icons/basic/underline.d.ts +3 -0
- package/dist/icons/basic/underline.js +6 -0
- package/dist/icons/basic/upload.d.ts +3 -0
- package/dist/icons/basic/upload.js +6 -0
- package/dist/icons/basic/video.d.ts +3 -0
- package/dist/icons/basic/video.js +6 -0
- package/dist/icons/basic/video_add.d.ts +3 -0
- package/dist/icons/basic/video_add.js +7 -0
- package/dist/icons/basic/video_slash.d.ts +3 -0
- package/dist/icons/basic/video_slash.js +6 -0
- package/dist/icons/basic/zoom_in.d.ts +3 -0
- package/dist/icons/basic/zoom_in.js +6 -0
- package/dist/icons/basic/zoom_out.d.ts +3 -0
- package/dist/icons/basic/zoom_out.js +6 -0
- package/dist/icons/data/bar_chart.d.ts +3 -0
- package/dist/icons/data/bar_chart.js +6 -0
- package/dist/icons/data/bar_chart_downward.d.ts +3 -0
- package/dist/icons/data/bar_chart_downward.js +6 -0
- package/dist/icons/data/bar_chart_downward_outline.d.ts +3 -0
- package/dist/icons/data/bar_chart_downward_outline.js +6 -0
- package/dist/icons/data/bar_chart_upward.d.ts +3 -0
- package/dist/icons/data/bar_chart_upward.js +6 -0
- package/dist/icons/data/bar_chart_upward_outline.d.ts +3 -0
- package/dist/icons/data/bar_chart_upward_outline.js +6 -0
- package/dist/icons/data/candlestick_chart.d.ts +3 -0
- package/dist/icons/data/candlestick_chart.js +6 -0
- package/dist/icons/data/four_circles.d.ts +3 -0
- package/dist/icons/data/four_circles.js +6 -0
- package/dist/icons/data/index.d.ts +20 -0
- package/dist/icons/data/index.js +20 -0
- package/dist/icons/data/legend_toggle.d.ts +3 -0
- package/dist/icons/data/legend_toggle.js +6 -0
- package/dist/icons/data/line_chart.d.ts +3 -0
- package/dist/icons/data/line_chart.js +6 -0
- package/dist/icons/data/line_chart_area.d.ts +3 -0
- package/dist/icons/data/line_chart_area.js +6 -0
- package/dist/icons/data/line_chart_area_shaded.d.ts +3 -0
- package/dist/icons/data/line_chart_area_shaded.js +6 -0
- package/dist/icons/data/line_chart_double.d.ts +3 -0
- package/dist/icons/data/line_chart_double.js +6 -0
- package/dist/icons/data/line_chart_downward.d.ts +3 -0
- package/dist/icons/data/line_chart_downward.js +6 -0
- package/dist/icons/data/line_chart_node.d.ts +3 -0
- package/dist/icons/data/line_chart_node.js +6 -0
- package/dist/icons/data/line_chart_outline.d.ts +3 -0
- package/dist/icons/data/line_chart_outline.js +6 -0
- package/dist/icons/data/line_chart_search.d.ts +3 -0
- package/dist/icons/data/line_chart_search.js +6 -0
- package/dist/icons/data/line_chart_stars.d.ts +3 -0
- package/dist/icons/data/line_chart_stars.js +6 -0
- package/dist/icons/data/line_chart_upward.d.ts +3 -0
- package/dist/icons/data/line_chart_upward.js +6 -0
- package/dist/icons/data/pie_chart.d.ts +3 -0
- package/dist/icons/data/pie_chart.js +7 -0
- package/dist/icons/data/tree.d.ts +3 -0
- package/dist/icons/data/tree.js +6 -0
- package/dist/icons/email/index.d.ts +8 -0
- package/dist/icons/email/index.js +8 -0
- package/dist/icons/email/mail.d.ts +3 -0
- package/dist/icons/email/mail.js +6 -0
- package/dist/icons/email/mail_check.d.ts +3 -0
- package/dist/icons/email/mail_check.js +6 -0
- package/dist/icons/email/mail_minus.d.ts +3 -0
- package/dist/icons/email/mail_minus.js +6 -0
- package/dist/icons/email/mail_send.d.ts +3 -0
- package/dist/icons/email/mail_send.js +6 -0
- package/dist/icons/email/send.d.ts +3 -0
- package/dist/icons/email/send.js +6 -0
- package/dist/icons/email/send_close.d.ts +3 -0
- package/dist/icons/email/send_close.js +6 -0
- package/dist/icons/email/send_schedule.d.ts +3 -0
- package/dist/icons/email/send_schedule.js +6 -0
- package/dist/icons/email/send_text.d.ts +3 -0
- package/dist/icons/email/send_text.js +6 -0
- package/dist/icons/file/clipboard.d.ts +3 -0
- package/dist/icons/file/clipboard.js +6 -0
- package/dist/icons/file/clipboard_check.d.ts +3 -0
- package/dist/icons/file/clipboard_check.js +6 -0
- package/dist/icons/file/clipboard_close.d.ts +3 -0
- package/dist/icons/file/clipboard_close.js +6 -0
- package/dist/icons/file/clipboard_minus.d.ts +3 -0
- package/dist/icons/file/clipboard_minus.js +6 -0
- package/dist/icons/file/clipboard_plus.d.ts +3 -0
- package/dist/icons/file/clipboard_plus.js +6 -0
- package/dist/icons/file/clipboard_text.d.ts +3 -0
- package/dist/icons/file/clipboard_text.js +6 -0
- package/dist/icons/file/file.d.ts +3 -0
- package/dist/icons/file/file.js +6 -0
- package/dist/icons/file/file_add.d.ts +3 -0
- package/dist/icons/file/file_add.js +6 -0
- package/dist/icons/file/file_check.d.ts +3 -0
- package/dist/icons/file/file_check.js +6 -0
- package/dist/icons/file/file_close.d.ts +3 -0
- package/dist/icons/file/file_close.js +6 -0
- package/dist/icons/file/file_code.d.ts +3 -0
- package/dist/icons/file/file_code.js +6 -0
- package/dist/icons/file/file_download.d.ts +3 -0
- package/dist/icons/file/file_download.js +6 -0
- package/dist/icons/file/file_draft.d.ts +3 -0
- package/dist/icons/file/file_draft.js +6 -0
- package/dist/icons/file/file_minus.d.ts +3 -0
- package/dist/icons/file/file_minus.js +6 -0
- package/dist/icons/file/file_plus.d.ts +3 -0
- package/dist/icons/file/file_plus.js +6 -0
- package/dist/icons/file/file_scan.d.ts +3 -0
- package/dist/icons/file/file_scan.js +6 -0
- package/dist/icons/file/file_shred.d.ts +3 -0
- package/dist/icons/file/file_shred.js +6 -0
- package/dist/icons/file/file_text.d.ts +3 -0
- package/dist/icons/file/file_text.js +6 -0
- package/dist/icons/file/file_upload.d.ts +3 -0
- package/dist/icons/file/file_upload.js +6 -0
- package/dist/icons/file/folder.d.ts +3 -0
- package/dist/icons/file/folder.js +6 -0
- package/dist/icons/file/folder_add.d.ts +3 -0
- package/dist/icons/file/folder_add.js +6 -0
- package/dist/icons/file/folder_arrow.d.ts +3 -0
- package/dist/icons/file/folder_arrow.js +6 -0
- package/dist/icons/file/folder_check.d.ts +3 -0
- package/dist/icons/file/folder_check.js +6 -0
- package/dist/icons/file/folder_close.d.ts +3 -0
- package/dist/icons/file/folder_close.js +6 -0
- package/dist/icons/file/folder_cloud.d.ts +3 -0
- package/dist/icons/file/folder_cloud.js +6 -0
- package/dist/icons/file/folder_minus.d.ts +3 -0
- package/dist/icons/file/folder_minus.js +6 -0
- package/dist/icons/file/folder_music.d.ts +3 -0
- package/dist/icons/file/folder_music.js +6 -0
- package/dist/icons/file/folder_open.d.ts +3 -0
- package/dist/icons/file/folder_open.js +6 -0
- package/dist/icons/file/folder_plus.d.ts +3 -0
- package/dist/icons/file/folder_plus.js +6 -0
- package/dist/icons/file/folder_zip.d.ts +3 -0
- package/dist/icons/file/folder_zip.js +6 -0
- package/dist/icons/file/index.d.ts +34 -0
- package/dist/icons/file/index.js +34 -0
- package/dist/icons/file/note.d.ts +3 -0
- package/dist/icons/file/note.js +6 -0
- package/dist/icons/file/note_text.d.ts +3 -0
- package/dist/icons/file/note_text.js +6 -0
- package/dist/icons/file/pdf.d.ts +3 -0
- package/dist/icons/file/pdf.js +6 -0
- package/dist/icons/file/photo.d.ts +3 -0
- package/dist/icons/file/photo.js +6 -0
- package/dist/icons/finance/bitcoin.d.ts +3 -0
- package/dist/icons/finance/bitcoin.js +6 -0
- package/dist/icons/finance/credit_card.d.ts +3 -0
- package/dist/icons/finance/credit_card.js +6 -0
- package/dist/icons/finance/credit_card_add.d.ts +3 -0
- package/dist/icons/finance/credit_card_add.js +6 -0
- package/dist/icons/finance/credit_card_face.d.ts +3 -0
- package/dist/icons/finance/credit_card_face.js +6 -0
- package/dist/icons/finance/credit_card_outcome.d.ts +3 -0
- package/dist/icons/finance/credit_card_outcome.js +6 -0
- package/dist/icons/finance/credit_card_scan.d.ts +3 -0
- package/dist/icons/finance/credit_card_scan.js +6 -0
- package/dist/icons/finance/credit_card_share.d.ts +3 -0
- package/dist/icons/finance/credit_card_share.js +6 -0
- package/dist/icons/finance/credit_card_slash.d.ts +3 -0
- package/dist/icons/finance/credit_card_slash.js +6 -0
- package/dist/icons/finance/currency_exchange.d.ts +3 -0
- package/dist/icons/finance/currency_exchange.js +6 -0
- package/dist/icons/finance/dollar.d.ts +3 -0
- package/dist/icons/finance/dollar.js +6 -0
- package/dist/icons/finance/ethereum.d.ts +3 -0
- package/dist/icons/finance/ethereum.js +6 -0
- package/dist/icons/finance/index.d.ts +14 -0
- package/dist/icons/finance/index.js +14 -0
- package/dist/icons/finance/paypass.d.ts +3 -0
- package/dist/icons/finance/paypass.js +6 -0
- package/dist/icons/finance/strongbox.d.ts +3 -0
- package/dist/icons/finance/strongbox.js +6 -0
- package/dist/icons/finance/wallet.d.ts +3 -0
- package/dist/icons/finance/wallet.js +6 -0
- package/dist/icons/index.d.ts +21 -0
- package/dist/icons/index.js +21 -0
- package/dist/icons/layout/block_align_bottom.d.ts +3 -0
- package/dist/icons/layout/block_align_bottom.js +6 -0
- package/dist/icons/layout/block_align_center.d.ts +3 -0
- package/dist/icons/layout/block_align_center.js +6 -0
- package/dist/icons/layout/block_align_left.d.ts +3 -0
- package/dist/icons/layout/block_align_left.js +6 -0
- package/dist/icons/layout/block_align_middle.d.ts +3 -0
- package/dist/icons/layout/block_align_middle.js +6 -0
- package/dist/icons/layout/block_align_right.d.ts +3 -0
- package/dist/icons/layout/block_align_right.js +6 -0
- package/dist/icons/layout/block_align_top.d.ts +3 -0
- package/dist/icons/layout/block_align_top.js +6 -0
- package/dist/icons/layout/block_horizontal.d.ts +3 -0
- package/dist/icons/layout/block_horizontal.js +6 -0
- package/dist/icons/layout/block_vertical.d.ts +3 -0
- package/dist/icons/layout/block_vertical.js +6 -0
- package/dist/icons/layout/edit_shape.d.ts +3 -0
- package/dist/icons/layout/edit_shape.js +6 -0
- package/dist/icons/layout/elements.d.ts +3 -0
- package/dist/icons/layout/elements.js +6 -0
- package/dist/icons/layout/elements_add.d.ts +3 -0
- package/dist/icons/layout/elements_add.js +6 -0
- package/dist/icons/layout/elements_filled.d.ts +3 -0
- package/dist/icons/layout/elements_filled.js +6 -0
- package/dist/icons/layout/elements_masonry.d.ts +3 -0
- package/dist/icons/layout/elements_masonry.js +6 -0
- package/dist/icons/layout/frame.d.ts +3 -0
- package/dist/icons/layout/frame.js +6 -0
- package/dist/icons/layout/frame_stack.d.ts +3 -0
- package/dist/icons/layout/frame_stack.js +6 -0
- package/dist/icons/layout/grid.d.ts +3 -0
- package/dist/icons/layout/grid.js +6 -0
- package/dist/icons/layout/grid_column_three.d.ts +3 -0
- package/dist/icons/layout/grid_column_three.js +6 -0
- package/dist/icons/layout/grid_column_two.d.ts +3 -0
- package/dist/icons/layout/grid_column_two.js +6 -0
- package/dist/icons/layout/grid_dynamic.d.ts +3 -0
- package/dist/icons/layout/grid_dynamic.js +6 -0
- package/dist/icons/layout/grid_frame.d.ts +3 -0
- package/dist/icons/layout/grid_frame.js +6 -0
- package/dist/icons/layout/grid_row_three.d.ts +3 -0
- package/dist/icons/layout/grid_row_three.js +6 -0
- package/dist/icons/layout/grid_row_two.d.ts +3 -0
- package/dist/icons/layout/grid_row_two.js +6 -0
- package/dist/icons/layout/grid_six.d.ts +3 -0
- package/dist/icons/layout/grid_six.js +6 -0
- package/dist/icons/layout/grid_small.d.ts +3 -0
- package/dist/icons/layout/grid_small.js +6 -0
- package/dist/icons/layout/iframe.d.ts +3 -0
- package/dist/icons/layout/iframe.js +6 -0
- package/dist/icons/layout/index.d.ts +44 -0
- package/dist/icons/layout/index.js +44 -0
- package/dist/icons/layout/kanban.d.ts +3 -0
- package/dist/icons/layout/kanban.js +6 -0
- package/dist/icons/layout/layout.d.ts +3 -0
- package/dist/icons/layout/layout.js +6 -0
- package/dist/icons/layout/list.d.ts +3 -0
- package/dist/icons/layout/list.js +6 -0
- package/dist/icons/layout/list_filled.d.ts +3 -0
- package/dist/icons/layout/list_filled.js +11 -0
- package/dist/icons/layout/padding.d.ts +3 -0
- package/dist/icons/layout/padding.js +6 -0
- package/dist/icons/layout/page_break.d.ts +3 -0
- package/dist/icons/layout/page_break.js +6 -0
- package/dist/icons/layout/rotate_left.d.ts +3 -0
- package/dist/icons/layout/rotate_left.js +6 -0
- package/dist/icons/layout/rotate_right.d.ts +3 -0
- package/dist/icons/layout/rotate_right.js +6 -0
- package/dist/icons/layout/ruler.d.ts +3 -0
- package/dist/icons/layout/ruler.js +6 -0
- package/dist/icons/layout/segment.d.ts +3 -0
- package/dist/icons/layout/segment.js +6 -0
- package/dist/icons/layout/select_area.d.ts +3 -0
- package/dist/icons/layout/select_area.js +6 -0
- package/dist/icons/layout/select_boundary.d.ts +3 -0
- package/dist/icons/layout/select_boundary.js +6 -0
- package/dist/icons/layout/sidebar_left.d.ts +3 -0
- package/dist/icons/layout/sidebar_left.js +6 -0
- package/dist/icons/layout/sidebar_right.d.ts +3 -0
- package/dist/icons/layout/sidebar_right.js +6 -0
- package/dist/icons/layout/slides.d.ts +3 -0
- package/dist/icons/layout/slides.js +6 -0
- package/dist/icons/layout/slides_horizontal.d.ts +3 -0
- package/dist/icons/layout/slides_horizontal.js +6 -0
- package/dist/icons/layout/slides_vertical.d.ts +3 -0
- package/dist/icons/layout/slides_vertical.js +11 -0
- package/dist/icons/layout/stack.d.ts +3 -0
- package/dist/icons/layout/stack.js +6 -0
- package/dist/icons/layout/text.d.ts +3 -0
- package/dist/icons/layout/text.js +6 -0
- package/dist/icons/maps/atlas.d.ts +3 -0
- package/dist/icons/maps/atlas.js +6 -0
- package/dist/icons/maps/compass.d.ts +3 -0
- package/dist/icons/maps/compass.js +6 -0
- package/dist/icons/maps/direction.d.ts +3 -0
- package/dist/icons/maps/direction.js +6 -0
- package/dist/icons/maps/direction_angled.d.ts +3 -0
- package/dist/icons/maps/direction_angled.js +6 -0
- package/dist/icons/maps/globe.d.ts +3 -0
- package/dist/icons/maps/globe.js +6 -0
- package/dist/icons/maps/globe_slash.d.ts +3 -0
- package/dist/icons/maps/globe_slash.js +6 -0
- package/dist/icons/maps/index.d.ts +22 -0
- package/dist/icons/maps/index.js +22 -0
- package/dist/icons/maps/location.d.ts +3 -0
- package/dist/icons/maps/location.js +6 -0
- package/dist/icons/maps/location_slash.d.ts +3 -0
- package/dist/icons/maps/location_slash.js +6 -0
- package/dist/icons/maps/map.d.ts +3 -0
- package/dist/icons/maps/map.js +6 -0
- package/dist/icons/maps/marker.d.ts +3 -0
- package/dist/icons/maps/marker.js +6 -0
- package/dist/icons/maps/panorama.d.ts +3 -0
- package/dist/icons/maps/panorama.js +6 -0
- package/dist/icons/maps/pin.d.ts +3 -0
- package/dist/icons/maps/pin.js +6 -0
- package/dist/icons/maps/pin_arrow.d.ts +3 -0
- package/dist/icons/maps/pin_arrow.js +6 -0
- package/dist/icons/maps/pin_location.d.ts +3 -0
- package/dist/icons/maps/pin_location.js +6 -0
- package/dist/icons/maps/pin_plus.d.ts +3 -0
- package/dist/icons/maps/pin_plus.js +6 -0
- package/dist/icons/maps/pin_question.d.ts +3 -0
- package/dist/icons/maps/pin_question.js +6 -0
- package/dist/icons/maps/pin_slash.d.ts +3 -0
- package/dist/icons/maps/pin_slash.js +6 -0
- package/dist/icons/maps/push_pin.d.ts +3 -0
- package/dist/icons/maps/push_pin.js +6 -0
- package/dist/icons/maps/push_pin_filled.d.ts +3 -0
- package/dist/icons/maps/push_pin_filled.js +6 -0
- package/dist/icons/maps/push_pin_slash.d.ts +3 -0
- package/dist/icons/maps/push_pin_slash.js +6 -0
- package/dist/icons/maps/radar.d.ts +3 -0
- package/dist/icons/maps/radar.js +6 -0
- package/dist/icons/maps/route.d.ts +3 -0
- package/dist/icons/maps/route.js +6 -0
- package/dist/icons/message/bubble.d.ts +3 -0
- package/dist/icons/message/bubble.js +6 -0
- package/dist/icons/message/bubble_question.d.ts +3 -0
- package/dist/icons/message/bubble_question.js +6 -0
- package/dist/icons/message/comment.d.ts +3 -0
- package/dist/icons/message/comment.js +6 -0
- package/dist/icons/message/comment_add.d.ts +3 -0
- package/dist/icons/message/comment_add.js +6 -0
- package/dist/icons/message/comment_check.d.ts +3 -0
- package/dist/icons/message/comment_check.js +6 -0
- package/dist/icons/message/comment_close.d.ts +3 -0
- package/dist/icons/message/comment_close.js +6 -0
- package/dist/icons/message/comment_minus.d.ts +3 -0
- package/dist/icons/message/comment_minus.js +6 -0
- package/dist/icons/message/comment_text.d.ts +3 -0
- package/dist/icons/message/comment_text.js +6 -0
- package/dist/icons/message/index.d.ts +8 -0
- package/dist/icons/message/index.js +8 -0
- package/dist/icons/misc/advertisement.d.ts +3 -0
- package/dist/icons/misc/advertisement.js +6 -0
- package/dist/icons/misc/atom.d.ts +3 -0
- package/dist/icons/misc/atom.js +6 -0
- package/dist/icons/misc/bone.d.ts +3 -0
- package/dist/icons/misc/bone.js +6 -0
- package/dist/icons/misc/brightness_high.d.ts +3 -0
- package/dist/icons/misc/brightness_high.js +6 -0
- package/dist/icons/misc/brightness_low.d.ts +3 -0
- package/dist/icons/misc/brightness_low.js +6 -0
- package/dist/icons/misc/contrast.d.ts +3 -0
- package/dist/icons/misc/contrast.js +6 -0
- package/dist/icons/misc/crosshairs.d.ts +3 -0
- package/dist/icons/misc/crosshairs.js +6 -0
- package/dist/icons/misc/crown.d.ts +3 -0
- package/dist/icons/misc/crown.js +6 -0
- package/dist/icons/misc/footprint.d.ts +3 -0
- package/dist/icons/misc/footprint.js +6 -0
- package/dist/icons/misc/form.d.ts +3 -0
- package/dist/icons/misc/form.js +6 -0
- package/dist/icons/misc/funnel.d.ts +3 -0
- package/dist/icons/misc/funnel.js +6 -0
- package/dist/icons/misc/index.d.ts +25 -0
- package/dist/icons/misc/index.js +25 -0
- package/dist/icons/misc/infinite.d.ts +3 -0
- package/dist/icons/misc/infinite.js +6 -0
- package/dist/icons/misc/insert_button.d.ts +3 -0
- package/dist/icons/misc/insert_button.js +6 -0
- package/dist/icons/misc/light_bulb.d.ts +3 -0
- package/dist/icons/misc/light_bulb.js +6 -0
- package/dist/icons/misc/moon.d.ts +3 -0
- package/dist/icons/misc/moon.js +6 -0
- package/dist/icons/misc/nut.d.ts +3 -0
- package/dist/icons/misc/nut.js +6 -0
- package/dist/icons/misc/planet.d.ts +3 -0
- package/dist/icons/misc/planet.js +6 -0
- package/dist/icons/misc/plus_thick.d.ts +3 -0
- package/dist/icons/misc/plus_thick.js +6 -0
- package/dist/icons/misc/pocket.d.ts +3 -0
- package/dist/icons/misc/pocket.js +6 -0
- package/dist/icons/misc/rocket.d.ts +3 -0
- package/dist/icons/misc/rocket.js +6 -0
- package/dist/icons/misc/soup.d.ts +3 -0
- package/dist/icons/misc/soup.js +10 -0
- package/dist/icons/misc/sun.d.ts +3 -0
- package/dist/icons/misc/sun.js +6 -0
- package/dist/icons/misc/toy_horse.d.ts +3 -0
- package/dist/icons/misc/toy_horse.js +6 -0
- package/dist/icons/misc/trophy.d.ts +3 -0
- package/dist/icons/misc/trophy.js +6 -0
- package/dist/icons/misc/watercloset.d.ts +3 -0
- package/dist/icons/misc/watercloset.js +6 -0
- package/dist/icons/notifications/alert_circle.d.ts +3 -0
- package/dist/icons/notifications/alert_circle.js +6 -0
- package/dist/icons/notifications/alert_octogon.d.ts +3 -0
- package/dist/icons/notifications/alert_octogon.js +6 -0
- package/dist/icons/notifications/alert_triangle.d.ts +3 -0
- package/dist/icons/notifications/alert_triangle.js +6 -0
- package/dist/icons/notifications/app_notification.d.ts +3 -0
- package/dist/icons/notifications/app_notification.js +6 -0
- package/dist/icons/notifications/bell.d.ts +3 -0
- package/dist/icons/notifications/bell.js +6 -0
- package/dist/icons/notifications/bell_alert.d.ts +3 -0
- package/dist/icons/notifications/bell_alert.js +6 -0
- package/dist/icons/notifications/bell_checkmark.d.ts +3 -0
- package/dist/icons/notifications/bell_checkmark.js +6 -0
- package/dist/icons/notifications/bell_minus.d.ts +3 -0
- package/dist/icons/notifications/bell_minus.js +6 -0
- package/dist/icons/notifications/bell_plus.d.ts +3 -0
- package/dist/icons/notifications/bell_plus.js +6 -0
- package/dist/icons/notifications/bell_ring.d.ts +3 -0
- package/dist/icons/notifications/bell_ring.js +8 -0
- package/dist/icons/notifications/bell_slash.d.ts +3 -0
- package/dist/icons/notifications/bell_slash.js +6 -0
- package/dist/icons/notifications/close_octogon.d.ts +3 -0
- package/dist/icons/notifications/close_octogon.js +6 -0
- package/dist/icons/notifications/index.d.ts +14 -0
- package/dist/icons/notifications/index.js +14 -0
- package/dist/icons/notifications/information.d.ts +3 -0
- package/dist/icons/notifications/information.js +6 -0
- package/dist/icons/notifications/minus_octogon.d.ts +3 -0
- package/dist/icons/notifications/minus_octogon.js +6 -0
- package/dist/icons/notifications/question_circle.d.ts +3 -0
- package/dist/icons/notifications/question_circle.js +6 -0
- package/dist/icons/people/group.d.ts +3 -0
- package/dist/icons/people/group.js +6 -0
- package/dist/icons/people/group_add.d.ts +3 -0
- package/dist/icons/people/group_add.js +6 -0
- package/dist/icons/people/group_remove.d.ts +3 -0
- package/dist/icons/people/group_remove.js +6 -0
- package/dist/icons/people/groups.d.ts +3 -0
- package/dist/icons/people/groups.js +6 -0
- package/dist/icons/people/index.d.ts +9 -0
- package/dist/icons/people/index.js +9 -0
- package/dist/icons/people/person.d.ts +3 -0
- package/dist/icons/people/person.js +6 -0
- package/dist/icons/people/person_add.d.ts +3 -0
- package/dist/icons/people/person_add.js +6 -0
- package/dist/icons/people/person_checkmark.d.ts +3 -0
- package/dist/icons/people/person_checkmark.js +6 -0
- package/dist/icons/people/person_circle.d.ts +3 -0
- package/dist/icons/people/person_circle.js +8 -0
- package/dist/icons/people/person_remove.d.ts +3 -0
- package/dist/icons/people/person_remove.js +6 -0
- package/dist/icons/phone/index.d.ts +14 -0
- package/dist/icons/phone/index.js +14 -0
- package/dist/icons/phone/keypad.d.ts +3 -0
- package/dist/icons/phone/keypad.js +6 -0
- package/dist/icons/phone/phone.d.ts +3 -0
- package/dist/icons/phone/phone.js +6 -0
- package/dist/icons/phone/phone_add.d.ts +3 -0
- package/dist/icons/phone/phone_add.js +6 -0
- package/dist/icons/phone/phone_calling.d.ts +3 -0
- package/dist/icons/phone/phone_calling.js +6 -0
- package/dist/icons/phone/phone_check.d.ts +3 -0
- package/dist/icons/phone/phone_check.js +6 -0
- package/dist/icons/phone/phone_close.d.ts +3 -0
- package/dist/icons/phone/phone_close.js +6 -0
- package/dist/icons/phone/phone_decline.d.ts +3 -0
- package/dist/icons/phone/phone_decline.js +6 -0
- package/dist/icons/phone/phone_end.d.ts +3 -0
- package/dist/icons/phone/phone_end.js +6 -0
- package/dist/icons/phone/phone_forwarded.d.ts +3 -0
- package/dist/icons/phone/phone_forwarded.js +6 -0
- package/dist/icons/phone/phone_hash.d.ts +3 -0
- package/dist/icons/phone/phone_hash.js +6 -0
- package/dist/icons/phone/phone_incoming.d.ts +3 -0
- package/dist/icons/phone/phone_incoming.js +6 -0
- package/dist/icons/phone/phone_missed.d.ts +3 -0
- package/dist/icons/phone/phone_missed.js +6 -0
- package/dist/icons/phone/phone_outgoing.d.ts +3 -0
- package/dist/icons/phone/phone_outgoing.js +6 -0
- package/dist/icons/phone/phone_pause.d.ts +3 -0
- package/dist/icons/phone/phone_pause.js +6 -0
- package/dist/icons/phone/phone_slash.d.ts +3 -0
- package/dist/icons/phone/phone_slash.js +6 -0
- package/dist/icons/phone/voicemail.d.ts +3 -0
- package/dist/icons/phone/voicemail.js +6 -0
- package/dist/icons/security/index.d.ts +11 -0
- package/dist/icons/security/index.js +11 -0
- package/dist/icons/security/key.d.ts +3 -0
- package/dist/icons/security/key.js +6 -0
- package/dist/icons/security/key_slash.d.ts +3 -0
- package/dist/icons/security/key_slash.js +6 -0
- package/dist/icons/security/lock.d.ts +3 -0
- package/dist/icons/security/lock.js +6 -0
- package/dist/icons/security/lock_circle.d.ts +3 -0
- package/dist/icons/security/lock_circle.js +6 -0
- package/dist/icons/security/lock_open.d.ts +3 -0
- package/dist/icons/security/lock_open.js +6 -0
- package/dist/icons/security/lock_slash.d.ts +3 -0
- package/dist/icons/security/lock_slash.js +6 -0
- package/dist/icons/security/shield.d.ts +3 -0
- package/dist/icons/security/shield.js +6 -0
- package/dist/icons/security/shield_checkmark.d.ts +3 -0
- package/dist/icons/security/shield_checkmark.js +6 -0
- package/dist/icons/security/shield_lock.d.ts +3 -0
- package/dist/icons/security/shield_lock.js +6 -0
- package/dist/icons/security/shield_slash.d.ts +3 -0
- package/dist/icons/security/shield_slash.js +6 -0
- package/dist/icons/security/verified.d.ts +3 -0
- package/dist/icons/security/verified.js +6 -0
- package/dist/icons/shopping/basket.d.ts +3 -0
- package/dist/icons/shopping/basket.js +6 -0
- package/dist/icons/shopping/cart.d.ts +3 -0
- package/dist/icons/shopping/cart.js +6 -0
- package/dist/icons/shopping/coupon.d.ts +3 -0
- package/dist/icons/shopping/coupon.js +6 -0
- package/dist/icons/shopping/coupon_cut.d.ts +3 -0
- package/dist/icons/shopping/coupon_cut.js +6 -0
- package/dist/icons/shopping/delivery.d.ts +3 -0
- package/dist/icons/shopping/delivery.js +6 -0
- package/dist/icons/shopping/discount.d.ts +3 -0
- package/dist/icons/shopping/discount.js +6 -0
- package/dist/icons/shopping/gift.d.ts +3 -0
- package/dist/icons/shopping/gift.js +6 -0
- package/dist/icons/shopping/gift_bag.d.ts +3 -0
- package/dist/icons/shopping/gift_bag.js +6 -0
- package/dist/icons/shopping/index.d.ts +14 -0
- package/dist/icons/shopping/index.js +14 -0
- package/dist/icons/shopping/inventory.d.ts +3 -0
- package/dist/icons/shopping/inventory.js +6 -0
- package/dist/icons/shopping/point_of_sale.d.ts +3 -0
- package/dist/icons/shopping/point_of_sale.js +6 -0
- package/dist/icons/shopping/shirt.d.ts +3 -0
- package/dist/icons/shopping/shirt.js +6 -0
- package/dist/icons/shopping/tag.d.ts +3 -0
- package/dist/icons/shopping/tag.js +6 -0
- package/dist/icons/shopping/tag_diagonal.d.ts +3 -0
- package/dist/icons/shopping/tag_diagonal.js +6 -0
- package/dist/icons/shopping/tote.d.ts +3 -0
- package/dist/icons/shopping/tote.js +6 -0
- package/dist/icons/special/index.d.ts +4 -0
- package/dist/icons/special/index.js +4 -0
- package/dist/icons/special/upload_audio.d.ts +11 -0
- package/dist/icons/special/upload_audio.js +11 -0
- package/dist/icons/special/upload_file.d.ts +11 -0
- package/dist/icons/special/upload_file.js +6 -0
- package/dist/icons/special/upload_image.d.ts +11 -0
- package/dist/icons/special/upload_image.js +8 -0
- package/dist/icons/special/upload_video.d.ts +11 -0
- package/dist/icons/special/upload_video.js +9 -0
- package/dist/icons/symbols/at.d.ts +3 -0
- package/dist/icons/symbols/at.js +6 -0
- package/dist/icons/symbols/cc.d.ts +3 -0
- package/dist/icons/symbols/cc.js +6 -0
- package/dist/icons/symbols/cmd.d.ts +3 -0
- package/dist/icons/symbols/cmd.js +6 -0
- package/dist/icons/symbols/facebook.d.ts +3 -0
- package/dist/icons/symbols/facebook.js +6 -0
- package/dist/icons/symbols/google.d.ts +3 -0
- package/dist/icons/symbols/google.js +9 -0
- package/dist/icons/symbols/hash.d.ts +3 -0
- package/dist/icons/symbols/hash.js +6 -0
- package/dist/icons/symbols/index.d.ts +9 -0
- package/dist/icons/symbols/index.js +9 -0
- package/dist/icons/symbols/instagram.d.ts +3 -0
- package/dist/icons/symbols/instagram.js +18 -0
- package/dist/icons/symbols/messenger.d.ts +3 -0
- package/dist/icons/symbols/messenger.js +12 -0
- package/dist/icons/symbols/twitter.d.ts +3 -0
- package/dist/icons/symbols/twitter.js +6 -0
- package/dist/icons/technology/battery.d.ts +3 -0
- package/dist/icons/technology/battery.js +6 -0
- package/dist/icons/technology/battery_100.d.ts +3 -0
- package/dist/icons/technology/battery_100.js +6 -0
- package/dist/icons/technology/battery_20.d.ts +3 -0
- package/dist/icons/technology/battery_20.js +6 -0
- package/dist/icons/technology/battery_40.d.ts +3 -0
- package/dist/icons/technology/battery_40.js +6 -0
- package/dist/icons/technology/battery_60.d.ts +3 -0
- package/dist/icons/technology/battery_60.js +6 -0
- package/dist/icons/technology/battery_80.d.ts +3 -0
- package/dist/icons/technology/battery_80.js +6 -0
- package/dist/icons/technology/battery_charging.d.ts +3 -0
- package/dist/icons/technology/battery_charging.js +6 -0
- package/dist/icons/technology/battery_slash.d.ts +3 -0
- package/dist/icons/technology/battery_slash.js +6 -0
- package/dist/icons/technology/devices.d.ts +3 -0
- package/dist/icons/technology/devices.js +6 -0
- package/dist/icons/technology/floppy_disk.d.ts +3 -0
- package/dist/icons/technology/floppy_disk.js +6 -0
- package/dist/icons/technology/index.d.ts +17 -0
- package/dist/icons/technology/index.js +17 -0
- package/dist/icons/technology/iphone.d.ts +3 -0
- package/dist/icons/technology/iphone.js +6 -0
- package/dist/icons/technology/laptop.d.ts +3 -0
- package/dist/icons/technology/laptop.js +6 -0
- package/dist/icons/technology/mobile.d.ts +3 -0
- package/dist/icons/technology/mobile.js +6 -0
- package/dist/icons/technology/monitor.d.ts +3 -0
- package/dist/icons/technology/monitor.js +6 -0
- package/dist/icons/technology/server.d.ts +3 -0
- package/dist/icons/technology/server.js +6 -0
- package/dist/icons/technology/sim_card.d.ts +3 -0
- package/dist/icons/technology/sim_card.js +6 -0
- package/dist/icons/technology/usb_stick.d.ts +3 -0
- package/dist/icons/technology/usb_stick.js +6 -0
- package/dist/icons/text/align_center.d.ts +3 -0
- package/dist/icons/text/align_center.js +6 -0
- package/dist/icons/text/align_justified.d.ts +3 -0
- package/dist/icons/text/align_justified.js +6 -0
- package/dist/icons/text/align_left.d.ts +3 -0
- package/dist/icons/text/align_left.js +6 -0
- package/dist/icons/text/align_right.d.ts +3 -0
- package/dist/icons/text/align_right.js +6 -0
- package/dist/icons/text/indent_decrease.d.ts +3 -0
- package/dist/icons/text/indent_decrease.js +6 -0
- package/dist/icons/text/indent_increase.d.ts +3 -0
- package/dist/icons/text/indent_increase.js +6 -0
- package/dist/icons/text/index.d.ts +10 -0
- package/dist/icons/text/index.js +10 -0
- package/dist/icons/text/list_ordered.d.ts +3 -0
- package/dist/icons/text/list_ordered.js +6 -0
- package/dist/icons/text/list_unordered.d.ts +3 -0
- package/dist/icons/text/list_unordered.js +6 -0
- package/dist/icons/text/quote.d.ts +3 -0
- package/dist/icons/text/quote.js +6 -0
- package/dist/icons/text/table.d.ts +3 -0
- package/dist/icons/text/table.js +6 -0
- package/dist/icons/time/alarm.d.ts +3 -0
- package/dist/icons/time/alarm.js +6 -0
- package/dist/icons/time/alarm_checkmark.d.ts +3 -0
- package/dist/icons/time/alarm_checkmark.js +6 -0
- package/dist/icons/time/alarm_minus.d.ts +3 -0
- package/dist/icons/time/alarm_minus.js +6 -0
- package/dist/icons/time/alarm_plus.d.ts +3 -0
- package/dist/icons/time/alarm_plus.js +6 -0
- package/dist/icons/time/alarm_slash.d.ts +3 -0
- package/dist/icons/time/alarm_slash.js +6 -0
- package/dist/icons/time/alarm_snooze.d.ts +3 -0
- package/dist/icons/time/alarm_snooze.js +6 -0
- package/dist/icons/time/calendar.d.ts +3 -0
- package/dist/icons/time/calendar.js +6 -0
- package/dist/icons/time/calendar_add.d.ts +3 -0
- package/dist/icons/time/calendar_add.js +6 -0
- package/dist/icons/time/calendar_checkmark.d.ts +3 -0
- package/dist/icons/time/calendar_checkmark.js +6 -0
- package/dist/icons/time/calendar_close.d.ts +3 -0
- package/dist/icons/time/calendar_close.js +6 -0
- package/dist/icons/time/calendar_dates.d.ts +3 -0
- package/dist/icons/time/calendar_dates.js +6 -0
- package/dist/icons/time/calendar_minus.d.ts +3 -0
- package/dist/icons/time/calendar_minus.js +6 -0
- package/dist/icons/time/calendar_plus.d.ts +3 -0
- package/dist/icons/time/calendar_plus.js +6 -0
- package/dist/icons/time/calendar_scroll.d.ts +3 -0
- package/dist/icons/time/calendar_scroll.js +8 -0
- package/dist/icons/time/clock.d.ts +3 -0
- package/dist/icons/time/clock.js +6 -0
- package/dist/icons/time/clock_history.d.ts +3 -0
- package/dist/icons/time/clock_history.js +6 -0
- package/dist/icons/time/index.d.ts +19 -0
- package/dist/icons/time/index.js +19 -0
- package/dist/icons/time/stopwatch.d.ts +3 -0
- package/dist/icons/time/stopwatch.js +6 -0
- package/dist/icons/time/timer.d.ts +3 -0
- package/dist/icons/time/timer.js +6 -0
- package/dist/icons/time/watch.d.ts +3 -0
- package/dist/icons/time/watch.js +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/types/attributes.d.ts +50 -0
- package/dist/types/attributes.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/date.d.ts +17 -0
- package/dist/utils/date.js +98 -0
- package/dist/utils/function.d.ts +1 -0
- package/dist/utils/function.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/package.json +5 -21
- package/tsconfig.json +2 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, Checkbox, P } from 'components';
|
|
4
|
+
const Dropdown = ({ checkbox, children, closeOnChange = true, closeOnBlur = true, defaultValue = '', disabled = false, hasArrow, maintainState = true, multiple, offset = [0, 16], onChange, open: openDirection = 'right', options, sx, trigger, ...rest }) => {
|
|
5
|
+
const id = React.useId();
|
|
6
|
+
const wrapperRef = React.useRef(null);
|
|
7
|
+
const optionsRef = React.useRef(null);
|
|
8
|
+
const [open, setOpen] = React.useState(false);
|
|
9
|
+
const [selected, setSelected] = React.useState(() => defaultValue ? defaultValue : multiple ? [] : '');
|
|
10
|
+
React.useEffect(() => {
|
|
11
|
+
if (disabled) {
|
|
12
|
+
setOpen(false);
|
|
13
|
+
}
|
|
14
|
+
}, [disabled]);
|
|
15
|
+
const handleOpen = () => {
|
|
16
|
+
if (disabled) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
setOpen((prev) => !prev);
|
|
20
|
+
};
|
|
21
|
+
const handleBlur = (event) => {
|
|
22
|
+
if (closeOnBlur &&
|
|
23
|
+
wrapperRef?.current &&
|
|
24
|
+
!wrapperRef?.current?.contains(event.relatedTarget)) {
|
|
25
|
+
setOpen(false);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const handleChangeSingle = (event) => {
|
|
29
|
+
event.stopPropagation();
|
|
30
|
+
const value = event.target.getAttribute('data-value') ?? '';
|
|
31
|
+
if (selected !== value) {
|
|
32
|
+
setSelected(value);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
setSelected('');
|
|
36
|
+
}
|
|
37
|
+
if (closeOnChange) {
|
|
38
|
+
setOpen(false);
|
|
39
|
+
}
|
|
40
|
+
if (onChange)
|
|
41
|
+
onChange(event);
|
|
42
|
+
};
|
|
43
|
+
const handleChangeMultiple = (event) => {
|
|
44
|
+
event.stopPropagation();
|
|
45
|
+
const value = event.target.getAttribute('data-value') ?? '';
|
|
46
|
+
if (Array.isArray(selected) && selected.includes(value)) {
|
|
47
|
+
setSelected((prev) => prev.filter((item) => item !== value));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
setSelected((prev) => [value, ...prev]);
|
|
51
|
+
}
|
|
52
|
+
if (closeOnChange) {
|
|
53
|
+
setOpen(false);
|
|
54
|
+
}
|
|
55
|
+
if (onChange)
|
|
56
|
+
onChange(event);
|
|
57
|
+
};
|
|
58
|
+
const handleChange = multiple ? handleChangeMultiple : handleChangeSingle;
|
|
59
|
+
const isSelected = (value) => maintainState && (multiple ? selected.includes(value) : value === selected);
|
|
60
|
+
/**
|
|
61
|
+
* allow for the API to accept children as options
|
|
62
|
+
* or options prop
|
|
63
|
+
*/
|
|
64
|
+
let dropdownOptions = null;
|
|
65
|
+
if (children) {
|
|
66
|
+
dropdownOptions = React.Children.map(children, (child) => {
|
|
67
|
+
let props;
|
|
68
|
+
if (React.isValidElement(child)) {
|
|
69
|
+
// eslint ignore is okay bc deconstruction removes field
|
|
70
|
+
// eslint-disable-next-line
|
|
71
|
+
const { onClick, ...possibleProps } = child.props;
|
|
72
|
+
props = possibleProps;
|
|
73
|
+
return (React.createElement(Option, { key: props.value, checkbox: !!checkbox, onClick: handleChange, selected: isSelected(props.value), ...props }));
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
if (options) {
|
|
81
|
+
dropdownOptions = options.map((option, index) => {
|
|
82
|
+
if (typeof option === 'string' && option === 'break')
|
|
83
|
+
return React.createElement(Spacer, { key: `${id}-spacer-${index}` });
|
|
84
|
+
return (React.createElement(Option, { key: option.value, checkbox: !!checkbox, onClick: handleChange, selected: isSelected(option.value), ...option }));
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return (React.createElement(Wrapper, { "$sx": sx, tabIndex: 0, ref: wrapperRef, onBlurCapture: handleBlur, ...rest },
|
|
88
|
+
React.cloneElement(trigger, typeof trigger.type === 'string' ||
|
|
89
|
+
trigger.type?.displayName !== 'Button'
|
|
90
|
+
? { onClick: handleOpen }
|
|
91
|
+
: { isDropdownOpen: open, onClick: handleOpen }),
|
|
92
|
+
open && (React.createElement(Container, { "$hasArrow": hasArrow, "$offset": offset, "$openDirection": openDirection, ref: optionsRef }, dropdownOptions))));
|
|
93
|
+
};
|
|
94
|
+
const Wrapper = styled.div `
|
|
95
|
+
position: relative;
|
|
96
|
+
display: block;
|
|
97
|
+
outline: none;
|
|
98
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
99
|
+
`;
|
|
100
|
+
const Container = styled.div `
|
|
101
|
+
z-index: 1;
|
|
102
|
+
background-color: var(--color-white);
|
|
103
|
+
position: absolute;
|
|
104
|
+
width: max-content;
|
|
105
|
+
z-index: 100;
|
|
106
|
+
outline: none;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
box-shadow: var(--elevation-2);
|
|
109
|
+
border-radius: 8px;
|
|
110
|
+
|
|
111
|
+
& > div:first-of-type {
|
|
112
|
+
border-radius: 8px 8px 0px 0px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
& > div:last-of-type {
|
|
116
|
+
border-radius: 0px 0px 8px 8px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
${({ $openDirection }) => ($openDirection === 'left' ? 'right: 100%;' : '')}
|
|
120
|
+
|
|
121
|
+
${({ $hasArrow, $offset }) => $hasArrow
|
|
122
|
+
? `
|
|
123
|
+
&:before {
|
|
124
|
+
content: '';
|
|
125
|
+
position: absolute;
|
|
126
|
+
width: 15px;
|
|
127
|
+
height: 15px;
|
|
128
|
+
transform: rotate(45deg) translate(${($offset?.[0] || 0) + 8}px, ${($offset?.[1] || 0) - 32}px);
|
|
129
|
+
background-color: var(--color-white);
|
|
130
|
+
}
|
|
131
|
+
`
|
|
132
|
+
: ''}
|
|
133
|
+
${({ $offset }) => $offset ? `transform: translate(${$offset[0]}px, ${$offset[1]}px);` : ''}
|
|
134
|
+
`;
|
|
135
|
+
const Option = ({ checkbox, disabled, icon, label, onClick, selected, sublabel, sx, value, }) => {
|
|
136
|
+
return (React.createElement(OptionWrapper, { "data-value": value, onClick: !disabled ? onClick : undefined, "$disabled": disabled, "$hasCheckbox": !!checkbox, "$hasSublabel": !!sublabel, "$selected": selected, "$sx": sx },
|
|
137
|
+
checkbox ? React.createElement(Checkbox, { selected: selected }) : icon,
|
|
138
|
+
React.createElement(Box, { "$dir": "column", "$display": "flex" },
|
|
139
|
+
label && (React.createElement(P, { "$color": "grey-4", "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, label)),
|
|
140
|
+
sublabel && (React.createElement(P, { "$color": "grey-4", "$fontSize": 12, "$lineHeight": 16, "$textClampLines": 1 }, sublabel)))));
|
|
141
|
+
};
|
|
142
|
+
Option.displayName = 'Dropdown.Option';
|
|
143
|
+
Dropdown.Option = Option;
|
|
144
|
+
const OptionWrapper = styled.div `
|
|
145
|
+
position: relative;
|
|
146
|
+
z-index: 1;
|
|
147
|
+
padding: ${({ $hasSublabel }) => ($hasSublabel ? 10 : 12)}px 16px;
|
|
148
|
+
user-select: none;
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
gap: 8px;
|
|
152
|
+
|
|
153
|
+
& > * {
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
${({ $disabled, $selected, $hasCheckbox }) => {
|
|
158
|
+
if ($disabled) {
|
|
159
|
+
return `cursor: initial;
|
|
160
|
+
color: var(--color-grey-7);
|
|
161
|
+
background-color: var(--color-grey-10);`;
|
|
162
|
+
}
|
|
163
|
+
if ($hasCheckbox) {
|
|
164
|
+
return `&:hover {
|
|
165
|
+
background-color: var(--color-grey-10);
|
|
166
|
+
}`;
|
|
167
|
+
}
|
|
168
|
+
if ($selected) {
|
|
169
|
+
return `
|
|
170
|
+
background-color: var(--color-grey-9);
|
|
171
|
+
&:active {
|
|
172
|
+
background-color: var(--color-grey-8);
|
|
173
|
+
}`;
|
|
174
|
+
}
|
|
175
|
+
return `
|
|
176
|
+
&:hover {
|
|
177
|
+
background-color: var(--color-grey-10);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:active {
|
|
181
|
+
background-color: var(--color-grey-8);
|
|
182
|
+
}
|
|
183
|
+
`;
|
|
184
|
+
}}
|
|
185
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
186
|
+
`;
|
|
187
|
+
const Spacer = ({ sx }) => {
|
|
188
|
+
return React.createElement(SpacerWrapper, { "$sx": sx });
|
|
189
|
+
};
|
|
190
|
+
Spacer.displayName = 'Dropdown.Spacer';
|
|
191
|
+
Dropdown.Spacer = Spacer;
|
|
192
|
+
const SpacerWrapper = styled.div `
|
|
193
|
+
width: 100%;
|
|
194
|
+
height: 1px;
|
|
195
|
+
background-color: var(--color-grey-8);
|
|
196
|
+
|
|
197
|
+
&:hover {
|
|
198
|
+
appearance: none;
|
|
199
|
+
}
|
|
200
|
+
${({ $sx }) => ($sx ? $sx : '')}
|
|
201
|
+
`;
|
|
202
|
+
export { Dropdown };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Avatar, Button } from 'components';
|
|
3
|
+
import { Eye } from 'icons';
|
|
4
|
+
import { Dropdown } from './dropdown';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Actions/Dropdown',
|
|
7
|
+
args: {
|
|
8
|
+
checkbox: true,
|
|
9
|
+
closeOnBlur: true,
|
|
10
|
+
closeOnChange: true,
|
|
11
|
+
defaultValue: '',
|
|
12
|
+
hasArrow: true,
|
|
13
|
+
multiple: true,
|
|
14
|
+
maintainState: true,
|
|
15
|
+
open: 'right',
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
checkbox: {
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
},
|
|
21
|
+
closeOnBlur: {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
},
|
|
24
|
+
closeOnChange: {
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
},
|
|
27
|
+
defaultValue: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
},
|
|
30
|
+
hasArrow: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
},
|
|
33
|
+
maintainState: {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
},
|
|
36
|
+
multiple: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
},
|
|
39
|
+
open: {
|
|
40
|
+
options: ['left', 'right'],
|
|
41
|
+
control: {
|
|
42
|
+
type: 'radio',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
trigger: {
|
|
46
|
+
control: false,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
parameters: {
|
|
50
|
+
backgrounds: {
|
|
51
|
+
default: 'dark',
|
|
52
|
+
},
|
|
53
|
+
layout: 'centered',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
export const Default = (args) => (React.createElement(Dropdown, { ...args, options: [
|
|
57
|
+
{
|
|
58
|
+
label: 'Dropdown Option 1',
|
|
59
|
+
sublabel: 'option sublabel',
|
|
60
|
+
value: 'option1',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Dropdown 2',
|
|
64
|
+
sublabel: 'option sublabel',
|
|
65
|
+
value: 'option2',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Dropdown 3',
|
|
69
|
+
value: 'option3',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Dropdown 4',
|
|
73
|
+
value: 'option4',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: 'Dropdown 5',
|
|
77
|
+
sublabel: 'option sublabel',
|
|
78
|
+
value: 'option5',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
icon: React.createElement(Eye, null),
|
|
82
|
+
label: 'Dropdown 6',
|
|
83
|
+
sublabel: 'option sublabel',
|
|
84
|
+
value: 'option6',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
icon: (React.createElement(Avatar, { image: "https://f005.backblazeb2.com/file/sr-platform/avatar.jpg", size: 16 })),
|
|
88
|
+
label: 'Dropdown 7',
|
|
89
|
+
value: 'option7',
|
|
90
|
+
},
|
|
91
|
+
'break',
|
|
92
|
+
{
|
|
93
|
+
disabled: true,
|
|
94
|
+
label: 'Disabled Option',
|
|
95
|
+
sublabel: 'option sublabel',
|
|
96
|
+
value: 'option8',
|
|
97
|
+
},
|
|
98
|
+
], trigger: React.createElement(Button, null, "Trigger") }));
|
|
99
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dropdown } from './dropdown';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Button } from './button';
|
|
2
|
+
export type { ButtonProps } from './button';
|
|
3
|
+
export { Dropdown } from './dropdown';
|
|
4
|
+
export type { DropdownOptionProps, DropdownProps, DropdownSpacerProps, } from './dropdown';
|
|
5
|
+
export { Rate } from './rate';
|
|
6
|
+
export type { RateProps } from './rate';
|
|
7
|
+
export { Switch } from './switch';
|
|
8
|
+
export type { SwitchProps } from './switch';
|
|
9
|
+
export { Upload } from './upload';
|
|
10
|
+
export type { UploadProps } from './upload';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Rate } from './rate';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface RateProps {
|
|
3
|
+
isRateable?: boolean;
|
|
4
|
+
onRate?: (rating: number) => void;
|
|
5
|
+
percent: number;
|
|
6
|
+
size: 'small' | 'large';
|
|
7
|
+
userRating?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const Rate: ({ isRateable, onRate, percent, size, userRating, }: RateProps) => React.JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
const SM_WIDTH = 98;
|
|
4
|
+
const LG_WIDTH = 147;
|
|
5
|
+
const SM_HEIGHT = 16;
|
|
6
|
+
const LG_HEIGHT = 24;
|
|
7
|
+
export const Rate = ({ isRateable = true, onRate, percent, size, userRating, }) => {
|
|
8
|
+
const ref = React.useRef(null);
|
|
9
|
+
const [hoveredRating, setHoveredRating] = React.useState();
|
|
10
|
+
const width = size === 'small' ? SM_WIDTH : LG_WIDTH;
|
|
11
|
+
const height = size === 'small' ? SM_HEIGHT : LG_HEIGHT;
|
|
12
|
+
const displayPercent = hoveredRating
|
|
13
|
+
? hoveredRating * 20
|
|
14
|
+
: userRating
|
|
15
|
+
? userRating * 20
|
|
16
|
+
: percent;
|
|
17
|
+
const handleMouseOver = (event) => {
|
|
18
|
+
if (isRateable && ref?.current) {
|
|
19
|
+
const elementWidth = size === 'small' ? SM_WIDTH : LG_WIDTH;
|
|
20
|
+
const position = event.clientX - ref.current.offsetLeft;
|
|
21
|
+
const star = Math.floor((5 * position) / elementWidth) + 1;
|
|
22
|
+
setHoveredRating(star);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const handleMouseOut = () => {
|
|
26
|
+
setHoveredRating(undefined);
|
|
27
|
+
};
|
|
28
|
+
const handleClick = () => {
|
|
29
|
+
if (isRateable && onRate && hoveredRating !== undefined) {
|
|
30
|
+
onRate(hoveredRating);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (React.createElement("div", { ref: ref },
|
|
34
|
+
React.createElement(SVG, { width: width, height: height, onMouseOver: handleMouseOver, onMouseOut: handleMouseOut, onClick: handleClick, viewBox: "0 0 98 16", xmlns: "http://www.w3.org/2000/svg" },
|
|
35
|
+
React.createElement("path", { d: "M13.1437 16L8.61569 13.5529C8.55281 13.5529 8.48992 13.4902 8.42703 13.4902C8.36414 13.4902 8.30125 13.5529 8.23837 13.5529L3.64752 15.9373C3.58463 16 3.52174 16 3.39597 16C3.33308 16 3.27019 16 3.2073 15.9373C3.14441 15.8745 3.08153 15.8118 3.08153 15.749C3.08153 15.6863 3.01864 15.6235 3.08153 15.5608L3.96196 10.4784C3.96196 10.4157 3.96196 10.3529 3.89907 10.2902C3.89907 10.2275 3.83619 10.1647 3.83619 10.102L0.125777 6.52549C0.0628883 6.46275 0 6.4 0 6.33726C0 6.21177 0 6.14902 0 6.08628C0.0628883 6.02353 0.0628883 5.96079 0.125777 5.89804C0.188665 5.83529 0.251553 5.83529 0.37733 5.83529L5.47128 5.08235C5.53417 5.08235 5.59706 5.01961 5.65995 5.01961C5.65995 4.95686 5.72283 4.89412 5.78572 4.83137L8.0497 0.25098C8.11259 0.188235 8.11259 0.12549 8.17548 0.0627451C8.23837 0.0627451 8.36414 0 8.42703 0C8.48992 0 8.55281 0.0627451 8.61569 0.0627451C8.67858 0.12549 8.74147 0.188235 8.80436 0.25098L11.0683 4.89412C11.0683 4.89412 11.1312 4.95686 11.1941 5.01961C11.257 5.01961 11.3199 5.08235 11.3828 5.08235L16.4767 5.83529C16.5396 5.83529 16.6025 5.89804 16.6654 5.89804C16.7283 5.96079 16.7912 6.02353 16.7912 6.08628C16.8541 6.14902 16.8541 6.27451 16.7912 6.33726C16.7912 6.4 16.7283 6.46275 16.7283 6.52549L13.0179 10.102C12.955 10.1647 12.8921 10.2275 12.8921 10.2902C12.8921 10.3529 12.8921 10.4157 12.8921 10.4784L13.7725 15.5608C13.7725 15.6235 13.7725 15.6863 13.7096 15.749C13.7096 15.8118 13.6468 15.8745 13.5839 15.9373C13.521 16 13.4581 16 13.3952 16C13.3323 16 13.2065 16 13.1437 16Z M33.711 16L29.1201 13.5529C29.0572 13.5529 28.9943 13.4902 28.9315 13.4902C28.8686 13.4902 28.8057 13.5529 28.7428 13.5529L24.2148 15.9373C24.1519 16 24.0262 16 23.9633 16C23.9004 16 23.8375 15.9373 23.7746 15.9373C23.7117 15.8745 23.6488 15.8118 23.6488 15.749C23.5859 15.6863 23.5859 15.6235 23.5859 15.498L24.4664 10.4157C24.4664 10.3529 24.4664 10.2902 24.4664 10.2275C24.4664 10.1647 24.4035 10.102 24.3406 10.102L20.6931 6.46275C20.6302 6.4 20.5673 6.33725 20.5673 6.27451C20.5673 6.21176 20.5673 6.14902 20.5673 6.08628C20.5673 6.02353 20.6302 5.96079 20.6931 5.89804C20.756 5.83529 20.8189 5.83529 20.8818 5.77255L26.0386 5.08235C26.1015 5.01961 26.1644 5.01961 26.1644 4.95686C26.2273 4.95686 26.2901 4.89412 26.2901 4.83137L28.617 0.25098C28.617 0.12549 28.6799 0.12549 28.7428 0.0627451C28.8057 -7.45058e-09 28.8686 0 28.9315 0C29.0572 0 29.1201 -7.45058e-09 29.183 0.0627451C29.2459 0.12549 29.3088 0.12549 29.3088 0.25098L31.6356 4.83137C31.6356 4.89412 31.6985 4.95686 31.7614 5.01961C31.7614 5.01961 31.8243 5.08235 31.8872 5.08235L37.044 5.83529C37.1069 5.83529 37.1698 5.83529 37.2327 5.89804C37.2956 5.96079 37.2956 6.02353 37.3585 6.08628C37.3585 6.14902 37.3585 6.21176 37.3585 6.27451C37.3585 6.4 37.2956 6.46275 37.2327 6.52549L33.5223 10.102C33.5223 10.1647 33.4594 10.1647 33.4594 10.2275C33.3965 10.2902 33.3965 10.3529 33.4594 10.4784L34.277 15.5608C34.3398 15.6235 34.277 15.6863 34.277 15.749C34.277 15.8118 34.2141 15.8745 34.1512 15.9373C34.0883 16 34.0254 16 33.9625 16C33.8367 16 33.7738 16 33.711 16Z M53.5187 16L48.9279 13.5529C48.865 13.5529 48.8021 13.4902 48.7392 13.4902C48.6763 13.4902 48.6134 13.5529 48.5505 13.5529L44.0226 15.9373C43.9597 16 43.8968 16 43.8339 16C43.7081 16 43.6452 16 43.5824 15.9373C43.5195 15.8745 43.5195 15.8118 43.4566 15.749C43.4566 15.6863 43.4566 15.6235 43.4566 15.5608L44.337 10.4784C44.337 10.4157 44.337 10.3529 44.2741 10.2902C44.2741 10.2275 44.2741 10.1647 44.2112 10.102L40.5008 6.52549C40.4379 6.46275 40.4379 6.4 40.375 6.33726C40.375 6.21177 40.375 6.14902 40.375 6.08628C40.4379 6.02353 40.4379 5.96079 40.5008 5.89804C40.5637 5.83529 40.6266 5.83529 40.7524 5.83529L45.8463 5.08235C45.9092 5.08235 45.9721 5.01961 46.035 5.01961C46.0979 4.95686 46.0979 4.89412 46.1608 4.83137L48.4248 0.25098C48.4876 0.188235 48.4876 0.12549 48.5505 0.0627451C48.6134 0.0627451 48.7392 0 48.8021 0C48.865 0 48.9279 0.0627451 48.9907 0.0627451C49.0536 0.12549 49.1165 0.188235 49.1794 0.25098L51.4434 4.89412C51.4434 4.89412 51.5063 4.95686 51.5692 5.01961C51.6321 5.01961 51.6949 5.08235 51.7578 5.08235L56.8518 5.83529C56.9147 5.83529 56.9776 5.89804 57.0404 5.89804C57.1033 5.96079 57.1662 6.02353 57.1662 6.08628C57.1662 6.14902 57.2291 6.27451 57.1662 6.33726C57.1662 6.4 57.1033 6.46275 57.1033 6.52549L53.3929 10.102C53.33 10.1647 53.2671 10.2275 53.2671 10.2902C53.2671 10.3529 53.2671 10.4157 53.2671 10.4784L54.0847 15.5608C54.0847 15.6235 54.0847 15.6863 54.0847 15.749C54.0218 15.8118 53.9589 15.8745 53.896 15.9373C53.896 15.9373 53.7703 16 53.7074 16C53.6445 16 53.5816 16 53.5187 16Z M74.0858 16L69.4949 13.5529C69.4321 13.5529 69.3692 13.4902 69.3063 13.4902C69.2434 13.4902 69.1805 13.5529 69.1176 13.5529L64.5268 15.9373C64.4639 16 64.401 16 64.3381 16C64.2752 16 64.1494 15.9373 64.0865 15.9373C64.0865 15.8745 64.0237 15.8118 63.9608 15.749C63.9608 15.6863 63.9608 15.6235 63.9608 15.498L64.8412 10.4157C64.8412 10.3529 64.8412 10.2902 64.8412 10.2275C64.7783 10.1647 64.7783 10.102 64.7154 10.102L61.005 6.52549C60.9421 6.46275 60.9421 6.4 60.8792 6.33726C60.8792 6.21177 60.8792 6.14902 60.8792 6.08628C60.9421 6.02353 60.9421 5.96079 61.005 5.89804C61.0679 5.83529 61.1308 5.83529 61.2566 5.83529L66.3505 5.08235C66.4134 5.08235 66.4763 5.01961 66.5392 5.01961C66.6021 4.95686 66.6021 4.89412 66.665 4.83137L68.9289 0.25098C68.9918 0.188235 68.9918 0.12549 69.0547 0.0627451C69.1176 0.0627451 69.2434 0 69.3063 0C69.3692 0 69.4321 0.0627451 69.4949 0.0627451C69.5578 0.12549 69.6207 0.188235 69.6836 0.25098L71.9476 4.89412C71.9476 4.89412 72.0105 4.95686 72.0734 5.01961C72.1362 5.01961 72.1991 5.08235 72.262 5.08235L77.356 5.83529C77.4189 5.83529 77.4818 5.89804 77.5446 5.89804C77.6075 5.96079 77.6704 6.02353 77.6704 6.08628C77.7333 6.14902 77.7333 6.27451 77.6704 6.33726C77.6704 6.4 77.6075 6.46275 77.6075 6.52549L73.8971 10.102C73.8342 10.1647 73.7713 10.2275 73.7713 10.2902C73.7713 10.3529 73.7713 10.4157 73.7713 10.4784L74.6518 15.5608C74.6518 15.6235 74.6518 15.6863 74.5889 15.749C74.5889 15.8118 74.526 15.8745 74.4631 15.9373C74.4002 15.9373 74.3373 16 74.2744 16C74.2116 16 74.1487 16 74.0858 16Z M94.0831 16L89.5551 13.5529C89.4922 13.5529 89.4294 13.4902 89.3665 13.4902C89.3036 13.4902 89.2407 13.5529 89.1778 13.5529L84.587 15.9373C84.5241 16 84.4612 16 84.3983 16C84.2725 16 84.2096 15.9373 84.1468 15.9373C84.0839 15.8745 84.0839 15.8118 84.021 15.749C84.021 15.6863 84.021 15.6235 84.021 15.498L84.9014 10.4157C84.9014 10.3529 84.9014 10.2902 84.8385 10.2275C84.8385 10.1647 84.8385 10.102 84.7756 10.102L81.0652 6.46275C81.0023 6.4 81.0023 6.33725 80.9395 6.27451C80.9395 6.21176 80.9395 6.14902 80.9395 6.08628C81.0023 6.02353 81.0023 5.96079 81.0652 5.89804C81.1281 5.83529 81.191 5.83529 81.3168 5.77255L86.4107 5.08235C86.4736 5.01961 86.5365 5.01961 86.5994 4.95686C86.6623 4.95686 86.6623 4.89412 86.7252 4.83137L88.9892 0.25098C89.052 0.12549 89.1149 0.12549 89.1778 0.0627451C89.2407 -7.45058e-09 89.3036 0 89.3665 0C89.4294 0 89.4922 -7.45058e-09 89.5551 0.0627451C89.618 0.12549 89.6809 0.12549 89.7438 0.25098L92.0078 4.83137C92.0078 4.89412 92.0707 4.95686 92.1336 5.01961C92.1965 5.01961 92.2593 5.08235 92.3222 5.08235L97.4162 5.83529C97.4791 5.83529 97.542 5.83529 97.6048 5.89804C97.6677 5.96079 97.7306 6.02353 97.7306 6.08628C97.7935 6.14902 97.7935 6.21176 97.7306 6.27451C97.7306 6.4 97.6677 6.46275 97.6677 6.52549L93.9573 10.102C93.8944 10.1647 93.8315 10.1647 93.8315 10.2275C93.8315 10.2902 93.8315 10.3529 93.8315 10.4784L94.712 15.5608C94.712 15.6235 94.712 15.6863 94.6491 15.749C94.6491 15.8118 94.5862 15.8745 94.5233 15.9373C94.4604 16 94.3975 16 94.3346 16C94.2718 16 94.146 16 94.0831 16Z", stroke: "#D0D2D6", strokeWidth: "0.42154" }),
|
|
36
|
+
React.createElement("defs", null,
|
|
37
|
+
React.createElement("linearGradient", { id: "MyGradient" },
|
|
38
|
+
React.createElement("stop", { offset: "0%", stopColor: "#FFB51F" }),
|
|
39
|
+
React.createElement("stop", { offset: `${displayPercent}%`, stopColor: "#FF870A" }),
|
|
40
|
+
React.createElement("stop", { offset: `${displayPercent}%`, stopColor: "#FFFFFF" }))))));
|
|
41
|
+
};
|
|
42
|
+
const SVG = styled.svg `
|
|
43
|
+
fill: url(#MyGradient);
|
|
44
|
+
cursor: ${({ $isRateable }) => ($isRateable ? 'pointer' : 'initial')};
|
|
45
|
+
`;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { RateProps } from './rate';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Pick<RateProps, "isRateable" | "percent" | "size">>;
|
|
5
|
+
export default meta;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Rate } from './rate';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Actions/Rate',
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'centered',
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
const Story = (args) => {
|
|
10
|
+
const [userRating, setUserRating] = React.useState();
|
|
11
|
+
const handleRate = (rating) => setUserRating(rating);
|
|
12
|
+
return React.createElement(Rate, { onRate: handleRate, userRating: userRating, ...args });
|
|
13
|
+
};
|
|
14
|
+
export const Default = Story.bind({});
|
|
15
|
+
Default.argTypes = {
|
|
16
|
+
percent: {
|
|
17
|
+
type: 'number',
|
|
18
|
+
control: 'range',
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
options: ['small', 'large'],
|
|
22
|
+
control: 'select',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
Default.args = {
|
|
26
|
+
percent: 100,
|
|
27
|
+
size: 'large',
|
|
28
|
+
};
|
|
29
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from './switch';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SwitchProps extends React.PropsWithChildren {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onChange: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Switch: {
|
|
8
|
+
({ children, disabled, onChange, value, }: SwitchProps): React.JSX.Element;
|
|
9
|
+
Item: {
|
|
10
|
+
({ active, children, disabled, icon, onClick, value, }: SwitchItemProps): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
interface SwitchItemProps extends React.PropsWithChildren {
|
|
15
|
+
active?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
icon?: React.ReactElement;
|
|
18
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const Switch = ({ children, disabled, onChange, value, }) => {
|
|
4
|
+
return (React.createElement(Wrapper, null, React.Children.map(children, (child) => {
|
|
5
|
+
if (!React.isValidElement(child))
|
|
6
|
+
return;
|
|
7
|
+
return React.cloneElement(child, {
|
|
8
|
+
...child.props,
|
|
9
|
+
disabled: disabled,
|
|
10
|
+
active: value === child.props?.value,
|
|
11
|
+
key: child.key,
|
|
12
|
+
onClick: onChange,
|
|
13
|
+
});
|
|
14
|
+
})));
|
|
15
|
+
};
|
|
16
|
+
const Wrapper = styled.div `
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-flow: row nowrap;
|
|
19
|
+
padding: 6px;
|
|
20
|
+
border-radius: 8px;
|
|
21
|
+
border: 1px solid var(--color-grey-8);
|
|
22
|
+
background-color: var(--color-grey-10);
|
|
23
|
+
`;
|
|
24
|
+
const SwitchItem = ({ active, children, disabled, icon, onClick, value, }) => {
|
|
25
|
+
return (React.createElement(Item, { "$active": !!active, disabled: disabled, onClick: onClick, value: value },
|
|
26
|
+
icon && React.cloneElement(icon, { size: 24, color: 'grey-6' }),
|
|
27
|
+
children));
|
|
28
|
+
};
|
|
29
|
+
const Item = styled.button `
|
|
30
|
+
width: 154px;
|
|
31
|
+
height: 36px;
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
font-family: Inter;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
font-size: 16px;
|
|
39
|
+
line-height: 24px;
|
|
40
|
+
border: none;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
letter-spacing: -0.176px;
|
|
43
|
+
|
|
44
|
+
svg {
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
${({ $active }) => $active
|
|
49
|
+
? `
|
|
50
|
+
color: var(--color-primary-blue-2);
|
|
51
|
+
background-color: var(--color-white);
|
|
52
|
+
border-radius: 4px;
|
|
53
|
+
box-shadow: var(--elevation-1);
|
|
54
|
+
|
|
55
|
+
&:disabled {
|
|
56
|
+
color: var(--color-grey-7);
|
|
57
|
+
background-color: var(--color-grey-10);
|
|
58
|
+
border: 1px solid var(--color-grey-8);
|
|
59
|
+
box-shadow: none;
|
|
60
|
+
}`
|
|
61
|
+
: `
|
|
62
|
+
color: var(--color-grey-6);`}
|
|
63
|
+
|
|
64
|
+
&:disabled {
|
|
65
|
+
color: var(--color-grey-7);
|
|
66
|
+
cursor: initial;
|
|
67
|
+
background-color: var(--color-grey-10);
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
70
|
+
Switch.Item = SwitchItem;
|
|
71
|
+
SwitchItem.displayName = 'Switch.Item';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { SwitchProps } from './switch';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Pick<SwitchProps, "disabled">>;
|
|
5
|
+
export default meta;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Switch } from './switch';
|
|
3
|
+
import { Moon, Sun, Folder } from 'icons';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Actions/Switch',
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'centered',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
const Story = (args) => {
|
|
11
|
+
const [value, setValue] = React.useState('value1');
|
|
12
|
+
const handleChange = (event) => {
|
|
13
|
+
setValue(event.target.value);
|
|
14
|
+
};
|
|
15
|
+
return (React.createElement(Switch, { ...args, onChange: handleChange, value: value },
|
|
16
|
+
React.createElement(Switch.Item, { icon: React.createElement(Moon, null), value: "value1" }, "Upload"),
|
|
17
|
+
React.createElement(Switch.Item, { icon: React.createElement(Sun, null), value: "value2" }, "Default"),
|
|
18
|
+
React.createElement(Switch.Item, { icon: React.createElement(Folder, null), value: "value3" }, "Another")));
|
|
19
|
+
};
|
|
20
|
+
export const Default = Story.bind({});
|
|
21
|
+
Default.argTypes = {};
|
|
22
|
+
Default.args = {
|
|
23
|
+
disabled: false,
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {} from '';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, P } from 'components';
|
|
4
|
+
export const Toggle = ({ checked, label, onChange }) => {
|
|
5
|
+
const status = checked === undefined ? 'indeterminate' : checked ? 'checked' : 'unchecked';
|
|
6
|
+
return (React.createElement(Box, { "$align": "center", "$gap": 8 },
|
|
7
|
+
React.createElement(Wrapper, { as: "label", onClick: onChange },
|
|
8
|
+
React.createElement(Input, { checked: !!checked, onChange: onChange, type: "checkbox" }),
|
|
9
|
+
React.createElement(Slider, { "$status": status })),
|
|
10
|
+
label && React.createElement(P, { "$fontSize": 14 }, label)));
|
|
11
|
+
};
|
|
12
|
+
const Wrapper = styled.label `
|
|
13
|
+
width: 28px;
|
|
14
|
+
height: 16px;
|
|
15
|
+
position: relative;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
`;
|
|
18
|
+
const Input = styled.input `
|
|
19
|
+
opacity: 0;
|
|
20
|
+
width: 0;
|
|
21
|
+
height: 0;
|
|
22
|
+
`;
|
|
23
|
+
const Slider = styled.span `
|
|
24
|
+
position: absolute;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
top: 0px;
|
|
27
|
+
bottom: 0px;
|
|
28
|
+
right: 0px;
|
|
29
|
+
left: 0px;
|
|
30
|
+
border-radius: 18px;
|
|
31
|
+
${({ $status }) => $status === 'checked'
|
|
32
|
+
? `
|
|
33
|
+
background-color: var(--color-primary-blue-2);
|
|
34
|
+
&:before {
|
|
35
|
+
transform: translateX(12px);
|
|
36
|
+
}`
|
|
37
|
+
: $status === 'unchecked'
|
|
38
|
+
? 'background-color: var(--color-grey-8);'
|
|
39
|
+
: `
|
|
40
|
+
background-color: var(--color-yellow-5);
|
|
41
|
+
&:before {
|
|
42
|
+
transform: translateX(6px);
|
|
43
|
+
}
|
|
44
|
+
`}
|
|
45
|
+
|
|
46
|
+
&:before {
|
|
47
|
+
position: absolute;
|
|
48
|
+
content: '';
|
|
49
|
+
height: 12px;
|
|
50
|
+
width: 12px;
|
|
51
|
+
left: 2px;
|
|
52
|
+
bottom: 2px;
|
|
53
|
+
background-color: var(--color-white);
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ToggleProps } from './toggle';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ToggleProps>;
|
|
5
|
+
export default meta;
|