@zendeskgarden/react-forms 9.0.0-next.8 → 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 +16 -3
- package/dist/esm/elements/faux-input/components/StartIcon.js +16 -3
- 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 +22 -14
- 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 +37 -29
- 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 +977 -577
- 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 +6 -7
- 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,94 +405,108 @@ 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`;
|
|
372
453
|
let margin;
|
|
373
|
-
if (props
|
|
454
|
+
if (props.$position === 'start') {
|
|
374
455
|
margin = props.theme.rtl ? marginLast : marginFirst;
|
|
375
456
|
} else {
|
|
376
457
|
margin = props.theme.rtl ? marginFirst : marginLast;
|
|
377
458
|
}
|
|
378
459
|
return styled.css(["margin:", ";width:", ";height:", ";"], margin, size, size);
|
|
379
460
|
};
|
|
380
|
-
const StyledTextMediaFigure = styled__default.default(
|
|
381
|
-
_ref => {
|
|
382
|
-
let {
|
|
383
|
-
children,
|
|
384
|
-
position,
|
|
385
|
-
isHovered,
|
|
386
|
-
isFocused,
|
|
387
|
-
isDisabled,
|
|
388
|
-
isRotated,
|
|
389
|
-
theme,
|
|
390
|
-
...props
|
|
391
|
-
} = _ref;
|
|
392
|
-
return React__namespace.default.cloneElement(React.Children.only(children), props);
|
|
393
|
-
}).attrs({
|
|
461
|
+
const StyledTextMediaFigure = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
394
462
|
'data-garden-id': COMPONENT_ID$x,
|
|
395
|
-
'data-garden-version': '9.0.0
|
|
463
|
+
'data-garden-version': '9.0.0'
|
|
396
464
|
}).withConfig({
|
|
397
465
|
displayName: "StyledTextMediaFigure",
|
|
398
466
|
componentId: "sc-1qepknj-0"
|
|
399
|
-
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props
|
|
400
|
-
StyledTextMediaFigure.defaultProps = {
|
|
401
|
-
theme: reactTheming.DEFAULT_THEME
|
|
402
|
-
};
|
|
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));
|
|
403
468
|
|
|
404
469
|
const COMPONENT_ID$w = 'forms.faux_input';
|
|
405
|
-
const
|
|
406
|
-
|
|
407
|
-
warning: 'warningHue',
|
|
408
|
-
error: 'dangerHue'
|
|
409
|
-
};
|
|
410
|
-
function getValidationHue(validation) {
|
|
411
|
-
let defaultHue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'primaryHue';
|
|
412
|
-
if (validation) {
|
|
413
|
-
return VALIDATION_HUES[validation];
|
|
414
|
-
}
|
|
415
|
-
return defaultHue;
|
|
416
|
-
}
|
|
417
|
-
const colorStyles$8 = props => {
|
|
418
|
-
const {
|
|
470
|
+
const colorStyles$a = _ref => {
|
|
471
|
+
let {
|
|
419
472
|
theme,
|
|
420
473
|
validation,
|
|
421
474
|
focusInset,
|
|
422
475
|
isBare,
|
|
423
476
|
isFocused
|
|
424
|
-
} =
|
|
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
|
+
}
|
|
425
499
|
return styled.css(["", ""], reactTheming.focusStyles({
|
|
426
500
|
theme,
|
|
427
501
|
inset: focusInset,
|
|
428
|
-
condition: !isBare,
|
|
429
502
|
color: {
|
|
430
|
-
|
|
431
|
-
shade: validation === 'warning' ? 700 : 600
|
|
503
|
+
variable: borderVariable
|
|
432
504
|
},
|
|
433
505
|
selector: isFocused ? '&' : '&:focus-within',
|
|
434
506
|
styles: {
|
|
435
|
-
borderColor:
|
|
436
|
-
}
|
|
507
|
+
borderColor: focusBorderColor
|
|
508
|
+
},
|
|
509
|
+
condition: !isBare
|
|
437
510
|
}));
|
|
438
511
|
};
|
|
439
512
|
const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props => ({
|
|
@@ -441,27 +514,21 @@ const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props
|
|
|
441
514
|
'aria-readonly': props.isReadOnly,
|
|
442
515
|
'aria-disabled': props.isDisabled,
|
|
443
516
|
'data-garden-id': COMPONENT_ID$w,
|
|
444
|
-
'data-garden-version': '9.0.0
|
|
517
|
+
'data-garden-version': '9.0.0'
|
|
445
518
|
})).withConfig({
|
|
446
519
|
displayName: "StyledTextFauxInput",
|
|
447
520
|
componentId: "sc-yqw7j9-0"
|
|
448
|
-
})(["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$
|
|
449
|
-
StyledTextFauxInput.defaultProps = {
|
|
450
|
-
theme: reactTheming.DEFAULT_THEME
|
|
451
|
-
};
|
|
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));
|
|
452
522
|
|
|
453
523
|
const COMPONENT_ID$v = 'forms.media_input';
|
|
454
524
|
const StyledTextMediaInput = styled__default.default(StyledTextInput).attrs({
|
|
455
525
|
'data-garden-id': COMPONENT_ID$v,
|
|
456
|
-
'data-garden-version': '9.0.0
|
|
526
|
+
'data-garden-version': '9.0.0',
|
|
457
527
|
isBare: true
|
|
458
528
|
}).withConfig({
|
|
459
529
|
displayName: "StyledTextMediaInput",
|
|
460
530
|
componentId: "sc-12i9xfi-0"
|
|
461
531
|
})(["flex-grow:1;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
462
|
-
StyledTextMediaInput.defaultProps = {
|
|
463
|
-
theme: reactTheming.DEFAULT_THEME
|
|
464
|
-
};
|
|
465
532
|
|
|
466
533
|
const COMPONENT_ID$u = 'forms.input_group';
|
|
467
534
|
const positionStyles = props => {
|
|
@@ -475,17 +542,14 @@ const itemStyles = props => {
|
|
|
475
542
|
};
|
|
476
543
|
const StyledInputGroup = styled__default.default.div.attrs({
|
|
477
544
|
'data-garden-id': COMPONENT_ID$u,
|
|
478
|
-
'data-garden-version': '9.0.0
|
|
545
|
+
'data-garden-version': '9.0.0'
|
|
479
546
|
}).withConfig({
|
|
480
547
|
displayName: "StyledInputGroup",
|
|
481
548
|
componentId: "sc-kjh1f0-0"
|
|
482
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));
|
|
483
|
-
StyledInputGroup.defaultProps = {
|
|
484
|
-
theme: reactTheming.DEFAULT_THEME
|
|
485
|
-
};
|
|
486
550
|
|
|
487
551
|
const COMPONENT_ID$t = 'forms.radio_label';
|
|
488
|
-
const sizeStyles$
|
|
552
|
+
const sizeStyles$d = props => {
|
|
489
553
|
const size = props.theme.space.base * 4;
|
|
490
554
|
const padding = size + props.theme.space.base * 2;
|
|
491
555
|
const lineHeight = props.theme.space.base * 5;
|
|
@@ -493,157 +557,238 @@ const sizeStyles$a = props => {
|
|
|
493
557
|
};
|
|
494
558
|
const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
|
|
495
559
|
'data-garden-id': COMPONENT_ID$t,
|
|
496
|
-
'data-garden-version': '9.0.0
|
|
560
|
+
'data-garden-version': '9.0.0',
|
|
497
561
|
isRadio: true
|
|
498
562
|
}).withConfig({
|
|
499
563
|
displayName: "StyledRadioLabel",
|
|
500
564
|
componentId: "sc-1aq2e5t-0"
|
|
501
|
-
})(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$
|
|
502
|
-
StyledRadioLabel.defaultProps = {
|
|
503
|
-
theme: reactTheming.DEFAULT_THEME
|
|
504
|
-
};
|
|
565
|
+
})(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$d(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
|
|
505
566
|
|
|
506
567
|
const COMPONENT_ID$s = 'forms.checkbox_label';
|
|
507
568
|
const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
|
|
508
569
|
'data-garden-id': COMPONENT_ID$s,
|
|
509
|
-
'data-garden-version': '9.0.0
|
|
570
|
+
'data-garden-version': '9.0.0'
|
|
510
571
|
}).withConfig({
|
|
511
572
|
displayName: "StyledCheckLabel",
|
|
512
573
|
componentId: "sc-x7nr1-0"
|
|
513
574
|
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
|
|
514
|
-
StyledCheckLabel.defaultProps = {
|
|
515
|
-
theme: reactTheming.DEFAULT_THEME
|
|
516
|
-
};
|
|
517
575
|
|
|
518
576
|
const COMPONENT_ID$r = 'forms.radio_hint';
|
|
519
577
|
const StyledRadioHint = styled__default.default(StyledHint).attrs({
|
|
520
578
|
'data-garden-id': COMPONENT_ID$r,
|
|
521
|
-
'data-garden-version': '9.0.0
|
|
579
|
+
'data-garden-version': '9.0.0'
|
|
522
580
|
}).withConfig({
|
|
523
581
|
displayName: "StyledRadioHint",
|
|
524
582
|
componentId: "sc-eo8twg-0"
|
|
525
583
|
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 6px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
526
|
-
StyledRadioHint.defaultProps = {
|
|
527
|
-
theme: reactTheming.DEFAULT_THEME
|
|
528
|
-
};
|
|
529
584
|
|
|
530
585
|
const COMPONENT_ID$q = 'forms.checkbox_hint';
|
|
531
586
|
const StyledCheckHint = styled__default.default(StyledRadioHint).attrs({
|
|
532
587
|
'data-garden-id': COMPONENT_ID$q,
|
|
533
|
-
'data-garden-version': '9.0.0
|
|
588
|
+
'data-garden-version': '9.0.0'
|
|
534
589
|
}).withConfig({
|
|
535
590
|
displayName: "StyledCheckHint",
|
|
536
591
|
componentId: "sc-1kl8e8c-0"
|
|
537
592
|
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
538
|
-
StyledCheckHint.defaultProps = {
|
|
539
|
-
theme: reactTheming.DEFAULT_THEME
|
|
540
|
-
};
|
|
541
593
|
|
|
542
594
|
const COMPONENT_ID$p = 'forms.radio';
|
|
543
|
-
const colorStyles$
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
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);
|
|
550
624
|
const focusBorderColor = hoverBorderColor;
|
|
551
|
-
const activeBackgroundColor = reactTheming.
|
|
625
|
+
const activeBackgroundColor = reactTheming.getColor({
|
|
626
|
+
...backgroundOptions,
|
|
627
|
+
transparency: theme.opacity[200]
|
|
628
|
+
});
|
|
552
629
|
const activeBorderColor = focusBorderColor;
|
|
630
|
+
const checkedBackgroundColor = reactTheming.getColor(backgroundOptions);
|
|
553
631
|
const checkedBorderColor = focusBorderColor;
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
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
|
+
});
|
|
560
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({
|
|
561
|
-
theme
|
|
670
|
+
theme,
|
|
562
671
|
styles: {
|
|
563
672
|
borderColor: focusBorderColor
|
|
564
673
|
},
|
|
565
674
|
selector: `&:focus-visible ~ ${StyledRadioLabel}::before`
|
|
566
675
|
}), StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
|
|
567
676
|
};
|
|
568
|
-
const sizeStyles$
|
|
569
|
-
|
|
570
|
-
|
|
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`;
|
|
571
684
|
const top = polished.math(`(${lineHeight} - ${size}) / 2`);
|
|
572
|
-
const iconSize =
|
|
685
|
+
const iconSize = theme.iconSizes.sm;
|
|
573
686
|
const iconPosition = polished.math(`(${size} - ${iconSize}) / 2`);
|
|
574
687
|
const iconTop = polished.math(`${iconPosition} + ${top}`);
|
|
575
|
-
const marginTop = `${
|
|
576
|
-
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);
|
|
577
690
|
};
|
|
578
691
|
const StyledRadioInput = styled__default.default.input.attrs({
|
|
579
692
|
'data-garden-id': COMPONENT_ID$p,
|
|
580
|
-
'data-garden-version': '9.0.0
|
|
693
|
+
'data-garden-version': '9.0.0',
|
|
581
694
|
type: 'radio'
|
|
582
695
|
}).withConfig({
|
|
583
696
|
displayName: "StyledRadioInput",
|
|
584
697
|
componentId: "sc-qsavpv-0"
|
|
585
|
-
})(["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
|
|
586
|
-
StyledRadioInput.defaultProps = {
|
|
587
|
-
theme: reactTheming.DEFAULT_THEME
|
|
588
|
-
};
|
|
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));
|
|
589
699
|
|
|
590
700
|
const COMPONENT_ID$o = 'forms.checkbox';
|
|
591
|
-
const colorStyles$
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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);
|
|
599
753
|
};
|
|
600
754
|
const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
|
|
601
755
|
'data-garden-id': COMPONENT_ID$o,
|
|
602
|
-
'data-garden-version': '9.0.0
|
|
756
|
+
'data-garden-version': '9.0.0',
|
|
603
757
|
type: 'checkbox'
|
|
604
758
|
}).withConfig({
|
|
605
759
|
displayName: "StyledCheckInput",
|
|
606
760
|
componentId: "sc-176jxxe-0"
|
|
607
|
-
})(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md,
|
|
608
|
-
StyledCheckInput.defaultProps = {
|
|
609
|
-
theme: reactTheming.DEFAULT_THEME
|
|
610
|
-
};
|
|
761
|
+
})(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md, colorStyles$8, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
|
|
611
762
|
|
|
612
763
|
const COMPONENT_ID$n = 'forms.radio_message';
|
|
613
764
|
const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
|
|
614
765
|
'data-garden-id': COMPONENT_ID$n,
|
|
615
|
-
'data-garden-version': '9.0.0
|
|
766
|
+
'data-garden-version': '9.0.0'
|
|
616
767
|
}).withConfig({
|
|
617
768
|
displayName: "StyledRadioMessage",
|
|
618
769
|
componentId: "sc-1pmi0q8-0"
|
|
619
770
|
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 6px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
620
|
-
StyledRadioMessage.defaultProps = {
|
|
621
|
-
theme: reactTheming.DEFAULT_THEME
|
|
622
|
-
};
|
|
623
771
|
|
|
624
772
|
const COMPONENT_ID$m = 'forms.checkbox_message';
|
|
625
773
|
const StyledCheckMessage = styled__default.default(StyledRadioMessage).attrs({
|
|
626
774
|
'data-garden-id': COMPONENT_ID$m,
|
|
627
|
-
'data-garden-version': '9.0.0
|
|
775
|
+
'data-garden-version': '9.0.0'
|
|
628
776
|
}).withConfig({
|
|
629
777
|
displayName: "StyledCheckMessage",
|
|
630
778
|
componentId: "sc-s4p6kd-0"
|
|
631
779
|
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
632
|
-
StyledCheckMessage.defaultProps = {
|
|
633
|
-
theme: reactTheming.DEFAULT_THEME
|
|
634
|
-
};
|
|
635
780
|
|
|
636
|
-
var _path$
|
|
637
|
-
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); }
|
|
638
783
|
var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
639
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
784
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
640
785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
641
786
|
width: 12,
|
|
642
787
|
height: 12,
|
|
643
788
|
focusable: "false",
|
|
644
789
|
viewBox: "0 0 12 12",
|
|
645
790
|
"aria-hidden": "true"
|
|
646
|
-
}, props), _path$
|
|
791
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
647
792
|
fill: "none",
|
|
648
793
|
stroke: "currentColor",
|
|
649
794
|
strokeLinecap: "round",
|
|
@@ -656,26 +801,23 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
|
|
|
656
801
|
const COMPONENT_ID$l = 'forms.check_svg';
|
|
657
802
|
const StyledCheckSvg = styled__default.default(SvgCheckSmFill).attrs({
|
|
658
803
|
'data-garden-id': COMPONENT_ID$l,
|
|
659
|
-
'data-garden-version': '9.0.0
|
|
804
|
+
'data-garden-version': '9.0.0'
|
|
660
805
|
}).withConfig({
|
|
661
806
|
displayName: "StyledCheckSvg",
|
|
662
807
|
componentId: "sc-fvxetk-0"
|
|
663
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));
|
|
664
|
-
StyledCheckSvg.defaultProps = {
|
|
665
|
-
theme: reactTheming.DEFAULT_THEME
|
|
666
|
-
};
|
|
667
809
|
|
|
668
|
-
var _path$
|
|
669
|
-
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); }
|
|
670
812
|
var SvgDashFill = function SvgDashFill(props) {
|
|
671
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
813
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
672
814
|
xmlns: "http://www.w3.org/2000/svg",
|
|
673
815
|
width: 12,
|
|
674
816
|
height: 12,
|
|
675
817
|
focusable: "false",
|
|
676
818
|
viewBox: "0 0 12 12",
|
|
677
819
|
"aria-hidden": "true"
|
|
678
|
-
}, props), _path$
|
|
820
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
679
821
|
stroke: "currentColor",
|
|
680
822
|
strokeLinecap: "round",
|
|
681
823
|
strokeWidth: 2,
|
|
@@ -686,98 +828,182 @@ var SvgDashFill = function SvgDashFill(props) {
|
|
|
686
828
|
const COMPONENT_ID$k = 'forms.dash_svg';
|
|
687
829
|
const StyledDashSvg = styled__default.default(SvgDashFill).attrs({
|
|
688
830
|
'data-garden-id': COMPONENT_ID$k,
|
|
689
|
-
'data-garden-version': '9.0.0
|
|
831
|
+
'data-garden-version': '9.0.0'
|
|
690
832
|
}).withConfig({
|
|
691
833
|
displayName: "StyledDashSvg",
|
|
692
834
|
componentId: "sc-z3vq71-0"
|
|
693
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));
|
|
694
|
-
StyledDashSvg.defaultProps = {
|
|
695
|
-
theme: reactTheming.DEFAULT_THEME
|
|
696
|
-
};
|
|
697
836
|
|
|
698
837
|
const COMPONENT_ID$j = 'forms.file_upload';
|
|
699
|
-
const colorStyles$
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
const
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
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
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
const offset200 = {
|
|
864
|
+
dark: {
|
|
865
|
+
offset: -200
|
|
866
|
+
},
|
|
867
|
+
light: {
|
|
868
|
+
offset: 200
|
|
709
869
|
}
|
|
710
|
-
}
|
|
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);
|
|
711
915
|
};
|
|
712
|
-
const sizeStyles$
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
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);
|
|
718
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);
|
|
719
927
|
};
|
|
720
928
|
const StyledFileUpload = styled__default.default.div.attrs({
|
|
721
929
|
'data-garden-id': COMPONENT_ID$j,
|
|
722
|
-
'data-garden-version': '9.0.0
|
|
930
|
+
'data-garden-version': '9.0.0'
|
|
723
931
|
}).withConfig({
|
|
724
932
|
displayName: "StyledFileUpload",
|
|
725
933
|
componentId: "sc-1rodjgn-0"
|
|
726
|
-
})(["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$
|
|
727
|
-
StyledFileUpload.defaultProps = {
|
|
728
|
-
theme: reactTheming.DEFAULT_THEME
|
|
729
|
-
};
|
|
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));
|
|
730
935
|
|
|
731
936
|
const COMPONENT_ID$i = 'forms.file.close';
|
|
732
937
|
const StyledFileClose = styled__default.default.button.attrs({
|
|
733
938
|
'data-garden-id': COMPONENT_ID$i,
|
|
734
|
-
'data-garden-version': '9.0.0
|
|
939
|
+
'data-garden-version': '9.0.0'
|
|
735
940
|
}).withConfig({
|
|
736
941
|
displayName: "StyledFileClose",
|
|
737
942
|
componentId: "sc-1m31jbf-0"
|
|
738
|
-
})(["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.
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
};
|
|
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));
|
|
742
947
|
|
|
743
948
|
const COMPONENT_ID$h = 'forms.file';
|
|
744
|
-
const colorStyles$
|
|
745
|
-
let
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
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';
|
|
756
966
|
} else {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
967
|
+
borderVariable = 'border.default';
|
|
968
|
+
focusBorderVariable = 'border.primaryEmphasis';
|
|
969
|
+
foregroundVariable = 'foreground.default';
|
|
760
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
|
+
});
|
|
761
983
|
return styled.css(["border-color:", ";color:", ";", ""], borderColor, foregroundColor, reactTheming.focusStyles({
|
|
762
|
-
theme
|
|
763
|
-
inset:
|
|
984
|
+
theme,
|
|
985
|
+
inset: focusInset,
|
|
764
986
|
color: {
|
|
765
|
-
|
|
987
|
+
variable: focusBorderVariable
|
|
766
988
|
},
|
|
767
989
|
styles: {
|
|
768
990
|
borderColor: focusBorderColor
|
|
769
991
|
}
|
|
770
992
|
}));
|
|
771
993
|
};
|
|
772
|
-
const sizeStyles$
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
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);
|
|
777
1003
|
return `
|
|
778
1004
|
box-sizing: border-box;
|
|
779
|
-
border: ${
|
|
780
|
-
border-radius: ${
|
|
1005
|
+
border: ${theme.borders.sm};
|
|
1006
|
+
border-radius: ${theme.borderRadii.md};
|
|
781
1007
|
padding: 0 ${spacing};
|
|
782
1008
|
height: ${size};
|
|
783
1009
|
line-height: ${lineHeight};
|
|
@@ -790,81 +1016,81 @@ const sizeStyles$7 = props => {
|
|
|
790
1016
|
& > ${StyledFileClose} {
|
|
791
1017
|
width: ${size};
|
|
792
1018
|
height: ${size};
|
|
793
|
-
margin-${
|
|
1019
|
+
margin-${theme.rtl ? 'left' : 'right'}: -${spacing};
|
|
794
1020
|
}
|
|
795
1021
|
`;
|
|
796
1022
|
};
|
|
797
1023
|
const StyledFile = styled__default.default.div.attrs({
|
|
798
1024
|
'data-garden-id': COMPONENT_ID$h,
|
|
799
|
-
'data-garden-version': '9.0.0
|
|
1025
|
+
'data-garden-version': '9.0.0'
|
|
800
1026
|
}).withConfig({
|
|
801
1027
|
displayName: "StyledFile",
|
|
802
1028
|
componentId: "sc-195lzp1-0"
|
|
803
|
-
})(["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$
|
|
804
|
-
StyledFile.defaultProps = {
|
|
805
|
-
theme: reactTheming.DEFAULT_THEME
|
|
806
|
-
};
|
|
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));
|
|
807
1030
|
|
|
808
1031
|
const COMPONENT_ID$g = 'forms.file.delete';
|
|
809
1032
|
const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
|
|
810
1033
|
'data-garden-id': COMPONENT_ID$g,
|
|
811
|
-
'data-garden-version': '9.0.0
|
|
1034
|
+
'data-garden-version': '9.0.0'
|
|
812
1035
|
}).withConfig({
|
|
813
1036
|
displayName: "StyledFileDelete",
|
|
814
1037
|
componentId: "sc-a8nnhx-0"
|
|
815
|
-
})(["color:", ";", ";"], props => reactTheming.
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
};
|
|
1038
|
+
})(["color:", ";", ";"], props => reactTheming.getColor({
|
|
1039
|
+
theme: props.theme,
|
|
1040
|
+
variable: 'foreground.danger'
|
|
1041
|
+
}), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
|
|
819
1042
|
|
|
820
1043
|
const COMPONENT_ID$f = 'forms.file.icon';
|
|
821
|
-
const
|
|
1044
|
+
const colorStyles$5 = _ref => {
|
|
822
1045
|
let {
|
|
823
|
-
children,
|
|
824
|
-
isCompact,
|
|
825
1046
|
theme,
|
|
826
|
-
|
|
1047
|
+
$validation
|
|
827
1048
|
} = _ref;
|
|
828
|
-
|
|
829
|
-
|
|
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
|
+
};
|
|
1064
|
+
const StyledFileIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
830
1065
|
'data-garden-id': COMPONENT_ID$f,
|
|
831
|
-
'data-garden-version': '9.0.0
|
|
1066
|
+
'data-garden-version': '9.0.0'
|
|
832
1067
|
}).withConfig({
|
|
833
1068
|
displayName: "StyledFileIcon",
|
|
834
1069
|
componentId: "sc-7b3q0c-0"
|
|
835
|
-
})(["flex-shrink:0;
|
|
836
|
-
StyledFileIcon.defaultProps = {
|
|
837
|
-
theme: reactTheming.DEFAULT_THEME
|
|
838
|
-
};
|
|
1070
|
+
})(["flex-shrink:0;", ";", ";", ";"], sizeStyles$9, colorStyles$5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
|
|
839
1071
|
|
|
840
1072
|
const COMPONENT_ID$e = 'forms.file_list';
|
|
841
1073
|
const StyledFileList = styled__default.default.ul.attrs({
|
|
842
1074
|
'data-garden-id': COMPONENT_ID$e,
|
|
843
|
-
'data-garden-version': '9.0.0
|
|
1075
|
+
'data-garden-version': '9.0.0'
|
|
844
1076
|
}).withConfig({
|
|
845
1077
|
displayName: "StyledFileList",
|
|
846
1078
|
componentId: "sc-gbahjg-0"
|
|
847
1079
|
})(["margin:0;padding:0;list-style:none;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
|
|
848
|
-
StyledFileList.defaultProps = {
|
|
849
|
-
theme: reactTheming.DEFAULT_THEME
|
|
850
|
-
};
|
|
851
1080
|
|
|
852
1081
|
const COMPONENT_ID$d = 'forms.file_list.item';
|
|
853
1082
|
const StyledFileListItem = styled__default.default.li.attrs({
|
|
854
1083
|
'data-garden-id': COMPONENT_ID$d,
|
|
855
|
-
'data-garden-version': '9.0.0
|
|
1084
|
+
'data-garden-version': '9.0.0'
|
|
856
1085
|
}).withConfig({
|
|
857
1086
|
displayName: "StyledFileListItem",
|
|
858
1087
|
componentId: "sc-1ova3lo-0"
|
|
859
1088
|
})(["&:not(:first-child),", " ~ ", " > &:first-child{margin-top:", "px;}", ";"], StyledFileUpload, StyledFileList, props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
|
|
860
|
-
StyledFileListItem.defaultProps = {
|
|
861
|
-
theme: reactTheming.DEFAULT_THEME
|
|
862
|
-
};
|
|
863
1089
|
|
|
864
1090
|
var _circle$3;
|
|
865
|
-
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); }
|
|
866
1092
|
var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
867
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1093
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
868
1094
|
xmlns: "http://www.w3.org/2000/svg",
|
|
869
1095
|
width: 12,
|
|
870
1096
|
height: 12,
|
|
@@ -882,87 +1108,97 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
|
|
|
882
1108
|
const COMPONENT_ID$c = 'forms.radio_svg';
|
|
883
1109
|
const StyledRadioSvg = styled__default.default(SvgCircleSmFill$1).attrs({
|
|
884
1110
|
'data-garden-id': COMPONENT_ID$c,
|
|
885
|
-
'data-garden-version': '9.0.0
|
|
1111
|
+
'data-garden-version': '9.0.0'
|
|
886
1112
|
}).withConfig({
|
|
887
1113
|
displayName: "StyledRadioSvg",
|
|
888
1114
|
componentId: "sc-1r1qtr1-0"
|
|
889
1115
|
})(["transition:opacity 0.25s ease-in-out;opacity:0;", ":checked ~ ", " > &{opacity:1;}", ";"], StyledRadioInput, StyledRadioLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
|
|
890
|
-
StyledRadioSvg.defaultProps = {
|
|
891
|
-
theme: reactTheming.DEFAULT_THEME
|
|
892
|
-
};
|
|
893
1116
|
|
|
894
1117
|
const COMPONENT_ID$b = 'forms.toggle_label';
|
|
895
|
-
const sizeStyles$
|
|
1118
|
+
const sizeStyles$8 = props => {
|
|
896
1119
|
const size = props.theme.space.base * 10;
|
|
897
1120
|
const padding = size + props.theme.space.base * 2;
|
|
898
1121
|
return styled.css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size);
|
|
899
1122
|
};
|
|
900
1123
|
const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
|
|
901
1124
|
'data-garden-id': COMPONENT_ID$b,
|
|
902
|
-
'data-garden-version': '9.0.0
|
|
1125
|
+
'data-garden-version': '9.0.0'
|
|
903
1126
|
}).withConfig({
|
|
904
1127
|
displayName: "StyledToggleLabel",
|
|
905
1128
|
componentId: "sc-e0asdk-0"
|
|
906
|
-
})(["", ";", ";"], props => sizeStyles$
|
|
907
|
-
StyledToggleLabel.defaultProps = {
|
|
908
|
-
theme: reactTheming.DEFAULT_THEME
|
|
909
|
-
};
|
|
1129
|
+
})(["", ";", ";"], props => sizeStyles$8(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
|
|
910
1130
|
|
|
911
1131
|
const COMPONENT_ID$a = 'forms.toggle_hint';
|
|
912
1132
|
const StyledToggleHint = styled__default.default(StyledHint).attrs({
|
|
913
1133
|
'data-garden-id': COMPONENT_ID$a,
|
|
914
|
-
'data-garden-version': '9.0.0
|
|
1134
|
+
'data-garden-version': '9.0.0'
|
|
915
1135
|
}).withConfig({
|
|
916
1136
|
displayName: "StyledToggleHint",
|
|
917
1137
|
componentId: "sc-nziggu-0"
|
|
918
1138
|
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 12px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
|
|
919
|
-
StyledToggleHint.defaultProps = {
|
|
920
|
-
theme: reactTheming.DEFAULT_THEME
|
|
921
|
-
};
|
|
922
1139
|
|
|
923
1140
|
const COMPONENT_ID$9 = 'forms.toggle';
|
|
924
|
-
const colorStyles$
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
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
|
+
});
|
|
929
1168
|
return styled.css(["& ~ ", "::before{background-color:", ";}&:enabled ~ ", ":hover::before{background-color:", ";}&:enabled ~ ", ":active::before{background-color:", ";}"], StyledToggleLabel, backgroundColor, StyledToggleLabel, hoverBackgroundColor, StyledToggleLabel, activeBackgroundColor);
|
|
930
1169
|
};
|
|
931
|
-
const sizeStyles$
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
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;
|
|
935
1177
|
const iconPosition = polished.math(`(${height} - ${iconSize}) / 2`);
|
|
936
1178
|
const checkedIconPosition = polished.math(`${width} - ${iconSize} - ${iconPosition}`);
|
|
937
|
-
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);
|
|
938
1180
|
};
|
|
939
1181
|
const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
|
|
940
1182
|
'data-garden-id': COMPONENT_ID$9,
|
|
941
|
-
'data-garden-version': '9.0.0
|
|
1183
|
+
'data-garden-version': '9.0.0'
|
|
942
1184
|
}).withConfig({
|
|
943
1185
|
displayName: "StyledToggleInput",
|
|
944
1186
|
componentId: "sc-sgp47s-0"
|
|
945
|
-
})(["& ~ ", "::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,
|
|
946
|
-
StyledToggleInput.defaultProps = {
|
|
947
|
-
theme: reactTheming.DEFAULT_THEME
|
|
948
|
-
};
|
|
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));
|
|
949
1188
|
|
|
950
1189
|
const COMPONENT_ID$8 = 'forms.toggle_message';
|
|
951
1190
|
const StyledToggleMessage = styled__default.default(StyledMessage).attrs({
|
|
952
1191
|
'data-garden-id': COMPONENT_ID$8,
|
|
953
|
-
'data-garden-version': '9.0.0
|
|
1192
|
+
'data-garden-version': '9.0.0'
|
|
954
1193
|
}).withConfig({
|
|
955
1194
|
displayName: "StyledToggleMessage",
|
|
956
1195
|
componentId: "sc-13vuvl1-0"
|
|
957
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));
|
|
958
|
-
StyledToggleMessage.defaultProps = {
|
|
959
|
-
theme: reactTheming.DEFAULT_THEME
|
|
960
|
-
};
|
|
961
1197
|
|
|
962
1198
|
var _circle$2;
|
|
963
|
-
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); }
|
|
964
1200
|
var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
965
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1201
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
966
1202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
967
1203
|
width: 16,
|
|
968
1204
|
height: 16,
|
|
@@ -980,49 +1216,72 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
|
|
|
980
1216
|
const COMPONENT_ID$7 = 'forms.toggle_svg';
|
|
981
1217
|
const StyledToggleSvg = styled__default.default(SvgCircleSmFill).attrs({
|
|
982
1218
|
'data-garden-id': COMPONENT_ID$7,
|
|
983
|
-
'data-garden-version': '9.0.0
|
|
1219
|
+
'data-garden-version': '9.0.0'
|
|
984
1220
|
}).withConfig({
|
|
985
1221
|
displayName: "StyledToggleSvg",
|
|
986
1222
|
componentId: "sc-162xbyx-0"
|
|
987
1223
|
})(["transition:all 0.15s ease-in-out;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
|
|
988
|
-
StyledToggleSvg.defaultProps = {
|
|
989
|
-
theme: reactTheming.DEFAULT_THEME
|
|
990
|
-
};
|
|
991
1224
|
|
|
992
1225
|
const COMPONENT_ID$6 = 'forms.select';
|
|
993
|
-
const colorStyles$
|
|
994
|
-
|
|
995
|
-
|
|
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);
|
|
996
1245
|
};
|
|
997
|
-
const sizeStyles$
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
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);
|
|
1002
1256
|
};
|
|
1003
1257
|
const StyledSelect = styled__default.default(StyledTextInput).attrs({
|
|
1004
1258
|
'data-garden-id': COMPONENT_ID$6,
|
|
1005
|
-
'data-garden-version': '9.0.0
|
|
1259
|
+
'data-garden-version': '9.0.0',
|
|
1006
1260
|
as: 'select'
|
|
1007
1261
|
}).withConfig({
|
|
1008
1262
|
displayName: "StyledSelect",
|
|
1009
1263
|
componentId: "sc-8xdxpt-0"
|
|
1010
|
-
})(["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;}"],
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
};
|
|
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);
|
|
1014
1268
|
|
|
1015
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
|
+
};
|
|
1016
1278
|
const StyledSelectWrapper = styled__default.default(StyledTextFauxInput).attrs({
|
|
1017
1279
|
'data-garden-id': COMPONENT_ID$5,
|
|
1018
|
-
'data-garden-version': '9.0.0
|
|
1280
|
+
'data-garden-version': '9.0.0'
|
|
1019
1281
|
}).withConfig({
|
|
1020
1282
|
displayName: "StyledSelectWrapper",
|
|
1021
1283
|
componentId: "sc-i7b6hw-0"
|
|
1022
|
-
})(["position:relative;padding:0;overflow:visible;& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
|
|
1023
|
-
StyledSelectWrapper.defaultProps = {
|
|
1024
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1025
|
-
};
|
|
1284
|
+
})(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles$5, StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
|
|
1026
1285
|
|
|
1027
1286
|
const COMPONENT_ID$4 = 'forms.range';
|
|
1028
1287
|
const thumbStyles = function (styles) {
|
|
@@ -1069,28 +1328,74 @@ const trackLowerStyles = function (styles) {
|
|
|
1069
1328
|
}
|
|
1070
1329
|
`;
|
|
1071
1330
|
};
|
|
1072
|
-
const colorStyles$
|
|
1073
|
-
|
|
1074
|
-
|
|
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);
|
|
1075
1341
|
const thumbBorderColor = thumbBackgroundColor;
|
|
1076
|
-
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
|
+
}));
|
|
1077
1346
|
const thumbFocusBoxShadow = reactTheming.getFocusBoxShadow({
|
|
1078
|
-
theme
|
|
1347
|
+
theme
|
|
1348
|
+
});
|
|
1349
|
+
const thumbActiveBackgroundColor = reactTheming.getColor({
|
|
1350
|
+
...options,
|
|
1351
|
+
dark: {
|
|
1352
|
+
offset: -200
|
|
1353
|
+
},
|
|
1354
|
+
light: {
|
|
1355
|
+
offset: 200
|
|
1356
|
+
}
|
|
1079
1357
|
});
|
|
1080
|
-
const thumbActiveBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
1081
1358
|
const thumbActiveBorderColor = thumbBorderColor;
|
|
1082
|
-
const thumbDisabledBackgroundColor = reactTheming.
|
|
1359
|
+
const thumbDisabledBackgroundColor = reactTheming.getColor({
|
|
1360
|
+
theme,
|
|
1361
|
+
variable: 'border.emphasis'
|
|
1362
|
+
});
|
|
1083
1363
|
const thumbDisabledBorderColor = thumbDisabledBackgroundColor;
|
|
1084
|
-
const thumbHoverBackgroundColor =
|
|
1364
|
+
const thumbHoverBackgroundColor = reactTheming.getColor({
|
|
1365
|
+
...options,
|
|
1366
|
+
dark: {
|
|
1367
|
+
offset: -100
|
|
1368
|
+
},
|
|
1369
|
+
light: {
|
|
1370
|
+
offset: 100
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1085
1373
|
const thumbHoverBorderColor = thumbHoverBackgroundColor;
|
|
1086
|
-
const trackBackgroundColor = reactTheming.
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
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})` : '';
|
|
1091
1396
|
return styled.css(["", " ", " ", " ", " ", " ", " ", " ", " ", ""], trackStyles(`
|
|
1092
1397
|
background-color: ${trackBackgroundColor};
|
|
1093
|
-
background-image: ${trackBackgroundImage}; /*
|
|
1398
|
+
background-image: ${trackBackgroundImage}; /* [1] */
|
|
1094
1399
|
`), thumbStyles(`
|
|
1095
1400
|
border-color: ${thumbBorderColor};
|
|
1096
1401
|
box-shadow: ${thumbBoxShadow};
|
|
@@ -1109,6 +1414,7 @@ const colorStyles$1 = props => {
|
|
|
1109
1414
|
border-color: ${thumbActiveBorderColor};
|
|
1110
1415
|
background-color: ${thumbActiveBackgroundColor};
|
|
1111
1416
|
`, ':active'), trackStyles(`
|
|
1417
|
+
background-color: ${trackDisabledBackgroundColor};
|
|
1112
1418
|
background-image: ${trackDisabledBackgroundImage};
|
|
1113
1419
|
`, ':disabled'), thumbStyles(`
|
|
1114
1420
|
border-color: ${thumbDisabledBorderColor};
|
|
@@ -1118,29 +1424,32 @@ const colorStyles$1 = props => {
|
|
|
1118
1424
|
background-color: ${trackDisabledLowerBackgroundColor};
|
|
1119
1425
|
`, ':disabled'));
|
|
1120
1426
|
};
|
|
1121
|
-
const sizeStyles$
|
|
1122
|
-
|
|
1123
|
-
|
|
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`;
|
|
1124
1433
|
const trackBorderRadius = trackHeight;
|
|
1125
|
-
const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${
|
|
1434
|
+
const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${theme.shadowWidths.md}`);
|
|
1126
1435
|
const thumbMargin = polished.math(`(${trackHeight} - ${thumbSize}) / 2`);
|
|
1127
|
-
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(`
|
|
1128
1437
|
margin: ${trackMargin} 0;
|
|
1129
1438
|
border-radius: ${trackBorderRadius};
|
|
1130
1439
|
height: ${trackHeight};
|
|
1131
1440
|
`), thumbStyles(`
|
|
1132
|
-
margin: ${thumbMargin} 0; /*
|
|
1441
|
+
margin: ${thumbMargin} 0; /* [1] */
|
|
1133
1442
|
width: ${thumbSize};
|
|
1134
1443
|
height: ${thumbSize};
|
|
1135
1444
|
`), trackLowerStyles(`
|
|
1136
|
-
border-top-${
|
|
1137
|
-
border-bottom-${
|
|
1445
|
+
border-top-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
|
|
1446
|
+
border-bottom-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
|
|
1138
1447
|
height: ${trackHeight};
|
|
1139
1448
|
`));
|
|
1140
1449
|
};
|
|
1141
1450
|
const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
1142
1451
|
'data-garden-id': COMPONENT_ID$4,
|
|
1143
|
-
'data-garden-version': '9.0.0
|
|
1452
|
+
'data-garden-version': '9.0.0',
|
|
1144
1453
|
type: 'range',
|
|
1145
1454
|
style: {
|
|
1146
1455
|
backgroundSize: props.hasLowerTrack && props.backgroundSize
|
|
@@ -1157,145 +1466,226 @@ const StyledRangeInput = styled__default.default.input.attrs(props => ({
|
|
|
1157
1466
|
width: 99.8%; /* fix for IE which cuts off the upper track's border radius */
|
|
1158
1467
|
color: transparent; /* reset for IE */
|
|
1159
1468
|
box-sizing: border-box; /* reset for IE */
|
|
1160
|
-
`),
|
|
1469
|
+
`), sizeStyles$4, props => thumbStyles(`
|
|
1161
1470
|
appearance: none;
|
|
1162
1471
|
transition: box-shadow .1s ease-in-out;
|
|
1163
1472
|
border: ${props.theme.borders.md};
|
|
1164
1473
|
border-radius: 100%;
|
|
1165
1474
|
box-sizing: border-box;
|
|
1166
|
-
`),
|
|
1475
|
+
`), colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
|
|
1167
1476
|
StyledRangeInput.defaultProps = {
|
|
1168
1477
|
backgroundSize: '0%',
|
|
1169
1478
|
hasLowerTrack: true,
|
|
1170
1479
|
theme: reactTheming.DEFAULT_THEME
|
|
1171
1480
|
};
|
|
1172
1481
|
|
|
1173
|
-
const COMPONENT_ID$3 = 'forms.
|
|
1174
|
-
const
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
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
|
|
1185
1493
|
}
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
'data-garden-id': COMPONENT_ID$3,
|
|
1191
|
-
'data-garden-version': '9.0.0-next.8'
|
|
1192
|
-
}).withConfig({
|
|
1193
|
-
displayName: "StyledTileIcon",
|
|
1194
|
-
componentId: "sc-1wazhg4-0"
|
|
1195
|
-
})(["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));
|
|
1196
|
-
StyledTileIcon.defaultProps = {
|
|
1197
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1198
|
-
};
|
|
1199
|
-
|
|
1200
|
-
const COMPONENT_ID$2 = 'forms.tile';
|
|
1201
|
-
const colorStyles = props => {
|
|
1202
|
-
const SHADE = 600;
|
|
1203
|
-
const iconColor = reactTheming.getColorV8('neutralHue', SHADE, props.theme);
|
|
1204
|
-
const color = reactTheming.getColorV8('neutralHue', SHADE + 200, props.theme);
|
|
1205
|
-
const borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
|
|
1206
|
-
const hoverBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.08);
|
|
1207
|
-
const hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
|
|
1208
|
-
const focusBorderColor = hoverBorderColor;
|
|
1209
|
-
const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.2);
|
|
1210
|
-
const activeBorderColor = focusBorderColor;
|
|
1211
|
-
const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 500, props.theme);
|
|
1212
|
-
const disabledBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
|
|
1213
|
-
const disabledColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
|
|
1214
|
-
const selectedBorderColor = focusBorderColor;
|
|
1215
|
-
const selectedBackgroundColor = selectedBorderColor;
|
|
1216
|
-
const selectedHoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
|
|
1217
|
-
const selectedHoverBackgroundColor = selectedHoverBorderColor;
|
|
1218
|
-
const selectedActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 200, props.theme);
|
|
1219
|
-
const selectedActiveBackgroundColor = selectedActiveBorderColor;
|
|
1220
|
-
const selectedDisabledBackgroundColor = disabledBorderColor;
|
|
1221
|
-
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({
|
|
1222
|
-
theme: props.theme,
|
|
1223
|
-
color: {
|
|
1224
|
-
hue: focusBorderColor
|
|
1494
|
+
};
|
|
1495
|
+
const offset200 = {
|
|
1496
|
+
dark: {
|
|
1497
|
+
offset: -200
|
|
1225
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)',
|
|
1226
1562
|
styles: {
|
|
1227
1563
|
borderColor: focusBorderColor
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
}), 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);
|
|
1231
1566
|
};
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
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({
|
|
1237
1579
|
displayName: "StyledTile",
|
|
1238
1580
|
componentId: "sc-1jjvmxs-0"
|
|
1239
|
-
})(["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:", ";
|
|
1240
|
-
StyledTile.defaultProps = {
|
|
1241
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1242
|
-
};
|
|
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));
|
|
1243
1582
|
|
|
1244
|
-
const COMPONENT_ID$
|
|
1245
|
-
const sizeStyles$
|
|
1246
|
-
let
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
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);
|
|
1255
1594
|
};
|
|
1256
1595
|
const StyledTileDescription = styled__default.default.span.attrs({
|
|
1257
|
-
'data-garden-id': COMPONENT_ID$
|
|
1258
|
-
'data-garden-version': '9.0.0
|
|
1596
|
+
'data-garden-id': COMPONENT_ID$2,
|
|
1597
|
+
'data-garden-version': '9.0.0'
|
|
1259
1598
|
}).withConfig({
|
|
1260
1599
|
displayName: "StyledTileDescription",
|
|
1261
1600
|
componentId: "sc-xfuu7u-0"
|
|
1262
|
-
})(["display:block;text-align:", ";
|
|
1263
|
-
|
|
1264
|
-
|
|
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);
|
|
1265
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);
|
|
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));
|
|
1266
1664
|
|
|
1267
1665
|
const StyledTileInput = styled__default.default.input.withConfig({
|
|
1268
1666
|
displayName: "StyledTileInput",
|
|
1269
1667
|
componentId: "sc-1nq2m6q-0"
|
|
1270
|
-
})(["position:absolute;
|
|
1271
|
-
StyledTileInput.defaultProps = {
|
|
1272
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1273
|
-
};
|
|
1668
|
+
})(["position:absolute;top:0;left:0;opacity:0;z-index:1;margin:0;cursor:", ";width:100%;height:100%;"], props => props.disabled ? 'default' : 'pointer');
|
|
1274
1669
|
|
|
1275
1670
|
const COMPONENT_ID = 'forms.tile_label';
|
|
1276
|
-
const sizeStyles =
|
|
1277
|
-
let
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
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);
|
|
1288
1681
|
};
|
|
1289
1682
|
const StyledTileLabel = styled__default.default.span.attrs({
|
|
1290
1683
|
'data-garden-id': COMPONENT_ID,
|
|
1291
|
-
'data-garden-version': '9.0.0
|
|
1684
|
+
'data-garden-version': '9.0.0'
|
|
1292
1685
|
}).withConfig({
|
|
1293
1686
|
displayName: "StyledTileLabel",
|
|
1294
1687
|
componentId: "sc-1mypv27-0"
|
|
1295
|
-
})(["display:block;text-align:", ";
|
|
1296
|
-
StyledTileLabel.defaultProps = {
|
|
1297
|
-
theme: reactTheming.DEFAULT_THEME
|
|
1298
|
-
};
|
|
1688
|
+
})(["display:block;text-align:", ";font-weight:", ";", ";", ";"], props => props.isCentered && 'center', props => props.theme.fontWeights.semibold, sizeStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
|
|
1299
1689
|
|
|
1300
1690
|
const InputContext = React.createContext(undefined);
|
|
1301
1691
|
const useInputContext = () => {
|
|
@@ -1337,7 +1727,7 @@ const Hint = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1337
1727
|
ref: ref
|
|
1338
1728
|
}, combinedProps));
|
|
1339
1729
|
});
|
|
1340
|
-
Hint.displayName = 'Hint';
|
|
1730
|
+
Hint.displayName = 'Field.Hint';
|
|
1341
1731
|
|
|
1342
1732
|
const VALIDATION = ['success', 'warning', 'error'];
|
|
1343
1733
|
const FILE_VALIDATION = ['success', 'error'];
|
|
@@ -1387,12 +1777,12 @@ const Message = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1387
1777
|
const ariaLabel = reactTheming.useText(Message, combinedProps, 'validationLabel', validation, validation !== undefined);
|
|
1388
1778
|
return React__namespace.default.createElement(MessageComponent, Object.assign({
|
|
1389
1779
|
ref: ref
|
|
1390
|
-
}, combinedProps), validation && React__namespace.default.createElement(StyledMessageIcon, {
|
|
1780
|
+
}, combinedProps), !!validation && React__namespace.default.createElement(StyledMessageIcon, {
|
|
1391
1781
|
validation: validation,
|
|
1392
1782
|
"aria-label": ariaLabel
|
|
1393
1783
|
}), children);
|
|
1394
1784
|
});
|
|
1395
|
-
Message.displayName = 'Message';
|
|
1785
|
+
Message.displayName = 'Field.Message';
|
|
1396
1786
|
Message.propTypes = {
|
|
1397
1787
|
validation: PropTypes__default.default.oneOf(VALIDATION),
|
|
1398
1788
|
validationLabel: PropTypes__default.default.string
|
|
@@ -1445,7 +1835,7 @@ const Label$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1445
1835
|
}, combinedProps), React__namespace.default.createElement(StyledRadioSvg, null), props.children);
|
|
1446
1836
|
} else if (type === 'checkbox') {
|
|
1447
1837
|
const onLabelSelect = e => {
|
|
1448
|
-
const isFirefox = navigator
|
|
1838
|
+
const isFirefox = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
1449
1839
|
if (fieldContext && isFirefox && e.target instanceof Element) {
|
|
1450
1840
|
const inputId = e.target.getAttribute('for');
|
|
1451
1841
|
if (!inputId) return;
|
|
@@ -1475,7 +1865,7 @@ const Label$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1475
1865
|
ref: ref
|
|
1476
1866
|
}, combinedProps));
|
|
1477
1867
|
});
|
|
1478
|
-
Label$1.displayName = 'Label';
|
|
1868
|
+
Label$1.displayName = 'Field.Label';
|
|
1479
1869
|
Label$1.propTypes = {
|
|
1480
1870
|
isRegular: PropTypes__default.default.bool
|
|
1481
1871
|
};
|
|
@@ -1790,7 +2180,7 @@ const Textarea = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1790
2180
|
if (fieldContext) {
|
|
1791
2181
|
combinedProps = fieldContext.getInputProps(combinedProps);
|
|
1792
2182
|
}
|
|
1793
|
-
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, {
|
|
1794
2184
|
"aria-hidden": true,
|
|
1795
2185
|
readOnly: true,
|
|
1796
2186
|
isHidden: true,
|
|
@@ -1837,31 +2227,41 @@ Toggle.propTypes = {
|
|
|
1837
2227
|
isCompact: PropTypes__default.default.bool
|
|
1838
2228
|
};
|
|
1839
2229
|
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
2230
|
+
const StartIconComponent = _ref => {
|
|
2231
|
+
let {
|
|
2232
|
+
isDisabled,
|
|
2233
|
+
isFocused,
|
|
2234
|
+
isHovered,
|
|
2235
|
+
isRotated,
|
|
2236
|
+
...props
|
|
2237
|
+
} = _ref;
|
|
2238
|
+
return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
|
|
2239
|
+
$position: "start",
|
|
2240
|
+
$isDisabled: isDisabled,
|
|
2241
|
+
$isFocused: isFocused,
|
|
2242
|
+
$isHovered: isHovered,
|
|
2243
|
+
$isRotated: isRotated
|
|
2244
|
+
}, props));
|
|
1854
2245
|
};
|
|
1855
|
-
|
|
1856
|
-
const StartIconComponent = props => React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
|
|
1857
|
-
position: "start"
|
|
1858
|
-
}, props));
|
|
1859
2246
|
StartIconComponent.displayName = 'FauxInput.StartIcon';
|
|
1860
2247
|
const StartIcon = StartIconComponent;
|
|
1861
2248
|
|
|
1862
|
-
const EndIconComponent =
|
|
1863
|
-
|
|
1864
|
-
|
|
2249
|
+
const EndIconComponent = _ref => {
|
|
2250
|
+
let {
|
|
2251
|
+
isDisabled,
|
|
2252
|
+
isFocused,
|
|
2253
|
+
isHovered,
|
|
2254
|
+
isRotated,
|
|
2255
|
+
...props
|
|
2256
|
+
} = _ref;
|
|
2257
|
+
return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
|
|
2258
|
+
$position: "end",
|
|
2259
|
+
$isDisabled: isDisabled,
|
|
2260
|
+
$isFocused: isFocused,
|
|
2261
|
+
$isHovered: isHovered,
|
|
2262
|
+
$isRotated: isRotated
|
|
2263
|
+
}, props));
|
|
2264
|
+
};
|
|
1865
2265
|
EndIconComponent.displayName = 'FauxInput.EndIcon';
|
|
1866
2266
|
const EndIcon = EndIconComponent;
|
|
1867
2267
|
|
|
@@ -1932,6 +2332,7 @@ const Select = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1932
2332
|
return React__namespace.default.createElement(StyledSelectWrapper, {
|
|
1933
2333
|
isCompact: isCompact,
|
|
1934
2334
|
isBare: isBare,
|
|
2335
|
+
isDisabled: disabled,
|
|
1935
2336
|
validation: validation,
|
|
1936
2337
|
focusInset: focusInset
|
|
1937
2338
|
}, React__namespace.default.createElement(StyledSelect, combinedProps), !isBare && React__namespace.default.createElement(FauxInput.EndIcon, {
|
|
@@ -1970,9 +2371,7 @@ const TileComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1970
2371
|
}
|
|
1971
2372
|
return React__namespace.default.createElement(StyledTile, Object.assign({
|
|
1972
2373
|
ref: ref,
|
|
1973
|
-
"aria-disabled": disabled
|
|
1974
|
-
isDisabled: disabled,
|
|
1975
|
-
isSelected: tilesContext && tilesContext.value === value
|
|
2374
|
+
"aria-disabled": disabled
|
|
1976
2375
|
}, props), children, React__namespace.default.createElement(StyledTileInput, Object.assign({}, inputProps, {
|
|
1977
2376
|
disabled: disabled,
|
|
1978
2377
|
value: value,
|
|
@@ -1991,7 +2390,7 @@ const DescriptionComponent = React.forwardRef((props, ref) => {
|
|
|
1991
2390
|
const tilesContext = useTilesContext();
|
|
1992
2391
|
return React__namespace.default.createElement(StyledTileDescription, Object.assign({
|
|
1993
2392
|
ref: ref,
|
|
1994
|
-
isCentered: tilesContext
|
|
2393
|
+
isCentered: tilesContext?.isCentered
|
|
1995
2394
|
}, props));
|
|
1996
2395
|
});
|
|
1997
2396
|
DescriptionComponent.displayName = 'Tiles.Description';
|
|
@@ -2001,7 +2400,7 @@ const IconComponent = React.forwardRef((props, ref) => {
|
|
|
2001
2400
|
const tileContext = useTilesContext();
|
|
2002
2401
|
return React__namespace.default.createElement(StyledTileIcon, Object.assign({
|
|
2003
2402
|
ref: ref,
|
|
2004
|
-
isCentered: tileContext
|
|
2403
|
+
isCentered: tileContext?.isCentered
|
|
2005
2404
|
}, props));
|
|
2006
2405
|
});
|
|
2007
2406
|
IconComponent.displayName = 'Tiles.Icon';
|
|
@@ -2019,7 +2418,7 @@ const LabelComponent = React.forwardRef((props, forwardedRef) => {
|
|
|
2019
2418
|
return React__namespace.default.createElement(StyledTileLabel, Object.assign({
|
|
2020
2419
|
ref: reactMergeRefs.mergeRefs([ref, forwardedRef]),
|
|
2021
2420
|
title: title,
|
|
2022
|
-
isCentered: tilesContext
|
|
2421
|
+
isCentered: tilesContext?.isCentered
|
|
2023
2422
|
}, props));
|
|
2024
2423
|
});
|
|
2025
2424
|
LabelComponent.displayName = 'Tiles.Label';
|
|
@@ -2138,7 +2537,7 @@ const FileList = FileListComponent;
|
|
|
2138
2537
|
FileList.Item = Item;
|
|
2139
2538
|
|
|
2140
2539
|
var _path$j;
|
|
2141
|
-
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); }
|
|
2142
2541
|
var SvgXStroke$1 = function SvgXStroke(props) {
|
|
2143
2542
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2144
2543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2155,7 +2554,7 @@ var SvgXStroke$1 = function SvgXStroke(props) {
|
|
|
2155
2554
|
};
|
|
2156
2555
|
|
|
2157
2556
|
var _path$i;
|
|
2158
|
-
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); }
|
|
2159
2558
|
var SvgXStroke = function SvgXStroke(props) {
|
|
2160
2559
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2161
2560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2194,7 +2593,7 @@ CloseComponent.displayName = 'File.Close';
|
|
|
2194
2593
|
const Close = CloseComponent;
|
|
2195
2594
|
|
|
2196
2595
|
var _path$h;
|
|
2197
|
-
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); }
|
|
2198
2597
|
var SvgTrashStroke$1 = function SvgTrashStroke(props) {
|
|
2199
2598
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2200
2599
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2212,7 +2611,7 @@ var SvgTrashStroke$1 = function SvgTrashStroke(props) {
|
|
|
2212
2611
|
};
|
|
2213
2612
|
|
|
2214
2613
|
var _path$g;
|
|
2215
|
-
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); }
|
|
2216
2615
|
var SvgTrashStroke = function SvgTrashStroke(props) {
|
|
2217
2616
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2218
2617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2247,7 +2646,7 @@ DeleteComponent.displayName = 'File.Delete';
|
|
|
2247
2646
|
const Delete = DeleteComponent;
|
|
2248
2647
|
|
|
2249
2648
|
var _path$f, _rect$1;
|
|
2250
|
-
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); }
|
|
2251
2650
|
var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
|
|
2252
2651
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2253
2652
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2273,7 +2672,7 @@ var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
|
|
|
2273
2672
|
};
|
|
2274
2673
|
|
|
2275
2674
|
var _path$e;
|
|
2276
|
-
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); }
|
|
2277
2676
|
var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
|
|
2278
2677
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2279
2678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2291,7 +2690,7 @@ var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
|
|
|
2291
2690
|
};
|
|
2292
2691
|
|
|
2293
2692
|
var _path$d, _circle$1;
|
|
2294
|
-
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); }
|
|
2295
2694
|
var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
|
|
2296
2695
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
2297
2696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2315,7 +2714,7 @@ var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
|
|
|
2315
2714
|
};
|
|
2316
2715
|
|
|
2317
2716
|
var _path$c;
|
|
2318
|
-
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); }
|
|
2319
2718
|
var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
|
|
2320
2719
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
2321
2720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2333,7 +2732,7 @@ var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
|
|
|
2333
2732
|
};
|
|
2334
2733
|
|
|
2335
2734
|
var _path$b;
|
|
2336
|
-
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); }
|
|
2337
2736
|
var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
|
|
2338
2737
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
2339
2738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2351,7 +2750,7 @@ var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
|
|
|
2351
2750
|
};
|
|
2352
2751
|
|
|
2353
2752
|
var _path$a;
|
|
2354
|
-
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); }
|
|
2355
2754
|
var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
|
|
2356
2755
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
2357
2756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2368,7 +2767,7 @@ var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
|
|
|
2368
2767
|
};
|
|
2369
2768
|
|
|
2370
2769
|
var _path$9;
|
|
2371
|
-
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); }
|
|
2372
2771
|
var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
|
|
2373
2772
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
2374
2773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2385,7 +2784,7 @@ var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
|
|
|
2385
2784
|
};
|
|
2386
2785
|
|
|
2387
2786
|
var _g;
|
|
2388
|
-
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); }
|
|
2389
2788
|
var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
|
|
2390
2789
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
2391
2790
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2409,7 +2808,7 @@ var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
|
|
|
2409
2808
|
};
|
|
2410
2809
|
|
|
2411
2810
|
var _path$8;
|
|
2412
|
-
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); }
|
|
2413
2812
|
var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
|
|
2414
2813
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
2415
2814
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2427,7 +2826,7 @@ var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
|
|
|
2427
2826
|
};
|
|
2428
2827
|
|
|
2429
2828
|
var _path$7, _rect;
|
|
2430
|
-
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); }
|
|
2431
2830
|
var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
|
|
2432
2831
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
2433
2832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2453,7 +2852,7 @@ var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
|
|
|
2453
2852
|
};
|
|
2454
2853
|
|
|
2455
2854
|
var _path$6;
|
|
2456
|
-
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); }
|
|
2457
2856
|
var SvgFileZipStroke = function SvgFileZipStroke(props) {
|
|
2458
2857
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
2459
2858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2471,7 +2870,7 @@ var SvgFileZipStroke = function SvgFileZipStroke(props) {
|
|
|
2471
2870
|
};
|
|
2472
2871
|
|
|
2473
2872
|
var _path$5, _circle;
|
|
2474
|
-
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); }
|
|
2475
2874
|
var SvgFileImageStroke = function SvgFileImageStroke(props) {
|
|
2476
2875
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
2477
2876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2494,7 +2893,7 @@ var SvgFileImageStroke = function SvgFileImageStroke(props) {
|
|
|
2494
2893
|
};
|
|
2495
2894
|
|
|
2496
2895
|
var _path$4;
|
|
2497
|
-
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); }
|
|
2498
2897
|
var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
|
|
2499
2898
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
2500
2899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2512,7 +2911,7 @@ var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
|
|
|
2512
2911
|
};
|
|
2513
2912
|
|
|
2514
2913
|
var _path$3;
|
|
2515
|
-
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); }
|
|
2516
2915
|
var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
|
|
2517
2916
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
2518
2917
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2530,7 +2929,7 @@ var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
|
|
|
2530
2929
|
};
|
|
2531
2930
|
|
|
2532
2931
|
var _path$2;
|
|
2533
|
-
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); }
|
|
2534
2933
|
var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
|
|
2535
2934
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
2536
2935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2547,7 +2946,7 @@ var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
|
|
|
2547
2946
|
};
|
|
2548
2947
|
|
|
2549
2948
|
var _path$1;
|
|
2550
|
-
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); }
|
|
2551
2950
|
var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
|
|
2552
2951
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
2553
2952
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2564,7 +2963,7 @@ var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
|
|
|
2564
2963
|
};
|
|
2565
2964
|
|
|
2566
2965
|
var _path;
|
|
2567
|
-
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); }
|
|
2568
2967
|
var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
|
|
2569
2968
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2570
2969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2624,8 +3023,9 @@ const FileComponent = React.forwardRef((_ref, ref) => {
|
|
|
2624
3023
|
focusInset: focusInset,
|
|
2625
3024
|
validation: validation,
|
|
2626
3025
|
ref: ref
|
|
2627
|
-
}), validationType && React__namespace.default.createElement(StyledFileIcon, {
|
|
2628
|
-
isCompact: isCompact
|
|
3026
|
+
}), !!validationType && React__namespace.default.createElement(StyledFileIcon, {
|
|
3027
|
+
$isCompact: isCompact,
|
|
3028
|
+
$validation: validation
|
|
2629
3029
|
}, isCompact ? fileIconsCompact[validationType] : fileIconsDefault[validationType]), React.Children.map(children, child => typeof child === 'string' ? React__namespace.default.createElement("span", null, child) : child)));
|
|
2630
3030
|
});
|
|
2631
3031
|
FileComponent.displayName = 'File';
|
|
@@ -2714,11 +3114,11 @@ const MediaInput = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
2714
3114
|
mediaLayout: true
|
|
2715
3115
|
}, otherWrapperProps, {
|
|
2716
3116
|
ref: wrapperRef
|
|
2717
|
-
}), start && React__namespace.default.createElement(FauxInput.StartIcon, {
|
|
3117
|
+
}), !!start && React__namespace.default.createElement(FauxInput.StartIcon, {
|
|
2718
3118
|
isDisabled: disabled,
|
|
2719
3119
|
isFocused: isFocused,
|
|
2720
3120
|
isHovered: isHovered || isLabelHovered
|
|
2721
|
-
}, 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, {
|
|
2722
3122
|
isDisabled: disabled,
|
|
2723
3123
|
isFocused: isFocused,
|
|
2724
3124
|
isHovered: isHovered || isLabelHovered
|