travelcircus-styleguide 2.0.2 → 2.0.4
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.
- package/dist/components/IconChecker/IconChecker.js +7 -7
- package/dist/components/IconChecker/images.js +1 -1
- package/dist/components/RoundedInput.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/basic/Icon.js +2 -1
- package/dist/theme/colors.js +8 -2
- package/dist/theme/flatInput.js +1 -1
- package/dist/theme/roundedInput.js +2 -2
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ var IconChecker = function IconChecker(_ref) {
|
|
|
26
26
|
_ref$checked = _ref.checked,
|
|
27
27
|
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
28
28
|
_ref$icon = _ref.icon,
|
|
29
|
-
icon = _ref$icon === void 0 ?
|
|
29
|
+
icon = _ref$icon === void 0 ? 'theater' : _ref$icon,
|
|
30
30
|
rest = _objectWithoutProperties(_ref, ["children", "checked", "icon"]);
|
|
31
31
|
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(_index.Box, _extends({
|
|
@@ -34,21 +34,21 @@ var IconChecker = function IconChecker(_ref) {
|
|
|
34
34
|
cursor: "pointer"
|
|
35
35
|
}, rest), /*#__PURE__*/_react.default.createElement(_index.Flex, {
|
|
36
36
|
justifyContent: "center",
|
|
37
|
-
alignItems: checked ?
|
|
37
|
+
alignItems: checked ? 'baseline' : 'center',
|
|
38
38
|
boxSizing: "border-box",
|
|
39
|
-
border: checked ?
|
|
40
|
-
borderRadius: checked ?
|
|
39
|
+
border: checked ? 'none' : "1px solid ".concat(_colors.default.black),
|
|
40
|
+
borderRadius: checked ? '0' : '100%',
|
|
41
41
|
width: "58px",
|
|
42
42
|
height: "58px",
|
|
43
43
|
mx: "auto",
|
|
44
|
-
backgroundImage: checked ? "url(".concat(_images.active, ")") :
|
|
44
|
+
backgroundImage: checked ? "url(".concat(_images.active, ")") : 'none'
|
|
45
45
|
}, /*#__PURE__*/_react.default.createElement(_index.Icon, {
|
|
46
46
|
as: "div",
|
|
47
47
|
name: icon,
|
|
48
|
-
color: _colors.default.
|
|
48
|
+
color: _colors.default.black,
|
|
49
49
|
checked: checked,
|
|
50
50
|
size: "30px",
|
|
51
|
-
mt: checked ?
|
|
51
|
+
mt: checked ? '10px' : '0'
|
|
52
52
|
})), /*#__PURE__*/_react.default.createElement(_index.Text, {
|
|
53
53
|
fontSize: "14px",
|
|
54
54
|
fontWeight: "extraLight",
|
|
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.active = void 0;
|
|
7
|
-
var active =
|
|
7
|
+
var active = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSI1OCIgdmlld0JveD0iMCAwIDU4IDU4Ij4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxKSI+CiAgICAgICAgPGNpcmNsZSBjeD0iMjgiIGN5PSIyOCIgcj0iMjgiIGZpbGw9IiNGMUVDRTUiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiLz4KICAgICAgICA8cGF0aCBmaWxsPSJibGFjayIgZD0iTTQ4Ljg1NyA0Ni4yMjJjLTE2LjE2OCAwLTEwLjA0My03LjYwMi0yMC44MzUtNy42MDItMTAuNzkxIDAtNC43IDcuNjAyLTIwLjgzNCA3LjYwMiA1LjMzMiA2LjIxIDEyLjI3NyA5LjMxNiAyMC44MzQgOS4zMTYgOC41NTggMCAxNS41MDMtMy4xMDUgMjAuODM1LTkuMzE2eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMjMuMDU5IDQ3LjgxOEwyNS44NzYgNTAuOTggMzIuOTQxIDQzLjkyMiIvPgogICAgPC9nPgo8L3N2Zz4K';
|
|
8
8
|
exports.active = active;
|
|
@@ -120,7 +120,7 @@ var RoundedInput = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
120
120
|
ref: ref,
|
|
121
121
|
borderColor: borderColorUnhovered
|
|
122
122
|
}, props)), error && typeof error === 'string' && /*#__PURE__*/_react.default.createElement(_Flex.default, {
|
|
123
|
-
color: props.errorColor || _colors.default.
|
|
123
|
+
color: props.errorColor || _colors.default.circusRed,
|
|
124
124
|
alignItems: "center",
|
|
125
125
|
mt: {
|
|
126
126
|
sm: '8px',
|
|
@@ -41,7 +41,7 @@ var StyledSwitch = _styledComponents.default.label(_templateObject(), function (
|
|
|
41
41
|
return height;
|
|
42
42
|
}, function (_ref3) {
|
|
43
43
|
var inactiveBackgroundColor = _ref3.inactiveBackgroundColor;
|
|
44
|
-
return inactiveBackgroundColor ||
|
|
44
|
+
return inactiveBackgroundColor || '#F1ECE5';
|
|
45
45
|
}, ANIMATION_DURATION, ANIMATION_DURATION, function (_ref4) {
|
|
46
46
|
var height = _ref4.height;
|
|
47
47
|
return height;
|
|
@@ -54,7 +54,8 @@ var Icon = (0, _styledComponents.default)(_Text.default).attrs(function (props)
|
|
|
54
54
|
as: "i",
|
|
55
55
|
className: "icon-".concat(props.name),
|
|
56
56
|
fontSize: props.size || "auto",
|
|
57
|
-
display: "inline-block"
|
|
57
|
+
display: "inline-block",
|
|
58
|
+
fontWeight: props.isBold ? '1000' : 'inherit'
|
|
58
59
|
};
|
|
59
60
|
})(_templateObject2(), handleSize, _styledSystem.boxShadow);
|
|
60
61
|
Icon.displayName = "Icon";
|
package/dist/theme/colors.js
CHANGED
|
@@ -75,6 +75,8 @@ var circusTeal = '#1F92AE';
|
|
|
75
75
|
var circusGreen = '#0CAEA1';
|
|
76
76
|
var circusOrange = '#FC9D3E';
|
|
77
77
|
var disabledGrey = '#ADAAA4';
|
|
78
|
+
var sugarCane = '#FFFCF5';
|
|
79
|
+
var ceramic = '#FFFEFD';
|
|
78
80
|
var Color = {
|
|
79
81
|
WHITE: white,
|
|
80
82
|
BLACK: black,
|
|
@@ -145,7 +147,9 @@ var Color = {
|
|
|
145
147
|
CIRCUS_TEAL: circusTeal,
|
|
146
148
|
CIRCUS_GREEN: circusGreen,
|
|
147
149
|
CIRCUS_ORANGE: circusOrange,
|
|
148
|
-
DISABLED_GREY: disabledGrey
|
|
150
|
+
DISABLED_GREY: disabledGrey,
|
|
151
|
+
SUGAR_CANE: sugarCane,
|
|
152
|
+
CERAMIC: ceramic
|
|
149
153
|
};
|
|
150
154
|
exports.Color = Color;
|
|
151
155
|
var _default = {
|
|
@@ -217,6 +221,8 @@ var _default = {
|
|
|
217
221
|
circusTeal: circusTeal,
|
|
218
222
|
circusGreen: circusGreen,
|
|
219
223
|
circusOrange: circusOrange,
|
|
220
|
-
disabledGrey: disabledGrey
|
|
224
|
+
disabledGrey: disabledGrey,
|
|
225
|
+
sugarCane: sugarCane,
|
|
226
|
+
ceramic: ceramic
|
|
221
227
|
};
|
|
222
228
|
exports.default = _default;
|
package/dist/theme/flatInput.js
CHANGED
|
@@ -46,7 +46,7 @@ var commonVariants = {
|
|
|
46
46
|
},
|
|
47
47
|
error: {
|
|
48
48
|
backgroundColor: "".concat(_colors.default.white, " !important"),
|
|
49
|
-
borderColor: "".concat(_colors.default.
|
|
49
|
+
borderColor: "".concat(_colors.default.circusRed, " !important"),
|
|
50
50
|
color: "".concat(_colors.default.hotelDarkGrey, " !important")
|
|
51
51
|
}
|
|
52
52
|
},
|
|
@@ -48,13 +48,13 @@ var commonVariants = {
|
|
|
48
48
|
},
|
|
49
49
|
error: {
|
|
50
50
|
backgroundColor: "".concat(_colors.default.white, " !important"),
|
|
51
|
-
borderColor: "".concat(_colors.default.
|
|
51
|
+
borderColor: "".concat(_colors.default.circusRed, " !important"),
|
|
52
52
|
color: "".concat(_colors.default.hotelDarkGrey, " !important")
|
|
53
53
|
},
|
|
54
54
|
customError: {
|
|
55
55
|
backgroundColor: "".concat(_colors.default.white, " !important"),
|
|
56
56
|
borderColor: "".concat(_colors.default.hotelSilver, " !important"),
|
|
57
|
-
color: "".concat(_colors.default.
|
|
57
|
+
color: "".concat(_colors.default.circusRed, " !important"),
|
|
58
58
|
':focus': {
|
|
59
59
|
borderColor: "".concat(_colors.default.hotelDarkGrey, " !important")
|
|
60
60
|
}
|