@epam/assets 4.9.0 → 4.10.0-rc.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.
- package/icons/loaders/{circle_loader_30 .svg → circle_loader_30.svg} +0 -0
- package/icons/templates/generic-24.svg +0 -17
- package/icons/templates/generic-30.svg +0 -16
- package/icons/templates/generic.svg +0 -18
- package/icons/templates/tall.svg +0 -16
- package/package.json +2 -2
- package/scss/font-faces.scss +1 -1
- package/scss/promo/font-faces.scss +1 -1
- package/icons/helpers.ts +0 -51
- package/icons/index.ts +0 -10
- package/icons/legacy/index.ts +0 -3
- package/icons/loaders/index.ts +0 -7
|
File without changes
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
2
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
3
|
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
4
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
5
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
6
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
@@ -52,18 +47,6 @@
|
|
|
52
47
|
originx="2"
|
|
53
48
|
originy="2" />
|
|
54
49
|
</sodipodi:namedview>
|
|
55
|
-
<metadata
|
|
56
|
-
id="metadata5">
|
|
57
|
-
<rdf:RDF>
|
|
58
|
-
<cc:Work
|
|
59
|
-
rdf:about="">
|
|
60
|
-
<dc:format>image/svg+xml</dc:format>
|
|
61
|
-
<dc:type
|
|
62
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
63
|
-
<dc:title></dc:title>
|
|
64
|
-
</cc:Work>
|
|
65
|
-
</rdf:RDF>
|
|
66
|
-
</metadata>
|
|
67
50
|
<g
|
|
68
51
|
inkscape:label="Grid"
|
|
69
52
|
inkscape:groupmode="layer"
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
3
|
|
|
4
4
|
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
5
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
6
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
7
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
@@ -50,18 +46,6 @@
|
|
|
50
46
|
spacingy="1"
|
|
51
47
|
empspacing="6" />
|
|
52
48
|
</sodipodi:namedview>
|
|
53
|
-
<metadata
|
|
54
|
-
id="metadata5">
|
|
55
|
-
<rdf:RDF>
|
|
56
|
-
<cc:Work
|
|
57
|
-
rdf:about="">
|
|
58
|
-
<dc:format>image/svg+xml</dc:format>
|
|
59
|
-
<dc:type
|
|
60
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
61
|
-
<dc:title></dc:title>
|
|
62
|
-
</cc:Work>
|
|
63
|
-
</rdf:RDF>
|
|
64
|
-
</metadata>
|
|
65
49
|
<g
|
|
66
50
|
inkscape:label="Grid"
|
|
67
51
|
inkscape:groupmode="layer"
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
2
|
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
3
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
4
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
5
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
@@ -49,18 +43,6 @@
|
|
|
49
43
|
spacingy="1"
|
|
50
44
|
empspacing="6" />
|
|
51
45
|
</sodipodi:namedview>
|
|
52
|
-
<metadata
|
|
53
|
-
id="metadata5">
|
|
54
|
-
<rdf:RDF>
|
|
55
|
-
<cc:Work
|
|
56
|
-
rdf:about="">
|
|
57
|
-
<dc:format>image/svg+xml</dc:format>
|
|
58
|
-
<dc:type
|
|
59
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
60
|
-
<dc:title />
|
|
61
|
-
</cc:Work>
|
|
62
|
-
</rdf:RDF>
|
|
63
|
-
</metadata>
|
|
64
46
|
<g
|
|
65
47
|
inkscape:label="Grid"
|
|
66
48
|
inkscape:groupmode="layer"
|
package/icons/templates/tall.svg
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
3
|
|
|
4
4
|
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
5
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
6
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
7
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
@@ -73,18 +69,6 @@
|
|
|
73
69
|
spacingy="1"
|
|
74
70
|
empspacing="6" />
|
|
75
71
|
</sodipodi:namedview>
|
|
76
|
-
<metadata
|
|
77
|
-
id="metadata5">
|
|
78
|
-
<rdf:RDF>
|
|
79
|
-
<cc:Work
|
|
80
|
-
rdf:about="">
|
|
81
|
-
<dc:format>image/svg+xml</dc:format>
|
|
82
|
-
<dc:type
|
|
83
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
84
|
-
<dc:title />
|
|
85
|
-
</cc:Work>
|
|
86
|
-
</rdf:RDF>
|
|
87
|
-
</metadata>
|
|
88
72
|
<g
|
|
89
73
|
inkscape:label="Grid"
|
|
90
74
|
inkscape:groupmode="layer"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/assets",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0-rc.1",
|
|
4
4
|
"description": "EPAM Assets Library",
|
|
5
5
|
"author": "EPAM",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/epam/UUI"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "f71858b89ce0a69760921774983447c1ffc6f35c",
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"directory": "build"
|
|
21
21
|
}
|
package/scss/font-faces.scss
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
@font-face {
|
|
65
65
|
font-family: 'Sans Semibold';
|
|
66
66
|
src: url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/woff2/ttf/SourceSansPro-Semibold.ttf.woff2') format('woff2'),
|
|
67
|
-
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/woff/otf/SourceSansPro-
|
|
67
|
+
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/woff/otf/SourceSansPro-Semibold.otf.woff') format('woff'),
|
|
68
68
|
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/otf/SourceSansPro-Semibold.otf') format('opentype'),
|
|
69
69
|
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/ttf/SourceSansPro-Semibold.ttf') format('truetype');
|
|
70
70
|
font-weight: normal;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@font-face {
|
|
12
12
|
font-family: 'Sans Semibold';
|
|
13
13
|
src: url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/woff2/ttf/SourceSansPro-Semibold.ttf.woff2') format('woff2'),
|
|
14
|
-
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/woff/otf/SourceSansPro-
|
|
14
|
+
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/woff/otf/SourceSansPro-Semibold.otf.woff') format('woff'),
|
|
15
15
|
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/otf/SourceSansPro-Semibold.otf') format('opentype'),
|
|
16
16
|
url('https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/fonts/source-sans-pro/ttf/SourceSansPro-Semibold.ttf') format('truetype');
|
|
17
17
|
font-weight: normal;
|
package/icons/helpers.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { icons } from './index';
|
|
2
|
-
|
|
3
|
-
export type IconList<TIcon> = {
|
|
4
|
-
id: string,
|
|
5
|
-
parentId?: string,
|
|
6
|
-
icon: TIcon,
|
|
7
|
-
name: string,
|
|
8
|
-
size: number,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export function getIconGroupName(path: string) {
|
|
12
|
-
let common = path.match('@epam/assets/icons/common/');
|
|
13
|
-
|
|
14
|
-
if (common && common.length > 0) {
|
|
15
|
-
return path.split('-').slice(0, -1).join('-').replace('@epam/assets/icons/common/', '');
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return path.replace('@epam/assets/icons/loaders/', '').split('_').slice(0, -1).join('-');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function getIconSize(path: string) {
|
|
22
|
-
const info = path.match(/\d{2}/);
|
|
23
|
-
return info ? +info[0] : null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function getGroupedIcons<TIcon>() {
|
|
27
|
-
let groupedIcons: { [key: string]: IconList<TIcon>[] } = {};
|
|
28
|
-
icons.forEach((item: IconList<TIcon>) => {
|
|
29
|
-
let groupName = getIconGroupName(item.name);
|
|
30
|
-
if (groupedIcons[groupName]) {
|
|
31
|
-
groupedIcons[groupName].push({ ...item, size: getIconSize(item.name), id: item.name });
|
|
32
|
-
} else {
|
|
33
|
-
groupedIcons[groupName] = [{ ...item, size: getIconSize(item.name), id: item.name }];
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
return groupedIcons;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function getIconList<TIcon>(includeChildren?: boolean): IconList<TIcon>[] {
|
|
41
|
-
let groupedIcons = getGroupedIcons<TIcon>();
|
|
42
|
-
let baseDepthIcons: IconList<TIcon>[] = [];
|
|
43
|
-
for (let key in groupedIcons) {
|
|
44
|
-
baseDepthIcons.push({ ...groupedIcons[key][0], name: key, id: key });
|
|
45
|
-
includeChildren && groupedIcons[key].forEach((item: IconList<TIcon>) => {
|
|
46
|
-
baseDepthIcons.push({ ...item, parentId: key });
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return baseDepthIcons;
|
|
51
|
-
}
|
package/icons/index.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { loaderIcons } from './loaders';
|
|
2
|
-
|
|
3
|
-
declare var require: any;
|
|
4
|
-
const req = require.context('./common', false, /\.svg$/);
|
|
5
|
-
export const commonIcons = req.keys().map((file: any) => {
|
|
6
|
-
const { ReactComponent: Icon } = req(file);
|
|
7
|
-
return { icon: Icon, name: file.replace('.', '@epam/assets/icons/common') };
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export const icons = loaderIcons.concat(commonIcons);
|
package/icons/legacy/index.ts
DELETED
package/icons/loaders/index.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare var require: any;
|
|
2
|
-
const req = require.context('.', false, /\.svg$/);
|
|
3
|
-
|
|
4
|
-
export const loaderIcons = req.keys().map((file: any) => {
|
|
5
|
-
const { ReactComponent: Icon } = req(file);
|
|
6
|
-
return { icon: Icon, name: file.replace('.', '@epam/assets/icons/loaders') };
|
|
7
|
-
});
|