@box/item-icon 1.5.2 → 1.6.1
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,7 +1,7 @@
|
|
|
1
1
|
import * as e from "@box/blueprint-web-assets/icons/Content";
|
|
2
|
-
import { AgentCustomExtract as s } from "@box/blueprint-web-assets/icons/Logo";
|
|
3
|
-
import { jsx as
|
|
4
|
-
const
|
|
2
|
+
import { AgentCustomExtract as s, RelayAdvanced as F } from "@box/blueprint-web-assets/icons/Logo";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
const c = {
|
|
5
5
|
archive: e.Archive,
|
|
6
6
|
audio: e.FileAudio,
|
|
7
7
|
bookmark: e.FileBookmark,
|
|
@@ -14,7 +14,7 @@ const n = {
|
|
|
14
14
|
"docuworks-file": e.FileXdw,
|
|
15
15
|
dwg: e.FileDwg,
|
|
16
16
|
"excel-spreadsheet": e.FileExcel,
|
|
17
|
-
|
|
17
|
+
extract_agent: s,
|
|
18
18
|
"file-variable": e.FileVariable,
|
|
19
19
|
"folder-archive": e.FolderArchive,
|
|
20
20
|
"folder-collab": e.FolderShared,
|
|
@@ -40,8 +40,9 @@ const n = {
|
|
|
40
40
|
vector: e.FileVector,
|
|
41
41
|
video: e.FileVideo,
|
|
42
42
|
"word-document": e.FileWord,
|
|
43
|
+
workflow: F,
|
|
43
44
|
zip: e.FileZip
|
|
44
|
-
},
|
|
45
|
+
}, f = ({
|
|
45
46
|
ariaHidden: l,
|
|
46
47
|
ariaLabel: i,
|
|
47
48
|
className: r,
|
|
@@ -49,8 +50,8 @@ const n = {
|
|
|
49
50
|
iconType: t,
|
|
50
51
|
title: a
|
|
51
52
|
}) => {
|
|
52
|
-
const d =
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
const d = c[t] || e.FileDefault;
|
|
54
|
+
return /* @__PURE__ */ n(d, {
|
|
54
55
|
"aria-hidden": l,
|
|
55
56
|
"aria-label": i,
|
|
56
57
|
className: r,
|
|
@@ -60,7 +61,7 @@ const n = {
|
|
|
60
61
|
});
|
|
61
62
|
};
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
f as ItemIcon,
|
|
65
|
+
f as default,
|
|
66
|
+
c as itemIconTable
|
|
66
67
|
};
|
|
@@ -12,7 +12,7 @@ export declare const itemIconTable: {
|
|
|
12
12
|
'docuworks-file': import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
13
13
|
dwg: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
14
14
|
'excel-spreadsheet': import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
15
|
-
|
|
15
|
+
extract_agent: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
16
16
|
'file-variable': import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
17
17
|
'folder-archive': import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
18
18
|
'folder-collab': import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -38,6 +38,7 @@ export declare const itemIconTable: {
|
|
|
38
38
|
vector: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
39
39
|
video: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
40
40
|
'word-document': import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
41
|
+
workflow: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
41
42
|
zip: import('react').ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
42
43
|
};
|
|
43
44
|
export interface ItemIconProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/item-icon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@box/blueprint-web": "^7.8.0",
|
|
6
6
|
"@box/blueprint-web-assets": "^4.16.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"react-intl": "^6.4.2"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@box/blueprint-web": "^12.92.
|
|
13
|
+
"@box/blueprint-web": "^12.92.3",
|
|
14
14
|
"@box/blueprint-web-assets": "^4.76.2",
|
|
15
15
|
"@box/types": "^1.0.0",
|
|
16
16
|
"@box/storybook-utils": "^0.14.13",
|