From 58fba630d9c543da833ca465bd9fbf44e403468c Mon Sep 17 00:00:00 2001 From: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> Date: Wed, 20 Dec 2023 12:45:05 -0500 Subject: [PATCH] fix(editor): add editor icons (#178) --- .vscode/settings.json | 4 ++-- .../generate-icon-components.spec.ts.snap | 14 ++++++++++++++ src/tests/__snapshots__/BlockquoteIcon.html | 1 + src/tests/__snapshots__/BoldIcon.html | 1 + src/tests/__snapshots__/CodeIcon.html | 1 + src/tests/__snapshots__/CodeblockIcon.html | 1 + src/tests/__snapshots__/ItalicIcon.html | 1 + src/tests/__snapshots__/LinkIcon.html | 1 + src/tests/__snapshots__/ListOrderedIcon.html | 1 + src/tests/__snapshots__/ListUnorderedIcon.html | 1 + src/tests/__snapshots__/MarkIcon.html | 1 + src/tests/__snapshots__/StrikethroughIcon.html | 1 + src/tests/__snapshots__/SubscriptIcon.html | 1 + src/tests/__snapshots__/SuperscriptIcon.html | 1 + src/tests/__snapshots__/TasklistIcon.html | 1 + src/tests/__snapshots__/UnderlineIcon.html | 1 + svg/solid/blockquote.svg | 3 +++ svg/solid/bold.svg | 3 +++ svg/solid/code.svg | 3 +++ svg/solid/codeblock.svg | 3 +++ svg/solid/italic.svg | 3 +++ svg/solid/link.svg | 3 +++ svg/solid/list-ordered.svg | 3 +++ svg/solid/list-unordered.svg | 3 +++ svg/solid/mark.svg | 3 +++ svg/solid/strikethrough.svg | 3 +++ svg/solid/subscript.svg | 3 +++ svg/solid/superscript.svg | 3 +++ svg/solid/tasklist.svg | 3 +++ svg/solid/underline.svg | 3 +++ 30 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 src/tests/__snapshots__/BlockquoteIcon.html create mode 100644 src/tests/__snapshots__/BoldIcon.html create mode 100644 src/tests/__snapshots__/CodeIcon.html create mode 100644 src/tests/__snapshots__/CodeblockIcon.html create mode 100644 src/tests/__snapshots__/ItalicIcon.html create mode 100644 src/tests/__snapshots__/LinkIcon.html create mode 100644 src/tests/__snapshots__/ListOrderedIcon.html create mode 100644 src/tests/__snapshots__/ListUnorderedIcon.html create mode 100644 src/tests/__snapshots__/MarkIcon.html create mode 100644 src/tests/__snapshots__/StrikethroughIcon.html create mode 100644 src/tests/__snapshots__/SubscriptIcon.html create mode 100644 src/tests/__snapshots__/SuperscriptIcon.html create mode 100644 src/tests/__snapshots__/TasklistIcon.html create mode 100644 src/tests/__snapshots__/UnderlineIcon.html create mode 100644 svg/solid/blockquote.svg create mode 100644 svg/solid/bold.svg create mode 100644 svg/solid/code.svg create mode 100644 svg/solid/codeblock.svg create mode 100644 svg/solid/italic.svg create mode 100644 svg/solid/link.svg create mode 100644 svg/solid/list-ordered.svg create mode 100644 svg/solid/list-unordered.svg create mode 100644 svg/solid/mark.svg create mode 100644 svg/solid/strikethrough.svg create mode 100644 svg/solid/subscript.svg create mode 100644 svg/solid/superscript.svg create mode 100644 svg/solid/tasklist.svg create mode 100644 svg/solid/underline.svg diff --git a/.vscode/settings.json b/.vscode/settings.json index 4317b189..2f5a22cf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.fixAll.stylelint": true + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit" }, "editor.formatOnPaste": true, "editor.trimAutoWhitespace": true, diff --git a/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap b/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap index d322e872..3db7178e 100644 --- a/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap +++ b/scripts/utilities/__snapshots__/generate-icon-components.spec.ts.snap @@ -35,6 +35,8 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "BackIcon", "BarChartHorizontalIcon", "BarChartIcon", + "BlockquoteIcon", + "BoldIcon", "BookIcon", "BotIcon", "BrainIcon", @@ -55,6 +57,8 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "CloseIcon", "CloudUploadIcon", "CloudIcon", + "CodeIcon", + "CodeblockIcon", "CogModeIcon", "CogIcon", "CollapsePanelIcon", @@ -94,9 +98,14 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "IndeterminateSmallIcon", "InfoIcon", "InsightsIcon", + "ItalicIcon", "KongIcon", + "LinkIcon", + "ListOrderedIcon", + "ListUnorderedIcon", "ListIcon", "LockIcon", + "MarkIcon", "MenuIcon", "MeshIcon", "MoreHorizontalIcon", @@ -123,13 +132,18 @@ exports[`generate > \`/src/components/index.ts\` file > has exports that match t "ServicesIcon", "SharedIcon", "StackIcon", + "StrikethroughIcon", + "SubscriptIcon", + "SuperscriptIcon", "SupportIcon", "TableIcon", + "TasklistIcon", "TeamIcon", "TeammateIcon", "TrashIcon", "TrendDownIcon", "TrendUpIcon", + "UnderlineIcon", "UnfoldMoreIcon", "VisibilityIcon", "VitalsIcon", diff --git a/src/tests/__snapshots__/BlockquoteIcon.html b/src/tests/__snapshots__/BlockquoteIcon.html new file mode 100644 index 00000000..c117d910 --- /dev/null +++ b/src/tests/__snapshots__/BlockquoteIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/BoldIcon.html b/src/tests/__snapshots__/BoldIcon.html new file mode 100644 index 00000000..cae6a7ee --- /dev/null +++ b/src/tests/__snapshots__/BoldIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/CodeIcon.html b/src/tests/__snapshots__/CodeIcon.html new file mode 100644 index 00000000..1436f03d --- /dev/null +++ b/src/tests/__snapshots__/CodeIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/CodeblockIcon.html b/src/tests/__snapshots__/CodeblockIcon.html new file mode 100644 index 00000000..21cace2e --- /dev/null +++ b/src/tests/__snapshots__/CodeblockIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/ItalicIcon.html b/src/tests/__snapshots__/ItalicIcon.html new file mode 100644 index 00000000..7816bf3e --- /dev/null +++ b/src/tests/__snapshots__/ItalicIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/LinkIcon.html b/src/tests/__snapshots__/LinkIcon.html new file mode 100644 index 00000000..0d9f929b --- /dev/null +++ b/src/tests/__snapshots__/LinkIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/ListOrderedIcon.html b/src/tests/__snapshots__/ListOrderedIcon.html new file mode 100644 index 00000000..10bf0099 --- /dev/null +++ b/src/tests/__snapshots__/ListOrderedIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/ListUnorderedIcon.html b/src/tests/__snapshots__/ListUnorderedIcon.html new file mode 100644 index 00000000..9ee74dd3 --- /dev/null +++ b/src/tests/__snapshots__/ListUnorderedIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/MarkIcon.html b/src/tests/__snapshots__/MarkIcon.html new file mode 100644 index 00000000..3d3a4613 --- /dev/null +++ b/src/tests/__snapshots__/MarkIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/StrikethroughIcon.html b/src/tests/__snapshots__/StrikethroughIcon.html new file mode 100644 index 00000000..d4ec68b7 --- /dev/null +++ b/src/tests/__snapshots__/StrikethroughIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/SubscriptIcon.html b/src/tests/__snapshots__/SubscriptIcon.html new file mode 100644 index 00000000..f7f8d73e --- /dev/null +++ b/src/tests/__snapshots__/SubscriptIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/SuperscriptIcon.html b/src/tests/__snapshots__/SuperscriptIcon.html new file mode 100644 index 00000000..bd418ae3 --- /dev/null +++ b/src/tests/__snapshots__/SuperscriptIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/TasklistIcon.html b/src/tests/__snapshots__/TasklistIcon.html new file mode 100644 index 00000000..841f0399 --- /dev/null +++ b/src/tests/__snapshots__/TasklistIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/src/tests/__snapshots__/UnderlineIcon.html b/src/tests/__snapshots__/UnderlineIcon.html new file mode 100644 index 00000000..6144fea3 --- /dev/null +++ b/src/tests/__snapshots__/UnderlineIcon.html @@ -0,0 +1 @@ +My custom title \ No newline at end of file diff --git a/svg/solid/blockquote.svg b/svg/solid/blockquote.svg new file mode 100644 index 00000000..1b905e34 --- /dev/null +++ b/svg/solid/blockquote.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/bold.svg b/svg/solid/bold.svg new file mode 100644 index 00000000..6b9c415a --- /dev/null +++ b/svg/solid/bold.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/code.svg b/svg/solid/code.svg new file mode 100644 index 00000000..ad5cfba9 --- /dev/null +++ b/svg/solid/code.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/codeblock.svg b/svg/solid/codeblock.svg new file mode 100644 index 00000000..d5a35b66 --- /dev/null +++ b/svg/solid/codeblock.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/italic.svg b/svg/solid/italic.svg new file mode 100644 index 00000000..cc0f6e8d --- /dev/null +++ b/svg/solid/italic.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/link.svg b/svg/solid/link.svg new file mode 100644 index 00000000..6c1de9f2 --- /dev/null +++ b/svg/solid/link.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/list-ordered.svg b/svg/solid/list-ordered.svg new file mode 100644 index 00000000..50084481 --- /dev/null +++ b/svg/solid/list-ordered.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/list-unordered.svg b/svg/solid/list-unordered.svg new file mode 100644 index 00000000..362710a3 --- /dev/null +++ b/svg/solid/list-unordered.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/mark.svg b/svg/solid/mark.svg new file mode 100644 index 00000000..756113ea --- /dev/null +++ b/svg/solid/mark.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/strikethrough.svg b/svg/solid/strikethrough.svg new file mode 100644 index 00000000..00ed3660 --- /dev/null +++ b/svg/solid/strikethrough.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/subscript.svg b/svg/solid/subscript.svg new file mode 100644 index 00000000..eade1e78 --- /dev/null +++ b/svg/solid/subscript.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/superscript.svg b/svg/solid/superscript.svg new file mode 100644 index 00000000..6eb61a80 --- /dev/null +++ b/svg/solid/superscript.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/tasklist.svg b/svg/solid/tasklist.svg new file mode 100644 index 00000000..38573f84 --- /dev/null +++ b/svg/solid/tasklist.svg @@ -0,0 +1,3 @@ + + + diff --git a/svg/solid/underline.svg b/svg/solid/underline.svg new file mode 100644 index 00000000..b6404bab --- /dev/null +++ b/svg/solid/underline.svg @@ -0,0 +1,3 @@ + + +