@emoo-ai/brand 0.1.10 → 0.1.11

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.
@@ -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;
@@ -22,6 +22,26 @@ export const FILE_ICON_GLYPHS = {
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: '3 5 18 15',
40
+ 'folder-open': '3 5 18 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
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schemaVersion": 3,
3
3
  "package": "@emoo-ai/brand",
4
- "version": "0.1.10",
4
+ "version": "0.1.11",
5
5
  "source": {
6
- "sha256": "23e08e8c59136293f31ed51a3946c967254372ad023232bb52532ab552235046"
6
+ "sha256": "94d7da8bbd56c0147fdc18d7d3fd9cbe070ece2198c0eb0b1c78e3d5788c9e83"
7
7
  },
8
8
  "files": {
9
9
  "tokens.css": {
@@ -16,10 +16,10 @@
16
16
  "sha256": "6591f2d23bcb488bb7f545b15e401a71f031086351f91b411bb645c332487a94"
17
17
  },
18
18
  "file-icons.js": {
19
- "sha256": "e2e9f3e9b4e469a5c21ea128814eb09e4dda4ef5184a1b36b9c2ce4cda1ec95e"
19
+ "sha256": "59891edad09bcfdb85fb82cd1627cb69de34fb4a59cf1bcc0a2c75d78aed177c"
20
20
  },
21
21
  "file-icons.d.ts": {
22
- "sha256": "1f4bea7d8ddafc09132e35b815d51588763f1e1b1143b4f57bd1c012546b842f"
22
+ "sha256": "b0fc83bc17d9b42650937a24a4e310159a29052ba609c80a67d1b4afd33ed828"
23
23
  }
24
24
  }
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emoo-ai/brand",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",