@emoo-ai/brand 0.1.10 → 0.1.12
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/file-icons.d.ts +2 -0
- package/dist/file-icons.js +25 -2
- package/dist/manifest.json +5 -5
- package/dist/tokens.css +4 -4
- package/package.json +1 -1
package/dist/file-icons.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type FileIconType = 'pdf' | 'word' | 'excel' | 'csv' | 'ppt' | 'text' | 'markdown' | 'zip' | 'video' | 'audio' | 'image' | 'code' | 'unknown' | 'folder' | 'folder-open' | 'doc' | 'table' | 'meeting';
|
|
2
2
|
export declare const FILE_ICON_TYPES: ["pdf", "word", "excel", "csv", "ppt", "text", "markdown", "zip", "video", "audio", "image", "code", "unknown", "folder", "folder-open", "doc", "table", "meeting"];
|
|
3
3
|
export declare const FILE_ICON_GLYPHS: Readonly<Record<FileIconType, string>>;
|
|
4
|
+
export declare const FILE_ICON_VIEWBOX: Readonly<Record<FileIconType, string>>;
|
|
4
5
|
export declare function fileIconType(fileName: string | null | undefined): FileIconType;
|
|
5
6
|
export declare function fileIconGlyph(type: string): string;
|
|
7
|
+
export declare function fileIconViewBox(type: string): string;
|
package/dist/file-icons.js
CHANGED
|
@@ -16,12 +16,32 @@ export const FILE_ICON_GLYPHS = {
|
|
|
16
16
|
image: "<path fill=\"var(--emoo-file-image, #22c55e)\" d=\"M7 4h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Z\"/><circle cx=\"14.3\" cy=\"9.3\" r=\"1.3\" fill=\"#fff\"/><path d=\"M8 15.8 L11 11.5 L13 14 L14.5 12 L16.5 15.8 Z\" fill=\"#fff\"/>",
|
|
17
17
|
code: "<path fill=\"var(--emoo-file-code, #64748b)\" d=\"M7 4h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Z\"/><g fill=\"none\" stroke=\"#fff\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 9 L7 12 L9.5 15\"/><path d=\"M14.5 9 L17 12 L14.5 15\"/><path d=\"M12.8 8.2 L11.2 15.8\"/></g>",
|
|
18
18
|
unknown: "<path fill=\"var(--emoo-file-unknown, #94a3b8)\" d=\"M7 4h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Z\"/><g fill=\"#fff\"><circle cx=\"8.5\" cy=\"12\" r=\"1.3\"/><circle cx=\"12\" cy=\"12\" r=\"1.3\"/><circle cx=\"15.5\" cy=\"12\" r=\"1.3\"/></g>",
|
|
19
|
-
folder: "<path fill=\"var(--emoo-folder, #
|
|
20
|
-
'folder-open': "<path fill=\"var(--emoo-folder-
|
|
19
|
+
folder: "<path fill=\"var(--emoo-folder-back, #7885c9)\" d=\"M4 8.25A2.25 2.25 0 0 1 6.25 6h3.05a2.25 2.25 0 0 1 1.65.71L12.1 8h5.65A2.25 2.25 0 0 1 20 10.25v7.5A2.25 2.25 0 0 1 17.75 20H6.25A2.25 2.25 0 0 1 4 17.75Z\"/><path fill=\"var(--emoo-folder-front, #a0abeb)\" d=\"M4 10.25h16v7.5A2.25 2.25 0 0 1 17.75 20H6.25A2.25 2.25 0 0 1 4 17.75Z\"/>",
|
|
20
|
+
'folder-open': "<path fill=\"var(--emoo-folder-back, #7885c9)\" d=\"M4 8.25A2.25 2.25 0 0 1 6.25 6h3.05a2.25 2.25 0 0 1 1.65.71L12.1 8h5.65A2.25 2.25 0 0 1 20 10.25V12H4Z\"/><path fill=\"var(--emoo-folder-back, #7885c9)\" d=\"m4 13 16-1.8v3L4 16Z\"/><path fill=\"#252c53\" fill-opacity=\".24\" d=\"m4 13 16-1.8v2L4 15Z\"/><path fill=\"var(--emoo-folder-front, #a0abeb)\" d=\"m4 15 16-1.8v4.55A2.25 2.25 0 0 1 17.75 20H6.25A2.25 2.25 0 0 1 4 17.75Z\"/>",
|
|
21
21
|
doc: "<path fill=\"var(--emoo-doc, #8b5cf6)\" d=\"M7 4h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Z\"/><g fill=\"#fff\"><rect x=\"8\" y=\"8\" width=\"4\" height=\"1.5\" rx=\".75\"/><rect x=\"8\" y=\"11\" width=\"8\" height=\"1.3\" rx=\".65\" opacity=\".9\"/><rect x=\"8\" y=\"13.6\" width=\"8\" height=\"1.3\" rx=\".65\" opacity=\".9\"/><rect x=\"8\" y=\"16.2\" width=\"5\" height=\"1.3\" rx=\".65\" opacity=\".9\"/></g>",
|
|
22
22
|
table: "<path fill=\"var(--emoo-table, #0ea5e9)\" d=\"M7 4h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Z\"/><g fill=\"none\" stroke=\"#fff\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.2\"/><path d=\"M8 10.8h8M8 13.4h8M12 10.8V16\"/></g>",
|
|
23
23
|
meeting: "<path fill=\"var(--emoo-meeting, #a855f7)\" d=\"M7 4h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Z\"/><path d=\"M8 8.2 h7.4 a1.6 1.6 0 0 1 1.6 1.6 v2.8 a1.6 1.6 0 0 1-1.6 1.6 h-3.6 L9.4 16 v-1.8 H8 a1.6 1.6 0 0 1-1.6-1.6 V9.8 A1.6 1.6 0 0 1 8 8.2 Z\" fill=\"#fff\"/><g fill=\"var(--emoo-meeting, #a855f7)\"><rect x=\"8.8\" y=\"10\" width=\"5.4\" height=\".95\" rx=\".45\"/><rect x=\"8.8\" y=\"11.7\" width=\"3.6\" height=\".95\" rx=\".45\"/></g>",
|
|
24
24
|
};
|
|
25
|
+
export const FILE_ICON_VIEWBOX = {
|
|
26
|
+
pdf: '4 4 16 16',
|
|
27
|
+
word: '4 4 16 16',
|
|
28
|
+
excel: '4 4 16 16',
|
|
29
|
+
csv: '4 4 16 16',
|
|
30
|
+
ppt: '4 4 16 16',
|
|
31
|
+
text: '4 4 16 16',
|
|
32
|
+
markdown: '4 4 16 16',
|
|
33
|
+
zip: '4 4 16 16',
|
|
34
|
+
video: '4 4 16 16',
|
|
35
|
+
audio: '4 4 16 16',
|
|
36
|
+
image: '4 4 16 16',
|
|
37
|
+
code: '4 4 16 16',
|
|
38
|
+
unknown: '4 4 16 16',
|
|
39
|
+
folder: '4 5 16 15',
|
|
40
|
+
'folder-open': '4 5 16 15',
|
|
41
|
+
doc: '4 4 16 16',
|
|
42
|
+
table: '4 4 16 16',
|
|
43
|
+
meeting: '4 4 16 16',
|
|
44
|
+
};
|
|
25
45
|
const EXT_TYPE = {
|
|
26
46
|
pdf: 'pdf',
|
|
27
47
|
doc: 'word', docx: 'word',
|
|
@@ -48,3 +68,6 @@ export function fileIconType(fileName) {
|
|
|
48
68
|
export function fileIconGlyph(type) {
|
|
49
69
|
return has(FILE_ICON_GLYPHS, type) ? FILE_ICON_GLYPHS[type] : FILE_ICON_GLYPHS.unknown;
|
|
50
70
|
}
|
|
71
|
+
export function fileIconViewBox(type) {
|
|
72
|
+
return has(FILE_ICON_VIEWBOX, type) ? FILE_ICON_VIEWBOX[type] : FILE_ICON_VIEWBOX.unknown;
|
|
73
|
+
}
|
package/dist/manifest.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"package": "@emoo-ai/brand",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"source": {
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "f2167f4f7c6216d033e7dd3b65c3b428c55402b33efd4d5a5121d2c096233cd1"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"tokens.css": {
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "9232bef0a1c1ae7faf4d0f1fa03342570811d4e2f2addffb0ebe41d94d25b588"
|
|
11
11
|
},
|
|
12
12
|
"colors.js": {
|
|
13
13
|
"sha256": "a2d8ce386855074667695cced5e1d97ab2e4f4b9afc467b23e60d39b517bade4"
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"sha256": "6591f2d23bcb488bb7f545b15e401a71f031086351f91b411bb645c332487a94"
|
|
17
17
|
},
|
|
18
18
|
"file-icons.js": {
|
|
19
|
-
"sha256": "
|
|
19
|
+
"sha256": "daa19cfa18f952f22d70cba175e898ceea8fc6622abc763e9b9b7dd5a7e85989"
|
|
20
20
|
},
|
|
21
21
|
"file-icons.d.ts": {
|
|
22
|
-
"sha256": "
|
|
22
|
+
"sha256": "b0fc83bc17d9b42650937a24a4e310159a29052ba609c80a67d1b4afd33ed828"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
package/dist/tokens.css
CHANGED
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
--emoo-file-image: #22c55e;
|
|
99
99
|
--emoo-file-code: #64748b;
|
|
100
100
|
--emoo-file-unknown: #94a3b8;
|
|
101
|
-
--emoo-folder: #
|
|
102
|
-
--emoo-folder-
|
|
101
|
+
--emoo-folder-back: #7885c9;
|
|
102
|
+
--emoo-folder-front: #a0abeb;
|
|
103
103
|
--emoo-doc: #8b5cf6;
|
|
104
104
|
--emoo-table: #0ea5e9;
|
|
105
105
|
--emoo-meeting: #a855f7;
|
|
@@ -174,8 +174,8 @@
|
|
|
174
174
|
--emoo-file-image: #4ade80;
|
|
175
175
|
--emoo-file-code: #8593b0;
|
|
176
176
|
--emoo-file-unknown: #a5aebd;
|
|
177
|
-
--emoo-folder: #
|
|
178
|
-
--emoo-folder-
|
|
177
|
+
--emoo-folder-back: #8997da;
|
|
178
|
+
--emoo-folder-front: #b0baf1;
|
|
179
179
|
--emoo-doc: #a380f7;
|
|
180
180
|
--emoo-table: #38bdf8;
|
|
181
181
|
--emoo-meeting: #c084fc;
|