travelcircus-styleguide 2.1.2 → 2.1.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/theme/flatInput.js +25 -25
- package/dist/theme/roundedInput.js +1 -1
- package/dist/theme/roundedTextarea.js +27 -27
- package/package.json +1 -1
package/dist/theme/flatInput.js
CHANGED
|
@@ -18,16 +18,16 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
20
|
var commonStyle = {
|
|
21
|
-
fontFamily:
|
|
22
|
-
fontWeight:
|
|
23
|
-
appearance:
|
|
24
|
-
textAlign:
|
|
25
|
-
borderWidth:
|
|
26
|
-
borderStyle:
|
|
21
|
+
fontFamily: 'inherit',
|
|
22
|
+
fontWeight: '300',
|
|
23
|
+
appearance: 'none',
|
|
24
|
+
textAlign: 'left',
|
|
25
|
+
borderWidth: '1px',
|
|
26
|
+
borderStyle: 'solid',
|
|
27
27
|
borderRadius: 0,
|
|
28
|
-
boxShadow:
|
|
29
|
-
transition:
|
|
30
|
-
|
|
28
|
+
boxShadow: 'none !important',
|
|
29
|
+
transition: 'border-color 0.1s ease, background-color 0.1s ease',
|
|
30
|
+
'&:disabled': {
|
|
31
31
|
color: "".concat(_colors.default.hotelDarkGrey, " !important"),
|
|
32
32
|
backgroundColor: "".concat(_colors.default.hotelSilver, " !important"),
|
|
33
33
|
borderColor: "".concat(_colors.default.hotelSilver, " !important")
|
|
@@ -40,7 +40,7 @@ var commonVariants = {
|
|
|
40
40
|
backgroundColor: "".concat(_colors.default.white, " !important"),
|
|
41
41
|
borderColor: "".concat(_colors.default.hotelSilver, " !important"),
|
|
42
42
|
color: "".concat(_colors.default.hotelDarkGrey, " !important"),
|
|
43
|
-
|
|
43
|
+
':focus': {
|
|
44
44
|
borderColor: "".concat(_colors.default.tealish, " !important")
|
|
45
45
|
}
|
|
46
46
|
},
|
|
@@ -52,27 +52,27 @@ var commonVariants = {
|
|
|
52
52
|
},
|
|
53
53
|
size: {
|
|
54
54
|
small: {
|
|
55
|
-
paddingTop:
|
|
56
|
-
paddingRight:
|
|
57
|
-
paddingBottom:
|
|
58
|
-
paddingLeft:
|
|
59
|
-
fontSize:
|
|
60
|
-
lineHeight:
|
|
61
|
-
height:
|
|
55
|
+
paddingTop: '12px !important',
|
|
56
|
+
paddingRight: '14px !important',
|
|
57
|
+
paddingBottom: '12px !important',
|
|
58
|
+
paddingLeft: '14px !important',
|
|
59
|
+
fontSize: '12px !important',
|
|
60
|
+
lineHeight: '1.2 !important',
|
|
61
|
+
height: '43px !important'
|
|
62
62
|
},
|
|
63
63
|
medium: {
|
|
64
|
-
paddingTop:
|
|
65
|
-
paddingRight:
|
|
66
|
-
paddingBottom:
|
|
67
|
-
paddingLeft:
|
|
68
|
-
fontSize:
|
|
69
|
-
lineHeight:
|
|
70
|
-
height:
|
|
64
|
+
paddingTop: '15px !important',
|
|
65
|
+
paddingRight: '14px !important',
|
|
66
|
+
paddingBottom: '15px !important',
|
|
67
|
+
paddingLeft: '14px !important',
|
|
68
|
+
fontSize: '14px !important',
|
|
69
|
+
lineHeight: '1.24 !important',
|
|
70
|
+
height: '47px !important'
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
length: {
|
|
74
74
|
long: {
|
|
75
|
-
width:
|
|
75
|
+
width: '100% !important'
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
};
|
|
@@ -18,22 +18,22 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
20
|
var commonStyle = {
|
|
21
|
-
fontFamily:
|
|
22
|
-
fontWeight:
|
|
23
|
-
appearance:
|
|
24
|
-
textAlign:
|
|
25
|
-
borderWidth:
|
|
26
|
-
borderStyle:
|
|
27
|
-
borderRadius:
|
|
28
|
-
boxShadow:
|
|
29
|
-
transition:
|
|
30
|
-
resize:
|
|
21
|
+
fontFamily: 'inherit',
|
|
22
|
+
fontWeight: '300',
|
|
23
|
+
appearance: 'none',
|
|
24
|
+
textAlign: 'left',
|
|
25
|
+
borderWidth: '1px',
|
|
26
|
+
borderStyle: 'solid',
|
|
27
|
+
borderRadius: '5px',
|
|
28
|
+
boxShadow: 'none',
|
|
29
|
+
transition: 'border-color 0.1s ease',
|
|
30
|
+
resize: 'none',
|
|
31
31
|
width: '100%',
|
|
32
|
-
|
|
32
|
+
'&:disabled': {
|
|
33
33
|
color: _colors.default.hotelSmoke,
|
|
34
34
|
borderColor: _colors.default.hotelSmoke
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
'&::placeholder': {
|
|
37
37
|
color: "".concat(_colors.default.lightGrey)
|
|
38
38
|
}
|
|
39
39
|
};
|
|
@@ -44,31 +44,31 @@ var commonVariants = {
|
|
|
44
44
|
backgroundColor: _colors.default.white,
|
|
45
45
|
borderColor: _colors.default.hotelSmoke,
|
|
46
46
|
color: _colors.default.hotelDarkGrey,
|
|
47
|
-
|
|
47
|
+
':hover': {
|
|
48
48
|
borderColor: _colors.default.hotelDarkGrey
|
|
49
49
|
},
|
|
50
|
-
|
|
51
|
-
outline:
|
|
50
|
+
':focus': {
|
|
51
|
+
outline: 'none',
|
|
52
52
|
borderColor: _colors.default.hotelDarkGrey
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
size: {
|
|
57
57
|
small: {
|
|
58
|
-
paddingTop:
|
|
59
|
-
paddingRight:
|
|
60
|
-
paddingBottom:
|
|
61
|
-
paddingLeft:
|
|
62
|
-
fontSize:
|
|
63
|
-
lineHeight:
|
|
58
|
+
paddingTop: '12px',
|
|
59
|
+
paddingRight: '14px',
|
|
60
|
+
paddingBottom: '12px',
|
|
61
|
+
paddingLeft: '14px',
|
|
62
|
+
fontSize: '14px',
|
|
63
|
+
lineHeight: '21px'
|
|
64
64
|
},
|
|
65
65
|
medium: {
|
|
66
|
-
paddingTop:
|
|
67
|
-
paddingRight:
|
|
68
|
-
paddingBottom:
|
|
69
|
-
paddingLeft:
|
|
70
|
-
fontSize:
|
|
71
|
-
lineHeight:
|
|
66
|
+
paddingTop: '15px',
|
|
67
|
+
paddingRight: '17px',
|
|
68
|
+
paddingBottom: '15px',
|
|
69
|
+
paddingLeft: '17px',
|
|
70
|
+
fontSize: '15px',
|
|
71
|
+
lineHeight: '15px'
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
};
|