@zohodesk/components 1.0.0-alpha-272 → 1.0.0-alpha-274

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 (168) hide show
  1. package/README.md +9 -0
  2. package/es/Accordion/Accordion.js +1 -0
  3. package/es/Accordion/AccordionItem.js +1 -0
  4. package/es/AppContainer/AppContainer.js +15 -6
  5. package/es/AppContainer/AppContainer.module.css +2 -2
  6. package/es/AppContainer/props/defaultProps.js +2 -1
  7. package/es/AppContainer/props/propTypes.js +1 -0
  8. package/es/Avatar/Avatar.js +3 -0
  9. package/es/Avatar/Avatar.module.css +18 -18
  10. package/es/AvatarTeam/AvatarTeam.js +1 -0
  11. package/es/AvatarTeam/AvatarTeam.module.css +35 -35
  12. package/es/Button/Button.js +1 -0
  13. package/es/Button/css/Button.module.css +70 -70
  14. package/es/Buttongroup/Buttongroup.js +1 -0
  15. package/es/Buttongroup/Buttongroup.module.css +14 -15
  16. package/es/CheckBox/CheckBox.module.css +15 -15
  17. package/es/DateTime/CalendarView.js +1 -0
  18. package/es/DateTime/DateTime.js +3 -1
  19. package/es/DateTime/DateTime.module.css +39 -39
  20. package/es/DateTime/DateWidget.js +2 -0
  21. package/es/DateTime/DateWidget.module.css +5 -5
  22. package/es/DateTime/YearView.module.css +15 -15
  23. package/es/DropBox/DropBoxElement/DropBoxElement.js +3 -0
  24. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -76
  25. package/es/DropBox/css/DropBox.module.css +6 -6
  26. package/es/DropDown/DropDown.js +2 -1
  27. package/es/DropDown/DropDown.module.css +2 -2
  28. package/es/DropDown/DropDownHeading.js +1 -0
  29. package/es/DropDown/DropDownHeading.module.css +6 -6
  30. package/es/DropDown/DropDownItem.js +2 -1
  31. package/es/DropDown/DropDownItem.module.css +12 -12
  32. package/es/DropDown/DropDownSearch.module.css +3 -3
  33. package/es/DropDown/DropDownSeparator.module.css +2 -2
  34. package/es/Heading/Heading.js +1 -0
  35. package/es/Heading/Heading.module.css +2 -2
  36. package/es/Label/Label.js +1 -0
  37. package/es/Label/Label.module.css +5 -5
  38. package/es/Layout/Box.js +4 -3
  39. package/es/Layout/Container.js +4 -3
  40. package/es/Layout/Layout.module.css +15 -15
  41. package/es/Layout/props/defaultProps.js +2 -0
  42. package/es/Layout/props/propTypes.js +2 -0
  43. package/es/Layout/utils.js +5 -1
  44. package/es/ListItem/ListItem.module.css +38 -38
  45. package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -0
  46. package/es/MultiSelect/AdvancedMultiSelect.js +1 -0
  47. package/es/MultiSelect/EmptyState.js +4 -0
  48. package/es/MultiSelect/MultiSelect.js +1 -0
  49. package/es/MultiSelect/MultiSelect.module.css +31 -31
  50. package/es/MultiSelect/MultiSelectWithAvatar.js +1 -0
  51. package/es/MultiSelect/SelectedOptions.module.css +5 -5
  52. package/es/Popup/Popup.js +1 -4
  53. package/es/Radio/Radio.module.css +9 -9
  54. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  55. package/es/Ribbon/Ribbon.js +1 -0
  56. package/es/Ribbon/Ribbon.module.css +46 -48
  57. package/es/Select/GroupSelect.js +1 -0
  58. package/es/Select/Select.js +2 -1
  59. package/es/Select/Select.module.css +23 -23
  60. package/es/Select/SelectWithAvatar.js +2 -0
  61. package/es/Select/SelectWithIcon.js +2 -1
  62. package/es/Stencils/Stencils.module.css +11 -11
  63. package/es/Switch/Switch.js +1 -0
  64. package/es/Switch/Switch.module.css +23 -23
  65. package/es/Tab/Tab.module.css +14 -14
  66. package/es/Tab/Tabs.js +2 -1
  67. package/es/Tab/Tabs.module.css +22 -22
  68. package/es/Tag/Tag.js +1 -0
  69. package/es/Tag/Tag.module.css +25 -25
  70. package/es/TextBox/TextBox.js +1 -0
  71. package/es/TextBox/TextBox.module.css +9 -9
  72. package/es/TextBoxIcon/TextBoxIcon.module.css +7 -7
  73. package/es/Textarea/Textarea.js +1 -0
  74. package/es/Textarea/Textarea.module.css +21 -21
  75. package/es/Tooltip/Tooltip.js +2 -1
  76. package/es/Tooltip/Tooltip.module.css +5 -5
  77. package/es/common/animation.module.css +8 -8
  78. package/es/common/avatarsizes.module.css +16 -16
  79. package/es/common/basicReset.module.css +3 -3
  80. package/es/common/common.module.css +24 -24
  81. package/es/common/customscroll.module.css +2 -2
  82. package/es/deprecated/AdvancedMultiSelect.module.css +18 -18
  83. package/es/semantic/Button/Button.js +1 -0
  84. package/es/semantic/Button/semanticButton.module.css +1 -1
  85. package/lib/Accordion/Accordion.js +1 -0
  86. package/lib/Accordion/AccordionItem.js +1 -0
  87. package/lib/AppContainer/AppContainer.js +11 -6
  88. package/lib/AppContainer/AppContainer.module.css +2 -2
  89. package/lib/AppContainer/props/defaultProps.js +2 -1
  90. package/lib/AppContainer/props/propTypes.js +1 -0
  91. package/lib/Avatar/Avatar.js +3 -0
  92. package/lib/Avatar/Avatar.module.css +18 -18
  93. package/lib/AvatarTeam/AvatarTeam.js +1 -0
  94. package/lib/AvatarTeam/AvatarTeam.module.css +35 -35
  95. package/lib/Button/Button.js +1 -0
  96. package/lib/Button/css/Button.module.css +70 -70
  97. package/lib/Buttongroup/Buttongroup.js +1 -0
  98. package/lib/Buttongroup/Buttongroup.module.css +14 -15
  99. package/lib/CheckBox/CheckBox.module.css +15 -15
  100. package/lib/DateTime/CalendarView.js +1 -0
  101. package/lib/DateTime/DateTime.js +3 -1
  102. package/lib/DateTime/DateTime.module.css +39 -39
  103. package/lib/DateTime/DateWidget.js +2 -0
  104. package/lib/DateTime/DateWidget.module.css +5 -5
  105. package/lib/DateTime/YearView.module.css +15 -15
  106. package/lib/DropBox/DropBoxElement/DropBoxElement.js +3 -0
  107. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -76
  108. package/lib/DropBox/css/DropBox.module.css +6 -6
  109. package/lib/DropDown/DropDown.js +2 -1
  110. package/lib/DropDown/DropDown.module.css +2 -2
  111. package/lib/DropDown/DropDownHeading.js +1 -0
  112. package/lib/DropDown/DropDownHeading.module.css +6 -6
  113. package/lib/DropDown/DropDownItem.js +2 -1
  114. package/lib/DropDown/DropDownItem.module.css +12 -12
  115. package/lib/DropDown/DropDownSearch.module.css +3 -3
  116. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  117. package/lib/Heading/Heading.js +2 -1
  118. package/lib/Heading/Heading.module.css +2 -2
  119. package/lib/Label/Label.js +1 -0
  120. package/lib/Label/Label.module.css +5 -5
  121. package/lib/Layout/Box.js +8 -4
  122. package/lib/Layout/Container.js +8 -4
  123. package/lib/Layout/Layout.module.css +15 -15
  124. package/lib/Layout/props/defaultProps.js +2 -0
  125. package/lib/Layout/props/propTypes.js +2 -0
  126. package/lib/Layout/utils.js +5 -1
  127. package/lib/ListItem/ListItem.module.css +38 -38
  128. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -0
  129. package/lib/MultiSelect/AdvancedMultiSelect.js +1 -0
  130. package/lib/MultiSelect/EmptyState.js +4 -0
  131. package/lib/MultiSelect/MultiSelect.js +1 -0
  132. package/lib/MultiSelect/MultiSelect.module.css +31 -31
  133. package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -0
  134. package/lib/MultiSelect/SelectedOptions.module.css +5 -5
  135. package/lib/Popup/Popup.js +1 -4
  136. package/lib/Radio/Radio.module.css +9 -9
  137. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  138. package/lib/Ribbon/Ribbon.js +1 -0
  139. package/lib/Ribbon/Ribbon.module.css +46 -48
  140. package/lib/Select/GroupSelect.js +1 -0
  141. package/lib/Select/Select.js +2 -1
  142. package/lib/Select/Select.module.css +23 -23
  143. package/lib/Select/SelectWithAvatar.js +2 -0
  144. package/lib/Select/SelectWithIcon.js +2 -1
  145. package/lib/Stencils/Stencils.module.css +11 -11
  146. package/lib/Switch/Switch.js +1 -0
  147. package/lib/Switch/Switch.module.css +23 -23
  148. package/lib/Tab/Tab.module.css +14 -14
  149. package/lib/Tab/Tabs.js +2 -1
  150. package/lib/Tab/Tabs.module.css +22 -22
  151. package/lib/Tag/Tag.js +1 -0
  152. package/lib/Tag/Tag.module.css +25 -25
  153. package/lib/TextBox/TextBox.js +1 -0
  154. package/lib/TextBox/TextBox.module.css +9 -9
  155. package/lib/TextBoxIcon/TextBoxIcon.module.css +7 -7
  156. package/lib/Textarea/Textarea.js +1 -0
  157. package/lib/Textarea/Textarea.module.css +21 -21
  158. package/lib/Tooltip/Tooltip.js +2 -1
  159. package/lib/Tooltip/Tooltip.module.css +5 -5
  160. package/lib/common/animation.module.css +8 -8
  161. package/lib/common/avatarsizes.module.css +16 -16
  162. package/lib/common/basicReset.module.css +3 -3
  163. package/lib/common/common.module.css +24 -24
  164. package/lib/common/customscroll.module.css +2 -2
  165. package/lib/deprecated/AdvancedMultiSelect.module.css +18 -18
  166. package/lib/semantic/Button/Button.js +1 -0
  167. package/lib/semantic/Button/semanticButton.module.css +1 -1
  168. package/package.json +10 -19
@@ -18,7 +18,11 @@ var _LayoutModule = _interopRequireDefault(require("./Layout.module.css"));
18
18
 
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
20
 
21
- /* eslint css-modules/no-unused-class: 0 */
21
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
+
23
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24
+
25
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
26
 
23
27
  /* eslint-disable react/no-unused-prop-types*/
24
28
  function getContainerClassNames(props) {
@@ -126,16 +130,16 @@ function getContainerProps(props) {
126
130
  }
127
131
 
128
132
  function Container(props) {
129
- var childProps = getContainerProps(props);
130
133
  var tagName = props.tagName;
131
- (0, _utils.setProps)(childProps, props, {
134
+ var componentProps = (0, _utils.setProps)(_objectSpread({}, getContainerProps(props)), props, {
132
135
  isScrollAttribute: 'data-scroll',
133
136
  eleRef: 'ref',
134
137
  dataId: 'data-id',
138
+ testId: 'data-test-id',
135
139
  tourId: 'data-tour',
136
140
  dataSelectorId: 'data-selector-id'
137
141
  });
138
- return /*#__PURE__*/_react["default"].createElement(tagName, childProps);
142
+ return /*#__PURE__*/_react["default"].createElement(tagName, componentProps);
139
143
  }
140
144
 
141
145
  Container.propTypes = _propTypes.ContainerProps;
@@ -11,8 +11,8 @@
11
11
  }
12
12
 
13
13
  .cover {
14
- width: 100%;
15
- height: 100%;
14
+ width: 100% ;
15
+ height: 100% ;
16
16
  }
17
17
 
18
18
  /* .flex {
@@ -67,8 +67,8 @@
67
67
  -webkit-box-flex: 1;
68
68
  -ms-flex-positive: 1;
69
69
  flex-grow: 1;
70
- min-height: 0;
71
- min-width: 0;
70
+ min-height: 0 ;
71
+ min-width: 0 ;
72
72
  }
73
73
 
74
74
  .shrinkOff {
@@ -83,18 +83,18 @@
83
83
  -moz-flex-shrink: 1;
84
84
  -webkit-flex-shrink: 1;
85
85
  -ms-flex-shrink: 1;
86
- min-width: 0;
86
+ min-width: 0 ;
87
87
  }
88
88
 
89
89
  .basis {
90
- flex-basis: 0%;
90
+ flex-basis: 0% ;
91
91
  -webkit-flex-basis: 0%;
92
92
  -moz-flex-basis: 0%;
93
93
  -ms-flex-basis: 0%;
94
94
  }
95
95
 
96
96
  .basisAuto {
97
- flex-basis: auto;
97
+ flex-basis: auto ;
98
98
  -webkit-flex-basis: auto;
99
99
  -moz-flex-basis: auto;
100
100
  -ms-flex-basis: auto;
@@ -146,8 +146,8 @@
146
146
 
147
147
  .col-3 {
148
148
  -ms-flex-preferred-size: 25%;
149
- flex-basis: 25%;
150
- max-width: 25%;
149
+ flex-basis: 25% ;
150
+ max-width: 25% ;
151
151
  }
152
152
 
153
153
  .col-4 {
@@ -164,8 +164,8 @@
164
164
 
165
165
  .col-6 {
166
166
  -ms-flex-preferred-size: 50%;
167
- flex-basis: 50%;
168
- max-width: 50%;
167
+ flex-basis: 50% ;
168
+ max-width: 50% ;
169
169
  }
170
170
 
171
171
  .col-7 {
@@ -182,8 +182,8 @@
182
182
 
183
183
  .col-9 {
184
184
  -ms-flex-preferred-size: 75%;
185
- flex-basis: 75%;
186
- max-width: 75%;
185
+ flex-basis: 75% ;
186
+ max-width: 75% ;
187
187
  }
188
188
 
189
189
  .col-10 {
@@ -200,8 +200,8 @@
200
200
 
201
201
  .col-12 {
202
202
  -ms-flex-preferred-size: 100%;
203
- flex-basis: 100%;
204
- max-width: 100%;
203
+ flex-basis: 100% ;
204
+ max-width: 100% ;
205
205
  }
206
206
 
207
207
  .hCenter {
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ContainerDefaultProps = exports.BoxDefaultProps = void 0;
7
7
  var BoxDefaultProps = {
8
8
  dataId: 'boxComponent',
9
+ testId: '',
9
10
  isScrollAttribute: false,
10
11
  tagName: 'div',
11
12
  dataSelectorId: 'box'
@@ -13,6 +14,7 @@ var BoxDefaultProps = {
13
14
  exports.BoxDefaultProps = BoxDefaultProps;
14
15
  var ContainerDefaultProps = {
15
16
  dataId: 'containerComponent',
17
+ testId: '',
16
18
  isScrollAttribute: false,
17
19
  isCover: true,
18
20
  alignBox: 'column',
@@ -16,6 +16,7 @@ var BoxProps = {
16
16
  className: _propTypes["default"].string,
17
17
  column: _propTypes["default"].oneOf(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']),
18
18
  dataId: _propTypes["default"].string,
19
+ testId: _propTypes["default"].string,
19
20
  dataSelectorId: _propTypes["default"].string,
20
21
  eleRef: _propTypes["default"].func,
21
22
  flexible: _propTypes["default"].bool,
@@ -41,6 +42,7 @@ var ContainerProps = {
41
42
  children: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].string]),
42
43
  className: _propTypes["default"].string,
43
44
  dataId: _propTypes["default"].string,
45
+ testId: _propTypes["default"].string,
44
46
  dataSelectorId: _propTypes["default"].string,
45
47
  eleRef: _propTypes["default"].func,
46
48
  hidden: _propTypes["default"].array,
@@ -46,8 +46,12 @@ function isInteger(value) {
46
46
 
47
47
  function setProps(childProps, props) {
48
48
  var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
49
- Object.keys(values).map(function (value) {
49
+ Object.keys(values).forEach(function (value) {
50
50
  if (props[value]) {
51
+ if (value === 'dataId') {
52
+ childProps['data-test-id'] = props[value];
53
+ }
54
+
51
55
  childProps[values[value]] = props[value];
52
56
  }
53
57
  });
@@ -1,7 +1,7 @@
1
1
  .varClass {
2
2
  /* listitem default variables */
3
3
  --listitem_text_color: var(--zdt_listitem_default_text);
4
- --listitem_padding: 9px 20px;
4
+ --listitem_padding: var(--zd_size9) var(--zd_size20);
5
5
  --listitem_border_width: 0;
6
6
  --listitem_border_color: var(--zdt_listitem_default_border);
7
7
  --listitem_bg_color: var(--zdt_listitem_default_bg);
@@ -15,17 +15,17 @@
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 15px 0 0
19
- /*rtl: 0 0 0 15px*/;
18
+ --listitem_avatar_margin: 0 var(--zd_size15) 0 0
19
+ ;
20
20
  }[dir=rtl] .varClass {
21
- --listitem_avatar_margin: 0 0 0 15px;
21
+ --listitem_avatar_margin: 0 0 0 var(--zd_size15);
22
22
  }
23
23
  .list {
24
24
  composes: varClass;
25
25
  position: relative;
26
26
  list-style: none;
27
27
  color: var(--listitem_text_color);
28
- font-size: 13px;
28
+ font-size: var(--zd_font_size13) ;
29
29
  height: var(--listitem_height);
30
30
  min-height: var(--listitem_min_height);
31
31
  text-decoration: none;
@@ -48,27 +48,27 @@
48
48
  --listitem_border_color: var(--zdt_listitem_active_border);
49
49
  }
50
50
  [dir=ltr] .small {
51
- --listitem_padding: 7px 3px 7px
52
- 5px
53
- /*rtl: 7px 5px 7px 3px*/;
51
+ --listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7
52
+ ) var(--zd_size5
53
+ ) ;
54
54
  }
55
55
  [dir=rtl] .small {
56
- --listitem_padding: 7px 5px 7px 3px;
56
+ --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
57
57
  }
58
58
  .medium {
59
- --listitem_padding: 7px 20px;
60
- --listitem_min_height: 35px;
59
+ --listitem_padding: var(--zd_size7) var(--zd_size20);
60
+ --listitem_min_height: var(--zd_size35);
61
61
  }
62
62
  .large {
63
- --listitem_height: 48px;
63
+ --listitem_height: var(--zd_size48);
64
64
  }
65
65
  [dir=ltr] .large {
66
- --listitem_padding: 10px 3px 10px
67
- 25px
68
- /*rtl: 10px 25px 10px 3px*/;
66
+ --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10
67
+ ) var(--zd_size25
68
+ ) ;
69
69
  }
70
70
  [dir=rtl] .large {
71
- --listitem_padding: 10px 25px 10px 3px;
71
+ --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
72
72
  }
73
73
  .value,
74
74
  .children {
@@ -82,18 +82,18 @@
82
82
  composes: clamp from '../common/common.module.css'
83
83
  }
84
84
  .iconBox {
85
- width: 20px;
85
+ width: var(--zd_size20) ;
86
86
  text-align: center;
87
87
  }
88
88
  [dir=ltr] .iconBox {
89
- margin-right: 10px;
89
+ margin-right: var(--zd_size10) ;
90
90
  }
91
91
  [dir=rtl] .iconBox {
92
- margin-left: 10px;
92
+ margin-left: var(--zd_size10) ;
93
93
  }
94
94
  .iconBox,
95
95
  .leftAvatar {
96
- font-size: 0;
96
+ font-size: 0 ;
97
97
  }
98
98
  .leftAvatar {
99
99
  margin: var(--listitem_avatar_margin);
@@ -169,11 +169,11 @@
169
169
  }
170
170
 
171
171
  [dir=ltr] .tickIcon, [dir=ltr] .defaultTick, [dir=ltr] .darkTick {
172
- right: 20px;
172
+ right: var(--zd_size20) ;
173
173
  }
174
174
 
175
175
  [dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
176
- left: 20px;
176
+ left: var(--zd_size20) ;
177
177
  }
178
178
  .defaultTick {
179
179
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
@@ -185,32 +185,32 @@
185
185
  display: block;
186
186
  }
187
187
  [dir=ltr] .smallwithTick {
188
- --listitem_padding: 7px 39px 7px
189
- 5px
190
- /*rtl: 7px 5px 7px 39px*/;
188
+ --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7
189
+ ) var(--zd_size5
190
+ ) ;
191
191
  }
192
192
  [dir=rtl] .smallwithTick {
193
- --listitem_padding: 7px 5px 7px 39px;
193
+ --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size39);
194
194
  }
195
195
  [dir=ltr] .mediumwithTick {
196
- --listitem_padding: 7px 39px 7px
197
- 20px
198
- /*rtl: 7px 20px 7px 39px*/;
196
+ --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7
197
+ ) var(--zd_size20
198
+ ) ;
199
199
  }
200
200
  [dir=rtl] .mediumwithTick {
201
- --listitem_padding: 7px 20px 7px 39px;
201
+ --listitem_padding: var(--zd_size7) var(--zd_size20) var(--zd_size7) var(--zd_size39);
202
202
  }
203
203
  [dir=ltr] .largewithTick {
204
- --listitem_padding: 10px 39px 10px
205
- 25px
206
- /*rtl: 10px 25px 10px 39px*/;
204
+ --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10
205
+ ) var(--zd_size25
206
+ ) ;
207
207
  }
208
208
  [dir=rtl] .largewithTick {
209
- --listitem_padding: 10px 25px 10px 39px;
209
+ --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
210
210
  }
211
211
  .responsiveHeight {
212
- --listitem_min_height: 45px;
213
- font-size: 15px;
214
- padding-top: 10px;
215
- padding-bottom: 10px;
212
+ --listitem_min_height: var(--zd_size45);
213
+ font-size: var(--zd_font_size15) ;
214
+ padding-top: var(--zd_size10) ;
215
+ padding-bottom: var(--zd_size10) ;
216
216
  }
@@ -991,6 +991,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
991
991
  return /*#__PURE__*/_react["default"].createElement("div", {
992
992
  className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
993
993
  "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
994
+ "data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
994
995
  "data-title": isDisabled ? title : null,
995
996
  onClick: this.handleInputFocus,
996
997
  "data-selector-id": dataSelectorId
@@ -475,6 +475,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
475
475
  return /*#__PURE__*/_react["default"].createElement("div", {
476
476
  className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
477
477
  "data-id": dataIdMultiSelectComp,
478
+ "data-test-id": dataIdMultiSelectComp,
478
479
  "data-title": isDisabled ? title : null,
479
480
  onClick: this.handleInputFocus,
480
481
  "data-selector-id": dataSelectorId
@@ -79,21 +79,25 @@ var EmptyState = /*#__PURE__*/function (_React$PureComponent) {
79
79
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLoading ? /*#__PURE__*/_react["default"].createElement("div", {
80
80
  className: className,
81
81
  "data-id": "".concat(dataId, "_Loading"),
82
+ "data-test-id": "".concat(dataId, "_Loading"),
82
83
  role: role,
83
84
  id: htmlId
84
85
  }, loadingText) : searchString.length && suggestions.length === 0 ? getCustomEmptyState ? getCustomEmptyState() : /*#__PURE__*/_react["default"].createElement("div", {
85
86
  className: className,
86
87
  "data-id": "".concat(dataId, "_srchEmptyMsg"),
88
+ "data-test-id": "".concat(dataId, "_srchEmptyMsg"),
87
89
  role: role,
88
90
  id: htmlId
89
91
  }, searchEmptyText || emptyText) : options.length === 0 ? /*#__PURE__*/_react["default"].createElement("div", {
90
92
  className: className,
91
93
  "data-id": "".concat(dataId, "_noOptnsMsg"),
94
+ "data-test-id": "".concat(dataId, "_noOptnsMsg"),
92
95
  role: role,
93
96
  id: htmlId
94
97
  }, emptyText) : /*#__PURE__*/_react["default"].createElement("div", {
95
98
  className: className,
96
99
  "data-id": "".concat(dataId, "_NoMoreOptionMsg"),
100
+ "data-test-id": "".concat(dataId, "_NoMoreOptionMsg"),
97
101
  role: role,
98
102
  id: htmlId
99
103
  }, noMoreText || emptyText));
@@ -1012,6 +1012,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1012
1012
  return /*#__PURE__*/_react["default"].createElement("div", {
1013
1013
  className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
1014
1014
  "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
1015
+ "data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
1015
1016
  "data-title": isDisabled ? title : null,
1016
1017
  onClick: this.handleInputFocus,
1017
1018
  "data-selector-id": dataSelectorId
@@ -5,7 +5,7 @@
5
5
  cursor: not-allowed;
6
6
  }
7
7
  .container {
8
- max-height: 120px;
8
+ max-height: var(--zd_size120) ;
9
9
  composes: oflowy from '../common/common.module.css';
10
10
  }
11
11
  .hasBorder {
@@ -42,17 +42,17 @@
42
42
  }
43
43
 
44
44
  .container.medium {
45
- padding-bottom: 8px;
45
+ padding-bottom: var(--zd_size8) ;
46
46
  }
47
47
 
48
48
  .container.xmedium {
49
- min-height: 30px;
50
- padding-bottom: 3px;
49
+ min-height: var(--zd_size30) ;
50
+ padding-bottom: var(--zd_size3) ;
51
51
  }
52
52
 
53
53
  .delete {
54
54
  font: inherit;
55
- padding: 2px 6px;
55
+ padding: var(--zd_size2) var(--zd_size6) ;
56
56
  cursor: pointer;
57
57
  border: 0;
58
58
  background-color: var(--zdt_multiselect_delete_bg);
@@ -82,26 +82,26 @@
82
82
  }
83
83
 
84
84
  .tag {
85
- max-width: 100%;
85
+ max-width: 100% ;
86
86
  }
87
87
 
88
88
  [dir=ltr] .container.xmedium .tag {
89
- margin: 2px 10px 0 0;
89
+ margin: var(--zd_size2) var(--zd_size10) 0 0 ;
90
90
  }
91
91
 
92
92
  [dir=rtl] .container.xmedium .tag {
93
- margin: 2px 0 0 10px;
93
+ margin: var(--zd_size2) 0 0 var(--zd_size10) ;
94
94
  }
95
95
 
96
96
  [dir=ltr] .container.medium .tag {
97
- margin: 5px 10px 0 0;
97
+ margin: var(--zd_size5) var(--zd_size10) 0 0 ;
98
98
  }
99
99
 
100
100
  [dir=rtl] .container.medium .tag {
101
- margin: 5px 0 0 10px;
101
+ margin: var(--zd_size5) 0 0 var(--zd_size10) ;
102
102
  }
103
103
  .responsiveParent{
104
- width: 100%;
104
+ width: 100% ;
105
105
  }
106
106
  .box {
107
107
  background: var(--zdt_multiselect_box_bg);
@@ -112,21 +112,21 @@
112
112
  }
113
113
 
114
114
  .small {
115
- max-height: 200px;
115
+ max-height: var(--zd_size200) ;
116
116
  }
117
117
 
118
118
  .medium {
119
- max-height: 350px;
119
+ max-height: var(--zd_size350) ;
120
120
  }
121
121
 
122
122
  .large {
123
- max-height: 400px;
123
+ max-height: var(--zd_size400) ;
124
124
  }
125
125
 
126
126
  .commonMessage {
127
- font-size: 14px;
127
+ font-size: var(--zd_font_size14) ;
128
128
  composes: semibold from '../common/common.module.css';
129
- padding: 12px 15px;
129
+ padding: var(--zd_size12) var(--zd_size15) ;
130
130
  }
131
131
  .default,
132
132
  .dark {
@@ -154,54 +154,54 @@
154
154
  overflow: hidden;
155
155
  text-overflow: ellipsis;
156
156
  white-space: nowrap;
157
- max-width: 100%;
157
+ max-width: 100% ;
158
158
  visibility: hidden;
159
159
  }
160
160
  .custmSpanMedium {
161
- height: 35px;
161
+ height: var(--zd_size35) ;
162
162
  }
163
163
  .custmSpanXmedium {
164
- height: 28px;
164
+ height: var(--zd_size28) ;
165
165
  }
166
166
  .custmInputWrapper {
167
167
  position: absolute;
168
- top: 0;
169
- width: 100%;
168
+ top: 0 ;
169
+ width: 100% ;
170
170
  }
171
171
  [dir=ltr] .custmInputWrapper {
172
- left: 0;
172
+ left: 0 ;
173
173
  }
174
174
  [dir=rtl] .custmInputWrapper {
175
- right: 0;
175
+ right: 0 ;
176
176
  }
177
177
  .title {
178
- margin-bottom: 6px;
178
+ margin-bottom: var(--zd_size6) ;
179
179
  }
180
180
  .groupTitle {
181
- margin: 6px 0;
181
+ margin: var(--zd_size6) 0 ;
182
182
  }
183
183
  .loader {
184
- padding: 10px;
184
+ padding: var(--zd_size10) ;
185
185
  }
186
186
  .iconContainer {
187
- padding-top: 3px
187
+ padding-top: var(--zd_size3)
188
188
  }
189
189
  [dir=ltr] .clearIconSpace {
190
- padding-right: 37px
190
+ padding-right: var(--zd_size37)
191
191
  }
192
192
  [dir=rtl] .clearIconSpace {
193
- padding-left: 37px
193
+ padding-left: var(--zd_size37)
194
194
  }
195
195
  .search{
196
196
  /* Variable:Ignore */
197
197
  padding: 0px 20px;
198
198
  }
199
199
  .more {
200
- font-size: 14px;
200
+ font-size: var(--zd_font_size14) ;
201
201
  color: var(--zdt_multiselect_more_text);
202
202
  font-family: inherit;
203
203
  cursor: pointer;
204
- margin-top: 5px;
204
+ margin-top: var(--zd_size5) ;
205
205
  background-color: var(--zdt_multiselect_delete_bg);
206
206
  border: 0;
207
207
  }
@@ -197,6 +197,7 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
197
197
  return /*#__PURE__*/_react["default"].createElement("div", {
198
198
  className: " ".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
199
199
  "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
200
+ "data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
200
201
  "data-title": isDisabled ? title : null,
201
202
  onClick: this.handleInputFocus,
202
203
  "data-selector-id": dataSelectorId
@@ -1,15 +1,15 @@
1
1
  .tag {
2
- max-width: 100%;
2
+ max-width: 100% ;
3
3
  }
4
4
  [dir=ltr] .xmedium {
5
- margin: 0 10px 2px 0;
5
+ margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
6
6
  }
7
7
  [dir=rtl] .xmedium {
8
- margin: 0 0 2px 10px;
8
+ margin: 0 0 var(--zd_size2) var(--zd_size10) ;
9
9
  }
10
10
  [dir=ltr] .medium {
11
- margin: 5px 10px 0 0;
11
+ margin: var(--zd_size5) var(--zd_size10) 0 0 ;
12
12
  }
13
13
  [dir=rtl] .medium {
14
- margin: 5px 0 0 10px;
14
+ margin: var(--zd_size5) 0 0 var(--zd_size10) ;
15
15
  }
@@ -406,10 +406,7 @@ var Popup = function Popup(Component) {
406
406
  dropElement = _openedPopup.dropElement,
407
407
  placeHolderElement = _openedPopup.placeHolderElement;
408
408
  var isDropBoxChild = (0, _Common.isDescendant)(dropElement, target);
409
- var isTargetChild = (0, _Common.isDescendant)(placeHolderElement, target); // const massUpdateParent = document.querySelector(
410
- // '[data-id=massUpdatePopup]'
411
- // );
412
- // const isPopupMassUpdateChild = isDescendant(
409
+ var isTargetChild = (0, _Common.isDescendant)(placeHolderElement, target); // const isPopupMassUpdateChild = isDescendant(
413
410
  // massUpdateParent,
414
411
  // dropElement
415
412
  // );
@@ -1,16 +1,16 @@
1
1
  .varClass {
2
2
  /* radio default variables */
3
- --radio_width: 16px;
4
- --radio_height: 16px;
3
+ --radio_width: var(--zd_size16);
4
+ --radio_height: var(--zd_size16);
5
5
  --radio_bg_color: none;
6
6
  --radio_stroke_width: 2px;
7
7
  --radio_stroke_color: var(--zdt_radio_default_stroke);
8
8
  --radio_fill: none;
9
9
  --radio_inner_stroke_width: 0;
10
10
  }[dir=ltr] .varClass {
11
- --radio_label_margin: 0 0 0 6px/*rtl: 0 6px 0 0*/;
11
+ --radio_label_margin: 0 0 0 var(--zd_size6);
12
12
  }[dir=rtl] .varClass {
13
- --radio_label_margin: 0 6px 0 0;
13
+ --radio_label_margin: 0 var(--zd_size6) 0 0;
14
14
  }
15
15
  .container {
16
16
  composes: varClass;
@@ -38,15 +38,15 @@
38
38
  }
39
39
 
40
40
  .medium {
41
- --radio_width: 16px;
42
- --radio_height: 16px;
41
+ --radio_width: var(--zd_size16);
42
+ --radio_height: var(--zd_size16);
43
43
  }
44
44
  .small {
45
- --radio_width: 13px;
46
- --radio_height: 13px;
45
+ --radio_width: var(--zd_size13);
46
+ --radio_height: var(--zd_size13);
47
47
  }
48
48
  .radioLabel {
49
- font-size: 0;
49
+ font-size: 0 ;
50
50
  display: block;
51
51
  }
52
52
  .rdBox {
@@ -1,6 +1,6 @@
1
1
  .dropBoxContainer {
2
- max-height: 70vh;
2
+ max-height: 70vh ;
3
3
  }
4
4
  .boxPadding{
5
- padding-bottom: 10px;
5
+ padding-bottom: var(--zd_size10) ;
6
6
  }
@@ -63,6 +63,7 @@ var Ribbon = /*#__PURE__*/function (_React$Component) {
63
63
  return /*#__PURE__*/_react["default"].createElement("span", {
64
64
  className: "".concat(_RibbonModule["default"].basic, " ").concat(customClass, " ").concat(type !== 'tag' ? type === 'plain' || type === 'box' || type === 'stamp' ? "".concat(_RibbonModule["default"]["plain_".concat(palette)], " \n ").concat(type === 'box' ? _RibbonModule["default"]["box_".concat(palette)] : '', " ").concat(type === 'stamp' ? _RibbonModule["default"]["stamp_".concat(palette)] : '') : "".concat(_RibbonModule["default"]["palette_".concat(palette)], " ").concat(type === 'default' ? _RibbonModule["default"]["default_".concat(palette)] : '') : '', " ").concat(_RibbonModule["default"][size], " ").concat(_RibbonModule["default"][type]),
65
65
  "data-id": dataId,
66
+ "data-test-id": dataId,
66
67
  "data-selector-id": dataSelectorId
67
68
  }, type === 'sticker' ? /*#__PURE__*/_react["default"].createElement("span", {
68
69
  className: _RibbonModule["default"].after