@zohodesk/components 1.0.0-temp-666 → 1.0.0-temp-667

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 (261) hide show
  1. package/README.md +3 -0
  2. package/es/AppContainer/AppContainer.js +1 -1
  3. package/es/Avatar/Avatar.js +1 -1
  4. package/es/Avatar/Avatar.module.css +11 -9
  5. package/es/AvatarTeam/AvatarTeam.js +1 -1
  6. package/es/AvatarTeam/AvatarTeam.module.css +21 -7
  7. package/es/Button/Button.module.css +97 -24
  8. package/es/Buttongroup/Buttongroup.module.css +37 -8
  9. package/es/CheckBox/CheckBox.js +1 -1
  10. package/es/CheckBox/CheckBox.module.css +29 -19
  11. package/es/DateTime/DateTime.module.css +39 -12
  12. package/es/DateTime/DateWidget.module.css +9 -5
  13. package/es/DateTime/YearView.module.css +17 -7
  14. package/es/DropBox/DropBox.js +1 -1
  15. package/es/DropBox/DropBox.module.css +47 -11
  16. package/es/DropDown/DropDownHeading.module.css +7 -3
  17. package/es/DropDown/DropDownItem.module.css +32 -6
  18. package/es/ListItem/ListContainer.js +1 -1
  19. package/es/ListItem/ListItem.js +1 -1
  20. package/es/ListItem/ListItem.module.css +69 -33
  21. package/es/ListItem/ListItemWithAvatar.js +1 -1
  22. package/es/ListItem/ListItemWithCheckBox.js +1 -1
  23. package/es/ListItem/ListItemWithIcon.js +1 -1
  24. package/es/ListItem/ListItemWithRadio.js +1 -1
  25. package/es/Modal/Modal.js +1 -1
  26. package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
  27. package/es/MultiSelect/MultiSelect.module.css +28 -11
  28. package/es/MultiSelect/SelectedOptions.js +1 -1
  29. package/es/MultiSelect/SelectedOptions.module.css +8 -2
  30. package/es/MultiSelect/Suggestions.js +1 -1
  31. package/es/PopOver/PopOver.module.css +1 -1
  32. package/es/Popup/Popup.js +1 -1
  33. package/es/Radio/Radio.module.css +18 -10
  34. package/es/Responsive/ResizeComponent.js +15 -82
  35. package/es/Responsive/ResizeObserver.js +2 -6
  36. package/es/Responsive/docs/style.module.css +17 -8
  37. package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  38. package/es/Ribbon/Ribbon.module.css +93 -28
  39. package/es/RippleEffect/RippleEffect.module.css +37 -44
  40. package/es/Select/Select.js +30 -8
  41. package/es/Select/Select.module.css +12 -2
  42. package/es/Select/docs/Select__default.docs.js +1 -1
  43. package/es/Stencils/Stencils.module.css +21 -3
  44. package/es/Switch/Switch.js +1 -1
  45. package/es/Switch/Switch.module.css +9 -9
  46. package/es/Tab/Tab.js +1 -1
  47. package/es/Tab/Tab.module.css +16 -7
  48. package/es/Tab/TabWrapper.js +1 -1
  49. package/es/Tab/Tabs.js +1 -1
  50. package/es/Tab/Tabs.module.css +42 -8
  51. package/es/Tab/docs/tabdocs.module.css +1 -1
  52. package/es/Tag/Tag.module.css +36 -14
  53. package/es/TextBox/TextBox.js +1 -1
  54. package/es/TextBox/TextBox.module.css +7 -11
  55. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  56. package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
  57. package/es/Textarea/Textarea.js +1 -1
  58. package/es/Textarea/Textarea.module.css +6 -7
  59. package/es/Tooltip/Tooltip.module.css +9 -8
  60. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
  61. package/es/beta/FocusRing/FocusRing.module.css +51 -26
  62. package/es/common/animation.module.css +219 -21
  63. package/es/common/basicReset.module.css +2 -12
  64. package/es/common/common.module.css +62 -18
  65. package/es/common/customscroll.module.css +17 -21
  66. package/es/common/docStyle.module.css +79 -32
  67. package/es/common/transition.module.css +50 -10
  68. package/es/deprecated/AdvancedMultiSelect.module.css +22 -8
  69. package/es/semantic/Button/semanticButton.module.css +3 -3
  70. package/lib/Accordion/Accordion.js +2 -2
  71. package/lib/Accordion/AccordionItem.js +2 -2
  72. package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
  73. package/lib/Animation/Animation.js +2 -2
  74. package/lib/Animation/docs/Animation__default.docs.js +2 -2
  75. package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
  76. package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
  77. package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
  78. package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
  79. package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
  80. package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
  81. package/lib/AppContainer/AppContainer.js +11 -4
  82. package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
  83. package/lib/Avatar/Avatar.js +3 -3
  84. package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
  85. package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
  86. package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
  87. package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
  88. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  89. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
  90. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
  91. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
  92. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
  93. package/lib/Button/Button.js +2 -2
  94. package/lib/Button/docs/Button__custom.docs.js +2 -2
  95. package/lib/Button/docs/Button__default.docs.js +2 -2
  96. package/lib/Buttongroup/Buttongroup.js +2 -2
  97. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
  98. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
  99. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
  100. package/lib/Card/Card.js +2 -2
  101. package/lib/Card/docs/Card__Custom.docs.js +2 -2
  102. package/lib/Card/docs/Card__Default.docs.js +2 -2
  103. package/lib/Card/docs/Card__Scroll.docs.js +2 -2
  104. package/lib/CheckBox/CheckBox.js +5 -4
  105. package/lib/CheckBox/CheckBox.module.css +12 -8
  106. package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
  107. package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
  108. package/lib/DateTime/CalendarView.js +2 -2
  109. package/lib/DateTime/DateTime.js +50 -22
  110. package/lib/DateTime/DateTime.module.css +1 -1
  111. package/lib/DateTime/DateTimePopupFooter.js +2 -2
  112. package/lib/DateTime/DateTimePopupHeader.js +2 -2
  113. package/lib/DateTime/DateWidget.js +14 -4
  114. package/lib/DateTime/DateWidget.module.css +0 -4
  115. package/lib/DateTime/DaysRow.js +2 -2
  116. package/lib/DateTime/Time.js +2 -2
  117. package/lib/DateTime/YearView.js +2 -2
  118. package/lib/DateTime/YearView.module.css +1 -0
  119. package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
  120. package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
  121. package/lib/DropBox/DropBox.js +4 -4
  122. package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
  123. package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
  124. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
  125. package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
  126. package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
  127. package/lib/DropDown/DropDown.js +2 -2
  128. package/lib/DropDown/DropDownHeading.js +2 -2
  129. package/lib/DropDown/DropDownItem.js +2 -2
  130. package/lib/DropDown/DropDownSearch.js +2 -2
  131. package/lib/DropDown/DropDownSeparator.js +2 -2
  132. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
  133. package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
  134. package/lib/Label/Label.js +2 -2
  135. package/lib/Label/docs/Label__clipped.docs.js +2 -2
  136. package/lib/Label/docs/Label__custom.docs.js +2 -2
  137. package/lib/Label/docs/Label__palette.docs.js +2 -2
  138. package/lib/Label/docs/Label__size.docs.js +2 -2
  139. package/lib/Label/docs/Label__type.docs.js +2 -2
  140. package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
  141. package/lib/Layout/docs/Layout__default.docs.js +2 -2
  142. package/lib/Layout/docs/Layout__four_Column.docs.js +2 -2
  143. package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
  144. package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
  145. package/lib/LightNightMode/Colors.json +496 -397
  146. package/lib/LightNightMode/docs/AlternativeColors.docs.js +25 -3
  147. package/lib/ListItem/ListContainer.js +8 -5
  148. package/lib/ListItem/ListItem.js +4 -4
  149. package/lib/ListItem/ListItem.module.css +18 -19
  150. package/lib/ListItem/ListItemWithAvatar.js +4 -4
  151. package/lib/ListItem/ListItemWithCheckBox.js +4 -4
  152. package/lib/ListItem/ListItemWithIcon.js +4 -4
  153. package/lib/ListItem/ListItemWithRadio.js +4 -4
  154. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
  155. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
  156. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
  157. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
  158. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
  159. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
  160. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
  161. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
  162. package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
  163. package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
  164. package/lib/Modal/Modal.js +3 -3
  165. package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
  166. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +120 -88
  167. package/lib/MultiSelect/AdvancedMultiSelect.js +99 -62
  168. package/lib/MultiSelect/EmptyState.js +2 -2
  169. package/lib/MultiSelect/MultiSelect.js +90 -64
  170. package/lib/MultiSelect/MultiSelect.module.css +15 -2
  171. package/lib/MultiSelect/MultiSelectHeader.js +2 -2
  172. package/lib/MultiSelect/MultiSelectWithAvatar.js +80 -55
  173. package/lib/MultiSelect/SelectedOptions.js +3 -3
  174. package/lib/MultiSelect/Suggestions.js +3 -3
  175. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
  176. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
  177. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
  178. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
  179. package/lib/PopOver/PopOver.js +13 -6
  180. package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
  181. package/lib/Popup/Popup.js +3 -3
  182. package/lib/Popup/__tests__/Popup.spec.js +2 -2
  183. package/lib/Provider/Config.js +3 -1
  184. package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
  185. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
  186. package/lib/Provider.js +34 -100
  187. package/lib/Radio/Radio.js +2 -2
  188. package/lib/Radio/Radio.module.css +8 -6
  189. package/lib/Radio/docs/Radio__custom.docs.js +2 -2
  190. package/lib/Radio/docs/Radio__default.docs.js +2 -2
  191. package/lib/Responsive/ResizeComponent.js +2 -2
  192. package/lib/Responsive/Responsive.js +2 -2
  193. package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
  194. package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
  195. package/lib/Responsive/sizeObservers.js +3 -3
  196. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
  197. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
  198. package/lib/Ribbon/Ribbon.js +2 -2
  199. package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
  200. package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
  201. package/lib/RippleEffect/RippleEffect.module.css +37 -15
  202. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
  203. package/lib/Select/GroupSelect.js +102 -79
  204. package/lib/Select/Select.js +142 -87
  205. package/lib/Select/Select.module.css +6 -0
  206. package/lib/Select/SelectWithAvatar.js +98 -73
  207. package/lib/Select/SelectWithIcon.js +99 -76
  208. package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
  209. package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
  210. package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
  211. package/lib/Select/docs/Select__default.docs.js +3 -3
  212. package/lib/Stencils/Stencils.js +2 -2
  213. package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
  214. package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
  215. package/lib/Switch/Switch.js +3 -3
  216. package/lib/Switch/Switch.module.css +3 -2
  217. package/lib/Switch/docs/Switch__custom.docs.js +2 -2
  218. package/lib/Switch/docs/Switch__default.docs.js +2 -2
  219. package/lib/Tab/Tab.js +1 -1
  220. package/lib/Tab/TabWrapper.js +1 -1
  221. package/lib/Tab/Tabs.js +70 -47
  222. package/lib/Tab/Tabs.module.css +2 -1
  223. package/lib/Tab/docs/Tab__default.docs.js +2 -2
  224. package/lib/Tag/Tag.js +3 -3
  225. package/lib/Tag/Tag.module.css +6 -2
  226. package/lib/Tag/docs/Tag__custom.docs.js +2 -2
  227. package/lib/Tag/docs/Tag__default.docs.js +2 -2
  228. package/lib/TextBox/TextBox.js +3 -3
  229. package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
  230. package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
  231. package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
  232. package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
  233. package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
  234. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
  235. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
  236. package/lib/Textarea/Textarea.js +3 -3
  237. package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
  238. package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
  239. package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
  240. package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
  241. package/lib/Tooltip/Tooltip.js +62 -10
  242. package/lib/Tooltip/Tooltip.module.css +6 -1
  243. package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
  244. package/lib/Tooltip/docs/Tooltip__default.docs.js +52 -13
  245. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
  246. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
  247. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  248. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
  249. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +2 -2
  250. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +2 -2
  251. package/lib/common/docStyle.module.css +6 -2
  252. package/lib/css.js +0 -2
  253. package/lib/{MultiSelect → deprecated}/AdvancedMultiSelect.module.css +1 -1
  254. package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
  255. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
  256. package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
  257. package/lib/index.js +10 -1
  258. package/lib/semantic/Button/Button.js +2 -2
  259. package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
  260. package/package.json +3 -3
  261. package/es/MultiSelect/AdvancedMultiSelect.module.css +0 -113
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
package/es/Modal/Modal.js CHANGED
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
@@ -1,8 +1,7 @@
1
1
  .wrapper {
2
2
  position: relative;
3
3
  }
4
- .disabled,
5
- .readOnly {
4
+ .disabled, .readOnly {
6
5
  cursor: not-allowed;
7
6
  }
8
7
  .container {
@@ -10,9 +9,9 @@
10
9
  composes: oflowy from '../common/common.module.css';
11
10
  }
12
11
  .hasBorder {
12
+ transition: border var(--zd_transition2) linear 0s;
13
13
  border-bottom-style: solid;
14
14
  border-bottom-width: 1px;
15
- transition: border var(--zd_transition2) linear 0s;
16
15
  }
17
16
  .borderColor_transparent {
18
17
  border-bottom-color: var(--zdt_multiselect_transparent_border);
@@ -47,16 +46,16 @@
47
46
  }
48
47
 
49
48
  .container.xmedium {
50
- padding-bottom: var(--zd_size3);
51
49
  min-height: var(--zd_size30);
50
+ padding-bottom: var(--zd_size3);
52
51
  }
53
52
 
54
53
  .delete {
54
+ font: inherit;
55
55
  padding: var(--zd_size2) var(--zd_size6);
56
56
  cursor: pointer;
57
57
  border: 0;
58
58
  background-color: var(--zdt_multiselect_delete_bg);
59
- font: inherit;
60
59
  }
61
60
  .delete,
62
61
  .defaultDelete {
@@ -86,13 +85,21 @@
86
85
  max-width: 100%;
87
86
  }
88
87
 
89
- .container.xmedium .tag {
88
+ [dir=ltr] .container.xmedium .tag {
90
89
  margin: var(--zd_size2) var(--zd_size10) 0 0;
91
90
  }
92
91
 
93
- .container.medium .tag {
92
+ [dir=rtl] .container.xmedium .tag {
93
+ margin: var(--zd_size2) 0 0 var(--zd_size10);
94
+ }
95
+
96
+ [dir=ltr] .container.medium .tag {
94
97
  margin: var(--zd_size5) var(--zd_size10) 0 0;
95
98
  }
99
+
100
+ [dir=rtl] .container.medium .tag {
101
+ margin: var(--zd_size5) 0 0 var(--zd_size10);
102
+ }
96
103
  .responsiveParent{
97
104
  width: 100%;
98
105
  }
@@ -131,9 +138,11 @@
131
138
  }
132
139
  .dark,
133
140
  .darkBox {
134
- background: var(--zdt_multiselect_darkmsg_bg);
135
141
  color: var(--zdt_multiselect_darkmsg_text);
136
142
  }
143
+ .dark, .darkBox {
144
+ background: var(--zdt_multiselect_darkmsg_bg);
145
+ }
137
146
 
138
147
  .hide {
139
148
  composes: vishidden from '../common/common.module.css';
@@ -157,9 +166,14 @@
157
166
  .custmInputWrapper {
158
167
  position: absolute;
159
168
  top: 0;
160
- left: 0;
161
169
  width: 100%;
162
170
  }
171
+ [dir=ltr] .custmInputWrapper {
172
+ left: 0;
173
+ }
174
+ [dir=rtl] .custmInputWrapper {
175
+ right: 0;
176
+ }
163
177
  .title {
164
178
  margin-bottom: var(--zd_size6);
165
179
  }
@@ -172,18 +186,21 @@
172
186
  .iconContainer {
173
187
  padding-top: var(--zd_size3)
174
188
  }
175
- .clearIconSpace {
189
+ [dir=ltr] .clearIconSpace {
176
190
  padding-right: var(--zd_size37)
177
191
  }
192
+ [dir=rtl] .clearIconSpace {
193
+ padding-left: var(--zd_size37)
194
+ }
178
195
  .search{
179
196
  padding: 0px 20px;
180
197
  }
181
198
  .more {
182
199
  font-size: var(--zd_font_size14);
183
200
  color: var(--zdt_multiselect_more_text);
201
+ font-family: inherit;
184
202
  cursor: pointer;
185
203
  margin-top: var(--zd_size5);
186
- font-family: inherit;
187
204
  background-color: var(--zdt_multiselect_delete_bg);
188
205
  border: 0;
189
206
  }
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
@@ -1,9 +1,15 @@
1
1
  .tag {
2
2
  max-width: 100%;
3
3
  }
4
- .xmedium {
4
+ [dir=ltr] .xmedium {
5
5
  margin: 0 var(--zd_size10) var(--zd_size2) 0;
6
6
  }
7
- .medium {
7
+ [dir=rtl] .xmedium {
8
+ margin: 0 0 var(--zd_size2) var(--zd_size10);
9
+ }
10
+ [dir=ltr] .medium {
8
11
  margin: var(--zd_size5) var(--zd_size10) 0 0;
9
12
  }
13
+ [dir=rtl] .medium {
14
+ margin: var(--zd_size5) 0 0 var(--zd_size10);
15
+ }
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
@@ -3,6 +3,6 @@
3
3
  background-color: var(--dot_white);
4
4
  }
5
5
  .target {
6
- cursor: pointer;
7
6
  composes: offSelection from '../common/common.module.css';
7
+ cursor: pointer;
8
8
  }
package/es/Popup/Popup.js CHANGED
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
@@ -7,7 +7,10 @@
7
7
  --radio_stroke_color: var(--zdt_radio_default_stroke);
8
8
  --radio_fill: none;
9
9
  --radio_inner_stroke_width: 0;
10
+ }[dir=ltr] .varClass {
10
11
  --radio_label_margin: 0 0 0 var(--zd_size6)/*rtl: 0 var(--zd_size6) 0 0*/;
12
+ }[dir=rtl] .varClass {
13
+ --radio_label_margin: 0 var(--zd_size6) 0 0;
11
14
  }
12
15
  .container {
13
16
  composes: varClass;
@@ -15,16 +18,16 @@
15
18
  .pointer {
16
19
  cursor: pointer;
17
20
  }
18
- .readonly,.disabled {
21
+ .readonly, .disabled {
19
22
  cursor: not-allowed;
20
23
  }
21
24
  .radio {
22
25
  composes: offSelection from '../common/common.module.css';
23
26
  width: var(--radio_width);
24
27
  height: var(--radio_height);
28
+ stroke: var(--radio_stroke_color);
25
29
  background: var(--radio_bg_color);
26
30
  border-radius: 50%;
27
- stroke: var(--radio_stroke_color);
28
31
  }
29
32
  .radio,
30
33
  .centerPath {
@@ -54,21 +57,26 @@
54
57
  }
55
58
  .centerPath {
56
59
  --radio_fill: inherit;
57
- transform-origin: center;
58
60
  stroke-width: var(--radio_inner_stroke_width);
61
+ transform-origin: center;
62
+ }
63
+ [dir=ltr] .checked .centerPath {
64
+ animation: circleAnimate var(--zd_transition3) ease forwards;
59
65
  }
60
- .checked .centerPath {
66
+ [dir=rtl] .checked .centerPath {
61
67
  animation: circleAnimate var(--zd_transition3) ease forwards;
62
68
  }
63
69
  .rdBoxprimary,
64
- .hoverEfffect:hover .hoverprimary,
65
- .hoverEfffect:focus .hoverprimary {
70
+ .hoverEfffect:hover .hoverprimary
71
+ /* .hoverEfffect:focus .hoverprimary */
72
+ {
66
73
  --radio_stroke_color: var(--zdt_radio_primary_stroke);
67
74
  }
68
75
 
69
76
  .rdBoxdanger,
70
- .hoverEfffect:hover .hoverdanger,
71
- .hoverEfffect:focus .hoverdanger {
77
+ .hoverEfffect:hover .hoverdanger
78
+ /* .hoverEfffect:focus .hoverdanger */
79
+ {
72
80
  --radio_stroke_color: var(--zdt_radio_danger_stroke);
73
81
  }
74
82
 
@@ -80,13 +88,13 @@
80
88
  }
81
89
 
82
90
  .active:hover .primaryLabel,
83
- .active:focus .primaryLabel,
91
+ /* .active:focus .primaryLabel, */
84
92
  .primarycheckedActive {
85
93
  --label_text_color: var(--zdt_radio_label_primary_text);
86
94
  }
87
95
 
88
96
  .active:hover .dangerLabel,
89
- .active:focus .dangerLabel,
97
+ /* .active:focus .dangerLabel, */
90
98
  .dangercheckedActive {
91
99
  --label_text_color: var(--zdt_radio_label_danger_text);
92
100
  }
@@ -13,33 +13,13 @@ export default class ResizeComponent extends React.Component {
13
13
  this.childrenCurrentList = [];
14
14
  this.widthCheck = debounce(this.widthCheck.bind(this), 10); // this.widthCheck = this.widthCheck.bind(this);
15
15
 
16
- this.onResize = debounce(this.onResize.bind(this), 500);
16
+ this.onResize = this.onResize.bind(this);
17
17
  this.onResizeMutation = this.onResizeMutation.bind(this);
18
18
  this.tabsObserver = new ResizeObserver(this.onResize);
19
19
  this.tabObserver = new MutationObserver(this.onResizeMutation);
20
20
  this.reset = this.reset.bind(this);
21
21
  this.constructChildren = this.constructChildren.bind(this);
22
22
  this.querySelector = this.querySelector.bind(this);
23
- this.onAnimationStart = this.onAnimationStart.bind(this);
24
- this.onAnimationEnd = this.onAnimationEnd.bind(this);
25
- this.isAnimating = false;
26
- this.state = {
27
- responsiveHook: true,
28
- validListCount: this.props.childrenList ? this.props.childrenList.length : 0,
29
- emptyDataCount: this.props.childrenList ? this.props.childrenList.length : 0
30
- };
31
- }
32
-
33
- onAnimationStart(e) {
34
- if (this.props.wrapperDivRef.current === e.target) {
35
- this.isAnimating = true;
36
- }
37
- }
38
-
39
- onAnimationEnd(e) {
40
- if (this.props.wrapperDivRef.current === e.target) {
41
- this.isAnimating = false;
42
- }
43
23
  }
44
24
 
45
25
  querySelector() {
@@ -92,8 +72,6 @@ export default class ResizeComponent extends React.Component {
92
72
 
93
73
  componentDidMount() {
94
74
  if (this.props.wrapperDivRef && this.props.wrapperDivRef.current) {
95
- this.props.wrapperDivRef.current.addEventListener('animationstart', this.onAnimationStart, false);
96
- this.props.wrapperDivRef.current.addEventListener('animationend', this.onAnimationEnd, false);
97
75
  this.tabsObserver.observe(this.props.wrapperDivRef.current);
98
76
  this.tabObserver.observe(this.props.wrapperDivRef.current, {
99
77
  characterData: true,
@@ -110,20 +88,13 @@ export default class ResizeComponent extends React.Component {
110
88
  }
111
89
 
112
90
  reset() {
113
- this.forceUpdate = true;
114
91
  this.childrenCurrentList = [];
115
92
  this.tabsObserver.disconnect();
116
93
  this.tabObserver && this.tabObserver.disconnect();
117
- this.props.wrapperDivRef.current.removeEventListener('animationstart', this.onAnimationStart);
118
- this.props.wrapperDivRef.current.removeEventListener('animationend', this.onAnimationEnd);
119
94
  }
120
95
 
121
- componentDidUpdate(prevProps, prevState) {
122
- // if (this.childrenCurrentList.length === 0) {
123
- // this.childrenCurrentList = this.querySelector();
124
- // this.widthCheck();
125
- // }
126
- if (this.state.responsiveHook !== prevState.responsiveHook && !this.state.responsiveHook) {
96
+ componentDidUpdate(prevProps) {
97
+ if (this.childrenCurrentList.length === 0) {
127
98
  this.childrenCurrentList = this.querySelector();
128
99
  this.widthCheck();
129
100
  }
@@ -145,27 +116,10 @@ export default class ResizeComponent extends React.Component {
145
116
  }
146
117
  }
147
118
 
148
- onResize(size) {
149
- if (size) {
150
- window.requestAnimationFrame(() => {
151
- if (this.forceUpdate || (this.height !== size.height || this.width !== size.width || this.scrollWidth !== size.scrollWidth || this.scrollHeight !== size.scrollHeight) && !this.isAnimating) {
152
- this.forceUpdate = false;
153
- this.height = size.height;
154
- this.width = size.width;
155
- this.scrollHeight = size.scrollHeight;
156
- this.scrollWidth = size.scrollWidth;
157
- this.childrenCurrentList = [];
158
- this.constructChildren(0, false);
159
- }
160
- });
161
- } else {
162
- this.childrenCurrentList = [];
163
- this.constructChildren(0, false);
164
- } // if (this.childrenCurrentList.length !== 0) {
165
- // this.childrenCurrentList = [];
166
- // this.constructChildren(0, false);
167
- //}
168
-
119
+ onResize() {
120
+ // if (this.childrenCurrentList.length !== 0) {
121
+ this.childrenCurrentList = [];
122
+ this.constructChildren(0, false); //}
169
123
  } // shouldComponentUpdate() {
170
124
  // return this.childrenCurrentList.length === 0
171
125
  // }
@@ -185,7 +139,7 @@ export default class ResizeComponent extends React.Component {
185
139
  let dataCount = 0;
186
140
  this.noSpaceForChildren = false;
187
141
 
188
- if (totalWidth + moreWidth <= moreWidth) {
142
+ if (totalWidth <= moreWidth) {
189
143
  this.noSpaceForChildren = true;
190
144
  } else {
191
145
  for (let i = 0; i < childrenWidthList.length; i++) {
@@ -198,14 +152,7 @@ export default class ResizeComponent extends React.Component {
198
152
 
199
153
  if (totalWidth <= _childrenTotalWidth) {
200
154
  dataCount = i;
201
-
202
- if (dataCount == 0) {
203
- this.noSpaceForChildren = true;
204
- }
205
-
206
155
  break;
207
- } else {
208
- dataCount++;
209
156
  }
210
157
  }
211
158
  }
@@ -220,45 +167,31 @@ export default class ResizeComponent extends React.Component {
220
167
  let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
221
168
  let responsive = arguments.length > 1 ? arguments[1] : undefined;
222
169
  const {
223
- childrenList
170
+ childrenList,
171
+ getData
224
172
  } = this.props; // If the data count is zero we assume that we can render all the items - data count will be zero only when we want to calculate the whole list width
225
- // let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
226
- // let responsive = arguments.length > 1 ? arguments[1] : undefined;
227
- //let isResize = arguments.length > 2 ? arguments[2] : false;
228
173
 
229
174
  dataCount = dataCount || childrenList && childrenList.length;
230
- let rederElementCount = this.querySelector().length;
231
- let emptyCount = childrenList.length - rederElementCount; // dataCount = responsive ? dataCount : dataCount || (childrenList && childrenList.length);
232
- //dataCount = !isResize ? dataCount : dataCount || (childrenList && childrenList.length);
233
-
234
- this.setState({
175
+ getData({
235
176
  responsiveHook: responsive,
236
- validListCount: this.noSpaceForChildren ? 0 : dataCount,
237
- emptyDataCount: emptyCount
177
+ validListCount: this.noSpaceForChildren ? 0 : dataCount
238
178
  });
239
179
  }
240
180
 
241
181
  render() {
242
- let {
243
- responsiveHook,
244
- validListCount,
245
- emptyDataCount
246
- } = this.state;
247
- return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children({
248
- responsiveHook,
249
- validListCount,
250
- emptyDataCount
251
- }));
182
+ return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children);
252
183
  }
253
184
 
254
185
  }
255
186
  ResizeComponent.propTypes = {
256
187
  children: PropTypes.node,
188
+ getData: PropTypes.func,
257
189
  resizeId: PropTypes.number,
258
190
  childrenList: PropTypes.array,
259
191
  wrapperDivRef: PropTypes.any,
260
192
  moreDivRef: PropTypes.any
261
193
  };
262
194
  ResizeComponent.defaultProps = {
195
+ getData: () => {},
263
196
  resizeId: null
264
197
  };
@@ -8,16 +8,12 @@ const mutationObserverOptions = {
8
8
  function getSize(element) {
9
9
  let {
10
10
  offsetHeight,
11
- offsetWidth,
12
- scrollHeight,
13
- scrollWidth
11
+ offsetWidth
14
12
  } = element; // const { height, width } = element.getBoundingClientRect();
15
13
 
16
14
  return {
17
15
  height: offsetHeight,
18
- width: offsetWidth,
19
- scrollHeight: scrollHeight,
20
- scrollWidth: scrollWidth
16
+ width: offsetWidth
21
17
  };
22
18
  }
23
19
 
@@ -1,18 +1,21 @@
1
1
  .header{
2
- background-color: #c60000;
3
- box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
4
2
  color: #fff;
5
3
  font-size: 24px;
4
+ background-color: #c60000;
6
5
  padding: 10px;
7
6
  text-align: center;
8
7
  margin: 10px 6px;
8
+ }[dir=ltr] .header{
9
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
10
+ }[dir=rtl] .header{
11
+ box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);
9
12
  }
10
13
  .box{
11
14
  height: 80px;
12
- background-color: #ffbb11;
13
- text-align: center;
14
15
  line-height: 80px;
15
16
  min-width: 300px;
17
+ background-color: #ffbb11;
18
+ text-align: center;
16
19
  margin:6px;
17
20
  padding: 0 100x;
18
21
  }
@@ -20,10 +23,10 @@
20
23
  background-color: #60de55
21
24
  }
22
25
  .subHeading{
23
- text-align: center;
24
- padding: 10px;
25
26
  position: sticky;
26
27
  top: 0;
28
+ text-align: center;
29
+ padding: 10px;
27
30
  background-color: #fff
28
31
  }
29
32
 
@@ -37,11 +40,17 @@
37
40
  position: absolute;
38
41
  width: 60%;
39
42
  top: 50%;
40
- transform: translate(-50%,-50%);
41
- left: 50%;
42
43
  border: 1px solid #aaa;
43
44
  border-radius: 4px
44
45
  }
46
+ [dir=ltr] .wrapper{
47
+ transform: translate(-50%,-50%);
48
+ left: 50%
49
+ }
50
+ [dir=rtl] .wrapper{
51
+ transform: translate(50%,-50%);
52
+ right: 50%
53
+ }
45
54
  .avatar{
46
55
  margin:20px auto
47
56
  }
@@ -1,4 +1,4 @@
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); }
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
2
 
3
3
  import React, { Component } from 'react';
4
4
  import PropTypes from 'prop-types';