@flodesk/grain 2.19.6 → 2.19.7
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/es/components/arrange.js +1 -1
- package/es/components/box.js +20 -20
- package/es/components/icon.js +3 -3
- package/es/components/text-input.js +5 -5
- package/es/components/text.js +1 -1
- package/es/utilities/index.js +27 -13
- package/es/utilities/responsive.js +58 -2
- package/es/utilities/styles.js +8 -46
- package/package.json +1 -1
package/es/components/arrange.js
CHANGED
|
@@ -32,7 +32,7 @@ var __jsx = _react.default.createElement;
|
|
|
32
32
|
var Wrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n ", ";\n ", ";\n grid-template-columns: ", ";\n justify-items: ", ";\n align-items: ", ";\n justify-content: ", ";\n align-content: ", ";\n place-items: ", ";\n place-content: ", ";\n"])), function (p) {
|
|
33
33
|
return !p.columns && "grid-auto-flow: ".concat(p.autoFlow);
|
|
34
34
|
}, function (p) {
|
|
35
|
-
return (0, _utilities.
|
|
35
|
+
return (0, _utilities.getResponsiveSpace)('gap', p.gap);
|
|
36
36
|
}, function (p) {
|
|
37
37
|
return (0, _utilities.getGridColumns)(p.columns);
|
|
38
38
|
}, function (p) {
|
package/es/components/box.js
CHANGED
|
@@ -32,45 +32,45 @@ var __jsx = _react.default.createElement;
|
|
|
32
32
|
var Wrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n \n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n\n color: ", ";\n background-color: ", ";\n \n position: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: ", ";\n aspect-ratio: ", ";\n"])), function (p) {
|
|
33
33
|
return (0, _utilities.getBorder)(p.borderSide, p.borderWidth, p.borderColor);
|
|
34
34
|
}, function (p) {
|
|
35
|
-
return (0, _utilities.
|
|
35
|
+
return (0, _utilities.getResponsiveSpace)('padding', p.padding);
|
|
36
36
|
}, function (p) {
|
|
37
|
-
return (0, _utilities.
|
|
37
|
+
return (0, _utilities.getResponsiveSpace)('padding-top', p.paddingTop);
|
|
38
38
|
}, function (p) {
|
|
39
|
-
return (0, _utilities.
|
|
39
|
+
return (0, _utilities.getResponsiveSpace)('padding-bottom', p.paddingBottom);
|
|
40
40
|
}, function (p) {
|
|
41
|
-
return (0, _utilities.
|
|
41
|
+
return (0, _utilities.getResponsiveSpace)('padding-left', p.paddingLeft);
|
|
42
42
|
}, function (p) {
|
|
43
|
-
return (0, _utilities.
|
|
43
|
+
return (0, _utilities.getResponsiveSpace)('padding-right', p.paddingRight);
|
|
44
44
|
}, function (p) {
|
|
45
|
-
return (0, _utilities.
|
|
45
|
+
return (0, _utilities.getResponsiveSpace)('margin', p.margin);
|
|
46
46
|
}, function (p) {
|
|
47
|
-
return (0, _utilities.
|
|
47
|
+
return (0, _utilities.getResponsiveSpace)('margin-top', p.marginTop);
|
|
48
48
|
}, function (p) {
|
|
49
|
-
return (0, _utilities.
|
|
49
|
+
return (0, _utilities.getResponsiveSpace)('margin-bottom', p.marginBottom);
|
|
50
50
|
}, function (p) {
|
|
51
|
-
return (0, _utilities.
|
|
51
|
+
return (0, _utilities.getResponsiveSpace)('margin-left', p.marginLeft);
|
|
52
52
|
}, function (p) {
|
|
53
|
-
return (0, _utilities.
|
|
53
|
+
return (0, _utilities.getResponsiveSpace)('margin-right', p.marginRight);
|
|
54
54
|
}, function (p) {
|
|
55
|
-
return (0, _utilities.
|
|
55
|
+
return (0, _utilities.getResponsiveSpace)('top', p.top);
|
|
56
56
|
}, function (p) {
|
|
57
|
-
return (0, _utilities.
|
|
57
|
+
return (0, _utilities.getResponsiveSpace)('bottom', p.bottom);
|
|
58
58
|
}, function (p) {
|
|
59
|
-
return (0, _utilities.
|
|
59
|
+
return (0, _utilities.getResponsiveSpace)('left', p.left);
|
|
60
60
|
}, function (p) {
|
|
61
|
-
return (0, _utilities.
|
|
61
|
+
return (0, _utilities.getResponsiveSpace)('right', p.right);
|
|
62
62
|
}, function (p) {
|
|
63
|
-
return (0, _utilities.
|
|
63
|
+
return (0, _utilities.getResponsiveDimension)('width', p.width);
|
|
64
64
|
}, function (p) {
|
|
65
|
-
return (0, _utilities.
|
|
65
|
+
return (0, _utilities.getResponsiveDimension)('min-width', p.minWidth);
|
|
66
66
|
}, function (p) {
|
|
67
|
-
return (0, _utilities.
|
|
67
|
+
return (0, _utilities.getResponsiveDimension)('max-width', p.maxWidth);
|
|
68
68
|
}, function (p) {
|
|
69
|
-
return (0, _utilities.
|
|
69
|
+
return (0, _utilities.getResponsiveDimension)('height', p.height);
|
|
70
70
|
}, function (p) {
|
|
71
|
-
return (0, _utilities.
|
|
71
|
+
return (0, _utilities.getResponsiveDimension)('min-height', p.minHeight);
|
|
72
72
|
}, function (p) {
|
|
73
|
-
return (0, _utilities.
|
|
73
|
+
return (0, _utilities.getResponsiveDimension)('max-height', p.maxHeight);
|
|
74
74
|
}, function (p) {
|
|
75
75
|
return (0, _utilities.getColor)(p.color);
|
|
76
76
|
}, function (p) {
|
package/es/components/icon.js
CHANGED
|
@@ -31,14 +31,14 @@ var _templateObject;
|
|
|
31
31
|
|
|
32
32
|
var __jsx = _react.default.createElement;
|
|
33
33
|
|
|
34
|
-
var Wrapper = _styled.default.span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n width: ", ";\n color: ", ";\n \n svg {\n display: block;\n ", ";\n ", "
|
|
34
|
+
var Wrapper = _styled.default.span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n width: ", ";\n color: ", ";\n \n svg {\n display: block;\n height: ", ";\n ", "\n"])), function (p) {
|
|
35
35
|
return (0, _utilities.getColor)(p.color);
|
|
36
36
|
}, function (p) {
|
|
37
37
|
return (0, _utilities.getColor)(p.color);
|
|
38
38
|
}, function (p) {
|
|
39
|
-
return (0, _utilities.getIconSize)(
|
|
39
|
+
return (0, _utilities.getIconSize)(p.size);
|
|
40
40
|
}, function (p) {
|
|
41
|
-
return p.hasEvenBoundary && (0, _utilities.getIconSize)(
|
|
41
|
+
return p.hasEvenBoundary && "width: ".concat((0, _utilities.getIconSize)(p.size), "}");
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
var Icon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
@@ -42,13 +42,11 @@ var variables = (0, _react2.css)(_templateObject || (_templateObject = (0, _tagg
|
|
|
42
42
|
var inputSizesStyles = {
|
|
43
43
|
s: {
|
|
44
44
|
height: 'var(--grn-textBoxHeight-s)',
|
|
45
|
-
padding: '0 var(--grn-fieldTextBoxPaddingX-s)'
|
|
46
|
-
borderRadius: (0, _utilities.getRadius)('xs')
|
|
45
|
+
padding: '0 var(--grn-fieldTextBoxPaddingX-s)'
|
|
47
46
|
},
|
|
48
47
|
m: {
|
|
49
48
|
height: 'var(--grn-textBoxHeight-m)',
|
|
50
|
-
padding: '0 var(--grn-fieldTextBoxPaddingX-m)'
|
|
51
|
-
borderRadius: (0, _utilities.getRadius)('s')
|
|
49
|
+
padding: '0 var(--grn-fieldTextBoxPaddingX-m)'
|
|
52
50
|
}
|
|
53
51
|
};
|
|
54
52
|
var sizesStyles = {
|
|
@@ -72,7 +70,9 @@ var Label = _styled.default.label(_templateObject3 || (_templateObject3 = (0, _t
|
|
|
72
70
|
return sizesStyles[p.size].labelGap;
|
|
73
71
|
});
|
|
74
72
|
|
|
75
|
-
var InputField = _styled.default.input(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n appearance: none;\n border: none;\n font-family: inherit;\n background-color: transparent;\n color: inherit;\n font-size: inherit;\n transition-property: border-color; \n border: 1px solid var(--grn-color-fieldBorder);\n width: 100%;\n ", ";\n ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n }\n\n &:hover {\n border-color: var(--grn-color-fieldBorder-hover);\n }\n \n &:focus {\n transition: 0s;\n border-color: var(--grn-color-grey6);\n }\n"])), _foundational.transitions, function (p) {
|
|
73
|
+
var InputField = _styled.default.input(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n appearance: none;\n border: none;\n font-family: inherit;\n background-color: transparent;\n color: inherit;\n font-size: inherit;\n transition-property: border-color; \n border: 1px solid var(--grn-color-fieldBorder);\n width: 100%;\n border-radius: ", ";\n ", ";\n ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n }\n\n &:hover {\n border-color: var(--grn-color-fieldBorder-hover);\n }\n \n &:focus {\n transition: 0s;\n border-color: var(--grn-color-grey6);\n }\n"])), _foundational.transitions, function (p) {
|
|
74
|
+
return (0, _utilities.getRadius)('s');
|
|
75
|
+
}, function (p) {
|
|
76
76
|
return inputSizesStyles[p.size];
|
|
77
77
|
}, function (p) {
|
|
78
78
|
return p.paddingLeft && "padding-left: ".concat(p.paddingLeft, "px");
|
package/es/components/text.js
CHANGED
|
@@ -30,7 +30,7 @@ var _templateObject;
|
|
|
30
30
|
var __jsx = _react.default.createElement;
|
|
31
31
|
|
|
32
32
|
var Wrapper = _styled.default.span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n ", ";\n font-weight: ", ";\n color: ", ";\n text-align: ", ";\n \n ", ";\n ", ";\n ", ";\n"])), function (p) {
|
|
33
|
-
return (0, _utilities.
|
|
33
|
+
return (0, _utilities.getResponsiveTextSize)(p.size);
|
|
34
34
|
}, function (p) {
|
|
35
35
|
return (0, _utilities.getWeight)(p.weight);
|
|
36
36
|
}, function (p) {
|
package/es/utilities/index.js
CHANGED
|
@@ -8,25 +8,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
Object.defineProperty(exports, "getDimension", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
11
|
+
return _responsive.getDimension;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
Object.defineProperty(exports, "
|
|
14
|
+
Object.defineProperty(exports, "getResponsiveDimension", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function get() {
|
|
17
|
-
return
|
|
17
|
+
return _responsive.getResponsiveDimension;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "getTextSize", {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function get() {
|
|
23
|
-
return
|
|
23
|
+
return _responsive.getTextSize;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "getResponsiveTextSize", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _responsive.getResponsiveTextSize;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "getResponsiveSpace", {
|
|
27
33
|
enumerable: true,
|
|
28
34
|
get: function get() {
|
|
29
|
-
return
|
|
35
|
+
return _responsive.getResponsiveSpace;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "getColor", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _styles.getColor;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "getShadow", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _styles.getShadow;
|
|
30
48
|
}
|
|
31
49
|
});
|
|
32
50
|
Object.defineProperty(exports, "getWeight", {
|
|
@@ -47,12 +65,6 @@ Object.defineProperty(exports, "getTransition", {
|
|
|
47
65
|
return _styles.getTransition;
|
|
48
66
|
}
|
|
49
67
|
});
|
|
50
|
-
Object.defineProperty(exports, "getSpace", {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function get() {
|
|
53
|
-
return _styles.getSpace;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
68
|
Object.defineProperty(exports, "getIconSize", {
|
|
57
69
|
enumerable: true,
|
|
58
70
|
get: function get() {
|
|
@@ -120,6 +132,8 @@ Object.defineProperty(exports, "isObject", {
|
|
|
120
132
|
}
|
|
121
133
|
});
|
|
122
134
|
|
|
135
|
+
var _responsive = require("./responsive");
|
|
136
|
+
|
|
123
137
|
var _styles = require("./styles");
|
|
124
138
|
|
|
125
139
|
var _helpers = require("./helpers");
|
|
@@ -7,7 +7,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.mapObjToMedia = exports.getMediaCss = void 0;
|
|
10
|
+
exports.getResponsiveTextSize = exports.getTextSize = exports.getResponsiveSpace = exports.getResponsiveDimension = exports.getDimension = exports.mapObjToMedia = exports.getMediaCss = void 0;
|
|
11
11
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
|
|
@@ -49,4 +49,60 @@ var mapObjToMedia = function mapObjToMedia(property, obj, varName) {
|
|
|
49
49
|
}).join("");
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
exports.mapObjToMedia = mapObjToMedia;
|
|
52
|
+
exports.mapObjToMedia = mapObjToMedia;
|
|
53
|
+
|
|
54
|
+
var getDimension = function getDimension(dimension) {
|
|
55
|
+
if (dimension === 0) return dimension;
|
|
56
|
+
if ((0, _.isString)(dimension)) return dimension;
|
|
57
|
+
if ((0, _.isNumber)(dimension)) return (0, _.u)(dimension);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
exports.getDimension = getDimension;
|
|
61
|
+
|
|
62
|
+
var getResponsiveDimension = function getResponsiveDimension(property, dimension) {
|
|
63
|
+
if ((0, _.isObject)(dimension)) {
|
|
64
|
+
return mapObjToMedia(property, dimension, _variables.varNames.space.prefix);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (dimension === 0) return "".concat(property, ": ").concat(dimension);
|
|
68
|
+
if ((0, _.isString)(dimension)) return "".concat(property, ": ").concat(dimension);
|
|
69
|
+
if ((0, _.isNumber)(dimension)) return "".concat(property, ": ").concat((0, _.u)(dimension));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
exports.getResponsiveDimension = getResponsiveDimension;
|
|
73
|
+
|
|
74
|
+
var getResponsiveSpace = function getResponsiveSpace(property, space) {
|
|
75
|
+
if (space in _variables.vars.spaces) {
|
|
76
|
+
return "".concat(property, ": ").concat((0, _.getCssVar)(_variables.varNames.space.prefix, space));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return getResponsiveDimension(property, space);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.getResponsiveSpace = getResponsiveSpace;
|
|
83
|
+
|
|
84
|
+
var getTextSize = function getTextSize(size) {
|
|
85
|
+
if (size in _variables.vars.texts) {
|
|
86
|
+
return (0, _.getCssVar)(_variables.varNames.text.prefix, size);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if ((0, _.isString)(size)) return size;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
exports.getTextSize = getTextSize;
|
|
93
|
+
|
|
94
|
+
var getResponsiveTextSize = function getResponsiveTextSize(size) {
|
|
95
|
+
var property = "font-size";
|
|
96
|
+
|
|
97
|
+
if (size in _variables.vars.texts) {
|
|
98
|
+
return "".concat(property, ": ").concat((0, _.getCssVar)(_variables.varNames.text.prefix, size));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if ((0, _.isObject)(size)) {
|
|
102
|
+
return mapObjToMedia(property, size, _variables.varNames.text.prefix);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if ((0, _.isString)(size)) return "".concat(property, ": ").concat(size);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
exports.getResponsiveTextSize = getResponsiveTextSize;
|
package/es/utilities/styles.js
CHANGED
|
@@ -23,12 +23,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
23
23
|
Object.defineProperty(exports, "__esModule", {
|
|
24
24
|
value: true
|
|
25
25
|
});
|
|
26
|
-
exports.getBorder = exports.getGridColumns = exports.getIconSize = exports.
|
|
27
|
-
|
|
28
|
-
require("core-js/modules/es.array.concat.js");
|
|
26
|
+
exports.getBorder = exports.getGridColumns = exports.getIconSize = exports.getTransition = exports.getRadius = exports.getWeight = exports.getShadow = exports.getColor = void 0;
|
|
29
27
|
|
|
30
28
|
require("core-js/modules/es.array.map.js");
|
|
31
29
|
|
|
30
|
+
require("core-js/modules/es.array.concat.js");
|
|
31
|
+
|
|
32
32
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
33
33
|
|
|
34
34
|
var _ = require(".");
|
|
@@ -43,18 +43,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
43
43
|
|
|
44
44
|
var allColors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _variables.vars.colors.baseColors), _variables.vars.colors.greys), _variables.vars.colors.semanticColors), _variables.vars.colors.fades);
|
|
45
45
|
|
|
46
|
-
var getDimension = function getDimension(property, dimension) {
|
|
47
|
-
if ((0, _.isObject)(dimension)) {
|
|
48
|
-
return (0, _responsive.mapObjToMedia)(property, dimension, _variables.varNames.space.prefix);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (dimension === 0) return "".concat(property, ": ").concat(dimension);
|
|
52
|
-
if ((0, _.isString)(dimension)) return "".concat(property, ": ").concat(dimension);
|
|
53
|
-
if ((0, _.isNumber)(dimension)) return "".concat(property, ": ").concat((0, _.u)(dimension));
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
exports.getDimension = getDimension;
|
|
57
|
-
|
|
58
46
|
var getColor = function getColor(color) {
|
|
59
47
|
if (color in allColors) {
|
|
60
48
|
return (0, _.getCssVar)(_variables.varNames.color.prefix, color);
|
|
@@ -75,22 +63,6 @@ var getShadow = function getShadow(shadow) {
|
|
|
75
63
|
|
|
76
64
|
exports.getShadow = getShadow;
|
|
77
65
|
|
|
78
|
-
var getTextSize = function getTextSize(size) {
|
|
79
|
-
var property = "font-size";
|
|
80
|
-
|
|
81
|
-
if (size in _variables.vars.texts) {
|
|
82
|
-
return "".concat(property, ": ").concat((0, _.getCssVar)(_variables.varNames.text.prefix, size));
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if ((0, _.isObject)(size)) {
|
|
86
|
-
return (0, _responsive.mapObjToMedia)(property, size, _variables.varNames.text.prefix);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if ((0, _.isString)(size)) return "".concat(property, ": ").concat(size);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
exports.getTextSize = getTextSize;
|
|
93
|
-
|
|
94
66
|
var getWeight = function getWeight(weight) {
|
|
95
67
|
if (weight in _variables.vars.weights) {
|
|
96
68
|
return (0, _.getCssVar)(_variables.varNames.weight.prefix, weight);
|
|
@@ -119,22 +91,12 @@ var getTransition = function getTransition(transition) {
|
|
|
119
91
|
|
|
120
92
|
exports.getTransition = getTransition;
|
|
121
93
|
|
|
122
|
-
var
|
|
123
|
-
if (space in _variables.vars.spaces) {
|
|
124
|
-
return "".concat(property, ": ").concat((0, _.getCssVar)(_variables.varNames.space.prefix, space));
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return getDimension(property, space);
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
exports.getSpace = getSpace;
|
|
131
|
-
|
|
132
|
-
var getIconSize = function getIconSize(property, size) {
|
|
94
|
+
var getIconSize = function getIconSize(size) {
|
|
133
95
|
if (size in _variables.vars.icons) {
|
|
134
|
-
return
|
|
96
|
+
return (0, _.getCssVar)(_variables.varNames.icon.prefix, size);
|
|
135
97
|
}
|
|
136
98
|
|
|
137
|
-
return
|
|
99
|
+
return (0, _responsive.getDimension)(size);
|
|
138
100
|
};
|
|
139
101
|
|
|
140
102
|
exports.getIconSize = getIconSize;
|
|
@@ -143,7 +105,7 @@ var getGridColumns = function getGridColumns(columns) {
|
|
|
143
105
|
if (columns) {
|
|
144
106
|
if ((0, _.isArray)(columns)) {
|
|
145
107
|
return columns.map(function (column) {
|
|
146
|
-
return getDimension(column);
|
|
108
|
+
return (0, _responsive.getDimension)(column);
|
|
147
109
|
}).join(" ");
|
|
148
110
|
}
|
|
149
111
|
|
|
@@ -167,7 +129,7 @@ var getBorder = function getBorder(borderSide, borderWidth, borderColor) {
|
|
|
167
129
|
if (borderSide in borderSides) {
|
|
168
130
|
return "\n ".concat(borderSides[borderSide].map(function (side) {
|
|
169
131
|
return "border-".concat(side, "-style: solid");
|
|
170
|
-
}).join(";"), ";\n\n border-color: ").concat(getColor(borderColor), ";\n ").concat(getDimension("border-width", borderWidth), ";\n ");
|
|
132
|
+
}).join(";"), ";\n\n border-color: ").concat(getColor(borderColor), ";\n ").concat((0, _responsive.getDimension)("border-width", borderWidth), ";\n ");
|
|
171
133
|
}
|
|
172
134
|
};
|
|
173
135
|
|