@flodesk/grain 2.9.0 → 2.10.0
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 +124 -0
- package/es/components/box.js +84 -28
- package/es/components/index.js +9 -1
- package/es/types.js +3 -1
- package/es/utilities.js +55 -8
- package/package.json +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.Arrange = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
17
|
+
|
|
18
|
+
var _utilities = require("../utilities");
|
|
19
|
+
|
|
20
|
+
var _react = _interopRequireDefault(require("react"));
|
|
21
|
+
|
|
22
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
23
|
+
|
|
24
|
+
var _types = require("../types");
|
|
25
|
+
|
|
26
|
+
var _excluded = ["children", "gap", "columns", "autoFlow"];
|
|
27
|
+
|
|
28
|
+
var _templateObject;
|
|
29
|
+
|
|
30
|
+
var __jsx = _react.default.createElement;
|
|
31
|
+
|
|
32
|
+
var Wrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n grid-auto-flow: ", ";\n justify-content: start;\n align-items: center;\n gap: ", ";\n grid-template-columns: ", ";\n"])), function (p) {
|
|
33
|
+
return p.autoFlow;
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return (0, _utilities.getSpace)(p.gap);
|
|
36
|
+
}, function (p) {
|
|
37
|
+
return (0, _utilities.getGridColumns)(p.columns);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
var Arrange = function Arrange(_ref) {
|
|
41
|
+
var children = _ref.children,
|
|
42
|
+
gap = _ref.gap,
|
|
43
|
+
columns = _ref.columns,
|
|
44
|
+
_ref$autoFlow = _ref.autoFlow,
|
|
45
|
+
autoFlow = _ref$autoFlow === void 0 ? 'column' : _ref$autoFlow,
|
|
46
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
|
+
return __jsx(Wrapper, (0, _extends2.default)({
|
|
48
|
+
gap: gap,
|
|
49
|
+
columns: columns,
|
|
50
|
+
autoFlow: autoFlow
|
|
51
|
+
}, props), children);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
exports.Arrange = Arrange;
|
|
55
|
+
Arrange.__docgenInfo = {
|
|
56
|
+
"description": "",
|
|
57
|
+
"methods": [],
|
|
58
|
+
"displayName": "Arrange",
|
|
59
|
+
"props": {
|
|
60
|
+
"autoFlow": {
|
|
61
|
+
"defaultValue": {
|
|
62
|
+
"value": "'column'",
|
|
63
|
+
"computed": false
|
|
64
|
+
},
|
|
65
|
+
"type": {
|
|
66
|
+
"name": "enum",
|
|
67
|
+
"value": [{
|
|
68
|
+
"value": "\"column\"",
|
|
69
|
+
"computed": false
|
|
70
|
+
}, {
|
|
71
|
+
"value": "\"row\"",
|
|
72
|
+
"computed": false
|
|
73
|
+
}]
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"description": ""
|
|
77
|
+
},
|
|
78
|
+
"gap": {
|
|
79
|
+
"type": {
|
|
80
|
+
"name": "union",
|
|
81
|
+
"value": [{
|
|
82
|
+
"name": "enum",
|
|
83
|
+
"value": [{
|
|
84
|
+
"value": "\"xs\"",
|
|
85
|
+
"computed": false
|
|
86
|
+
}, {
|
|
87
|
+
"value": "\"s\"",
|
|
88
|
+
"computed": false
|
|
89
|
+
}, {
|
|
90
|
+
"value": "\"m\"",
|
|
91
|
+
"computed": false
|
|
92
|
+
}, {
|
|
93
|
+
"value": "\"l\"",
|
|
94
|
+
"computed": false
|
|
95
|
+
}, {
|
|
96
|
+
"value": "\"xl\"",
|
|
97
|
+
"computed": false
|
|
98
|
+
}, {
|
|
99
|
+
"value": "\"xxl\"",
|
|
100
|
+
"computed": false
|
|
101
|
+
}]
|
|
102
|
+
}, {
|
|
103
|
+
"name": "number"
|
|
104
|
+
}, {
|
|
105
|
+
"name": "string"
|
|
106
|
+
}]
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"description": ""
|
|
110
|
+
},
|
|
111
|
+
"columns": {
|
|
112
|
+
"type": {
|
|
113
|
+
"name": "union",
|
|
114
|
+
"value": [{
|
|
115
|
+
"name": "array"
|
|
116
|
+
}, {
|
|
117
|
+
"name": "string"
|
|
118
|
+
}]
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"description": ""
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
package/es/components/box.js
CHANGED
|
@@ -15,8 +15,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
|
|
16
16
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
17
17
|
|
|
18
|
-
require("core-js/modules/es.array.concat.js");
|
|
19
|
-
|
|
20
18
|
var _utilities = require("../utilities");
|
|
21
19
|
|
|
22
20
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -25,58 +23,60 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
25
23
|
|
|
26
24
|
var _types = require("../types");
|
|
27
25
|
|
|
28
|
-
var _excluded = ["children", "color", "backgroundColor", "borderSide", "borderWidth", "borderColor", "width", "height", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow", "overflow", "aspectRatio"];
|
|
26
|
+
var _excluded = ["children", "color", "backgroundColor", "borderSide", "borderWidth", "borderColor", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingX", "paddingY", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginX", "marginY", "position", "top", "bottom", "left", "right", "shadow", "overflow", "aspectRatio"];
|
|
29
27
|
|
|
30
28
|
var _templateObject;
|
|
31
29
|
|
|
32
30
|
var __jsx = _react.default.createElement;
|
|
33
31
|
|
|
34
|
-
var
|
|
35
|
-
if (propertyValue || propertyValue === 0) {
|
|
36
|
-
return "".concat(propertyName, ": ").concat((0, _utilities.getSpace)(propertyValue));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
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 position: ", ";\n color: ", ";\n background-color: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: ", ";\n aspect-ratio: ", ";\n"])), function (p) {
|
|
32
|
+
var Wrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n \n padding:", ";\n padding-top:", ";\n padding-bottom:", ";\n padding-left:", ";\n padding-right:", ";\n \n margin:", ";\n margin-top:", ";\n margin-bottom:", ";\n margin-left:", ";\n margin-right:", ";\n \n top:", ";\n bottom:", ";\n left:", ";\n right:", ";\n \n width: ", ";\n min-width: ", ";\n max-width: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n\n color: ", ";\n background-color: ", ";\n \n position: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: ", ";\n aspect-ratio: ", ";\n"])), function (p) {
|
|
41
33
|
return (0, _utilities.getBorder)(p.borderSide, p.borderWidth, p.borderColor);
|
|
42
34
|
}, function (p) {
|
|
43
|
-
return
|
|
35
|
+
return (0, _utilities.getSpace)(p.padding);
|
|
44
36
|
}, function (p) {
|
|
45
|
-
return
|
|
37
|
+
return (0, _utilities.getSpace)(p.paddingTop);
|
|
46
38
|
}, function (p) {
|
|
47
|
-
return
|
|
39
|
+
return (0, _utilities.getSpace)(p.paddingBottom);
|
|
48
40
|
}, function (p) {
|
|
49
|
-
return
|
|
41
|
+
return (0, _utilities.getSpace)(p.paddingLeft);
|
|
50
42
|
}, function (p) {
|
|
51
|
-
return
|
|
43
|
+
return (0, _utilities.getSpace)(p.paddingRight);
|
|
52
44
|
}, function (p) {
|
|
53
|
-
return
|
|
45
|
+
return (0, _utilities.getSpace)(p.margin);
|
|
54
46
|
}, function (p) {
|
|
55
|
-
return
|
|
47
|
+
return (0, _utilities.getSpace)(p.marginTop);
|
|
56
48
|
}, function (p) {
|
|
57
|
-
return
|
|
49
|
+
return (0, _utilities.getSpace)(p.marginBottom);
|
|
58
50
|
}, function (p) {
|
|
59
|
-
return
|
|
51
|
+
return (0, _utilities.getSpace)(p.marginLeft);
|
|
60
52
|
}, function (p) {
|
|
61
|
-
return
|
|
53
|
+
return (0, _utilities.getSpace)(p.marginRight);
|
|
62
54
|
}, function (p) {
|
|
63
|
-
return
|
|
55
|
+
return (0, _utilities.getSpace)(p.top);
|
|
64
56
|
}, function (p) {
|
|
65
|
-
return
|
|
57
|
+
return (0, _utilities.getSpace)(p.bottom);
|
|
66
58
|
}, function (p) {
|
|
67
|
-
return
|
|
59
|
+
return (0, _utilities.getSpace)(p.left);
|
|
68
60
|
}, function (p) {
|
|
69
|
-
return
|
|
61
|
+
return (0, _utilities.getSpace)(p.right);
|
|
70
62
|
}, function (p) {
|
|
71
|
-
return p.
|
|
63
|
+
return (0, _utilities.getDimension)(p.width);
|
|
64
|
+
}, function (p) {
|
|
65
|
+
return (0, _utilities.getDimension)(p.minWidth);
|
|
66
|
+
}, function (p) {
|
|
67
|
+
return (0, _utilities.getDimension)(p.maxWidth);
|
|
68
|
+
}, function (p) {
|
|
69
|
+
return (0, _utilities.getDimension)(p.height);
|
|
70
|
+
}, function (p) {
|
|
71
|
+
return (0, _utilities.getDimension)(p.minHeight);
|
|
72
|
+
}, function (p) {
|
|
73
|
+
return (0, _utilities.getDimension)(p.maxHeight);
|
|
72
74
|
}, function (p) {
|
|
73
75
|
return (0, _utilities.getColor)(p.color);
|
|
74
76
|
}, function (p) {
|
|
75
77
|
return (0, _utilities.getColor)(p.backgroundColor);
|
|
76
78
|
}, function (p) {
|
|
77
|
-
return
|
|
78
|
-
}, function (p) {
|
|
79
|
-
return (0, _utilities.getSpace)(p.height);
|
|
79
|
+
return p.position;
|
|
80
80
|
}, function (p) {
|
|
81
81
|
return (0, _utilities.getRadius)(p.radius);
|
|
82
82
|
}, function (p) {
|
|
@@ -95,7 +95,11 @@ var Box = function Box(_ref) {
|
|
|
95
95
|
borderWidth = _ref.borderWidth,
|
|
96
96
|
borderColor = _ref.borderColor,
|
|
97
97
|
width = _ref.width,
|
|
98
|
+
minWidth = _ref.minWidth,
|
|
99
|
+
maxWidth = _ref.maxWidth,
|
|
98
100
|
height = _ref.height,
|
|
101
|
+
minHeight = _ref.minHeight,
|
|
102
|
+
maxHeight = _ref.maxHeight,
|
|
99
103
|
radius = _ref.radius,
|
|
100
104
|
padding = _ref.padding,
|
|
101
105
|
paddingTop = _ref.paddingTop,
|
|
@@ -127,7 +131,11 @@ var Box = function Box(_ref) {
|
|
|
127
131
|
borderWidth: borderWidth,
|
|
128
132
|
borderColor: borderColor,
|
|
129
133
|
width: width,
|
|
134
|
+
minWidth: minWidth,
|
|
135
|
+
maxWidth: maxWidth,
|
|
130
136
|
height: height,
|
|
137
|
+
minHeight: minHeight,
|
|
138
|
+
maxHeight: maxHeight,
|
|
131
139
|
radius: radius,
|
|
132
140
|
padding: padding,
|
|
133
141
|
paddingTop: paddingY || paddingTop,
|
|
@@ -284,6 +292,30 @@ Box.__docgenInfo = {
|
|
|
284
292
|
"required": false,
|
|
285
293
|
"description": ""
|
|
286
294
|
},
|
|
295
|
+
"minWidth": {
|
|
296
|
+
"type": {
|
|
297
|
+
"name": "union",
|
|
298
|
+
"value": [{
|
|
299
|
+
"name": "number"
|
|
300
|
+
}, {
|
|
301
|
+
"name": "string"
|
|
302
|
+
}]
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"description": ""
|
|
306
|
+
},
|
|
307
|
+
"maxWidth": {
|
|
308
|
+
"type": {
|
|
309
|
+
"name": "union",
|
|
310
|
+
"value": [{
|
|
311
|
+
"name": "number"
|
|
312
|
+
}, {
|
|
313
|
+
"name": "string"
|
|
314
|
+
}]
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"description": ""
|
|
318
|
+
},
|
|
287
319
|
"height": {
|
|
288
320
|
"type": {
|
|
289
321
|
"name": "union",
|
|
@@ -296,6 +328,30 @@ Box.__docgenInfo = {
|
|
|
296
328
|
"required": false,
|
|
297
329
|
"description": ""
|
|
298
330
|
},
|
|
331
|
+
"minHeight": {
|
|
332
|
+
"type": {
|
|
333
|
+
"name": "union",
|
|
334
|
+
"value": [{
|
|
335
|
+
"name": "number"
|
|
336
|
+
}, {
|
|
337
|
+
"name": "string"
|
|
338
|
+
}]
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"description": ""
|
|
342
|
+
},
|
|
343
|
+
"maxHeight": {
|
|
344
|
+
"type": {
|
|
345
|
+
"name": "union",
|
|
346
|
+
"value": [{
|
|
347
|
+
"name": "number"
|
|
348
|
+
}, {
|
|
349
|
+
"name": "string"
|
|
350
|
+
}]
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"description": ""
|
|
354
|
+
},
|
|
299
355
|
"radius": {
|
|
300
356
|
"type": {
|
|
301
357
|
"name": "union",
|
package/es/components/index.js
CHANGED
|
@@ -29,6 +29,12 @@ Object.defineProperty(exports, "TextInput", {
|
|
|
29
29
|
return _textInput.TextInput;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
+
Object.defineProperty(exports, "Arrange", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _arrange.Arrange;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
32
38
|
|
|
33
39
|
var _text = require("./text");
|
|
34
40
|
|
|
@@ -36,4 +42,6 @@ var _box = require("./box");
|
|
|
36
42
|
|
|
37
43
|
var _button = require("./button");
|
|
38
44
|
|
|
39
|
-
var _textInput = require("./text-input");
|
|
45
|
+
var _textInput = require("./text-input");
|
|
46
|
+
|
|
47
|
+
var _arrange = require("./arrange");
|
package/es/types.js
CHANGED
|
@@ -27,6 +27,8 @@ var types = {
|
|
|
27
27
|
weight: _propTypes.default.oneOf(Object.keys(_variables.vars.weights)),
|
|
28
28
|
textAlign: _propTypes.default.oneOf(["left", "center", "right"]),
|
|
29
29
|
overflow: _propTypes.default.oneOf(["visible", "hidden", "scroll", "auto"]),
|
|
30
|
-
fieldSize: _propTypes.default.oneOf(["s", "m"])
|
|
30
|
+
fieldSize: _propTypes.default.oneOf(["s", "m"]),
|
|
31
|
+
columns: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.string]),
|
|
32
|
+
autoFlow: _propTypes.default.oneOf(["column", "row"])
|
|
31
33
|
};
|
|
32
34
|
exports.types = types;
|
package/es/utilities.js
CHANGED
|
@@ -23,12 +23,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
23
23
|
Object.defineProperty(exports, "__esModule", {
|
|
24
24
|
value: true
|
|
25
25
|
});
|
|
26
|
-
exports.getBorder = exports.getSpace = exports.getTransition = exports.getRadius = exports.getWeight = exports.getTextSize = exports.getShadow = exports.getColor = exports.getCssVar = exports.getCssVarCore = exports.isBrowser = void 0;
|
|
26
|
+
exports.getBorder = exports.getGridColumns = exports.getDimension = exports.getSpace = exports.getTransition = exports.getRadius = exports.getWeight = exports.getTextSize = exports.getShadow = exports.getColor = exports.getCssVar = exports.getCssVarCore = exports.isBrowser = void 0;
|
|
27
27
|
|
|
28
28
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
29
29
|
|
|
30
30
|
require("core-js/modules/es.array.concat.js");
|
|
31
31
|
|
|
32
|
+
require("core-js/modules/es.array.map.js");
|
|
33
|
+
|
|
32
34
|
var _variables = require("./variables");
|
|
33
35
|
|
|
34
36
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -54,6 +56,18 @@ var u = function u(amount) {
|
|
|
54
56
|
return "calc(var(--grn-unit) * ".concat(amount, ")");
|
|
55
57
|
};
|
|
56
58
|
|
|
59
|
+
var isNumber = function isNumber(value) {
|
|
60
|
+
return typeof value === "number";
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
var isString = function isString(value) {
|
|
64
|
+
return typeof value === "string";
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var isArray = function isArray(value) {
|
|
68
|
+
return Array.isArray(value);
|
|
69
|
+
};
|
|
70
|
+
|
|
57
71
|
var getColor = function getColor(color) {
|
|
58
72
|
if (color in _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _variables.vars.colors.baseColors), _variables.vars.colors.greys), _variables.vars.colors.semanticColors), _variables.vars.colors.fades)) {
|
|
59
73
|
return getCssVar("color", color);
|
|
@@ -113,20 +127,53 @@ var getTransition = function getTransition(transition) {
|
|
|
113
127
|
exports.getTransition = getTransition;
|
|
114
128
|
|
|
115
129
|
var getSpace = function getSpace(space) {
|
|
116
|
-
if (
|
|
117
|
-
if (space in _variables.vars.spaces) {
|
|
118
|
-
return getCssVar("space", space);
|
|
119
|
-
}
|
|
130
|
+
if (space === 0) return space;
|
|
120
131
|
|
|
121
|
-
|
|
132
|
+
if (isNumber(space)) {
|
|
133
|
+
return u(space);
|
|
122
134
|
}
|
|
123
135
|
|
|
124
|
-
if (space
|
|
125
|
-
|
|
136
|
+
if (space in _variables.vars.spaces) {
|
|
137
|
+
return getCssVar("space", space);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (isString(space)) {
|
|
141
|
+
return space;
|
|
142
|
+
}
|
|
126
143
|
};
|
|
127
144
|
|
|
128
145
|
exports.getSpace = getSpace;
|
|
129
146
|
|
|
147
|
+
var getDimension = function getDimension(dimension) {
|
|
148
|
+
if (dimension === 0) return dimension;
|
|
149
|
+
|
|
150
|
+
if (isNumber(dimension)) {
|
|
151
|
+
return u(dimension);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (isString(dimension)) {
|
|
155
|
+
return dimension;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
exports.getDimension = getDimension;
|
|
160
|
+
|
|
161
|
+
var getGridColumns = function getGridColumns(columns) {
|
|
162
|
+
if (columns) {
|
|
163
|
+
if (isArray(columns)) {
|
|
164
|
+
return columns.map(function (column) {
|
|
165
|
+
return getDimension(column);
|
|
166
|
+
}).join(" ");
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (isString(columns)) {
|
|
170
|
+
return columns;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
exports.getGridColumns = getGridColumns;
|
|
176
|
+
|
|
130
177
|
var getBorder = function getBorder(borderSide) {
|
|
131
178
|
var borderWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "1px";
|
|
132
179
|
var borderColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "border";
|