@zendeskgarden/react-forms 9.4.0 → 9.5.1
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/styled/checkbox/StyledCheckHint.js +3 -3
- package/dist/esm/styled/checkbox/StyledCheckInput.js +3 -3
- 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 +3 -3
- package/dist/esm/styled/common/StyledMessageIcon.js +3 -3
- package/dist/esm/styled/file-list/StyledFile.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/esm/styled/radio/StyledRadioLabel.js +3 -3
- 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 +3 -3
- package/dist/esm/styled/select/StyledSelect.js +1 -1
- package/dist/esm/styled/select/StyledSelectWrapper.js +1 -1
- package/dist/esm/styled/text/StyledTextFauxInput.js +3 -3
- package/dist/esm/styled/text/StyledTextInput.js +3 -3
- package/dist/esm/styled/text/StyledTextMediaFigure.js +3 -3
- 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 +3 -3
- package/dist/esm/styled/tiles/StyledTileDescription.js +3 -3
- package/dist/esm/styled/tiles/StyledTileIcon.js +3 -3
- package/dist/esm/styled/tiles/StyledTileLabel.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleHint.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleInput.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleLabel.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleMessage.js +3 -3
- package/dist/esm/styled/toggle/StyledToggleSvg.js +3 -3
- package/dist/index.cjs.js +84 -84
- package/package.json +5 -5
|
@@ -20,7 +20,7 @@ const sizeStyles = _ref => {
|
|
|
20
20
|
};
|
|
21
21
|
const StyledSelectWrapper = styled(StyledTextFauxInput).attrs({
|
|
22
22
|
'data-garden-id': COMPONENT_ID,
|
|
23
|
-
'data-garden-version': '9.
|
|
23
|
+
'data-garden-version': '9.5.1'
|
|
24
24
|
}).withConfig({
|
|
25
25
|
displayName: "StyledSelectWrapper",
|
|
26
26
|
componentId: "sc-i7b6hw-0"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { SELECTOR_FOCUS_VISIBLE,
|
|
8
|
+
import { SELECTOR_FOCUS_VISIBLE, componentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledTextInput } from './StyledTextInput.js';
|
|
10
10
|
import { StyledTextMediaFigure } from './StyledTextMediaFigure.js';
|
|
11
11
|
|
|
@@ -57,10 +57,10 @@ const StyledTextFauxInput = styled(StyledTextInput).attrs(props => ({
|
|
|
57
57
|
'aria-readonly': props.$isReadOnly,
|
|
58
58
|
'aria-disabled': props.$isDisabled,
|
|
59
59
|
'data-garden-id': COMPONENT_ID,
|
|
60
|
-
'data-garden-version': '9.
|
|
60
|
+
'data-garden-version': '9.5.1'
|
|
61
61
|
})).withConfig({
|
|
62
62
|
displayName: "StyledTextFauxInput",
|
|
63
63
|
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',
|
|
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);
|
|
65
65
|
|
|
66
66
|
export { StyledTextFauxInput };
|
|
@@ -8,7 +8,7 @@ import React__default from 'react';
|
|
|
8
8
|
import { renderToString } from 'react-dom/server';
|
|
9
9
|
import styled, { css } from 'styled-components';
|
|
10
10
|
import { math, em } from 'polished';
|
|
11
|
-
import {
|
|
11
|
+
import { componentStyles, getColor, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
12
12
|
import SvgChevronDownStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js';
|
|
13
13
|
import { StyledHint } from '../common/StyledHint.js';
|
|
14
14
|
import { StyledLabel } from '../common/StyledLabel.js';
|
|
@@ -139,11 +139,11 @@ const sizeStyles = _ref2 => {
|
|
|
139
139
|
};
|
|
140
140
|
const StyledTextInput = styled.input.attrs(props => ({
|
|
141
141
|
'data-garden-id': COMPONENT_ID,
|
|
142
|
-
'data-garden-version': '9.
|
|
142
|
+
'data-garden-version': '9.5.1',
|
|
143
143
|
'aria-invalid': isInvalid(props.$validation)
|
|
144
144
|
})).withConfig({
|
|
145
145
|
displayName: "StyledTextInput",
|
|
146
146
|
componentId: "sc-1r6733h-0"
|
|
147
|
-
})(["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,
|
|
147
|
+
})(["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);
|
|
148
148
|
|
|
149
149
|
export { StyledTextInput };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { StyledBaseIcon,
|
|
8
|
+
import { StyledBaseIcon, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'forms.media_figure';
|
|
11
11
|
const colorStyles = _ref => {
|
|
@@ -56,10 +56,10 @@ const sizeStyles = props => {
|
|
|
56
56
|
};
|
|
57
57
|
const StyledTextMediaFigure = styled(StyledBaseIcon).attrs({
|
|
58
58
|
'data-garden-id': COMPONENT_ID,
|
|
59
|
-
'data-garden-version': '9.
|
|
59
|
+
'data-garden-version': '9.5.1'
|
|
60
60
|
}).withConfig({
|
|
61
61
|
displayName: "StyledTextMediaFigure",
|
|
62
62
|
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,
|
|
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);
|
|
64
64
|
|
|
65
65
|
export { StyledTextMediaFigure };
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledTextInput } from './StyledTextInput.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'forms.media_input';
|
|
12
12
|
const StyledTextMediaInput = styled(StyledTextInput).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.
|
|
14
|
+
'data-garden-version': '9.5.1',
|
|
15
15
|
$isBare: true
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledTextMediaInput",
|
|
18
18
|
componentId: "sc-12i9xfi-0"
|
|
19
|
-
})(["flex-grow:1;", ";"],
|
|
19
|
+
})(["flex-grow:1;", ";"], componentStyles);
|
|
20
20
|
|
|
21
21
|
export { StyledTextMediaInput };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledTextInput } from './StyledTextInput.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'forms.textarea';
|
|
@@ -21,10 +21,10 @@ const hiddenStyles = `
|
|
|
21
21
|
const StyledTextarea = styled(StyledTextInput).attrs({
|
|
22
22
|
as: 'textarea',
|
|
23
23
|
'data-garden-id': COMPONENT_ID,
|
|
24
|
-
'data-garden-version': '9.
|
|
24
|
+
'data-garden-version': '9.5.1'
|
|
25
25
|
}).withConfig({
|
|
26
26
|
displayName: "StyledTextarea",
|
|
27
27
|
componentId: "sc-wxschl-0"
|
|
28
|
-
})(["resize:", ";overflow:auto;", ";", ";"], props => props.$isResizable ? 'vertical' : 'none', props => props.$isHidden && hiddenStyles,
|
|
28
|
+
})(["resize:", ";overflow:auto;", ";", ";"], props => props.$isResizable ? 'vertical' : 'none', props => props.$isHidden && hiddenStyles, componentStyles);
|
|
29
29
|
|
|
30
30
|
export { StyledTextarea };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'forms.tile';
|
|
11
11
|
const colorStyles = _ref => {
|
|
@@ -102,10 +102,10 @@ const sizeStyles = _ref2 => {
|
|
|
102
102
|
};
|
|
103
103
|
const StyledTile = styled.label.attrs({
|
|
104
104
|
'data-garden-id': COMPONENT_ID,
|
|
105
|
-
'data-garden-version': '9.
|
|
105
|
+
'data-garden-version': '9.5.1'
|
|
106
106
|
}).withConfig({
|
|
107
107
|
displayName: "StyledTile",
|
|
108
108
|
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,
|
|
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);
|
|
110
110
|
|
|
111
111
|
export { StyledTile };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'forms.tile_description';
|
|
12
12
|
const sizeStyles = _ref => {
|
|
@@ -22,10 +22,10 @@ const sizeStyles = _ref => {
|
|
|
22
22
|
};
|
|
23
23
|
const StyledTileDescription = styled.span.attrs({
|
|
24
24
|
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.
|
|
25
|
+
'data-garden-version': '9.5.1'
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "StyledTileDescription",
|
|
28
28
|
componentId: "sc-xfuu7u-0"
|
|
29
|
-
})(["display:block;text-align:", ";", ";", ";"], props => props.$isCentered && 'center', sizeStyles,
|
|
29
|
+
})(["display:block;text-align:", ";", ";", ";"], props => props.$isCentered && 'center', sizeStyles, componentStyles);
|
|
30
30
|
|
|
31
31
|
export { StyledTileDescription };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { math } from 'polished';
|
|
10
10
|
import { StyledTile } from './StyledTile.js';
|
|
11
11
|
|
|
@@ -65,10 +65,10 @@ const sizeStyles = _ref2 => {
|
|
|
65
65
|
};
|
|
66
66
|
const StyledTileIcon = styled.span.attrs({
|
|
67
67
|
'data-garden-id': COMPONENT_ID,
|
|
68
|
-
'data-garden-version': '9.
|
|
68
|
+
'data-garden-version': '9.5.1'
|
|
69
69
|
}).withConfig({
|
|
70
70
|
displayName: "StyledTileIcon",
|
|
71
71
|
componentId: "sc-1wazhg4-0"
|
|
72
|
-
})(["display:block;transition:color 0.25s ease-in-out;text-align:center;", ";", ";", ";"], sizeStyles, colorStyles,
|
|
72
|
+
})(["display:block;transition:color 0.25s ease-in-out;text-align:center;", ";", ";", ";"], sizeStyles, colorStyles, componentStyles);
|
|
73
73
|
|
|
74
74
|
export { StyledTileIcon };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'forms.tile_label';
|
|
12
12
|
const sizeStyles = _ref => {
|
|
@@ -22,10 +22,10 @@ const sizeStyles = _ref => {
|
|
|
22
22
|
};
|
|
23
23
|
const StyledTileLabel = styled.span.attrs({
|
|
24
24
|
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.
|
|
25
|
+
'data-garden-version': '9.5.1'
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "StyledTileLabel",
|
|
28
28
|
componentId: "sc-1mypv27-0"
|
|
29
|
-
})(["display:block;text-align:", ";font-weight:", ";", ";", ";"], props => props.$isCentered && 'center', props => props.theme.fontWeights.semibold, sizeStyles,
|
|
29
|
+
})(["display:block;text-align:", ";font-weight:", ";", ";", ";"], props => props.$isCentered && 'center', props => props.theme.fontWeights.semibold, sizeStyles, componentStyles);
|
|
30
30
|
|
|
31
31
|
export { StyledTileLabel };
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledHint } from '../common/StyledHint.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'forms.toggle_hint';
|
|
13
13
|
const StyledToggleHint = styled(StyledHint).attrs({
|
|
14
14
|
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.
|
|
15
|
+
'data-garden-version': '9.5.1'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledToggleHint",
|
|
18
18
|
componentId: "sc-nziggu-0"
|
|
19
|
-
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`),
|
|
19
|
+
})(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`), componentStyles);
|
|
20
20
|
|
|
21
21
|
export { StyledToggleHint };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledCheckInput } from '../checkbox/StyledCheckInput.js';
|
|
11
11
|
import { StyledToggleLabel } from './StyledToggleLabel.js';
|
|
12
12
|
|
|
@@ -53,10 +53,10 @@ const sizeStyles = _ref2 => {
|
|
|
53
53
|
};
|
|
54
54
|
const StyledToggleInput = styled(StyledCheckInput).attrs({
|
|
55
55
|
'data-garden-id': COMPONENT_ID,
|
|
56
|
-
'data-garden-version': '9.
|
|
56
|
+
'data-garden-version': '9.5.1'
|
|
57
57
|
}).withConfig({
|
|
58
58
|
displayName: "StyledToggleInput",
|
|
59
59
|
componentId: "sc-sgp47s-0"
|
|
60
|
-
})(["& ~ ", "::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, colorStyles,
|
|
60
|
+
})(["& ~ ", "::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, colorStyles, componentStyles);
|
|
61
61
|
|
|
62
62
|
export { StyledToggleInput };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledCheckLabel } from '../checkbox/StyledCheckLabel.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'forms.toggle_label';
|
|
@@ -16,10 +16,10 @@ const sizeStyles = props => {
|
|
|
16
16
|
};
|
|
17
17
|
const StyledToggleLabel = styled(StyledCheckLabel).attrs({
|
|
18
18
|
'data-garden-id': COMPONENT_ID,
|
|
19
|
-
'data-garden-version': '9.
|
|
19
|
+
'data-garden-version': '9.5.1'
|
|
20
20
|
}).withConfig({
|
|
21
21
|
displayName: "StyledToggleLabel",
|
|
22
22
|
componentId: "sc-e0asdk-0"
|
|
23
|
-
})(["", ";", ";"], props => sizeStyles(props),
|
|
23
|
+
})(["", ";", ";"], props => sizeStyles(props), componentStyles);
|
|
24
24
|
|
|
25
25
|
export { StyledToggleLabel };
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledMessage } from '../common/StyledMessage.js';
|
|
11
11
|
import { StyledMessageIcon } from '../common/StyledMessageIcon.js';
|
|
12
12
|
|
|
13
13
|
const COMPONENT_ID = 'forms.toggle_message';
|
|
14
14
|
const StyledToggleMessage = styled(StyledMessage).attrs({
|
|
15
15
|
'data-garden-id': COMPONENT_ID,
|
|
16
|
-
'data-garden-version': '9.
|
|
16
|
+
'data-garden-version': '9.5.1'
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "StyledToggleMessage",
|
|
19
19
|
componentId: "sc-13vuvl1-0"
|
|
20
|
-
})(["padding-", ":", ";& ", "{", ":", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`), StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 10px - ${props.theme.iconSizes.md}`),
|
|
20
|
+
})(["padding-", ":", ";& ", "{", ":", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`), StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 10px - ${props.theme.iconSizes.md}`), componentStyles);
|
|
21
21
|
|
|
22
22
|
export { StyledToggleMessage };
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import SvgCircleSmFill from '../../node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'forms.toggle_svg';
|
|
12
12
|
const StyledToggleSvg = styled(SvgCircleSmFill).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.
|
|
14
|
+
'data-garden-version': '9.5.1'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledToggleSvg",
|
|
17
17
|
componentId: "sc-162xbyx-0"
|
|
18
|
-
})(["transition:all 0.15s ease-in-out;", ";"],
|
|
18
|
+
})(["transition:all 0.15s ease-in-out;", ";"], componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledToggleSvg };
|