@zohodesk/components 1.0.0-temp-41 → 1.0.0-temp-42

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 (289) hide show
  1. package/README.md +1 -0
  2. package/es/Appearance/dark/mode/darkMode.module.css +355 -392
  3. package/es/Appearance/default/mode/defaultMode.module.css +355 -394
  4. package/es/Avatar/Avatar.js +2 -1
  5. package/es/Avatar/__tests__/Avatar.spec.js +0 -1
  6. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -1
  7. package/es/Button/__tests__/Button.spec.js +0 -1
  8. package/es/Buttongroup/__test__/Buttongroup.spec.js +0 -1
  9. package/es/DateTime/DateTime.js +6 -3
  10. package/es/DateTime/DateWidget.js +5 -2
  11. package/es/DateTime/DateWidget.module.css +4 -0
  12. package/es/DateTime/YearView.js +6 -5
  13. package/es/DateTime/common.js +9 -2
  14. package/es/DateTime/dateFormatUtils/dateFormat.js +76 -57
  15. package/es/DateTime/dateFormatUtils/index.js +12 -7
  16. package/es/DateTime/dateFormatUtils/timeChange.js +4 -3
  17. package/es/DateTime/dateFormatUtils/yearChange.js +4 -3
  18. package/es/DateTime/validator.js +0 -1
  19. package/es/Label/__tests__/Label.spec.js +0 -2
  20. package/es/Layout/utils.js +2 -1
  21. package/es/ListItem/ListItem.js +0 -2
  22. package/es/ListItem/ListItemWithIcon.js +0 -2
  23. package/es/MultiSelect/AdvancedGroupMultiSelect.js +15 -10
  24. package/es/MultiSelect/AdvancedMultiSelect.js +6 -7
  25. package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  26. package/es/MultiSelect/MultiSelect.js +23 -11
  27. package/es/MultiSelect/MultiSelect.module.css +13 -8
  28. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -6
  29. package/es/MultiSelect/SelectedOptions.js +2 -3
  30. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -1
  31. package/es/Popup/Popup.js +14 -8
  32. package/es/Popup/viewPort.js +14 -9
  33. package/es/Provider/IdProvider.js +5 -4
  34. package/es/Provider/LibraryContext.js +6 -5
  35. package/es/Provider/NumberGenerator/NumberGenerator.js +17 -15
  36. package/es/Provider/ZindexProvider.js +5 -4
  37. package/es/Radio/Radio.js +2 -1
  38. package/es/Radio/Radio.module.css +2 -2
  39. package/es/Responsive/CustomResponsive.js +11 -8
  40. package/es/Responsive/ResizeComponent.js +3 -1
  41. package/es/Responsive/Responsive.js +12 -9
  42. package/es/Responsive/docs/Responsive__Custom.docs.js +49 -44
  43. package/es/Responsive/docs/Responsive__default.docs.js +77 -74
  44. package/es/Responsive/sizeObservers.js +5 -1
  45. package/es/Ribbon/__tests__/Ribbon.spec.js +0 -1
  46. package/es/RippleEffect/RippleEffect.js +4 -7
  47. package/es/RippleEffect/RippleEffect.module.css +0 -3
  48. package/es/Select/GroupSelect.js +2 -1
  49. package/es/Select/Select.js +16 -1
  50. package/es/Select/Select.module.css +1 -1
  51. package/es/Select/SelectWithAvatar.js +4 -7
  52. package/es/Select/docs/Select__default.docs.js +2 -1
  53. package/es/Stencils/__tests__/Stencils.spec.js +0 -1
  54. package/es/Tab/Tab.js +27 -26
  55. package/es/Tab/TabContent.js +17 -14
  56. package/es/Tab/TabContentWrapper.js +17 -14
  57. package/es/Tab/TabWrapper.js +15 -14
  58. package/es/Tab/Tabs.js +2 -1
  59. package/es/Tab/docs/Tab__default.docs.js +0 -1
  60. package/es/Tag/Tag.js +4 -10
  61. package/es/Tag/Tag.module.css +11 -14
  62. package/es/Tag/docs/Tag__default.docs.js +0 -70
  63. package/es/TextBox/__tests__/TextBox.spec.js +0 -1
  64. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  65. package/es/TextBoxIcon/TextBoxIcon.module.css +2 -5
  66. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -1
  67. package/es/Textarea/__tests__/Textarea.spec.js +0 -1
  68. package/es/Tooltip/Tooltip.js +0 -1
  69. package/es/a11y/FocusScope/FocusScope.js +10 -4
  70. package/es/beta/FocusRing/FocusRing.js +4 -1
  71. package/es/utils/Common.js +31 -11
  72. package/es/utils/datetime/common.js +6 -3
  73. package/es/utils/dropDownUtils.js +6 -5
  74. package/es/utils/getInitial.js +3 -1
  75. package/lib/Accordion/Accordion.js +3 -3
  76. package/lib/Accordion/AccordionItem.js +3 -3
  77. package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
  78. package/lib/Animation/Animation.js +3 -3
  79. package/lib/Animation/docs/Animation__default.docs.js +3 -3
  80. package/lib/Animation/docs/Animation__fadeIn.docs.js +3 -3
  81. package/lib/Animation/docs/Animation__scaleIn.docs.js +3 -3
  82. package/lib/Animation/docs/Animation__skewIn.docs.js +3 -3
  83. package/lib/Animation/docs/Animation__slideDown.docs.js +3 -3
  84. package/lib/Animation/docs/Animation__slideLeft.docs.js +3 -3
  85. package/lib/Animation/docs/Animation__zoomIn.docs.js +3 -3
  86. package/lib/AppContainer/AppContainer.js +3 -3
  87. package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
  88. package/lib/Appearance/dark/mode/darkMode.module.css +355 -392
  89. package/lib/Appearance/default/mode/defaultMode.module.css +355 -394
  90. package/lib/Avatar/Avatar.js +3 -3
  91. package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
  92. package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
  93. package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
  94. package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
  95. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  96. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
  97. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
  98. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +3 -3
  99. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
  100. package/lib/Button/Button.js +3 -3
  101. package/lib/Button/docs/Button__custom.docs.js +3 -3
  102. package/lib/Button/docs/Button__default.docs.js +3 -3
  103. package/lib/Buttongroup/Buttongroup.js +3 -3
  104. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
  105. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
  106. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
  107. package/lib/Card/Card.js +4 -4
  108. package/lib/Card/__tests__/Card.spec.js +1 -1
  109. package/lib/Card/docs/Card__Custom.docs.js +3 -3
  110. package/lib/Card/docs/Card__Default.docs.js +3 -3
  111. package/lib/Card/docs/Card__Scroll.docs.js +3 -3
  112. package/lib/Card/index.js +7 -7
  113. package/lib/CheckBox/CheckBox.js +3 -3
  114. package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
  115. package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
  116. package/lib/DateTime/CalendarView.js +4 -4
  117. package/lib/DateTime/DateTime.js +3 -3
  118. package/lib/DateTime/DateTimePopupFooter.js +3 -3
  119. package/lib/DateTime/DateTimePopupHeader.js +3 -3
  120. package/lib/DateTime/DateWidget.js +3 -3
  121. package/lib/DateTime/DateWidget.module.css +4 -0
  122. package/lib/DateTime/DaysRow.js +3 -3
  123. package/lib/DateTime/Time.js +3 -3
  124. package/lib/DateTime/YearView.js +3 -3
  125. package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
  126. package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
  127. package/lib/DateTime/constants.js +1 -1
  128. package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
  129. package/lib/DateTime/dateFormatUtils/index.js +13 -13
  130. package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
  131. package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
  132. package/lib/DateTime/objectUtils.js +2 -2
  133. package/lib/DropBox/DropBox.js +3 -3
  134. package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
  135. package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
  136. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
  137. package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
  138. package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
  139. package/lib/DropDown/DropDown.js +4 -4
  140. package/lib/DropDown/DropDownHeading.js +3 -3
  141. package/lib/DropDown/DropDownItem.js +3 -3
  142. package/lib/DropDown/DropDownSearch.js +3 -3
  143. package/lib/DropDown/DropDownSeparator.js +3 -3
  144. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
  145. package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
  146. package/lib/Label/Label.js +3 -3
  147. package/lib/Label/docs/Label__clipped.docs.js +3 -3
  148. package/lib/Label/docs/Label__custom.docs.js +3 -3
  149. package/lib/Label/docs/Label__palette.docs.js +3 -3
  150. package/lib/Label/docs/Label__size.docs.js +3 -3
  151. package/lib/Label/docs/Label__type.docs.js +3 -3
  152. package/lib/Layout/Box.js +1 -1
  153. package/lib/Layout/Container.js +1 -1
  154. package/lib/Layout/docs/Layout__Hidden.docs.js +3 -3
  155. package/lib/Layout/docs/Layout__default.docs.js +3 -3
  156. package/lib/Layout/docs/Layout__four_Column.docs.js +3 -3
  157. package/lib/Layout/docs/Layout__three_Column.docs.js +3 -3
  158. package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
  159. package/lib/Layout/index.js +4 -4
  160. package/lib/Layout/utils.js +2 -2
  161. package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
  162. package/lib/ListItem/ListItem.js +3 -3
  163. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  164. package/lib/ListItem/ListItemWithCheckBox.js +3 -3
  165. package/lib/ListItem/ListItemWithIcon.js +3 -3
  166. package/lib/ListItem/ListItemWithRadio.js +3 -3
  167. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
  168. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
  169. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
  170. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
  171. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
  172. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
  173. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
  174. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
  175. package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
  176. package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
  177. package/lib/Modal/Modal.js +3 -3
  178. package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
  179. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -10
  180. package/lib/MultiSelect/AdvancedMultiSelect.js +6 -9
  181. package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  182. package/lib/MultiSelect/EmptyState.js +3 -3
  183. package/lib/MultiSelect/MultiSelect.js +14 -11
  184. package/lib/MultiSelect/MultiSelect.module.css +13 -8
  185. package/lib/MultiSelect/MultiSelectHeader.js +3 -3
  186. package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -9
  187. package/lib/MultiSelect/SelectedOptions.js +5 -6
  188. package/lib/MultiSelect/Suggestions.js +5 -5
  189. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
  190. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
  191. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
  192. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
  193. package/lib/PopOver/PopOver.js +4 -4
  194. package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
  195. package/lib/Popup/Popup.js +3 -3
  196. package/lib/Popup/__tests__/Popup.spec.js +3 -3
  197. package/lib/Provider/IdProvider.js +3 -3
  198. package/lib/Provider/LibraryContext.js +3 -3
  199. package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
  200. package/lib/Provider/ZindexProvider.js +1 -1
  201. package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
  202. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
  203. package/lib/Provider.js +3 -3
  204. package/lib/Radio/Radio.js +6 -4
  205. package/lib/Radio/Radio.module.css +2 -2
  206. package/lib/Radio/docs/Radio__custom.docs.js +3 -3
  207. package/lib/Radio/docs/Radio__default.docs.js +3 -3
  208. package/lib/Responsive/CustomResponsive.js +4 -4
  209. package/lib/Responsive/RefWrapper.js +1 -1
  210. package/lib/Responsive/ResizeComponent.js +3 -3
  211. package/lib/Responsive/ResizeObserver.js +1 -1
  212. package/lib/Responsive/Responsive.js +6 -5
  213. package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
  214. package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
  215. package/lib/Responsive/sizeObservers.js +6 -5
  216. package/lib/Responsive/utils/index.js +3 -2
  217. package/lib/Responsive/utils/shallowCompare.js +1 -1
  218. package/lib/Ribbon/Ribbon.js +3 -3
  219. package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
  220. package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
  221. package/lib/RippleEffect/RippleEffect.js +4 -7
  222. package/lib/RippleEffect/RippleEffect.module.css +0 -3
  223. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +3 -3
  224. package/lib/Select/GroupSelect.js +3 -3
  225. package/lib/Select/Select.js +19 -5
  226. package/lib/Select/Select.module.css +1 -1
  227. package/lib/Select/SelectWithAvatar.js +7 -10
  228. package/lib/Select/SelectWithIcon.js +3 -3
  229. package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
  230. package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
  231. package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
  232. package/lib/Select/docs/Select__default.docs.js +3 -3
  233. package/lib/Stencils/Stencils.js +3 -3
  234. package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
  235. package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
  236. package/lib/Switch/Switch.js +3 -3
  237. package/lib/Switch/docs/Switch__custom.docs.js +3 -3
  238. package/lib/Switch/docs/Switch__default.docs.js +3 -3
  239. package/lib/Tab/Tab.js +1 -1
  240. package/lib/Tab/TabWrapper.js +1 -1
  241. package/lib/Tab/Tabs.js +3 -3
  242. package/lib/Tab/docs/Tab__default.docs.js +3 -3
  243. package/lib/Tab/index.js +10 -10
  244. package/lib/Tag/Tag.js +7 -13
  245. package/lib/Tag/Tag.module.css +11 -14
  246. package/lib/Tag/docs/Tag__custom.docs.js +3 -3
  247. package/lib/Tag/docs/Tag__default.docs.js +3 -73
  248. package/lib/TextBox/TextBox.js +3 -3
  249. package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
  250. package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
  251. package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
  252. package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
  253. package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
  254. package/lib/TextBoxIcon/TextBoxIcon.module.css +2 -5
  255. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
  256. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
  257. package/lib/Textarea/Textarea.js +3 -3
  258. package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
  259. package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
  260. package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
  261. package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
  262. package/lib/Tooltip/Tooltip.js +3 -3
  263. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
  264. package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
  265. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  266. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +3 -3
  267. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  268. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +3 -3
  269. package/lib/a11y/FocusScope/FocusScope.js +2 -2
  270. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
  271. package/lib/beta/FocusRing/FocusRing.js +3 -3
  272. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
  273. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
  274. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
  275. package/lib/index.js +310 -310
  276. package/lib/semantic/Button/Button.js +3 -3
  277. package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
  278. package/lib/utils/Common.js +20 -16
  279. package/lib/utils/datetime/common.js +10 -10
  280. package/lib/utils/dropDownUtils.js +2 -2
  281. package/lib/utils/shallowEqual.js +1 -1
  282. package/package.json +2 -2
  283. package/preprocess/componentAppearanceColors.js +65 -0
  284. package/preprocess/componentThemeColors.js +1 -1
  285. package/preprocess/ctaThemeColors.js +1 -1
  286. package/preprocess/index.js +2 -1
  287. package/preprocess/json/componentAppearanceVariableJson.js +1515 -0
  288. /package/preprocess/json/{componentVariableJson.js → componentThemeVariableJson.js} +0 -0
  289. /package/preprocess/json/{ctaVariableJson.js → ctaThemeVariableJson.js} +0 -0
@@ -93,7 +93,8 @@ export default class Avatar extends React.Component {
93
93
  /* this will cause error if user name already have some space need to move firstName lastName user preference pattern*/
94
94
 
95
95
 
96
- getInitialByFullName(fullName = '') {
96
+ getInitialByFullName() {
97
+ let fullName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
97
98
  fullName = (fullName || '').trim();
98
99
  let nameList = fullName.split(' ');
99
100
 
@@ -1,4 +1,3 @@
1
- import "core-js/modules/web.url.to-json";
2
1
  import React from 'react';
3
2
  import Avatar from '../Avatar';
4
3
  import renderer from 'react-test-renderer';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/web.url.to-json";
2
1
  import React from 'react';
3
2
  import AvatarTeam from '../AvatarTeam';
4
3
  import renderer from 'react-test-renderer';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/web.url.to-json";
2
1
  import React from 'react';
3
2
  import Button from '../Button';
4
3
  import TestUtils from 'react-dom/test-utils';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/web.url.to-json";
2
1
  import React from 'react';
3
2
  import Buttongroup from '../Buttongroup';
4
3
  import Button from '../../Button/Button';
@@ -16,7 +16,8 @@ import { getIsEmptyValue } from '../utils/Common';
16
16
  import { monthNamesDefault, monthNamesShortDefault, dayNamesDefault, dayNamesShortDefault, ampmTextDefault } from './constants';
17
17
  import { getHourDetails } from './dateFormatUtils';
18
18
 
19
- function title(date, year, month, monthNames = []) {
19
+ function title(date, year, month) {
20
+ let monthNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
20
21
  const HeadingText = `${monthNames[month] || ''} ${year}`;
21
22
  return HeadingText;
22
23
  }
@@ -179,7 +180,8 @@ export default class DateTime extends React.PureComponent {
179
180
  return hours;
180
181
  }
181
182
 
182
- handleGetSelectedDate(selectedInfo = {}) {
183
+ handleGetSelectedDate() {
184
+ let selectedInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
183
185
  const {
184
186
  min,
185
187
  max,
@@ -285,7 +287,8 @@ export default class DateTime extends React.PureComponent {
285
287
  }
286
288
  }
287
289
 
288
- handleChange(selectedInfo = {}) {
290
+ handleChange() {
291
+ let selectedInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
289
292
  const {
290
293
  onError,
291
294
  onChange,
@@ -708,7 +708,8 @@ class DateWidgetComponent extends React.Component {
708
708
  }
709
709
  }
710
710
 
711
- handleSelection(focusOrder = 0) {
711
+ handleSelection() {
712
+ let focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
712
713
  const isAllowedDateType = this.handleGetAllowedType();
713
714
 
714
715
  if (isAllowedDateType) {
@@ -907,7 +908,9 @@ class DateWidgetComponent extends React.Component {
907
908
  });
908
909
  }
909
910
 
910
- handleBlurSelectionRange(focusOrder = '', oldFocusOrder = '') {
911
+ handleBlurSelectionRange() {
912
+ let focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
913
+ let oldFocusOrder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
911
914
  const isAllowedDateType = this.handleGetAllowedType();
912
915
 
913
916
  if (isAllowedDateType) {
@@ -6,6 +6,10 @@
6
6
  .readOnly, .readOnly > input, .disabled {
7
7
  cursor: not-allowed;
8
8
  }
9
+ .readOnly,
10
+ .disabled {
11
+ composes: readonly from '../common/common.module.css';
12
+ }
9
13
  .enabled {
10
14
  cursor: pointer;
11
15
  }
@@ -185,11 +185,12 @@ export default class YearView extends React.PureComponent {
185
185
  onSelectYear && onSelectYear(year);
186
186
  }
187
187
 
188
- renderListItem({
189
- index,
190
- style: virtualizerStyle,
191
- ref
192
- }) {
188
+ renderListItem(_ref) {
189
+ let {
190
+ index,
191
+ style: virtualizerStyle,
192
+ ref
193
+ } = _ref;
193
194
  const {
194
195
  years
195
196
  } = this;
@@ -1,9 +1,16 @@
1
- export function bind(...handlers) {
1
+ export function bind() {
2
+ for (var _len = arguments.length, handlers = new Array(_len), _key = 0; _key < _len; _key++) {
3
+ handlers[_key] = arguments[_key];
4
+ }
5
+
2
6
  handlers.forEach(handler => {
3
7
  this[handler] = this[handler].bind(this);
4
8
  });
5
9
  }
6
- export function formatValue(values = [], valueField = 'id', textField = 'name') {
10
+ export function formatValue() {
11
+ let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
12
+ let valueField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'id';
13
+ let textField = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'name';
7
14
  return values && values.map(value => {
8
15
  let formattedValue = value;
9
16
 
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.string.replace";
2
-
3
1
  /* eslint-disable no-param-reassign */
4
2
 
5
3
  /** * Libraries ** */
@@ -14,7 +12,9 @@ import { formatDate } from '../../utils/datetime/common';
14
12
  import { defaultFormat, supportedPatterns, // patternChangeStr,
15
13
  patternSplitStr, INCONSTANT, flags } from '../constants';
16
14
 
17
- function getDateFormatString(dateFormatArr = [], datePatternArr = []) {
15
+ function getDateFormatString() {
16
+ let dateFormatArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
17
+ let datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
18
18
  return dateFormatArr.reduce((res, dateStr, index) => {
19
19
  const patternStr = datePatternArr[index] || '';
20
20
  res += dateStr + patternStr;
@@ -22,8 +22,14 @@ function getDateFormatString(dateFormatArr = [], datePatternArr = []) {
22
22
  }, '');
23
23
  }
24
24
 
25
- function getIsValidPattern(dateFormatArr = [], datePatternArr = []) {
26
- const isValueInArray = (possibleFormat = []) => possibleFormat.some(str => dateFormatArr.indexOf(str) >= 0);
25
+ function getIsValidPattern() {
26
+ let dateFormatArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
27
+ let datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
28
+
29
+ const isValueInArray = function () {
30
+ let possibleFormat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
31
+ return possibleFormat.some(str => dateFormatArr.indexOf(str) >= 0);
32
+ };
27
33
 
28
34
  const haveDay = isValueInArray(flags.day);
29
35
  const haveMonth = isValueInArray(flags.month);
@@ -32,12 +38,14 @@ function getIsValidPattern(dateFormatArr = [], datePatternArr = []) {
32
38
  return haveDay && haveMonth && (haveYear || !haveYear) && isValidPattern;
33
39
  }
34
40
 
35
- export function getDateFormatDetails(dateFormat = '', {
36
- isHideCurrentYear,
37
- value,
38
- timeZone,
39
- isDateTime
40
- }) {
41
+ export function getDateFormatDetails() {
42
+ let dateFormat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
43
+ let {
44
+ isHideCurrentYear,
45
+ value,
46
+ timeZone,
47
+ isDateTime
48
+ } = arguments.length > 1 ? arguments[1] : undefined;
41
49
  let dayInfo = {};
42
50
  let monthInfo = {};
43
51
  let yearInfo = {};
@@ -118,10 +126,11 @@ export function getDateFormatDetails(dateFormat = '', {
118
126
  };
119
127
  }
120
128
 
121
- function getDisplayFormatValue(dateVal, formatVal, {
122
- i18nShortMonths = [],
123
- i18nMonths = []
124
- } = {}) {
129
+ function getDisplayFormatValue(dateVal, formatVal) {
130
+ let {
131
+ i18nShortMonths = [],
132
+ i18nMonths = []
133
+ } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
125
134
  const {
126
135
  length,
127
136
  type
@@ -142,10 +151,11 @@ function getDisplayFormatValue(dateVal, formatVal, {
142
151
  return addZero(dateVal, length);
143
152
  }
144
153
 
145
- function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder, {
146
- i18nShortMonths,
147
- i18nMonths
148
- } = {}) {
154
+ function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder) {
155
+ let {
156
+ i18nShortMonths,
157
+ i18nMonths
158
+ } = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
149
159
  const dateString = dateFormatArr.reduce((res, formatVal, index) => {
150
160
  const {
151
161
  type: dateFormatVal = ''
@@ -162,11 +172,15 @@ function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder, {
162
172
  return dateString;
163
173
  }
164
174
 
165
- export function getDateTimeString(values = {}, dateFormatDetails = {}, isDateTime, {
166
- i18nShortMonths,
167
- i18nMonths,
168
- is24Hour
169
- } = {}) {
175
+ export function getDateTimeString() {
176
+ let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
177
+ let dateFormatDetails = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
178
+ let isDateTime = arguments.length > 2 ? arguments[2] : undefined;
179
+ let {
180
+ i18nShortMonths,
181
+ i18nMonths,
182
+ is24Hour
183
+ } = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
170
184
  const {
171
185
  day,
172
186
  month,
@@ -199,9 +213,10 @@ export function getDateTimeString(values = {}, dateFormatDetails = {}, isDateTim
199
213
 
200
214
  return `${dateString}${timeString}`;
201
215
  }
202
- export function getDateDetails(value, localValues, isDateTime, timeZone, {
203
- is24Hour
204
- }) {
216
+ export function getDateDetails(value, localValues, isDateTime, timeZone, _ref) {
217
+ let {
218
+ is24Hour
219
+ } = _ref;
205
220
  const {
206
221
  day,
207
222
  month,
@@ -251,9 +266,10 @@ export function getDateDetails(value, localValues, isDateTime, timeZone, {
251
266
 
252
267
  return localValues;
253
268
  }
254
- export function getIsValidDate(values, isDateTime, {
255
- is24Hour
256
- }) {
269
+ export function getIsValidDate(values, isDateTime, _ref2) {
270
+ let {
271
+ is24Hour
272
+ } = _ref2;
257
273
  const {
258
274
  day,
259
275
  month,
@@ -409,20 +425,22 @@ export function getSelectedDate(values, props) {
409
425
  };
410
426
  }
411
427
 
412
- function getDateFormatLength(type, length, formatVal = '', {
413
- i18nShortMonths,
414
- i18nMonths,
415
- selectedValue,
416
- day,
417
- month,
418
- year,
419
- hour,
420
- minute,
421
- noon,
422
- timeZone,
423
- isDateTime,
424
- is24Hour
425
- }) {
428
+ function getDateFormatLength(type, length) {
429
+ let formatVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
430
+ let {
431
+ i18nShortMonths,
432
+ i18nMonths,
433
+ selectedValue,
434
+ day,
435
+ month,
436
+ year,
437
+ hour,
438
+ minute,
439
+ noon,
440
+ timeZone,
441
+ isDateTime,
442
+ is24Hour
443
+ } = arguments.length > 3 ? arguments[3] : undefined;
426
444
  const {
427
445
  month: selectedMonth
428
446
  } = getDateDetails(selectedValue, {
@@ -449,19 +467,20 @@ function getDateFormatLength(type, length, formatVal = '', {
449
467
  return length;
450
468
  }
451
469
 
452
- export function getDateFormatSelection(dateFormatDetails, isDateTime, {
453
- i18nShortMonths,
454
- i18nMonths,
455
- selectedValue,
456
- day,
457
- month,
458
- year,
459
- hour,
460
- minute,
461
- noon,
462
- timeZone,
463
- is24Hour
464
- } = {}) {
470
+ export function getDateFormatSelection(dateFormatDetails, isDateTime) {
471
+ let {
472
+ i18nShortMonths,
473
+ i18nMonths,
474
+ selectedValue,
475
+ day,
476
+ month,
477
+ year,
478
+ hour,
479
+ minute,
480
+ noon,
481
+ timeZone,
482
+ is24Hour
483
+ } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
465
484
  const {
466
485
  dateFormatArr = [],
467
486
  patternArr = []
@@ -11,7 +11,9 @@ import { flags, INVALID_DATE } from '../constants';
11
11
  export function convertYearToTwoDigit(year) {
12
12
  return parseInt(year.toString().slice(-2));
13
13
  }
14
- export function addZero(value = '', length) {
14
+ export function addZero() {
15
+ let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
16
+ let length = arguments.length > 1 ? arguments[1] : undefined;
15
17
  let newValue = value.toString();
16
18
 
17
19
  for (let i = 0; i < length; i++) {
@@ -98,7 +100,9 @@ export function getYearDetails(yearLength) {
98
100
  currentYear: year
99
101
  };
100
102
  }
101
- export function convertTwoDigitToYear(digitValue = '', selectedYear = '') {
103
+ export function convertTwoDigitToYear() {
104
+ let digitValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
105
+ let selectedYear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
102
106
  const dateObj = new Date();
103
107
  let year = dateObj.getFullYear();
104
108
  const digitValueStr = addZero(digitValue.toString(), 2);
@@ -191,11 +195,12 @@ export function getIsEmptyYear(value, yearLength) {
191
195
  } = getYearDetails(yearLength);
192
196
  return getIsEmptyValue(value, startPoint, endPoint);
193
197
  }
194
- export function getIsCurrentYear({
195
- isDateTime,
196
- value,
197
- timeZone
198
- }) {
198
+ export function getIsCurrentYear(_ref) {
199
+ let {
200
+ isDateTime,
201
+ value,
202
+ timeZone
203
+ } = _ref;
199
204
  let isCurrentYear = false;
200
205
 
201
206
  if (value && value !== INVALID_DATE) {
@@ -1,9 +1,10 @@
1
1
  /** * Methods ** */
2
2
  import { getIsNewValueType, getIsNumberTyped, getIsDeleteTyped, getHourDetails, getMinuteDetails, getNoonDetails, getIsNoonValueTyped, getIsEmptyHour } from './index';
3
3
  import { getIsEmptyValue } from '../../utils/Common';
4
- export function getChangedHour(values, event, focusOrders, keyActions, {
5
- is24Hour = false
6
- } = {}) {
4
+ export function getChangedHour(values, event, focusOrders, keyActions) {
5
+ let {
6
+ is24Hour = false
7
+ } = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
7
8
  const {
8
9
  keyCode,
9
10
  which
@@ -1,8 +1,9 @@
1
1
  /** * Methods ** */
2
2
  import { getIsNewValueType, getIsNumberTyped, getIsDeleteTyped, getDayEnd, convertYearToTwoDigit, getYearDetails, convertTwoDigitToYear, getIsEmptyYear } from './index';
3
- export function getChangedYear(values, event, focusOrders, keyActions, {
4
- yearInfo
5
- }) {
3
+ export function getChangedYear(values, event, focusOrders, keyActions, _ref) {
4
+ let {
5
+ yearInfo
6
+ } = _ref;
6
7
  const {
7
8
  keyCode,
8
9
  which
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.string.replace";
2
1
  import typeChecker from './typeChecker';
3
2
  import { clone } from './objectUtils';
4
3
  const validator = {
@@ -1,5 +1,3 @@
1
- import "core-js/modules/web.url.to-json";
2
-
3
1
  /* eslint-disable no-undef */
4
2
  import React from 'react';
5
3
  import Label from '../Label';
@@ -15,7 +15,8 @@ export function createProps(propTypes, props, classNames) {
15
15
  export function isInteger(value) {
16
16
  return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
17
17
  }
18
- export function setProps(childProps, props, values = {}) {
18
+ export function setProps(childProps, props) {
19
+ let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
19
20
  Object.keys(values).map(value => {
20
21
  if (props[value]) {
21
22
  childProps[values[value]] = props[value];
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.string.replace";
2
-
3
1
  function _extends() { _extends = Object.assign || 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); }
4
2
 
5
3
  /**** Libraries ****/
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.string.replace";
2
-
3
1
  function _extends() { _extends = Object.assign || 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); }
4
2
 
5
3
  /**** Libraries ****/
@@ -254,7 +254,9 @@ class AdvancedGroupMultiSelect extends React.Component {
254
254
  }) : this.togglePopup(e);
255
255
  }
256
256
 
257
- handleClickSelectedOption(id = '', e) {
257
+ handleClickSelectedOption() {
258
+ let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
259
+ let e = arguments.length > 1 ? arguments[1] : undefined;
258
260
  let {
259
261
  selectedOptionIds
260
262
  } = this.state;
@@ -525,7 +527,11 @@ class AdvancedGroupMultiSelect extends React.Component {
525
527
  });
526
528
  }
527
529
 
528
- handleFetchOptions(...args) {
530
+ handleFetchOptions() {
531
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
532
+ args[_key] = arguments[_key];
533
+ }
534
+
529
535
  let [APICall, searchStr] = args;
530
536
  let {
531
537
  isFetchingOptions
@@ -638,7 +644,9 @@ class AdvancedGroupMultiSelect extends React.Component {
638
644
  this.handleChange([]);
639
645
  }
640
646
 
641
- handleChange(selectedOptions = [], e) {
647
+ handleChange() {
648
+ let selectedOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
649
+ let e = arguments.length > 1 ? arguments[1] : undefined;
642
650
  let {
643
651
  onChange,
644
652
  needToCloseOnSelect,
@@ -847,8 +855,7 @@ class AdvancedGroupMultiSelect extends React.Component {
847
855
  i18nKeys,
848
856
  a11y,
849
857
  isSearchClearOnSelect,
850
- palette,
851
- needEffect
858
+ palette
852
859
  } = this.props;
853
860
  let {
854
861
  clearText = 'Clear all'
@@ -877,7 +884,7 @@ class AdvancedGroupMultiSelect extends React.Component {
877
884
  let setAriaId = this.getNextAriaId();
878
885
  let ariaErrorId = this.getNextAriaId();
879
886
  return /*#__PURE__*/React.createElement("div", {
880
- className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
887
+ className: `${style.wrapper} ${isDisabled ? style.disabled : ''}`,
881
888
  "data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
882
889
  "data-title": isDisabled ? title : '',
883
890
  onClick: this.handleInputFocus
@@ -1053,8 +1060,7 @@ AdvancedGroupMultiSelect.defaultProps = {
1053
1060
  isPadding: false,
1054
1061
  i18nKeys: {},
1055
1062
  a11y: {},
1056
- isSearchClearOnSelect: true,
1057
- needEffect: PropTypes.bool
1063
+ isSearchClearOnSelect: true
1058
1064
  };
1059
1065
  AdvancedGroupMultiSelect.propTypes = {
1060
1066
  animationStyle: PropTypes.string,
@@ -1104,8 +1110,7 @@ AdvancedGroupMultiSelect.propTypes = {
1104
1110
  variant: PropTypes.string,
1105
1111
  htmlId: PropTypes.string,
1106
1112
  isSearchClearOnSelect: PropTypes.bool,
1107
- palette: PropTypes.oneOf(['default', 'dark']),
1108
- needEffect: true
1113
+ palette: PropTypes.oneOf(['default', 'dark'])
1109
1114
  };
1110
1115
 
1111
1116
  if (false) {
@@ -76,7 +76,9 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
76
76
  return suggestions;
77
77
  }
78
78
 
79
- handleChange(selectedOptions = [], e) {
79
+ handleChange() {
80
+ let selectedOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
81
+ let e = arguments.length > 1 ? arguments[1] : undefined;
80
82
  const {
81
83
  optionsNormalize,
82
84
  searchStr
@@ -347,8 +349,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
347
349
  borderColor,
348
350
  isBoxPaddingNeed,
349
351
  getFooter,
350
- customProps,
351
- needEffect
352
+ customProps
352
353
  } = this.props;
353
354
  let {
354
355
  SuggestionsProps = {},
@@ -381,7 +382,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
381
382
  const setAriaId = this.getNextAriaId();
382
383
  const ariaErrorId = this.getNextAriaId();
383
384
  return /*#__PURE__*/React.createElement("div", {
384
- className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
385
+ className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
385
386
  "data-id": dataIdMultiSelectComp,
386
387
  "data-title": isDisabled ? title : '',
387
388
  onClick: this.handleInputFocus
@@ -524,7 +525,6 @@ AdvancedMultiSelectComponent.propTypes = {
524
525
  //For grouping multiSelect
525
526
  getPublicMethods: PropTypes.func,
526
527
  optionType: PropTypes.oneOf(['default', 'avatar', 'icon']),
527
- needEffect: PropTypes.bool,
528
528
  animationStyle: PropTypes.string,
529
529
  defaultDropBoxPosition: PropTypes.oneOf(['bottom', 'top', 'left', 'right']),
530
530
  dropBoxSize: PropTypes.oneOf(['small', 'medium', 'large']),
@@ -599,8 +599,7 @@ AdvancedMultiSelectComponent.defaultProps = {
599
599
  borderColor: 'default',
600
600
  isBoxPaddingNeed: true,
601
601
  isSearchClearOnSelect: true,
602
- customProps: {},
603
- needEffect: true
602
+ customProps: {}
604
603
  };
605
604
  AdvancedMultiSelectComponent.displayName = 'AdvancedMultiSelect';
606
605
  const AdvancedMultiSelect = Popup(AdvancedMultiSelectComponent);
@@ -1,8 +1,8 @@
1
1
  .wrapper {
2
2
  position: relative;
3
3
  }
4
- .disabled, .readOnly {
5
- cursor: not-allowed;
4
+ .disabled {
5
+ composes: disabled from '../common/common.module.css';
6
6
  }
7
7
  .container {
8
8
  max-height: var(--zd_size120);
@@ -16,28 +16,28 @@
16
16
  .borderColor_transparent {
17
17
  border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
18
18
  }
19
- .effect .borderColor_transparent:hover {
19
+ .borderColor_transparent:hover {
20
20
  border-bottom-color: var(--zdt_advancedmultiselect_transparent_hover_border);
21
21
  }
22
- .effect .borderColor_transparent.active {
22
+ .borderColor_transparent.active {
23
23
  border-bottom-color: var(--zdt_advancedmultiselect_transparent_active_border);
24
24
  }
25
25
  .borderColor_default {
26
26
  border-bottom-color: var(--zdt_advancedmultiselect_default_border);
27
27
  }
28
- .effect .borderColor_default:hover {
28
+ .borderColor_default:hover {
29
29
  border-bottom-color: var(--zdt_advancedmultiselect_default_hover_border);
30
30
  }
31
- .effect .borderColor_default.active {
31
+ .borderColor_default.active {
32
32
  border-bottom-color: var(--zdt_advancedmultiselect_default_active_border);
33
33
  }
34
34
  .borderColor_dark {
35
35
  border-bottom-color: var(--zdt_advancedmultiselect_dark_border);
36
36
  }
37
- .effect .borderColor_dark:hover {
37
+ .borderColor_dark:hover {
38
38
  border-bottom-color: var(--zdt_advancedmultiselect_dark_hover_border);
39
39
  }
40
- .effect .borderColor_dark.active {
40
+ .borderColor_dark.active {
41
41
  border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
42
42
  }
43
43
  [dir=ltr] .container.medium {