travelcircus-styleguide 2.1.3 → 2.1.5

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.
@@ -30,7 +30,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
30
30
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31
31
 
32
32
  function _templateObject() {
33
- var data = _taggedTemplateLiteral(["\n font-family: poppins-light;\n width: ", ";\n\n .", "__control {\n border: 1px solid\n ", ";\n border-radius: 5px;\n background-color: ", ";\n\n &:hover {\n border-color: black;\n box-shadow: none !important;\n }\n\n &--is-focused {\n border-color: ", ";\n box-shadow: none !important;\n }\n }\n\n .", "__value-container {\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n font-size: ", ";\n height: ", ";\n line-height: 1.2em;\n\n .", "__single-value {\n color: ", ";\n }\n\n & > div[class*='Input'] {\n margin: 0 !important;\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n height: 1em;\n }\n }\n\n .", "__indicator-separator {\n display: none;\n }\n\n .", "__dropdown-indicator {\n color: ", ";\n padding-right: ", ";\n }\n\n .", "__menu {\n z-index: 100;\n margin-top: 4px;\n font-size: ", ";\n }\n\n .", "__option {\n cursor: pointer;\n\n &:hover,\n &--is-focused,\n &--is-selected {\n color: ", ";\n background: ", ";\n }\n }\n .react-select__placeholder {\n color: ", ";\n }\n"]);
33
+ var data = _taggedTemplateLiteral(["\n width: ", ";\n\n .", "__control {\n border: 1px solid\n ", ";\n border-radius: 5px;\n background-color: ", ";\n\n &:hover {\n border-color: black;\n box-shadow: none !important;\n }\n\n &--is-focused {\n border-color: ", ";\n box-shadow: none !important;\n }\n }\n\n .", "__value-container {\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n font-size: ", ";\n height: ", ";\n line-height: 1.2em;\n\n .", "__single-value {\n color: ", ";\n }\n\n & > div[class*='Input'] {\n margin: 0 !important;\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n height: 1em;\n }\n }\n\n .", "__indicator-separator {\n display: none;\n }\n\n .", "__dropdown-indicator {\n color: ", ";\n padding-right: ", ";\n }\n\n .", "__menu {\n z-index: 100;\n margin-top: 4px;\n font-size: ", ";\n }\n\n .", "__option {\n cursor: pointer;\n\n &:hover,\n &--is-focused,\n &--is-selected {\n color: ", ";\n background: ", ";\n }\n }\n .react-select__placeholder {\n color: ", ";\n }\n"]);
34
34
 
35
35
  _templateObject = function _templateObject() {
36
36
  return data;
@@ -32,7 +32,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
32
32
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
33
33
 
34
34
  function _templateObject() {
35
- var data = _taggedTemplateLiteral(["\n font-family: ", ";\n border-bottom: 1px solid ", ";\n line-height: 1.5;\n color: ", ";\n margin: 0;\n text-transform: uppercase;\n ", ";\n"]);
35
+ var data = _taggedTemplateLiteral(["\n border-bottom: 1px solid ", ";\n line-height: 1.5;\n color: ", ";\n margin: 0;\n text-transform: uppercase;\n ", ";\n"]);
36
36
 
37
37
  _templateObject = function _templateObject() {
38
38
  return data;
@@ -48,7 +48,7 @@ var isLight = function isLight(props) {
48
48
  };
49
49
 
50
50
  exports.isLight = isLight;
51
- var StyledTitle = (0, _styledComponents.default)(_components.Text)(_templateObject(), _theme.fontFamilies.poppins, _colors.default.black, _colors.default.black, isLight);
51
+ var StyledTitle = (0, _styledComponents.default)(_components.Text)(_templateObject(), _colors.default.black, _colors.default.black, isLight);
52
52
 
53
53
  var Title = function Title(_ref) {
54
54
  var children = _ref.children,
@@ -56,13 +56,13 @@ function _templateObject() {
56
56
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
57
57
 
58
58
  var caps = function caps(props) {
59
- return props.caps && "text-transform: uppercase;";
59
+ return props.caps && 'text-transform: uppercase;';
60
60
  };
61
61
 
62
62
  exports.caps = caps;
63
63
 
64
64
  var lower = function lower(props) {
65
- return props.lower && "text-transform: lowercase;";
65
+ return props.lower && 'text-transform: lowercase;';
66
66
  };
67
67
 
68
68
  exports.lower = lower;
@@ -77,142 +77,91 @@ var truncate = function truncate(props) {
77
77
  }
78
78
 
79
79
  if (props.truncate === true) {
80
- return (0, _ellipsis.default)("100%");
80
+ return (0, _ellipsis.default)('100%');
81
81
  }
82
82
 
83
83
  return (0, _ellipsis.default)(props.truncate);
84
84
  };
85
85
 
86
86
  var whiteSpace = (0, _styledSystem.style)({
87
- prop: "whiteSpace",
88
- cssProperty: "white-space"
87
+ prop: 'whiteSpace',
88
+ cssProperty: 'white-space'
89
89
  });
90
90
  var textDecoration = (0, _styledSystem.style)({
91
- prop: "textDecoration",
92
- cssProperty: "text-decoration"
91
+ prop: 'textDecoration',
92
+ cssProperty: 'text-decoration'
93
93
  });
94
94
  var textTransform = (0, _styledSystem.style)({
95
- prop: "textTransform",
96
- cssProperty: "text-transform"
95
+ prop: 'textTransform',
96
+ cssProperty: 'text-transform'
97
97
  });
98
98
  var fontWeight = (0, _styledSystem.style)({
99
- prop: "fontWeight",
100
- cssProperty: "font-weight"
99
+ prop: 'fontWeight',
100
+ cssProperty: 'font-weight'
101
101
  });
102
102
 
103
- var getFont = function getFont(_ref) {
104
- var _theme$italicFonts, _theme$custom, _theme$italicFonts2, _theme$custom2, _theme$italicFonts3, _theme$boldFonts, _theme$custom3, _theme$boldFonts2, _theme$custom4, _theme$boldFonts3, _theme$semiBoldFonts, _theme$custom5, _theme$semiBoldFonts2, _theme$custom6, _theme$semiBoldFonts3, _theme$semiBoldItalic, _theme$custom7, _theme$semiBoldItalic2, _theme$custom8, _theme$semiBoldItalic3, _theme$lightFonts, _theme$custom9, _theme$lightFonts2, _theme$custom10, _theme$lightFonts3, _theme$fontFamilies;
105
-
106
- var type = _ref.type,
107
- theme = _ref.theme;
108
-
109
- switch (type) {
110
- case "italic":
111
- return theme !== null && theme !== void 0 && (_theme$italicFonts = theme.italicFonts) !== null && _theme$italicFonts !== void 0 && _theme$italicFonts[theme === null || theme === void 0 ? void 0 : (_theme$custom = theme.custom) === null || _theme$custom === void 0 ? void 0 : _theme$custom.font] ? "".concat(theme === null || theme === void 0 ? void 0 : (_theme$italicFonts2 = theme.italicFonts) === null || _theme$italicFonts2 === void 0 ? void 0 : _theme$italicFonts2[theme === null || theme === void 0 ? void 0 : (_theme$custom2 = theme.custom) === null || _theme$custom2 === void 0 ? void 0 : _theme$custom2.font], " !important") : "".concat(theme === null || theme === void 0 ? void 0 : (_theme$italicFonts3 = theme.italicFonts) === null || _theme$italicFonts3 === void 0 ? void 0 : _theme$italicFonts3.default, " !important");
112
-
113
- case "bold":
114
- return theme !== null && theme !== void 0 && (_theme$boldFonts = theme.boldFonts) !== null && _theme$boldFonts !== void 0 && _theme$boldFonts[theme === null || theme === void 0 ? void 0 : (_theme$custom3 = theme.custom) === null || _theme$custom3 === void 0 ? void 0 : _theme$custom3.font] ? "".concat(theme === null || theme === void 0 ? void 0 : (_theme$boldFonts2 = theme.boldFonts) === null || _theme$boldFonts2 === void 0 ? void 0 : _theme$boldFonts2[theme === null || theme === void 0 ? void 0 : (_theme$custom4 = theme.custom) === null || _theme$custom4 === void 0 ? void 0 : _theme$custom4.font], " !important") : "".concat(theme === null || theme === void 0 ? void 0 : (_theme$boldFonts3 = theme.boldFonts) === null || _theme$boldFonts3 === void 0 ? void 0 : _theme$boldFonts3.default, " !important");
115
-
116
- case "semiBold":
117
- return theme !== null && theme !== void 0 && (_theme$semiBoldFonts = theme.semiBoldFonts) !== null && _theme$semiBoldFonts !== void 0 && _theme$semiBoldFonts[theme === null || theme === void 0 ? void 0 : (_theme$custom5 = theme.custom) === null || _theme$custom5 === void 0 ? void 0 : _theme$custom5.font] ? "".concat(theme === null || theme === void 0 ? void 0 : (_theme$semiBoldFonts2 = theme.semiBoldFonts) === null || _theme$semiBoldFonts2 === void 0 ? void 0 : _theme$semiBoldFonts2[theme === null || theme === void 0 ? void 0 : (_theme$custom6 = theme.custom) === null || _theme$custom6 === void 0 ? void 0 : _theme$custom6.font], " !important") : "".concat(theme === null || theme === void 0 ? void 0 : (_theme$semiBoldFonts3 = theme.semiBoldFonts) === null || _theme$semiBoldFonts3 === void 0 ? void 0 : _theme$semiBoldFonts3.default, " !important");
118
-
119
- case "semiBoldItalic":
120
- return theme !== null && theme !== void 0 && (_theme$semiBoldItalic = theme.semiBoldItalicFonts) !== null && _theme$semiBoldItalic !== void 0 && _theme$semiBoldItalic[theme === null || theme === void 0 ? void 0 : (_theme$custom7 = theme.custom) === null || _theme$custom7 === void 0 ? void 0 : _theme$custom7.font] ? "".concat(theme === null || theme === void 0 ? void 0 : (_theme$semiBoldItalic2 = theme.semiBoldItalicFonts) === null || _theme$semiBoldItalic2 === void 0 ? void 0 : _theme$semiBoldItalic2[theme === null || theme === void 0 ? void 0 : (_theme$custom8 = theme.custom) === null || _theme$custom8 === void 0 ? void 0 : _theme$custom8.font], " !important") : "".concat(theme === null || theme === void 0 ? void 0 : (_theme$semiBoldItalic3 = theme.semiBoldItalicFonts) === null || _theme$semiBoldItalic3 === void 0 ? void 0 : _theme$semiBoldItalic3.default, " !important");
121
-
122
- case "light":
123
- return theme !== null && theme !== void 0 && (_theme$lightFonts = theme.lightFonts) !== null && _theme$lightFonts !== void 0 && _theme$lightFonts[theme === null || theme === void 0 ? void 0 : (_theme$custom9 = theme.custom) === null || _theme$custom9 === void 0 ? void 0 : _theme$custom9.font] ? "".concat(theme === null || theme === void 0 ? void 0 : (_theme$lightFonts2 = theme.lightFonts) === null || _theme$lightFonts2 === void 0 ? void 0 : _theme$lightFonts2[theme === null || theme === void 0 ? void 0 : (_theme$custom10 = theme.custom) === null || _theme$custom10 === void 0 ? void 0 : _theme$custom10.font], " !important") : "".concat(theme === null || theme === void 0 ? void 0 : (_theme$lightFonts3 = theme.lightFonts) === null || _theme$lightFonts3 === void 0 ? void 0 : _theme$lightFonts3.default, " !important");
124
-
125
- default:
126
- return theme === null || theme === void 0 ? void 0 : (_theme$fontFamilies = theme.fontFamilies) === null || _theme$fontFamilies === void 0 ? void 0 : _theme$fontFamilies.default;
127
- }
128
- };
129
-
130
103
  var italic = function italic(props) {
131
104
  return props.italic ? {
132
- fontFamily: getFont({
133
- type: "italic",
134
- theme: props === null || props === void 0 ? void 0 : props.theme
135
- }),
136
- fontStyle: "italic"
105
+ fontStyle: 'italic'
137
106
  } : null;
138
107
  };
139
108
 
140
109
  var bold = function bold(props) {
141
110
  return props.bold ? {
142
- fontFamily: getFont({
143
- type: "bold",
144
- theme: props === null || props === void 0 ? void 0 : props.theme
145
- }),
146
- fontWeight: "bold",
147
- fontSynthesis: "none",
148
- WebkitFontSmoothing: "antialiased",
149
- MozOsxFontSmoothing: "grayscale",
150
- fontSmoothing: "antialiased",
111
+ fontWeight: 'bold',
112
+ fontSynthesis: 'none',
113
+ WebkitFontSmoothing: 'antialiased',
114
+ MozOsxFontSmoothing: 'grayscale',
115
+ fontSmoothing: 'antialiased',
151
116
  // Text rendering
152
- textRendering: "optimizeLegibility"
117
+ textRendering: 'optimizeLegibility'
153
118
  } : null;
154
119
  };
155
120
 
156
121
  var semiBold = function semiBold(props) {
157
122
  return props.semiBold ? {
158
- fontFamily: getFont({
159
- type: "semiBold",
160
- theme: props === null || props === void 0 ? void 0 : props.theme
161
- }),
162
123
  fontWeight: 600,
163
- fontSynthesis: "none",
124
+ fontSynthesis: 'none',
164
125
  // Font smoothing
165
- WebkitFontSmoothing: "antialiased",
166
- MozOsxFontSmoothing: "grayscale",
167
- fontSmoothing: "antialiased",
126
+ WebkitFontSmoothing: 'antialiased',
127
+ MozOsxFontSmoothing: 'grayscale',
128
+ fontSmoothing: 'antialiased',
168
129
  // Text rendering
169
- textRendering: "optimizeLegibility"
130
+ textRendering: 'optimizeLegibility'
170
131
  } : null;
171
132
  };
172
133
 
173
134
  var light = function light(props) {
174
135
  return props.light ? {
175
- fontFamily: getFont({
176
- type: "light",
177
- theme: props === null || props === void 0 ? void 0 : props.theme
178
- }),
179
136
  fontWeight: 300
180
137
  } : null;
181
138
  };
182
139
 
183
140
  var boldItalic = function boldItalic(props) {
184
141
  return props.bold && props.italic ? {
185
- fontFamily: getFont({
186
- type: "bold",
187
- theme: props === null || props === void 0 ? void 0 : props.theme
188
- }),
189
- fontStyle: "italic",
190
- fontWeight: "bold",
191
- fontSynthesis: "none",
142
+ fontStyle: 'italic',
143
+ fontWeight: 'bold',
144
+ fontSynthesis: 'none',
192
145
  // Font smoothing
193
- WebkitFontSmoothing: "antialiased",
194
- MozOsxFontSmoothing: "grayscale",
195
- fontSmoothing: "antialiased",
146
+ WebkitFontSmoothing: 'antialiased',
147
+ MozOsxFontSmoothing: 'grayscale',
148
+ fontSmoothing: 'antialiased',
196
149
  // Text rendering
197
- textRendering: "optimizeLegibility"
150
+ textRendering: 'optimizeLegibility'
198
151
  } : null;
199
152
  };
200
153
 
201
154
  var semiBoldItalic = function semiBoldItalic(props) {
202
155
  return props.semiBold && props.italic ? {
203
- fontFamily: getFont({
204
- type: "semiBoldItalic",
205
- theme: props === null || props === void 0 ? void 0 : props.theme
206
- }),
207
- fontStyle: "italic",
156
+ fontStyle: 'italic',
208
157
  fontWeight: 600,
209
- fontSynthesis: "none",
158
+ fontSynthesis: 'none',
210
159
  // Font smoothing
211
- WebkitFontSmoothing: "antialiased",
212
- MozOsxFontSmoothing: "grayscale",
213
- fontSmoothing: "antialiased",
160
+ WebkitFontSmoothing: 'antialiased',
161
+ MozOsxFontSmoothing: 'grayscale',
162
+ fontSmoothing: 'antialiased',
214
163
  // Text rendering
215
- textRendering: "optimizeLegibility"
164
+ textRendering: 'optimizeLegibility'
216
165
  } : null;
217
166
  };
218
167
 
@@ -223,6 +172,6 @@ var Text = (0, _styledComponents.default)(_Box.default).attrs(function (props) {
223
172
  };
224
173
  })(_templateObject3(), styledText);
225
174
  exports.Text = Text;
226
- Text.displayName = "Text";
175
+ Text.displayName = 'Text';
227
176
  var _default = Text;
228
177
  exports.default = _default;
@@ -36,7 +36,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
36
36
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
37
37
 
38
38
  function _templateObject3() {
39
- var data = _taggedTemplateLiteral(["\n font-family: ", ";\n line-height: 1.4;\n "]);
39
+ var data = _taggedTemplateLiteral(["\n line-height: 1.4;\n "]);
40
40
 
41
41
  _templateObject3 = function _templateObject3() {
42
42
  return data;
@@ -46,7 +46,7 @@ function _templateObject3() {
46
46
  }
47
47
 
48
48
  function _templateObject2() {
49
- var data = _taggedTemplateLiteral(["\n font-family: ", ";\n line-height: 1.4;\n\n .wf-active & {\n font-family: ", ";\n }\n "]);
49
+ var data = _taggedTemplateLiteral(["\n font-family: ", ";\n line-height: 1.4;\n "]);
50
50
 
51
51
  _templateObject2 = function _templateObject2() {
52
52
  return data;
@@ -68,7 +68,7 @@ function _templateObject() {
68
68
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
69
69
 
70
70
  var handleFontFamily = function handleFontFamily(props) {
71
- var _props$theme, _props$theme2, _props$theme2$custom, _props$theme5, _props$theme5$fontFam;
71
+ var _props$theme, _props$theme2, _props$theme2$custom;
72
72
 
73
73
  var customFont = props === null || props === void 0 ? void 0 : (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.fontFamilies[props === null || props === void 0 ? void 0 : (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : (_props$theme2$custom = _props$theme2.custom) === null || _props$theme2$custom === void 0 ? void 0 : _props$theme2$custom.font];
74
74
 
@@ -77,12 +77,12 @@ var handleFontFamily = function handleFontFamily(props) {
77
77
  }
78
78
 
79
79
  if (props.webfontLoader) {
80
- var _props$theme3, _props$theme3$fontFam, _props$theme4, _props$theme4$fontFam;
80
+ var _props$theme3, _props$theme3$fontFam;
81
81
 
82
- return (0, _styledComponents.css)(_templateObject2(), props === null || props === void 0 ? void 0 : (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : (_props$theme3$fontFam = _props$theme3.fontFamilies) === null || _props$theme3$fontFam === void 0 ? void 0 : _props$theme3$fontFam.helvetica, props === null || props === void 0 ? void 0 : (_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : (_props$theme4$fontFam = _props$theme4.fontFamilies) === null || _props$theme4$fontFam === void 0 ? void 0 : _props$theme4$fontFam.poppins);
82
+ return (0, _styledComponents.css)(_templateObject2(), props === null || props === void 0 ? void 0 : (_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : (_props$theme3$fontFam = _props$theme3.fontFamilies) === null || _props$theme3$fontFam === void 0 ? void 0 : _props$theme3$fontFam.helvetica);
83
83
  }
84
84
 
85
- return (0, _styledComponents.css)(_templateObject3(), props === null || props === void 0 ? void 0 : (_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : (_props$theme5$fontFam = _props$theme5.fontFamilies) === null || _props$theme5$fontFam === void 0 ? void 0 : _props$theme5$fontFam.poppins);
85
+ return (0, _styledComponents.css)(_templateObject3());
86
86
  };
87
87
 
88
88
  var getCustom = function getCustom(props, originalTheme) {
@@ -11,8 +11,6 @@ var _colors = _interopRequireDefault(require("./colors"));
11
11
 
12
12
  var _browser = _interopRequireDefault(require("./browser"));
13
13
 
14
- var _theme = require("./theme");
15
-
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
15
 
18
16
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
@@ -27,7 +25,6 @@ var commonStyle = {
27
25
  borderWidth: '1px',
28
26
  borderRadius: '5px',
29
27
  color: 'white',
30
- fontFamily: _theme.fontFamilies.default,
31
28
  transition: 'border-color 0.1s ease, background-color 0.1s ease, color 0.1s ease',
32
29
  '&:disabled': {
33
30
  cursor: 'not-allowed',
@@ -44,7 +41,7 @@ var variants = (0, _styledSystem.variant)({
44
41
  borderColor: _colors.default.tealish,
45
42
  padding: '13px 38px 15px',
46
43
  fontSize: '15px',
47
- fontFamily: _theme.semiBoldFonts.default,
44
+ fontFamily: 'inherit',
48
45
  fontWeight: 'normal'
49
46
  }, _browser.default.hover({
50
47
  '&:hover': {
@@ -11,8 +11,6 @@ var _colors = _interopRequireDefault(require("./colors"));
11
11
 
12
12
  var _browser = _interopRequireDefault(require("./browser"));
13
13
 
14
- var _theme = require("./theme");
15
-
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
15
 
18
16
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
@@ -22,7 +20,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
22
20
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
21
 
24
22
  var commonStyle = {
25
- fontFamily: _theme.mediumFonts.default,
23
+ fontFamily: 'inherit',
26
24
  fontWeight: '400',
27
25
  appearance: 'none',
28
26
  textAlign: 'center',
@@ -18,22 +18,22 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
18
18
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
19
 
20
20
  var commonStyle = {
21
- fontFamily: "inherit",
22
- fontWeight: "400",
23
- appearance: "none",
24
- textAlign: "left",
25
- borderWidth: "1px",
26
- borderStyle: "solid",
27
- borderRadius: "5px",
28
- boxShadow: "none",
29
- transition: "border-color 0.1s ease",
30
- resize: "none",
21
+ fontFamily: 'inherit',
22
+ fontWeight: '300',
23
+ appearance: 'none',
24
+ textAlign: 'left',
25
+ borderWidth: '1px',
26
+ borderStyle: 'solid',
27
+ borderRadius: '5px',
28
+ boxShadow: 'none',
29
+ transition: 'border-color 0.1s ease',
30
+ resize: 'none',
31
31
  width: '100%',
32
- "&:disabled": {
32
+ '&:disabled': {
33
33
  color: _colors.default.hotelSmoke,
34
34
  borderColor: _colors.default.hotelSmoke
35
35
  },
36
- "&::placeholder": {
36
+ '&::placeholder': {
37
37
  color: "".concat(_colors.default.lightGrey)
38
38
  }
39
39
  };
@@ -44,31 +44,31 @@ var commonVariants = {
44
44
  backgroundColor: _colors.default.white,
45
45
  borderColor: _colors.default.hotelSmoke,
46
46
  color: _colors.default.hotelDarkGrey,
47
- ":hover": {
47
+ ':hover': {
48
48
  borderColor: _colors.default.hotelDarkGrey
49
49
  },
50
- ":focus": {
51
- outline: "none",
50
+ ':focus': {
51
+ outline: 'none',
52
52
  borderColor: _colors.default.hotelDarkGrey
53
53
  }
54
54
  }
55
55
  },
56
56
  size: {
57
57
  small: {
58
- paddingTop: "12px",
59
- paddingRight: "14px",
60
- paddingBottom: "12px",
61
- paddingLeft: "14px",
62
- fontSize: "14px",
63
- lineHeight: "21px"
58
+ paddingTop: '12px',
59
+ paddingRight: '14px',
60
+ paddingBottom: '12px',
61
+ paddingLeft: '14px',
62
+ fontSize: '14px',
63
+ lineHeight: '21px'
64
64
  },
65
65
  medium: {
66
- paddingTop: "15px",
67
- paddingRight: "17px",
68
- paddingBottom: "15px",
69
- paddingLeft: "17px",
70
- fontSize: "15px",
71
- lineHeight: "15px"
66
+ paddingTop: '15px',
67
+ paddingRight: '17px',
68
+ paddingBottom: '15px',
69
+ paddingLeft: '17px',
70
+ fontSize: '15px',
71
+ lineHeight: '15px'
72
72
  }
73
73
  }
74
74
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "travelcircus-styleguide",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Components Styleguide for a TravelCircus web services",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {