travelcircus-styleguide 2.0.0 → 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:
|
|
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;
|
|
@@ -5,8 +5,6 @@ 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
|
-
|
|
10
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
9
|
|
|
12
10
|
var _components = require("../../components");
|
|
@@ -15,6 +13,8 @@ var _theme = require("../../theme/theme");
|
|
|
15
13
|
|
|
16
14
|
var _colors = _interopRequireDefault(require("../../theme/colors"));
|
|
17
15
|
|
|
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.poppins, _colors.default.
|
|
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,
|
|
@@ -61,6 +61,6 @@ exports.Title = Title;
|
|
|
61
61
|
Title.displayName = 'UnderlinedTitle';
|
|
62
62
|
var Subtitle = (0, _styledComponents.default)(_components.Text).attrs({
|
|
63
63
|
as: 'p'
|
|
64
|
-
})(_templateObject2(), _colors.default.
|
|
64
|
+
})(_templateObject2(), _colors.default.darkBlue, _theme.fontWeights.extraLight);
|
|
65
65
|
exports.Subtitle = Subtitle;
|
|
66
66
|
Subtitle.displayName = 'UnderlinedSubtitle';
|
package/dist/theme/button.js
CHANGED
|
@@ -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; }
|
package/dist/theme/colors.js
CHANGED
|
@@ -75,7 +75,6 @@ var circusTeal = '#1F92AE';
|
|
|
75
75
|
var circusGreen = '#0CAEA1';
|
|
76
76
|
var circusOrange = '#FC9D3E';
|
|
77
77
|
var disabledGrey = '#ADAAA4';
|
|
78
|
-
var linenWhite = '#F8F3EC';
|
|
79
78
|
var Color = {
|
|
80
79
|
WHITE: white,
|
|
81
80
|
BLACK: black,
|
|
@@ -146,8 +145,7 @@ var Color = {
|
|
|
146
145
|
CIRCUS_TEAL: circusTeal,
|
|
147
146
|
CIRCUS_GREEN: circusGreen,
|
|
148
147
|
CIRCUS_ORANGE: circusOrange,
|
|
149
|
-
DISABLED_GREY: disabledGrey
|
|
150
|
-
LINEN_WHITE: linenWhite
|
|
148
|
+
DISABLED_GREY: disabledGrey
|
|
151
149
|
};
|
|
152
150
|
exports.Color = Color;
|
|
153
151
|
var _default = {
|
|
@@ -219,7 +217,6 @@ var _default = {
|
|
|
219
217
|
circusTeal: circusTeal,
|
|
220
218
|
circusGreen: circusGreen,
|
|
221
219
|
circusOrange: circusOrange,
|
|
222
|
-
disabledGrey: disabledGrey
|
|
223
|
-
linenWhite: linenWhite
|
|
220
|
+
disabledGrey: disabledGrey
|
|
224
221
|
};
|
|
225
222
|
exports.default = _default;
|
|
@@ -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,7 +22,7 @@ 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:
|
|
25
|
+
fontFamily: _theme.semiBoldFonts.default,
|
|
24
26
|
fontWeight: '600',
|
|
25
27
|
appearance: 'none',
|
|
26
28
|
textAlign: 'center',
|
package/dist/theme/theme.js
CHANGED
|
@@ -29,8 +29,8 @@ 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: '
|
|
33
|
-
poppins: '
|
|
32
|
+
default: "'poppins-reg', sans-serif",
|
|
33
|
+
poppins: "'poppins-reg', sans-serif",
|
|
34
34
|
helvetica: 'Helvetica, sans-serif',
|
|
35
35
|
poppinsFallback: 'sans-serif',
|
|
36
36
|
lato: "'Lato-Regular', sans-serif",
|
|
@@ -38,37 +38,37 @@ var fontFamilies = {
|
|
|
38
38
|
};
|
|
39
39
|
exports.fontFamilies = fontFamilies;
|
|
40
40
|
var italicFonts = {
|
|
41
|
-
default: '
|
|
41
|
+
default: "'poppins-reg-it', sans-serif",
|
|
42
42
|
lato: "'Lato-Italic', sans-serif",
|
|
43
|
-
poppins: "'
|
|
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: '
|
|
48
|
+
default: "'poppins-bold', sans-serif",
|
|
49
49
|
lato: "'Lato-Bold', sans-serif",
|
|
50
50
|
cabin: "'Cabin-Bold', sans-serif",
|
|
51
|
-
poppins: '
|
|
51
|
+
poppins: "'poppins-bold', sans-serif"
|
|
52
52
|
};
|
|
53
53
|
exports.boldFonts = boldFonts;
|
|
54
54
|
var semiBoldFonts = {
|
|
55
|
-
default: '
|
|
55
|
+
default: "'poppins-semibold', sans-serif",
|
|
56
56
|
lato: "'Lato-Semibold', sans-serif",
|
|
57
57
|
cabin: "'Cabin-Semibold', sans-serif",
|
|
58
|
-
poppins: '
|
|
58
|
+
poppins: "'poppins-semibold', sans-serif"
|
|
59
59
|
};
|
|
60
60
|
exports.semiBoldFonts = semiBoldFonts;
|
|
61
61
|
var lightFonts = {
|
|
62
|
-
default: '
|
|
62
|
+
default: "'poppins-light', sans-serif",
|
|
63
63
|
cabin: "'Cabin-Light', sans-serif",
|
|
64
|
-
poppins: '
|
|
64
|
+
poppins: "'poppins-light', sans-serif"
|
|
65
65
|
};
|
|
66
66
|
exports.lightFonts = lightFonts;
|
|
67
67
|
var semiBoldItalicFonts = {
|
|
68
|
-
default: '
|
|
68
|
+
default: "'poppins-semibold', sans-serif",
|
|
69
69
|
lato: "'Lato-Semibold-Italic'",
|
|
70
70
|
cabin: "'Cabin-Semibold-Italic'",
|
|
71
|
-
poppins: '
|
|
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
|