summaryrefslogtreecommitdiff
path: root/web/src/components/icons
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-11-23 19:27:57 +0200
committerJosh Kingsley <josh@joshkingsley.me>2025-11-23 19:27:57 +0200
commit602145c956bb594ca0d0e10601cc4ad1a71cf70d (patch)
treed9f9980bd2054cff5819d01379f5c1c55f8eb66d /web/src/components/icons
parentc2a6efb1b761014a90d90373cad47a14054af40b (diff)
feat: integrate web and doc packages
Diffstat (limited to 'web/src/components/icons')
-rw-r--r--web/src/components/icons/index.ts19
-rw-r--r--web/src/components/icons/svgs/minus16.svg3
-rw-r--r--web/src/components/icons/svgs/plus16.svg3
3 files changed, 0 insertions, 25 deletions
diff --git a/web/src/components/icons/index.ts b/web/src/components/icons/index.ts
deleted file mode 100644
index 5731026..0000000
--- a/web/src/components/icons/index.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import plus16 from "./svgs/plus16.svg?raw";
-import minus16 from "./svgs/minus16.svg?raw";
-
-function makeIconFactory(source: string) {
- return (attrs?: object): SVGElement => {
- const parser = new DOMParser();
- const doc = parser.parseFromString(source, "image/svg+xml");
- const svg = doc.documentElement as unknown as SVGElement;
-
- if (attrs) {
- Object.entries(attrs).forEach(([k, v]) => svg.setAttribute(k, v));
- }
-
- return svg;
- };
-}
-
-export const plus16Icon = makeIconFactory(plus16);
-export const minus16Icon = makeIconFactory(minus16);
diff --git a/web/src/components/icons/svgs/minus16.svg b/web/src/components/icons/svgs/minus16.svg
deleted file mode 100644
index d77dcfc..0000000
--- a/web/src/components/icons/svgs/minus16.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="size-4">
- <path d="M3.75 7.25a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z" />
-</svg>
diff --git a/web/src/components/icons/svgs/plus16.svg b/web/src/components/icons/svgs/plus16.svg
deleted file mode 100644
index 1d7b023..0000000
--- a/web/src/components/icons/svgs/plus16.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="size-4">
- <path d="M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z" />
-</svg>