@zohodesk/components 1.0.0-temp-178 → 1.0.0-temp-180

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 (100) hide show
  1. package/.cli/AppearanceThemeValidationExcludeFiles.js +1 -0
  2. package/.cli/PropLessFiles.html +1 -1
  3. package/.cli/PropUnificationExcludeFilesArray.js +231 -0
  4. package/.cli/propValidation_report.html +24 -2
  5. package/PropValidationExcludeFilesArray.js +1 -0
  6. package/README.md +6 -0
  7. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +3 -0
  8. package/assets/Appearance/light/mode/Component_LightMode.module.css +3 -0
  9. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +3 -0
  10. package/es/Avatar/Avatar.js +2 -1
  11. package/es/Avatar/Avatar.module.css +12 -0
  12. package/es/AvatarTeam/AvatarTeam.module.css +2 -0
  13. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +1 -0
  14. package/es/Button/css/Button.module.css +9 -1
  15. package/es/Buttongroup/Buttongroup.module.css +3 -2
  16. package/es/CheckBox/CheckBox.module.css +2 -0
  17. package/es/DateTime/DateTime.module.css +3 -2
  18. package/es/DateTime/YearView.module.css +1 -1
  19. package/es/DateTime/dateFormatUtils/dateFormat.js +6 -1
  20. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +8 -4
  21. package/es/DropBox/css/DropBox.module.css +1 -0
  22. package/es/DropDown/DropDownHeading.module.css +6 -0
  23. package/es/DropDown/DropDownItem.module.css +3 -0
  24. package/es/Label/Label.module.css +2 -1
  25. package/es/ListItem/ListContainer.js +1 -1
  26. package/es/ListItem/ListItem.module.css +28 -18
  27. package/es/MultiSelect/Suggestions.js +2 -1
  28. package/es/PopOver/PopOver.module.css +1 -0
  29. package/es/Radio/Radio.module.css +1 -0
  30. package/es/Ribbon/Ribbon.module.css +9 -6
  31. package/es/Select/Select.js +3 -2
  32. package/es/Switch/Switch.js +2 -2
  33. package/es/Switch/Switch.module.css +2 -0
  34. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +22 -22
  35. package/es/Tab/Tab.module.css +3 -3
  36. package/es/Tag/Tag.module.css +8 -3
  37. package/es/TextBox/TextBox.module.css +25 -5
  38. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -0
  39. package/es/Textarea/Textarea.module.css +9 -3
  40. package/es/Tooltip/Tooltip.module.css +5 -1
  41. package/es/common/common.module.css +2 -2
  42. package/es/common/customscroll.module.css +37 -0
  43. package/es/v1/Avatar/Avatar.js +2 -1
  44. package/es/v1/ListItem/ListContainer.js +1 -1
  45. package/es/v1/Modal/Modal.js +86 -114
  46. package/es/v1/MultiSelect/Suggestions.js +2 -1
  47. package/es/v1/Select/Select.js +3 -2
  48. package/es/v1/Switch/Switch.js +2 -2
  49. package/es/v1/Typography/css/Typography.module.css +83 -112
  50. package/es/v1/Typography/css/cssJSLogic.js +6 -2
  51. package/es/v1/Typography/props/propTypes.js +2 -2
  52. package/es/v1/Typography/utils/index.js +50 -0
  53. package/lib/Avatar/Avatar.js +2 -1
  54. package/lib/Avatar/Avatar.module.css +12 -0
  55. package/lib/AvatarTeam/AvatarTeam.module.css +2 -0
  56. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +1 -0
  57. package/lib/Button/css/Button.module.css +9 -1
  58. package/lib/Buttongroup/Buttongroup.module.css +3 -2
  59. package/lib/CheckBox/CheckBox.module.css +2 -0
  60. package/lib/DateTime/DateTime.module.css +3 -2
  61. package/lib/DateTime/YearView.module.css +1 -1
  62. package/lib/DateTime/dateFormatUtils/dateFormat.js +6 -1
  63. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +8 -4
  64. package/lib/DropBox/css/DropBox.module.css +1 -0
  65. package/lib/DropDown/DropDownHeading.module.css +6 -0
  66. package/lib/DropDown/DropDownItem.module.css +3 -0
  67. package/lib/Label/Label.module.css +2 -1
  68. package/lib/ListItem/ListContainer.js +1 -1
  69. package/lib/ListItem/ListItem.module.css +28 -18
  70. package/lib/MultiSelect/Suggestions.js +2 -1
  71. package/lib/PopOver/PopOver.module.css +1 -0
  72. package/lib/Radio/Radio.module.css +1 -0
  73. package/lib/Ribbon/Ribbon.module.css +9 -6
  74. package/lib/Select/Select.js +3 -2
  75. package/lib/Switch/Switch.js +2 -2
  76. package/lib/Switch/Switch.module.css +2 -0
  77. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +22 -22
  78. package/lib/Tab/Tab.module.css +3 -3
  79. package/lib/Tag/Tag.module.css +8 -3
  80. package/lib/TextBox/TextBox.module.css +25 -5
  81. package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -0
  82. package/lib/Textarea/Textarea.module.css +9 -3
  83. package/lib/Tooltip/Tooltip.module.css +5 -1
  84. package/lib/common/common.module.css +2 -2
  85. package/lib/common/customscroll.module.css +37 -0
  86. package/lib/v1/Avatar/Avatar.js +2 -1
  87. package/lib/v1/ListItem/ListContainer.js +1 -1
  88. package/lib/v1/Modal/Modal.js +118 -164
  89. package/lib/v1/MultiSelect/Suggestions.js +2 -1
  90. package/lib/v1/Select/Select.js +3 -2
  91. package/lib/v1/Switch/Switch.js +2 -2
  92. package/lib/v1/Typography/css/Typography.module.css +83 -112
  93. package/lib/v1/Typography/css/cssJSLogic.js +7 -3
  94. package/lib/v1/Typography/props/propTypes.js +2 -2
  95. package/lib/v1/Typography/utils/index.js +59 -0
  96. package/package.json +12 -10
  97. package/propValidationArg.json +8 -0
  98. package/result.json +1 -1
  99. package/es/v1/Typography/css/letterSpacingMap.js +0 -12
  100. package/lib/v1/Typography/css/letterSpacingMap.js +0 -20
@@ -13,8 +13,8 @@ export const propTypes = {
13
13
  $ui_typeFace: PropTypes.oneOf(['normal', 'italic']),
14
14
  $ui_decoration: PropTypes.oneOf(['default', 'underline', 'strike', 'overline']),
15
15
  $ui_size: PropTypes.oneOf(['7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '24', '25', '26', '28', '29', '30', '32', '34', '35', '36', '40', '50', 'inherit']),
16
- $ui_lineHeight: PropTypes.oneOf(['0', '1', '8', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '24', '25', '26', '27', '28', '29', '30', '32', '33', '34', '35', '36', '38', '40', '41', '42', '45', '50', '52', '54', '55', '60', '70', '75', '120', 'inherit']),
17
- $ui_letterSpacing: PropTypes.oneOf(['0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1', '2', '4', 'inherit']),
16
+ $ui_lineHeight: PropTypes.oneOf(['0', '0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '2', 'normal', 'initial', 'inherit']),
17
+ $ui_letterSpacing: PropTypes.oneOf(['0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '2', 'inherit']),
18
18
  $ui_wordBreak: PropTypes.oneOf(['breakAll', 'keepAll', 'breakWord']),
19
19
  $ui_wordWrap: PropTypes.oneOf(['normal', 'break']),
20
20
  $ui_whiteSpace: PropTypes.oneOf(['normal', 'noWrap', 'pre', 'preLine', 'preWrap']),
@@ -0,0 +1,50 @@
1
+ /* eslint-disable */
2
+ export const letterspacingMapping = {
3
+ 'inherit': 'inherit',
4
+ '0.1': '0_1',
5
+ '0.2': '0_2',
6
+ '0.3': '0_3',
7
+ '0.4': '0_4',
8
+ '0.5': '0_5',
9
+ '0.6': '0_6',
10
+ '0.7': '0_7',
11
+ '0.8': '0_8',
12
+ '0.9': '0_9',
13
+ '1': '1',
14
+ '1.1': '1_1',
15
+ '1.2': '1_2',
16
+ '1.3': '1_3',
17
+ '1.4': '1_4',
18
+ '1.5': '1_5',
19
+ '1.6': '1_6',
20
+ '1.7': '1_7',
21
+ '1.8': '1_8',
22
+ '1.9': '1_9',
23
+ '2': '2'
24
+ };
25
+ export const lineheightMapping = {
26
+ 'inherit': 'inherit',
27
+ 'initial': 'initial',
28
+ 'normal': 'normal',
29
+ '0': '0',
30
+ '0.1': '0_1',
31
+ '0.2': '0_2',
32
+ '0.3': '0_3',
33
+ '0.4': '0_4',
34
+ '0.5': '0_5',
35
+ '0.6': '0_6',
36
+ '0.7': '0_7',
37
+ '0.8': '0_8',
38
+ '0.9': '0_9',
39
+ '1': '1',
40
+ '1.1': '1_1',
41
+ '1.2': '1_2',
42
+ '1.3': '1_3',
43
+ '1.4': '1_4',
44
+ '1.5': '1_5',
45
+ '1.6': '1_6',
46
+ '1.7': '1_7',
47
+ '1.8': '1_8',
48
+ '1.9': '1_9',
49
+ '2': '2'
50
+ };
@@ -215,7 +215,8 @@ var Avatar = /*#__PURE__*/function (_React$Component) {
215
215
  "data-id": dataId,
216
216
  "data-test-id": dataId,
217
217
  onClick: onClick,
218
- "data-selector-id": dataSelectorId
218
+ "data-selector-id": dataSelectorId,
219
+ tabIndex: onClick ? 0 : null
219
220
  }, AvatarProps), showInitial && !showAlternateAvatar && /*#__PURE__*/_react["default"].createElement("span", {
220
221
  className: "".concat(_AvatarModule["default"].initial),
221
222
  "data-id": "".concat(dataId, "_AvatarInitial"),
@@ -18,19 +18,31 @@
18
18
  composes: dInflex alignVertical alignHorizontal from '../common/common.module.css';
19
19
  vertical-align: middle;
20
20
  font-size: var(--avatar_font_size);
21
+ /* css:theme-validation:ignore */
21
22
  color: var(--avatar_text_color);
22
23
  border-width: var(--avatar_border_width);
23
24
  border-style: var(--avatar_border_style);
24
25
  }
25
26
 
26
27
  .border {
28
+ /* css:theme-validation:ignore */
27
29
  border-color: var(--avatar_border_color);
28
30
  }
29
31
 
32
+ .borderOnHover:hover,
33
+ .borderOnActive {
34
+ /* css:theme-validation:ignore */
35
+ }
36
+
30
37
  .borderOnHover:hover, .borderOnActive {
31
38
  border-color: var(--avatar_border_hoverColor);
32
39
  }
33
40
 
41
+ .avatar,
42
+ .primary {
43
+ /* css:theme-validation:ignore */
44
+ }
45
+
34
46
  .avatar, .primary {
35
47
  background-color: var(--avatar_bg_color);
36
48
  }
@@ -25,6 +25,8 @@
25
25
  composes: varClass;
26
26
  composes: posab from '../common/common.module.css';
27
27
  top: var(--avatarteam_top_top);
28
+ /* css:theme-validation:ignore */
29
+ /* css:theme-validation:ignore */
28
30
  width: var(--avatarteam_width);
29
31
  height: var(--avatarteam_height);
30
32
  outline-width: var(--avatarteam_outline_width);
@@ -252,6 +252,7 @@ exports[`AvatarTeam rendering the onClick prop with asFragment and toMatchSnapsh
252
252
  data-id="Avatar"
253
253
  data-selector-id="avatar"
254
254
  data-test-id="Avatar"
255
+ tabindex="0"
255
256
  >
256
257
  <span
257
258
  class="initial"
@@ -48,10 +48,13 @@
48
48
  composes: dotted from '../../common/common.module.css';
49
49
  position: relative;
50
50
  font-size: var(--button_font_size);
51
+ /* css:theme-validation:ignore */
51
52
  color: var(--button_text_color);
52
53
  font-family: var(--button_font_family);
53
54
  text-transform: var(--button_text_transform);
55
+ /* css:theme-validation:ignore */
54
56
  min-width: var(--button_min_width);
57
+ /* css:theme-validation:ignore */
55
58
  height: var(--button_height);
56
59
  background-color: var(--button_bg_color);
57
60
  border-radius: var(--button_border_radius);
@@ -295,6 +298,7 @@
295
298
  .loadingelement:after {
296
299
  content: '';
297
300
  position: absolute;
301
+ /* css:theme-validation:ignore */
298
302
  }
299
303
 
300
304
  .loadingelement:before, .loadingelement:after {
@@ -468,6 +472,7 @@
468
472
  transform-origin: center;
469
473
  border-width: 2px 2px 0 0;
470
474
  border-style: solid;
475
+ /* css:theme-validation:ignore */
471
476
  border-color: var(--button_success_border_color);
472
477
  animation: tick var(--zd_no_transition3) ease 0s forwards;
473
478
  }
@@ -523,4 +528,7 @@
523
528
  }
524
529
  }
525
530
 
526
- .loader{color:var(--dot_mirror)}
531
+ .loader{
532
+ /* css:theme-validation:ignore */
533
+ color:var(--dot_mirror)
534
+ }
@@ -11,6 +11,8 @@
11
11
  .buttonGroup {
12
12
  composes: varClass;
13
13
  composes: cboth from '../common/common.module.css';
14
+ /* css:theme-validation:ignore */
15
+ /* css:theme-validation:ignore */
14
16
  background-color: var(--buttongroup_bg_color);
15
17
  box-shadow: var(--buttongroup_box_shadow);
16
18
  padding: var(--buttongroup_padding);
@@ -24,8 +26,7 @@
24
26
  }
25
27
 
26
28
  [dir=ltr] .footer {
27
- --buttongroup_padding: var(--zd_size20) 0 var(--zd_size20) var(--zd_size60
28
- ) ;
29
+ --buttongroup_padding: var(--zd_size20) 0 var(--zd_size20) var(--zd_size60);
29
30
  }
30
31
 
31
32
  [dir=rtl] .footer {
@@ -34,6 +34,7 @@
34
34
  }
35
35
  .boxContainer {
36
36
  composes: offSelection from '../common/common.module.css';
37
+ /* css:theme-validation:ignore */
37
38
  border-radius: 2px;
38
39
  background-color: var(--checkbox_bg_color);
39
40
  }
@@ -120,6 +121,7 @@
120
121
 
121
122
  .checkedprimaryLabel,
122
123
  .checkeddangerLabel {
124
+ /* css:theme-validation:ignore */
123
125
  color: var(--checkbox_checked_active_color);
124
126
  }
125
127
  .activeprimaryLabel:hover
@@ -35,7 +35,8 @@
35
35
  .grid {
36
36
  width: var(--zd_size28) ;
37
37
  height: var(--zd_size28) ;
38
- line-height: 1.3846;
38
+ line-height: var(--zd_size18);
39
+ /* css:theme-validation:ignore */
39
40
  text-align: center;
40
41
  padding: var(--zd_size4) 0 ;
41
42
  border-radius: 50%;
@@ -71,7 +72,7 @@
71
72
 
72
73
  .thMonYear {
73
74
  font-size: var(--zd_font_size13) ;
74
- line-height: 1.8462;
75
+ line-height: var(--zd_size24);
75
76
  color: var(--zdt_datetime_datestr_text);
76
77
  composes: semibold;
77
78
  display: initial
@@ -9,7 +9,7 @@
9
9
  .month {
10
10
  width: 30.333%;
11
11
  font-size: var(--zd_font_size12) ;
12
- line-height: 2.1667;
12
+ line-height: var(--zd_size26);
13
13
  height: var(--zd_size26) ;
14
14
  color: var(--zdt_yearview_month_text);
15
15
  text-align: center;
@@ -418,7 +418,12 @@ function getSelectedDate(values, props) {
418
418
  selectedValue = '';
419
419
 
420
420
  if (isDateTime) {
421
- selectedInMillis = _datetimejs["default"].tz.tzToUtc(Date.UTC(year, month, date, hour, mins), timeZone);
421
+ if (timeZone) {
422
+ selectedInMillis = _datetimejs["default"].tz.tzToUtc(Date.UTC(year, month, date, hour, mins), timeZone);
423
+ } else {
424
+ selectedInMillis = Date.UTC(year, month, date, hour, mins);
425
+ }
426
+
422
427
  selectedValue = _datetimejs["default"].ISO(selectedInMillis);
423
428
  } else {
424
429
  selectedInMillis = Date.UTC(year, month, date);
@@ -18,6 +18,11 @@
18
18
  box-shadow: var(--dropbox_box_shadow);
19
19
  }
20
20
 
21
+ .defaultPalette,
22
+ .darkPalette {
23
+ /* css:theme-validation:ignore */
24
+ }
25
+
21
26
  .defaultPalette, .darkPalette {
22
27
  background-color: var(--dropbox_bg_color);
23
28
  }
@@ -196,10 +201,7 @@
196
201
  position: absolute;
197
202
  height: var(--zd_size34) ;
198
203
  width: var(--zd_size34) ;
199
- clip: rect(var(--zd_size3),
200
- undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined var(--zd_size29),
201
- undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined var(--zd_size17),
202
- undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined var(--zd_size8)) ;
204
+ clip: rect(var(--zd_size3), var(--zd_size29), var(--zd_size17), var(--zd_size8)) ;
203
205
  padding: var(--zd_size4) ;
204
206
  display: flex;
205
207
  align-items: center;
@@ -210,6 +212,7 @@
210
212
  height: var(--zd_size10) ;
211
213
  width: var(--zd_size10) ;
212
214
  box-shadow: 1px -1px 2px 0 var(--dropbox_arrow_box_shadow_color);
215
+ /* css:theme-validation:ignore */
213
216
  background-color: var(--dropbox_bg_color);
214
217
  -webkit-transform: rotateZ(-45deg);
215
218
  transform: rotateZ(-45deg);
@@ -419,6 +422,7 @@
419
422
  .closeBar {
420
423
  /* Variable:Ignore */
421
424
  height: 6px;
425
+ /* css:theme-validation:ignore */
422
426
  width: 20% ;
423
427
  border-radius: 5px;
424
428
  background-color: var(--dropbox_mob_close_bg_color);
@@ -49,6 +49,7 @@
49
49
 
50
50
  .freeze {
51
51
  composes: varClass;
52
+ /* css:theme-validation:ignore */
52
53
  background: var(--dropbox_mob_bg_color);
53
54
  }
54
55
 
@@ -18,7 +18,9 @@
18
18
  font-size: var(--zd_font_size11) ;
19
19
  letter-spacing: 0.6px;
20
20
  text-transform: var(--dropdownheading_text_transform);
21
+ /* css:theme-validation:ignore */
21
22
  color: var(--dropdownheading_text_color);
23
+ /* css:theme-validation:ignore */
22
24
  padding: var(--dropdownheading_padding);
23
25
  background-color: var(--dropdownheading_bg_color);
24
26
  }
@@ -33,6 +35,10 @@
33
35
  .light {
34
36
  composes: default;
35
37
  }
38
+ .light::after,
39
+ .dark::after {
40
+ /* css:theme-validation:ignore */
41
+ }
36
42
  .light::after, .dark::after {
37
43
  background-color: var(--dropdownheading_underline_bg_color);
38
44
  }
@@ -20,6 +20,8 @@
20
20
  position: relative;
21
21
  color: var(--zdt_dropdown_default_text);
22
22
  font-size: var(--zd_font_size13) ;
23
+ /* css:theme-validation:ignore */
24
+ /* css:theme-validation:ignore */
23
25
  padding: var(--dropdownitem-padding);
24
26
  border-style: solid;
25
27
  border-color: var(--dropdownitem-border-color);
@@ -74,6 +76,7 @@
74
76
  opacity: 0;
75
77
  visibility: hidden;
76
78
  width: var(--dropdownitem-user-width);
79
+ /* css:theme-validation:ignore */
77
80
  border-width: var(--dropdownitem-user-border-width);
78
81
  border-style: var(--dropdownitem-user-border-style);
79
82
  border-color: var(--dropdownitem-user-border-color);
@@ -4,13 +4,14 @@
4
4
  --label_text_color: var(--zdt_label_default_text);
5
5
  --label_font_family: var(--zd_regular);
6
6
  --label_cursor: default;
7
- --label_line_height: 1.2857142857142858;
7
+ --label_line_height: 18px;
8
8
  }
9
9
  .label {
10
10
  composes: varClass;
11
11
  vertical-align: middle;
12
12
  line-height: var(--label_line_height);
13
13
  font-size: var(--label_font_size);
14
+ /* css:theme-validation:ignore */
14
15
  color: var(--label_text_color);
15
16
  font-family: var(--label_font_family);
16
17
  cursor: var(--label_cursor);
@@ -105,7 +105,7 @@ var ListContainer = function ListContainer(props) {
105
105
  eleRef: eleRef,
106
106
  tagName: isLink ? 'a' : 'li',
107
107
  "data-title": isDisabled ? disableTitle : title
108
- }, options, customProps), children);
108
+ }, options, customProps, a11y), children);
109
109
  };
110
110
 
111
111
  ListContainer.defaultProps = _defaultProps.ListContainerDefaultProps;
@@ -15,8 +15,7 @@
15
15
  /* listitem tick icon default variables */
16
16
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
17
17
  }[dir=ltr] .varClass {
18
- --listitem_avatar_margin: 0 var(--zd_size15) 0 0
19
- ;
18
+ --listitem_avatar_margin: 0 var(--zd_size15) 0 0;
20
19
  }[dir=rtl] .varClass {
21
20
  --listitem_avatar_margin: 0 0 0 var(--zd_size15);
22
21
  }
@@ -24,8 +23,10 @@
24
23
  composes: varClass;
25
24
  position: relative;
26
25
  list-style: none;
26
+ /* css:theme-validation:ignore */
27
27
  color: var(--listitem_text_color);
28
28
  font-size: var(--zd_font_size13) ;
29
+ /* css:theme-validation:ignore */
29
30
  height: var(--listitem_height);
30
31
  min-height: var(--listitem_min_height);
31
32
  text-decoration: none;
@@ -35,6 +36,11 @@
35
36
  border-color: var(--listitem_border_color);
36
37
  cursor: pointer;
37
38
  }
39
+ .list,
40
+ .default,
41
+ .secondary {
42
+ /* css:theme-validation:ignore */
43
+ }
38
44
  .list, .default, .secondary {
39
45
  background-color: var(--listitem_bg_color);
40
46
  }
@@ -48,9 +54,7 @@
48
54
  --listitem_border_color: var(--zdt_listitem_active_border);
49
55
  }
50
56
  [dir=ltr] .small {
51
- --listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7
52
- ) var(--zd_size5
53
- ) ;
57
+ --listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
54
58
  }
55
59
  [dir=rtl] .small {
56
60
  --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
@@ -63,9 +67,7 @@
63
67
  --listitem_height: var(--zd_size48);
64
68
  }
65
69
  [dir=ltr] .large {
66
- --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10
67
- ) var(--zd_size25
68
- ) ;
70
+ --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
69
71
  }
70
72
  [dir=rtl] .large {
71
73
  --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
@@ -75,7 +77,7 @@
75
77
  composes: dotted from '../common/common.module.css';
76
78
  }
77
79
  .value, .multiLineValue {
78
- line-height: 1.5385;
80
+ line-height: var(--zd_size20);
79
81
  }
80
82
  .multiLineValue{
81
83
  word-break: break-word;
@@ -99,6 +101,13 @@
99
101
  margin: var(--listitem_avatar_margin);
100
102
  }
101
103
 
104
+ .defaultHover,
105
+ .primaryHover,
106
+ .secondaryHover,
107
+ .darkHover {
108
+ /* css:theme-validation:ignore */
109
+ }
110
+
102
111
  .defaultHover, .primaryHover, .secondaryHover, .darkHover {
103
112
  background-color: var(--listitem_highlight_bg_color);
104
113
  }
@@ -140,6 +149,12 @@
140
149
  --listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
141
150
  --listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
142
151
  }
152
+ .activedefault,
153
+ .activeprimary,
154
+ .activesecondary,
155
+ .activedark {
156
+ /* css:theme-validation:ignore */
157
+ }
143
158
  .activedefault, .activeprimary, .activesecondary, .activedark {
144
159
  background-color: var(--listitem_active_bg_color);
145
160
  }
@@ -165,6 +180,7 @@
165
180
  .defaultTick,
166
181
  .darkTick {
167
182
  position: absolute;
183
+ /* css:theme-validation:ignore */
168
184
  color: var(--listitem_tickicon_color);
169
185
  }
170
186
 
@@ -185,25 +201,19 @@
185
201
  display: block;
186
202
  }
187
203
  [dir=ltr] .smallwithTick {
188
- --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7
189
- ) var(--zd_size5
190
- ) ;
204
+ --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
191
205
  }
192
206
  [dir=rtl] .smallwithTick {
193
207
  --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size39);
194
208
  }
195
209
  [dir=ltr] .mediumwithTick {
196
- --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7
197
- ) var(--zd_size20
198
- ) ;
210
+ --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
199
211
  }
200
212
  [dir=rtl] .mediumwithTick {
201
213
  --listitem_padding: var(--zd_size7) var(--zd_size20) var(--zd_size7) var(--zd_size39);
202
214
  }
203
215
  [dir=ltr] .largewithTick {
204
- --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10
205
- ) var(--zd_size25
206
- ) ;
216
+ --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
207
217
  }
208
218
  [dir=rtl] .largewithTick {
209
219
  --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
@@ -110,7 +110,8 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
110
110
  var isHighlight = hoverOption === index || id === hoverId ? true : false;
111
111
  var list_a11y = Object.assign({}, a11y, {
112
112
  ariaSelected: isActive,
113
- ariaLabel: value
113
+ ariaLabel: value,
114
+ 'data-a11y-list-active': isHighlight
114
115
  });
115
116
 
116
117
  var commonProps = _objectSpread({
@@ -1,5 +1,6 @@
1
1
  .popup {
2
2
  position: relative;
3
+ /* css:theme-validation:ignore */
3
4
  background-color: var(--dot_white);
4
5
  }
5
6
  .target {
@@ -25,6 +25,7 @@
25
25
  composes: offSelection from '../common/common.module.css';
26
26
  width: var(--radio_width);
27
27
  height: var(--radio_height);
28
+ /* css:theme-validation:ignore */
28
29
  stroke: var(--radio_stroke_color);
29
30
  background: var(--radio_bg_color);
30
31
  border-radius: 50%;
@@ -8,7 +8,7 @@
8
8
  --ribbon_box_shadow: none;
9
9
  --ribbon_border_width: 0;
10
10
  --ribbon_border_color: var(--zdt_ribbon_default_border);
11
- --ribbon_line_height: 1.2;
11
+ --ribbon_line_height: normal;
12
12
 
13
13
  /* flag ribbon default variable */
14
14
 
@@ -35,9 +35,12 @@
35
35
  .basic {
36
36
  composes: varClass;
37
37
  position: relative;
38
+ /* css:theme-validation:ignore */
38
39
  color: var(--ribbon_text_color);
39
40
  text-transform: var(--ribbon_text_transform);
40
41
  font-size: var(--ribbon_font_size);
42
+ /* css:theme-validation:ignore */
43
+ /* css:theme-validation:ignore */
41
44
  line-height: var(--ribbon_line_height);
42
45
  padding: var(--ribbon_padding);
43
46
  background-color: var(--ribbon_bg_color);
@@ -212,13 +215,12 @@
212
215
  composes: dotted from '../common/common.module.css';
213
216
  display: block;
214
217
  --ribbon_text_color: var(--zdt_ribbon_white_text);
215
- --ribbon_line_height: 1.53846154;
218
+ --ribbon_line_height: 20px;
216
219
  --ribbon_text_transform: uppercase;
217
220
  }
218
221
 
219
222
  [dir=ltr] .flag {
220
- --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6
221
- ) ;
223
+ --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
222
224
  }
223
225
 
224
226
  [dir=rtl] .flag {
@@ -260,7 +262,7 @@
260
262
  --ribbon_text_color: var(--zdt_ribbon_white_text);
261
263
  --ribbon_text_transform: uppercase;
262
264
  --ribbon_padding: var(--zd_size6) var(--zd_size10);
263
- --ribbon_line_height: 1.53846154;
265
+ --ribbon_line_height: 20px;
264
266
  text-align: center;
265
267
  }
266
268
 
@@ -335,6 +337,7 @@
335
337
  position: absolute;
336
338
  content: '';
337
339
  top: var(--ribbon_tag_before_top);
340
+ /* css:theme-validation:ignore */
338
341
  width: var(--ribbon_tag_before_width);
339
342
  height: var(--ribbon_tag_before_height);
340
343
  background-color: inherit;
@@ -370,7 +373,7 @@
370
373
  .sticker {
371
374
  display: block;
372
375
  height: var(--zd_size18) ;
373
- line-height: 0.8462;
376
+ line-height: var(--zd_size11);
374
377
  --ribbon_text_color: var(--zdt_ribbon_white_text);
375
378
  --ribbon_text_transform: uppercase;
376
379
  text-align: center;
@@ -345,7 +345,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
345
345
  isPopupOpen = _this$props4.isPopupOpen,
346
346
  onKeyDown = _this$props4.onKeyDown,
347
347
  isPopupOpenOnEnter = _this$props4.isPopupOpenOnEnter,
348
- needCloseOnSelect = _this$props4.needCloseOnSelect;
348
+ needCloseOnSelect = _this$props4.needCloseOnSelect,
349
+ isPopupReady = _this$props4.isPopupReady;
349
350
  var _this$state2 = this.state,
350
351
  hoverIndex = _this$state2.hoverIndex,
351
352
  optionsNormalize = _this$state2.optionsNormalize;
@@ -392,7 +393,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
392
393
  var _ref2 = option || {},
393
394
  id = _ref2.id;
394
395
 
395
- if (isPopupOpen && !(0, _Common.getIsEmptyValue)(id) && onChange) {
396
+ if (isPopupReady && !(0, _Common.getIsEmptyValue)(id) && onChange) {
396
397
  onChange(id, optionsNormalize[id]);
397
398
  needCloseOnSelect && this.handlePopupClose(e);
398
399
  }
@@ -108,7 +108,6 @@ var Switch = /*#__PURE__*/function (_React$Component) {
108
108
  "data-title": disabled ? disableTitle : title,
109
109
  "aria-checked": checked,
110
110
  role: "switch",
111
- tabIndex: isReadOnly || disabled ? '-1' : '0',
112
111
  dataSelectorId: dataSelectorId
113
112
  }, SwitchProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
114
113
  className: "".concat(_SwitchModule["default"][size], " ").concat(customSwitchSize)
@@ -126,7 +125,8 @@ var Switch = /*#__PURE__*/function (_React$Component) {
126
125
  htmlFor: id,
127
126
  "data-id": dataId,
128
127
  "data-test-id": dataId,
129
- className: "".concat(_SwitchModule["default"].label, " ").concat(_SwitchModule["default"]["".concat(size, "Label")], " ").concat(customSwitch)
128
+ className: "".concat(_SwitchModule["default"].label, " ").concat(_SwitchModule["default"]["".concat(size, "Label")], " ").concat(customSwitch),
129
+ tabIndex: isReadOnly || disabled ? '-1' : '0'
130
130
  })), text && /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
131
131
  text: text,
132
132
  palette: labelPalette,
@@ -26,6 +26,7 @@
26
26
  display: inline-block;
27
27
  position: relative;
28
28
  transition: box-shadow var(--zd_transition3) ease-in-out;
29
+ /* css:theme-validation:ignore */
29
30
  background-color: var(--switch_off_bg_color);
30
31
  border-radius: 20px;
31
32
  cursor: pointer;
@@ -44,6 +45,7 @@
44
45
  right: 50% ;
45
46
  transition: all var(--zd_transition2);
46
47
  box-shadow: var(--switch_cricle_box_shadow);
48
+ /* css:theme-validation:ignore */
47
49
  background-color: var(--switch_circle_bg_color);
48
50
  border-radius: var(--switch_circle_border_radius);
49
51
  }