@zendeskgarden/react-forms 9.12.3 → 9.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/elements/Checkbox.js +6 -7
- package/dist/esm/elements/FileUpload.js +6 -7
- package/dist/esm/elements/Input.js +8 -9
- package/dist/esm/elements/MediaInput.js +14 -15
- package/dist/esm/elements/Radio.js +5 -6
- package/dist/esm/elements/Range.js +7 -8
- package/dist/esm/elements/Select.js +8 -9
- package/dist/esm/elements/Textarea.js +13 -14
- package/dist/esm/elements/Toggle.js +5 -6
- package/dist/esm/elements/common/Fieldset.js +4 -5
- package/dist/esm/elements/common/Label.js +8 -9
- package/dist/esm/elements/common/Message.js +6 -7
- package/dist/esm/elements/common/MessageIcon.js +13 -15
- package/dist/esm/elements/faux-input/FauxInput.js +14 -15
- package/dist/esm/elements/faux-input/components/EndIcon.js +13 -16
- package/dist/esm/elements/faux-input/components/StartIcon.js +13 -16
- package/dist/esm/elements/file-list/FileList.js +5 -8
- package/dist/esm/elements/file-list/components/File.js +9 -10
- package/dist/esm/elements/file-list/components/Item.js +5 -8
- package/dist/esm/elements/input-group/InputGroup.js +4 -5
- package/dist/esm/elements/tiles/Tiles.js +8 -12
- package/dist/esm/elements/tiles/components/Tile.js +6 -7
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-circle-stroke.svg.js +2 -2
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-sm-fill.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/dash-fill.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-document-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-error-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-generic-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-image-stroke.svg.js +7 -7
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-pdf-stroke.svg.js +7 -7
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-presentation-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-spreadsheet-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-zip-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/trash-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/x-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +5 -5
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +5 -5
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +6 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-document-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-generic-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-image-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-pdf-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-presentation-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-spreadsheet-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-zip-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/trash-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +4 -4
- package/dist/esm/styled/checkbox/StyledCheckHint.js +3 -3
- package/dist/esm/styled/checkbox/StyledCheckInput.js +7 -8
- package/dist/esm/styled/checkbox/StyledCheckLabel.js +3 -3
- package/dist/esm/styled/checkbox/StyledCheckMessage.js +3 -3
- package/dist/esm/styled/checkbox/StyledCheckSvg.js +3 -3
- package/dist/esm/styled/checkbox/StyledDashSvg.js +3 -3
- package/dist/esm/styled/common/StyledField.js +3 -3
- package/dist/esm/styled/common/StyledFieldset.js +3 -3
- package/dist/esm/styled/common/StyledHint.js +3 -3
- package/dist/esm/styled/common/StyledLabel.js +3 -3
- package/dist/esm/styled/common/StyledLegend.js +3 -3
- package/dist/esm/styled/common/StyledMessage.js +13 -15
- package/dist/esm/styled/common/StyledMessageIcon.js +3 -3
- package/dist/esm/styled/file-list/StyledFile.js +14 -16
- package/dist/esm/styled/file-list/StyledFileClose.js +3 -3
- package/dist/esm/styled/file-list/StyledFileDelete.js +3 -3
- package/dist/esm/styled/file-list/StyledFileIcon.js +12 -14
- package/dist/esm/styled/file-list/StyledFileList.js +3 -3
- package/dist/esm/styled/file-list/StyledFileListItem.js +3 -3
- package/dist/esm/styled/file-upload/StyledFileUpload.js +13 -15
- package/dist/esm/styled/input-group/StyledInputGroup.js +3 -3
- package/dist/esm/styled/radio/StyledRadioHint.js +3 -3
- package/dist/esm/styled/radio/StyledRadioInput.js +11 -13
- package/dist/esm/styled/radio/StyledRadioLabel.js +5 -5
- package/dist/esm/styled/radio/StyledRadioMessage.js +3 -3
- package/dist/esm/styled/radio/StyledRadioSvg.js +3 -3
- package/dist/esm/styled/range/StyledRangeInput.js +15 -20
- package/dist/esm/styled/select/StyledSelect.js +12 -14
- package/dist/esm/styled/select/StyledSelectWrapper.js +8 -9
- package/dist/esm/styled/text/StyledTextFauxInput.js +11 -12
- package/dist/esm/styled/text/StyledTextInput.js +17 -19
- package/dist/esm/styled/text/StyledTextMediaFigure.js +11 -12
- package/dist/esm/styled/text/StyledTextMediaInput.js +3 -3
- package/dist/esm/styled/text/StyledTextarea.js +3 -3
- package/dist/esm/styled/tiles/StyledTile.js +10 -12
- package/dist/esm/styled/tiles/StyledTileDescription.js +8 -9
- package/dist/esm/styled/tiles/StyledTileIcon.js +11 -13
- package/dist/esm/styled/tiles/StyledTileLabel.js +5 -6
- package/dist/esm/styled/toggle/StyledToggleHint.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleInput.js +10 -12
- package/dist/esm/styled/toggle/StyledToggleLabel.js +5 -5
- package/dist/esm/styled/toggle/StyledToggleMessage.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleSvg.js +3 -3
- package/dist/index.cjs.js +336 -401
- package/package.json +5 -5
|
@@ -10,11 +10,10 @@ import { componentStyles, getColor, focusStyles } from '@zendeskgarden/react-the
|
|
|
10
10
|
import { StyledRadioLabel } from './StyledRadioLabel.js';
|
|
11
11
|
import { StyledMessage } from '../common/StyledMessage.js';
|
|
12
12
|
|
|
13
|
-
const COMPONENT_ID = 'forms.radio';
|
|
14
|
-
const colorStyles =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
13
|
+
const COMPONENT_ID$p = 'forms.radio';
|
|
14
|
+
const colorStyles$9 = ({
|
|
15
|
+
theme
|
|
16
|
+
}) => {
|
|
18
17
|
const borderColor = getColor({
|
|
19
18
|
theme,
|
|
20
19
|
variable: 'border.emphasis'
|
|
@@ -93,11 +92,10 @@ const colorStyles = _ref => {
|
|
|
93
92
|
selector: `&:focus-visible ~ ${StyledRadioLabel}::before`
|
|
94
93
|
}), StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
|
|
95
94
|
};
|
|
96
|
-
const sizeStyles =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
} = _ref2;
|
|
95
|
+
const sizeStyles$c = ({
|
|
96
|
+
theme,
|
|
97
|
+
$isCompact
|
|
98
|
+
}) => {
|
|
101
99
|
const lineHeight = `${theme.space.base * 5}px`;
|
|
102
100
|
const size = `${theme.space.base * 4}px`;
|
|
103
101
|
const top = math(`(${lineHeight} - ${size}) / 2`);
|
|
@@ -108,12 +106,12 @@ const sizeStyles = _ref2 => {
|
|
|
108
106
|
return 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);
|
|
109
107
|
};
|
|
110
108
|
const StyledRadioInput = styled.input.attrs({
|
|
111
|
-
'data-garden-id': COMPONENT_ID,
|
|
112
|
-
'data-garden-version': '9.12.
|
|
109
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
110
|
+
'data-garden-version': '9.12.4',
|
|
113
111
|
type: 'radio'
|
|
114
112
|
}).withConfig({
|
|
115
113
|
displayName: "StyledRadioInput",
|
|
116
114
|
componentId: "sc-qsavpv-0"
|
|
117
|
-
})(["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, StyledRadioLabel, StyledRadioLabel, colorStyles, StyledRadioLabel, componentStyles);
|
|
115
|
+
})(["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, componentStyles);
|
|
118
116
|
|
|
119
117
|
export { StyledRadioInput };
|
|
@@ -8,20 +8,20 @@ import styled, { css } from 'styled-components';
|
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledLabel } from '../common/StyledLabel.js';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'forms.radio_label';
|
|
12
|
-
const sizeStyles = props => {
|
|
11
|
+
const COMPONENT_ID$t = 'forms.radio_label';
|
|
12
|
+
const sizeStyles$d = props => {
|
|
13
13
|
const size = props.theme.space.base * 4;
|
|
14
14
|
const padding = size + props.theme.space.base * 2;
|
|
15
15
|
const lineHeight = props.theme.space.base * 5;
|
|
16
16
|
return css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;line-height:", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size, lineHeight);
|
|
17
17
|
};
|
|
18
18
|
const StyledRadioLabel = styled(StyledLabel).attrs({
|
|
19
|
-
'data-garden-id': COMPONENT_ID,
|
|
20
|
-
'data-garden-version': '9.12.
|
|
19
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
20
|
+
'data-garden-version': '9.12.4',
|
|
21
21
|
$isRadio: true
|
|
22
22
|
}).withConfig({
|
|
23
23
|
displayName: "StyledRadioLabel",
|
|
24
24
|
componentId: "sc-1aq2e5t-0"
|
|
25
|
-
})(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles(props), componentStyles);
|
|
25
|
+
})(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$d(props), componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledRadioLabel };
|
|
@@ -9,10 +9,10 @@ import { math } from 'polished';
|
|
|
9
9
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledMessage } from '../common/StyledMessage.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'forms.radio_message';
|
|
12
|
+
const COMPONENT_ID$n = 'forms.radio_message';
|
|
13
13
|
const StyledRadioMessage = styled(StyledMessage).attrs({
|
|
14
|
-
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.12.
|
|
14
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
15
|
+
'data-garden-version': '9.12.4'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledRadioMessage",
|
|
18
18
|
componentId: "sc-1pmi0q8-0"
|
|
@@ -10,10 +10,10 @@ import { componentStyles } from '@zendeskgarden/react-theming';
|
|
|
10
10
|
import { StyledRadioInput } from './StyledRadioInput.js';
|
|
11
11
|
import { StyledRadioLabel } from './StyledRadioLabel.js';
|
|
12
12
|
|
|
13
|
-
const COMPONENT_ID = 'forms.radio_svg';
|
|
13
|
+
const COMPONENT_ID$c = 'forms.radio_svg';
|
|
14
14
|
const StyledRadioSvg = styled(SvgCircleSmFill).attrs({
|
|
15
|
-
'data-garden-id': COMPONENT_ID,
|
|
16
|
-
'data-garden-version': '9.12.
|
|
15
|
+
'data-garden-id': COMPONENT_ID$c,
|
|
16
|
+
'data-garden-version': '9.12.4'
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "StyledRadioSvg",
|
|
19
19
|
componentId: "sc-1r1qtr1-0"
|
|
@@ -11,9 +11,8 @@ import { StyledHint } from '../common/StyledHint.js';
|
|
|
11
11
|
import { StyledLabel } from '../common/StyledLabel.js';
|
|
12
12
|
import { StyledMessage } from '../common/StyledMessage.js';
|
|
13
13
|
|
|
14
|
-
const COMPONENT_ID = 'forms.range';
|
|
15
|
-
const thumbStyles =
|
|
16
|
-
let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
14
|
+
const COMPONENT_ID$4 = 'forms.range';
|
|
15
|
+
const thumbStyles = (styles, modifier = '') => {
|
|
17
16
|
return `
|
|
18
17
|
&${modifier}::-moz-range-thumb {
|
|
19
18
|
${styles}
|
|
@@ -28,8 +27,7 @@ const thumbStyles = function (styles) {
|
|
|
28
27
|
}
|
|
29
28
|
`;
|
|
30
29
|
};
|
|
31
|
-
const trackStyles =
|
|
32
|
-
let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
30
|
+
const trackStyles = (styles, modifier = '') => {
|
|
33
31
|
return `
|
|
34
32
|
&${modifier}::-moz-range-track {
|
|
35
33
|
${styles}
|
|
@@ -44,8 +42,7 @@ const trackStyles = function (styles) {
|
|
|
44
42
|
}
|
|
45
43
|
`;
|
|
46
44
|
};
|
|
47
|
-
const trackLowerStyles =
|
|
48
|
-
let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
45
|
+
const trackLowerStyles = (styles, modifier = '') => {
|
|
49
46
|
return `
|
|
50
47
|
&${modifier}::-moz-range-progress {
|
|
51
48
|
${styles}
|
|
@@ -56,11 +53,10 @@ const trackLowerStyles = function (styles) {
|
|
|
56
53
|
}
|
|
57
54
|
`;
|
|
58
55
|
};
|
|
59
|
-
const colorStyles =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} = _ref;
|
|
56
|
+
const colorStyles$2 = ({
|
|
57
|
+
theme,
|
|
58
|
+
$hasLowerTrack = true
|
|
59
|
+
}) => {
|
|
64
60
|
const options = {
|
|
65
61
|
theme,
|
|
66
62
|
variable: 'background.primaryEmphasis'
|
|
@@ -152,10 +148,9 @@ const colorStyles = _ref => {
|
|
|
152
148
|
background-color: ${trackDisabledLowerBackgroundColor};
|
|
153
149
|
`, ':disabled'));
|
|
154
150
|
};
|
|
155
|
-
const sizeStyles =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
} = _ref2;
|
|
151
|
+
const sizeStyles$4 = ({
|
|
152
|
+
theme
|
|
153
|
+
}) => {
|
|
159
154
|
const thumbSize = `${theme.space.base * 5}px`;
|
|
160
155
|
const trackHeight = `${theme.space.base * 1.5}px`;
|
|
161
156
|
const trackBorderRadius = trackHeight;
|
|
@@ -176,8 +171,8 @@ const sizeStyles = _ref2 => {
|
|
|
176
171
|
`));
|
|
177
172
|
};
|
|
178
173
|
const StyledRangeInput = styled.input.attrs(props => ({
|
|
179
|
-
'data-garden-id': COMPONENT_ID,
|
|
180
|
-
'data-garden-version': '9.12.
|
|
174
|
+
'data-garden-id': COMPONENT_ID$4,
|
|
175
|
+
'data-garden-version': '9.12.4',
|
|
181
176
|
type: 'range',
|
|
182
177
|
style: {
|
|
183
178
|
backgroundSize: props.$hasLowerTrack ?? true ? props.$backgroundSize ?? '0%' : undefined
|
|
@@ -194,12 +189,12 @@ const StyledRangeInput = styled.input.attrs(props => ({
|
|
|
194
189
|
width: 99.8%; /* fix for IE which cuts off the upper track's border radius */
|
|
195
190
|
color: transparent; /* reset for IE */
|
|
196
191
|
box-sizing: border-box; /* reset for IE */
|
|
197
|
-
`), sizeStyles, props => thumbStyles(`
|
|
192
|
+
`), sizeStyles$4, props => thumbStyles(`
|
|
198
193
|
appearance: none;
|
|
199
194
|
transition: box-shadow .1s ease-in-out;
|
|
200
195
|
border: ${props.theme.borders.md};
|
|
201
196
|
border-radius: 100%;
|
|
202
197
|
box-sizing: border-box;
|
|
203
|
-
`), colorStyles, componentStyles);
|
|
198
|
+
`), colorStyles$2, componentStyles);
|
|
204
199
|
|
|
205
200
|
export { StyledRangeInput };
|
|
@@ -10,11 +10,10 @@ import { getColor } from '@zendeskgarden/react-theming';
|
|
|
10
10
|
import { StyledTextInput } from '../text/StyledTextInput.js';
|
|
11
11
|
import { StyledTextMediaFigure } from '../text/StyledTextMediaFigure.js';
|
|
12
12
|
|
|
13
|
-
const COMPONENT_ID = 'forms.select';
|
|
14
|
-
const colorStyles =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
13
|
+
const COMPONENT_ID$6 = 'forms.select';
|
|
14
|
+
const colorStyles$3 = ({
|
|
15
|
+
theme
|
|
16
|
+
}) => {
|
|
18
17
|
const color = getColor({
|
|
19
18
|
theme,
|
|
20
19
|
variable: 'foreground.subtle',
|
|
@@ -31,25 +30,24 @@ const colorStyles = _ref => {
|
|
|
31
30
|
});
|
|
32
31
|
return css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", "{color:", ";}&:disabled + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color, StyledTextMediaFigure, disabledColor);
|
|
33
32
|
};
|
|
34
|
-
const sizeStyles =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} = _ref2;
|
|
33
|
+
const sizeStyles$6 = ({
|
|
34
|
+
theme,
|
|
35
|
+
$isBare,
|
|
36
|
+
$isCompact
|
|
37
|
+
}) => {
|
|
40
38
|
const padding = $isBare ? undefined : math(`${theme.iconSizes.md} + ${theme.space.base * 5}`);
|
|
41
39
|
const iconVerticalPosition = `${theme.space.base * ($isCompact ? 1.5 : 2.5) + 1}px`;
|
|
42
40
|
const iconHorizontalPosition = `${theme.space.base * 3}px`;
|
|
43
41
|
return css(["padding-", ":", ";& + ", "{top:", ";", ":", ";}"], theme.rtl ? 'left' : 'right', padding, StyledTextMediaFigure, iconVerticalPosition, theme.rtl ? 'left' : 'right', iconHorizontalPosition);
|
|
44
42
|
};
|
|
45
43
|
const StyledSelect = styled(StyledTextInput).attrs({
|
|
46
|
-
'data-garden-id': COMPONENT_ID,
|
|
47
|
-
'data-garden-version': '9.12.
|
|
44
|
+
'data-garden-id': COMPONENT_ID$6,
|
|
45
|
+
'data-garden-version': '9.12.4',
|
|
48
46
|
as: 'select'
|
|
49
47
|
}).withConfig({
|
|
50
48
|
displayName: "StyledSelect",
|
|
51
49
|
componentId: "sc-8xdxpt-0"
|
|
52
|
-
})(["opacity:1;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, colorStyles, props => getColor({
|
|
50
|
+
})(["opacity:1;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 => getColor({
|
|
53
51
|
theme: props.theme,
|
|
54
52
|
variable: 'foreground.default'
|
|
55
53
|
}), StyledTextMediaFigure);
|
|
@@ -9,21 +9,20 @@ import { SELECTOR_FOCUS_VISIBLE } from '@zendeskgarden/react-theming';
|
|
|
9
9
|
import { StyledTextFauxInput } from '../text/StyledTextFauxInput.js';
|
|
10
10
|
import { StyledSelect } from './StyledSelect.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'forms.select_wrapper';
|
|
13
|
-
const sizeStyles =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
12
|
+
const COMPONENT_ID$5 = 'forms.select_wrapper';
|
|
13
|
+
const sizeStyles$5 = ({
|
|
14
|
+
theme,
|
|
15
|
+
$isCompact
|
|
16
|
+
}) => {
|
|
18
17
|
const height = `${theme.space.base * ($isCompact ? 8 : 10)}px`;
|
|
19
18
|
return css(["max-height:", ";"], height);
|
|
20
19
|
};
|
|
21
20
|
const StyledSelectWrapper = styled(StyledTextFauxInput).attrs({
|
|
22
|
-
'data-garden-id': COMPONENT_ID,
|
|
23
|
-
'data-garden-version': '9.12.
|
|
21
|
+
'data-garden-id': COMPONENT_ID$5,
|
|
22
|
+
'data-garden-version': '9.12.4'
|
|
24
23
|
}).withConfig({
|
|
25
24
|
displayName: "StyledSelectWrapper",
|
|
26
25
|
componentId: "sc-i7b6hw-0"
|
|
27
|
-
})(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles, StyledSelect, SELECTOR_FOCUS_VISIBLE);
|
|
26
|
+
})(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles$5, StyledSelect, SELECTOR_FOCUS_VISIBLE);
|
|
28
27
|
|
|
29
28
|
export { StyledSelectWrapper };
|
|
@@ -9,15 +9,14 @@ import { SELECTOR_FOCUS_VISIBLE, componentStyles, getColor, focusStyles } from '
|
|
|
9
9
|
import { StyledTextInput } from './StyledTextInput.js';
|
|
10
10
|
import { StyledTextMediaFigure } from './StyledTextMediaFigure.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'forms.faux_input';
|
|
13
|
-
const colorStyles =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} = _ref;
|
|
12
|
+
const COMPONENT_ID$w = 'forms.faux_input';
|
|
13
|
+
const colorStyles$a = ({
|
|
14
|
+
theme,
|
|
15
|
+
$validation,
|
|
16
|
+
$focusInset,
|
|
17
|
+
$isBare,
|
|
18
|
+
$isFocused
|
|
19
|
+
}) => {
|
|
21
20
|
let borderVariable;
|
|
22
21
|
let focusBorderColor;
|
|
23
22
|
if ($validation) {
|
|
@@ -56,11 +55,11 @@ const StyledTextFauxInput = styled(StyledTextInput).attrs(props => ({
|
|
|
56
55
|
as: 'div',
|
|
57
56
|
'aria-readonly': props.$isReadOnly,
|
|
58
57
|
'aria-disabled': props.$isDisabled,
|
|
59
|
-
'data-garden-id': COMPONENT_ID,
|
|
60
|
-
'data-garden-version': '9.12.
|
|
58
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
59
|
+
'data-garden-version': '9.12.4'
|
|
61
60
|
})).withConfig({
|
|
62
61
|
displayName: "StyledTextFauxInput",
|
|
63
62
|
componentId: "sc-yqw7j9-0"
|
|
64
|
-
})(["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, StyledTextInput, props => !props.$mediaLayout && 'baseline', SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.$mediaLayout && '0', componentStyles);
|
|
63
|
+
})(["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', SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.$mediaLayout && '0', componentStyles);
|
|
65
64
|
|
|
66
65
|
export { StyledTextFauxInput };
|
|
@@ -6,23 +6,22 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math, em } from 'polished';
|
|
9
|
-
import { componentStyles, getColor, focusStyles
|
|
9
|
+
import { componentStyles, getLineHeight, getColor, focusStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledHint } from '../common/StyledHint.js';
|
|
11
11
|
import { StyledLabel } from '../common/StyledLabel.js';
|
|
12
12
|
import { StyledMessage } from '../common/StyledMessage.js';
|
|
13
13
|
|
|
14
|
-
const COMPONENT_ID = 'forms.input';
|
|
14
|
+
const COMPONENT_ID$z = 'forms.input';
|
|
15
15
|
const isInvalid = validation => {
|
|
16
16
|
return validation === 'warning' || validation === 'error';
|
|
17
17
|
};
|
|
18
|
-
const colorStyles =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} = _ref;
|
|
18
|
+
const colorStyles$c = ({
|
|
19
|
+
theme,
|
|
20
|
+
$isBare,
|
|
21
|
+
$isHovered,
|
|
22
|
+
$focusInset,
|
|
23
|
+
$validation
|
|
24
|
+
}) => {
|
|
26
25
|
const foregroundColor = getColor({
|
|
27
26
|
theme,
|
|
28
27
|
variable: 'foreground.default'
|
|
@@ -104,12 +103,11 @@ const colorStyles = _ref => {
|
|
|
104
103
|
theme
|
|
105
104
|
}), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
106
105
|
};
|
|
107
|
-
const sizeStyles =
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
} = _ref2;
|
|
106
|
+
const sizeStyles$f = ({
|
|
107
|
+
theme,
|
|
108
|
+
$isBare,
|
|
109
|
+
$isCompact
|
|
110
|
+
}) => {
|
|
113
111
|
const fontSize = theme.fontSizes.md;
|
|
114
112
|
const paddingHorizontal = `${theme.space.base * 3}px`;
|
|
115
113
|
let height;
|
|
@@ -136,12 +134,12 @@ const sizeStyles = _ref2 => {
|
|
|
136
134
|
return 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, getLineHeight(lineHeight, fontSize), fontSize, browseFontSize, height, $isCompact ? '0 2px' : '1px 3px', swatchMarginVertical, swatchMarginHorizontal, math(`${swatchMarginHorizontal} * -2`), swatchHeight, calendarPickerBackgroundSize, calendarPickerSize, calendarPickerSize, swatchMarginVertical, swatchMarginHorizontal, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, theme.space.base * ($isCompact ? 1 : 2));
|
|
137
135
|
};
|
|
138
136
|
const StyledTextInput = styled.input.attrs(props => ({
|
|
139
|
-
'data-garden-id': COMPONENT_ID,
|
|
140
|
-
'data-garden-version': '9.12.
|
|
137
|
+
'data-garden-id': COMPONENT_ID$z,
|
|
138
|
+
'data-garden-version': '9.12.4',
|
|
141
139
|
'aria-invalid': isInvalid(props.$validation)
|
|
142
140
|
})).withConfig({
|
|
143
141
|
displayName: "StyledTextInput",
|
|
144
142
|
componentId: "sc-1r6733h-0"
|
|
145
|
-
})(["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, colorStyles, componentStyles);
|
|
143
|
+
})(["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, componentStyles);
|
|
146
144
|
|
|
147
145
|
export { StyledTextInput };
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { StyledBaseIcon, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'forms.media_figure';
|
|
11
|
-
const colorStyles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
10
|
+
const COMPONENT_ID$x = 'forms.media_figure';
|
|
11
|
+
const colorStyles$b = ({
|
|
12
|
+
theme,
|
|
13
|
+
$isDisabled,
|
|
14
|
+
$isHovered,
|
|
15
|
+
$isFocused
|
|
16
|
+
}) => {
|
|
18
17
|
let color;
|
|
19
18
|
if ($isDisabled) {
|
|
20
19
|
color = getColor({
|
|
@@ -42,7 +41,7 @@ const colorStyles = _ref => {
|
|
|
42
41
|
}
|
|
43
42
|
return css(["color:", ";"], color);
|
|
44
43
|
};
|
|
45
|
-
const sizeStyles = props => {
|
|
44
|
+
const sizeStyles$e = props => {
|
|
46
45
|
const size = props.theme.iconSizes.md;
|
|
47
46
|
const marginFirst = `1px ${props.theme.space.base * 2}px auto 0`;
|
|
48
47
|
const marginLast = `1px 0 auto ${props.theme.space.base * 2}px`;
|
|
@@ -55,11 +54,11 @@ const sizeStyles = props => {
|
|
|
55
54
|
return css(["margin:", ";width:", ";height:", ";"], margin, size, size);
|
|
56
55
|
};
|
|
57
56
|
const StyledTextMediaFigure = styled(StyledBaseIcon).attrs({
|
|
58
|
-
'data-garden-id': COMPONENT_ID,
|
|
59
|
-
'data-garden-version': '9.12.
|
|
57
|
+
'data-garden-id': COMPONENT_ID$x,
|
|
58
|
+
'data-garden-version': '9.12.4'
|
|
60
59
|
}).withConfig({
|
|
61
60
|
displayName: "StyledTextMediaFigure",
|
|
62
61
|
componentId: "sc-1qepknj-0"
|
|
63
|
-
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles, colorStyles, componentStyles);
|
|
62
|
+
})(["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, componentStyles);
|
|
64
63
|
|
|
65
64
|
export { StyledTextMediaFigure };
|
|
@@ -8,10 +8,10 @@ import styled from 'styled-components';
|
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledTextInput } from './StyledTextInput.js';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'forms.media_input';
|
|
11
|
+
const COMPONENT_ID$v = 'forms.media_input';
|
|
12
12
|
const StyledTextMediaInput = styled(StyledTextInput).attrs({
|
|
13
|
-
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.12.
|
|
13
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
14
|
+
'data-garden-version': '9.12.4',
|
|
15
15
|
$isBare: true
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledTextMediaInput",
|
|
@@ -8,7 +8,7 @@ import styled from 'styled-components';
|
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledTextInput } from './StyledTextInput.js';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'forms.textarea';
|
|
11
|
+
const COMPONENT_ID$y = 'forms.textarea';
|
|
12
12
|
const hiddenStyles = `
|
|
13
13
|
visibility: hidden;
|
|
14
14
|
position: absolute;
|
|
@@ -20,8 +20,8 @@ const hiddenStyles = `
|
|
|
20
20
|
`;
|
|
21
21
|
const StyledTextarea = styled(StyledTextInput).attrs({
|
|
22
22
|
as: 'textarea',
|
|
23
|
-
'data-garden-id': COMPONENT_ID,
|
|
24
|
-
'data-garden-version': '9.12.
|
|
23
|
+
'data-garden-id': COMPONENT_ID$y,
|
|
24
|
+
'data-garden-version': '9.12.4'
|
|
25
25
|
}).withConfig({
|
|
26
26
|
displayName: "StyledTextarea",
|
|
27
27
|
componentId: "sc-wxschl-0"
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { componentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'forms.tile';
|
|
11
|
-
const colorStyles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = _ref;
|
|
10
|
+
const COMPONENT_ID$3 = 'forms.tile';
|
|
11
|
+
const colorStyles$1 = ({
|
|
12
|
+
theme
|
|
13
|
+
}) => {
|
|
15
14
|
const offset100 = {
|
|
16
15
|
dark: {
|
|
17
16
|
offset: -100
|
|
@@ -92,20 +91,19 @@ const colorStyles = _ref => {
|
|
|
92
91
|
}
|
|
93
92
|
}), activeBorderColor, activeBackgroundColor, checkedBackgroundColor, checkedForegroundColor, checkedHoverBackgroundColor, checkedActiveBackgroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
94
93
|
};
|
|
95
|
-
const sizeStyles =
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
} = _ref2;
|
|
94
|
+
const sizeStyles$3 = ({
|
|
95
|
+
theme
|
|
96
|
+
}) => {
|
|
99
97
|
const border = theme.borders.sm;
|
|
100
98
|
const padding = `${theme.space.base * 5}px`;
|
|
101
99
|
return css(["border:", ";padding:", ";min-width:132px;"], border, padding);
|
|
102
100
|
};
|
|
103
101
|
const StyledTile = styled.label.attrs({
|
|
104
|
-
'data-garden-id': COMPONENT_ID,
|
|
105
|
-
'data-garden-version': '9.12.
|
|
102
|
+
'data-garden-id': COMPONENT_ID$3,
|
|
103
|
+
'data-garden-version': '9.12.4'
|
|
106
104
|
}).withConfig({
|
|
107
105
|
displayName: "StyledTile",
|
|
108
106
|
componentId: "sc-1jjvmxs-0"
|
|
109
|
-
})(["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, colorStyles, componentStyles);
|
|
107
|
+
})(["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, componentStyles);
|
|
110
108
|
|
|
111
109
|
export { StyledTile };
|
|
@@ -8,12 +8,11 @@ import styled, { css } from 'styled-components';
|
|
|
8
8
|
import { math } from 'polished';
|
|
9
9
|
import { componentStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'forms.tile_description';
|
|
12
|
-
const sizeStyles =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = _ref;
|
|
11
|
+
const COMPONENT_ID$2 = 'forms.tile_description';
|
|
12
|
+
const sizeStyles$2 = ({
|
|
13
|
+
theme,
|
|
14
|
+
$isCentered
|
|
15
|
+
}) => {
|
|
17
16
|
const marginTop = `${theme.space.base}px`;
|
|
18
17
|
const marginHorizontal = $isCentered ? undefined : math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
|
|
19
18
|
const fontSize = theme.fontSizes.sm;
|
|
@@ -21,11 +20,11 @@ const sizeStyles = _ref => {
|
|
|
21
20
|
return css(["margin-top:", ";margin-", ":", ";line-height:", ";font-size:", ";"], marginTop, theme.rtl ? 'right' : 'left', marginHorizontal, lineHeight, fontSize);
|
|
22
21
|
};
|
|
23
22
|
const StyledTileDescription = styled.span.attrs({
|
|
24
|
-
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.12.
|
|
23
|
+
'data-garden-id': COMPONENT_ID$2,
|
|
24
|
+
'data-garden-version': '9.12.4'
|
|
26
25
|
}).withConfig({
|
|
27
26
|
displayName: "StyledTileDescription",
|
|
28
27
|
componentId: "sc-xfuu7u-0"
|
|
29
|
-
})(["display:block;text-align:", ";", ";", ";"], props => props.$isCentered && 'center', sizeStyles, componentStyles);
|
|
28
|
+
})(["display:block;text-align:", ";", ";", ";"], props => props.$isCentered && 'center', sizeStyles$2, componentStyles);
|
|
30
29
|
|
|
31
30
|
export { StyledTileDescription };
|
|
@@ -9,11 +9,10 @@ import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
|
9
9
|
import { math } from 'polished';
|
|
10
10
|
import { StyledTile } from './StyledTile.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'forms.tile_icon';
|
|
13
|
-
const colorStyles =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = _ref;
|
|
12
|
+
const COMPONENT_ID$1 = 'forms.tile_icon';
|
|
13
|
+
const colorStyles = ({
|
|
14
|
+
theme
|
|
15
|
+
}) => {
|
|
17
16
|
const options = {
|
|
18
17
|
theme,
|
|
19
18
|
variable: 'foreground.subtle'
|
|
@@ -47,11 +46,10 @@ const colorStyles = _ref => {
|
|
|
47
46
|
});
|
|
48
47
|
return css(["color:", ";", ":hover &&{color:", ";}", ":active &&{color:", ";}", ":has(:checked) &&{color:", ";}", "[aria-disabled='true'] &&{color:", ";}"], color, StyledTile, hoverColor, StyledTile, activeColor, StyledTile, checkedColor, StyledTile, disabledColor);
|
|
49
48
|
};
|
|
50
|
-
const sizeStyles =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} = _ref2;
|
|
49
|
+
const sizeStyles$1 = ({
|
|
50
|
+
theme,
|
|
51
|
+
$isCentered
|
|
52
|
+
}) => {
|
|
55
53
|
const iconSize = math(`${theme.iconSizes.md} * 2`);
|
|
56
54
|
let position;
|
|
57
55
|
let top;
|
|
@@ -64,11 +62,11 @@ const sizeStyles = _ref2 => {
|
|
|
64
62
|
return css(["position:", ";top:", ";", ":", ";line-height:0;& > *{width:", ";height:", ";}"], position, top, theme.rtl ? 'right' : 'left', horizontal, iconSize, iconSize);
|
|
65
63
|
};
|
|
66
64
|
const StyledTileIcon = styled.span.attrs({
|
|
67
|
-
'data-garden-id': COMPONENT_ID,
|
|
68
|
-
'data-garden-version': '9.12.
|
|
65
|
+
'data-garden-id': COMPONENT_ID$1,
|
|
66
|
+
'data-garden-version': '9.12.4'
|
|
69
67
|
}).withConfig({
|
|
70
68
|
displayName: "StyledTileIcon",
|
|
71
69
|
componentId: "sc-1wazhg4-0"
|
|
72
|
-
})(["display:block;transition:color 0.25s ease-in-out;text-align:center;", ";", ";", ";"], sizeStyles, colorStyles, componentStyles);
|
|
70
|
+
})(["display:block;transition:color 0.25s ease-in-out;text-align:center;", ";", ";", ";"], sizeStyles$1, colorStyles, componentStyles);
|
|
73
71
|
|
|
74
72
|
export { StyledTileIcon };
|
|
@@ -9,11 +9,10 @@ import { math } from 'polished';
|
|
|
9
9
|
import { componentStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'forms.tile_label';
|
|
12
|
-
const sizeStyles =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = _ref;
|
|
12
|
+
const sizeStyles = ({
|
|
13
|
+
theme,
|
|
14
|
+
$isCentered
|
|
15
|
+
}) => {
|
|
17
16
|
const marginTop = $isCentered ? `${theme.space.base * 2}px` : 0;
|
|
18
17
|
const marginHorizontal = $isCentered ? undefined : math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
|
|
19
18
|
const fontSize = theme.fontSizes.md;
|
|
@@ -22,7 +21,7 @@ const sizeStyles = _ref => {
|
|
|
22
21
|
};
|
|
23
22
|
const StyledTileLabel = styled.span.attrs({
|
|
24
23
|
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.12.
|
|
24
|
+
'data-garden-version': '9.12.4'
|
|
26
25
|
}).withConfig({
|
|
27
26
|
displayName: "StyledTileLabel",
|
|
28
27
|
componentId: "sc-1mypv27-0"
|
|
@@ -9,10 +9,10 @@ import { math } from 'polished';
|
|
|
9
9
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledHint } from '../common/StyledHint.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'forms.toggle_hint';
|
|
12
|
+
const COMPONENT_ID$a = 'forms.toggle_hint';
|
|
13
13
|
const StyledToggleHint = styled(StyledHint).attrs({
|
|
14
|
-
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.12.
|
|
14
|
+
'data-garden-id': COMPONENT_ID$a,
|
|
15
|
+
'data-garden-version': '9.12.4'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledToggleHint",
|
|
18
18
|
componentId: "sc-nziggu-0"
|