travelcircus-styleguide 2.0.11 → 2.0.13

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
  });
@@ -50,7 +50,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
50
50
  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; }
51
51
 
52
52
  function _templateObject() {
53
- var data = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n &:focus-within label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n input:not(:focus):not(:placeholder-shown) ~ label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n"]);
53
+ var data = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n &:focus-within label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n &:focus-within input {\n padding-bottom: 5px !important;\n }\n input:not(:focus):not(:placeholder-shown) {\n padding-bottom: 5px !important;\n }\n input:not(:focus):not(:placeholder-shown) ~ label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n"]);
54
54
 
55
55
  _templateObject = function _templateObject() {
56
56
  return data;
@@ -78,6 +78,7 @@ var disabledGrey = '#ADAAA4';
78
78
  var sugarCane = '#FFFCF5';
79
79
  var ceramic = '#FFFEFD';
80
80
  var antiqueGrey = '#F1ECE5';
81
+ var alabaster = '#FCFAF7';
81
82
  var Color = {
82
83
  WHITE: white,
83
84
  BLACK: black,
@@ -151,7 +152,8 @@ var Color = {
151
152
  DISABLED_GREY: disabledGrey,
152
153
  SUGAR_CANE: sugarCane,
153
154
  CERAMIC: ceramic,
154
- ANTIQUE_GREY: antiqueGrey
155
+ ANTIQUE_GREY: antiqueGrey,
156
+ ALABASTER: alabaster
155
157
  };
156
158
  exports.Color = Color;
157
159
  var _default = {
@@ -226,6 +228,7 @@ var _default = {
226
228
  disabledGrey: disabledGrey,
227
229
  sugarCane: sugarCane,
228
230
  ceramic: ceramic,
229
- antiqueGrey: antiqueGrey
231
+ antiqueGrey: antiqueGrey,
232
+ alabaster: alabaster
230
233
  };
231
234
  exports.default = _default;
@@ -22,8 +22,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
22
22
  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
23
 
24
24
  var commonStyle = {
25
- fontFamily: _theme.semiBoldFonts.default,
26
- fontWeight: '600',
25
+ fontFamily: _theme.mediumFonts.default,
26
+ fontWeight: '400',
27
27
  appearance: 'none',
28
28
  textAlign: 'center',
29
29
  borderWidth: '2px',
@@ -134,6 +134,7 @@ var commonVariants = {
134
134
  fontSize: '13px !important',
135
135
  lineHeight: '13px !important',
136
136
  height: '30px !important',
137
+ borderWidth: '1px',
137
138
  '@media (max-width: 768px)': {
138
139
  height: '36px !important'
139
140
  }
@@ -153,7 +154,7 @@ var commonVariants = {
153
154
  paddingRight: '26px',
154
155
  paddingBottom: '13px',
155
156
  paddingLeft: '26px',
156
- fontSize: '16px !important',
157
+ fontSize: '15px !important',
157
158
  lineHeight: '18px !important',
158
159
  height: '40px !important'
159
160
  },
@@ -162,7 +163,7 @@ var commonVariants = {
162
163
  paddingRight: '30px',
163
164
  paddingBottom: '18px',
164
165
  paddingLeft: '30px',
165
- fontSize: '16px !important',
166
+ fontSize: '15px !important',
166
167
  lineHeight: '20px !important',
167
168
  height: '52px !important',
168
169
  '@media (max-width: 768px)': {
@@ -191,7 +192,7 @@ var commonVariants = {
191
192
  display: 'flex',
192
193
  justifyContent: 'center',
193
194
  alignItems: 'center',
194
- fontSize: '16px',
195
+ fontSize: '15px',
195
196
  lineHeight: '21px',
196
197
  height: 'auto'
197
198
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.shadows = exports.fontWeights = exports.extraBold = exports.bolder = exports.bold = exports.semiBold = exports.medium = exports.normal = exports.light = exports.extraLight = exports.fontSizes = exports.semiBoldItalicFonts = exports.lightFonts = exports.semiBoldFonts = exports.boldFonts = exports.italicFonts = exports.fontFamilies = exports.space = exports.breakpoints = void 0;
6
+ exports.default = exports.shadows = exports.fontWeights = exports.extraBold = exports.bolder = exports.bold = exports.semiBold = exports.medium = exports.normal = exports.light = exports.extraLight = exports.fontSizes = exports.semiBoldItalicFonts = exports.lightFonts = exports.mediumFonts = exports.semiBoldFonts = exports.boldFonts = exports.italicFonts = exports.fontFamilies = exports.space = exports.breakpoints = void 0;
7
7
 
8
8
  var _colors = _interopRequireDefault(require("./colors"));
9
9
 
@@ -58,6 +58,13 @@ var semiBoldFonts = {
58
58
  poppins: "'poppins-semibold', sans-serif"
59
59
  };
60
60
  exports.semiBoldFonts = semiBoldFonts;
61
+ var mediumFonts = {
62
+ default: "'poppins-medium', sans-serif",
63
+ lato: "'Lato-Regular', sans-serif",
64
+ cabin: "'Cabin-Regular', sans-serif",
65
+ poppins: "'poppins-medium', sans-serif"
66
+ };
67
+ exports.mediumFonts = mediumFonts;
61
68
  var lightFonts = {
62
69
  default: "'poppins-light', sans-serif",
63
70
  cabin: "'Cabin-Light', sans-serif",
@@ -118,6 +125,7 @@ var theme = {
118
125
  italicFonts: italicFonts,
119
126
  boldFonts: boldFonts,
120
127
  semiBoldFonts: semiBoldFonts,
128
+ mediumFonts: mediumFonts,
121
129
  lightFonts: lightFonts,
122
130
  semiBoldItalicFonts: semiBoldItalicFonts,
123
131
  fontSizes: fontSizes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "travelcircus-styleguide",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "Components Styleguide for a TravelCircus web services",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {