@zohodesk/components 1.2.52 → 1.2.53

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.
Files changed (48) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +12 -0
  3. package/es/CheckBox/CheckBox.js +6 -5
  4. package/es/CheckBox/CheckBox.module.css +5 -2
  5. package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
  6. package/es/DateTime/DateTime.js +8 -4
  7. package/es/DateTime/DateWidget.js +8 -1
  8. package/es/DateTime/props/propTypes.js +5 -0
  9. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  10. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
  11. package/es/MultiSelect/AdvancedGroupMultiSelect.js +4 -2
  12. package/es/MultiSelect/AdvancedMultiSelect.js +4 -2
  13. package/es/MultiSelect/MultiSelect.js +4 -2
  14. package/es/MultiSelect/props/propTypes.js +6 -3
  15. package/es/Radio/Radio.js +9 -7
  16. package/es/Radio/Radio.module.css +1 -1
  17. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
  18. package/es/Select/GroupSelect.js +10 -3
  19. package/es/Select/props/defaultProps.js +2 -1
  20. package/es/Select/props/propTypes.js +5 -1
  21. package/es/Textarea/Textarea.js +4 -2
  22. package/es/Textarea/Textarea.module.css +1 -1
  23. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
  24. package/es/Textarea/props/propTypes.js +2 -1
  25. package/lib/CheckBox/CheckBox.js +5 -4
  26. package/lib/CheckBox/CheckBox.module.css +5 -2
  27. package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
  28. package/lib/DateTime/DateTime.js +11 -5
  29. package/lib/DateTime/DateWidget.js +8 -1
  30. package/lib/DateTime/props/propTypes.js +5 -0
  31. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
  32. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
  33. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +4 -2
  34. package/lib/MultiSelect/AdvancedMultiSelect.js +4 -2
  35. package/lib/MultiSelect/MultiSelect.js +4 -2
  36. package/lib/MultiSelect/props/propTypes.js +8 -6
  37. package/lib/Radio/Radio.js +10 -7
  38. package/lib/Radio/Radio.module.css +1 -1
  39. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
  40. package/lib/Select/GroupSelect.js +12 -5
  41. package/lib/Select/props/defaultProps.js +2 -1
  42. package/lib/Select/props/propTypes.js +5 -1
  43. package/lib/Textarea/Textarea.js +4 -2
  44. package/lib/Textarea/Textarea.module.css +1 -1
  45. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
  46. package/lib/Textarea/props/propTypes.js +2 -1
  47. package/package.json +3 -3
  48. package/result.json +1 -1
@@ -588,7 +588,8 @@ export class GroupSelectComponent extends PureComponent {
588
588
  htmlId,
589
589
  iconOnHover,
590
590
  isLoading,
591
- dataSelectorId
591
+ dataSelectorId,
592
+ customProps
592
593
  } = this.props;
593
594
  i18nKeys = Object.assign({}, i18nKeys, {
594
595
  emptyText: i18nKeys.emptyText || emptyMessage,
@@ -617,6 +618,10 @@ export class GroupSelectComponent extends PureComponent {
617
618
  } = normalizedFormatOptions[selectedId] || {};
618
619
  let setAriaId = this.getNextAriaId();
619
620
  let ariaErrorId = this.getNextAriaId();
621
+ let {
622
+ TextBoxIconProps = {},
623
+ TextBoxProps = {}
624
+ } = customProps;
620
625
  return /*#__PURE__*/React.createElement("div", {
621
626
  className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
622
627
  "data-id": dataIdSlctComp,
@@ -659,7 +664,8 @@ export class GroupSelectComponent extends PureComponent {
659
664
  },
660
665
  i18nKeys: TextBoxIcon_i18n,
661
666
  isFocus: isPopupReady,
662
- autoComplete: false
667
+ autoComplete: false,
668
+ ...TextBoxIconProps
663
669
  }, /*#__PURE__*/React.createElement(Container, {
664
670
  align: "both",
665
671
  dataId: dataIdDownIcon
@@ -696,7 +702,8 @@ export class GroupSelectComponent extends PureComponent {
696
702
  ariaOwns: setAriaId
697
703
  },
698
704
  autoComplete: false,
699
- isFocus: isPopupReady
705
+ isFocus: isPopupReady,
706
+ ...TextBoxProps
700
707
  }))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
701
708
  query: this.responsiveFunc,
702
709
  responsiveId: "Helmet"
@@ -69,7 +69,8 @@ export const GroupSelect_defaultProps = {
69
69
  isRestrictScroll: false,
70
70
  i18nKeys: {},
71
71
  iconOnHover: false,
72
- isLoading: false
72
+ isLoading: false,
73
+ customProps: {}
73
74
  };
74
75
  export const SelectWithAvatar_defaultProps = {
75
76
  animationStyle: 'bounce',
@@ -174,7 +174,11 @@ export const GroupSelect_propTypes = {
174
174
  }),
175
175
  isLoading: PropTypes.bool,
176
176
  dataSelectorId: PropTypes.string,
177
- isDefaultSelectValue: PropTypes.bool
177
+ isDefaultSelectValue: PropTypes.bool,
178
+ customProps: PropTypes.shape({
179
+ TextBoxProps: PropTypes.object,
180
+ TextBoxIconProps: PropTypes.object
181
+ })
178
182
  };
179
183
  export const SelectWithAvatar_propTypes = { ...Select_propTypes,
180
184
  textBoxClass: PropTypes.string,
@@ -58,7 +58,8 @@ export default class Textarea extends React.Component {
58
58
  autoFocus,
59
59
  htmlId,
60
60
  a11y,
61
- customClass
61
+ customClass,
62
+ isFocus
62
63
  } = this.props;
63
64
  let {
64
65
  ariaLabel,
@@ -84,7 +85,8 @@ export default class Textarea extends React.Component {
84
85
  options.autoFocus = true;
85
86
  }
86
87
 
87
- let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes[resize]] : style[resizes.none]} ${animated ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect}` : `${style.basic}`;
88
+ const isEditable = !(isReadOnly || isDisabled);
89
+ let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes[resize]] : style[resizes.none]} ${animated ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect} ${isEditable && isFocus ? style.active : ''}` : `${style.basic}`;
88
90
  return /*#__PURE__*/React.createElement("textarea", {
89
91
  "aria-label": ariaLabel,
90
92
  "aria-labelledby": ariaLabelledby,
@@ -88,7 +88,7 @@
88
88
  .effect:hover {
89
89
  --textarea_border_color: var(--zdt_textarea_hover_border);
90
90
  }
91
- .effect:focus {
91
+ .effect:focus,.effect.active {
92
92
  --textarea_border_color: var(--zdt_textarea_focus_border);
93
93
  }
94
94
  .xsmall,
@@ -3,7 +3,7 @@
3
3
  exports[`Textarea component Should be render autofocus true 1`] = `
4
4
  <DocumentFragment>
5
5
  <textarea
6
- class=" container small default needBorder noresize effect borderColor_default"
6
+ class=" container small default needBorder noresize effect borderColor_default"
7
7
  data-id="TextareaComp"
8
8
  data-selector-id="textarea"
9
9
  data-test-id="TextareaComp"
@@ -14,7 +14,7 @@ exports[`Textarea component Should be render autofocus true 1`] = `
14
14
  exports[`Textarea component Should be render customClass 1`] = `
15
15
  <DocumentFragment>
16
16
  <textarea
17
- class="textAreaCustomClass container small default needBorder noresize effect borderColor_default"
17
+ class="textAreaCustomClass container small default needBorder noresize effect borderColor_default"
18
18
  data-id="TextareaComp"
19
19
  data-selector-id="textarea"
20
20
  data-test-id="TextareaComp"
@@ -25,7 +25,7 @@ exports[`Textarea component Should be render customClass 1`] = `
25
25
  exports[`Textarea component Should be render htmlId 1`] = `
26
26
  <DocumentFragment>
27
27
  <textarea
28
- class=" container small default needBorder noresize effect borderColor_default"
28
+ class=" container small default needBorder noresize effect borderColor_default"
29
29
  data-id="TextareaComp"
30
30
  data-selector-id="textarea"
31
31
  data-test-id="TextareaComp"
@@ -37,7 +37,7 @@ exports[`Textarea component Should be render htmlId 1`] = `
37
37
  exports[`Textarea component Should be render isDisabled is false and needEffect is false 1`] = `
38
38
  <DocumentFragment>
39
39
  <textarea
40
- class=" container small default needBorder noresize effect borderColor_default"
40
+ class=" container small default needBorder noresize effect borderColor_default"
41
41
  data-id="TextareaComp"
42
42
  data-selector-id="textarea"
43
43
  data-test-id="TextareaComp"
@@ -48,7 +48,7 @@ exports[`Textarea component Should be render isDisabled is false and needEffect
48
48
  exports[`Textarea component Should be render isDisabled is true 1`] = `
49
49
  <DocumentFragment>
50
50
  <textarea
51
- class=" container small default needBorder noresize borderColor_default"
51
+ class=" container small default needBorder noresize borderColor_default"
52
52
  data-id="TextareaComp"
53
53
  data-selector-id="textarea"
54
54
  data-test-id="TextareaComp"
@@ -60,7 +60,7 @@ exports[`Textarea component Should be render isDisabled is true 1`] = `
60
60
  exports[`Textarea component Should be render isDisabled is true and needEffect is false 1`] = `
61
61
  <DocumentFragment>
62
62
  <textarea
63
- class=" container small default needBorder noresize borderColor_default"
63
+ class=" container small default needBorder noresize borderColor_default"
64
64
  data-id="TextareaComp"
65
65
  data-selector-id="textarea"
66
66
  data-test-id="TextareaComp"
@@ -72,7 +72,7 @@ exports[`Textarea component Should be render isDisabled is true and needEffect i
72
72
  exports[`Textarea component Should be render isDisabled is true and needEffect is true 1`] = `
73
73
  <DocumentFragment>
74
74
  <textarea
75
- class=" container small default needBorder noresize effect borderColor_default"
75
+ class=" container small default needBorder noresize effect borderColor_default"
76
76
  data-id="TextareaComp"
77
77
  data-selector-id="textarea"
78
78
  data-test-id="TextareaComp"
@@ -84,7 +84,7 @@ exports[`Textarea component Should be render isDisabled is true and needEffect i
84
84
  exports[`Textarea component Should be render isReadOnly is false and needEffect is false 1`] = `
85
85
  <DocumentFragment>
86
86
  <textarea
87
- class=" container small default needBorder noresize effect borderColor_default"
87
+ class=" container small default needBorder noresize effect borderColor_default"
88
88
  data-id="TextareaComp"
89
89
  data-selector-id="textarea"
90
90
  data-test-id="TextareaComp"
@@ -95,7 +95,7 @@ exports[`Textarea component Should be render isReadOnly is false and needEffect
95
95
  exports[`Textarea component Should be render isReadOnly is true and needEffect is false 1`] = `
96
96
  <DocumentFragment>
97
97
  <textarea
98
- class=" readonly container small default needBorder noresize borderColor_default"
98
+ class=" readonly container small default needBorder noresize borderColor_default"
99
99
  data-id="TextareaComp"
100
100
  data-selector-id="textarea"
101
101
  data-test-id="TextareaComp"
@@ -107,7 +107,7 @@ exports[`Textarea component Should be render isReadOnly is true and needEffect i
107
107
  exports[`Textarea component Should be render isReadOnly is true and needEffect is true 1`] = `
108
108
  <DocumentFragment>
109
109
  <textarea
110
- class=" readonly container small default needBorder noresize effect borderColor_default"
110
+ class=" readonly container small default needBorder noresize effect borderColor_default"
111
111
  data-id="TextareaComp"
112
112
  data-selector-id="textarea"
113
113
  data-test-id="TextareaComp"
@@ -119,7 +119,7 @@ exports[`Textarea component Should be render isReadOnly is true and needEffect i
119
119
  exports[`Textarea component Should be render maxLength in number 1`] = `
120
120
  <DocumentFragment>
121
121
  <textarea
122
- class=" container small default needBorder noresize effect borderColor_default"
122
+ class=" container small default needBorder noresize effect borderColor_default"
123
123
  data-id="TextareaComp"
124
124
  data-selector-id="textarea"
125
125
  data-test-id="TextareaComp"
@@ -131,7 +131,7 @@ exports[`Textarea component Should be render maxLength in number 1`] = `
131
131
  exports[`Textarea component Should be render maxLength in string 1`] = `
132
132
  <DocumentFragment>
133
133
  <textarea
134
- class=" container small default needBorder noresize effect borderColor_default"
134
+ class=" container small default needBorder noresize effect borderColor_default"
135
135
  data-id="TextareaComp"
136
136
  data-selector-id="textarea"
137
137
  data-test-id="TextareaComp"
@@ -154,7 +154,7 @@ exports[`Textarea component Should be render needAppearance is false 1`] = `
154
154
  exports[`Textarea component Should be render needBorder is false 1`] = `
155
155
  <DocumentFragment>
156
156
  <textarea
157
- class=" container small default noBorder noresize effect borderColor_default"
157
+ class=" container small default noBorder noresize effect borderColor_default"
158
158
  data-id="TextareaComp"
159
159
  data-selector-id="textarea"
160
160
  data-test-id="TextareaComp"
@@ -165,7 +165,7 @@ exports[`Textarea component Should be render needBorder is false 1`] = `
165
165
  exports[`Textarea component Should be render needReadOnlyStyle is false 1`] = `
166
166
  <DocumentFragment>
167
167
  <textarea
168
- class=" container small default needBorder noresize effect borderColor_default"
168
+ class=" container small default needBorder noresize effect borderColor_default"
169
169
  data-id="TextareaComp"
170
170
  data-selector-id="textarea"
171
171
  data-test-id="TextareaComp"
@@ -176,7 +176,7 @@ exports[`Textarea component Should be render needReadOnlyStyle is false 1`] = `
176
176
  exports[`Textarea component Should be render placeholder 1`] = `
177
177
  <DocumentFragment>
178
178
  <textarea
179
- class=" container small default needBorder noresize effect borderColor_default"
179
+ class=" container small default needBorder noresize effect borderColor_default"
180
180
  data-id="TextareaComp"
181
181
  data-selector-id="textarea"
182
182
  data-test-id="TextareaComp"
@@ -188,7 +188,7 @@ exports[`Textarea component Should be render placeholder 1`] = `
188
188
  exports[`Textarea component Should be render text 1`] = `
189
189
  <DocumentFragment>
190
190
  <textarea
191
- class=" container small default needBorder noresize effect borderColor_default"
191
+ class=" container small default needBorder noresize effect borderColor_default"
192
192
  data-id="TextareaComp"
193
193
  data-selector-id="textarea"
194
194
  data-test-id="TextareaComp"
@@ -201,7 +201,7 @@ exports[`Textarea component Should be render text 1`] = `
201
201
  exports[`Textarea component Should be render with the basic set of default props 1`] = `
202
202
  <DocumentFragment>
203
203
  <textarea
204
- class=" container small default needBorder noresize effect borderColor_default"
204
+ class=" container small default needBorder noresize effect borderColor_default"
205
205
  data-id="TextareaComp"
206
206
  data-selector-id="textarea"
207
207
  data-test-id="TextareaComp"
@@ -212,7 +212,7 @@ exports[`Textarea component Should be render with the basic set of default props
212
212
  exports[`Textarea component Should render Varient - default 1`] = `
213
213
  <DocumentFragment>
214
214
  <textarea
215
- class=" container small default needBorder noresize effect borderColor_default"
215
+ class=" container small default needBorder noresize effect borderColor_default"
216
216
  data-id="TextareaComp"
217
217
  data-selector-id="textarea"
218
218
  data-test-id="TextareaComp"
@@ -223,7 +223,7 @@ exports[`Textarea component Should render Varient - default 1`] = `
223
223
  exports[`Textarea component Should render Varient - primary 1`] = `
224
224
  <DocumentFragment>
225
225
  <textarea
226
- class=" container small primary needBorder noresize effect borderColor_default"
226
+ class=" container small primary needBorder noresize effect borderColor_default"
227
227
  data-id="TextareaComp"
228
228
  data-selector-id="textarea"
229
229
  data-test-id="TextareaComp"
@@ -234,7 +234,7 @@ exports[`Textarea component Should render Varient - primary 1`] = `
234
234
  exports[`Textarea component Should render animated is false - large 1`] = `
235
235
  <DocumentFragment>
236
236
  <textarea
237
- class=" container large default needBorder noresize effect borderColor_default"
237
+ class=" container large default needBorder noresize effect borderColor_default"
238
238
  data-id="TextareaComp"
239
239
  data-selector-id="textarea"
240
240
  data-test-id="TextareaComp"
@@ -245,7 +245,7 @@ exports[`Textarea component Should render animated is false - large 1`] = `
245
245
  exports[`Textarea component Should render animated is false - medium 1`] = `
246
246
  <DocumentFragment>
247
247
  <textarea
248
- class=" container medium default needBorder noresize effect borderColor_default"
248
+ class=" container medium default needBorder noresize effect borderColor_default"
249
249
  data-id="TextareaComp"
250
250
  data-selector-id="textarea"
251
251
  data-test-id="TextareaComp"
@@ -256,7 +256,7 @@ exports[`Textarea component Should render animated is false - medium 1`] = `
256
256
  exports[`Textarea component Should render animated is false - small 1`] = `
257
257
  <DocumentFragment>
258
258
  <textarea
259
- class=" container small default needBorder noresize effect borderColor_default"
259
+ class=" container small default needBorder noresize effect borderColor_default"
260
260
  data-id="TextareaComp"
261
261
  data-selector-id="textarea"
262
262
  data-test-id="TextareaComp"
@@ -267,7 +267,7 @@ exports[`Textarea component Should render animated is false - small 1`] = `
267
267
  exports[`Textarea component Should render animated is false - xmedium 1`] = `
268
268
  <DocumentFragment>
269
269
  <textarea
270
- class=" container xmedium default needBorder noresize effect borderColor_default"
270
+ class=" container xmedium default needBorder noresize effect borderColor_default"
271
271
  data-id="TextareaComp"
272
272
  data-selector-id="textarea"
273
273
  data-test-id="TextareaComp"
@@ -278,7 +278,7 @@ exports[`Textarea component Should render animated is false - xmedium 1`] = `
278
278
  exports[`Textarea component Should render animated is false - xsmall 1`] = `
279
279
  <DocumentFragment>
280
280
  <textarea
281
- class=" container xsmall default needBorder noresize effect borderColor_default"
281
+ class=" container xsmall default needBorder noresize effect borderColor_default"
282
282
  data-id="TextareaComp"
283
283
  data-selector-id="textarea"
284
284
  data-test-id="TextareaComp"
@@ -289,7 +289,7 @@ exports[`Textarea component Should render animated is false - xsmall 1`] = `
289
289
  exports[`Textarea component Should render animated is true - large 1`] = `
290
290
  <DocumentFragment>
291
291
  <textarea
292
- class=" container large default needBorder noresize largeanimated effect borderColor_default"
292
+ class=" container large default needBorder noresize largeanimated effect borderColor_default"
293
293
  data-id="TextareaComp"
294
294
  data-selector-id="textarea"
295
295
  data-test-id="TextareaComp"
@@ -300,7 +300,7 @@ exports[`Textarea component Should render animated is true - large 1`] = `
300
300
  exports[`Textarea component Should render animated is true - medium 1`] = `
301
301
  <DocumentFragment>
302
302
  <textarea
303
- class=" container medium default needBorder noresize undefined effect borderColor_default"
303
+ class=" container medium default needBorder noresize undefined effect borderColor_default"
304
304
  data-id="TextareaComp"
305
305
  data-selector-id="textarea"
306
306
  data-test-id="TextareaComp"
@@ -311,7 +311,7 @@ exports[`Textarea component Should render animated is true - medium 1`] = `
311
311
  exports[`Textarea component Should render animated is true - small 1`] = `
312
312
  <DocumentFragment>
313
313
  <textarea
314
- class=" container small default needBorder noresize smallanimated effect borderColor_default"
314
+ class=" container small default needBorder noresize smallanimated effect borderColor_default"
315
315
  data-id="TextareaComp"
316
316
  data-selector-id="textarea"
317
317
  data-test-id="TextareaComp"
@@ -322,7 +322,7 @@ exports[`Textarea component Should render animated is true - small 1`] = `
322
322
  exports[`Textarea component Should render animated is true - xmedium 1`] = `
323
323
  <DocumentFragment>
324
324
  <textarea
325
- class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
325
+ class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
326
326
  data-id="TextareaComp"
327
327
  data-selector-id="textarea"
328
328
  data-test-id="TextareaComp"
@@ -333,7 +333,7 @@ exports[`Textarea component Should render animated is true - xmedium 1`] = `
333
333
  exports[`Textarea component Should render animated is true - xsmall 1`] = `
334
334
  <DocumentFragment>
335
335
  <textarea
336
- class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
336
+ class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
337
337
  data-id="TextareaComp"
338
338
  data-selector-id="textarea"
339
339
  data-test-id="TextareaComp"
@@ -344,7 +344,7 @@ exports[`Textarea component Should render animated is true - xsmall 1`] = `
344
344
  exports[`Textarea component Should render borderColor - default 1`] = `
345
345
  <DocumentFragment>
346
346
  <textarea
347
- class=" container small default needBorder noresize effect borderColor_default"
347
+ class=" container small default needBorder noresize effect borderColor_default"
348
348
  data-id="TextareaComp"
349
349
  data-selector-id="textarea"
350
350
  data-test-id="TextareaComp"
@@ -355,7 +355,7 @@ exports[`Textarea component Should render borderColor - default 1`] = `
355
355
  exports[`Textarea component Should render borderColor - transparent 1`] = `
356
356
  <DocumentFragment>
357
357
  <textarea
358
- class=" container small default needBorder noresize effect borderColor_transparent"
358
+ class=" container small default needBorder noresize effect borderColor_transparent"
359
359
  data-id="TextareaComp"
360
360
  data-selector-id="textarea"
361
361
  data-test-id="TextareaComp"
@@ -366,7 +366,7 @@ exports[`Textarea component Should render borderColor - transparent 1`] = `
366
366
  exports[`Textarea component Should render resize - both 1`] = `
367
367
  <DocumentFragment>
368
368
  <textarea
369
- class=" container small default needBorder resizeboth effect borderColor_default"
369
+ class=" container small default needBorder resizeboth effect borderColor_default"
370
370
  data-id="TextareaComp"
371
371
  data-selector-id="textarea"
372
372
  data-test-id="TextareaComp"
@@ -377,7 +377,7 @@ exports[`Textarea component Should render resize - both 1`] = `
377
377
  exports[`Textarea component Should render resize - horizontal 1`] = `
378
378
  <DocumentFragment>
379
379
  <textarea
380
- class=" container small default needBorder resizeX effect borderColor_default"
380
+ class=" container small default needBorder resizeX effect borderColor_default"
381
381
  data-id="TextareaComp"
382
382
  data-selector-id="textarea"
383
383
  data-test-id="TextareaComp"
@@ -388,7 +388,7 @@ exports[`Textarea component Should render resize - horizontal 1`] = `
388
388
  exports[`Textarea component Should render resize - none 1`] = `
389
389
  <DocumentFragment>
390
390
  <textarea
391
- class=" container small default needBorder noresize effect borderColor_default"
391
+ class=" container small default needBorder noresize effect borderColor_default"
392
392
  data-id="TextareaComp"
393
393
  data-selector-id="textarea"
394
394
  data-test-id="TextareaComp"
@@ -399,7 +399,7 @@ exports[`Textarea component Should render resize - none 1`] = `
399
399
  exports[`Textarea component Should render resize - vertical 1`] = `
400
400
  <DocumentFragment>
401
401
  <textarea
402
- class=" container small default needBorder resizeY effect borderColor_default"
402
+ class=" container small default needBorder resizeY effect borderColor_default"
403
403
  data-id="TextareaComp"
404
404
  data-selector-id="textarea"
405
405
  data-test-id="TextareaComp"
@@ -410,7 +410,7 @@ exports[`Textarea component Should render resize - vertical 1`] = `
410
410
  exports[`Textarea component Should render size - large 1`] = `
411
411
  <DocumentFragment>
412
412
  <textarea
413
- class=" container large default needBorder noresize largeanimated effect borderColor_default"
413
+ class=" container large default needBorder noresize largeanimated effect borderColor_default"
414
414
  data-id="TextareaComp"
415
415
  data-selector-id="textarea"
416
416
  data-test-id="TextareaComp"
@@ -421,7 +421,7 @@ exports[`Textarea component Should render size - large 1`] = `
421
421
  exports[`Textarea component Should render size - medium 1`] = `
422
422
  <DocumentFragment>
423
423
  <textarea
424
- class=" container medium default needBorder noresize undefined effect borderColor_default"
424
+ class=" container medium default needBorder noresize undefined effect borderColor_default"
425
425
  data-id="TextareaComp"
426
426
  data-selector-id="textarea"
427
427
  data-test-id="TextareaComp"
@@ -432,7 +432,7 @@ exports[`Textarea component Should render size - medium 1`] = `
432
432
  exports[`Textarea component Should render size - small 1`] = `
433
433
  <DocumentFragment>
434
434
  <textarea
435
- class=" container small default needBorder noresize smallanimated effect borderColor_default"
435
+ class=" container small default needBorder noresize smallanimated effect borderColor_default"
436
436
  data-id="TextareaComp"
437
437
  data-selector-id="textarea"
438
438
  data-test-id="TextareaComp"
@@ -443,7 +443,7 @@ exports[`Textarea component Should render size - small 1`] = `
443
443
  exports[`Textarea component Should render size - xmedium 1`] = `
444
444
  <DocumentFragment>
445
445
  <textarea
446
- class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
446
+ class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
447
447
  data-id="TextareaComp"
448
448
  data-selector-id="textarea"
449
449
  data-test-id="TextareaComp"
@@ -454,7 +454,7 @@ exports[`Textarea component Should render size - xmedium 1`] = `
454
454
  exports[`Textarea component Should render size - xsmall 1`] = `
455
455
  <DocumentFragment>
456
456
  <textarea
457
- class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
457
+ class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
458
458
  data-id="TextareaComp"
459
459
  data-selector-id="textarea"
460
460
  data-test-id="TextareaComp"
@@ -467,7 +467,7 @@ exports[`Textarea component rendering ally clearLabel 1`] = `
467
467
  <textarea
468
468
  aria-label="TextAreaAriaLabel"
469
469
  aria-labelledby="TexareaAriaLabelledby"
470
- class=" container small default needBorder noresize effect borderColor_default"
470
+ class=" container small default needBorder noresize effect borderColor_default"
471
471
  data-id="TextareaComp"
472
472
  data-selector-id="textarea"
473
473
  data-test-id="TextareaComp"
@@ -27,5 +27,6 @@ export const propTypes = {
27
27
  a11y: PropTypes.shape({
28
28
  ariaLabel: PropTypes.string,
29
29
  ariaLabelledby: PropTypes.string
30
- })
30
+ }),
31
+ isFocus: PropTypes.bool
31
32
  };
@@ -126,16 +126,17 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
126
126
  role = _a11y$role === void 0 ? 'checkbox' : _a11y$role,
127
127
  _a11y$ariaChecked = a11y.ariaChecked,
128
128
  ariaChecked = _a11y$ariaChecked === void 0 ? checked : _a11y$ariaChecked;
129
+ var isEditable = !(isReadOnly || disabled);
129
130
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
130
131
  dataId: dataId,
131
132
  isCover: false,
132
133
  isInline: text ? false : true,
133
134
  alignBox: "row",
134
135
  align: "vertical",
135
- className: "".concat(_CheckBoxModule["default"].container, " ").concat(accessMode, " ").concat(isReadOnly || disabled ? '' : "".concat(_CheckBoxModule["default"][palette]), " \n ").concat(checked ? "".concat(_CheckBoxModule["default"]["checked".concat(palette)]) : '', " ").concat(customCheckBox),
136
+ className: "".concat(_CheckBoxModule["default"].container, " ").concat(accessMode, " ").concat(!isEditable ? '' : "".concat(_CheckBoxModule["default"][palette]), " \n ").concat(checked ? "".concat(_CheckBoxModule["default"]["checked".concat(palette)]) : '', " ").concat(customCheckBox),
136
137
  "data-title": toolTip,
137
- onClick: isReadOnly || disabled ? null : this.onChange,
138
- tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
138
+ onClick: !isEditable ? null : this.onChange,
139
+ tabIndex: !isEditable || ariaHidden ? '-1' : '0',
139
140
  "aria-checked": ariaChecked,
140
141
  eleRef: this.handleGetContainerRef,
141
142
  role: role,
@@ -144,7 +145,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
144
145
  "aria-hidden": ariaHidden,
145
146
  "data-selector-id": dataSelectorId || id
146
147
  }, CheckBoxProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
147
- className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize, " ").concat(isFilled ? _CheckBoxModule["default"].filled : '')
148
+ className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize, " ").concat(isFilled ? _CheckBoxModule["default"].filled : '', " ").concat(!isEditable ? "".concat(_CheckBoxModule["default"]["disabled"]) : '')
148
149
  }, /*#__PURE__*/_react["default"].createElement("input", {
149
150
  type: "hidden",
150
151
  id: id,
@@ -97,10 +97,10 @@
97
97
  margin-right: var(--zd_size6) ;
98
98
  }
99
99
 
100
- .checkedprimary,
100
+ .checkedprimary,
101
101
  .checkeddanger {
102
102
  stroke: var(--checkbox_checked_stroke_color);
103
- }
103
+ }
104
104
  .primary:hover
105
105
  /* .primary:focus */
106
106
  {
@@ -138,6 +138,9 @@
138
138
  .checkeddangerLabel {
139
139
  --checkbox_checked_active_color: var(--zdt_checkbox_danger_stroke_border);
140
140
  }
141
+ .disabled {
142
+ opacity: 0.7
143
+ }
141
144
  @keyframes tickAnimate {
142
145
  0% {
143
146
  stroke-dashoffset: 40;