travelcircus-styleguide 1.1.76 → 2.0.1

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: proxima-reg;\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-reg;\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"]);
34
34
 
35
35
  _templateObject = function _templateObject() {
36
36
  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.proxima, _colors.default.tealish, _colors.default.darkBlue, isLight);
51
+ var StyledTitle = (0, _styledComponents.default)(_components.Text)(_templateObject(), _theme.fontFamilies.poppins, _colors.default.tealish, _colors.default.darkBlue, isLight);
52
52
 
53
53
  var Title = function Title(_ref) {
54
54
  var children = _ref.children,
@@ -58,9 +58,9 @@ var Title = function Title(_ref) {
58
58
  };
59
59
 
60
60
  exports.Title = Title;
61
- Title.displayName = "UnderlinedTitle";
61
+ Title.displayName = 'UnderlinedTitle';
62
62
  var Subtitle = (0, _styledComponents.default)(_components.Text).attrs({
63
- as: "p"
63
+ as: 'p'
64
64
  })(_templateObject2(), _colors.default.darkBlue, _theme.fontWeights.extraLight);
65
65
  exports.Subtitle = Subtitle;
66
- Subtitle.displayName = "UnderlinedSubtitle";
66
+ Subtitle.displayName = 'UnderlinedSubtitle';
@@ -79,10 +79,10 @@ var handleFontFamily = function handleFontFamily(props) {
79
79
  if (props.webfontLoader) {
80
80
  var _props$theme3, _props$theme3$fontFam, _props$theme4, _props$theme4$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.proxima);
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);
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.proxima);
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);
86
86
  };
87
87
 
88
88
  var getCustom = function getCustom(props, originalTheme) {
@@ -13,8 +13,6 @@ var _browser = _interopRequireDefault(require("./browser"));
13
13
 
14
14
  var _theme = require("./theme");
15
15
 
16
- var _styledComponents = require("styled-components");
17
-
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
17
 
20
18
  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; }
@@ -11,6 +11,8 @@ var _colors = _interopRequireDefault(require("./colors"));
11
11
 
12
12
  var _browser = _interopRequireDefault(require("./browser"));
13
13
 
14
+ var _theme = require("./theme");
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
17
 
16
18
  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; }
@@ -20,8 +22,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
20
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; }
21
23
 
22
24
  var commonStyle = {
23
- fontFamily: 'inherit',
24
- fontWeight: 'normal',
25
+ fontFamily: _theme.semiBoldFonts.default,
26
+ fontWeight: '600',
25
27
  appearance: 'none',
26
28
  textAlign: 'center',
27
29
  borderWidth: '2px',
@@ -29,46 +29,46 @@ addAliases(breakpoints, aliases);
29
29
  var space = [0, 4, 8, 16, 24, 32, 40, 48, 64, 128];
30
30
  exports.space = space;
31
31
  var fontFamilies = {
32
- default: "'proxima-reg', sans-serif",
33
- proxima: "'proxima-reg', sans-serif",
32
+ default: "'poppins-reg', sans-serif",
33
+ poppins: "'poppins-reg', sans-serif",
34
34
  helvetica: 'Helvetica, sans-serif',
35
- proximaFallback: 'sans-serif',
35
+ poppinsFallback: 'sans-serif',
36
36
  lato: "'Lato-Regular', sans-serif",
37
37
  cabin: "'Cabin-Regular', sans-serif"
38
38
  };
39
39
  exports.fontFamilies = fontFamilies;
40
40
  var italicFonts = {
41
- default: "'proxima-reg-it', sans-serif",
41
+ default: "'poppins-reg-it', sans-serif",
42
42
  lato: "'Lato-Italic', sans-serif",
43
- proxima: "'proxima-reg-it', sans-serif",
43
+ poppins: "'poppins-reg-it', sans-serif",
44
44
  cabin: "'Cabin-Italic', sans-serif"
45
45
  };
46
46
  exports.italicFonts = italicFonts;
47
47
  var boldFonts = {
48
- default: "'proxima-bold', sans-serif",
48
+ default: "'poppins-bold', sans-serif",
49
49
  lato: "'Lato-Bold', sans-serif",
50
50
  cabin: "'Cabin-Bold', sans-serif",
51
- proxima: "'proxima-bold', sans-serif"
51
+ poppins: "'poppins-bold', sans-serif"
52
52
  };
53
53
  exports.boldFonts = boldFonts;
54
54
  var semiBoldFonts = {
55
- default: "'proxima-semibold', sans-serif",
55
+ default: "'poppins-semibold', sans-serif",
56
56
  lato: "'Lato-Semibold', sans-serif",
57
57
  cabin: "'Cabin-Semibold', sans-serif",
58
- proxima: "'proxima-semibold', sans-serif"
58
+ poppins: "'poppins-semibold', sans-serif"
59
59
  };
60
60
  exports.semiBoldFonts = semiBoldFonts;
61
61
  var lightFonts = {
62
- default: "'proxima-light', sans-serif",
62
+ default: "'poppins-light', sans-serif",
63
63
  cabin: "'Cabin-Light', sans-serif",
64
- proxima: "'proxima-light', sans-serif"
64
+ poppins: "'poppins-light', sans-serif"
65
65
  };
66
66
  exports.lightFonts = lightFonts;
67
67
  var semiBoldItalicFonts = {
68
- default: "'proxima-semibold', sans-serif",
68
+ default: "'poppins-semibold', sans-serif",
69
69
  lato: "'Lato-Semibold-Italic'",
70
70
  cabin: "'Cabin-Semibold-Italic'",
71
- proxima: "'proxima-semibold', sans-serif"
71
+ poppins: "'poppins-semibold', sans-serif"
72
72
  };
73
73
  exports.semiBoldItalicFonts = semiBoldItalicFonts;
74
74
  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": "1.1.76",
3
+ "version": "2.0.1",
4
4
  "description": "Components Styleguide for a TravelCircus web services",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {