@zendeskgarden/react-forms 8.38.0 → 8.40.1
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/index.cjs.js +770 -354
- package/dist/index.esm.js +769 -355
- package/dist/typings/elements/file-list/FileList.d.ts +16 -0
- package/dist/typings/elements/file-list/components/Close.d.ts +11 -0
- package/dist/typings/elements/file-list/components/File.d.ts +25 -0
- package/dist/typings/elements/file-list/components/Item.d.ts +11 -0
- package/dist/typings/elements/file-list/utils.d.ts +18 -0
- package/dist/typings/index.d.ts +4 -0
- package/dist/typings/styled/file-list/StyledFile.d.ts +16 -0
- package/dist/typings/styled/file-list/StyledFileClose.d.ts +10 -0
- package/dist/typings/styled/file-list/StyledFileIcon.d.ts +11 -0
- package/dist/typings/styled/file-list/StyledFileList.d.ts +13 -0
- package/dist/typings/styled/file-list/StyledFileListItem.d.ts +10 -0
- package/dist/typings/styled/index.d.ts +8 -0
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -15,47 +15,18 @@ import { hideVisually, math, rgba, em } from 'polished';
|
|
|
15
15
|
import { composeEventHandlers, useCombinedRefs, KEY_CODES, getControlledValue } from '@zendeskgarden/container-utilities';
|
|
16
16
|
import debounce from 'lodash.debounce';
|
|
17
17
|
|
|
18
|
-
function _defineProperty(obj, key, value) {
|
|
19
|
-
if (key in obj) {
|
|
20
|
-
Object.defineProperty(obj, key, {
|
|
21
|
-
value: value,
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true
|
|
25
|
-
});
|
|
26
|
-
} else {
|
|
27
|
-
obj[key] = value;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return obj;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _extends$8() {
|
|
34
|
-
_extends$8 = Object.assign || function (target) {
|
|
35
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
36
|
-
var source = arguments[i];
|
|
37
|
-
|
|
38
|
-
for (var key in source) {
|
|
39
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40
|
-
target[key] = source[key];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return target;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return _extends$8.apply(this, arguments);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
18
|
function ownKeys(object, enumerableOnly) {
|
|
52
19
|
var keys = Object.keys(object);
|
|
53
20
|
|
|
54
21
|
if (Object.getOwnPropertySymbols) {
|
|
55
22
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
23
|
+
|
|
24
|
+
if (enumerableOnly) {
|
|
25
|
+
symbols = symbols.filter(function (sym) {
|
|
26
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
59
30
|
keys.push.apply(keys, symbols);
|
|
60
31
|
}
|
|
61
32
|
|
|
@@ -82,6 +53,39 @@ function _objectSpread2(target) {
|
|
|
82
53
|
return target;
|
|
83
54
|
}
|
|
84
55
|
|
|
56
|
+
function _defineProperty(obj, key, value) {
|
|
57
|
+
if (key in obj) {
|
|
58
|
+
Object.defineProperty(obj, key, {
|
|
59
|
+
value: value,
|
|
60
|
+
enumerable: true,
|
|
61
|
+
configurable: true,
|
|
62
|
+
writable: true
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
obj[key] = value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return obj;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function _extends$f() {
|
|
72
|
+
_extends$f = Object.assign || function (target) {
|
|
73
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
74
|
+
var source = arguments[i];
|
|
75
|
+
|
|
76
|
+
for (var key in source) {
|
|
77
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
78
|
+
target[key] = source[key];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return target;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return _extends$f.apply(this, arguments);
|
|
87
|
+
}
|
|
88
|
+
|
|
85
89
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
86
90
|
if (source == null) return {};
|
|
87
91
|
var target = {};
|
|
@@ -118,35 +122,38 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
118
122
|
return target;
|
|
119
123
|
}
|
|
120
124
|
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
+
function _slicedToArray(arr, i) {
|
|
126
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
127
|
+
}
|
|
125
128
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
value: Object.freeze(raw)
|
|
129
|
-
}
|
|
130
|
-
}));
|
|
129
|
+
function _toConsumableArray(arr) {
|
|
130
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function _arrayWithoutHoles(arr) {
|
|
134
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
function _arrayWithHoles(arr) {
|
|
138
138
|
if (Array.isArray(arr)) return arr;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
function _iterableToArray(iter) {
|
|
142
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
143
|
+
}
|
|
144
|
+
|
|
141
145
|
function _iterableToArrayLimit(arr, i) {
|
|
142
|
-
|
|
146
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
147
|
+
|
|
148
|
+
if (_i == null) return;
|
|
143
149
|
var _arr = [];
|
|
144
150
|
var _n = true;
|
|
145
151
|
var _d = false;
|
|
146
|
-
|
|
152
|
+
|
|
153
|
+
var _s, _e;
|
|
147
154
|
|
|
148
155
|
try {
|
|
149
|
-
for (
|
|
156
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
150
157
|
_arr.push(_s.value);
|
|
151
158
|
|
|
152
159
|
if (i && _arr.length === i) break;
|
|
@@ -182,6 +189,10 @@ function _arrayLikeToArray(arr, len) {
|
|
|
182
189
|
return arr2;
|
|
183
190
|
}
|
|
184
191
|
|
|
192
|
+
function _nonIterableSpread() {
|
|
193
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
194
|
+
}
|
|
195
|
+
|
|
185
196
|
function _nonIterableRest() {
|
|
186
197
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
187
198
|
}
|
|
@@ -192,41 +203,47 @@ var useFieldContext = function useFieldContext() {
|
|
|
192
203
|
return fieldContext;
|
|
193
204
|
};
|
|
194
205
|
|
|
195
|
-
var
|
|
196
|
-
var COMPONENT_ID$E = 'forms.field';
|
|
206
|
+
var COMPONENT_ID$J = 'forms.field';
|
|
197
207
|
var StyledField = styled.div.attrs({
|
|
198
|
-
'data-garden-id': COMPONENT_ID$
|
|
199
|
-
'data-garden-version': '8.
|
|
200
|
-
})(
|
|
208
|
+
'data-garden-id': COMPONENT_ID$J,
|
|
209
|
+
'data-garden-version': '8.40.1'
|
|
210
|
+
}).withConfig({
|
|
211
|
+
displayName: "StyledField",
|
|
212
|
+
componentId: "sc-12gzfsu-0"
|
|
213
|
+
})(["position:relative;direction:", ";margin:0;border:0;padding:0;font-size:0;", ";"], function (props) {
|
|
201
214
|
return props.theme.rtl && 'rtl';
|
|
202
215
|
}, function (props) {
|
|
203
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
216
|
+
return retrieveComponentStyles(COMPONENT_ID$J, props);
|
|
204
217
|
});
|
|
205
218
|
StyledField.defaultProps = {
|
|
206
219
|
theme: DEFAULT_THEME
|
|
207
220
|
};
|
|
208
221
|
|
|
209
|
-
var
|
|
210
|
-
var COMPONENT_ID$D = 'forms.fieldset';
|
|
222
|
+
var COMPONENT_ID$I = 'forms.fieldset';
|
|
211
223
|
var StyledFieldset = styled(StyledField).attrs({
|
|
212
224
|
as: 'fieldset',
|
|
213
|
-
'data-garden-id': COMPONENT_ID$
|
|
214
|
-
'data-garden-version': '8.
|
|
215
|
-
})(
|
|
225
|
+
'data-garden-id': COMPONENT_ID$I,
|
|
226
|
+
'data-garden-version': '8.40.1'
|
|
227
|
+
}).withConfig({
|
|
228
|
+
displayName: "StyledFieldset",
|
|
229
|
+
componentId: "sc-1vr4mxv-0"
|
|
230
|
+
})(["", "{margin-top:", "px;}", ";"], StyledField, function (props) {
|
|
216
231
|
return props.theme.space.base * (props.isCompact ? 1 : 2);
|
|
217
232
|
}, function (props) {
|
|
218
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
233
|
+
return retrieveComponentStyles(COMPONENT_ID$I, props);
|
|
219
234
|
});
|
|
220
235
|
StyledFieldset.defaultProps = {
|
|
221
236
|
theme: DEFAULT_THEME
|
|
222
237
|
};
|
|
223
238
|
|
|
224
|
-
var
|
|
225
|
-
var COMPONENT_ID$C = 'forms.input_label';
|
|
239
|
+
var COMPONENT_ID$H = 'forms.input_label';
|
|
226
240
|
var StyledLabel = styled.label.attrs({
|
|
227
|
-
'data-garden-id': COMPONENT_ID$
|
|
228
|
-
'data-garden-version': '8.
|
|
229
|
-
})(
|
|
241
|
+
'data-garden-id': COMPONENT_ID$H,
|
|
242
|
+
'data-garden-version': '8.40.1'
|
|
243
|
+
}).withConfig({
|
|
244
|
+
displayName: "StyledLabel",
|
|
245
|
+
componentId: "sc-2utmsz-0"
|
|
246
|
+
})(["direction:", ";vertical-align:middle;line-height:", ";color:", ";font-size:", ";font-weight:", ";&[hidden]{display:", ";vertical-align:", ";text-indent:", ";font-size:", ";", ";}", ";"], function (props) {
|
|
230
247
|
return props.theme.rtl && 'rtl';
|
|
231
248
|
}, function (props) {
|
|
232
249
|
return getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
|
|
@@ -247,31 +264,35 @@ var StyledLabel = styled.label.attrs({
|
|
|
247
264
|
}, function (props) {
|
|
248
265
|
return !props.isRadio && hideVisually();
|
|
249
266
|
}, function (props) {
|
|
250
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
267
|
+
return retrieveComponentStyles(COMPONENT_ID$H, props);
|
|
251
268
|
});
|
|
252
269
|
StyledLabel.defaultProps = {
|
|
253
270
|
theme: DEFAULT_THEME
|
|
254
271
|
};
|
|
255
272
|
|
|
256
|
-
var
|
|
257
|
-
var COMPONENT_ID$B = 'forms.fieldset_legend';
|
|
273
|
+
var COMPONENT_ID$G = 'forms.fieldset_legend';
|
|
258
274
|
var StyledLegend = styled(StyledLabel).attrs({
|
|
259
275
|
as: 'legend',
|
|
260
|
-
'data-garden-id': COMPONENT_ID$
|
|
261
|
-
'data-garden-version': '8.
|
|
262
|
-
})(
|
|
263
|
-
|
|
276
|
+
'data-garden-id': COMPONENT_ID$G,
|
|
277
|
+
'data-garden-version': '8.40.1'
|
|
278
|
+
}).withConfig({
|
|
279
|
+
displayName: "StyledLegend",
|
|
280
|
+
componentId: "sc-6s0zwq-0"
|
|
281
|
+
})(["padding:0;", ";"], function (props) {
|
|
282
|
+
return retrieveComponentStyles(COMPONENT_ID$G, props);
|
|
264
283
|
});
|
|
265
284
|
StyledLegend.defaultProps = {
|
|
266
285
|
theme: DEFAULT_THEME
|
|
267
286
|
};
|
|
268
287
|
|
|
269
|
-
var
|
|
270
|
-
var COMPONENT_ID$A = 'forms.input_hint';
|
|
288
|
+
var COMPONENT_ID$F = 'forms.input_hint';
|
|
271
289
|
var StyledHint = styled.div.attrs({
|
|
272
|
-
'data-garden-id': COMPONENT_ID$
|
|
273
|
-
'data-garden-version': '8.
|
|
274
|
-
})(
|
|
290
|
+
'data-garden-id': COMPONENT_ID$F,
|
|
291
|
+
'data-garden-version': '8.40.1'
|
|
292
|
+
}).withConfig({
|
|
293
|
+
displayName: "StyledHint",
|
|
294
|
+
componentId: "sc-17c2wu8-0"
|
|
295
|
+
})(["direction:", ";display:block;vertical-align:middle;line-height:", ";color:", ";font-size:", ";", ";"], function (props) {
|
|
275
296
|
return props.theme.rtl && 'rtl';
|
|
276
297
|
}, function (props) {
|
|
277
298
|
return getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
|
|
@@ -280,15 +301,15 @@ var StyledHint = styled.div.attrs({
|
|
|
280
301
|
}, function (props) {
|
|
281
302
|
return props.theme.fontSizes.md;
|
|
282
303
|
}, function (props) {
|
|
283
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
304
|
+
return retrieveComponentStyles(COMPONENT_ID$F, props);
|
|
284
305
|
});
|
|
285
306
|
StyledHint.defaultProps = {
|
|
286
307
|
theme: DEFAULT_THEME
|
|
287
308
|
};
|
|
288
309
|
|
|
289
|
-
function _extends$
|
|
310
|
+
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
290
311
|
|
|
291
|
-
var _ref$
|
|
312
|
+
var _ref$e = /*#__PURE__*/React.createElement("g", {
|
|
292
313
|
fill: "none",
|
|
293
314
|
stroke: "currentColor"
|
|
294
315
|
}, /*#__PURE__*/React.createElement("circle", {
|
|
@@ -300,7 +321,7 @@ var _ref$7 = /*#__PURE__*/React.createElement("g", {
|
|
|
300
321
|
d: "M7.5 4.5V9"
|
|
301
322
|
}));
|
|
302
323
|
|
|
303
|
-
var _ref2$
|
|
324
|
+
var _ref2$3 = /*#__PURE__*/React.createElement("circle", {
|
|
304
325
|
cx: 7.5,
|
|
305
326
|
cy: 12,
|
|
306
327
|
r: 1,
|
|
@@ -308,26 +329,26 @@ var _ref2$1 = /*#__PURE__*/React.createElement("circle", {
|
|
|
308
329
|
});
|
|
309
330
|
|
|
310
331
|
function SvgAlertErrorStroke(props) {
|
|
311
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
332
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
312
333
|
xmlns: "http://www.w3.org/2000/svg",
|
|
313
334
|
width: 16,
|
|
314
335
|
height: 16,
|
|
315
336
|
viewBox: "0 0 16 16",
|
|
316
337
|
focusable: "false",
|
|
317
338
|
role: "presentation"
|
|
318
|
-
}, props), _ref$
|
|
339
|
+
}, props), _ref$e, _ref2$3);
|
|
319
340
|
}
|
|
320
341
|
|
|
321
|
-
function _extends$
|
|
342
|
+
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
322
343
|
|
|
323
|
-
var _ref$
|
|
344
|
+
var _ref$d = /*#__PURE__*/React.createElement("path", {
|
|
324
345
|
fill: "none",
|
|
325
346
|
stroke: "currentColor",
|
|
326
347
|
strokeLinecap: "round",
|
|
327
348
|
d: "M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5"
|
|
328
349
|
});
|
|
329
350
|
|
|
330
|
-
var _ref2 = /*#__PURE__*/React.createElement("circle", {
|
|
351
|
+
var _ref2$2 = /*#__PURE__*/React.createElement("circle", {
|
|
331
352
|
cx: 7.5,
|
|
332
353
|
cy: 12,
|
|
333
354
|
r: 1,
|
|
@@ -335,19 +356,19 @@ var _ref2 = /*#__PURE__*/React.createElement("circle", {
|
|
|
335
356
|
});
|
|
336
357
|
|
|
337
358
|
function SvgAlertWarningStroke(props) {
|
|
338
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
359
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
339
360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
340
361
|
width: 16,
|
|
341
362
|
height: 16,
|
|
342
363
|
viewBox: "0 0 16 16",
|
|
343
364
|
focusable: "false",
|
|
344
365
|
role: "presentation"
|
|
345
|
-
}, props), _ref$
|
|
366
|
+
}, props), _ref$d, _ref2$2);
|
|
346
367
|
}
|
|
347
368
|
|
|
348
|
-
function _extends$
|
|
369
|
+
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
349
370
|
|
|
350
|
-
var _ref$
|
|
371
|
+
var _ref$c = /*#__PURE__*/React.createElement("g", {
|
|
351
372
|
fill: "none",
|
|
352
373
|
stroke: "currentColor"
|
|
353
374
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -361,22 +382,21 @@ var _ref$5 = /*#__PURE__*/React.createElement("g", {
|
|
|
361
382
|
}));
|
|
362
383
|
|
|
363
384
|
function SvgCheckCircleStroke(props) {
|
|
364
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
385
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
365
386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
366
387
|
width: 16,
|
|
367
388
|
height: 16,
|
|
368
389
|
viewBox: "0 0 16 16",
|
|
369
390
|
focusable: "false",
|
|
370
391
|
role: "presentation"
|
|
371
|
-
}, props), _ref$
|
|
392
|
+
}, props), _ref$c);
|
|
372
393
|
}
|
|
373
394
|
|
|
374
|
-
var
|
|
375
|
-
var _excluded$g = ["children", "validation"];
|
|
395
|
+
var _excluded$i = ["children", "validation"];
|
|
376
396
|
var MessageIcon = function MessageIcon(_ref) {
|
|
377
397
|
var children = _ref.children,
|
|
378
398
|
validation = _ref.validation,
|
|
379
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
399
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
380
400
|
var retVal;
|
|
381
401
|
if (validation === 'error') {
|
|
382
402
|
retVal = React__default.createElement(SvgAlertErrorStroke, props);
|
|
@@ -389,22 +409,24 @@ var MessageIcon = function MessageIcon(_ref) {
|
|
|
389
409
|
}
|
|
390
410
|
return retVal;
|
|
391
411
|
};
|
|
392
|
-
var COMPONENT_ID$
|
|
412
|
+
var COMPONENT_ID$E = 'forms.input_message_icon';
|
|
393
413
|
var StyledMessageIcon = styled(MessageIcon).attrs({
|
|
394
|
-
'data-garden-id': COMPONENT_ID$
|
|
395
|
-
'data-garden-version': '8.
|
|
396
|
-
})(
|
|
414
|
+
'data-garden-id': COMPONENT_ID$E,
|
|
415
|
+
'data-garden-version': '8.40.1'
|
|
416
|
+
}).withConfig({
|
|
417
|
+
displayName: "StyledMessageIcon",
|
|
418
|
+
componentId: "sc-1ph2gba-0"
|
|
419
|
+
})(["width:", ";height:", ";", ";"], function (props) {
|
|
397
420
|
return props.theme.iconSizes.md;
|
|
398
421
|
}, function (props) {
|
|
399
422
|
return props.theme.iconSizes.md;
|
|
400
423
|
}, function (props) {
|
|
401
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
424
|
+
return retrieveComponentStyles(COMPONENT_ID$E, props);
|
|
402
425
|
});
|
|
403
426
|
StyledMessageIcon.defaultProps = {
|
|
404
427
|
theme: DEFAULT_THEME
|
|
405
428
|
};
|
|
406
429
|
|
|
407
|
-
var _templateObject$z;
|
|
408
430
|
var validationStyles = function validationStyles(props) {
|
|
409
431
|
var rtl = props.theme.rtl;
|
|
410
432
|
var padding = math("".concat(props.theme.space.base, " * 2px + ").concat(props.theme.iconSizes.md));
|
|
@@ -420,11 +442,14 @@ var validationStyles = function validationStyles(props) {
|
|
|
420
442
|
}
|
|
421
443
|
return css(["padding-", ":", ";color:", ";"], rtl ? 'right' : 'left', props.validation && padding, color);
|
|
422
444
|
};
|
|
423
|
-
var COMPONENT_ID$
|
|
445
|
+
var COMPONENT_ID$D = 'forms.input_message';
|
|
424
446
|
var StyledMessage = styled.div.attrs({
|
|
425
|
-
'data-garden-id': COMPONENT_ID$
|
|
426
|
-
'data-garden-version': '8.
|
|
427
|
-
})(
|
|
447
|
+
'data-garden-id': COMPONENT_ID$D,
|
|
448
|
+
'data-garden-version': '8.40.1'
|
|
449
|
+
}).withConfig({
|
|
450
|
+
displayName: "StyledMessage",
|
|
451
|
+
componentId: "sc-30hgg7-0"
|
|
452
|
+
})(["direction:", ";display:inline-block;position:relative;vertical-align:middle;line-height:", ";font-size:", ";", ";& ", "{position:absolute;top:-1px;", ":0;}", ":not([hidden]) + &{display:block;margin-top:", ";}", ";"], function (props) {
|
|
428
453
|
return props.theme.rtl && 'rtl';
|
|
429
454
|
}, function (props) {
|
|
430
455
|
return getLineHeight(props.theme.iconSizes.md, props.theme.fontSizes.sm);
|
|
@@ -437,18 +462,17 @@ var StyledMessage = styled.div.attrs({
|
|
|
437
462
|
}, StyledLabel, function (props) {
|
|
438
463
|
return math("".concat(props.theme.space.base, " * 1px"));
|
|
439
464
|
}, function (props) {
|
|
440
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
465
|
+
return retrieveComponentStyles(COMPONENT_ID$D, props);
|
|
441
466
|
});
|
|
442
467
|
StyledMessage.defaultProps = {
|
|
443
468
|
theme: DEFAULT_THEME
|
|
444
469
|
};
|
|
445
470
|
|
|
446
|
-
var
|
|
447
|
-
var COMPONENT_ID$x = 'forms.input';
|
|
471
|
+
var COMPONENT_ID$C = 'forms.input';
|
|
448
472
|
var isInvalid = function isInvalid(validation) {
|
|
449
473
|
return validation === 'warning' || validation === 'error';
|
|
450
474
|
};
|
|
451
|
-
var colorStyles$
|
|
475
|
+
var colorStyles$b = function colorStyles(props) {
|
|
452
476
|
var SHADE = 600;
|
|
453
477
|
var placeholderColor = getColor('neutralHue', SHADE - 200, props.theme);
|
|
454
478
|
var borderColor;
|
|
@@ -486,7 +510,7 @@ var colorStyles$a = function colorStyles(props) {
|
|
|
486
510
|
}
|
|
487
511
|
return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&::placeholder{color:", ";}&[readonly],&[aria-readonly='true']{border-color:", ";background-color:", ";}&:hover{border-color:", ";}&:focus,&[data-garden-focus-visible='true']{border-color:", ";box-shadow:", ";}&:disabled,&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], controlledBorderColor, !props.isBare && props.isFocused && boxShadow, props.isBare ? 'transparent' : props.theme.colors.background, props.theme.colors.foreground, placeholderColor, readOnlyBorderColor, !props.isBare && readOnlyBackgroundColor, hoverBorderColor, focusBorderColor, !props.isBare && boxShadow, disabledBorderColor, !props.isBare && disabledBackgroundColor, disabledForegroundColor);
|
|
488
512
|
};
|
|
489
|
-
var sizeStyles$
|
|
513
|
+
var sizeStyles$e = function sizeStyles(props) {
|
|
490
514
|
var fontSize = props.theme.fontSizes.md;
|
|
491
515
|
var paddingHorizontal = "".concat(props.theme.space.base * 3, "px");
|
|
492
516
|
var height;
|
|
@@ -512,11 +536,14 @@ var sizeStyles$d = function sizeStyles(props) {
|
|
|
512
536
|
};
|
|
513
537
|
var StyledTextInput = styled.input.attrs(function (props) {
|
|
514
538
|
return {
|
|
515
|
-
'data-garden-id': COMPONENT_ID$
|
|
516
|
-
'data-garden-version': '8.
|
|
539
|
+
'data-garden-id': COMPONENT_ID$C,
|
|
540
|
+
'data-garden-version': '8.40.1',
|
|
517
541
|
'aria-invalid': isInvalid(props.validation)
|
|
518
542
|
};
|
|
519
|
-
})
|
|
543
|
+
}).withConfig({
|
|
544
|
+
displayName: "StyledTextInput",
|
|
545
|
+
componentId: "sc-k12n8x-0"
|
|
546
|
+
})(["appearance:none;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out,z-index 0.25s ease-in-out;direction:", ";border:", ";border-radius:", ";width:100%;box-sizing:border-box;vertical-align:middle;font-family:inherit;&::-ms-browse{border-radius:", ";}&::-ms-clear,&::-ms-reveal{display:none;}&::-moz-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch-wrapper{padding:0;}&::-webkit-clear-button,&::-webkit-inner-spin-button,&::-webkit-search-cancel-button,&::-webkit-search-results-button{display:none;}&::-webkit-datetime-edit{direction:", ";line-height:1;}&::placeholder{opacity:1;}&:invalid{box-shadow:none;}&[type='file']::-ms-value{display:none;}@media screen and (min--moz-device-pixel-ratio:0){&[type='number']{appearance:textfield;}}", ";&:focus{outline:none;}", ";&:disabled{cursor:default;}", ";"], function (props) {
|
|
520
547
|
return props.theme.rtl && 'rtl';
|
|
521
548
|
}, function (props) {
|
|
522
549
|
return props.isBare ? 'none' : props.theme.borders.sm;
|
|
@@ -531,38 +558,39 @@ var StyledTextInput = styled.input.attrs(function (props) {
|
|
|
531
558
|
}, function (props) {
|
|
532
559
|
return props.theme.rtl && 'rtl';
|
|
533
560
|
}, function (props) {
|
|
534
|
-
return sizeStyles$
|
|
561
|
+
return sizeStyles$e(props);
|
|
535
562
|
}, function (props) {
|
|
536
|
-
return colorStyles$
|
|
563
|
+
return colorStyles$b(props);
|
|
537
564
|
}, function (props) {
|
|
538
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
565
|
+
return retrieveComponentStyles(COMPONENT_ID$C, props);
|
|
539
566
|
});
|
|
540
567
|
StyledTextInput.defaultProps = {
|
|
541
568
|
theme: DEFAULT_THEME
|
|
542
569
|
};
|
|
543
570
|
|
|
544
|
-
var
|
|
545
|
-
var COMPONENT_ID$w = 'forms.textarea';
|
|
571
|
+
var COMPONENT_ID$B = 'forms.textarea';
|
|
546
572
|
var hiddenStyles = "\n visibility: hidden;\n position: absolute;\n overflow: hidden;\n height: 0;\n top: 0;\n left: 0;\n transform: translateZ(0);\n";
|
|
547
573
|
var StyledTextarea = styled(StyledTextInput).attrs({
|
|
548
574
|
as: 'textarea',
|
|
549
|
-
'data-garden-id': COMPONENT_ID$
|
|
550
|
-
'data-garden-version': '8.
|
|
551
|
-
})(
|
|
575
|
+
'data-garden-id': COMPONENT_ID$B,
|
|
576
|
+
'data-garden-version': '8.40.1'
|
|
577
|
+
}).withConfig({
|
|
578
|
+
displayName: "StyledTextarea",
|
|
579
|
+
componentId: "sc-wxschl-0"
|
|
580
|
+
})(["resize:", ";overflow:auto;", ";", ";"], function (props) {
|
|
552
581
|
return props.isResizable ? 'vertical' : 'none';
|
|
553
582
|
}, function (props) {
|
|
554
583
|
return props.isHidden && hiddenStyles;
|
|
555
584
|
}, function (props) {
|
|
556
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
585
|
+
return retrieveComponentStyles(COMPONENT_ID$B, props);
|
|
557
586
|
});
|
|
558
587
|
StyledTextarea.defaultProps = {
|
|
559
588
|
theme: DEFAULT_THEME
|
|
560
589
|
};
|
|
561
590
|
|
|
562
|
-
var _excluded$
|
|
563
|
-
var
|
|
564
|
-
var
|
|
565
|
-
var colorStyles$9 = function colorStyles(props) {
|
|
591
|
+
var _excluded$h = ["children", "position", "isHovered", "isFocused", "isDisabled", "isRotated", "theme"];
|
|
592
|
+
var COMPONENT_ID$A = 'forms.media_figure';
|
|
593
|
+
var colorStyles$a = function colorStyles(props) {
|
|
566
594
|
var shade = 600;
|
|
567
595
|
if (props.isDisabled) {
|
|
568
596
|
shade = 400;
|
|
@@ -571,7 +599,7 @@ var colorStyles$9 = function colorStyles(props) {
|
|
|
571
599
|
}
|
|
572
600
|
return css(["color:", ";"], getColor('neutralHue', shade, props.theme));
|
|
573
601
|
};
|
|
574
|
-
var sizeStyles$
|
|
602
|
+
var sizeStyles$d = function sizeStyles(props) {
|
|
575
603
|
var size = props.theme.iconSizes.md;
|
|
576
604
|
var marginFirst = "1px ".concat(props.theme.space.base * 2, "px auto 0");
|
|
577
605
|
var marginLast = "1px 0 auto ".concat(props.theme.space.base * 2, "px");
|
|
@@ -592,35 +620,40 @@ function (_ref) {
|
|
|
592
620
|
_ref.isDisabled;
|
|
593
621
|
_ref.isRotated;
|
|
594
622
|
_ref.theme;
|
|
595
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
|
623
|
+
var props = _objectWithoutProperties(_ref, _excluded$h);
|
|
596
624
|
return React__default.cloneElement(Children.only(children), props);
|
|
597
625
|
}).attrs({
|
|
598
|
-
'data-garden-id': COMPONENT_ID$
|
|
599
|
-
'data-garden-version': '8.
|
|
600
|
-
})
|
|
626
|
+
'data-garden-id': COMPONENT_ID$A,
|
|
627
|
+
'data-garden-version': '8.40.1'
|
|
628
|
+
}).withConfig({
|
|
629
|
+
displayName: "StyledTextMediaFigure",
|
|
630
|
+
componentId: "sc-1qepknj-0"
|
|
631
|
+
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], function (props) {
|
|
601
632
|
return props.isRotated && "rotate(".concat(props.theme.rtl ? '-' : '+', "180deg)");
|
|
602
633
|
}, function (props) {
|
|
603
|
-
return colorStyles$
|
|
634
|
+
return colorStyles$a(props);
|
|
604
635
|
}, function (props) {
|
|
605
|
-
return sizeStyles$
|
|
636
|
+
return sizeStyles$d(props);
|
|
606
637
|
}, function (props) {
|
|
607
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
638
|
+
return retrieveComponentStyles(COMPONENT_ID$A, props);
|
|
608
639
|
});
|
|
609
640
|
StyledTextMediaFigure.defaultProps = {
|
|
610
641
|
theme: DEFAULT_THEME
|
|
611
642
|
};
|
|
612
643
|
|
|
613
|
-
var
|
|
614
|
-
var COMPONENT_ID$u = 'forms.faux_input';
|
|
644
|
+
var COMPONENT_ID$z = 'forms.faux_input';
|
|
615
645
|
var StyledTextFauxInput = styled(StyledTextInput).attrs(function (props) {
|
|
616
646
|
return {
|
|
617
647
|
as: 'div',
|
|
618
648
|
'aria-readonly': props.isReadOnly,
|
|
619
649
|
'aria-disabled': props.isDisabled,
|
|
620
|
-
'data-garden-id': COMPONENT_ID$
|
|
621
|
-
'data-garden-version': '8.
|
|
650
|
+
'data-garden-id': COMPONENT_ID$z,
|
|
651
|
+
'data-garden-version': '8.40.1'
|
|
622
652
|
};
|
|
623
|
-
})(
|
|
653
|
+
}).withConfig({
|
|
654
|
+
displayName: "StyledTextFauxInput",
|
|
655
|
+
componentId: "sc-yqw7j9-0"
|
|
656
|
+
})(["display:", ";align-items:", ";cursor:", ";overflow:hidden;& > ", "{vertical-align:", ";}& > ", "{flex-shrink:", ";}", ";"], function (props) {
|
|
624
657
|
return props.mediaLayout ? 'inline-flex' : 'inline-block';
|
|
625
658
|
}, function (props) {
|
|
626
659
|
return props.mediaLayout && 'baseline';
|
|
@@ -631,27 +664,28 @@ var StyledTextFauxInput = styled(StyledTextInput).attrs(function (props) {
|
|
|
631
664
|
}, StyledTextMediaFigure, function (props) {
|
|
632
665
|
return props.mediaLayout && '0';
|
|
633
666
|
}, function (props) {
|
|
634
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
667
|
+
return retrieveComponentStyles(COMPONENT_ID$z, props);
|
|
635
668
|
});
|
|
636
669
|
StyledTextFauxInput.defaultProps = {
|
|
637
670
|
theme: DEFAULT_THEME
|
|
638
671
|
};
|
|
639
672
|
|
|
640
|
-
var
|
|
641
|
-
var COMPONENT_ID$t = 'forms.media_input';
|
|
673
|
+
var COMPONENT_ID$y = 'forms.media_input';
|
|
642
674
|
var StyledTextMediaInput = styled(StyledTextInput).attrs({
|
|
643
|
-
'data-garden-id': COMPONENT_ID$
|
|
644
|
-
'data-garden-version': '8.
|
|
675
|
+
'data-garden-id': COMPONENT_ID$y,
|
|
676
|
+
'data-garden-version': '8.40.1',
|
|
645
677
|
isBare: true
|
|
646
|
-
})(
|
|
647
|
-
|
|
678
|
+
}).withConfig({
|
|
679
|
+
displayName: "StyledTextMediaInput",
|
|
680
|
+
componentId: "sc-12i9xfi-0"
|
|
681
|
+
})(["flex-grow:1;", ";"], function (props) {
|
|
682
|
+
return retrieveComponentStyles(COMPONENT_ID$y, props);
|
|
648
683
|
});
|
|
649
684
|
StyledTextMediaInput.defaultProps = {
|
|
650
685
|
theme: DEFAULT_THEME
|
|
651
686
|
};
|
|
652
687
|
|
|
653
|
-
var
|
|
654
|
-
var COMPONENT_ID$s = 'forms.input_group';
|
|
688
|
+
var COMPONENT_ID$x = 'forms.input_group';
|
|
655
689
|
var positionStyles$1 = function positionStyles(props) {
|
|
656
690
|
var topMargin = "".concat(props.theme.space.base * (props.isCompact ? 1 : 2), "px");
|
|
657
691
|
var startDirection = props.theme.rtl ? 'right' : 'left';
|
|
@@ -659,86 +693,97 @@ var positionStyles$1 = function positionStyles(props) {
|
|
|
659
693
|
return css(["", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}& > ", "{position:relative;flex:1 1 auto;margin-top:0;margin-bottom:0;width:auto;min-width:0;}& > ", ":not(:first-child){border-top-", "-radius:0;border-bottom-", "-radius:0;}& > ", ":not(:last-child){border-top-", "-radius:0;border-bottom-", "-radius:0;}"], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, topMargin, StyledTextInput, StyledTextInput, startDirection, startDirection, StyledTextInput, endDirection, endDirection);
|
|
660
694
|
};
|
|
661
695
|
var itemStyles = function itemStyles(props) {
|
|
662
|
-
|
|
696
|
+
var horizontal = props.theme.rtl ? 'right' : 'left';
|
|
697
|
+
return css(["& > *{margin-", ":-", " !important;z-index:-1;}& > ", ":hover,& > button:hover,& > ", "[data-garden-focus-visible],& > button[data-garden-focus-visible],& > ", ":active,& > button:active{z-index:1;}& > button:disabled{border-top-width:0;border-bottom-width:0;}& > ", ":disabled{z-index:-2;}& > *:first-child:not(:last-child){margin-", ":0;border-top-", "-radius:0;border-bottom-", "-radius:0;}& > *:last-child:not(:first-child){border-top-", "-radius:0;border-bottom-", "-radius:0;}& > *:not(:first-child):not(:last-child){border-radius:0;}"], horizontal, props.theme.borderWidths.sm, StyledTextInput, StyledTextInput, StyledTextInput, StyledTextInput, props.theme.rtl ? 'right' : 'left', props.theme.rtl ? 'left' : 'right', props.theme.rtl ? 'left' : 'right', props.theme.rtl ? 'right' : 'left', props.theme.rtl ? 'right' : 'left');
|
|
663
698
|
};
|
|
664
699
|
var StyledInputGroup = styled.div.attrs({
|
|
665
|
-
'data-garden-id': COMPONENT_ID$
|
|
666
|
-
'data-garden-version': '8.
|
|
667
|
-
})(
|
|
700
|
+
'data-garden-id': COMPONENT_ID$x,
|
|
701
|
+
'data-garden-version': '8.40.1'
|
|
702
|
+
}).withConfig({
|
|
703
|
+
displayName: "StyledInputGroup",
|
|
704
|
+
componentId: "sc-kjh1f0-0"
|
|
705
|
+
})(["display:inline-flex;position:relative;flex-wrap:nowrap;align-items:stretch;z-index:0;width:100%;", ";", ";", ";"], function (props) {
|
|
668
706
|
return positionStyles$1(props);
|
|
669
707
|
}, function (props) {
|
|
670
708
|
return itemStyles(props);
|
|
671
709
|
}, function (props) {
|
|
672
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
710
|
+
return retrieveComponentStyles(COMPONENT_ID$x, props);
|
|
673
711
|
});
|
|
674
712
|
StyledInputGroup.defaultProps = {
|
|
675
713
|
theme: DEFAULT_THEME
|
|
676
714
|
};
|
|
677
715
|
|
|
678
|
-
var
|
|
679
|
-
var
|
|
680
|
-
var sizeStyles$b = function sizeStyles(props) {
|
|
716
|
+
var COMPONENT_ID$w = 'forms.radio_label';
|
|
717
|
+
var sizeStyles$c = function sizeStyles(props) {
|
|
681
718
|
var size = props.theme.space.base * 4;
|
|
682
719
|
var padding = size + props.theme.space.base * 2;
|
|
683
720
|
var lineHeight = props.theme.space.base * 5;
|
|
684
721
|
return css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;line-height:", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size, lineHeight);
|
|
685
722
|
};
|
|
686
723
|
var StyledRadioLabel = styled(StyledLabel).attrs({
|
|
687
|
-
'data-garden-id': COMPONENT_ID$
|
|
688
|
-
'data-garden-version': '8.
|
|
724
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
725
|
+
'data-garden-version': '8.40.1',
|
|
689
726
|
isRadio: true
|
|
690
|
-
})(
|
|
691
|
-
|
|
727
|
+
}).withConfig({
|
|
728
|
+
displayName: "StyledRadioLabel",
|
|
729
|
+
componentId: "sc-1aq2e5t-0"
|
|
730
|
+
})(["display:inline-block;position:relative;cursor:pointer;user-select:none;", ";", ";"], function (props) {
|
|
731
|
+
return sizeStyles$c(props);
|
|
692
732
|
}, function (props) {
|
|
693
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
733
|
+
return retrieveComponentStyles(COMPONENT_ID$w, props);
|
|
694
734
|
});
|
|
695
735
|
StyledRadioLabel.defaultProps = {
|
|
696
736
|
theme: DEFAULT_THEME
|
|
697
737
|
};
|
|
698
738
|
|
|
699
|
-
var
|
|
700
|
-
var COMPONENT_ID$q = 'forms.checkbox_label';
|
|
739
|
+
var COMPONENT_ID$v = 'forms.checkbox_label';
|
|
701
740
|
var StyledCheckLabel = styled(StyledRadioLabel).attrs({
|
|
702
|
-
'data-garden-id': COMPONENT_ID$
|
|
703
|
-
'data-garden-version': '8.
|
|
704
|
-
})(
|
|
705
|
-
|
|
741
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
742
|
+
'data-garden-version': '8.40.1'
|
|
743
|
+
}).withConfig({
|
|
744
|
+
displayName: "StyledCheckLabel",
|
|
745
|
+
componentId: "sc-x7nr1-0"
|
|
746
|
+
})(["", ";"], function (props) {
|
|
747
|
+
return retrieveComponentStyles(COMPONENT_ID$v, props);
|
|
706
748
|
});
|
|
707
749
|
StyledCheckLabel.defaultProps = {
|
|
708
750
|
theme: DEFAULT_THEME
|
|
709
751
|
};
|
|
710
752
|
|
|
711
|
-
var
|
|
712
|
-
var COMPONENT_ID$p = 'forms.radio_hint';
|
|
753
|
+
var COMPONENT_ID$u = 'forms.radio_hint';
|
|
713
754
|
var StyledRadioHint = styled(StyledHint).attrs({
|
|
714
|
-
'data-garden-id': COMPONENT_ID$
|
|
715
|
-
'data-garden-version': '8.
|
|
716
|
-
})(
|
|
755
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
756
|
+
'data-garden-version': '8.40.1'
|
|
757
|
+
}).withConfig({
|
|
758
|
+
displayName: "StyledRadioHint",
|
|
759
|
+
componentId: "sc-eo8twg-0"
|
|
760
|
+
})(["padding-", ":", ";", ";"], function (props) {
|
|
717
761
|
return props.theme.rtl ? 'right' : 'left';
|
|
718
762
|
}, function (props) {
|
|
719
763
|
return math("".concat(props.theme.space.base, " * 6px"));
|
|
720
764
|
}, function (props) {
|
|
721
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
765
|
+
return retrieveComponentStyles(COMPONENT_ID$u, props);
|
|
722
766
|
});
|
|
723
767
|
StyledRadioHint.defaultProps = {
|
|
724
768
|
theme: DEFAULT_THEME
|
|
725
769
|
};
|
|
726
770
|
|
|
727
|
-
var
|
|
728
|
-
var COMPONENT_ID$o = 'forms.checkbox_hint';
|
|
771
|
+
var COMPONENT_ID$t = 'forms.checkbox_hint';
|
|
729
772
|
var StyledCheckHint = styled(StyledRadioHint).attrs({
|
|
730
|
-
'data-garden-id': COMPONENT_ID$
|
|
731
|
-
'data-garden-version': '8.
|
|
732
|
-
})(
|
|
733
|
-
|
|
773
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
774
|
+
'data-garden-version': '8.40.1'
|
|
775
|
+
}).withConfig({
|
|
776
|
+
displayName: "StyledCheckHint",
|
|
777
|
+
componentId: "sc-1kl8e8c-0"
|
|
778
|
+
})(["", ";"], function (props) {
|
|
779
|
+
return retrieveComponentStyles(COMPONENT_ID$t, props);
|
|
734
780
|
});
|
|
735
781
|
StyledCheckHint.defaultProps = {
|
|
736
782
|
theme: DEFAULT_THEME
|
|
737
783
|
};
|
|
738
784
|
|
|
739
|
-
var
|
|
740
|
-
var
|
|
741
|
-
var colorStyles$8 = function colorStyles(props) {
|
|
785
|
+
var COMPONENT_ID$s = 'forms.radio';
|
|
786
|
+
var colorStyles$9 = function colorStyles(props) {
|
|
742
787
|
var SHADE = 600;
|
|
743
788
|
var borderColor = getColor('neutralHue', SHADE - 300, props.theme);
|
|
744
789
|
var backgroundColor = props.theme.colors.background;
|
|
@@ -758,7 +803,7 @@ var colorStyles$8 = function colorStyles(props) {
|
|
|
758
803
|
var disabledBackgroundColor = getColor('neutralHue', SHADE - 400, props.theme);
|
|
759
804
|
return css(["& ~ ", "::before{border-color:", ";background-color:", ";}& ~ ", " > svg{color:", ";}& ~ ", ":hover::before{border-color:", ";background-color:", ";}&[data-garden-focus-visible='true'] ~ ", "::before{border-color:", ";box-shadow:", ";}& ~ ", ":active::before{border-color:", ";background-color:", ";}&:checked ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:checked ~ ", ":hover::before{border-color:", ";background-color:", ";}&:enabled:checked ~ ", ":active::before{border-color:", ";background-color:", ";}&:disabled ~ ", "::before{border-color:transparent;background-color:", ";}"], StyledRadioLabel, borderColor, backgroundColor, StyledRadioLabel, iconColor, StyledRadioLabel, hoverBorderColor, hoverBackgroundColor, StyledRadioLabel, focusBorderColor, boxShadow, StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
|
|
760
805
|
};
|
|
761
|
-
var sizeStyles$
|
|
806
|
+
var sizeStyles$b = function sizeStyles(props) {
|
|
762
807
|
var lineHeight = "".concat(props.theme.space.base * 5, "px");
|
|
763
808
|
var size = "".concat(props.theme.space.base * 4, "px");
|
|
764
809
|
var top = math("(".concat(lineHeight, " - ").concat(size, ") / 2"));
|
|
@@ -769,27 +814,29 @@ var sizeStyles$a = function sizeStyles(props) {
|
|
|
769
814
|
return css(["& ~ ", "::before{top:", ";background-size:", ";width:", ";height:", ";box-sizing:border-box;}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}& ~ ", " ~ ", "{margin-top:", ";}"], StyledRadioLabel, top, props.theme.iconSizes.sm, size, size, StyledRadioLabel, iconTop, props.theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledRadioLabel, StyledMessage, marginTop);
|
|
770
815
|
};
|
|
771
816
|
var StyledRadioInput = styled.input.attrs({
|
|
772
|
-
'data-garden-id': COMPONENT_ID$
|
|
773
|
-
'data-garden-version': '8.
|
|
817
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
818
|
+
'data-garden-version': '8.40.1',
|
|
774
819
|
type: 'radio'
|
|
775
|
-
})
|
|
820
|
+
}).withConfig({
|
|
821
|
+
displayName: "StyledRadioInput",
|
|
822
|
+
componentId: "sc-qsavpv-0"
|
|
823
|
+
})(["position:absolute;clip:rect(1px,1px,1px,1px);& ~ ", "::before{position:absolute;", ":0;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border:", ";border-radius:50%;background-repeat:no-repeat;background-position:center;content:'';}& ~ ", " > svg{position:absolute;}", ";&:focus ~ ", "::before{outline:none;}& ~ ", ":active::before{transition:border-color 0.1s ease-in-out,background-color 0.1s ease-in-out,color 0.1s ease-in-out;}", ";&:disabled ~ ", "{cursor:default;}", ";"], StyledRadioLabel, function (props) {
|
|
776
824
|
return props.theme.rtl ? 'right' : 'left';
|
|
777
825
|
}, function (props) {
|
|
778
826
|
return props.theme.borders.sm;
|
|
779
827
|
}, StyledRadioLabel, function (props) {
|
|
780
|
-
return sizeStyles$
|
|
828
|
+
return sizeStyles$b(props);
|
|
781
829
|
}, StyledRadioLabel, StyledRadioLabel, function (props) {
|
|
782
|
-
return colorStyles$
|
|
830
|
+
return colorStyles$9(props);
|
|
783
831
|
}, StyledRadioLabel, function (props) {
|
|
784
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
832
|
+
return retrieveComponentStyles(COMPONENT_ID$s, props);
|
|
785
833
|
});
|
|
786
834
|
StyledRadioInput.defaultProps = {
|
|
787
835
|
theme: DEFAULT_THEME
|
|
788
836
|
};
|
|
789
837
|
|
|
790
|
-
var
|
|
791
|
-
var
|
|
792
|
-
var colorStyles$7 = function colorStyles(props) {
|
|
838
|
+
var COMPONENT_ID$r = 'forms.checkbox';
|
|
839
|
+
var colorStyles$8 = function colorStyles(props) {
|
|
793
840
|
var SHADE = 600;
|
|
794
841
|
var indeterminateBorderColor = getColor('primaryHue', SHADE, props.theme);
|
|
795
842
|
var indeterminateBackgroundColor = indeterminateBorderColor;
|
|
@@ -799,51 +846,58 @@ var colorStyles$7 = function colorStyles(props) {
|
|
|
799
846
|
return css(["&:indeterminate ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:indeterminate ~ ", ":active::before{border-color:", ";background-color:", ";}&:disabled:indeterminate ~ ", "::before{border-color:transparent;background-color:", ";}"], StyledCheckLabel, indeterminateBorderColor, indeterminateBackgroundColor, StyledCheckLabel, indeterminateActiveBorderColor, indeterminateActiveBackgroundColor, StyledCheckLabel, indeterminateDisabledBackgroundColor);
|
|
800
847
|
};
|
|
801
848
|
var StyledCheckInput = styled(StyledRadioInput).attrs({
|
|
802
|
-
'data-garden-id': COMPONENT_ID$
|
|
803
|
-
'data-garden-version': '8.
|
|
849
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
850
|
+
'data-garden-version': '8.40.1',
|
|
804
851
|
type: 'checkbox'
|
|
805
|
-
})(
|
|
852
|
+
}).withConfig({
|
|
853
|
+
displayName: "StyledCheckInput",
|
|
854
|
+
componentId: "sc-176jxxe-0"
|
|
855
|
+
})(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, function (props) {
|
|
806
856
|
return props.theme.borderRadii.md;
|
|
807
857
|
}, function (props) {
|
|
808
|
-
return colorStyles$
|
|
858
|
+
return colorStyles$8(props);
|
|
809
859
|
}, function (props) {
|
|
810
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
860
|
+
return retrieveComponentStyles(COMPONENT_ID$r, props);
|
|
811
861
|
});
|
|
812
862
|
StyledCheckInput.defaultProps = {
|
|
813
863
|
theme: DEFAULT_THEME
|
|
814
864
|
};
|
|
815
865
|
|
|
816
|
-
var
|
|
817
|
-
var COMPONENT_ID$l = 'forms.radio_message';
|
|
866
|
+
var COMPONENT_ID$q = 'forms.radio_message';
|
|
818
867
|
var StyledRadioMessage = styled(StyledMessage).attrs({
|
|
819
|
-
'data-garden-id': COMPONENT_ID$
|
|
820
|
-
'data-garden-version': '8.
|
|
821
|
-
})(
|
|
868
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
869
|
+
'data-garden-version': '8.40.1'
|
|
870
|
+
}).withConfig({
|
|
871
|
+
displayName: "StyledRadioMessage",
|
|
872
|
+
componentId: "sc-1pmi0q8-0"
|
|
873
|
+
})(["padding-", ":", ";", ";"], function (props) {
|
|
822
874
|
return props.theme.rtl ? 'right' : 'left';
|
|
823
875
|
}, function (props) {
|
|
824
876
|
return math("".concat(props.theme.space.base, " * 6px"));
|
|
825
877
|
}, function (props) {
|
|
826
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
878
|
+
return retrieveComponentStyles(COMPONENT_ID$q, props);
|
|
827
879
|
});
|
|
828
880
|
StyledRadioMessage.defaultProps = {
|
|
829
881
|
theme: DEFAULT_THEME
|
|
830
882
|
};
|
|
831
883
|
|
|
832
|
-
var
|
|
833
|
-
var COMPONENT_ID$k = 'forms.checkbox_message';
|
|
884
|
+
var COMPONENT_ID$p = 'forms.checkbox_message';
|
|
834
885
|
var StyledCheckMessage = styled(StyledRadioMessage).attrs({
|
|
835
|
-
'data-garden-id': COMPONENT_ID$
|
|
836
|
-
'data-garden-version': '8.
|
|
837
|
-
})(
|
|
838
|
-
|
|
886
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
887
|
+
'data-garden-version': '8.40.1'
|
|
888
|
+
}).withConfig({
|
|
889
|
+
displayName: "StyledCheckMessage",
|
|
890
|
+
componentId: "sc-s4p6kd-0"
|
|
891
|
+
})(["", ";"], function (props) {
|
|
892
|
+
return retrieveComponentStyles(COMPONENT_ID$p, props);
|
|
839
893
|
});
|
|
840
894
|
StyledCheckMessage.defaultProps = {
|
|
841
895
|
theme: DEFAULT_THEME
|
|
842
896
|
};
|
|
843
897
|
|
|
844
|
-
function _extends$
|
|
898
|
+
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
845
899
|
|
|
846
|
-
var _ref$
|
|
900
|
+
var _ref$b = /*#__PURE__*/React.createElement("path", {
|
|
847
901
|
fill: "none",
|
|
848
902
|
stroke: "currentColor",
|
|
849
903
|
strokeLinecap: "round",
|
|
@@ -853,31 +907,33 @@ var _ref$4 = /*#__PURE__*/React.createElement("path", {
|
|
|
853
907
|
});
|
|
854
908
|
|
|
855
909
|
function SvgCheckSmFill(props) {
|
|
856
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
910
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
857
911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
858
912
|
width: 12,
|
|
859
913
|
height: 12,
|
|
860
914
|
viewBox: "0 0 12 12",
|
|
861
915
|
focusable: "false",
|
|
862
916
|
role: "presentation"
|
|
863
|
-
}, props), _ref$
|
|
917
|
+
}, props), _ref$b);
|
|
864
918
|
}
|
|
865
919
|
|
|
866
|
-
var
|
|
867
|
-
var COMPONENT_ID$j = 'forms.check_svg';
|
|
920
|
+
var COMPONENT_ID$o = 'forms.check_svg';
|
|
868
921
|
var StyledCheckSvg = styled(SvgCheckSmFill).attrs({
|
|
869
|
-
'data-garden-id': COMPONENT_ID$
|
|
870
|
-
'data-garden-version': '8.
|
|
871
|
-
})
|
|
872
|
-
|
|
922
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
923
|
+
'data-garden-version': '8.40.1'
|
|
924
|
+
}).withConfig({
|
|
925
|
+
displayName: "StyledCheckSvg",
|
|
926
|
+
componentId: "sc-fvxetk-0"
|
|
927
|
+
})(["transition:opacity 0.25 ease-in-out;opacity:0;pointer-events:none;", ":checked ~ ", " > &{opacity:1;}", ":indeterminate ~ ", " > &{opacity:0;}", ";"], StyledCheckInput, StyledCheckLabel, StyledCheckInput, StyledCheckLabel, function (props) {
|
|
928
|
+
return retrieveComponentStyles(COMPONENT_ID$o, props);
|
|
873
929
|
});
|
|
874
930
|
StyledCheckSvg.defaultProps = {
|
|
875
931
|
theme: DEFAULT_THEME
|
|
876
932
|
};
|
|
877
933
|
|
|
878
|
-
function _extends$
|
|
934
|
+
function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
879
935
|
|
|
880
|
-
var _ref$
|
|
936
|
+
var _ref$a = /*#__PURE__*/React.createElement("path", {
|
|
881
937
|
stroke: "currentColor",
|
|
882
938
|
strokeLinecap: "round",
|
|
883
939
|
strokeWidth: 2,
|
|
@@ -885,35 +941,36 @@ var _ref$3 = /*#__PURE__*/React.createElement("path", {
|
|
|
885
941
|
});
|
|
886
942
|
|
|
887
943
|
function SvgDashFill(props) {
|
|
888
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
944
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
889
945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
890
946
|
width: 12,
|
|
891
947
|
height: 12,
|
|
892
948
|
viewBox: "0 0 12 12",
|
|
893
949
|
focusable: "false",
|
|
894
950
|
role: "presentation"
|
|
895
|
-
}, props), _ref$
|
|
951
|
+
}, props), _ref$a);
|
|
896
952
|
}
|
|
897
953
|
|
|
898
|
-
var
|
|
899
|
-
var COMPONENT_ID$i = 'forms.dash_svg';
|
|
954
|
+
var COMPONENT_ID$n = 'forms.dash_svg';
|
|
900
955
|
var StyledDashSvg = styled(SvgDashFill).attrs({
|
|
901
|
-
'data-garden-id': COMPONENT_ID$
|
|
902
|
-
'data-garden-version': '8.
|
|
903
|
-
})
|
|
904
|
-
|
|
956
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
957
|
+
'data-garden-version': '8.40.1'
|
|
958
|
+
}).withConfig({
|
|
959
|
+
displayName: "StyledDashSvg",
|
|
960
|
+
componentId: "sc-z3vq71-0"
|
|
961
|
+
})(["transition:opacity 0.25 ease-in-out;opacity:0;pointer-events:none;", ":indeterminate ~ ", " > &{opacity:1;}", ";"], StyledCheckInput, StyledCheckLabel, function (props) {
|
|
962
|
+
return retrieveComponentStyles(COMPONENT_ID$n, props);
|
|
905
963
|
});
|
|
906
964
|
StyledDashSvg.defaultProps = {
|
|
907
965
|
theme: DEFAULT_THEME
|
|
908
966
|
};
|
|
909
967
|
|
|
910
|
-
var
|
|
911
|
-
var COMPONENT_ID$h = 'forms.file_upload';
|
|
968
|
+
var COMPONENT_ID$m = 'forms.file_upload';
|
|
912
969
|
var positionStyles = function positionStyles(props) {
|
|
913
970
|
var topMargin = "".concat(props.theme.space.base * (props.isCompact ? 1 : 2), "px");
|
|
914
971
|
return css(["", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}"], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, topMargin);
|
|
915
972
|
};
|
|
916
|
-
var colorStyles$
|
|
973
|
+
var colorStyles$7 = function colorStyles(props) {
|
|
917
974
|
var baseColor = getColor('primaryHue', 600, props.theme);
|
|
918
975
|
var hoverColor = getColor('primaryHue', 700, props.theme);
|
|
919
976
|
var activeColor = getColor('primaryHue', 800, props.theme);
|
|
@@ -923,9 +980,12 @@ var colorStyles$6 = function colorStyles(props) {
|
|
|
923
980
|
return css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";color:", ";}&[data-garden-focus-visible]{box-shadow:", ";}&:active{border-color:", ";background-color:", ";color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], props.isDragging ? activeColor : getColor('neutralHue', 600, props.theme), props.isDragging && rgba(baseColor, 0.2), props.isDragging ? activeColor : baseColor, hoverColor, rgba(baseColor, 0.08), hoverColor, boxShadow, activeColor, rgba(baseColor, 0.2), activeColor, disabledForegroundColor, disabledBackgroundColor, disabledForegroundColor);
|
|
924
981
|
};
|
|
925
982
|
var StyledFileUpload = styled.div.attrs({
|
|
926
|
-
'data-garden-id': COMPONENT_ID$
|
|
927
|
-
'data-garden-version': '8.
|
|
928
|
-
})
|
|
983
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
984
|
+
'data-garden-version': '8.40.1'
|
|
985
|
+
}).withConfig({
|
|
986
|
+
displayName: "StyledFileUpload",
|
|
987
|
+
componentId: "sc-1rodjgn-0"
|
|
988
|
+
})(["box-sizing:content-box;direction:", ";transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:dashed ", ";border-radius:", ";cursor:pointer;padding:", ";min-width:4em;text-align:center;line-height:", ";font-size:", ";user-select:none;&:focus{outline:none;}&[aria-disabled='true']{cursor:default;}", ";", ";", ";"], function (props) {
|
|
929
989
|
return props.theme.rtl ? 'rtl' : 'ltr';
|
|
930
990
|
}, function (props) {
|
|
931
991
|
return props.theme.borderWidths.sm;
|
|
@@ -938,19 +998,118 @@ var StyledFileUpload = styled.div.attrs({
|
|
|
938
998
|
}, function (props) {
|
|
939
999
|
return props.theme.fontSizes.md;
|
|
940
1000
|
}, function (props) {
|
|
941
|
-
return colorStyles$
|
|
1001
|
+
return colorStyles$7(props);
|
|
942
1002
|
}, function (props) {
|
|
943
1003
|
return positionStyles(props);
|
|
944
1004
|
}, function (props) {
|
|
945
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
1005
|
+
return retrieveComponentStyles(COMPONENT_ID$m, props);
|
|
946
1006
|
});
|
|
947
1007
|
StyledFileUpload.defaultProps = {
|
|
948
1008
|
theme: DEFAULT_THEME
|
|
949
1009
|
};
|
|
950
1010
|
|
|
951
|
-
|
|
1011
|
+
var COMPONENT_ID$l = 'forms.file.close';
|
|
1012
|
+
var StyledFileClose = styled.div.attrs({
|
|
1013
|
+
'data-garden-id': COMPONENT_ID$l,
|
|
1014
|
+
'data-garden-version': '8.40.1'
|
|
1015
|
+
}).withConfig({
|
|
1016
|
+
displayName: "StyledFileClose",
|
|
1017
|
+
componentId: "sc-1m31jbf-0"
|
|
1018
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;cursor:pointer;&:hover{opacity:0.9;}&:focus{outline:none;}", ";"], function (props) {
|
|
1019
|
+
return retrieveComponentStyles(COMPONENT_ID$l, props);
|
|
1020
|
+
});
|
|
1021
|
+
StyledFileClose.defaultProps = {
|
|
1022
|
+
theme: DEFAULT_THEME
|
|
1023
|
+
};
|
|
952
1024
|
|
|
953
|
-
var
|
|
1025
|
+
var COMPONENT_ID$k = 'forms.file';
|
|
1026
|
+
var colorStyles$6 = function colorStyles(props) {
|
|
1027
|
+
var borderColor = getColor('neutralHue', 300, props.theme);
|
|
1028
|
+
var focusBorderColor = getColor('primaryHue', 600, props.theme);
|
|
1029
|
+
var foregroundColor = getColor('neutralHue', 800, props.theme);
|
|
1030
|
+
var boxShadow = "\n ".concat(props.focusInset ? 'inset' : '', "\n ").concat(props.theme.shadows.md(rgba(focusBorderColor, 0.35)));
|
|
1031
|
+
return "\n border-color: ".concat(borderColor, ";\n color: ").concat(foregroundColor, ";\n\n &:focus {\n box-shadow: ").concat(boxShadow, ";\n border-color: ").concat(focusBorderColor, ";\n }\n ");
|
|
1032
|
+
};
|
|
1033
|
+
var sizeStyles$a = function sizeStyles(props) {
|
|
1034
|
+
var size = "".concat(props.theme.space.base * (props.isCompact ? 7 : 10), "px");
|
|
1035
|
+
var spacing = "".concat(props.theme.space.base * 3, "px");
|
|
1036
|
+
var fontSize = props.theme.fontSizes.md;
|
|
1037
|
+
var lineHeight = getLineHeight(props.theme.space.base * 5, fontSize);
|
|
1038
|
+
return "\n box-sizing: border-box;\n border: ".concat(props.theme.borders.sm, ";\n border-radius: ").concat(props.theme.borderRadii.md, ";\n padding: 0 ").concat(spacing, ";\n height: ").concat(size, ";\n line-height: ").concat(lineHeight, ";\n font-size: ").concat(fontSize, ";\n\n & > span {\n width: 100%;\n }\n\n & > ").concat(StyledFileClose, " {\n width: ").concat(size, ";\n height: ").concat(size, ";\n margin-").concat(props.theme.rtl ? 'left' : 'right', ": -").concat(spacing, ";\n }\n ");
|
|
1039
|
+
};
|
|
1040
|
+
var StyledFile = styled.div.attrs({
|
|
1041
|
+
'data-garden-id': COMPONENT_ID$k,
|
|
1042
|
+
'data-garden-version': '8.40.1'
|
|
1043
|
+
}).withConfig({
|
|
1044
|
+
displayName: "StyledFile",
|
|
1045
|
+
componentId: "sc-195lzp1-0"
|
|
1046
|
+
})(["display:flex;position:relative;flex-wrap:nowrap;align-items:center;", ";&:focus{outline:none;}", ";& > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& > [role='progressbar']{position:absolute;bottom:0;left:0;transition:opacity 0.2s ease-in-out;margin:0;border-top-left-radius:0;border-top-right-radius:0;width:100%;& > div{border-top-", "-radius:0;}}& > [role='progressbar'][aria-valuenow='0'],& > [role='progressbar'][aria-valuenow='100']{opacity:0;}", ";"], sizeStyles$a, colorStyles$6, function (props) {
|
|
1047
|
+
return props.theme.rtl ? 'right' : 'left';
|
|
1048
|
+
}, function (props) {
|
|
1049
|
+
return retrieveComponentStyles(COMPONENT_ID$k, props);
|
|
1050
|
+
});
|
|
1051
|
+
StyledFile.defaultProps = {
|
|
1052
|
+
theme: DEFAULT_THEME
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
var _excluded$g = ["children"];
|
|
1056
|
+
var COMPONENT_ID$j = 'forms.file.icon';
|
|
1057
|
+
var StyledFileIcon = styled(function (_ref) {
|
|
1058
|
+
var children = _ref.children,
|
|
1059
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1060
|
+
return React__default.cloneElement(Children.only(children), props);
|
|
1061
|
+
}).attrs({
|
|
1062
|
+
'data-garden-id': COMPONENT_ID$j,
|
|
1063
|
+
'data-garden-version': '8.40.1'
|
|
1064
|
+
}).withConfig({
|
|
1065
|
+
displayName: "StyledFileIcon",
|
|
1066
|
+
componentId: "sc-7b3q0c-0"
|
|
1067
|
+
})(["flex-shrink:0;width:", ";margin-", ":", "px;", ";"], function (props) {
|
|
1068
|
+
return props.theme.iconSizes.md;
|
|
1069
|
+
}, function (props) {
|
|
1070
|
+
return props.theme.rtl ? 'left' : 'right';
|
|
1071
|
+
}, function (props) {
|
|
1072
|
+
return props.theme.space.base * 2;
|
|
1073
|
+
}, function (props) {
|
|
1074
|
+
return retrieveComponentStyles(COMPONENT_ID$j, props);
|
|
1075
|
+
});
|
|
1076
|
+
StyledFileIcon.defaultProps = {
|
|
1077
|
+
theme: DEFAULT_THEME
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
var COMPONENT_ID$i = 'forms.file_list';
|
|
1081
|
+
var StyledFileList = styled.ul.attrs({
|
|
1082
|
+
'data-garden-id': COMPONENT_ID$i,
|
|
1083
|
+
'data-garden-version': '8.40.1'
|
|
1084
|
+
}).withConfig({
|
|
1085
|
+
displayName: "StyledFileList",
|
|
1086
|
+
componentId: "sc-gbahjg-0"
|
|
1087
|
+
})(["margin:0;padding:0;list-style:none;", ";"], function (props) {
|
|
1088
|
+
return retrieveComponentStyles(COMPONENT_ID$i, props);
|
|
1089
|
+
});
|
|
1090
|
+
StyledFileList.defaultProps = {
|
|
1091
|
+
theme: DEFAULT_THEME
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
var COMPONENT_ID$h = 'forms.file_list.item';
|
|
1095
|
+
var StyledFileListItem = styled.li.attrs({
|
|
1096
|
+
'data-garden-id': COMPONENT_ID$h,
|
|
1097
|
+
'data-garden-version': '8.40.1'
|
|
1098
|
+
}).withConfig({
|
|
1099
|
+
displayName: "StyledFileListItem",
|
|
1100
|
+
componentId: "sc-1ova3lo-0"
|
|
1101
|
+
})(["&:not(:first-child){margin-top:", "px;}", ";"], function (props) {
|
|
1102
|
+
return props.theme.space.base * 2;
|
|
1103
|
+
}, function (props) {
|
|
1104
|
+
return retrieveComponentStyles(COMPONENT_ID$h, props);
|
|
1105
|
+
});
|
|
1106
|
+
StyledFileListItem.defaultProps = {
|
|
1107
|
+
theme: DEFAULT_THEME
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
1111
|
+
|
|
1112
|
+
var _ref$9 = /*#__PURE__*/React.createElement("circle", {
|
|
954
1113
|
cx: 6,
|
|
955
1114
|
cy: 6,
|
|
956
1115
|
r: 2,
|
|
@@ -958,29 +1117,30 @@ var _ref$2 = /*#__PURE__*/React.createElement("circle", {
|
|
|
958
1117
|
});
|
|
959
1118
|
|
|
960
1119
|
function SvgCircleSmFill$1(props) {
|
|
961
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1120
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
962
1121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
963
1122
|
width: 12,
|
|
964
1123
|
height: 12,
|
|
965
1124
|
viewBox: "0 0 12 12",
|
|
966
1125
|
focusable: "false",
|
|
967
1126
|
role: "presentation"
|
|
968
|
-
}, props), _ref$
|
|
1127
|
+
}, props), _ref$9);
|
|
969
1128
|
}
|
|
970
1129
|
|
|
971
|
-
var _templateObject$h;
|
|
972
1130
|
var COMPONENT_ID$g = 'forms.radio_svg';
|
|
973
1131
|
var StyledRadioSvg = styled(SvgCircleSmFill$1).attrs({
|
|
974
1132
|
'data-garden-id': COMPONENT_ID$g,
|
|
975
|
-
'data-garden-version': '8.
|
|
976
|
-
})
|
|
1133
|
+
'data-garden-version': '8.40.1'
|
|
1134
|
+
}).withConfig({
|
|
1135
|
+
displayName: "StyledRadioSvg",
|
|
1136
|
+
componentId: "sc-1r1qtr1-0"
|
|
1137
|
+
})(["transition:opacity 0.25 ease-in-out;opacity:0;", ":checked ~ ", " > &{opacity:1;}", ";"], StyledRadioInput, StyledRadioLabel, function (props) {
|
|
977
1138
|
return retrieveComponentStyles(COMPONENT_ID$g, props);
|
|
978
1139
|
});
|
|
979
1140
|
StyledRadioSvg.defaultProps = {
|
|
980
1141
|
theme: DEFAULT_THEME
|
|
981
1142
|
};
|
|
982
1143
|
|
|
983
|
-
var _templateObject$g;
|
|
984
1144
|
var COMPONENT_ID$f = 'forms.toggle_label';
|
|
985
1145
|
var sizeStyles$9 = function sizeStyles(props) {
|
|
986
1146
|
var size = props.theme.space.base * 10;
|
|
@@ -989,8 +1149,11 @@ var sizeStyles$9 = function sizeStyles(props) {
|
|
|
989
1149
|
};
|
|
990
1150
|
var StyledToggleLabel = styled(StyledCheckLabel).attrs({
|
|
991
1151
|
'data-garden-id': COMPONENT_ID$f,
|
|
992
|
-
'data-garden-version': '8.
|
|
993
|
-
})(
|
|
1152
|
+
'data-garden-version': '8.40.1'
|
|
1153
|
+
}).withConfig({
|
|
1154
|
+
displayName: "StyledToggleLabel",
|
|
1155
|
+
componentId: "sc-e0asdk-0"
|
|
1156
|
+
})(["", ";", ";"], function (props) {
|
|
994
1157
|
return sizeStyles$9(props);
|
|
995
1158
|
}, function (props) {
|
|
996
1159
|
return retrieveComponentStyles(COMPONENT_ID$f, props);
|
|
@@ -999,12 +1162,14 @@ StyledToggleLabel.defaultProps = {
|
|
|
999
1162
|
theme: DEFAULT_THEME
|
|
1000
1163
|
};
|
|
1001
1164
|
|
|
1002
|
-
var _templateObject$f;
|
|
1003
1165
|
var COMPONENT_ID$e = 'forms.toggle_hint';
|
|
1004
1166
|
var StyledToggleHint = styled(StyledHint).attrs({
|
|
1005
1167
|
'data-garden-id': COMPONENT_ID$e,
|
|
1006
|
-
'data-garden-version': '8.
|
|
1007
|
-
})(
|
|
1168
|
+
'data-garden-version': '8.40.1'
|
|
1169
|
+
}).withConfig({
|
|
1170
|
+
displayName: "StyledToggleHint",
|
|
1171
|
+
componentId: "sc-nziggu-0"
|
|
1172
|
+
})(["padding-", ":", ";", ";"], function (props) {
|
|
1008
1173
|
return props.theme.rtl ? 'right' : 'left';
|
|
1009
1174
|
}, function (props) {
|
|
1010
1175
|
return math("".concat(props.theme.space.base, " * 12px"));
|
|
@@ -1015,7 +1180,6 @@ StyledToggleHint.defaultProps = {
|
|
|
1015
1180
|
theme: DEFAULT_THEME
|
|
1016
1181
|
};
|
|
1017
1182
|
|
|
1018
|
-
var _templateObject$e;
|
|
1019
1183
|
var COMPONENT_ID$d = 'forms.toggle';
|
|
1020
1184
|
var colorStyles$5 = function colorStyles(props) {
|
|
1021
1185
|
var SHADE = 600;
|
|
@@ -1034,8 +1198,11 @@ var sizeStyles$8 = function sizeStyles(props) {
|
|
|
1034
1198
|
};
|
|
1035
1199
|
var StyledToggleInput = styled(StyledCheckInput).attrs({
|
|
1036
1200
|
'data-garden-id': COMPONENT_ID$d,
|
|
1037
|
-
'data-garden-version': '8.
|
|
1038
|
-
})
|
|
1201
|
+
'data-garden-version': '8.40.1'
|
|
1202
|
+
}).withConfig({
|
|
1203
|
+
displayName: "StyledToggleInput",
|
|
1204
|
+
componentId: "sc-sgp47s-0"
|
|
1205
|
+
})(["& ~ ", "::before{top:0;transition:box-shadow .1s ease-in-out,background-color .15s ease-in-out,color .25s ease-in-out;border:none;border-radius:100px;}", ";", ";", ";"], StyledToggleLabel, function (props) {
|
|
1039
1206
|
return sizeStyles$8(props);
|
|
1040
1207
|
}, function (props) {
|
|
1041
1208
|
return colorStyles$5(props);
|
|
@@ -1046,12 +1213,14 @@ StyledToggleInput.defaultProps = {
|
|
|
1046
1213
|
theme: DEFAULT_THEME
|
|
1047
1214
|
};
|
|
1048
1215
|
|
|
1049
|
-
var _templateObject$d;
|
|
1050
1216
|
var COMPONENT_ID$c = 'forms.toggle_message';
|
|
1051
1217
|
var StyledToggleMessage = styled(StyledMessage).attrs({
|
|
1052
1218
|
'data-garden-id': COMPONENT_ID$c,
|
|
1053
|
-
'data-garden-version': '8.
|
|
1054
|
-
})(
|
|
1219
|
+
'data-garden-version': '8.40.1'
|
|
1220
|
+
}).withConfig({
|
|
1221
|
+
displayName: "StyledToggleMessage",
|
|
1222
|
+
componentId: "sc-13vuvl1-0"
|
|
1223
|
+
})(["padding-", ":", ";& ", "{", ":", ";}", ";"], function (props) {
|
|
1055
1224
|
return props.theme.rtl ? 'right' : 'left';
|
|
1056
1225
|
}, function (props) {
|
|
1057
1226
|
return math("".concat(props.theme.space.base, " * 12px"));
|
|
@@ -1066,9 +1235,9 @@ StyledToggleMessage.defaultProps = {
|
|
|
1066
1235
|
theme: DEFAULT_THEME
|
|
1067
1236
|
};
|
|
1068
1237
|
|
|
1069
|
-
function _extends$
|
|
1238
|
+
function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
1070
1239
|
|
|
1071
|
-
var _ref$
|
|
1240
|
+
var _ref$8 = /*#__PURE__*/React.createElement("circle", {
|
|
1072
1241
|
cx: 8,
|
|
1073
1242
|
cy: 8,
|
|
1074
1243
|
r: 6,
|
|
@@ -1076,29 +1245,30 @@ var _ref$1 = /*#__PURE__*/React.createElement("circle", {
|
|
|
1076
1245
|
});
|
|
1077
1246
|
|
|
1078
1247
|
function SvgCircleSmFill(props) {
|
|
1079
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1248
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
1080
1249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1081
1250
|
width: 16,
|
|
1082
1251
|
height: 16,
|
|
1083
1252
|
viewBox: "0 0 16 16",
|
|
1084
1253
|
focusable: "false",
|
|
1085
1254
|
role: "presentation"
|
|
1086
|
-
}, props), _ref$
|
|
1255
|
+
}, props), _ref$8);
|
|
1087
1256
|
}
|
|
1088
1257
|
|
|
1089
|
-
var _templateObject$c;
|
|
1090
1258
|
var COMPONENT_ID$b = 'forms.toggle_svg';
|
|
1091
1259
|
var StyledToggleSvg = styled(SvgCircleSmFill).attrs({
|
|
1092
1260
|
'data-garden-id': COMPONENT_ID$b,
|
|
1093
|
-
'data-garden-version': '8.
|
|
1094
|
-
})
|
|
1261
|
+
'data-garden-version': '8.40.1'
|
|
1262
|
+
}).withConfig({
|
|
1263
|
+
displayName: "StyledToggleSvg",
|
|
1264
|
+
componentId: "sc-162xbyx-0"
|
|
1265
|
+
})(["transition:all 0.15s ease-in-out;", ";"], function (props) {
|
|
1095
1266
|
return retrieveComponentStyles(COMPONENT_ID$b, props);
|
|
1096
1267
|
});
|
|
1097
1268
|
StyledToggleSvg.defaultProps = {
|
|
1098
1269
|
theme: DEFAULT_THEME
|
|
1099
1270
|
};
|
|
1100
1271
|
|
|
1101
|
-
var _templateObject$b;
|
|
1102
1272
|
var COMPONENT_ID$a = 'forms.select';
|
|
1103
1273
|
var colorStyles$4 = function colorStyles(props) {
|
|
1104
1274
|
var color = getColor('neutralHue', 700, props.theme);
|
|
@@ -1112,9 +1282,12 @@ var sizeStyles$7 = function sizeStyles(props) {
|
|
|
1112
1282
|
};
|
|
1113
1283
|
var StyledSelect = styled(StyledTextInput).attrs({
|
|
1114
1284
|
'data-garden-id': COMPONENT_ID$a,
|
|
1115
|
-
'data-garden-version': '8.
|
|
1285
|
+
'data-garden-version': '8.40.1',
|
|
1116
1286
|
as: 'select'
|
|
1117
|
-
})(
|
|
1287
|
+
}).withConfig({
|
|
1288
|
+
displayName: "StyledSelect",
|
|
1289
|
+
componentId: "sc-8xdxpt-0"
|
|
1290
|
+
})(["cursor:pointer;text-overflow:ellipsis;", ";", ";&::-ms-expand{display:none;}&::-ms-value{background-color:transparent;color:inherit;}&:-moz-focusring{transition:none;text-shadow:0 0 0 ", ";color:transparent;}& + ", "{position:absolute;pointer-events:none;}"], function (props) {
|
|
1118
1291
|
return sizeStyles$7(props);
|
|
1119
1292
|
}, function (props) {
|
|
1120
1293
|
return colorStyles$4(props);
|
|
@@ -1125,18 +1298,19 @@ StyledSelect.defaultProps = {
|
|
|
1125
1298
|
theme: DEFAULT_THEME
|
|
1126
1299
|
};
|
|
1127
1300
|
|
|
1128
|
-
var _templateObject$a;
|
|
1129
1301
|
var COMPONENT_ID$9 = 'forms.select_wrapper';
|
|
1130
1302
|
var StyledSelectWrapper = styled(StyledTextFauxInput).attrs({
|
|
1131
1303
|
'data-garden-id': COMPONENT_ID$9,
|
|
1132
|
-
'data-garden-version': '8.
|
|
1304
|
+
'data-garden-version': '8.40.1',
|
|
1133
1305
|
isBare: true
|
|
1134
|
-
})(
|
|
1306
|
+
}).withConfig({
|
|
1307
|
+
displayName: "StyledSelectWrapper",
|
|
1308
|
+
componentId: "sc-i7b6hw-0"
|
|
1309
|
+
})(["position:relative;overflow:visible;"]);
|
|
1135
1310
|
StyledSelectWrapper.defaultProps = {
|
|
1136
1311
|
theme: DEFAULT_THEME
|
|
1137
1312
|
};
|
|
1138
1313
|
|
|
1139
|
-
var _templateObject$9;
|
|
1140
1314
|
var COMPONENT_ID$8 = 'forms.range';
|
|
1141
1315
|
var thumbStyles = function thumbStyles(styles) {
|
|
1142
1316
|
var modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -1180,13 +1354,16 @@ var sizeStyles$6 = function sizeStyles(props) {
|
|
|
1180
1354
|
var StyledRangeInput = styled.input.attrs(function (props) {
|
|
1181
1355
|
return {
|
|
1182
1356
|
'data-garden-id': COMPONENT_ID$8,
|
|
1183
|
-
'data-garden-version': '8.
|
|
1357
|
+
'data-garden-version': '8.40.1',
|
|
1184
1358
|
type: 'range',
|
|
1185
1359
|
style: {
|
|
1186
1360
|
backgroundSize: props.hasLowerTrack && props.backgroundSize
|
|
1187
1361
|
}
|
|
1188
1362
|
};
|
|
1189
|
-
})(
|
|
1363
|
+
}).withConfig({
|
|
1364
|
+
displayName: "StyledRangeInput",
|
|
1365
|
+
componentId: "sc-1iv2yqp-0"
|
|
1366
|
+
})(["appearance:none;direction:", ";margin:0;background-color:inherit;cursor:pointer;padding:0;width:100%;vertical-align:middle;", " &::-webkit-slider-container,&::-webkit-slider-runnable-track{background-size:inherit;}", ";", " ", ";&::-moz-focus-outer{border:0;}&::-ms-tooltip{display:none;}&:focus{outline:none;}&:disabled{cursor:default;}", ";"], function (props) {
|
|
1190
1367
|
return props.theme.rtl && 'rtl';
|
|
1191
1368
|
}, function (props) {
|
|
1192
1369
|
return trackStyles("\n appearance: none;\n border-color: transparent; /* reset for IE */\n background-repeat: repeat-y;\n background-size: 0;\n background-position: ".concat(props.theme.rtl ? '100% 100%' : '0% 0%', ";\n width: 99.8%; /* fix for IE which cuts off the upper track's border radius */\n color: transparent; /* reset for IE */\n box-sizing: border-box; /* reset for IE */\n "));
|
|
@@ -1205,15 +1382,17 @@ StyledRangeInput.defaultProps = {
|
|
|
1205
1382
|
theme: DEFAULT_THEME
|
|
1206
1383
|
};
|
|
1207
1384
|
|
|
1208
|
-
var _templateObject$8;
|
|
1209
1385
|
var COMPONENT_ID$7 = 'forms.slider';
|
|
1210
1386
|
var StyledSlider = styled.div.attrs(function (props) {
|
|
1211
1387
|
return {
|
|
1212
1388
|
'data-garden-id': COMPONENT_ID$7,
|
|
1213
|
-
'data-garden-version': '8.
|
|
1389
|
+
'data-garden-version': '8.40.1',
|
|
1214
1390
|
'aria-disabled': props.isDisabled
|
|
1215
1391
|
};
|
|
1216
|
-
})(
|
|
1392
|
+
}).withConfig({
|
|
1393
|
+
displayName: "StyledSlider",
|
|
1394
|
+
componentId: "sc-1di437a-0"
|
|
1395
|
+
})(["display:block;position:relative;z-index:0;cursor:pointer;height:", ";&[aria-disabled='true']{cursor:default;}", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}", ";"], function (props) {
|
|
1217
1396
|
return math("(".concat(props.theme.space.base, " * 5px) + (").concat(props.theme.shadowWidths.md, " * 2)"));
|
|
1218
1397
|
}, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, function (props) {
|
|
1219
1398
|
return math("".concat(props.theme.space.base, " * 2px"));
|
|
@@ -1224,7 +1403,6 @@ StyledSlider.defaultProps = {
|
|
|
1224
1403
|
theme: DEFAULT_THEME
|
|
1225
1404
|
};
|
|
1226
1405
|
|
|
1227
|
-
var _templateObject$7;
|
|
1228
1406
|
var COMPONENT_ID$6 = 'forms.slider_thumb';
|
|
1229
1407
|
var colorStyles$2 = function colorStyles(props) {
|
|
1230
1408
|
var SHADE = 600;
|
|
@@ -1248,10 +1426,13 @@ var sizeStyles$5 = function sizeStyles(props) {
|
|
|
1248
1426
|
var StyledSliderThumb = styled.div.attrs(function (props) {
|
|
1249
1427
|
return {
|
|
1250
1428
|
'data-garden-id': COMPONENT_ID$6,
|
|
1251
|
-
'data-garden-version': '8.
|
|
1429
|
+
'data-garden-version': '8.40.1',
|
|
1252
1430
|
'aria-disabled': props.isDisabled
|
|
1253
1431
|
};
|
|
1254
|
-
})
|
|
1432
|
+
}).withConfig({
|
|
1433
|
+
displayName: "StyledSliderThumb",
|
|
1434
|
+
componentId: "sc-yspbwa-0"
|
|
1435
|
+
})(["appearance:none;position:absolute;top:50%;", ":", ";transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out;z-index:1;border:", ";border-radius:100%;cursor:inherit;box-sizing:border-box;font-size:0;", ";&:focus{outline:none;}", ";", ";"], function (props) {
|
|
1255
1436
|
return props.theme.rtl ? 'right' : 'left';
|
|
1256
1437
|
}, function (props) {
|
|
1257
1438
|
return math("".concat(props.position, " * 1px"));
|
|
@@ -1269,7 +1450,6 @@ StyledSliderThumb.defaultProps = {
|
|
|
1269
1450
|
theme: DEFAULT_THEME
|
|
1270
1451
|
};
|
|
1271
1452
|
|
|
1272
|
-
var _templateObject$6;
|
|
1273
1453
|
var COMPONENT_ID$5 = 'forms.slider_track';
|
|
1274
1454
|
var colorStyles$1 = function colorStyles(props) {
|
|
1275
1455
|
var SHADE = 600;
|
|
@@ -1290,10 +1470,13 @@ var sizeStyles$4 = function sizeStyles(props) {
|
|
|
1290
1470
|
var StyledSliderTrack = styled.div.attrs(function (props) {
|
|
1291
1471
|
return {
|
|
1292
1472
|
'data-garden-id': COMPONENT_ID$5,
|
|
1293
|
-
'data-garden-version': '8.
|
|
1473
|
+
'data-garden-version': '8.40.1',
|
|
1294
1474
|
'aria-disabled': props.isDisabled
|
|
1295
1475
|
};
|
|
1296
|
-
})(
|
|
1476
|
+
}).withConfig({
|
|
1477
|
+
displayName: "StyledSliderTrack",
|
|
1478
|
+
componentId: "sc-aw5m6g-0"
|
|
1479
|
+
})(["position:absolute;top:50%;box-sizing:border-box;background-origin:content-box;background-repeat:repeat-y;width:100%;", ";", ";", ";"], function (props) {
|
|
1297
1480
|
return sizeStyles$4(props);
|
|
1298
1481
|
}, function (props) {
|
|
1299
1482
|
return colorStyles$1(props);
|
|
@@ -1306,7 +1489,6 @@ StyledSliderTrack.defaultProps = {
|
|
|
1306
1489
|
theme: DEFAULT_THEME
|
|
1307
1490
|
};
|
|
1308
1491
|
|
|
1309
|
-
var _templateObject$5;
|
|
1310
1492
|
var COMPONENT_ID$4 = 'forms.slider_track_rail';
|
|
1311
1493
|
var sizeStyles$3 = function sizeStyles(props) {
|
|
1312
1494
|
var height = math("".concat(props.theme.space.base, " * 1.5px"));
|
|
@@ -1315,8 +1497,11 @@ var sizeStyles$3 = function sizeStyles(props) {
|
|
|
1315
1497
|
};
|
|
1316
1498
|
var StyledSliderTrackRail = styled.div.attrs({
|
|
1317
1499
|
'data-garden-id': COMPONENT_ID$4,
|
|
1318
|
-
'data-garden-version': '8.
|
|
1319
|
-
})(
|
|
1500
|
+
'data-garden-version': '8.40.1'
|
|
1501
|
+
}).withConfig({
|
|
1502
|
+
displayName: "StyledSliderTrackRail",
|
|
1503
|
+
componentId: "sc-1o5owbd-0"
|
|
1504
|
+
})(["position:relative;", ";", ";"], function (props) {
|
|
1320
1505
|
return sizeStyles$3(props);
|
|
1321
1506
|
}, function (props) {
|
|
1322
1507
|
return retrieveComponentStyles(COMPONENT_ID$4, props);
|
|
@@ -1325,7 +1510,6 @@ StyledSliderTrackRail.defaultProps = {
|
|
|
1325
1510
|
theme: DEFAULT_THEME
|
|
1326
1511
|
};
|
|
1327
1512
|
|
|
1328
|
-
var _templateObject$4;
|
|
1329
1513
|
var COMPONENT_ID$3 = 'forms.tile_icon';
|
|
1330
1514
|
var sizeStyles$2 = function sizeStyles(props) {
|
|
1331
1515
|
var iconSize = math("".concat(props.theme.iconSizes.md, " * 2"));
|
|
@@ -1344,8 +1528,11 @@ var sizeStyles$2 = function sizeStyles(props) {
|
|
|
1344
1528
|
};
|
|
1345
1529
|
var StyledTileIcon = styled.span.attrs({
|
|
1346
1530
|
'data-garden-id': COMPONENT_ID$3,
|
|
1347
|
-
'data-garden-version': '8.
|
|
1348
|
-
})
|
|
1531
|
+
'data-garden-version': '8.40.1'
|
|
1532
|
+
}).withConfig({
|
|
1533
|
+
displayName: "StyledTileIcon",
|
|
1534
|
+
componentId: "sc-1wazhg4-0"
|
|
1535
|
+
})(["display:block;transition:color 0.25s ease-in-out;text-align:center;line-height:0;", ";", ";"], function (props) {
|
|
1349
1536
|
return sizeStyles$2(props);
|
|
1350
1537
|
}, function (props) {
|
|
1351
1538
|
return retrieveComponentStyles(COMPONENT_ID$3, props);
|
|
@@ -1354,7 +1541,6 @@ StyledTileIcon.defaultProps = {
|
|
|
1354
1541
|
theme: DEFAULT_THEME
|
|
1355
1542
|
};
|
|
1356
1543
|
|
|
1357
|
-
var _templateObject$3;
|
|
1358
1544
|
var COMPONENT_ID$2 = 'forms.tile';
|
|
1359
1545
|
var colorStyles = function colorStyles(props) {
|
|
1360
1546
|
var SHADE = 600;
|
|
@@ -1382,11 +1568,14 @@ var colorStyles = function colorStyles(props) {
|
|
|
1382
1568
|
var StyledTile = styled.label.attrs(function (props) {
|
|
1383
1569
|
return {
|
|
1384
1570
|
'data-garden-id': COMPONENT_ID$2,
|
|
1385
|
-
'data-garden-version': '8.
|
|
1571
|
+
'data-garden-version': '8.40.1',
|
|
1386
1572
|
'data-garden-focus-visible': props.isFocused,
|
|
1387
1573
|
'data-garden-selected': props.isSelected
|
|
1388
1574
|
};
|
|
1389
|
-
})
|
|
1575
|
+
}).withConfig({
|
|
1576
|
+
displayName: "StyledTile",
|
|
1577
|
+
componentId: "sc-1jjvmxs-0"
|
|
1578
|
+
})(["display:block;position:relative;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border-radius:", ";cursor:", ";padding:", "px;direction:", ";", ";", ";"], function (props) {
|
|
1390
1579
|
return props.theme.borderRadii.md;
|
|
1391
1580
|
}, function (props) {
|
|
1392
1581
|
return !props.isDisabled && 'pointer';
|
|
@@ -1403,7 +1592,6 @@ StyledTile.defaultProps = {
|
|
|
1403
1592
|
theme: DEFAULT_THEME
|
|
1404
1593
|
};
|
|
1405
1594
|
|
|
1406
|
-
var _templateObject$2;
|
|
1407
1595
|
var COMPONENT_ID$1 = 'forms.tile_description';
|
|
1408
1596
|
var sizeStyles$1 = function sizeStyles(props) {
|
|
1409
1597
|
var marginDirection = 'left';
|
|
@@ -1418,8 +1606,11 @@ var sizeStyles$1 = function sizeStyles(props) {
|
|
|
1418
1606
|
};
|
|
1419
1607
|
var StyledTileDescription = styled.span.attrs({
|
|
1420
1608
|
'data-garden-id': COMPONENT_ID$1,
|
|
1421
|
-
'data-garden-version': '8.
|
|
1422
|
-
})(
|
|
1609
|
+
'data-garden-version': '8.40.1'
|
|
1610
|
+
}).withConfig({
|
|
1611
|
+
displayName: "StyledTileDescription",
|
|
1612
|
+
componentId: "sc-xfuu7u-0"
|
|
1613
|
+
})(["display:block;text-align:", ";line-height:", ";font-size:", ";", ";", ";"], function (props) {
|
|
1423
1614
|
return props.isCentered && 'center';
|
|
1424
1615
|
}, function (props) {
|
|
1425
1616
|
return getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.sm);
|
|
@@ -1434,13 +1625,14 @@ StyledTileDescription.defaultProps = {
|
|
|
1434
1625
|
theme: DEFAULT_THEME
|
|
1435
1626
|
};
|
|
1436
1627
|
|
|
1437
|
-
var
|
|
1438
|
-
|
|
1628
|
+
var StyledTileInput = styled.input.withConfig({
|
|
1629
|
+
displayName: "StyledTileInput",
|
|
1630
|
+
componentId: "sc-1nq2m6q-0"
|
|
1631
|
+
})(["position:absolute;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
1439
1632
|
StyledTileInput.defaultProps = {
|
|
1440
1633
|
theme: DEFAULT_THEME
|
|
1441
1634
|
};
|
|
1442
1635
|
|
|
1443
|
-
var _templateObject;
|
|
1444
1636
|
var COMPONENT_ID = 'forms.tile_label';
|
|
1445
1637
|
var sizeStyles = function sizeStyles(props) {
|
|
1446
1638
|
var marginDirection = 'left';
|
|
@@ -1457,8 +1649,11 @@ var sizeStyles = function sizeStyles(props) {
|
|
|
1457
1649
|
};
|
|
1458
1650
|
var StyledTileLabel = styled.span.attrs({
|
|
1459
1651
|
'data-garden-id': COMPONENT_ID,
|
|
1460
|
-
'data-garden-version': '8.
|
|
1461
|
-
})(
|
|
1652
|
+
'data-garden-version': '8.40.1'
|
|
1653
|
+
}).withConfig({
|
|
1654
|
+
displayName: "StyledTileLabel",
|
|
1655
|
+
componentId: "sc-1mypv27-0"
|
|
1656
|
+
})(["display:block;text-align:", ";line-height:", ";font-size:", ";font-weight:", ";", ";", ";"], function (props) {
|
|
1462
1657
|
return props.isCentered && 'center';
|
|
1463
1658
|
}, function (props) {
|
|
1464
1659
|
return getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
|
|
@@ -1503,7 +1698,7 @@ var Field = React__default.forwardRef(function (props, ref) {
|
|
|
1503
1698
|
}, [propGetters, isLabelActive, isLabelHovered]);
|
|
1504
1699
|
return React__default.createElement(FieldContext.Provider, {
|
|
1505
1700
|
value: fieldProps
|
|
1506
|
-
}, React__default.createElement(StyledField, _extends$
|
|
1701
|
+
}, React__default.createElement(StyledField, _extends$f({}, props, {
|
|
1507
1702
|
ref: ref
|
|
1508
1703
|
})));
|
|
1509
1704
|
});
|
|
@@ -1519,7 +1714,7 @@ var useFieldsetContext = function useFieldsetContext() {
|
|
|
1519
1714
|
|
|
1520
1715
|
var Legend = forwardRef(function (props, ref) {
|
|
1521
1716
|
var fieldsetContext = useFieldsetContext();
|
|
1522
|
-
return React__default.createElement(StyledLegend, _extends$
|
|
1717
|
+
return React__default.createElement(StyledLegend, _extends$f({}, props, fieldsetContext, {
|
|
1523
1718
|
ref: ref
|
|
1524
1719
|
}));
|
|
1525
1720
|
});
|
|
@@ -1533,7 +1728,7 @@ var Fieldset = forwardRef(function (props, ref) {
|
|
|
1533
1728
|
}, [props.isCompact]);
|
|
1534
1729
|
return React__default.createElement(FieldsetContext.Provider, {
|
|
1535
1730
|
value: fieldsetContext
|
|
1536
|
-
}, React__default.createElement(StyledFieldset, _extends$
|
|
1731
|
+
}, React__default.createElement(StyledFieldset, _extends$f({}, props, {
|
|
1537
1732
|
ref: ref
|
|
1538
1733
|
})));
|
|
1539
1734
|
});
|
|
@@ -1562,7 +1757,7 @@ var Hint = React__default.forwardRef(function (props, ref) {
|
|
|
1562
1757
|
if (fieldContext) {
|
|
1563
1758
|
combinedProps = fieldContext.getHintProps(combinedProps);
|
|
1564
1759
|
}
|
|
1565
|
-
return React__default.createElement(HintComponent, _extends$
|
|
1760
|
+
return React__default.createElement(HintComponent, _extends$f({
|
|
1566
1761
|
ref: ref
|
|
1567
1762
|
}, combinedProps));
|
|
1568
1763
|
});
|
|
@@ -1604,7 +1799,7 @@ var Label$1 = React__default.forwardRef(function (props, ref) {
|
|
|
1604
1799
|
});
|
|
1605
1800
|
}
|
|
1606
1801
|
if (type === 'radio') {
|
|
1607
|
-
return React__default.createElement(StyledRadioLabel, _extends$
|
|
1802
|
+
return React__default.createElement(StyledRadioLabel, _extends$f({
|
|
1608
1803
|
ref: ref
|
|
1609
1804
|
}, combinedProps), React__default.createElement(StyledRadioSvg, null), props.children);
|
|
1610
1805
|
} else if (type === 'checkbox') {
|
|
@@ -1626,15 +1821,15 @@ var Label$1 = React__default.forwardRef(function (props, ref) {
|
|
|
1626
1821
|
combinedProps = _objectSpread2(_objectSpread2({}, combinedProps), {}, {
|
|
1627
1822
|
onClick: composeEventHandlers(combinedProps.onClick, onLabelSelect)
|
|
1628
1823
|
});
|
|
1629
|
-
return React__default.createElement(StyledCheckLabel, _extends$
|
|
1824
|
+
return React__default.createElement(StyledCheckLabel, _extends$f({
|
|
1630
1825
|
ref: ref
|
|
1631
1826
|
}, combinedProps), React__default.createElement(StyledCheckSvg, null), React__default.createElement(StyledDashSvg, null), props.children);
|
|
1632
1827
|
} else if (type === 'toggle') {
|
|
1633
|
-
return React__default.createElement(StyledToggleLabel, _extends$
|
|
1828
|
+
return React__default.createElement(StyledToggleLabel, _extends$f({
|
|
1634
1829
|
ref: ref
|
|
1635
1830
|
}, combinedProps), React__default.createElement(StyledToggleSvg, null), props.children);
|
|
1636
1831
|
}
|
|
1637
|
-
return React__default.createElement(StyledLabel, _extends$
|
|
1832
|
+
return React__default.createElement(StyledLabel, _extends$f({
|
|
1638
1833
|
ref: ref
|
|
1639
1834
|
}, combinedProps));
|
|
1640
1835
|
});
|
|
@@ -1643,11 +1838,11 @@ Label$1.propTypes = {
|
|
|
1643
1838
|
isRegular: PropTypes.bool
|
|
1644
1839
|
};
|
|
1645
1840
|
|
|
1646
|
-
var _excluded$
|
|
1841
|
+
var _excluded$f = ["validation", "children"];
|
|
1647
1842
|
var Message = React__default.forwardRef(function (_ref, ref) {
|
|
1648
1843
|
var validation = _ref.validation,
|
|
1649
1844
|
children = _ref.children,
|
|
1650
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1845
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1651
1846
|
var fieldContext = useFieldContext();
|
|
1652
1847
|
var type = useInputContext();
|
|
1653
1848
|
var MessageComponent;
|
|
@@ -1666,7 +1861,7 @@ var Message = React__default.forwardRef(function (_ref, ref) {
|
|
|
1666
1861
|
if (fieldContext) {
|
|
1667
1862
|
combinedProps = fieldContext.getMessageProps(combinedProps);
|
|
1668
1863
|
}
|
|
1669
|
-
return React__default.createElement(MessageComponent, _extends$
|
|
1864
|
+
return React__default.createElement(MessageComponent, _extends$f({
|
|
1670
1865
|
ref: ref
|
|
1671
1866
|
}, combinedProps), validation && React__default.createElement(StyledMessageIcon, {
|
|
1672
1867
|
validation: validation
|
|
@@ -1677,11 +1872,11 @@ Message.propTypes = {
|
|
|
1677
1872
|
validation: PropTypes.oneOf(['success', 'warning', 'error'])
|
|
1678
1873
|
};
|
|
1679
1874
|
|
|
1680
|
-
var _excluded$
|
|
1875
|
+
var _excluded$e = ["indeterminate", "children"];
|
|
1681
1876
|
var Checkbox = React__default.forwardRef(function (_ref, ref) {
|
|
1682
1877
|
var indeterminate = _ref.indeterminate,
|
|
1683
1878
|
children = _ref.children,
|
|
1684
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1879
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
1685
1880
|
var fieldsetContext = useFieldsetContext();
|
|
1686
1881
|
var fieldContext = useFieldContext();
|
|
1687
1882
|
var inputRef = function inputRef(inputElement) {
|
|
@@ -1715,10 +1910,10 @@ var useInputGroupContext = function useInputGroupContext() {
|
|
|
1715
1910
|
return useContext(InputGroupContext);
|
|
1716
1911
|
};
|
|
1717
1912
|
|
|
1718
|
-
var _excluded$
|
|
1913
|
+
var _excluded$d = ["onSelect"];
|
|
1719
1914
|
var Input = React__default.forwardRef(function (_ref, ref) {
|
|
1720
1915
|
var onSelect = _ref.onSelect,
|
|
1721
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1916
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1722
1917
|
var fieldContext = useFieldContext();
|
|
1723
1918
|
var inputGroupContext = useInputGroupContext();
|
|
1724
1919
|
var onSelectHandler = props.readOnly ? composeEventHandlers(onSelect, function (event) {
|
|
@@ -1748,10 +1943,10 @@ Input.propTypes = {
|
|
|
1748
1943
|
validation: PropTypes.oneOf(['success', 'warning', 'error'])
|
|
1749
1944
|
};
|
|
1750
1945
|
|
|
1751
|
-
var _excluded$
|
|
1946
|
+
var _excluded$c = ["children"];
|
|
1752
1947
|
var Radio = React__default.forwardRef(function (_ref, ref) {
|
|
1753
1948
|
var children = _ref.children,
|
|
1754
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1949
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
1755
1950
|
var fieldsetContext = useFieldsetContext();
|
|
1756
1951
|
var fieldContext = useFieldContext();
|
|
1757
1952
|
var combinedProps = _objectSpread2(_objectSpread2({
|
|
@@ -1766,13 +1961,13 @@ var Radio = React__default.forwardRef(function (_ref, ref) {
|
|
|
1766
1961
|
});
|
|
1767
1962
|
Radio.displayName = 'Radio';
|
|
1768
1963
|
|
|
1769
|
-
var _excluded$
|
|
1964
|
+
var _excluded$b = ["hasLowerTrack", "min", "max", "step"];
|
|
1770
1965
|
var Range = React__default.forwardRef(function (_ref, ref) {
|
|
1771
1966
|
var hasLowerTrack = _ref.hasLowerTrack,
|
|
1772
1967
|
min = _ref.min,
|
|
1773
1968
|
max = _ref.max,
|
|
1774
1969
|
step = _ref.step,
|
|
1775
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1970
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1776
1971
|
var _useState = useState('0'),
|
|
1777
1972
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1778
1973
|
backgroundSize = _useState2[0],
|
|
@@ -1819,7 +2014,7 @@ Range.defaultProps = {
|
|
|
1819
2014
|
step: 1
|
|
1820
2015
|
};
|
|
1821
2016
|
|
|
1822
|
-
var _excluded$
|
|
2017
|
+
var _excluded$a = ["minRows", "maxRows", "style", "onChange", "onSelect"];
|
|
1823
2018
|
var parseStyleValue = function parseStyleValue(value) {
|
|
1824
2019
|
return parseInt(value, 10) || 0;
|
|
1825
2020
|
};
|
|
@@ -1829,7 +2024,7 @@ var Textarea = React__default.forwardRef(function (_ref, ref) {
|
|
|
1829
2024
|
style = _ref.style,
|
|
1830
2025
|
onChange = _ref.onChange,
|
|
1831
2026
|
onSelect = _ref.onSelect,
|
|
1832
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2027
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1833
2028
|
var fieldContext = useFieldContext();
|
|
1834
2029
|
var textAreaRef = useCombinedRefs(ref);
|
|
1835
2030
|
var shadowTextAreaRef = useRef(null);
|
|
@@ -1943,10 +2138,10 @@ Textarea.propTypes = {
|
|
|
1943
2138
|
validation: PropTypes.oneOf(['success', 'warning', 'error'])
|
|
1944
2139
|
};
|
|
1945
2140
|
|
|
1946
|
-
var _excluded$
|
|
2141
|
+
var _excluded$9 = ["children"];
|
|
1947
2142
|
var Toggle = React__default.forwardRef(function (_ref, ref) {
|
|
1948
2143
|
var children = _ref.children,
|
|
1949
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2144
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1950
2145
|
var fieldsetContext = useFieldsetContext();
|
|
1951
2146
|
var fieldContext = useFieldContext();
|
|
1952
2147
|
var combinedProps = _objectSpread2(_objectSpread2({
|
|
@@ -1961,32 +2156,32 @@ var Toggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
1961
2156
|
});
|
|
1962
2157
|
Toggle.displayName = 'Toggle';
|
|
1963
2158
|
|
|
1964
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2159
|
+
function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
1965
2160
|
|
|
1966
|
-
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
2161
|
+
var _ref$7 = /*#__PURE__*/React.createElement("path", {
|
|
1967
2162
|
fill: "currentColor",
|
|
1968
2163
|
d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
|
|
1969
2164
|
});
|
|
1970
2165
|
|
|
1971
2166
|
function SvgChevronDownStroke(props) {
|
|
1972
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
2167
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
1973
2168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1974
2169
|
width: 16,
|
|
1975
2170
|
height: 16,
|
|
1976
2171
|
viewBox: "0 0 16 16",
|
|
1977
2172
|
focusable: "false",
|
|
1978
2173
|
role: "presentation"
|
|
1979
|
-
}, props), _ref);
|
|
2174
|
+
}, props), _ref$7);
|
|
1980
2175
|
}
|
|
1981
2176
|
|
|
1982
|
-
var _excluded$
|
|
2177
|
+
var _excluded$8 = ["onFocus", "onBlur", "disabled", "readOnly", "isFocused"];
|
|
1983
2178
|
var StartIcon = function StartIcon(props) {
|
|
1984
|
-
return React__default.createElement(StyledTextMediaFigure, _extends$
|
|
2179
|
+
return React__default.createElement(StyledTextMediaFigure, _extends$f({
|
|
1985
2180
|
position: "start"
|
|
1986
2181
|
}, props));
|
|
1987
2182
|
};
|
|
1988
2183
|
var EndIcon = function EndIcon(props) {
|
|
1989
|
-
return React__default.createElement(StyledTextMediaFigure, _extends$
|
|
2184
|
+
return React__default.createElement(StyledTextMediaFigure, _extends$f({
|
|
1990
2185
|
position: "end"
|
|
1991
2186
|
}, props));
|
|
1992
2187
|
};
|
|
@@ -1996,7 +2191,7 @@ var FauxInput = forwardRef(function (_ref, ref) {
|
|
|
1996
2191
|
disabled = _ref.disabled,
|
|
1997
2192
|
readOnly = _ref.readOnly,
|
|
1998
2193
|
controlledIsFocused = _ref.isFocused,
|
|
1999
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2194
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
2000
2195
|
var _useState = useState(false),
|
|
2001
2196
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2002
2197
|
isFocused = _useState2[0],
|
|
@@ -2007,7 +2202,7 @@ var FauxInput = forwardRef(function (_ref, ref) {
|
|
|
2007
2202
|
var onBlurHandler = composeEventHandlers(onBlur, function () {
|
|
2008
2203
|
setIsFocused(false);
|
|
2009
2204
|
});
|
|
2010
|
-
return React__default.createElement(StyledTextFauxInput, _extends$
|
|
2205
|
+
return React__default.createElement(StyledTextFauxInput, _extends$f({
|
|
2011
2206
|
onFocus: onFocusHandler,
|
|
2012
2207
|
onBlur: onBlurHandler,
|
|
2013
2208
|
isFocused: controlledIsFocused === undefined ? isFocused : controlledIsFocused,
|
|
@@ -2030,10 +2225,10 @@ FauxInput.propTypes = {
|
|
|
2030
2225
|
validation: PropTypes.oneOf(['success', 'warning', 'error'])
|
|
2031
2226
|
};
|
|
2032
2227
|
|
|
2033
|
-
var _excluded$
|
|
2228
|
+
var _excluded$7 = ["disabled"];
|
|
2034
2229
|
var Select = React__default.forwardRef(function (_ref, ref) {
|
|
2035
2230
|
var disabled = _ref.disabled,
|
|
2036
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2231
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
2037
2232
|
var fieldContext = useFieldContext();
|
|
2038
2233
|
var selectRef = useCombinedRefs(ref);
|
|
2039
2234
|
var combinedProps = _objectSpread2({
|
|
@@ -2056,7 +2251,7 @@ Select.propTypes = {
|
|
|
2056
2251
|
validation: PropTypes.oneOf(['success', 'warning', 'error'])
|
|
2057
2252
|
};
|
|
2058
2253
|
|
|
2059
|
-
var _excluded$
|
|
2254
|
+
var _excluded$6 = ["min", "max", "minValue", "maxValue", "disabled", "step", "onChange", "theme", "onMouseDown"];
|
|
2060
2255
|
var MultiThumbRange = function MultiThumbRange(_ref) {
|
|
2061
2256
|
var min = _ref.min,
|
|
2062
2257
|
max = _ref.max,
|
|
@@ -2067,7 +2262,7 @@ var MultiThumbRange = function MultiThumbRange(_ref) {
|
|
|
2067
2262
|
onChange = _ref.onChange,
|
|
2068
2263
|
theme = _ref.theme,
|
|
2069
2264
|
onMouseDown = _ref.onMouseDown,
|
|
2070
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2265
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
2071
2266
|
var themedDocument = useDocument(theme);
|
|
2072
2267
|
var _useState = useState(false),
|
|
2073
2268
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -2297,7 +2492,7 @@ var MultiThumbRange = function MultiThumbRange(_ref) {
|
|
|
2297
2492
|
var maxPosition = calculateMaxPosition(MIN_DISTANCE);
|
|
2298
2493
|
var sliderBackgroundSize = Math.abs(maxPosition) - Math.abs(minPosition);
|
|
2299
2494
|
var onSliderMouseDown = composeEventHandlers(onMouseDown, onTrackMouseDown);
|
|
2300
|
-
return React__default.createElement(StyledSlider, _extends$
|
|
2495
|
+
return React__default.createElement(StyledSlider, _extends$f({
|
|
2301
2496
|
isDisabled: disabled,
|
|
2302
2497
|
onMouseDown: onSliderMouseDown
|
|
2303
2498
|
}, props), React__default.createElement(StyledSliderTrack, {
|
|
@@ -2378,12 +2573,12 @@ var useTilesContext = function useTilesContext() {
|
|
|
2378
2573
|
return useContext(TilesContext);
|
|
2379
2574
|
};
|
|
2380
2575
|
|
|
2381
|
-
var _excluded$
|
|
2576
|
+
var _excluded$5 = ["children", "value", "disabled"];
|
|
2382
2577
|
var Tile = React__default.forwardRef(function (_ref, ref) {
|
|
2383
2578
|
var children = _ref.children,
|
|
2384
2579
|
value = _ref.value,
|
|
2385
2580
|
disabled = _ref.disabled,
|
|
2386
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2581
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
2387
2582
|
var _useState = useState(false),
|
|
2388
2583
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2389
2584
|
isFocused = _useState2[0],
|
|
@@ -2398,13 +2593,13 @@ var Tile = React__default.forwardRef(function (_ref, ref) {
|
|
|
2398
2593
|
onChange: tilesContext.onChange
|
|
2399
2594
|
};
|
|
2400
2595
|
}
|
|
2401
|
-
return React__default.createElement(StyledTile, _extends$
|
|
2596
|
+
return React__default.createElement(StyledTile, _extends$f({
|
|
2402
2597
|
ref: ref,
|
|
2403
2598
|
"aria-disabled": disabled,
|
|
2404
2599
|
isDisabled: disabled,
|
|
2405
2600
|
isFocused: isFocused,
|
|
2406
2601
|
isSelected: tilesContext && tilesContext.value === value
|
|
2407
|
-
}, props), children, React__default.createElement(StyledTileInput, _extends$
|
|
2602
|
+
}, props), children, React__default.createElement(StyledTileInput, _extends$f({}, inputProps, {
|
|
2408
2603
|
disabled: disabled,
|
|
2409
2604
|
value: value,
|
|
2410
2605
|
onBlur: function onBlur() {
|
|
@@ -2430,7 +2625,7 @@ Tile.propTypes = {
|
|
|
2430
2625
|
|
|
2431
2626
|
var Description = React__default.forwardRef(function (props, ref) {
|
|
2432
2627
|
var tilesContext = useTilesContext();
|
|
2433
|
-
return React__default.createElement(StyledTileDescription, _extends$
|
|
2628
|
+
return React__default.createElement(StyledTileDescription, _extends$f({
|
|
2434
2629
|
ref: ref,
|
|
2435
2630
|
isCentered: tilesContext && tilesContext.isCentered
|
|
2436
2631
|
}, props));
|
|
@@ -2439,7 +2634,7 @@ Description.displayName = 'TileDescription';
|
|
|
2439
2634
|
|
|
2440
2635
|
var Icon = React__default.forwardRef(function (props, ref) {
|
|
2441
2636
|
var tileContext = useTilesContext();
|
|
2442
|
-
return React__default.createElement(StyledTileIcon, _extends$
|
|
2637
|
+
return React__default.createElement(StyledTileIcon, _extends$f({
|
|
2443
2638
|
ref: ref,
|
|
2444
2639
|
isCentered: tileContext && tileContext.isCentered
|
|
2445
2640
|
}, props));
|
|
@@ -2458,7 +2653,7 @@ var Label = React__default.forwardRef(function (props, forwardedRef) {
|
|
|
2458
2653
|
setTitle(ref.current.textContent || undefined);
|
|
2459
2654
|
}
|
|
2460
2655
|
}, [ref]);
|
|
2461
|
-
return React__default.createElement(StyledTileLabel, _extends$
|
|
2656
|
+
return React__default.createElement(StyledTileLabel, _extends$f({
|
|
2462
2657
|
ref: ref,
|
|
2463
2658
|
title: title,
|
|
2464
2659
|
isCentered: tilesContext && tilesContext.isCentered
|
|
@@ -2466,13 +2661,13 @@ var Label = React__default.forwardRef(function (props, forwardedRef) {
|
|
|
2466
2661
|
});
|
|
2467
2662
|
Label.displayName = 'TileLabel';
|
|
2468
2663
|
|
|
2469
|
-
var _excluded$
|
|
2664
|
+
var _excluded$4 = ["onChange", "value", "name", "isCentered"];
|
|
2470
2665
|
var Tiles = React__default.forwardRef(function (_ref, ref) {
|
|
2471
2666
|
var onChange = _ref.onChange,
|
|
2472
2667
|
controlledValue = _ref.value,
|
|
2473
2668
|
name = _ref.name,
|
|
2474
2669
|
isCentered = _ref.isCentered,
|
|
2475
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2670
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
2476
2671
|
var _useState = useState(controlledValue),
|
|
2477
2672
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2478
2673
|
value = _useState2[0],
|
|
@@ -2497,7 +2692,7 @@ var Tiles = React__default.forwardRef(function (_ref, ref) {
|
|
|
2497
2692
|
}, [handleOnChange, selectedValue, name, isCentered]);
|
|
2498
2693
|
return React__default.createElement(TilesContext.Provider, {
|
|
2499
2694
|
value: tileContext
|
|
2500
|
-
}, React__default.createElement("div", _extends$
|
|
2695
|
+
}, React__default.createElement("div", _extends$f({
|
|
2501
2696
|
ref: ref,
|
|
2502
2697
|
role: "radiogroup"
|
|
2503
2698
|
}, props)));
|
|
@@ -2517,10 +2712,10 @@ Tiles.defaultProps = {
|
|
|
2517
2712
|
isCentered: true
|
|
2518
2713
|
};
|
|
2519
2714
|
|
|
2520
|
-
var _excluded$
|
|
2715
|
+
var _excluded$3 = ["isCompact"];
|
|
2521
2716
|
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
2522
2717
|
var isCompact = _ref.isCompact,
|
|
2523
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2718
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
2524
2719
|
var contextValue = useMemo(function () {
|
|
2525
2720
|
return {
|
|
2526
2721
|
isCompact: isCompact
|
|
@@ -2528,7 +2723,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
2528
2723
|
}, [isCompact]);
|
|
2529
2724
|
return React__default.createElement(InputGroupContext.Provider, {
|
|
2530
2725
|
value: contextValue
|
|
2531
|
-
}, React__default.createElement(StyledInputGroup, _extends$
|
|
2726
|
+
}, React__default.createElement(StyledInputGroup, _extends$f({
|
|
2532
2727
|
ref: ref,
|
|
2533
2728
|
isCompact: isCompact
|
|
2534
2729
|
}, props)));
|
|
@@ -2538,11 +2733,11 @@ InputGroup.propTypes = {
|
|
|
2538
2733
|
isCompact: PropTypes.bool
|
|
2539
2734
|
};
|
|
2540
2735
|
|
|
2541
|
-
var _excluded$
|
|
2736
|
+
var _excluded$2 = ["disabled"];
|
|
2542
2737
|
var FileUpload = React__default.forwardRef(function (_ref, ref) {
|
|
2543
2738
|
var disabled = _ref.disabled,
|
|
2544
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2545
|
-
return React__default.createElement(StyledFileUpload, _extends$
|
|
2739
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
2740
|
+
return React__default.createElement(StyledFileUpload, _extends$f({
|
|
2546
2741
|
ref: ref,
|
|
2547
2742
|
"aria-disabled": disabled
|
|
2548
2743
|
}, props));
|
|
@@ -2554,6 +2749,225 @@ FileUpload.propTypes = {
|
|
|
2554
2749
|
};
|
|
2555
2750
|
FileUpload.displayName = 'FileUpload';
|
|
2556
2751
|
|
|
2752
|
+
var Item = forwardRef(function (_ref, ref) {
|
|
2753
|
+
var props = _extends$f({}, _ref);
|
|
2754
|
+
return React__default.createElement(StyledFileListItem, _extends$f({}, props, {
|
|
2755
|
+
ref: ref
|
|
2756
|
+
}));
|
|
2757
|
+
});
|
|
2758
|
+
Item.displayName = 'Item';
|
|
2759
|
+
|
|
2760
|
+
var FileList = forwardRef(function (_ref, ref) {
|
|
2761
|
+
var props = _extends$f({}, _ref);
|
|
2762
|
+
return React__default.createElement(StyledFileList, _extends$f({}, props, {
|
|
2763
|
+
ref: ref
|
|
2764
|
+
}));
|
|
2765
|
+
});
|
|
2766
|
+
FileList.displayName = 'FileList';
|
|
2767
|
+
FileList.Item = Item;
|
|
2768
|
+
|
|
2769
|
+
function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
2770
|
+
|
|
2771
|
+
var _ref$6 = /*#__PURE__*/React.createElement("path", {
|
|
2772
|
+
stroke: "currentColor",
|
|
2773
|
+
strokeLinecap: "round",
|
|
2774
|
+
d: "M3 13L13 3m0 10L3 3"
|
|
2775
|
+
});
|
|
2776
|
+
|
|
2777
|
+
function SvgXStroke(props) {
|
|
2778
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
2779
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2780
|
+
width: 16,
|
|
2781
|
+
height: 16,
|
|
2782
|
+
viewBox: "0 0 16 16",
|
|
2783
|
+
focusable: "false",
|
|
2784
|
+
role: "presentation"
|
|
2785
|
+
}, props), _ref$6);
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
var Close = React__default.forwardRef(function (props, ref) {
|
|
2789
|
+
return React__default.createElement(StyledFileClose, _extends$f({
|
|
2790
|
+
ref: ref
|
|
2791
|
+
}, props), React__default.createElement(SvgXStroke, null));
|
|
2792
|
+
});
|
|
2793
|
+
Close.displayName = 'Close';
|
|
2794
|
+
|
|
2795
|
+
function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
2796
|
+
|
|
2797
|
+
var _ref$5 = /*#__PURE__*/React.createElement("path", {
|
|
2798
|
+
fill: "none",
|
|
2799
|
+
stroke: "currentColor",
|
|
2800
|
+
strokeLinecap: "round",
|
|
2801
|
+
d: "M14.5 4.2V15a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h8.85a.5.5 0 01.36.15l3.15 3.2a.5.5 0 01.14.35zm-10 8.3h7m-7-2h7m-1-10V4a.5.5 0 00.5.5h3.5"
|
|
2802
|
+
});
|
|
2803
|
+
|
|
2804
|
+
var _ref2$1 = /*#__PURE__*/React.createElement("rect", {
|
|
2805
|
+
width: 8,
|
|
2806
|
+
height: 2,
|
|
2807
|
+
x: 4,
|
|
2808
|
+
y: 7,
|
|
2809
|
+
fill: "currentColor",
|
|
2810
|
+
rx: 0.5,
|
|
2811
|
+
ry: 0.5
|
|
2812
|
+
});
|
|
2813
|
+
|
|
2814
|
+
function SvgFilePdfStroke(props) {
|
|
2815
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
2816
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2817
|
+
width: 16,
|
|
2818
|
+
height: 16,
|
|
2819
|
+
viewBox: "0 0 16 16",
|
|
2820
|
+
focusable: "false",
|
|
2821
|
+
role: "presentation"
|
|
2822
|
+
}, props), _ref$5, _ref2$1);
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
2826
|
+
|
|
2827
|
+
var _ref$4 = /*#__PURE__*/React.createElement("path", {
|
|
2828
|
+
fill: "none",
|
|
2829
|
+
stroke: "currentColor",
|
|
2830
|
+
strokeLinecap: "round",
|
|
2831
|
+
d: "M6.5.5v11M5 2.5h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m8-6.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
|
|
2832
|
+
});
|
|
2833
|
+
|
|
2834
|
+
function SvgFileZipStroke(props) {
|
|
2835
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
2836
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2837
|
+
width: 16,
|
|
2838
|
+
height: 16,
|
|
2839
|
+
viewBox: "0 0 16 16",
|
|
2840
|
+
focusable: "false",
|
|
2841
|
+
role: "presentation"
|
|
2842
|
+
}, props), _ref$4);
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
2846
|
+
|
|
2847
|
+
var _ref$3 = /*#__PURE__*/React.createElement("path", {
|
|
2848
|
+
fill: "none",
|
|
2849
|
+
stroke: "currentColor",
|
|
2850
|
+
strokeLinecap: "round",
|
|
2851
|
+
d: "M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5m-11 9l2.65-2.65c.2-.2.51-.2.71 0l1.79 1.79c.2.2.51.2.71 0l.79-.79c.2-.2.51-.2.71 0l1.65 1.65"
|
|
2852
|
+
});
|
|
2853
|
+
|
|
2854
|
+
var _ref2 = /*#__PURE__*/React.createElement("circle", {
|
|
2855
|
+
cx: 10.5,
|
|
2856
|
+
cy: 8.5,
|
|
2857
|
+
r: 1.5,
|
|
2858
|
+
fill: "currentColor"
|
|
2859
|
+
});
|
|
2860
|
+
|
|
2861
|
+
function SvgFileImageStroke(props) {
|
|
2862
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
2863
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2864
|
+
width: 16,
|
|
2865
|
+
height: 16,
|
|
2866
|
+
viewBox: "0 0 16 16",
|
|
2867
|
+
focusable: "false",
|
|
2868
|
+
role: "presentation"
|
|
2869
|
+
}, props), _ref$3, _ref2);
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
2873
|
+
|
|
2874
|
+
var _ref$2 = /*#__PURE__*/React.createElement("path", {
|
|
2875
|
+
fill: "none",
|
|
2876
|
+
stroke: "currentColor",
|
|
2877
|
+
strokeLinecap: "round",
|
|
2878
|
+
d: "M4.5 7.5h7m-7 1.97h7m-7 2h7m3-7.27V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
|
|
2879
|
+
});
|
|
2880
|
+
|
|
2881
|
+
function SvgFileDocumentStroke(props) {
|
|
2882
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
2883
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2884
|
+
width: 16,
|
|
2885
|
+
height: 16,
|
|
2886
|
+
viewBox: "0 0 16 16",
|
|
2887
|
+
focusable: "false",
|
|
2888
|
+
role: "presentation"
|
|
2889
|
+
}, props), _ref$2);
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
2893
|
+
|
|
2894
|
+
var _ref$1 = /*#__PURE__*/React.createElement("path", {
|
|
2895
|
+
fill: "none",
|
|
2896
|
+
stroke: "currentColor",
|
|
2897
|
+
strokeLinecap: "round",
|
|
2898
|
+
d: "M4.5 7.5h2m-2 2h2m-2 2h2m2-4h3m-3 2h3m-3 2h3m3-7.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
|
|
2899
|
+
});
|
|
2900
|
+
|
|
2901
|
+
function SvgFileSpreadsheetStroke(props) {
|
|
2902
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
2903
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2904
|
+
width: 16,
|
|
2905
|
+
height: 16,
|
|
2906
|
+
viewBox: "0 0 16 16",
|
|
2907
|
+
focusable: "false",
|
|
2908
|
+
role: "presentation"
|
|
2909
|
+
}, props), _ref$1);
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2913
|
+
|
|
2914
|
+
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
2915
|
+
fill: "none",
|
|
2916
|
+
stroke: "currentColor",
|
|
2917
|
+
d: "M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5M7 9.5h4c.28 0 .5.22.5.5v3c0 .28-.22.5-.5.5H7c-.28 0-.5-.22-.5-.5v-3c0-.28.22-.5.5-.5zm-.5 2H5c-.28 0-.5-.22-.5-.5V8c0-.28.22-.5.5-.5h4c.28 0 .5.22.5.5v1.5"
|
|
2918
|
+
});
|
|
2919
|
+
|
|
2920
|
+
function SvgFilePresentationStroke(props) {
|
|
2921
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
2922
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2923
|
+
width: 16,
|
|
2924
|
+
height: 16,
|
|
2925
|
+
viewBox: "0 0 16 16",
|
|
2926
|
+
focusable: "false",
|
|
2927
|
+
role: "presentation"
|
|
2928
|
+
}, props), _ref);
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
var FileType;
|
|
2932
|
+
(function (FileType) {
|
|
2933
|
+
FileType["pdf"] = "pdf";
|
|
2934
|
+
FileType["zip"] = "zip";
|
|
2935
|
+
FileType["image"] = "image";
|
|
2936
|
+
FileType["document"] = "document";
|
|
2937
|
+
FileType["spreadsheet"] = "spreadsheet";
|
|
2938
|
+
FileType["presentation"] = "presentation";
|
|
2939
|
+
})(FileType || (FileType = {}));
|
|
2940
|
+
var ARRAY_FILE_TYPE = _toConsumableArray(Object.values(FileType));
|
|
2941
|
+
var fileIcons = {
|
|
2942
|
+
pdf: React__default.createElement(SvgFilePdfStroke, null),
|
|
2943
|
+
zip: React__default.createElement(SvgFileZipStroke, null),
|
|
2944
|
+
image: React__default.createElement(SvgFileImageStroke, null),
|
|
2945
|
+
document: React__default.createElement(SvgFileDocumentStroke, null),
|
|
2946
|
+
spreadsheet: React__default.createElement(SvgFileSpreadsheetStroke, null),
|
|
2947
|
+
presentation: React__default.createElement(SvgFilePresentationStroke, null)
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2950
|
+
var _excluded$1 = ["children", "type", "focusInset"];
|
|
2951
|
+
var File = forwardRef(function (_ref, ref) {
|
|
2952
|
+
var children = _ref.children,
|
|
2953
|
+
type = _ref.type,
|
|
2954
|
+
focusInset = _ref.focusInset,
|
|
2955
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
2956
|
+
return React__default.createElement(StyledFile, _extends$f({}, props, {
|
|
2957
|
+
focusInset: focusInset,
|
|
2958
|
+
ref: ref
|
|
2959
|
+
}), type && React__default.createElement(StyledFileIcon, null, fileIcons[type]), Children.map(children, function (child) {
|
|
2960
|
+
return typeof child === 'string' ? React__default.createElement("span", null, child) : child;
|
|
2961
|
+
}));
|
|
2962
|
+
});
|
|
2963
|
+
File.displayName = 'File';
|
|
2964
|
+
File.Close = Close;
|
|
2965
|
+
File.propTypes = {
|
|
2966
|
+
focusInset: PropTypes.bool,
|
|
2967
|
+
isCompact: PropTypes.bool,
|
|
2968
|
+
type: PropTypes.oneOf(ARRAY_FILE_TYPE)
|
|
2969
|
+
};
|
|
2970
|
+
|
|
2557
2971
|
var _excluded = ["start", "end", "disabled", "isCompact", "isBare", "focusInset", "readOnly", "validation", "wrapperProps", "wrapperRef", "onSelect"],
|
|
2558
2972
|
_excluded2 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut"];
|
|
2559
2973
|
var MediaInput = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -2617,7 +3031,7 @@ var MediaInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
2617
3031
|
});
|
|
2618
3032
|
isLabelHovered = fieldContext.isLabelHovered;
|
|
2619
3033
|
}
|
|
2620
|
-
return React__default.createElement(FauxInput, _extends$
|
|
3034
|
+
return React__default.createElement(FauxInput, _extends$f({
|
|
2621
3035
|
tabIndex: null,
|
|
2622
3036
|
onClick: onFauxInputClickHandler,
|
|
2623
3037
|
onFocus: onFauxInputFocusHandler,
|
|
@@ -2655,4 +3069,4 @@ MediaInput.propTypes = {
|
|
|
2655
3069
|
wrapperProps: PropTypes.object
|
|
2656
3070
|
};
|
|
2657
3071
|
|
|
2658
|
-
export { Checkbox, FauxInput, Field, Fieldset, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, MultiThumbRange$1 as MultiThumbRange, Radio, Range, Select, Textarea, Tiles, Toggle };
|
|
3072
|
+
export { Checkbox, FauxInput, Field, Fieldset, File, FileList, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, MultiThumbRange$1 as MultiThumbRange, Radio, Range, Select, Textarea, Tiles, Toggle };
|