sdocs 0.0.16 → 0.0.17
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/ui/Icon/Icon.svelte +32 -6
- package/package.json +1 -1
package/dist/ui/Icon/Icon.svelte
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import bookmarkSvg from './icons/bookmark.svg?raw';
|
|
3
|
+
import chevronDownSvg from './icons/chevron-down.svg?raw';
|
|
4
|
+
import chevronLeftSvg from './icons/chevron-left.svg?raw';
|
|
5
|
+
import chevronRightSvg from './icons/chevron-right.svg?raw';
|
|
6
|
+
import chevronUpSvg from './icons/chevron-up.svg?raw';
|
|
7
|
+
import codeSvg from './icons/code.svg?raw';
|
|
8
|
+
import componentSvg from './icons/component.svg?raw';
|
|
9
|
+
import copySvg from './icons/copy.svg?raw';
|
|
10
|
+
import diamondSvg from './icons/diamond.svg?raw';
|
|
11
|
+
import fileCodeSvg from './icons/file-code.svg?raw';
|
|
12
|
+
import fileTextSvg from './icons/file-text.svg?raw';
|
|
13
|
+
import folderOpenSvg from './icons/folder-open.svg?raw';
|
|
14
|
+
import folderSvg from './icons/folder.svg?raw';
|
|
15
|
+
import panelsTopLeftSvg from './icons/panels-top-left.svg?raw';
|
|
16
|
+
import sdocsSvg from './icons/sdocs.svg?raw';
|
|
3
17
|
|
|
4
|
-
const icons: Record<string, string> = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
18
|
+
const icons: Record<string, string> = {
|
|
19
|
+
'bookmark': bookmarkSvg,
|
|
20
|
+
'chevron-down': chevronDownSvg,
|
|
21
|
+
'chevron-left': chevronLeftSvg,
|
|
22
|
+
'chevron-right': chevronRightSvg,
|
|
23
|
+
'chevron-up': chevronUpSvg,
|
|
24
|
+
'code': codeSvg,
|
|
25
|
+
'component': componentSvg,
|
|
26
|
+
'copy': copySvg,
|
|
27
|
+
'diamond': diamondSvg,
|
|
28
|
+
'file-code': fileCodeSvg,
|
|
29
|
+
'file-text': fileTextSvg,
|
|
30
|
+
'folder-open': folderOpenSvg,
|
|
31
|
+
'folder': folderSvg,
|
|
32
|
+
'panels-top-left': panelsTopLeftSvg,
|
|
33
|
+
'sdocs': sdocsSvg,
|
|
34
|
+
};
|
|
9
35
|
|
|
10
36
|
/**
|
|
11
37
|
* @cssvar {length} --w - Icon width (default: 24px)
|