@epam/assets 4.3.0 → 4.5.2

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/index.ts CHANGED
@@ -2,6 +2,9 @@ import { loaderIcons } from './loaders';
2
2
 
3
3
  declare var require: any;
4
4
  const req = require.context('./common', false, /\.svg$/);
5
- export const commonIcons = req.keys().map((file: any) => ({ icon: req(file), name: file.replace('.', '@epam/assets/icons/common') }));
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
+ });
6
9
 
7
10
  export const icons = loaderIcons.concat(commonIcons);
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
2
  <g fill-rule="evenodd" transform="matrix(1.2528 0 0 1.2477 -287.406 -10.145)">
3
3
  <path d="M236.75 12c.167 0 .25.083.25.25V20h2l-3 4-3-4h2v-7.75c0-.167.083-.25.25-.25zm4.5 12c-.167 0-.25-.083-.25-.25V16h-2l3-4 3 4h-2v7.75c0 .167-.083.25-.25.25z"/>
4
4
  </g>
@@ -1,3 +1,7 @@
1
1
  declare var require: any;
2
2
  const req = require.context('.', false, /\.svg$/);
3
- export const loaderIcons = req.keys().map((file: any) => ({ icon: req(file), name: file.replace('.', '@epam/assets/icons/loaders') }));
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
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/assets",
3
- "version": "4.3.0",
3
+ "version": "4.5.2",
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": "665593d7d0d56f30862e2fc1950680d753db8d3d",
18
+ "gitHead": "f35f225ac282195d0473993cc792179b0b0c6ebc",
19
19
  "publishConfig": {
20
20
  "directory": "build"
21
21
  }