Skip to content

Commit

Permalink
fix(mapping): button-group - appearance names
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh authored Mar 7, 2019
1 parent d2ffc75 commit f0e639f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 72 deletions.
58 changes: 13 additions & 45 deletions packages/mapping-kitten/eva/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5810,76 +5810,64 @@ export const style: ThemeStyleType = {
},
},
'ButtonGroup': {
'primary': {
'filled': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
'primary.tiny': {
'filled.tiny': {
'button': {
'borderRadius': 6,
'margin': 12,
},
},
'primary.small': {
'filled.small': {
'button': {
'borderRadius': 6,
'margin': 8,
},
},
'primary.medium': {
'filled.medium': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
'primary.large': {
'filled.large': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
'primary.giant': {
'filled.giant': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
'outline': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
'outline.tiny': {
'button': {
'borderRadius': 6,
'margin': 12,
},
},
'outline.small': {
'button': {
'borderRadius': 6,
'margin': 8,
},
},
'outline.medium': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
'outline.large': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
'outline.giant': {
'button': {
'borderRadius': 6,
'margin': 4,
},
},
},
Expand Down Expand Up @@ -10395,7 +10383,7 @@ export const mapping: ThemeMappingType = {
'scope': 'all',
'mapping': {},
'appearances': {
'primary': {
'filled': {
'default': true,
},
'outline': {
Expand Down Expand Up @@ -10424,39 +10412,19 @@ export const mapping: ThemeMappingType = {
'states': {},
},
'appearance': {
'primary': {
'filled': {
'mapping': {
'button': {
'borderRadius': 6,
},
},
'variant': {
'size': {
'tiny': {
'button': {
'margin': 12,
},
},
'small': {
'button': {
'margin': 8,
},
},
'medium': {
'button': {
'margin': 4,
},
},
'large': {
'button': {
'margin': 4,
},
},
'giant': {
'button': {
'margin': 4,
},
},
'tiny': {},
'small': {},
'medium': {},
'large': {},
'giant': {},
},
},
},
Expand Down
34 changes: 7 additions & 27 deletions packages/mapping/eva/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
"scope": "all",
"mapping": {},
"appearances": {
"primary": {
"filled": {
"default": true
},
"outline": {
Expand Down Expand Up @@ -462,39 +462,19 @@
"states": {}
},
"appearance": {
"primary": {
"filled": {
"mapping": {
"button": {
"borderRadius": 6
}
},
"variant": {
"size": {
"tiny": {
"button": {
"margin": 12
}
},
"small": {
"button": {
"margin": 8
}
},
"medium": {
"button": {
"margin": 4
}
},
"large": {
"button": {
"margin": 4
}
},
"giant": {
"button": {
"margin": 4
}
}
"tiny": {},
"small": {},
"medium": {},
"large": {},
"giant": {}
}
}
},
Expand Down

0 comments on commit f0e639f

Please sign in to comment.