travelcircus-styleguide 1.1.76 → 2.0.0

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';\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;
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Title = exports.Subtitle = exports.isLight = void 0;
7
7
 
8
+ var _react = _interopRequireDefault(require("react"));
9
+
8
10
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
11
 
10
12
  var _components = require("../../components");
@@ -13,8 +15,6 @@ var _theme = require("../../theme/theme");
13
15
 
14
16
  var _colors = _interopRequireDefault(require("../../theme/colors"));
15
17
 
16
- var _react = _interopRequireDefault(require("react"));
17
-
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
20
  function _templateObject2() {
@@ -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.circusRed, _colors.default.black, 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"
64
- })(_templateObject2(), _colors.default.darkBlue, _theme.fontWeights.extraLight);
63
+ as: 'p'
64
+ })(_templateObject2(), _colors.default.black, _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) {
@@ -75,6 +75,7 @@ var circusTeal = '#1F92AE';
75
75
  var circusGreen = '#0CAEA1';
76
76
  var circusOrange = '#FC9D3E';
77
77
  var disabledGrey = '#ADAAA4';
78
+ var linenWhite = '#F8F3EC';
78
79
  var Color = {
79
80
  WHITE: white,
80
81
  BLACK: black,
@@ -145,7 +146,8 @@ var Color = {
145
146
  CIRCUS_TEAL: circusTeal,
146
147
  CIRCUS_GREEN: circusGreen,
147
148
  CIRCUS_ORANGE: circusOrange,
148
- DISABLED_GREY: disabledGrey
149
+ DISABLED_GREY: disabledGrey,
150
+ LINEN_WHITE: linenWhite
149
151
  };
150
152
  exports.Color = Color;
151
153
  var _default = {
@@ -217,6 +219,7 @@ var _default = {
217
219
  circusTeal: circusTeal,
218
220
  circusGreen: circusGreen,
219
221
  circusOrange: circusOrange,
220
- disabledGrey: disabledGrey
222
+ disabledGrey: disabledGrey,
223
+ linenWhite: linenWhite
221
224
  };
222
225
  exports.default = _default;
@@ -21,7 +21,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
21
21
 
22
22
  var commonStyle = {
23
23
  fontFamily: 'inherit',
24
- fontWeight: 'normal',
24
+ fontWeight: '600',
25
25
  appearance: 'none',
26
26
  textAlign: 'center',
27
27
  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, sans-serif',
33
+ poppins: 'Poppins, 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, sans-serif',
42
42
  lato: "'Lato-Italic', sans-serif",
43
- proxima: "'proxima-reg-it', sans-serif",
43
+ poppins: "'Poppins', 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, 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, sans-serif'
52
52
  };
53
53
  exports.boldFonts = boldFonts;
54
54
  var semiBoldFonts = {
55
- default: "'proxima-semibold', sans-serif",
55
+ default: 'Poppins, 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, sans-serif'
59
59
  };
60
60
  exports.semiBoldFonts = semiBoldFonts;
61
61
  var lightFonts = {
62
- default: "'proxima-light', sans-serif",
62
+ default: 'Poppins, sans-serif',
63
63
  cabin: "'Cabin-Light', sans-serif",
64
- proxima: "'proxima-light', sans-serif"
64
+ poppins: 'Poppins, sans-serif'
65
65
  };
66
66
  exports.lightFonts = lightFonts;
67
67
  var semiBoldItalicFonts = {
68
- default: "'proxima-semibold', sans-serif",
68
+ default: 'Poppins, sans-serif',
69
69
  lato: "'Lato-Semibold-Italic'",
70
70
  cabin: "'Cabin-Semibold-Italic'",
71
- proxima: "'proxima-semibold', sans-serif"
71
+ poppins: 'Poppins, 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.0",
4
4
  "description": "Components Styleguide for a TravelCircus web services",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {