travelcircus-styleguide 2.0.12 → 2.0.14

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 }\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 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"]);
34
34
 
35
35
  _templateObject = function _templateObject() {
36
36
  return data;
@@ -43,7 +43,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
43
43
 
44
44
  var HORIZONTAL_PADDING = '20px';
45
45
  var BORDER_WIDTH = '1px';
46
- var FONT_SIZE = '16px';
46
+ var FONT_SIZE = '14px';
47
47
 
48
48
  var getProp = function getProp(propName) {
49
49
  return function (props) {
@@ -76,7 +76,7 @@ var Select = (0, _styledComponents.default)(_reactSelect.default)(_templateObjec
76
76
  }, getClassName, getClassName, function (_ref7) {
77
77
  var selectedValueTextColor = _ref7.selectedValueTextColor;
78
78
  return selectedValueTextColor || _colors.Color.BLACK;
79
- }, HORIZONTAL_PADDING, getClassName, getClassName, _colors.Color.BLACK, _colors.Color.WHITE_TWO, function (_ref8) {
79
+ }, HORIZONTAL_PADDING, getClassName, FONT_SIZE, getClassName, _colors.Color.BLACK, _colors.Color.WHITE_TWO, function (_ref8) {
80
80
  var placeholderTextColor = _ref8.placeholderTextColor;
81
81
  return placeholderTextColor ? placeholderTextColor : _colors.Color.HOTEL_LIGHT_GREY;
82
82
  });
@@ -153,7 +153,6 @@ var semiBold = function semiBold(props) {
153
153
  type: "semiBold",
154
154
  theme: props === null || props === void 0 ? void 0 : props.theme
155
155
  }),
156
- fontSynthesis: "none",
157
156
  fontWeight: 600
158
157
  } : null;
159
158
  };
@@ -34,48 +34,55 @@ var fontFamilies = {
34
34
  helvetica: 'Helvetica, sans-serif',
35
35
  poppinsFallback: 'sans-serif',
36
36
  lato: "'Lato-Regular', sans-serif",
37
- cabin: "'Cabin-Regular', sans-serif"
37
+ cabin: "'Cabin-Regular', sans-serif",
38
+ cako: "'cako', serif"
38
39
  };
39
40
  exports.fontFamilies = fontFamilies;
40
41
  var italicFonts = {
41
42
  default: "'poppins-light-it', sans-serif",
42
43
  lato: "'Lato-Italic', sans-serif",
43
44
  poppins: "'poppins-light-it', sans-serif",
44
- cabin: "'Cabin-Italic', sans-serif"
45
+ cabin: "'Cabin-Italic', sans-serif",
46
+ cako: "'cako', serif"
45
47
  };
46
48
  exports.italicFonts = italicFonts;
47
49
  var boldFonts = {
48
50
  default: "'poppins-bold', sans-serif",
49
51
  lato: "'Lato-Bold', sans-serif",
50
52
  cabin: "'Cabin-Bold', sans-serif",
51
- poppins: "'poppins-bold', sans-serif"
53
+ poppins: "'poppins-bold', sans-serif",
54
+ cako: "'cako', serif"
52
55
  };
53
56
  exports.boldFonts = boldFonts;
54
57
  var semiBoldFonts = {
55
58
  default: "'poppins-semibold', sans-serif",
56
59
  lato: "'Lato-Semibold', sans-serif",
57
60
  cabin: "'Cabin-Semibold', sans-serif",
58
- poppins: "'poppins-semibold', sans-serif"
61
+ poppins: "'poppins-semibold', sans-serif",
62
+ cako: "'cako', serif"
59
63
  };
60
64
  exports.semiBoldFonts = semiBoldFonts;
61
65
  var mediumFonts = {
62
66
  default: "'poppins-medium', sans-serif",
63
67
  lato: "'Lato-Regular', sans-serif",
64
68
  cabin: "'Cabin-Regular', sans-serif",
65
- poppins: "'poppins-medium', sans-serif"
69
+ poppins: "'poppins-medium', sans-serif",
70
+ cako: "'cako', serif"
66
71
  };
67
72
  exports.mediumFonts = mediumFonts;
68
73
  var lightFonts = {
69
74
  default: "'poppins-light', sans-serif",
70
75
  cabin: "'Cabin-Light', sans-serif",
71
- poppins: "'poppins-light', sans-serif"
76
+ poppins: "'poppins-light', sans-serif",
77
+ cako: "'cako', serif"
72
78
  };
73
79
  exports.lightFonts = lightFonts;
74
80
  var semiBoldItalicFonts = {
75
81
  default: "'poppins-semibold', sans-serif",
76
82
  lato: "'Lato-Semibold-Italic'",
77
83
  cabin: "'Cabin-Semibold-Italic'",
78
- poppins: "'poppins-semibold', sans-serif"
84
+ poppins: "'poppins-semibold', sans-serif",
85
+ cako: "'cako', serif"
79
86
  };
80
87
  exports.semiBoldItalicFonts = semiBoldItalicFonts;
81
88
  var fontSizes = [11, 12, 13, 14, 16, 18, 22, 28, 32]; // https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "travelcircus-styleguide",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "Components Styleguide for a TravelCircus web services",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {