@zohodesk/components 1.2.32 → 1.2.34
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/.cli/propValidation_report.html +1 -1
- package/README.md +8 -0
- package/es/AppContainer/__tests__/AppContainer.spec.js +82 -0
- package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/es/Button/__tests__/Button.spec.js +8 -21
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/es/CheckBox/__tests__/CheckBox.spec.js +240 -0
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +6 -2
- package/es/MultiSelect/props/defaultProps.js +2 -1
- package/es/MultiSelect/props/propTypes.js +2 -1
- package/es/Radio/__tests__/Radio.spec.js +6 -9
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +128 -49
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -10
- package/es/Select/GroupSelect.js +2 -2
- package/es/Tag/__tests__/Tag.spec.js +235 -0
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3054 -0
- package/es/TextBox/__tests__/TextBox.spec.js +327 -0
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/es/TextBox/props/propTypes.js +0 -3
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +268 -0
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/es/TextBoxIcon/props/propTypes.js +1 -1
- package/es/Textarea/__tests__/Textarea.spec.js +228 -0
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +476 -0
- package/es/utils/dropDownUtils.js +4 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +6 -2
- package/es/v1/MultiSelect/props/defaultProps.js +2 -1
- package/es/v1/MultiSelect/props/propTypes.js +2 -1
- package/es/v1/Select/GroupSelect.js +2 -2
- package/lib/AppContainer/__tests__/AppContainer.spec.js +90 -0
- package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/lib/Button/__tests__/Button.spec.js +8 -21
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/lib/CheckBox/__tests__/CheckBox.spec.js +248 -0
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +5 -2
- package/lib/MultiSelect/props/defaultProps.js +2 -1
- package/lib/MultiSelect/props/propTypes.js +2 -1
- package/lib/Radio/__tests__/Radio.spec.js +9 -13
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +128 -49
- package/lib/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -10
- package/lib/Select/GroupSelect.js +12 -12
- package/lib/Tag/__tests__/Tag.spec.js +252 -0
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3054 -0
- package/lib/TextBox/__tests__/TextBox.spec.js +334 -0
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/lib/TextBox/props/propTypes.js +53 -51
- package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +279 -0
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/lib/TextBoxIcon/props/propTypes.js +1 -1
- package/lib/Textarea/__tests__/Textarea.spec.js +235 -0
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +476 -0
- package/lib/utils/dropDownUtils.js +14 -2
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +5 -2
- package/lib/v1/MultiSelect/props/defaultProps.js +2 -1
- package/lib/v1/MultiSelect/props/propTypes.js +2 -1
- package/lib/v1/Select/GroupSelect.js +12 -12
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -32,7 +32,7 @@ export const propTypes = { ...TextBox_propTypes,
|
|
|
32
32
|
placeHolder: PropTypes.string,
|
|
33
33
|
showClearIcon: PropTypes.bool,
|
|
34
34
|
size: PropTypes.oneOf(['small', 'xsmall', 'medium', 'xmedium']),
|
|
35
|
-
title: PropTypes.
|
|
35
|
+
title: PropTypes.string,
|
|
36
36
|
type: PropTypes.oneOf(['text', 'password', 'number']),
|
|
37
37
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
38
38
|
variant: PropTypes.oneOf(['primary', 'secondary', 'default']),
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Textarea from '../Textarea';
|
|
3
|
+
import { render } from "@testing-library/react";
|
|
4
|
+
describe('Textarea component', () => {
|
|
5
|
+
const size = ['xsmall', 'small', 'xmedium', 'medium', 'large'];
|
|
6
|
+
const resize = ['horizontal', 'vertical', 'both', 'none'];
|
|
7
|
+
const variant = ['default', 'primary'];
|
|
8
|
+
const borderColor = ['transparent', 'default'];
|
|
9
|
+
test('Should be render with the basic set of default props', () => {
|
|
10
|
+
const {
|
|
11
|
+
asFragment
|
|
12
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, null));
|
|
13
|
+
expect(asFragment()).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
test.each(size)('Should render size - %s', size => {
|
|
16
|
+
const {
|
|
17
|
+
asFragment
|
|
18
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
19
|
+
size: size,
|
|
20
|
+
animated: true
|
|
21
|
+
}));
|
|
22
|
+
expect(asFragment()).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
test('Should be render placeholder', () => {
|
|
25
|
+
const {
|
|
26
|
+
asFragment
|
|
27
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
28
|
+
placeHolder: "TextAreaPlaceHolder"
|
|
29
|
+
}));
|
|
30
|
+
expect(asFragment()).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
test('Should be render needBorder is false', () => {
|
|
33
|
+
const {
|
|
34
|
+
asFragment
|
|
35
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
36
|
+
needBorder: false
|
|
37
|
+
}));
|
|
38
|
+
expect(asFragment()).toMatchSnapshot();
|
|
39
|
+
});
|
|
40
|
+
test('Should be render text', () => {
|
|
41
|
+
const {
|
|
42
|
+
asFragment
|
|
43
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
44
|
+
text: "TextAreaText"
|
|
45
|
+
}));
|
|
46
|
+
expect(asFragment()).toMatchSnapshot();
|
|
47
|
+
});
|
|
48
|
+
test('Should be render isDisabled is true', () => {
|
|
49
|
+
const {
|
|
50
|
+
asFragment
|
|
51
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
52
|
+
isDisabled: true,
|
|
53
|
+
needEffect: false
|
|
54
|
+
}));
|
|
55
|
+
expect(asFragment()).toMatchSnapshot();
|
|
56
|
+
});
|
|
57
|
+
test.each(resize)('Should render resize - %s', resize => {
|
|
58
|
+
const {
|
|
59
|
+
asFragment
|
|
60
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
61
|
+
resize: resize
|
|
62
|
+
}));
|
|
63
|
+
expect(asFragment()).toMatchSnapshot();
|
|
64
|
+
});
|
|
65
|
+
test('Should be render maxLength in number', () => {
|
|
66
|
+
const {
|
|
67
|
+
asFragment
|
|
68
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
69
|
+
maxLength: "11"
|
|
70
|
+
}));
|
|
71
|
+
expect(asFragment()).toMatchSnapshot();
|
|
72
|
+
});
|
|
73
|
+
test('Should be render maxLength in string', () => {
|
|
74
|
+
const {
|
|
75
|
+
asFragment
|
|
76
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
77
|
+
maxLength: "Ten"
|
|
78
|
+
}));
|
|
79
|
+
expect(asFragment()).toMatchSnapshot();
|
|
80
|
+
});
|
|
81
|
+
test.each(size)('Should render animated is true - %s', size => {
|
|
82
|
+
const {
|
|
83
|
+
asFragment
|
|
84
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
85
|
+
size: size,
|
|
86
|
+
animated: true
|
|
87
|
+
}));
|
|
88
|
+
expect(asFragment()).toMatchSnapshot();
|
|
89
|
+
});
|
|
90
|
+
test.each(size)('Should render animated is false - %s', size => {
|
|
91
|
+
const {
|
|
92
|
+
asFragment
|
|
93
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
94
|
+
size: size,
|
|
95
|
+
animated: false
|
|
96
|
+
}));
|
|
97
|
+
expect(asFragment()).toMatchSnapshot();
|
|
98
|
+
});
|
|
99
|
+
test.each(variant)('Should render Varient - %s', variant => {
|
|
100
|
+
const {
|
|
101
|
+
asFragment
|
|
102
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
103
|
+
variant: variant
|
|
104
|
+
}));
|
|
105
|
+
expect(asFragment()).toMatchSnapshot();
|
|
106
|
+
});
|
|
107
|
+
test('to render eleRef prop is a function', () => {
|
|
108
|
+
// Create a mock function
|
|
109
|
+
const mockEleRef = jest.fn();
|
|
110
|
+
render( /*#__PURE__*/React.createElement(Textarea, {
|
|
111
|
+
getRef: mockEleRef
|
|
112
|
+
}));
|
|
113
|
+
expect(mockEleRef).toHaveBeenCalled();
|
|
114
|
+
});
|
|
115
|
+
test('Should be render isReadOnly is true and needEffect is true', () => {
|
|
116
|
+
const {
|
|
117
|
+
asFragment
|
|
118
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
119
|
+
isReadOnly: true,
|
|
120
|
+
needEffect: true
|
|
121
|
+
}));
|
|
122
|
+
expect(asFragment()).toMatchSnapshot();
|
|
123
|
+
});
|
|
124
|
+
test('Should be render isReadOnly is true and needEffect is false', () => {
|
|
125
|
+
const {
|
|
126
|
+
asFragment
|
|
127
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
128
|
+
isReadOnly: true,
|
|
129
|
+
needEffect: false
|
|
130
|
+
}));
|
|
131
|
+
expect(asFragment()).toMatchSnapshot();
|
|
132
|
+
});
|
|
133
|
+
test('Should be render isReadOnly is false and needEffect is false', () => {
|
|
134
|
+
const {
|
|
135
|
+
asFragment
|
|
136
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
137
|
+
isReadOnly: false,
|
|
138
|
+
needEffect: false
|
|
139
|
+
}));
|
|
140
|
+
expect(asFragment()).toMatchSnapshot();
|
|
141
|
+
});
|
|
142
|
+
test('Should be render isDisabled is true and needEffect is true', () => {
|
|
143
|
+
const {
|
|
144
|
+
asFragment
|
|
145
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
146
|
+
isDisabled: true,
|
|
147
|
+
needEffect: true
|
|
148
|
+
}));
|
|
149
|
+
expect(asFragment()).toMatchSnapshot();
|
|
150
|
+
});
|
|
151
|
+
test('Should be render isDisabled is true and needEffect is false', () => {
|
|
152
|
+
const {
|
|
153
|
+
asFragment
|
|
154
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
155
|
+
isDisabled: true,
|
|
156
|
+
needEffect: false
|
|
157
|
+
}));
|
|
158
|
+
expect(asFragment()).toMatchSnapshot();
|
|
159
|
+
});
|
|
160
|
+
test('Should be render isDisabled is false and needEffect is false', () => {
|
|
161
|
+
const {
|
|
162
|
+
asFragment
|
|
163
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
164
|
+
isDisabled: false,
|
|
165
|
+
needEffect: false
|
|
166
|
+
}));
|
|
167
|
+
expect(asFragment()).toMatchSnapshot();
|
|
168
|
+
});
|
|
169
|
+
test('Should be render autofocus true ', () => {
|
|
170
|
+
const {
|
|
171
|
+
asFragment
|
|
172
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
173
|
+
autoFocus: true
|
|
174
|
+
}));
|
|
175
|
+
expect(asFragment()).toMatchSnapshot();
|
|
176
|
+
});
|
|
177
|
+
test('Should be render needAppearance is false ', () => {
|
|
178
|
+
const {
|
|
179
|
+
asFragment
|
|
180
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
181
|
+
needAppearance: false
|
|
182
|
+
}));
|
|
183
|
+
expect(asFragment()).toMatchSnapshot();
|
|
184
|
+
});
|
|
185
|
+
test('Should be render needReadOnlyStyle is false ', () => {
|
|
186
|
+
const {
|
|
187
|
+
asFragment
|
|
188
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
189
|
+
needReadOnlyStyle: false
|
|
190
|
+
}));
|
|
191
|
+
expect(asFragment()).toMatchSnapshot();
|
|
192
|
+
});
|
|
193
|
+
test.each(borderColor)('Should render borderColor - %s', borderColor => {
|
|
194
|
+
const {
|
|
195
|
+
asFragment
|
|
196
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
197
|
+
borderColor: borderColor
|
|
198
|
+
}));
|
|
199
|
+
expect(asFragment()).toMatchSnapshot();
|
|
200
|
+
});
|
|
201
|
+
test('Should be render htmlId ', () => {
|
|
202
|
+
const {
|
|
203
|
+
asFragment
|
|
204
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
205
|
+
htmlId: "textAreahtmlId"
|
|
206
|
+
}));
|
|
207
|
+
expect(asFragment()).toMatchSnapshot();
|
|
208
|
+
});
|
|
209
|
+
test('rendering ally clearLabel', () => {
|
|
210
|
+
const {
|
|
211
|
+
asFragment
|
|
212
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
213
|
+
a11y: {
|
|
214
|
+
ariaLabel: 'TextAreaAriaLabel',
|
|
215
|
+
ariaLabelledby: 'TexareaAriaLabelledby'
|
|
216
|
+
}
|
|
217
|
+
}));
|
|
218
|
+
expect(asFragment()).toMatchSnapshot();
|
|
219
|
+
});
|
|
220
|
+
test('Should be render customClass ', () => {
|
|
221
|
+
const {
|
|
222
|
+
asFragment
|
|
223
|
+
} = render( /*#__PURE__*/React.createElement(Textarea, {
|
|
224
|
+
customClass: "textAreaCustomClass"
|
|
225
|
+
}));
|
|
226
|
+
expect(asFragment()).toMatchSnapshot();
|
|
227
|
+
});
|
|
228
|
+
});
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Textarea component Should be render autofocus true 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<textarea
|
|
6
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
7
|
+
data-id="TextareaComp"
|
|
8
|
+
data-selector-id="textarea"
|
|
9
|
+
data-test-id="TextareaComp"
|
|
10
|
+
/>
|
|
11
|
+
</DocumentFragment>
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
exports[`Textarea component Should be render customClass 1`] = `
|
|
15
|
+
<DocumentFragment>
|
|
16
|
+
<textarea
|
|
17
|
+
class="textAreaCustomClass container small default needBorder noresize effect borderColor_default"
|
|
18
|
+
data-id="TextareaComp"
|
|
19
|
+
data-selector-id="textarea"
|
|
20
|
+
data-test-id="TextareaComp"
|
|
21
|
+
/>
|
|
22
|
+
</DocumentFragment>
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`Textarea component Should be render htmlId 1`] = `
|
|
26
|
+
<DocumentFragment>
|
|
27
|
+
<textarea
|
|
28
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
29
|
+
data-id="TextareaComp"
|
|
30
|
+
data-selector-id="textarea"
|
|
31
|
+
data-test-id="TextareaComp"
|
|
32
|
+
id="textAreahtmlId"
|
|
33
|
+
/>
|
|
34
|
+
</DocumentFragment>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`Textarea component Should be render isDisabled is false and needEffect is false 1`] = `
|
|
38
|
+
<DocumentFragment>
|
|
39
|
+
<textarea
|
|
40
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
41
|
+
data-id="TextareaComp"
|
|
42
|
+
data-selector-id="textarea"
|
|
43
|
+
data-test-id="TextareaComp"
|
|
44
|
+
/>
|
|
45
|
+
</DocumentFragment>
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
exports[`Textarea component Should be render isDisabled is true 1`] = `
|
|
49
|
+
<DocumentFragment>
|
|
50
|
+
<textarea
|
|
51
|
+
class=" container small default needBorder noresize borderColor_default"
|
|
52
|
+
data-id="TextareaComp"
|
|
53
|
+
data-selector-id="textarea"
|
|
54
|
+
data-test-id="TextareaComp"
|
|
55
|
+
disabled=""
|
|
56
|
+
/>
|
|
57
|
+
</DocumentFragment>
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
exports[`Textarea component Should be render isDisabled is true and needEffect is false 1`] = `
|
|
61
|
+
<DocumentFragment>
|
|
62
|
+
<textarea
|
|
63
|
+
class=" container small default needBorder noresize borderColor_default"
|
|
64
|
+
data-id="TextareaComp"
|
|
65
|
+
data-selector-id="textarea"
|
|
66
|
+
data-test-id="TextareaComp"
|
|
67
|
+
disabled=""
|
|
68
|
+
/>
|
|
69
|
+
</DocumentFragment>
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
exports[`Textarea component Should be render isDisabled is true and needEffect is true 1`] = `
|
|
73
|
+
<DocumentFragment>
|
|
74
|
+
<textarea
|
|
75
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
76
|
+
data-id="TextareaComp"
|
|
77
|
+
data-selector-id="textarea"
|
|
78
|
+
data-test-id="TextareaComp"
|
|
79
|
+
disabled=""
|
|
80
|
+
/>
|
|
81
|
+
</DocumentFragment>
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`Textarea component Should be render isReadOnly is false and needEffect is false 1`] = `
|
|
85
|
+
<DocumentFragment>
|
|
86
|
+
<textarea
|
|
87
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
88
|
+
data-id="TextareaComp"
|
|
89
|
+
data-selector-id="textarea"
|
|
90
|
+
data-test-id="TextareaComp"
|
|
91
|
+
/>
|
|
92
|
+
</DocumentFragment>
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`Textarea component Should be render isReadOnly is true and needEffect is false 1`] = `
|
|
96
|
+
<DocumentFragment>
|
|
97
|
+
<textarea
|
|
98
|
+
class=" readonly container small default needBorder noresize borderColor_default"
|
|
99
|
+
data-id="TextareaComp"
|
|
100
|
+
data-selector-id="textarea"
|
|
101
|
+
data-test-id="TextareaComp"
|
|
102
|
+
readonly=""
|
|
103
|
+
/>
|
|
104
|
+
</DocumentFragment>
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
exports[`Textarea component Should be render isReadOnly is true and needEffect is true 1`] = `
|
|
108
|
+
<DocumentFragment>
|
|
109
|
+
<textarea
|
|
110
|
+
class=" readonly container small default needBorder noresize effect borderColor_default"
|
|
111
|
+
data-id="TextareaComp"
|
|
112
|
+
data-selector-id="textarea"
|
|
113
|
+
data-test-id="TextareaComp"
|
|
114
|
+
readonly=""
|
|
115
|
+
/>
|
|
116
|
+
</DocumentFragment>
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
exports[`Textarea component Should be render maxLength in number 1`] = `
|
|
120
|
+
<DocumentFragment>
|
|
121
|
+
<textarea
|
|
122
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
123
|
+
data-id="TextareaComp"
|
|
124
|
+
data-selector-id="textarea"
|
|
125
|
+
data-test-id="TextareaComp"
|
|
126
|
+
maxlength="11"
|
|
127
|
+
/>
|
|
128
|
+
</DocumentFragment>
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
exports[`Textarea component Should be render maxLength in string 1`] = `
|
|
132
|
+
<DocumentFragment>
|
|
133
|
+
<textarea
|
|
134
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
135
|
+
data-id="TextareaComp"
|
|
136
|
+
data-selector-id="textarea"
|
|
137
|
+
data-test-id="TextareaComp"
|
|
138
|
+
maxlength="Ten"
|
|
139
|
+
/>
|
|
140
|
+
</DocumentFragment>
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`Textarea component Should be render needAppearance is false 1`] = `
|
|
144
|
+
<DocumentFragment>
|
|
145
|
+
<textarea
|
|
146
|
+
class=" basic borderColor_default"
|
|
147
|
+
data-id="TextareaComp"
|
|
148
|
+
data-selector-id="textarea"
|
|
149
|
+
data-test-id="TextareaComp"
|
|
150
|
+
/>
|
|
151
|
+
</DocumentFragment>
|
|
152
|
+
`;
|
|
153
|
+
|
|
154
|
+
exports[`Textarea component Should be render needBorder is false 1`] = `
|
|
155
|
+
<DocumentFragment>
|
|
156
|
+
<textarea
|
|
157
|
+
class=" container small default noBorder noresize effect borderColor_default"
|
|
158
|
+
data-id="TextareaComp"
|
|
159
|
+
data-selector-id="textarea"
|
|
160
|
+
data-test-id="TextareaComp"
|
|
161
|
+
/>
|
|
162
|
+
</DocumentFragment>
|
|
163
|
+
`;
|
|
164
|
+
|
|
165
|
+
exports[`Textarea component Should be render needReadOnlyStyle is false 1`] = `
|
|
166
|
+
<DocumentFragment>
|
|
167
|
+
<textarea
|
|
168
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
169
|
+
data-id="TextareaComp"
|
|
170
|
+
data-selector-id="textarea"
|
|
171
|
+
data-test-id="TextareaComp"
|
|
172
|
+
/>
|
|
173
|
+
</DocumentFragment>
|
|
174
|
+
`;
|
|
175
|
+
|
|
176
|
+
exports[`Textarea component Should be render placeholder 1`] = `
|
|
177
|
+
<DocumentFragment>
|
|
178
|
+
<textarea
|
|
179
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
180
|
+
data-id="TextareaComp"
|
|
181
|
+
data-selector-id="textarea"
|
|
182
|
+
data-test-id="TextareaComp"
|
|
183
|
+
placeholder="TextAreaPlaceHolder"
|
|
184
|
+
/>
|
|
185
|
+
</DocumentFragment>
|
|
186
|
+
`;
|
|
187
|
+
|
|
188
|
+
exports[`Textarea component Should be render text 1`] = `
|
|
189
|
+
<DocumentFragment>
|
|
190
|
+
<textarea
|
|
191
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
192
|
+
data-id="TextareaComp"
|
|
193
|
+
data-selector-id="textarea"
|
|
194
|
+
data-test-id="TextareaComp"
|
|
195
|
+
>
|
|
196
|
+
TextAreaText
|
|
197
|
+
</textarea>
|
|
198
|
+
</DocumentFragment>
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`Textarea component Should be render with the basic set of default props 1`] = `
|
|
202
|
+
<DocumentFragment>
|
|
203
|
+
<textarea
|
|
204
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
205
|
+
data-id="TextareaComp"
|
|
206
|
+
data-selector-id="textarea"
|
|
207
|
+
data-test-id="TextareaComp"
|
|
208
|
+
/>
|
|
209
|
+
</DocumentFragment>
|
|
210
|
+
`;
|
|
211
|
+
|
|
212
|
+
exports[`Textarea component Should render Varient - default 1`] = `
|
|
213
|
+
<DocumentFragment>
|
|
214
|
+
<textarea
|
|
215
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
216
|
+
data-id="TextareaComp"
|
|
217
|
+
data-selector-id="textarea"
|
|
218
|
+
data-test-id="TextareaComp"
|
|
219
|
+
/>
|
|
220
|
+
</DocumentFragment>
|
|
221
|
+
`;
|
|
222
|
+
|
|
223
|
+
exports[`Textarea component Should render Varient - primary 1`] = `
|
|
224
|
+
<DocumentFragment>
|
|
225
|
+
<textarea
|
|
226
|
+
class=" container small primary needBorder noresize effect borderColor_default"
|
|
227
|
+
data-id="TextareaComp"
|
|
228
|
+
data-selector-id="textarea"
|
|
229
|
+
data-test-id="TextareaComp"
|
|
230
|
+
/>
|
|
231
|
+
</DocumentFragment>
|
|
232
|
+
`;
|
|
233
|
+
|
|
234
|
+
exports[`Textarea component Should render animated is false - large 1`] = `
|
|
235
|
+
<DocumentFragment>
|
|
236
|
+
<textarea
|
|
237
|
+
class=" container large default needBorder noresize effect borderColor_default"
|
|
238
|
+
data-id="TextareaComp"
|
|
239
|
+
data-selector-id="textarea"
|
|
240
|
+
data-test-id="TextareaComp"
|
|
241
|
+
/>
|
|
242
|
+
</DocumentFragment>
|
|
243
|
+
`;
|
|
244
|
+
|
|
245
|
+
exports[`Textarea component Should render animated is false - medium 1`] = `
|
|
246
|
+
<DocumentFragment>
|
|
247
|
+
<textarea
|
|
248
|
+
class=" container medium default needBorder noresize effect borderColor_default"
|
|
249
|
+
data-id="TextareaComp"
|
|
250
|
+
data-selector-id="textarea"
|
|
251
|
+
data-test-id="TextareaComp"
|
|
252
|
+
/>
|
|
253
|
+
</DocumentFragment>
|
|
254
|
+
`;
|
|
255
|
+
|
|
256
|
+
exports[`Textarea component Should render animated is false - small 1`] = `
|
|
257
|
+
<DocumentFragment>
|
|
258
|
+
<textarea
|
|
259
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
260
|
+
data-id="TextareaComp"
|
|
261
|
+
data-selector-id="textarea"
|
|
262
|
+
data-test-id="TextareaComp"
|
|
263
|
+
/>
|
|
264
|
+
</DocumentFragment>
|
|
265
|
+
`;
|
|
266
|
+
|
|
267
|
+
exports[`Textarea component Should render animated is false - xmedium 1`] = `
|
|
268
|
+
<DocumentFragment>
|
|
269
|
+
<textarea
|
|
270
|
+
class=" container xmedium default needBorder noresize effect borderColor_default"
|
|
271
|
+
data-id="TextareaComp"
|
|
272
|
+
data-selector-id="textarea"
|
|
273
|
+
data-test-id="TextareaComp"
|
|
274
|
+
/>
|
|
275
|
+
</DocumentFragment>
|
|
276
|
+
`;
|
|
277
|
+
|
|
278
|
+
exports[`Textarea component Should render animated is false - xsmall 1`] = `
|
|
279
|
+
<DocumentFragment>
|
|
280
|
+
<textarea
|
|
281
|
+
class=" container xsmall default needBorder noresize effect borderColor_default"
|
|
282
|
+
data-id="TextareaComp"
|
|
283
|
+
data-selector-id="textarea"
|
|
284
|
+
data-test-id="TextareaComp"
|
|
285
|
+
/>
|
|
286
|
+
</DocumentFragment>
|
|
287
|
+
`;
|
|
288
|
+
|
|
289
|
+
exports[`Textarea component Should render animated is true - large 1`] = `
|
|
290
|
+
<DocumentFragment>
|
|
291
|
+
<textarea
|
|
292
|
+
class=" container large default needBorder noresize largeanimated effect borderColor_default"
|
|
293
|
+
data-id="TextareaComp"
|
|
294
|
+
data-selector-id="textarea"
|
|
295
|
+
data-test-id="TextareaComp"
|
|
296
|
+
/>
|
|
297
|
+
</DocumentFragment>
|
|
298
|
+
`;
|
|
299
|
+
|
|
300
|
+
exports[`Textarea component Should render animated is true - medium 1`] = `
|
|
301
|
+
<DocumentFragment>
|
|
302
|
+
<textarea
|
|
303
|
+
class=" container medium default needBorder noresize undefined effect borderColor_default"
|
|
304
|
+
data-id="TextareaComp"
|
|
305
|
+
data-selector-id="textarea"
|
|
306
|
+
data-test-id="TextareaComp"
|
|
307
|
+
/>
|
|
308
|
+
</DocumentFragment>
|
|
309
|
+
`;
|
|
310
|
+
|
|
311
|
+
exports[`Textarea component Should render animated is true - small 1`] = `
|
|
312
|
+
<DocumentFragment>
|
|
313
|
+
<textarea
|
|
314
|
+
class=" container small default needBorder noresize smallanimated effect borderColor_default"
|
|
315
|
+
data-id="TextareaComp"
|
|
316
|
+
data-selector-id="textarea"
|
|
317
|
+
data-test-id="TextareaComp"
|
|
318
|
+
/>
|
|
319
|
+
</DocumentFragment>
|
|
320
|
+
`;
|
|
321
|
+
|
|
322
|
+
exports[`Textarea component Should render animated is true - xmedium 1`] = `
|
|
323
|
+
<DocumentFragment>
|
|
324
|
+
<textarea
|
|
325
|
+
class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
|
|
326
|
+
data-id="TextareaComp"
|
|
327
|
+
data-selector-id="textarea"
|
|
328
|
+
data-test-id="TextareaComp"
|
|
329
|
+
/>
|
|
330
|
+
</DocumentFragment>
|
|
331
|
+
`;
|
|
332
|
+
|
|
333
|
+
exports[`Textarea component Should render animated is true - xsmall 1`] = `
|
|
334
|
+
<DocumentFragment>
|
|
335
|
+
<textarea
|
|
336
|
+
class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
|
|
337
|
+
data-id="TextareaComp"
|
|
338
|
+
data-selector-id="textarea"
|
|
339
|
+
data-test-id="TextareaComp"
|
|
340
|
+
/>
|
|
341
|
+
</DocumentFragment>
|
|
342
|
+
`;
|
|
343
|
+
|
|
344
|
+
exports[`Textarea component Should render borderColor - default 1`] = `
|
|
345
|
+
<DocumentFragment>
|
|
346
|
+
<textarea
|
|
347
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
348
|
+
data-id="TextareaComp"
|
|
349
|
+
data-selector-id="textarea"
|
|
350
|
+
data-test-id="TextareaComp"
|
|
351
|
+
/>
|
|
352
|
+
</DocumentFragment>
|
|
353
|
+
`;
|
|
354
|
+
|
|
355
|
+
exports[`Textarea component Should render borderColor - transparent 1`] = `
|
|
356
|
+
<DocumentFragment>
|
|
357
|
+
<textarea
|
|
358
|
+
class=" container small default needBorder noresize effect borderColor_transparent"
|
|
359
|
+
data-id="TextareaComp"
|
|
360
|
+
data-selector-id="textarea"
|
|
361
|
+
data-test-id="TextareaComp"
|
|
362
|
+
/>
|
|
363
|
+
</DocumentFragment>
|
|
364
|
+
`;
|
|
365
|
+
|
|
366
|
+
exports[`Textarea component Should render resize - both 1`] = `
|
|
367
|
+
<DocumentFragment>
|
|
368
|
+
<textarea
|
|
369
|
+
class=" container small default needBorder resizeboth effect borderColor_default"
|
|
370
|
+
data-id="TextareaComp"
|
|
371
|
+
data-selector-id="textarea"
|
|
372
|
+
data-test-id="TextareaComp"
|
|
373
|
+
/>
|
|
374
|
+
</DocumentFragment>
|
|
375
|
+
`;
|
|
376
|
+
|
|
377
|
+
exports[`Textarea component Should render resize - horizontal 1`] = `
|
|
378
|
+
<DocumentFragment>
|
|
379
|
+
<textarea
|
|
380
|
+
class=" container small default needBorder resizeX effect borderColor_default"
|
|
381
|
+
data-id="TextareaComp"
|
|
382
|
+
data-selector-id="textarea"
|
|
383
|
+
data-test-id="TextareaComp"
|
|
384
|
+
/>
|
|
385
|
+
</DocumentFragment>
|
|
386
|
+
`;
|
|
387
|
+
|
|
388
|
+
exports[`Textarea component Should render resize - none 1`] = `
|
|
389
|
+
<DocumentFragment>
|
|
390
|
+
<textarea
|
|
391
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
392
|
+
data-id="TextareaComp"
|
|
393
|
+
data-selector-id="textarea"
|
|
394
|
+
data-test-id="TextareaComp"
|
|
395
|
+
/>
|
|
396
|
+
</DocumentFragment>
|
|
397
|
+
`;
|
|
398
|
+
|
|
399
|
+
exports[`Textarea component Should render resize - vertical 1`] = `
|
|
400
|
+
<DocumentFragment>
|
|
401
|
+
<textarea
|
|
402
|
+
class=" container small default needBorder resizeY effect borderColor_default"
|
|
403
|
+
data-id="TextareaComp"
|
|
404
|
+
data-selector-id="textarea"
|
|
405
|
+
data-test-id="TextareaComp"
|
|
406
|
+
/>
|
|
407
|
+
</DocumentFragment>
|
|
408
|
+
`;
|
|
409
|
+
|
|
410
|
+
exports[`Textarea component Should render size - large 1`] = `
|
|
411
|
+
<DocumentFragment>
|
|
412
|
+
<textarea
|
|
413
|
+
class=" container large default needBorder noresize largeanimated effect borderColor_default"
|
|
414
|
+
data-id="TextareaComp"
|
|
415
|
+
data-selector-id="textarea"
|
|
416
|
+
data-test-id="TextareaComp"
|
|
417
|
+
/>
|
|
418
|
+
</DocumentFragment>
|
|
419
|
+
`;
|
|
420
|
+
|
|
421
|
+
exports[`Textarea component Should render size - medium 1`] = `
|
|
422
|
+
<DocumentFragment>
|
|
423
|
+
<textarea
|
|
424
|
+
class=" container medium default needBorder noresize undefined effect borderColor_default"
|
|
425
|
+
data-id="TextareaComp"
|
|
426
|
+
data-selector-id="textarea"
|
|
427
|
+
data-test-id="TextareaComp"
|
|
428
|
+
/>
|
|
429
|
+
</DocumentFragment>
|
|
430
|
+
`;
|
|
431
|
+
|
|
432
|
+
exports[`Textarea component Should render size - small 1`] = `
|
|
433
|
+
<DocumentFragment>
|
|
434
|
+
<textarea
|
|
435
|
+
class=" container small default needBorder noresize smallanimated effect borderColor_default"
|
|
436
|
+
data-id="TextareaComp"
|
|
437
|
+
data-selector-id="textarea"
|
|
438
|
+
data-test-id="TextareaComp"
|
|
439
|
+
/>
|
|
440
|
+
</DocumentFragment>
|
|
441
|
+
`;
|
|
442
|
+
|
|
443
|
+
exports[`Textarea component Should render size - xmedium 1`] = `
|
|
444
|
+
<DocumentFragment>
|
|
445
|
+
<textarea
|
|
446
|
+
class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
|
|
447
|
+
data-id="TextareaComp"
|
|
448
|
+
data-selector-id="textarea"
|
|
449
|
+
data-test-id="TextareaComp"
|
|
450
|
+
/>
|
|
451
|
+
</DocumentFragment>
|
|
452
|
+
`;
|
|
453
|
+
|
|
454
|
+
exports[`Textarea component Should render size - xsmall 1`] = `
|
|
455
|
+
<DocumentFragment>
|
|
456
|
+
<textarea
|
|
457
|
+
class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
|
|
458
|
+
data-id="TextareaComp"
|
|
459
|
+
data-selector-id="textarea"
|
|
460
|
+
data-test-id="TextareaComp"
|
|
461
|
+
/>
|
|
462
|
+
</DocumentFragment>
|
|
463
|
+
`;
|
|
464
|
+
|
|
465
|
+
exports[`Textarea component rendering ally clearLabel 1`] = `
|
|
466
|
+
<DocumentFragment>
|
|
467
|
+
<textarea
|
|
468
|
+
aria-label="TextAreaAriaLabel"
|
|
469
|
+
aria-labelledby="TexareaAriaLabelledby"
|
|
470
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
471
|
+
data-id="TextareaComp"
|
|
472
|
+
data-selector-id="textarea"
|
|
473
|
+
data-test-id="TextareaComp"
|
|
474
|
+
/>
|
|
475
|
+
</DocumentFragment>
|
|
476
|
+
`;
|