@box/item-icon 3.1.0 → 3.2.0

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/README.md CHANGED
@@ -92,6 +92,7 @@ import { FILE_EXTENSION_CATEGORIES } from '@box/item-icon';
92
92
 
93
93
  FILE_EXTENSION_CATEGORIES.pdf; // ['pdf']
94
94
  FILE_EXTENSION_CATEGORIES.image; // ['bmp', 'cr2', 'crw', 'dng', 'gdraw', 'gif', ...]
95
+ FILE_EXTENSION_CATEGORIES.markdown; // ['md', 'markdown']
95
96
  FILE_EXTENSION_CATEGORIES['word-document']; // ['doc', 'docm', 'docx']
96
97
  ```
97
98
 
@@ -104,6 +105,7 @@ import { FILE_CATEGORY_COLORS } from '@box/item-icon';
104
105
 
105
106
  FILE_CATEGORY_COLORS.pdf; // 'var(--bp-watermelon-red-120, var(--watermelon-red-120))'
106
107
  FILE_CATEGORY_COLORS.image; // 'var(--bp-green-light-135, var(--green-light-120))'
108
+ FILE_CATEGORY_COLORS.markdown; // 'var(--bp-gray-100, var(--gray-100))'
107
109
  FILE_CATEGORY_COLORS.video; // 'var(--bp-light-blue-115, var(--light-blue-110))'
108
110
  ```
109
111
 
@@ -133,6 +135,7 @@ type FileCategory =
133
135
  | 'image'
134
136
  | 'indesign'
135
137
  | 'keynote'
138
+ | 'markdown'
136
139
  | 'numbers'
137
140
  | 'pages'
138
141
  | 'pdf'
@@ -18,7 +18,7 @@ var e = {
18
18
  ],
19
19
  boxcanvas: ["boxcanvas"],
20
20
  boxnote: ["boxnote"],
21
- code: /* @__PURE__ */ "as.as3.asm.aspx.bat.c.cc.cmake.cpp.cs.css.cxx.db.diff.erb.groovy.h.haml.hh.htm.html.java.js.json.less.m.make.md.ml.mm.php.pl.plist.properties.py.rb.rst.sass.scala.scm.script.sh.sml.sql.wabba.yaml".split("."),
21
+ code: /* @__PURE__ */ "as.as3.asm.aspx.bat.c.cc.cmake.cpp.cs.css.cxx.db.diff.erb.groovy.h.haml.hh.htm.html.java.js.json.less.m.make.ml.mm.php.pl.plist.properties.py.rb.rst.sass.scala.scm.script.sh.sml.sql.wabba.yaml".split("."),
22
22
  document: [
23
23
  "dot",
24
24
  "dotx",
@@ -74,6 +74,7 @@ var e = {
74
74
  "inx"
75
75
  ],
76
76
  keynote: ["key"],
77
+ markdown: ["md", "markdown"],
77
78
  numbers: ["numbers"],
78
79
  pages: ["pages"],
79
80
  pdf: ["pdf"],
@@ -171,6 +172,7 @@ var e = {
171
172
  image: t.green,
172
173
  indesign: t.gray,
173
174
  keynote: t.lightBlue,
175
+ markdown: t.gray,
174
176
  numbers: t.green,
175
177
  pages: t.orange,
176
178
  pdf: t.red,
@@ -31,6 +31,7 @@ var o = {
31
31
  image: e.FileImage,
32
32
  indesign: e.FileIndesign,
33
33
  keynote: e.FileKeynote,
34
+ markdown: e.FileMarkdown,
34
35
  numbers: e.FileNumbers,
35
36
  pages: e.FilePages,
36
37
  pdf: e.FilePdf,
@@ -16,6 +16,7 @@ declare const FILE_EXTENSION_CATEGORIES: {
16
16
  image: string[];
17
17
  indesign: string[];
18
18
  keynote: string[];
19
+ markdown: string[];
19
20
  numbers: string[];
20
21
  pages: string[];
21
22
  pdf: string[];
@@ -28,6 +28,7 @@ export declare const itemIconTable: {
28
28
  image: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
29
29
  indesign: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
30
30
  keynote: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
31
+ markdown: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
31
32
  numbers: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
32
33
  pages: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
33
34
  pdf: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
@@ -1 +1 @@
1
- export type FileCategory = 'audio' | 'boxcanvas' | 'boxnote' | 'code' | 'document' | 'docuworks-binder' | 'docuworks-file' | 'dwg' | 'excel-spreadsheet' | 'google-docs' | 'google-sheets' | 'google-slides' | 'illustrator' | 'image' | 'indesign' | 'keynote' | 'numbers' | 'pages' | 'pdf' | 'photoshop' | 'powerpoint-presentation' | 'presentation' | 'spreadsheet' | 'text' | 'threed' | 'vector' | 'video' | 'word-document' | 'zip';
1
+ export type FileCategory = 'audio' | 'boxcanvas' | 'boxnote' | 'code' | 'document' | 'docuworks-binder' | 'docuworks-file' | 'dwg' | 'excel-spreadsheet' | 'google-docs' | 'google-sheets' | 'google-slides' | 'illustrator' | 'image' | 'indesign' | 'keynote' | 'markdown' | 'numbers' | 'pages' | 'pdf' | 'photoshop' | 'powerpoint-presentation' | 'presentation' | 'spreadsheet' | 'text' | 'threed' | 'vector' | 'video' | 'word-document' | 'zip';
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@box/item-icon",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "peerDependencies": {
5
- "@box/blueprint-web": "^16.1.0",
6
- "@box/blueprint-web-assets": "^5.1.0",
7
- "@box/types": "^3.1.0",
5
+ "@box/blueprint-web": "^16.1.1",
6
+ "@box/blueprint-web-assets": "^5.1.1",
7
+ "@box/types": "^3.1.1",
8
8
  "react": "^17.0.0 || ^18.0.0",
9
9
  "react-dom": "^17.0.0 || ^18.0.0",
10
10
  "react-intl": "^6.4.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@box/blueprint-web": "^16.1.0",
14
- "@box/blueprint-web-assets": "^5.1.0",
15
- "@box/storybook-utils": "^1.1.0",
16
- "@box/types": "^3.1.0",
13
+ "@box/blueprint-web": "^16.1.1",
14
+ "@box/blueprint-web-assets": "^5.1.1",
15
+ "@box/storybook-utils": "^1.1.1",
16
+ "@box/types": "^3.1.1",
17
17
  "react": "^18.3.0",
18
18
  "react-dom": "^18.3.0",
19
19
  "react-intl": "^6.4.2"