@zendeskgarden/react-forms 9.0.0-next.9 → 9.0.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/esm/elements/MediaInput.js +2 -2
- package/dist/esm/elements/Select.js +1 -0
- package/dist/esm/elements/Textarea.js +1 -1
- package/dist/esm/elements/common/Hint.js +1 -1
- package/dist/esm/elements/common/Label.js +2 -2
- package/dist/esm/elements/common/Message.js +2 -2
- package/dist/esm/elements/faux-input/components/EndIcon.js +4 -0
- package/dist/esm/elements/faux-input/components/StartIcon.js +4 -0
- package/dist/esm/elements/file-list/components/File.js +3 -2
- package/dist/esm/elements/tiles/components/Description.js +1 -1
- package/dist/esm/elements/tiles/components/Icon.js +1 -1
- package/dist/esm/elements/tiles/components/Label.js +1 -1
- package/dist/esm/elements/tiles/components/Tile.js +1 -3
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-circle-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-sm-fill.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/dash-fill.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-document-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-error-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-generic-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-image-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-pdf-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-presentation-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-spreadsheet-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-zip-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/trash-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/x-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-document-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-error-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-generic-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-image-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-pdf-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-presentation-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-spreadsheet-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-zip-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/trash-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +1 -1
- package/dist/esm/styled/checkbox/StyledCheckHint.js +2 -5
- package/dist/esm/styled/checkbox/StyledCheckInput.js +55 -14
- package/dist/esm/styled/checkbox/StyledCheckLabel.js +2 -5
- package/dist/esm/styled/checkbox/StyledCheckMessage.js +2 -5
- package/dist/esm/styled/checkbox/StyledCheckSvg.js +2 -5
- package/dist/esm/styled/checkbox/StyledDashSvg.js +2 -5
- package/dist/esm/styled/common/StyledField.js +2 -5
- package/dist/esm/styled/common/StyledFieldset.js +2 -5
- package/dist/esm/styled/common/StyledHint.js +6 -6
- package/dist/esm/styled/common/StyledLabel.js +6 -6
- package/dist/esm/styled/common/StyledLegend.js +2 -5
- package/dist/esm/styled/common/StyledMessage.js +33 -19
- package/dist/esm/styled/common/StyledMessageIcon.js +4 -6
- package/dist/esm/styled/file-list/StyledFile.js +49 -31
- package/dist/esm/styled/file-list/StyledFileClose.js +6 -6
- package/dist/esm/styled/file-list/StyledFileDelete.js +6 -6
- package/dist/esm/styled/file-list/StyledFileIcon.js +24 -7
- package/dist/esm/styled/file-list/StyledFileList.js +2 -5
- package/dist/esm/styled/file-list/StyledFileListItem.js +2 -5
- package/dist/esm/styled/file-upload/StyledFileUpload.js +89 -23
- package/dist/esm/styled/input-group/StyledInputGroup.js +2 -5
- package/dist/esm/styled/radio/StyledRadioHint.js +2 -5
- package/dist/esm/styled/radio/StyledRadioInput.js +85 -27
- package/dist/esm/styled/radio/StyledRadioLabel.js +2 -5
- package/dist/esm/styled/radio/StyledRadioMessage.js +2 -5
- package/dist/esm/styled/radio/StyledRadioSvg.js +2 -5
- package/dist/esm/styled/range/StyledRangeInput.js +76 -26
- package/dist/esm/styled/select/StyledSelect.js +35 -14
- package/dist/esm/styled/select/StyledSelectWrapper.js +12 -7
- package/dist/esm/styled/text/StyledTextFauxInput.js +31 -26
- package/dist/esm/styled/text/StyledTextInput.js +103 -61
- package/dist/esm/styled/text/StyledTextMediaFigure.js +35 -13
- package/dist/esm/styled/text/StyledTextMediaInput.js +2 -5
- package/dist/esm/styled/text/StyledTextarea.js +2 -5
- package/dist/esm/styled/tiles/StyledTile.js +93 -37
- package/dist/esm/styled/tiles/StyledTileDescription.js +13 -16
- package/dist/esm/styled/tiles/StyledTileIcon.js +52 -16
- package/dist/esm/styled/tiles/StyledTileInput.js +1 -5
- package/dist/esm/styled/tiles/StyledTileLabel.js +13 -18
- package/dist/esm/styled/toggle/StyledToggleHint.js +2 -5
- package/dist/esm/styled/toggle/StyledToggleInput.js +38 -16
- package/dist/esm/styled/toggle/StyledToggleLabel.js +2 -5
- package/dist/esm/styled/toggle/StyledToggleMessage.js +2 -5
- package/dist/esm/styled/toggle/StyledToggleSvg.js +2 -5
- package/dist/index.cjs.js +954 -551
- package/dist/typings/elements/common/Field.d.ts +1 -1
- package/dist/typings/elements/common/Fieldset.d.ts +3 -1
- package/dist/typings/elements/faux-input/FauxInput.d.ts +3 -1
- package/dist/typings/elements/faux-input/components/EndIcon.d.ts +1 -1
- package/dist/typings/elements/faux-input/components/StartIcon.d.ts +1 -1
- package/dist/typings/elements/file-list/FileList.d.ts +3 -1
- package/dist/typings/elements/file-list/components/File.d.ts +3 -1
- package/dist/typings/elements/tiles/Tiles.d.ts +3 -1
- package/dist/typings/styled/common/StyledMessageIcon.d.ts +2 -1
- package/dist/typings/styled/file-list/StyledFileIcon.d.ts +7 -2
- package/dist/typings/styled/select/StyledSelect.d.ts +0 -3
- package/dist/typings/styled/select/StyledSelectWrapper.d.ts +3 -1
- package/dist/typings/styled/text/StyledTextFauxInput.d.ts +0 -4
- package/dist/typings/styled/text/StyledTextMediaFigure.d.ts +0 -1
- package/dist/typings/styled/tiles/StyledTile.d.ts +4 -7
- package/dist/typings/types/index.d.ts +3 -3
- package/dist/typings/utils/useFieldContext.d.ts +0 -1
- package/dist/typings/utils/useFieldsetContext.d.ts +0 -1
- package/dist/typings/utils/useFileContext.d.ts +0 -1
- package/dist/typings/utils/useInputContext.d.ts +0 -1
- package/dist/typings/utils/useInputGroupContext.d.ts +0 -1
- package/dist/typings/utils/useTilesContext.d.ts +0 -1
- package/package.json +7 -8
- package/LICENSE.md +0 -176
package/dist/index.cjs.js
CHANGED
|
@@ -11,6 +11,7 @@ var containerField = require('@zendeskgarden/container-field');
|
|
|
11
11
|
var styled = require('styled-components');
|
|
12
12
|
var reactTheming = require('@zendeskgarden/react-theming');
|
|
13
13
|
var polished = require('polished');
|
|
14
|
+
var server = require('react-dom/server');
|
|
14
15
|
var PropTypes = require('prop-types');
|
|
15
16
|
var containerUtilities = require('@zendeskgarden/container-utilities');
|
|
16
17
|
var reactMergeRefs = require('react-merge-refs');
|
|
@@ -48,67 +49,58 @@ const useFieldContext = () => {
|
|
|
48
49
|
const COMPONENT_ID$G = 'forms.field';
|
|
49
50
|
const StyledField = styled__default.default.div.attrs({
|
|
50
51
|
'data-garden-id': COMPONENT_ID$G,
|
|
51
|
-
'data-garden-version': '9.0.0
|
|
52
|
+
'data-garden-version': '9.0.0'
|
|
52
53
|
}).withConfig({
|
|
53
54
|
displayName: "StyledField",
|
|
54
55
|
componentId: "sc-12gzfsu-0"
|
|
55
56
|
})(["position:relative;direction:", ";margin:0;border:0;padding:0;font-size:0;", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$G, props));
|
|
56
|
-
StyledField.defaultProps = {
|
|
57
|
-
theme: reactTheming.DEFAULT_THEME
|
|
58
|
-
};
|
|
59
57
|
|
|
60
58
|
const COMPONENT_ID$F = 'forms.fieldset';
|
|
61
59
|
const StyledFieldset = styled__default.default(StyledField).attrs({
|
|
62
60
|
as: 'fieldset',
|
|
63
61
|
'data-garden-id': COMPONENT_ID$F,
|
|
64
|
-
'data-garden-version': '9.0.0
|
|
62
|
+
'data-garden-version': '9.0.0'
|
|
65
63
|
}).withConfig({
|
|
66
64
|
displayName: "StyledFieldset",
|
|
67
65
|
componentId: "sc-1vr4mxv-0"
|
|
68
66
|
})(["", "{margin-top:", "px;}", ";"], StyledField, props => props.theme.space.base * (props.isCompact ? 1 : 2), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$F, props));
|
|
69
|
-
StyledFieldset.defaultProps = {
|
|
70
|
-
theme: reactTheming.DEFAULT_THEME
|
|
71
|
-
};
|
|
72
67
|
|
|
73
68
|
const COMPONENT_ID$E = 'forms.input_label';
|
|
74
69
|
const StyledLabel = styled__default.default.label.attrs(props => ({
|
|
75
70
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$E,
|
|
76
|
-
'data-garden-version': props['data-garden-version'] || '9.0.0
|
|
71
|
+
'data-garden-version': props['data-garden-version'] || '9.0.0'
|
|
77
72
|
})).withConfig({
|
|
78
73
|
displayName: "StyledLabel",
|
|
79
74
|
componentId: "sc-2utmsz-0"
|
|
80
|
-
})(["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.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
75
|
+
})(["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.getColor({
|
|
76
|
+
theme: props.theme,
|
|
77
|
+
variable: 'foreground.default'
|
|
78
|
+
}), 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$E, props));
|
|
84
79
|
|
|
85
80
|
const COMPONENT_ID$D = 'forms.fieldset_legend';
|
|
86
81
|
const StyledLegend = styled__default.default(StyledLabel).attrs({
|
|
87
82
|
as: 'legend',
|
|
88
83
|
'data-garden-id': COMPONENT_ID$D,
|
|
89
|
-
'data-garden-version': '9.0.0
|
|
84
|
+
'data-garden-version': '9.0.0'
|
|
90
85
|
}).withConfig({
|
|
91
86
|
displayName: "StyledLegend",
|
|
92
87
|
componentId: "sc-6s0zwq-0"
|
|
93
88
|
})(["padding:0;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$D, props));
|
|
94
|
-
StyledLegend.defaultProps = {
|
|
95
|
-
theme: reactTheming.DEFAULT_THEME
|
|
96
|
-
};
|
|
97
89
|
|
|
98
90
|
const COMPONENT_ID$C = 'forms.input_hint';
|
|
99
91
|
const StyledHint = styled__default.default.div.attrs(props => ({
|
|
100
92
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$C,
|
|
101
|
-
'data-garden-version': props['data-garden-version'] || '9.0.0
|
|
93
|
+
'data-garden-version': props['data-garden-version'] || '9.0.0'
|
|
102
94
|
})).withConfig({
|
|
103
95
|
displayName: "StyledHint",
|
|
104
96
|
componentId: "sc-17c2wu8-0"
|
|
105
|
-
})(["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.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
};
|
|
97
|
+
})(["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.getColor({
|
|
98
|
+
theme: props.theme,
|
|
99
|
+
variable: 'foreground.subtle'
|
|
100
|
+
}), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$C, props));
|
|
109
101
|
|
|
110
102
|
var _g$2, _circle$5;
|
|
111
|
-
function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : function (
|
|
103
|
+
function _extends$s() { return _extends$s = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$s.apply(null, arguments); }
|
|
112
104
|
var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
|
|
113
105
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
114
106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -136,7 +128,7 @@ var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
|
|
|
136
128
|
};
|
|
137
129
|
|
|
138
130
|
var _path$n, _circle$4;
|
|
139
|
-
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (
|
|
131
|
+
function _extends$r() { return _extends$r = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$r.apply(null, arguments); }
|
|
140
132
|
var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
|
|
141
133
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
142
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -159,7 +151,7 @@ var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
|
|
|
159
151
|
};
|
|
160
152
|
|
|
161
153
|
var _g$1;
|
|
162
|
-
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (
|
|
154
|
+
function _extends$q() { return _extends$q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$q.apply(null, arguments); }
|
|
163
155
|
var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
|
|
164
156
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
165
157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -203,135 +195,202 @@ const MessageIcon = _ref => {
|
|
|
203
195
|
const COMPONENT_ID$B = 'forms.input_message_icon';
|
|
204
196
|
const StyledMessageIcon = styled__default.default(MessageIcon).attrs({
|
|
205
197
|
'data-garden-id': COMPONENT_ID$B,
|
|
206
|
-
'data-garden-version': '9.0.0
|
|
207
|
-
'aria-hidden': null
|
|
198
|
+
'data-garden-version': '9.0.0',
|
|
199
|
+
'aria-hidden': null,
|
|
200
|
+
role: 'img'
|
|
208
201
|
}).withConfig({
|
|
209
202
|
displayName: "StyledMessageIcon",
|
|
210
203
|
componentId: "sc-1ph2gba-0"
|
|
211
204
|
})(["width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$B, props));
|
|
212
|
-
StyledMessageIcon.defaultProps = {
|
|
213
|
-
theme: reactTheming.DEFAULT_THEME
|
|
214
|
-
};
|
|
215
205
|
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
206
|
+
const COMPONENT_ID$A = 'forms.input_message';
|
|
207
|
+
const colorStyles$d = _ref => {
|
|
208
|
+
let {
|
|
209
|
+
theme,
|
|
210
|
+
validation
|
|
211
|
+
} = _ref;
|
|
212
|
+
let variable;
|
|
213
|
+
if (validation === 'error') {
|
|
214
|
+
variable = 'foreground.danger';
|
|
215
|
+
} else if (validation === 'success') {
|
|
216
|
+
variable = 'foreground.success';
|
|
217
|
+
} else if (validation === 'warning') {
|
|
218
|
+
variable = 'foreground.warning';
|
|
226
219
|
} else {
|
|
227
|
-
|
|
220
|
+
variable = 'foreground.subtle';
|
|
228
221
|
}
|
|
229
|
-
|
|
222
|
+
const foregroundColor = reactTheming.getColor({
|
|
223
|
+
theme,
|
|
224
|
+
variable
|
|
225
|
+
});
|
|
226
|
+
return styled.css(["color:", ";"], foregroundColor);
|
|
227
|
+
};
|
|
228
|
+
const sizeStyles$g = _ref2 => {
|
|
229
|
+
let {
|
|
230
|
+
theme,
|
|
231
|
+
validation
|
|
232
|
+
} = _ref2;
|
|
233
|
+
const fontSize = theme.fontSizes.sm;
|
|
234
|
+
const lineHeight = reactTheming.getLineHeight(theme.iconSizes.md, theme.fontSizes.sm);
|
|
235
|
+
const marginTop = `${theme.space.base}px`;
|
|
236
|
+
const paddingHorizontal = validation ? polished.math(`${theme.space.base * 2} + ${theme.iconSizes.md}`) : undefined;
|
|
237
|
+
return styled.css(["padding-", ":", ";line-height:", ";font-size:", ";", ":not([hidden]) + &{margin-top:", ";}"], theme.rtl ? 'right' : 'left', paddingHorizontal, lineHeight, fontSize, StyledLabel, marginTop);
|
|
230
238
|
};
|
|
231
|
-
const COMPONENT_ID$A = 'forms.input_message';
|
|
232
239
|
const StyledMessage = styled__default.default.div.attrs(props => ({
|
|
233
240
|
'data-garden-id': props['data-garden-id'] || COMPONENT_ID$A,
|
|
234
|
-
'data-garden-version': props['data-garden-version'] || '9.0.0
|
|
241
|
+
'data-garden-version': props['data-garden-version'] || '9.0.0'
|
|
235
242
|
})).withConfig({
|
|
236
243
|
displayName: "StyledMessage",
|
|
237
244
|
componentId: "sc-30hgg7-0"
|
|
238
|
-
})(["direction:", ";display:inline-block;position:relative;vertical-align:middle;
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
})(["direction:", ";display:inline-block;position:relative;vertical-align:middle;", ";", ";& ", "{position:absolute;top:-1px;", ":0;}", ":not([hidden]) + &{display:block;}", ";"], props => props.theme.rtl && 'rtl', sizeStyles$g, colorStyles$d, StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', StyledLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$A, props));
|
|
246
|
+
|
|
247
|
+
var _path$m;
|
|
248
|
+
function _extends$p() { return _extends$p = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$p.apply(null, arguments); }
|
|
249
|
+
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
250
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
251
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
252
|
+
width: 16,
|
|
253
|
+
height: 16,
|
|
254
|
+
focusable: "false",
|
|
255
|
+
viewBox: "0 0 16 16",
|
|
256
|
+
"aria-hidden": "true"
|
|
257
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
258
|
+
fill: "currentColor",
|
|
259
|
+
d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
|
|
260
|
+
})));
|
|
241
261
|
};
|
|
242
262
|
|
|
243
263
|
const COMPONENT_ID$z = 'forms.input';
|
|
244
264
|
const isInvalid = validation => {
|
|
245
265
|
return validation === 'warning' || validation === 'error';
|
|
246
266
|
};
|
|
247
|
-
const colorStyles$
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
267
|
+
const colorStyles$c = _ref => {
|
|
268
|
+
let {
|
|
269
|
+
theme,
|
|
270
|
+
isBare,
|
|
271
|
+
isHovered,
|
|
272
|
+
focusInset,
|
|
273
|
+
validation
|
|
274
|
+
} = _ref;
|
|
275
|
+
const foregroundColor = reactTheming.getColor({
|
|
276
|
+
theme,
|
|
277
|
+
variable: 'foreground.default'
|
|
278
|
+
});
|
|
279
|
+
const backgroundColor = isBare ? 'transparent' : reactTheming.getColor({
|
|
280
|
+
theme,
|
|
281
|
+
variable: 'background.default'
|
|
282
|
+
});
|
|
251
283
|
let borderColor;
|
|
252
284
|
let hoverBorderColor;
|
|
285
|
+
let borderVariable;
|
|
253
286
|
let focusBorderColor;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
hue = 'warningHue';
|
|
262
|
-
focusRingShade = 700;
|
|
263
|
-
} else if (props.validation === 'error') {
|
|
264
|
-
hue = 'dangerHue';
|
|
287
|
+
if (validation) {
|
|
288
|
+
if (validation === 'success') {
|
|
289
|
+
borderVariable = 'border.successEmphasis';
|
|
290
|
+
} else if (validation === 'warning') {
|
|
291
|
+
borderVariable = 'border.warningEmphasis';
|
|
292
|
+
} else if (validation === 'error') {
|
|
293
|
+
borderVariable = 'border.dangerEmphasis';
|
|
265
294
|
}
|
|
266
|
-
borderColor = reactTheming.
|
|
295
|
+
borderColor = reactTheming.getColor({
|
|
296
|
+
theme,
|
|
297
|
+
variable: borderVariable
|
|
298
|
+
});
|
|
267
299
|
hoverBorderColor = borderColor;
|
|
268
300
|
focusBorderColor = borderColor;
|
|
269
|
-
focusRingHue = hue;
|
|
270
301
|
} else {
|
|
271
|
-
borderColor = reactTheming.
|
|
272
|
-
|
|
302
|
+
borderColor = reactTheming.getColor({
|
|
303
|
+
theme,
|
|
304
|
+
variable: 'border.default',
|
|
305
|
+
dark: {
|
|
306
|
+
offset: -100
|
|
307
|
+
},
|
|
308
|
+
light: {
|
|
309
|
+
offset: 100
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
borderVariable = 'border.primaryEmphasis';
|
|
313
|
+
hoverBorderColor = reactTheming.getColor({
|
|
314
|
+
theme,
|
|
315
|
+
variable: borderVariable
|
|
316
|
+
});
|
|
273
317
|
focusBorderColor = hoverBorderColor;
|
|
274
318
|
}
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
319
|
+
const disabledBackgroundColor = isBare ? undefined : reactTheming.getColor({
|
|
320
|
+
theme,
|
|
321
|
+
variable: 'background.disabled'
|
|
322
|
+
});
|
|
323
|
+
const disabledBorderColor = reactTheming.getColor({
|
|
324
|
+
theme,
|
|
325
|
+
variable: 'border.disabled'
|
|
326
|
+
});
|
|
327
|
+
const disabledForegroundColor = reactTheming.getColor({
|
|
328
|
+
theme,
|
|
329
|
+
variable: 'foreground.disabled'
|
|
330
|
+
});
|
|
331
|
+
const placeholderColor = disabledForegroundColor;
|
|
332
|
+
const readOnlyBackgroundColor = disabledBackgroundColor;
|
|
333
|
+
const calendarPickerColor = reactTheming.getColor({
|
|
334
|
+
theme,
|
|
335
|
+
variable: 'foreground.subtle'
|
|
336
|
+
});
|
|
337
|
+
const calendarPickerIcon = server.renderToString( React__namespace.default.createElement(SvgChevronDownStroke, {
|
|
338
|
+
color: calendarPickerColor
|
|
339
|
+
}));
|
|
340
|
+
const calendarPickerBackgroundImage = `url("data:image/svg+xml,${encodeURIComponent(calendarPickerIcon)}")`;
|
|
341
|
+
return styled.css(["border-color:", ";background-color:", ";color:", ";&::placeholder{opacity:1;color:", ";}&::-webkit-datetime-edit{color:", ";}&::-webkit-calendar-picker-indicator{background-image:", ";}&[readonly],&[aria-readonly='true']{background-color:", ";}&:hover{border-color:", ";}", " &::-webkit-calendar-picker-indicator:focus-visible{", "}&:disabled,&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], isHovered ? hoverBorderColor : borderColor, backgroundColor, foregroundColor, placeholderColor, placeholderColor, calendarPickerBackgroundImage, readOnlyBackgroundColor, hoverBorderColor, reactTheming.focusStyles({
|
|
342
|
+
theme,
|
|
343
|
+
inset: focusInset,
|
|
291
344
|
color: {
|
|
292
|
-
|
|
293
|
-
shade: focusRingShade
|
|
345
|
+
variable: borderVariable
|
|
294
346
|
},
|
|
295
347
|
styles: {
|
|
296
348
|
borderColor: focusBorderColor
|
|
297
|
-
}
|
|
298
|
-
|
|
349
|
+
},
|
|
350
|
+
condition: !isBare
|
|
351
|
+
}), reactTheming.focusStyles({
|
|
352
|
+
theme
|
|
353
|
+
}), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
299
354
|
};
|
|
300
|
-
const sizeStyles$
|
|
301
|
-
|
|
302
|
-
|
|
355
|
+
const sizeStyles$f = _ref2 => {
|
|
356
|
+
let {
|
|
357
|
+
theme,
|
|
358
|
+
isBare,
|
|
359
|
+
isCompact
|
|
360
|
+
} = _ref2;
|
|
361
|
+
const fontSize = theme.fontSizes.md;
|
|
362
|
+
const paddingHorizontal = `${theme.space.base * 3}px`;
|
|
303
363
|
let height;
|
|
304
364
|
let paddingVertical;
|
|
305
365
|
let browseFontSize;
|
|
306
366
|
let swatchHeight;
|
|
307
|
-
if (
|
|
308
|
-
height = `${
|
|
309
|
-
paddingVertical = `${
|
|
310
|
-
browseFontSize = polished.math(`${
|
|
311
|
-
swatchHeight = `${
|
|
367
|
+
if (isCompact) {
|
|
368
|
+
height = `${theme.space.base * 8}px`;
|
|
369
|
+
paddingVertical = `${theme.space.base * 1.5}px`;
|
|
370
|
+
browseFontSize = polished.math(`${theme.fontSizes.sm} - 1`);
|
|
371
|
+
swatchHeight = `${theme.space.base * 6}px`;
|
|
312
372
|
} else {
|
|
313
|
-
height = `${
|
|
314
|
-
paddingVertical = `${
|
|
315
|
-
browseFontSize =
|
|
316
|
-
swatchHeight = `${
|
|
373
|
+
height = `${theme.space.base * 10}px`;
|
|
374
|
+
paddingVertical = `${theme.space.base * 2.5}px`;
|
|
375
|
+
browseFontSize = theme.fontSizes.sm;
|
|
376
|
+
swatchHeight = `${theme.space.base * 7}px`;
|
|
317
377
|
}
|
|
318
|
-
const lineHeight = polished.math(`${height} - (${paddingVertical} * 2) - (${
|
|
319
|
-
const padding =
|
|
378
|
+
const lineHeight = polished.math(`${height} - (${paddingVertical} * 2) - (${theme.borderWidths.sm} * 2)`);
|
|
379
|
+
const padding = isBare ? '0' : `${polished.em(paddingVertical, fontSize)} ${polished.em(paddingHorizontal, fontSize)}`;
|
|
320
380
|
const swatchMarginVertical = polished.math(`(${lineHeight} - ${swatchHeight}) / 2`);
|
|
321
381
|
const swatchMarginHorizontal = polished.math(`${paddingVertical} + ${swatchMarginVertical} - ${paddingHorizontal}`);
|
|
322
|
-
|
|
382
|
+
const calendarPickerSize = `${theme.space.base * 5}px`;
|
|
383
|
+
const calendarPickerBackgroundSize = theme.iconSizes.md;
|
|
384
|
+
return styled.css(["padding:", ";min-height:", ";line-height:", ";font-size:", ";&::-ms-browse{font-size:", ";}&[type='date'],&[type='datetime-local'],&[type='file'],&[type='month'],&[type='time'],&[type='week']{max-height:", ";}&[type='file']{line-height:1;}@supports (-ms-ime-align:auto){&[type='color']{padding:", ";}}&::-moz-color-swatch{margin-top:", ";margin-left:", ";width:calc(100% + ", ");height:", ";}&::-webkit-calendar-picker-indicator{background-position:center;background-size:", ";padding:0;width:", ";height:", ";}&::-webkit-color-swatch{margin:", " ", ";}", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& ~ ", "{margin-top:", "px;}"], padding, isBare ? '1em' : height, reactTheming.getLineHeight(lineHeight, fontSize), fontSize, browseFontSize, height, isCompact ? '0 2px' : '1px 3px', swatchMarginVertical, swatchMarginHorizontal, polished.math(`${swatchMarginHorizontal} * -2`), swatchHeight, calendarPickerBackgroundSize, calendarPickerSize, calendarPickerSize, swatchMarginVertical, swatchMarginHorizontal, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, theme.space.base * (isCompact ? 1 : 2));
|
|
323
385
|
};
|
|
324
386
|
const StyledTextInput = styled__default.default.input.attrs(props => ({
|
|
325
387
|
'data-garden-id': COMPONENT_ID$z,
|
|
326
|
-
'data-garden-version': '9.0.0
|
|
388
|
+
'data-garden-version': '9.0.0',
|
|
327
389
|
'aria-invalid': isInvalid(props.validation)
|
|
328
390
|
})).withConfig({
|
|
329
391
|
displayName: "StyledTextInput",
|
|
330
|
-
componentId: "sc-
|
|
331
|
-
})(["appearance:none;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out,z-index 0.25s ease-in-out;direction:", ";border:", ";border-radius:", ";width:100%;box-sizing:border-box;vertical-align:middle;font-family:inherit;&::-ms-browse{border-radius:", ";}&::-ms-clear,&::-ms-reveal{display:none;}&::-moz-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch-wrapper{padding:0;}&::-webkit-clear-button,&::-webkit-inner-spin-button,&::-webkit-search-cancel-button,&::-webkit-search-results-button{display:none;}&::-webkit-datetime-edit{direction:", ";line-height:1;}
|
|
332
|
-
StyledTextInput.defaultProps = {
|
|
333
|
-
theme: reactTheming.DEFAULT_THEME
|
|
334
|
-
};
|
|
392
|
+
componentId: "sc-1r6733h-0"
|
|
393
|
+
})(["appearance:none;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out,z-index 0.25s ease-in-out;direction:", ";border:", ";border-radius:", ";width:100%;box-sizing:border-box;vertical-align:middle;font-family:inherit;&::-ms-browse{border-radius:", ";}&::-ms-clear,&::-ms-reveal{display:none;}&::-moz-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch-wrapper{padding:0;}&::-webkit-clear-button,&::-webkit-inner-spin-button,&::-webkit-search-cancel-button,&::-webkit-search-results-button{display:none;}&::-webkit-datetime-edit{direction:", ";line-height:1;}&::-webkit-calendar-picker-indicator{border-radius:100%;}&:invalid{box-shadow:none;}&[type='file']::-ms-value{display:none;}@media screen and (min--moz-device-pixel-ratio:0){&[type='number']{appearance:textfield;}}", ";", ";&:disabled{cursor:default;}", ";"], props => props.theme.rtl && 'rtl', props => props.isBare ? 'none' : props.theme.borders.sm, props => props.isBare ? '0' : props.theme.borderRadii.md, props => props.theme.borderRadii.sm, props => props.theme.borderRadii.sm, props => props.theme.borderRadii.sm, props => props.theme.rtl && 'rtl', sizeStyles$f, colorStyles$c, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$z, props));
|
|
335
394
|
|
|
336
395
|
const COMPONENT_ID$y = 'forms.textarea';
|
|
337
396
|
const hiddenStyles = `
|
|
@@ -346,26 +405,48 @@ const hiddenStyles = `
|
|
|
346
405
|
const StyledTextarea = styled__default.default(StyledTextInput).attrs({
|
|
347
406
|
as: 'textarea',
|
|
348
407
|
'data-garden-id': COMPONENT_ID$y,
|
|
349
|
-
'data-garden-version': '9.0.0
|
|
408
|
+
'data-garden-version': '9.0.0'
|
|
350
409
|
}).withConfig({
|
|
351
410
|
displayName: "StyledTextarea",
|
|
352
411
|
componentId: "sc-wxschl-0"
|
|
353
412
|
})(["resize:", ";overflow:auto;", ";", ";"], props => props.isResizable ? 'vertical' : 'none', props => props.isHidden && hiddenStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$y, props));
|
|
354
|
-
StyledTextarea.defaultProps = {
|
|
355
|
-
theme: reactTheming.DEFAULT_THEME
|
|
356
|
-
};
|
|
357
413
|
|
|
358
414
|
const COMPONENT_ID$x = 'forms.media_figure';
|
|
359
|
-
const colorStyles$
|
|
360
|
-
let
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
415
|
+
const colorStyles$b = _ref => {
|
|
416
|
+
let {
|
|
417
|
+
theme,
|
|
418
|
+
$isDisabled,
|
|
419
|
+
$isHovered,
|
|
420
|
+
$isFocused
|
|
421
|
+
} = _ref;
|
|
422
|
+
let color;
|
|
423
|
+
if ($isDisabled) {
|
|
424
|
+
color = reactTheming.getColor({
|
|
425
|
+
theme,
|
|
426
|
+
variable: 'foreground.disabled'
|
|
427
|
+
});
|
|
428
|
+
} else {
|
|
429
|
+
const options = {
|
|
430
|
+
theme,
|
|
431
|
+
variable: 'foreground.subtle'
|
|
432
|
+
};
|
|
433
|
+
if ($isHovered || $isFocused) {
|
|
434
|
+
color = reactTheming.getColor({
|
|
435
|
+
...options,
|
|
436
|
+
dark: {
|
|
437
|
+
offset: -100
|
|
438
|
+
},
|
|
439
|
+
light: {
|
|
440
|
+
offset: 100
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
} else {
|
|
444
|
+
color = reactTheming.getColor(options);
|
|
445
|
+
}
|
|
365
446
|
}
|
|
366
|
-
return styled.css(["color:", ";"],
|
|
447
|
+
return styled.css(["color:", ";"], color);
|
|
367
448
|
};
|
|
368
|
-
const sizeStyles$
|
|
449
|
+
const sizeStyles$e = props => {
|
|
369
450
|
const size = props.theme.iconSizes.md;
|
|
370
451
|
const marginFirst = `1px ${props.theme.space.base * 2}px auto 0`;
|
|
371
452
|
const marginLast = `1px 0 auto ${props.theme.space.base * 2}px`;
|
|
@@ -379,48 +460,53 @@ const sizeStyles$b = props => {
|
|
|
379
460
|
};
|
|
380
461
|
const StyledTextMediaFigure = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
381
462
|
'data-garden-id': COMPONENT_ID$x,
|
|
382
|
-
'data-garden-version': '9.0.0
|
|
463
|
+
'data-garden-version': '9.0.0'
|
|
383
464
|
}).withConfig({
|
|
384
465
|
displayName: "StyledTextMediaFigure",
|
|
385
466
|
componentId: "sc-1qepknj-0"
|
|
386
|
-
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`,
|
|
387
|
-
StyledTextMediaFigure.defaultProps = {
|
|
388
|
-
theme: reactTheming.DEFAULT_THEME
|
|
389
|
-
};
|
|
467
|
+
})(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$x, props));
|
|
390
468
|
|
|
391
469
|
const COMPONENT_ID$w = 'forms.faux_input';
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
warning: 'warningHue',
|
|
395
|
-
error: 'dangerHue'
|
|
396
|
-
};
|
|
397
|
-
function getValidationHue(validation) {
|
|
398
|
-
let defaultHue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'primaryHue';
|
|
399
|
-
if (validation) {
|
|
400
|
-
return VALIDATION_HUES[validation];
|
|
401
|
-
}
|
|
402
|
-
return defaultHue;
|
|
403
|
-
}
|
|
404
|
-
const colorStyles$8 = props => {
|
|
405
|
-
const {
|
|
470
|
+
const colorStyles$a = _ref => {
|
|
471
|
+
let {
|
|
406
472
|
theme,
|
|
407
473
|
validation,
|
|
408
474
|
focusInset,
|
|
409
475
|
isBare,
|
|
410
476
|
isFocused
|
|
411
|
-
} =
|
|
477
|
+
} = _ref;
|
|
478
|
+
let borderVariable;
|
|
479
|
+
let focusBorderColor;
|
|
480
|
+
if (validation) {
|
|
481
|
+
if (validation === 'success') {
|
|
482
|
+
borderVariable = 'border.successEmphasis';
|
|
483
|
+
} else if (validation === 'warning') {
|
|
484
|
+
borderVariable = 'border.warningEmphasis';
|
|
485
|
+
} else if (validation === 'error') {
|
|
486
|
+
borderVariable = 'border.dangerEmphasis';
|
|
487
|
+
}
|
|
488
|
+
focusBorderColor = reactTheming.getColor({
|
|
489
|
+
theme,
|
|
490
|
+
variable: borderVariable
|
|
491
|
+
});
|
|
492
|
+
} else {
|
|
493
|
+
borderVariable = 'border.primaryEmphasis';
|
|
494
|
+
focusBorderColor = reactTheming.getColor({
|
|
495
|
+
theme,
|
|
496
|
+
variable: borderVariable
|
|
497
|
+
});
|
|
498
|
+
}
|
|
412
499
|
return styled.css(["", ""], reactTheming.focusStyles({
|
|
413
500
|
theme,
|
|
414
501
|
inset: focusInset,
|
|
415
|
-
condition: !isBare,
|
|
416
502
|
color: {
|
|
417
|
-
|
|
418
|
-
shade: validation === 'warning' ? 700 : 600
|
|
503
|
+
variable: borderVariable
|
|
419
504
|
},
|
|
420
505
|
selector: isFocused ? '&' : '&:focus-within',
|
|
421
506
|
styles: {
|
|
422
|
-
borderColor:
|
|
423
|
-
}
|
|
507
|
+
borderColor: focusBorderColor
|
|
508
|
+
},
|
|
509
|
+
condition: !isBare
|
|
424
510
|
}));
|
|
425
511
|
};
|
|
426
512
|
const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props => ({
|
|
@@ -428,27 +514,21 @@ const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props
|
|
|
428
514
|
'aria-readonly': props.isReadOnly,
|
|
429
515
|
'aria-disabled': props.isDisabled,
|
|
430
516
|
'data-garden-id': COMPONENT_ID$w,
|
|
431
|
-
'data-garden-version': '9.0.0
|
|
517
|
+
'data-garden-version': '9.0.0'
|
|
432
518
|
})).withConfig({
|
|
433
519
|
displayName: "StyledTextFauxInput",
|
|
434
520
|
componentId: "sc-yqw7j9-0"
|
|
435
|
-
})(["display:", ";align-items:", ";cursor:", ";overflow:hidden;", " & > ", "{vertical-align:", ";", "{box-shadow:unset;}}& > ", "{flex-shrink:", ";}", ";"], props => props.mediaLayout ? 'inline-flex' : 'inline-block', props => props.mediaLayout && 'baseline', props => props.mediaLayout && !props.isDisabled ? 'text' : 'default', colorStyles$
|
|
436
|
-
StyledTextFauxInput.defaultProps = {
|
|
437
|
-
theme: reactTheming.DEFAULT_THEME
|
|
438
|
-
};
|
|
521
|
+
})(["display:", ";align-items:", ";cursor:", ";overflow:hidden;", " & > ", "{vertical-align:", ";", "{box-shadow:unset;}}& > ", "{flex-shrink:", ";}", ";"], props => props.mediaLayout ? 'inline-flex' : 'inline-block', props => props.mediaLayout && 'baseline', props => props.mediaLayout && !props.isDisabled ? 'text' : 'default', colorStyles$a, StyledTextInput, props => !props.mediaLayout && 'baseline', reactTheming.SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.mediaLayout && '0', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props));
|
|
439
522
|
|
|
440
523
|
const COMPONENT_ID$v = 'forms.media_input';
|
|
441
524
|
const StyledTextMediaInput = styled__default.default(StyledTextInput).attrs({
|
|
442
525
|
'data-garden-id': COMPONENT_ID$v,
|
|
443
|
-
'data-garden-version': '9.0.0
|
|
526
|
+
'data-garden-version': '9.0.0',
|
|
444
527
|
isBare: true
|
|
445
528
|
}).withConfig({
|
|
446
529
|
displayName: "StyledTextMediaInput",
|
|
447
530
|
componentId: "sc-12i9xfi-0"
|
|
448
531
|
})(["flex-grow:1;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
449
|
-
StyledTextMediaInput.defaultProps = {
|
|
450
|
-
theme: reactTheming.DEFAULT_THEME
|
|
451
|
-
};
|
|
452
532
|
|
|
453
533
|
const COMPONENT_ID$u = 'forms.input_group';
|
|
454
534
|
const positionStyles = props => {
|
|
@@ -462,17 +542,14 @@ const itemStyles = props => {
|
|
|
462
542
|
};
|
|
463
543
|
const StyledInputGroup = styled__default.default.div.attrs({
|
|
464
544
|
'data-garden-id': COMPONENT_ID$u,
|
|
465
|
-
'data-garden-version': '9.0.0
|
|
545
|
+
'data-garden-version': '9.0.0'
|
|
466
546
|
}).withConfig({
|
|
467
547
|
displayName: "StyledInputGroup",
|
|
468
548
|
componentId: "sc-kjh1f0-0"
|
|
469
549
|
})(["display:inline-flex;position:relative;flex-wrap:nowrap;align-items:stretch;z-index:0;width:100%;", ";", ";", ";"], props => positionStyles(props), props => itemStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$u, props));
|
|
470
|
-
StyledInputGroup.defaultProps = {
|
|
471
|
-
theme: reactTheming.DEFAULT_THEME
|
|
472
|
-
};
|
|
473
550
|
|
|
474
551
|
const COMPONENT_ID$t = 'forms.radio_label';
|
|
475
|
-
const sizeStyles$
|
|
552
|
+
const sizeStyles$d = props => {
|
|
476
553
|
const size = props.theme.space.base * 4;
|
|
477
554
|
const padding = size + props.theme.space.base * 2;
|
|
478
555
|
const lineHeight = props.theme.space.base * 5;
|
|
@@ -480,157 +557,238 @@ const sizeStyles$a = props => {
|
|
|
480
557
|
};
|
|
481
558
|
const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
|
|
482
559
|
'data-garden-id': COMPONENT_ID$t,
|
|
483
|
-
'data-garden-version': '9.0.0
|
|
560
|
+
'data-garden-version': '9.0.0',
|
|
484
561
|
isRadio: true
|
|
485
562
|
}).withConfig({
|
|
486
563
|
displayName: "StyledRadioLabel",
|
|
487
564
|
componentId: "sc-1aq2e5t-0"
|
|
488
|
-
})(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$
|
|
489
|
-
StyledRadioLabel.defaultProps = {
|
|
490
|
-
theme: reactTheming.DEFAULT_THEME
|
|
491
|
-
};
|
|
565
|
+
})(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$d(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
|
|
492
566
|
|
|
493
567
|
const COMPONENT_ID$s = 'forms.checkbox_label';
|
|
494
568
|
const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
|
|
495
569
|
'data-garden-id': COMPONENT_ID$s,
|
|
496
|
-
'data-garden-version': '9.0.0
|
|
570
|
+
'data-garden-version': '9.0.0'
|
|
497
571
|
}).withConfig({
|
|
498
572
|
displayName: "StyledCheckLabel",
|
|
499
573
|
componentId: "sc-x7nr1-0"
|
|
500
574
|
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
|
|
501
|
-
StyledCheckLabel.defaultProps = {
|
|
502
|
-
theme: reactTheming.DEFAULT_THEME
|
|
503
|
-
};
|
|
504
575
|
|
|
505
576
|
const COMPONENT_ID$r = 'forms.radio_hint';
|
|
506
577
|
const StyledRadioHint = styled__default.default(StyledHint).attrs({
|
|
507
578
|
'data-garden-id': COMPONENT_ID$r,
|
|
508
|
-
'data-garden-version': '9.0.0
|
|
579
|
+
'data-garden-version': '9.0.0'
|
|
509
580
|
}).withConfig({
|
|
510
581
|
displayName: "StyledRadioHint",
|
|
511
582
|
componentId: "sc-eo8twg-0"
|
|
512
583
|
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 6px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
513
|
-
StyledRadioHint.defaultProps = {
|
|
514
|
-
theme: reactTheming.DEFAULT_THEME
|
|
515
|
-
};
|
|
516
584
|
|
|
517
585
|
const COMPONENT_ID$q = 'forms.checkbox_hint';
|
|
518
586
|
const StyledCheckHint = styled__default.default(StyledRadioHint).attrs({
|
|
519
587
|
'data-garden-id': COMPONENT_ID$q,
|
|
520
|
-
'data-garden-version': '9.0.0
|
|
588
|
+
'data-garden-version': '9.0.0'
|
|
521
589
|
}).withConfig({
|
|
522
590
|
displayName: "StyledCheckHint",
|
|
523
591
|
componentId: "sc-1kl8e8c-0"
|
|
524
592
|
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
525
|
-
StyledCheckHint.defaultProps = {
|
|
526
|
-
theme: reactTheming.DEFAULT_THEME
|
|
527
|
-
};
|
|
528
593
|
|
|
529
594
|
const COMPONENT_ID$p = 'forms.radio';
|
|
530
|
-
const colorStyles$
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
|
|
595
|
+
const colorStyles$9 = _ref => {
|
|
596
|
+
let {
|
|
597
|
+
theme
|
|
598
|
+
} = _ref;
|
|
599
|
+
const borderColor = reactTheming.getColor({
|
|
600
|
+
theme,
|
|
601
|
+
variable: 'border.emphasis'
|
|
602
|
+
});
|
|
603
|
+
const backgroundColor = reactTheming.getColor({
|
|
604
|
+
theme,
|
|
605
|
+
variable: 'background.default'
|
|
606
|
+
});
|
|
607
|
+
const iconColor = reactTheming.getColor({
|
|
608
|
+
theme,
|
|
609
|
+
variable: 'foreground.onEmphasis'
|
|
610
|
+
});
|
|
611
|
+
const backgroundOptions = {
|
|
612
|
+
theme,
|
|
613
|
+
variable: 'background.primaryEmphasis'
|
|
614
|
+
};
|
|
615
|
+
const borderOptions = {
|
|
616
|
+
theme,
|
|
617
|
+
variable: 'border.primaryEmphasis'
|
|
618
|
+
};
|
|
619
|
+
const hoverBackgroundColor = reactTheming.getColor({
|
|
620
|
+
...backgroundOptions,
|
|
621
|
+
transparency: theme.opacity[100]
|
|
622
|
+
});
|
|
623
|
+
const hoverBorderColor = reactTheming.getColor(borderOptions);
|
|
537
624
|
const focusBorderColor = hoverBorderColor;
|
|
538
|
-
const activeBackgroundColor = reactTheming.
|
|
625
|
+
const activeBackgroundColor = reactTheming.getColor({
|
|
626
|
+
...backgroundOptions,
|
|
627
|
+
transparency: theme.opacity[200]
|
|
628
|
+
});
|
|
539
629
|
const activeBorderColor = focusBorderColor;
|
|
630
|
+
const checkedBackgroundColor = reactTheming.getColor(backgroundOptions);
|
|
540
631
|
const checkedBorderColor = focusBorderColor;
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
632
|
+
const offset100 = {
|
|
633
|
+
dark: {
|
|
634
|
+
offset: -100
|
|
635
|
+
},
|
|
636
|
+
light: {
|
|
637
|
+
offset: 100
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
const offset200 = {
|
|
641
|
+
dark: {
|
|
642
|
+
offset: -200
|
|
643
|
+
},
|
|
644
|
+
light: {
|
|
645
|
+
offset: 200
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
const checkedHoverBackgroundColor = reactTheming.getColor({
|
|
649
|
+
...backgroundOptions,
|
|
650
|
+
...offset100
|
|
651
|
+
});
|
|
652
|
+
const checkedHoverBorderColor = reactTheming.getColor({
|
|
653
|
+
...borderOptions,
|
|
654
|
+
...offset100
|
|
655
|
+
});
|
|
656
|
+
const checkedActiveBackgroundColor = reactTheming.getColor({
|
|
657
|
+
...backgroundOptions,
|
|
658
|
+
...offset200
|
|
659
|
+
});
|
|
660
|
+
const checkedActiveBorderColor = reactTheming.getColor({
|
|
661
|
+
...borderOptions,
|
|
662
|
+
...offset200
|
|
663
|
+
});
|
|
664
|
+
const disabledBackgroundColor = reactTheming.getColor({
|
|
665
|
+
theme,
|
|
666
|
+
variable: 'background.disabled',
|
|
667
|
+
transparency: theme.opacity[300]
|
|
668
|
+
});
|
|
547
669
|
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({
|
|
548
|
-
theme
|
|
670
|
+
theme,
|
|
549
671
|
styles: {
|
|
550
672
|
borderColor: focusBorderColor
|
|
551
673
|
},
|
|
552
674
|
selector: `&:focus-visible ~ ${StyledRadioLabel}::before`
|
|
553
675
|
}), StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
|
|
554
676
|
};
|
|
555
|
-
const sizeStyles$
|
|
556
|
-
|
|
557
|
-
|
|
677
|
+
const sizeStyles$c = _ref2 => {
|
|
678
|
+
let {
|
|
679
|
+
theme,
|
|
680
|
+
isCompact
|
|
681
|
+
} = _ref2;
|
|
682
|
+
const lineHeight = `${theme.space.base * 5}px`;
|
|
683
|
+
const size = `${theme.space.base * 4}px`;
|
|
558
684
|
const top = polished.math(`(${lineHeight} - ${size}) / 2`);
|
|
559
|
-
const iconSize =
|
|
685
|
+
const iconSize = theme.iconSizes.sm;
|
|
560
686
|
const iconPosition = polished.math(`(${size} - ${iconSize}) / 2`);
|
|
561
687
|
const iconTop = polished.math(`${iconPosition} + ${top}`);
|
|
562
|
-
const marginTop = `${
|
|
563
|
-
return styled.css(["top:", ";width:", ";height:", ";& ~ ", "::before{top:", ";background-size:", ";width:", ";height:", ";box-sizing:border-box;}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&& ~ ", " ~ ", "{margin-top:", ";}"], top, size, size, StyledRadioLabel, top,
|
|
688
|
+
const marginTop = `${theme.space.base * (isCompact ? 1 : 2)}px`;
|
|
689
|
+
return styled.css(["top:", ";width:", ";height:", ";& ~ ", "::before{top:", ";border:", ";background-size:", ";width:", ";height:", ";box-sizing:border-box;}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&& ~ ", " ~ ", "{margin-top:", ";}"], top, size, size, StyledRadioLabel, top, theme.borders.sm, theme.iconSizes.sm, size, size, StyledRadioLabel, iconTop, theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledRadioLabel, StyledMessage, marginTop);
|
|
564
690
|
};
|
|
565
691
|
const StyledRadioInput = styled__default.default.input.attrs({
|
|
566
692
|
'data-garden-id': COMPONENT_ID$p,
|
|
567
|
-
'data-garden-version': '9.0.0
|
|
693
|
+
'data-garden-version': '9.0.0',
|
|
568
694
|
type: 'radio'
|
|
569
695
|
}).withConfig({
|
|
570
696
|
displayName: "StyledRadioInput",
|
|
571
697
|
componentId: "sc-qsavpv-0"
|
|
572
|
-
})(["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
|
|
573
|
-
StyledRadioInput.defaultProps = {
|
|
574
|
-
theme: reactTheming.DEFAULT_THEME
|
|
575
|
-
};
|
|
698
|
+
})(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
576
699
|
|
|
577
700
|
const COMPONENT_ID$o = 'forms.checkbox';
|
|
578
|
-
const colorStyles$
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
701
|
+
const colorStyles$8 = _ref => {
|
|
702
|
+
let {
|
|
703
|
+
theme
|
|
704
|
+
} = _ref;
|
|
705
|
+
const backgroundOptions = {
|
|
706
|
+
theme,
|
|
707
|
+
variable: 'background.primaryEmphasis'
|
|
708
|
+
};
|
|
709
|
+
const borderOptions = {
|
|
710
|
+
theme,
|
|
711
|
+
variable: 'border.primaryEmphasis'
|
|
712
|
+
};
|
|
713
|
+
const indeterminateBackgroundColor = reactTheming.getColor(backgroundOptions);
|
|
714
|
+
const indeterminateBorderColor = reactTheming.getColor(borderOptions);
|
|
715
|
+
const offset100 = {
|
|
716
|
+
dark: {
|
|
717
|
+
offset: -100
|
|
718
|
+
},
|
|
719
|
+
light: {
|
|
720
|
+
offset: 100
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
const offset200 = {
|
|
724
|
+
dark: {
|
|
725
|
+
offset: -200
|
|
726
|
+
},
|
|
727
|
+
light: {
|
|
728
|
+
offset: 200
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
const indeterminateHoverBackgroundColor = reactTheming.getColor({
|
|
732
|
+
...backgroundOptions,
|
|
733
|
+
...offset100
|
|
734
|
+
});
|
|
735
|
+
const indeterminateHoverBorderColor = reactTheming.getColor({
|
|
736
|
+
...borderOptions,
|
|
737
|
+
...offset100
|
|
738
|
+
});
|
|
739
|
+
const indeterminateActiveBackgroundColor = reactTheming.getColor({
|
|
740
|
+
...backgroundOptions,
|
|
741
|
+
...offset200
|
|
742
|
+
});
|
|
743
|
+
const indeterminateActiveBorderColor = reactTheming.getColor({
|
|
744
|
+
...borderOptions,
|
|
745
|
+
...offset200
|
|
746
|
+
});
|
|
747
|
+
const indeterminateDisabledBackgroundColor = reactTheming.getColor({
|
|
748
|
+
theme,
|
|
749
|
+
variable: 'background.disabled',
|
|
750
|
+
transparency: theme.opacity[300]
|
|
751
|
+
});
|
|
752
|
+
return styled.css(["&:indeterminate ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:indeterminate ~ ", ":hover::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, indeterminateHoverBorderColor, indeterminateHoverBackgroundColor, StyledCheckLabel, indeterminateActiveBorderColor, indeterminateActiveBackgroundColor, StyledCheckLabel, indeterminateDisabledBackgroundColor);
|
|
586
753
|
};
|
|
587
754
|
const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
|
|
588
755
|
'data-garden-id': COMPONENT_ID$o,
|
|
589
|
-
'data-garden-version': '9.0.0
|
|
756
|
+
'data-garden-version': '9.0.0',
|
|
590
757
|
type: 'checkbox'
|
|
591
758
|
}).withConfig({
|
|
592
759
|
displayName: "StyledCheckInput",
|
|
593
760
|
componentId: "sc-176jxxe-0"
|
|
594
|
-
})(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md,
|
|
595
|
-
StyledCheckInput.defaultProps = {
|
|
596
|
-
theme: reactTheming.DEFAULT_THEME
|
|
597
|
-
};
|
|
761
|
+
})(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md, colorStyles$8, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
|
|
598
762
|
|
|
599
763
|
const COMPONENT_ID$n = 'forms.radio_message';
|
|
600
764
|
const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
|
|
601
765
|
'data-garden-id': COMPONENT_ID$n,
|
|
602
|
-
'data-garden-version': '9.0.0
|
|
766
|
+
'data-garden-version': '9.0.0'
|
|
603
767
|
}).withConfig({
|
|
604
768
|
displayName: "StyledRadioMessage",
|
|
605
769
|
componentId: "sc-1pmi0q8-0"
|
|
606
770
|
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 6px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
607
|
-
StyledRadioMessage.defaultProps = {
|
|
608
|
-
theme: reactTheming.DEFAULT_THEME
|
|
609
|
-
};
|
|
610
771
|
|
|
611
772
|
const COMPONENT_ID$m = 'forms.checkbox_message';
|
|
612
773
|
const StyledCheckMessage = styled__default.default(StyledRadioMessage).attrs({
|
|
613
774
|
'data-garden-id': COMPONENT_ID$m,
|
|
614
|
-
'data-garden-version': '9.0.0
|
|
775
|
+
'data-garden-version': '9.0.0'
|
|
615
776
|
}).withConfig({
|
|
616
777
|
displayName: "StyledCheckMessage",
|
|
617
778
|
componentId: "sc-s4p6kd-0"
|
|
618
779
|
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
619
|
-
StyledCheckMessage.defaultProps = {
|
|
620
|
-
theme: reactTheming.DEFAULT_THEME
|
|
621
|
-
};
|
|
622
780
|
|
|
623
|
-
var _path$
|
|
624
|
-
function _extends$
|
|
781
|
+
var _path$l;
|
|
782
|
+
function _extends$o() { return _extends$o = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$o.apply(null, arguments); }
|
|
625
783
|
var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
626
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
784
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
627
785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
628
786
|
width: 12,
|
|
629
787
|
height: 12,
|
|
630
788
|
focusable: "false",
|
|
631
789
|
viewBox: "0 0 12 12",
|
|
632
790
|
"aria-hidden": "true"
|
|
633
|
-
}, props), _path$
|
|
791
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
634
792
|
fill: "none",
|
|
635
793
|
stroke: "currentColor",
|
|
636
794
|
strokeLinecap: "round",
|
|
@@ -643,26 +801,23 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
|
643
801
|
const COMPONENT_ID$l = 'forms.check_svg';
|
|
644
802
|
const StyledCheckSvg = styled__default.default(SvgCheckSmFill).attrs({
|
|
645
803
|
'data-garden-id': COMPONENT_ID$l,
|
|
646
|
-
'data-garden-version': '9.0.0
|
|
804
|
+
'data-garden-version': '9.0.0'
|
|
647
805
|
}).withConfig({
|
|
648
806
|
displayName: "StyledCheckSvg",
|
|
649
807
|
componentId: "sc-fvxetk-0"
|
|
650
808
|
})(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":checked ~ ", " > &{opacity:1;}", ":indeterminate ~ ", " > &{opacity:0;}", ";"], StyledCheckInput, StyledCheckLabel, StyledCheckInput, StyledCheckLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
|
|
651
|
-
StyledCheckSvg.defaultProps = {
|
|
652
|
-
theme: reactTheming.DEFAULT_THEME
|
|
653
|
-
};
|
|
654
809
|
|
|
655
|
-
var _path$
|
|
656
|
-
function _extends$
|
|
810
|
+
var _path$k;
|
|
811
|
+
function _extends$n() { return _extends$n = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$n.apply(null, arguments); }
|
|
657
812
|
var SvgDashFill = function SvgDashFill(props) {
|
|
658
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
813
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
659
814
|
xmlns: "http://www.w3.org/2000/svg",
|
|
660
815
|
width: 12,
|
|
661
816
|
height: 12,
|
|
662
817
|
focusable: "false",
|
|
663
818
|
viewBox: "0 0 12 12",
|
|
664
819
|
"aria-hidden": "true"
|
|
665
|
-
}, props), _path$
|
|
820
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
666
821
|
stroke: "currentColor",
|
|
667
822
|
strokeLinecap: "round",
|
|
668
823
|
strokeWidth: 2,
|
|
@@ -673,98 +828,182 @@ var SvgDashFill = function SvgDashFill(props) {
|
|
|
673
828
|
const COMPONENT_ID$k = 'forms.dash_svg';
|
|
674
829
|
const StyledDashSvg = styled__default.default(SvgDashFill).attrs({
|
|
675
830
|
'data-garden-id': COMPONENT_ID$k,
|
|
676
|
-
'data-garden-version': '9.0.0
|
|
831
|
+
'data-garden-version': '9.0.0'
|
|
677
832
|
}).withConfig({
|
|
678
833
|
displayName: "StyledDashSvg",
|
|
679
834
|
componentId: "sc-z3vq71-0"
|
|
680
835
|
})(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":indeterminate ~ ", " > &{opacity:1;}", ";"], StyledCheckInput, StyledCheckLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
|
|
681
|
-
StyledDashSvg.defaultProps = {
|
|
682
|
-
theme: reactTheming.DEFAULT_THEME
|
|
683
|
-
};
|
|
684
836
|
|
|
685
837
|
const COMPONENT_ID$j = 'forms.file_upload';
|
|
686
|
-
const colorStyles$
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
838
|
+
const colorStyles$7 = _ref => {
|
|
839
|
+
let {
|
|
840
|
+
theme,
|
|
841
|
+
isDragging
|
|
842
|
+
} = _ref;
|
|
843
|
+
const borderOptions = {
|
|
844
|
+
theme,
|
|
845
|
+
variable: 'border.primaryEmphasis'
|
|
846
|
+
};
|
|
847
|
+
const backgroundOptions = {
|
|
848
|
+
theme,
|
|
849
|
+
variable: 'background.primaryEmphasis'
|
|
850
|
+
};
|
|
851
|
+
const foregroundOptions = {
|
|
852
|
+
theme,
|
|
853
|
+
variable: 'foreground.primary'
|
|
854
|
+
};
|
|
855
|
+
const offset100 = {
|
|
856
|
+
dark: {
|
|
857
|
+
offset: -100
|
|
858
|
+
},
|
|
859
|
+
light: {
|
|
860
|
+
offset: 100
|
|
696
861
|
}
|
|
697
|
-
}
|
|
862
|
+
};
|
|
863
|
+
const offset200 = {
|
|
864
|
+
dark: {
|
|
865
|
+
offset: -200
|
|
866
|
+
},
|
|
867
|
+
light: {
|
|
868
|
+
offset: 200
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
const borderColor = reactTheming.getColor({
|
|
872
|
+
theme,
|
|
873
|
+
variable: 'border.emphasis'
|
|
874
|
+
});
|
|
875
|
+
const foregroundColor = reactTheming.getColor(foregroundOptions);
|
|
876
|
+
const hoverBorderColor = reactTheming.getColor({
|
|
877
|
+
...borderOptions,
|
|
878
|
+
...offset100
|
|
879
|
+
});
|
|
880
|
+
const hoverBackgroundColor = reactTheming.getColor({
|
|
881
|
+
...backgroundOptions,
|
|
882
|
+
transparency: theme.opacity[100]
|
|
883
|
+
});
|
|
884
|
+
const hoverForegroundColor = reactTheming.getColor({
|
|
885
|
+
...foregroundOptions,
|
|
886
|
+
...offset100
|
|
887
|
+
});
|
|
888
|
+
const activeBorderColor = reactTheming.getColor({
|
|
889
|
+
...borderOptions,
|
|
890
|
+
...offset200
|
|
891
|
+
});
|
|
892
|
+
const activeBackgroundColor = reactTheming.getColor({
|
|
893
|
+
...backgroundOptions,
|
|
894
|
+
transparency: theme.opacity[200]
|
|
895
|
+
});
|
|
896
|
+
const activeForegroundColor = reactTheming.getColor({
|
|
897
|
+
...foregroundOptions,
|
|
898
|
+
...offset200
|
|
899
|
+
});
|
|
900
|
+
const disabledBorderColor = reactTheming.getColor({
|
|
901
|
+
theme,
|
|
902
|
+
variable: 'border.disabled'
|
|
903
|
+
});
|
|
904
|
+
const disabledBackgroundColor = reactTheming.getColor({
|
|
905
|
+
theme,
|
|
906
|
+
variable: 'background.disabled'
|
|
907
|
+
});
|
|
908
|
+
const disabledForegroundColor = reactTheming.getColor({
|
|
909
|
+
theme,
|
|
910
|
+
variable: 'foreground.disabled'
|
|
911
|
+
});
|
|
912
|
+
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:", ";}"], isDragging ? activeBorderColor : borderColor, isDragging ? activeBackgroundColor : undefined, isDragging ? activeForegroundColor : foregroundColor, hoverBorderColor, hoverBackgroundColor, hoverForegroundColor, reactTheming.focusStyles({
|
|
913
|
+
theme
|
|
914
|
+
}), activeBorderColor, activeBackgroundColor, activeForegroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
698
915
|
};
|
|
699
|
-
const sizeStyles$
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
const
|
|
916
|
+
const sizeStyles$b = _ref2 => {
|
|
917
|
+
let {
|
|
918
|
+
theme,
|
|
919
|
+
isCompact
|
|
920
|
+
} = _ref2;
|
|
921
|
+
const marginTop = `${theme.space.base * (isCompact ? 1 : 2)}px`;
|
|
922
|
+
const paddingHorizontal = `${isCompact ? 2 : 4}em`;
|
|
923
|
+
const paddingVertical = polished.math(`${theme.space.base * (isCompact ? 2.5 : 5)} - ${theme.borderWidths.sm}`);
|
|
924
|
+
const fontSize = theme.fontSizes.md;
|
|
925
|
+
const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
|
|
705
926
|
return styled.css(["padding:", " ", ";min-width:4em;line-height:", ";font-size:", ";", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], paddingVertical, paddingHorizontal, lineHeight, fontSize, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, marginTop);
|
|
706
927
|
};
|
|
707
928
|
const StyledFileUpload = styled__default.default.div.attrs({
|
|
708
929
|
'data-garden-id': COMPONENT_ID$j,
|
|
709
|
-
'data-garden-version': '9.0.0
|
|
930
|
+
'data-garden-version': '9.0.0'
|
|
710
931
|
}).withConfig({
|
|
711
932
|
displayName: "StyledFileUpload",
|
|
712
933
|
componentId: "sc-1rodjgn-0"
|
|
713
|
-
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;direction:", ";transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:dashed ", ";border-radius:", ";cursor:pointer;text-align:center;user-select:none;", ";&[aria-disabled='true']{cursor:default;}", ";", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => props.theme.borderWidths.sm, props => props.theme.borderRadii.md, sizeStyles$
|
|
714
|
-
StyledFileUpload.defaultProps = {
|
|
715
|
-
theme: reactTheming.DEFAULT_THEME
|
|
716
|
-
};
|
|
934
|
+
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;direction:", ";transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:dashed ", ";border-radius:", ";cursor:pointer;text-align:center;user-select:none;", ";&[aria-disabled='true']{cursor:default;}", ";", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => props.theme.borderWidths.sm, props => props.theme.borderRadii.md, sizeStyles$b, colorStyles$7, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
|
|
717
935
|
|
|
718
936
|
const COMPONENT_ID$i = 'forms.file.close';
|
|
719
937
|
const StyledFileClose = styled__default.default.button.attrs({
|
|
720
938
|
'data-garden-id': COMPONENT_ID$i,
|
|
721
|
-
'data-garden-version': '9.0.0
|
|
939
|
+
'data-garden-version': '9.0.0'
|
|
722
940
|
}).withConfig({
|
|
723
941
|
displayName: "StyledFileClose",
|
|
724
942
|
componentId: "sc-1m31jbf-0"
|
|
725
|
-
})(["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.
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
};
|
|
943
|
+
})(["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.getColor({
|
|
944
|
+
theme: props.theme,
|
|
945
|
+
variable: 'foreground.subtle'
|
|
946
|
+
}), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
|
|
729
947
|
|
|
730
948
|
const COMPONENT_ID$h = 'forms.file';
|
|
731
|
-
const colorStyles$
|
|
732
|
-
let
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
949
|
+
const colorStyles$6 = _ref => {
|
|
950
|
+
let {
|
|
951
|
+
theme,
|
|
952
|
+
focusInset,
|
|
953
|
+
validation
|
|
954
|
+
} = _ref;
|
|
955
|
+
let borderVariable;
|
|
956
|
+
let focusBorderVariable;
|
|
957
|
+
let foregroundVariable;
|
|
958
|
+
if (validation === 'success') {
|
|
959
|
+
borderVariable = 'border.successEmphasis';
|
|
960
|
+
focusBorderVariable = borderVariable;
|
|
961
|
+
foregroundVariable = 'foreground.success';
|
|
962
|
+
} else if (validation === 'error') {
|
|
963
|
+
borderVariable = 'border.dangerEmphasis';
|
|
964
|
+
focusBorderVariable = borderVariable;
|
|
965
|
+
foregroundVariable = 'foreground.danger';
|
|
743
966
|
} else {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
967
|
+
borderVariable = 'border.default';
|
|
968
|
+
focusBorderVariable = 'border.primaryEmphasis';
|
|
969
|
+
foregroundVariable = 'foreground.default';
|
|
747
970
|
}
|
|
971
|
+
const borderColor = reactTheming.getColor({
|
|
972
|
+
theme,
|
|
973
|
+
variable: borderVariable
|
|
974
|
+
});
|
|
975
|
+
const focusBorderColor = reactTheming.getColor({
|
|
976
|
+
theme,
|
|
977
|
+
variable: focusBorderVariable
|
|
978
|
+
});
|
|
979
|
+
const foregroundColor = reactTheming.getColor({
|
|
980
|
+
theme,
|
|
981
|
+
variable: foregroundVariable
|
|
982
|
+
});
|
|
748
983
|
return styled.css(["border-color:", ";color:", ";", ""], borderColor, foregroundColor, reactTheming.focusStyles({
|
|
749
|
-
theme
|
|
750
|
-
inset:
|
|
984
|
+
theme,
|
|
985
|
+
inset: focusInset,
|
|
751
986
|
color: {
|
|
752
|
-
|
|
987
|
+
variable: focusBorderVariable
|
|
753
988
|
},
|
|
754
989
|
styles: {
|
|
755
990
|
borderColor: focusBorderColor
|
|
756
991
|
}
|
|
757
992
|
}));
|
|
758
993
|
};
|
|
759
|
-
const sizeStyles$
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
994
|
+
const sizeStyles$a = _ref2 => {
|
|
995
|
+
let {
|
|
996
|
+
theme,
|
|
997
|
+
isCompact
|
|
998
|
+
} = _ref2;
|
|
999
|
+
const size = `${theme.space.base * (isCompact ? 7 : 10)}px`;
|
|
1000
|
+
const spacing = `${theme.space.base * (isCompact ? 2 : 3)}px`;
|
|
1001
|
+
const fontSize = theme.fontSizes.md;
|
|
1002
|
+
const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
|
|
764
1003
|
return `
|
|
765
1004
|
box-sizing: border-box;
|
|
766
|
-
border: ${
|
|
767
|
-
border-radius: ${
|
|
1005
|
+
border: ${theme.borders.sm};
|
|
1006
|
+
border-radius: ${theme.borderRadii.md};
|
|
768
1007
|
padding: 0 ${spacing};
|
|
769
1008
|
height: ${size};
|
|
770
1009
|
line-height: ${lineHeight};
|
|
@@ -777,73 +1016,81 @@ const sizeStyles$7 = props => {
|
|
|
777
1016
|
& > ${StyledFileClose} {
|
|
778
1017
|
width: ${size};
|
|
779
1018
|
height: ${size};
|
|
780
|
-
margin-${
|
|
1019
|
+
margin-${theme.rtl ? 'left' : 'right'}: -${spacing};
|
|
781
1020
|
}
|
|
782
1021
|
`;
|
|
783
1022
|
};
|
|
784
1023
|
const StyledFile = styled__default.default.div.attrs({
|
|
785
1024
|
'data-garden-id': COMPONENT_ID$h,
|
|
786
|
-
'data-garden-version': '9.0.0
|
|
1025
|
+
'data-garden-version': '9.0.0'
|
|
787
1026
|
}).withConfig({
|
|
788
1027
|
displayName: "StyledFile",
|
|
789
1028
|
componentId: "sc-195lzp1-0"
|
|
790
|
-
})(["display:flex;position:relative;flex-wrap:nowrap;align-items:center;transition:box-shadow 0.1s ease-in-out;", ";", ";& > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& > [role='progressbar']{position:absolute;bottom:0;left:0;transition:opacity 0.2s ease-in-out;margin:0;border-top-left-radius:0;border-top-right-radius:0;width:100%;& > div{border-top-", "-radius:0;}}& > [role='progressbar'][aria-valuenow='0'],& > [role='progressbar'][aria-valuenow='100']{opacity:0;}", ";"], sizeStyles$
|
|
791
|
-
StyledFile.defaultProps = {
|
|
792
|
-
theme: reactTheming.DEFAULT_THEME
|
|
793
|
-
};
|
|
1029
|
+
})(["display:flex;position:relative;flex-wrap:nowrap;align-items:center;transition:box-shadow 0.1s ease-in-out;", ";", ";& > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& > [role='progressbar']{position:absolute;bottom:0;left:0;transition:opacity 0.2s ease-in-out;margin:0;border-top-left-radius:0;border-top-right-radius:0;width:100%;& > div{border-top-", "-radius:0;}}& > [role='progressbar'][aria-valuenow='0'],& > [role='progressbar'][aria-valuenow='100']{opacity:0;}", ";"], sizeStyles$a, colorStyles$6, props => props.theme.rtl ? 'right' : 'left', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
|
|
794
1030
|
|
|
795
1031
|
const COMPONENT_ID$g = 'forms.file.delete';
|
|
796
1032
|
const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
|
|
797
1033
|
'data-garden-id': COMPONENT_ID$g,
|
|
798
|
-
'data-garden-version': '9.0.0
|
|
1034
|
+
'data-garden-version': '9.0.0'
|
|
799
1035
|
}).withConfig({
|
|
800
1036
|
displayName: "StyledFileDelete",
|
|
801
1037
|
componentId: "sc-a8nnhx-0"
|
|
802
|
-
})(["color:", ";", ";"], props => reactTheming.
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
};
|
|
1038
|
+
})(["color:", ";", ";"], props => reactTheming.getColor({
|
|
1039
|
+
theme: props.theme,
|
|
1040
|
+
variable: 'foreground.danger'
|
|
1041
|
+
}), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
|
|
806
1042
|
|
|
807
1043
|
const COMPONENT_ID$f = 'forms.file.icon';
|
|
1044
|
+
const colorStyles$5 = _ref => {
|
|
1045
|
+
let {
|
|
1046
|
+
theme,
|
|
1047
|
+
$validation
|
|
1048
|
+
} = _ref;
|
|
1049
|
+
const color = $validation ? undefined : reactTheming.getColor({
|
|
1050
|
+
theme,
|
|
1051
|
+
variable: 'foreground.subtle'
|
|
1052
|
+
});
|
|
1053
|
+
return styled.css(["color:", ";"], color);
|
|
1054
|
+
};
|
|
1055
|
+
const sizeStyles$9 = _ref2 => {
|
|
1056
|
+
let {
|
|
1057
|
+
$isCompact,
|
|
1058
|
+
theme
|
|
1059
|
+
} = _ref2;
|
|
1060
|
+
const width = $isCompact ? theme.iconSizes.sm : theme.iconSizes.md;
|
|
1061
|
+
const margin = `${theme.space.base * 2}px`;
|
|
1062
|
+
return styled.css(["width:", ";margin-", ":", ";"], width, theme.rtl ? 'left' : 'right', margin);
|
|
1063
|
+
};
|
|
808
1064
|
const StyledFileIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
809
1065
|
'data-garden-id': COMPONENT_ID$f,
|
|
810
|
-
'data-garden-version': '9.0.0
|
|
1066
|
+
'data-garden-version': '9.0.0'
|
|
811
1067
|
}).withConfig({
|
|
812
1068
|
displayName: "StyledFileIcon",
|
|
813
1069
|
componentId: "sc-7b3q0c-0"
|
|
814
|
-
})(["flex-shrink:0;
|
|
815
|
-
StyledFileIcon.defaultProps = {
|
|
816
|
-
theme: reactTheming.DEFAULT_THEME
|
|
817
|
-
};
|
|
1070
|
+
})(["flex-shrink:0;", ";", ";", ";"], sizeStyles$9, colorStyles$5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
|
|
818
1071
|
|
|
819
1072
|
const COMPONENT_ID$e = 'forms.file_list';
|
|
820
1073
|
const StyledFileList = styled__default.default.ul.attrs({
|
|
821
1074
|
'data-garden-id': COMPONENT_ID$e,
|
|
822
|
-
'data-garden-version': '9.0.0
|
|
1075
|
+
'data-garden-version': '9.0.0'
|
|
823
1076
|
}).withConfig({
|
|
824
1077
|
displayName: "StyledFileList",
|
|
825
1078
|
componentId: "sc-gbahjg-0"
|
|
826
1079
|
})(["margin:0;padding:0;list-style:none;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
|
|
827
|
-
StyledFileList.defaultProps = {
|
|
828
|
-
theme: reactTheming.DEFAULT_THEME
|
|
829
|
-
};
|
|
830
1080
|
|
|
831
1081
|
const COMPONENT_ID$d = 'forms.file_list.item';
|
|
832
1082
|
const StyledFileListItem = styled__default.default.li.attrs({
|
|
833
1083
|
'data-garden-id': COMPONENT_ID$d,
|
|
834
|
-
'data-garden-version': '9.0.0
|
|
1084
|
+
'data-garden-version': '9.0.0'
|
|
835
1085
|
}).withConfig({
|
|
836
1086
|
displayName: "StyledFileListItem",
|
|
837
1087
|
componentId: "sc-1ova3lo-0"
|
|
838
1088
|
})(["&:not(:first-child),", " ~ ", " > &:first-child{margin-top:", "px;}", ";"], StyledFileUpload, StyledFileList, props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
|
|
839
|
-
StyledFileListItem.defaultProps = {
|
|
840
|
-
theme: reactTheming.DEFAULT_THEME
|
|
841
|
-
};
|
|
842
1089
|
|
|
843
1090
|
var _circle$3;
|
|
844
|
-
function _extends$
|
|
1091
|
+
function _extends$m() { return _extends$m = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$m.apply(null, arguments); }
|
|
845
1092
|
var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
846
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1093
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
847
1094
|
xmlns: "http://www.w3.org/2000/svg",
|
|
848
1095
|
width: 12,
|
|
849
1096
|
height: 12,
|
|
@@ -861,87 +1108,97 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
|
861
1108
|
const COMPONENT_ID$c = 'forms.radio_svg';
|
|
862
1109
|
const StyledRadioSvg = styled__default.default(SvgCircleSmFill$1).attrs({
|
|
863
1110
|
'data-garden-id': COMPONENT_ID$c,
|
|
864
|
-
'data-garden-version': '9.0.0
|
|
1111
|
+
'data-garden-version': '9.0.0'
|
|
865
1112
|
}).withConfig({
|
|
866
1113
|
displayName: "StyledRadioSvg",
|
|
867
1114
|
componentId: "sc-1r1qtr1-0"
|
|
868
1115
|
})(["transition:opacity 0.25s ease-in-out;opacity:0;", ":checked ~ ", " > &{opacity:1;}", ";"], StyledRadioInput, StyledRadioLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
|
|
869
|
-
StyledRadioSvg.defaultProps = {
|
|
870
|
-
theme: reactTheming.DEFAULT_THEME
|
|
871
|
-
};
|
|
872
1116
|
|
|
873
1117
|
const COMPONENT_ID$b = 'forms.toggle_label';
|
|
874
|
-
const sizeStyles$
|
|
1118
|
+
const sizeStyles$8 = props => {
|
|
875
1119
|
const size = props.theme.space.base * 10;
|
|
876
1120
|
const padding = size + props.theme.space.base * 2;
|
|
877
1121
|
return styled.css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size);
|
|
878
1122
|
};
|
|
879
1123
|
const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
|
|
880
1124
|
'data-garden-id': COMPONENT_ID$b,
|
|
881
|
-
'data-garden-version': '9.0.0
|
|
1125
|
+
'data-garden-version': '9.0.0'
|
|
882
1126
|
}).withConfig({
|
|
883
1127
|
displayName: "StyledToggleLabel",
|
|
884
1128
|
componentId: "sc-e0asdk-0"
|
|
885
|
-
})(["", ";", ";"], props => sizeStyles$
|
|
886
|
-
StyledToggleLabel.defaultProps = {
|
|
887
|
-
theme: reactTheming.DEFAULT_THEME
|
|
888
|
-
};
|
|
1129
|
+
})(["", ";", ";"], props => sizeStyles$8(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
|
|
889
1130
|
|
|
890
1131
|
const COMPONENT_ID$a = 'forms.toggle_hint';
|
|
891
1132
|
const StyledToggleHint = styled__default.default(StyledHint).attrs({
|
|
892
1133
|
'data-garden-id': COMPONENT_ID$a,
|
|
893
|
-
'data-garden-version': '9.0.0
|
|
1134
|
+
'data-garden-version': '9.0.0'
|
|
894
1135
|
}).withConfig({
|
|
895
1136
|
displayName: "StyledToggleHint",
|
|
896
1137
|
componentId: "sc-nziggu-0"
|
|
897
1138
|
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 12px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
|
|
898
|
-
StyledToggleHint.defaultProps = {
|
|
899
|
-
theme: reactTheming.DEFAULT_THEME
|
|
900
|
-
};
|
|
901
1139
|
|
|
902
1140
|
const COMPONENT_ID$9 = 'forms.toggle';
|
|
903
|
-
const colorStyles$
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
const
|
|
1141
|
+
const colorStyles$4 = _ref => {
|
|
1142
|
+
let {
|
|
1143
|
+
theme
|
|
1144
|
+
} = _ref;
|
|
1145
|
+
const backgroundOptions = {
|
|
1146
|
+
theme,
|
|
1147
|
+
variable: 'background.emphasis'
|
|
1148
|
+
};
|
|
1149
|
+
const backgroundColor = reactTheming.getColor(backgroundOptions);
|
|
1150
|
+
const hoverBackgroundColor = reactTheming.getColor({
|
|
1151
|
+
...backgroundOptions,
|
|
1152
|
+
dark: {
|
|
1153
|
+
offset: -100
|
|
1154
|
+
},
|
|
1155
|
+
light: {
|
|
1156
|
+
offset: 100
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
const activeBackgroundColor = reactTheming.getColor({
|
|
1160
|
+
...backgroundOptions,
|
|
1161
|
+
dark: {
|
|
1162
|
+
offset: -200
|
|
1163
|
+
},
|
|
1164
|
+
light: {
|
|
1165
|
+
offset: 200
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
908
1168
|
return styled.css(["& ~ ", "::before{background-color:", ";}&:enabled ~ ", ":hover::before{background-color:", ";}&:enabled ~ ", ":active::before{background-color:", ";}"], StyledToggleLabel, backgroundColor, StyledToggleLabel, hoverBackgroundColor, StyledToggleLabel, activeBackgroundColor);
|
|
909
1169
|
};
|
|
910
|
-
const sizeStyles$
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
1170
|
+
const sizeStyles$7 = _ref2 => {
|
|
1171
|
+
let {
|
|
1172
|
+
theme
|
|
1173
|
+
} = _ref2;
|
|
1174
|
+
const height = `${theme.space.base * 5}px`;
|
|
1175
|
+
const width = `${theme.space.base * 10}px`;
|
|
1176
|
+
const iconSize = theme.iconSizes.md;
|
|
914
1177
|
const iconPosition = polished.math(`(${height} - ${iconSize}) / 2`);
|
|
915
1178
|
const checkedIconPosition = polished.math(`${width} - ${iconSize} - ${iconPosition}`);
|
|
916
|
-
return styled.css(["top:0;width:", ";height:", ";& ~ ", "::before{width:", ";height:", ";}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&:checked ~ ", " > svg{", ":", ";}"], width, height, StyledToggleLabel, width, height, StyledToggleLabel, iconPosition,
|
|
1179
|
+
return styled.css(["top:0;width:", ";height:", ";& ~ ", "::before{width:", ";height:", ";}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&:checked ~ ", " > svg{", ":", ";}"], width, height, StyledToggleLabel, width, height, StyledToggleLabel, iconPosition, theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledToggleLabel, theme.rtl ? 'right' : 'left', checkedIconPosition);
|
|
917
1180
|
};
|
|
918
1181
|
const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
|
|
919
1182
|
'data-garden-id': COMPONENT_ID$9,
|
|
920
|
-
'data-garden-version': '9.0.0
|
|
1183
|
+
'data-garden-version': '9.0.0'
|
|
921
1184
|
}).withConfig({
|
|
922
1185
|
displayName: "StyledToggleInput",
|
|
923
1186
|
componentId: "sc-sgp47s-0"
|
|
924
|
-
})(["& ~ ", "::before{top:0;transition:box-shadow .1s ease-in-out,background-color .15s ease-in-out,color .25s ease-in-out;border:none;border-radius:100px;}", ";", ";", ";"], StyledToggleLabel,
|
|
925
|
-
StyledToggleInput.defaultProps = {
|
|
926
|
-
theme: reactTheming.DEFAULT_THEME
|
|
927
|
-
};
|
|
1187
|
+
})(["& ~ ", "::before{top:0;transition:box-shadow .1s ease-in-out,background-color .15s ease-in-out,color .25s ease-in-out;border:none;border-radius:100px;}", ";", ";", ";"], StyledToggleLabel, sizeStyles$7, colorStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
|
|
928
1188
|
|
|
929
1189
|
const COMPONENT_ID$8 = 'forms.toggle_message';
|
|
930
1190
|
const StyledToggleMessage = styled__default.default(StyledMessage).attrs({
|
|
931
1191
|
'data-garden-id': COMPONENT_ID$8,
|
|
932
|
-
'data-garden-version': '9.0.0
|
|
1192
|
+
'data-garden-version': '9.0.0'
|
|
933
1193
|
}).withConfig({
|
|
934
1194
|
displayName: "StyledToggleMessage",
|
|
935
1195
|
componentId: "sc-13vuvl1-0"
|
|
936
1196
|
})(["padding-", ":", ";& ", "{", ":", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 12px`), StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 10px - ${props.theme.iconSizes.md}`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
|
|
937
|
-
StyledToggleMessage.defaultProps = {
|
|
938
|
-
theme: reactTheming.DEFAULT_THEME
|
|
939
|
-
};
|
|
940
1197
|
|
|
941
1198
|
var _circle$2;
|
|
942
|
-
function _extends$
|
|
1199
|
+
function _extends$l() { return _extends$l = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$l.apply(null, arguments); }
|
|
943
1200
|
var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
944
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1201
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
945
1202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
946
1203
|
width: 16,
|
|
947
1204
|
height: 16,
|
|
@@ -959,49 +1216,72 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
|
959
1216
|
const COMPONENT_ID$7 = 'forms.toggle_svg';
|
|
960
1217
|
const StyledToggleSvg = styled__default.default(SvgCircleSmFill).attrs({
|
|
961
1218
|
'data-garden-id': COMPONENT_ID$7,
|
|
962
|
-
'data-garden-version': '9.0.0
|
|
1219
|
+
'data-garden-version': '9.0.0'
|
|
963
1220
|
}).withConfig({
|
|
964
1221
|
displayName: "StyledToggleSvg",
|
|
965
1222
|
componentId: "sc-162xbyx-0"
|
|
966
1223
|
})(["transition:all 0.15s ease-in-out;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
|
|
967
|
-
StyledToggleSvg.defaultProps = {
|
|
968
|
-
theme: reactTheming.DEFAULT_THEME
|
|
969
|
-
};
|
|
970
1224
|
|
|
971
1225
|
const COMPONENT_ID$6 = 'forms.select';
|
|
972
|
-
const colorStyles$
|
|
973
|
-
|
|
974
|
-
|
|
1226
|
+
const colorStyles$3 = _ref => {
|
|
1227
|
+
let {
|
|
1228
|
+
theme
|
|
1229
|
+
} = _ref;
|
|
1230
|
+
const color = reactTheming.getColor({
|
|
1231
|
+
theme,
|
|
1232
|
+
variable: 'foreground.subtle',
|
|
1233
|
+
dark: {
|
|
1234
|
+
offset: -100
|
|
1235
|
+
},
|
|
1236
|
+
light: {
|
|
1237
|
+
offset: 100
|
|
1238
|
+
}
|
|
1239
|
+
});
|
|
1240
|
+
const disabledColor = reactTheming.getColor({
|
|
1241
|
+
theme,
|
|
1242
|
+
variable: 'foreground.disabled'
|
|
1243
|
+
});
|
|
1244
|
+
return styled.css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", "{color:", ";}&:disabled + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color, StyledTextMediaFigure, disabledColor);
|
|
975
1245
|
};
|
|
976
|
-
const sizeStyles$
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1246
|
+
const sizeStyles$6 = _ref2 => {
|
|
1247
|
+
let {
|
|
1248
|
+
theme,
|
|
1249
|
+
isBare,
|
|
1250
|
+
isCompact
|
|
1251
|
+
} = _ref2;
|
|
1252
|
+
const padding = isBare ? undefined : polished.math(`${theme.iconSizes.md} + ${theme.space.base * 5}`);
|
|
1253
|
+
const iconVerticalPosition = `${theme.space.base * (isCompact ? 1.5 : 2.5) + 1}px`;
|
|
1254
|
+
const iconHorizontalPosition = `${theme.space.base * 3}px`;
|
|
1255
|
+
return styled.css(["padding-", ":", ";& + ", "{top:", ";", ":", ";}"], theme.rtl ? 'left' : 'right', padding, StyledTextMediaFigure, iconVerticalPosition, theme.rtl ? 'left' : 'right', iconHorizontalPosition);
|
|
981
1256
|
};
|
|
982
1257
|
const StyledSelect = styled__default.default(StyledTextInput).attrs({
|
|
983
1258
|
'data-garden-id': COMPONENT_ID$6,
|
|
984
|
-
'data-garden-version': '9.0.0
|
|
1259
|
+
'data-garden-version': '9.0.0',
|
|
985
1260
|
as: 'select'
|
|
986
1261
|
}).withConfig({
|
|
987
1262
|
displayName: "StyledSelect",
|
|
988
1263
|
componentId: "sc-8xdxpt-0"
|
|
989
|
-
})(["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;}"],
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
};
|
|
1264
|
+
})(["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;}"], sizeStyles$6, colorStyles$3, props => reactTheming.getColor({
|
|
1265
|
+
theme: props.theme,
|
|
1266
|
+
variable: 'foreground.default'
|
|
1267
|
+
}), StyledTextMediaFigure);
|
|
993
1268
|
|
|
994
1269
|
const COMPONENT_ID$5 = 'forms.select_wrapper';
|
|
1270
|
+
const sizeStyles$5 = _ref => {
|
|
1271
|
+
let {
|
|
1272
|
+
theme,
|
|
1273
|
+
isCompact
|
|
1274
|
+
} = _ref;
|
|
1275
|
+
const height = `${theme.space.base * (isCompact ? 8 : 10)}px`;
|
|
1276
|
+
return styled.css(["max-height:", ";"], height);
|
|
1277
|
+
};
|
|
995
1278
|
const StyledSelectWrapper = styled__default.default(StyledTextFauxInput).attrs({
|
|
996
1279
|
'data-garden-id': COMPONENT_ID$5,
|
|
997
|
-
'data-garden-version': '9.0.0
|
|
1280
|
+
'data-garden-version': '9.0.0'
|
|
998
1281
|
}).withConfig({
|
|
999
1282
|
displayName: "StyledSelectWrapper",
|
|
1000
1283
|
componentId: "sc-i7b6hw-0"
|
|
1001
|
-
})(["position:relative;padding:0;overflow:visible;& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
|
|
1002
|
-
StyledSelectWrapper.defaultProps = {
|
|
1003
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1004
|
-
};
|
|
1284
|
+
})(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles$5, StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
|
|
1005
1285
|
|
|
1006
1286
|
const COMPONENT_ID$4 = 'forms.range';
|
|
1007
1287
|
const thumbStyles = function (styles) {
|
|
@@ -1048,28 +1328,74 @@ const trackLowerStyles = function (styles) {
|
|
|
1048
1328
|
}
|
|
1049
1329
|
`;
|
|
1050
1330
|
};
|
|
1051
|
-
const colorStyles$
|
|
1052
|
-
|
|
1053
|
-
|
|
1331
|
+
const colorStyles$2 = _ref => {
|
|
1332
|
+
let {
|
|
1333
|
+
theme,
|
|
1334
|
+
hasLowerTrack
|
|
1335
|
+
} = _ref;
|
|
1336
|
+
const options = {
|
|
1337
|
+
theme,
|
|
1338
|
+
variable: 'background.primaryEmphasis'
|
|
1339
|
+
};
|
|
1340
|
+
const thumbBackgroundColor = reactTheming.getColor(options);
|
|
1054
1341
|
const thumbBorderColor = thumbBackgroundColor;
|
|
1055
|
-
const thumbBoxShadow =
|
|
1342
|
+
const thumbBoxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColor({
|
|
1343
|
+
variable: 'shadow.small',
|
|
1344
|
+
theme
|
|
1345
|
+
}));
|
|
1056
1346
|
const thumbFocusBoxShadow = reactTheming.getFocusBoxShadow({
|
|
1057
|
-
theme
|
|
1347
|
+
theme
|
|
1348
|
+
});
|
|
1349
|
+
const thumbActiveBackgroundColor = reactTheming.getColor({
|
|
1350
|
+
...options,
|
|
1351
|
+
dark: {
|
|
1352
|
+
offset: -200
|
|
1353
|
+
},
|
|
1354
|
+
light: {
|
|
1355
|
+
offset: 200
|
|
1356
|
+
}
|
|
1058
1357
|
});
|
|
1059
|
-
const thumbActiveBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
1060
1358
|
const thumbActiveBorderColor = thumbBorderColor;
|
|
1061
|
-
const thumbDisabledBackgroundColor = reactTheming.
|
|
1359
|
+
const thumbDisabledBackgroundColor = reactTheming.getColor({
|
|
1360
|
+
theme,
|
|
1361
|
+
variable: 'border.emphasis'
|
|
1362
|
+
});
|
|
1062
1363
|
const thumbDisabledBorderColor = thumbDisabledBackgroundColor;
|
|
1063
|
-
const thumbHoverBackgroundColor =
|
|
1364
|
+
const thumbHoverBackgroundColor = reactTheming.getColor({
|
|
1365
|
+
...options,
|
|
1366
|
+
dark: {
|
|
1367
|
+
offset: -100
|
|
1368
|
+
},
|
|
1369
|
+
light: {
|
|
1370
|
+
offset: 100
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1064
1373
|
const thumbHoverBorderColor = thumbHoverBackgroundColor;
|
|
1065
|
-
const trackBackgroundColor = reactTheming.
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1374
|
+
const trackBackgroundColor = reactTheming.getColor({
|
|
1375
|
+
theme,
|
|
1376
|
+
variable: 'border.emphasis',
|
|
1377
|
+
dark: {
|
|
1378
|
+
offset: 100
|
|
1379
|
+
},
|
|
1380
|
+
light: {
|
|
1381
|
+
offset: -200
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1384
|
+
const trackLowerBackgroundColor = hasLowerTrack ? thumbBackgroundColor : '';
|
|
1385
|
+
const trackBackgroundImage = hasLowerTrack ? `linear-gradient(${trackLowerBackgroundColor}, ${trackLowerBackgroundColor})` : '';
|
|
1386
|
+
const trackDisabledBackgroundColor = reactTheming.getColor({
|
|
1387
|
+
theme,
|
|
1388
|
+
variable: 'background.disabled',
|
|
1389
|
+
transparency: theme.opacity[200]
|
|
1390
|
+
});
|
|
1391
|
+
const trackDisabledLowerBackgroundColor = hasLowerTrack ? reactTheming.getColor({
|
|
1392
|
+
theme,
|
|
1393
|
+
variable: 'border.emphasis'
|
|
1394
|
+
}) : '';
|
|
1395
|
+
const trackDisabledBackgroundImage = hasLowerTrack ? `linear-gradient(${trackDisabledLowerBackgroundColor}, ${trackDisabledLowerBackgroundColor})` : '';
|
|
1070
1396
|
return styled.css(["", " ", " ", " ", " ", " ", " ", " ", " ", ""], trackStyles(`
|
|
1071
1397
|
background-color: ${trackBackgroundColor};
|
|
1072
|
-
background-image: ${trackBackgroundImage}; /*
|
|
1398
|
+
background-image: ${trackBackgroundImage}; /* [1] */
|
|
1073
1399
|
`), thumbStyles(`
|
|
1074
1400
|
border-color: ${thumbBorderColor};
|
|
1075
1401
|
box-shadow: ${thumbBoxShadow};
|
|
@@ -1088,6 +1414,7 @@ const colorStyles$1 = props => {
|
|
|
1088
1414
|
border-color: ${thumbActiveBorderColor};
|
|
1089
1415
|
background-color: ${thumbActiveBackgroundColor};
|
|
1090
1416
|
`, ':active'), trackStyles(`
|
|
1417
|
+
background-color: ${trackDisabledBackgroundColor};
|
|
1091
1418
|
background-image: ${trackDisabledBackgroundImage};
|
|
1092
1419
|
`, ':disabled'), thumbStyles(`
|
|
1093
1420
|
border-color: ${thumbDisabledBorderColor};
|
|
@@ -1097,29 +1424,32 @@ const colorStyles$1 = props => {
|
|
|
1097
1424
|
background-color: ${trackDisabledLowerBackgroundColor};
|
|
1098
1425
|
`, ':disabled'));
|
|
1099
1426
|
};
|
|
1100
|
-
const sizeStyles$
|
|
1101
|
-
|
|
1102
|
-
|
|
1427
|
+
const sizeStyles$4 = _ref2 => {
|
|
1428
|
+
let {
|
|
1429
|
+
theme
|
|
1430
|
+
} = _ref2;
|
|
1431
|
+
const thumbSize = `${theme.space.base * 5}px`;
|
|
1432
|
+
const trackHeight = `${theme.space.base * 1.5}px`;
|
|
1103
1433
|
const trackBorderRadius = trackHeight;
|
|
1104
|
-
const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${
|
|
1434
|
+
const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${theme.shadowWidths.md}`);
|
|
1105
1435
|
const thumbMargin = polished.math(`(${trackHeight} - ${thumbSize}) / 2`);
|
|
1106
|
-
return styled.css(["", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}", ";", " ", ""], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage,
|
|
1436
|
+
return styled.css(["", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}", ";", " ", ""], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, `${theme.space.base * 2}px`, trackStyles(`
|
|
1107
1437
|
margin: ${trackMargin} 0;
|
|
1108
1438
|
border-radius: ${trackBorderRadius};
|
|
1109
1439
|
height: ${trackHeight};
|
|
1110
1440
|
`), thumbStyles(`
|
|
1111
|
-
margin: ${thumbMargin} 0; /*
|
|
1441
|
+
margin: ${thumbMargin} 0; /* [1] */
|
|
1112
1442
|
width: ${thumbSize};
|
|
1113
1443
|
height: ${thumbSize};
|
|
1114
1444
|
`), trackLowerStyles(`
|
|
1115
|
-
border-top-${
|
|
1116
|
-
border-bottom-${
|
|
1445
|
+
border-top-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
|
|
1446
|
+
border-bottom-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
|
|
1117
1447
|
height: ${trackHeight};
|
|
1118
1448
|
`));
|
|
1119
1449
|
};
|
|
1120
1450
|
const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
1121
1451
|
'data-garden-id': COMPONENT_ID$4,
|
|
1122
|
-
'data-garden-version': '9.0.0
|
|
1452
|
+
'data-garden-version': '9.0.0',
|
|
1123
1453
|
type: 'range',
|
|
1124
1454
|
style: {
|
|
1125
1455
|
backgroundSize: props.hasLowerTrack && props.backgroundSize
|
|
@@ -1136,145 +1466,226 @@ const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
|
1136
1466
|
width: 99.8%; /* fix for IE which cuts off the upper track's border radius */
|
|
1137
1467
|
color: transparent; /* reset for IE */
|
|
1138
1468
|
box-sizing: border-box; /* reset for IE */
|
|
1139
|
-
`),
|
|
1469
|
+
`), sizeStyles$4, props => thumbStyles(`
|
|
1140
1470
|
appearance: none;
|
|
1141
1471
|
transition: box-shadow .1s ease-in-out;
|
|
1142
1472
|
border: ${props.theme.borders.md};
|
|
1143
1473
|
border-radius: 100%;
|
|
1144
1474
|
box-sizing: border-box;
|
|
1145
|
-
`),
|
|
1475
|
+
`), colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
|
|
1146
1476
|
StyledRangeInput.defaultProps = {
|
|
1147
1477
|
backgroundSize: '0%',
|
|
1148
1478
|
hasLowerTrack: true,
|
|
1149
1479
|
theme: reactTheming.DEFAULT_THEME
|
|
1150
1480
|
};
|
|
1151
1481
|
|
|
1152
|
-
const COMPONENT_ID$3 = 'forms.
|
|
1153
|
-
const
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
horizontalValue = `right: ${props.theme.space.base * 5}px`;
|
|
1482
|
+
const COMPONENT_ID$3 = 'forms.tile';
|
|
1483
|
+
const colorStyles$1 = _ref => {
|
|
1484
|
+
let {
|
|
1485
|
+
theme
|
|
1486
|
+
} = _ref;
|
|
1487
|
+
const offset100 = {
|
|
1488
|
+
dark: {
|
|
1489
|
+
offset: -100
|
|
1490
|
+
},
|
|
1491
|
+
light: {
|
|
1492
|
+
offset: 100
|
|
1164
1493
|
}
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
'data-garden-id': COMPONENT_ID$3,
|
|
1170
|
-
'data-garden-version': '9.0.0-next.9'
|
|
1171
|
-
}).withConfig({
|
|
1172
|
-
displayName: "StyledTileIcon",
|
|
1173
|
-
componentId: "sc-1wazhg4-0"
|
|
1174
|
-
})(["display:block;transition:color 0.25s ease-in-out;text-align:center;line-height:0;", ";", ";"], props => sizeStyles$2(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
|
|
1175
|
-
StyledTileIcon.defaultProps = {
|
|
1176
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
const COMPONENT_ID$2 = 'forms.tile';
|
|
1180
|
-
const colorStyles = props => {
|
|
1181
|
-
const SHADE = 600;
|
|
1182
|
-
const iconColor = reactTheming.getColorV8('neutralHue', SHADE, props.theme);
|
|
1183
|
-
const color = reactTheming.getColorV8('neutralHue', SHADE + 200, props.theme);
|
|
1184
|
-
const borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
1185
|
-
const hoverBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.08);
|
|
1186
|
-
const hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
1187
|
-
const focusBorderColor = hoverBorderColor;
|
|
1188
|
-
const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.2);
|
|
1189
|
-
const activeBorderColor = focusBorderColor;
|
|
1190
|
-
const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 500, props.theme);
|
|
1191
|
-
const disabledBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
1192
|
-
const disabledColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
|
|
1193
|
-
const selectedBorderColor = focusBorderColor;
|
|
1194
|
-
const selectedBackgroundColor = selectedBorderColor;
|
|
1195
|
-
const selectedHoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
1196
|
-
const selectedHoverBackgroundColor = selectedHoverBorderColor;
|
|
1197
|
-
const selectedActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 200, props.theme);
|
|
1198
|
-
const selectedActiveBackgroundColor = selectedActiveBorderColor;
|
|
1199
|
-
const selectedDisabledBackgroundColor = disabledBorderColor;
|
|
1200
|
-
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({
|
|
1201
|
-
theme: props.theme,
|
|
1202
|
-
color: {
|
|
1203
|
-
hue: focusBorderColor
|
|
1494
|
+
};
|
|
1495
|
+
const offset200 = {
|
|
1496
|
+
dark: {
|
|
1497
|
+
offset: -200
|
|
1204
1498
|
},
|
|
1499
|
+
light: {
|
|
1500
|
+
offset: 200
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1503
|
+
const backgroundColor = reactTheming.getColor({
|
|
1504
|
+
theme,
|
|
1505
|
+
variable: 'background.default'
|
|
1506
|
+
});
|
|
1507
|
+
const borderColor = reactTheming.getColor({
|
|
1508
|
+
theme,
|
|
1509
|
+
variable: 'border.default',
|
|
1510
|
+
...offset100
|
|
1511
|
+
});
|
|
1512
|
+
const foregroundColor = reactTheming.getColor({
|
|
1513
|
+
theme,
|
|
1514
|
+
variable: 'foreground.default'
|
|
1515
|
+
});
|
|
1516
|
+
const backgroundOptions = {
|
|
1517
|
+
theme,
|
|
1518
|
+
variable: 'background.primaryEmphasis'
|
|
1519
|
+
};
|
|
1520
|
+
const hoverBackgroundColor = reactTheming.getColor({
|
|
1521
|
+
...backgroundOptions,
|
|
1522
|
+
transparency: theme.opacity[100]
|
|
1523
|
+
});
|
|
1524
|
+
const hoverBorderColor = reactTheming.getColor({
|
|
1525
|
+
theme,
|
|
1526
|
+
variable: 'border.primaryEmphasis'
|
|
1527
|
+
});
|
|
1528
|
+
const activeBackgroundColor = reactTheming.getColor({
|
|
1529
|
+
...backgroundOptions,
|
|
1530
|
+
transparency: theme.opacity[200]
|
|
1531
|
+
});
|
|
1532
|
+
const focusBorderColor = hoverBorderColor;
|
|
1533
|
+
const activeBorderColor = hoverBorderColor;
|
|
1534
|
+
const checkedBackgroundColor = reactTheming.getColor(backgroundOptions);
|
|
1535
|
+
const checkedForegroundColor = reactTheming.getColor({
|
|
1536
|
+
theme,
|
|
1537
|
+
variable: 'foreground.onEmphasis'
|
|
1538
|
+
});
|
|
1539
|
+
const checkedHoverBackgroundColor = reactTheming.getColor({
|
|
1540
|
+
...backgroundOptions,
|
|
1541
|
+
...offset100
|
|
1542
|
+
});
|
|
1543
|
+
const checkedActiveBackgroundColor = reactTheming.getColor({
|
|
1544
|
+
...backgroundOptions,
|
|
1545
|
+
...offset200
|
|
1546
|
+
});
|
|
1547
|
+
const disabledBackgroundColor = reactTheming.getColor({
|
|
1548
|
+
theme,
|
|
1549
|
+
variable: 'background.disabled'
|
|
1550
|
+
});
|
|
1551
|
+
const disabledBorderColor = reactTheming.getColor({
|
|
1552
|
+
theme,
|
|
1553
|
+
variable: 'border.disabled'
|
|
1554
|
+
});
|
|
1555
|
+
const disabledForegroundColor = reactTheming.getColor({
|
|
1556
|
+
theme,
|
|
1557
|
+
variable: 'foreground.disabled'
|
|
1558
|
+
});
|
|
1559
|
+
return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";}", ";&:active{border-color:", ";background-color:", ";}&:has(:checked){border-color:transparent;background-color:", ";color:", ";}&:hover:has(:checked){background-color:", ";}&:active:has(:checked){background-color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], borderColor, backgroundColor, foregroundColor, hoverBorderColor, hoverBackgroundColor, reactTheming.focusStyles({
|
|
1560
|
+
theme,
|
|
1561
|
+
selector: '&:has(:focus-visible)',
|
|
1205
1562
|
styles: {
|
|
1206
1563
|
borderColor: focusBorderColor
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
}), 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);
|
|
1564
|
+
}
|
|
1565
|
+
}), activeBorderColor, activeBackgroundColor, checkedBackgroundColor, checkedForegroundColor, checkedHoverBackgroundColor, checkedActiveBackgroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
1210
1566
|
};
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1567
|
+
const sizeStyles$3 = _ref2 => {
|
|
1568
|
+
let {
|
|
1569
|
+
theme
|
|
1570
|
+
} = _ref2;
|
|
1571
|
+
const border = theme.borders.sm;
|
|
1572
|
+
const padding = `${theme.space.base * 5}px`;
|
|
1573
|
+
return styled.css(["border:", ";padding:", ";min-width:132px;"], border, padding);
|
|
1574
|
+
};
|
|
1575
|
+
const StyledTile = styled__default.default.label.attrs({
|
|
1576
|
+
'data-garden-id': COMPONENT_ID$3,
|
|
1577
|
+
'data-garden-version': '9.0.0'
|
|
1578
|
+
}).withConfig({
|
|
1216
1579
|
displayName: "StyledTile",
|
|
1217
1580
|
componentId: "sc-1jjvmxs-0"
|
|
1218
|
-
})(["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:", ";
|
|
1219
|
-
StyledTile.defaultProps = {
|
|
1220
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1221
|
-
};
|
|
1581
|
+
})(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
|
|
1222
1582
|
|
|
1223
|
-
const COMPONENT_ID$
|
|
1224
|
-
const sizeStyles$
|
|
1225
|
-
let
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
return styled.css(["margin-top:", "
|
|
1583
|
+
const COMPONENT_ID$2 = 'forms.tile_description';
|
|
1584
|
+
const sizeStyles$2 = _ref => {
|
|
1585
|
+
let {
|
|
1586
|
+
theme,
|
|
1587
|
+
isCentered
|
|
1588
|
+
} = _ref;
|
|
1589
|
+
const marginTop = `${theme.space.base}px`;
|
|
1590
|
+
const marginHorizontal = isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
|
|
1591
|
+
const fontSize = theme.fontSizes.sm;
|
|
1592
|
+
const lineHeight = reactTheming.getLineHeight(theme.space.base * 4, fontSize);
|
|
1593
|
+
return styled.css(["margin-top:", ";margin-", ":", ";line-height:", ";font-size:", ";"], marginTop, theme.rtl ? 'right' : 'left', marginHorizontal, lineHeight, fontSize);
|
|
1234
1594
|
};
|
|
1235
1595
|
const StyledTileDescription = styled__default.default.span.attrs({
|
|
1236
|
-
'data-garden-id': COMPONENT_ID$
|
|
1237
|
-
'data-garden-version': '9.0.0
|
|
1596
|
+
'data-garden-id': COMPONENT_ID$2,
|
|
1597
|
+
'data-garden-version': '9.0.0'
|
|
1238
1598
|
}).withConfig({
|
|
1239
1599
|
displayName: "StyledTileDescription",
|
|
1240
1600
|
componentId: "sc-xfuu7u-0"
|
|
1241
|
-
})(["display:block;text-align:", ";
|
|
1242
|
-
|
|
1243
|
-
|
|
1601
|
+
})(["display:block;text-align:", ";", ";", ";"], props => props.isCentered && 'center', sizeStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
1602
|
+
|
|
1603
|
+
const COMPONENT_ID$1 = 'forms.tile_icon';
|
|
1604
|
+
const colorStyles = _ref => {
|
|
1605
|
+
let {
|
|
1606
|
+
theme
|
|
1607
|
+
} = _ref;
|
|
1608
|
+
const options = {
|
|
1609
|
+
theme,
|
|
1610
|
+
variable: 'foreground.subtle'
|
|
1611
|
+
};
|
|
1612
|
+
const color = reactTheming.getColor(options);
|
|
1613
|
+
const hoverColor = reactTheming.getColor({
|
|
1614
|
+
...options,
|
|
1615
|
+
dark: {
|
|
1616
|
+
offset: -100
|
|
1617
|
+
},
|
|
1618
|
+
light: {
|
|
1619
|
+
offset: 100
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
const activeColor = reactTheming.getColor({
|
|
1623
|
+
...options,
|
|
1624
|
+
dark: {
|
|
1625
|
+
offset: -200
|
|
1626
|
+
},
|
|
1627
|
+
light: {
|
|
1628
|
+
offset: 200
|
|
1629
|
+
}
|
|
1630
|
+
});
|
|
1631
|
+
const checkedColor = reactTheming.getColor({
|
|
1632
|
+
theme,
|
|
1633
|
+
variable: 'foreground.onEmphasis'
|
|
1634
|
+
});
|
|
1635
|
+
const disabledColor = reactTheming.getColor({
|
|
1636
|
+
theme,
|
|
1637
|
+
variable: 'foreground.disabled'
|
|
1638
|
+
});
|
|
1639
|
+
return styled.css(["color:", ";", ":hover &&{color:", ";}", ":active &&{color:", ";}", ":has(:checked) &&{color:", ";}", "[aria-disabled='true'] &&{color:", ";}"], color, StyledTile, hoverColor, StyledTile, activeColor, StyledTile, checkedColor, StyledTile, disabledColor);
|
|
1640
|
+
};
|
|
1641
|
+
const sizeStyles$1 = _ref2 => {
|
|
1642
|
+
let {
|
|
1643
|
+
theme,
|
|
1644
|
+
isCentered
|
|
1645
|
+
} = _ref2;
|
|
1646
|
+
const iconSize = polished.math(`${theme.iconSizes.md} * 2`);
|
|
1647
|
+
let position;
|
|
1648
|
+
let top;
|
|
1649
|
+
let horizontal;
|
|
1650
|
+
if (!isCentered) {
|
|
1651
|
+
position = 'absolute';
|
|
1652
|
+
top = `${theme.space.base * 6}px`;
|
|
1653
|
+
horizontal = `${theme.space.base * 5}px`;
|
|
1654
|
+
}
|
|
1655
|
+
return styled.css(["position:", ";top:", ";", ":", ";line-height:0;& > *{width:", ";height:", ";}"], position, top, theme.rtl ? 'right' : 'left', horizontal, iconSize, iconSize);
|
|
1244
1656
|
};
|
|
1657
|
+
const StyledTileIcon = styled__default.default.span.attrs({
|
|
1658
|
+
'data-garden-id': COMPONENT_ID$1,
|
|
1659
|
+
'data-garden-version': '9.0.0'
|
|
1660
|
+
}).withConfig({
|
|
1661
|
+
displayName: "StyledTileIcon",
|
|
1662
|
+
componentId: "sc-1wazhg4-0"
|
|
1663
|
+
})(["display:block;transition:color 0.25s ease-in-out;text-align:center;", ";", ";", ";"], sizeStyles$1, colorStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
|
|
1245
1664
|
|
|
1246
1665
|
const StyledTileInput = styled__default.default.input.withConfig({
|
|
1247
1666
|
displayName: "StyledTileInput",
|
|
1248
1667
|
componentId: "sc-1nq2m6q-0"
|
|
1249
|
-
})(["position:absolute;
|
|
1250
|
-
StyledTileInput.defaultProps = {
|
|
1251
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1252
|
-
};
|
|
1668
|
+
})(["position:absolute;top:0;left:0;opacity:0;z-index:1;margin:0;cursor:", ";width:100%;height:100%;"], props => props.disabled ? 'default' : 'pointer');
|
|
1253
1669
|
|
|
1254
1670
|
const COMPONENT_ID = 'forms.tile_label';
|
|
1255
|
-
const sizeStyles =
|
|
1256
|
-
let
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
}
|
|
1266
|
-
return styled.css(["margin-top:", ";margin-", ":", ";"], marginTop, marginDirection, marginValue);
|
|
1671
|
+
const sizeStyles = _ref => {
|
|
1672
|
+
let {
|
|
1673
|
+
theme,
|
|
1674
|
+
isCentered
|
|
1675
|
+
} = _ref;
|
|
1676
|
+
const marginTop = isCentered ? `${theme.space.base * 2}px` : 0;
|
|
1677
|
+
const marginHorizontal = isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
|
|
1678
|
+
const fontSize = theme.fontSizes.md;
|
|
1679
|
+
const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
|
|
1680
|
+
return styled.css(["margin-top:", ";margin-", ":", ";line-height:", ";font-size:", ";"], marginTop, theme.rtl ? 'right' : 'left', marginHorizontal, lineHeight, fontSize);
|
|
1267
1681
|
};
|
|
1268
1682
|
const StyledTileLabel = styled__default.default.span.attrs({
|
|
1269
1683
|
'data-garden-id': COMPONENT_ID,
|
|
1270
|
-
'data-garden-version': '9.0.0
|
|
1684
|
+
'data-garden-version': '9.0.0'
|
|
1271
1685
|
}).withConfig({
|
|
1272
1686
|
displayName: "StyledTileLabel",
|
|
1273
1687
|
componentId: "sc-1mypv27-0"
|
|
1274
|
-
})(["display:block;text-align:", ";
|
|
1275
|
-
StyledTileLabel.defaultProps = {
|
|
1276
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1277
|
-
};
|
|
1688
|
+
})(["display:block;text-align:", ";font-weight:", ";", ";", ";"], props => props.isCentered && 'center', props => props.theme.fontWeights.semibold, sizeStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
|
|
1278
1689
|
|
|
1279
1690
|
const InputContext = React.createContext(undefined);
|
|
1280
1691
|
const useInputContext = () => {
|
|
@@ -1316,7 +1727,7 @@ const Hint = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1316
1727
|
ref: ref
|
|
1317
1728
|
}, combinedProps));
|
|
1318
1729
|
});
|
|
1319
|
-
Hint.displayName = 'Hint';
|
|
1730
|
+
Hint.displayName = 'Field.Hint';
|
|
1320
1731
|
|
|
1321
1732
|
const VALIDATION = ['success', 'warning', 'error'];
|
|
1322
1733
|
const FILE_VALIDATION = ['success', 'error'];
|
|
@@ -1366,12 +1777,12 @@ const Message = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1366
1777
|
const ariaLabel = reactTheming.useText(Message, combinedProps, 'validationLabel', validation, validation !== undefined);
|
|
1367
1778
|
return React__namespace.default.createElement(MessageComponent, Object.assign({
|
|
1368
1779
|
ref: ref
|
|
1369
|
-
}, combinedProps), validation && React__namespace.default.createElement(StyledMessageIcon, {
|
|
1780
|
+
}, combinedProps), !!validation && React__namespace.default.createElement(StyledMessageIcon, {
|
|
1370
1781
|
validation: validation,
|
|
1371
1782
|
"aria-label": ariaLabel
|
|
1372
1783
|
}), children);
|
|
1373
1784
|
});
|
|
1374
|
-
Message.displayName = 'Message';
|
|
1785
|
+
Message.displayName = 'Field.Message';
|
|
1375
1786
|
Message.propTypes = {
|
|
1376
1787
|
validation: PropTypes__default.default.oneOf(VALIDATION),
|
|
1377
1788
|
validationLabel: PropTypes__default.default.string
|
|
@@ -1424,7 +1835,7 @@ const Label$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1424
1835
|
}, combinedProps), React__namespace.default.createElement(StyledRadioSvg, null), props.children);
|
|
1425
1836
|
} else if (type === 'checkbox') {
|
|
1426
1837
|
const onLabelSelect = e => {
|
|
1427
|
-
const isFirefox = navigator
|
|
1838
|
+
const isFirefox = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
1428
1839
|
if (fieldContext && isFirefox && e.target instanceof Element) {
|
|
1429
1840
|
const inputId = e.target.getAttribute('for');
|
|
1430
1841
|
if (!inputId) return;
|
|
@@ -1454,7 +1865,7 @@ const Label$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1454
1865
|
ref: ref
|
|
1455
1866
|
}, combinedProps));
|
|
1456
1867
|
});
|
|
1457
|
-
Label$1.displayName = 'Label';
|
|
1868
|
+
Label$1.displayName = 'Field.Label';
|
|
1458
1869
|
Label$1.propTypes = {
|
|
1459
1870
|
isRegular: PropTypes__default.default.bool
|
|
1460
1871
|
};
|
|
@@ -1769,7 +2180,7 @@ const Textarea = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1769
2180
|
if (fieldContext) {
|
|
1770
2181
|
combinedProps = fieldContext.getInputProps(combinedProps);
|
|
1771
2182
|
}
|
|
1772
|
-
return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledTextarea, combinedProps), isAutoResizable && React__namespace.default.createElement(StyledTextarea, {
|
|
2183
|
+
return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledTextarea, combinedProps), !!isAutoResizable && React__namespace.default.createElement(StyledTextarea, {
|
|
1773
2184
|
"aria-hidden": true,
|
|
1774
2185
|
readOnly: true,
|
|
1775
2186
|
isHidden: true,
|
|
@@ -1816,31 +2227,19 @@ Toggle.propTypes = {
|
|
|
1816
2227
|
isCompact: PropTypes__default.default.bool
|
|
1817
2228
|
};
|
|
1818
2229
|
|
|
1819
|
-
var _path$k;
|
|
1820
|
-
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
1821
|
-
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
1822
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
1823
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1824
|
-
width: 16,
|
|
1825
|
-
height: 16,
|
|
1826
|
-
focusable: "false",
|
|
1827
|
-
viewBox: "0 0 16 16",
|
|
1828
|
-
"aria-hidden": "true"
|
|
1829
|
-
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1830
|
-
fill: "currentColor",
|
|
1831
|
-
d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
|
|
1832
|
-
})));
|
|
1833
|
-
};
|
|
1834
|
-
|
|
1835
2230
|
const StartIconComponent = _ref => {
|
|
1836
2231
|
let {
|
|
1837
2232
|
isDisabled,
|
|
2233
|
+
isFocused,
|
|
2234
|
+
isHovered,
|
|
1838
2235
|
isRotated,
|
|
1839
2236
|
...props
|
|
1840
2237
|
} = _ref;
|
|
1841
2238
|
return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
|
|
1842
2239
|
$position: "start",
|
|
1843
2240
|
$isDisabled: isDisabled,
|
|
2241
|
+
$isFocused: isFocused,
|
|
2242
|
+
$isHovered: isHovered,
|
|
1844
2243
|
$isRotated: isRotated
|
|
1845
2244
|
}, props));
|
|
1846
2245
|
};
|
|
@@ -1850,12 +2249,16 @@ const StartIcon = StartIconComponent;
|
|
|
1850
2249
|
const EndIconComponent = _ref => {
|
|
1851
2250
|
let {
|
|
1852
2251
|
isDisabled,
|
|
2252
|
+
isFocused,
|
|
2253
|
+
isHovered,
|
|
1853
2254
|
isRotated,
|
|
1854
2255
|
...props
|
|
1855
2256
|
} = _ref;
|
|
1856
2257
|
return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
|
|
1857
2258
|
$position: "end",
|
|
1858
2259
|
$isDisabled: isDisabled,
|
|
2260
|
+
$isFocused: isFocused,
|
|
2261
|
+
$isHovered: isHovered,
|
|
1859
2262
|
$isRotated: isRotated
|
|
1860
2263
|
}, props));
|
|
1861
2264
|
};
|
|
@@ -1929,6 +2332,7 @@ const Select = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1929
2332
|
return React__namespace.default.createElement(StyledSelectWrapper, {
|
|
1930
2333
|
isCompact: isCompact,
|
|
1931
2334
|
isBare: isBare,
|
|
2335
|
+
isDisabled: disabled,
|
|
1932
2336
|
validation: validation,
|
|
1933
2337
|
focusInset: focusInset
|
|
1934
2338
|
}, React__namespace.default.createElement(StyledSelect, combinedProps), !isBare && React__namespace.default.createElement(FauxInput.EndIcon, {
|
|
@@ -1967,9 +2371,7 @@ const TileComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1967
2371
|
}
|
|
1968
2372
|
return React__namespace.default.createElement(StyledTile, Object.assign({
|
|
1969
2373
|
ref: ref,
|
|
1970
|
-
"aria-disabled": disabled
|
|
1971
|
-
isDisabled: disabled,
|
|
1972
|
-
isSelected: tilesContext && tilesContext.value === value
|
|
2374
|
+
"aria-disabled": disabled
|
|
1973
2375
|
}, props), children, React__namespace.default.createElement(StyledTileInput, Object.assign({}, inputProps, {
|
|
1974
2376
|
disabled: disabled,
|
|
1975
2377
|
value: value,
|
|
@@ -1988,7 +2390,7 @@ const DescriptionComponent = React.forwardRef((props, ref) => {
|
|
|
1988
2390
|
const tilesContext = useTilesContext();
|
|
1989
2391
|
return React__namespace.default.createElement(StyledTileDescription, Object.assign({
|
|
1990
2392
|
ref: ref,
|
|
1991
|
-
isCentered: tilesContext
|
|
2393
|
+
isCentered: tilesContext?.isCentered
|
|
1992
2394
|
}, props));
|
|
1993
2395
|
});
|
|
1994
2396
|
DescriptionComponent.displayName = 'Tiles.Description';
|
|
@@ -1998,7 +2400,7 @@ const IconComponent = React.forwardRef((props, ref) => {
|
|
|
1998
2400
|
const tileContext = useTilesContext();
|
|
1999
2401
|
return React__namespace.default.createElement(StyledTileIcon, Object.assign({
|
|
2000
2402
|
ref: ref,
|
|
2001
|
-
isCentered: tileContext
|
|
2403
|
+
isCentered: tileContext?.isCentered
|
|
2002
2404
|
}, props));
|
|
2003
2405
|
});
|
|
2004
2406
|
IconComponent.displayName = 'Tiles.Icon';
|
|
@@ -2016,7 +2418,7 @@ const LabelComponent = React.forwardRef((props, forwardedRef) => {
|
|
|
2016
2418
|
return React__namespace.default.createElement(StyledTileLabel, Object.assign({
|
|
2017
2419
|
ref: reactMergeRefs.mergeRefs([ref, forwardedRef]),
|
|
2018
2420
|
title: title,
|
|
2019
|
-
isCentered: tilesContext
|
|
2421
|
+
isCentered: tilesContext?.isCentered
|
|
2020
2422
|
}, props));
|
|
2021
2423
|
});
|
|
2022
2424
|
LabelComponent.displayName = 'Tiles.Label';
|
|
@@ -2135,7 +2537,7 @@ const FileList = FileListComponent;
|
|
|
2135
2537
|
FileList.Item = Item;
|
|
2136
2538
|
|
|
2137
2539
|
var _path$j;
|
|
2138
|
-
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (
|
|
2540
|
+
function _extends$k() { return _extends$k = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$k.apply(null, arguments); }
|
|
2139
2541
|
var SvgXStroke$1 = function SvgXStroke(props) {
|
|
2140
2542
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2141
2543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2152,7 +2554,7 @@ var SvgXStroke$1 = function SvgXStroke(props) {
|
|
|
2152
2554
|
};
|
|
2153
2555
|
|
|
2154
2556
|
var _path$i;
|
|
2155
|
-
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (
|
|
2557
|
+
function _extends$j() { return _extends$j = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$j.apply(null, arguments); }
|
|
2156
2558
|
var SvgXStroke = function SvgXStroke(props) {
|
|
2157
2559
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2158
2560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2191,7 +2593,7 @@ CloseComponent.displayName = 'File.Close';
|
|
|
2191
2593
|
const Close = CloseComponent;
|
|
2192
2594
|
|
|
2193
2595
|
var _path$h;
|
|
2194
|
-
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (
|
|
2596
|
+
function _extends$i() { return _extends$i = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$i.apply(null, arguments); }
|
|
2195
2597
|
var SvgTrashStroke$1 = function SvgTrashStroke(props) {
|
|
2196
2598
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2197
2599
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2209,7 +2611,7 @@ var SvgTrashStroke$1 = function SvgTrashStroke(props) {
|
|
|
2209
2611
|
};
|
|
2210
2612
|
|
|
2211
2613
|
var _path$g;
|
|
2212
|
-
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (
|
|
2614
|
+
function _extends$h() { return _extends$h = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$h.apply(null, arguments); }
|
|
2213
2615
|
var SvgTrashStroke = function SvgTrashStroke(props) {
|
|
2214
2616
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2215
2617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2244,7 +2646,7 @@ DeleteComponent.displayName = 'File.Delete';
|
|
|
2244
2646
|
const Delete = DeleteComponent;
|
|
2245
2647
|
|
|
2246
2648
|
var _path$f, _rect$1;
|
|
2247
|
-
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (
|
|
2649
|
+
function _extends$g() { return _extends$g = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$g.apply(null, arguments); }
|
|
2248
2650
|
var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
|
|
2249
2651
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2250
2652
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2270,7 +2672,7 @@ var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
|
|
|
2270
2672
|
};
|
|
2271
2673
|
|
|
2272
2674
|
var _path$e;
|
|
2273
|
-
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (
|
|
2675
|
+
function _extends$f() { return _extends$f = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$f.apply(null, arguments); }
|
|
2274
2676
|
var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
|
|
2275
2677
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2276
2678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2288,7 +2690,7 @@ var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
|
|
|
2288
2690
|
};
|
|
2289
2691
|
|
|
2290
2692
|
var _path$d, _circle$1;
|
|
2291
|
-
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (
|
|
2693
|
+
function _extends$e() { return _extends$e = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$e.apply(null, arguments); }
|
|
2292
2694
|
var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
|
|
2293
2695
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
2294
2696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2312,7 +2714,7 @@ var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
|
|
|
2312
2714
|
};
|
|
2313
2715
|
|
|
2314
2716
|
var _path$c;
|
|
2315
|
-
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (
|
|
2717
|
+
function _extends$d() { return _extends$d = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$d.apply(null, arguments); }
|
|
2316
2718
|
var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
|
|
2317
2719
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
2318
2720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2330,7 +2732,7 @@ var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
|
|
|
2330
2732
|
};
|
|
2331
2733
|
|
|
2332
2734
|
var _path$b;
|
|
2333
|
-
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (
|
|
2735
|
+
function _extends$c() { return _extends$c = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$c.apply(null, arguments); }
|
|
2334
2736
|
var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
|
|
2335
2737
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
2336
2738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2348,7 +2750,7 @@ var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
|
|
|
2348
2750
|
};
|
|
2349
2751
|
|
|
2350
2752
|
var _path$a;
|
|
2351
|
-
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (
|
|
2753
|
+
function _extends$b() { return _extends$b = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$b.apply(null, arguments); }
|
|
2352
2754
|
var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
|
|
2353
2755
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
2354
2756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2365,7 +2767,7 @@ var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
|
|
|
2365
2767
|
};
|
|
2366
2768
|
|
|
2367
2769
|
var _path$9;
|
|
2368
|
-
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (
|
|
2770
|
+
function _extends$a() { return _extends$a = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$a.apply(null, arguments); }
|
|
2369
2771
|
var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
|
|
2370
2772
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
2371
2773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2382,7 +2784,7 @@ var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
|
|
|
2382
2784
|
};
|
|
2383
2785
|
|
|
2384
2786
|
var _g;
|
|
2385
|
-
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (
|
|
2787
|
+
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
2386
2788
|
var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
|
|
2387
2789
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
2388
2790
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2406,7 +2808,7 @@ var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
|
|
|
2406
2808
|
};
|
|
2407
2809
|
|
|
2408
2810
|
var _path$8;
|
|
2409
|
-
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (
|
|
2811
|
+
function _extends$8() { return _extends$8 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$8.apply(null, arguments); }
|
|
2410
2812
|
var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
|
|
2411
2813
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
2412
2814
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2424,7 +2826,7 @@ var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
|
|
|
2424
2826
|
};
|
|
2425
2827
|
|
|
2426
2828
|
var _path$7, _rect;
|
|
2427
|
-
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (
|
|
2829
|
+
function _extends$7() { return _extends$7 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$7.apply(null, arguments); }
|
|
2428
2830
|
var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
|
|
2429
2831
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
2430
2832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2450,7 +2852,7 @@ var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
|
|
|
2450
2852
|
};
|
|
2451
2853
|
|
|
2452
2854
|
var _path$6;
|
|
2453
|
-
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (
|
|
2855
|
+
function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
|
|
2454
2856
|
var SvgFileZipStroke = function SvgFileZipStroke(props) {
|
|
2455
2857
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
2456
2858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2468,7 +2870,7 @@ var SvgFileZipStroke = function SvgFileZipStroke(props) {
|
|
|
2468
2870
|
};
|
|
2469
2871
|
|
|
2470
2872
|
var _path$5, _circle;
|
|
2471
|
-
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (
|
|
2873
|
+
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
2472
2874
|
var SvgFileImageStroke = function SvgFileImageStroke(props) {
|
|
2473
2875
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
2474
2876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2491,7 +2893,7 @@ var SvgFileImageStroke = function SvgFileImageStroke(props) {
|
|
|
2491
2893
|
};
|
|
2492
2894
|
|
|
2493
2895
|
var _path$4;
|
|
2494
|
-
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (
|
|
2896
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
2495
2897
|
var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
|
|
2496
2898
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
2497
2899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2509,7 +2911,7 @@ var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
|
|
|
2509
2911
|
};
|
|
2510
2912
|
|
|
2511
2913
|
var _path$3;
|
|
2512
|
-
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (
|
|
2914
|
+
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
2513
2915
|
var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
|
|
2514
2916
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
2515
2917
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2527,7 +2929,7 @@ var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
|
|
|
2527
2929
|
};
|
|
2528
2930
|
|
|
2529
2931
|
var _path$2;
|
|
2530
|
-
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (
|
|
2932
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
2531
2933
|
var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
|
|
2532
2934
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
2533
2935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2544,7 +2946,7 @@ var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
|
|
|
2544
2946
|
};
|
|
2545
2947
|
|
|
2546
2948
|
var _path$1;
|
|
2547
|
-
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (
|
|
2949
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
2548
2950
|
var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
|
|
2549
2951
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
2550
2952
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2561,7 +2963,7 @@ var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
|
|
|
2561
2963
|
};
|
|
2562
2964
|
|
|
2563
2965
|
var _path;
|
|
2564
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
2966
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2565
2967
|
var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
|
|
2566
2968
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2567
2969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2621,8 +3023,9 @@ const FileComponent = React.forwardRef((_ref, ref) => {
|
|
|
2621
3023
|
focusInset: focusInset,
|
|
2622
3024
|
validation: validation,
|
|
2623
3025
|
ref: ref
|
|
2624
|
-
}), validationType && React__namespace.default.createElement(StyledFileIcon, {
|
|
2625
|
-
$isCompact: isCompact
|
|
3026
|
+
}), !!validationType && React__namespace.default.createElement(StyledFileIcon, {
|
|
3027
|
+
$isCompact: isCompact,
|
|
3028
|
+
$validation: validation
|
|
2626
3029
|
}, isCompact ? fileIconsCompact[validationType] : fileIconsDefault[validationType]), React.Children.map(children, child => typeof child === 'string' ? React__namespace.default.createElement("span", null, child) : child)));
|
|
2627
3030
|
});
|
|
2628
3031
|
FileComponent.displayName = 'File';
|
|
@@ -2711,11 +3114,11 @@ const MediaInput = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
2711
3114
|
mediaLayout: true
|
|
2712
3115
|
}, otherWrapperProps, {
|
|
2713
3116
|
ref: wrapperRef
|
|
2714
|
-
}), start && React__namespace.default.createElement(FauxInput.StartIcon, {
|
|
3117
|
+
}), !!start && React__namespace.default.createElement(FauxInput.StartIcon, {
|
|
2715
3118
|
isDisabled: disabled,
|
|
2716
3119
|
isFocused: isFocused,
|
|
2717
3120
|
isHovered: isHovered || isLabelHovered
|
|
2718
|
-
}, start), React__namespace.default.createElement(StyledTextMediaInput, combinedProps), end && React__namespace.default.createElement(FauxInput.EndIcon, {
|
|
3121
|
+
}, start), React__namespace.default.createElement(StyledTextMediaInput, combinedProps), !!end && React__namespace.default.createElement(FauxInput.EndIcon, {
|
|
2719
3122
|
isDisabled: disabled,
|
|
2720
3123
|
isFocused: isFocused,
|
|
2721
3124
|
isHovered: isHovered || isLabelHovered
|