diff --git a/packages/blocks-editor/src/Lexical/Icons/LICENSE.md b/packages/blocks-editor/src/Lexical/Icons/LICENSE.md deleted file mode 100644 index ce74f6abeed..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/LICENSE.md +++ /dev/null @@ -1,5 +0,0 @@ -Bootstrap Icons -https://icons.getbootstrap.com - -Licensed under MIT license -https://github.com/twbs/icons/blob/main/LICENSE.md diff --git a/packages/blocks-editor/src/Lexical/Icons/arrow-clockwise.svg b/packages/blocks-editor/src/Lexical/Icons/arrow-clockwise.svg deleted file mode 100644 index 80b3ad066e0..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/arrow-clockwise.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/arrow-counterclockwise.svg b/packages/blocks-editor/src/Lexical/Icons/arrow-counterclockwise.svg deleted file mode 100644 index 46d3581d8e1..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/arrow-counterclockwise.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/bg-color.svg b/packages/blocks-editor/src/Lexical/Icons/bg-color.svg deleted file mode 100644 index ae08b2c1d85..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/bg-color.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/camera.svg b/packages/blocks-editor/src/Lexical/Icons/camera.svg deleted file mode 100755 index 968ebf4eb37..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/camera.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/card-checklist.svg b/packages/blocks-editor/src/Lexical/Icons/card-checklist.svg deleted file mode 100644 index f81734be43d..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/card-checklist.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/caret-right-fill.svg b/packages/blocks-editor/src/Lexical/Icons/caret-right-fill.svg deleted file mode 100644 index 04c258e6d13..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/caret-right-fill.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/chat-left-text.svg b/packages/blocks-editor/src/Lexical/Icons/chat-left-text.svg deleted file mode 100644 index 7c7acc23971..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/chat-left-text.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/chat-right-dots.svg b/packages/blocks-editor/src/Lexical/Icons/chat-right-dots.svg deleted file mode 100644 index 110925a1223..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/chat-right-dots.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/chat-right-text.svg b/packages/blocks-editor/src/Lexical/Icons/chat-right-text.svg deleted file mode 100644 index 08daa52bc78..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/chat-right-text.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/chat-right.svg b/packages/blocks-editor/src/Lexical/Icons/chat-right.svg deleted file mode 100644 index d9c2b110e7c..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/chat-right.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/chat-square-quote.svg b/packages/blocks-editor/src/Lexical/Icons/chat-square-quote.svg deleted file mode 100755 index 5501848a576..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/chat-square-quote.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/clipboard.svg b/packages/blocks-editor/src/Lexical/Icons/clipboard.svg deleted file mode 100755 index f09e1a1c9bf..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/clipboard.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/close.svg b/packages/blocks-editor/src/Lexical/Icons/close.svg deleted file mode 100644 index 4f5bb39382b..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/close.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/code.svg b/packages/blocks-editor/src/Lexical/Icons/code.svg deleted file mode 100755 index c9070bf06eb..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/code.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/comments.svg b/packages/blocks-editor/src/Lexical/Icons/comments.svg deleted file mode 100644 index 6a23ac5463d..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/comments.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/copy.svg b/packages/blocks-editor/src/Lexical/Icons/copy.svg deleted file mode 100644 index e757cdfe5da..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/copy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/diagram-2.svg b/packages/blocks-editor/src/Lexical/Icons/diagram-2.svg deleted file mode 100644 index 7b7b696d0e8..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/diagram-2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/download.svg b/packages/blocks-editor/src/Lexical/Icons/download.svg deleted file mode 100755 index cd27d96c101..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/download.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/dropdown-more.svg b/packages/blocks-editor/src/Lexical/Icons/dropdown-more.svg deleted file mode 100644 index 399ea8de5ff..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/dropdown-more.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/figma.svg b/packages/blocks-editor/src/Lexical/Icons/figma.svg deleted file mode 100644 index fa319e12bea..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/figma.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/file-image.svg b/packages/blocks-editor/src/Lexical/Icons/file-image.svg deleted file mode 100644 index 73a9ff15f10..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/file-image.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/filetype-gif.svg b/packages/blocks-editor/src/Lexical/Icons/filetype-gif.svg deleted file mode 100644 index 12acb80f39e..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/filetype-gif.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/font-color.svg b/packages/blocks-editor/src/Lexical/Icons/font-color.svg deleted file mode 100644 index 1ac53f7ac5c..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/font-color.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/font-family.svg b/packages/blocks-editor/src/Lexical/Icons/font-family.svg deleted file mode 100644 index a13f5ad1ef9..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/font-family.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/gear.svg b/packages/blocks-editor/src/Lexical/Icons/gear.svg deleted file mode 100755 index ee6efa04415..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/gear.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/horizontal-rule.svg b/packages/blocks-editor/src/Lexical/Icons/horizontal-rule.svg deleted file mode 100644 index cb84970fb1a..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/horizontal-rule.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/indent.svg b/packages/blocks-editor/src/Lexical/Icons/indent.svg deleted file mode 100644 index c9c5df7bf65..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/indent.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/journal-code.svg b/packages/blocks-editor/src/Lexical/Icons/journal-code.svg deleted file mode 100755 index 9db6666a7cc..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/journal-code.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/journal-text.svg b/packages/blocks-editor/src/Lexical/Icons/journal-text.svg deleted file mode 100755 index 9defed2c3eb..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/journal-text.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/justify.svg b/packages/blocks-editor/src/Lexical/Icons/justify.svg deleted file mode 100644 index 6c5f8d0f7e6..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/justify.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/link.svg b/packages/blocks-editor/src/Lexical/Icons/link.svg deleted file mode 100755 index bc38ff5d4ba..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/link.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/list-ol.svg b/packages/blocks-editor/src/Lexical/Icons/list-ol.svg deleted file mode 100755 index ad288e8ea48..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/list-ol.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/list-ul.svg b/packages/blocks-editor/src/Lexical/Icons/list-ul.svg deleted file mode 100755 index 6d7aae75d79..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/list-ul.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/lock-fill.svg b/packages/blocks-editor/src/Lexical/Icons/lock-fill.svg deleted file mode 100644 index 466ca138f93..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/lock-fill.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/lock.svg b/packages/blocks-editor/src/Lexical/Icons/lock.svg deleted file mode 100644 index 3e19e71b519..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/lock.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/markdown.svg b/packages/blocks-editor/src/Lexical/Icons/markdown.svg deleted file mode 100644 index 310bff6d550..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/markdown.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/mic.svg b/packages/blocks-editor/src/Lexical/Icons/mic.svg deleted file mode 100644 index afdb58da9b2..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/mic.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/outdent.svg b/packages/blocks-editor/src/Lexical/Icons/outdent.svg deleted file mode 100644 index a98e0e1921a..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/outdent.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/paint-bucket.svg b/packages/blocks-editor/src/Lexical/Icons/paint-bucket.svg deleted file mode 100644 index baa02d3b31d..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/paint-bucket.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/palette.svg b/packages/blocks-editor/src/Lexical/Icons/palette.svg deleted file mode 100644 index 338222ec61f..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/palette.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/pencil-fill.svg b/packages/blocks-editor/src/Lexical/Icons/pencil-fill.svg index eb01fb2a411..34e1766e86b 100755 --- a/packages/blocks-editor/src/Lexical/Icons/pencil-fill.svg +++ b/packages/blocks-editor/src/Lexical/Icons/pencil-fill.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/plug-fill.svg b/packages/blocks-editor/src/Lexical/Icons/plug-fill.svg deleted file mode 100644 index 3863ef84009..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/plug-fill.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/plug.svg b/packages/blocks-editor/src/Lexical/Icons/plug.svg deleted file mode 100644 index de8d4c80b09..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/plug.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/plus-slash-minus.svg b/packages/blocks-editor/src/Lexical/Icons/plus-slash-minus.svg deleted file mode 100644 index 40ff781e5ac..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/plus-slash-minus.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/prettier-error.svg b/packages/blocks-editor/src/Lexical/Icons/prettier-error.svg deleted file mode 100644 index 8fc8450d038..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/prettier-error.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/prettier.svg b/packages/blocks-editor/src/Lexical/Icons/prettier.svg deleted file mode 100644 index b25a626c7f9..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/prettier.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/send.svg b/packages/blocks-editor/src/Lexical/Icons/send.svg deleted file mode 100644 index 04e9f298365..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/send.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/square-check.svg b/packages/blocks-editor/src/Lexical/Icons/square-check.svg deleted file mode 100644 index 352ba61582b..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/square-check.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/sticky.svg b/packages/blocks-editor/src/Lexical/Icons/sticky.svg deleted file mode 100644 index 2b14115cdbc..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/sticky.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/success.svg b/packages/blocks-editor/src/Lexical/Icons/success.svg deleted file mode 100644 index 8e11879e077..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/success.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/table.svg b/packages/blocks-editor/src/Lexical/Icons/table.svg deleted file mode 100644 index e514555c7fd..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/table.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/text-center.svg b/packages/blocks-editor/src/Lexical/Icons/text-center.svg deleted file mode 100644 index 97ced49e630..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/text-center.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/text-left.svg b/packages/blocks-editor/src/Lexical/Icons/text-left.svg deleted file mode 100644 index 5fe4cc44529..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/text-left.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/text-paragraph.svg b/packages/blocks-editor/src/Lexical/Icons/text-paragraph.svg deleted file mode 100755 index 1b943ab44ee..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/text-paragraph.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/text-right.svg b/packages/blocks-editor/src/Lexical/Icons/text-right.svg deleted file mode 100644 index de984517f97..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/text-right.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/trash.svg b/packages/blocks-editor/src/Lexical/Icons/trash.svg deleted file mode 100644 index 75680bb7adc..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/trash.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/trash3.svg b/packages/blocks-editor/src/Lexical/Icons/trash3.svg deleted file mode 100644 index 5c38b387e6d..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/trash3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/tweet.svg b/packages/blocks-editor/src/Lexical/Icons/tweet.svg deleted file mode 100644 index 3304020e67a..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/tweet.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-bold.svg b/packages/blocks-editor/src/Lexical/Icons/type-bold.svg deleted file mode 100755 index ec0dc2ec0d4..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-bold.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-h1.svg b/packages/blocks-editor/src/Lexical/Icons/type-h1.svg deleted file mode 100755 index 379da930d8c..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-h1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-h2.svg b/packages/blocks-editor/src/Lexical/Icons/type-h2.svg deleted file mode 100755 index e724a0be393..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-h2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-h3.svg b/packages/blocks-editor/src/Lexical/Icons/type-h3.svg deleted file mode 100755 index 02d4a06c5a0..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-h3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-h4.svg b/packages/blocks-editor/src/Lexical/Icons/type-h4.svg deleted file mode 100755 index eb950c9ed4e..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-h4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-h5.svg b/packages/blocks-editor/src/Lexical/Icons/type-h5.svg deleted file mode 100755 index 5d565639cf3..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-h5.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-h6.svg b/packages/blocks-editor/src/Lexical/Icons/type-h6.svg deleted file mode 100755 index 8274acacd54..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-h6.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-italic.svg b/packages/blocks-editor/src/Lexical/Icons/type-italic.svg deleted file mode 100755 index ac139f3cc96..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-italic.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-strikethrough.svg b/packages/blocks-editor/src/Lexical/Icons/type-strikethrough.svg deleted file mode 100755 index a0d7e17e2d9..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-strikethrough.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-subscript.svg b/packages/blocks-editor/src/Lexical/Icons/type-subscript.svg deleted file mode 100644 index f6ebe4b6f68..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-subscript.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-superscript.svg b/packages/blocks-editor/src/Lexical/Icons/type-superscript.svg deleted file mode 100644 index bed98f9d801..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-superscript.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/type-underline.svg b/packages/blocks-editor/src/Lexical/Icons/type-underline.svg deleted file mode 100755 index d5c7046ee32..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/type-underline.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/upload.svg b/packages/blocks-editor/src/Lexical/Icons/upload.svg deleted file mode 100644 index 81328ddbca3..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/upload.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/user.svg b/packages/blocks-editor/src/Lexical/Icons/user.svg deleted file mode 100644 index 823b72d1e60..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/user.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Icons/youtube.svg b/packages/blocks-editor/src/Lexical/Icons/youtube.svg deleted file mode 100644 index e7fb9faabc7..00000000000 --- a/packages/blocks-editor/src/Lexical/Icons/youtube.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/blocks-editor/src/Lexical/Plugins/FloatingLinkEditorPlugin/index.css b/packages/blocks-editor/src/Lexical/Plugins/FloatingLinkEditorPlugin/index.css deleted file mode 100644 index 55732191f26..00000000000 --- a/packages/blocks-editor/src/Lexical/Plugins/FloatingLinkEditorPlugin/index.css +++ /dev/null @@ -1,40 +0,0 @@ -.link-editor { - position: absolute; - top: 0; - left: 0; - z-index: 10; - max-width: 400px; - width: 100%; - opacity: 0; - background-color: #fff; - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); - border-radius: 8px; - transition: opacity 0.5s; - will-change: transform; -} - -.link-editor .button { - width: 20px; - height: 20px; - display: inline-block; - padding: 6px; - border-radius: 8px; - cursor: pointer; - margin: 0 2px; -} - -.link-editor .button.hovered { - width: 20px; - height: 20px; - display: inline-block; - background-color: #eee; -} - -.link-editor .button i, -.actions i { - background-size: contain; - display: inline-block; - height: 20px; - width: 20px; - vertical-align: -0.25em; -} diff --git a/packages/blocks-editor/src/Lexical/Plugins/FloatingLinkEditorPlugin/index.tsx b/packages/blocks-editor/src/Lexical/Plugins/FloatingLinkEditorPlugin/index.tsx index 58dd23eec81..8fb98f8202c 100644 --- a/packages/blocks-editor/src/Lexical/Plugins/FloatingLinkEditorPlugin/index.tsx +++ b/packages/blocks-editor/src/Lexical/Plugins/FloatingLinkEditorPlugin/index.tsx @@ -5,8 +5,6 @@ * LICENSE file in the root directory of this source tree. * */ -import './index.css'; - import {$isAutoLinkNode, $isLinkNode, TOGGLE_LINK_COMMAND} from '@lexical/link'; import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext'; import {$findMatchingParent, mergeRegister} from '@lexical/utils'; @@ -28,6 +26,8 @@ import LinkPreview from '../../UI/LinkPreview'; import {getSelectedNode} from '../../Utils/getSelectedNode'; import {sanitizeUrl} from '../../Utils/sanitizeUrl'; import {setFloatingElemPosition} from '../../Utils/setFloatingElemPosition'; +import {LexicalPencilFill} from '@standardnotes/icons'; +import {IconComponent} from '../../../Lexical/Theme/IconComponent'; function FloatingLinkEditor({ editor, @@ -195,8 +195,11 @@ function FloatingLinkEditor({ onMouseDown={(event) => event.preventDefault()} onClick={() => { setEditMode(true); - }} - /> + }}> + + + + diff --git a/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.css b/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.css index 8a2a0cac0db..c45b46279af 100644 --- a/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.css +++ b/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.css @@ -7,11 +7,9 @@ z-index: 10; opacity: 0; background-color: var(--sn-stylekit-contrast-background-color); - color: var(--sn-stylekit-contrast-color); - box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3); + box-shadow: 0px 5px 10px var(--sn-stylekit-shadow-color); border-radius: 8px; transition: opacity 0.5s; - height: 35px; will-change: transform; } @@ -20,7 +18,7 @@ display: flex; background: none; border-radius: 10px; - padding: 8px; + padding: 12px; cursor: pointer; vertical-align: middle; } @@ -57,7 +55,8 @@ } .floating-text-format-popup .popup-item:hover:not([disabled]) { - background-color: #eee; + background-color: var(--sn-stylekit-info-color); + color: var(--sn-stylekit-info-contrast-color); } .floating-text-format-popup select.popup-item { diff --git a/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.tsx b/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.tsx index d2f462ef787..81f4c13141f 100644 --- a/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.tsx +++ b/packages/blocks-editor/src/Lexical/Plugins/FloatingTextFormatToolbarPlugin/index.tsx @@ -28,15 +28,18 @@ import {getDOMRangeRect} from '../../Utils/getDOMRangeRect'; import {getSelectedNode} from '../../Utils/getSelectedNode'; import {setFloatingElemPosition} from '../../Utils/setFloatingElemPosition'; import { - TypeItalic, - TypeStrikethrough, - TypeSubscript, - TypeSuperscript, - TypeUnderline, - TypeBold, - LexicalCode, - LexicalLink, + BoldIcon, + ItalicIcon, + UnderlineIcon, + StrikethroughIcon, + CodeIcon, + LinkIcon, + SuperscriptIcon, + SubscriptIcon, } from '@standardnotes/icons'; +import {IconComponent} from '../../Theme/IconComponent'; + +const IconSize = 15; function TextFormatFloatingToolbar({ editor, @@ -149,7 +152,9 @@ function TextFormatFloatingToolbar({ }} className={'popup-item spaced ' + (isBold ? 'active' : '')} aria-label="Format text as bold"> - + + + )} diff --git a/packages/blocks-editor/src/Lexical/Theme/IconComponent.tsx b/packages/blocks-editor/src/Lexical/Theme/IconComponent.tsx new file mode 100644 index 00000000000..58674d7f0f7 --- /dev/null +++ b/packages/blocks-editor/src/Lexical/Theme/IconComponent.tsx @@ -0,0 +1,15 @@ +export const IconComponent = ({ + children, + size = 20, + paddingTop = 0, +}: { + children: React.ReactNode; + size?: number; + paddingTop?: number; +}) => { + return ( + + {children} + + ); +}; diff --git a/packages/blocks-editor/src/Lexical/Theme/base.scss b/packages/blocks-editor/src/Lexical/Theme/base.scss index d56d232f95c..f915b931883 100644 --- a/packages/blocks-editor/src/Lexical/Theme/base.scss +++ b/packages/blocks-editor/src/Lexical/Theme/base.scss @@ -216,34 +216,6 @@ body { bottom: 20px; } - #options-button::after { - background-image: url(#{$blocks-editor-icons-path}/gear.svg); - } - - #test-recorder-button::after { - background-image: url(#{$blocks-editor-icons-path}/journal-code.svg); - } - - #paste-log-button::after { - background-image: url(#{$blocks-editor-icons-path}/clipboard.svg); - } - - #test-recorder-button-snapshot { - margin-right: auto; - } - - #test-recorder-button-snapshot::after { - background-image: url(#{$blocks-editor-icons-path}/camera.svg); - } - - #test-recorder-button-copy::after { - background-image: url(#{$blocks-editor-icons-path}/clipboard.svg); - } - - #test-recorder-button-download::after { - background-image: url(#{$blocks-editor-icons-path}/download.svg); - } - .mentions-menu { width: 250px; } @@ -256,68 +228,6 @@ body { width: 200px; } - .link-editor .button.active, - .toolbar .button.active { - background-color: rgb(223, 232, 250); - } - - .link-editor .link-input { - display: block; - width: calc(100% - 24px); - box-sizing: border-box; - margin: 8px 12px; - padding: 8px 12px; - border-radius: 15px; - background-color: #eee; - font-size: 15px; - color: rgb(5, 5, 5); - border: 0; - outline: 0; - position: relative; - font-family: inherit; - } - - .link-editor div.link-edit { - background-image: url(#{$blocks-editor-icons-path}/pencil-fill.svg); - background-size: 16px; - background-position: center; - background-repeat: no-repeat; - width: 35px; - vertical-align: -0.25em; - position: absolute; - right: 0; - top: 0; - bottom: 0; - cursor: pointer; - } - - .link-editor .link-input a { - color: rgb(33, 111, 219); - text-decoration: none; - display: block; - white-space: nowrap; - overflow: hidden; - margin-right: 30px; - text-overflow: ellipsis; - } - - .link-editor .link-input a:hover { - text-decoration: underline; - } - - .link-editor .font-size-wrapper, - .link-editor .font-family-wrapper { - display: flex; - margin: 0 4px; - } - - .link-editor select { - padding: 6px; - border: none; - background-color: rgba(0, 0, 0, 0.075); - border-radius: 4px; - } - .mention:focus { box-shadow: rgb(180 213 255) 0px 0px 0px 2px; outline: none; @@ -365,34 +275,6 @@ body { margin: 2px; } - #block-controls span.block-type.paragraph { - background-image: url(#{$blocks-editor-icons-path}/text-paragraph.svg); - } - - #block-controls span.block-type.h1 { - background-image: url(#{$blocks-editor-icons-path}/type-h1.svg); - } - - #block-controls span.block-type.h2 { - background-image: url(#{$blocks-editor-icons-path}/type-h2.svg); - } - - #block-controls span.block-type.quote { - background-image: url(#{$blocks-editor-icons-path}/chat-square-quote.svg); - } - - #block-controls span.block-type.ul { - background-image: url(#{$blocks-editor-icons-path}/list-ul.svg); - } - - #block-controls span.block-type.ol { - background-image: url(#{$blocks-editor-icons-path}/list-ol.svg); - } - - #block-controls span.block-type.code { - background-image: url(#{$blocks-editor-icons-path}/code.svg); - } - .characters-limit { color: #888; font-size: 12px; @@ -757,54 +639,6 @@ body { vertical-align: -0.25em; } - .actions i.indent { - background-image: url(#{$blocks-editor-icons-path}/indent.svg); - } - - .actions i.outdent { - background-image: url(#{$blocks-editor-icons-path}/outdent.svg); - } - - .actions i.lock { - background-image: url(#{$blocks-editor-icons-path}/lock-fill.svg); - } - - .actions i.image { - background-image: url(#{$blocks-editor-icons-path}/file-image.svg); - } - - .actions i.table { - background-image: url(#{$blocks-editor-icons-path}/table.svg); - } - - .actions i.unlock { - background-image: url(#{$blocks-editor-icons-path}/lock.svg); - } - - .actions i.left-align { - background-image: url(#{$blocks-editor-icons-path}/text-left.svg); - } - - .actions i.center-align { - background-image: url(#{$blocks-editor-icons-path}/text-center.svg); - } - - .actions i.right-align { - background-image: url(#{$blocks-editor-icons-path}/text-right.svg); - } - - .actions i.justify-align { - background-image: url(#{$blocks-editor-icons-path}/justify.svg); - } - - .actions i.disconnect { - background-image: url(#{$blocks-editor-icons-path}/plug.svg); - } - - .actions i.connect { - background-image: url(#{$blocks-editor-icons-path}/plug-fill.svg); - } - .table-cell-action-button-container { position: absolute; top: 0; diff --git a/packages/blocks-editor/src/Lexical/Theme/icons.scss b/packages/blocks-editor/src/Lexical/Theme/icons.scss index 5513ddbe2b1..913b6b84626 100644 --- a/packages/blocks-editor/src/Lexical/Theme/icons.scss +++ b/packages/blocks-editor/src/Lexical/Theme/icons.scss @@ -1,64 +1,10 @@ -.icon.paragraph { - background-image: url(#{$blocks-editor-icons-path}/text-paragraph.svg); -} - -.icon.h1 { - background-image: url(#{$blocks-editor-icons-path}/type-h1.svg); -} - -.icon.h2 { - background-image: url(#{$blocks-editor-icons-path}/type-h2.svg); -} - -.icon.h3 { - background-image: url(#{$blocks-editor-icons-path}/type-h3.svg); -} - -.icon.h4 { - background-image: url(#{$blocks-editor-icons-path}/type-h4.svg); -} - -.icon.h5 { - background-image: url(#{$blocks-editor-icons-path}/type-h5.svg); -} - -.icon.h6 { - background-image: url(#{$blocks-editor-icons-path}/type-h6.svg); -} - -.icon.bullet-list, -.icon.bullet { - background-image: url(#{$blocks-editor-icons-path}/list-ul.svg); -} - -.icon.check-list, -.icon.check { - background-image: url(#{$blocks-editor-icons-path}/square-check.svg); -} - -.icon.numbered-list, -.icon.number { - background-image: url(#{$blocks-editor-icons-path}/list-ol.svg); -} - -.icon.quote { - background-image: url(#{$blocks-editor-icons-path}/chat-square-quote.svg); -} - -.icon.code { - background-image: url(#{$blocks-editor-icons-path}/code.svg); -} - .icon.plus { background-image: url(#{$blocks-editor-icons-path}/plus.svg); } -.icon.caret-right { - background-image: url(#{$blocks-editor-icons-path}/caret-right-fill.svg); -} - +/** .icon.dropdown-more { - background-image: url(#{$blocks-editor-icons-path}/dropdown-more.svg); +background-image: url(#{$blocks-editor-icons-path}/dropdown-more.svg); } .icon.font-color { @@ -85,18 +31,10 @@ i.clear { background-image: url(#{$blocks-editor-icons-path}/trash.svg); } -i.horizontal-rule { - background-image: url(#{$blocks-editor-icons-path}/horizontal-rule.svg); -} - i.image { background-image: url(#{$blocks-editor-icons-path}/file-image.svg); } -i.table { - background-image: url(#{$blocks-editor-icons-path}/table.svg); -} - i.close { background-image: url(#{$blocks-editor-icons-path}/close.svg); } @@ -109,31 +47,6 @@ i.poll { background-image: url(#{$blocks-editor-icons-path}/card-checklist.svg); } -i.tweet { - background-image: url(#{$blocks-editor-icons-path}/tweet.svg); -} - -i.youtube { - background-image: url(#{$blocks-editor-icons-path}/youtube.svg); -} - -.icon.left-align, -i.left-align { - background-image: url(#{$blocks-editor-icons-path}/text-left.svg); -} - -i.center-align { - background-image: url(#{$blocks-editor-icons-path}/text-center.svg); -} - -i.right-align { - background-image: url(#{$blocks-editor-icons-path}/text-right.svg); -} - -i.justify-align { - background-image: url(#{$blocks-editor-icons-path}/justify.svg); -} - i.indent { background-image: url(#{$blocks-editor-icons-path}/indent.svg); } @@ -201,3 +114,4 @@ i.prettier { i.prettier-error { background-image: url(#{$blocks-editor-icons-path}/prettier-error.svg); } +*/ diff --git a/packages/blocks-editor/src/Lexical/Theme/lexical.scss b/packages/blocks-editor/src/Lexical/Theme/lexical.scss index fafa26f1f5c..778d1270dbb 100644 --- a/packages/blocks-editor/src/Lexical/Theme/lexical.scss +++ b/packages/blocks-editor/src/Lexical/Theme/lexical.scss @@ -1,4 +1,5 @@ @import 'base'; @import 'custom'; @import 'editor'; -@import 'icons'; \ No newline at end of file +@import 'icons'; +@import 'links'; diff --git a/packages/blocks-editor/src/Lexical/Theme/links.scss b/packages/blocks-editor/src/Lexical/Theme/links.scss new file mode 100644 index 00000000000..2f5c837178e --- /dev/null +++ b/packages/blocks-editor/src/Lexical/Theme/links.scss @@ -0,0 +1,110 @@ +.button.active, +.toolbar .button.active { + background-color: var(--sn-stylekit-contrast-background-color); +} + +.link-editor { + background-color: var(--sn-stylekit-secondary-background-color); + border-radius: 8px; + border: 0; + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); + box-sizing: border-box; + display: absolute; + font-family: inherit; + font-size: 15px; + left: 0; + margin: 8px 12px; + max-width: 400px; + opacity: 0; + outline: 0; + padding: 8px 12px; + position: absolute; + top: 0; + transition: opacity 0.5s; + width: 100%; + will-change: transform; + z-index: 10; +} + +.link-input { + background-color: var(--sn-stylekit-background-color); + border-radius: 15px; + border: 0; + box-sizing: border-box; + color: var(--sn-stylekit-contrast-color); + display: absolute; + font-family: inherit; + font-size: 15px; + margin: 8px 12px; + outline: 0; + padding: 8px 12px; + position: relative; + width: calc(100% - 24px); +} + +.link-editor div.link-edit { + display: flex; + align-items: center; + background-size: 16px; + background-position: center; + background-repeat: no-repeat; + vertical-align: -0.25em; + position: absolute; + right: 12px; + top: 0; + bottom: 0; + cursor: pointer; +} + +.link-editor .link-input a { + color: rgb(33, 111, 219); + text-decoration: none; + display: block; + white-space: nowrap; + overflow: hidden; + margin-right: 30px; + text-overflow: ellipsis; +} + +.link-editor .link-input a:hover { + text-decoration: underline; +} + +.link-editor .font-size-wrapper, +.link-editor .font-family-wrapper { + display: flex; + margin: 0 4px; +} + +.link-editor select { + padding: 6px; + border: none; + background-color: rgba(0, 0, 0, 0.075); + border-radius: 4px; +} + +.link-editor .button { + width: 20px; + height: 20px; + display: inline-block; + padding: 6px; + border-radius: 8px; + cursor: pointer; + margin: 0 2px; +} + +.link-editor .button.hovered { + width: 20px; + height: 20px; + display: inline-block; + background-color: #eee; +} + +.link-editor .button i, +.actions i { + background-size: contain; + display: inline-block; + height: 20px; + width: 20px; + vertical-align: -0.25em; +} diff --git a/packages/icons/src/Icons/ic-bold.svg b/packages/icons/src/Icons/ic-bold.svg index 18480452394..bfd06d5a2a7 100644 --- a/packages/icons/src/Icons/ic-bold.svg +++ b/packages/icons/src/Icons/ic-bold.svg @@ -1,3 +1,3 @@ - + diff --git a/packages/icons/src/Icons/ic-code.svg b/packages/icons/src/Icons/ic-code.svg index 79df4be8db6..e2caf19d77d 100644 --- a/packages/icons/src/Icons/ic-code.svg +++ b/packages/icons/src/Icons/ic-code.svg @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/packages/icons/src/Icons/ic-italic.svg b/packages/icons/src/Icons/ic-italic.svg index 19a91d1b6aa..d33124b74dc 100644 --- a/packages/icons/src/Icons/ic-italic.svg +++ b/packages/icons/src/Icons/ic-italic.svg @@ -1,3 +1,3 @@ - + diff --git a/packages/icons/src/Icons/ic-link.svg b/packages/icons/src/Icons/ic-link.svg index d26f33ef528..b9822a651be 100644 --- a/packages/icons/src/Icons/ic-link.svg +++ b/packages/icons/src/Icons/ic-link.svg @@ -1,3 +1,3 @@ - + diff --git a/packages/icons/src/Icons/ic-quote.svg b/packages/icons/src/Icons/ic-quote.svg new file mode 100644 index 00000000000..a0fdaf03901 --- /dev/null +++ b/packages/icons/src/Icons/ic-quote.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/icons/src/Icons/ic-strikethrough.svg b/packages/icons/src/Icons/ic-strikethrough.svg index 88b63697d3f..f855098281b 100644 --- a/packages/icons/src/Icons/ic-strikethrough.svg +++ b/packages/icons/src/Icons/ic-strikethrough.svg @@ -1,3 +1,3 @@ - + diff --git a/packages/icons/src/Icons/ic-subscript.svg b/packages/icons/src/Icons/ic-subscript.svg new file mode 100644 index 00000000000..38da64abc50 --- /dev/null +++ b/packages/icons/src/Icons/ic-subscript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/icons/src/Icons/ic-superscript.svg b/packages/icons/src/Icons/ic-superscript.svg new file mode 100644 index 00000000000..928cb725862 --- /dev/null +++ b/packages/icons/src/Icons/ic-superscript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/icons/src/Icons/ic-underline.svg b/packages/icons/src/Icons/ic-underline.svg index 7041f7e805a..31511c6bc77 100644 --- a/packages/icons/src/Icons/ic-underline.svg +++ b/packages/icons/src/Icons/ic-underline.svg @@ -1,3 +1,3 @@ - + diff --git a/packages/icons/src/Icons/index.ts b/packages/icons/src/Icons/index.ts index 569b0366c89..94a0a3afbf9 100644 --- a/packages/icons/src/Icons/index.ts +++ b/packages/icons/src/Icons/index.ts @@ -46,8 +46,8 @@ import ColorFillIcon from './ic-color-fill.svg' import CopyIcon from './ic-copy.svg' import CreateAccountIllustration from './create-account-illustration.svg' import DashboardIcon from './ic-dashboard.svg' -import DiamondIcon from './diamond-with-horizontal-lines.svg' import DiamondFilledIcon from './ic-diamond-filled.svg' +import DiamondIcon from './diamond-with-horizontal-lines.svg' import DownloadIcon from './ic-download.svg' import DragIcon from './ic-drag.svg' import DrawIcon from './ic-draw.svg' @@ -167,12 +167,14 @@ import SNLogoFull from './ic-sn-logo-full.svg' import SNLogoIcon from './ic-standard-notes.svg' import SortDescendingIcon from './ic-sort-descending.svg' import SpreadsheetsIcon from './ic-spreadsheets.svg' -import StarFilledIcon from './ic-star-filled.svg' import StarCircleFilled from './ic-star-circle-filled.svg' +import StarFilledIcon from './ic-star-filled.svg' import StarIcon from './ic-star.svg' import StarVariantFilledIcon from './ic-star-variant-filled.svg' import StrikethroughIcon from './ic-strikethrough.svg' +import SubscriptIcon from './ic-subscript.svg' import SubtractIcon from './ic-subtract.svg' +import SuperscriptIcon from './ic-superscript.svg' import SyncIcon from './ic-sync.svg' import TasksIcon from './ic-tasks.svg' import TextCircleIcon from './ic-text-circle.svg' @@ -373,7 +375,9 @@ export { StarIcon, StarVariantFilledIcon, StrikethroughIcon, + SubscriptIcon, SubtractIcon, + SuperscriptIcon, SyncIcon, TasksIcon, TextCircleIcon, diff --git a/packages/icons/src/Lexical/arrow-clockwise.svg b/packages/icons/src/Lexical/arrow-clockwise.svg index 80b3ad066e0..ac305879fc7 100644 --- a/packages/icons/src/Lexical/arrow-clockwise.svg +++ b/packages/icons/src/Lexical/arrow-clockwise.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/arrow-counterclockwise.svg b/packages/icons/src/Lexical/arrow-counterclockwise.svg index 46d3581d8e1..f344f9ebd36 100644 --- a/packages/icons/src/Lexical/arrow-counterclockwise.svg +++ b/packages/icons/src/Lexical/arrow-counterclockwise.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/bg-color.svg b/packages/icons/src/Lexical/bg-color.svg index ae08b2c1d85..e0e7d5c5561 100644 --- a/packages/icons/src/Lexical/bg-color.svg +++ b/packages/icons/src/Lexical/bg-color.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/camera.svg b/packages/icons/src/Lexical/camera.svg deleted file mode 100755 index 968ebf4eb37..00000000000 --- a/packages/icons/src/Lexical/camera.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/card-checklist.svg b/packages/icons/src/Lexical/card-checklist.svg index f81734be43d..8ec217b85c8 100644 --- a/packages/icons/src/Lexical/card-checklist.svg +++ b/packages/icons/src/Lexical/card-checklist.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/caret-right-fill.svg b/packages/icons/src/Lexical/caret-right-fill.svg index 04c258e6d13..36ad8e60dc8 100644 --- a/packages/icons/src/Lexical/caret-right-fill.svg +++ b/packages/icons/src/Lexical/caret-right-fill.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/chat-left-text.svg b/packages/icons/src/Lexical/chat-left-text.svg deleted file mode 100644 index 7c7acc23971..00000000000 --- a/packages/icons/src/Lexical/chat-left-text.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/chat-right-dots.svg b/packages/icons/src/Lexical/chat-right-dots.svg deleted file mode 100644 index 110925a1223..00000000000 --- a/packages/icons/src/Lexical/chat-right-dots.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/chat-right-text.svg b/packages/icons/src/Lexical/chat-right-text.svg deleted file mode 100644 index 08daa52bc78..00000000000 --- a/packages/icons/src/Lexical/chat-right-text.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/chat-right.svg b/packages/icons/src/Lexical/chat-right.svg deleted file mode 100644 index d9c2b110e7c..00000000000 --- a/packages/icons/src/Lexical/chat-right.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/chat-square-quote.svg b/packages/icons/src/Lexical/chat-square-quote.svg index 5501848a576..6fa97d0b9d2 100755 --- a/packages/icons/src/Lexical/chat-square-quote.svg +++ b/packages/icons/src/Lexical/chat-square-quote.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/chevron-down.svg b/packages/icons/src/Lexical/chevron-down.svg index ef1a6ba3b7f..f57bf044cf4 100644 --- a/packages/icons/src/Lexical/chevron-down.svg +++ b/packages/icons/src/Lexical/chevron-down.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/clipboard.svg b/packages/icons/src/Lexical/clipboard.svg index f09e1a1c9bf..0dd8ffa5e81 100755 --- a/packages/icons/src/Lexical/clipboard.svg +++ b/packages/icons/src/Lexical/clipboard.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/code.svg b/packages/icons/src/Lexical/code.svg index c9070bf06eb..07052030b93 100755 --- a/packages/icons/src/Lexical/code.svg +++ b/packages/icons/src/Lexical/code.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/comments.svg b/packages/icons/src/Lexical/comments.svg index 6a23ac5463d..df02fe62328 100644 --- a/packages/icons/src/Lexical/comments.svg +++ b/packages/icons/src/Lexical/comments.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/diagram-2.svg b/packages/icons/src/Lexical/diagram-2.svg index 7b7b696d0e8..81013d76d9e 100644 --- a/packages/icons/src/Lexical/diagram-2.svg +++ b/packages/icons/src/Lexical/diagram-2.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/download.svg b/packages/icons/src/Lexical/download.svg index cd27d96c101..4526e932490 100755 --- a/packages/icons/src/Lexical/download.svg +++ b/packages/icons/src/Lexical/download.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/dropdown-more.svg b/packages/icons/src/Lexical/dropdown-more.svg index 399ea8de5ff..4114d35559c 100644 --- a/packages/icons/src/Lexical/dropdown-more.svg +++ b/packages/icons/src/Lexical/dropdown-more.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/figma.svg b/packages/icons/src/Lexical/figma.svg deleted file mode 100644 index fa319e12bea..00000000000 --- a/packages/icons/src/Lexical/figma.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/file-image.svg b/packages/icons/src/Lexical/file-image.svg index 73a9ff15f10..0940c182a5b 100644 --- a/packages/icons/src/Lexical/file-image.svg +++ b/packages/icons/src/Lexical/file-image.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/filetype-gif.svg b/packages/icons/src/Lexical/filetype-gif.svg index 12acb80f39e..022e2a88ebe 100644 --- a/packages/icons/src/Lexical/filetype-gif.svg +++ b/packages/icons/src/Lexical/filetype-gif.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/font-family.svg b/packages/icons/src/Lexical/font-family.svg index a13f5ad1ef9..4f3bfc68987 100644 --- a/packages/icons/src/Lexical/font-family.svg +++ b/packages/icons/src/Lexical/font-family.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/gear.svg b/packages/icons/src/Lexical/gear.svg index ee6efa04415..bca4fa0fa9c 100755 --- a/packages/icons/src/Lexical/gear.svg +++ b/packages/icons/src/Lexical/gear.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/horizontal-rule.svg b/packages/icons/src/Lexical/horizontal-rule.svg index cb84970fb1a..e02206a0f01 100644 --- a/packages/icons/src/Lexical/horizontal-rule.svg +++ b/packages/icons/src/Lexical/horizontal-rule.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/indent.svg b/packages/icons/src/Lexical/indent.svg index c9c5df7bf65..215abe52c4b 100644 --- a/packages/icons/src/Lexical/indent.svg +++ b/packages/icons/src/Lexical/indent.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/index.ts b/packages/icons/src/Lexical/index.ts index f9c38fbccf6..fa97e538cec 100644 --- a/packages/icons/src/Lexical/index.ts +++ b/packages/icons/src/Lexical/index.ts @@ -1,11 +1,19 @@ -import LexicalArrowClockwise from './arrow-clockwise.svg' -import LexicalArrowCounterClockwise from './arrow-counterclockwise.svg' -import LexicalCamera from './camera.svg' -import TypeItalic from './type-italic.svg' -import TypeStrikethrough from './type-strikethrough.svg' -import TypeSubscript from './type-subscript.svg' -import TypeSuperscript from './type-superscript.svg' -import TypeUnderline from './type-underline.svg' +import LexicalCaretRightFill from './caret-right-fill.svg' +import LexicalCheck from './square-check.svg' +import LexicalCode from './code.svg' +import LexicalHorizontalRule from './horizontal-rule.svg' +import LexicalLink from './link.svg' +import LexicalListOL from './list-ol.svg' +import LexicalListUL from './list-ul.svg' +import LexicalQuote from './chat-square-quote.svg' +import LexicalTable from './table.svg' +import LexicalTextCenter from './text-center.svg' +import LexicalTextJustify from './justify.svg' +import LexicalTextLeft from './text-left.svg' +import LexicalTextParagraph from './text-paragraph.svg' +import LexicalTextRight from './text-right.svg' +import LexicalTweet from './tweet.svg' +import LexicalYoutube from './youtube.svg' import TypeBold from './type-bold.svg' import TypeH1 from './type-h1.svg' import TypeH2 from './type-h2.svg' @@ -13,18 +21,30 @@ import TypeH3 from './type-h3.svg' import TypeH4 from './type-h4.svg' import TypeH5 from './type-h5.svg' import TypeH6 from './type-h6.svg' -import LexicalCode from './code.svg' -import LexicalLink from './link.svg' +import TypeItalic from './type-italic.svg' +import TypeStrikethrough from './type-strikethrough.svg' +import TypeSubscript from './type-subscript.svg' +import TypeSuperscript from './type-superscript.svg' +import TypeUnderline from './type-underline.svg' +import LexicalPencilFill from './pencil-fill.svg' export { - LexicalArrowClockwise, - LexicalArrowCounterClockwise, - LexicalCamera, - TypeItalic, - TypeStrikethrough, - TypeSubscript, - TypeSuperscript, - TypeUnderline, + LexicalCaretRightFill, + LexicalCheck, + LexicalCode, + LexicalHorizontalRule, + LexicalLink, + LexicalListOL, + LexicalListUL, + LexicalQuote, + LexicalTable, + LexicalTextCenter, + LexicalTextJustify, + LexicalTextLeft, + LexicalTextParagraph, + LexicalTextRight, + LexicalTweet, + LexicalYoutube, TypeBold, TypeH1, TypeH2, @@ -32,6 +52,10 @@ export { TypeH4, TypeH5, TypeH6, - LexicalCode, - LexicalLink, + TypeItalic, + TypeStrikethrough, + TypeSubscript, + TypeSuperscript, + TypeUnderline, + LexicalPencilFill, } diff --git a/packages/icons/src/Lexical/journal-code.svg b/packages/icons/src/Lexical/journal-code.svg index 9db6666a7cc..6112088b196 100755 --- a/packages/icons/src/Lexical/journal-code.svg +++ b/packages/icons/src/Lexical/journal-code.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/journal-text.svg b/packages/icons/src/Lexical/journal-text.svg index 9defed2c3eb..d436773b73f 100755 --- a/packages/icons/src/Lexical/journal-text.svg +++ b/packages/icons/src/Lexical/journal-text.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/justify.svg b/packages/icons/src/Lexical/justify.svg index 6c5f8d0f7e6..0a8da6cff75 100644 --- a/packages/icons/src/Lexical/justify.svg +++ b/packages/icons/src/Lexical/justify.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/link.svg b/packages/icons/src/Lexical/link.svg index bc38ff5d4ba..1b9c6cec57c 100755 --- a/packages/icons/src/Lexical/link.svg +++ b/packages/icons/src/Lexical/link.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/list-ol.svg b/packages/icons/src/Lexical/list-ol.svg index ad288e8ea48..525192c8d32 100755 --- a/packages/icons/src/Lexical/list-ol.svg +++ b/packages/icons/src/Lexical/list-ol.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/list-ul.svg b/packages/icons/src/Lexical/list-ul.svg index 6d7aae75d79..753c45f5d69 100755 --- a/packages/icons/src/Lexical/list-ul.svg +++ b/packages/icons/src/Lexical/list-ul.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/lock-fill.svg b/packages/icons/src/Lexical/lock-fill.svg index 466ca138f93..e9682d1f581 100644 --- a/packages/icons/src/Lexical/lock-fill.svg +++ b/packages/icons/src/Lexical/lock-fill.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/lock.svg b/packages/icons/src/Lexical/lock.svg index 3e19e71b519..2af10a40f45 100644 --- a/packages/icons/src/Lexical/lock.svg +++ b/packages/icons/src/Lexical/lock.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/markdown.svg b/packages/icons/src/Lexical/markdown.svg index 310bff6d550..5b3a54057a4 100644 --- a/packages/icons/src/Lexical/markdown.svg +++ b/packages/icons/src/Lexical/markdown.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/mic.svg b/packages/icons/src/Lexical/mic.svg index afdb58da9b2..58367fadd96 100644 --- a/packages/icons/src/Lexical/mic.svg +++ b/packages/icons/src/Lexical/mic.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/outdent.svg b/packages/icons/src/Lexical/outdent.svg index a98e0e1921a..812abfce1cd 100644 --- a/packages/icons/src/Lexical/outdent.svg +++ b/packages/icons/src/Lexical/outdent.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/paint-bucket.svg b/packages/icons/src/Lexical/paint-bucket.svg deleted file mode 100644 index baa02d3b31d..00000000000 --- a/packages/icons/src/Lexical/paint-bucket.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/palette.svg b/packages/icons/src/Lexical/palette.svg index 338222ec61f..db74990a0d7 100644 --- a/packages/icons/src/Lexical/palette.svg +++ b/packages/icons/src/Lexical/palette.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/pencil-fill.svg b/packages/icons/src/Lexical/pencil-fill.svg index eb01fb2a411..715eecd7a38 100755 --- a/packages/icons/src/Lexical/pencil-fill.svg +++ b/packages/icons/src/Lexical/pencil-fill.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/plug-fill.svg b/packages/icons/src/Lexical/plug-fill.svg index 3863ef84009..9c75a08ebde 100644 --- a/packages/icons/src/Lexical/plug-fill.svg +++ b/packages/icons/src/Lexical/plug-fill.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/plug.svg b/packages/icons/src/Lexical/plug.svg index de8d4c80b09..922c1ab9d59 100644 --- a/packages/icons/src/Lexical/plug.svg +++ b/packages/icons/src/Lexical/plug.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/plus-slash-minus.svg b/packages/icons/src/Lexical/plus-slash-minus.svg index 40ff781e5ac..2005a5b5fe3 100644 --- a/packages/icons/src/Lexical/plus-slash-minus.svg +++ b/packages/icons/src/Lexical/plus-slash-minus.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/plus.svg b/packages/icons/src/Lexical/plus.svg index 1a26928a164..776a54ae202 100644 --- a/packages/icons/src/Lexical/plus.svg +++ b/packages/icons/src/Lexical/plus.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/send.svg b/packages/icons/src/Lexical/send.svg index 04e9f298365..9b1c60ff787 100644 --- a/packages/icons/src/Lexical/send.svg +++ b/packages/icons/src/Lexical/send.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/square-check.svg b/packages/icons/src/Lexical/square-check.svg index 352ba61582b..8964911264b 100644 --- a/packages/icons/src/Lexical/square-check.svg +++ b/packages/icons/src/Lexical/square-check.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/sticky.svg b/packages/icons/src/Lexical/sticky.svg index 2b14115cdbc..f694169a4d0 100644 --- a/packages/icons/src/Lexical/sticky.svg +++ b/packages/icons/src/Lexical/sticky.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/table.svg b/packages/icons/src/Lexical/table.svg index e514555c7fd..e875de5bb05 100644 --- a/packages/icons/src/Lexical/table.svg +++ b/packages/icons/src/Lexical/table.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/text-center.svg b/packages/icons/src/Lexical/text-center.svg index 97ced49e630..7033ab14f24 100644 --- a/packages/icons/src/Lexical/text-center.svg +++ b/packages/icons/src/Lexical/text-center.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/text-left.svg b/packages/icons/src/Lexical/text-left.svg index 5fe4cc44529..ade4293da4a 100644 --- a/packages/icons/src/Lexical/text-left.svg +++ b/packages/icons/src/Lexical/text-left.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/text-paragraph.svg b/packages/icons/src/Lexical/text-paragraph.svg index 1b943ab44ee..93974bfdb97 100755 --- a/packages/icons/src/Lexical/text-paragraph.svg +++ b/packages/icons/src/Lexical/text-paragraph.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/text-right.svg b/packages/icons/src/Lexical/text-right.svg index de984517f97..cf0fe97447e 100644 --- a/packages/icons/src/Lexical/text-right.svg +++ b/packages/icons/src/Lexical/text-right.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/trash.svg b/packages/icons/src/Lexical/trash.svg index 75680bb7adc..dcfbb4edc3f 100644 --- a/packages/icons/src/Lexical/trash.svg +++ b/packages/icons/src/Lexical/trash.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/trash3.svg b/packages/icons/src/Lexical/trash3.svg index 5c38b387e6d..48c186058cc 100644 --- a/packages/icons/src/Lexical/trash3.svg +++ b/packages/icons/src/Lexical/trash3.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/tweet.svg b/packages/icons/src/Lexical/tweet.svg index 3304020e67a..2d8dc7d43ed 100644 --- a/packages/icons/src/Lexical/tweet.svg +++ b/packages/icons/src/Lexical/tweet.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-bold.svg b/packages/icons/src/Lexical/type-bold.svg index ec0dc2ec0d4..49af67ca5f3 100755 --- a/packages/icons/src/Lexical/type-bold.svg +++ b/packages/icons/src/Lexical/type-bold.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-h1.svg b/packages/icons/src/Lexical/type-h1.svg index 379da930d8c..244e79848f9 100755 --- a/packages/icons/src/Lexical/type-h1.svg +++ b/packages/icons/src/Lexical/type-h1.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-h2.svg b/packages/icons/src/Lexical/type-h2.svg index e724a0be393..0347e5e8894 100755 --- a/packages/icons/src/Lexical/type-h2.svg +++ b/packages/icons/src/Lexical/type-h2.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-h3.svg b/packages/icons/src/Lexical/type-h3.svg index 02d4a06c5a0..f37188ea6b3 100755 --- a/packages/icons/src/Lexical/type-h3.svg +++ b/packages/icons/src/Lexical/type-h3.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-h4.svg b/packages/icons/src/Lexical/type-h4.svg index eb950c9ed4e..a947fd83645 100755 --- a/packages/icons/src/Lexical/type-h4.svg +++ b/packages/icons/src/Lexical/type-h4.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-h5.svg b/packages/icons/src/Lexical/type-h5.svg index 5d565639cf3..f0df74f545d 100755 --- a/packages/icons/src/Lexical/type-h5.svg +++ b/packages/icons/src/Lexical/type-h5.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-h6.svg b/packages/icons/src/Lexical/type-h6.svg index 8274acacd54..54708c5fa70 100755 --- a/packages/icons/src/Lexical/type-h6.svg +++ b/packages/icons/src/Lexical/type-h6.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-italic.svg b/packages/icons/src/Lexical/type-italic.svg index ac139f3cc96..f117e1c5115 100755 --- a/packages/icons/src/Lexical/type-italic.svg +++ b/packages/icons/src/Lexical/type-italic.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-strikethrough.svg b/packages/icons/src/Lexical/type-strikethrough.svg index a0d7e17e2d9..f565bfc0a74 100755 --- a/packages/icons/src/Lexical/type-strikethrough.svg +++ b/packages/icons/src/Lexical/type-strikethrough.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-subscript.svg b/packages/icons/src/Lexical/type-subscript.svg index f6ebe4b6f68..86564d0ec3a 100644 --- a/packages/icons/src/Lexical/type-subscript.svg +++ b/packages/icons/src/Lexical/type-subscript.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-superscript.svg b/packages/icons/src/Lexical/type-superscript.svg index bed98f9d801..db3944204b2 100644 --- a/packages/icons/src/Lexical/type-superscript.svg +++ b/packages/icons/src/Lexical/type-superscript.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/type-underline.svg b/packages/icons/src/Lexical/type-underline.svg index d5c7046ee32..4ad62a6e87c 100755 --- a/packages/icons/src/Lexical/type-underline.svg +++ b/packages/icons/src/Lexical/type-underline.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/upload.svg b/packages/icons/src/Lexical/upload.svg index 81328ddbca3..3bbf8b3fea1 100644 --- a/packages/icons/src/Lexical/upload.svg +++ b/packages/icons/src/Lexical/upload.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/icons/src/Lexical/user.svg b/packages/icons/src/Lexical/user.svg deleted file mode 100644 index 823b72d1e60..00000000000 --- a/packages/icons/src/Lexical/user.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/icons/src/Lexical/youtube.svg b/packages/icons/src/Lexical/youtube.svg index e7fb9faabc7..efaf08dfbac 100644 --- a/packages/icons/src/Lexical/youtube.svg +++ b/packages/icons/src/Lexical/youtube.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerMenuItem.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerMenuItem.tsx index 3205226dfd5..7e7dfe04f74 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerMenuItem.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerMenuItem.tsx @@ -1,3 +1,4 @@ +import Icon from '@/Components/Icon/Icon' import { PopoverItemClassNames, PopoverItemSelectedClassNames } from '../ClassNames' import { BlockPickerOption } from './BlockPickerOption' @@ -18,7 +19,9 @@ export function BlockPickerMenuItem({
  • - -
    {option.title}
    + +
    {option.title}
  • ) } diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerOption.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerOption.tsx index 469ea4e6859..b43a73cc629 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerOption.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/BlockPickerOption.tsx @@ -1,21 +1,18 @@ +import { LexicalIconName } from '@/Components/Icon/LexicalIcons' import { TypeaheadOption } from '@lexical/react/LexicalTypeaheadMenuPlugin' +import { IconType } from '@standardnotes/snjs' export class BlockPickerOption extends TypeaheadOption { - // What shows up in the editor title: string - // Icon for display - iconName?: string - // For extra searching. + iconName: IconType | LexicalIconName keywords: Array - // TBD keyboardShortcut?: string - // What happens when you select this option? onSelect: (queryString: string) => void constructor( title: string, options: { - iconName?: string + iconName: IconType | LexicalIconName keywords?: Array keyboardShortcut?: string onSelect: (queryString: string) => void diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Alignment.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Alignment.tsx index 0add44748e9..172b2ed29d7 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Alignment.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Alignment.tsx @@ -1,11 +1,12 @@ import { BlockPickerOption } from '../BlockPickerOption' import { FORMAT_ELEMENT_COMMAND, LexicalEditor, ElementFormatType } from 'lexical' +import { LexicalIconName } from '@/Components/Icon/LexicalIcons' export function GetAlignmentBlocks(editor: LexicalEditor) { return ['left', 'center', 'right', 'justify'].map( (alignment) => new BlockPickerOption(`Align ${alignment}`, { - iconName: `${alignment}-align`, + iconName: `align-${alignment}` as LexicalIconName, keywords: ['align', 'justify', alignment], onSelect: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, alignment as ElementFormatType), }), diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/BulletedList.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/BulletedList.tsx index 6d5316f5575..90f2a5df719 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/BulletedList.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/BulletedList.tsx @@ -4,7 +4,7 @@ import { INSERT_UNORDERED_LIST_COMMAND } from '@lexical/list' export function GetBulletedListBlock(editor: LexicalEditor) { return new BlockPickerOption('Bulleted List', { - iconName: 'bullet', + iconName: 'list-ul', keywords: ['bulleted list', 'unordered list', 'ul'], onSelect: () => editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined), }) diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Code.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Code.tsx index 39105d29c02..3d3dd581c84 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Code.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Code.tsx @@ -5,7 +5,7 @@ import { $createCodeNode } from '@lexical/code' export function GetCodeBlock(editor: LexicalEditor) { return new BlockPickerOption('Code', { - iconName: 'code', + iconName: 'lexical-code', keywords: ['javascript', 'python', 'js', 'codeblock'], onSelect: () => editor.update(() => { diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Collapsible.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Collapsible.tsx index 0df5337c7b5..21a02959f35 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Collapsible.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Collapsible.tsx @@ -4,7 +4,7 @@ import { INSERT_COLLAPSIBLE_COMMAND } from '@standardnotes/blocks-editor/src/Lex export function GetCollapsibleBlock(editor: LexicalEditor) { return new BlockPickerOption('Collapsible', { - iconName: 'caret-right', + iconName: 'caret-right-fill', keywords: ['collapse', 'collapsible', 'toggle'], onSelect: () => editor.dispatchCommand(INSERT_COLLAPSIBLE_COMMAND, undefined), }) diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Embeds.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Embeds.tsx index b4351769bc1..c565d093c6d 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Embeds.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Embeds.tsx @@ -2,12 +2,13 @@ import { BlockPickerOption } from '../BlockPickerOption' import { LexicalEditor } from 'lexical' import { INSERT_EMBED_COMMAND } from '@lexical/react/LexicalAutoEmbedPlugin' import { EmbedConfigs } from '@standardnotes/blocks-editor/src/Lexical/Plugins/AutoEmbedPlugin' +import { LexicalIconName } from '@/Components/Icon/LexicalIcons' export function GetEmbedsBlocks(editor: LexicalEditor) { return EmbedConfigs.map( (embedConfig) => new BlockPickerOption(`Embed ${embedConfig.contentName}`, { - iconName: embedConfig.iconName, + iconName: embedConfig.iconName as LexicalIconName, keywords: [...embedConfig.keywords, 'embed'], onSelect: () => editor.dispatchCommand(INSERT_EMBED_COMMAND, embedConfig.type), }), diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Headings.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Headings.tsx index 509136870b4..9d212b0b394 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Headings.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/Headings.tsx @@ -2,12 +2,13 @@ import { BlockPickerOption } from '../BlockPickerOption' import { $wrapNodes } from '@lexical/selection' import { $getSelection, $isRangeSelection, LexicalEditor } from 'lexical' import { $createHeadingNode, HeadingTagType } from '@lexical/rich-text' +import { LexicalIconName } from '@/Components/Icon/LexicalIcons' export function GetHeadingsBlocks(editor: LexicalEditor) { return Array.from({ length: 3 }, (_, i) => i + 1).map( (n) => new BlockPickerOption(`Heading ${n}`, { - iconName: `icon h${n}`, + iconName: `h${n}` as LexicalIconName, keywords: ['heading', 'header', `h${n}`], onSelect: () => editor.update(() => { diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/NumberedList.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/NumberedList.tsx index 4cd48b78e2c..1e70827be96 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/NumberedList.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/BlockPickerPlugin/Blocks/NumberedList.tsx @@ -4,7 +4,7 @@ import { INSERT_ORDERED_LIST_COMMAND } from '@lexical/list' export function GetNumberedListBlock(editor: LexicalEditor) { return new BlockPickerOption('Numbered List', { - iconName: 'number', + iconName: 'list-ol', keywords: ['numbered list', 'ordered list', 'ol'], onSelect: () => editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined), }) diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/ClassNames.ts b/packages/web/src/javascripts/Components/BlockEditor/Plugins/ClassNames.ts index 27aa6915cf7..94b762cc4e7 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/ClassNames.ts +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/ClassNames.ts @@ -6,7 +6,7 @@ export const PopoverClassNames = classNames( ) export const PopoverItemClassNames = classNames( - 'flex w-full items-center text-base gap-4 overflow-hidden py-2 px-3 hover:bg-contrast hover:text-foreground', + 'flex w-full items-center text-base overflow-hidden py-2 px-3 hover:bg-contrast hover:text-foreground', 'focus:bg-info-backdrop cursor-pointer m-0 focus:bg-contrast focus:text-foreground', ) diff --git a/packages/web/src/javascripts/Components/BlockEditor/Plugins/ItemSelectionPlugin/ItemSelectionItemComponent.tsx b/packages/web/src/javascripts/Components/BlockEditor/Plugins/ItemSelectionPlugin/ItemSelectionItemComponent.tsx index 7222fcc9805..940b85b194c 100644 --- a/packages/web/src/javascripts/Components/BlockEditor/Plugins/ItemSelectionPlugin/ItemSelectionItemComponent.tsx +++ b/packages/web/src/javascripts/Components/BlockEditor/Plugins/ItemSelectionPlugin/ItemSelectionItemComponent.tsx @@ -16,7 +16,7 @@ export function ItemSelectionItemComponent({ index, isSelected, onClick, onMouse
  • { - return IconNameToSvgMapping[type as keyof typeof IconNameToSvgMapping] +const getIconComponent = (type: VectorIconNameOrEmoji | LexicalIconName) => { + return ( + IconNameToSvgMapping[type as keyof typeof IconNameToSvgMapping] || + LexicalIconNameToSvgMapping[type as LexicalIconName] + ) } export const isIconEmoji = (type: VectorIconNameOrEmoji): boolean => { diff --git a/packages/web/src/javascripts/Components/Icon/IconNameToSvgMapping.tsx b/packages/web/src/javascripts/Components/Icon/IconNameToSvgMapping.tsx index 11c04af66d1..98b666280e1 100644 --- a/packages/web/src/javascripts/Components/Icon/IconNameToSvgMapping.tsx +++ b/packages/web/src/javascripts/Components/Icon/IconNameToSvgMapping.tsx @@ -50,6 +50,11 @@ export const IconNameToSvgMapping = { 'user-add': icons.UserAddIcon, 'user-switch': icons.UserSwitch, 'fullscreen-exit': icons.FullscreenExitIcon, + 'format-align-left': icons.FormatAlignLeftIcon, + 'format-align-center': icons.FormatAlignCenterIcon, + 'format-align-right': icons.FormatAlignRightIcon, + 'format-align-justify': icons.FormatAlignJustifyIcon, + drag: icons.DragIcon, accessibility: icons.AccessibilityIcon, add: icons.AddIcon, archive: icons.ArchiveIcon, diff --git a/packages/web/src/javascripts/Components/Icon/LexicalIcons.tsx b/packages/web/src/javascripts/Components/Icon/LexicalIcons.tsx new file mode 100644 index 00000000000..d2b915006d0 --- /dev/null +++ b/packages/web/src/javascripts/Components/Icon/LexicalIcons.tsx @@ -0,0 +1,27 @@ +import * as icons from '@standardnotes/icons' + +export const LexicalIconNameToSvgMapping = { + 'lexical-code': icons.LexicalCode, + 'align-center': icons.LexicalTextCenter, + 'align-justify': icons.LexicalTextJustify, + 'align-left': icons.LexicalTextLeft, + 'align-right': icons.LexicalTextRight, + 'caret-right-fill': icons.LexicalCaretRightFill, + 'horizontal-rule': icons.LexicalHorizontalRule, + 'list-ol': icons.LexicalListOL, + 'list-ul': icons.LexicalListUL, + check: icons.LexicalCheck, + quote: icons.LexicalQuote, + table: icons.LexicalTable, + tweet: icons.LexicalTweet, + youtube: icons.LexicalYoutube, + paragraph: icons.LexicalTextParagraph, + h1: icons.TypeH1, + h2: icons.TypeH2, + h3: icons.TypeH3, + h4: icons.TypeH4, + h5: icons.TypeH5, + h6: icons.TypeH6, +} + +export type LexicalIconName = keyof typeof LexicalIconNameToSvgMapping