@flodesk/grain 2.10.0 → 2.13.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 +182 -5
- package/es/components/button.js +12 -8
- package/es/components/icon.js +123 -0
- package/es/components/index.js +9 -1
- package/es/components/text.js +0 -2
- package/es/icons/icon-align-center.js +62 -0
- package/es/icons/icon-align-left.js +62 -0
- package/es/icons/icon-align-right.js +62 -0
- package/es/icons/icon-arrow-down.js +55 -0
- package/es/icons/icon-arrow-left.js +55 -0
- package/es/icons/icon-arrow-right.js +55 -0
- package/es/icons/icon-arrow-up.js +55 -0
- package/es/icons/icon-browser.js +84 -0
- package/es/icons/icon-chart.js +54 -0
- package/es/icons/icon-check.js +59 -0
- package/es/icons/icon-chevron-down.js +54 -0
- package/es/icons/icon-chevron-left.js +54 -0
- package/es/icons/icon-chevron-right.js +66 -0
- package/es/icons/icon-chevron-up.js +66 -0
- package/es/icons/icon-chevron-vertical.js +75 -0
- package/es/icons/icon-clip.js +54 -0
- package/es/icons/icon-clock.js +60 -0
- package/es/icons/icon-crop.js +58 -0
- package/es/icons/icon-cross.js +61 -0
- package/es/icons/icon-duplicate.js +64 -0
- package/es/icons/icon-ellipsis.js +65 -0
- package/es/icons/icon-file.js +60 -0
- package/es/icons/icon-folder-add.js +61 -0
- package/es/icons/icon-folder.js +55 -0
- package/es/icons/icon-gear.js +59 -0
- package/es/icons/icon-globe.js +64 -0
- package/es/icons/icon-heart.js +54 -0
- package/es/icons/icon-image.js +69 -0
- package/es/icons/icon-link.js +59 -0
- package/es/icons/icon-mail.js +64 -0
- package/es/icons/icon-minus.js +53 -0
- package/es/icons/icon-pencil.js +59 -0
- package/es/icons/icon-plus.js +56 -0
- package/es/icons/icon-redo.js +55 -0
- package/es/icons/icon-search.js +60 -0
- package/es/icons/icon-send.js +54 -0
- package/es/icons/icon-share.js +59 -0
- package/es/icons/icon-smile.js +74 -0
- package/es/icons/icon-text-align-center.js +53 -0
- package/es/icons/icon-text-align-left.js +53 -0
- package/es/icons/icon-text-align-right.js +53 -0
- package/es/icons/icon-trash.js +64 -0
- package/es/icons/icon-type.js +53 -0
- package/es/icons/icon-undo.js +55 -0
- package/es/icons/index.js +361 -0
- package/es/index.js +14 -0
- package/es/styles/variables.css +9 -0
- package/es/types.js +5 -2
- package/es/utilities.js +26 -10
- package/es/variables.js +108 -68
- package/package.json +1 -1
package/es/components/arrange.js
CHANGED
|
@@ -23,18 +23,31 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
23
23
|
|
|
24
24
|
var _types = require("../types");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _box = require("./box");
|
|
27
|
+
|
|
28
|
+
var _excluded = ["children", "gap", "columns", "autoFlow", "justifyItems", "alignItems", "justifyContent", "alignContent", "placeItems", "placeContent"];
|
|
27
29
|
|
|
28
30
|
var _templateObject;
|
|
29
31
|
|
|
30
32
|
var __jsx = _react.default.createElement;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return p.autoFlow;
|
|
33
|
+
var Wrapper = (0, _styled.default)(_box.Box)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n ", ";\n justify-content: start;\n align-items: center;\n gap: ", ";\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) {
|
|
34
|
+
return !p.columns && "grid-auto-flow: ".concat(p.autoFlow);
|
|
34
35
|
}, function (p) {
|
|
35
36
|
return (0, _utilities.getSpace)(p.gap);
|
|
36
37
|
}, function (p) {
|
|
37
38
|
return (0, _utilities.getGridColumns)(p.columns);
|
|
39
|
+
}, function (p) {
|
|
40
|
+
return p.justifyItems;
|
|
41
|
+
}, function (p) {
|
|
42
|
+
return p.alignItems;
|
|
43
|
+
}, function (p) {
|
|
44
|
+
return p.justifyContent;
|
|
45
|
+
}, function (p) {
|
|
46
|
+
return p.alignContent;
|
|
47
|
+
}, function (p) {
|
|
48
|
+
return p.placeItems;
|
|
49
|
+
}, function (p) {
|
|
50
|
+
return p.placeContent;
|
|
38
51
|
});
|
|
39
52
|
|
|
40
53
|
var Arrange = function Arrange(_ref) {
|
|
@@ -43,11 +56,24 @@ var Arrange = function Arrange(_ref) {
|
|
|
43
56
|
columns = _ref.columns,
|
|
44
57
|
_ref$autoFlow = _ref.autoFlow,
|
|
45
58
|
autoFlow = _ref$autoFlow === void 0 ? 'column' : _ref$autoFlow,
|
|
59
|
+
justifyItems = _ref.justifyItems,
|
|
60
|
+
_ref$alignItems = _ref.alignItems,
|
|
61
|
+
alignItems = _ref$alignItems === void 0 ? 'center' : _ref$alignItems,
|
|
62
|
+
justifyContent = _ref.justifyContent,
|
|
63
|
+
alignContent = _ref.alignContent,
|
|
64
|
+
placeItems = _ref.placeItems,
|
|
65
|
+
placeContent = _ref.placeContent,
|
|
46
66
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
67
|
return __jsx(Wrapper, (0, _extends2.default)({
|
|
48
68
|
gap: gap,
|
|
49
69
|
columns: columns,
|
|
50
|
-
autoFlow: autoFlow
|
|
70
|
+
autoFlow: autoFlow,
|
|
71
|
+
justifyItems: justifyItems,
|
|
72
|
+
alignItems: alignItems,
|
|
73
|
+
justifyContent: justifyContent,
|
|
74
|
+
alignContent: alignContent,
|
|
75
|
+
placeItems: placeItems,
|
|
76
|
+
placeContent: placeContent
|
|
51
77
|
}, props), children);
|
|
52
78
|
};
|
|
53
79
|
|
|
@@ -75,6 +101,30 @@ Arrange.__docgenInfo = {
|
|
|
75
101
|
"required": false,
|
|
76
102
|
"description": ""
|
|
77
103
|
},
|
|
104
|
+
"alignItems": {
|
|
105
|
+
"defaultValue": {
|
|
106
|
+
"value": "'center'",
|
|
107
|
+
"computed": false
|
|
108
|
+
},
|
|
109
|
+
"type": {
|
|
110
|
+
"name": "enum",
|
|
111
|
+
"value": [{
|
|
112
|
+
"value": "\"start\"",
|
|
113
|
+
"computed": false
|
|
114
|
+
}, {
|
|
115
|
+
"value": "\"end\"",
|
|
116
|
+
"computed": false
|
|
117
|
+
}, {
|
|
118
|
+
"value": "\"center\"",
|
|
119
|
+
"computed": false
|
|
120
|
+
}, {
|
|
121
|
+
"value": "\"stretch\"",
|
|
122
|
+
"computed": false
|
|
123
|
+
}]
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"description": ""
|
|
127
|
+
},
|
|
78
128
|
"gap": {
|
|
79
129
|
"type": {
|
|
80
130
|
"name": "union",
|
|
@@ -119,6 +169,133 @@ Arrange.__docgenInfo = {
|
|
|
119
169
|
},
|
|
120
170
|
"required": false,
|
|
121
171
|
"description": ""
|
|
172
|
+
},
|
|
173
|
+
"justifyItems": {
|
|
174
|
+
"type": {
|
|
175
|
+
"name": "enum",
|
|
176
|
+
"value": [{
|
|
177
|
+
"value": "\"start\"",
|
|
178
|
+
"computed": false
|
|
179
|
+
}, {
|
|
180
|
+
"value": "\"end\"",
|
|
181
|
+
"computed": false
|
|
182
|
+
}, {
|
|
183
|
+
"value": "\"center\"",
|
|
184
|
+
"computed": false
|
|
185
|
+
}, {
|
|
186
|
+
"value": "\"stretch\"",
|
|
187
|
+
"computed": false
|
|
188
|
+
}]
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"description": ""
|
|
192
|
+
},
|
|
193
|
+
"justifyContent": {
|
|
194
|
+
"type": {
|
|
195
|
+
"name": "enum",
|
|
196
|
+
"value": [{
|
|
197
|
+
"value": "\"start\"",
|
|
198
|
+
"computed": false
|
|
199
|
+
}, {
|
|
200
|
+
"value": "\"end\"",
|
|
201
|
+
"computed": false
|
|
202
|
+
}, {
|
|
203
|
+
"value": "\"center\"",
|
|
204
|
+
"computed": false
|
|
205
|
+
}, {
|
|
206
|
+
"value": "\"stretch\"",
|
|
207
|
+
"computed": false
|
|
208
|
+
}, {
|
|
209
|
+
"value": "\"space-around\"",
|
|
210
|
+
"computed": false
|
|
211
|
+
}, {
|
|
212
|
+
"value": "\"space-between\"",
|
|
213
|
+
"computed": false
|
|
214
|
+
}, {
|
|
215
|
+
"value": "\"space-evenly\"",
|
|
216
|
+
"computed": false
|
|
217
|
+
}]
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"description": ""
|
|
221
|
+
},
|
|
222
|
+
"alignContent": {
|
|
223
|
+
"type": {
|
|
224
|
+
"name": "enum",
|
|
225
|
+
"value": [{
|
|
226
|
+
"value": "\"start\"",
|
|
227
|
+
"computed": false
|
|
228
|
+
}, {
|
|
229
|
+
"value": "\"end\"",
|
|
230
|
+
"computed": false
|
|
231
|
+
}, {
|
|
232
|
+
"value": "\"center\"",
|
|
233
|
+
"computed": false
|
|
234
|
+
}, {
|
|
235
|
+
"value": "\"stretch\"",
|
|
236
|
+
"computed": false
|
|
237
|
+
}, {
|
|
238
|
+
"value": "\"space-around\"",
|
|
239
|
+
"computed": false
|
|
240
|
+
}, {
|
|
241
|
+
"value": "\"space-between\"",
|
|
242
|
+
"computed": false
|
|
243
|
+
}, {
|
|
244
|
+
"value": "\"space-evenly\"",
|
|
245
|
+
"computed": false
|
|
246
|
+
}]
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"description": ""
|
|
250
|
+
},
|
|
251
|
+
"placeItems": {
|
|
252
|
+
"type": {
|
|
253
|
+
"name": "enum",
|
|
254
|
+
"value": [{
|
|
255
|
+
"value": "\"start\"",
|
|
256
|
+
"computed": false
|
|
257
|
+
}, {
|
|
258
|
+
"value": "\"end\"",
|
|
259
|
+
"computed": false
|
|
260
|
+
}, {
|
|
261
|
+
"value": "\"center\"",
|
|
262
|
+
"computed": false
|
|
263
|
+
}, {
|
|
264
|
+
"value": "\"stretch\"",
|
|
265
|
+
"computed": false
|
|
266
|
+
}]
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"description": ""
|
|
270
|
+
},
|
|
271
|
+
"placeContent": {
|
|
272
|
+
"type": {
|
|
273
|
+
"name": "enum",
|
|
274
|
+
"value": [{
|
|
275
|
+
"value": "\"start\"",
|
|
276
|
+
"computed": false
|
|
277
|
+
}, {
|
|
278
|
+
"value": "\"end\"",
|
|
279
|
+
"computed": false
|
|
280
|
+
}, {
|
|
281
|
+
"value": "\"center\"",
|
|
282
|
+
"computed": false
|
|
283
|
+
}, {
|
|
284
|
+
"value": "\"stretch\"",
|
|
285
|
+
"computed": false
|
|
286
|
+
}, {
|
|
287
|
+
"value": "\"space-around\"",
|
|
288
|
+
"computed": false
|
|
289
|
+
}, {
|
|
290
|
+
"value": "\"space-between\"",
|
|
291
|
+
"computed": false
|
|
292
|
+
}, {
|
|
293
|
+
"value": "\"space-evenly\"",
|
|
294
|
+
"computed": false
|
|
295
|
+
}]
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"description": ""
|
|
122
299
|
}
|
|
123
300
|
}
|
|
124
301
|
};
|
package/es/components/button.js
CHANGED
|
@@ -19,43 +19,47 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
19
19
|
|
|
20
20
|
var _utilities = require("../utilities");
|
|
21
21
|
|
|
22
|
+
var _components = require("../components");
|
|
23
|
+
|
|
22
24
|
var _react = _interopRequireDefault(require("react"));
|
|
23
25
|
|
|
24
26
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
25
27
|
|
|
26
28
|
var _react2 = require("@emotion/react");
|
|
27
29
|
|
|
28
|
-
var _excluded = ["children", "tag", "variant", "isDisabled"];
|
|
30
|
+
var _excluded = ["children", "tag", "variant", "isDisabled", "icon"];
|
|
29
31
|
|
|
30
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4
|
|
32
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
31
33
|
|
|
32
34
|
var __jsx = _react.default.createElement;
|
|
33
|
-
var variables = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n --grn-buttonTextBoxPaddingX-m:
|
|
35
|
+
var variables = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n --grn-buttonTextBoxPaddingX-m: 16px;\n --grn-color-buttonBorder: var(--grn-color-fade4);\n --grn-color-buttonBorder-hover: var(--grn-color-fade6);\n --grn-color-buttonBorder-active: var(--grn-color-grey8);\n"])));
|
|
34
36
|
var variants = {
|
|
35
37
|
neutral: (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: inherit;\n background-color: transparent;\n border-color: var(--grn-color-buttonBorder);\n\n &:hover {\n border-color: var(--grn-color-buttonBorder-hover);\n }\n &:active {\n border-color: var(--grn-color-buttonBorder-active);\n }\n "]))),
|
|
36
38
|
primary: (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n color: white;\n background-color: ", ";\n border-color: transparent;\n\n &:hover {\n background-color: ", ";\n }\n &:active {\n color: ", ";\n background-color: black;\n }\n "])), (0, _utilities.getColor)('accent'), (0, _utilities.getColor)('grey7'), (0, _utilities.getColor)('grey2'))
|
|
37
39
|
};
|
|
38
40
|
|
|
39
|
-
var Wrapper = _styled.default.button(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n appearance: none;\n border: none;\n font-family: inherit;\n font-size: inherit;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n font-weight: ", ";\n border-radius: ", ";\n transition: ", ";\n height: var(--grn-textBoxHeight-m);\n padding: 0 var(--grn-buttonTextBoxPaddingX-m);\n background-color: transparent;\n\n ", ";\n\n ", ";\n\n &:hover {\n transition: ", ";\n }\n\n &:active {\n transition: 0s;\n }\n"])), variables, (0, _utilities.getWeight)('medium'), (0, _utilities.getRadius)('s'), (0, _utilities.getTransition)('slow'), function (p) {
|
|
41
|
+
var Wrapper = _styled.default.button(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n appearance: none;\n border: none;\n font-family: inherit;\n font-size: inherit;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n font-weight: ", ";\n border-radius: ", ";\n // border-radius: 3px;\n transition: ", ";\n height: var(--grn-textBoxHeight-m);\n padding: 0 var(--grn-buttonTextBoxPaddingX-m);\n background-color: transparent;\n display: flex;\n align-items: center;\n gap: 12px;\n\n ", ";\n\n ", ";\n\n &:hover {\n transition: ", ";\n }\n\n &:active {\n transition: 0s;\n }\n"])), variables, (0, _utilities.getWeight)('medium'), (0, _utilities.getRadius)('s'), (0, _utilities.getTransition)('slow'), function (p) {
|
|
40
42
|
return !p.isDisabled && variants[p.variant];
|
|
41
43
|
}, function (p) {
|
|
42
44
|
return p.isDisabled && "\n color: ".concat((0, _utilities.getColor)('disabledContent'), ";\n background-color: ").concat((0, _utilities.getColor)('disabledBackground'), ";\n border-color: transparent;\n cursor: default;\n ");
|
|
43
45
|
}, (0, _utilities.getTransition)('fast'));
|
|
44
46
|
|
|
45
|
-
var ButtonText = _styled.default.span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n --opticalCompensation: -0.3px;\n\n position: relative;\n top: var(--opticalCompensation);\n"])));
|
|
46
|
-
|
|
47
47
|
var Button = function Button(_ref) {
|
|
48
48
|
var children = _ref.children,
|
|
49
49
|
tag = _ref.tag,
|
|
50
50
|
_ref$variant = _ref.variant,
|
|
51
51
|
variant = _ref$variant === void 0 ? 'neutral' : _ref$variant,
|
|
52
52
|
isDisabled = _ref.isDisabled,
|
|
53
|
+
icon = _ref.icon,
|
|
53
54
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
54
55
|
return __jsx(Wrapper, (0, _extends2.default)({
|
|
55
56
|
as: tag,
|
|
56
57
|
variant: variant,
|
|
57
|
-
isDisabled: isDisabled
|
|
58
|
-
|
|
58
|
+
isDisabled: isDisabled,
|
|
59
|
+
icon: icon
|
|
60
|
+
}, props), icon && __jsx(_components.Icon, {
|
|
61
|
+
icon: icon
|
|
62
|
+
}), children);
|
|
59
63
|
};
|
|
60
64
|
|
|
61
65
|
exports.Button = Button;
|
|
@@ -0,0 +1,123 @@
|
|
|
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.Icon = 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 = ["icon", "size", "color"];
|
|
27
|
+
|
|
28
|
+
var _templateObject;
|
|
29
|
+
|
|
30
|
+
var __jsx = _react.default.createElement;
|
|
31
|
+
|
|
32
|
+
var Wrapper = _styled.default.span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n width: fit-content;\n color: ", ";\n \n svg {\n display: block;\n height: ", ";\n }\n"])), function (p) {
|
|
33
|
+
return (0, _utilities.getColor)(p.color);
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return (0, _utilities.getIconSize)(p.size);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
var Icon = function Icon(_ref) {
|
|
39
|
+
var icon = _ref.icon,
|
|
40
|
+
_ref$size = _ref.size,
|
|
41
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
42
|
+
color = _ref.color,
|
|
43
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
44
|
+
return __jsx(Wrapper, (0, _extends2.default)({
|
|
45
|
+
size: size,
|
|
46
|
+
color: color
|
|
47
|
+
}, props), icon && icon);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.Icon = Icon;
|
|
51
|
+
Icon.__docgenInfo = {
|
|
52
|
+
"description": "",
|
|
53
|
+
"methods": [],
|
|
54
|
+
"displayName": "Icon",
|
|
55
|
+
"props": {
|
|
56
|
+
"size": {
|
|
57
|
+
"defaultValue": {
|
|
58
|
+
"value": "'m'",
|
|
59
|
+
"computed": false
|
|
60
|
+
},
|
|
61
|
+
"type": {
|
|
62
|
+
"name": "union",
|
|
63
|
+
"value": [{
|
|
64
|
+
"name": "enum",
|
|
65
|
+
"value": [{
|
|
66
|
+
"value": "\"s\"",
|
|
67
|
+
"computed": false
|
|
68
|
+
}, {
|
|
69
|
+
"value": "\"m\"",
|
|
70
|
+
"computed": false
|
|
71
|
+
}, {
|
|
72
|
+
"value": "\"l\"",
|
|
73
|
+
"computed": false
|
|
74
|
+
}, {
|
|
75
|
+
"value": "\"xl\"",
|
|
76
|
+
"computed": false
|
|
77
|
+
}, {
|
|
78
|
+
"value": "\"xxl\"",
|
|
79
|
+
"computed": false
|
|
80
|
+
}]
|
|
81
|
+
}, {
|
|
82
|
+
"name": "number"
|
|
83
|
+
}, {
|
|
84
|
+
"name": "string"
|
|
85
|
+
}]
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"description": ""
|
|
89
|
+
},
|
|
90
|
+
"icon": {
|
|
91
|
+
"type": {
|
|
92
|
+
"name": "node"
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"description": ""
|
|
96
|
+
},
|
|
97
|
+
"color": {
|
|
98
|
+
"type": {
|
|
99
|
+
"name": "union",
|
|
100
|
+
"value": [{
|
|
101
|
+
"name": "enum",
|
|
102
|
+
"value": [{
|
|
103
|
+
"value": "\"greys\"",
|
|
104
|
+
"computed": false
|
|
105
|
+
}, {
|
|
106
|
+
"value": "\"fades\"",
|
|
107
|
+
"computed": false
|
|
108
|
+
}, {
|
|
109
|
+
"value": "\"baseColors\"",
|
|
110
|
+
"computed": false
|
|
111
|
+
}, {
|
|
112
|
+
"value": "\"semanticColors\"",
|
|
113
|
+
"computed": false
|
|
114
|
+
}]
|
|
115
|
+
}, {
|
|
116
|
+
"name": "string"
|
|
117
|
+
}]
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"description": ""
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
};
|
package/es/components/index.js
CHANGED
|
@@ -35,6 +35,12 @@ Object.defineProperty(exports, "Arrange", {
|
|
|
35
35
|
return _arrange.Arrange;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
Object.defineProperty(exports, "Icon", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _icon.Icon;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
38
44
|
|
|
39
45
|
var _text = require("./text");
|
|
40
46
|
|
|
@@ -44,4 +50,6 @@ var _button = require("./button");
|
|
|
44
50
|
|
|
45
51
|
var _textInput = require("./text-input");
|
|
46
52
|
|
|
47
|
-
var _arrange = require("./arrange");
|
|
53
|
+
var _arrange = require("./arrange");
|
|
54
|
+
|
|
55
|
+
var _icon = require("./icon");
|
package/es/components/text.js
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
+
|
|
21
|
+
Object.defineProperty(exports, "__esModule", {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
exports.default = void 0;
|
|
25
|
+
|
|
26
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
27
|
+
|
|
28
|
+
var React = _interopRequireWildcard(require("react"));
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
34
|
+
var __jsx = React.createElement;
|
|
35
|
+
|
|
36
|
+
var IconAlignCenter = function IconAlignCenter(props) {
|
|
37
|
+
return __jsx("svg", (0, _extends2.default)({
|
|
38
|
+
viewBox: "0 0 20 32",
|
|
39
|
+
fill: "none",
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
41
|
+
}, props), __jsx("rect", {
|
|
42
|
+
x: 1,
|
|
43
|
+
y: 7,
|
|
44
|
+
width: 18,
|
|
45
|
+
height: 18,
|
|
46
|
+
rx: 1,
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
strokeWidth: 2,
|
|
49
|
+
strokeLinecap: "square"
|
|
50
|
+
}), __jsx("path", {
|
|
51
|
+
fill: "currentColor",
|
|
52
|
+
d: "M9 4h2v24H9z"
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
IconAlignCenter.__docgenInfo = {
|
|
57
|
+
"description": "",
|
|
58
|
+
"methods": [],
|
|
59
|
+
"displayName": "IconAlignCenter"
|
|
60
|
+
};
|
|
61
|
+
var _default = IconAlignCenter;
|
|
62
|
+
exports.default = _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
+
|
|
21
|
+
Object.defineProperty(exports, "__esModule", {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
exports.default = void 0;
|
|
25
|
+
|
|
26
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
27
|
+
|
|
28
|
+
var React = _interopRequireWildcard(require("react"));
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
34
|
+
var __jsx = React.createElement;
|
|
35
|
+
|
|
36
|
+
var IconAlignLeft = function IconAlignLeft(props) {
|
|
37
|
+
return __jsx("svg", (0, _extends2.default)({
|
|
38
|
+
viewBox: "0 0 24 32",
|
|
39
|
+
fill: "none",
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
41
|
+
}, props), __jsx("rect", {
|
|
42
|
+
x: 5,
|
|
43
|
+
y: 7,
|
|
44
|
+
width: 18,
|
|
45
|
+
height: 18,
|
|
46
|
+
rx: 1,
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
strokeWidth: 2,
|
|
49
|
+
strokeLinecap: "square"
|
|
50
|
+
}), __jsx("path", {
|
|
51
|
+
fill: "currentColor",
|
|
52
|
+
d: "M0 4h2v24H0z"
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
IconAlignLeft.__docgenInfo = {
|
|
57
|
+
"description": "",
|
|
58
|
+
"methods": [],
|
|
59
|
+
"displayName": "IconAlignLeft"
|
|
60
|
+
};
|
|
61
|
+
var _default = IconAlignLeft;
|
|
62
|
+
exports.default = _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.object.to-string.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.string.iterator.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.weak-map.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.object.define-property.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
20
|
+
|
|
21
|
+
Object.defineProperty(exports, "__esModule", {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
exports.default = void 0;
|
|
25
|
+
|
|
26
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
27
|
+
|
|
28
|
+
var React = _interopRequireWildcard(require("react"));
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
34
|
+
var __jsx = React.createElement;
|
|
35
|
+
|
|
36
|
+
var IconAlignRight = function IconAlignRight(props) {
|
|
37
|
+
return __jsx("svg", (0, _extends2.default)({
|
|
38
|
+
viewBox: "0 0 24 32",
|
|
39
|
+
fill: "none",
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
41
|
+
}, props), __jsx("rect", {
|
|
42
|
+
x: 1,
|
|
43
|
+
y: 7,
|
|
44
|
+
width: 18,
|
|
45
|
+
height: 18,
|
|
46
|
+
rx: 1,
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
strokeWidth: 2,
|
|
49
|
+
strokeLinecap: "square"
|
|
50
|
+
}), __jsx("path", {
|
|
51
|
+
fill: "currentColor",
|
|
52
|
+
d: "M22 4h2v24h-2z"
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
IconAlignRight.__docgenInfo = {
|
|
57
|
+
"description": "",
|
|
58
|
+
"methods": [],
|
|
59
|
+
"displayName": "IconAlignRight"
|
|
60
|
+
};
|
|
61
|
+
var _default = IconAlignRight;
|
|
62
|
+
exports.default = _default;
|