@zohodesk/components 1.0.0-temp-198 → 1.0.0-temp-199

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 (136) hide show
  1. package/.cli/PropUnificationExcludeFilesArray.js +230 -230
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/css_error.log +1 -1
  5. package/es/AppContainer/AppContainer.module.css +18 -18
  6. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  7. package/es/AvatarTeam/AvatarTeam.js +7 -7
  8. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  9. package/es/Button/Button.js +4 -4
  10. package/es/Buttongroup/Buttongroup.js +1 -1
  11. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  12. package/es/Card/Card.js +4 -4
  13. package/es/Card/Card.module.css +20 -20
  14. package/es/DateTime/DateWidget.module.css +38 -38
  15. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  16. package/es/DropDown/DropDown.module.css +5 -5
  17. package/es/DropDown/DropDownSearch.module.css +14 -14
  18. package/es/DropDown/DropDownSeparator.module.css +7 -7
  19. package/es/Heading/Heading.module.css +4 -4
  20. package/es/Label/Label.js +2 -2
  21. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  22. package/es/Layout/Layout.module.css +335 -335
  23. package/es/ListItem/ListItem.js +2 -2
  24. package/es/ListItem/ListItem.module.css +85 -18
  25. package/es/ListItem/ListItemWithAvatar.js +3 -3
  26. package/es/ListItem/ListItemWithIcon.js +2 -2
  27. package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -2
  28. package/es/MultiSelect/AdvancedMultiSelect.js +2 -1
  29. package/es/MultiSelect/MultiSelect.js +8 -4
  30. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  31. package/es/MultiSelect/Suggestions.js +8 -4
  32. package/es/MultiSelect/props/defaultProps.js +8 -5
  33. package/es/MultiSelect/props/propTypes.js +6 -3
  34. package/es/Popup/PositionMapping.json +73 -73
  35. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  36. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  37. package/es/RippleEffect/RippleEffect.module.css +92 -92
  38. package/es/Select/GroupSelect.js +7 -2
  39. package/es/Select/Select.module.css +134 -134
  40. package/es/Select/SelectWithAvatar.js +7 -2
  41. package/es/Select/SelectWithIcon.js +7 -2
  42. package/es/Select/props/defaultProps.js +6 -3
  43. package/es/Select/props/propTypes.js +6 -3
  44. package/es/Stencils/Stencils.module.css +96 -96
  45. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  46. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  47. package/es/Tab/TabContent.module.css +4 -4
  48. package/es/Tab/Tabs.js +17 -17
  49. package/es/Tag/Tag.js +8 -8
  50. package/es/Tooltip/Tooltip.module.css +140 -140
  51. package/es/common/a11y.module.css +3 -3
  52. package/es/common/animation.module.css +624 -624
  53. package/es/common/avatarsizes.module.css +48 -48
  54. package/es/common/basic.module.css +33 -33
  55. package/es/common/basicReset.module.css +40 -40
  56. package/es/common/boxShadow.module.css +33 -33
  57. package/es/common/common.module.css +524 -524
  58. package/es/common/reset.module.css +13 -13
  59. package/es/common/transition.module.css +146 -146
  60. package/es/semantic/Button/semanticButton.module.css +9 -9
  61. package/es/v1/Avatar/Avatar.js +5 -5
  62. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  63. package/es/v1/Button/Button.js +4 -4
  64. package/es/v1/MultiSelect/MultiSelect.js +6 -7
  65. package/es/v1/Tab/v1TabContent.module.css +4 -4
  66. package/es/v1/Tag/Tag.js +8 -8
  67. package/es/v1/Typography/css/Typography.module.css +380 -380
  68. package/install.md +10 -10
  69. package/lib/AppContainer/AppContainer.module.css +18 -18
  70. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  71. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  72. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
  73. package/lib/Button/Button.js +4 -4
  74. package/lib/Buttongroup/Buttongroup.js +1 -1
  75. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  76. package/lib/Card/Card.js +4 -4
  77. package/lib/Card/Card.module.css +20 -20
  78. package/lib/DateTime/DateWidget.module.css +38 -38
  79. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  80. package/lib/DropDown/DropDown.module.css +5 -5
  81. package/lib/DropDown/DropDownSearch.module.css +14 -14
  82. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  83. package/lib/Heading/Heading.module.css +4 -4
  84. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  85. package/lib/Layout/Layout.module.css +335 -335
  86. package/lib/ListItem/ListItem.js +2 -2
  87. package/lib/ListItem/ListItem.module.css +85 -18
  88. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  89. package/lib/ListItem/ListItemWithIcon.js +2 -2
  90. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  91. package/lib/MultiSelect/AdvancedMultiSelect.js +3 -1
  92. package/lib/MultiSelect/MultiSelect.js +9 -5
  93. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  94. package/lib/MultiSelect/Suggestions.js +8 -4
  95. package/lib/MultiSelect/props/defaultProps.js +8 -5
  96. package/lib/MultiSelect/props/propTypes.js +8 -6
  97. package/lib/Popup/PositionMapping.json +73 -73
  98. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  99. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  100. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  101. package/lib/Select/GroupSelect.js +8 -3
  102. package/lib/Select/Select.module.css +134 -134
  103. package/lib/Select/SelectWithAvatar.js +8 -3
  104. package/lib/Select/SelectWithIcon.js +8 -3
  105. package/lib/Select/props/defaultProps.js +5 -3
  106. package/lib/Select/props/propTypes.js +6 -3
  107. package/lib/Stencils/Stencils.module.css +96 -96
  108. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  109. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  110. package/lib/Tab/TabContent.module.css +4 -4
  111. package/lib/Tab/Tabs.js +11 -11
  112. package/lib/Tag/Tag.js +8 -8
  113. package/lib/Tooltip/Tooltip.module.css +140 -140
  114. package/lib/common/a11y.module.css +3 -3
  115. package/lib/common/animation.module.css +624 -624
  116. package/lib/common/avatarsizes.module.css +48 -48
  117. package/lib/common/basic.module.css +33 -33
  118. package/lib/common/basicReset.module.css +40 -40
  119. package/lib/common/boxShadow.module.css +33 -33
  120. package/lib/common/common.module.css +524 -524
  121. package/lib/common/reset.module.css +13 -13
  122. package/lib/common/transition.module.css +146 -146
  123. package/lib/semantic/Button/semanticButton.module.css +9 -9
  124. package/lib/v1/Avatar/Avatar.js +5 -5
  125. package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
  126. package/lib/v1/Button/Button.js +4 -4
  127. package/lib/v1/MultiSelect/MultiSelect.js +6 -7
  128. package/lib/v1/Tab/v1TabContent.module.css +4 -4
  129. package/lib/v1/Tag/Tag.js +8 -8
  130. package/lib/v1/Typography/css/Typography.module.css +380 -380
  131. package/package.json +3 -3
  132. package/postPublish.js +8 -8
  133. package/prePublish.js +70 -70
  134. package/propValidationArg.json +11 -11
  135. package/react-cli.config.js +23 -23
  136. package/result.json +1 -1
@@ -1,92 +1,92 @@
1
- .effect {
2
- position: relative;
3
- border-radius: var(--zd_size4);
4
- }
5
- .border {
6
- border: solid 1px var(--zdt_rippleeffect_default_border);
7
- }
8
- .default.defaultHover {
9
- border-color: var(--zdt_rippleeffect_hover_border);
10
- }
11
- .hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
12
- /* .hoverEffect:focus.primary.borderHover */
13
- {
14
- border-color: var(--zdt_rippleeffect_primary_border);
15
- }
16
- .primary.defaultHover, .hoverEffect:hover.primary.active.border
17
- /* .hoverEffect:focus.primary.active.border */
18
- {
19
- border-color: var(--zdt_rippleeffect_primary_active_border);
20
- }
21
- .primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
22
- /* .hoverEffect:focus.primaryLight.borderHover */
23
- {
24
- border-color: var(--zdt_rippleeffect_primary_light_border);
25
- }
26
- .green.defaultHover, .hoverEffect:hover.green.borderHover
27
- /* .hoverEffect:focus.green.borderHover */
28
- {
29
- border-color: var(--zdt_rippleeffect_green_border);
30
- }
31
- .hoverEffect:hover.default.defaultHover
32
- /* .hoverEffect:focus.default.defaultHover */
33
- {
34
- border-color: var(--zdt_rippleeffect_slate_border);
35
- }
36
- .hoverEffect:hover.default.borderHover
37
- /* .hoverEffect:focus.default.borderHover */
38
- {
39
- border-color: var(--zdt_rippleeffect_navy_border);
40
- }
41
- .hoverEffect:hover.default.bgHover
42
- /* .hoverEffect:focus.default.bgHover */
43
- {
44
- background-color: var(--zdt_rippleeffect_hover_bg);
45
- }
46
- .hoverEffect:hover.primaryLight.bgHover
47
- /* .hoverEffect:focus.primaryLight.bgHover */
48
- {
49
- background-color: var(--zdt_rippleeffect_primary_light_bg);
50
- }
51
- .primaryFilled {
52
- background-color: var(--zdt_rippleeffect_primary_bg);
53
- }
54
- .hoverEffect:hover.primaryFilled, .primaryFilled.active {
55
- background-color: var(--zdt_rippleeffect_primaryfilled_bg);
56
- }
57
- .hoverEffect:hover.green.bgHover
58
- /* .hoverEffect:focus.green.bgHover */
59
- {
60
- background-color: var(--zdt_rippleeffect_green_bg);
61
- }
62
- .default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
63
- background-color: var(--zdt_rippleeffect_primary_light_bg);
64
- }
65
- .default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
66
- border-color: var(--zdt_rippleeffect_primary_light_border);
67
- }
68
- .green.active {
69
- background-color: var(--zdt_rippleeffect_green_bg);
70
- }
71
- .green.active.border {
72
- border-color: var(--zdt_rippleeffect_green_border);
73
- }
74
- .primary.active {
75
- background-color: var(--zdt_rippleeffect_primary_bg);
76
- }
77
- .danger.defaultHover, .hoverEffect:hover.danger.borderHover
78
- /* .hoverEffect:focus.danger.borderHover */
79
- {
80
- border-color: var(--zdt_rippleeffect_danger_border);
81
- }
82
- .hoverEffect:hover.danger.bgHover, .danger.active {
83
- background-color: var(--zdt_rippleeffect_danger_bg);
84
- }
85
- .hoverEffect:hover.primaryDark.bgHover
86
- /* .hoverEffect:focus.primaryDark.bgHover */
87
- {
88
- background-color: var(--zdt_rippleeffect_primary_dark_bg);
89
- }
90
- .notAllowed {
91
- cursor: not-allowed;
92
- }
1
+ .effect {
2
+ position: relative;
3
+ border-radius: var(--zd_size4);
4
+ }
5
+ .border {
6
+ border: solid 1px var(--zdt_rippleeffect_default_border);
7
+ }
8
+ .default.defaultHover {
9
+ border-color: var(--zdt_rippleeffect_hover_border);
10
+ }
11
+ .hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
12
+ /* .hoverEffect:focus.primary.borderHover */
13
+ {
14
+ border-color: var(--zdt_rippleeffect_primary_border);
15
+ }
16
+ .primary.defaultHover, .hoverEffect:hover.primary.active.border
17
+ /* .hoverEffect:focus.primary.active.border */
18
+ {
19
+ border-color: var(--zdt_rippleeffect_primary_active_border);
20
+ }
21
+ .primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
22
+ /* .hoverEffect:focus.primaryLight.borderHover */
23
+ {
24
+ border-color: var(--zdt_rippleeffect_primary_light_border);
25
+ }
26
+ .green.defaultHover, .hoverEffect:hover.green.borderHover
27
+ /* .hoverEffect:focus.green.borderHover */
28
+ {
29
+ border-color: var(--zdt_rippleeffect_green_border);
30
+ }
31
+ .hoverEffect:hover.default.defaultHover
32
+ /* .hoverEffect:focus.default.defaultHover */
33
+ {
34
+ border-color: var(--zdt_rippleeffect_slate_border);
35
+ }
36
+ .hoverEffect:hover.default.borderHover
37
+ /* .hoverEffect:focus.default.borderHover */
38
+ {
39
+ border-color: var(--zdt_rippleeffect_navy_border);
40
+ }
41
+ .hoverEffect:hover.default.bgHover
42
+ /* .hoverEffect:focus.default.bgHover */
43
+ {
44
+ background-color: var(--zdt_rippleeffect_hover_bg);
45
+ }
46
+ .hoverEffect:hover.primaryLight.bgHover
47
+ /* .hoverEffect:focus.primaryLight.bgHover */
48
+ {
49
+ background-color: var(--zdt_rippleeffect_primary_light_bg);
50
+ }
51
+ .primaryFilled {
52
+ background-color: var(--zdt_rippleeffect_primary_bg);
53
+ }
54
+ .hoverEffect:hover.primaryFilled, .primaryFilled.active {
55
+ background-color: var(--zdt_rippleeffect_primaryfilled_bg);
56
+ }
57
+ .hoverEffect:hover.green.bgHover
58
+ /* .hoverEffect:focus.green.bgHover */
59
+ {
60
+ background-color: var(--zdt_rippleeffect_green_bg);
61
+ }
62
+ .default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
63
+ background-color: var(--zdt_rippleeffect_primary_light_bg);
64
+ }
65
+ .default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
66
+ border-color: var(--zdt_rippleeffect_primary_light_border);
67
+ }
68
+ .green.active {
69
+ background-color: var(--zdt_rippleeffect_green_bg);
70
+ }
71
+ .green.active.border {
72
+ border-color: var(--zdt_rippleeffect_green_border);
73
+ }
74
+ .primary.active {
75
+ background-color: var(--zdt_rippleeffect_primary_bg);
76
+ }
77
+ .danger.defaultHover, .hoverEffect:hover.danger.borderHover
78
+ /* .hoverEffect:focus.danger.borderHover */
79
+ {
80
+ border-color: var(--zdt_rippleeffect_danger_border);
81
+ }
82
+ .hoverEffect:hover.danger.bgHover, .danger.active {
83
+ background-color: var(--zdt_rippleeffect_danger_bg);
84
+ }
85
+ .hoverEffect:hover.primaryDark.bgHover
86
+ /* .hoverEffect:focus.primaryDark.bgHover */
87
+ {
88
+ background-color: var(--zdt_rippleeffect_primary_dark_bg);
89
+ }
90
+ .notAllowed {
91
+ cursor: not-allowed;
92
+ }
@@ -51,6 +51,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
51
51
 
52
52
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
53
53
 
54
+ 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); }
55
+
54
56
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
55
57
 
56
58
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -660,7 +662,10 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
660
662
  htmlId = _this$props9.htmlId,
661
663
  iconOnHover = _this$props9.iconOnHover,
662
664
  isLoading = _this$props9.isLoading,
663
- dataSelectorId = _this$props9.dataSelectorId;
665
+ dataSelectorId = _this$props9.dataSelectorId,
666
+ customProps = _this$props9.customProps;
667
+ var _customProps$suggesti = customProps.suggestionsProps,
668
+ suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
664
669
  i18nKeys = Object.assign({}, i18nKeys, {
665
670
  emptyText: i18nKeys.emptyText || emptyMessage,
666
671
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -824,7 +829,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
824
829
  a11y: {
825
830
  role: 'heading'
826
831
  }
827
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
832
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
828
833
  activeId: selectedId,
829
834
  suggestions: options,
830
835
  getRef: _this7.suggestionItemRef,
@@ -840,7 +845,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
840
845
  role: 'option'
841
846
  },
842
847
  dataId: "".concat(dataId, "_Options")
843
- }));
848
+ }, suggestionsProps)));
844
849
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
845
850
  options: revampedGroups,
846
851
  searchString: searchStr,
@@ -1,135 +1,135 @@
1
- .input {
2
- cursor: pointer;
3
- }
4
-
5
- .small {
6
- max-height: var(--zd_size200) ;
7
- }
8
-
9
- .medium {
10
- max-height: var(--zd_size350) ;
11
- }
12
-
13
- .large {
14
- max-height: var(--zd_size400) ;
15
- }
16
-
17
- .emptyState {
18
- font-size: var(--zd_font_size14) ;
19
- color: var(--zdt_select_emptystate_text);
20
- composes: semibold from '../common/common.module.css';
21
- }
22
-
23
- .box_small .emptyState {
24
- padding: var(--zd_size12) var(--zd_size6) ;
25
- }
26
-
27
- .box_medium .emptyState {
28
- padding: var(--zd_size12) var(--zd_size15) ;
29
- }
30
-
31
- .hide {
32
- composes: vishidden from '../common/common.module.css';
33
- }
34
-
35
- .container {
36
- position: relative;
37
- }
38
- /* css:lineheight-validation:ignore */
39
- .arrowIcon {
40
- height: var(--zd_size8) ;
41
- line-height: var(--zd_size8);
42
- }
43
-
44
- .small.search {
45
- padding: 0 var(--zd_size5) ;
46
- }
47
-
48
- .medium.search {
49
- padding: var(--zd_size3) var(--zd_size20) 0 ;
50
- }
51
-
52
- .title {
53
- margin-bottom: var(--zd_size6) ;
54
- }
55
-
56
- .groupTitle {
57
- margin: var(--zd_size6) 0 ;
58
- }
59
-
60
- .listItemContainer {
61
- padding: var(--zd_size10) 0 ;
62
- }
63
-
64
- .responsivelistItemContainer {
65
- padding: var(--zd_size10) 0 0 ;
66
- }
67
-
68
- .readonly {
69
- --textboxicon_icon_cursor: not-allowed;
70
- }
71
-
72
- .transparentContainer .arrowIcon {
73
- opacity: 0;
74
- visibility: hidden;
75
- }
76
-
77
- .transparentContainer:hover .arrowIcon {
78
- opacity: 1;
79
- visibility: visible;
80
- }
81
-
82
- .disable {
83
- color: var(--zdt_select_disable_text);
84
- }
85
-
86
- .leftIcon {
87
- position: absolute;
88
- top: 0 ;
89
- bottom: 0 ;
90
- width: var(--zd_size30) ;
91
- }
92
-
93
- [dir=ltr] .leftIcon {
94
- left: 0 ;
95
- }
96
-
97
- [dir=rtl] .leftIcon {
98
- right: 0 ;
99
- }
100
-
101
- [dir=ltr] .iconSelect {
102
- padding-left: var(--zd_size30) ;
103
- }
104
-
105
- [dir=rtl] .iconSelect {
106
- padding-right: var(--zd_size30) ;
107
- }
108
-
109
- .dropBoxList {
110
- padding: var(--zd_size10) 0 ;
111
- }
112
-
113
- .responsivedropBoxList {
114
- padding: var(--zd_size10) 0 0 0 ;
115
- }
116
-
117
- .rotate {
118
- transform: rotateX(180deg);
119
- }
120
-
121
- .iconOnHoverStyle .arrowIcon,
122
- .iconOnHoverReadonly .arrowIcon,
123
- .iconOnHoverReadonly:hover .arrowIcon {
124
- opacity: 0;
125
- visibility: hidden;
126
- }
127
-
128
- .iconOnHoverStyle:hover .arrowIcon {
129
- opacity: 1;
130
- visibility: visible;
131
- }
132
-
133
- .loader {
134
- padding: var(--zd_size10) ;
1
+ .input {
2
+ cursor: pointer;
3
+ }
4
+
5
+ .small {
6
+ max-height: var(--zd_size200) ;
7
+ }
8
+
9
+ .medium {
10
+ max-height: var(--zd_size350) ;
11
+ }
12
+
13
+ .large {
14
+ max-height: var(--zd_size400) ;
15
+ }
16
+
17
+ .emptyState {
18
+ font-size: var(--zd_font_size14) ;
19
+ color: var(--zdt_select_emptystate_text);
20
+ composes: semibold from '../common/common.module.css';
21
+ }
22
+
23
+ .box_small .emptyState {
24
+ padding: var(--zd_size12) var(--zd_size6) ;
25
+ }
26
+
27
+ .box_medium .emptyState {
28
+ padding: var(--zd_size12) var(--zd_size15) ;
29
+ }
30
+
31
+ .hide {
32
+ composes: vishidden from '../common/common.module.css';
33
+ }
34
+
35
+ .container {
36
+ position: relative;
37
+ }
38
+ /* css:lineheight-validation:ignore */
39
+ .arrowIcon {
40
+ height: var(--zd_size8) ;
41
+ line-height: var(--zd_size8);
42
+ }
43
+
44
+ .small.search {
45
+ padding: 0 var(--zd_size5) ;
46
+ }
47
+
48
+ .medium.search {
49
+ padding: var(--zd_size3) var(--zd_size20) 0 ;
50
+ }
51
+
52
+ .title {
53
+ margin-bottom: var(--zd_size6) ;
54
+ }
55
+
56
+ .groupTitle {
57
+ margin: var(--zd_size6) 0 ;
58
+ }
59
+
60
+ .listItemContainer {
61
+ padding: var(--zd_size10) 0 ;
62
+ }
63
+
64
+ .responsivelistItemContainer {
65
+ padding: var(--zd_size10) 0 0 ;
66
+ }
67
+
68
+ .readonly {
69
+ --textboxicon_icon_cursor: not-allowed;
70
+ }
71
+
72
+ .transparentContainer .arrowIcon {
73
+ opacity: 0;
74
+ visibility: hidden;
75
+ }
76
+
77
+ .transparentContainer:hover .arrowIcon {
78
+ opacity: 1;
79
+ visibility: visible;
80
+ }
81
+
82
+ .disable {
83
+ color: var(--zdt_select_disable_text);
84
+ }
85
+
86
+ .leftIcon {
87
+ position: absolute;
88
+ top: 0 ;
89
+ bottom: 0 ;
90
+ width: var(--zd_size30) ;
91
+ }
92
+
93
+ [dir=ltr] .leftIcon {
94
+ left: 0 ;
95
+ }
96
+
97
+ [dir=rtl] .leftIcon {
98
+ right: 0 ;
99
+ }
100
+
101
+ [dir=ltr] .iconSelect {
102
+ padding-left: var(--zd_size30) ;
103
+ }
104
+
105
+ [dir=rtl] .iconSelect {
106
+ padding-right: var(--zd_size30) ;
107
+ }
108
+
109
+ .dropBoxList {
110
+ padding: var(--zd_size10) 0 ;
111
+ }
112
+
113
+ .responsivedropBoxList {
114
+ padding: var(--zd_size10) 0 0 0 ;
115
+ }
116
+
117
+ .rotate {
118
+ transform: rotateX(180deg);
119
+ }
120
+
121
+ .iconOnHoverStyle .arrowIcon,
122
+ .iconOnHoverReadonly .arrowIcon,
123
+ .iconOnHoverReadonly:hover .arrowIcon {
124
+ opacity: 0;
125
+ visibility: hidden;
126
+ }
127
+
128
+ .iconOnHoverStyle:hover .arrowIcon {
129
+ opacity: 1;
130
+ visibility: visible;
131
+ }
132
+
133
+ .loader {
134
+ padding: var(--zd_size10) ;
135
135
  }
@@ -51,6 +51,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
51
51
 
52
52
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
53
53
 
54
+ 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); }
55
+
54
56
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
55
57
 
56
58
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -208,7 +210,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
208
210
  htmlId = _this$props.htmlId,
209
211
  needEffect = _this$props.needEffect,
210
212
  isLoading = _this$props.isLoading,
211
- dataSelectorId = _this$props.dataSelectorId;
213
+ dataSelectorId = _this$props.dataSelectorId,
214
+ customProps = _this$props.customProps;
215
+ var _customProps$suggesti = customProps.suggestionsProps,
216
+ suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
212
217
  i18nKeys = Object.assign({}, i18nKeys, {
213
218
  emptyText: i18nKeys.emptyText || emptyMessage,
214
219
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -341,7 +346,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
341
346
  a11y: {
342
347
  role: 'heading'
343
348
  }
344
- })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
349
+ })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
345
350
  activeId: selectedId,
346
351
  suggestions: suggestions,
347
352
  getRef: _this2.suggestionItemRef,
@@ -357,7 +362,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
357
362
  ariaParentRole: 'listbox',
358
363
  role: 'option'
359
364
  }
360
- }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
365
+ }, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
361
366
  isLoading: isFetchingOptions,
362
367
  options: options,
363
368
  searchString: searchStr,
@@ -45,6 +45,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
45
45
 
46
46
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
47
47
 
48
+ 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); }
49
+
48
50
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
49
51
 
50
52
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -410,7 +412,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
410
412
  i18nKeys = _this$props7.i18nKeys,
411
413
  htmlId = _this$props7.htmlId,
412
414
  isLoading = _this$props7.isLoading,
413
- dataSelectorId = _this$props7.dataSelectorId;
415
+ dataSelectorId = _this$props7.dataSelectorId,
416
+ customProps = _this$props7.customProps;
417
+ var _customProps$listItem = customProps.listItemProps,
418
+ listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
414
419
  i18nKeys = Object.assign({}, i18nKeys, {
415
420
  emptyText: i18nKeys.emptyText || emptyMessage,
416
421
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -536,7 +541,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
536
541
  var iconName = options.iconName,
537
542
  iconSize = options.iconSize,
538
543
  iconColor = options.iconColor;
539
- return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
544
+ return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
540
545
  key: options[idKey],
541
546
  value: options[valueKey],
542
547
  size: "medium",
@@ -560,7 +565,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
560
565
  ariaSelected: selectedId === options[idKey],
561
566
  ariaLabel: options[valueKey]
562
567
  }
563
- });
568
+ }, listItemProps));
564
569
  })) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
565
570
  isLoading: isFetchingOptions,
566
571
  options: options,
@@ -80,7 +80,8 @@ var GroupSelect_defaultProps = {
80
80
  isSearchClearOnClose: true,
81
81
  i18nKeys: {},
82
82
  iconOnHover: false,
83
- isLoading: false
83
+ isLoading: false,
84
+ customProps: {}
84
85
  };
85
86
  exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
86
87
  var SelectWithAvatar_defaultProps = {
@@ -105,7 +106,8 @@ var SelectWithAvatar_defaultProps = {
105
106
  isSearchClearOnClose: true,
106
107
  i18nKeys: {},
107
108
  needEffect: true,
108
- isLoading: false
109
+ isLoading: false,
110
+ customProps: {}
109
111
  };
110
112
  exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
111
113
  var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
@@ -117,5 +119,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
117
119
  needListBorder: false,
118
120
  needSearch: false,
119
121
  boxSize: 'default'
120
- }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _SelectWithIcon_defau);
122
+ }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _SelectWithIcon_defau);
121
123
  exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;
@@ -186,7 +186,8 @@ var GroupSelect_propTypes = {
186
186
  }),
187
187
  isLoading: _propTypes["default"].bool,
188
188
  dataSelectorId: _propTypes["default"].string,
189
- isDefaultSelectValue: _propTypes["default"].bool
189
+ isDefaultSelectValue: _propTypes["default"].bool,
190
+ customProps: _propTypes["default"].string
190
191
  };
191
192
  exports.GroupSelect_propTypes = GroupSelect_propTypes;
192
193
 
@@ -249,7 +250,8 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
249
250
  htmlId: _propTypes["default"].string,
250
251
  needEffect: _propTypes["default"].bool,
251
252
  isLoading: _propTypes["default"].bool,
252
- dataSelectorId: _propTypes["default"].string
253
+ dataSelectorId: _propTypes["default"].string,
254
+ customProps: _propTypes["default"].string
253
255
  });
254
256
 
255
257
  exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
@@ -305,6 +307,7 @@ var SelectWithIcon_propTypes = {
305
307
  searchBoxSize: _propTypes["default"].string,
306
308
  needResponsive: _propTypes["default"].bool,
307
309
  boxSize: _propTypes["default"].string,
308
- emptyMessage: _propTypes["default"].string
310
+ emptyMessage: _propTypes["default"].string,
311
+ customProps: _propTypes["default"].string
309
312
  };
310
313
  exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;