smbls 0.13.3 → 0.13.4

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.13.3",
6
+ "version": "0.13.4",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
package/src/Icon.js CHANGED
@@ -15,9 +15,9 @@ export const Icon = {
15
15
  props: ({ key, props, parent }) => {
16
16
  const iconName = props.inheritedString || props.name || props.icon || key
17
17
  const camelCase = camelize(iconName)
18
- const isArray = camelCase.replace(/([a-z])([A-Z])/g, '$1 $2')
18
+ const isArray = camelCase.split(/([a-z])([A-Z])/g)
19
19
 
20
- const iconFromLibrary = ICONS[camelCase] || ICONS[isArray[0] + isArray[1]] || ICONS[isArray[0]] || ICONS['noIcon']
20
+ const iconFromLibrary = ICONS[camelCase] || (ICONS[isArray[0] + isArray[1]]) || ICONS[isArray[0]] || ICONS['noIcon']
21
21
 
22
22
  return {
23
23
  width: 'A',
@@ -27,7 +27,9 @@ export const Notification = {
27
27
  icon: {
28
28
  extend: [IconText],
29
29
  props: {
30
- icon: 'info outline'
30
+ icon: {
31
+ name: 'info outline'
32
+ }
31
33
  }
32
34
  },
33
35