@symbo.ls/icon 2.10.259 → 2.10.271

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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -37,13 +37,14 @@ export const Icon = {
37
37
  }
38
38
 
39
39
  const iconFromLibrary = ICONS[validIconName]
40
+ const directSrc = parent.props.src || props.src
40
41
 
41
42
  return {
42
43
  width: 'A',
43
44
  height: 'A',
44
45
  display: 'inline-block',
45
- spriteId: useIconSprite && validIconName,
46
- src: iconFromLibrary,
46
+ spriteId: (useIconSprite && !directSrc) && validIconName,
47
+ src: directSrc || iconFromLibrary,
47
48
  style: { fill: 'currentColor' }
48
49
  }
49
50
  },
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@symbo.ls/icon",
3
- "version": "2.10.259",
3
+ "version": "2.10.271",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c454826279438617c85a5f8d8e7b3a6938d94dea",
6
+ "gitHead": "cb6c3e1938e3e65f85daf51f2d74d46fee36ae93",
7
7
  "dependencies": {
8
- "@symbo.ls/svg": "latest",
8
+ "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/utils": "latest"
10
10
  },
11
11
  "source": "src/index.js"