@soul-refiner/design-system 0.0.19 → 0.0.21
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/global.d.ts +1 -0
- package/dist/index.js +27998 -28817
- package/dist/index.umd.js +1426 -0
- package/dist/src/actions/Button/Button.d.ts +22 -0
- package/dist/src/actions/Dropdown/Dropdown.d.ts +38 -0
- package/dist/src/actions/Dropdown/index.d.ts +1 -0
- package/dist/src/actions/Dropzone/Dropzone.d.ts +16 -0
- package/dist/src/actions/Dropzone/index.d.ts +1 -0
- package/dist/src/actions/Rate/Rate.d.ts +8 -0
- package/dist/src/actions/Rate/index.d.ts +1 -0
- package/dist/src/actions/Switch/Switch.d.ts +8 -0
- package/dist/src/actions/{index.ts → index.d.ts} +1 -1
- package/dist/src/cards/CourseCard/CourseCard.d.ts +22 -0
- package/dist/src/cards/EpisodeCard/EpisodeCard.d.ts +18 -0
- package/dist/src/cards/EpisodeCard/{index.ts → index.d.ts} +1 -1
- package/dist/src/cards/FeatureCard/FeatureCard.d.ts +13 -0
- package/dist/src/data/Bar/Bar.d.ts +26 -0
- package/dist/src/data/Bar/index.d.ts +1 -0
- package/dist/src/data/Line/Line.d.ts +18 -0
- package/dist/src/data/Line/index.d.ts +1 -0
- package/dist/src/data/Pie/Pie.d.ts +14 -0
- package/dist/src/data/Pie/index.d.ts +1 -0
- package/dist/src/data/{index.ts → index.d.ts} +1 -1
- package/dist/src/editor/Editor.d.ts +49 -0
- package/dist/src/editor/common/elements.d.ts +19 -0
- package/dist/src/editor/common/{index.ts → index.d.ts} +1 -1
- package/dist/src/editor/common/marks.d.ts +2 -0
- package/dist/src/editor/components/MediaDrawer/MediaDrawer.d.ts +8 -0
- package/dist/src/editor/components/MediaDrawer/{index.ts → index.d.ts} +1 -1
- package/dist/src/editor/components/{index.ts → index.d.ts} +1 -1
- package/dist/src/editor/config/default.d.ts +162 -0
- package/dist/src/editor/config/props.d.ts +2 -0
- package/dist/src/editor/{index.ts → index.d.ts} +1 -1
- package/dist/src/editor/plateUI.d.ts +1 -0
- package/dist/src/editor/plugins/blocks.d.ts +1 -0
- package/dist/src/editor/plugins/custom/assets/DefaultThumbnail.d.ts +2 -0
- package/dist/src/editor/plugins/custom/assets/index.d.ts +1 -0
- package/dist/src/editor/plugins/custom/buttons.d.ts +5 -0
- package/dist/src/editor/plugins/custom/example.d.ts +6 -0
- package/dist/src/editor/plugins/custom/exitBreak.d.ts +21 -0
- package/dist/src/editor/plugins/custom/footnote.d.ts +5 -0
- package/dist/src/editor/plugins/custom/{index.ts → index.d.ts} +2 -6
- package/dist/src/editor/plugins/custom/paywall.d.ts +5 -0
- package/dist/src/editor/plugins/custom/qa.d.ts +5 -0
- package/dist/src/editor/plugins/custom/resetBlockType.d.ts +10 -0
- package/dist/src/editor/plugins/custom/selectOnBackspace.d.ts +7 -0
- package/dist/src/editor/plugins/custom/softBreak.d.ts +13 -0
- package/dist/src/editor/plugins/custom/video.d.ts +5 -0
- package/dist/src/editor/plugins/index.d.ts +5 -0
- package/dist/src/editor/plugins/inline.d.ts +1 -0
- package/dist/src/editor/plugins/marks.d.ts +1 -0
- package/dist/src/editor/plugins/utils.d.ts +1 -0
- package/dist/src/feedback/Chip/Chip.d.ts +9 -0
- package/dist/src/feedback/Loader/Loader.d.ts +9 -0
- package/dist/src/feedback/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/src/feedback/Toast/Toast.d.ts +8 -0
- package/dist/src/feedback/Tooltip/Tooltip.d.ts +5 -0
- package/dist/src/feedback/Tooltip/index.d.ts +1 -0
- package/dist/src/iconography/Avatar/Avatar.d.ts +12 -0
- package/dist/src/iconography/Avatar/DefaultIcon.d.ts +2 -0
- package/dist/src/iconography/Avatar/iconHelpers.d.ts +11 -0
- package/dist/src/iconography/ColoredIcon/ColoredIcon.d.ts +15 -0
- package/dist/src/iconography/ColoredIcon/index.d.ts +1 -0
- package/dist/src/iconography/DevicePreview/DevicePreview.d.ts +10 -0
- package/dist/src/iconography/DevicePreview/{index.ts → index.d.ts} +1 -1
- package/dist/src/iconography/IconHeader/IconHeader.d.ts +10 -0
- package/dist/src/iconography/IconHeader/{index.ts → index.d.ts} +1 -1
- package/dist/src/iconography/StarRating/StarRating.d.ts +8 -0
- package/dist/src/implementations/JoinGroupModal/JoinGroupModal.d.ts +10 -0
- package/dist/src/implementations/JoinGroupModal/{index.ts → index.d.ts} +1 -1
- package/dist/src/implementations/index.d.ts +1 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/inputs/CalendarInput/CalendarInput.d.ts +5 -0
- package/dist/src/inputs/CalendarInput/{index.ts → index.d.ts} +1 -1
- package/dist/src/inputs/CheckboxInput/CheckboxInput.d.ts +7 -0
- package/dist/src/inputs/CheckboxInput/{index.ts → index.d.ts} +1 -1
- package/dist/src/inputs/FeedInput/FeedInput.d.ts +4 -0
- package/dist/src/inputs/InboxInput/InboxInput.d.ts +4 -0
- package/dist/src/inputs/PostInput/PostInput.d.ts +6 -0
- package/dist/src/inputs/RadioInput/RadioInput.d.ts +7 -0
- package/dist/src/inputs/RadioInput/index.d.ts +1 -0
- package/dist/src/inputs/SearchInput/SearchInput.d.ts +9 -0
- package/dist/src/inputs/SelectInput/SelectInput.d.ts +9 -0
- package/dist/src/inputs/SelectInput/{index.ts → index.d.ts} +1 -1
- package/dist/src/inputs/TagInput/TagInput.d.ts +6 -0
- package/dist/src/inputs/TagInput/index.d.ts +1 -0
- package/dist/src/inputs/TextInput/TextInput.d.ts +5 -0
- package/dist/src/inputs/TextInput/index.d.ts +1 -0
- package/dist/src/lists/ContactDetails/ContactDetails.d.ts +14 -0
- package/dist/src/navigation/Breadcrumbs/Breadcrumbs.d.ts +10 -0
- package/dist/src/navigation/Breadcrumbs/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/Drawer/Drawer.d.ts +40 -0
- package/dist/src/navigation/Drawer/index.d.ts +1 -0
- package/dist/src/navigation/EditorBar/EditorBar.d.ts +9 -0
- package/dist/src/navigation/EditorBar/components/AlignmentDropdown/AlignmentDropdown.d.ts +7 -0
- package/dist/src/navigation/EditorBar/components/AlignmentDropdown/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/ButtonModal/ButtonModal.d.ts +7 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Comment.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/GiftSubscription.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Link.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Share.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/ShareCommunity.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Signup.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Special.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Subscribe.d.ts +2 -0
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/ButtonModal/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/FontDropdown/FontDropdown.d.ts +7 -0
- package/dist/src/navigation/EditorBar/components/FontDropdown/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/MoreDropdown/MoreDropdown.d.ts +7 -0
- package/dist/src/navigation/EditorBar/components/MoreDropdown/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/OutlineDropdown/OutlineDropdown.d.ts +6 -0
- package/dist/src/navigation/EditorBar/components/OutlineDropdown/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/TextTypeDropdown/TextTypeDropdown.d.ts +6 -0
- package/dist/src/navigation/EditorBar/components/TextTypeDropdown/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/VideoModal/VideoModal.d.ts +6 -0
- package/dist/src/navigation/EditorBar/components/VideoModal/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/EditorBar/components/{index.ts → index.d.ts} +2 -2
- package/dist/src/navigation/EditorBar/index.d.ts +1 -0
- package/dist/src/navigation/MenuTabs/MenuTabs.d.ts +7 -0
- package/dist/src/navigation/MenuTabs/index.d.ts +1 -0
- package/dist/src/navigation/Navigation/Navigation.d.ts +32 -0
- package/dist/src/navigation/Navigation/SubNavigation.d.ts +98 -0
- package/dist/src/navigation/Navigation/index.d.ts +2 -0
- package/dist/src/navigation/Pagination/Pagination.d.ts +12 -0
- package/dist/src/navigation/Pagination/{index.ts → index.d.ts} +1 -1
- package/dist/src/navigation/index.d.ts +6 -0
- package/dist/src/surfaces/Comment/Comment.d.ts +10 -0
- package/dist/src/surfaces/Faq/Faq.d.ts +12 -0
- package/dist/src/surfaces/Message/Message.d.ts +8 -0
- package/dist/src/surfaces/Message/index.d.ts +1 -0
- package/dist/src/surfaces/Modal/Modal.d.ts +35 -0
- package/dist/src/surfaces/Modal/index.d.ts +1 -0
- package/dist/src/surfaces/Plan/Plan.d.ts +11 -0
- package/dist/src/surfaces/Post/Post.d.ts +19 -0
- package/dist/src/surfaces/Post/postHelpers.d.ts +2 -0
- package/dist/src/surfaces/ProfileHeader/ProfileHeader.d.ts +17 -0
- package/dist/src/surfaces/RatingsOverview/RatingsOverview.d.ts +16 -0
- package/dist/src/surfaces/Review/Review.d.ts +15 -0
- package/dist/src/tables/Filter/Filter.d.ts +7 -0
- package/dist/src/tables/Filter/index.d.ts +1 -0
- package/dist/src/tables/Table/Table.d.ts +68 -0
- package/dist/src/tables/Table/index.d.ts +1 -0
- package/dist/src/tables/index.d.ts +2 -0
- package/package.json +17 -8
- package/.eslintrc.js +0 -4
- package/.turbo/turbo-build.log +0 -12
- package/.turbo/turbo-test.log +0 -4417
- package/CHANGELOG.md +0 -7
- package/babel.config.js +0 -6
- package/custom.d.ts +0 -9
- package/dist/custom.d.ts +0 -4
- package/dist/index.umd.cjs +0 -1398
- package/dist/src/actions/Button/Button.module.scss +0 -205
- package/dist/src/actions/Button/Button.spec.js +0 -56
- package/dist/src/actions/Button/Button.tsx +0 -143
- package/dist/src/actions/Dropdown/Dropdown.module.scss +0 -77
- package/dist/src/actions/Dropdown/Dropdown.spec.js +0 -149
- package/dist/src/actions/Dropdown/Dropdown.tsx +0 -224
- package/dist/src/actions/Dropdown/index.ts +0 -6
- package/dist/src/actions/Dropzone/Dropzone.module.scss +0 -48
- package/dist/src/actions/Dropzone/Dropzone.spec.js +0 -60
- package/dist/src/actions/Dropzone/Dropzone.tsx +0 -191
- package/dist/src/actions/Dropzone/index.ts +0 -1
- package/dist/src/actions/Rate/Rate.module.scss +0 -17
- package/dist/src/actions/Rate/Rate.tsx +0 -53
- package/dist/src/actions/Rate/index.ts +0 -1
- package/dist/src/actions/Switch/Switch.module.scss +0 -35
- package/dist/src/actions/Switch/Switch.spec.js +0 -31
- package/dist/src/actions/Switch/Switch.tsx +0 -34
- package/dist/src/cards/CourseCard/CourseCard.module.scss +0 -219
- package/dist/src/cards/CourseCard/CourseCard.spec.js +0 -60
- package/dist/src/cards/CourseCard/CourseCard.tsx +0 -145
- package/dist/src/cards/EpisodeCard/EpisodeCard.module.scss +0 -69
- package/dist/src/cards/EpisodeCard/EpisodeCard.tsx +0 -53
- package/dist/src/cards/FeatureCard/FeatureCard.module.scss +0 -116
- package/dist/src/cards/FeatureCard/FeatureCard.spec.js +0 -70
- package/dist/src/cards/FeatureCard/FeatureCard.tsx +0 -123
- package/dist/src/data/Bar/Bar.module.scss +0 -105
- package/dist/src/data/Bar/Bar.tsx +0 -161
- package/dist/src/data/Bar/index.ts +0 -1
- package/dist/src/data/Line/Line.module.scss +0 -102
- package/dist/src/data/Line/Line.tsx +0 -162
- package/dist/src/data/Line/index.ts +0 -1
- package/dist/src/data/Pie/Pie.module.scss +0 -56
- package/dist/src/data/Pie/Pie.spec.js +0 -72
- package/dist/src/data/Pie/Pie.tsx +0 -111
- package/dist/src/data/Pie/index.ts +0 -1
- package/dist/src/editor/Editor.module.scss +0 -125
- package/dist/src/editor/Editor.tsx +0 -327
- package/dist/src/editor/common/elements.ts +0 -50
- package/dist/src/editor/common/marks.ts +0 -27
- package/dist/src/editor/components/MediaDrawer/MediaDrawer.module.scss +0 -316
- package/dist/src/editor/components/MediaDrawer/MediaDrawer.tsx +0 -457
- package/dist/src/editor/config/default.ts +0 -213
- package/dist/src/editor/config/props.ts +0 -9
- package/dist/src/editor/plateUI.ts +0 -82
- package/dist/src/editor/plugins/blocks.tsx +0 -71
- package/dist/src/editor/plugins/custom/assets/DefaultThumbnail.tsx +0 -57
- package/dist/src/editor/plugins/custom/assets/index.ts +0 -1
- package/dist/src/editor/plugins/custom/buttons.tsx +0 -289
- package/dist/src/editor/plugins/custom/example.tsx +0 -64
- package/dist/src/editor/plugins/custom/exitBreak.ts +0 -41
- package/dist/src/editor/plugins/custom/footnote.tsx +0 -185
- package/dist/src/editor/plugins/custom/paywall.tsx +0 -156
- package/dist/src/editor/plugins/custom/qa.tsx +0 -390
- package/dist/src/editor/plugins/custom/resetBlockType.ts +0 -29
- package/dist/src/editor/plugins/custom/selectOnBackspace.ts +0 -7
- package/dist/src/editor/plugins/custom/softBreak.ts +0 -20
- package/dist/src/editor/plugins/custom/styles/Button.module.scss +0 -51
- package/dist/src/editor/plugins/custom/styles/Footnote.module.scss +0 -58
- package/dist/src/editor/plugins/custom/styles/Paywall.module.scss +0 -67
- package/dist/src/editor/plugins/custom/styles/QA.module.scss +0 -140
- package/dist/src/editor/plugins/custom/styles/Video.module.scss +0 -79
- package/dist/src/editor/plugins/custom/video.tsx +0 -163
- package/dist/src/editor/plugins/index.ts +0 -18
- package/dist/src/editor/plugins/inline.ts +0 -46
- package/dist/src/editor/plugins/marks.ts +0 -25
- package/dist/src/editor/plugins/utils.ts +0 -22
- package/dist/src/feedback/Chip/Chip.module.scss +0 -23
- package/dist/src/feedback/Chip/Chip.tsx +0 -58
- package/dist/src/feedback/Loader/Loader.module.scss +0 -18
- package/dist/src/feedback/Loader/Loader.spec.js +0 -18
- package/dist/src/feedback/Loader/Loader.tsx +0 -53
- package/dist/src/feedback/ProgressBar/ProgressBar.module.scss +0 -13
- package/dist/src/feedback/ProgressBar/ProgressBar.tsx +0 -32
- package/dist/src/feedback/Toast/Toast.module.scss +0 -44
- package/dist/src/feedback/Toast/Toast.tsx +0 -76
- package/dist/src/feedback/Tooltip/Tooltip.module.scss +0 -47
- package/dist/src/feedback/Tooltip/Tooltip.tsx +0 -10
- package/dist/src/feedback/Tooltip/index.ts +0 -1
- package/dist/src/global.d.ts +0 -6
- package/dist/src/iconography/Avatar/Avatar.module.scss +0 -90
- package/dist/src/iconography/Avatar/Avatar.spec.js +0 -75
- package/dist/src/iconography/Avatar/Avatar.tsx +0 -96
- package/dist/src/iconography/Avatar/DefaultIcon.svg +0 -4
- package/dist/src/iconography/Avatar/DefaultIcon.tsx +0 -12
- package/dist/src/iconography/Avatar/iconHelpers.tsx +0 -186
- package/dist/src/iconography/ColoredIcon/ColoredIcon.module.scss +0 -40
- package/dist/src/iconography/ColoredIcon/ColoredIcon.tsx +0 -30
- package/dist/src/iconography/ColoredIcon/index.ts +0 -5
- package/dist/src/iconography/DevicePreview/DevicePreview.module.scss +0 -143
- package/dist/src/iconography/DevicePreview/DevicePreview.tsx +0 -592
- package/dist/src/iconography/IconHeader/IconHeader.module.scss +0 -42
- package/dist/src/iconography/IconHeader/IconHeader.tsx +0 -42
- package/dist/src/iconography/StarRating/StarRating.tsx +0 -99
- package/dist/src/implementations/BodyContent/BodyContent.module.scss +0 -38
- package/dist/src/implementations/BodyContent/BodyContent.tsx +0 -78
- package/dist/src/implementations/BodyContent/index.ts +0 -2
- package/dist/src/implementations/JoinGroupModal/JoinGroupModal.module.scss +0 -83
- package/dist/src/implementations/JoinGroupModal/JoinGroupModal.tsx +0 -176
- package/dist/src/implementations/index.ts +0 -2
- package/dist/src/index.ts +0 -149
- package/dist/src/inputs/CalendarInput/CalendarInput.module.scss +0 -38
- package/dist/src/inputs/CalendarInput/CalendarInput.spec.js +0 -19
- package/dist/src/inputs/CalendarInput/CalendarInput.tsx +0 -29
- package/dist/src/inputs/CheckboxInput/CheckboxInput.module.scss +0 -23
- package/dist/src/inputs/CheckboxInput/CheckboxInput.tsx +0 -39
- package/dist/src/inputs/FeedInput/FeedInput.module.scss +0 -48
- package/dist/src/inputs/FeedInput/FeedInput.spec.js +0 -16
- package/dist/src/inputs/FeedInput/FeedInput.tsx +0 -197
- package/dist/src/inputs/InboxInput/InboxInput.module.scss +0 -48
- package/dist/src/inputs/InboxInput/InboxInput.spec.js +0 -19
- package/dist/src/inputs/InboxInput/InboxInput.tsx +0 -97
- package/dist/src/inputs/PostInput/PostInput.module.scss +0 -49
- package/dist/src/inputs/PostInput/PostInput.spec.js +0 -19
- package/dist/src/inputs/PostInput/PostInput.tsx +0 -54
- package/dist/src/inputs/RadioInput/RadioInput.module.scss +0 -68
- package/dist/src/inputs/RadioInput/RadioInput.tsx +0 -55
- package/dist/src/inputs/RadioInput/index.ts +0 -1
- package/dist/src/inputs/SearchInput/SearchInput.module.scss +0 -40
- package/dist/src/inputs/SearchInput/SearchInput.tsx +0 -61
- package/dist/src/inputs/SelectInput/SelectInput.module.scss +0 -66
- package/dist/src/inputs/SelectInput/SelectInput.tsx +0 -145
- package/dist/src/inputs/TagInput/TagInput.module.scss +0 -75
- package/dist/src/inputs/TagInput/TagInput.tsx +0 -115
- package/dist/src/inputs/TagInput/index.ts +0 -1
- package/dist/src/inputs/TextInput/TextInput.module.scss +0 -35
- package/dist/src/inputs/TextInput/TextInput.tsx +0 -46
- package/dist/src/inputs/TextInput/index.ts +0 -1
- package/dist/src/lists/ContactDetails/ContactDetails.module.scss +0 -70
- package/dist/src/lists/ContactDetails/ContactDetails.spec.js +0 -69
- package/dist/src/lists/ContactDetails/ContactDetails.tsx +0 -185
- package/dist/src/navigation/Breadcrumbs/Breadcrumbs.module.scss +0 -18
- package/dist/src/navigation/Breadcrumbs/Breadcrumbs.spec.js +0 -38
- package/dist/src/navigation/Breadcrumbs/Breadcrumbs.tsx +0 -43
- package/dist/src/navigation/Drawer/Drawer.module.scss +0 -104
- package/dist/src/navigation/Drawer/Drawer.tsx +0 -177
- package/dist/src/navigation/Drawer/index.ts +0 -1
- package/dist/src/navigation/EditorBar/EditorBar.module.scss +0 -118
- package/dist/src/navigation/EditorBar/EditorBar.tsx +0 -416
- package/dist/src/navigation/EditorBar/components/AlignmentDropdown/AlignmentDropdown.tsx +0 -106
- package/dist/src/navigation/EditorBar/components/ButtonModal/ButtonModal.module.scss +0 -85
- package/dist/src/navigation/EditorBar/components/ButtonModal/ButtonModal.tsx +0 -314
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Comment.tsx +0 -28
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/GiftSubscription.tsx +0 -28
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Link.tsx +0 -28
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Share.tsx +0 -28
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/ShareCommunity.tsx +0 -42
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Signup.tsx +0 -68
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Special.tsx +0 -24
- package/dist/src/navigation/EditorBar/components/ButtonModal/assets/Subscribe.tsx +0 -28
- package/dist/src/navigation/EditorBar/components/FontDropdown/FontDropdown.module.scss +0 -16
- package/dist/src/navigation/EditorBar/components/FontDropdown/FontDropdown.tsx +0 -137
- package/dist/src/navigation/EditorBar/components/MoreDropdown/MoreDropdown.module.scss +0 -43
- package/dist/src/navigation/EditorBar/components/MoreDropdown/MoreDropdown.tsx +0 -124
- package/dist/src/navigation/EditorBar/components/OutlineDropdown/OutlineDropdown.module.scss +0 -21
- package/dist/src/navigation/EditorBar/components/OutlineDropdown/OutlineDropdown.tsx +0 -37
- package/dist/src/navigation/EditorBar/components/TextTypeDropdown/TextTypeDropdown.module.scss +0 -51
- package/dist/src/navigation/EditorBar/components/TextTypeDropdown/TextTypeDropdown.tsx +0 -80
- package/dist/src/navigation/EditorBar/components/VideoModal/VideoModal.module.scss +0 -150
- package/dist/src/navigation/EditorBar/components/VideoModal/VideoModal.tsx +0 -163
- package/dist/src/navigation/EditorBar/index.ts +0 -1
- package/dist/src/navigation/MenuTabs/MenuTabs.module.scss +0 -34
- package/dist/src/navigation/MenuTabs/MenuTabs.spec.js +0 -36
- package/dist/src/navigation/MenuTabs/MenuTabs.tsx +0 -52
- package/dist/src/navigation/MenuTabs/index.ts +0 -1
- package/dist/src/navigation/Navigation/Navigation.module.scss +0 -92
- package/dist/src/navigation/Navigation/Navigation.spec.js +0 -144
- package/dist/src/navigation/Navigation/Navigation.tsx +0 -111
- package/dist/src/navigation/Navigation/SubNavigation.module.scss +0 -255
- package/dist/src/navigation/Navigation/SubNavigation.spec.js +0 -112
- package/dist/src/navigation/Navigation/SubNavigation.tsx +0 -443
- package/dist/src/navigation/Navigation/index.ts +0 -15
- package/dist/src/navigation/Pagination/Pagination.module.scss +0 -49
- package/dist/src/navigation/Pagination/Pagination.tsx +0 -115
- package/dist/src/navigation/index.ts +0 -21
- package/dist/src/surfaces/Comment/Comment.module.scss +0 -106
- package/dist/src/surfaces/Comment/Comment.spec.js +0 -105
- package/dist/src/surfaces/Comment/Comment.tsx +0 -157
- package/dist/src/surfaces/Faq/Faq.module.scss +0 -91
- package/dist/src/surfaces/Faq/Faq.spec.js +0 -38
- package/dist/src/surfaces/Faq/Faq.tsx +0 -156
- package/dist/src/surfaces/Message/Message.module.scss +0 -37
- package/dist/src/surfaces/Message/Message.spec.js +0 -47
- package/dist/src/surfaces/Message/Message.tsx +0 -54
- package/dist/src/surfaces/Message/index.ts +0 -1
- package/dist/src/surfaces/Modal/Modal.module.scss +0 -52
- package/dist/src/surfaces/Modal/Modal.spec.js +0 -38
- package/dist/src/surfaces/Modal/Modal.tsx +0 -131
- package/dist/src/surfaces/Modal/index.ts +0 -5
- package/dist/src/surfaces/Plan/Plan.module.scss +0 -79
- package/dist/src/surfaces/Plan/Plan.tsx +0 -75
- package/dist/src/surfaces/Post/Post.module.scss +0 -46
- package/dist/src/surfaces/Post/Post.spec.js +0 -103
- package/dist/src/surfaces/Post/Post.tsx +0 -185
- package/dist/src/surfaces/Post/postHelpers.ts +0 -20
- package/dist/src/surfaces/ProfileHeader/ProfileHeader.module.scss +0 -202
- package/dist/src/surfaces/ProfileHeader/ProfileHeader.tsx +0 -103
- package/dist/src/surfaces/RatingsOverview/RatingsOverview.module.scss +0 -54
- package/dist/src/surfaces/RatingsOverview/RatingsOverview.tsx +0 -69
- package/dist/src/surfaces/Review/Review.module.scss +0 -73
- package/dist/src/surfaces/Review/Review.tsx +0 -88
- package/dist/src/tables/Filter/Filter.module.scss +0 -34
- package/dist/src/tables/Filter/Filter.tsx +0 -30
- package/dist/src/tables/Filter/index.ts +0 -1
- package/dist/src/tables/Table/Table.module.scss +0 -126
- package/dist/src/tables/Table/Table.spec.js +0 -113
- package/dist/src/tables/Table/Table.tsx +0 -251
- package/dist/src/tables/Table/index.ts +0 -7
- package/dist/src/tables/index.ts +0 -7
- package/src/actions/Button/Button.module.scss +0 -205
- package/src/actions/Button/Button.spec.js +0 -56
- package/src/actions/Button/Button.tsx +0 -143
- package/src/actions/Button/index.ts +0 -1
- package/src/actions/Dropdown/Dropdown.module.scss +0 -77
- package/src/actions/Dropdown/Dropdown.spec.js +0 -149
- package/src/actions/Dropdown/Dropdown.tsx +0 -224
- package/src/actions/Dropdown/index.ts +0 -3
- package/src/actions/Dropzone/Dropzone.module.scss +0 -48
- package/src/actions/Dropzone/Dropzone.spec.js +0 -60
- package/src/actions/Dropzone/Dropzone.tsx +0 -191
- package/src/actions/Dropzone/index.ts +0 -1
- package/src/actions/Rate/Rate.module.scss +0 -17
- package/src/actions/Rate/Rate.tsx +0 -53
- package/src/actions/Rate/index.ts +0 -1
- package/src/actions/Switch/Switch.module.scss +0 -35
- package/src/actions/Switch/Switch.spec.js +0 -31
- package/src/actions/Switch/Switch.tsx +0 -34
- package/src/actions/Switch/index.ts +0 -1
- package/src/actions/index.ts +0 -5
- package/src/cards/CourseCard/CourseCard.module.scss +0 -219
- package/src/cards/CourseCard/CourseCard.spec.js +0 -60
- package/src/cards/CourseCard/CourseCard.tsx +0 -145
- package/src/cards/CourseCard/index.ts +0 -1
- package/src/cards/EpisodeCard/EpisodeCard.module.scss +0 -69
- package/src/cards/EpisodeCard/EpisodeCard.tsx +0 -53
- package/src/cards/EpisodeCard/index.ts +0 -1
- package/src/cards/FeatureCard/FeatureCard.module.scss +0 -116
- package/src/cards/FeatureCard/FeatureCard.spec.js +0 -70
- package/src/cards/FeatureCard/FeatureCard.tsx +0 -123
- package/src/cards/FeatureCard/index.ts +0 -1
- package/src/cards/index.ts +0 -3
- package/src/data/Bar/Bar.module.scss +0 -105
- package/src/data/Bar/Bar.tsx +0 -161
- package/src/data/Bar/index.ts +0 -1
- package/src/data/Line/Line.module.scss +0 -102
- package/src/data/Line/Line.tsx +0 -162
- package/src/data/Line/index.ts +0 -1
- package/src/data/Pie/Pie.module.scss +0 -56
- package/src/data/Pie/Pie.spec.js +0 -72
- package/src/data/Pie/Pie.tsx +0 -111
- package/src/data/Pie/index.ts +0 -1
- package/src/data/index.ts +0 -3
- package/src/editor/Editor.module.scss +0 -125
- package/src/editor/Editor.tsx +0 -327
- package/src/editor/common/elements.ts +0 -50
- package/src/editor/common/index.ts +0 -2
- package/src/editor/common/marks.ts +0 -27
- package/src/editor/components/MediaDrawer/MediaDrawer.module.scss +0 -316
- package/src/editor/components/MediaDrawer/MediaDrawer.tsx +0 -457
- package/src/editor/components/MediaDrawer/index.ts +0 -1
- package/src/editor/components/index.ts +0 -1
- package/src/editor/config/default.ts +0 -213
- package/src/editor/config/index.ts +0 -2
- package/src/editor/config/props.ts +0 -9
- package/src/editor/index.ts +0 -2
- package/src/editor/plateUI.ts +0 -82
- package/src/editor/plugins/blocks.tsx +0 -71
- package/src/editor/plugins/custom/assets/DefaultThumbnail.tsx +0 -57
- package/src/editor/plugins/custom/assets/index.ts +0 -1
- package/src/editor/plugins/custom/buttons.tsx +0 -289
- package/src/editor/plugins/custom/example.tsx +0 -64
- package/src/editor/plugins/custom/exitBreak.ts +0 -41
- package/src/editor/plugins/custom/footnote.tsx +0 -185
- package/src/editor/plugins/custom/index.ts +0 -14
- package/src/editor/plugins/custom/paywall.tsx +0 -156
- package/src/editor/plugins/custom/qa.tsx +0 -390
- package/src/editor/plugins/custom/resetBlockType.ts +0 -29
- package/src/editor/plugins/custom/selectOnBackspace.ts +0 -7
- package/src/editor/plugins/custom/softBreak.ts +0 -20
- package/src/editor/plugins/custom/styles/Button.module.scss +0 -51
- package/src/editor/plugins/custom/styles/Footnote.module.scss +0 -58
- package/src/editor/plugins/custom/styles/Paywall.module.scss +0 -67
- package/src/editor/plugins/custom/styles/QA.module.scss +0 -140
- package/src/editor/plugins/custom/styles/Video.module.scss +0 -79
- package/src/editor/plugins/custom/video.tsx +0 -163
- package/src/editor/plugins/index.ts +0 -18
- package/src/editor/plugins/inline.ts +0 -46
- package/src/editor/plugins/marks.ts +0 -25
- package/src/editor/plugins/utils.ts +0 -22
- package/src/feedback/Chip/Chip.module.scss +0 -23
- package/src/feedback/Chip/Chip.tsx +0 -58
- package/src/feedback/Chip/index.ts +0 -1
- package/src/feedback/Loader/Loader.module.scss +0 -18
- package/src/feedback/Loader/Loader.spec.js +0 -18
- package/src/feedback/Loader/Loader.tsx +0 -53
- package/src/feedback/Loader/index.ts +0 -1
- package/src/feedback/ProgressBar/ProgressBar.module.scss +0 -13
- package/src/feedback/ProgressBar/ProgressBar.tsx +0 -32
- package/src/feedback/ProgressBar/index.ts +0 -1
- package/src/feedback/Toast/Toast.module.scss +0 -44
- package/src/feedback/Toast/Toast.tsx +0 -76
- package/src/feedback/Toast/index.ts +0 -1
- package/src/feedback/Tooltip/Tooltip.module.scss +0 -47
- package/src/feedback/Tooltip/Tooltip.tsx +0 -10
- package/src/feedback/Tooltip/index.ts +0 -1
- package/src/feedback/index.ts +0 -5
- package/src/global.d.ts +0 -6
- package/src/iconography/Avatar/Avatar.module.scss +0 -90
- package/src/iconography/Avatar/Avatar.spec.js +0 -75
- package/src/iconography/Avatar/Avatar.tsx +0 -96
- package/src/iconography/Avatar/DefaultIcon.svg +0 -4
- package/src/iconography/Avatar/DefaultIcon.tsx +0 -12
- package/src/iconography/Avatar/iconHelpers.tsx +0 -186
- package/src/iconography/Avatar/index.ts +0 -1
- package/src/iconography/ColoredIcon/ColoredIcon.module.scss +0 -40
- package/src/iconography/ColoredIcon/ColoredIcon.tsx +0 -30
- package/src/iconography/ColoredIcon/index.ts +0 -5
- package/src/iconography/DevicePreview/DevicePreview.module.scss +0 -143
- package/src/iconography/DevicePreview/DevicePreview.tsx +0 -592
- package/src/iconography/DevicePreview/index.ts +0 -1
- package/src/iconography/IconHeader/IconHeader.module.scss +0 -42
- package/src/iconography/IconHeader/IconHeader.tsx +0 -42
- package/src/iconography/IconHeader/index.ts +0 -1
- package/src/iconography/StarRating/StarRating.tsx +0 -99
- package/src/iconography/StarRating/index.ts +0 -1
- package/src/iconography/index.ts +0 -5
- package/src/implementations/BodyContent/BodyContent.module.scss +0 -38
- package/src/implementations/BodyContent/BodyContent.tsx +0 -78
- package/src/implementations/BodyContent/index.ts +0 -2
- package/src/implementations/JoinGroupModal/JoinGroupModal.module.scss +0 -83
- package/src/implementations/JoinGroupModal/JoinGroupModal.tsx +0 -176
- package/src/implementations/JoinGroupModal/index.ts +0 -1
- package/src/implementations/index.ts +0 -2
- package/src/index.ts +0 -149
- package/src/inputs/CalendarInput/CalendarInput.module.scss +0 -38
- package/src/inputs/CalendarInput/CalendarInput.spec.js +0 -19
- package/src/inputs/CalendarInput/CalendarInput.tsx +0 -29
- package/src/inputs/CalendarInput/index.ts +0 -1
- package/src/inputs/CheckboxInput/CheckboxInput.module.scss +0 -23
- package/src/inputs/CheckboxInput/CheckboxInput.tsx +0 -39
- package/src/inputs/CheckboxInput/index.ts +0 -1
- package/src/inputs/FeedInput/FeedInput.module.scss +0 -48
- package/src/inputs/FeedInput/FeedInput.spec.js +0 -16
- package/src/inputs/FeedInput/FeedInput.tsx +0 -197
- package/src/inputs/FeedInput/index.ts +0 -1
- package/src/inputs/InboxInput/InboxInput.module.scss +0 -48
- package/src/inputs/InboxInput/InboxInput.spec.js +0 -19
- package/src/inputs/InboxInput/InboxInput.tsx +0 -97
- package/src/inputs/InboxInput/index.ts +0 -1
- package/src/inputs/PostInput/PostInput.module.scss +0 -49
- package/src/inputs/PostInput/PostInput.spec.js +0 -19
- package/src/inputs/PostInput/PostInput.tsx +0 -54
- package/src/inputs/PostInput/index.ts +0 -1
- package/src/inputs/RadioInput/RadioInput.module.scss +0 -68
- package/src/inputs/RadioInput/RadioInput.tsx +0 -55
- package/src/inputs/RadioInput/index.ts +0 -1
- package/src/inputs/SearchInput/SearchInput.module.scss +0 -40
- package/src/inputs/SearchInput/SearchInput.tsx +0 -61
- package/src/inputs/SearchInput/index.ts +0 -1
- package/src/inputs/SelectInput/SelectInput.module.scss +0 -66
- package/src/inputs/SelectInput/SelectInput.tsx +0 -145
- package/src/inputs/SelectInput/index.ts +0 -1
- package/src/inputs/TagInput/TagInput.module.scss +0 -75
- package/src/inputs/TagInput/TagInput.tsx +0 -115
- package/src/inputs/TagInput/index.ts +0 -1
- package/src/inputs/TextInput/TextInput.module.scss +0 -35
- package/src/inputs/TextInput/TextInput.tsx +0 -46
- package/src/inputs/TextInput/index.ts +0 -1
- package/src/inputs/index.ts +0 -10
- package/src/lists/ContactDetails/ContactDetails.module.scss +0 -70
- package/src/lists/ContactDetails/ContactDetails.spec.js +0 -69
- package/src/lists/ContactDetails/ContactDetails.tsx +0 -185
- package/src/lists/ContactDetails/index.ts +0 -1
- package/src/lists/index.ts +0 -1
- package/src/navigation/Breadcrumbs/Breadcrumbs.module.scss +0 -18
- package/src/navigation/Breadcrumbs/Breadcrumbs.spec.js +0 -38
- package/src/navigation/Breadcrumbs/Breadcrumbs.tsx +0 -43
- package/src/navigation/Breadcrumbs/index.ts +0 -1
- package/src/navigation/Drawer/Drawer.module.scss +0 -104
- package/src/navigation/Drawer/Drawer.tsx +0 -177
- package/src/navigation/Drawer/index.ts +0 -1
- package/src/navigation/EditorBar/EditorBar.module.scss +0 -118
- package/src/navigation/EditorBar/EditorBar.tsx +0 -416
- package/src/navigation/EditorBar/components/AlignmentDropdown/AlignmentDropdown.tsx +0 -106
- package/src/navigation/EditorBar/components/AlignmentDropdown/index.ts +0 -1
- package/src/navigation/EditorBar/components/ButtonModal/ButtonModal.module.scss +0 -85
- package/src/navigation/EditorBar/components/ButtonModal/ButtonModal.tsx +0 -314
- package/src/navigation/EditorBar/components/ButtonModal/assets/Comment.tsx +0 -28
- package/src/navigation/EditorBar/components/ButtonModal/assets/GiftSubscription.tsx +0 -28
- package/src/navigation/EditorBar/components/ButtonModal/assets/Link.tsx +0 -28
- package/src/navigation/EditorBar/components/ButtonModal/assets/Share.tsx +0 -28
- package/src/navigation/EditorBar/components/ButtonModal/assets/ShareCommunity.tsx +0 -42
- package/src/navigation/EditorBar/components/ButtonModal/assets/Signup.tsx +0 -68
- package/src/navigation/EditorBar/components/ButtonModal/assets/Special.tsx +0 -24
- package/src/navigation/EditorBar/components/ButtonModal/assets/Subscribe.tsx +0 -28
- package/src/navigation/EditorBar/components/ButtonModal/assets/index.ts +0 -8
- package/src/navigation/EditorBar/components/ButtonModal/index.ts +0 -1
- package/src/navigation/EditorBar/components/FontDropdown/FontDropdown.module.scss +0 -16
- package/src/navigation/EditorBar/components/FontDropdown/FontDropdown.tsx +0 -137
- package/src/navigation/EditorBar/components/FontDropdown/index.ts +0 -1
- package/src/navigation/EditorBar/components/MoreDropdown/MoreDropdown.module.scss +0 -43
- package/src/navigation/EditorBar/components/MoreDropdown/MoreDropdown.tsx +0 -124
- package/src/navigation/EditorBar/components/MoreDropdown/index.ts +0 -1
- package/src/navigation/EditorBar/components/OutlineDropdown/OutlineDropdown.module.scss +0 -21
- package/src/navigation/EditorBar/components/OutlineDropdown/OutlineDropdown.tsx +0 -37
- package/src/navigation/EditorBar/components/OutlineDropdown/index.ts +0 -1
- package/src/navigation/EditorBar/components/TextTypeDropdown/TextTypeDropdown.module.scss +0 -51
- package/src/navigation/EditorBar/components/TextTypeDropdown/TextTypeDropdown.tsx +0 -80
- package/src/navigation/EditorBar/components/TextTypeDropdown/index.ts +0 -1
- package/src/navigation/EditorBar/components/VideoModal/VideoModal.module.scss +0 -150
- package/src/navigation/EditorBar/components/VideoModal/VideoModal.tsx +0 -163
- package/src/navigation/EditorBar/components/VideoModal/index.ts +0 -1
- package/src/navigation/EditorBar/components/index.ts +0 -7
- package/src/navigation/EditorBar/index.ts +0 -1
- package/src/navigation/MenuTabs/MenuTabs.module.scss +0 -34
- package/src/navigation/MenuTabs/MenuTabs.spec.js +0 -36
- package/src/navigation/MenuTabs/MenuTabs.tsx +0 -52
- package/src/navigation/MenuTabs/index.ts +0 -1
- package/src/navigation/Navigation/Navigation.module.scss +0 -92
- package/src/navigation/Navigation/Navigation.spec.js +0 -144
- package/src/navigation/Navigation/Navigation.tsx +0 -111
- package/src/navigation/Navigation/SubNavigation.module.scss +0 -255
- package/src/navigation/Navigation/SubNavigation.spec.js +0 -112
- package/src/navigation/Navigation/SubNavigation.tsx +0 -443
- package/src/navigation/Navigation/index.ts +0 -15
- package/src/navigation/Pagination/Pagination.module.scss +0 -49
- package/src/navigation/Pagination/Pagination.tsx +0 -115
- package/src/navigation/Pagination/index.ts +0 -1
- package/src/navigation/index.ts +0 -21
- package/src/surfaces/Comment/Comment.module.scss +0 -106
- package/src/surfaces/Comment/Comment.spec.js +0 -105
- package/src/surfaces/Comment/Comment.tsx +0 -157
- package/src/surfaces/Comment/index.ts +0 -1
- package/src/surfaces/Faq/Faq.module.scss +0 -91
- package/src/surfaces/Faq/Faq.spec.js +0 -38
- package/src/surfaces/Faq/Faq.tsx +0 -156
- package/src/surfaces/Faq/index.ts +0 -1
- package/src/surfaces/Message/Message.module.scss +0 -37
- package/src/surfaces/Message/Message.spec.js +0 -47
- package/src/surfaces/Message/Message.tsx +0 -54
- package/src/surfaces/Message/index.ts +0 -1
- package/src/surfaces/Modal/Modal.module.scss +0 -52
- package/src/surfaces/Modal/Modal.spec.js +0 -38
- package/src/surfaces/Modal/Modal.tsx +0 -131
- package/src/surfaces/Modal/index.ts +0 -5
- package/src/surfaces/Plan/Plan.module.scss +0 -79
- package/src/surfaces/Plan/Plan.tsx +0 -75
- package/src/surfaces/Plan/index.ts +0 -1
- package/src/surfaces/Post/Post.module.scss +0 -46
- package/src/surfaces/Post/Post.spec.js +0 -103
- package/src/surfaces/Post/Post.tsx +0 -185
- package/src/surfaces/Post/index.ts +0 -1
- package/src/surfaces/Post/postHelpers.ts +0 -20
- package/src/surfaces/ProfileHeader/ProfileHeader.module.scss +0 -202
- package/src/surfaces/ProfileHeader/ProfileHeader.tsx +0 -103
- package/src/surfaces/ProfileHeader/index.ts +0 -1
- package/src/surfaces/RatingsOverview/RatingsOverview.module.scss +0 -54
- package/src/surfaces/RatingsOverview/RatingsOverview.tsx +0 -69
- package/src/surfaces/RatingsOverview/index.ts +0 -1
- package/src/surfaces/Review/Review.module.scss +0 -73
- package/src/surfaces/Review/Review.tsx +0 -88
- package/src/surfaces/Review/index.ts +0 -1
- package/src/surfaces/index.ts +0 -9
- package/src/tables/Filter/Filter.module.scss +0 -34
- package/src/tables/Filter/Filter.tsx +0 -30
- package/src/tables/Filter/index.ts +0 -1
- package/src/tables/Table/Table.module.scss +0 -126
- package/src/tables/Table/Table.spec.js +0 -113
- package/src/tables/Table/Table.tsx +0 -251
- package/src/tables/Table/index.ts +0 -7
- package/src/tables/index.ts +0 -7
- package/tsconfig.json +0 -15
- package/vite.config.ts +0 -28
- package/yarn-error.log +0 -6545
- /package/dist/src/actions/Button/{index.ts → index.d.ts} +0 -0
- /package/dist/src/actions/Switch/{index.ts → index.d.ts} +0 -0
- /package/dist/src/cards/CourseCard/{index.ts → index.d.ts} +0 -0
- /package/dist/src/cards/FeatureCard/{index.ts → index.d.ts} +0 -0
- /package/dist/src/cards/{index.ts → index.d.ts} +0 -0
- /package/dist/src/editor/config/{index.ts → index.d.ts} +0 -0
- /package/dist/src/feedback/Chip/{index.ts → index.d.ts} +0 -0
- /package/dist/src/feedback/Loader/{index.ts → index.d.ts} +0 -0
- /package/dist/src/feedback/ProgressBar/{index.ts → index.d.ts} +0 -0
- /package/dist/src/feedback/Toast/{index.ts → index.d.ts} +0 -0
- /package/dist/src/feedback/{index.ts → index.d.ts} +0 -0
- /package/dist/src/iconography/Avatar/{index.ts → index.d.ts} +0 -0
- /package/dist/src/iconography/StarRating/{index.ts → index.d.ts} +0 -0
- /package/dist/src/iconography/{index.ts → index.d.ts} +0 -0
- /package/dist/src/inputs/FeedInput/{index.ts → index.d.ts} +0 -0
- /package/dist/src/inputs/InboxInput/{index.ts → index.d.ts} +0 -0
- /package/dist/src/inputs/PostInput/{index.ts → index.d.ts} +0 -0
- /package/dist/src/inputs/SearchInput/{index.ts → index.d.ts} +0 -0
- /package/dist/src/inputs/{index.ts → index.d.ts} +0 -0
- /package/dist/src/lists/ContactDetails/{index.ts → index.d.ts} +0 -0
- /package/dist/src/lists/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/Comment/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/Faq/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/Plan/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/Post/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/ProfileHeader/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/RatingsOverview/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/Review/{index.ts → index.d.ts} +0 -0
- /package/dist/src/surfaces/{index.ts → index.d.ts} +0 -0
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styles from "./Drawer.module.scss";
|
|
3
|
-
import { sortChildrenByType } from "@soul-refiner/utils/src";
|
|
4
|
-
import { Close } from "@soul-refiner/icons/src";
|
|
5
|
-
|
|
6
|
-
import { MenuTabs } from "../MenuTabs";
|
|
7
|
-
import { IconHeader, IconHeaderProps } from "../../iconography";
|
|
8
|
-
import { Button, ButtonProps } from "../../actions";
|
|
9
|
-
|
|
10
|
-
export interface DrawerProps extends React.PropsWithChildren {
|
|
11
|
-
activeTab?: number;
|
|
12
|
-
background?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
heading?: React.ReactNode;
|
|
15
|
-
open?: boolean;
|
|
16
|
-
toggle?: (open: boolean) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const Drawer = ({
|
|
20
|
-
activeTab: controlledActiveTab,
|
|
21
|
-
background = "#F2F5F6",
|
|
22
|
-
className,
|
|
23
|
-
children,
|
|
24
|
-
open,
|
|
25
|
-
toggle,
|
|
26
|
-
}: DrawerProps) => {
|
|
27
|
-
const [activeTab, setActiveTab] = React.useState(0);
|
|
28
|
-
|
|
29
|
-
const tabs: string[] = [];
|
|
30
|
-
const _children = sortChildrenByType(children);
|
|
31
|
-
|
|
32
|
-
React.Children.forEach(_children["Drawer.Tab"], (child) => {
|
|
33
|
-
tabs.push((child as { props: { name: string } })?.props.name);
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
const handleTabChange = (index: number) => setActiveTab(index);
|
|
37
|
-
|
|
38
|
-
React.useEffect(() => {
|
|
39
|
-
if (typeof controlledActiveTab === "number") {
|
|
40
|
-
setActiveTab(controlledActiveTab);
|
|
41
|
-
}
|
|
42
|
-
}, [controlledActiveTab]);
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<>
|
|
46
|
-
{open && (
|
|
47
|
-
<div
|
|
48
|
-
onClick={() => toggle && toggle(false)}
|
|
49
|
-
className={styles.background}
|
|
50
|
-
/>
|
|
51
|
-
)}
|
|
52
|
-
<div
|
|
53
|
-
className={`${styles.drawer} ${open ? "" : "closed"} ${
|
|
54
|
-
className ? " " + className : ""
|
|
55
|
-
}`}
|
|
56
|
-
style={
|
|
57
|
-
{
|
|
58
|
-
"--background-color": background,
|
|
59
|
-
} as React.CSSProperties
|
|
60
|
-
}
|
|
61
|
-
>
|
|
62
|
-
{React.Children.map(_children["Drawer.Heading"], (child) => {
|
|
63
|
-
if (React.isValidElement(child)) {
|
|
64
|
-
return React.cloneElement(child, {
|
|
65
|
-
toggleDrawer: () => toggle && toggle(!open),
|
|
66
|
-
} as Partial<unknown> & React.Attributes);
|
|
67
|
-
}
|
|
68
|
-
return child;
|
|
69
|
-
})}
|
|
70
|
-
<div
|
|
71
|
-
className={`children-wrapper ${
|
|
72
|
-
_children["Drawer.Action"] ? " with-actions" : ""
|
|
73
|
-
}`}
|
|
74
|
-
>
|
|
75
|
-
{_children["General"]}
|
|
76
|
-
{_children["undefined"]}
|
|
77
|
-
{!!tabs.length && (
|
|
78
|
-
<div className="tabs-wrapper">
|
|
79
|
-
<MenuTabs
|
|
80
|
-
activeItem={activeTab}
|
|
81
|
-
onTabClick={handleTabChange}
|
|
82
|
-
tabItems={tabs}
|
|
83
|
-
/>
|
|
84
|
-
</div>
|
|
85
|
-
)}
|
|
86
|
-
{_children["Drawer.Tab"] &&
|
|
87
|
-
React.Children.map(
|
|
88
|
-
(_children["Drawer.Tab"][activeTab] as React.ReactElement).props
|
|
89
|
-
.children,
|
|
90
|
-
(child, index) => {
|
|
91
|
-
return React.cloneElement(child, {
|
|
92
|
-
key: "menu-item-" + index.toString(36),
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
)}
|
|
96
|
-
</div>
|
|
97
|
-
<div className="actions-wrapper">
|
|
98
|
-
{_children["Drawer.Action"] &&
|
|
99
|
-
_children["Drawer.Action"].map((button, index) => {
|
|
100
|
-
if (
|
|
101
|
-
React.isValidElement(button) &&
|
|
102
|
-
index === _children["Drawer.Action"].length - 1
|
|
103
|
-
) {
|
|
104
|
-
return React.cloneElement(button, {
|
|
105
|
-
buttonColor: "var(--color-blue-3)",
|
|
106
|
-
color: "var(--color-blue-10)",
|
|
107
|
-
} as Partial<ButtonProps> & React.Attributes);
|
|
108
|
-
}
|
|
109
|
-
return React.cloneElement(button as React.ReactElement, {
|
|
110
|
-
buttonType: "secondary",
|
|
111
|
-
});
|
|
112
|
-
})}
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
</>
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
const Heading = ({
|
|
120
|
-
children,
|
|
121
|
-
toggleDrawer,
|
|
122
|
-
}: {
|
|
123
|
-
children: React.ReactNode;
|
|
124
|
-
toggleDrawer?: () => void;
|
|
125
|
-
}) => (
|
|
126
|
-
<div className={styles.heading}>
|
|
127
|
-
{children}
|
|
128
|
-
<Close
|
|
129
|
-
as="button"
|
|
130
|
-
fill="var(--color-grey-4)"
|
|
131
|
-
iconColor="#FFFFFF"
|
|
132
|
-
iconSize={18}
|
|
133
|
-
onClick={toggleDrawer}
|
|
134
|
-
size={32}
|
|
135
|
-
style={{ borderRadius: "50%" }}
|
|
136
|
-
/>
|
|
137
|
-
</div>
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
Heading.displayName = "Drawer.Heading";
|
|
141
|
-
Drawer.Heading = Heading;
|
|
142
|
-
|
|
143
|
-
export interface DrawerTabProps extends React.PropsWithChildren {
|
|
144
|
-
name: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const Tab = ({ children }: DrawerTabProps) => {
|
|
148
|
-
return <>{React.Children.toArray(children)}</>;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
Tab.displayName = "Drawer.Tab";
|
|
152
|
-
Drawer.Tab = Tab;
|
|
153
|
-
|
|
154
|
-
export interface DrawerItemProps extends React.PropsWithChildren {
|
|
155
|
-
header: IconHeaderProps;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const Item = ({ children, header }: DrawerItemProps) => {
|
|
159
|
-
return (
|
|
160
|
-
<div className={styles.item}>
|
|
161
|
-
{header && <IconHeader {...header} />}
|
|
162
|
-
{children}
|
|
163
|
-
</div>
|
|
164
|
-
);
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
Item.displayName = "Drawer.Item";
|
|
168
|
-
Drawer.Item = Item;
|
|
169
|
-
|
|
170
|
-
const Action = ({ children, ...rest }: Omit<ButtonProps, "size">) => {
|
|
171
|
-
return <Button {...rest}>{children}</Button>;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
Action.displayName = "Drawer.Action";
|
|
175
|
-
Drawer.Action = Action;
|
|
176
|
-
|
|
177
|
-
export { Drawer };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Drawer, type DrawerProps } from "./Drawer";
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
@use "@soul-refiner/styles/_mixins";
|
|
2
|
-
|
|
3
|
-
.editornav {
|
|
4
|
-
position: fixed;
|
|
5
|
-
z-index: 2;
|
|
6
|
-
left: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
top: 0;
|
|
9
|
-
background-color: #ffffff;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.menubarWrapper {
|
|
13
|
-
border-bottom: 1px solid var(--color-grey-9);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.menubar {
|
|
17
|
-
@include mixins.flex($gap: 5px, $justify: center);
|
|
18
|
-
max-width: 1200px;
|
|
19
|
-
width: fit-content;
|
|
20
|
-
min-width: 1000px;
|
|
21
|
-
margin: 0 auto;
|
|
22
|
-
padding: 8px;
|
|
23
|
-
|
|
24
|
-
.divider {
|
|
25
|
-
width: 1px;
|
|
26
|
-
height: 32px;
|
|
27
|
-
background-color: var(--color-grey-8);
|
|
28
|
-
margin: 0px 7px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
button.icon {
|
|
32
|
-
padding: 6px;
|
|
33
|
-
height: 32px !important;
|
|
34
|
-
width: 34px !important;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
& > button,
|
|
38
|
-
& > span,
|
|
39
|
-
& > div > button,
|
|
40
|
-
& > div > span,
|
|
41
|
-
& > label > span {
|
|
42
|
-
border-radius: var(--border-radius-tiny);
|
|
43
|
-
border: 1px solid transparent !important;
|
|
44
|
-
height: 32px;
|
|
45
|
-
width: 34px;
|
|
46
|
-
|
|
47
|
-
&:hover:not(&[class~="slate-ToolbarButton-active"]) {
|
|
48
|
-
background-color: var(--color-grey-10) !important;
|
|
49
|
-
border: 1px solid var(--color-grey-8) !important;
|
|
50
|
-
color: var(--color-grey-3);
|
|
51
|
-
}
|
|
52
|
-
&[class~="slate-ToolbarButton-active"] {
|
|
53
|
-
background-color: var(--color-grey-4);
|
|
54
|
-
& > div {
|
|
55
|
-
& > svg > path {
|
|
56
|
-
stroke: var(--color-grey-10);
|
|
57
|
-
}
|
|
58
|
-
&[class~="fill"] > svg > path {
|
|
59
|
-
fill: var(--color-grey-10);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
.nostroke > svg > path {
|
|
63
|
-
stroke: none;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[class~="options"] {
|
|
69
|
-
z-index: 5;
|
|
70
|
-
[class~="selected"] {
|
|
71
|
-
background-color: var(--color-grey-3);
|
|
72
|
-
color: #ffffff;
|
|
73
|
-
& > button > svg {
|
|
74
|
-
fill: #ffffff;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
div {
|
|
78
|
-
padding: 5px 0px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.buttonoptions {
|
|
84
|
-
margin-bottom: 16px;
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
&:last-of-type {
|
|
87
|
-
margin-bottom: 0px;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.option {
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
display: flex;
|
|
94
|
-
justify-content: center;
|
|
95
|
-
align-items: center;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.moredropdown {
|
|
99
|
-
@include mixins.flex($align: center, $gap: 16px);
|
|
100
|
-
p {
|
|
101
|
-
line-height: 28px;
|
|
102
|
-
}
|
|
103
|
-
margin-bottom: 16px;
|
|
104
|
-
cursor: pointer;
|
|
105
|
-
&:last-of-type {
|
|
106
|
-
margin-bottom: 0px;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.inputContainer {
|
|
111
|
-
position: relative;
|
|
112
|
-
input {
|
|
113
|
-
display: none;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.audio {
|
|
117
|
-
cursor: pointer;
|
|
118
|
-
}
|
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ReactTooltip from "react-tooltip";
|
|
3
|
-
import {
|
|
4
|
-
focusEditor,
|
|
5
|
-
getPluginType,
|
|
6
|
-
getPreventDefaultHandler,
|
|
7
|
-
ImageToolbarButton,
|
|
8
|
-
insertImage,
|
|
9
|
-
insertNodes,
|
|
10
|
-
LinkToolbarButton,
|
|
11
|
-
MarkToolbarButton,
|
|
12
|
-
setMarks,
|
|
13
|
-
toggleIndentList,
|
|
14
|
-
toggleNodeType,
|
|
15
|
-
ToolbarButton,
|
|
16
|
-
usePlateEditorRef,
|
|
17
|
-
usePlateEditorState,
|
|
18
|
-
} from "@udecode/plate";
|
|
19
|
-
|
|
20
|
-
import styles from "./EditorBar.module.scss";
|
|
21
|
-
import {
|
|
22
|
-
Audio,
|
|
23
|
-
BlockQuote,
|
|
24
|
-
Bold,
|
|
25
|
-
Bookmark,
|
|
26
|
-
Code,
|
|
27
|
-
CurrencyUSD,
|
|
28
|
-
Highlighter,
|
|
29
|
-
Image,
|
|
30
|
-
Italic,
|
|
31
|
-
Link,
|
|
32
|
-
OrderedList,
|
|
33
|
-
Note,
|
|
34
|
-
Preferences,
|
|
35
|
-
QA,
|
|
36
|
-
Redo,
|
|
37
|
-
Strikethrough,
|
|
38
|
-
Undo,
|
|
39
|
-
Underline,
|
|
40
|
-
UnorderedList,
|
|
41
|
-
Video,
|
|
42
|
-
} from "@soul-refiner/icons/src";
|
|
43
|
-
|
|
44
|
-
import {
|
|
45
|
-
EditorContext,
|
|
46
|
-
BUTTON_SUBSCRIBE,
|
|
47
|
-
ELEMENT_BLOCKQUOTE,
|
|
48
|
-
ELEMENT_BUTTON,
|
|
49
|
-
ELEMENT_DEFAULT,
|
|
50
|
-
ELEMENT_H2,
|
|
51
|
-
ELEMENT_PARAGRAPH,
|
|
52
|
-
ELEMENT_PAYWALL,
|
|
53
|
-
ELEMENT_QA,
|
|
54
|
-
MARK_BOLD,
|
|
55
|
-
MARK_CODE,
|
|
56
|
-
MARK_ITALIC,
|
|
57
|
-
MARK_HIGHLIGHT,
|
|
58
|
-
MARK_STRIKETHROUGH,
|
|
59
|
-
MARK_SUBSCRIPT,
|
|
60
|
-
MARK_SUPERSCRIPT,
|
|
61
|
-
MARK_UNDERLINE,
|
|
62
|
-
} from "../../editor";
|
|
63
|
-
import { Dropdown } from "../../actions";
|
|
64
|
-
import { Modal } from "../../surfaces";
|
|
65
|
-
|
|
66
|
-
import {
|
|
67
|
-
AlignmentDropdown,
|
|
68
|
-
ButtonModal,
|
|
69
|
-
FontDropdown,
|
|
70
|
-
MoreDropdown,
|
|
71
|
-
OutlineDropdown,
|
|
72
|
-
TextTypeDropdown,
|
|
73
|
-
VideoModal,
|
|
74
|
-
} from "./components";
|
|
75
|
-
|
|
76
|
-
export interface EditorBarProps {
|
|
77
|
-
buttonsMenu?: boolean;
|
|
78
|
-
editable: boolean;
|
|
79
|
-
mediaMenu?: boolean;
|
|
80
|
-
moreMenu?: boolean;
|
|
81
|
-
notes?: boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export const EditorBar = ({
|
|
85
|
-
buttonsMenu = true,
|
|
86
|
-
editable,
|
|
87
|
-
mediaMenu = true,
|
|
88
|
-
moreMenu = true,
|
|
89
|
-
notes = false,
|
|
90
|
-
}: EditorBarProps) => {
|
|
91
|
-
const { handleUploadImage, pageName, outline } =
|
|
92
|
-
React.useContext(EditorContext);
|
|
93
|
-
const editorRef = usePlateEditorRef("main");
|
|
94
|
-
const stateEditor = usePlateEditorState();
|
|
95
|
-
const audioRef = React.useRef<HTMLInputElement>(null);
|
|
96
|
-
const imageRef = React.useRef<HTMLInputElement>(null);
|
|
97
|
-
const videoRef = React.useRef<HTMLInputElement>(null);
|
|
98
|
-
|
|
99
|
-
const handleAudioChange = async (event: React.FormEvent) => {
|
|
100
|
-
const file = (event.target as HTMLInputElement)?.files?.[0];
|
|
101
|
-
if (!file) return;
|
|
102
|
-
/**
|
|
103
|
-
* TODO: Insert audio component
|
|
104
|
-
*/
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
const handleBlockquote = (event: React.MouseEvent) => {
|
|
108
|
-
getPreventDefaultHandler(toggleNodeType, stateEditor, {
|
|
109
|
-
activeType: ELEMENT_BLOCKQUOTE,
|
|
110
|
-
})(event);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const handleImageChange = async (event: React.FormEvent) => {
|
|
114
|
-
const file = (event.target as HTMLInputElement)?.files?.[0];
|
|
115
|
-
if (!file) return;
|
|
116
|
-
const imageurl = await handleUploadImage(file);
|
|
117
|
-
if (imageurl) {
|
|
118
|
-
insertImage(editorRef, imageurl);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
const handleFont = (value: string) => {
|
|
123
|
-
const type = getPluginType(editorRef, "fontSize");
|
|
124
|
-
focusEditor(editorRef);
|
|
125
|
-
setMarks(stateEditor, { [type]: `${value}px` });
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const handleOrderedList = (event: any) => {
|
|
129
|
-
event.preventDefault();
|
|
130
|
-
toggleIndentList(editorRef, {
|
|
131
|
-
listStyleType: "decimals",
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const handleUnorderedList = (event: any) => {
|
|
136
|
-
event.preventDefault();
|
|
137
|
-
toggleIndentList(editorRef, {
|
|
138
|
-
listStyleType: "disc",
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
const handleVideoChange = async (event: React.FormEvent) => {
|
|
143
|
-
const file = (event.target as HTMLInputElement)?.files?.[0];
|
|
144
|
-
if (!file) return;
|
|
145
|
-
/**
|
|
146
|
-
* TODO: Insert video component
|
|
147
|
-
*/
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const handlePaywall = () => {
|
|
151
|
-
insertNodes(editorRef, [
|
|
152
|
-
{
|
|
153
|
-
type: ELEMENT_PAYWALL,
|
|
154
|
-
children: [
|
|
155
|
-
{
|
|
156
|
-
type: ELEMENT_H2,
|
|
157
|
-
children: [
|
|
158
|
-
{
|
|
159
|
-
text: "Keep reading with a paid subscription",
|
|
160
|
-
},
|
|
161
|
-
],
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
type: ELEMENT_PARAGRAPH,
|
|
165
|
-
children: [
|
|
166
|
-
{
|
|
167
|
-
text: "Subscribe to ",
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
text: pageName,
|
|
171
|
-
italic: true,
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
text: " to keep reading this content.",
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
type: ELEMENT_BUTTON,
|
|
180
|
-
buttonType: BUTTON_SUBSCRIBE,
|
|
181
|
-
children: [
|
|
182
|
-
{
|
|
183
|
-
text: "Get Access",
|
|
184
|
-
},
|
|
185
|
-
],
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
type: ELEMENT_DEFAULT,
|
|
191
|
-
children: [
|
|
192
|
-
{
|
|
193
|
-
text: "",
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
},
|
|
197
|
-
]);
|
|
198
|
-
focusEditor(editorRef);
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
const handleQA = () => {
|
|
202
|
-
insertNodes(editorRef, {
|
|
203
|
-
type: ELEMENT_QA,
|
|
204
|
-
children: [
|
|
205
|
-
{
|
|
206
|
-
type: ELEMENT_PARAGRAPH,
|
|
207
|
-
children: [
|
|
208
|
-
{
|
|
209
|
-
text: "Ask your question here...",
|
|
210
|
-
},
|
|
211
|
-
],
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
});
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
return (
|
|
218
|
-
<div className={styles.editornav}>
|
|
219
|
-
<ReactTooltip place="top" type="dark" effect="solid" html />
|
|
220
|
-
<div className={styles.menubarWrapper}>
|
|
221
|
-
<nav
|
|
222
|
-
aria-label="editor-navigation"
|
|
223
|
-
className={styles.menubar}
|
|
224
|
-
data-testid="editor-bar-top"
|
|
225
|
-
>
|
|
226
|
-
{outline && <OutlineDropdown editable={editable} outline={outline} />}
|
|
227
|
-
{!editable && (
|
|
228
|
-
<>
|
|
229
|
-
<Dropdown
|
|
230
|
-
onChange={() => undefined}
|
|
231
|
-
trigger={
|
|
232
|
-
<Highlighter
|
|
233
|
-
as="button"
|
|
234
|
-
size={32}
|
|
235
|
-
iconSize={22}
|
|
236
|
-
fill={"var(--color-grey-6)"}
|
|
237
|
-
/>
|
|
238
|
-
}
|
|
239
|
-
></Dropdown>
|
|
240
|
-
<Dropdown
|
|
241
|
-
onChange={() => undefined}
|
|
242
|
-
trigger={
|
|
243
|
-
<Bookmark
|
|
244
|
-
as="button"
|
|
245
|
-
size={32}
|
|
246
|
-
iconSize={18}
|
|
247
|
-
fill={"var(--color-grey-6)"}
|
|
248
|
-
/>
|
|
249
|
-
}
|
|
250
|
-
></Dropdown>
|
|
251
|
-
<Modal>
|
|
252
|
-
<Modal.Trigger>
|
|
253
|
-
<Note
|
|
254
|
-
as="button"
|
|
255
|
-
size={32}
|
|
256
|
-
iconSize={20}
|
|
257
|
-
fill="var(--color-grey-6)"
|
|
258
|
-
/>
|
|
259
|
-
</Modal.Trigger>
|
|
260
|
-
</Modal>
|
|
261
|
-
<Modal>
|
|
262
|
-
<Modal.Trigger>
|
|
263
|
-
<Preferences
|
|
264
|
-
as="button"
|
|
265
|
-
size={32}
|
|
266
|
-
iconSize={22}
|
|
267
|
-
fill="var(--color-grey-6)"
|
|
268
|
-
/>
|
|
269
|
-
</Modal.Trigger>
|
|
270
|
-
</Modal>
|
|
271
|
-
</>
|
|
272
|
-
)}
|
|
273
|
-
</nav>
|
|
274
|
-
</div>
|
|
275
|
-
<div className={styles.menubarWrapper}>
|
|
276
|
-
<nav
|
|
277
|
-
aria-label="editor-navigation"
|
|
278
|
-
className={styles.menubar}
|
|
279
|
-
data-testid="editor-bar"
|
|
280
|
-
>
|
|
281
|
-
<Undo
|
|
282
|
-
as="button"
|
|
283
|
-
data-tip="Undo"
|
|
284
|
-
fill={"var(--color-grey-1)"}
|
|
285
|
-
onClick={() => editorRef.undo()}
|
|
286
|
-
size={32}
|
|
287
|
-
iconSize={22}
|
|
288
|
-
/>
|
|
289
|
-
<Redo
|
|
290
|
-
as="button"
|
|
291
|
-
data-tip="Redo"
|
|
292
|
-
fill={"var(--color-grey-1)"}
|
|
293
|
-
onClick={() => editorRef.redo()}
|
|
294
|
-
size={32}
|
|
295
|
-
iconSize={22}
|
|
296
|
-
/>
|
|
297
|
-
<div className={styles.divider} />
|
|
298
|
-
<TextTypeDropdown editorRef={editorRef} />
|
|
299
|
-
<div className={styles.divider} />
|
|
300
|
-
<FontDropdown editorRef={editorRef} onChange={handleFont} />
|
|
301
|
-
<div data-tip="Bold">
|
|
302
|
-
<MarkToolbarButton
|
|
303
|
-
type={getPluginType(editorRef, MARK_BOLD)}
|
|
304
|
-
icon={<Bold fill={"var(--color-grey-1)"} />}
|
|
305
|
-
/>
|
|
306
|
-
</div>
|
|
307
|
-
<div data-tip="Italic">
|
|
308
|
-
<MarkToolbarButton
|
|
309
|
-
type={getPluginType(editorRef, MARK_ITALIC)}
|
|
310
|
-
icon={<Italic fill={"var(--color-grey-1)"} />}
|
|
311
|
-
/>
|
|
312
|
-
</div>
|
|
313
|
-
<div data-tip="Strikethrough">
|
|
314
|
-
<MarkToolbarButton
|
|
315
|
-
type={getPluginType(editorRef, MARK_STRIKETHROUGH)}
|
|
316
|
-
icon={<Strikethrough fill={"var(--color-grey-1)"} />}
|
|
317
|
-
/>
|
|
318
|
-
</div>
|
|
319
|
-
<div data-tip="Underline">
|
|
320
|
-
<MarkToolbarButton
|
|
321
|
-
type={getPluginType(editorRef, MARK_UNDERLINE)}
|
|
322
|
-
icon={
|
|
323
|
-
<Underline
|
|
324
|
-
fill={"var(--color-grey-1)"}
|
|
325
|
-
className="fill"
|
|
326
|
-
size={32}
|
|
327
|
-
iconSize={22}
|
|
328
|
-
/>
|
|
329
|
-
}
|
|
330
|
-
/>
|
|
331
|
-
</div>
|
|
332
|
-
<div data-tip="Inline code">
|
|
333
|
-
<MarkToolbarButton
|
|
334
|
-
type={getPluginType(editorRef, MARK_CODE)}
|
|
335
|
-
icon={
|
|
336
|
-
<Code fill={"var(--color-grey-1)"} size={32} iconSize={22} />
|
|
337
|
-
}
|
|
338
|
-
/>
|
|
339
|
-
</div>
|
|
340
|
-
<AlignmentDropdown stateEditor={stateEditor} editorRef={editorRef} />
|
|
341
|
-
<div className={styles.divider} />
|
|
342
|
-
<div data-tip="Link">
|
|
343
|
-
<LinkToolbarButton
|
|
344
|
-
icon={
|
|
345
|
-
<Link
|
|
346
|
-
fill="var(--color-grey-1)"
|
|
347
|
-
className={`fill ${styles.nostroke}`}
|
|
348
|
-
/>
|
|
349
|
-
}
|
|
350
|
-
/>
|
|
351
|
-
</div>
|
|
352
|
-
<label
|
|
353
|
-
data-tip="Insert image"
|
|
354
|
-
onChange={handleImageChange}
|
|
355
|
-
className={styles.inputContainer}
|
|
356
|
-
>
|
|
357
|
-
<ImageToolbarButton
|
|
358
|
-
icon={<Image fill="var(--color-grey-1)" />}
|
|
359
|
-
onMouseDown={() => imageRef.current?.click()}
|
|
360
|
-
/>
|
|
361
|
-
<input accept="image/*" type="file" ref={imageRef} />
|
|
362
|
-
</label>
|
|
363
|
-
<VideoModal editorRef={editorRef} />
|
|
364
|
-
<div
|
|
365
|
-
className={`${styles.inputContainer} ${styles.audio}`}
|
|
366
|
-
data-tip="Insert Audio"
|
|
367
|
-
>
|
|
368
|
-
<Audio
|
|
369
|
-
as="span"
|
|
370
|
-
fill="var(--color-grey-1)"
|
|
371
|
-
size={32}
|
|
372
|
-
iconSize={18}
|
|
373
|
-
/>
|
|
374
|
-
</div>
|
|
375
|
-
<span
|
|
376
|
-
className={styles.option}
|
|
377
|
-
data-tip="Blockquote"
|
|
378
|
-
onClick={handleBlockquote}
|
|
379
|
-
>
|
|
380
|
-
<BlockQuote fill="var(--color-grey-4)" size={32} iconSize={18} />
|
|
381
|
-
</span>
|
|
382
|
-
<ButtonModal editorRef={editorRef} pageName={pageName} />
|
|
383
|
-
<span
|
|
384
|
-
className={styles.option}
|
|
385
|
-
data-tip="Insert Q&A"
|
|
386
|
-
onClick={handleQA}
|
|
387
|
-
>
|
|
388
|
-
<QA fill="var(--color-grey-4)" />
|
|
389
|
-
</span>
|
|
390
|
-
<span
|
|
391
|
-
className={styles.option}
|
|
392
|
-
data-tip="Insert Paywall"
|
|
393
|
-
onClick={handlePaywall}
|
|
394
|
-
>
|
|
395
|
-
<CurrencyUSD fill="var(--color-grey-4)" />
|
|
396
|
-
</span>
|
|
397
|
-
<div className={styles.divider} />
|
|
398
|
-
<div data-tip="Unordered List">
|
|
399
|
-
<ToolbarButton
|
|
400
|
-
onMouseDown={handleUnorderedList}
|
|
401
|
-
icon={<UnorderedList fill="var(--color-grey-1)" />}
|
|
402
|
-
/>
|
|
403
|
-
</div>
|
|
404
|
-
<div data-tip="Ordered List">
|
|
405
|
-
<ToolbarButton
|
|
406
|
-
onMouseDown={handleOrderedList}
|
|
407
|
-
icon={<OrderedList fill="var(--color-grey-1)" />}
|
|
408
|
-
/>
|
|
409
|
-
</div>
|
|
410
|
-
<div className={styles.divider} />
|
|
411
|
-
<MoreDropdown editorRef={editorRef} stateEditor={stateEditor} />
|
|
412
|
-
</nav>
|
|
413
|
-
</div>
|
|
414
|
-
</div>
|
|
415
|
-
);
|
|
416
|
-
};
|