@symbo.ls/icon 1.2.14 → 1.2.18

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 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -19,14 +19,14 @@ export const Icon = {
19
19
  if (parent.props.active && parent.props['.active'] && parent.props['.active'].icon) {
20
20
  activeIconName = parent.props['.active'].icon.name || parent.props['.active'].icon.icon || parent.props['.active'].icon
21
21
  }
22
-
22
+
23
23
  let validIconName
24
24
  if (ICONS[activeIconName]) validIconName = activeIconName
25
25
  if (ICONS[camelCase]) validIconName = camelCase
26
26
  else if (ICONS[isArray[0] + isArray[1]]) validIconName = isArray[0] + isArray[1]
27
27
  else if (ICONS[isArray[0]]) validIconName = isArray[0]
28
28
  else {
29
- console.log(`can't find icon:`, iconName, validIconName)
29
+ if (verbose) console.warn(`can't find icon:`, iconName, validIconName)
30
30
  validIconName = 'noIcon'
31
31
  }
32
32
 
@@ -59,4 +59,4 @@ export const IconText = {
59
59
  },
60
60
 
61
61
  text: ({ props }) => props.text
62
- }
62
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/icon",
3
- "version": "1.2.14",
3
+ "version": "1.2.18",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "9103c4984ee5a28b521c35f5b4a9dff58acab495",
6
+ "gitHead": "69b9a6839bbc10f3d22d1eb860ec9f17ac40690d",
7
7
  "dependencies": {
8
8
  "@symbo.ls/svg": "latest",
9
9
  "@symbo.ls/utils": "latest"