@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,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, Button, H, Modal, P, Radio } from 'components';
|
|
4
|
+
import { Close, InsertButton } from 'icons';
|
|
5
|
+
import { MenuButton } from './navbar';
|
|
6
|
+
import { BUTTON_LINK, BUTTON_SUBSCRIBE } from '../constants';
|
|
7
|
+
export const ButtonModal = ({ onButtonInsert }) => {
|
|
8
|
+
const [buttonType, setButtonType] = React.useState();
|
|
9
|
+
const handleButtonInsert = () => {
|
|
10
|
+
buttonType && onButtonInsert(buttonType);
|
|
11
|
+
setButtonType(undefined);
|
|
12
|
+
};
|
|
13
|
+
return (React.createElement(Modal, null,
|
|
14
|
+
React.createElement(Modal.Trigger, null,
|
|
15
|
+
React.createElement(MenuButton, null,
|
|
16
|
+
React.createElement(InsertButton, { size: 24, color: "grey-5" }))),
|
|
17
|
+
React.createElement(Modal.Content, { sx: "border-radius: 16px; max-width: 782px; width: 100%; margin: 24px; padding: 0px;" },
|
|
18
|
+
React.createElement(Box, { "$dir": "column" },
|
|
19
|
+
React.createElement(Box, { "$align": "center", "$justify": "space-between", sx: "padding: 24px; box-shadow: var(--elevation-2);" },
|
|
20
|
+
React.createElement(Box, { "$align": "center", "$gap": 32 },
|
|
21
|
+
React.createElement(IconWrapper, null,
|
|
22
|
+
React.createElement(InsertButton, { size: 24, color: "hue-blue-1" })),
|
|
23
|
+
React.createElement(H, { "$bold": true, "$color": "hue-blue-1", "$fontSize": 20, "$lineHeight": 28 }, "Insert Button")),
|
|
24
|
+
React.createElement(Close, { size: 24, sx: "&:hover { cursor: pointer; border-radius: 50%; background-color: var(--color-grey-9); }" })),
|
|
25
|
+
React.createElement(Box, { "$dir": "column", "$gap": 24, sx: "padding: 24px 48px 24px 24px;" },
|
|
26
|
+
React.createElement(ButtonItem, { active: buttonType === BUTTON_SUBSCRIBE, description: "A button encouraging the reader to purchase a paid subscription to your community", onClick: () => setButtonType(BUTTON_SUBSCRIBE), title: "Subscribe Now" },
|
|
27
|
+
React.createElement(Button, { size: "small", sx: "width: 130px;" }, "Subscribe")),
|
|
28
|
+
React.createElement(ButtonItem, { active: buttonType === BUTTON_LINK, description: "A button that links to a URL", onClick: () => setButtonType(BUTTON_LINK), title: "Link Button" },
|
|
29
|
+
React.createElement(Button, { size: "small", sx: "width: 130px;" }, "Link"))),
|
|
30
|
+
React.createElement(Box, { "$padding": 24, "$gap": 16, sx: "padding: 24px; background-color: var(--color-white); border-top: 1px solid var(--color-grey-8);" },
|
|
31
|
+
React.createElement(Modal.Dismiss, null,
|
|
32
|
+
React.createElement(Button, { size: "small", sx: "flex: 1;", type: "outlined", onClick: () => setButtonType(undefined) }, "Cancel")),
|
|
33
|
+
React.createElement(Modal.Dismiss, null,
|
|
34
|
+
React.createElement(Button, { size: "small", sx: "flex: 1;", onClick: handleButtonInsert }, "Confirm")))))));
|
|
35
|
+
};
|
|
36
|
+
const IconWrapper = styled.div `
|
|
37
|
+
height: 48px;
|
|
38
|
+
width: 48px;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
padding: 12px;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
background-color: var(--color-hue-blue-2);
|
|
43
|
+
`;
|
|
44
|
+
const ButtonItem = ({ active, children, description, onClick, title, }) => (React.createElement(Box, { "$dir": "column", onClick: onClick, sx: "border-radius: 16px; box-shadow: var(--elevation-2); cursor: pointer;" },
|
|
45
|
+
React.createElement(Box, { sx: `
|
|
46
|
+
padding: 24px;
|
|
47
|
+
background-color: var(--color-blue-10);
|
|
48
|
+
border-radius: 8px 8px 0px 0px;
|
|
49
|
+
border-bottom: 1px solid var(--color-grey-9);
|
|
50
|
+
` },
|
|
51
|
+
React.createElement(Radio, { checked: !!active, sx: "align-items: flex-start;", value: title }),
|
|
52
|
+
React.createElement(Box, { "$dir": "column" },
|
|
53
|
+
React.createElement(P, { "$semiBold": true }, title),
|
|
54
|
+
React.createElement(P, null, description))),
|
|
55
|
+
React.createElement(Box, { "$align": "center", "$justify": "center", sx: "border-radius: 0px 0px 8px 8px; padding: 24px;" }, children)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditorBar } from './navbar';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EditorBarProps {
|
|
3
|
+
handleUploadImage: (dataURL: File) => Promise<string>;
|
|
4
|
+
}
|
|
5
|
+
export declare const EditorBar: ({ handleUploadImage }: EditorBarProps) => React.JSX.Element;
|
|
6
|
+
export declare const MenuButton: import("styled-components").IStyledComponent<"web", "button", {
|
|
7
|
+
$active?: boolean | undefined;
|
|
8
|
+
}, never>;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { getPluginType, insertImage, insertNodes, toggleNodeType, useLinkToolbarButton, useLinkToolbarButtonState, useListToolbarButton, useListToolbarButtonState, useMarkToolbarButton, useMarkToolbarButtonState, usePlateEditorRef, usePlateEditorState, } from '@udecode/plate';
|
|
4
|
+
import { Tooltip } from 'components';
|
|
5
|
+
import { Bold, FileCode, Headphones, Image, Italic, Link, ListOrdered, ListUnordered, Quote, Redo, Strikethrough, Underline, Undo, Video, } from 'icons';
|
|
6
|
+
import { ELEMENT_BLOCKQUOTE, ELEMENT_BUTTON, ELEMENT_OL, ELEMENT_UL, MARK_BOLD, MARK_CODE, MARK_ITALIC, MARK_STRIKETHROUGH, MARK_UNDERLINE, } from '../constants';
|
|
7
|
+
import { AlignmentDropdown } from './alignment_dropdown';
|
|
8
|
+
import { ButtonModal } from './button_modal';
|
|
9
|
+
import { StyleDropdown } from './style_dropdown';
|
|
10
|
+
export const EditorBar = ({ handleUploadImage }) => {
|
|
11
|
+
const editorRef = usePlateEditorRef('main');
|
|
12
|
+
const stateEditor = usePlateEditorState();
|
|
13
|
+
const audioRef = React.useRef(null);
|
|
14
|
+
const imageRef = React.useRef(null);
|
|
15
|
+
const videoRef = React.useRef(null);
|
|
16
|
+
const boldState = useMarkToolbarButtonState({ nodeType: MARK_BOLD });
|
|
17
|
+
const { props: { pressed: currBold, onClick: handleBold }, } = useMarkToolbarButton(boldState);
|
|
18
|
+
const italicState = useMarkToolbarButtonState({ nodeType: MARK_ITALIC });
|
|
19
|
+
const { props: { pressed: currItalic, onClick: handleItalic }, } = useMarkToolbarButton(italicState);
|
|
20
|
+
const strikethroughState = useMarkToolbarButtonState({
|
|
21
|
+
nodeType: MARK_STRIKETHROUGH,
|
|
22
|
+
});
|
|
23
|
+
const { props: { pressed: currStrikethrough, onClick: handleStrikethrough }, } = useMarkToolbarButton(strikethroughState);
|
|
24
|
+
const underlineState = useMarkToolbarButtonState({
|
|
25
|
+
nodeType: MARK_UNDERLINE,
|
|
26
|
+
});
|
|
27
|
+
const { props: { pressed: currUnderline, onClick: handleUnderline }, } = useMarkToolbarButton(underlineState);
|
|
28
|
+
const inlineCodeState = useMarkToolbarButtonState({ nodeType: MARK_CODE });
|
|
29
|
+
const { props: { pressed: currInlineCode, onClick: handleInlineCode }, } = useMarkToolbarButton(inlineCodeState);
|
|
30
|
+
const linkState = useLinkToolbarButtonState();
|
|
31
|
+
const { props: { pressed: currLink, onClick: handleLink }, } = useLinkToolbarButton(linkState);
|
|
32
|
+
const orderedListState = useListToolbarButtonState({ nodeType: ELEMENT_OL });
|
|
33
|
+
const { props: { pressed: currOrderedList, onClick: handleOrderedList }, } = useListToolbarButton(orderedListState);
|
|
34
|
+
const unorderedListState = useListToolbarButtonState({
|
|
35
|
+
nodeType: ELEMENT_UL,
|
|
36
|
+
});
|
|
37
|
+
const { props: { pressed: currUnorderedList, onClick: handleUnorderedList }, } = useListToolbarButton(unorderedListState);
|
|
38
|
+
const handleAudioChange = async (event) => {
|
|
39
|
+
const file = event.target?.files?.[0];
|
|
40
|
+
if (!file)
|
|
41
|
+
return;
|
|
42
|
+
/**
|
|
43
|
+
* TODO: Insert audio component
|
|
44
|
+
*/
|
|
45
|
+
};
|
|
46
|
+
const handleBlockquote = () => {
|
|
47
|
+
toggleNodeType(stateEditor, { activeType: ELEMENT_BLOCKQUOTE });
|
|
48
|
+
};
|
|
49
|
+
const handleButton = (type) => {
|
|
50
|
+
insertNodes(editorRef, [
|
|
51
|
+
{
|
|
52
|
+
type: getPluginType(editorRef, ELEMENT_BUTTON),
|
|
53
|
+
buttonType: type,
|
|
54
|
+
children: [
|
|
55
|
+
{
|
|
56
|
+
text: 'Subscribe',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
]);
|
|
61
|
+
};
|
|
62
|
+
const handleImageChange = async (event) => {
|
|
63
|
+
const file = event.target?.files?.[0];
|
|
64
|
+
if (!file)
|
|
65
|
+
return;
|
|
66
|
+
const imageurl = await handleUploadImage(file);
|
|
67
|
+
if (imageurl) {
|
|
68
|
+
insertImage(editorRef, imageurl);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const handleRedo = () => editorRef.redo();
|
|
72
|
+
const handleUndo = () => editorRef.undo();
|
|
73
|
+
const handleVideoChange = async (event) => {
|
|
74
|
+
const file = event.target?.files?.[0];
|
|
75
|
+
if (!file)
|
|
76
|
+
return;
|
|
77
|
+
/**
|
|
78
|
+
* TODO: Insert video component
|
|
79
|
+
*/
|
|
80
|
+
};
|
|
81
|
+
return (React.createElement(Wrapper, null,
|
|
82
|
+
React.createElement(Menu, { "aria-label": "editor-navigation" },
|
|
83
|
+
React.createElement(MenuSection, null,
|
|
84
|
+
React.createElement(Tooltip, { content: "Undo", place: "top" },
|
|
85
|
+
React.createElement(MenuButton, { "$active": false, onClick: handleUndo },
|
|
86
|
+
React.createElement(Undo, { size: 24, color: "grey-5" }))),
|
|
87
|
+
React.createElement(Tooltip, { content: "Redo", place: "top" },
|
|
88
|
+
React.createElement(MenuButton, { "$active": false, onClick: handleRedo },
|
|
89
|
+
React.createElement(Redo, { size: 24, color: "grey-5" })))),
|
|
90
|
+
React.createElement(Divider, null),
|
|
91
|
+
React.createElement(MenuSection, null,
|
|
92
|
+
React.createElement(StyleDropdown, { editorRef: editorRef })),
|
|
93
|
+
React.createElement(Divider, null),
|
|
94
|
+
React.createElement(MenuSection, null,
|
|
95
|
+
React.createElement(Tooltip, { content: "Bold", place: "top" },
|
|
96
|
+
React.createElement(MenuButton, { "$active": currBold, onClick: handleBold },
|
|
97
|
+
React.createElement(Bold, { size: 24, color: "grey-5" }))),
|
|
98
|
+
React.createElement(Tooltip, { content: "Italic", place: "top" },
|
|
99
|
+
React.createElement(MenuButton, { "$active": currItalic, onClick: handleItalic },
|
|
100
|
+
React.createElement(Italic, { size: 24, color: "grey-5" }))),
|
|
101
|
+
React.createElement(Tooltip, { content: "Underline", place: "top" },
|
|
102
|
+
React.createElement(MenuButton, { "$active": currUnderline, onClick: handleUnderline },
|
|
103
|
+
React.createElement(Underline, { size: 24, color: "grey-5" }))),
|
|
104
|
+
React.createElement(Tooltip, { content: "Strikethrough", place: "top" },
|
|
105
|
+
React.createElement(MenuButton, { "$active": currStrikethrough, onClick: handleStrikethrough },
|
|
106
|
+
React.createElement(Strikethrough, { size: 24, color: "grey-5" }))),
|
|
107
|
+
React.createElement(Tooltip, { content: "Inline code", place: "top" },
|
|
108
|
+
React.createElement(MenuButton, { "$active": currInlineCode, onClick: handleInlineCode },
|
|
109
|
+
React.createElement(FileCode, { size: 24, color: "grey-5" })))),
|
|
110
|
+
React.createElement(Divider, null),
|
|
111
|
+
React.createElement(MenuSection, null,
|
|
112
|
+
React.createElement(MenuButton, { "$active": false, as: "div" },
|
|
113
|
+
React.createElement(AlignmentDropdown, { editorRef: editorRef }))),
|
|
114
|
+
React.createElement(Divider, null),
|
|
115
|
+
React.createElement(MenuSection, null,
|
|
116
|
+
React.createElement(Tooltip, { content: "Link", place: "top" },
|
|
117
|
+
React.createElement(MenuButton, { "$active": currLink, onClick: handleLink },
|
|
118
|
+
React.createElement(Link, { size: 24, color: "grey-5" }))),
|
|
119
|
+
React.createElement(Tooltip, { content: "Image", place: "top" },
|
|
120
|
+
React.createElement(MenuButton, { "$active": false, as: "label", onChange: handleImageChange },
|
|
121
|
+
React.createElement("div", { onClick: () => imageRef.current?.click() },
|
|
122
|
+
React.createElement("input", { accept: "image/*", ref: imageRef, style: { display: 'none' }, type: "file" }),
|
|
123
|
+
React.createElement(Image, { size: 24, color: "grey-5" })))),
|
|
124
|
+
React.createElement(Tooltip, { content: "Video", place: "top" },
|
|
125
|
+
React.createElement(MenuButton, { "$active": false, as: "label", onChange: handleVideoChange },
|
|
126
|
+
React.createElement("div", { onClick: () => videoRef.current?.click() },
|
|
127
|
+
React.createElement("input", { accept: "video/*", ref: videoRef, style: { display: 'none' }, type: "file" }),
|
|
128
|
+
React.createElement(Video, { size: 24, color: "grey-5" })))),
|
|
129
|
+
React.createElement(Tooltip, { content: "Audio", place: "top" },
|
|
130
|
+
React.createElement(MenuButton, { "$active": false, as: "label", onChange: handleAudioChange },
|
|
131
|
+
React.createElement("div", { onClick: () => audioRef.current?.click() },
|
|
132
|
+
React.createElement("input", { accept: "audio/*", ref: audioRef, style: { display: 'none' }, type: "file" }),
|
|
133
|
+
React.createElement(Headphones, { size: 24, color: "grey-5" })))),
|
|
134
|
+
React.createElement(Tooltip, { content: "Blockquote", place: "top" },
|
|
135
|
+
React.createElement(MenuButton, { "$active": false, onClick: handleBlockquote },
|
|
136
|
+
React.createElement(Quote, { size: 24, color: "grey-5" }))),
|
|
137
|
+
React.createElement(Tooltip, { content: "Add a button", place: "top" },
|
|
138
|
+
React.createElement(ButtonModal, { onButtonInsert: handleButton }))),
|
|
139
|
+
React.createElement(Divider, null),
|
|
140
|
+
React.createElement(MenuSection, null,
|
|
141
|
+
React.createElement(Tooltip, { content: "Unordered List", place: "top" },
|
|
142
|
+
React.createElement(MenuButton, { "$active": currUnorderedList, onClick: handleUnorderedList },
|
|
143
|
+
React.createElement(ListUnordered, { size: 24, color: "grey-5" }))),
|
|
144
|
+
React.createElement(Tooltip, { content: "Ordered List", place: "top" },
|
|
145
|
+
React.createElement(MenuButton, { "$active": currOrderedList, onClick: handleOrderedList },
|
|
146
|
+
React.createElement(ListOrdered, { size: 24, color: "grey-5" })))))));
|
|
147
|
+
};
|
|
148
|
+
const Wrapper = styled.div `
|
|
149
|
+
position: sticky;
|
|
150
|
+
z-index: 2;
|
|
151
|
+
left: 0;
|
|
152
|
+
right: 0;
|
|
153
|
+
top: 0;
|
|
154
|
+
`;
|
|
155
|
+
const Menu = styled.nav `
|
|
156
|
+
display: flex;
|
|
157
|
+
gap: 12px;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
max-width: 1200px;
|
|
160
|
+
width: 100%;
|
|
161
|
+
margin: 0 auto;
|
|
162
|
+
padding: 14px 24px;
|
|
163
|
+
background-color: var(--color-white);
|
|
164
|
+
`;
|
|
165
|
+
const MenuSection = styled.div `
|
|
166
|
+
display: flex;
|
|
167
|
+
gap: 16px;
|
|
168
|
+
align-items: center;
|
|
169
|
+
width: fit-content;
|
|
170
|
+
flex-shrink: 0;
|
|
171
|
+
`;
|
|
172
|
+
export const MenuButton = styled.button `
|
|
173
|
+
padding: 2px;
|
|
174
|
+
border: none;
|
|
175
|
+
outline: none;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
height: 28px;
|
|
179
|
+
width: 28px;
|
|
180
|
+
border-radius: 2px;
|
|
181
|
+
|
|
182
|
+
&:hover:not(:disabled) {
|
|
183
|
+
padding: 1px;
|
|
184
|
+
border: 1px solid var(--color-grey-8);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&:active:not(:disabled) {
|
|
188
|
+
background-color: var(--color-grey-9);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:disabled {
|
|
192
|
+
background-color: var(--color-white) !important;
|
|
193
|
+
cursor: initial;
|
|
194
|
+
svg {
|
|
195
|
+
fill: var(--color-grey-7) !important;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
background-color: ${({ $active }) => $active ? 'var(--color-grey-9)' : 'transparent'};
|
|
200
|
+
`;
|
|
201
|
+
const Divider = styled.div `
|
|
202
|
+
width: 1px;
|
|
203
|
+
height: 28px;
|
|
204
|
+
background-color: var(--color-grey-9);
|
|
205
|
+
`;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button, Dropdown } from 'components';
|
|
3
|
+
import { findNode, isBlock, isCollapsed, toggleNodeType, } from '@udecode/plate';
|
|
4
|
+
import { ELEMENT_H1, ELEMENT_H2, ELEMENT_H3, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, ELEMENT_PARAGRAPH, } from '../constants';
|
|
5
|
+
const items = [
|
|
6
|
+
{
|
|
7
|
+
value: ELEMENT_PARAGRAPH,
|
|
8
|
+
label: 'Paragraph',
|
|
9
|
+
description: 'Paragraph',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: ELEMENT_H1,
|
|
13
|
+
label: 'Heading 1',
|
|
14
|
+
description: 'Heading 1',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: ELEMENT_H2,
|
|
18
|
+
label: 'Heading 2',
|
|
19
|
+
description: 'Heading 2',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: ELEMENT_H3,
|
|
23
|
+
label: 'Heading 3',
|
|
24
|
+
description: 'Heading 3',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: ELEMENT_H4,
|
|
28
|
+
label: 'Heading 4',
|
|
29
|
+
description: 'Heading 4',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: ELEMENT_H5,
|
|
33
|
+
label: 'Heading 5',
|
|
34
|
+
description: 'Heading 5',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: ELEMENT_H6,
|
|
38
|
+
label: 'Heading 6',
|
|
39
|
+
description: 'Heading 6',
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
// eslint-disable-next-line
|
|
43
|
+
const defaultItem = items.find((item) => item.value === ELEMENT_PARAGRAPH);
|
|
44
|
+
export const StyleDropdown = ({ editorRef }) => {
|
|
45
|
+
let value = ELEMENT_PARAGRAPH;
|
|
46
|
+
const handleChange = (event) => {
|
|
47
|
+
const value = event.target.getAttribute('data-value');
|
|
48
|
+
if (!value)
|
|
49
|
+
return;
|
|
50
|
+
toggleNodeType(editorRef, { activeType: value });
|
|
51
|
+
};
|
|
52
|
+
if (isCollapsed(editorRef?.selection)) {
|
|
53
|
+
const entry = findNode(editorRef, {
|
|
54
|
+
match: (n) => isBlock(editorRef, n),
|
|
55
|
+
});
|
|
56
|
+
if (entry) {
|
|
57
|
+
value =
|
|
58
|
+
items.find((item) => item.value === entry[0].type)?.value ??
|
|
59
|
+
ELEMENT_PARAGRAPH;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const selectedItem = items.find((item) => item.value === value) ?? defaultItem;
|
|
63
|
+
const { label: selectedItemLabel } = selectedItem;
|
|
64
|
+
return (React.createElement(Dropdown, { maintainState: false, onChange: handleChange, options: items, trigger: React.createElement(Button, { type: "special", size: "small", sx: "padding: 1px 4px; & > * { color: var(--color-grey-5); }" }, selectedItemLabel) }));
|
|
65
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const plateUI: {
|
|
3
|
+
p: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
4
|
+
h1: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
5
|
+
h2: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
6
|
+
h3: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
7
|
+
h4: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
8
|
+
h5: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
9
|
+
h6: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
10
|
+
blockquote: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
11
|
+
a: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps<import("@udecode/plate").Value, import("@udecode/plate").TLinkElement>, "ref"> & import("react").RefAttributes<any>>;
|
|
12
|
+
ol: import("react").FunctionComponent<any>;
|
|
13
|
+
ul: import("react").FunctionComponent<any>;
|
|
14
|
+
img: ({ ...props }: import("@udecode/plate").PlateElementProps<import("@udecode/plate").Value, import("@udecode/plate").TImageElement>) => import("react").JSX.Element;
|
|
15
|
+
button: import("react").ForwardRefExoticComponent<Omit<import("@udecode/plate").PlateElementProps, "ref"> & import("react").RefAttributes<any>>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { withProps } from '@udecode/plate';
|
|
2
|
+
import { BlockquoteElement } from './plugins/blockquote';
|
|
3
|
+
import { Button } from './plugins/buttons';
|
|
4
|
+
import { ImageElement } from './plugins/image';
|
|
5
|
+
import { LinkElement } from './plugins/link';
|
|
6
|
+
import { ListElement } from './plugins/list';
|
|
7
|
+
import { ParagraphElement, HOneElement, HTwoElement, HThreeElement, HFourElement, HFiveElement, HSixElement, } from './plugins/text';
|
|
8
|
+
import * as Elements from './constants';
|
|
9
|
+
export const plateUI = {
|
|
10
|
+
[Elements.ELEMENT_PARAGRAPH]: ParagraphElement,
|
|
11
|
+
[Elements.ELEMENT_H1]: HOneElement,
|
|
12
|
+
[Elements.ELEMENT_H2]: HTwoElement,
|
|
13
|
+
[Elements.ELEMENT_H3]: HThreeElement,
|
|
14
|
+
[Elements.ELEMENT_H4]: HFourElement,
|
|
15
|
+
[Elements.ELEMENT_H5]: HFiveElement,
|
|
16
|
+
[Elements.ELEMENT_H6]: HSixElement,
|
|
17
|
+
[Elements.ELEMENT_BLOCKQUOTE]: BlockquoteElement,
|
|
18
|
+
[Elements.ELEMENT_LINK]: LinkElement,
|
|
19
|
+
[Elements.ELEMENT_OL]: withProps(ListElement, {
|
|
20
|
+
variant: Elements.ELEMENT_OL,
|
|
21
|
+
}),
|
|
22
|
+
[Elements.ELEMENT_UL]: withProps(ListElement, {
|
|
23
|
+
variant: Elements.ELEMENT_UL,
|
|
24
|
+
}),
|
|
25
|
+
[Elements.ELEMENT_IMAGE]: ImageElement,
|
|
26
|
+
[Elements.ELEMENT_BUTTON]: Button,
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PlateElement, } from '@udecode/plate';
|
|
3
|
+
import { P } from 'components';
|
|
4
|
+
export const BlockquoteElement = React.forwardRef(({ children, ...props }, ref) => {
|
|
5
|
+
return (React.createElement(PlateElement, { asChild: true, ref: ref, ...props },
|
|
6
|
+
React.createElement(React.Fragment, null,
|
|
7
|
+
React.createElement(P, { as: "blockquote", sx: "padding-left: 16px; border-left: 1px solid var(--color-grey-8);" }, children))));
|
|
8
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PlateElementProps } from '@udecode/plate';
|
|
3
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
4
|
+
export declare const createButtonsPlugin: <OP = any, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { createPluginFactory, getBlockAbove, getPluginType, isEditorReadOnly, setNodes, someNode, PlateElement, } from '@udecode/plate';
|
|
4
|
+
import { Button as UIButton } from 'components';
|
|
5
|
+
import { COLORS, ELEMENT_BUTTON, ELEMENT_PARAGRAPH } from '../constants';
|
|
6
|
+
export const Button = React.forwardRef(({ children, editor, element, ...props }, ref) => {
|
|
7
|
+
const { buttonType, color } = element;
|
|
8
|
+
const pressed = !!editor?.selection &&
|
|
9
|
+
someNode(editor, {
|
|
10
|
+
match: { type: getPluginType(editor, ELEMENT_BUTTON) },
|
|
11
|
+
});
|
|
12
|
+
const currBlock = getBlockAbove(editor, {
|
|
13
|
+
at: editor.selection?.focus,
|
|
14
|
+
match: {
|
|
15
|
+
type: getPluginType(editor, ELEMENT_BUTTON),
|
|
16
|
+
buttonType: buttonType,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
const editable = !isEditorReadOnly(editor);
|
|
20
|
+
const handleColorChange = (color) => {
|
|
21
|
+
if (currBlock) {
|
|
22
|
+
setNodes(editor, {
|
|
23
|
+
color,
|
|
24
|
+
}, {
|
|
25
|
+
at: currBlock ? currBlock[1] : undefined,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const ColorMenu = () => !pressed || !editable ? null : (React.createElement(ColorMenuComponent, { contentEditable: false }, COLORS.map((color) => (React.createElement(ColorItem, { "$color": color, contentEditable: false, key: color, onClick: (event) => {
|
|
30
|
+
event.stopPropagation();
|
|
31
|
+
handleColorChange(color);
|
|
32
|
+
} })))));
|
|
33
|
+
return (React.createElement(PlateElement, { asChild: true, editor: editor, element: element, ref: ref, ...props },
|
|
34
|
+
React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(ColorMenu, null),
|
|
36
|
+
React.createElement(UIButton, { size: "small", sx: `
|
|
37
|
+
margin-left: auto !important;
|
|
38
|
+
margin-right: auto !important;
|
|
39
|
+
background-color: ${color ? color : 'var(--color-blue-5)'} !important;
|
|
40
|
+
border-color: ${color ? color : 'var(--color-blue-5)'} !important;
|
|
41
|
+
&:hover {
|
|
42
|
+
background-color: ${color ? color : 'var(--color-blue-5)'} !important;
|
|
43
|
+
filter: brightness(85%);
|
|
44
|
+
}
|
|
45
|
+
` }, children))));
|
|
46
|
+
});
|
|
47
|
+
const ColorMenuComponent = styled.div `
|
|
48
|
+
display: flex;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 16px;
|
|
52
|
+
z-index: 5;
|
|
53
|
+
position: absolute;
|
|
54
|
+
transform: translateY(24px);
|
|
55
|
+
left: calc(50% - 148px);
|
|
56
|
+
border-radius: 16px;
|
|
57
|
+
padding: 8px 16px;
|
|
58
|
+
box-shadow: var(--elevation-1);
|
|
59
|
+
background-color: var(--color-white);
|
|
60
|
+
`;
|
|
61
|
+
const ColorItem = styled.div `
|
|
62
|
+
width: 24px;
|
|
63
|
+
height: 24px;
|
|
64
|
+
border-radius: 50%;
|
|
65
|
+
background-color: ${({ $color }) => $color};
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
`;
|
|
68
|
+
export const createButtonsPlugin = createPluginFactory({
|
|
69
|
+
key: ELEMENT_BUTTON,
|
|
70
|
+
type: ELEMENT_BUTTON,
|
|
71
|
+
isElement: true,
|
|
72
|
+
component: Button,
|
|
73
|
+
then: () => ({
|
|
74
|
+
inject: {
|
|
75
|
+
props: {
|
|
76
|
+
classNames: undefined,
|
|
77
|
+
validTypes: [ELEMENT_PARAGRAPH],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const exitBreakPlugin: {
|
|
2
|
+
options: {
|
|
3
|
+
rules: ({
|
|
4
|
+
hotkey: string;
|
|
5
|
+
before?: undefined;
|
|
6
|
+
query?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
hotkey: string;
|
|
9
|
+
before: boolean;
|
|
10
|
+
query?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
hotkey: string;
|
|
13
|
+
query: {
|
|
14
|
+
start: boolean;
|
|
15
|
+
end: boolean;
|
|
16
|
+
allow: string[];
|
|
17
|
+
};
|
|
18
|
+
before?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { KEYS_HEADING } from '@udecode/plate';
|
|
2
|
+
import { ELEMENT_BLOCKQUOTE, ELEMENT_BUTTON, ELEMENT_MEDIA, ELEMENT_MEDIA_EMBED, ELEMENT_OL, ELEMENT_UL, } from '../constants';
|
|
3
|
+
export const exitBreakPlugin = {
|
|
4
|
+
options: {
|
|
5
|
+
rules: [
|
|
6
|
+
{
|
|
7
|
+
hotkey: 'mod+enter',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
hotkey: 'mod+shift+enter',
|
|
11
|
+
before: true,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
hotkey: 'enter',
|
|
15
|
+
query: {
|
|
16
|
+
start: true,
|
|
17
|
+
end: true,
|
|
18
|
+
allow: [
|
|
19
|
+
ELEMENT_BLOCKQUOTE,
|
|
20
|
+
ELEMENT_BUTTON,
|
|
21
|
+
ELEMENT_MEDIA,
|
|
22
|
+
ELEMENT_MEDIA_EMBED,
|
|
23
|
+
ELEMENT_OL,
|
|
24
|
+
ELEMENT_UL,
|
|
25
|
+
...KEYS_HEADING,
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { Box, Caption, CaptionTextarea, Image, PlateElement, Resizable, useMediaState, } from '@udecode/plate';
|
|
4
|
+
import { useReadOnly } from 'slate-react';
|
|
5
|
+
const align = 'center';
|
|
6
|
+
export const ImageElement = ({ ...props }) => {
|
|
7
|
+
const { children, nodeProps } = props;
|
|
8
|
+
const readOnly = useReadOnly();
|
|
9
|
+
useMediaState();
|
|
10
|
+
return (React.createElement(PlateElement, { ...props },
|
|
11
|
+
React.createElement(Figure, { className: "group", contentEditable: false },
|
|
12
|
+
React.createElement(Resizable, { style: {
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
width: '100%',
|
|
15
|
+
maxWidth: '100%',
|
|
16
|
+
marginLeft: 'auto',
|
|
17
|
+
marginRight: 'auto',
|
|
18
|
+
}, options: {
|
|
19
|
+
renderHandleLeft: (htmlProps) => React.createElement(Box, { ...htmlProps }),
|
|
20
|
+
renderHandleRight: (htmlProps) => React.createElement(Box, { ...htmlProps }),
|
|
21
|
+
align,
|
|
22
|
+
readOnly,
|
|
23
|
+
} },
|
|
24
|
+
React.createElement(Image, { ...nodeProps })),
|
|
25
|
+
React.createElement(Caption, { className: "HERE" },
|
|
26
|
+
React.createElement(Textarea, { "$readOnly": readOnly, placeholder: "Write a caption...", readOnly: readOnly }))),
|
|
27
|
+
children));
|
|
28
|
+
};
|
|
29
|
+
const Figure = styled.figure `
|
|
30
|
+
position: relative;
|
|
31
|
+
margin: 0px;
|
|
32
|
+
width: 100%;
|
|
33
|
+
|
|
34
|
+
img {
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const Textarea = styled(CaptionTextarea) `
|
|
39
|
+
width: 100%;
|
|
40
|
+
padding: 8px 16px;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
text-align: center;
|
|
43
|
+
resize: none;
|
|
44
|
+
outline: none;
|
|
45
|
+
border: 1px solid
|
|
46
|
+
${({ $readOnly }) => ($readOnly ? 'transparent' : 'var(--color-grey-9)')};
|
|
47
|
+
`;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ELEMENT TYPES
|
|
3
|
+
*/
|
|
4
|
+
export declare const blocks: (import("@udecode/plate").PlatePlugin<any, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").HotkeyPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").CodeBlockPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").HeadingsPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").AnyObject, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").ImagePlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").IndentPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").IndentListPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").MediaPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").ResetNodePlugin<import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").TablePlugin<import("@udecode/plate").Value>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>)[];
|
|
5
|
+
export declare const marks: (import("@udecode/plate").PlatePlugin<import("@udecode/plate").AnyObject, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").ToggleMarkPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>)[];
|
|
6
|
+
export declare const inline: (import("@udecode/plate").PlatePlugin<import("@udecode/plate").AnyObject, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").IndentPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").LinkPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>)[];
|
|
7
|
+
export declare const utils: (import("@udecode/plate").PlatePlugin<any, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").ResetNodePlugin<import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").ExitBreakPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").SelectOnBackspacePlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>> | import("@udecode/plate").PlatePlugin<import("@udecode/plate").SoftBreakPlugin, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>)[];
|