@manuscripts/style-guide 3.5.15 → 3.5.16

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.
@@ -93,15 +93,10 @@ exports.commonStyles = (0, styled_components_1.css) `
93
93
  ? props.theme.colors.border.error
94
94
  : props.theme.colors.brand.default};
95
95
  background-color: #f2fbfc;
96
- padding: ${(props) => {
97
- if (props.variant === 'small') {
98
- return '0 11px';
99
- }
100
- if (props.variant === 'large') {
101
- return '3px 15px';
102
- }
103
- return '0 11px';
104
- }};
96
+ ${(props) => props.variant &&
97
+ (0, styled_components_1.css) `
98
+ padding: ${(props) => props.variant === 'small' ? '0 11px' : '3px 15px'};
99
+ `}
105
100
  }
106
101
 
107
102
  &:focus::placeholder {
@@ -57,15 +57,10 @@ export const commonStyles = css `
57
57
  ? props.theme.colors.border.error
58
58
  : props.theme.colors.brand.default};
59
59
  background-color: #f2fbfc;
60
- padding: ${(props) => {
61
- if (props.variant === 'small') {
62
- return '0 11px';
63
- }
64
- if (props.variant === 'large') {
65
- return '3px 15px';
66
- }
67
- return '0 11px';
68
- }};
60
+ ${(props) => props.variant &&
61
+ css `
62
+ padding: ${(props) => props.variant === 'small' ? '0 11px' : '3px 15px'};
63
+ `}
69
64
  }
70
65
 
71
66
  &:focus::placeholder {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "3.5.15",
4
+ "version": "3.5.16",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",