@symbo.ls/icon
Advanced tools
Comparing version 2.10.158 to 2.10.162
12
index.js
'use strict' | ||
import { isObject } from '@domql/utils' | ||
import { Flex, Svg } from '@symbo.ls/atoms' | ||
@@ -19,4 +20,9 @@ | ||
} | ||
if (parent && parent.props && | ||
parent.props.active && parent.props['.active'] && parent.props['.active'].icon) { | ||
if ( | ||
parent && | ||
parent.props && | ||
parent.props.active && | ||
parent.props['.active'] && | ||
parent.props['.active'].icon | ||
) { | ||
activeIconName = parent.props['.active'].icon.name || parent.props['.active'].icon.icon || parent.props['.active'].icon | ||
@@ -29,3 +35,3 @@ } | ||
else if (ICONS[isArray[0] + isArray[1]]) validIconName = isArray[0] + isArray[1] | ||
else if (ICONS[isArray[0]]) validIconName = isArray[0] | ||
else if (ICONS[isArray[0]]) validIconsName = isArray[0] | ||
else { | ||
@@ -32,0 +38,0 @@ if (verbose) console.warn(`can't find icon:`, iconName, validIconName) |
{ | ||
"name": "@symbo.ls/icon", | ||
"version": "2.10.158", | ||
"version": "2.10.162", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "3a847545c01796c874758c2c2a91e2417bcd29d6", | ||
"gitHead": "bcb75a861d22f204893bc7f58a4432b1126f8e17", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@symbo.ls/svg": "latest", |
2207
64