@zohodesk/components 1.2.22 → 1.2.23

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 (660) hide show
  1. package/.DS_Store +0 -0
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +6 -0
  4. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +15 -0
  5. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +1 -0
  6. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +15 -0
  7. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +1 -0
  8. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +15 -0
  9. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +1 -0
  10. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +15 -0
  11. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +1 -0
  12. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +15 -0
  13. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +1 -0
  14. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +15 -0
  15. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +1 -0
  16. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +15 -0
  17. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +1 -0
  18. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +15 -0
  19. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +1 -0
  20. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +15 -0
  21. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +1 -0
  22. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +15 -0
  23. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +1 -0
  24. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +15 -0
  25. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +1 -0
  26. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +15 -0
  27. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +1 -0
  28. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +15 -0
  29. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +1 -0
  30. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +15 -0
  31. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +1 -0
  32. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +15 -0
  33. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +1 -0
  34. package/es/Accordion/Accordion.js +3 -7
  35. package/es/Accordion/AccordionItem.js +2 -4
  36. package/es/Animation/Animation.js +3 -3
  37. package/es/AppContainer/AppContainer.js +3 -14
  38. package/es/AppContainer/AppContainer.module.css +2 -2
  39. package/es/Avatar/Avatar.js +11 -23
  40. package/es/Avatar/Avatar.module.css +18 -18
  41. package/es/AvatarTeam/AvatarTeam.js +3 -3
  42. package/es/AvatarTeam/AvatarTeam.module.css +35 -35
  43. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +2 -1
  44. package/es/Button/Button.js +3 -4
  45. package/es/Button/css/Button.module.css +70 -70
  46. package/es/Buttongroup/Buttongroup.js +3 -3
  47. package/es/Buttongroup/Buttongroup.module.css +15 -13
  48. package/es/Card/Card.js +10 -21
  49. package/es/CheckBox/CheckBox.js +3 -5
  50. package/es/CheckBox/CheckBox.module.css +15 -15
  51. package/es/DateTime/CalendarView.js +20 -32
  52. package/es/DateTime/DateTime.js +6 -69
  53. package/es/DateTime/DateTime.module.css +40 -40
  54. package/es/DateTime/DateTimePopupFooter.js +1 -4
  55. package/es/DateTime/DateTimePopupHeader.js +2 -8
  56. package/es/DateTime/DateWidget.js +35 -98
  57. package/es/DateTime/DateWidget.module.css +5 -5
  58. package/es/DateTime/DaysRow.js +1 -4
  59. package/es/DateTime/Time.js +1 -10
  60. package/es/DateTime/YearView.js +4 -28
  61. package/es/DateTime/YearView.module.css +15 -15
  62. package/es/DateTime/common.js +0 -3
  63. package/es/DateTime/constants.js +0 -1
  64. package/es/DateTime/dateFormatUtils/dateFormat.js +30 -65
  65. package/es/DateTime/dateFormatUtils/dateFormats.js +1 -0
  66. package/es/DateTime/dateFormatUtils/dayChange.js +4 -13
  67. package/es/DateTime/dateFormatUtils/index.js +1 -31
  68. package/es/DateTime/dateFormatUtils/monthChange.js +0 -8
  69. package/es/DateTime/dateFormatUtils/timeChange.js +6 -22
  70. package/es/DateTime/dateFormatUtils/yearChange.js +2 -11
  71. package/es/DateTime/objectUtils.js +20 -14
  72. package/es/DateTime/typeChecker.js +0 -3
  73. package/es/DateTime/validator.js +6 -58
  74. package/es/DropBox/DropBox.js +2 -6
  75. package/es/DropBox/DropBoxElement/DropBoxElement.js +2 -8
  76. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -73
  77. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +3 -5
  78. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -3
  79. package/es/DropBox/css/DropBox.module.css +6 -6
  80. package/es/DropBox/props/defaultProps.js +2 -1
  81. package/es/DropBox/props/propTypes.js +2 -1
  82. package/es/DropDown/DropDown.js +1 -7
  83. package/es/DropDown/DropDown.module.css +2 -2
  84. package/es/DropDown/DropDownHeading.js +5 -4
  85. package/es/DropDown/DropDownHeading.module.css +6 -6
  86. package/es/DropDown/DropDownItem.js +0 -6
  87. package/es/DropDown/DropDownItem.module.css +12 -12
  88. package/es/DropDown/DropDownSearch.js +0 -4
  89. package/es/DropDown/DropDownSearch.module.css +3 -3
  90. package/es/DropDown/DropDownSeparator.js +0 -1
  91. package/es/DropDown/DropDownSeparator.module.css +2 -2
  92. package/es/DropDown/props/propTypes.js +2 -1
  93. package/es/Heading/Heading.js +3 -2
  94. package/es/Heading/Heading.module.css +2 -2
  95. package/es/Label/Label.js +3 -2
  96. package/es/Label/Label.module.css +5 -5
  97. package/es/Label/__tests__/Label.spec.js +2 -1
  98. package/es/Layout/Box.js +2 -15
  99. package/es/Layout/Container.js +3 -14
  100. package/es/Layout/Layout.module.css +15 -15
  101. package/es/Layout/index.js +2 -1
  102. package/es/Layout/utils.js +0 -1
  103. package/es/ListItem/ListContainer.js +3 -8
  104. package/es/ListItem/ListItem.js +3 -9
  105. package/es/ListItem/ListItem.module.css +38 -27
  106. package/es/ListItem/ListItemWithAvatar.js +3 -9
  107. package/es/ListItem/ListItemWithCheckBox.js +2 -7
  108. package/es/ListItem/ListItemWithIcon.js +3 -8
  109. package/es/ListItem/ListItemWithRadio.js +3 -7
  110. package/es/Modal/Modal.js +11 -28
  111. package/es/MultiSelect/AdvancedGroupMultiSelect.js +13 -89
  112. package/es/MultiSelect/AdvancedMultiSelect.js +9 -32
  113. package/es/MultiSelect/EmptyState.js +0 -2
  114. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
  115. package/es/MultiSelect/MultiSelect.js +30 -99
  116. package/es/MultiSelect/MultiSelect.module.css +31 -31
  117. package/es/MultiSelect/MultiSelectHeader.js +0 -3
  118. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -10
  119. package/es/MultiSelect/SelectedOptions.js +3 -6
  120. package/es/MultiSelect/SelectedOptions.module.css +5 -5
  121. package/es/MultiSelect/Suggestions.js +3 -7
  122. package/es/MultiSelect/props/propTypes.js +2 -2
  123. package/es/PopOver/PopOver.js +0 -16
  124. package/es/Popup/Popup.js +24 -77
  125. package/es/Popup/viewPort.js +4 -16
  126. package/es/Provider/IdProvider.js +5 -10
  127. package/es/Provider/LibraryContext.js +4 -6
  128. package/es/Provider/NumberGenerator/NumberGenerator.js +7 -21
  129. package/es/Provider/ZindexProvider.js +2 -9
  130. package/es/Radio/Radio.js +0 -3
  131. package/es/Radio/Radio.module.css +9 -9
  132. package/es/Responsive/CustomResponsive.js +18 -30
  133. package/es/Responsive/RefWrapper.js +7 -6
  134. package/es/Responsive/ResizeComponent.js +25 -35
  135. package/es/Responsive/ResizeObserver.js +6 -26
  136. package/es/Responsive/Responsive.js +20 -34
  137. package/es/Responsive/index.js +3 -1
  138. package/es/Responsive/sizeObservers.js +7 -28
  139. package/es/Responsive/utils/index.js +5 -7
  140. package/es/Responsive/utils/shallowCompare.js +2 -7
  141. package/es/Responsive/windowResizeObserver.js +0 -7
  142. package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -4
  143. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  144. package/es/ResponsiveDropBox/props/propTypes.js +2 -1
  145. package/es/Ribbon/Ribbon.js +2 -3
  146. package/es/Ribbon/Ribbon.module.css +48 -45
  147. package/es/RippleEffect/RippleEffect.js +3 -1
  148. package/es/Select/GroupSelect.js +14 -58
  149. package/es/Select/Select.js +34 -80
  150. package/es/Select/Select.module.css +23 -23
  151. package/es/Select/SelectWithAvatar.js +4 -17
  152. package/es/Select/SelectWithIcon.js +5 -46
  153. package/es/Select/props/propTypes.js +2 -2
  154. package/es/Stencils/Stencils.js +3 -3
  155. package/es/Stencils/Stencils.module.css +11 -11
  156. package/es/Switch/Switch.js +3 -5
  157. package/es/Switch/Switch.module.css +23 -23
  158. package/es/Tab/Tab.js +4 -4
  159. package/es/Tab/Tab.module.css +14 -14
  160. package/es/Tab/TabContent.js +0 -1
  161. package/es/Tab/TabContentWrapper.js +8 -6
  162. package/es/Tab/TabWrapper.js +2 -5
  163. package/es/Tab/Tabs.js +7 -54
  164. package/es/Tab/Tabs.module.css +22 -22
  165. package/es/Tab/props/defaultProps.js +2 -1
  166. package/es/Tab/props/propTypes.js +3 -1
  167. package/es/Tag/Tag.js +3 -6
  168. package/es/Tag/Tag.module.css +25 -24
  169. package/es/TextBox/TextBox.js +3 -16
  170. package/es/TextBox/TextBox.module.css +9 -9
  171. package/es/TextBoxIcon/TextBoxIcon.js +2 -9
  172. package/es/TextBoxIcon/TextBoxIcon.module.css +7 -7
  173. package/es/TextBoxIcon/props/propTypes.js +2 -1
  174. package/es/Textarea/Textarea.js +3 -12
  175. package/es/Textarea/Textarea.module.css +21 -21
  176. package/es/Tooltip/Tooltip.js +14 -58
  177. package/es/Tooltip/Tooltip.module.css +5 -5
  178. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -3
  179. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -7
  180. package/es/common/animation.module.css +8 -8
  181. package/es/common/avatarsizes.module.css +16 -16
  182. package/es/common/basicReset.module.css +3 -3
  183. package/es/common/common.module.css +24 -24
  184. package/es/common/customscroll.module.css +2 -2
  185. package/es/deprecated/PortalLayer/PortalLayer.js +20 -25
  186. package/es/semantic/Button/Button.js +2 -3
  187. package/es/semantic/Button/semanticButton.module.css +1 -1
  188. package/es/utils/Common.js +9 -54
  189. package/es/utils/ContextOptimizer.js +5 -4
  190. package/es/utils/constructFullName.js +0 -2
  191. package/es/utils/datetime/common.js +5 -16
  192. package/es/utils/debounce.js +1 -5
  193. package/es/utils/dropDownUtils.js +11 -68
  194. package/es/utils/getInitial.js +0 -4
  195. package/es/utils/shallowEqual.js +0 -6
  196. package/es/v1/Accordion/Accordion.js +3 -4
  197. package/es/v1/Accordion/AccordionItem.js +2 -4
  198. package/es/v1/Animation/Animation.js +3 -1
  199. package/es/v1/AppContainer/AppContainer.js +3 -9
  200. package/es/v1/Avatar/Avatar.js +6 -18
  201. package/es/v1/AvatarTeam/AvatarTeam.js +0 -1
  202. package/es/v1/Button/Button.js +3 -3
  203. package/es/v1/Card/Card.js +8 -16
  204. package/es/v1/CheckBox/CheckBox.js +3 -6
  205. package/es/v1/DateTime/CalendarView.js +20 -32
  206. package/es/v1/DateTime/DateTime.js +6 -69
  207. package/es/v1/DateTime/DateTimePopupFooter.js +1 -4
  208. package/es/v1/DateTime/DateTimePopupHeader.js +2 -8
  209. package/es/v1/DateTime/DateWidget.js +35 -98
  210. package/es/v1/DateTime/DaysRow.js +1 -4
  211. package/es/v1/DateTime/Time.js +1 -10
  212. package/es/v1/DateTime/YearView.js +4 -28
  213. package/es/v1/DropBox/DropBox.js +2 -6
  214. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +2 -8
  215. package/es/v1/DropBox/props/defaultProps.js +2 -1
  216. package/es/v1/DropBox/props/propTypes.js +2 -1
  217. package/es/v1/DropDown/DropDown.js +0 -3
  218. package/es/v1/DropDown/DropDownHeading.js +2 -2
  219. package/es/v1/DropDown/DropDownItem.js +0 -5
  220. package/es/v1/DropDown/DropDownSearch.js +2 -3
  221. package/es/v1/DropDown/props/propTypes.js +2 -1
  222. package/es/v1/Heading/Heading.js +3 -1
  223. package/es/v1/Layout/Box.js +2 -15
  224. package/es/v1/Layout/Container.js +3 -14
  225. package/es/v1/ListItem/ListContainer.js +3 -8
  226. package/es/v1/ListItem/ListItem.js +3 -10
  227. package/es/v1/ListItem/ListItemWithAvatar.js +1 -9
  228. package/es/v1/ListItem/ListItemWithCheckBox.js +2 -8
  229. package/es/v1/ListItem/ListItemWithIcon.js +3 -9
  230. package/es/v1/ListItem/ListItemWithRadio.js +3 -8
  231. package/es/v1/Modal/Modal.js +1 -17
  232. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +15 -90
  233. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -32
  234. package/es/v1/MultiSelect/EmptyState.js +0 -2
  235. package/es/v1/MultiSelect/MultiSelect.js +31 -100
  236. package/es/v1/MultiSelect/MultiSelectHeader.js +0 -3
  237. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +3 -11
  238. package/es/v1/MultiSelect/SelectedOptions.js +3 -6
  239. package/es/v1/MultiSelect/Suggestions.js +3 -7
  240. package/es/v1/MultiSelect/props/propTypes.js +2 -2
  241. package/es/v1/PopOver/PopOver.js +0 -11
  242. package/es/v1/Popup/Popup.js +24 -77
  243. package/es/v1/Provider/IdProvider.js +5 -10
  244. package/es/v1/Provider/LibraryContext.js +4 -6
  245. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +7 -21
  246. package/es/v1/Provider/ZindexProvider.js +2 -9
  247. package/es/v1/Radio/Radio.js +2 -5
  248. package/es/v1/Responsive/CustomResponsive.js +18 -30
  249. package/es/v1/Responsive/RefWrapper.js +7 -6
  250. package/es/v1/Responsive/ResizeComponent.js +25 -35
  251. package/es/v1/Responsive/ResizeObserver.js +6 -26
  252. package/es/v1/Responsive/Responsive.js +20 -34
  253. package/es/v1/Responsive/index.js +3 -1
  254. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -1
  255. package/es/v1/ResponsiveDropBox/props/propTypes.js +2 -1
  256. package/es/v1/Select/GroupSelect.js +14 -58
  257. package/es/v1/Select/Select.js +38 -82
  258. package/es/v1/Select/SelectWithAvatar.js +4 -17
  259. package/es/v1/Select/SelectWithIcon.js +5 -46
  260. package/es/v1/Select/props/propTypes.js +2 -2
  261. package/es/v1/Stencils/Stencils.js +0 -2
  262. package/es/v1/Switch/Switch.js +3 -6
  263. package/es/v1/Tab/Tab.js +3 -3
  264. package/es/v1/Tab/TabContent.js +0 -1
  265. package/es/v1/Tab/TabContentWrapper.js +8 -6
  266. package/es/v1/Tab/TabWrapper.js +2 -5
  267. package/es/v1/Tab/Tabs.js +9 -54
  268. package/es/v1/Tab/props/defaultProps.js +2 -1
  269. package/es/v1/Tab/props/propTypes.js +3 -1
  270. package/es/v1/Tab/v1Tab.module.css +14 -14
  271. package/es/v1/Tab/v1Tabs.module.css +22 -22
  272. package/es/v1/Tag/Tag.js +1 -5
  273. package/es/v1/TextBox/TextBox.js +0 -14
  274. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -6
  275. package/es/v1/TextBoxIcon/props/propTypes.js +2 -1
  276. package/es/v1/Textarea/Textarea.js +3 -10
  277. package/es/v1/Tooltip/Tooltip.js +14 -58
  278. package/es/v1/Typography/Typography.js +0 -2
  279. package/es/v1/Typography/css/Typography.module.css +31 -31
  280. package/es/v1/Typography/css/cssJSLogic.js +0 -3
  281. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -1
  282. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  283. package/es/v1/semantic/Button/Button.js +2 -1
  284. package/lib/Accordion/Accordion.js +18 -42
  285. package/lib/Accordion/AccordionItem.js +18 -40
  286. package/lib/Accordion/index.js +0 -3
  287. package/lib/Accordion/props/propTypes.js +0 -3
  288. package/lib/Animation/Animation.js +18 -38
  289. package/lib/Animation/props/propTypes.js +0 -3
  290. package/lib/AppContainer/AppContainer.js +20 -58
  291. package/lib/AppContainer/AppContainer.module.css +2 -2
  292. package/lib/AppContainer/props/propTypes.js +0 -3
  293. package/lib/Avatar/Avatar.js +38 -78
  294. package/lib/Avatar/Avatar.module.css +18 -18
  295. package/lib/Avatar/__tests__/Avatar.spec.js +71 -95
  296. package/lib/Avatar/props/propTypes.js +0 -3
  297. package/lib/AvatarTeam/AvatarTeam.js +30 -52
  298. package/lib/AvatarTeam/AvatarTeam.module.css +35 -35
  299. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +61 -77
  300. package/lib/AvatarTeam/props/propTypes.js +0 -3
  301. package/lib/Button/Button.js +22 -33
  302. package/lib/Button/__tests__/Button.spec.js +48 -65
  303. package/lib/Button/css/Button.module.css +70 -70
  304. package/lib/Button/css/cssJSLogic.js +17 -18
  305. package/lib/Button/index.js +0 -3
  306. package/lib/Button/props/defaultProps.js +0 -2
  307. package/lib/Button/props/propTypes.js +0 -3
  308. package/lib/Buttongroup/Buttongroup.js +12 -32
  309. package/lib/Buttongroup/Buttongroup.module.css +15 -13
  310. package/lib/Buttongroup/__tests__/Buttongroup.spec.js +10 -18
  311. package/lib/Buttongroup/props/propTypes.js +0 -3
  312. package/lib/Card/Card.js +46 -102
  313. package/lib/Card/index.js +0 -4
  314. package/lib/Card/props/propTypes.js +0 -3
  315. package/lib/CheckBox/CheckBox.js +47 -71
  316. package/lib/CheckBox/CheckBox.module.css +15 -15
  317. package/lib/CheckBox/props/propTypes.js +0 -3
  318. package/lib/DateTime/CalendarView.js +42 -82
  319. package/lib/DateTime/DateTime.js +156 -244
  320. package/lib/DateTime/DateTime.module.css +40 -40
  321. package/lib/DateTime/DateTimePopupFooter.js +8 -33
  322. package/lib/DateTime/DateTimePopupHeader.js +17 -49
  323. package/lib/DateTime/DateWidget.js +249 -350
  324. package/lib/DateTime/DateWidget.module.css +5 -5
  325. package/lib/DateTime/DaysRow.js +5 -28
  326. package/lib/DateTime/Time.js +32 -75
  327. package/lib/DateTime/YearView.js +27 -76
  328. package/lib/DateTime/YearView.module.css +15 -15
  329. package/lib/DateTime/common.js +0 -6
  330. package/lib/DateTime/constants.js +0 -1
  331. package/lib/DateTime/dateFormatUtils/dateFormat.js +122 -187
  332. package/lib/DateTime/dateFormatUtils/dateFormats.js +1 -0
  333. package/lib/DateTime/dateFormatUtils/dayChange.js +7 -15
  334. package/lib/DateTime/dateFormatUtils/index.js +16 -73
  335. package/lib/DateTime/dateFormatUtils/monthChange.js +9 -20
  336. package/lib/DateTime/dateFormatUtils/timeChange.js +22 -54
  337. package/lib/DateTime/dateFormatUtils/yearChange.js +11 -23
  338. package/lib/DateTime/index.js +0 -2
  339. package/lib/DateTime/objectUtils.js +20 -24
  340. package/lib/DateTime/props/propTypes.js +1 -11
  341. package/lib/DateTime/typeChecker.js +0 -4
  342. package/lib/DateTime/validator.js +10 -73
  343. package/lib/DropBox/DropBox.js +21 -45
  344. package/lib/DropBox/DropBoxElement/DropBoxElement.js +40 -60
  345. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -73
  346. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +34 -42
  347. package/lib/DropBox/DropBoxElement/props/propTypes.js +0 -3
  348. package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +9 -14
  349. package/lib/DropBox/css/DropBox.module.css +6 -6
  350. package/lib/DropBox/css/cssJSLogic.js +1 -3
  351. package/lib/DropBox/props/defaultProps.js +4 -8
  352. package/lib/DropBox/props/propTypes.js +4 -10
  353. package/lib/DropDown/DropDown.js +5 -51
  354. package/lib/DropDown/DropDown.module.css +2 -2
  355. package/lib/DropDown/DropDownHeading.js +20 -39
  356. package/lib/DropDown/DropDownHeading.module.css +6 -6
  357. package/lib/DropDown/DropDownItem.js +20 -42
  358. package/lib/DropDown/DropDownItem.module.css +12 -12
  359. package/lib/DropDown/DropDownSearch.js +17 -40
  360. package/lib/DropDown/DropDownSearch.module.css +3 -3
  361. package/lib/DropDown/DropDownSeparator.js +4 -24
  362. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  363. package/lib/DropDown/index.js +0 -9
  364. package/lib/DropDown/props/propTypes.js +4 -10
  365. package/lib/Heading/Heading.js +15 -37
  366. package/lib/Heading/Heading.module.css +2 -2
  367. package/lib/Heading/props/propTypes.js +0 -3
  368. package/lib/Label/Label.js +21 -41
  369. package/lib/Label/Label.module.css +5 -5
  370. package/lib/Label/__tests__/Label.spec.js +34 -48
  371. package/lib/Label/props/propTypes.js +0 -3
  372. package/lib/Layout/Box.js +15 -35
  373. package/lib/Layout/Container.js +14 -33
  374. package/lib/Layout/Layout.module.css +15 -15
  375. package/lib/Layout/index.js +0 -3
  376. package/lib/Layout/props/propTypes.js +0 -3
  377. package/lib/Layout/utils.js +0 -11
  378. package/lib/ListItem/ListContainer.js +30 -55
  379. package/lib/ListItem/ListItem.js +45 -74
  380. package/lib/ListItem/ListItem.module.css +38 -27
  381. package/lib/ListItem/ListItemWithAvatar.js +48 -80
  382. package/lib/ListItem/ListItemWithCheckBox.js +40 -70
  383. package/lib/ListItem/ListItemWithIcon.js +44 -73
  384. package/lib/ListItem/ListItemWithRadio.js +42 -71
  385. package/lib/ListItem/index.js +0 -7
  386. package/lib/ListItem/props/propTypes.js +4 -6
  387. package/lib/Modal/Modal.js +10 -45
  388. package/lib/Modal/props/propTypes.js +0 -3
  389. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +166 -293
  390. package/lib/MultiSelect/AdvancedMultiSelect.js +125 -202
  391. package/lib/MultiSelect/EmptyState.js +24 -45
  392. package/lib/MultiSelect/MobileHeader/MobileHeader.js +5 -14
  393. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
  394. package/lib/MultiSelect/MobileHeader/props/propTypes.js +0 -3
  395. package/lib/MultiSelect/MultiSelect.js +214 -333
  396. package/lib/MultiSelect/MultiSelect.module.css +31 -31
  397. package/lib/MultiSelect/MultiSelectHeader.js +7 -29
  398. package/lib/MultiSelect/MultiSelectWithAvatar.js +43 -85
  399. package/lib/MultiSelect/SelectedOptions.js +17 -43
  400. package/lib/MultiSelect/SelectedOptions.module.css +5 -5
  401. package/lib/MultiSelect/Suggestions.js +32 -64
  402. package/lib/MultiSelect/index.js +0 -5
  403. package/lib/MultiSelect/props/defaultProps.js +0 -2
  404. package/lib/MultiSelect/props/propTypes.js +4 -14
  405. package/lib/PopOver/PopOver.js +47 -94
  406. package/lib/PopOver/index.js +0 -4
  407. package/lib/PopOver/props/propTypes.js +0 -3
  408. package/lib/Popup/Popup.js +81 -158
  409. package/lib/Popup/viewPort.js +14 -28
  410. package/lib/Provider/AvatarSize.js +0 -4
  411. package/lib/Provider/Config.js +0 -2
  412. package/lib/Provider/CssProvider.js +0 -4
  413. package/lib/Provider/IdProvider.js +6 -17
  414. package/lib/Provider/LibraryContext.js +15 -35
  415. package/lib/Provider/LibraryContextInit.js +0 -4
  416. package/lib/Provider/NumberGenerator/NumberGenerator.js +15 -44
  417. package/lib/Provider/ZindexProvider.js +3 -15
  418. package/lib/Provider/index.js +0 -5
  419. package/lib/Radio/Radio.js +36 -60
  420. package/lib/Radio/Radio.module.css +9 -9
  421. package/lib/Radio/__tests__/Radio.spec.js +103 -134
  422. package/lib/Radio/props/propTypes.js +0 -3
  423. package/lib/Responsive/CustomResponsive.js +29 -73
  424. package/lib/Responsive/RefWrapper.js +11 -17
  425. package/lib/Responsive/ResizeComponent.js +36 -62
  426. package/lib/Responsive/ResizeObserver.js +10 -24
  427. package/lib/Responsive/Responsive.js +30 -80
  428. package/lib/Responsive/index.js +0 -4
  429. package/lib/Responsive/props/propTypes.js +0 -3
  430. package/lib/Responsive/sizeObservers.js +17 -53
  431. package/lib/Responsive/utils/index.js +3 -11
  432. package/lib/Responsive/utils/shallowCompare.js +2 -11
  433. package/lib/Responsive/windowResizeObserver.js +0 -8
  434. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +17 -45
  435. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  436. package/lib/ResponsiveDropBox/props/propTypes.js +4 -9
  437. package/lib/Ribbon/Ribbon.js +13 -33
  438. package/lib/Ribbon/Ribbon.module.css +48 -45
  439. package/lib/Ribbon/__tests__/Ribbon.spec.js +14 -24
  440. package/lib/Ribbon/props/propTypes.js +0 -3
  441. package/lib/RippleEffect/RippleEffect.js +10 -18
  442. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +22 -34
  443. package/lib/RippleEffect/props/propTypes.js +0 -3
  444. package/lib/Select/GroupSelect.js +130 -229
  445. package/lib/Select/Select.js +212 -296
  446. package/lib/Select/Select.module.css +23 -23
  447. package/lib/Select/SelectWithAvatar.js +56 -102
  448. package/lib/Select/SelectWithIcon.js +76 -131
  449. package/lib/Select/index.js +0 -5
  450. package/lib/Select/props/defaultProps.js +4 -5
  451. package/lib/Select/props/propTypes.js +4 -10
  452. package/lib/Stencils/Stencils.js +10 -29
  453. package/lib/Stencils/Stencils.module.css +11 -11
  454. package/lib/Stencils/__tests__/Stencils.spec.js +13 -22
  455. package/lib/Stencils/props/propTypes.js +0 -3
  456. package/lib/Switch/Switch.js +34 -57
  457. package/lib/Switch/Switch.module.css +23 -23
  458. package/lib/Switch/__tests__/Switch.spec.js +72 -91
  459. package/lib/Switch/props/propTypes.js +0 -3
  460. package/lib/Tab/Tab.js +27 -40
  461. package/lib/Tab/Tab.module.css +14 -14
  462. package/lib/Tab/TabContent.js +5 -12
  463. package/lib/Tab/TabContentWrapper.js +13 -16
  464. package/lib/Tab/TabWrapper.js +19 -37
  465. package/lib/Tab/Tabs.js +91 -171
  466. package/lib/Tab/Tabs.module.css +22 -22
  467. package/lib/Tab/index.js +0 -6
  468. package/lib/Tab/props/defaultProps.js +2 -1
  469. package/lib/Tab/props/propTypes.js +3 -4
  470. package/lib/Tag/Tag.js +43 -72
  471. package/lib/Tag/Tag.module.css +25 -24
  472. package/lib/Tag/props/propTypes.js +0 -3
  473. package/lib/TextBox/TextBox.js +60 -86
  474. package/lib/TextBox/TextBox.module.css +9 -9
  475. package/lib/TextBox/props/propTypes.js +4 -6
  476. package/lib/TextBoxIcon/TextBoxIcon.js +53 -80
  477. package/lib/TextBoxIcon/TextBoxIcon.module.css +7 -7
  478. package/lib/TextBoxIcon/props/propTypes.js +4 -9
  479. package/lib/Textarea/Textarea.js +29 -54
  480. package/lib/Textarea/Textarea.module.css +21 -21
  481. package/lib/Textarea/props/propTypes.js +0 -3
  482. package/lib/Tooltip/Tooltip.js +31 -94
  483. package/lib/Tooltip/Tooltip.module.css +5 -5
  484. package/lib/Tooltip/props/propTypes.js +0 -3
  485. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +16 -40
  486. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
  487. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +25 -53
  488. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
  489. package/lib/VelocityAnimation/index.js +0 -3
  490. package/lib/common/animation.module.css +8 -8
  491. package/lib/common/avatarsizes.module.css +16 -16
  492. package/lib/common/basicReset.module.css +3 -3
  493. package/lib/common/common.module.css +24 -24
  494. package/lib/common/customscroll.module.css +2 -2
  495. package/lib/css.js +0 -40
  496. package/lib/deprecated/PortalLayer/PortalLayer.js +23 -46
  497. package/lib/deprecated/PortalLayer/props/propTypes.js +0 -3
  498. package/lib/index.js +0 -58
  499. package/lib/semantic/Button/Button.js +22 -42
  500. package/lib/semantic/Button/props/propTypes.js +0 -3
  501. package/lib/semantic/Button/semanticButton.module.css +1 -1
  502. package/lib/semantic/index.js +0 -2
  503. package/lib/utils/Common.js +18 -111
  504. package/lib/utils/ContextOptimizer.js +10 -16
  505. package/lib/utils/constructFullName.js +4 -13
  506. package/lib/utils/datetime/common.js +5 -34
  507. package/lib/utils/debounce.js +1 -6
  508. package/lib/utils/dropDownUtils.js +59 -175
  509. package/lib/utils/dummyFunction.js +0 -2
  510. package/lib/utils/getHTMLFontSize.js +0 -1
  511. package/lib/utils/getInitial.js +0 -6
  512. package/lib/utils/index.js +0 -1
  513. package/lib/utils/scrollTo.js +0 -2
  514. package/lib/utils/shallowEqual.js +0 -8
  515. package/lib/v1/Accordion/Accordion.js +19 -38
  516. package/lib/v1/Accordion/AccordionItem.js +13 -23
  517. package/lib/v1/Accordion/index.js +0 -3
  518. package/lib/v1/Accordion/props/propTypes.js +0 -3
  519. package/lib/v1/Animation/Animation.js +14 -20
  520. package/lib/v1/Animation/props/propTypes.js +0 -3
  521. package/lib/v1/AppContainer/AppContainer.js +17 -46
  522. package/lib/v1/AppContainer/props/propTypes.js +0 -3
  523. package/lib/v1/Avatar/Avatar.js +32 -68
  524. package/lib/v1/Avatar/props/propTypes.js +0 -3
  525. package/lib/v1/AvatarTeam/AvatarTeam.js +24 -32
  526. package/lib/v1/AvatarTeam/props/propTypes.js +0 -3
  527. package/lib/v1/Button/Button.js +22 -32
  528. package/lib/v1/Button/props/defaultProps.js +0 -2
  529. package/lib/v1/Button/props/propTypes.js +0 -3
  530. package/lib/v1/Buttongroup/Buttongroup.js +5 -13
  531. package/lib/v1/Buttongroup/props/propTypes.js +0 -3
  532. package/lib/v1/Card/Card.js +44 -78
  533. package/lib/v1/Card/index.js +0 -4
  534. package/lib/v1/Card/props/propTypes.js +0 -3
  535. package/lib/v1/CheckBox/CheckBox.js +41 -52
  536. package/lib/v1/CheckBox/props/propTypes.js +0 -3
  537. package/lib/v1/DateTime/CalendarView.js +48 -89
  538. package/lib/v1/DateTime/DateTime.js +158 -246
  539. package/lib/v1/DateTime/DateTimePopupFooter.js +8 -33
  540. package/lib/v1/DateTime/DateTimePopupHeader.js +17 -49
  541. package/lib/v1/DateTime/DateWidget.js +251 -352
  542. package/lib/v1/DateTime/DaysRow.js +5 -28
  543. package/lib/v1/DateTime/Time.js +32 -75
  544. package/lib/v1/DateTime/YearView.js +27 -76
  545. package/lib/v1/DateTime/index.js +0 -2
  546. package/lib/v1/DateTime/props/propTypes.js +1 -11
  547. package/lib/v1/DropBox/DropBox.js +21 -45
  548. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +40 -60
  549. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -3
  550. package/lib/v1/DropBox/props/defaultProps.js +4 -8
  551. package/lib/v1/DropBox/props/propTypes.js +4 -10
  552. package/lib/v1/DropDown/DropDown.js +3 -23
  553. package/lib/v1/DropDown/DropDownHeading.js +13 -20
  554. package/lib/v1/DropDown/DropDownItem.js +11 -26
  555. package/lib/v1/DropDown/DropDownSearch.js +16 -28
  556. package/lib/v1/DropDown/DropDownSeparator.js +1 -7
  557. package/lib/v1/DropDown/props/propTypes.js +4 -10
  558. package/lib/v1/Heading/Heading.js +14 -19
  559. package/lib/v1/Heading/props/propTypes.js +0 -3
  560. package/lib/v1/Label/Label.js +14 -22
  561. package/lib/v1/Label/props/propTypes.js +0 -3
  562. package/lib/v1/Layout/Box.js +15 -35
  563. package/lib/v1/Layout/Container.js +14 -33
  564. package/lib/v1/Layout/index.js +0 -3
  565. package/lib/v1/Layout/props/propTypes.js +0 -3
  566. package/lib/v1/ListItem/ListContainer.js +30 -55
  567. package/lib/v1/ListItem/ListItem.js +38 -53
  568. package/lib/v1/ListItem/ListItemWithAvatar.js +39 -62
  569. package/lib/v1/ListItem/ListItemWithCheckBox.js +34 -49
  570. package/lib/v1/ListItem/ListItemWithIcon.js +37 -52
  571. package/lib/v1/ListItem/ListItemWithRadio.js +35 -49
  572. package/lib/v1/ListItem/index.js +0 -7
  573. package/lib/v1/ListItem/props/propTypes.js +4 -6
  574. package/lib/v1/Modal/Modal.js +9 -46
  575. package/lib/v1/Modal/props/propTypes.js +0 -3
  576. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +168 -294
  577. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +125 -202
  578. package/lib/v1/MultiSelect/EmptyState.js +24 -45
  579. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -14
  580. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -3
  581. package/lib/v1/MultiSelect/MultiSelect.js +216 -335
  582. package/lib/v1/MultiSelect/MultiSelectHeader.js +7 -29
  583. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +43 -86
  584. package/lib/v1/MultiSelect/SelectedOptions.js +17 -43
  585. package/lib/v1/MultiSelect/Suggestions.js +32 -64
  586. package/lib/v1/MultiSelect/index.js +0 -5
  587. package/lib/v1/MultiSelect/props/defaultProps.js +0 -2
  588. package/lib/v1/MultiSelect/props/propTypes.js +4 -14
  589. package/lib/v1/PopOver/PopOver.js +40 -71
  590. package/lib/v1/PopOver/props/propTypes.js +0 -3
  591. package/lib/v1/Popup/Popup.js +81 -158
  592. package/lib/v1/Provider/AvatarSize.js +0 -4
  593. package/lib/v1/Provider/Config.js +0 -2
  594. package/lib/v1/Provider/CssProvider.js +0 -4
  595. package/lib/v1/Provider/IdProvider.js +6 -17
  596. package/lib/v1/Provider/LibraryContext.js +15 -35
  597. package/lib/v1/Provider/LibraryContextInit.js +0 -4
  598. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +15 -44
  599. package/lib/v1/Provider/ZindexProvider.js +3 -15
  600. package/lib/v1/Provider/index.js +0 -5
  601. package/lib/v1/Radio/Radio.js +32 -42
  602. package/lib/v1/Radio/props/propTypes.js +0 -3
  603. package/lib/v1/Responsive/CustomResponsive.js +29 -73
  604. package/lib/v1/Responsive/RefWrapper.js +11 -17
  605. package/lib/v1/Responsive/ResizeComponent.js +36 -62
  606. package/lib/v1/Responsive/ResizeObserver.js +10 -24
  607. package/lib/v1/Responsive/Responsive.js +30 -80
  608. package/lib/v1/Responsive/index.js +0 -4
  609. package/lib/v1/Responsive/props/propTypes.js +0 -3
  610. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +13 -27
  611. package/lib/v1/ResponsiveDropBox/props/propTypes.js +4 -9
  612. package/lib/v1/Ribbon/Ribbon.js +7 -14
  613. package/lib/v1/Ribbon/props/propTypes.js +0 -3
  614. package/lib/v1/RippleEffect/RippleEffect.js +7 -17
  615. package/lib/v1/RippleEffect/props/propTypes.js +0 -3
  616. package/lib/v1/Select/GroupSelect.js +130 -229
  617. package/lib/v1/Select/Select.js +215 -298
  618. package/lib/v1/Select/SelectWithAvatar.js +56 -102
  619. package/lib/v1/Select/SelectWithIcon.js +76 -131
  620. package/lib/v1/Select/index.js +0 -5
  621. package/lib/v1/Select/props/defaultProps.js +4 -5
  622. package/lib/v1/Select/props/propTypes.js +4 -10
  623. package/lib/v1/Stencils/Stencils.js +3 -13
  624. package/lib/v1/Stencils/props/propTypes.js +0 -3
  625. package/lib/v1/Switch/Switch.js +25 -38
  626. package/lib/v1/Switch/props/propTypes.js +0 -3
  627. package/lib/v1/Tab/Tab.js +27 -40
  628. package/lib/v1/Tab/TabContent.js +5 -12
  629. package/lib/v1/Tab/TabContentWrapper.js +13 -16
  630. package/lib/v1/Tab/TabWrapper.js +19 -37
  631. package/lib/v1/Tab/Tabs.js +83 -170
  632. package/lib/v1/Tab/index.js +0 -6
  633. package/lib/v1/Tab/props/defaultProps.js +2 -1
  634. package/lib/v1/Tab/props/propTypes.js +3 -4
  635. package/lib/v1/Tab/v1Tab.module.css +14 -14
  636. package/lib/v1/Tab/v1Tabs.module.css +22 -22
  637. package/lib/v1/Tag/Tag.js +32 -50
  638. package/lib/v1/Tag/props/propTypes.js +0 -3
  639. package/lib/v1/TextBox/TextBox.js +47 -70
  640. package/lib/v1/TextBox/props/propTypes.js +4 -6
  641. package/lib/v1/TextBoxIcon/TextBoxIcon.js +55 -80
  642. package/lib/v1/TextBoxIcon/props/propTypes.js +4 -9
  643. package/lib/v1/Textarea/Textarea.js +28 -45
  644. package/lib/v1/Textarea/props/propTypes.js +0 -3
  645. package/lib/v1/Tooltip/Tooltip.js +31 -94
  646. package/lib/v1/Tooltip/props/propTypes.js +0 -3
  647. package/lib/v1/Typography/Typography.js +15 -26
  648. package/lib/v1/Typography/css/Typography.module.css +31 -31
  649. package/lib/v1/Typography/css/cssJSLogic.js +20 -25
  650. package/lib/v1/Typography/props/propTypes.js +0 -3
  651. package/lib/v1/Typography/utils/index.js +0 -1
  652. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +12 -25
  653. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
  654. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +22 -38
  655. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
  656. package/lib/v1/semantic/Button/Button.js +18 -24
  657. package/lib/v1/semantic/Button/props/propTypes.js +0 -3
  658. package/lib/v1/semantic/index.js +0 -2
  659. package/package.json +3 -3
  660. package/result.json +1 -1
@@ -1,50 +1,32 @@
1
1
  "use strict";
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _defaultProps = require("./props/defaultProps");
13
-
14
10
  var _propTypes = require("./props/propTypes");
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
- 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); } }
21
-
13
+ 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, _toPropertyKey(descriptor.key), descriptor); } }
22
14
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
-
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24
17
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
-
26
18
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
-
28
19
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
-
30
20
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
31
-
32
21
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
-
34
22
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
-
36
23
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
-
38
24
  var Accordion = /*#__PURE__*/function (_React$Component) {
39
25
  _inherits(Accordion, _React$Component);
40
-
41
26
  var _super = _createSuper(Accordion);
42
-
43
27
  function Accordion(props) {
44
28
  var _this;
45
-
46
29
  _classCallCheck(this, Accordion);
47
-
48
30
  _this = _super.call(this, props);
49
31
  _this.state = {
50
32
  selectedItem: _this.props.selectedItem
@@ -52,18 +34,15 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
52
34
  _this.selectMenu = _this.selectMenu.bind(_assertThisInitialized(_this));
53
35
  return _this;
54
36
  }
55
-
56
37
  _createClass(Accordion, [{
57
38
  key: "selectMenu",
58
39
  value: function selectMenu(selectedItem) {
59
40
  var _this$props = this.props,
60
- onSelect = _this$props.onSelect,
61
- disableInternalState = _this$props.disableInternalState;
62
-
41
+ onSelect = _this$props.onSelect,
42
+ disableInternalState = _this$props.disableInternalState;
63
43
  if (onSelect) {
64
44
  onSelect(selectedItem);
65
45
  }
66
-
67
46
  !disableInternalState && this.setState({
68
47
  selectedItem: selectedItem
69
48
  });
@@ -81,18 +60,16 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
81
60
  key: "render",
82
61
  value: function render() {
83
62
  var _this2 = this;
84
-
85
63
  var _this$props2 = this.props,
86
- className = _this$props2.className,
87
- height = _this$props2.height,
88
- unMount = _this$props2.unMount,
89
- disableInternalState = _this$props2.disableInternalState,
90
- propSelectedItem = _this$props2.selectedItem,
91
- a11y = _this$props2.a11y,
92
- dataId = _this$props2.dataId,
93
- dataSelectorId = _this$props2.dataSelectorId;
64
+ className = _this$props2.className,
65
+ height = _this$props2.height,
66
+ unMount = _this$props2.unMount,
67
+ disableInternalState = _this$props2.disableInternalState,
68
+ propSelectedItem = _this$props2.selectedItem,
69
+ a11y = _this$props2.a11y,
70
+ dataId = _this$props2.dataId,
71
+ dataSelectorId = _this$props2.dataSelectorId;
94
72
  var selectedItem = this.state.selectedItem;
95
-
96
73
  var children = _react["default"].Children.map(this.props.children, function (child) {
97
74
  if (child) {
98
75
  return /*#__PURE__*/_react["default"].cloneElement(child, {
@@ -102,10 +79,9 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
102
79
  });
103
80
  }
104
81
  });
105
-
106
82
  var role = a11y.role,
107
- ariaExpanded = a11y.ariaExpanded,
108
- ariaHaspopup = a11y.ariaHaspopup;
83
+ ariaExpanded = a11y.ariaExpanded,
84
+ ariaHaspopup = a11y.ariaHaspopup;
109
85
  return /*#__PURE__*/_react["default"].createElement("div", {
110
86
  className: className ? className : '',
111
87
  style: {
@@ -120,13 +96,13 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
120
96
  }, children);
121
97
  }
122
98
  }]);
123
-
124
99
  return Accordion;
125
100
  }(_react["default"].Component);
126
-
127
101
  exports["default"] = Accordion;
128
102
  Accordion.propTypes = _propTypes.Accordion_propTypes;
129
- Accordion.defaultProps = _defaultProps.Accordion_defaultProps; // if (__DOCS__) {
103
+ Accordion.defaultProps = _defaultProps.Accordion_defaultProps;
104
+
105
+ // if (__DOCS__) {
130
106
  // Accordion.docs = {
131
107
  // componentGroup: 'Animation',
132
108
  // folderName: 'Style Guide'
@@ -1,82 +1,61 @@
1
1
  "use strict";
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _defaultProps = require("./props/defaultProps");
13
-
14
10
  var _propTypes = require("./props/propTypes");
15
-
16
11
  var _VelocityAnimation = _interopRequireDefault(require("../VelocityAnimation/VelocityAnimation/VelocityAnimation"));
17
-
18
12
  var _VelocityAnimationGroup = _interopRequireDefault(require("../VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup"));
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- 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); } }
25
-
15
+ 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, _toPropertyKey(descriptor.key), descriptor); } }
26
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
19
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
-
30
20
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
-
32
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
-
34
22
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
35
-
36
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
-
38
24
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
-
40
25
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
-
42
26
  var AccordionItem = /*#__PURE__*/function (_React$Component) {
43
27
  _inherits(AccordionItem, _React$Component);
44
-
45
28
  var _super = _createSuper(AccordionItem);
46
-
47
29
  function AccordionItem(props) {
48
30
  var _this;
49
-
50
31
  _classCallCheck(this, AccordionItem);
51
-
52
32
  _this = _super.call(this, props);
53
33
  _this.equalityCheck = _this.equalityCheck.bind(_assertThisInitialized(_this));
54
34
  return _this;
55
35
  }
56
-
57
36
  _createClass(AccordionItem, [{
58
37
  key: "equalityCheck",
59
38
  value: function equalityCheck() {
60
39
  var _this$props = this.props,
61
- equalityCheck = _this$props.equalityCheck,
62
- selectedItem = _this$props.selectedItem,
63
- id = _this$props.id;
40
+ equalityCheck = _this$props.equalityCheck,
41
+ selectedItem = _this$props.selectedItem,
42
+ id = _this$props.id;
64
43
  return equalityCheck ? equalityCheck(id, selectedItem) : selectedItem == id;
65
44
  }
66
45
  }, {
67
46
  key: "render",
68
47
  value: function render() {
69
48
  var _this$props2 = this.props,
70
- id = _this$props2.id,
71
- selectMenu = _this$props2.selectMenu,
72
- className = _this$props2.className,
73
- children = _this$props2.children,
74
- dataId = _this$props2.dataId,
75
- dataSelectorId = _this$props2.dataSelectorId,
76
- unMount = _this$props2.unMount,
77
- unMountItem = _this$props2.unMountItem,
78
- a11y = _this$props2.a11y,
79
- innerClass = _this$props2.innerClass;
49
+ id = _this$props2.id,
50
+ selectMenu = _this$props2.selectMenu,
51
+ className = _this$props2.className,
52
+ children = _this$props2.children,
53
+ dataId = _this$props2.dataId,
54
+ dataSelectorId = _this$props2.dataSelectorId,
55
+ unMount = _this$props2.unMount,
56
+ unMountItem = _this$props2.unMountItem,
57
+ a11y = _this$props2.a11y,
58
+ innerClass = _this$props2.innerClass;
80
59
  unMountItem = unMountItem !== undefined ? unMountItem : unMount;
81
60
  var role = a11y.role;
82
61
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -97,13 +76,12 @@ var AccordionItem = /*#__PURE__*/function (_React$Component) {
97
76
  }, children[1]));
98
77
  }
99
78
  }]);
100
-
101
79
  return AccordionItem;
102
80
  }(_react["default"].Component);
103
-
104
81
  exports["default"] = AccordionItem;
105
82
  AccordionItem.propTypes = _propTypes.AccordionItem_propTypes;
106
- AccordionItem.defaultProps = _defaultProps.AccordionItem_defaultProps; // if (__DOCS__) {
83
+ AccordionItem.defaultProps = _defaultProps.AccordionItem_defaultProps;
84
+ // if (__DOCS__) {
107
85
  // AccordionItem.docs = {
108
86
  // componentGroup: 'Animation',
109
87
  // folderName: 'Style Guide'
@@ -15,9 +15,6 @@ Object.defineProperty(exports, "AccordionItem", {
15
15
  return _AccordionItem["default"];
16
16
  }
17
17
  });
18
-
19
18
  var _Accordion = _interopRequireDefault(require("./Accordion"));
20
-
21
19
  var _AccordionItem = _interopRequireDefault(require("./AccordionItem"));
22
-
23
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Accordion_propTypes = exports.AccordionItem_propTypes = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
9
  var Accordion_propTypes = {
13
10
  children: _propTypes["default"].node,
14
11
  className: _propTypes["default"].string,
@@ -1,71 +1,51 @@
1
1
  "use strict";
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _defaultProps = require("./props/defaultProps");
13
-
14
10
  var _propTypes = require("./props/propTypes");
15
-
16
11
  var _reactTransitionGroup = require("react-transition-group");
17
-
18
12
  var _transitionModule = _interopRequireDefault(require("../common/transition.module.css"));
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- 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); } }
25
-
15
+ 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, _toPropertyKey(descriptor.key), descriptor); } }
26
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
19
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
-
30
20
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
-
32
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
-
34
22
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
35
-
36
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
-
38
24
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
-
40
25
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
-
42
26
  var Animation = /*#__PURE__*/function (_React$Component) {
43
27
  _inherits(Animation, _React$Component);
44
-
45
28
  var _super = _createSuper(Animation);
46
-
47
29
  function Animation(props) {
48
30
  _classCallCheck(this, Animation);
49
-
50
31
  return _super.call(this, props);
51
32
  }
52
-
53
33
  _createClass(Animation, [{
54
34
  key: "render",
55
35
  value: function render() {
56
36
  var _this$props = this.props,
57
- name = _this$props.name,
58
- enterDuration = _this$props.enterDuration,
59
- exitDuration = _this$props.exitDuration,
60
- children = _this$props.children,
61
- isActive = _this$props.isActive,
62
- unmountOnExit = _this$props.unmountOnExit,
63
- _this$props$onEntered = _this$props.onEntered,
64
- onEntered = _this$props$onEntered === void 0 ? function () {} : _this$props$onEntered,
65
- _this$props$onExit = _this$props.onExit,
66
- onExit = _this$props$onExit === void 0 ? function () {} : _this$props$onExit,
67
- _this$props$delayClas = _this$props.delayClassName,
68
- delayClassName = _this$props$delayClas === void 0 ? null : _this$props$delayClas;
37
+ name = _this$props.name,
38
+ enterDuration = _this$props.enterDuration,
39
+ exitDuration = _this$props.exitDuration,
40
+ children = _this$props.children,
41
+ isActive = _this$props.isActive,
42
+ unmountOnExit = _this$props.unmountOnExit,
43
+ _this$props$onEntered = _this$props.onEntered,
44
+ onEntered = _this$props$onEntered === void 0 ? function () {} : _this$props$onEntered,
45
+ _this$props$onExit = _this$props.onExit,
46
+ onExit = _this$props$onExit === void 0 ? function () {} : _this$props$onExit,
47
+ _this$props$delayClas = _this$props.delayClassName,
48
+ delayClassName = _this$props$delayClas === void 0 ? null : _this$props$delayClas;
69
49
  var animation = {
70
50
  zoomIn: {
71
51
  enter: _transitionModule["default"].zoomInEnter,
@@ -168,13 +148,13 @@ var Animation = /*#__PURE__*/function (_React$Component) {
168
148
  }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children));
169
149
  }
170
150
  }]);
171
-
172
151
  return Animation;
173
152
  }(_react["default"].Component);
174
-
175
153
  exports["default"] = Animation;
176
154
  Animation.propTypes = _propTypes.propTypes;
177
- Animation.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
155
+ Animation.defaultProps = _defaultProps.defaultProps;
156
+
157
+ // if (__DOCS__) {
178
158
  // Animation.docs = {
179
159
  // componentGroup: 'Animation',
180
160
  // folderName: 'Style Guide',
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.propTypes = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
9
  var propTypes = {
13
10
  children: _propTypes["default"].node,
14
11
  delayClassName: _propTypes["default"].string,
@@ -1,80 +1,47 @@
1
1
  "use strict";
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _defaultProps = require("./props/defaultProps");
13
-
14
10
  var _propTypes = require("./props/propTypes");
15
-
16
11
  var _Layout = require("../Layout");
17
-
18
12
  var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
19
-
20
13
  require("../common/basic.module.css");
21
-
22
14
  require("@zohodesk/variables/assets/colorVariables.module.css");
23
-
24
15
  require("@zohodesk/variables/assets/dotVariables.module.css");
25
-
26
16
  require("@zohodesk/variables/assets/sizeVariables.module.css");
27
-
28
17
  require("@zohodesk/variables/assets/fontsizeVariables.module.css");
29
-
30
18
  require("@zohodesk/variables/lib/fontFamilyVariables.module.css");
31
-
32
19
  require("@zohodesk/variables/assets/transitionVariables.module.css");
33
-
34
20
  require("@zohodesk/variables/assets/no_transitionVariables.module.css");
35
-
36
21
  require("../common/a11y.module.css");
37
-
38
22
  require("../common/boxShadow.module.css");
39
-
40
23
  var _AppContainerModule = _interopRequireDefault(require("./AppContainer.module.css"));
41
-
42
24
  var _Config = require("../Provider/Config");
43
-
44
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
-
46
26
  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); }
47
-
48
27
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
49
-
50
- 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); } }
51
-
28
+ 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, _toPropertyKey(descriptor.key), descriptor); } }
52
29
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
53
-
30
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
31
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
54
32
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
55
-
56
33
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
-
58
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
59
-
60
35
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
61
-
62
36
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
63
-
64
37
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
65
-
66
38
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
67
-
68
39
  var AppContainer = /*#__PURE__*/function (_React$Component) {
69
40
  _inherits(AppContainer, _React$Component);
70
-
71
41
  var _super = _createSuper(AppContainer);
72
-
73
42
  function AppContainer(props) {
74
43
  var _this;
75
-
76
44
  _classCallCheck(this, AppContainer);
77
-
78
45
  _this = _super.call(this, props);
79
46
  _this.setTooltipRef = _this.setTooltipRef.bind(_assertThisInitialized(_this));
80
47
  _this.handleOver = _this.handleOver.bind(_assertThisInitialized(_this));
@@ -90,7 +57,6 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
90
57
  });
91
58
  return _this;
92
59
  }
93
-
94
60
  _createClass(AppContainer, [{
95
61
  key: "mouseOverDispatch",
96
62
  value: function mouseOverDispatch(e) {
@@ -109,11 +75,9 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
109
75
  key: "handleOver",
110
76
  value: function handleOver(e) {
111
77
  var _this2 = this;
112
-
113
78
  if (this.timer) {
114
79
  this.timer = clearTimeout(this.timer);
115
80
  }
116
-
117
81
  this.timer = setTimeout(function () {
118
82
  return _this2.mouseOverDispatch(e);
119
83
  }, this.tooltipDebounce);
@@ -134,7 +98,6 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
134
98
  key: "componentDidMount",
135
99
  value: function componentDidMount() {
136
100
  var needTooltip = this.props.needTooltip;
137
-
138
101
  if (this.containerElement && needTooltip) {
139
102
  this.containerElement.addEventListener('mouseover', this.handleOver, false);
140
103
  this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
@@ -145,7 +108,6 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
145
108
  key: "componentWillUnmount",
146
109
  value: function componentWillUnmount() {
147
110
  var needTooltip = this.props.needTooltip;
148
-
149
111
  if (this.containerElement && needTooltip) {
150
112
  this.containerElement.removeEventListener('mouseover', this.handleOver, false);
151
113
  this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
@@ -161,21 +123,21 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
161
123
  key: "render",
162
124
  value: function render() {
163
125
  var _this$props = this.props,
164
- className = _this$props.className,
165
- children = _this$props.children,
166
- tagName = _this$props.tagName,
167
- dataId = _this$props.dataId,
168
- dataSelectorId = _this$props.dataSelectorId,
169
- tooltipClass = _this$props.tooltipClass,
170
- tooltipParentClass = _this$props.tooltipParentClass,
171
- needTooltip = _this$props.needTooltip,
172
- customProps = _this$props.customProps;
126
+ className = _this$props.className,
127
+ children = _this$props.children,
128
+ tagName = _this$props.tagName,
129
+ dataId = _this$props.dataId,
130
+ dataSelectorId = _this$props.dataSelectorId,
131
+ tooltipClass = _this$props.tooltipClass,
132
+ tooltipParentClass = _this$props.tooltipParentClass,
133
+ needTooltip = _this$props.needTooltip,
134
+ customProps = _this$props.customProps;
173
135
  var _customProps$Containe = customProps.ContainerProps,
174
- ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
175
- _customProps$TooltipP = customProps.TooltipProps,
176
- TooltipProps = _customProps$TooltipP === void 0 ? {} : _customProps$TooltipP,
177
- _customProps$ExtraPro = customProps.ExtraProps,
178
- ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
136
+ ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
137
+ _customProps$TooltipP = customProps.TooltipProps,
138
+ TooltipProps = _customProps$TooltipP === void 0 ? {} : _customProps$TooltipP,
139
+ _customProps$ExtraPro = customProps.ExtraProps,
140
+ ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
179
141
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
180
142
  className: "".concat(_AppContainerModule["default"].container, " ").concat(className),
181
143
  dataId: dataId,
@@ -195,13 +157,13 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
195
157
  }, TooltipProps))) : null);
196
158
  }
197
159
  }]);
198
-
199
160
  return AppContainer;
200
161
  }(_react["default"].Component);
201
-
202
162
  exports["default"] = AppContainer;
203
163
  AppContainer.propTypes = _propTypes.propTypes;
204
- AppContainer.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
164
+ AppContainer.defaultProps = _defaultProps.defaultProps;
165
+
166
+ // if (__DOCS__) {
205
167
  // AppContainer.docs = {
206
168
  // componentGroup: 'Template',
207
169
  // folderName: 'Style Guide'
@@ -12,7 +12,7 @@
12
12
  font-family: var(--zd_regular);
13
13
  }
14
14
  .tooltip {
15
- height: 0 ;
16
- font-size: 0 ;
15
+ height: 0;
16
+ font-size: 0;
17
17
  /* contain:strict */
18
18
  }
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.propTypes = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
9
  var propTypes = {
13
10
  children: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].arrayOf(_propTypes["default"].element)]),
14
11
  dataId: _propTypes["default"].string,