travelcircus-styleguide 2.0.11 → 2.0.12
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.
|
@@ -50,7 +50,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
50
50
|
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; }
|
|
51
51
|
|
|
52
52
|
function _templateObject() {
|
|
53
|
-
var data = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n &:focus-within label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n input:not(:focus):not(:placeholder-shown) ~ label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n"]);
|
|
53
|
+
var data = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n &:focus-within label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n &:focus-within input {\n padding-bottom: 5px !important;\n }\n input:not(:focus):not(:placeholder-shown) {\n padding-bottom: 5px !important;\n }\n input:not(:focus):not(:placeholder-shown) ~ label {\n transform: translate(0, 3px) scale(0.8);\n top: 0;\n transform-origin: top left;\n }\n"]);
|
|
54
54
|
|
|
55
55
|
_templateObject = function _templateObject() {
|
|
56
56
|
return data;
|
package/dist/theme/colors.js
CHANGED
|
@@ -78,6 +78,7 @@ var disabledGrey = '#ADAAA4';
|
|
|
78
78
|
var sugarCane = '#FFFCF5';
|
|
79
79
|
var ceramic = '#FFFEFD';
|
|
80
80
|
var antiqueGrey = '#F1ECE5';
|
|
81
|
+
var alabaster = '#FCFAF7';
|
|
81
82
|
var Color = {
|
|
82
83
|
WHITE: white,
|
|
83
84
|
BLACK: black,
|
|
@@ -151,7 +152,8 @@ var Color = {
|
|
|
151
152
|
DISABLED_GREY: disabledGrey,
|
|
152
153
|
SUGAR_CANE: sugarCane,
|
|
153
154
|
CERAMIC: ceramic,
|
|
154
|
-
ANTIQUE_GREY: antiqueGrey
|
|
155
|
+
ANTIQUE_GREY: antiqueGrey,
|
|
156
|
+
ALABASTER: alabaster
|
|
155
157
|
};
|
|
156
158
|
exports.Color = Color;
|
|
157
159
|
var _default = {
|
|
@@ -226,6 +228,7 @@ var _default = {
|
|
|
226
228
|
disabledGrey: disabledGrey,
|
|
227
229
|
sugarCane: sugarCane,
|
|
228
230
|
ceramic: ceramic,
|
|
229
|
-
antiqueGrey: antiqueGrey
|
|
231
|
+
antiqueGrey: antiqueGrey,
|
|
232
|
+
alabaster: alabaster
|
|
230
233
|
};
|
|
231
234
|
exports.default = _default;
|
|
@@ -22,8 +22,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
22
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; }
|
|
23
23
|
|
|
24
24
|
var commonStyle = {
|
|
25
|
-
fontFamily: _theme.
|
|
26
|
-
fontWeight: '
|
|
25
|
+
fontFamily: _theme.mediumFonts.default,
|
|
26
|
+
fontWeight: '400',
|
|
27
27
|
appearance: 'none',
|
|
28
28
|
textAlign: 'center',
|
|
29
29
|
borderWidth: '2px',
|
|
@@ -134,6 +134,7 @@ var commonVariants = {
|
|
|
134
134
|
fontSize: '13px !important',
|
|
135
135
|
lineHeight: '13px !important',
|
|
136
136
|
height: '30px !important',
|
|
137
|
+
borderWidth: '1px',
|
|
137
138
|
'@media (max-width: 768px)': {
|
|
138
139
|
height: '36px !important'
|
|
139
140
|
}
|
|
@@ -153,7 +154,7 @@ var commonVariants = {
|
|
|
153
154
|
paddingRight: '26px',
|
|
154
155
|
paddingBottom: '13px',
|
|
155
156
|
paddingLeft: '26px',
|
|
156
|
-
fontSize: '
|
|
157
|
+
fontSize: '15px !important',
|
|
157
158
|
lineHeight: '18px !important',
|
|
158
159
|
height: '40px !important'
|
|
159
160
|
},
|
|
@@ -162,7 +163,7 @@ var commonVariants = {
|
|
|
162
163
|
paddingRight: '30px',
|
|
163
164
|
paddingBottom: '18px',
|
|
164
165
|
paddingLeft: '30px',
|
|
165
|
-
fontSize: '
|
|
166
|
+
fontSize: '15px !important',
|
|
166
167
|
lineHeight: '20px !important',
|
|
167
168
|
height: '52px !important',
|
|
168
169
|
'@media (max-width: 768px)': {
|
|
@@ -191,7 +192,7 @@ var commonVariants = {
|
|
|
191
192
|
display: 'flex',
|
|
192
193
|
justifyContent: 'center',
|
|
193
194
|
alignItems: 'center',
|
|
194
|
-
fontSize: '
|
|
195
|
+
fontSize: '15px',
|
|
195
196
|
lineHeight: '21px',
|
|
196
197
|
height: 'auto'
|
|
197
198
|
}
|
package/dist/theme/theme.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.shadows = exports.fontWeights = exports.extraBold = exports.bolder = exports.bold = exports.semiBold = exports.medium = exports.normal = exports.light = exports.extraLight = exports.fontSizes = exports.semiBoldItalicFonts = exports.lightFonts = exports.semiBoldFonts = exports.boldFonts = exports.italicFonts = exports.fontFamilies = exports.space = exports.breakpoints = void 0;
|
|
6
|
+
exports.default = exports.shadows = exports.fontWeights = exports.extraBold = exports.bolder = exports.bold = exports.semiBold = exports.medium = exports.normal = exports.light = exports.extraLight = exports.fontSizes = exports.semiBoldItalicFonts = exports.lightFonts = exports.mediumFonts = exports.semiBoldFonts = exports.boldFonts = exports.italicFonts = exports.fontFamilies = exports.space = exports.breakpoints = void 0;
|
|
7
7
|
|
|
8
8
|
var _colors = _interopRequireDefault(require("./colors"));
|
|
9
9
|
|
|
@@ -58,6 +58,13 @@ var semiBoldFonts = {
|
|
|
58
58
|
poppins: "'poppins-semibold', sans-serif"
|
|
59
59
|
};
|
|
60
60
|
exports.semiBoldFonts = semiBoldFonts;
|
|
61
|
+
var mediumFonts = {
|
|
62
|
+
default: "'poppins-medium', sans-serif",
|
|
63
|
+
lato: "'Lato-Regular', sans-serif",
|
|
64
|
+
cabin: "'Cabin-Regular', sans-serif",
|
|
65
|
+
poppins: "'poppins-medium', sans-serif"
|
|
66
|
+
};
|
|
67
|
+
exports.mediumFonts = mediumFonts;
|
|
61
68
|
var lightFonts = {
|
|
62
69
|
default: "'poppins-light', sans-serif",
|
|
63
70
|
cabin: "'Cabin-Light', sans-serif",
|
|
@@ -118,6 +125,7 @@ var theme = {
|
|
|
118
125
|
italicFonts: italicFonts,
|
|
119
126
|
boldFonts: boldFonts,
|
|
120
127
|
semiBoldFonts: semiBoldFonts,
|
|
128
|
+
mediumFonts: mediumFonts,
|
|
121
129
|
lightFonts: lightFonts,
|
|
122
130
|
semiBoldItalicFonts: semiBoldItalicFonts,
|
|
123
131
|
fontSizes: fontSizes,
|