@zendeskgarden/react-forms 9.12.3 → 9.12.5
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/esm/elements/Checkbox.js +6 -7
- package/dist/esm/elements/FileUpload.js +6 -7
- package/dist/esm/elements/Input.js +8 -9
- package/dist/esm/elements/MediaInput.js +14 -15
- package/dist/esm/elements/Radio.js +5 -6
- package/dist/esm/elements/Range.js +7 -8
- package/dist/esm/elements/Select.js +8 -9
- package/dist/esm/elements/Textarea.js +13 -14
- package/dist/esm/elements/Toggle.js +5 -6
- package/dist/esm/elements/common/Fieldset.js +4 -5
- package/dist/esm/elements/common/Label.js +8 -9
- package/dist/esm/elements/common/Message.js +6 -7
- package/dist/esm/elements/common/MessageIcon.js +13 -15
- package/dist/esm/elements/faux-input/FauxInput.js +14 -15
- package/dist/esm/elements/faux-input/components/EndIcon.js +13 -16
- package/dist/esm/elements/faux-input/components/StartIcon.js +13 -16
- package/dist/esm/elements/file-list/FileList.js +5 -8
- package/dist/esm/elements/file-list/components/File.js +9 -10
- package/dist/esm/elements/file-list/components/Item.js +5 -8
- package/dist/esm/elements/input-group/InputGroup.js +4 -5
- package/dist/esm/elements/tiles/Tiles.js +8 -12
- package/dist/esm/elements/tiles/components/Tile.js +6 -7
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-circle-stroke.svg.js +2 -2
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-sm-fill.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/dash-fill.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-document-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-error-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-generic-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-image-stroke.svg.js +7 -7
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-pdf-stroke.svg.js +7 -7
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-presentation-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-spreadsheet-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-zip-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/trash-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/x-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +5 -5
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +5 -5
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-document-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-generic-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-image-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-pdf-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-presentation-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-spreadsheet-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-zip-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/trash-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +4 -4
- package/dist/esm/styled/checkbox/StyledCheckHint.js +3 -3
- package/dist/esm/styled/checkbox/StyledCheckInput.js +7 -8
- package/dist/esm/styled/checkbox/StyledCheckLabel.js +3 -3
- package/dist/esm/styled/checkbox/StyledCheckMessage.js +3 -3
- package/dist/esm/styled/checkbox/StyledCheckSvg.js +3 -3
- package/dist/esm/styled/checkbox/StyledDashSvg.js +3 -3
- package/dist/esm/styled/common/StyledField.js +3 -3
- package/dist/esm/styled/common/StyledFieldset.js +3 -3
- package/dist/esm/styled/common/StyledHint.js +3 -3
- package/dist/esm/styled/common/StyledLabel.js +3 -3
- package/dist/esm/styled/common/StyledLegend.js +3 -3
- package/dist/esm/styled/common/StyledMessage.js +13 -15
- package/dist/esm/styled/common/StyledMessageIcon.js +3 -3
- package/dist/esm/styled/file-list/StyledFile.js +14 -16
- package/dist/esm/styled/file-list/StyledFileClose.js +3 -3
- package/dist/esm/styled/file-list/StyledFileDelete.js +3 -3
- package/dist/esm/styled/file-list/StyledFileIcon.js +12 -14
- package/dist/esm/styled/file-list/StyledFileList.js +3 -3
- package/dist/esm/styled/file-list/StyledFileListItem.js +3 -3
- package/dist/esm/styled/file-upload/StyledFileUpload.js +13 -15
- package/dist/esm/styled/input-group/StyledInputGroup.js +3 -3
- package/dist/esm/styled/radio/StyledRadioHint.js +3 -3
- package/dist/esm/styled/radio/StyledRadioInput.js +11 -13
- package/dist/esm/styled/radio/StyledRadioLabel.js +5 -5
- package/dist/esm/styled/radio/StyledRadioMessage.js +3 -3
- package/dist/esm/styled/radio/StyledRadioSvg.js +3 -3
- package/dist/esm/styled/range/StyledRangeInput.js +15 -20
- package/dist/esm/styled/select/StyledSelect.js +12 -14
- package/dist/esm/styled/select/StyledSelectWrapper.js +8 -9
- package/dist/esm/styled/text/StyledTextFauxInput.js +11 -12
- package/dist/esm/styled/text/StyledTextInput.js +17 -19
- package/dist/esm/styled/text/StyledTextMediaFigure.js +11 -12
- package/dist/esm/styled/text/StyledTextMediaInput.js +3 -3
- package/dist/esm/styled/text/StyledTextarea.js +3 -3
- package/dist/esm/styled/tiles/StyledTile.js +10 -12
- package/dist/esm/styled/tiles/StyledTileDescription.js +8 -9
- package/dist/esm/styled/tiles/StyledTileIcon.js +11 -13
- package/dist/esm/styled/tiles/StyledTileLabel.js +5 -6
- package/dist/esm/styled/toggle/StyledToggleHint.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleInput.js +10 -12
- package/dist/esm/styled/toggle/StyledToggleLabel.js +5 -5
- package/dist/esm/styled/toggle/StyledToggleMessage.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleSvg.js +3 -3
- package/dist/index.cjs.js +336 -401
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -48,7 +48,7 @@ const useFieldContext = () => {
|
|
|
48
48
|
const COMPONENT_ID$G = 'forms.field';
|
|
49
49
|
const StyledField = styled__default.default.div.attrs({
|
|
50
50
|
'data-garden-id': COMPONENT_ID$G,
|
|
51
|
-
'data-garden-version': '9.12.
|
|
51
|
+
'data-garden-version': '9.12.5'
|
|
52
52
|
}).withConfig({
|
|
53
53
|
displayName: "StyledField",
|
|
54
54
|
componentId: "sc-12gzfsu-0"
|
|
@@ -58,7 +58,7 @@ const COMPONENT_ID$F = 'forms.fieldset';
|
|
|
58
58
|
const StyledFieldset = styled__default.default(StyledField).attrs({
|
|
59
59
|
as: 'fieldset',
|
|
60
60
|
'data-garden-id': COMPONENT_ID$F,
|
|
61
|
-
'data-garden-version': '9.12.
|
|
61
|
+
'data-garden-version': '9.12.5'
|
|
62
62
|
}).withConfig({
|
|
63
63
|
displayName: "StyledFieldset",
|
|
64
64
|
componentId: "sc-1vr4mxv-0"
|
|
@@ -67,7 +67,7 @@ const StyledFieldset = styled__default.default(StyledField).attrs({
|
|
|
67
67
|
const COMPONENT_ID$E = 'forms.input_label';
|
|
68
68
|
const StyledLabel = styled__default.default.label.attrs(props => ({
|
|
69
69
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$E,
|
|
70
|
-
'data-garden-version': props['data-garden-version'] || '9.12.
|
|
70
|
+
'data-garden-version': props['data-garden-version'] || '9.12.5'
|
|
71
71
|
})).withConfig({
|
|
72
72
|
displayName: "StyledLabel",
|
|
73
73
|
componentId: "sc-2utmsz-0"
|
|
@@ -80,7 +80,7 @@ const COMPONENT_ID$D = 'forms.fieldset_legend';
|
|
|
80
80
|
const StyledLegend = styled__default.default(StyledLabel).attrs({
|
|
81
81
|
as: 'legend',
|
|
82
82
|
'data-garden-id': COMPONENT_ID$D,
|
|
83
|
-
'data-garden-version': '9.12.
|
|
83
|
+
'data-garden-version': '9.12.5'
|
|
84
84
|
}).withConfig({
|
|
85
85
|
displayName: "StyledLegend",
|
|
86
86
|
componentId: "sc-6s0zwq-0"
|
|
@@ -89,7 +89,7 @@ const StyledLegend = styled__default.default(StyledLabel).attrs({
|
|
|
89
89
|
const COMPONENT_ID$C = 'forms.input_hint';
|
|
90
90
|
const StyledHint = styled__default.default.div.attrs(props => ({
|
|
91
91
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$C,
|
|
92
|
-
'data-garden-version': props['data-garden-version'] || '9.12.
|
|
92
|
+
'data-garden-version': props['data-garden-version'] || '9.12.5'
|
|
93
93
|
})).withConfig({
|
|
94
94
|
displayName: "StyledHint",
|
|
95
95
|
componentId: "sc-17c2wu8-0"
|
|
@@ -101,18 +101,17 @@ const StyledHint = styled__default.default.div.attrs(props => ({
|
|
|
101
101
|
const COMPONENT_ID$B = 'forms.input_message_icon';
|
|
102
102
|
const StyledMessageIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
103
103
|
'data-garden-id': COMPONENT_ID$B,
|
|
104
|
-
'data-garden-version': '9.12.
|
|
104
|
+
'data-garden-version': '9.12.5'
|
|
105
105
|
}).withConfig({
|
|
106
106
|
displayName: "StyledMessageIcon",
|
|
107
107
|
componentId: "sc-1ph2gba-0"
|
|
108
108
|
})(["width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, reactTheming.componentStyles);
|
|
109
109
|
|
|
110
110
|
const COMPONENT_ID$A = 'forms.input_message';
|
|
111
|
-
const colorStyles$d =
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
} = _ref;
|
|
111
|
+
const colorStyles$d = ({
|
|
112
|
+
theme,
|
|
113
|
+
$validation
|
|
114
|
+
}) => {
|
|
116
115
|
let variable;
|
|
117
116
|
if ($validation === 'error') {
|
|
118
117
|
variable = 'foreground.danger';
|
|
@@ -129,11 +128,10 @@ const colorStyles$d = _ref => {
|
|
|
129
128
|
});
|
|
130
129
|
return styled.css(["color:", ";"], foregroundColor);
|
|
131
130
|
};
|
|
132
|
-
const sizeStyles$g =
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
} = _ref2;
|
|
131
|
+
const sizeStyles$g = ({
|
|
132
|
+
theme,
|
|
133
|
+
$validation
|
|
134
|
+
}) => {
|
|
137
135
|
const fontSize = theme.fontSizes.sm;
|
|
138
136
|
const lineHeight = reactTheming.getLineHeight(theme.iconSizes.md, theme.fontSizes.sm);
|
|
139
137
|
const marginTop = `${theme.space.base}px`;
|
|
@@ -142,7 +140,7 @@ const sizeStyles$g = _ref2 => {
|
|
|
142
140
|
};
|
|
143
141
|
const StyledMessage = styled__default.default.div.attrs(props => ({
|
|
144
142
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$A,
|
|
145
|
-
'data-garden-version': props['data-garden-version'] || '9.12.
|
|
143
|
+
'data-garden-version': props['data-garden-version'] || '9.12.5'
|
|
146
144
|
})).withConfig({
|
|
147
145
|
displayName: "StyledMessage",
|
|
148
146
|
componentId: "sc-30hgg7-0"
|
|
@@ -152,14 +150,13 @@ const COMPONENT_ID$z = 'forms.input';
|
|
|
152
150
|
const isInvalid = validation => {
|
|
153
151
|
return validation === 'warning' || validation === 'error';
|
|
154
152
|
};
|
|
155
|
-
const colorStyles$c =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
} = _ref;
|
|
153
|
+
const colorStyles$c = ({
|
|
154
|
+
theme,
|
|
155
|
+
$isBare,
|
|
156
|
+
$isHovered,
|
|
157
|
+
$focusInset,
|
|
158
|
+
$validation
|
|
159
|
+
}) => {
|
|
163
160
|
const foregroundColor = reactTheming.getColor({
|
|
164
161
|
theme,
|
|
165
162
|
variable: 'foreground.default'
|
|
@@ -241,12 +238,11 @@ const colorStyles$c = _ref => {
|
|
|
241
238
|
theme
|
|
242
239
|
}), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
243
240
|
};
|
|
244
|
-
const sizeStyles$f =
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
} = _ref2;
|
|
241
|
+
const sizeStyles$f = ({
|
|
242
|
+
theme,
|
|
243
|
+
$isBare,
|
|
244
|
+
$isCompact
|
|
245
|
+
}) => {
|
|
250
246
|
const fontSize = theme.fontSizes.md;
|
|
251
247
|
const paddingHorizontal = `${theme.space.base * 3}px`;
|
|
252
248
|
let height;
|
|
@@ -274,7 +270,7 @@ const sizeStyles$f = _ref2 => {
|
|
|
274
270
|
};
|
|
275
271
|
const StyledTextInput = styled__default.default.input.attrs(props => ({
|
|
276
272
|
'data-garden-id': COMPONENT_ID$z,
|
|
277
|
-
'data-garden-version': '9.12.
|
|
273
|
+
'data-garden-version': '9.12.5',
|
|
278
274
|
'aria-invalid': isInvalid(props.$validation)
|
|
279
275
|
})).withConfig({
|
|
280
276
|
displayName: "StyledTextInput",
|
|
@@ -294,20 +290,19 @@ const hiddenStyles = `
|
|
|
294
290
|
const StyledTextarea = styled__default.default(StyledTextInput).attrs({
|
|
295
291
|
as: 'textarea',
|
|
296
292
|
'data-garden-id': COMPONENT_ID$y,
|
|
297
|
-
'data-garden-version': '9.12.
|
|
293
|
+
'data-garden-version': '9.12.5'
|
|
298
294
|
}).withConfig({
|
|
299
295
|
displayName: "StyledTextarea",
|
|
300
296
|
componentId: "sc-wxschl-0"
|
|
301
297
|
})(["resize:", ";overflow:auto;", ";", ";"], props => props.$isResizable ? 'vertical' : 'none', props => props.$isHidden && hiddenStyles, reactTheming.componentStyles);
|
|
302
298
|
|
|
303
299
|
const COMPONENT_ID$x = 'forms.media_figure';
|
|
304
|
-
const colorStyles$b =
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
} = _ref;
|
|
300
|
+
const colorStyles$b = ({
|
|
301
|
+
theme,
|
|
302
|
+
$isDisabled,
|
|
303
|
+
$isHovered,
|
|
304
|
+
$isFocused
|
|
305
|
+
}) => {
|
|
311
306
|
let color;
|
|
312
307
|
if ($isDisabled) {
|
|
313
308
|
color = reactTheming.getColor({
|
|
@@ -349,21 +344,20 @@ const sizeStyles$e = props => {
|
|
|
349
344
|
};
|
|
350
345
|
const StyledTextMediaFigure = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
351
346
|
'data-garden-id': COMPONENT_ID$x,
|
|
352
|
-
'data-garden-version': '9.12.
|
|
347
|
+
'data-garden-version': '9.12.5'
|
|
353
348
|
}).withConfig({
|
|
354
349
|
displayName: "StyledTextMediaFigure",
|
|
355
350
|
componentId: "sc-1qepknj-0"
|
|
356
351
|
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles$e, colorStyles$b, reactTheming.componentStyles);
|
|
357
352
|
|
|
358
353
|
const COMPONENT_ID$w = 'forms.faux_input';
|
|
359
|
-
const colorStyles$a =
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
} = _ref;
|
|
354
|
+
const colorStyles$a = ({
|
|
355
|
+
theme,
|
|
356
|
+
$validation,
|
|
357
|
+
$focusInset,
|
|
358
|
+
$isBare,
|
|
359
|
+
$isFocused
|
|
360
|
+
}) => {
|
|
367
361
|
let borderVariable;
|
|
368
362
|
let focusBorderColor;
|
|
369
363
|
if ($validation) {
|
|
@@ -403,7 +397,7 @@ const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props
|
|
|
403
397
|
'aria-readonly': props.$isReadOnly,
|
|
404
398
|
'aria-disabled': props.$isDisabled,
|
|
405
399
|
'data-garden-id': COMPONENT_ID$w,
|
|
406
|
-
'data-garden-version': '9.12.
|
|
400
|
+
'data-garden-version': '9.12.5'
|
|
407
401
|
})).withConfig({
|
|
408
402
|
displayName: "StyledTextFauxInput",
|
|
409
403
|
componentId: "sc-yqw7j9-0"
|
|
@@ -412,7 +406,7 @@ const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props
|
|
|
412
406
|
const COMPONENT_ID$v = 'forms.media_input';
|
|
413
407
|
const StyledTextMediaInput = styled__default.default(StyledTextInput).attrs({
|
|
414
408
|
'data-garden-id': COMPONENT_ID$v,
|
|
415
|
-
'data-garden-version': '9.12.
|
|
409
|
+
'data-garden-version': '9.12.5',
|
|
416
410
|
$isBare: true
|
|
417
411
|
}).withConfig({
|
|
418
412
|
displayName: "StyledTextMediaInput",
|
|
@@ -431,7 +425,7 @@ const itemStyles = props => {
|
|
|
431
425
|
};
|
|
432
426
|
const StyledInputGroup = styled__default.default.div.attrs({
|
|
433
427
|
'data-garden-id': COMPONENT_ID$u,
|
|
434
|
-
'data-garden-version': '9.12.
|
|
428
|
+
'data-garden-version': '9.12.5'
|
|
435
429
|
}).withConfig({
|
|
436
430
|
displayName: "StyledInputGroup",
|
|
437
431
|
componentId: "sc-kjh1f0-0"
|
|
@@ -446,7 +440,7 @@ const sizeStyles$d = props => {
|
|
|
446
440
|
};
|
|
447
441
|
const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
|
|
448
442
|
'data-garden-id': COMPONENT_ID$t,
|
|
449
|
-
'data-garden-version': '9.12.
|
|
443
|
+
'data-garden-version': '9.12.5',
|
|
450
444
|
$isRadio: true
|
|
451
445
|
}).withConfig({
|
|
452
446
|
displayName: "StyledRadioLabel",
|
|
@@ -456,7 +450,7 @@ const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
|
|
|
456
450
|
const COMPONENT_ID$s = 'forms.checkbox_label';
|
|
457
451
|
const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
|
|
458
452
|
'data-garden-id': COMPONENT_ID$s,
|
|
459
|
-
'data-garden-version': '9.12.
|
|
453
|
+
'data-garden-version': '9.12.5'
|
|
460
454
|
}).withConfig({
|
|
461
455
|
displayName: "StyledCheckLabel",
|
|
462
456
|
componentId: "sc-x7nr1-0"
|
|
@@ -465,7 +459,7 @@ const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
|
|
|
465
459
|
const COMPONENT_ID$r = 'forms.radio_hint';
|
|
466
460
|
const StyledRadioHint = styled__default.default(StyledHint).attrs({
|
|
467
461
|
'data-garden-id': COMPONENT_ID$r,
|
|
468
|
-
'data-garden-version': '9.12.
|
|
462
|
+
'data-garden-version': '9.12.5'
|
|
469
463
|
}).withConfig({
|
|
470
464
|
displayName: "StyledRadioHint",
|
|
471
465
|
componentId: "sc-eo8twg-0"
|
|
@@ -474,17 +468,16 @@ const StyledRadioHint = styled__default.default(StyledHint).attrs({
|
|
|
474
468
|
const COMPONENT_ID$q = 'forms.checkbox_hint';
|
|
475
469
|
const StyledCheckHint = styled__default.default(StyledRadioHint).attrs({
|
|
476
470
|
'data-garden-id': COMPONENT_ID$q,
|
|
477
|
-
'data-garden-version': '9.12.
|
|
471
|
+
'data-garden-version': '9.12.5'
|
|
478
472
|
}).withConfig({
|
|
479
473
|
displayName: "StyledCheckHint",
|
|
480
474
|
componentId: "sc-1kl8e8c-0"
|
|
481
475
|
})(["", ";"], reactTheming.componentStyles);
|
|
482
476
|
|
|
483
477
|
const COMPONENT_ID$p = 'forms.radio';
|
|
484
|
-
const colorStyles$9 =
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
} = _ref;
|
|
478
|
+
const colorStyles$9 = ({
|
|
479
|
+
theme
|
|
480
|
+
}) => {
|
|
488
481
|
const borderColor = reactTheming.getColor({
|
|
489
482
|
theme,
|
|
490
483
|
variable: 'border.emphasis'
|
|
@@ -563,11 +556,10 @@ const colorStyles$9 = _ref => {
|
|
|
563
556
|
selector: `&:focus-visible ~ ${StyledRadioLabel}::before`
|
|
564
557
|
}), StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
|
|
565
558
|
};
|
|
566
|
-
const sizeStyles$c =
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
} = _ref2;
|
|
559
|
+
const sizeStyles$c = ({
|
|
560
|
+
theme,
|
|
561
|
+
$isCompact
|
|
562
|
+
}) => {
|
|
571
563
|
const lineHeight = `${theme.space.base * 5}px`;
|
|
572
564
|
const size = `${theme.space.base * 4}px`;
|
|
573
565
|
const top = polished.math(`(${lineHeight} - ${size}) / 2`);
|
|
@@ -579,7 +571,7 @@ const sizeStyles$c = _ref2 => {
|
|
|
579
571
|
};
|
|
580
572
|
const StyledRadioInput = styled__default.default.input.attrs({
|
|
581
573
|
'data-garden-id': COMPONENT_ID$p,
|
|
582
|
-
'data-garden-version': '9.12.
|
|
574
|
+
'data-garden-version': '9.12.5',
|
|
583
575
|
type: 'radio'
|
|
584
576
|
}).withConfig({
|
|
585
577
|
displayName: "StyledRadioInput",
|
|
@@ -587,10 +579,9 @@ const StyledRadioInput = styled__default.default.input.attrs({
|
|
|
587
579
|
})(["position:absolute;opacity:0;margin:0;& ~ ", "::before{position:absolute;", ":0;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border-radius:50%;background-repeat:no-repeat;background-position:center;content:'';}& ~ ", " > svg{position:absolute;}", ";&:focus ~ ", "::before{outline:none;}& ~ ", ":active::before{transition:border-color 0.1s ease-in-out,background-color 0.1s ease-in-out,color 0.1s ease-in-out;}", ";&:disabled ~ ", "{cursor:default;}", ";"], StyledRadioLabel, props => props.theme.rtl ? 'right' : 'left', StyledRadioLabel, sizeStyles$c, StyledRadioLabel, StyledRadioLabel, colorStyles$9, StyledRadioLabel, reactTheming.componentStyles);
|
|
588
580
|
|
|
589
581
|
const COMPONENT_ID$o = 'forms.checkbox';
|
|
590
|
-
const colorStyles$8 =
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
} = _ref;
|
|
582
|
+
const colorStyles$8 = ({
|
|
583
|
+
theme
|
|
584
|
+
}) => {
|
|
594
585
|
const backgroundOptions = {
|
|
595
586
|
theme,
|
|
596
587
|
variable: 'background.primaryEmphasis'
|
|
@@ -642,7 +633,7 @@ const colorStyles$8 = _ref => {
|
|
|
642
633
|
};
|
|
643
634
|
const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
|
|
644
635
|
'data-garden-id': COMPONENT_ID$o,
|
|
645
|
-
'data-garden-version': '9.12.
|
|
636
|
+
'data-garden-version': '9.12.5',
|
|
646
637
|
type: 'checkbox'
|
|
647
638
|
}).withConfig({
|
|
648
639
|
displayName: "StyledCheckInput",
|
|
@@ -652,7 +643,7 @@ const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
|
|
|
652
643
|
const COMPONENT_ID$n = 'forms.radio_message';
|
|
653
644
|
const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
|
|
654
645
|
'data-garden-id': COMPONENT_ID$n,
|
|
655
|
-
'data-garden-version': '9.12.
|
|
646
|
+
'data-garden-version': '9.12.5'
|
|
656
647
|
}).withConfig({
|
|
657
648
|
displayName: "StyledRadioMessage",
|
|
658
649
|
componentId: "sc-1pmi0q8-0"
|
|
@@ -661,7 +652,7 @@ const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
|
|
|
661
652
|
const COMPONENT_ID$m = 'forms.checkbox_message';
|
|
662
653
|
const StyledCheckMessage = styled__default.default(StyledRadioMessage).attrs({
|
|
663
654
|
'data-garden-id': COMPONENT_ID$m,
|
|
664
|
-
'data-garden-version': '9.12.
|
|
655
|
+
'data-garden-version': '9.12.5'
|
|
665
656
|
}).withConfig({
|
|
666
657
|
displayName: "StyledCheckMessage",
|
|
667
658
|
componentId: "sc-s4p6kd-0"
|
|
@@ -690,7 +681,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
|
690
681
|
const COMPONENT_ID$l = 'forms.check_svg';
|
|
691
682
|
const StyledCheckSvg = styled__default.default(SvgCheckSmFill).attrs({
|
|
692
683
|
'data-garden-id': COMPONENT_ID$l,
|
|
693
|
-
'data-garden-version': '9.12.
|
|
684
|
+
'data-garden-version': '9.12.5'
|
|
694
685
|
}).withConfig({
|
|
695
686
|
displayName: "StyledCheckSvg",
|
|
696
687
|
componentId: "sc-fvxetk-0"
|
|
@@ -717,18 +708,17 @@ var SvgDashFill = function SvgDashFill(props) {
|
|
|
717
708
|
const COMPONENT_ID$k = 'forms.dash_svg';
|
|
718
709
|
const StyledDashSvg = styled__default.default(SvgDashFill).attrs({
|
|
719
710
|
'data-garden-id': COMPONENT_ID$k,
|
|
720
|
-
'data-garden-version': '9.12.
|
|
711
|
+
'data-garden-version': '9.12.5'
|
|
721
712
|
}).withConfig({
|
|
722
713
|
displayName: "StyledDashSvg",
|
|
723
714
|
componentId: "sc-z3vq71-0"
|
|
724
715
|
})(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":indeterminate ~ ", " > &{opacity:1;}", ";"], StyledCheckInput, StyledCheckLabel, reactTheming.componentStyles);
|
|
725
716
|
|
|
726
717
|
const COMPONENT_ID$j = 'forms.file_upload';
|
|
727
|
-
const colorStyles$7 =
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
} = _ref;
|
|
718
|
+
const colorStyles$7 = ({
|
|
719
|
+
theme,
|
|
720
|
+
$isDragging
|
|
721
|
+
}) => {
|
|
732
722
|
const borderOptions = {
|
|
733
723
|
theme,
|
|
734
724
|
variable: 'border.primaryEmphasis'
|
|
@@ -802,11 +792,10 @@ const colorStyles$7 = _ref => {
|
|
|
802
792
|
theme
|
|
803
793
|
}), activeBorderColor, activeBackgroundColor, activeForegroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
804
794
|
};
|
|
805
|
-
const sizeStyles$b =
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
} = _ref2;
|
|
795
|
+
const sizeStyles$b = ({
|
|
796
|
+
theme,
|
|
797
|
+
$isCompact
|
|
798
|
+
}) => {
|
|
810
799
|
const marginTop = `${theme.space.base * ($isCompact ? 1 : 2)}px`;
|
|
811
800
|
const paddingHorizontal = `${$isCompact ? 2 : 4}em`;
|
|
812
801
|
const paddingVertical = polished.math(`${theme.space.base * ($isCompact ? 2.5 : 5)} - ${theme.borderWidths.sm}`);
|
|
@@ -816,7 +805,7 @@ const sizeStyles$b = _ref2 => {
|
|
|
816
805
|
};
|
|
817
806
|
const StyledFileUpload = styled__default.default.div.attrs({
|
|
818
807
|
'data-garden-id': COMPONENT_ID$j,
|
|
819
|
-
'data-garden-version': '9.12.
|
|
808
|
+
'data-garden-version': '9.12.5'
|
|
820
809
|
}).withConfig({
|
|
821
810
|
displayName: "StyledFileUpload",
|
|
822
811
|
componentId: "sc-1rodjgn-0"
|
|
@@ -825,7 +814,7 @@ const StyledFileUpload = styled__default.default.div.attrs({
|
|
|
825
814
|
const COMPONENT_ID$i = 'forms.file.close';
|
|
826
815
|
const StyledFileClose = styled__default.default.button.attrs({
|
|
827
816
|
'data-garden-id': COMPONENT_ID$i,
|
|
828
|
-
'data-garden-version': '9.12.
|
|
817
|
+
'data-garden-version': '9.12.5'
|
|
829
818
|
}).withConfig({
|
|
830
819
|
displayName: "StyledFileClose",
|
|
831
820
|
componentId: "sc-1m31jbf-0"
|
|
@@ -835,12 +824,11 @@ const StyledFileClose = styled__default.default.button.attrs({
|
|
|
835
824
|
}), reactTheming.componentStyles);
|
|
836
825
|
|
|
837
826
|
const COMPONENT_ID$h = 'forms.file';
|
|
838
|
-
const colorStyles$6 =
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
} = _ref;
|
|
827
|
+
const colorStyles$6 = ({
|
|
828
|
+
theme,
|
|
829
|
+
$focusInset,
|
|
830
|
+
$validation
|
|
831
|
+
}) => {
|
|
844
832
|
let borderVariable;
|
|
845
833
|
let focusBorderVariable;
|
|
846
834
|
let foregroundVariable;
|
|
@@ -880,11 +868,10 @@ const colorStyles$6 = _ref => {
|
|
|
880
868
|
}
|
|
881
869
|
}));
|
|
882
870
|
};
|
|
883
|
-
const sizeStyles$a =
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
} = _ref2;
|
|
871
|
+
const sizeStyles$a = ({
|
|
872
|
+
theme,
|
|
873
|
+
$isCompact
|
|
874
|
+
}) => {
|
|
888
875
|
const size = `${theme.space.base * ($isCompact ? 7 : 10)}px`;
|
|
889
876
|
const spacing = `${theme.space.base * ($isCompact ? 2 : 3)}px`;
|
|
890
877
|
const fontSize = theme.fontSizes.md;
|
|
@@ -911,7 +898,7 @@ const sizeStyles$a = _ref2 => {
|
|
|
911
898
|
};
|
|
912
899
|
const StyledFile = styled__default.default.div.attrs({
|
|
913
900
|
'data-garden-id': COMPONENT_ID$h,
|
|
914
|
-
'data-garden-version': '9.12.
|
|
901
|
+
'data-garden-version': '9.12.5'
|
|
915
902
|
}).withConfig({
|
|
916
903
|
displayName: "StyledFile",
|
|
917
904
|
componentId: "sc-195lzp1-0"
|
|
@@ -920,7 +907,7 @@ const StyledFile = styled__default.default.div.attrs({
|
|
|
920
907
|
const COMPONENT_ID$g = 'forms.file.delete';
|
|
921
908
|
const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
|
|
922
909
|
'data-garden-id': COMPONENT_ID$g,
|
|
923
|
-
'data-garden-version': '9.12.
|
|
910
|
+
'data-garden-version': '9.12.5'
|
|
924
911
|
}).withConfig({
|
|
925
912
|
displayName: "StyledFileDelete",
|
|
926
913
|
componentId: "sc-a8nnhx-0"
|
|
@@ -930,29 +917,27 @@ const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
|
|
|
930
917
|
}), reactTheming.componentStyles);
|
|
931
918
|
|
|
932
919
|
const COMPONENT_ID$f = 'forms.file.icon';
|
|
933
|
-
const colorStyles$5 =
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
} = _ref;
|
|
920
|
+
const colorStyles$5 = ({
|
|
921
|
+
theme,
|
|
922
|
+
$validation
|
|
923
|
+
}) => {
|
|
938
924
|
const color = $validation ? undefined : reactTheming.getColor({
|
|
939
925
|
theme,
|
|
940
926
|
variable: 'foreground.subtle'
|
|
941
927
|
});
|
|
942
928
|
return styled.css(["color:", ";"], color);
|
|
943
929
|
};
|
|
944
|
-
const sizeStyles$9 =
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
} = _ref2;
|
|
930
|
+
const sizeStyles$9 = ({
|
|
931
|
+
$isCompact,
|
|
932
|
+
theme
|
|
933
|
+
}) => {
|
|
949
934
|
const width = $isCompact ? theme.iconSizes.sm : theme.iconSizes.md;
|
|
950
935
|
const margin = `${theme.space.base * 2}px`;
|
|
951
936
|
return styled.css(["width:", ";margin-", ":", ";"], width, theme.rtl ? 'left' : 'right', margin);
|
|
952
937
|
};
|
|
953
938
|
const StyledFileIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
954
939
|
'data-garden-id': COMPONENT_ID$f,
|
|
955
|
-
'data-garden-version': '9.12.
|
|
940
|
+
'data-garden-version': '9.12.5'
|
|
956
941
|
}).withConfig({
|
|
957
942
|
displayName: "StyledFileIcon",
|
|
958
943
|
componentId: "sc-7b3q0c-0"
|
|
@@ -961,7 +946,7 @@ const StyledFileIcon = styled__default.default(reactTheming.StyledBaseIcon).attr
|
|
|
961
946
|
const COMPONENT_ID$e = 'forms.file_list';
|
|
962
947
|
const StyledFileList = styled__default.default.ul.attrs({
|
|
963
948
|
'data-garden-id': COMPONENT_ID$e,
|
|
964
|
-
'data-garden-version': '9.12.
|
|
949
|
+
'data-garden-version': '9.12.5'
|
|
965
950
|
}).withConfig({
|
|
966
951
|
displayName: "StyledFileList",
|
|
967
952
|
componentId: "sc-gbahjg-0"
|
|
@@ -970,7 +955,7 @@ const StyledFileList = styled__default.default.ul.attrs({
|
|
|
970
955
|
const COMPONENT_ID$d = 'forms.file_list.item';
|
|
971
956
|
const StyledFileListItem = styled__default.default.li.attrs({
|
|
972
957
|
'data-garden-id': COMPONENT_ID$d,
|
|
973
|
-
'data-garden-version': '9.12.
|
|
958
|
+
'data-garden-version': '9.12.5'
|
|
974
959
|
}).withConfig({
|
|
975
960
|
displayName: "StyledFileListItem",
|
|
976
961
|
componentId: "sc-1ova3lo-0"
|
|
@@ -997,7 +982,7 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
|
997
982
|
const COMPONENT_ID$c = 'forms.radio_svg';
|
|
998
983
|
const StyledRadioSvg = styled__default.default(SvgCircleSmFill$1).attrs({
|
|
999
984
|
'data-garden-id': COMPONENT_ID$c,
|
|
1000
|
-
'data-garden-version': '9.12.
|
|
985
|
+
'data-garden-version': '9.12.5'
|
|
1001
986
|
}).withConfig({
|
|
1002
987
|
displayName: "StyledRadioSvg",
|
|
1003
988
|
componentId: "sc-1r1qtr1-0"
|
|
@@ -1011,7 +996,7 @@ const sizeStyles$8 = props => {
|
|
|
1011
996
|
};
|
|
1012
997
|
const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
|
|
1013
998
|
'data-garden-id': COMPONENT_ID$b,
|
|
1014
|
-
'data-garden-version': '9.12.
|
|
999
|
+
'data-garden-version': '9.12.5'
|
|
1015
1000
|
}).withConfig({
|
|
1016
1001
|
displayName: "StyledToggleLabel",
|
|
1017
1002
|
componentId: "sc-e0asdk-0"
|
|
@@ -1020,17 +1005,16 @@ const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
|
|
|
1020
1005
|
const COMPONENT_ID$a = 'forms.toggle_hint';
|
|
1021
1006
|
const StyledToggleHint = styled__default.default(StyledHint).attrs({
|
|
1022
1007
|
'data-garden-id': COMPONENT_ID$a,
|
|
1023
|
-
'data-garden-version': '9.12.
|
|
1008
|
+
'data-garden-version': '9.12.5'
|
|
1024
1009
|
}).withConfig({
|
|
1025
1010
|
displayName: "StyledToggleHint",
|
|
1026
1011
|
componentId: "sc-nziggu-0"
|
|
1027
1012
|
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 12px`), reactTheming.componentStyles);
|
|
1028
1013
|
|
|
1029
1014
|
const COMPONENT_ID$9 = 'forms.toggle';
|
|
1030
|
-
const colorStyles$4 =
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
} = _ref;
|
|
1015
|
+
const colorStyles$4 = ({
|
|
1016
|
+
theme
|
|
1017
|
+
}) => {
|
|
1034
1018
|
const backgroundOptions = {
|
|
1035
1019
|
theme,
|
|
1036
1020
|
variable: 'background.emphasis'
|
|
@@ -1056,10 +1040,9 @@ const colorStyles$4 = _ref => {
|
|
|
1056
1040
|
});
|
|
1057
1041
|
return styled.css(["& ~ ", "::before{background-color:", ";}&:enabled ~ ", ":hover::before{background-color:", ";}&:enabled ~ ", ":active::before{background-color:", ";}"], StyledToggleLabel, backgroundColor, StyledToggleLabel, hoverBackgroundColor, StyledToggleLabel, activeBackgroundColor);
|
|
1058
1042
|
};
|
|
1059
|
-
const sizeStyles$7 =
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
} = _ref2;
|
|
1043
|
+
const sizeStyles$7 = ({
|
|
1044
|
+
theme
|
|
1045
|
+
}) => {
|
|
1063
1046
|
const height = `${theme.space.base * 5}px`;
|
|
1064
1047
|
const width = `${theme.space.base * 10}px`;
|
|
1065
1048
|
const iconSize = theme.iconSizes.md;
|
|
@@ -1069,7 +1052,7 @@ const sizeStyles$7 = _ref2 => {
|
|
|
1069
1052
|
};
|
|
1070
1053
|
const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
|
|
1071
1054
|
'data-garden-id': COMPONENT_ID$9,
|
|
1072
|
-
'data-garden-version': '9.12.
|
|
1055
|
+
'data-garden-version': '9.12.5'
|
|
1073
1056
|
}).withConfig({
|
|
1074
1057
|
displayName: "StyledToggleInput",
|
|
1075
1058
|
componentId: "sc-sgp47s-0"
|
|
@@ -1078,7 +1061,7 @@ const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
|
|
|
1078
1061
|
const COMPONENT_ID$8 = 'forms.toggle_message';
|
|
1079
1062
|
const StyledToggleMessage = styled__default.default(StyledMessage).attrs({
|
|
1080
1063
|
'data-garden-id': COMPONENT_ID$8,
|
|
1081
|
-
'data-garden-version': '9.12.
|
|
1064
|
+
'data-garden-version': '9.12.5'
|
|
1082
1065
|
}).withConfig({
|
|
1083
1066
|
displayName: "StyledToggleMessage",
|
|
1084
1067
|
componentId: "sc-13vuvl1-0"
|
|
@@ -1105,17 +1088,16 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
|
1105
1088
|
const COMPONENT_ID$7 = 'forms.toggle_svg';
|
|
1106
1089
|
const StyledToggleSvg = styled__default.default(SvgCircleSmFill).attrs({
|
|
1107
1090
|
'data-garden-id': COMPONENT_ID$7,
|
|
1108
|
-
'data-garden-version': '9.12.
|
|
1091
|
+
'data-garden-version': '9.12.5'
|
|
1109
1092
|
}).withConfig({
|
|
1110
1093
|
displayName: "StyledToggleSvg",
|
|
1111
1094
|
componentId: "sc-162xbyx-0"
|
|
1112
1095
|
})(["transition:all 0.15s ease-in-out;", ";"], reactTheming.componentStyles);
|
|
1113
1096
|
|
|
1114
1097
|
const COMPONENT_ID$6 = 'forms.select';
|
|
1115
|
-
const colorStyles$3 =
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
} = _ref;
|
|
1098
|
+
const colorStyles$3 = ({
|
|
1099
|
+
theme
|
|
1100
|
+
}) => {
|
|
1119
1101
|
const color = reactTheming.getColor({
|
|
1120
1102
|
theme,
|
|
1121
1103
|
variable: 'foreground.subtle',
|
|
@@ -1132,12 +1114,11 @@ const colorStyles$3 = _ref => {
|
|
|
1132
1114
|
});
|
|
1133
1115
|
return styled.css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", "{color:", ";}&:disabled + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color, StyledTextMediaFigure, disabledColor);
|
|
1134
1116
|
};
|
|
1135
|
-
const sizeStyles$6 =
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
} = _ref2;
|
|
1117
|
+
const sizeStyles$6 = ({
|
|
1118
|
+
theme,
|
|
1119
|
+
$isBare,
|
|
1120
|
+
$isCompact
|
|
1121
|
+
}) => {
|
|
1141
1122
|
const padding = $isBare ? undefined : polished.math(`${theme.iconSizes.md} + ${theme.space.base * 5}`);
|
|
1142
1123
|
const iconVerticalPosition = `${theme.space.base * ($isCompact ? 1.5 : 2.5) + 1}px`;
|
|
1143
1124
|
const iconHorizontalPosition = `${theme.space.base * 3}px`;
|
|
@@ -1145,7 +1126,7 @@ const sizeStyles$6 = _ref2 => {
|
|
|
1145
1126
|
};
|
|
1146
1127
|
const StyledSelect = styled__default.default(StyledTextInput).attrs({
|
|
1147
1128
|
'data-garden-id': COMPONENT_ID$6,
|
|
1148
|
-
'data-garden-version': '9.12.
|
|
1129
|
+
'data-garden-version': '9.12.5',
|
|
1149
1130
|
as: 'select'
|
|
1150
1131
|
}).withConfig({
|
|
1151
1132
|
displayName: "StyledSelect",
|
|
@@ -1156,25 +1137,23 @@ const StyledSelect = styled__default.default(StyledTextInput).attrs({
|
|
|
1156
1137
|
}), StyledTextMediaFigure);
|
|
1157
1138
|
|
|
1158
1139
|
const COMPONENT_ID$5 = 'forms.select_wrapper';
|
|
1159
|
-
const sizeStyles$5 =
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
} = _ref;
|
|
1140
|
+
const sizeStyles$5 = ({
|
|
1141
|
+
theme,
|
|
1142
|
+
$isCompact
|
|
1143
|
+
}) => {
|
|
1164
1144
|
const height = `${theme.space.base * ($isCompact ? 8 : 10)}px`;
|
|
1165
1145
|
return styled.css(["max-height:", ";"], height);
|
|
1166
1146
|
};
|
|
1167
1147
|
const StyledSelectWrapper = styled__default.default(StyledTextFauxInput).attrs({
|
|
1168
1148
|
'data-garden-id': COMPONENT_ID$5,
|
|
1169
|
-
'data-garden-version': '9.12.
|
|
1149
|
+
'data-garden-version': '9.12.5'
|
|
1170
1150
|
}).withConfig({
|
|
1171
1151
|
displayName: "StyledSelectWrapper",
|
|
1172
1152
|
componentId: "sc-i7b6hw-0"
|
|
1173
1153
|
})(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles$5, StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
|
|
1174
1154
|
|
|
1175
1155
|
const COMPONENT_ID$4 = 'forms.range';
|
|
1176
|
-
const thumbStyles =
|
|
1177
|
-
let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1156
|
+
const thumbStyles = (styles, modifier = '') => {
|
|
1178
1157
|
return `
|
|
1179
1158
|
&${modifier}::-moz-range-thumb {
|
|
1180
1159
|
${styles}
|
|
@@ -1189,8 +1168,7 @@ const thumbStyles = function (styles) {
|
|
|
1189
1168
|
}
|
|
1190
1169
|
`;
|
|
1191
1170
|
};
|
|
1192
|
-
const trackStyles =
|
|
1193
|
-
let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1171
|
+
const trackStyles = (styles, modifier = '') => {
|
|
1194
1172
|
return `
|
|
1195
1173
|
&${modifier}::-moz-range-track {
|
|
1196
1174
|
${styles}
|
|
@@ -1205,8 +1183,7 @@ const trackStyles = function (styles) {
|
|
|
1205
1183
|
}
|
|
1206
1184
|
`;
|
|
1207
1185
|
};
|
|
1208
|
-
const trackLowerStyles =
|
|
1209
|
-
let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1186
|
+
const trackLowerStyles = (styles, modifier = '') => {
|
|
1210
1187
|
return `
|
|
1211
1188
|
&${modifier}::-moz-range-progress {
|
|
1212
1189
|
${styles}
|
|
@@ -1217,11 +1194,10 @@ const trackLowerStyles = function (styles) {
|
|
|
1217
1194
|
}
|
|
1218
1195
|
`;
|
|
1219
1196
|
};
|
|
1220
|
-
const colorStyles$2 =
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
} = _ref;
|
|
1197
|
+
const colorStyles$2 = ({
|
|
1198
|
+
theme,
|
|
1199
|
+
$hasLowerTrack = true
|
|
1200
|
+
}) => {
|
|
1225
1201
|
const options = {
|
|
1226
1202
|
theme,
|
|
1227
1203
|
variable: 'background.primaryEmphasis'
|
|
@@ -1313,10 +1289,9 @@ const colorStyles$2 = _ref => {
|
|
|
1313
1289
|
background-color: ${trackDisabledLowerBackgroundColor};
|
|
1314
1290
|
`, ':disabled'));
|
|
1315
1291
|
};
|
|
1316
|
-
const sizeStyles$4 =
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
} = _ref2;
|
|
1292
|
+
const sizeStyles$4 = ({
|
|
1293
|
+
theme
|
|
1294
|
+
}) => {
|
|
1320
1295
|
const thumbSize = `${theme.space.base * 5}px`;
|
|
1321
1296
|
const trackHeight = `${theme.space.base * 1.5}px`;
|
|
1322
1297
|
const trackBorderRadius = trackHeight;
|
|
@@ -1338,7 +1313,7 @@ const sizeStyles$4 = _ref2 => {
|
|
|
1338
1313
|
};
|
|
1339
1314
|
const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
1340
1315
|
'data-garden-id': COMPONENT_ID$4,
|
|
1341
|
-
'data-garden-version': '9.12.
|
|
1316
|
+
'data-garden-version': '9.12.5',
|
|
1342
1317
|
type: 'range',
|
|
1343
1318
|
style: {
|
|
1344
1319
|
backgroundSize: props.$hasLowerTrack ?? true ? props.$backgroundSize ?? '0%' : undefined
|
|
@@ -1364,10 +1339,9 @@ const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
|
1364
1339
|
`), colorStyles$2, reactTheming.componentStyles);
|
|
1365
1340
|
|
|
1366
1341
|
const COMPONENT_ID$3 = 'forms.tile';
|
|
1367
|
-
const colorStyles$1 =
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
} = _ref;
|
|
1342
|
+
const colorStyles$1 = ({
|
|
1343
|
+
theme
|
|
1344
|
+
}) => {
|
|
1371
1345
|
const offset100 = {
|
|
1372
1346
|
dark: {
|
|
1373
1347
|
offset: -100
|
|
@@ -1448,28 +1422,26 @@ const colorStyles$1 = _ref => {
|
|
|
1448
1422
|
}
|
|
1449
1423
|
}), activeBorderColor, activeBackgroundColor, checkedBackgroundColor, checkedForegroundColor, checkedHoverBackgroundColor, checkedActiveBackgroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
1450
1424
|
};
|
|
1451
|
-
const sizeStyles$3 =
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
} = _ref2;
|
|
1425
|
+
const sizeStyles$3 = ({
|
|
1426
|
+
theme
|
|
1427
|
+
}) => {
|
|
1455
1428
|
const border = theme.borders.sm;
|
|
1456
1429
|
const padding = `${theme.space.base * 5}px`;
|
|
1457
1430
|
return styled.css(["border:", ";padding:", ";min-width:132px;"], border, padding);
|
|
1458
1431
|
};
|
|
1459
1432
|
const StyledTile = styled__default.default.label.attrs({
|
|
1460
1433
|
'data-garden-id': COMPONENT_ID$3,
|
|
1461
|
-
'data-garden-version': '9.12.
|
|
1434
|
+
'data-garden-version': '9.12.5'
|
|
1462
1435
|
}).withConfig({
|
|
1463
1436
|
displayName: "StyledTile",
|
|
1464
1437
|
componentId: "sc-1jjvmxs-0"
|
|
1465
1438
|
})(["display:block;position:relative;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border-radius:", ";direction:", ";word-break:break-word;", ";", ";", ";"], props => props.theme.borderRadii.md, props => props.theme.rtl && 'rtl', sizeStyles$3, colorStyles$1, reactTheming.componentStyles);
|
|
1466
1439
|
|
|
1467
1440
|
const COMPONENT_ID$2 = 'forms.tile_description';
|
|
1468
|
-
const sizeStyles$2 =
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
} = _ref;
|
|
1441
|
+
const sizeStyles$2 = ({
|
|
1442
|
+
theme,
|
|
1443
|
+
$isCentered
|
|
1444
|
+
}) => {
|
|
1473
1445
|
const marginTop = `${theme.space.base}px`;
|
|
1474
1446
|
const marginHorizontal = $isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
|
|
1475
1447
|
const fontSize = theme.fontSizes.sm;
|
|
@@ -1478,17 +1450,16 @@ const sizeStyles$2 = _ref => {
|
|
|
1478
1450
|
};
|
|
1479
1451
|
const StyledTileDescription = styled__default.default.span.attrs({
|
|
1480
1452
|
'data-garden-id': COMPONENT_ID$2,
|
|
1481
|
-
'data-garden-version': '9.12.
|
|
1453
|
+
'data-garden-version': '9.12.5'
|
|
1482
1454
|
}).withConfig({
|
|
1483
1455
|
displayName: "StyledTileDescription",
|
|
1484
1456
|
componentId: "sc-xfuu7u-0"
|
|
1485
1457
|
})(["display:block;text-align:", ";", ";", ";"], props => props.$isCentered && 'center', sizeStyles$2, reactTheming.componentStyles);
|
|
1486
1458
|
|
|
1487
1459
|
const COMPONENT_ID$1 = 'forms.tile_icon';
|
|
1488
|
-
const colorStyles =
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
} = _ref;
|
|
1460
|
+
const colorStyles = ({
|
|
1461
|
+
theme
|
|
1462
|
+
}) => {
|
|
1492
1463
|
const options = {
|
|
1493
1464
|
theme,
|
|
1494
1465
|
variable: 'foreground.subtle'
|
|
@@ -1522,11 +1493,10 @@ const colorStyles = _ref => {
|
|
|
1522
1493
|
});
|
|
1523
1494
|
return styled.css(["color:", ";", ":hover &&{color:", ";}", ":active &&{color:", ";}", ":has(:checked) &&{color:", ";}", "[aria-disabled='true'] &&{color:", ";}"], color, StyledTile, hoverColor, StyledTile, activeColor, StyledTile, checkedColor, StyledTile, disabledColor);
|
|
1524
1495
|
};
|
|
1525
|
-
const sizeStyles$1 =
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
} = _ref2;
|
|
1496
|
+
const sizeStyles$1 = ({
|
|
1497
|
+
theme,
|
|
1498
|
+
$isCentered
|
|
1499
|
+
}) => {
|
|
1530
1500
|
const iconSize = polished.math(`${theme.iconSizes.md} * 2`);
|
|
1531
1501
|
let position;
|
|
1532
1502
|
let top;
|
|
@@ -1540,7 +1510,7 @@ const sizeStyles$1 = _ref2 => {
|
|
|
1540
1510
|
};
|
|
1541
1511
|
const StyledTileIcon = styled__default.default.span.attrs({
|
|
1542
1512
|
'data-garden-id': COMPONENT_ID$1,
|
|
1543
|
-
'data-garden-version': '9.12.
|
|
1513
|
+
'data-garden-version': '9.12.5'
|
|
1544
1514
|
}).withConfig({
|
|
1545
1515
|
displayName: "StyledTileIcon",
|
|
1546
1516
|
componentId: "sc-1wazhg4-0"
|
|
@@ -1552,11 +1522,10 @@ const StyledTileInput = styled__default.default.input.withConfig({
|
|
|
1552
1522
|
})(["position:absolute;top:0;left:0;opacity:0;z-index:1;margin:0;cursor:", ";width:100%;height:100%;"], props => props.disabled ? 'default' : 'pointer');
|
|
1553
1523
|
|
|
1554
1524
|
const COMPONENT_ID = 'forms.tile_label';
|
|
1555
|
-
const sizeStyles =
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
} = _ref;
|
|
1525
|
+
const sizeStyles = ({
|
|
1526
|
+
theme,
|
|
1527
|
+
$isCentered
|
|
1528
|
+
}) => {
|
|
1560
1529
|
const marginTop = $isCentered ? `${theme.space.base * 2}px` : 0;
|
|
1561
1530
|
const marginHorizontal = $isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
|
|
1562
1531
|
const fontSize = theme.fontSizes.md;
|
|
@@ -1565,7 +1534,7 @@ const sizeStyles = _ref => {
|
|
|
1565
1534
|
};
|
|
1566
1535
|
const StyledTileLabel = styled__default.default.span.attrs({
|
|
1567
1536
|
'data-garden-id': COMPONENT_ID,
|
|
1568
|
-
'data-garden-version': '9.12.
|
|
1537
|
+
'data-garden-version': '9.12.5'
|
|
1569
1538
|
}).withConfig({
|
|
1570
1539
|
displayName: "StyledTileLabel",
|
|
1571
1540
|
componentId: "sc-1mypv27-0"
|
|
@@ -1692,33 +1661,30 @@ var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
|
|
|
1692
1661
|
}))));
|
|
1693
1662
|
};
|
|
1694
1663
|
|
|
1695
|
-
const MessageIcon =
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
}[validation] : children);
|
|
1709
|
-
};
|
|
1664
|
+
const MessageIcon = ({
|
|
1665
|
+
validation,
|
|
1666
|
+
children,
|
|
1667
|
+
...props
|
|
1668
|
+
}) =>
|
|
1669
|
+
React__namespace.default.createElement(StyledMessageIcon, Object.assign({
|
|
1670
|
+
"aria-hidden": false,
|
|
1671
|
+
role: "img"
|
|
1672
|
+
}, props), validation ? {
|
|
1673
|
+
error: React__namespace.default.createElement(SvgAlertErrorStroke, null),
|
|
1674
|
+
success: React__namespace.default.createElement(SvgCheckCircleStroke$1, null),
|
|
1675
|
+
warning: React__namespace.default.createElement(SvgAlertWarningStroke, null)
|
|
1676
|
+
}[validation] : children);
|
|
1710
1677
|
MessageIcon.displayName = 'Field.MessageIcon';
|
|
1711
1678
|
MessageIcon.propTypes = {
|
|
1712
1679
|
validation: PropTypes__default.default.oneOf(VALIDATION)
|
|
1713
1680
|
};
|
|
1714
1681
|
|
|
1715
|
-
const Message = React__namespace.default.forwardRef((
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
} = _ref;
|
|
1682
|
+
const Message = React__namespace.default.forwardRef(({
|
|
1683
|
+
validation,
|
|
1684
|
+
validationLabel,
|
|
1685
|
+
children,
|
|
1686
|
+
...other
|
|
1687
|
+
}, ref) => {
|
|
1722
1688
|
const {
|
|
1723
1689
|
hasMessage,
|
|
1724
1690
|
setHasMessage,
|
|
@@ -1773,12 +1739,11 @@ const useFieldsetContext = () => {
|
|
|
1773
1739
|
return fieldsetContext;
|
|
1774
1740
|
};
|
|
1775
1741
|
|
|
1776
|
-
const Label$1 = React__namespace.default.forwardRef((
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
} = _ref;
|
|
1742
|
+
const Label$1 = React__namespace.default.forwardRef(({
|
|
1743
|
+
children,
|
|
1744
|
+
isRegular,
|
|
1745
|
+
...other
|
|
1746
|
+
}, ref) => {
|
|
1782
1747
|
const fieldContext = useFieldContext();
|
|
1783
1748
|
const fieldsetContext = useFieldsetContext();
|
|
1784
1749
|
const type = useInputContext();
|
|
@@ -1898,11 +1863,10 @@ const LegendComponent = React.forwardRef((props, ref) => {
|
|
|
1898
1863
|
LegendComponent.displayName = 'Fieldset.Legend';
|
|
1899
1864
|
const Legend = LegendComponent;
|
|
1900
1865
|
|
|
1901
|
-
const FieldsetComponent = React.forwardRef((
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
} = _ref;
|
|
1866
|
+
const FieldsetComponent = React.forwardRef(({
|
|
1867
|
+
isCompact,
|
|
1868
|
+
...other
|
|
1869
|
+
}, ref) => {
|
|
1906
1870
|
const fieldsetContext = React.useMemo(() => ({
|
|
1907
1871
|
isCompact
|
|
1908
1872
|
}), [isCompact]);
|
|
@@ -1920,13 +1884,12 @@ FieldsetComponent.propTypes = {
|
|
|
1920
1884
|
const Fieldset = FieldsetComponent;
|
|
1921
1885
|
Fieldset.Legend = Legend;
|
|
1922
1886
|
|
|
1923
|
-
const Checkbox = React__namespace.default.forwardRef((
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
} = _ref;
|
|
1887
|
+
const Checkbox = React__namespace.default.forwardRef(({
|
|
1888
|
+
indeterminate,
|
|
1889
|
+
children,
|
|
1890
|
+
isCompact,
|
|
1891
|
+
...other
|
|
1892
|
+
}, ref) => {
|
|
1930
1893
|
const fieldsetContext = useFieldsetContext();
|
|
1931
1894
|
const fieldContext = useFieldContext();
|
|
1932
1895
|
const inputRef = inputElement => {
|
|
@@ -1966,15 +1929,14 @@ const useInputGroupContext = () => {
|
|
|
1966
1929
|
return React.useContext(InputGroupContext);
|
|
1967
1930
|
};
|
|
1968
1931
|
|
|
1969
|
-
const Input = React__namespace.default.forwardRef((
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
} = _ref;
|
|
1932
|
+
const Input = React__namespace.default.forwardRef(({
|
|
1933
|
+
onSelect,
|
|
1934
|
+
isBare,
|
|
1935
|
+
isCompact,
|
|
1936
|
+
focusInset,
|
|
1937
|
+
validation,
|
|
1938
|
+
...other
|
|
1939
|
+
}, ref) => {
|
|
1978
1940
|
const fieldContext = useFieldContext();
|
|
1979
1941
|
const inputGroupContext = useInputGroupContext();
|
|
1980
1942
|
let combinedProps = other;
|
|
@@ -2002,12 +1964,11 @@ Input.propTypes = {
|
|
|
2002
1964
|
};
|
|
2003
1965
|
Input.displayName = 'Input';
|
|
2004
1966
|
|
|
2005
|
-
const Radio = React__namespace.default.forwardRef((
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
} = _ref;
|
|
1967
|
+
const Radio = React__namespace.default.forwardRef(({
|
|
1968
|
+
children,
|
|
1969
|
+
isCompact,
|
|
1970
|
+
...other
|
|
1971
|
+
}, ref) => {
|
|
2011
1972
|
const fieldsetContext = useFieldsetContext();
|
|
2012
1973
|
const fieldContext = useFieldContext();
|
|
2013
1974
|
let combinedProps = {
|
|
@@ -2027,14 +1988,13 @@ Radio.propTypes = {
|
|
|
2027
1988
|
isCompact: PropTypes__default.default.bool
|
|
2028
1989
|
};
|
|
2029
1990
|
|
|
2030
|
-
const Range = React__namespace.default.forwardRef((
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
} = _ref;
|
|
1991
|
+
const Range = React__namespace.default.forwardRef(({
|
|
1992
|
+
hasLowerTrack = true,
|
|
1993
|
+
min = 0,
|
|
1994
|
+
max = 100,
|
|
1995
|
+
step = 1,
|
|
1996
|
+
...other
|
|
1997
|
+
}, ref) => {
|
|
2038
1998
|
const [backgroundSize, setBackgroundSize] = React.useState('0');
|
|
2039
1999
|
const rangeRef = React.useRef();
|
|
2040
2000
|
const fieldContext = useFieldContext();
|
|
@@ -2076,20 +2036,19 @@ Range.displayName = 'Range';
|
|
|
2076
2036
|
const parseStyleValue = value => {
|
|
2077
2037
|
return parseInt(value, 10) || 0;
|
|
2078
2038
|
};
|
|
2079
|
-
const Textarea = React__namespace.default.forwardRef((
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
} = _ref;
|
|
2039
|
+
const Textarea = React__namespace.default.forwardRef(({
|
|
2040
|
+
isCompact,
|
|
2041
|
+
isBare,
|
|
2042
|
+
focusInset,
|
|
2043
|
+
isResizable,
|
|
2044
|
+
minRows,
|
|
2045
|
+
maxRows,
|
|
2046
|
+
style,
|
|
2047
|
+
validation,
|
|
2048
|
+
onChange,
|
|
2049
|
+
onSelect,
|
|
2050
|
+
...other
|
|
2051
|
+
}, ref) => {
|
|
2093
2052
|
const fieldContext = useFieldContext();
|
|
2094
2053
|
const textAreaRef = React.useRef();
|
|
2095
2054
|
const shadowTextAreaRef = React.useRef(null);
|
|
@@ -2195,12 +2154,11 @@ Textarea.propTypes = {
|
|
|
2195
2154
|
};
|
|
2196
2155
|
Textarea.displayName = 'Textarea';
|
|
2197
2156
|
|
|
2198
|
-
const Toggle = React__namespace.default.forwardRef((
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
} = _ref;
|
|
2157
|
+
const Toggle = React__namespace.default.forwardRef(({
|
|
2158
|
+
children,
|
|
2159
|
+
isCompact,
|
|
2160
|
+
...other
|
|
2161
|
+
}, ref) => {
|
|
2204
2162
|
const fieldsetContext = useFieldsetContext();
|
|
2205
2163
|
const fieldContext = useFieldContext();
|
|
2206
2164
|
let combinedProps = {
|
|
@@ -2237,59 +2195,52 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
|
2237
2195
|
})));
|
|
2238
2196
|
};
|
|
2239
2197
|
|
|
2240
|
-
const StartIconComponent =
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
$isRotated: isRotated
|
|
2254
|
-
}, props));
|
|
2255
|
-
};
|
|
2198
|
+
const StartIconComponent = ({
|
|
2199
|
+
isDisabled,
|
|
2200
|
+
isFocused,
|
|
2201
|
+
isHovered,
|
|
2202
|
+
isRotated,
|
|
2203
|
+
...props
|
|
2204
|
+
}) => React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
|
|
2205
|
+
$position: "start",
|
|
2206
|
+
$isDisabled: isDisabled,
|
|
2207
|
+
$isFocused: isFocused,
|
|
2208
|
+
$isHovered: isHovered,
|
|
2209
|
+
$isRotated: isRotated
|
|
2210
|
+
}, props));
|
|
2256
2211
|
StartIconComponent.displayName = 'FauxInput.StartIcon';
|
|
2257
2212
|
const StartIcon = StartIconComponent;
|
|
2258
2213
|
|
|
2259
|
-
const EndIconComponent =
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
$isRotated: isRotated
|
|
2273
|
-
}, props));
|
|
2274
|
-
};
|
|
2214
|
+
const EndIconComponent = ({
|
|
2215
|
+
isDisabled,
|
|
2216
|
+
isFocused,
|
|
2217
|
+
isHovered,
|
|
2218
|
+
isRotated,
|
|
2219
|
+
...props
|
|
2220
|
+
}) => React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
|
|
2221
|
+
$position: "end",
|
|
2222
|
+
$isDisabled: isDisabled,
|
|
2223
|
+
$isFocused: isFocused,
|
|
2224
|
+
$isHovered: isHovered,
|
|
2225
|
+
$isRotated: isRotated
|
|
2226
|
+
}, props));
|
|
2275
2227
|
EndIconComponent.displayName = 'FauxInput.EndIcon';
|
|
2276
2228
|
const EndIcon = EndIconComponent;
|
|
2277
2229
|
|
|
2278
|
-
const FauxInputComponent = React.forwardRef((
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
} = _ref;
|
|
2230
|
+
const FauxInputComponent = React.forwardRef(({
|
|
2231
|
+
disabled,
|
|
2232
|
+
focusInset,
|
|
2233
|
+
isBare,
|
|
2234
|
+
isCompact,
|
|
2235
|
+
isFocused: controlledIsFocused,
|
|
2236
|
+
isHovered,
|
|
2237
|
+
onBlur,
|
|
2238
|
+
onFocus,
|
|
2239
|
+
readOnly,
|
|
2240
|
+
validation,
|
|
2241
|
+
mediaLayout,
|
|
2242
|
+
...other
|
|
2243
|
+
}, ref) => {
|
|
2293
2244
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
2294
2245
|
const onFocusHandler = containerUtilities.composeEventHandlers(onFocus, () => {
|
|
2295
2246
|
setIsFocused(true);
|
|
@@ -2329,15 +2280,14 @@ const FauxInput = FauxInputComponent;
|
|
|
2329
2280
|
FauxInput.EndIcon = EndIcon;
|
|
2330
2281
|
FauxInput.StartIcon = StartIcon;
|
|
2331
2282
|
|
|
2332
|
-
const Select = React__namespace.default.forwardRef((
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
} = _ref;
|
|
2283
|
+
const Select = React__namespace.default.forwardRef(({
|
|
2284
|
+
disabled,
|
|
2285
|
+
isCompact,
|
|
2286
|
+
validation,
|
|
2287
|
+
focusInset,
|
|
2288
|
+
isBare,
|
|
2289
|
+
...props
|
|
2290
|
+
}, ref) => {
|
|
2341
2291
|
const fieldContext = useFieldContext();
|
|
2342
2292
|
let combinedProps = {
|
|
2343
2293
|
$focusInset: focusInset,
|
|
@@ -2374,13 +2324,12 @@ const useTilesContext = () => {
|
|
|
2374
2324
|
return React.useContext(TilesContext);
|
|
2375
2325
|
};
|
|
2376
2326
|
|
|
2377
|
-
const TileComponent = React__namespace.default.forwardRef((
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
} = _ref;
|
|
2327
|
+
const TileComponent = React__namespace.default.forwardRef(({
|
|
2328
|
+
children,
|
|
2329
|
+
value,
|
|
2330
|
+
disabled,
|
|
2331
|
+
...props
|
|
2332
|
+
}, ref) => {
|
|
2384
2333
|
const tilesContext = useTilesContext();
|
|
2385
2334
|
const inputRef = React.useRef(null);
|
|
2386
2335
|
let inputProps;
|
|
@@ -2446,19 +2395,15 @@ const LabelComponent = React.forwardRef((props, forwardedRef) => {
|
|
|
2446
2395
|
LabelComponent.displayName = 'Tiles.Label';
|
|
2447
2396
|
const Label = LabelComponent;
|
|
2448
2397
|
|
|
2449
|
-
const TilesComponent = React.forwardRef((
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
} = _ref;
|
|
2398
|
+
const TilesComponent = React.forwardRef(({
|
|
2399
|
+
onChange,
|
|
2400
|
+
value: controlledValue,
|
|
2401
|
+
name,
|
|
2402
|
+
isCentered = true,
|
|
2403
|
+
...props
|
|
2404
|
+
}, ref) => {
|
|
2457
2405
|
const [value, setValue] = React.useState(controlledValue);
|
|
2458
|
-
const handleOnChange = React.useCallback(
|
|
2459
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2460
|
-
args[_key] = arguments[_key];
|
|
2461
|
-
}
|
|
2406
|
+
const handleOnChange = React.useCallback((...args) => {
|
|
2462
2407
|
setValue(args[0].target.value);
|
|
2463
2408
|
if (onChange) {
|
|
2464
2409
|
onChange(...args);
|
|
@@ -2491,11 +2436,10 @@ Tiles.Icon = Icon;
|
|
|
2491
2436
|
Tiles.Label = Label;
|
|
2492
2437
|
Tiles.Tile = Tile;
|
|
2493
2438
|
|
|
2494
|
-
const InputGroup = React__namespace.default.forwardRef((
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
} = _ref;
|
|
2439
|
+
const InputGroup = React__namespace.default.forwardRef(({
|
|
2440
|
+
isCompact,
|
|
2441
|
+
...other
|
|
2442
|
+
}, ref) => {
|
|
2499
2443
|
const contextValue = React.useMemo(() => ({
|
|
2500
2444
|
isCompact
|
|
2501
2445
|
}), [isCompact]);
|
|
@@ -2511,13 +2455,12 @@ InputGroup.propTypes = {
|
|
|
2511
2455
|
isCompact: PropTypes__default.default.bool
|
|
2512
2456
|
};
|
|
2513
2457
|
|
|
2514
|
-
const FileUpload = React__namespace.default.forwardRef((
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
} = _ref;
|
|
2458
|
+
const FileUpload = React__namespace.default.forwardRef(({
|
|
2459
|
+
disabled,
|
|
2460
|
+
isCompact,
|
|
2461
|
+
isDragging,
|
|
2462
|
+
...other
|
|
2463
|
+
}, ref) => {
|
|
2521
2464
|
return (
|
|
2522
2465
|
React__namespace.default.createElement(StyledFileUpload, Object.assign({
|
|
2523
2466
|
ref: ref,
|
|
@@ -2536,25 +2479,19 @@ FileUpload.propTypes = {
|
|
|
2536
2479
|
};
|
|
2537
2480
|
FileUpload.displayName = 'FileUpload';
|
|
2538
2481
|
|
|
2539
|
-
const ItemComponent = React.forwardRef((
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
ref: ref
|
|
2545
|
-
}));
|
|
2546
|
-
});
|
|
2482
|
+
const ItemComponent = React.forwardRef(({
|
|
2483
|
+
...props
|
|
2484
|
+
}, ref) => React__namespace.default.createElement(StyledFileListItem, Object.assign({}, props, {
|
|
2485
|
+
ref: ref
|
|
2486
|
+
})));
|
|
2547
2487
|
ItemComponent.displayName = 'FileList.Item';
|
|
2548
2488
|
const Item = ItemComponent;
|
|
2549
2489
|
|
|
2550
|
-
const FileListComponent = React.forwardRef((
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
ref: ref
|
|
2556
|
-
}));
|
|
2557
|
-
});
|
|
2490
|
+
const FileListComponent = React.forwardRef(({
|
|
2491
|
+
...props
|
|
2492
|
+
}, ref) => React__namespace.default.createElement(StyledFileList, Object.assign({}, props, {
|
|
2493
|
+
ref: ref
|
|
2494
|
+
})));
|
|
2558
2495
|
FileListComponent.displayName = 'FileList';
|
|
2559
2496
|
const FileList = FileListComponent;
|
|
2560
2497
|
FileList.Item = Item;
|
|
@@ -3026,15 +2963,14 @@ const fileIconsCompact = {
|
|
|
3026
2963
|
error: React__namespace.default.createElement(SvgFileErrorStroke$1, null)
|
|
3027
2964
|
};
|
|
3028
2965
|
|
|
3029
|
-
const FileComponent = React.forwardRef((
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
} = _ref;
|
|
2966
|
+
const FileComponent = React.forwardRef(({
|
|
2967
|
+
children,
|
|
2968
|
+
type,
|
|
2969
|
+
isCompact,
|
|
2970
|
+
focusInset,
|
|
2971
|
+
validation,
|
|
2972
|
+
...props
|
|
2973
|
+
}, ref) => {
|
|
3038
2974
|
const fileContextValue = React.useMemo(() => ({
|
|
3039
2975
|
isCompact
|
|
3040
2976
|
}), [isCompact]);
|
|
@@ -3062,21 +2998,20 @@ const File = FileComponent;
|
|
|
3062
2998
|
File.Close = Close;
|
|
3063
2999
|
File.Delete = Delete;
|
|
3064
3000
|
|
|
3065
|
-
const MediaInput = React__namespace.default.forwardRef((
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
} = _ref;
|
|
3001
|
+
const MediaInput = React__namespace.default.forwardRef(({
|
|
3002
|
+
start,
|
|
3003
|
+
end,
|
|
3004
|
+
disabled,
|
|
3005
|
+
isCompact,
|
|
3006
|
+
isBare,
|
|
3007
|
+
focusInset,
|
|
3008
|
+
readOnly,
|
|
3009
|
+
validation,
|
|
3010
|
+
wrapperProps = {},
|
|
3011
|
+
wrapperRef,
|
|
3012
|
+
onSelect,
|
|
3013
|
+
...props
|
|
3014
|
+
}, ref) => {
|
|
3080
3015
|
const fieldContext = useFieldContext();
|
|
3081
3016
|
const inputRef = React.useRef();
|
|
3082
3017
|
const [isFocused, setIsFocused] = React.useState(false);
|