@symbo.ls/icon 2.11.16 → 2.11.36

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 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -36,7 +36,7 @@ export const Icon = {
36
36
  }
37
37
 
38
38
  const iconFromLibrary = ICONS[validIconName]
39
- const directSrc = parent.props.src || props.src
39
+ const directSrc = (parent && parent.props && parent.props.src) || props.src
40
40
 
41
41
  return {
42
42
  width: 'A',
@@ -58,6 +58,7 @@ export const IconText = {
58
58
  lineHeight: 1
59
59
  },
60
60
 
61
+ // TODO: remove this variant
61
62
  icon: {
62
63
  extend: Icon,
63
64
  if: ({ parent }) => parent.props.icon
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/icon",
3
- "version": "2.11.16",
3
+ "version": "2.11.36",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "9d17c62d340b3ed3ecfba460d9f5656b324a5bbb",
6
+ "gitHead": "dcbcb0c3da036cfdb2fa14632c7dd32f8041af2a",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest",
9
9
  "@symbo.ls/utils": "latest"