@symbo.ls/icon 2.10.253 → 2.10.259

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 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  'use strict'
2
2
 
3
- import { isObject } from '@domql/utils'
4
3
  import { Flex, Svg } from '@symbo.ls/atoms'
5
4
 
6
5
  export const Icon = {
@@ -31,9 +30,9 @@ export const Icon = {
31
30
  if (ICONS[activeIconName]) validIconName = activeIconName
32
31
  if (ICONS[camelCase]) validIconName = camelCase
33
32
  else if (ICONS[isArray[0] + isArray[1]]) validIconName = isArray[0] + isArray[1]
34
- else if (ICONS[isArray[0]]) validIconsName = isArray[0]
33
+ else if (ICONS[isArray[0]]) validIconName = isArray[0]
35
34
  else {
36
- if (verbose) console.warn(`Can't find icon:`, iconName, validIconName)
35
+ if (verbose) console.warn('Can\'t find icon:', iconName, validIconName)
37
36
  validIconName = 'noIcon'
38
37
  }
39
38
 
@@ -61,7 +60,7 @@ export const IconText = {
61
60
 
62
61
  icon: {
63
62
  extend: Icon,
64
- if: ({ parent }) => parent.props.icon,
63
+ if: ({ parent }) => parent.props.icon
65
64
  },
66
65
 
67
66
  text: ({ props }) => props.text
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/icon",
3
- "version": "2.10.253",
3
+ "version": "2.10.259",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "a941c4b0f1e909f33428ac7f5dedcd90d0365c6b",
6
+ "gitHead": "c454826279438617c85a5f8d8e7b3a6938d94dea",
7
7
  "dependencies": {
8
8
  "@symbo.ls/svg": "latest",
9
9
  "@symbo.ls/utils": "latest"