@symbo.ls/icon 3.0.2 → 3.0.6

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 +9 -9
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -19,6 +19,10 @@ const getIconName = (el, s) => {
19
19
 
20
20
  export const Icon = {
21
21
  extends: 'Svg',
22
+ width: 'A',
23
+ height: 'A',
24
+ display: 'inline-block',
25
+
22
26
  props: (el, s, ctx) => {
23
27
  const { props, parent } = el
24
28
  const { ICONS, useIconSprite, verbose } = ctx && ctx.designSystem
@@ -63,14 +67,12 @@ export const Icon = {
63
67
  const directSrc = (parent && parent.props && parent.props.src) || props.src
64
68
 
65
69
  return {
66
- width: 'A',
67
- height: 'A',
68
- display: 'inline-block',
69
70
  spriteId: useIconSprite && iconInContext,
70
71
  src: iconFromLibrary || directSrc || ICONS.noIcon,
71
72
  style: { fill: 'currentColor', '*': { fill: 'currentColor' } }
72
73
  }
73
74
  },
75
+
74
76
  attr: { viewBox: '0 0 24 24' }
75
77
  }
76
78
 
@@ -105,12 +107,10 @@ export const IconText = {
105
107
 
106
108
  export const FileIcon = {
107
109
  extends: 'Flex',
108
- props: {
109
- theme: 'tertiary',
110
- boxSize: 'C1',
111
- align: 'center center',
112
- round: 'Z'
113
- },
110
+ theme: 'tertiary',
111
+ boxSize: 'C1',
112
+ align: 'center center',
113
+ round: 'Z',
114
114
  Icon: {
115
115
  fontSize: 'B',
116
116
  margin: 'auto',
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@symbo.ls/icon",
3
- "version": "3.0.2",
3
+ "version": "3.0.6",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c4dacc88fa3a65574680d11e320307dd2a22e6e9",
6
+ "gitHead": "d78a3603eea303118e84a46c24160c6d590bdb90",
7
7
  "dependencies": {
8
- "@symbo.ls/atoms": "^3.0.2",
8
+ "@symbo.ls/atoms": "^3.0.6",
9
9
  "@symbo.ls/utils": "^3.0.2"
10
10
  },
11
11
  "source": "src/index.js"