@zendeskgarden/react-forms 8.62.1 → 8.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +313 -391
- package/dist/index.esm.js +96 -171
- package/dist/typings/elements/FileUpload.d.ts +3 -0
- package/dist/typings/elements/file-list/components/Close.d.ts +2 -2
- package/dist/typings/elements/file-list/components/Delete.d.ts +2 -2
- package/dist/typings/styled/file-list/StyledFileClose.d.ts +1 -1
- package/dist/typings/styled/file-list/StyledFileDelete.d.ts +1 -1
- package/dist/typings/types/index.d.ts +3 -3
- package/dist/typings/utils/useInputContext.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
|
-
|
|
12
10
|
var React = require('react');
|
|
13
11
|
var containerField = require('@zendeskgarden/container-field');
|
|
14
12
|
var styled = require('styled-components');
|
|
@@ -20,7 +18,7 @@ var mergeRefs = require('react-merge-refs');
|
|
|
20
18
|
var debounce = require('lodash.debounce');
|
|
21
19
|
var containerSlider = require('@zendeskgarden/container-slider');
|
|
22
20
|
|
|
23
|
-
function
|
|
21
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
22
|
|
|
25
23
|
function _interopNamespace(e) {
|
|
26
24
|
if (e && e.__esModule) return e;
|
|
@@ -36,16 +34,15 @@ function _interopNamespace(e) {
|
|
|
36
34
|
}
|
|
37
35
|
});
|
|
38
36
|
}
|
|
39
|
-
n
|
|
37
|
+
n.default = e;
|
|
40
38
|
return Object.freeze(n);
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
42
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
43
|
+
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
44
|
+
var mergeRefs__default = /*#__PURE__*/_interopDefault(mergeRefs);
|
|
45
|
+
var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
49
46
|
|
|
50
47
|
function _extends$t() {
|
|
51
48
|
_extends$t = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -69,9 +66,9 @@ const useFieldContext = () => {
|
|
|
69
66
|
};
|
|
70
67
|
|
|
71
68
|
const COMPONENT_ID$K = 'forms.field';
|
|
72
|
-
const StyledField = styled__default
|
|
69
|
+
const StyledField = styled__default.default.div.attrs({
|
|
73
70
|
'data-garden-id': COMPONENT_ID$K,
|
|
74
|
-
'data-garden-version': '8.
|
|
71
|
+
'data-garden-version': '8.63.0'
|
|
75
72
|
}).withConfig({
|
|
76
73
|
displayName: "StyledField",
|
|
77
74
|
componentId: "sc-12gzfsu-0"
|
|
@@ -81,10 +78,10 @@ StyledField.defaultProps = {
|
|
|
81
78
|
};
|
|
82
79
|
|
|
83
80
|
const COMPONENT_ID$J = 'forms.fieldset';
|
|
84
|
-
const StyledFieldset = styled__default
|
|
81
|
+
const StyledFieldset = styled__default.default(StyledField).attrs({
|
|
85
82
|
as: 'fieldset',
|
|
86
83
|
'data-garden-id': COMPONENT_ID$J,
|
|
87
|
-
'data-garden-version': '8.
|
|
84
|
+
'data-garden-version': '8.63.0'
|
|
88
85
|
}).withConfig({
|
|
89
86
|
displayName: "StyledFieldset",
|
|
90
87
|
componentId: "sc-1vr4mxv-0"
|
|
@@ -94,9 +91,9 @@ StyledFieldset.defaultProps = {
|
|
|
94
91
|
};
|
|
95
92
|
|
|
96
93
|
const COMPONENT_ID$I = 'forms.input_label';
|
|
97
|
-
const StyledLabel = styled__default
|
|
94
|
+
const StyledLabel = styled__default.default.label.attrs({
|
|
98
95
|
'data-garden-id': COMPONENT_ID$I,
|
|
99
|
-
'data-garden-version': '8.
|
|
96
|
+
'data-garden-version': '8.63.0'
|
|
100
97
|
}).withConfig({
|
|
101
98
|
displayName: "StyledLabel",
|
|
102
99
|
componentId: "sc-2utmsz-0"
|
|
@@ -106,10 +103,10 @@ StyledLabel.defaultProps = {
|
|
|
106
103
|
};
|
|
107
104
|
|
|
108
105
|
const COMPONENT_ID$H = 'forms.fieldset_legend';
|
|
109
|
-
const StyledLegend = styled__default
|
|
106
|
+
const StyledLegend = styled__default.default(StyledLabel).attrs({
|
|
110
107
|
as: 'legend',
|
|
111
108
|
'data-garden-id': COMPONENT_ID$H,
|
|
112
|
-
'data-garden-version': '8.
|
|
109
|
+
'data-garden-version': '8.63.0'
|
|
113
110
|
}).withConfig({
|
|
114
111
|
displayName: "StyledLegend",
|
|
115
112
|
componentId: "sc-6s0zwq-0"
|
|
@@ -119,9 +116,9 @@ StyledLegend.defaultProps = {
|
|
|
119
116
|
};
|
|
120
117
|
|
|
121
118
|
const COMPONENT_ID$G = 'forms.input_hint';
|
|
122
|
-
const StyledHint = styled__default
|
|
119
|
+
const StyledHint = styled__default.default.div.attrs({
|
|
123
120
|
'data-garden-id': COMPONENT_ID$G,
|
|
124
|
-
'data-garden-version': '8.
|
|
121
|
+
'data-garden-version': '8.63.0'
|
|
125
122
|
}).withConfig({
|
|
126
123
|
displayName: "StyledHint",
|
|
127
124
|
componentId: "sc-17c2wu8-0"
|
|
@@ -131,9 +128,7 @@ StyledHint.defaultProps = {
|
|
|
131
128
|
};
|
|
132
129
|
|
|
133
130
|
var _g$2, _circle$5;
|
|
134
|
-
|
|
135
131
|
function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : 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$s.apply(this, arguments); }
|
|
136
|
-
|
|
137
132
|
var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
|
|
138
133
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
139
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -141,8 +136,7 @@ var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
|
|
|
141
136
|
height: 16,
|
|
142
137
|
focusable: "false",
|
|
143
138
|
viewBox: "0 0 16 16",
|
|
144
|
-
"aria-hidden": "true"
|
|
145
|
-
role: "img"
|
|
139
|
+
"aria-hidden": "true"
|
|
146
140
|
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
147
141
|
fill: "none",
|
|
148
142
|
stroke: "currentColor"
|
|
@@ -162,9 +156,7 @@ var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
|
|
|
162
156
|
};
|
|
163
157
|
|
|
164
158
|
var _path$n, _circle$4;
|
|
165
|
-
|
|
166
159
|
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : 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$r.apply(this, arguments); }
|
|
167
|
-
|
|
168
160
|
var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
|
|
169
161
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
170
162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -172,8 +164,7 @@ var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
|
|
|
172
164
|
height: 16,
|
|
173
165
|
focusable: "false",
|
|
174
166
|
viewBox: "0 0 16 16",
|
|
175
|
-
"aria-hidden": "true"
|
|
176
|
-
role: "img"
|
|
167
|
+
"aria-hidden": "true"
|
|
177
168
|
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
178
169
|
fill: "none",
|
|
179
170
|
stroke: "currentColor",
|
|
@@ -188,9 +179,7 @@ var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
|
|
|
188
179
|
};
|
|
189
180
|
|
|
190
181
|
var _g$1;
|
|
191
|
-
|
|
192
182
|
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : 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$q.apply(this, arguments); }
|
|
193
|
-
|
|
194
183
|
var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
|
|
195
184
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
196
185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -198,8 +187,7 @@ var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
|
|
|
198
187
|
height: 16,
|
|
199
188
|
focusable: "false",
|
|
200
189
|
viewBox: "0 0 16 16",
|
|
201
|
-
"aria-hidden": "true"
|
|
202
|
-
role: "img"
|
|
190
|
+
"aria-hidden": "true"
|
|
203
191
|
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
204
192
|
fill: "none",
|
|
205
193
|
stroke: "currentColor"
|
|
@@ -222,20 +210,20 @@ const MessageIcon = _ref => {
|
|
|
222
210
|
} = _ref;
|
|
223
211
|
let retVal;
|
|
224
212
|
if (validation === 'error') {
|
|
225
|
-
retVal =
|
|
213
|
+
retVal = React__namespace.default.createElement(SvgAlertErrorStroke, props);
|
|
226
214
|
} else if (validation === 'success') {
|
|
227
|
-
retVal =
|
|
215
|
+
retVal = React__namespace.default.createElement(SvgCheckCircleStroke$1, props);
|
|
228
216
|
} else if (validation === 'warning') {
|
|
229
|
-
retVal =
|
|
217
|
+
retVal = React__namespace.default.createElement(SvgAlertWarningStroke, props);
|
|
230
218
|
} else {
|
|
231
|
-
retVal =
|
|
219
|
+
retVal = React__namespace.default.cloneElement(React.Children.only(children));
|
|
232
220
|
}
|
|
233
221
|
return retVal;
|
|
234
222
|
};
|
|
235
223
|
const COMPONENT_ID$F = 'forms.input_message_icon';
|
|
236
|
-
const StyledMessageIcon = styled__default
|
|
224
|
+
const StyledMessageIcon = styled__default.default(MessageIcon).attrs({
|
|
237
225
|
'data-garden-id': COMPONENT_ID$F,
|
|
238
|
-
'data-garden-version': '8.
|
|
226
|
+
'data-garden-version': '8.63.0',
|
|
239
227
|
'aria-hidden': null
|
|
240
228
|
}).withConfig({
|
|
241
229
|
displayName: "StyledMessageIcon",
|
|
@@ -261,9 +249,9 @@ const validationStyles = props => {
|
|
|
261
249
|
return styled.css(["padding-", ":", ";color:", ";"], rtl ? 'right' : 'left', props.validation && padding, color);
|
|
262
250
|
};
|
|
263
251
|
const COMPONENT_ID$E = 'forms.input_message';
|
|
264
|
-
const StyledMessage = styled__default
|
|
252
|
+
const StyledMessage = styled__default.default.div.attrs({
|
|
265
253
|
'data-garden-id': COMPONENT_ID$E,
|
|
266
|
-
'data-garden-version': '8.
|
|
254
|
+
'data-garden-version': '8.63.0'
|
|
267
255
|
}).withConfig({
|
|
268
256
|
displayName: "StyledMessage",
|
|
269
257
|
componentId: "sc-30hgg7-0"
|
|
@@ -340,9 +328,9 @@ const sizeStyles$f = props => {
|
|
|
340
328
|
const swatchMarginHorizontal = polished.math(`${paddingVertical} + ${swatchMarginVertical} - ${paddingHorizontal}`);
|
|
341
329
|
return styled.css(["padding:", ";min-height:", ";line-height:", ";font-size:", ";&::-ms-browse{font-size:", ";}&[type='date'],&[type='datetime-local'],&[type='file'],&[type='month'],&[type='time'],&[type='week']{max-height:", ";}&[type='file']{line-height:1;}@supports (-ms-ime-align:auto){&[type='color']{padding:", ";}}&::-moz-color-swatch{margin-top:", ";margin-left:", ";width:calc(100% + ", ");height:", ";}&::-webkit-color-swatch{margin:", " ", ";}", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", "px;}"], padding, props.isBare ? '1em' : height, reactTheming.getLineHeight(lineHeight, fontSize), fontSize, browseFontSize, height, props.isCompact ? '0 2px' : '1px 3px', swatchMarginVertical, swatchMarginHorizontal, polished.math(`${swatchMarginHorizontal} * -2`), swatchHeight, swatchMarginVertical, swatchMarginHorizontal, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, props.theme.space.base * (props.isCompact ? 1 : 2));
|
|
342
330
|
};
|
|
343
|
-
const StyledTextInput = styled__default
|
|
331
|
+
const StyledTextInput = styled__default.default.input.attrs(props => ({
|
|
344
332
|
'data-garden-id': COMPONENT_ID$D,
|
|
345
|
-
'data-garden-version': '8.
|
|
333
|
+
'data-garden-version': '8.63.0',
|
|
346
334
|
'aria-invalid': isInvalid(props.validation)
|
|
347
335
|
})).withConfig({
|
|
348
336
|
displayName: "StyledTextInput",
|
|
@@ -362,10 +350,10 @@ const hiddenStyles = `
|
|
|
362
350
|
left: 0;
|
|
363
351
|
transform: translateZ(0);
|
|
364
352
|
`;
|
|
365
|
-
const StyledTextarea = styled__default
|
|
353
|
+
const StyledTextarea = styled__default.default(StyledTextInput).attrs({
|
|
366
354
|
as: 'textarea',
|
|
367
355
|
'data-garden-id': COMPONENT_ID$C,
|
|
368
|
-
'data-garden-version': '8.
|
|
356
|
+
'data-garden-version': '8.63.0'
|
|
369
357
|
}).withConfig({
|
|
370
358
|
displayName: "StyledTextarea",
|
|
371
359
|
componentId: "sc-wxschl-0"
|
|
@@ -396,7 +384,7 @@ const sizeStyles$e = props => {
|
|
|
396
384
|
}
|
|
397
385
|
return styled.css(["margin:", ";width:", ";height:", ";"], margin, size, size);
|
|
398
386
|
};
|
|
399
|
-
const StyledTextMediaFigure = styled__default
|
|
387
|
+
const StyledTextMediaFigure = styled__default.default(
|
|
400
388
|
_ref => {
|
|
401
389
|
let {
|
|
402
390
|
children,
|
|
@@ -408,10 +396,10 @@ _ref => {
|
|
|
408
396
|
theme,
|
|
409
397
|
...props
|
|
410
398
|
} = _ref;
|
|
411
|
-
return
|
|
399
|
+
return React__namespace.default.cloneElement(React.Children.only(children), props);
|
|
412
400
|
}).attrs({
|
|
413
401
|
'data-garden-id': COMPONENT_ID$B,
|
|
414
|
-
'data-garden-version': '8.
|
|
402
|
+
'data-garden-version': '8.63.0'
|
|
415
403
|
}).withConfig({
|
|
416
404
|
displayName: "StyledTextMediaFigure",
|
|
417
405
|
componentId: "sc-1qepknj-0"
|
|
@@ -421,12 +409,12 @@ StyledTextMediaFigure.defaultProps = {
|
|
|
421
409
|
};
|
|
422
410
|
|
|
423
411
|
const COMPONENT_ID$A = 'forms.faux_input';
|
|
424
|
-
const StyledTextFauxInput = styled__default
|
|
412
|
+
const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props => ({
|
|
425
413
|
as: 'div',
|
|
426
414
|
'aria-readonly': props.isReadOnly,
|
|
427
415
|
'aria-disabled': props.isDisabled,
|
|
428
416
|
'data-garden-id': COMPONENT_ID$A,
|
|
429
|
-
'data-garden-version': '8.
|
|
417
|
+
'data-garden-version': '8.63.0'
|
|
430
418
|
})).withConfig({
|
|
431
419
|
displayName: "StyledTextFauxInput",
|
|
432
420
|
componentId: "sc-yqw7j9-0"
|
|
@@ -436,9 +424,9 @@ StyledTextFauxInput.defaultProps = {
|
|
|
436
424
|
};
|
|
437
425
|
|
|
438
426
|
const COMPONENT_ID$z = 'forms.media_input';
|
|
439
|
-
const StyledTextMediaInput = styled__default
|
|
427
|
+
const StyledTextMediaInput = styled__default.default(StyledTextInput).attrs({
|
|
440
428
|
'data-garden-id': COMPONENT_ID$z,
|
|
441
|
-
'data-garden-version': '8.
|
|
429
|
+
'data-garden-version': '8.63.0',
|
|
442
430
|
isBare: true
|
|
443
431
|
}).withConfig({
|
|
444
432
|
displayName: "StyledTextMediaInput",
|
|
@@ -459,9 +447,9 @@ const itemStyles = props => {
|
|
|
459
447
|
const horizontal = props.theme.rtl ? 'right' : 'left';
|
|
460
448
|
return styled.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');
|
|
461
449
|
};
|
|
462
|
-
const StyledInputGroup = styled__default
|
|
450
|
+
const StyledInputGroup = styled__default.default.div.attrs({
|
|
463
451
|
'data-garden-id': COMPONENT_ID$y,
|
|
464
|
-
'data-garden-version': '8.
|
|
452
|
+
'data-garden-version': '8.63.0'
|
|
465
453
|
}).withConfig({
|
|
466
454
|
displayName: "StyledInputGroup",
|
|
467
455
|
componentId: "sc-kjh1f0-0"
|
|
@@ -477,9 +465,9 @@ const sizeStyles$d = props => {
|
|
|
477
465
|
const lineHeight = props.theme.space.base * 5;
|
|
478
466
|
return styled.css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;line-height:", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size, lineHeight);
|
|
479
467
|
};
|
|
480
|
-
const StyledRadioLabel = styled__default
|
|
468
|
+
const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
|
|
481
469
|
'data-garden-id': COMPONENT_ID$x,
|
|
482
|
-
'data-garden-version': '8.
|
|
470
|
+
'data-garden-version': '8.63.0',
|
|
483
471
|
isRadio: true
|
|
484
472
|
}).withConfig({
|
|
485
473
|
displayName: "StyledRadioLabel",
|
|
@@ -490,9 +478,9 @@ StyledRadioLabel.defaultProps = {
|
|
|
490
478
|
};
|
|
491
479
|
|
|
492
480
|
const COMPONENT_ID$w = 'forms.checkbox_label';
|
|
493
|
-
const StyledCheckLabel = styled__default
|
|
481
|
+
const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
|
|
494
482
|
'data-garden-id': COMPONENT_ID$w,
|
|
495
|
-
'data-garden-version': '8.
|
|
483
|
+
'data-garden-version': '8.63.0'
|
|
496
484
|
}).withConfig({
|
|
497
485
|
displayName: "StyledCheckLabel",
|
|
498
486
|
componentId: "sc-x7nr1-0"
|
|
@@ -502,9 +490,9 @@ StyledCheckLabel.defaultProps = {
|
|
|
502
490
|
};
|
|
503
491
|
|
|
504
492
|
const COMPONENT_ID$v = 'forms.radio_hint';
|
|
505
|
-
const StyledRadioHint = styled__default
|
|
493
|
+
const StyledRadioHint = styled__default.default(StyledHint).attrs({
|
|
506
494
|
'data-garden-id': COMPONENT_ID$v,
|
|
507
|
-
'data-garden-version': '8.
|
|
495
|
+
'data-garden-version': '8.63.0'
|
|
508
496
|
}).withConfig({
|
|
509
497
|
displayName: "StyledRadioHint",
|
|
510
498
|
componentId: "sc-eo8twg-0"
|
|
@@ -514,9 +502,9 @@ StyledRadioHint.defaultProps = {
|
|
|
514
502
|
};
|
|
515
503
|
|
|
516
504
|
const COMPONENT_ID$u = 'forms.checkbox_hint';
|
|
517
|
-
const StyledCheckHint = styled__default
|
|
505
|
+
const StyledCheckHint = styled__default.default(StyledRadioHint).attrs({
|
|
518
506
|
'data-garden-id': COMPONENT_ID$u,
|
|
519
|
-
'data-garden-version': '8.
|
|
507
|
+
'data-garden-version': '8.63.0'
|
|
520
508
|
}).withConfig({
|
|
521
509
|
displayName: "StyledCheckHint",
|
|
522
510
|
componentId: "sc-1kl8e8c-0"
|
|
@@ -556,9 +544,9 @@ const sizeStyles$c = props => {
|
|
|
556
544
|
const marginTop = `${props.theme.space.base * (props.isCompact ? 1 : 2)}px`;
|
|
557
545
|
return styled.css(["top:", ";width:", ";height:", ";& ~ ", "::before{top:", ";background-size:", ";width:", ";height:", ";box-sizing:border-box;}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&& ~ ", " ~ ", "{margin-top:", ";}"], top, size, size, StyledRadioLabel, top, props.theme.iconSizes.sm, size, size, StyledRadioLabel, iconTop, props.theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledRadioLabel, StyledMessage, marginTop);
|
|
558
546
|
};
|
|
559
|
-
const StyledRadioInput = styled__default
|
|
547
|
+
const StyledRadioInput = styled__default.default.input.attrs({
|
|
560
548
|
'data-garden-id': COMPONENT_ID$t,
|
|
561
|
-
'data-garden-version': '8.
|
|
549
|
+
'data-garden-version': '8.63.0',
|
|
562
550
|
type: 'radio'
|
|
563
551
|
}).withConfig({
|
|
564
552
|
displayName: "StyledRadioInput",
|
|
@@ -578,9 +566,9 @@ const colorStyles$8 = props => {
|
|
|
578
566
|
const indeterminateDisabledBackgroundColor = reactTheming.getColor('neutralHue', SHADE - 400, props.theme);
|
|
579
567
|
return styled.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);
|
|
580
568
|
};
|
|
581
|
-
const StyledCheckInput = styled__default
|
|
569
|
+
const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
|
|
582
570
|
'data-garden-id': COMPONENT_ID$s,
|
|
583
|
-
'data-garden-version': '8.
|
|
571
|
+
'data-garden-version': '8.63.0',
|
|
584
572
|
type: 'checkbox'
|
|
585
573
|
}).withConfig({
|
|
586
574
|
displayName: "StyledCheckInput",
|
|
@@ -591,9 +579,9 @@ StyledCheckInput.defaultProps = {
|
|
|
591
579
|
};
|
|
592
580
|
|
|
593
581
|
const COMPONENT_ID$r = 'forms.radio_message';
|
|
594
|
-
const StyledRadioMessage = styled__default
|
|
582
|
+
const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
|
|
595
583
|
'data-garden-id': COMPONENT_ID$r,
|
|
596
|
-
'data-garden-version': '8.
|
|
584
|
+
'data-garden-version': '8.63.0'
|
|
597
585
|
}).withConfig({
|
|
598
586
|
displayName: "StyledRadioMessage",
|
|
599
587
|
componentId: "sc-1pmi0q8-0"
|
|
@@ -603,9 +591,9 @@ StyledRadioMessage.defaultProps = {
|
|
|
603
591
|
};
|
|
604
592
|
|
|
605
593
|
const COMPONENT_ID$q = 'forms.checkbox_message';
|
|
606
|
-
const StyledCheckMessage = styled__default
|
|
594
|
+
const StyledCheckMessage = styled__default.default(StyledRadioMessage).attrs({
|
|
607
595
|
'data-garden-id': COMPONENT_ID$q,
|
|
608
|
-
'data-garden-version': '8.
|
|
596
|
+
'data-garden-version': '8.63.0'
|
|
609
597
|
}).withConfig({
|
|
610
598
|
displayName: "StyledCheckMessage",
|
|
611
599
|
componentId: "sc-s4p6kd-0"
|
|
@@ -615,9 +603,7 @@ StyledCheckMessage.defaultProps = {
|
|
|
615
603
|
};
|
|
616
604
|
|
|
617
605
|
var _path$m;
|
|
618
|
-
|
|
619
606
|
function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : 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$p.apply(this, arguments); }
|
|
620
|
-
|
|
621
607
|
var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
622
608
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
623
609
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -625,8 +611,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
|
625
611
|
height: 12,
|
|
626
612
|
focusable: "false",
|
|
627
613
|
viewBox: "0 0 12 12",
|
|
628
|
-
"aria-hidden": "true"
|
|
629
|
-
role: "img"
|
|
614
|
+
"aria-hidden": "true"
|
|
630
615
|
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
631
616
|
fill: "none",
|
|
632
617
|
stroke: "currentColor",
|
|
@@ -638,9 +623,9 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
|
638
623
|
};
|
|
639
624
|
|
|
640
625
|
const COMPONENT_ID$p = 'forms.check_svg';
|
|
641
|
-
const StyledCheckSvg = styled__default
|
|
626
|
+
const StyledCheckSvg = styled__default.default(SvgCheckSmFill).attrs({
|
|
642
627
|
'data-garden-id': COMPONENT_ID$p,
|
|
643
|
-
'data-garden-version': '8.
|
|
628
|
+
'data-garden-version': '8.63.0'
|
|
644
629
|
}).withConfig({
|
|
645
630
|
displayName: "StyledCheckSvg",
|
|
646
631
|
componentId: "sc-fvxetk-0"
|
|
@@ -650,9 +635,7 @@ StyledCheckSvg.defaultProps = {
|
|
|
650
635
|
};
|
|
651
636
|
|
|
652
637
|
var _path$l;
|
|
653
|
-
|
|
654
638
|
function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : 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$o.apply(this, arguments); }
|
|
655
|
-
|
|
656
639
|
var SvgDashFill = function SvgDashFill(props) {
|
|
657
640
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
658
641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -660,8 +643,7 @@ var SvgDashFill = function SvgDashFill(props) {
|
|
|
660
643
|
height: 12,
|
|
661
644
|
focusable: "false",
|
|
662
645
|
viewBox: "0 0 12 12",
|
|
663
|
-
"aria-hidden": "true"
|
|
664
|
-
role: "img"
|
|
646
|
+
"aria-hidden": "true"
|
|
665
647
|
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
666
648
|
stroke: "currentColor",
|
|
667
649
|
strokeLinecap: "round",
|
|
@@ -671,9 +653,9 @@ var SvgDashFill = function SvgDashFill(props) {
|
|
|
671
653
|
};
|
|
672
654
|
|
|
673
655
|
const COMPONENT_ID$o = 'forms.dash_svg';
|
|
674
|
-
const StyledDashSvg = styled__default
|
|
656
|
+
const StyledDashSvg = styled__default.default(SvgDashFill).attrs({
|
|
675
657
|
'data-garden-id': COMPONENT_ID$o,
|
|
676
|
-
'data-garden-version': '8.
|
|
658
|
+
'data-garden-version': '8.63.0'
|
|
677
659
|
}).withConfig({
|
|
678
660
|
displayName: "StyledDashSvg",
|
|
679
661
|
componentId: "sc-z3vq71-0"
|
|
@@ -700,9 +682,9 @@ const sizeStyles$b = props => {
|
|
|
700
682
|
const lineHeight = reactTheming.getLineHeight(props.theme.space.base * 5, fontSize);
|
|
701
683
|
return styled.css(["padding:", " ", ";min-width:4em;line-height:", ";font-size:", ";", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], paddingVertical, paddingHorizontal, lineHeight, fontSize, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, marginTop);
|
|
702
684
|
};
|
|
703
|
-
const StyledFileUpload = styled__default
|
|
685
|
+
const StyledFileUpload = styled__default.default.div.attrs({
|
|
704
686
|
'data-garden-id': COMPONENT_ID$n,
|
|
705
|
-
'data-garden-version': '8.
|
|
687
|
+
'data-garden-version': '8.63.0'
|
|
706
688
|
}).withConfig({
|
|
707
689
|
displayName: "StyledFileUpload",
|
|
708
690
|
componentId: "sc-1rodjgn-0"
|
|
@@ -712,13 +694,13 @@ StyledFileUpload.defaultProps = {
|
|
|
712
694
|
};
|
|
713
695
|
|
|
714
696
|
const COMPONENT_ID$m = 'forms.file.close';
|
|
715
|
-
const StyledFileClose = styled__default
|
|
697
|
+
const StyledFileClose = styled__default.default.button.attrs({
|
|
716
698
|
'data-garden-id': COMPONENT_ID$m,
|
|
717
|
-
'data-garden-version': '8.
|
|
699
|
+
'data-garden-version': '8.63.0'
|
|
718
700
|
}).withConfig({
|
|
719
701
|
displayName: "StyledFileClose",
|
|
720
702
|
componentId: "sc-1m31jbf-0"
|
|
721
|
-
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;cursor:pointer;color:", ";&:hover{opacity:0.9;}&:focus{outline:none;}", ";"], props => props.theme.colors.foreground, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
703
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;border:none;background:transparent;cursor:pointer;color:", ";appearance:none;&:hover{opacity:0.9;}&:focus{outline:none;}", ";"], props => props.theme.colors.foreground, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
722
704
|
StyledFileClose.defaultProps = {
|
|
723
705
|
theme: reactTheming.DEFAULT_THEME
|
|
724
706
|
};
|
|
@@ -779,9 +761,9 @@ const sizeStyles$a = props => {
|
|
|
779
761
|
}
|
|
780
762
|
`;
|
|
781
763
|
};
|
|
782
|
-
const StyledFile = styled__default
|
|
764
|
+
const StyledFile = styled__default.default.div.attrs({
|
|
783
765
|
'data-garden-id': COMPONENT_ID$l,
|
|
784
|
-
'data-garden-version': '8.
|
|
766
|
+
'data-garden-version': '8.63.0'
|
|
785
767
|
}).withConfig({
|
|
786
768
|
displayName: "StyledFile",
|
|
787
769
|
componentId: "sc-195lzp1-0"
|
|
@@ -791,9 +773,9 @@ StyledFile.defaultProps = {
|
|
|
791
773
|
};
|
|
792
774
|
|
|
793
775
|
const COMPONENT_ID$k = 'forms.file.delete';
|
|
794
|
-
const StyledFileDelete = styled__default
|
|
776
|
+
const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
|
|
795
777
|
'data-garden-id': COMPONENT_ID$k,
|
|
796
|
-
'data-garden-version': '8.
|
|
778
|
+
'data-garden-version': '8.63.0'
|
|
797
779
|
}).withConfig({
|
|
798
780
|
displayName: "StyledFileDelete",
|
|
799
781
|
componentId: "sc-a8nnhx-0"
|
|
@@ -803,17 +785,17 @@ StyledFileDelete.defaultProps = {
|
|
|
803
785
|
};
|
|
804
786
|
|
|
805
787
|
const COMPONENT_ID$j = 'forms.file.icon';
|
|
806
|
-
const StyledFileIcon = styled__default
|
|
788
|
+
const StyledFileIcon = styled__default.default(_ref => {
|
|
807
789
|
let {
|
|
808
790
|
children,
|
|
809
791
|
isCompact,
|
|
810
792
|
theme,
|
|
811
793
|
...props
|
|
812
794
|
} = _ref;
|
|
813
|
-
return
|
|
795
|
+
return React__namespace.default.cloneElement(React.Children.only(children), props);
|
|
814
796
|
}).attrs({
|
|
815
797
|
'data-garden-id': COMPONENT_ID$j,
|
|
816
|
-
'data-garden-version': '8.
|
|
798
|
+
'data-garden-version': '8.63.0'
|
|
817
799
|
}).withConfig({
|
|
818
800
|
displayName: "StyledFileIcon",
|
|
819
801
|
componentId: "sc-7b3q0c-0"
|
|
@@ -823,9 +805,9 @@ StyledFileIcon.defaultProps = {
|
|
|
823
805
|
};
|
|
824
806
|
|
|
825
807
|
const COMPONENT_ID$i = 'forms.file_list';
|
|
826
|
-
const StyledFileList = styled__default
|
|
808
|
+
const StyledFileList = styled__default.default.ul.attrs({
|
|
827
809
|
'data-garden-id': COMPONENT_ID$i,
|
|
828
|
-
'data-garden-version': '8.
|
|
810
|
+
'data-garden-version': '8.63.0'
|
|
829
811
|
}).withConfig({
|
|
830
812
|
displayName: "StyledFileList",
|
|
831
813
|
componentId: "sc-gbahjg-0"
|
|
@@ -835,9 +817,9 @@ StyledFileList.defaultProps = {
|
|
|
835
817
|
};
|
|
836
818
|
|
|
837
819
|
const COMPONENT_ID$h = 'forms.file_list.item';
|
|
838
|
-
const StyledFileListItem = styled__default
|
|
820
|
+
const StyledFileListItem = styled__default.default.li.attrs({
|
|
839
821
|
'data-garden-id': COMPONENT_ID$h,
|
|
840
|
-
'data-garden-version': '8.
|
|
822
|
+
'data-garden-version': '8.63.0'
|
|
841
823
|
}).withConfig({
|
|
842
824
|
displayName: "StyledFileListItem",
|
|
843
825
|
componentId: "sc-1ova3lo-0"
|
|
@@ -847,9 +829,7 @@ StyledFileListItem.defaultProps = {
|
|
|
847
829
|
};
|
|
848
830
|
|
|
849
831
|
var _circle$3;
|
|
850
|
-
|
|
851
832
|
function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : 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$n.apply(this, arguments); }
|
|
852
|
-
|
|
853
833
|
var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
854
834
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
855
835
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -857,8 +837,7 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
|
857
837
|
height: 12,
|
|
858
838
|
focusable: "false",
|
|
859
839
|
viewBox: "0 0 12 12",
|
|
860
|
-
"aria-hidden": "true"
|
|
861
|
-
role: "img"
|
|
840
|
+
"aria-hidden": "true"
|
|
862
841
|
}, props), _circle$3 || (_circle$3 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
863
842
|
cx: 6,
|
|
864
843
|
cy: 6,
|
|
@@ -868,9 +847,9 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
|
868
847
|
};
|
|
869
848
|
|
|
870
849
|
const COMPONENT_ID$g = 'forms.radio_svg';
|
|
871
|
-
const StyledRadioSvg = styled__default
|
|
850
|
+
const StyledRadioSvg = styled__default.default(SvgCircleSmFill$1).attrs({
|
|
872
851
|
'data-garden-id': COMPONENT_ID$g,
|
|
873
|
-
'data-garden-version': '8.
|
|
852
|
+
'data-garden-version': '8.63.0'
|
|
874
853
|
}).withConfig({
|
|
875
854
|
displayName: "StyledRadioSvg",
|
|
876
855
|
componentId: "sc-1r1qtr1-0"
|
|
@@ -885,9 +864,9 @@ const sizeStyles$9 = props => {
|
|
|
885
864
|
const padding = size + props.theme.space.base * 2;
|
|
886
865
|
return styled.css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size);
|
|
887
866
|
};
|
|
888
|
-
const StyledToggleLabel = styled__default
|
|
867
|
+
const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
|
|
889
868
|
'data-garden-id': COMPONENT_ID$f,
|
|
890
|
-
'data-garden-version': '8.
|
|
869
|
+
'data-garden-version': '8.63.0'
|
|
891
870
|
}).withConfig({
|
|
892
871
|
displayName: "StyledToggleLabel",
|
|
893
872
|
componentId: "sc-e0asdk-0"
|
|
@@ -897,9 +876,9 @@ StyledToggleLabel.defaultProps = {
|
|
|
897
876
|
};
|
|
898
877
|
|
|
899
878
|
const COMPONENT_ID$e = 'forms.toggle_hint';
|
|
900
|
-
const StyledToggleHint = styled__default
|
|
879
|
+
const StyledToggleHint = styled__default.default(StyledHint).attrs({
|
|
901
880
|
'data-garden-id': COMPONENT_ID$e,
|
|
902
|
-
'data-garden-version': '8.
|
|
881
|
+
'data-garden-version': '8.63.0'
|
|
903
882
|
}).withConfig({
|
|
904
883
|
displayName: "StyledToggleHint",
|
|
905
884
|
componentId: "sc-nziggu-0"
|
|
@@ -924,9 +903,9 @@ const sizeStyles$8 = props => {
|
|
|
924
903
|
const checkedIconPosition = polished.math(`${width} - ${iconSize} - ${iconPosition}`);
|
|
925
904
|
return styled.css(["top:0;width:", ";height:", ";& ~ ", "::before{width:", ";height:", ";}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&:checked ~ ", " > svg{", ":", ";}"], width, height, StyledToggleLabel, width, height, StyledToggleLabel, iconPosition, props.theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledToggleLabel, props.theme.rtl ? 'right' : 'left', checkedIconPosition);
|
|
926
905
|
};
|
|
927
|
-
const StyledToggleInput = styled__default
|
|
906
|
+
const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
|
|
928
907
|
'data-garden-id': COMPONENT_ID$d,
|
|
929
|
-
'data-garden-version': '8.
|
|
908
|
+
'data-garden-version': '8.63.0'
|
|
930
909
|
}).withConfig({
|
|
931
910
|
displayName: "StyledToggleInput",
|
|
932
911
|
componentId: "sc-sgp47s-0"
|
|
@@ -936,9 +915,9 @@ StyledToggleInput.defaultProps = {
|
|
|
936
915
|
};
|
|
937
916
|
|
|
938
917
|
const COMPONENT_ID$c = 'forms.toggle_message';
|
|
939
|
-
const StyledToggleMessage = styled__default
|
|
918
|
+
const StyledToggleMessage = styled__default.default(StyledMessage).attrs({
|
|
940
919
|
'data-garden-id': COMPONENT_ID$c,
|
|
941
|
-
'data-garden-version': '8.
|
|
920
|
+
'data-garden-version': '8.63.0'
|
|
942
921
|
}).withConfig({
|
|
943
922
|
displayName: "StyledToggleMessage",
|
|
944
923
|
componentId: "sc-13vuvl1-0"
|
|
@@ -948,9 +927,7 @@ StyledToggleMessage.defaultProps = {
|
|
|
948
927
|
};
|
|
949
928
|
|
|
950
929
|
var _circle$2;
|
|
951
|
-
|
|
952
930
|
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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$m.apply(this, arguments); }
|
|
953
|
-
|
|
954
931
|
var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
955
932
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
956
933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -958,8 +935,7 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
|
958
935
|
height: 16,
|
|
959
936
|
focusable: "false",
|
|
960
937
|
viewBox: "0 0 16 16",
|
|
961
|
-
"aria-hidden": "true"
|
|
962
|
-
role: "img"
|
|
938
|
+
"aria-hidden": "true"
|
|
963
939
|
}, props), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
964
940
|
cx: 8,
|
|
965
941
|
cy: 8,
|
|
@@ -969,9 +945,9 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
|
969
945
|
};
|
|
970
946
|
|
|
971
947
|
const COMPONENT_ID$b = 'forms.toggle_svg';
|
|
972
|
-
const StyledToggleSvg = styled__default
|
|
948
|
+
const StyledToggleSvg = styled__default.default(SvgCircleSmFill).attrs({
|
|
973
949
|
'data-garden-id': COMPONENT_ID$b,
|
|
974
|
-
'data-garden-version': '8.
|
|
950
|
+
'data-garden-version': '8.63.0'
|
|
975
951
|
}).withConfig({
|
|
976
952
|
displayName: "StyledToggleSvg",
|
|
977
953
|
componentId: "sc-162xbyx-0"
|
|
@@ -991,9 +967,9 @@ const sizeStyles$7 = props => {
|
|
|
991
967
|
const iconHorizontalPosition = `${props.theme.space.base * 3}px`;
|
|
992
968
|
return styled.css(["padding-", ":", ";& + ", "{top:", ";", ":", ";}"], props.theme.rtl ? 'left' : 'right', !props.isBare && padding, StyledTextMediaFigure, iconVerticalPosition, props.theme.rtl ? 'left' : 'right', iconHorizontalPosition);
|
|
993
969
|
};
|
|
994
|
-
const StyledSelect = styled__default
|
|
970
|
+
const StyledSelect = styled__default.default(StyledTextInput).attrs({
|
|
995
971
|
'data-garden-id': COMPONENT_ID$a,
|
|
996
|
-
'data-garden-version': '8.
|
|
972
|
+
'data-garden-version': '8.63.0',
|
|
997
973
|
as: 'select'
|
|
998
974
|
}).withConfig({
|
|
999
975
|
displayName: "StyledSelect",
|
|
@@ -1004,9 +980,9 @@ StyledSelect.defaultProps = {
|
|
|
1004
980
|
};
|
|
1005
981
|
|
|
1006
982
|
const COMPONENT_ID$9 = 'forms.select_wrapper';
|
|
1007
|
-
const StyledSelectWrapper = styled__default
|
|
983
|
+
const StyledSelectWrapper = styled__default.default(StyledTextFauxInput).attrs({
|
|
1008
984
|
'data-garden-id': COMPONENT_ID$9,
|
|
1009
|
-
'data-garden-version': '8.
|
|
985
|
+
'data-garden-version': '8.63.0',
|
|
1010
986
|
isBare: true
|
|
1011
987
|
}).withConfig({
|
|
1012
988
|
displayName: "StyledSelectWrapper",
|
|
@@ -1128,9 +1104,9 @@ const sizeStyles$6 = props => {
|
|
|
1128
1104
|
height: ${trackHeight};
|
|
1129
1105
|
`));
|
|
1130
1106
|
};
|
|
1131
|
-
const StyledRangeInput = styled__default
|
|
1107
|
+
const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
1132
1108
|
'data-garden-id': COMPONENT_ID$8,
|
|
1133
|
-
'data-garden-version': '8.
|
|
1109
|
+
'data-garden-version': '8.63.0',
|
|
1134
1110
|
type: 'range',
|
|
1135
1111
|
style: {
|
|
1136
1112
|
backgroundSize: props.hasLowerTrack && props.backgroundSize
|
|
@@ -1161,9 +1137,9 @@ StyledRangeInput.defaultProps = {
|
|
|
1161
1137
|
};
|
|
1162
1138
|
|
|
1163
1139
|
const COMPONENT_ID$7 = 'forms.slider';
|
|
1164
|
-
const StyledSlider = styled__default
|
|
1140
|
+
const StyledSlider = styled__default.default.div.attrs({
|
|
1165
1141
|
'data-garden-id': COMPONENT_ID$7,
|
|
1166
|
-
'data-garden-version': '8.
|
|
1142
|
+
'data-garden-version': '8.63.0'
|
|
1167
1143
|
}).withConfig({
|
|
1168
1144
|
displayName: "StyledSlider",
|
|
1169
1145
|
componentId: "sc-1di437a-0"
|
|
@@ -1192,9 +1168,9 @@ const sizeStyles$5 = props => {
|
|
|
1192
1168
|
const marginTop = polished.math(`${size} / -2`);
|
|
1193
1169
|
return styled.css(["margin-top:", ";width:", ";height:", ";"], marginTop, size, size);
|
|
1194
1170
|
};
|
|
1195
|
-
const StyledSliderThumb = styled__default
|
|
1171
|
+
const StyledSliderThumb = styled__default.default.div.attrs(props => ({
|
|
1196
1172
|
'data-garden-id': COMPONENT_ID$6,
|
|
1197
|
-
'data-garden-version': '8.
|
|
1173
|
+
'data-garden-version': '8.63.0',
|
|
1198
1174
|
'aria-disabled': props.isDisabled
|
|
1199
1175
|
})).withConfig({
|
|
1200
1176
|
displayName: "StyledSliderThumb",
|
|
@@ -1222,9 +1198,9 @@ const sizeStyles$4 = props => {
|
|
|
1222
1198
|
const padding = polished.math(`${props.theme.space.base} * 2.5px`);
|
|
1223
1199
|
return styled.css(["margin-top:", ";border-radius:", ";background-position:", ";background-size:", ";padding:0 ", ";"], marginTop, borderRadius, backgroundPosition, backgroundSize, padding);
|
|
1224
1200
|
};
|
|
1225
|
-
const StyledSliderTrack = styled__default
|
|
1201
|
+
const StyledSliderTrack = styled__default.default.div.attrs(props => ({
|
|
1226
1202
|
'data-garden-id': COMPONENT_ID$5,
|
|
1227
|
-
'data-garden-version': '8.
|
|
1203
|
+
'data-garden-version': '8.63.0',
|
|
1228
1204
|
'aria-disabled': props.isDisabled
|
|
1229
1205
|
})).withConfig({
|
|
1230
1206
|
displayName: "StyledSliderTrack",
|
|
@@ -1242,9 +1218,9 @@ const sizeStyles$3 = props => {
|
|
|
1242
1218
|
const margin = polished.math(`${props.theme.space.base} * 2.5px`);
|
|
1243
1219
|
return styled.css(["margin:0 ", " 0 ", ";height:", ";"], props.theme.rtl ? `-${margin}` : margin, props.theme.rtl ? margin : `-${margin}`, height);
|
|
1244
1220
|
};
|
|
1245
|
-
const StyledSliderTrackRail = styled__default
|
|
1221
|
+
const StyledSliderTrackRail = styled__default.default.div.attrs({
|
|
1246
1222
|
'data-garden-id': COMPONENT_ID$4,
|
|
1247
|
-
'data-garden-version': '8.
|
|
1223
|
+
'data-garden-version': '8.63.0'
|
|
1248
1224
|
}).withConfig({
|
|
1249
1225
|
displayName: "StyledSliderTrackRail",
|
|
1250
1226
|
componentId: "sc-1o5owbd-0"
|
|
@@ -1269,9 +1245,9 @@ const sizeStyles$2 = props => {
|
|
|
1269
1245
|
}
|
|
1270
1246
|
return styled.css(["position:", ";top:", ";", ";& > *{width:", ";height:", ";}"], position, top, horizontalValue, iconSize, iconSize);
|
|
1271
1247
|
};
|
|
1272
|
-
const StyledTileIcon = styled__default
|
|
1248
|
+
const StyledTileIcon = styled__default.default.span.attrs({
|
|
1273
1249
|
'data-garden-id': COMPONENT_ID$3,
|
|
1274
|
-
'data-garden-version': '8.
|
|
1250
|
+
'data-garden-version': '8.63.0'
|
|
1275
1251
|
}).withConfig({
|
|
1276
1252
|
displayName: "StyledTileIcon",
|
|
1277
1253
|
componentId: "sc-1wazhg4-0"
|
|
@@ -1304,9 +1280,9 @@ const colorStyles = props => {
|
|
|
1304
1280
|
const selectedDisabledBackgroundColor = disabledBorderColor;
|
|
1305
1281
|
return styled.css(["border:", " ", ";border-color:", ";background-color:", ";color:", ";", "{color:", ";}&:focus{outline:none;}&:hover:not([aria-disabled='true']){border-color:", ";background-color:", ";", "{color:", ";}}&[data-garden-focus-visible='true']{border-color:", ";box-shadow:", ";}&:active:not([aria-disabled='true']){border-color:", ";background-color:", ";", "{color:", ";}}&[data-garden-selected='true']{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[data-garden-selected='true']:not([aria-disabled='true']):hover{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[data-garden-selected='true']:not([aria-disabled='true']):active{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[data-garden-selected='true'][aria-disabled='true']{background-color:", ";color:", ";", "{color:", ";}}"], props.theme.borders.sm, reactTheming.getColor('neutralHue', SHADE - 300, props.theme), borderColor, props.theme.colors.background, color, StyledTileIcon, iconColor, hoverBorderColor, hoverBackgroundColor, StyledTileIcon, color, focusBorderColor, focusBoxShadow, activeBorderColor, activeBackgroundColor, StyledTileIcon, color, selectedBorderColor, selectedBackgroundColor, props.theme.colors.background, StyledTileIcon, props.theme.colors.background, selectedHoverBorderColor, selectedHoverBackgroundColor, props.theme.colors.background, StyledTileIcon, props.theme.colors.background, selectedActiveBorderColor, selectedActiveBackgroundColor, props.theme.colors.background, StyledTileIcon, props.theme.colors.background, disabledBorderColor, disabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor, selectedDisabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor);
|
|
1306
1282
|
};
|
|
1307
|
-
const StyledTile = styled__default
|
|
1283
|
+
const StyledTile = styled__default.default.label.attrs(props => ({
|
|
1308
1284
|
'data-garden-id': COMPONENT_ID$2,
|
|
1309
|
-
'data-garden-version': '8.
|
|
1285
|
+
'data-garden-version': '8.63.0',
|
|
1310
1286
|
'data-garden-focus-visible': props.isFocused,
|
|
1311
1287
|
'data-garden-selected': props.isSelected
|
|
1312
1288
|
})).withConfig({
|
|
@@ -1329,9 +1305,9 @@ const sizeStyles$1 = props => {
|
|
|
1329
1305
|
}
|
|
1330
1306
|
return styled.css(["margin-top:", "px;margin-", ":", ";"], props.theme.space.base, marginDirection, marginValue);
|
|
1331
1307
|
};
|
|
1332
|
-
const StyledTileDescription = styled__default
|
|
1308
|
+
const StyledTileDescription = styled__default.default.span.attrs({
|
|
1333
1309
|
'data-garden-id': COMPONENT_ID$1,
|
|
1334
|
-
'data-garden-version': '8.
|
|
1310
|
+
'data-garden-version': '8.63.0'
|
|
1335
1311
|
}).withConfig({
|
|
1336
1312
|
displayName: "StyledTileDescription",
|
|
1337
1313
|
componentId: "sc-xfuu7u-0"
|
|
@@ -1340,7 +1316,7 @@ StyledTileDescription.defaultProps = {
|
|
|
1340
1316
|
theme: reactTheming.DEFAULT_THEME
|
|
1341
1317
|
};
|
|
1342
1318
|
|
|
1343
|
-
const StyledTileInput = styled__default
|
|
1319
|
+
const StyledTileInput = styled__default.default.input.withConfig({
|
|
1344
1320
|
displayName: "StyledTileInput",
|
|
1345
1321
|
componentId: "sc-1nq2m6q-0"
|
|
1346
1322
|
})(["position:absolute;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
@@ -1362,9 +1338,9 @@ const sizeStyles = props => {
|
|
|
1362
1338
|
}
|
|
1363
1339
|
return styled.css(["margin-top:", ";margin-", ":", ";"], marginTop, marginDirection, marginValue);
|
|
1364
1340
|
};
|
|
1365
|
-
const StyledTileLabel = styled__default
|
|
1341
|
+
const StyledTileLabel = styled__default.default.span.attrs({
|
|
1366
1342
|
'data-garden-id': COMPONENT_ID,
|
|
1367
|
-
'data-garden-version': '8.
|
|
1343
|
+
'data-garden-version': '8.63.0'
|
|
1368
1344
|
}).withConfig({
|
|
1369
1345
|
displayName: "StyledTileLabel",
|
|
1370
1346
|
componentId: "sc-1mypv27-0"
|
|
@@ -1373,7 +1349,7 @@ StyledTileLabel.defaultProps = {
|
|
|
1373
1349
|
theme: reactTheming.DEFAULT_THEME
|
|
1374
1350
|
};
|
|
1375
1351
|
|
|
1376
|
-
const Field =
|
|
1352
|
+
const Field = React__namespace.default.forwardRef((props, ref) => {
|
|
1377
1353
|
const [hasHint, setHasHint] = React.useState(false);
|
|
1378
1354
|
const [hasMessage, setHasMessage] = React.useState(false);
|
|
1379
1355
|
const [isLabelActive, setIsLabelActive] = React.useState(false);
|
|
@@ -1408,9 +1384,9 @@ const Field = React__default["default"].forwardRef((props, ref) => {
|
|
|
1408
1384
|
setHasMessage,
|
|
1409
1385
|
multiThumbRangeRef
|
|
1410
1386
|
}), [propGetters, getInputProps, getMessageProps, isLabelActive, isLabelHovered, hasHint, hasMessage]);
|
|
1411
|
-
return
|
|
1387
|
+
return React__namespace.default.createElement(FieldContext.Provider, {
|
|
1412
1388
|
value: fieldProps
|
|
1413
|
-
},
|
|
1389
|
+
}, React__namespace.default.createElement(StyledField, _extends$t({}, props, {
|
|
1414
1390
|
ref: ref
|
|
1415
1391
|
})));
|
|
1416
1392
|
});
|
|
@@ -1424,7 +1400,7 @@ const useFieldsetContext = () => {
|
|
|
1424
1400
|
|
|
1425
1401
|
const LegendComponent = React.forwardRef((props, ref) => {
|
|
1426
1402
|
const fieldsetContext = useFieldsetContext();
|
|
1427
|
-
return
|
|
1403
|
+
return React__namespace.default.createElement(StyledLegend, _extends$t({}, props, fieldsetContext, {
|
|
1428
1404
|
ref: ref
|
|
1429
1405
|
}));
|
|
1430
1406
|
});
|
|
@@ -1435,15 +1411,15 @@ const FieldsetComponent = React.forwardRef((props, ref) => {
|
|
|
1435
1411
|
const fieldsetContext = React.useMemo(() => ({
|
|
1436
1412
|
isCompact: props.isCompact
|
|
1437
1413
|
}), [props.isCompact]);
|
|
1438
|
-
return
|
|
1414
|
+
return React__namespace.default.createElement(FieldsetContext.Provider, {
|
|
1439
1415
|
value: fieldsetContext
|
|
1440
|
-
},
|
|
1416
|
+
}, React__namespace.default.createElement(StyledFieldset, _extends$t({}, props, {
|
|
1441
1417
|
ref: ref
|
|
1442
1418
|
})));
|
|
1443
1419
|
});
|
|
1444
1420
|
FieldsetComponent.displayName = 'Fieldset';
|
|
1445
1421
|
FieldsetComponent.propTypes = {
|
|
1446
|
-
isCompact: PropTypes__default
|
|
1422
|
+
isCompact: PropTypes__default.default.bool
|
|
1447
1423
|
};
|
|
1448
1424
|
const Fieldset = FieldsetComponent;
|
|
1449
1425
|
Fieldset.Legend = Legend;
|
|
@@ -1453,7 +1429,7 @@ const useInputContext = () => {
|
|
|
1453
1429
|
return React.useContext(InputContext);
|
|
1454
1430
|
};
|
|
1455
1431
|
|
|
1456
|
-
const Hint =
|
|
1432
|
+
const Hint = React__namespace.default.forwardRef((props, ref) => {
|
|
1457
1433
|
const {
|
|
1458
1434
|
hasHint,
|
|
1459
1435
|
setHasHint,
|
|
@@ -1484,13 +1460,13 @@ const Hint = React__default["default"].forwardRef((props, ref) => {
|
|
|
1484
1460
|
if (getHintProps) {
|
|
1485
1461
|
combinedProps = getHintProps(combinedProps);
|
|
1486
1462
|
}
|
|
1487
|
-
return
|
|
1463
|
+
return React__namespace.default.createElement(HintComponent, _extends$t({
|
|
1488
1464
|
ref: ref
|
|
1489
1465
|
}, combinedProps));
|
|
1490
1466
|
});
|
|
1491
1467
|
Hint.displayName = 'Hint';
|
|
1492
1468
|
|
|
1493
|
-
const Label$1 =
|
|
1469
|
+
const Label$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
1494
1470
|
const fieldContext = useFieldContext();
|
|
1495
1471
|
const fieldsetContext = useFieldsetContext();
|
|
1496
1472
|
const type = useInputContext();
|
|
@@ -1530,9 +1506,9 @@ const Label$1 = React__default["default"].forwardRef((props, ref) => {
|
|
|
1530
1506
|
};
|
|
1531
1507
|
}
|
|
1532
1508
|
if (type === 'radio') {
|
|
1533
|
-
return
|
|
1509
|
+
return React__namespace.default.createElement(StyledRadioLabel, _extends$t({
|
|
1534
1510
|
ref: ref
|
|
1535
|
-
}, combinedProps),
|
|
1511
|
+
}, combinedProps), React__namespace.default.createElement(StyledRadioSvg, null), props.children);
|
|
1536
1512
|
} else if (type === 'checkbox') {
|
|
1537
1513
|
const onLabelSelect = e => {
|
|
1538
1514
|
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
@@ -1553,28 +1529,28 @@ const Label$1 = React__default["default"].forwardRef((props, ref) => {
|
|
|
1553
1529
|
...combinedProps,
|
|
1554
1530
|
onClick: containerUtilities.composeEventHandlers(combinedProps.onClick, onLabelSelect)
|
|
1555
1531
|
};
|
|
1556
|
-
return
|
|
1532
|
+
return React__namespace.default.createElement(StyledCheckLabel, _extends$t({
|
|
1557
1533
|
ref: ref
|
|
1558
|
-
}, combinedProps),
|
|
1534
|
+
}, combinedProps), React__namespace.default.createElement(StyledCheckSvg, null), React__namespace.default.createElement(StyledDashSvg, null), props.children);
|
|
1559
1535
|
} else if (type === 'toggle') {
|
|
1560
|
-
return
|
|
1536
|
+
return React__namespace.default.createElement(StyledToggleLabel, _extends$t({
|
|
1561
1537
|
ref: ref
|
|
1562
|
-
}, combinedProps),
|
|
1538
|
+
}, combinedProps), React__namespace.default.createElement(StyledToggleSvg, null), props.children);
|
|
1563
1539
|
}
|
|
1564
|
-
return
|
|
1540
|
+
return React__namespace.default.createElement(StyledLabel, _extends$t({
|
|
1565
1541
|
ref: ref
|
|
1566
1542
|
}, combinedProps));
|
|
1567
1543
|
});
|
|
1568
1544
|
Label$1.displayName = 'Label';
|
|
1569
1545
|
Label$1.propTypes = {
|
|
1570
|
-
isRegular: PropTypes__default
|
|
1546
|
+
isRegular: PropTypes__default.default.bool
|
|
1571
1547
|
};
|
|
1572
1548
|
|
|
1573
1549
|
const VALIDATION = ['success', 'warning', 'error'];
|
|
1574
1550
|
const FILE_VALIDATION = ['success', 'error'];
|
|
1575
1551
|
const FILE_TYPE = ['pdf', 'zip', 'image', 'document', 'spreadsheet', 'presentation', 'generic'];
|
|
1576
1552
|
|
|
1577
|
-
const Message =
|
|
1553
|
+
const Message = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1578
1554
|
let {
|
|
1579
1555
|
validation,
|
|
1580
1556
|
validationLabel,
|
|
@@ -1616,20 +1592,20 @@ const Message = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1616
1592
|
combinedProps = getMessageProps(combinedProps);
|
|
1617
1593
|
}
|
|
1618
1594
|
const ariaLabel = reactTheming.useText(Message, combinedProps, 'validationLabel', validation);
|
|
1619
|
-
return
|
|
1595
|
+
return React__namespace.default.createElement(MessageComponent, _extends$t({
|
|
1620
1596
|
ref: ref
|
|
1621
|
-
}, combinedProps), validation &&
|
|
1597
|
+
}, combinedProps), validation && React__namespace.default.createElement(StyledMessageIcon, {
|
|
1622
1598
|
validation: validation,
|
|
1623
1599
|
"aria-label": ariaLabel
|
|
1624
1600
|
}), children);
|
|
1625
1601
|
});
|
|
1626
1602
|
Message.displayName = 'Message';
|
|
1627
1603
|
Message.propTypes = {
|
|
1628
|
-
validation: PropTypes__default
|
|
1629
|
-
validationLabel: PropTypes__default
|
|
1604
|
+
validation: PropTypes__default.default.oneOf(VALIDATION),
|
|
1605
|
+
validationLabel: PropTypes__default.default.string
|
|
1630
1606
|
};
|
|
1631
1607
|
|
|
1632
|
-
const Checkbox =
|
|
1608
|
+
const Checkbox = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1633
1609
|
let {
|
|
1634
1610
|
indeterminate,
|
|
1635
1611
|
children,
|
|
@@ -1659,14 +1635,14 @@ const Checkbox = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1659
1635
|
if (fieldContext) {
|
|
1660
1636
|
combinedProps = fieldContext.getInputProps(combinedProps);
|
|
1661
1637
|
}
|
|
1662
|
-
return
|
|
1638
|
+
return React__namespace.default.createElement(InputContext.Provider, {
|
|
1663
1639
|
value: "checkbox"
|
|
1664
|
-
},
|
|
1640
|
+
}, React__namespace.default.createElement(StyledCheckInput, combinedProps), children);
|
|
1665
1641
|
});
|
|
1666
1642
|
Checkbox.displayName = 'Checkbox';
|
|
1667
1643
|
Checkbox.propTypes = {
|
|
1668
|
-
isCompact: PropTypes__default
|
|
1669
|
-
indeterminate: PropTypes__default
|
|
1644
|
+
isCompact: PropTypes__default.default.bool,
|
|
1645
|
+
indeterminate: PropTypes__default.default.bool
|
|
1670
1646
|
};
|
|
1671
1647
|
|
|
1672
1648
|
const InputGroupContext = React.createContext(undefined);
|
|
@@ -1674,7 +1650,7 @@ const useInputGroupContext = () => {
|
|
|
1674
1650
|
return React.useContext(InputGroupContext);
|
|
1675
1651
|
};
|
|
1676
1652
|
|
|
1677
|
-
const Input =
|
|
1653
|
+
const Input = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1678
1654
|
let {
|
|
1679
1655
|
onSelect,
|
|
1680
1656
|
...props
|
|
@@ -1699,17 +1675,17 @@ const Input = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1699
1675
|
if (fieldContext) {
|
|
1700
1676
|
combinedProps = fieldContext.getInputProps(combinedProps);
|
|
1701
1677
|
}
|
|
1702
|
-
return
|
|
1678
|
+
return React__namespace.default.createElement(StyledTextInput, combinedProps);
|
|
1703
1679
|
});
|
|
1704
1680
|
Input.propTypes = {
|
|
1705
|
-
isCompact: PropTypes__default
|
|
1706
|
-
isBare: PropTypes__default
|
|
1707
|
-
focusInset: PropTypes__default
|
|
1708
|
-
validation: PropTypes__default
|
|
1681
|
+
isCompact: PropTypes__default.default.bool,
|
|
1682
|
+
isBare: PropTypes__default.default.bool,
|
|
1683
|
+
focusInset: PropTypes__default.default.bool,
|
|
1684
|
+
validation: PropTypes__default.default.oneOf(VALIDATION)
|
|
1709
1685
|
};
|
|
1710
1686
|
Input.displayName = 'Input';
|
|
1711
1687
|
|
|
1712
|
-
const Radio =
|
|
1688
|
+
const Radio = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1713
1689
|
let {
|
|
1714
1690
|
children,
|
|
1715
1691
|
...props
|
|
@@ -1724,16 +1700,16 @@ const Radio = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1724
1700
|
if (fieldContext) {
|
|
1725
1701
|
combinedProps = fieldContext.getInputProps(combinedProps);
|
|
1726
1702
|
}
|
|
1727
|
-
return
|
|
1703
|
+
return React__namespace.default.createElement(InputContext.Provider, {
|
|
1728
1704
|
value: "radio"
|
|
1729
|
-
},
|
|
1705
|
+
}, React__namespace.default.createElement(StyledRadioInput, combinedProps), children);
|
|
1730
1706
|
});
|
|
1731
1707
|
Radio.displayName = 'Radio';
|
|
1732
1708
|
Radio.propTypes = {
|
|
1733
|
-
isCompact: PropTypes__default
|
|
1709
|
+
isCompact: PropTypes__default.default.bool
|
|
1734
1710
|
};
|
|
1735
1711
|
|
|
1736
|
-
const Range =
|
|
1712
|
+
const Range = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1737
1713
|
let {
|
|
1738
1714
|
hasLowerTrack,
|
|
1739
1715
|
min,
|
|
@@ -1763,7 +1739,7 @@ const Range = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1763
1739
|
updateBackgroundWidthFromInput(event.target);
|
|
1764
1740
|
}) : props.onChange;
|
|
1765
1741
|
let combinedProps = {
|
|
1766
|
-
ref: mergeRefs__default
|
|
1742
|
+
ref: mergeRefs__default.default([rangeRef, ref]),
|
|
1767
1743
|
hasLowerTrack,
|
|
1768
1744
|
min,
|
|
1769
1745
|
max,
|
|
@@ -1777,7 +1753,7 @@ const Range = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1777
1753
|
isDescribed: true
|
|
1778
1754
|
});
|
|
1779
1755
|
}
|
|
1780
|
-
return
|
|
1756
|
+
return React__namespace.default.createElement(StyledRangeInput, combinedProps);
|
|
1781
1757
|
});
|
|
1782
1758
|
Range.defaultProps = {
|
|
1783
1759
|
hasLowerTrack: true,
|
|
@@ -1790,7 +1766,7 @@ Range.displayName = 'Range';
|
|
|
1790
1766
|
const parseStyleValue = value => {
|
|
1791
1767
|
return parseInt(value, 10) || 0;
|
|
1792
1768
|
};
|
|
1793
|
-
const Textarea =
|
|
1769
|
+
const Textarea = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1794
1770
|
let {
|
|
1795
1771
|
minRows,
|
|
1796
1772
|
maxRows,
|
|
@@ -1859,7 +1835,7 @@ const Textarea = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1859
1835
|
}
|
|
1860
1836
|
if (environment) {
|
|
1861
1837
|
const win = environment.defaultView || window;
|
|
1862
|
-
const resizeHandler = debounce__default
|
|
1838
|
+
const resizeHandler = debounce__default.default(calculateHeight);
|
|
1863
1839
|
win.addEventListener('resize', resizeHandler);
|
|
1864
1840
|
return () => {
|
|
1865
1841
|
resizeHandler.cancel();
|
|
@@ -1880,7 +1856,7 @@ const Textarea = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1880
1856
|
event.currentTarget.select();
|
|
1881
1857
|
}) : onSelect;
|
|
1882
1858
|
let combinedProps = {
|
|
1883
|
-
ref: mergeRefs__default
|
|
1859
|
+
ref: mergeRefs__default.default([textAreaRef, ref]),
|
|
1884
1860
|
rows: minRows,
|
|
1885
1861
|
onChange: onChangeHandler,
|
|
1886
1862
|
onSelect: onSelectHandler,
|
|
@@ -1895,7 +1871,7 @@ const Textarea = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1895
1871
|
isDescribed: true
|
|
1896
1872
|
});
|
|
1897
1873
|
}
|
|
1898
|
-
return
|
|
1874
|
+
return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledTextarea, combinedProps), isAutoResizable && React__namespace.default.createElement(StyledTextarea, {
|
|
1899
1875
|
"aria-hidden": true,
|
|
1900
1876
|
readOnly: true,
|
|
1901
1877
|
isHidden: true,
|
|
@@ -1908,17 +1884,17 @@ const Textarea = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1908
1884
|
}));
|
|
1909
1885
|
});
|
|
1910
1886
|
Textarea.propTypes = {
|
|
1911
|
-
isCompact: PropTypes__default
|
|
1912
|
-
isBare: PropTypes__default
|
|
1913
|
-
focusInset: PropTypes__default
|
|
1914
|
-
isResizable: PropTypes__default
|
|
1915
|
-
minRows: PropTypes__default
|
|
1916
|
-
maxRows: PropTypes__default
|
|
1917
|
-
validation: PropTypes__default
|
|
1887
|
+
isCompact: PropTypes__default.default.bool,
|
|
1888
|
+
isBare: PropTypes__default.default.bool,
|
|
1889
|
+
focusInset: PropTypes__default.default.bool,
|
|
1890
|
+
isResizable: PropTypes__default.default.bool,
|
|
1891
|
+
minRows: PropTypes__default.default.number,
|
|
1892
|
+
maxRows: PropTypes__default.default.number,
|
|
1893
|
+
validation: PropTypes__default.default.oneOf(VALIDATION)
|
|
1918
1894
|
};
|
|
1919
1895
|
Textarea.displayName = 'Textarea';
|
|
1920
1896
|
|
|
1921
|
-
const Toggle =
|
|
1897
|
+
const Toggle = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1922
1898
|
let {
|
|
1923
1899
|
children,
|
|
1924
1900
|
...props
|
|
@@ -1933,19 +1909,17 @@ const Toggle = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1933
1909
|
if (fieldContext) {
|
|
1934
1910
|
combinedProps = fieldContext.getInputProps(combinedProps);
|
|
1935
1911
|
}
|
|
1936
|
-
return
|
|
1912
|
+
return React__namespace.default.createElement(InputContext.Provider, {
|
|
1937
1913
|
value: "toggle"
|
|
1938
|
-
},
|
|
1914
|
+
}, React__namespace.default.createElement(StyledToggleInput, combinedProps), children);
|
|
1939
1915
|
});
|
|
1940
1916
|
Toggle.displayName = 'Toggle';
|
|
1941
1917
|
Toggle.propTypes = {
|
|
1942
|
-
isCompact: PropTypes__default
|
|
1918
|
+
isCompact: PropTypes__default.default.bool
|
|
1943
1919
|
};
|
|
1944
1920
|
|
|
1945
1921
|
var _path$k;
|
|
1946
|
-
|
|
1947
1922
|
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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$l.apply(this, arguments); }
|
|
1948
|
-
|
|
1949
1923
|
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
1950
1924
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
1951
1925
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1953,21 +1927,20 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
|
1953
1927
|
height: 16,
|
|
1954
1928
|
focusable: "false",
|
|
1955
1929
|
viewBox: "0 0 16 16",
|
|
1956
|
-
"aria-hidden": "true"
|
|
1957
|
-
role: "img"
|
|
1930
|
+
"aria-hidden": "true"
|
|
1958
1931
|
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1959
1932
|
fill: "currentColor",
|
|
1960
1933
|
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"
|
|
1961
1934
|
})));
|
|
1962
1935
|
};
|
|
1963
1936
|
|
|
1964
|
-
const StartIconComponent = props =>
|
|
1937
|
+
const StartIconComponent = props => React__namespace.default.createElement(StyledTextMediaFigure, _extends$t({
|
|
1965
1938
|
position: "start"
|
|
1966
1939
|
}, props));
|
|
1967
1940
|
StartIconComponent.displayName = 'FauxInput.StartIcon';
|
|
1968
1941
|
const StartIcon = StartIconComponent;
|
|
1969
1942
|
|
|
1970
|
-
const EndIconComponent = props =>
|
|
1943
|
+
const EndIconComponent = props => React__namespace.default.createElement(StyledTextMediaFigure, _extends$t({
|
|
1971
1944
|
position: "end"
|
|
1972
1945
|
}, props));
|
|
1973
1946
|
EndIconComponent.displayName = 'FauxInput.EndIcon';
|
|
@@ -1989,7 +1962,7 @@ const FauxInputComponent = React.forwardRef((_ref, ref) => {
|
|
|
1989
1962
|
const onBlurHandler = containerUtilities.composeEventHandlers(onBlur, () => {
|
|
1990
1963
|
setIsFocused(false);
|
|
1991
1964
|
});
|
|
1992
|
-
return
|
|
1965
|
+
return React__namespace.default.createElement(StyledTextFauxInput, _extends$t({
|
|
1993
1966
|
onFocus: onFocusHandler,
|
|
1994
1967
|
onBlur: onBlurHandler,
|
|
1995
1968
|
isFocused: controlledIsFocused === undefined ? isFocused : controlledIsFocused,
|
|
@@ -2002,20 +1975,20 @@ const FauxInputComponent = React.forwardRef((_ref, ref) => {
|
|
|
2002
1975
|
});
|
|
2003
1976
|
FauxInputComponent.displayName = 'FauxInput';
|
|
2004
1977
|
FauxInputComponent.propTypes = {
|
|
2005
|
-
isCompact: PropTypes__default
|
|
2006
|
-
isBare: PropTypes__default
|
|
2007
|
-
focusInset: PropTypes__default
|
|
2008
|
-
disabled: PropTypes__default
|
|
2009
|
-
readOnly: PropTypes__default
|
|
2010
|
-
validation: PropTypes__default
|
|
2011
|
-
isFocused: PropTypes__default
|
|
2012
|
-
isHovered: PropTypes__default
|
|
1978
|
+
isCompact: PropTypes__default.default.bool,
|
|
1979
|
+
isBare: PropTypes__default.default.bool,
|
|
1980
|
+
focusInset: PropTypes__default.default.bool,
|
|
1981
|
+
disabled: PropTypes__default.default.bool,
|
|
1982
|
+
readOnly: PropTypes__default.default.bool,
|
|
1983
|
+
validation: PropTypes__default.default.oneOf(VALIDATION),
|
|
1984
|
+
isFocused: PropTypes__default.default.bool,
|
|
1985
|
+
isHovered: PropTypes__default.default.bool
|
|
2013
1986
|
};
|
|
2014
1987
|
const FauxInput = FauxInputComponent;
|
|
2015
1988
|
FauxInput.EndIcon = EndIcon;
|
|
2016
1989
|
FauxInput.StartIcon = StartIcon;
|
|
2017
1990
|
|
|
2018
|
-
const Select =
|
|
1991
|
+
const Select = React__namespace.default.forwardRef((_ref, ref) => {
|
|
2019
1992
|
let {
|
|
2020
1993
|
disabled,
|
|
2021
1994
|
isCompact,
|
|
@@ -2033,17 +2006,17 @@ const Select = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2033
2006
|
isDescribed: true
|
|
2034
2007
|
});
|
|
2035
2008
|
}
|
|
2036
|
-
return
|
|
2009
|
+
return React__namespace.default.createElement(StyledSelectWrapper, {
|
|
2037
2010
|
isCompact: isCompact
|
|
2038
|
-
},
|
|
2011
|
+
}, React__namespace.default.createElement(StyledSelect, combinedProps), !props.isBare && React__namespace.default.createElement(FauxInput.EndIcon, {
|
|
2039
2012
|
isDisabled: disabled
|
|
2040
|
-
},
|
|
2013
|
+
}, React__namespace.default.createElement(SvgChevronDownStroke, null)));
|
|
2041
2014
|
});
|
|
2042
2015
|
Select.propTypes = {
|
|
2043
|
-
isCompact: PropTypes__default
|
|
2044
|
-
isBare: PropTypes__default
|
|
2045
|
-
focusInset: PropTypes__default
|
|
2046
|
-
validation: PropTypes__default
|
|
2016
|
+
isCompact: PropTypes__default.default.bool,
|
|
2017
|
+
isBare: PropTypes__default.default.bool,
|
|
2018
|
+
focusInset: PropTypes__default.default.bool,
|
|
2019
|
+
validation: PropTypes__default.default.oneOf(VALIDATION)
|
|
2047
2020
|
};
|
|
2048
2021
|
Select.displayName = 'Select';
|
|
2049
2022
|
|
|
@@ -2109,16 +2082,16 @@ const MultiThumbRange = React.forwardRef((_ref, ref) => {
|
|
|
2109
2082
|
const minPosition = (updatedMinValue - min) / (max - min) * trackRect.width;
|
|
2110
2083
|
const maxPosition = (updatedMaxValue - min) / (max - min) * trackRect.width;
|
|
2111
2084
|
const sliderBackgroundSize = Math.abs(maxPosition) - Math.abs(minPosition);
|
|
2112
|
-
return
|
|
2085
|
+
return React__namespace.default.createElement(StyledSlider, _extends$t({
|
|
2113
2086
|
ref: ref,
|
|
2114
2087
|
onMouseDown: onSliderMouseDown
|
|
2115
|
-
}, props),
|
|
2088
|
+
}, props), React__namespace.default.createElement(StyledSliderTrack, {
|
|
2116
2089
|
backgroundSize: sliderBackgroundSize,
|
|
2117
2090
|
backgroundPosition: theme.rtl ? trackRect.width - maxPosition : minPosition,
|
|
2118
2091
|
isDisabled: disabled
|
|
2119
|
-
},
|
|
2092
|
+
}, React__namespace.default.createElement(StyledSliderTrackRail, _extends$t({}, trackProps, {
|
|
2120
2093
|
ref: trackRailRef
|
|
2121
|
-
}),
|
|
2094
|
+
}), React__namespace.default.createElement(StyledSliderThumb, _extends$t({}, getMinThumbProps({
|
|
2122
2095
|
'aria-label': updatedMinValue
|
|
2123
2096
|
}), {
|
|
2124
2097
|
isDisabled: disabled,
|
|
@@ -2126,7 +2099,7 @@ const MultiThumbRange = React.forwardRef((_ref, ref) => {
|
|
|
2126
2099
|
ref: minThumbRef,
|
|
2127
2100
|
"data-garden-active": isLabelActive,
|
|
2128
2101
|
"data-garden-hover": isLabelHovered
|
|
2129
|
-
})),
|
|
2102
|
+
})), React__namespace.default.createElement(StyledSliderThumb, _extends$t({}, getMaxThumbProps({
|
|
2130
2103
|
'aria-label': updatedMaxValue
|
|
2131
2104
|
}), {
|
|
2132
2105
|
isDisabled: disabled,
|
|
@@ -2136,14 +2109,14 @@ const MultiThumbRange = React.forwardRef((_ref, ref) => {
|
|
|
2136
2109
|
});
|
|
2137
2110
|
MultiThumbRange.displayName = 'MultiThumbRange';
|
|
2138
2111
|
MultiThumbRange.propTypes = {
|
|
2139
|
-
min: PropTypes__default
|
|
2140
|
-
max: PropTypes__default
|
|
2141
|
-
minValue: PropTypes__default
|
|
2142
|
-
maxValue: PropTypes__default
|
|
2143
|
-
step: PropTypes__default
|
|
2144
|
-
jump: PropTypes__default
|
|
2145
|
-
disabled: PropTypes__default
|
|
2146
|
-
onChange: PropTypes__default
|
|
2112
|
+
min: PropTypes__default.default.number,
|
|
2113
|
+
max: PropTypes__default.default.number,
|
|
2114
|
+
minValue: PropTypes__default.default.number,
|
|
2115
|
+
maxValue: PropTypes__default.default.number,
|
|
2116
|
+
step: PropTypes__default.default.number,
|
|
2117
|
+
jump: PropTypes__default.default.number,
|
|
2118
|
+
disabled: PropTypes__default.default.bool,
|
|
2119
|
+
onChange: PropTypes__default.default.func
|
|
2147
2120
|
};
|
|
2148
2121
|
MultiThumbRange.defaultProps = {
|
|
2149
2122
|
min: MIN,
|
|
@@ -2156,7 +2129,7 @@ const useTilesContext = () => {
|
|
|
2156
2129
|
return React.useContext(TilesContext);
|
|
2157
2130
|
};
|
|
2158
2131
|
|
|
2159
|
-
const TileComponent =
|
|
2132
|
+
const TileComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
2160
2133
|
let {
|
|
2161
2134
|
children,
|
|
2162
2135
|
value,
|
|
@@ -2174,13 +2147,13 @@ const TileComponent = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2174
2147
|
onChange: tilesContext.onChange
|
|
2175
2148
|
};
|
|
2176
2149
|
}
|
|
2177
|
-
return
|
|
2150
|
+
return React__namespace.default.createElement(StyledTile, _extends$t({
|
|
2178
2151
|
ref: ref,
|
|
2179
2152
|
"aria-disabled": disabled,
|
|
2180
2153
|
isDisabled: disabled,
|
|
2181
2154
|
isFocused: isFocused,
|
|
2182
2155
|
isSelected: tilesContext && tilesContext.value === value
|
|
2183
|
-
}, props), children,
|
|
2156
|
+
}, props), children, React__namespace.default.createElement(StyledTileInput, _extends$t({}, inputProps, {
|
|
2184
2157
|
disabled: disabled,
|
|
2185
2158
|
value: value,
|
|
2186
2159
|
onBlur: () => setIsFocused(false),
|
|
@@ -2198,14 +2171,14 @@ const TileComponent = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2198
2171
|
});
|
|
2199
2172
|
TileComponent.displayName = 'Tiles.Tile';
|
|
2200
2173
|
TileComponent.propTypes = {
|
|
2201
|
-
value: PropTypes__default
|
|
2202
|
-
disabled: PropTypes__default
|
|
2174
|
+
value: PropTypes__default.default.string,
|
|
2175
|
+
disabled: PropTypes__default.default.bool
|
|
2203
2176
|
};
|
|
2204
2177
|
const Tile = TileComponent;
|
|
2205
2178
|
|
|
2206
2179
|
const DescriptionComponent = React.forwardRef((props, ref) => {
|
|
2207
2180
|
const tilesContext = useTilesContext();
|
|
2208
|
-
return
|
|
2181
|
+
return React__namespace.default.createElement(StyledTileDescription, _extends$t({
|
|
2209
2182
|
ref: ref,
|
|
2210
2183
|
isCentered: tilesContext && tilesContext.isCentered
|
|
2211
2184
|
}, props));
|
|
@@ -2215,7 +2188,7 @@ const Description = DescriptionComponent;
|
|
|
2215
2188
|
|
|
2216
2189
|
const IconComponent = React.forwardRef((props, ref) => {
|
|
2217
2190
|
const tileContext = useTilesContext();
|
|
2218
|
-
return
|
|
2191
|
+
return React__namespace.default.createElement(StyledTileIcon, _extends$t({
|
|
2219
2192
|
ref: ref,
|
|
2220
2193
|
isCentered: tileContext && tileContext.isCentered
|
|
2221
2194
|
}, props));
|
|
@@ -2232,8 +2205,8 @@ const LabelComponent = React.forwardRef((props, forwardedRef) => {
|
|
|
2232
2205
|
setTitle(ref.current.textContent || undefined);
|
|
2233
2206
|
}
|
|
2234
2207
|
}, [ref]);
|
|
2235
|
-
return
|
|
2236
|
-
ref: mergeRefs__default
|
|
2208
|
+
return React__namespace.default.createElement(StyledTileLabel, _extends$t({
|
|
2209
|
+
ref: mergeRefs__default.default([ref, forwardedRef]),
|
|
2237
2210
|
title: title,
|
|
2238
2211
|
isCentered: tilesContext && tilesContext.isCentered
|
|
2239
2212
|
}, props));
|
|
@@ -2266,19 +2239,19 @@ const TilesComponent = React.forwardRef((_ref, ref) => {
|
|
|
2266
2239
|
name,
|
|
2267
2240
|
isCentered
|
|
2268
2241
|
}), [handleOnChange, selectedValue, name, isCentered]);
|
|
2269
|
-
return
|
|
2242
|
+
return React__namespace.default.createElement(TilesContext.Provider, {
|
|
2270
2243
|
value: tileContext
|
|
2271
|
-
},
|
|
2244
|
+
}, React__namespace.default.createElement("div", _extends$t({
|
|
2272
2245
|
ref: ref,
|
|
2273
2246
|
role: "radiogroup"
|
|
2274
2247
|
}, props)));
|
|
2275
2248
|
});
|
|
2276
2249
|
TilesComponent.displayName = 'Tiles';
|
|
2277
2250
|
TilesComponent.propTypes = {
|
|
2278
|
-
value: PropTypes__default
|
|
2279
|
-
onChange: PropTypes__default
|
|
2280
|
-
name: PropTypes__default
|
|
2281
|
-
isCentered: PropTypes__default
|
|
2251
|
+
value: PropTypes__default.default.string,
|
|
2252
|
+
onChange: PropTypes__default.default.func,
|
|
2253
|
+
name: PropTypes__default.default.string.isRequired,
|
|
2254
|
+
isCentered: PropTypes__default.default.bool
|
|
2282
2255
|
};
|
|
2283
2256
|
TilesComponent.defaultProps = {
|
|
2284
2257
|
isCentered: true
|
|
@@ -2289,7 +2262,7 @@ Tiles.Icon = Icon;
|
|
|
2289
2262
|
Tiles.Label = Label;
|
|
2290
2263
|
Tiles.Tile = Tile;
|
|
2291
2264
|
|
|
2292
|
-
const InputGroup =
|
|
2265
|
+
const InputGroup = React__namespace.default.forwardRef((_ref, ref) => {
|
|
2293
2266
|
let {
|
|
2294
2267
|
isCompact,
|
|
2295
2268
|
...props
|
|
@@ -2297,32 +2270,36 @@ const InputGroup = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2297
2270
|
const contextValue = React.useMemo(() => ({
|
|
2298
2271
|
isCompact
|
|
2299
2272
|
}), [isCompact]);
|
|
2300
|
-
return
|
|
2273
|
+
return React__namespace.default.createElement(InputGroupContext.Provider, {
|
|
2301
2274
|
value: contextValue
|
|
2302
|
-
},
|
|
2275
|
+
}, React__namespace.default.createElement(StyledInputGroup, _extends$t({
|
|
2303
2276
|
ref: ref,
|
|
2304
2277
|
isCompact: isCompact
|
|
2305
2278
|
}, props)));
|
|
2306
2279
|
});
|
|
2307
2280
|
InputGroup.displayName = 'InputGroup';
|
|
2308
2281
|
InputGroup.propTypes = {
|
|
2309
|
-
isCompact: PropTypes__default
|
|
2282
|
+
isCompact: PropTypes__default.default.bool
|
|
2310
2283
|
};
|
|
2311
2284
|
|
|
2312
|
-
const FileUpload =
|
|
2285
|
+
const FileUpload = React__namespace.default.forwardRef((_ref, ref) => {
|
|
2313
2286
|
let {
|
|
2314
2287
|
disabled,
|
|
2315
2288
|
...props
|
|
2316
2289
|
} = _ref;
|
|
2317
|
-
return
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2290
|
+
return (
|
|
2291
|
+
React__namespace.default.createElement(StyledFileUpload, _extends$t({
|
|
2292
|
+
ref: ref,
|
|
2293
|
+
"aria-disabled": disabled
|
|
2294
|
+
}, props, {
|
|
2295
|
+
role: "button"
|
|
2296
|
+
}))
|
|
2297
|
+
);
|
|
2321
2298
|
});
|
|
2322
2299
|
FileUpload.propTypes = {
|
|
2323
|
-
isDragging: PropTypes__default
|
|
2324
|
-
isCompact: PropTypes__default
|
|
2325
|
-
disabled: PropTypes__default
|
|
2300
|
+
isDragging: PropTypes__default.default.bool,
|
|
2301
|
+
isCompact: PropTypes__default.default.bool,
|
|
2302
|
+
disabled: PropTypes__default.default.bool
|
|
2326
2303
|
};
|
|
2327
2304
|
FileUpload.displayName = 'FileUpload';
|
|
2328
2305
|
|
|
@@ -2330,7 +2307,7 @@ const ItemComponent = React.forwardRef((_ref, ref) => {
|
|
|
2330
2307
|
let {
|
|
2331
2308
|
...props
|
|
2332
2309
|
} = _ref;
|
|
2333
|
-
return
|
|
2310
|
+
return React__namespace.default.createElement(StyledFileListItem, _extends$t({}, props, {
|
|
2334
2311
|
ref: ref
|
|
2335
2312
|
}));
|
|
2336
2313
|
});
|
|
@@ -2341,7 +2318,7 @@ const FileListComponent = React.forwardRef((_ref, ref) => {
|
|
|
2341
2318
|
let {
|
|
2342
2319
|
...props
|
|
2343
2320
|
} = _ref;
|
|
2344
|
-
return
|
|
2321
|
+
return React__namespace.default.createElement(StyledFileList, _extends$t({}, props, {
|
|
2345
2322
|
ref: ref
|
|
2346
2323
|
}));
|
|
2347
2324
|
});
|
|
@@ -2350,9 +2327,7 @@ const FileList = FileListComponent;
|
|
|
2350
2327
|
FileList.Item = Item;
|
|
2351
2328
|
|
|
2352
2329
|
var _path$j;
|
|
2353
|
-
|
|
2354
2330
|
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : 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$k.apply(this, arguments); }
|
|
2355
|
-
|
|
2356
2331
|
var SvgXStroke$1 = function SvgXStroke(props) {
|
|
2357
2332
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2358
2333
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2360,8 +2335,7 @@ var SvgXStroke$1 = function SvgXStroke(props) {
|
|
|
2360
2335
|
height: 12,
|
|
2361
2336
|
focusable: "false",
|
|
2362
2337
|
viewBox: "0 0 12 12",
|
|
2363
|
-
"aria-hidden": "true"
|
|
2364
|
-
role: "img"
|
|
2338
|
+
"aria-hidden": "true"
|
|
2365
2339
|
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2366
2340
|
stroke: "currentColor",
|
|
2367
2341
|
strokeLinecap: "round",
|
|
@@ -2370,9 +2344,7 @@ var SvgXStroke$1 = function SvgXStroke(props) {
|
|
|
2370
2344
|
};
|
|
2371
2345
|
|
|
2372
2346
|
var _path$i;
|
|
2373
|
-
|
|
2374
2347
|
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : 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$j.apply(this, arguments); }
|
|
2375
|
-
|
|
2376
2348
|
var SvgXStroke = function SvgXStroke(props) {
|
|
2377
2349
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2378
2350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2380,8 +2352,7 @@ var SvgXStroke = function SvgXStroke(props) {
|
|
|
2380
2352
|
height: 16,
|
|
2381
2353
|
focusable: "false",
|
|
2382
2354
|
viewBox: "0 0 16 16",
|
|
2383
|
-
"aria-hidden": "true"
|
|
2384
|
-
role: "img"
|
|
2355
|
+
"aria-hidden": "true"
|
|
2385
2356
|
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2386
2357
|
stroke: "currentColor",
|
|
2387
2358
|
strokeLinecap: "round",
|
|
@@ -2394,23 +2365,25 @@ const useFileContext = () => {
|
|
|
2394
2365
|
return React.useContext(FileContext);
|
|
2395
2366
|
};
|
|
2396
2367
|
|
|
2397
|
-
const CloseComponent =
|
|
2368
|
+
const CloseComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
2398
2369
|
const fileContext = useFileContext();
|
|
2399
2370
|
const onMouseDown = containerUtilities.composeEventHandlers(props.onMouseDown, event => event.preventDefault()
|
|
2400
2371
|
);
|
|
2401
|
-
|
|
2402
|
-
|
|
2372
|
+
const ariaLabel = reactTheming.useText(CloseComponent, props, 'aria-label', 'Close');
|
|
2373
|
+
return React__namespace.default.createElement(StyledFileClose, _extends$t({
|
|
2374
|
+
ref: ref,
|
|
2375
|
+
"aria-label": ariaLabel
|
|
2403
2376
|
}, props, {
|
|
2377
|
+
type: "button",
|
|
2378
|
+
tabIndex: -1,
|
|
2404
2379
|
onMouseDown: onMouseDown
|
|
2405
|
-
}), fileContext && fileContext.isCompact ?
|
|
2380
|
+
}), fileContext && fileContext.isCompact ? React__namespace.default.createElement(SvgXStroke$1, null) : React__namespace.default.createElement(SvgXStroke, null));
|
|
2406
2381
|
});
|
|
2407
2382
|
CloseComponent.displayName = 'File.Close';
|
|
2408
2383
|
const Close = CloseComponent;
|
|
2409
2384
|
|
|
2410
2385
|
var _path$h;
|
|
2411
|
-
|
|
2412
2386
|
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : 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$i.apply(this, arguments); }
|
|
2413
|
-
|
|
2414
2387
|
var SvgTrashStroke$1 = function SvgTrashStroke(props) {
|
|
2415
2388
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2416
2389
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2418,8 +2391,7 @@ var SvgTrashStroke$1 = function SvgTrashStroke(props) {
|
|
|
2418
2391
|
height: 12,
|
|
2419
2392
|
focusable: "false",
|
|
2420
2393
|
viewBox: "0 0 12 12",
|
|
2421
|
-
"aria-hidden": "true"
|
|
2422
|
-
role: "img"
|
|
2394
|
+
"aria-hidden": "true"
|
|
2423
2395
|
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2424
2396
|
fill: "none",
|
|
2425
2397
|
stroke: "currentColor",
|
|
@@ -2429,9 +2401,7 @@ var SvgTrashStroke$1 = function SvgTrashStroke(props) {
|
|
|
2429
2401
|
};
|
|
2430
2402
|
|
|
2431
2403
|
var _path$g;
|
|
2432
|
-
|
|
2433
2404
|
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : 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$h.apply(this, arguments); }
|
|
2434
|
-
|
|
2435
2405
|
var SvgTrashStroke = function SvgTrashStroke(props) {
|
|
2436
2406
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2437
2407
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2439,8 +2409,7 @@ var SvgTrashStroke = function SvgTrashStroke(props) {
|
|
|
2439
2409
|
height: 16,
|
|
2440
2410
|
focusable: "false",
|
|
2441
2411
|
viewBox: "0 0 16 16",
|
|
2442
|
-
"aria-hidden": "true"
|
|
2443
|
-
role: "img"
|
|
2412
|
+
"aria-hidden": "true"
|
|
2444
2413
|
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2445
2414
|
fill: "none",
|
|
2446
2415
|
stroke: "currentColor",
|
|
@@ -2449,23 +2418,25 @@ var SvgTrashStroke = function SvgTrashStroke(props) {
|
|
|
2449
2418
|
})));
|
|
2450
2419
|
};
|
|
2451
2420
|
|
|
2452
|
-
const DeleteComponent =
|
|
2421
|
+
const DeleteComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
2453
2422
|
const fileContext = useFileContext();
|
|
2454
2423
|
const onMouseDown = containerUtilities.composeEventHandlers(props.onMouseDown, event => event.preventDefault()
|
|
2455
2424
|
);
|
|
2456
|
-
|
|
2457
|
-
|
|
2425
|
+
const ariaLabel = reactTheming.useText(DeleteComponent, props, 'aria-label', 'Delete');
|
|
2426
|
+
return React__namespace.default.createElement(StyledFileDelete, _extends$t({
|
|
2427
|
+
ref: ref,
|
|
2428
|
+
"aria-label": ariaLabel
|
|
2458
2429
|
}, props, {
|
|
2430
|
+
type: "button",
|
|
2431
|
+
tabIndex: -1,
|
|
2459
2432
|
onMouseDown: onMouseDown
|
|
2460
|
-
}), fileContext && fileContext.isCompact ?
|
|
2433
|
+
}), fileContext && fileContext.isCompact ? React__namespace.default.createElement(SvgTrashStroke$1, null) : React__namespace.default.createElement(SvgTrashStroke, null));
|
|
2461
2434
|
});
|
|
2462
2435
|
DeleteComponent.displayName = 'File.Delete';
|
|
2463
2436
|
const Delete = DeleteComponent;
|
|
2464
2437
|
|
|
2465
2438
|
var _path$f, _rect$1;
|
|
2466
|
-
|
|
2467
2439
|
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : 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$g.apply(this, arguments); }
|
|
2468
|
-
|
|
2469
2440
|
var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
|
|
2470
2441
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2471
2442
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2473,8 +2444,7 @@ var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
|
|
|
2473
2444
|
height: 12,
|
|
2474
2445
|
focusable: "false",
|
|
2475
2446
|
viewBox: "0 0 12 12",
|
|
2476
|
-
"aria-hidden": "true"
|
|
2477
|
-
role: "img"
|
|
2447
|
+
"aria-hidden": "true"
|
|
2478
2448
|
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2479
2449
|
fill: "none",
|
|
2480
2450
|
stroke: "currentColor",
|
|
@@ -2492,9 +2462,7 @@ var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
|
|
|
2492
2462
|
};
|
|
2493
2463
|
|
|
2494
2464
|
var _path$e;
|
|
2495
|
-
|
|
2496
2465
|
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : 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$f.apply(this, arguments); }
|
|
2497
|
-
|
|
2498
2466
|
var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
|
|
2499
2467
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2500
2468
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2502,8 +2470,7 @@ var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
|
|
|
2502
2470
|
height: 12,
|
|
2503
2471
|
focusable: "false",
|
|
2504
2472
|
viewBox: "0 0 12 12",
|
|
2505
|
-
"aria-hidden": "true"
|
|
2506
|
-
role: "img"
|
|
2473
|
+
"aria-hidden": "true"
|
|
2507
2474
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2508
2475
|
fill: "none",
|
|
2509
2476
|
stroke: "currentColor",
|
|
@@ -2513,9 +2480,7 @@ var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
|
|
|
2513
2480
|
};
|
|
2514
2481
|
|
|
2515
2482
|
var _path$d, _circle$1;
|
|
2516
|
-
|
|
2517
2483
|
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : 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); }
|
|
2518
|
-
|
|
2519
2484
|
var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
|
|
2520
2485
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
2521
2486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2523,8 +2488,7 @@ var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
|
|
|
2523
2488
|
height: 12,
|
|
2524
2489
|
focusable: "false",
|
|
2525
2490
|
viewBox: "0 0 12 12",
|
|
2526
|
-
"aria-hidden": "true"
|
|
2527
|
-
role: "img"
|
|
2491
|
+
"aria-hidden": "true"
|
|
2528
2492
|
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2529
2493
|
fill: "none",
|
|
2530
2494
|
stroke: "currentColor",
|
|
@@ -2540,9 +2504,7 @@ var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
|
|
|
2540
2504
|
};
|
|
2541
2505
|
|
|
2542
2506
|
var _path$c;
|
|
2543
|
-
|
|
2544
2507
|
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : 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); }
|
|
2545
|
-
|
|
2546
2508
|
var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
|
|
2547
2509
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
2548
2510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2550,8 +2512,7 @@ var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
|
|
|
2550
2512
|
height: 12,
|
|
2551
2513
|
focusable: "false",
|
|
2552
2514
|
viewBox: "0 0 12 12",
|
|
2553
|
-
"aria-hidden": "true"
|
|
2554
|
-
role: "img"
|
|
2515
|
+
"aria-hidden": "true"
|
|
2555
2516
|
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2556
2517
|
fill: "none",
|
|
2557
2518
|
stroke: "currentColor",
|
|
@@ -2561,9 +2522,7 @@ var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
|
|
|
2561
2522
|
};
|
|
2562
2523
|
|
|
2563
2524
|
var _path$b;
|
|
2564
|
-
|
|
2565
2525
|
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : 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); }
|
|
2566
|
-
|
|
2567
2526
|
var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
|
|
2568
2527
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
2569
2528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2571,8 +2530,7 @@ var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
|
|
|
2571
2530
|
height: 12,
|
|
2572
2531
|
focusable: "false",
|
|
2573
2532
|
viewBox: "0 0 12 12",
|
|
2574
|
-
"aria-hidden": "true"
|
|
2575
|
-
role: "img"
|
|
2533
|
+
"aria-hidden": "true"
|
|
2576
2534
|
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2577
2535
|
fill: "none",
|
|
2578
2536
|
stroke: "currentColor",
|
|
@@ -2582,9 +2540,7 @@ var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
|
|
|
2582
2540
|
};
|
|
2583
2541
|
|
|
2584
2542
|
var _path$a;
|
|
2585
|
-
|
|
2586
2543
|
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : 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); }
|
|
2587
|
-
|
|
2588
2544
|
var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
|
|
2589
2545
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
2590
2546
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2592,8 +2548,7 @@ var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
|
|
|
2592
2548
|
height: 12,
|
|
2593
2549
|
focusable: "false",
|
|
2594
2550
|
viewBox: "0 0 12 12",
|
|
2595
|
-
"aria-hidden": "true"
|
|
2596
|
-
role: "img"
|
|
2551
|
+
"aria-hidden": "true"
|
|
2597
2552
|
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2598
2553
|
fill: "none",
|
|
2599
2554
|
stroke: "currentColor",
|
|
@@ -2602,9 +2557,7 @@ var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
|
|
|
2602
2557
|
};
|
|
2603
2558
|
|
|
2604
2559
|
var _path$9;
|
|
2605
|
-
|
|
2606
2560
|
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : 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); }
|
|
2607
|
-
|
|
2608
2561
|
var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
|
|
2609
2562
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
2610
2563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2612,8 +2565,7 @@ var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
|
|
|
2612
2565
|
height: 12,
|
|
2613
2566
|
focusable: "false",
|
|
2614
2567
|
viewBox: "0 0 12 12",
|
|
2615
|
-
"aria-hidden": "true"
|
|
2616
|
-
role: "img"
|
|
2568
|
+
"aria-hidden": "true"
|
|
2617
2569
|
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2618
2570
|
fill: "none",
|
|
2619
2571
|
stroke: "currentColor",
|
|
@@ -2622,9 +2574,7 @@ var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
|
|
|
2622
2574
|
};
|
|
2623
2575
|
|
|
2624
2576
|
var _g;
|
|
2625
|
-
|
|
2626
2577
|
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : 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); }
|
|
2627
|
-
|
|
2628
2578
|
var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
|
|
2629
2579
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
2630
2580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2632,8 +2582,7 @@ var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
|
|
|
2632
2582
|
height: 12,
|
|
2633
2583
|
focusable: "false",
|
|
2634
2584
|
viewBox: "0 0 12 12",
|
|
2635
|
-
"aria-hidden": "true"
|
|
2636
|
-
role: "img"
|
|
2585
|
+
"aria-hidden": "true"
|
|
2637
2586
|
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2638
2587
|
fill: "none",
|
|
2639
2588
|
stroke: "currentColor"
|
|
@@ -2649,9 +2598,7 @@ var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
|
|
|
2649
2598
|
};
|
|
2650
2599
|
|
|
2651
2600
|
var _path$8;
|
|
2652
|
-
|
|
2653
2601
|
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : 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); }
|
|
2654
|
-
|
|
2655
2602
|
var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
|
|
2656
2603
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
2657
2604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2659,8 +2606,7 @@ var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
|
|
|
2659
2606
|
height: 12,
|
|
2660
2607
|
focusable: "false",
|
|
2661
2608
|
viewBox: "0 0 12 12",
|
|
2662
|
-
"aria-hidden": "true"
|
|
2663
|
-
role: "img"
|
|
2609
|
+
"aria-hidden": "true"
|
|
2664
2610
|
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2665
2611
|
fill: "none",
|
|
2666
2612
|
stroke: "currentColor",
|
|
@@ -2670,9 +2616,7 @@ var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
|
|
|
2670
2616
|
};
|
|
2671
2617
|
|
|
2672
2618
|
var _path$7, _rect;
|
|
2673
|
-
|
|
2674
2619
|
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : 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); }
|
|
2675
|
-
|
|
2676
2620
|
var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
|
|
2677
2621
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
2678
2622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2680,8 +2624,7 @@ var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
|
|
|
2680
2624
|
height: 16,
|
|
2681
2625
|
focusable: "false",
|
|
2682
2626
|
viewBox: "0 0 16 16",
|
|
2683
|
-
"aria-hidden": "true"
|
|
2684
|
-
role: "img"
|
|
2627
|
+
"aria-hidden": "true"
|
|
2685
2628
|
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2686
2629
|
fill: "none",
|
|
2687
2630
|
stroke: "currentColor",
|
|
@@ -2699,9 +2642,7 @@ var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
|
|
|
2699
2642
|
};
|
|
2700
2643
|
|
|
2701
2644
|
var _path$6;
|
|
2702
|
-
|
|
2703
2645
|
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : 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); }
|
|
2704
|
-
|
|
2705
2646
|
var SvgFileZipStroke = function SvgFileZipStroke(props) {
|
|
2706
2647
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
2707
2648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2709,8 +2650,7 @@ var SvgFileZipStroke = function SvgFileZipStroke(props) {
|
|
|
2709
2650
|
height: 16,
|
|
2710
2651
|
focusable: "false",
|
|
2711
2652
|
viewBox: "0 0 16 16",
|
|
2712
|
-
"aria-hidden": "true"
|
|
2713
|
-
role: "img"
|
|
2653
|
+
"aria-hidden": "true"
|
|
2714
2654
|
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2715
2655
|
fill: "none",
|
|
2716
2656
|
stroke: "currentColor",
|
|
@@ -2720,9 +2660,7 @@ var SvgFileZipStroke = function SvgFileZipStroke(props) {
|
|
|
2720
2660
|
};
|
|
2721
2661
|
|
|
2722
2662
|
var _path$5, _circle;
|
|
2723
|
-
|
|
2724
2663
|
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : 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); }
|
|
2725
|
-
|
|
2726
2664
|
var SvgFileImageStroke = function SvgFileImageStroke(props) {
|
|
2727
2665
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
2728
2666
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2730,8 +2668,7 @@ var SvgFileImageStroke = function SvgFileImageStroke(props) {
|
|
|
2730
2668
|
height: 16,
|
|
2731
2669
|
focusable: "false",
|
|
2732
2670
|
viewBox: "0 0 16 16",
|
|
2733
|
-
"aria-hidden": "true"
|
|
2734
|
-
role: "img"
|
|
2671
|
+
"aria-hidden": "true"
|
|
2735
2672
|
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2736
2673
|
fill: "none",
|
|
2737
2674
|
stroke: "currentColor",
|
|
@@ -2746,9 +2683,7 @@ var SvgFileImageStroke = function SvgFileImageStroke(props) {
|
|
|
2746
2683
|
};
|
|
2747
2684
|
|
|
2748
2685
|
var _path$4;
|
|
2749
|
-
|
|
2750
2686
|
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : 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); }
|
|
2751
|
-
|
|
2752
2687
|
var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
|
|
2753
2688
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
2754
2689
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2756,8 +2691,7 @@ var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
|
|
|
2756
2691
|
height: 16,
|
|
2757
2692
|
focusable: "false",
|
|
2758
2693
|
viewBox: "0 0 16 16",
|
|
2759
|
-
"aria-hidden": "true"
|
|
2760
|
-
role: "img"
|
|
2694
|
+
"aria-hidden": "true"
|
|
2761
2695
|
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2762
2696
|
fill: "none",
|
|
2763
2697
|
stroke: "currentColor",
|
|
@@ -2767,9 +2701,7 @@ var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
|
|
|
2767
2701
|
};
|
|
2768
2702
|
|
|
2769
2703
|
var _path$3;
|
|
2770
|
-
|
|
2771
2704
|
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : 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); }
|
|
2772
|
-
|
|
2773
2705
|
var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
|
|
2774
2706
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
2775
2707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2777,8 +2709,7 @@ var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
|
|
|
2777
2709
|
height: 16,
|
|
2778
2710
|
focusable: "false",
|
|
2779
2711
|
viewBox: "0 0 16 16",
|
|
2780
|
-
"aria-hidden": "true"
|
|
2781
|
-
role: "img"
|
|
2712
|
+
"aria-hidden": "true"
|
|
2782
2713
|
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2783
2714
|
fill: "none",
|
|
2784
2715
|
stroke: "currentColor",
|
|
@@ -2788,9 +2719,7 @@ var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
|
|
|
2788
2719
|
};
|
|
2789
2720
|
|
|
2790
2721
|
var _path$2;
|
|
2791
|
-
|
|
2792
2722
|
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : 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); }
|
|
2793
|
-
|
|
2794
2723
|
var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
|
|
2795
2724
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
2796
2725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2798,8 +2727,7 @@ var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
|
|
|
2798
2727
|
height: 16,
|
|
2799
2728
|
focusable: "false",
|
|
2800
2729
|
viewBox: "0 0 16 16",
|
|
2801
|
-
"aria-hidden": "true"
|
|
2802
|
-
role: "img"
|
|
2730
|
+
"aria-hidden": "true"
|
|
2803
2731
|
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2804
2732
|
fill: "none",
|
|
2805
2733
|
stroke: "currentColor",
|
|
@@ -2808,9 +2736,7 @@ var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
|
|
|
2808
2736
|
};
|
|
2809
2737
|
|
|
2810
2738
|
var _path$1;
|
|
2811
|
-
|
|
2812
2739
|
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : 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); }
|
|
2813
|
-
|
|
2814
2740
|
var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
|
|
2815
2741
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
2816
2742
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2818,8 +2744,7 @@ var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
|
|
|
2818
2744
|
height: 16,
|
|
2819
2745
|
focusable: "false",
|
|
2820
2746
|
viewBox: "0 0 16 16",
|
|
2821
|
-
"aria-hidden": "true"
|
|
2822
|
-
role: "img"
|
|
2747
|
+
"aria-hidden": "true"
|
|
2823
2748
|
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2824
2749
|
fill: "none",
|
|
2825
2750
|
stroke: "currentColor",
|
|
@@ -2828,9 +2753,7 @@ var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
|
|
|
2828
2753
|
};
|
|
2829
2754
|
|
|
2830
2755
|
var _path;
|
|
2831
|
-
|
|
2832
2756
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
2833
|
-
|
|
2834
2757
|
var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
|
|
2835
2758
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2836
2759
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2838,8 +2761,7 @@ var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
|
|
|
2838
2761
|
height: 16,
|
|
2839
2762
|
focusable: "false",
|
|
2840
2763
|
viewBox: "0 0 16 16",
|
|
2841
|
-
"aria-hidden": "true"
|
|
2842
|
-
role: "img"
|
|
2764
|
+
"aria-hidden": "true"
|
|
2843
2765
|
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2844
2766
|
fill: "none",
|
|
2845
2767
|
stroke: "currentColor",
|
|
@@ -2849,26 +2771,26 @@ var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
|
|
|
2849
2771
|
};
|
|
2850
2772
|
|
|
2851
2773
|
const fileIconsDefault = {
|
|
2852
|
-
pdf:
|
|
2853
|
-
zip:
|
|
2854
|
-
image:
|
|
2855
|
-
document:
|
|
2856
|
-
spreadsheet:
|
|
2857
|
-
presentation:
|
|
2858
|
-
generic:
|
|
2859
|
-
success:
|
|
2860
|
-
error:
|
|
2774
|
+
pdf: React__namespace.default.createElement(SvgFilePdfStroke, null),
|
|
2775
|
+
zip: React__namespace.default.createElement(SvgFileZipStroke, null),
|
|
2776
|
+
image: React__namespace.default.createElement(SvgFileImageStroke, null),
|
|
2777
|
+
document: React__namespace.default.createElement(SvgFileDocumentStroke, null),
|
|
2778
|
+
spreadsheet: React__namespace.default.createElement(SvgFileSpreadsheetStroke, null),
|
|
2779
|
+
presentation: React__namespace.default.createElement(SvgFilePresentationStroke, null),
|
|
2780
|
+
generic: React__namespace.default.createElement(SvgFileGenericStroke, null),
|
|
2781
|
+
success: React__namespace.default.createElement(SvgCheckCircleStroke$1, null),
|
|
2782
|
+
error: React__namespace.default.createElement(SvgFileErrorStroke, null)
|
|
2861
2783
|
};
|
|
2862
2784
|
const fileIconsCompact = {
|
|
2863
|
-
pdf:
|
|
2864
|
-
zip:
|
|
2865
|
-
image:
|
|
2866
|
-
document:
|
|
2867
|
-
spreadsheet:
|
|
2868
|
-
presentation:
|
|
2869
|
-
generic:
|
|
2870
|
-
success:
|
|
2871
|
-
error:
|
|
2785
|
+
pdf: React__namespace.default.createElement(SvgFilePdfStroke$1, null),
|
|
2786
|
+
zip: React__namespace.default.createElement(SvgFileZipStroke$1, null),
|
|
2787
|
+
image: React__namespace.default.createElement(SvgFileImageStroke$1, null),
|
|
2788
|
+
document: React__namespace.default.createElement(SvgFileDocumentStroke$1, null),
|
|
2789
|
+
spreadsheet: React__namespace.default.createElement(SvgFileSpreadsheetStroke$1, null),
|
|
2790
|
+
presentation: React__namespace.default.createElement(SvgFilePresentationStroke$1, null),
|
|
2791
|
+
generic: React__namespace.default.createElement(SvgFileGenericStroke$1, null),
|
|
2792
|
+
success: React__namespace.default.createElement(SvgCheckCircleStroke, null),
|
|
2793
|
+
error: React__namespace.default.createElement(SvgFileErrorStroke$1, null)
|
|
2872
2794
|
};
|
|
2873
2795
|
|
|
2874
2796
|
const FileComponent = React.forwardRef((_ref, ref) => {
|
|
@@ -2884,29 +2806,29 @@ const FileComponent = React.forwardRef((_ref, ref) => {
|
|
|
2884
2806
|
isCompact
|
|
2885
2807
|
}), [isCompact]);
|
|
2886
2808
|
const validationType = validation || type;
|
|
2887
|
-
return
|
|
2809
|
+
return React__namespace.default.createElement(FileContext.Provider, {
|
|
2888
2810
|
value: fileContextValue
|
|
2889
|
-
},
|
|
2811
|
+
}, React__namespace.default.createElement(StyledFile, _extends$t({}, props, {
|
|
2890
2812
|
isCompact: isCompact,
|
|
2891
2813
|
focusInset: focusInset,
|
|
2892
2814
|
validation: validation,
|
|
2893
2815
|
ref: ref
|
|
2894
|
-
}), validationType &&
|
|
2816
|
+
}), validationType && React__namespace.default.createElement(StyledFileIcon, {
|
|
2895
2817
|
isCompact: isCompact
|
|
2896
|
-
}, isCompact ? fileIconsCompact[validationType] : fileIconsDefault[validationType]), React.Children.map(children, child => typeof child === 'string' ?
|
|
2818
|
+
}, isCompact ? fileIconsCompact[validationType] : fileIconsDefault[validationType]), React.Children.map(children, child => typeof child === 'string' ? React__namespace.default.createElement("span", null, child) : child)));
|
|
2897
2819
|
});
|
|
2898
2820
|
FileComponent.displayName = 'File';
|
|
2899
2821
|
FileComponent.propTypes = {
|
|
2900
|
-
focusInset: PropTypes__default
|
|
2901
|
-
isCompact: PropTypes__default
|
|
2902
|
-
type: PropTypes__default
|
|
2903
|
-
validation: PropTypes__default
|
|
2822
|
+
focusInset: PropTypes__default.default.bool,
|
|
2823
|
+
isCompact: PropTypes__default.default.bool,
|
|
2824
|
+
type: PropTypes__default.default.oneOf(FILE_TYPE),
|
|
2825
|
+
validation: PropTypes__default.default.oneOf(FILE_VALIDATION)
|
|
2904
2826
|
};
|
|
2905
2827
|
const File = FileComponent;
|
|
2906
2828
|
File.Close = Close;
|
|
2907
2829
|
File.Delete = Delete;
|
|
2908
2830
|
|
|
2909
|
-
const MediaInput =
|
|
2831
|
+
const MediaInput = React__namespace.default.forwardRef((_ref, ref) => {
|
|
2910
2832
|
let {
|
|
2911
2833
|
start,
|
|
2912
2834
|
end,
|
|
@@ -2954,7 +2876,7 @@ const MediaInput = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2954
2876
|
let combinedProps = {
|
|
2955
2877
|
disabled,
|
|
2956
2878
|
readOnly,
|
|
2957
|
-
ref: mergeRefs__default
|
|
2879
|
+
ref: mergeRefs__default.default([inputRef, ref]),
|
|
2958
2880
|
onSelect: onSelectHandler,
|
|
2959
2881
|
...props
|
|
2960
2882
|
};
|
|
@@ -2965,7 +2887,7 @@ const MediaInput = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2965
2887
|
});
|
|
2966
2888
|
isLabelHovered = fieldContext.isLabelHovered;
|
|
2967
2889
|
}
|
|
2968
|
-
return
|
|
2890
|
+
return React__namespace.default.createElement(FauxInput, _extends$t({
|
|
2969
2891
|
tabIndex: null,
|
|
2970
2892
|
onClick: onFauxInputClickHandler,
|
|
2971
2893
|
onFocus: onFauxInputFocusHandler,
|
|
@@ -2983,25 +2905,25 @@ const MediaInput = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2983
2905
|
mediaLayout: true
|
|
2984
2906
|
}, otherWrapperProps, {
|
|
2985
2907
|
ref: wrapperRef
|
|
2986
|
-
}), start &&
|
|
2908
|
+
}), start && React__namespace.default.createElement(FauxInput.StartIcon, {
|
|
2987
2909
|
isDisabled: disabled,
|
|
2988
2910
|
isFocused: isFocused,
|
|
2989
2911
|
isHovered: isHovered || isLabelHovered
|
|
2990
|
-
}, start),
|
|
2912
|
+
}, start), React__namespace.default.createElement(StyledTextMediaInput, combinedProps), end && React__namespace.default.createElement(FauxInput.EndIcon, {
|
|
2991
2913
|
isDisabled: disabled,
|
|
2992
2914
|
isFocused: isFocused,
|
|
2993
2915
|
isHovered: isHovered || isLabelHovered
|
|
2994
2916
|
}, end));
|
|
2995
2917
|
});
|
|
2996
2918
|
MediaInput.propTypes = {
|
|
2997
|
-
isCompact: PropTypes__default
|
|
2998
|
-
isBare: PropTypes__default
|
|
2999
|
-
focusInset: PropTypes__default
|
|
3000
|
-
validation: PropTypes__default
|
|
3001
|
-
start: PropTypes__default
|
|
3002
|
-
end: PropTypes__default
|
|
3003
|
-
wrapperProps: PropTypes__default
|
|
3004
|
-
wrapperRef: PropTypes__default
|
|
2919
|
+
isCompact: PropTypes__default.default.bool,
|
|
2920
|
+
isBare: PropTypes__default.default.bool,
|
|
2921
|
+
focusInset: PropTypes__default.default.bool,
|
|
2922
|
+
validation: PropTypes__default.default.oneOf(VALIDATION),
|
|
2923
|
+
start: PropTypes__default.default.node,
|
|
2924
|
+
end: PropTypes__default.default.node,
|
|
2925
|
+
wrapperProps: PropTypes__default.default.object,
|
|
2926
|
+
wrapperRef: PropTypes__default.default.any
|
|
3005
2927
|
};
|
|
3006
2928
|
MediaInput.displayName = 'MediaInput';
|
|
3007
2929
|
|