@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-192

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 (193) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +4 -0
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
  4. package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
  5. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
  6. package/es/AppContainer/AppContainer.js +9 -10
  7. package/es/AppContainer/AppContainer.module.css +2 -2
  8. package/es/Avatar/Avatar.js +5 -4
  9. package/es/Avatar/Avatar.module.css +44 -26
  10. package/es/AvatarTeam/AvatarTeam.js +7 -7
  11. package/es/AvatarTeam/AvatarTeam.module.css +62 -74
  12. package/es/Button/Button.js +6 -5
  13. package/es/Button/css/Button.module.css +156 -100
  14. package/es/Buttongroup/Buttongroup.module.css +50 -17
  15. package/es/CheckBox/CheckBox.js +8 -8
  16. package/es/CheckBox/CheckBox.module.css +35 -60
  17. package/es/DateTime/DateTime.module.css +85 -57
  18. package/es/DateTime/DateWidget.module.css +11 -7
  19. package/es/DateTime/YearView.module.css +34 -21
  20. package/es/DropBox/DropBox.js +11 -10
  21. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  22. package/es/DropBox/css/DropBox.module.css +23 -6
  23. package/es/DropDown/DropDown.js +1 -2
  24. package/es/DropDown/DropDown.module.css +2 -2
  25. package/es/DropDown/DropDownHeading.module.css +15 -15
  26. package/es/DropDown/DropDownItem.module.css +40 -22
  27. package/es/DropDown/DropDownSearch.module.css +3 -3
  28. package/es/DropDown/DropDownSeparator.module.css +2 -2
  29. package/es/Heading/Heading.module.css +2 -2
  30. package/es/Label/Label.module.css +11 -23
  31. package/es/Label/LabelColors.module.css +1 -7
  32. package/es/Layout/Layout.module.css +15 -15
  33. package/es/ListItem/ListContainer.js +5 -6
  34. package/es/ListItem/ListItem.js +7 -6
  35. package/es/ListItem/ListItem.module.css +104 -55
  36. package/es/ListItem/ListItemWithAvatar.js +8 -7
  37. package/es/ListItem/ListItemWithCheckBox.js +5 -4
  38. package/es/ListItem/ListItemWithIcon.js +7 -6
  39. package/es/ListItem/ListItemWithRadio.js +5 -4
  40. package/es/Modal/Modal.js +5 -4
  41. package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
  42. package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
  43. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  44. package/es/MultiSelect/MultiSelect.js +9 -3
  45. package/es/MultiSelect/MultiSelect.module.css +55 -69
  46. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
  47. package/es/MultiSelect/SelectedOptions.js +8 -6
  48. package/es/MultiSelect/SelectedOptions.module.css +11 -5
  49. package/es/MultiSelect/Suggestions.js +16 -10
  50. package/es/MultiSelect/props/defaultProps.js +9 -3
  51. package/es/MultiSelect/props/propTypes.js +7 -3
  52. package/es/PopOver/PopOver.module.css +2 -2
  53. package/es/Popup/Popup.js +4 -3
  54. package/es/Radio/Radio.js +8 -8
  55. package/es/Radio/Radio.module.css +22 -37
  56. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  57. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  58. package/es/Ribbon/Ribbon.module.css +143 -64
  59. package/es/RippleEffect/RippleEffect.module.css +9 -27
  60. package/es/Select/GroupSelect.js +9 -3
  61. package/es/Select/Select.js +5 -4
  62. package/es/Select/Select.module.css +33 -22
  63. package/es/Select/SelectWithAvatar.js +9 -3
  64. package/es/Select/SelectWithIcon.js +9 -3
  65. package/es/Select/props/defaultProps.js +6 -3
  66. package/es/Select/props/propTypes.js +6 -3
  67. package/es/Stencils/Stencils.module.css +32 -14
  68. package/es/Switch/Switch.js +8 -8
  69. package/es/Switch/Switch.module.css +30 -35
  70. package/es/Tab/Tab.js +5 -4
  71. package/es/Tab/Tab.module.css +28 -39
  72. package/es/Tab/TabContentWrapper.js +5 -4
  73. package/es/Tab/TabWrapper.js +4 -2
  74. package/es/Tab/Tabs.js +16 -16
  75. package/es/Tab/Tabs.module.css +51 -29
  76. package/es/Tag/Tag.module.css +60 -91
  77. package/es/TextBox/TextBox.js +5 -5
  78. package/es/TextBox/TextBox.module.css +19 -23
  79. package/es/TextBoxIcon/TextBoxIcon.js +4 -2
  80. package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
  81. package/es/Textarea/Textarea.js +6 -4
  82. package/es/Textarea/Textarea.module.css +30 -60
  83. package/es/Tooltip/Tooltip.module.css +12 -13
  84. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  85. package/es/common/animation.module.css +227 -29
  86. package/es/common/avatarsizes.module.css +16 -16
  87. package/es/common/basicReset.module.css +5 -15
  88. package/es/common/common.module.css +82 -36
  89. package/es/common/customscroll.module.css +33 -12
  90. package/es/common/transition.module.css +50 -10
  91. package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
  92. package/es/semantic/Button/semanticButton.module.css +3 -3
  93. package/es/v1/AppContainer/AppContainer.js +9 -10
  94. package/es/v1/Avatar/Avatar.js +5 -4
  95. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  96. package/es/v1/Button/Button.js +6 -5
  97. package/es/v1/CheckBox/CheckBox.js +8 -8
  98. package/es/v1/DropBox/DropBox.js +11 -10
  99. package/es/v1/DropDown/DropDown.js +1 -2
  100. package/es/v1/ListItem/ListContainer.js +5 -6
  101. package/es/v1/ListItem/ListItem.js +5 -4
  102. package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
  103. package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
  104. package/es/v1/ListItem/ListItemWithIcon.js +5 -4
  105. package/es/v1/ListItem/ListItemWithRadio.js +5 -4
  106. package/es/v1/Modal/Modal.js +5 -4
  107. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
  108. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
  109. package/es/v1/MultiSelect/SelectedOptions.js +8 -6
  110. package/es/v1/MultiSelect/Suggestions.js +8 -6
  111. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  112. package/es/v1/Popup/Popup.js +4 -3
  113. package/es/v1/Radio/Radio.js +8 -8
  114. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  115. package/es/v1/Select/Select.js +5 -4
  116. package/es/v1/Switch/Switch.js +8 -8
  117. package/es/v1/Tab/Tab.js +5 -4
  118. package/es/v1/Tab/TabContentWrapper.js +5 -4
  119. package/es/v1/Tab/TabWrapper.js +4 -2
  120. package/es/v1/Tab/Tabs.js +16 -16
  121. package/es/v1/Tab/v1Tab.module.css +28 -39
  122. package/es/v1/Tab/v1Tabs.module.css +51 -29
  123. package/es/v1/TextBox/TextBox.js +5 -5
  124. package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
  125. package/es/v1/Textarea/Textarea.js +6 -4
  126. package/es/v1/Typography/css/Typography.module.css +39 -33
  127. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  128. package/lib/AppContainer/AppContainer.module.css +2 -2
  129. package/lib/Avatar/Avatar.module.css +44 -26
  130. package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
  131. package/lib/Button/css/Button.module.css +156 -100
  132. package/lib/Buttongroup/Buttongroup.module.css +50 -17
  133. package/lib/CheckBox/CheckBox.module.css +35 -60
  134. package/lib/DateTime/DateTime.module.css +85 -57
  135. package/lib/DateTime/DateWidget.module.css +11 -7
  136. package/lib/DateTime/YearView.module.css +34 -21
  137. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  138. package/lib/DropBox/css/DropBox.module.css +23 -6
  139. package/lib/DropDown/DropDown.module.css +2 -2
  140. package/lib/DropDown/DropDownHeading.module.css +15 -15
  141. package/lib/DropDown/DropDownItem.module.css +40 -22
  142. package/lib/DropDown/DropDownSearch.module.css +3 -3
  143. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  144. package/lib/Heading/Heading.module.css +2 -2
  145. package/lib/Label/Label.module.css +11 -23
  146. package/lib/Label/LabelColors.module.css +1 -7
  147. package/lib/Layout/Layout.module.css +15 -15
  148. package/lib/ListItem/ListItem.js +2 -2
  149. package/lib/ListItem/ListItem.module.css +104 -55
  150. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  151. package/lib/ListItem/ListItemWithIcon.js +2 -2
  152. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  153. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  154. package/lib/MultiSelect/MultiSelect.js +8 -3
  155. package/lib/MultiSelect/MultiSelect.module.css +55 -69
  156. package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
  157. package/lib/MultiSelect/SelectedOptions.module.css +11 -5
  158. package/lib/MultiSelect/Suggestions.js +8 -4
  159. package/lib/MultiSelect/props/defaultProps.js +9 -3
  160. package/lib/MultiSelect/props/propTypes.js +9 -6
  161. package/lib/PopOver/PopOver.module.css +2 -2
  162. package/lib/Radio/Radio.module.css +22 -37
  163. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  164. package/lib/Ribbon/Ribbon.module.css +143 -64
  165. package/lib/RippleEffect/RippleEffect.module.css +9 -27
  166. package/lib/Select/GroupSelect.js +8 -3
  167. package/lib/Select/Select.module.css +33 -22
  168. package/lib/Select/SelectWithAvatar.js +8 -3
  169. package/lib/Select/SelectWithIcon.js +8 -3
  170. package/lib/Select/props/defaultProps.js +5 -3
  171. package/lib/Select/props/propTypes.js +6 -3
  172. package/lib/Stencils/Stencils.module.css +32 -14
  173. package/lib/Switch/Switch.module.css +30 -35
  174. package/lib/Tab/Tab.module.css +28 -39
  175. package/lib/Tab/Tabs.module.css +51 -29
  176. package/lib/Tag/Tag.module.css +60 -91
  177. package/lib/TextBox/TextBox.module.css +19 -23
  178. package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
  179. package/lib/Textarea/Textarea.module.css +30 -60
  180. package/lib/Tooltip/Tooltip.module.css +12 -13
  181. package/lib/common/animation.module.css +227 -29
  182. package/lib/common/avatarsizes.module.css +16 -16
  183. package/lib/common/basicReset.module.css +5 -15
  184. package/lib/common/common.module.css +82 -36
  185. package/lib/common/customscroll.module.css +33 -12
  186. package/lib/common/transition.module.css +50 -10
  187. package/lib/semantic/Button/semanticButton.module.css +3 -3
  188. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  189. package/lib/v1/Tab/v1Tab.module.css +28 -39
  190. package/lib/v1/Tab/v1Tabs.module.css +51 -29
  191. package/lib/v1/Typography/css/Typography.module.css +39 -33
  192. package/package.json +3 -3
  193. package/result.json +1 -0
package/es/Modal/Modal.js CHANGED
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import ReactDOM from 'react-dom';
@@ -129,10 +131,9 @@ export default class Modal extends React.Component {
129
131
 
130
132
  if (isMounted) {
131
133
  if (Element) {
132
- return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, {
133
- ref: this.setRef,
134
- ...elementProps
135
- }), this.portalDiv);
134
+ return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Element, _extends({
135
+ ref: this.setRef
136
+ }, elementProps)), this.portalDiv);
136
137
  }
137
138
 
138
139
  return null;
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  import React from 'react';
2
4
  import { AdvancedGroupMultiSelect_propTypes } from './props/propTypes';
3
5
  import { AdvancedGroupMultiSelect_defaultProps } from './props/defaultProps';
@@ -870,8 +872,12 @@ class AdvancedGroupMultiSelect extends React.Component {
870
872
  a11y,
871
873
  palette,
872
874
  needEffect,
873
- autoComplete
875
+ autoComplete,
876
+ customProps
874
877
  } = this.props;
878
+ const {
879
+ suggestionsProps
880
+ } = customProps;
875
881
  let {
876
882
  clearText = 'Clear all'
877
883
  } = i18nKeys;
@@ -1031,7 +1037,7 @@ class AdvancedGroupMultiSelect extends React.Component {
1031
1037
  a11y: {
1032
1038
  role: 'heading'
1033
1039
  }
1034
- })), /*#__PURE__*/React.createElement(Suggestions, {
1040
+ })), /*#__PURE__*/React.createElement(Suggestions, _extends({
1035
1041
  suggestions: suggestions,
1036
1042
  selectedOptions: selectedOptionIds,
1037
1043
  getRef: this.suggestionItemRef,
@@ -1043,7 +1049,7 @@ class AdvancedGroupMultiSelect extends React.Component {
1043
1049
  a11y: {
1044
1050
  role: 'option'
1045
1051
  }
1046
- }));
1052
+ }, suggestionsProps)));
1047
1053
  }) : /*#__PURE__*/React.createElement(EmptyState, {
1048
1054
  options: revampedGroups,
1049
1055
  searchString: searchStr,
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import { AdvancedMultiSelect_propTypes } from './props/propTypes';
@@ -486,7 +488,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
486
488
  let {
487
489
  tabletMode
488
490
  } = _ref2;
489
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
491
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
490
492
  animationStyle: animationStyle,
491
493
  boxPosition: position || `${defaultDropBoxPosition}Center`,
492
494
  getRef: getContainerRef,
@@ -500,11 +502,11 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
500
502
  a11y: {
501
503
  role: 'listbox',
502
504
  ariaMultiselectable: true
503
- },
504
- ...DropBoxProps,
505
+ }
506
+ }, DropBoxProps, {
505
507
  alignBox: "row",
506
508
  isResponsivePadding: getFooter ? false : true
507
- }, isLoading ? /*#__PURE__*/React.createElement(Container, {
509
+ }), isLoading ? /*#__PURE__*/React.createElement(Container, {
508
510
  align: "both",
509
511
  className: style.loader
510
512
  }, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(Box, {
@@ -521,7 +523,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
521
523
  shrink: true,
522
524
  customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
523
525
  eleRef: this.suggestionContainerRef
524
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
526
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
525
527
  suggestions: suggestions,
526
528
  selectedOptions: allselectedOptionIds,
527
529
  getRef: this.suggestionItemRef,
@@ -532,9 +534,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
532
534
  listItemSize: listItemSize,
533
535
  a11y: {
534
536
  role: 'option'
535
- },
536
- ...SuggestionsProps
537
- }) : /*#__PURE__*/React.createElement(EmptyState, {
537
+ }
538
+ }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
538
539
  isLoading: isFetchingOptions,
539
540
  options: options,
540
541
  searchString: searchStr,
@@ -1,19 +1,16 @@
1
- .container {
2
- padding: 0 20px 12px 20px;
3
- }
4
-
5
- .header {
6
- padding-bottom: 4px;
7
- }
8
-
9
- .cardHeading {
10
- font-size: 16px;
11
- color: var(--zdt_multiselect_res_title_text);
12
- composes: bold dotted from '../../common/common.module.css'
13
- }
14
-
15
- .buttonText {
16
- font-size: 15px;
17
- padding: 0;
18
- composes: dotted from '../../common/common.module.css'
19
- }
1
+ .container{
2
+ padding: 0 var(--zd_size20) var(--zd_size12) var(--zd_size20) ;
3
+ }
4
+ .header{
5
+ padding-bottom: var(--zd_size4) ;
6
+ }
7
+ .cardHeading{
8
+ font-size: var(--zd_font_size16) ;
9
+ color: var(--zdt_multiselect_res_title_text);
10
+ composes: bold dotted from '../../common/common.module.css'
11
+ }
12
+ .buttonText{
13
+ font-size: var(--zd_font_size15) ;
14
+ composes: dotted from '../../common/common.module.css';
15
+ padding: 0
16
+ }
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import { MultiSelect_propTypes } from './props/propTypes';
@@ -990,8 +992,12 @@ export class MultiSelectComponent extends React.Component {
990
992
  boxSize,
991
993
  isLoading,
992
994
  selectAllText,
993
- needSelectAll
995
+ needSelectAll,
996
+ customProps
994
997
  } = this.props;
998
+ const {
999
+ suggestionsProps = {}
1000
+ } = customProps;
995
1001
  const {
996
1002
  selectedOptions,
997
1003
  searchStr,
@@ -1064,7 +1070,7 @@ export class MultiSelectComponent extends React.Component {
1064
1070
  eleRef: this.suggestionContainerRef
1065
1071
  }, isSearching ? /*#__PURE__*/React.createElement("div", {
1066
1072
  className: style[palette]
1067
- }, searchText) : suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
1073
+ }, searchText) : suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
1068
1074
  suggestions: suggestions,
1069
1075
  getRef: this.suggestionItemRef,
1070
1076
  hoverOption: hoverOption,
@@ -1077,7 +1083,7 @@ export class MultiSelectComponent extends React.Component {
1077
1083
  a11y: {
1078
1084
  role: 'option'
1079
1085
  }
1080
- }) : /*#__PURE__*/React.createElement(EmptyState, {
1086
+ }, suggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
1081
1087
  isLoading: isFetchingOptions,
1082
1088
  options: options,
1083
1089
  searchString: searchStr,
@@ -1,122 +1,110 @@
1
1
  .wrapper {
2
2
  position: relative;
3
3
  }
4
-
5
- .disabled,
6
- .readOnly {
4
+ .disabled, .readOnly {
7
5
  cursor: not-allowed;
8
6
  }
9
-
10
7
  .container {
11
- max-height: 120px;
8
+ max-height: var(--zd_size120) ;
12
9
  composes: oflowy from '../common/common.module.css';
13
10
  }
14
-
15
11
  .hasBorder {
12
+ transition: border var(--zd_transition2) linear 0s;
16
13
  border-bottom-style: solid;
17
14
  border-bottom-width: 1px;
18
- transition: border var(--zd_transition2) linear 0s;
19
15
  }
20
-
21
16
  .borderColor_transparent {
22
17
  border-bottom-color: var(--zdt_multiselect_transparent_border);
23
18
  }
24
-
25
19
  .effect .borderColor_transparent:hover {
26
20
  border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
27
21
  }
28
-
29
22
  .effect .borderColor_transparent.active {
30
23
  border-bottom-color: var(--zdt_multiselect_transparent_active_border);
31
24
  }
32
-
33
25
  .borderColor_default {
34
26
  border-bottom-color: var(--zdt_multiselect_default_border);
35
27
  }
36
-
37
28
  .effect .borderColor_default:hover {
38
29
  border-bottom-color: var(--zdt_multiselect_default_hover_border);
39
30
  }
40
-
41
31
  .effect .borderColor_default.active {
42
32
  border-bottom-color: var(--zdt_multiselect_default_active_border);
43
33
  }
44
-
45
34
  .borderColor_dark {
46
35
  border-bottom-color: var(--zdt_multiselect_dark_border);
47
36
  }
48
-
49
37
  .effect .borderColor_dark:hover {
50
38
  border-bottom-color: var(--zdt_multiselect_dark_hover_border);
51
39
  }
52
-
53
40
  .effect .borderColor_dark.active {
54
41
  border-bottom-color: var(--zdt_multiselect_dark_active_border);
55
42
  }
56
43
 
57
44
  .container.medium {
58
- padding-bottom: 8px;
45
+ padding-bottom: var(--zd_size8) ;
59
46
  }
60
47
 
61
48
  .container.xmedium {
62
- padding-bottom: 3px;
63
- min-height: 30px;
49
+ min-height: var(--zd_size30) ;
50
+ padding-bottom: var(--zd_size3) ;
64
51
  }
65
52
 
66
53
  .delete {
67
- padding: 2px 6px;
54
+ font: inherit;
55
+ padding: var(--zd_size2) var(--zd_size6) ;
68
56
  cursor: pointer;
69
57
  border: 0;
70
58
  background-color: var(--zdt_multiselect_delete_bg);
71
- font: inherit;
72
59
  }
73
-
74
60
  .delete,
75
61
  .defaultDelete {
76
62
  color: var(--zdt_multiselect_delete_text);
77
63
  }
78
-
79
64
  .darkDelete {
80
65
  color: var(--zdt_multiselect_darkdelete_text);
81
66
  }
82
67
 
83
68
  .delete:hover,
84
69
  .defaultDelete:hover {
85
- color: var(--zdt_base_color);
70
+ color: var(--zdt_multiselect_delete_hover_text);
86
71
  }
87
-
88
72
  .darkDelete:hover {
89
73
  color: var(--zdt_multiselect_darkdelete_hover_text);
90
74
  }
91
-
92
75
  .transparentContainer .delete {
93
76
  opacity: 0;
94
77
  visibility: hidden;
95
78
  }
96
-
97
79
  .transparentContainer:hover .delete {
98
80
  opacity: 1;
99
81
  visibility: visible;
100
82
  }
101
83
 
102
84
  .tag {
103
- max-width: 100%;
85
+ max-width: 100% ;
104
86
  }
105
87
 
106
- .container.xmedium .tag {
107
- margin: 2px 10px 0 0;
88
+ [dir=ltr] .container.xmedium .tag {
89
+ margin: var(--zd_size2) var(--zd_size10) 0 0 ;
108
90
  }
109
91
 
110
- .container.medium .tag {
111
- margin: 5px 10px 0 0;
92
+ [dir=rtl] .container.xmedium .tag {
93
+ margin: var(--zd_size2) 0 0 var(--zd_size10) ;
112
94
  }
113
95
 
114
- .responsiveParent {
115
- width: 100%;
96
+ [dir=ltr] .container.medium .tag {
97
+ margin: var(--zd_size5) var(--zd_size10) 0 0 ;
116
98
  }
117
99
 
100
+ [dir=rtl] .container.medium .tag {
101
+ margin: var(--zd_size5) 0 0 var(--zd_size10) ;
102
+ }
103
+ .responsiveParent{
104
+ width: 100% ;
105
+ }
118
106
  .box {
119
- background: var(--zdt_base_bg);
107
+ background: var(--zdt_multiselect_box_bg);
120
108
  }
121
109
 
122
110
  .selectAll:hover {
@@ -124,43 +112,41 @@
124
112
  }
125
113
 
126
114
  .small {
127
- max-height: 200px;
115
+ max-height: var(--zd_size200) ;
128
116
  }
129
117
 
130
118
  .medium {
131
- max-height: 350px;
119
+ max-height: var(--zd_size350) ;
132
120
  }
133
121
 
134
122
  .large {
135
- max-height: 400px;
123
+ max-height: var(--zd_size400) ;
136
124
  }
137
125
 
138
126
  .commonMessage {
139
- font-size: 14px;
127
+ font-size: var(--zd_font_size14) ;
140
128
  composes: semibold from '../common/common.module.css';
141
- padding: 12px 15px;
129
+ padding: var(--zd_size12) var(--zd_size15) ;
142
130
  }
143
-
144
131
  .default,
145
132
  .dark {
146
133
  composes: commonMessage;
147
134
  }
148
-
149
135
  .default,
150
136
  .defaultBox {
151
137
  color: var(--zdt_multiselect_message_text);
152
138
  }
153
-
154
139
  .dark,
155
140
  .darkBox {
156
- background: var(--zdt_multiselect_darkmsg_bg);
157
141
  color: var(--zdt_multiselect_darkmsg_text);
158
142
  }
143
+ .dark, .darkBox {
144
+ background: var(--zdt_multiselect_darkmsg_bg);
145
+ }
159
146
 
160
147
  .hide {
161
148
  composes: vishidden from '../common/common.module.css';
162
149
  }
163
-
164
150
  .custmSpan {
165
151
  display: inline-block;
166
152
  vertical-align: middle;
@@ -168,51 +154,51 @@
168
154
  overflow: hidden;
169
155
  text-overflow: ellipsis;
170
156
  white-space: nowrap;
171
- max-width: 100%;
157
+ max-width: 100% ;
172
158
  visibility: hidden;
173
159
  }
174
-
175
160
  .custmSpanMedium {
176
- height: 35px;
161
+ height: var(--zd_size35) ;
177
162
  }
178
-
179
163
  .custmSpanXmedium {
180
- height: 28px;
164
+ height: var(--zd_size28) ;
181
165
  }
182
-
183
166
  .custmInputWrapper {
184
167
  position: absolute;
185
- top: 0;
186
- left: 0;
187
- width: 100%;
168
+ top: 0 ;
169
+ width: 100% ;
170
+ }
171
+ [dir=ltr] .custmInputWrapper {
172
+ left: 0 ;
173
+ }
174
+ [dir=rtl] .custmInputWrapper {
175
+ right: 0 ;
188
176
  }
189
-
190
177
  .title {
191
- margin-bottom: 6px;
178
+ margin-bottom: var(--zd_size6) ;
192
179
  }
193
-
194
180
  .groupTitle {
195
- margin: 6px 0;
181
+ margin: var(--zd_size6) 0 ;
196
182
  }
197
-
198
183
  .loader {
199
- padding: 10px;
184
+ padding: var(--zd_size10) ;
200
185
  }
201
-
202
186
  .iconContainer {
203
- padding-top: 3px
187
+ padding-top: var(--zd_size3)
204
188
  }
205
-
206
- .clearIconSpace {
207
- padding-right: 37px
189
+ [dir=ltr] .clearIconSpace {
190
+ padding-right: var(--zd_size37)
191
+ }
192
+ [dir=rtl] .clearIconSpace {
193
+ padding-left: var(--zd_size37)
208
194
  }
209
195
 
210
196
  .more {
211
- font-size: 14px;
197
+ font-size: var(--zd_font_size14) ;
212
198
  color: var(--zdt_multiselect_more_text);
213
- cursor: pointer;
214
- margin-top: 5px;
215
199
  font-family: inherit;
200
+ cursor: pointer;
201
+ margin-top: var(--zd_size5) ;
216
202
  background-color: var(--zdt_multiselect_delete_bg);
217
203
  border: 0;
218
- }
204
+ }
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import { MultiSelectWithAvatar_propTypes } from './props/propTypes';
@@ -83,6 +85,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
83
85
  needEffect,
84
86
  isLoading,
85
87
  keepSelectedOptions,
88
+ needMultiLineText,
86
89
  customProps
87
90
  } = this.props;
88
91
  let {
@@ -155,7 +158,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
155
158
  shrink: true,
156
159
  customClass: !isModel && dropBoxSize ? style[dropBoxSize] : '',
157
160
  eleRef: this.suggestionContainerRef
158
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
161
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
159
162
  needTick: keepSelectedOptions,
160
163
  suggestions: suggestions,
161
164
  getRef: this.suggestionItemRef,
@@ -169,8 +172,8 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
169
172
  a11y: {
170
173
  role: 'option'
171
174
  },
172
- ...SuggestionsProps
173
- }) : /*#__PURE__*/React.createElement(EmptyState, {
175
+ needMultiLineText: needMultiLineText
176
+ }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
174
177
  isLoading: isFetchingOptions,
175
178
  options: options,
176
179
  searchString: searchStr,
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import { SelectedOptions_propTypes } from './props/propTypes';
@@ -50,28 +52,28 @@ export default class SelectedOptions extends React.PureComponent {
50
52
  return /*#__PURE__*/React.createElement(Box, {
51
53
  className: `${style.tag} ${style[size]}`,
52
54
  key: `${id}photoTag`
53
- }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
55
+ }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
54
56
  active: highLightedSelectOptions.indexOf(id) >= 0,
55
57
  hasAvatar: true,
56
58
  imageURL: photoURL
57
- }));
59
+ })));
58
60
  } else if (optionType === 'icon') {
59
61
  return /*#__PURE__*/React.createElement(Box, {
60
62
  className: `${style.tag} ${style[size]}`,
61
63
  key: `${id}iconTag`
62
- }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
64
+ }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
63
65
  active: highLightedSelectOptions.indexOf(id) >= 0,
64
66
  iconName: icon,
65
67
  iconSize: iconSize
66
- }));
68
+ })));
67
69
  }
68
70
 
69
71
  return /*#__PURE__*/React.createElement(Box, {
70
72
  className: `${style.tag} ${style[size]}`,
71
73
  key: `${id}tag`
72
- }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
74
+ }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
73
75
  active: highLightedSelectOptions.indexOf(id) >= 0
74
- }));
76
+ })));
75
77
  }));
76
78
  }
77
79
 
@@ -1,9 +1,15 @@
1
1
  .tag {
2
- max-width: 100%;
2
+ max-width: 100% ;
3
3
  }
4
- .xmedium {
5
- margin: 0 10px 2px 0;
4
+ [dir=ltr] .xmedium {
5
+ margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
6
6
  }
7
- .medium {
8
- margin: 5px 10px 0 0;
7
+ [dir=rtl] .xmedium {
8
+ margin: 0 0 var(--zd_size2) var(--zd_size10) ;
9
+ }
10
+ [dir=ltr] .medium {
11
+ margin: var(--zd_size5) var(--zd_size10) 0 0 ;
12
+ }
13
+ [dir=rtl] .medium {
14
+ margin: var(--zd_size5) 0 0 var(--zd_size10) ;
9
15
  }
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import { Suggestions_propTypes } from './props/propTypes';
@@ -27,7 +29,8 @@ export default class Suggestions extends React.PureComponent {
27
29
  avatarPalette,
28
30
  palette,
29
31
  htmlId,
30
- a11y
32
+ a11y,
33
+ needMultiLineText
31
34
  } = this.props;
32
35
  const {
33
36
  ariaParentRole,
@@ -74,7 +77,7 @@ export default class Suggestions extends React.PureComponent {
74
77
  }
75
78
 
76
79
  if (optionType === 'avatar') {
77
- return /*#__PURE__*/React.createElement(ListItemWithAvatar, { ...commonProps,
80
+ return /*#__PURE__*/React.createElement(ListItemWithAvatar, _extends({}, commonProps, {
78
81
  autoHover: false,
79
82
  getRef: getRef,
80
83
  highlight: isHighlight,
@@ -92,10 +95,11 @@ export default class Suggestions extends React.PureComponent {
92
95
  size: listItemSize,
93
96
  avatarPalette: avatarPalette,
94
97
  palette: palette,
95
- a11y: list_a11y
96
- });
98
+ a11y: list_a11y,
99
+ needMultiLineText: needMultiLineText
100
+ }));
97
101
  } else if (optionType === 'icon') {
98
- return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
102
+ return /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({}, commonProps, {
99
103
  autoHover: false,
100
104
  getRef: getRef,
101
105
  highlight: isHighlight,
@@ -112,11 +116,12 @@ export default class Suggestions extends React.PureComponent {
112
116
  iconSize: iconSize,
113
117
  size: listItemSize,
114
118
  palette: palette,
115
- a11y: list_a11y
116
- });
119
+ a11y: list_a11y,
120
+ needMultiLineText: needMultiLineText
121
+ }));
117
122
  }
118
123
 
119
- return /*#__PURE__*/React.createElement(ListItem, { ...commonProps,
124
+ return /*#__PURE__*/React.createElement(ListItem, _extends({}, commonProps, {
120
125
  autoHover: false,
121
126
  getRef: getRef,
122
127
  highlight: isHighlight,
@@ -131,8 +136,9 @@ export default class Suggestions extends React.PureComponent {
131
136
  active: isActive,
132
137
  size: listItemSize,
133
138
  palette: palette,
134
- a11y: list_a11y
135
- });
139
+ a11y: list_a11y,
140
+ needMultiLineText: needMultiLineText
141
+ }));
136
142
  })));
137
143
  }
138
144
 
@@ -35,7 +35,8 @@ export const AdvancedGroupMultiSelect_defaultProps = {
35
35
  needEffect: true,
36
36
  palette: 'default',
37
37
  isLoading: false,
38
- dataSelectorId: 'advancedGroupMultiSelect'
38
+ dataSelectorId: 'advancedGroupMultiSelect',
39
+ customProps: {}
39
40
  };
40
41
  export const AdvancedMultiSelect_defaultProps = {
41
42
  animationStyle: 'bounce',
@@ -109,7 +110,9 @@ export const MultiSelect_defaultProps = {
109
110
  dataSelectorId: 'multiSelect',
110
111
  keepSelectedOptions: false,
111
112
  selectedOptionsCount: 0,
112
- cardHeaderName: ''
113
+ cardHeaderName: '',
114
+ needResponsive: true,
115
+ customProps: {}
113
116
  };
114
117
  export const MultiSelectHeader_defaultProps = {
115
118
  dataId: 'MultiSelectHeader'
@@ -143,11 +146,14 @@ export const MultiSelectWithAvatar_defaultProps = {
143
146
  isLoading: false,
144
147
  dataSelectorId: 'multiSelectWithAvatar',
145
148
  keepSelectedOptions: false,
149
+ needResponsive: true,
150
+ needMultiLineText: false,
146
151
  customProps: {}
147
152
  };
148
153
  export const SelectedOptions_defaultProps = {
149
154
  size: 'medium'
150
155
  };
151
156
  export const Suggestions_defaultProps = {
152
- a11y: {}
157
+ a11y: {},
158
+ needMultiLineText: false
153
159
  };