@zendeskgarden/react-forms 8.74.2 → 8.75.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
CHANGED
|
@@ -66,7 +66,7 @@ const useFieldContext = () => {
|
|
|
66
66
|
const COMPONENT_ID$K = 'forms.field';
|
|
67
67
|
const StyledField = styled__default.default.div.attrs({
|
|
68
68
|
'data-garden-id': COMPONENT_ID$K,
|
|
69
|
-
'data-garden-version': '8.
|
|
69
|
+
'data-garden-version': '8.75.0'
|
|
70
70
|
}).withConfig({
|
|
71
71
|
displayName: "StyledField",
|
|
72
72
|
componentId: "sc-12gzfsu-0"
|
|
@@ -79,7 +79,7 @@ const COMPONENT_ID$J = 'forms.fieldset';
|
|
|
79
79
|
const StyledFieldset = styled__default.default(StyledField).attrs({
|
|
80
80
|
as: 'fieldset',
|
|
81
81
|
'data-garden-id': COMPONENT_ID$J,
|
|
82
|
-
'data-garden-version': '8.
|
|
82
|
+
'data-garden-version': '8.75.0'
|
|
83
83
|
}).withConfig({
|
|
84
84
|
displayName: "StyledFieldset",
|
|
85
85
|
componentId: "sc-1vr4mxv-0"
|
|
@@ -91,11 +91,11 @@ StyledFieldset.defaultProps = {
|
|
|
91
91
|
const COMPONENT_ID$I = 'forms.input_label';
|
|
92
92
|
const StyledLabel = styled__default.default.label.attrs(props => ({
|
|
93
93
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$I,
|
|
94
|
-
'data-garden-version': props['data-garden-version'] || '8.
|
|
94
|
+
'data-garden-version': props['data-garden-version'] || '8.75.0'
|
|
95
95
|
})).withConfig({
|
|
96
96
|
displayName: "StyledLabel",
|
|
97
97
|
componentId: "sc-2utmsz-0"
|
|
98
|
-
})(["direction:", ";vertical-align:middle;line-height:", ";color:", ";font-size:", ";font-weight:", ";&[hidden]{display:", ";vertical-align:", ";text-indent:", ";font-size:", ";", ";}", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme
|
|
98
|
+
})(["direction:", ";vertical-align:middle;line-height:", ";color:", ";font-size:", ";font-weight:", ";&[hidden]{display:", ";vertical-align:", ";text-indent:", ";font-size:", ";", ";}", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => props.isRegular ? props.theme.fontWeights.regular : props.theme.fontWeights.semibold, props => props.isRadio ? 'inline-block' : 'inline', props => props.isRadio && 'top', props => props.isRadio && '-100%', props => props.isRadio && '0', props => !props.isRadio && polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$I, props));
|
|
99
99
|
StyledLabel.defaultProps = {
|
|
100
100
|
theme: reactTheming.DEFAULT_THEME
|
|
101
101
|
};
|
|
@@ -104,7 +104,7 @@ const COMPONENT_ID$H = 'forms.fieldset_legend';
|
|
|
104
104
|
const StyledLegend = styled__default.default(StyledLabel).attrs({
|
|
105
105
|
as: 'legend',
|
|
106
106
|
'data-garden-id': COMPONENT_ID$H,
|
|
107
|
-
'data-garden-version': '8.
|
|
107
|
+
'data-garden-version': '8.75.0'
|
|
108
108
|
}).withConfig({
|
|
109
109
|
displayName: "StyledLegend",
|
|
110
110
|
componentId: "sc-6s0zwq-0"
|
|
@@ -116,11 +116,11 @@ StyledLegend.defaultProps = {
|
|
|
116
116
|
const COMPONENT_ID$G = 'forms.input_hint';
|
|
117
117
|
const StyledHint = styled__default.default.div.attrs(props => ({
|
|
118
118
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$G,
|
|
119
|
-
'data-garden-version': props['data-garden-version'] || '8.
|
|
119
|
+
'data-garden-version': props['data-garden-version'] || '8.75.0'
|
|
120
120
|
})).withConfig({
|
|
121
121
|
displayName: "StyledHint",
|
|
122
122
|
componentId: "sc-17c2wu8-0"
|
|
123
|
-
})(["direction:", ";display:block;vertical-align:middle;line-height:", ";color:", ";font-size:", ";", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.
|
|
123
|
+
})(["direction:", ";display:block;vertical-align:middle;line-height:", ";color:", ";font-size:", ";", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$G, props));
|
|
124
124
|
StyledHint.defaultProps = {
|
|
125
125
|
theme: reactTheming.DEFAULT_THEME
|
|
126
126
|
};
|
|
@@ -221,7 +221,7 @@ const MessageIcon = _ref => {
|
|
|
221
221
|
const COMPONENT_ID$F = 'forms.input_message_icon';
|
|
222
222
|
const StyledMessageIcon = styled__default.default(MessageIcon).attrs({
|
|
223
223
|
'data-garden-id': COMPONENT_ID$F,
|
|
224
|
-
'data-garden-version': '8.
|
|
224
|
+
'data-garden-version': '8.75.0',
|
|
225
225
|
'aria-hidden': null
|
|
226
226
|
}).withConfig({
|
|
227
227
|
displayName: "StyledMessageIcon",
|
|
@@ -236,20 +236,20 @@ const validationStyles = props => {
|
|
|
236
236
|
const padding = polished.math(`${props.theme.space.base} * 2px + ${props.theme.iconSizes.md}`);
|
|
237
237
|
let color;
|
|
238
238
|
if (props.validation === 'error') {
|
|
239
|
-
color = reactTheming.
|
|
239
|
+
color = reactTheming.getColorV8('dangerHue', 600, props.theme);
|
|
240
240
|
} else if (props.validation === 'success') {
|
|
241
|
-
color = reactTheming.
|
|
241
|
+
color = reactTheming.getColorV8('successHue', 600, props.theme);
|
|
242
242
|
} else if (props.validation === 'warning') {
|
|
243
|
-
color = reactTheming.
|
|
243
|
+
color = reactTheming.getColorV8('warningHue', 700, props.theme);
|
|
244
244
|
} else {
|
|
245
|
-
color = reactTheming.
|
|
245
|
+
color = reactTheming.getColorV8('neutralHue', 700, props.theme);
|
|
246
246
|
}
|
|
247
247
|
return styled.css(["padding-", ":", ";color:", ";"], rtl ? 'right' : 'left', props.validation && padding, color);
|
|
248
248
|
};
|
|
249
249
|
const COMPONENT_ID$E = 'forms.input_message';
|
|
250
250
|
const StyledMessage = styled__default.default.div.attrs(props => ({
|
|
251
251
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$E,
|
|
252
|
-
'data-garden-version': props['data-garden-version'] || '8.
|
|
252
|
+
'data-garden-version': props['data-garden-version'] || '8.75.0'
|
|
253
253
|
})).withConfig({
|
|
254
254
|
displayName: "StyledMessage",
|
|
255
255
|
componentId: "sc-30hgg7-0"
|
|
@@ -265,7 +265,7 @@ const isInvalid = validation => {
|
|
|
265
265
|
const colorStyles$c = props => {
|
|
266
266
|
const HUE = 'primaryHue';
|
|
267
267
|
const SHADE = 600;
|
|
268
|
-
const placeholderColor = reactTheming.
|
|
268
|
+
const placeholderColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
|
|
269
269
|
let borderColor;
|
|
270
270
|
let hoverBorderColor;
|
|
271
271
|
let focusBorderColor;
|
|
@@ -281,20 +281,20 @@ const colorStyles$c = props => {
|
|
|
281
281
|
} else if (props.validation === 'error') {
|
|
282
282
|
hue = 'dangerHue';
|
|
283
283
|
}
|
|
284
|
-
borderColor = reactTheming.
|
|
284
|
+
borderColor = reactTheming.getColorV8(hue, SHADE, props.theme);
|
|
285
285
|
hoverBorderColor = borderColor;
|
|
286
286
|
focusBorderColor = borderColor;
|
|
287
287
|
focusRingHue = hue;
|
|
288
288
|
} else {
|
|
289
|
-
borderColor = reactTheming.
|
|
290
|
-
hoverBorderColor = reactTheming.
|
|
289
|
+
borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
290
|
+
hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
291
291
|
focusBorderColor = hoverBorderColor;
|
|
292
292
|
}
|
|
293
|
-
const readOnlyBackgroundColor = reactTheming.
|
|
294
|
-
const readOnlyBorderColor = reactTheming.
|
|
293
|
+
const readOnlyBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 500, props.theme);
|
|
294
|
+
const readOnlyBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
295
295
|
const disabledBackgroundColor = readOnlyBackgroundColor;
|
|
296
|
-
const disabledBorderColor = reactTheming.
|
|
297
|
-
const disabledForegroundColor = reactTheming.
|
|
296
|
+
const disabledBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
297
|
+
const disabledForegroundColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
|
|
298
298
|
let controlledBorderColor = borderColor;
|
|
299
299
|
if (props.isFocused) {
|
|
300
300
|
controlledBorderColor = focusBorderColor;
|
|
@@ -302,7 +302,7 @@ const colorStyles$c = props => {
|
|
|
302
302
|
if (props.isHovered) {
|
|
303
303
|
controlledBorderColor = hoverBorderColor;
|
|
304
304
|
}
|
|
305
|
-
return styled.css(["border-color:", ";background-color:", ";color:", ";&::placeholder{color:", ";}&[readonly],&[aria-readonly='true']{border-color:", ";background-color:", ";}&:hover{border-color:", ";}", " &:disabled,&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], controlledBorderColor, props.isBare ? 'transparent' :
|
|
305
|
+
return styled.css(["border-color:", ";background-color:", ";color:", ";&::placeholder{color:", ";}&[readonly],&[aria-readonly='true']{border-color:", ";background-color:", ";}&:hover{border-color:", ";}", " &:disabled,&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], controlledBorderColor, props.isBare ? 'transparent' : reactTheming.getColorV8('background', 600 , props.theme), reactTheming.getColorV8('foreground', 600 , props.theme), placeholderColor, readOnlyBorderColor, !props.isBare && readOnlyBackgroundColor, hoverBorderColor, reactTheming.focusStyles({
|
|
306
306
|
theme: props.theme,
|
|
307
307
|
inset: props.focusInset,
|
|
308
308
|
condition: !props.isBare,
|
|
@@ -339,7 +339,7 @@ const sizeStyles$f = props => {
|
|
|
339
339
|
};
|
|
340
340
|
const StyledTextInput = styled__default.default.input.attrs(props => ({
|
|
341
341
|
'data-garden-id': COMPONENT_ID$D,
|
|
342
|
-
'data-garden-version': '8.
|
|
342
|
+
'data-garden-version': '8.75.0',
|
|
343
343
|
'aria-invalid': isInvalid(props.validation)
|
|
344
344
|
})).withConfig({
|
|
345
345
|
displayName: "StyledTextInput",
|
|
@@ -362,7 +362,7 @@ const hiddenStyles = `
|
|
|
362
362
|
const StyledTextarea = styled__default.default(StyledTextInput).attrs({
|
|
363
363
|
as: 'textarea',
|
|
364
364
|
'data-garden-id': COMPONENT_ID$C,
|
|
365
|
-
'data-garden-version': '8.
|
|
365
|
+
'data-garden-version': '8.75.0'
|
|
366
366
|
}).withConfig({
|
|
367
367
|
displayName: "StyledTextarea",
|
|
368
368
|
componentId: "sc-wxschl-0"
|
|
@@ -379,7 +379,7 @@ const colorStyles$b = props => {
|
|
|
379
379
|
} else if (props.isHovered || props.isFocused) {
|
|
380
380
|
shade = 700;
|
|
381
381
|
}
|
|
382
|
-
return styled.css(["color:", ";"], reactTheming.
|
|
382
|
+
return styled.css(["color:", ";"], reactTheming.getColorV8('neutralHue', shade, props.theme));
|
|
383
383
|
};
|
|
384
384
|
const sizeStyles$e = props => {
|
|
385
385
|
const size = props.theme.iconSizes.md;
|
|
@@ -408,7 +408,7 @@ _ref => {
|
|
|
408
408
|
return React__namespace.default.cloneElement(React.Children.only(children), props);
|
|
409
409
|
}).attrs({
|
|
410
410
|
'data-garden-id': COMPONENT_ID$B,
|
|
411
|
-
'data-garden-version': '8.
|
|
411
|
+
'data-garden-version': '8.75.0'
|
|
412
412
|
}).withConfig({
|
|
413
413
|
displayName: "StyledTextMediaFigure",
|
|
414
414
|
componentId: "sc-1qepknj-0"
|
|
@@ -446,7 +446,7 @@ const colorStyles$a = props => {
|
|
|
446
446
|
shade: validation === 'warning' ? 700 : 600,
|
|
447
447
|
selector: isFocused ? '&' : '&:focus-within',
|
|
448
448
|
styles: {
|
|
449
|
-
borderColor: reactTheming.
|
|
449
|
+
borderColor: reactTheming.getColorV8(getValidationHue(validation), 600, theme)
|
|
450
450
|
}
|
|
451
451
|
}));
|
|
452
452
|
};
|
|
@@ -455,7 +455,7 @@ const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props
|
|
|
455
455
|
'aria-readonly': props.isReadOnly,
|
|
456
456
|
'aria-disabled': props.isDisabled,
|
|
457
457
|
'data-garden-id': COMPONENT_ID$A,
|
|
458
|
-
'data-garden-version': '8.
|
|
458
|
+
'data-garden-version': '8.75.0'
|
|
459
459
|
})).withConfig({
|
|
460
460
|
displayName: "StyledTextFauxInput",
|
|
461
461
|
componentId: "sc-yqw7j9-0"
|
|
@@ -467,7 +467,7 @@ StyledTextFauxInput.defaultProps = {
|
|
|
467
467
|
const COMPONENT_ID$z = 'forms.media_input';
|
|
468
468
|
const StyledTextMediaInput = styled__default.default(StyledTextInput).attrs({
|
|
469
469
|
'data-garden-id': COMPONENT_ID$z,
|
|
470
|
-
'data-garden-version': '8.
|
|
470
|
+
'data-garden-version': '8.75.0',
|
|
471
471
|
isBare: true
|
|
472
472
|
}).withConfig({
|
|
473
473
|
displayName: "StyledTextMediaInput",
|
|
@@ -489,7 +489,7 @@ const itemStyles = props => {
|
|
|
489
489
|
};
|
|
490
490
|
const StyledInputGroup = styled__default.default.div.attrs({
|
|
491
491
|
'data-garden-id': COMPONENT_ID$y,
|
|
492
|
-
'data-garden-version': '8.
|
|
492
|
+
'data-garden-version': '8.75.0'
|
|
493
493
|
}).withConfig({
|
|
494
494
|
displayName: "StyledInputGroup",
|
|
495
495
|
componentId: "sc-kjh1f0-0"
|
|
@@ -507,7 +507,7 @@ const sizeStyles$d = props => {
|
|
|
507
507
|
};
|
|
508
508
|
const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
|
|
509
509
|
'data-garden-id': COMPONENT_ID$x,
|
|
510
|
-
'data-garden-version': '8.
|
|
510
|
+
'data-garden-version': '8.75.0',
|
|
511
511
|
isRadio: true
|
|
512
512
|
}).withConfig({
|
|
513
513
|
displayName: "StyledRadioLabel",
|
|
@@ -520,7 +520,7 @@ StyledRadioLabel.defaultProps = {
|
|
|
520
520
|
const COMPONENT_ID$w = 'forms.checkbox_label';
|
|
521
521
|
const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
|
|
522
522
|
'data-garden-id': COMPONENT_ID$w,
|
|
523
|
-
'data-garden-version': '8.
|
|
523
|
+
'data-garden-version': '8.75.0'
|
|
524
524
|
}).withConfig({
|
|
525
525
|
displayName: "StyledCheckLabel",
|
|
526
526
|
componentId: "sc-x7nr1-0"
|
|
@@ -532,7 +532,7 @@ StyledCheckLabel.defaultProps = {
|
|
|
532
532
|
const COMPONENT_ID$v = 'forms.radio_hint';
|
|
533
533
|
const StyledRadioHint = styled__default.default(StyledHint).attrs({
|
|
534
534
|
'data-garden-id': COMPONENT_ID$v,
|
|
535
|
-
'data-garden-version': '8.
|
|
535
|
+
'data-garden-version': '8.75.0'
|
|
536
536
|
}).withConfig({
|
|
537
537
|
displayName: "StyledRadioHint",
|
|
538
538
|
componentId: "sc-eo8twg-0"
|
|
@@ -544,7 +544,7 @@ StyledRadioHint.defaultProps = {
|
|
|
544
544
|
const COMPONENT_ID$u = 'forms.checkbox_hint';
|
|
545
545
|
const StyledCheckHint = styled__default.default(StyledRadioHint).attrs({
|
|
546
546
|
'data-garden-id': COMPONENT_ID$u,
|
|
547
|
-
'data-garden-version': '8.
|
|
547
|
+
'data-garden-version': '8.75.0'
|
|
548
548
|
}).withConfig({
|
|
549
549
|
displayName: "StyledCheckHint",
|
|
550
550
|
componentId: "sc-1kl8e8c-0"
|
|
@@ -556,21 +556,21 @@ StyledCheckHint.defaultProps = {
|
|
|
556
556
|
const COMPONENT_ID$t = 'forms.radio';
|
|
557
557
|
const colorStyles$9 = props => {
|
|
558
558
|
const SHADE = 600;
|
|
559
|
-
const borderColor = reactTheming.
|
|
560
|
-
const backgroundColor = props.theme
|
|
559
|
+
const borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
560
|
+
const backgroundColor = reactTheming.getColorV8('background', 600 , props.theme);
|
|
561
561
|
const iconColor = backgroundColor;
|
|
562
|
-
const hoverBackgroundColor = reactTheming.
|
|
563
|
-
const hoverBorderColor = reactTheming.
|
|
562
|
+
const hoverBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.08);
|
|
563
|
+
const hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
564
564
|
const focusBorderColor = hoverBorderColor;
|
|
565
|
-
const activeBackgroundColor = reactTheming.
|
|
565
|
+
const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.2);
|
|
566
566
|
const activeBorderColor = focusBorderColor;
|
|
567
567
|
const checkedBorderColor = focusBorderColor;
|
|
568
568
|
const checkedBackgroundColor = checkedBorderColor;
|
|
569
|
-
const checkedHoverBorderColor = reactTheming.
|
|
569
|
+
const checkedHoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
570
570
|
const checkedHoverBackgroundColor = checkedHoverBorderColor;
|
|
571
|
-
const checkedActiveBorderColor = reactTheming.
|
|
571
|
+
const checkedActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 200, props.theme);
|
|
572
572
|
const checkedActiveBackgroundColor = checkedActiveBorderColor;
|
|
573
|
-
const disabledBackgroundColor = reactTheming.
|
|
573
|
+
const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
574
574
|
return styled.css(["& ~ ", "::before{border-color:", ";background-color:", ";}& ~ ", " > svg{color:", ";}& ~ ", ":hover::before{border-color:", ";background-color:", ";}", " & ~ ", ":active::before{border-color:", ";background-color:", ";}&:checked ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:checked ~ ", ":hover::before{border-color:", ";background-color:", ";}&:enabled:checked ~ ", ":active::before{border-color:", ";background-color:", ";}&:disabled ~ ", "::before{border-color:transparent;background-color:", ";}"], StyledRadioLabel, borderColor, backgroundColor, StyledRadioLabel, iconColor, StyledRadioLabel, hoverBorderColor, hoverBackgroundColor, reactTheming.focusStyles({
|
|
575
575
|
theme: props.theme,
|
|
576
576
|
styles: {
|
|
@@ -591,7 +591,7 @@ const sizeStyles$c = props => {
|
|
|
591
591
|
};
|
|
592
592
|
const StyledRadioInput = styled__default.default.input.attrs({
|
|
593
593
|
'data-garden-id': COMPONENT_ID$t,
|
|
594
|
-
'data-garden-version': '8.
|
|
594
|
+
'data-garden-version': '8.75.0',
|
|
595
595
|
type: 'radio'
|
|
596
596
|
}).withConfig({
|
|
597
597
|
displayName: "StyledRadioInput",
|
|
@@ -604,16 +604,16 @@ StyledRadioInput.defaultProps = {
|
|
|
604
604
|
const COMPONENT_ID$s = 'forms.checkbox';
|
|
605
605
|
const colorStyles$8 = props => {
|
|
606
606
|
const SHADE = 600;
|
|
607
|
-
const indeterminateBorderColor = reactTheming.
|
|
607
|
+
const indeterminateBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
608
608
|
const indeterminateBackgroundColor = indeterminateBorderColor;
|
|
609
|
-
const indeterminateActiveBorderColor = reactTheming.
|
|
609
|
+
const indeterminateActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
610
610
|
const indeterminateActiveBackgroundColor = indeterminateActiveBorderColor;
|
|
611
|
-
const indeterminateDisabledBackgroundColor = reactTheming.
|
|
611
|
+
const indeterminateDisabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
612
612
|
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);
|
|
613
613
|
};
|
|
614
614
|
const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
|
|
615
615
|
'data-garden-id': COMPONENT_ID$s,
|
|
616
|
-
'data-garden-version': '8.
|
|
616
|
+
'data-garden-version': '8.75.0',
|
|
617
617
|
type: 'checkbox'
|
|
618
618
|
}).withConfig({
|
|
619
619
|
displayName: "StyledCheckInput",
|
|
@@ -626,7 +626,7 @@ StyledCheckInput.defaultProps = {
|
|
|
626
626
|
const COMPONENT_ID$r = 'forms.radio_message';
|
|
627
627
|
const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
|
|
628
628
|
'data-garden-id': COMPONENT_ID$r,
|
|
629
|
-
'data-garden-version': '8.
|
|
629
|
+
'data-garden-version': '8.75.0'
|
|
630
630
|
}).withConfig({
|
|
631
631
|
displayName: "StyledRadioMessage",
|
|
632
632
|
componentId: "sc-1pmi0q8-0"
|
|
@@ -638,7 +638,7 @@ StyledRadioMessage.defaultProps = {
|
|
|
638
638
|
const COMPONENT_ID$q = 'forms.checkbox_message';
|
|
639
639
|
const StyledCheckMessage = styled__default.default(StyledRadioMessage).attrs({
|
|
640
640
|
'data-garden-id': COMPONENT_ID$q,
|
|
641
|
-
'data-garden-version': '8.
|
|
641
|
+
'data-garden-version': '8.75.0'
|
|
642
642
|
}).withConfig({
|
|
643
643
|
displayName: "StyledCheckMessage",
|
|
644
644
|
componentId: "sc-s4p6kd-0"
|
|
@@ -670,7 +670,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
|
670
670
|
const COMPONENT_ID$p = 'forms.check_svg';
|
|
671
671
|
const StyledCheckSvg = styled__default.default(SvgCheckSmFill).attrs({
|
|
672
672
|
'data-garden-id': COMPONENT_ID$p,
|
|
673
|
-
'data-garden-version': '8.
|
|
673
|
+
'data-garden-version': '8.75.0'
|
|
674
674
|
}).withConfig({
|
|
675
675
|
displayName: "StyledCheckSvg",
|
|
676
676
|
componentId: "sc-fvxetk-0"
|
|
@@ -700,7 +700,7 @@ var SvgDashFill = function SvgDashFill(props) {
|
|
|
700
700
|
const COMPONENT_ID$o = 'forms.dash_svg';
|
|
701
701
|
const StyledDashSvg = styled__default.default(SvgDashFill).attrs({
|
|
702
702
|
'data-garden-id': COMPONENT_ID$o,
|
|
703
|
-
'data-garden-version': '8.
|
|
703
|
+
'data-garden-version': '8.75.0'
|
|
704
704
|
}).withConfig({
|
|
705
705
|
displayName: "StyledDashSvg",
|
|
706
706
|
componentId: "sc-z3vq71-0"
|
|
@@ -711,12 +711,12 @@ StyledDashSvg.defaultProps = {
|
|
|
711
711
|
|
|
712
712
|
const COMPONENT_ID$n = 'forms.file_upload';
|
|
713
713
|
const colorStyles$7 = props => {
|
|
714
|
-
const baseColor = reactTheming.
|
|
715
|
-
const hoverColor = reactTheming.
|
|
716
|
-
const activeColor = reactTheming.
|
|
717
|
-
const disabledBackgroundColor = reactTheming.
|
|
718
|
-
const disabledForegroundColor = reactTheming.
|
|
719
|
-
return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";color:", ";}", " &:active{border-color:", ";background-color:", ";color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], props.isDragging ? activeColor : reactTheming.
|
|
714
|
+
const baseColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
|
|
715
|
+
const hoverColor = reactTheming.getColorV8('primaryHue', 700, props.theme);
|
|
716
|
+
const activeColor = reactTheming.getColorV8('primaryHue', 800, props.theme);
|
|
717
|
+
const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', 200, props.theme);
|
|
718
|
+
const disabledForegroundColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
|
|
719
|
+
return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";color:", ";}", " &:active{border-color:", ";background-color:", ";color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], props.isDragging ? activeColor : reactTheming.getColorV8('neutralHue', 600, props.theme), props.isDragging && polished.rgba(baseColor, 0.2), props.isDragging ? activeColor : baseColor, hoverColor, polished.rgba(baseColor, 0.08), hoverColor, reactTheming.focusStyles({
|
|
720
720
|
theme: props.theme,
|
|
721
721
|
hue: baseColor
|
|
722
722
|
}), activeColor, polished.rgba(baseColor, 0.2), activeColor, disabledForegroundColor, disabledBackgroundColor, disabledForegroundColor);
|
|
@@ -731,7 +731,7 @@ const sizeStyles$b = props => {
|
|
|
731
731
|
};
|
|
732
732
|
const StyledFileUpload = styled__default.default.div.attrs({
|
|
733
733
|
'data-garden-id': COMPONENT_ID$n,
|
|
734
|
-
'data-garden-version': '8.
|
|
734
|
+
'data-garden-version': '8.75.0'
|
|
735
735
|
}).withConfig({
|
|
736
736
|
displayName: "StyledFileUpload",
|
|
737
737
|
componentId: "sc-1rodjgn-0"
|
|
@@ -743,11 +743,11 @@ StyledFileUpload.defaultProps = {
|
|
|
743
743
|
const COMPONENT_ID$m = 'forms.file.close';
|
|
744
744
|
const StyledFileClose = styled__default.default.button.attrs({
|
|
745
745
|
'data-garden-id': COMPONENT_ID$m,
|
|
746
|
-
'data-garden-version': '8.
|
|
746
|
+
'data-garden-version': '8.75.0'
|
|
747
747
|
}).withConfig({
|
|
748
748
|
displayName: "StyledFileClose",
|
|
749
749
|
componentId: "sc-1m31jbf-0"
|
|
750
|
-
})(["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
|
|
750
|
+
})(["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 => reactTheming.getColorV8('foreground', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
751
751
|
StyledFileClose.defaultProps = {
|
|
752
752
|
theme: reactTheming.DEFAULT_THEME
|
|
753
753
|
};
|
|
@@ -758,17 +758,17 @@ const colorStyles$6 = props => {
|
|
|
758
758
|
let focusBorderColor;
|
|
759
759
|
let foregroundColor;
|
|
760
760
|
if (props.validation === 'success') {
|
|
761
|
-
borderColor = reactTheming.
|
|
761
|
+
borderColor = reactTheming.getColorV8('successHue', 600, props.theme);
|
|
762
762
|
focusBorderColor = borderColor;
|
|
763
763
|
foregroundColor = borderColor;
|
|
764
764
|
} else if (props.validation === 'error') {
|
|
765
|
-
borderColor = reactTheming.
|
|
765
|
+
borderColor = reactTheming.getColorV8('dangerHue', 600, props.theme);
|
|
766
766
|
focusBorderColor = borderColor;
|
|
767
767
|
foregroundColor = borderColor;
|
|
768
768
|
} else {
|
|
769
|
-
borderColor = reactTheming.
|
|
770
|
-
focusBorderColor = reactTheming.
|
|
771
|
-
foregroundColor = props.theme
|
|
769
|
+
borderColor = reactTheming.getColorV8('neutralHue', 300, props.theme);
|
|
770
|
+
focusBorderColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
|
|
771
|
+
foregroundColor = reactTheming.getColorV8('foreground', 600 , props.theme);
|
|
772
772
|
}
|
|
773
773
|
return styled.css(["border-color:", ";color:", ";", ""], borderColor, foregroundColor, reactTheming.focusStyles({
|
|
774
774
|
theme: props.theme,
|
|
@@ -806,7 +806,7 @@ const sizeStyles$a = props => {
|
|
|
806
806
|
};
|
|
807
807
|
const StyledFile = styled__default.default.div.attrs({
|
|
808
808
|
'data-garden-id': COMPONENT_ID$l,
|
|
809
|
-
'data-garden-version': '8.
|
|
809
|
+
'data-garden-version': '8.75.0'
|
|
810
810
|
}).withConfig({
|
|
811
811
|
displayName: "StyledFile",
|
|
812
812
|
componentId: "sc-195lzp1-0"
|
|
@@ -818,11 +818,11 @@ StyledFile.defaultProps = {
|
|
|
818
818
|
const COMPONENT_ID$k = 'forms.file.delete';
|
|
819
819
|
const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
|
|
820
820
|
'data-garden-id': COMPONENT_ID$k,
|
|
821
|
-
'data-garden-version': '8.
|
|
821
|
+
'data-garden-version': '8.75.0'
|
|
822
822
|
}).withConfig({
|
|
823
823
|
displayName: "StyledFileDelete",
|
|
824
824
|
componentId: "sc-a8nnhx-0"
|
|
825
|
-
})(["color:", ";", ";"], props => reactTheming.
|
|
825
|
+
})(["color:", ";", ";"], props => reactTheming.getColorV8('dangerHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
|
|
826
826
|
StyledFileDelete.defaultProps = {
|
|
827
827
|
theme: reactTheming.DEFAULT_THEME
|
|
828
828
|
};
|
|
@@ -838,7 +838,7 @@ const StyledFileIcon = styled__default.default(_ref => {
|
|
|
838
838
|
return React__namespace.default.cloneElement(React.Children.only(children), props);
|
|
839
839
|
}).attrs({
|
|
840
840
|
'data-garden-id': COMPONENT_ID$j,
|
|
841
|
-
'data-garden-version': '8.
|
|
841
|
+
'data-garden-version': '8.75.0'
|
|
842
842
|
}).withConfig({
|
|
843
843
|
displayName: "StyledFileIcon",
|
|
844
844
|
componentId: "sc-7b3q0c-0"
|
|
@@ -850,7 +850,7 @@ StyledFileIcon.defaultProps = {
|
|
|
850
850
|
const COMPONENT_ID$i = 'forms.file_list';
|
|
851
851
|
const StyledFileList = styled__default.default.ul.attrs({
|
|
852
852
|
'data-garden-id': COMPONENT_ID$i,
|
|
853
|
-
'data-garden-version': '8.
|
|
853
|
+
'data-garden-version': '8.75.0'
|
|
854
854
|
}).withConfig({
|
|
855
855
|
displayName: "StyledFileList",
|
|
856
856
|
componentId: "sc-gbahjg-0"
|
|
@@ -862,7 +862,7 @@ StyledFileList.defaultProps = {
|
|
|
862
862
|
const COMPONENT_ID$h = 'forms.file_list.item';
|
|
863
863
|
const StyledFileListItem = styled__default.default.li.attrs({
|
|
864
864
|
'data-garden-id': COMPONENT_ID$h,
|
|
865
|
-
'data-garden-version': '8.
|
|
865
|
+
'data-garden-version': '8.75.0'
|
|
866
866
|
}).withConfig({
|
|
867
867
|
displayName: "StyledFileListItem",
|
|
868
868
|
componentId: "sc-1ova3lo-0"
|
|
@@ -892,7 +892,7 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
|
892
892
|
const COMPONENT_ID$g = 'forms.radio_svg';
|
|
893
893
|
const StyledRadioSvg = styled__default.default(SvgCircleSmFill$1).attrs({
|
|
894
894
|
'data-garden-id': COMPONENT_ID$g,
|
|
895
|
-
'data-garden-version': '8.
|
|
895
|
+
'data-garden-version': '8.75.0'
|
|
896
896
|
}).withConfig({
|
|
897
897
|
displayName: "StyledRadioSvg",
|
|
898
898
|
componentId: "sc-1r1qtr1-0"
|
|
@@ -909,7 +909,7 @@ const sizeStyles$9 = props => {
|
|
|
909
909
|
};
|
|
910
910
|
const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
|
|
911
911
|
'data-garden-id': COMPONENT_ID$f,
|
|
912
|
-
'data-garden-version': '8.
|
|
912
|
+
'data-garden-version': '8.75.0'
|
|
913
913
|
}).withConfig({
|
|
914
914
|
displayName: "StyledToggleLabel",
|
|
915
915
|
componentId: "sc-e0asdk-0"
|
|
@@ -921,7 +921,7 @@ StyledToggleLabel.defaultProps = {
|
|
|
921
921
|
const COMPONENT_ID$e = 'forms.toggle_hint';
|
|
922
922
|
const StyledToggleHint = styled__default.default(StyledHint).attrs({
|
|
923
923
|
'data-garden-id': COMPONENT_ID$e,
|
|
924
|
-
'data-garden-version': '8.
|
|
924
|
+
'data-garden-version': '8.75.0'
|
|
925
925
|
}).withConfig({
|
|
926
926
|
displayName: "StyledToggleHint",
|
|
927
927
|
componentId: "sc-nziggu-0"
|
|
@@ -933,9 +933,9 @@ StyledToggleHint.defaultProps = {
|
|
|
933
933
|
const COMPONENT_ID$d = 'forms.toggle';
|
|
934
934
|
const colorStyles$5 = props => {
|
|
935
935
|
const SHADE = 600;
|
|
936
|
-
const backgroundColor = reactTheming.
|
|
937
|
-
const hoverBackgroundColor = reactTheming.
|
|
938
|
-
const activeBackgroundColor = reactTheming.
|
|
936
|
+
const backgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 100, props.theme);
|
|
937
|
+
const hoverBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE, props.theme);
|
|
938
|
+
const activeBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE + 100, props.theme);
|
|
939
939
|
return styled.css(["& ~ ", "::before{background-color:", ";}&:enabled ~ ", ":hover::before{background-color:", ";}&:enabled ~ ", ":active::before{background-color:", ";}"], StyledToggleLabel, backgroundColor, StyledToggleLabel, hoverBackgroundColor, StyledToggleLabel, activeBackgroundColor);
|
|
940
940
|
};
|
|
941
941
|
const sizeStyles$8 = props => {
|
|
@@ -948,7 +948,7 @@ const sizeStyles$8 = props => {
|
|
|
948
948
|
};
|
|
949
949
|
const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
|
|
950
950
|
'data-garden-id': COMPONENT_ID$d,
|
|
951
|
-
'data-garden-version': '8.
|
|
951
|
+
'data-garden-version': '8.75.0'
|
|
952
952
|
}).withConfig({
|
|
953
953
|
displayName: "StyledToggleInput",
|
|
954
954
|
componentId: "sc-sgp47s-0"
|
|
@@ -960,7 +960,7 @@ StyledToggleInput.defaultProps = {
|
|
|
960
960
|
const COMPONENT_ID$c = 'forms.toggle_message';
|
|
961
961
|
const StyledToggleMessage = styled__default.default(StyledMessage).attrs({
|
|
962
962
|
'data-garden-id': COMPONENT_ID$c,
|
|
963
|
-
'data-garden-version': '8.
|
|
963
|
+
'data-garden-version': '8.75.0'
|
|
964
964
|
}).withConfig({
|
|
965
965
|
displayName: "StyledToggleMessage",
|
|
966
966
|
componentId: "sc-13vuvl1-0"
|
|
@@ -990,7 +990,7 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
|
990
990
|
const COMPONENT_ID$b = 'forms.toggle_svg';
|
|
991
991
|
const StyledToggleSvg = styled__default.default(SvgCircleSmFill).attrs({
|
|
992
992
|
'data-garden-id': COMPONENT_ID$b,
|
|
993
|
-
'data-garden-version': '8.
|
|
993
|
+
'data-garden-version': '8.75.0'
|
|
994
994
|
}).withConfig({
|
|
995
995
|
displayName: "StyledToggleSvg",
|
|
996
996
|
componentId: "sc-162xbyx-0"
|
|
@@ -1001,7 +1001,7 @@ StyledToggleSvg.defaultProps = {
|
|
|
1001
1001
|
|
|
1002
1002
|
const COMPONENT_ID$a = 'forms.select';
|
|
1003
1003
|
const colorStyles$4 = props => {
|
|
1004
|
-
const color = reactTheming.
|
|
1004
|
+
const color = reactTheming.getColorV8('neutralHue', 700, props.theme);
|
|
1005
1005
|
return styled.css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", ",&[data-garden-focus-visible='true'] + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color);
|
|
1006
1006
|
};
|
|
1007
1007
|
const sizeStyles$7 = props => {
|
|
@@ -1012,12 +1012,12 @@ const sizeStyles$7 = props => {
|
|
|
1012
1012
|
};
|
|
1013
1013
|
const StyledSelect = styled__default.default(StyledTextInput).attrs({
|
|
1014
1014
|
'data-garden-id': COMPONENT_ID$a,
|
|
1015
|
-
'data-garden-version': '8.
|
|
1015
|
+
'data-garden-version': '8.75.0',
|
|
1016
1016
|
as: 'select'
|
|
1017
1017
|
}).withConfig({
|
|
1018
1018
|
displayName: "StyledSelect",
|
|
1019
1019
|
componentId: "sc-8xdxpt-0"
|
|
1020
|
-
})(["cursor:pointer;text-overflow:ellipsis;", ";", ";&::-ms-expand{display:none;}&::-ms-value{background-color:transparent;color:inherit;}&:-moz-focusring{transition:none;text-shadow:0 0 0 ", ";color:transparent;}& + ", "{position:absolute;pointer-events:none;}"], props => sizeStyles$7(props), props => colorStyles$4(props), props => props.theme
|
|
1020
|
+
})(["cursor:pointer;text-overflow:ellipsis;", ";", ";&::-ms-expand{display:none;}&::-ms-value{background-color:transparent;color:inherit;}&:-moz-focusring{transition:none;text-shadow:0 0 0 ", ";color:transparent;}& + ", "{position:absolute;pointer-events:none;}"], props => sizeStyles$7(props), props => colorStyles$4(props), props => reactTheming.getColorV8('foreground', 600 , props.theme), StyledTextMediaFigure);
|
|
1021
1021
|
StyledSelect.defaultProps = {
|
|
1022
1022
|
theme: reactTheming.DEFAULT_THEME
|
|
1023
1023
|
};
|
|
@@ -1025,7 +1025,7 @@ StyledSelect.defaultProps = {
|
|
|
1025
1025
|
const COMPONENT_ID$9 = 'forms.select_wrapper';
|
|
1026
1026
|
const StyledSelectWrapper = styled__default.default(StyledTextFauxInput).attrs({
|
|
1027
1027
|
'data-garden-id': COMPONENT_ID$9,
|
|
1028
|
-
'data-garden-version': '8.
|
|
1028
|
+
'data-garden-version': '8.75.0'
|
|
1029
1029
|
}).withConfig({
|
|
1030
1030
|
displayName: "StyledSelectWrapper",
|
|
1031
1031
|
componentId: "sc-i7b6hw-0"
|
|
@@ -1081,19 +1081,19 @@ const trackLowerStyles = function (styles) {
|
|
|
1081
1081
|
};
|
|
1082
1082
|
const colorStyles$3 = props => {
|
|
1083
1083
|
const SHADE = 600;
|
|
1084
|
-
const thumbBackgroundColor = reactTheming.
|
|
1084
|
+
const thumbBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
1085
1085
|
const thumbBorderColor = thumbBackgroundColor;
|
|
1086
|
-
const thumbBoxShadow = props.theme.shadows.lg(polished.math(`${props.theme.space.base} * 1px`), polished.math(`${props.theme.space.base} * 2px`), reactTheming.
|
|
1086
|
+
const thumbBoxShadow = props.theme.shadows.lg(polished.math(`${props.theme.space.base} * 1px`), polished.math(`${props.theme.space.base} * 2px`), reactTheming.getColorV8('neutralHue', SHADE + 200, props.theme, 0.24));
|
|
1087
1087
|
const thumbFocusBoxShadow = reactTheming.getFocusBoxShadow({
|
|
1088
1088
|
theme: props.theme
|
|
1089
1089
|
});
|
|
1090
|
-
const thumbActiveBackgroundColor = reactTheming.
|
|
1090
|
+
const thumbActiveBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
1091
1091
|
const thumbActiveBorderColor = thumbBorderColor;
|
|
1092
|
-
const thumbDisabledBackgroundColor = reactTheming.
|
|
1092
|
+
const thumbDisabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
1093
1093
|
const thumbDisabledBorderColor = thumbDisabledBackgroundColor;
|
|
1094
1094
|
const thumbHoverBackgroundColor = thumbActiveBackgroundColor;
|
|
1095
1095
|
const thumbHoverBorderColor = thumbHoverBackgroundColor;
|
|
1096
|
-
const trackBackgroundColor = reactTheming.
|
|
1096
|
+
const trackBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
1097
1097
|
const trackLowerBackgroundColor = props.hasLowerTrack ? thumbBackgroundColor : '';
|
|
1098
1098
|
const trackBackgroundImage = props.hasLowerTrack ? `linear-gradient(${trackLowerBackgroundColor}, ${trackLowerBackgroundColor})` : '';
|
|
1099
1099
|
const trackDisabledLowerBackgroundColor = props.hasLowerTrack ? thumbDisabledBackgroundColor : '';
|
|
@@ -1150,7 +1150,7 @@ const sizeStyles$6 = props => {
|
|
|
1150
1150
|
};
|
|
1151
1151
|
const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
1152
1152
|
'data-garden-id': COMPONENT_ID$8,
|
|
1153
|
-
'data-garden-version': '8.
|
|
1153
|
+
'data-garden-version': '8.75.0',
|
|
1154
1154
|
type: 'range',
|
|
1155
1155
|
style: {
|
|
1156
1156
|
backgroundSize: props.hasLowerTrack && props.backgroundSize
|
|
@@ -1183,7 +1183,7 @@ StyledRangeInput.defaultProps = {
|
|
|
1183
1183
|
const COMPONENT_ID$7 = 'forms.slider';
|
|
1184
1184
|
const StyledSlider = styled__default.default.div.attrs({
|
|
1185
1185
|
'data-garden-id': COMPONENT_ID$7,
|
|
1186
|
-
'data-garden-version': '8.
|
|
1186
|
+
'data-garden-version': '8.75.0'
|
|
1187
1187
|
}).withConfig({
|
|
1188
1188
|
displayName: "StyledSlider",
|
|
1189
1189
|
componentId: "sc-1di437a-0"
|
|
@@ -1195,14 +1195,14 @@ StyledSlider.defaultProps = {
|
|
|
1195
1195
|
const COMPONENT_ID$6 = 'forms.slider_thumb';
|
|
1196
1196
|
const colorStyles$2 = props => {
|
|
1197
1197
|
const SHADE = 600;
|
|
1198
|
-
const backgroundColor = reactTheming.
|
|
1198
|
+
const backgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
1199
1199
|
const borderColor = backgroundColor;
|
|
1200
|
-
const boxShadow = props.theme.shadows.lg(polished.math(`${props.theme.space.base} * 1px`), polished.math(`${props.theme.space.base} * 2px`), reactTheming.
|
|
1201
|
-
const activeBackgroundColor = reactTheming.
|
|
1200
|
+
const boxShadow = props.theme.shadows.lg(polished.math(`${props.theme.space.base} * 1px`), polished.math(`${props.theme.space.base} * 2px`), reactTheming.getColorV8('neutralHue', SHADE + 200, props.theme, 0.24));
|
|
1201
|
+
const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
1202
1202
|
const activeBorderColor = borderColor;
|
|
1203
1203
|
const hoverBackgroundColor = activeBackgroundColor;
|
|
1204
1204
|
const hoverBorderColor = hoverBackgroundColor;
|
|
1205
|
-
const disabledBackgroundColor = reactTheming.
|
|
1205
|
+
const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
1206
1206
|
const disabledBorderColor = disabledBackgroundColor;
|
|
1207
1207
|
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";&:hover,&[data-garden-hover='true']{border-color:", ";background-color:", ";}", " &:active,&[data-garden-active='true']{border-color:", ";background-color:", ";}&[aria-disabled='true']{border-color:", ";box-shadow:none;background-color:", ";}"], borderColor, boxShadow, backgroundColor, hoverBorderColor, hoverBackgroundColor, reactTheming.focusStyles({
|
|
1208
1208
|
theme: props.theme
|
|
@@ -1215,7 +1215,7 @@ const sizeStyles$5 = props => {
|
|
|
1215
1215
|
};
|
|
1216
1216
|
const StyledSliderThumb = styled__default.default.div.attrs(props => ({
|
|
1217
1217
|
'data-garden-id': COMPONENT_ID$6,
|
|
1218
|
-
'data-garden-version': '8.
|
|
1218
|
+
'data-garden-version': '8.75.0',
|
|
1219
1219
|
'aria-disabled': props.isDisabled
|
|
1220
1220
|
})).withConfig({
|
|
1221
1221
|
displayName: "StyledSliderThumb",
|
|
@@ -1229,9 +1229,9 @@ StyledSliderThumb.defaultProps = {
|
|
|
1229
1229
|
const COMPONENT_ID$5 = 'forms.slider_track';
|
|
1230
1230
|
const colorStyles$1 = props => {
|
|
1231
1231
|
const SHADE = 600;
|
|
1232
|
-
const backgroundColor = reactTheming.
|
|
1233
|
-
const backgroundImageColor = reactTheming.
|
|
1234
|
-
const disabledBackgroundColor = reactTheming.
|
|
1232
|
+
const backgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
1233
|
+
const backgroundImageColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
1234
|
+
const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
1235
1235
|
return styled.css(["background-color:", ";background-image:linear-gradient(", ",", ");&[aria-disabled='true']{background-image:linear-gradient(", ",", ");}"], backgroundColor, backgroundImageColor, backgroundImageColor, disabledBackgroundColor, disabledBackgroundColor);
|
|
1236
1236
|
};
|
|
1237
1237
|
const sizeStyles$4 = props => {
|
|
@@ -1245,7 +1245,7 @@ const sizeStyles$4 = props => {
|
|
|
1245
1245
|
};
|
|
1246
1246
|
const StyledSliderTrack = styled__default.default.div.attrs(props => ({
|
|
1247
1247
|
'data-garden-id': COMPONENT_ID$5,
|
|
1248
|
-
'data-garden-version': '8.
|
|
1248
|
+
'data-garden-version': '8.75.0',
|
|
1249
1249
|
'aria-disabled': props.isDisabled
|
|
1250
1250
|
})).withConfig({
|
|
1251
1251
|
displayName: "StyledSliderTrack",
|
|
@@ -1265,7 +1265,7 @@ const sizeStyles$3 = props => {
|
|
|
1265
1265
|
};
|
|
1266
1266
|
const StyledSliderTrackRail = styled__default.default.div.attrs({
|
|
1267
1267
|
'data-garden-id': COMPONENT_ID$4,
|
|
1268
|
-
'data-garden-version': '8.
|
|
1268
|
+
'data-garden-version': '8.75.0'
|
|
1269
1269
|
}).withConfig({
|
|
1270
1270
|
displayName: "StyledSliderTrackRail",
|
|
1271
1271
|
componentId: "sc-1o5owbd-0"
|
|
@@ -1292,7 +1292,7 @@ const sizeStyles$2 = props => {
|
|
|
1292
1292
|
};
|
|
1293
1293
|
const StyledTileIcon = styled__default.default.span.attrs({
|
|
1294
1294
|
'data-garden-id': COMPONENT_ID$3,
|
|
1295
|
-
'data-garden-version': '8.
|
|
1295
|
+
'data-garden-version': '8.75.0'
|
|
1296
1296
|
}).withConfig({
|
|
1297
1297
|
displayName: "StyledTileIcon",
|
|
1298
1298
|
componentId: "sc-1wazhg4-0"
|
|
@@ -1304,36 +1304,36 @@ StyledTileIcon.defaultProps = {
|
|
|
1304
1304
|
const COMPONENT_ID$2 = 'forms.tile';
|
|
1305
1305
|
const colorStyles = props => {
|
|
1306
1306
|
const SHADE = 600;
|
|
1307
|
-
const iconColor = reactTheming.
|
|
1308
|
-
const color = reactTheming.
|
|
1309
|
-
const borderColor = reactTheming.
|
|
1310
|
-
const hoverBackgroundColor = reactTheming.
|
|
1311
|
-
const hoverBorderColor = reactTheming.
|
|
1307
|
+
const iconColor = reactTheming.getColorV8('neutralHue', SHADE, props.theme);
|
|
1308
|
+
const color = reactTheming.getColorV8('neutralHue', SHADE + 200, props.theme);
|
|
1309
|
+
const borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
1310
|
+
const hoverBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.08);
|
|
1311
|
+
const hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
1312
1312
|
const focusBorderColor = hoverBorderColor;
|
|
1313
|
-
const activeBackgroundColor = reactTheming.
|
|
1313
|
+
const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.2);
|
|
1314
1314
|
const activeBorderColor = focusBorderColor;
|
|
1315
|
-
const disabledBackgroundColor = reactTheming.
|
|
1316
|
-
const disabledBorderColor = reactTheming.
|
|
1317
|
-
const disabledColor = reactTheming.
|
|
1315
|
+
const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 500, props.theme);
|
|
1316
|
+
const disabledBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
1317
|
+
const disabledColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
|
|
1318
1318
|
const selectedBorderColor = focusBorderColor;
|
|
1319
1319
|
const selectedBackgroundColor = selectedBorderColor;
|
|
1320
|
-
const selectedHoverBorderColor = reactTheming.
|
|
1320
|
+
const selectedHoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
1321
1321
|
const selectedHoverBackgroundColor = selectedHoverBorderColor;
|
|
1322
|
-
const selectedActiveBorderColor = reactTheming.
|
|
1322
|
+
const selectedActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 200, props.theme);
|
|
1323
1323
|
const selectedActiveBackgroundColor = selectedActiveBorderColor;
|
|
1324
1324
|
const selectedDisabledBackgroundColor = disabledBorderColor;
|
|
1325
|
-
return styled.css(["border:", " ", ";border-color:", ";background-color:", ";color:", ";", "{color:", ";}&:hover:not([aria-disabled='true']){border-color:", ";background-color:", ";", "{color:", ";}}", " &: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.
|
|
1325
|
+
return styled.css(["border:", " ", ";border-color:", ";background-color:", ";color:", ";", "{color:", ";}&:hover:not([aria-disabled='true']){border-color:", ";background-color:", ";", "{color:", ";}}", " &: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.getColorV8('neutralHue', SHADE - 300, props.theme), borderColor, reactTheming.getColorV8('background', 600 , props.theme), color, StyledTileIcon, iconColor, hoverBorderColor, hoverBackgroundColor, StyledTileIcon, color, reactTheming.focusStyles({
|
|
1326
1326
|
theme: props.theme,
|
|
1327
1327
|
hue: focusBorderColor,
|
|
1328
1328
|
styles: {
|
|
1329
1329
|
borderColor: focusBorderColor
|
|
1330
1330
|
},
|
|
1331
1331
|
selector: `&:focus-within`
|
|
1332
|
-
}), activeBorderColor, activeBackgroundColor, StyledTileIcon, color, selectedBorderColor, selectedBackgroundColor, props.theme.
|
|
1332
|
+
}), activeBorderColor, activeBackgroundColor, StyledTileIcon, color, selectedBorderColor, selectedBackgroundColor, reactTheming.getColorV8('background', 600 , props.theme), StyledTileIcon, reactTheming.getColorV8('background', 600 , props.theme), selectedHoverBorderColor, selectedHoverBackgroundColor, reactTheming.getColorV8('background', 600 , props.theme), StyledTileIcon, reactTheming.getColorV8('background', 600 , props.theme), selectedActiveBorderColor, selectedActiveBackgroundColor, reactTheming.getColorV8('background', 600 , props.theme), StyledTileIcon, reactTheming.getColorV8('background', 600 , props.theme), disabledBorderColor, disabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor, selectedDisabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor);
|
|
1333
1333
|
};
|
|
1334
1334
|
const StyledTile = styled__default.default.label.attrs(props => ({
|
|
1335
1335
|
'data-garden-id': COMPONENT_ID$2,
|
|
1336
|
-
'data-garden-version': '8.
|
|
1336
|
+
'data-garden-version': '8.75.0',
|
|
1337
1337
|
'data-garden-selected': props.isSelected
|
|
1338
1338
|
})).withConfig({
|
|
1339
1339
|
displayName: "StyledTile",
|
|
@@ -1357,7 +1357,7 @@ const sizeStyles$1 = props => {
|
|
|
1357
1357
|
};
|
|
1358
1358
|
const StyledTileDescription = styled__default.default.span.attrs({
|
|
1359
1359
|
'data-garden-id': COMPONENT_ID$1,
|
|
1360
|
-
'data-garden-version': '8.
|
|
1360
|
+
'data-garden-version': '8.75.0'
|
|
1361
1361
|
}).withConfig({
|
|
1362
1362
|
displayName: "StyledTileDescription",
|
|
1363
1363
|
componentId: "sc-xfuu7u-0"
|
|
@@ -1390,7 +1390,7 @@ const sizeStyles = props => {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
const StyledTileLabel = styled__default.default.span.attrs({
|
|
1392
1392
|
'data-garden-id': COMPONENT_ID,
|
|
1393
|
-
'data-garden-version': '8.
|
|
1393
|
+
'data-garden-version': '8.75.0'
|
|
1394
1394
|
}).withConfig({
|
|
1395
1395
|
displayName: "StyledTileLabel",
|
|
1396
1396
|
componentId: "sc-1mypv27-0"
|