@symbo.ls/icon 2.10.274 → 2.11.5

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 +2 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -33,7 +33,6 @@ export const Icon = {
33
33
  else if (ICONS[isArray[0]]) validIconName = isArray[0]
34
34
  else {
35
35
  if (verbose) console.warn('Can\'t find icon:', iconName, validIconName)
36
- validIconName = 'noIcon'
37
36
  }
38
37
 
39
38
  const iconFromLibrary = ICONS[validIconName]
@@ -43,8 +42,8 @@ export const Icon = {
43
42
  width: 'A',
44
43
  height: 'A',
45
44
  display: 'inline-block',
46
- spriteId: (useIconSprite && !directSrc) && validIconName,
47
- src: directSrc || iconFromLibrary,
45
+ spriteId: useIconSprite && validIconName,
46
+ src: iconFromLibrary || directSrc || ICONS.noIcon,
48
47
  style: { fill: 'currentColor' }
49
48
  }
50
49
  },
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/icon",
3
- "version": "2.10.274",
3
+ "version": "2.11.5",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "be9c0d5598a522f2448bad331e25c4410211fe5c",
6
+ "gitHead": "d5256e4c77123737a42641919ddbddb5acb6615c",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/utils": "latest"