@zohodesk/components 1.0.0-temp-181 → 1.0.0-temp-183

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 (781) hide show
  1. package/.DS_Store +0 -0
  2. package/.cli/PropLessFiles.html +1 -1
  3. package/.cli/PropUnificationExcludeFilesArray.js +230 -230
  4. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  5. package/.cli/propValidation_report.html +1 -1
  6. package/README.md +1367 -1363
  7. package/css_error.log +1 -1
  8. package/es/Accordion/Accordion.js +3 -7
  9. package/es/Accordion/AccordionItem.js +2 -4
  10. package/es/Animation/Animation.js +3 -3
  11. package/es/AppContainer/AppContainer.js +3 -14
  12. package/es/AppContainer/AppContainer.module.css +18 -18
  13. package/es/Avatar/Avatar.js +22 -33
  14. package/es/Avatar/Avatar.module.css +187 -187
  15. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  16. package/es/AvatarTeam/AvatarTeam.js +10 -10
  17. package/es/AvatarTeam/AvatarTeam.module.css +191 -191
  18. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +2 -1
  19. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -704
  20. package/es/Button/Button.js +7 -8
  21. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -440
  22. package/es/Button/css/Button.module.css +533 -533
  23. package/es/Buttongroup/Buttongroup.js +4 -4
  24. package/es/Buttongroup/Buttongroup.module.css +108 -107
  25. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  26. package/es/Card/Card.js +14 -25
  27. package/es/Card/Card.module.css +20 -20
  28. package/es/CheckBox/CheckBox.js +3 -5
  29. package/es/CheckBox/CheckBox.module.css +159 -159
  30. package/es/DateTime/CalendarView.js +20 -32
  31. package/es/DateTime/DateTime.js +6 -69
  32. package/es/DateTime/DateTime.module.css +249 -249
  33. package/es/DateTime/DateTimePopupFooter.js +1 -4
  34. package/es/DateTime/DateTimePopupHeader.js +2 -8
  35. package/es/DateTime/DateWidget.js +35 -98
  36. package/es/DateTime/DateWidget.module.css +38 -38
  37. package/es/DateTime/DaysRow.js +1 -4
  38. package/es/DateTime/Time.js +1 -10
  39. package/es/DateTime/YearView.js +4 -28
  40. package/es/DateTime/YearView.module.css +98 -98
  41. package/es/DateTime/common.js +0 -3
  42. package/es/DateTime/constants.js +0 -1
  43. package/es/DateTime/dateFormatUtils/dateFormat.js +30 -65
  44. package/es/DateTime/dateFormatUtils/dateFormats.js +1 -0
  45. package/es/DateTime/dateFormatUtils/dayChange.js +4 -13
  46. package/es/DateTime/dateFormatUtils/index.js +1 -31
  47. package/es/DateTime/dateFormatUtils/monthChange.js +0 -8
  48. package/es/DateTime/dateFormatUtils/timeChange.js +6 -22
  49. package/es/DateTime/dateFormatUtils/yearChange.js +2 -11
  50. package/es/DateTime/index.js +0 -0
  51. package/es/DateTime/objectUtils.js +20 -14
  52. package/es/DateTime/typeChecker.js +0 -3
  53. package/es/DateTime/validator.js +6 -58
  54. package/es/DropBox/DropBox.js +2 -6
  55. package/es/DropBox/DropBoxElement/DropBoxElement.js +0 -7
  56. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +441 -441
  57. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +3 -5
  58. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -3
  59. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  60. package/es/DropBox/css/DropBox.module.css +59 -59
  61. package/es/DropBox/props/defaultProps.js +2 -1
  62. package/es/DropBox/props/propTypes.js +2 -1
  63. package/es/DropDown/DropDown.js +1 -7
  64. package/es/DropDown/DropDown.module.css +5 -5
  65. package/es/DropDown/DropDownHeading.js +5 -4
  66. package/es/DropDown/DropDownHeading.module.css +59 -59
  67. package/es/DropDown/DropDownItem.js +0 -6
  68. package/es/DropDown/DropDownItem.module.css +97 -97
  69. package/es/DropDown/DropDownSearch.js +0 -4
  70. package/es/DropDown/DropDownSearch.module.css +14 -14
  71. package/es/DropDown/DropDownSeparator.js +0 -1
  72. package/es/DropDown/DropDownSeparator.module.css +7 -7
  73. package/es/DropDown/props/propTypes.js +2 -1
  74. package/es/Heading/Heading.js +3 -2
  75. package/es/Heading/Heading.module.css +4 -4
  76. package/es/Label/Label.js +5 -4
  77. package/es/Label/Label.module.css +58 -53
  78. package/es/Label/LabelColors.module.css +20 -20
  79. package/es/Label/__tests__/Label.spec.js +2 -1
  80. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  81. package/es/Layout/Box.js +2 -15
  82. package/es/Layout/Container.js +3 -14
  83. package/es/Layout/Layout.module.css +335 -335
  84. package/es/Layout/index.js +2 -1
  85. package/es/Layout/utils.js +0 -1
  86. package/es/ListItem/ListContainer.js +6 -10
  87. package/es/ListItem/ListItem.js +3 -9
  88. package/es/ListItem/ListItem.module.css +237 -237
  89. package/es/ListItem/ListItemWithAvatar.js +3 -9
  90. package/es/ListItem/ListItemWithCheckBox.js +2 -7
  91. package/es/ListItem/ListItemWithIcon.js +3 -8
  92. package/es/ListItem/ListItemWithRadio.js +3 -7
  93. package/es/Modal/Modal.js +11 -28
  94. package/es/MultiSelect/AdvancedGroupMultiSelect.js +18 -94
  95. package/es/MultiSelect/AdvancedMultiSelect.js +9 -32
  96. package/es/MultiSelect/EmptyState.js +0 -2
  97. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -16
  98. package/es/MultiSelect/MultiSelect.js +35 -104
  99. package/es/MultiSelect/MultiSelect.module.css +204 -204
  100. package/es/MultiSelect/MultiSelectHeader.js +0 -3
  101. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -10
  102. package/es/MultiSelect/SelectedOptions.js +3 -6
  103. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  104. package/es/MultiSelect/Suggestions.js +5 -8
  105. package/es/MultiSelect/props/propTypes.js +2 -2
  106. package/es/PopOver/PopOver.js +0 -16
  107. package/es/PopOver/PopOver.module.css +9 -9
  108. package/es/Popup/Popup.js +24 -77
  109. package/es/Popup/PositionMapping.json +73 -73
  110. package/es/Popup/viewPort.js +4 -16
  111. package/es/Provider/IdProvider.js +5 -10
  112. package/es/Provider/LibraryContext.js +4 -6
  113. package/es/Provider/NumberGenerator/NumberGenerator.js +7 -21
  114. package/es/Provider/ZindexProvider.js +2 -9
  115. package/es/Radio/Radio.js +0 -3
  116. package/es/Radio/Radio.module.css +113 -113
  117. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -1837
  118. package/es/Responsive/CustomResponsive.js +18 -30
  119. package/es/Responsive/RefWrapper.js +7 -6
  120. package/es/Responsive/ResizeComponent.js +25 -35
  121. package/es/Responsive/ResizeObserver.js +6 -26
  122. package/es/Responsive/Responsive.js +20 -34
  123. package/es/Responsive/index.js +3 -1
  124. package/es/Responsive/sizeObservers.js +7 -28
  125. package/es/Responsive/utils/index.js +5 -7
  126. package/es/Responsive/utils/shallowCompare.js +2 -7
  127. package/es/Responsive/windowResizeObserver.js +0 -7
  128. package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -4
  129. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  130. package/es/ResponsiveDropBox/props/propTypes.js +2 -1
  131. package/es/Ribbon/Ribbon.js +2 -3
  132. package/es/Ribbon/Ribbon.module.css +506 -458
  133. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  134. package/es/RippleEffect/RippleEffect.js +3 -1
  135. package/es/RippleEffect/RippleEffect.module.css +92 -92
  136. package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -171
  137. package/es/Select/GroupSelect.js +14 -58
  138. package/es/Select/Select.js +37 -82
  139. package/es/Select/Select.module.css +109 -108
  140. package/es/Select/SelectWithAvatar.js +4 -17
  141. package/es/Select/SelectWithIcon.js +5 -46
  142. package/es/Select/props/propTypes.js +2 -2
  143. package/es/Stencils/Stencils.js +3 -3
  144. package/es/Stencils/Stencils.module.css +96 -96
  145. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  146. package/es/Switch/Switch.js +5 -7
  147. package/es/Switch/Switch.module.css +129 -129
  148. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  149. package/es/Tab/Tab.js +4 -4
  150. package/es/Tab/Tab.module.css +100 -100
  151. package/es/Tab/TabContent.js +0 -1
  152. package/es/Tab/TabContent.module.css +4 -4
  153. package/es/Tab/TabContentWrapper.js +0 -2
  154. package/es/Tab/TabWrapper.js +2 -5
  155. package/es/Tab/Tabs.js +24 -71
  156. package/es/Tab/Tabs.module.css +136 -136
  157. package/es/Tag/Tag.js +11 -14
  158. package/es/Tag/Tag.module.css +260 -260
  159. package/es/TextBox/TextBox.js +3 -15
  160. package/es/TextBox/TextBox.module.css +179 -178
  161. package/es/TextBoxIcon/TextBoxIcon.js +2 -9
  162. package/es/TextBoxIcon/TextBoxIcon.module.css +84 -84
  163. package/es/TextBoxIcon/props/propTypes.js +2 -1
  164. package/es/Textarea/Textarea.js +3 -12
  165. package/es/Textarea/Textarea.module.css +146 -145
  166. package/es/Tooltip/Tooltip.js +14 -58
  167. package/es/Tooltip/Tooltip.module.css +144 -144
  168. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -3
  169. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -7
  170. package/es/common/a11y.module.css +3 -3
  171. package/es/common/animation.module.css +624 -624
  172. package/es/common/avatarsizes.module.css +48 -48
  173. package/es/common/basic.module.css +33 -33
  174. package/es/common/basicReset.module.css +40 -40
  175. package/es/common/boxShadow.module.css +33 -33
  176. package/es/common/common.module.css +524 -524
  177. package/es/common/customscroll.module.css +128 -128
  178. package/es/common/reset.module.css +13 -13
  179. package/es/common/transition.module.css +146 -146
  180. package/es/deprecated/PortalLayer/PortalLayer.js +20 -25
  181. package/es/semantic/Button/Button.js +2 -3
  182. package/es/semantic/Button/semanticButton.module.css +9 -9
  183. package/es/utils/Common.js +9 -54
  184. package/es/utils/ContextOptimizer.js +5 -4
  185. package/es/utils/constructFullName.js +0 -2
  186. package/es/utils/datetime/common.js +5 -16
  187. package/es/utils/debounce.js +1 -5
  188. package/es/utils/dropDownUtils.js +11 -68
  189. package/es/utils/getInitial.js +0 -4
  190. package/es/utils/shallowEqual.js +0 -6
  191. package/es/v1/Accordion/Accordion.js +5 -6
  192. package/es/v1/Accordion/AccordionItem.js +4 -6
  193. package/es/v1/Accordion/props/defaultProps.js +12 -0
  194. package/es/v1/Accordion/props/propTypes.js +33 -0
  195. package/es/v1/Animation/Animation.js +5 -3
  196. package/es/v1/Animation/props/defaultProps.js +7 -0
  197. package/es/v1/Animation/props/propTypes.js +12 -0
  198. package/es/v1/AppContainer/AppContainer.js +5 -11
  199. package/es/v1/AppContainer/props/defaultProps.js +10 -0
  200. package/es/v1/AppContainer/props/propTypes.js +17 -0
  201. package/es/v1/Avatar/Avatar.js +15 -26
  202. package/es/v1/Avatar/props/defaultProps.js +17 -0
  203. package/es/v1/Avatar/props/propTypes.js +26 -0
  204. package/es/v1/AvatarTeam/AvatarTeam.js +7 -8
  205. package/es/v1/AvatarTeam/props/defaultProps.js +17 -0
  206. package/es/v1/AvatarTeam/props/propTypes.js +27 -0
  207. package/es/v1/Button/Button.js +9 -9
  208. package/es/v1/Button/props/defaultProps.js +18 -0
  209. package/es/v1/Button/props/propTypes.js +27 -0
  210. package/es/v1/Buttongroup/Buttongroup.js +2 -2
  211. package/es/v1/Buttongroup/props/defaultProps.js +6 -0
  212. package/es/v1/Buttongroup/props/propTypes.js +9 -0
  213. package/es/v1/Card/Card.js +15 -23
  214. package/es/v1/Card/props/defaultProps.js +25 -0
  215. package/es/v1/Card/props/propTypes.js +48 -0
  216. package/es/v1/CheckBox/CheckBox.js +8 -11
  217. package/es/v1/CheckBox/props/defaultProps.js +18 -0
  218. package/es/v1/CheckBox/props/propTypes.js +40 -0
  219. package/es/v1/DateTime/CalendarView.js +20 -32
  220. package/es/v1/DateTime/DateTime.js +6 -69
  221. package/es/v1/DateTime/DateTimePopupFooter.js +1 -4
  222. package/es/v1/DateTime/DateTimePopupHeader.js +2 -8
  223. package/es/v1/DateTime/DateWidget.js +35 -98
  224. package/es/v1/DateTime/DaysRow.js +1 -4
  225. package/es/v1/DateTime/Time.js +1 -10
  226. package/es/v1/DateTime/YearView.js +4 -28
  227. package/es/v1/DateTime/index.js +0 -0
  228. package/es/v1/DropBox/DropBox.js +4 -8
  229. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +2 -9
  230. package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +18 -0
  231. package/es/v1/DropBox/DropBoxElement/props/propTypes.js +51 -0
  232. package/es/v1/DropBox/props/defaultProps.js +15 -0
  233. package/es/v1/DropBox/props/propTypes.js +17 -0
  234. package/es/v1/DropDown/DropDown.js +2 -5
  235. package/es/v1/DropDown/DropDownHeading.js +4 -4
  236. package/es/v1/DropDown/DropDownItem.js +2 -7
  237. package/es/v1/DropDown/DropDownSearch.js +4 -5
  238. package/es/v1/DropDown/DropDownSeparator.js +1 -1
  239. package/es/v1/DropDown/props/defaultProps.js +20 -0
  240. package/es/v1/DropDown/props/propTypes.js +66 -0
  241. package/es/v1/Heading/Heading.js +5 -3
  242. package/es/v1/Heading/props/defaultProps.js +5 -0
  243. package/es/v1/Heading/props/propTypes.js +11 -0
  244. package/es/v1/Label/Label.js +2 -2
  245. package/es/v1/Label/props/defaultProps.js +11 -0
  246. package/es/v1/Label/props/propTypes.js +19 -0
  247. package/es/v1/Layout/Box.js +4 -17
  248. package/es/v1/Layout/Container.js +5 -16
  249. package/es/v1/Layout/props/defaultProps.js +16 -0
  250. package/es/v1/Layout/props/propTypes.js +46 -0
  251. package/es/v1/ListItem/ListContainer.js +8 -12
  252. package/es/v1/ListItem/ListItem.js +5 -12
  253. package/es/v1/ListItem/ListItemWithAvatar.js +3 -11
  254. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -10
  255. package/es/v1/ListItem/ListItemWithIcon.js +5 -11
  256. package/es/v1/ListItem/ListItemWithRadio.js +5 -10
  257. package/es/v1/ListItem/props/defaultProps.js +97 -0
  258. package/es/v1/ListItem/props/propTypes.js +202 -0
  259. package/es/v1/Modal/Modal.js +3 -19
  260. package/es/v1/Modal/props/defaultProps.js +3 -0
  261. package/es/v1/Modal/props/propTypes.js +7 -0
  262. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +22 -97
  263. package/es/v1/MultiSelect/AdvancedMultiSelect.js +11 -34
  264. package/es/v1/MultiSelect/EmptyState.js +2 -4
  265. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +2 -2
  266. package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
  267. package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +7 -0
  268. package/es/v1/MultiSelect/MultiSelect.js +39 -108
  269. package/es/v1/MultiSelect/MultiSelectHeader.js +2 -5
  270. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +6 -14
  271. package/es/v1/MultiSelect/SelectedOptions.js +5 -8
  272. package/es/v1/MultiSelect/Suggestions.js +7 -10
  273. package/es/v1/MultiSelect/props/defaultProps.js +153 -0
  274. package/es/v1/MultiSelect/props/propTypes.js +312 -0
  275. package/es/v1/PopOver/PopOver.js +2 -13
  276. package/es/v1/PopOver/props/defaultProps.js +7 -0
  277. package/es/v1/PopOver/props/propTypes.js +53 -0
  278. package/es/v1/Popup/Popup.js +24 -77
  279. package/es/v1/Provider/IdProvider.js +5 -10
  280. package/es/v1/Provider/LibraryContext.js +4 -6
  281. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +7 -21
  282. package/es/v1/Provider/ZindexProvider.js +2 -9
  283. package/es/v1/Radio/Radio.js +6 -9
  284. package/es/v1/Radio/props/defaultProps.js +14 -0
  285. package/es/v1/Radio/props/propTypes.js +33 -0
  286. package/es/v1/Responsive/CustomResponsive.js +20 -32
  287. package/es/v1/Responsive/RefWrapper.js +7 -6
  288. package/es/v1/Responsive/ResizeComponent.js +25 -35
  289. package/es/v1/Responsive/ResizeObserver.js +6 -26
  290. package/es/v1/Responsive/Responsive.js +22 -36
  291. package/es/v1/Responsive/index.js +3 -1
  292. package/es/v1/Responsive/props/defaultProps.js +13 -0
  293. package/es/v1/Responsive/props/propTypes.js +25 -0
  294. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -3
  295. package/es/v1/ResponsiveDropBox/props/defaultProps.js +4 -0
  296. package/es/v1/ResponsiveDropBox/props/propTypes.js +9 -0
  297. package/es/v1/Ribbon/Ribbon.js +3 -3
  298. package/es/v1/Ribbon/props/defaultProps.js +9 -0
  299. package/es/v1/Ribbon/props/propTypes.js +11 -0
  300. package/es/v1/RippleEffect/RippleEffect.js +2 -2
  301. package/es/v1/RippleEffect/props/defaultProps.js +9 -0
  302. package/es/v1/RippleEffect/props/propTypes.js +11 -0
  303. package/es/v1/Select/GroupSelect.js +16 -60
  304. package/es/v1/Select/Select.js +42 -85
  305. package/es/v1/Select/SelectWithAvatar.js +6 -19
  306. package/es/v1/Select/SelectWithIcon.js +7 -48
  307. package/es/v1/Select/props/defaultProps.js +119 -0
  308. package/es/v1/Select/props/propTypes.js +288 -0
  309. package/es/v1/Stencils/Stencils.js +2 -4
  310. package/es/v1/Stencils/props/defaultProps.js +6 -0
  311. package/es/v1/Stencils/props/propTypes.js +7 -0
  312. package/es/v1/Switch/Switch.js +7 -10
  313. package/es/v1/Switch/props/defaultProps.js +11 -0
  314. package/es/v1/Switch/props/propTypes.js +28 -0
  315. package/es/v1/Tab/Tab.js +6 -5
  316. package/es/v1/Tab/TabContent.js +2 -3
  317. package/es/v1/Tab/TabContentWrapper.js +2 -4
  318. package/es/v1/Tab/TabWrapper.js +4 -7
  319. package/es/v1/Tab/Tabs.js +26 -73
  320. package/es/v1/Tab/props/defaultProps.js +44 -0
  321. package/es/v1/Tab/props/propTypes.js +106 -0
  322. package/es/v1/Tag/Tag.js +11 -15
  323. package/es/v1/Tag/props/defaultProps.js +14 -0
  324. package/es/v1/Tag/props/propTypes.js +35 -0
  325. package/es/v1/TextBox/TextBox.js +2 -15
  326. package/es/v1/TextBox/props/defaultProps.js +19 -0
  327. package/es/v1/TextBox/props/propTypes.js +55 -0
  328. package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -8
  329. package/es/v1/TextBoxIcon/props/defaultProps.js +22 -0
  330. package/es/v1/TextBoxIcon/props/propTypes.js +52 -0
  331. package/es/v1/Textarea/Textarea.js +5 -12
  332. package/es/v1/Textarea/props/defaultProps.js +17 -0
  333. package/es/v1/Textarea/props/propTypes.js +31 -0
  334. package/es/v1/Tooltip/Tooltip.js +16 -60
  335. package/es/v1/Tooltip/props/defaultProps.js +4 -0
  336. package/es/v1/Tooltip/props/propTypes.js +5 -0
  337. package/es/v1/Typography/Typography.js +0 -2
  338. package/es/v1/Typography/css/Typography.module.css +380 -380
  339. package/es/v1/Typography/css/cssJSLogic.js +0 -3
  340. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +4 -3
  341. package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
  342. package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
  343. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +6 -7
  344. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
  345. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
  346. package/es/v1/semantic/Button/Button.js +4 -3
  347. package/es/v1/semantic/Button/props/defaultProps.js +12 -0
  348. package/es/v1/semantic/Button/props/propTypes.js +22 -0
  349. package/install.md +10 -10
  350. package/lib/Accordion/Accordion.js +18 -42
  351. package/lib/Accordion/AccordionItem.js +18 -40
  352. package/lib/Accordion/index.js +0 -3
  353. package/lib/Accordion/props/propTypes.js +0 -3
  354. package/lib/Animation/Animation.js +18 -38
  355. package/lib/Animation/props/propTypes.js +0 -3
  356. package/lib/AppContainer/AppContainer.js +20 -58
  357. package/lib/AppContainer/AppContainer.module.css +18 -18
  358. package/lib/AppContainer/props/propTypes.js +0 -3
  359. package/lib/Avatar/Avatar.js +49 -88
  360. package/lib/Avatar/Avatar.module.css +187 -187
  361. package/lib/Avatar/__tests__/Avatar.spec.js +71 -95
  362. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
  363. package/lib/Avatar/props/propTypes.js +0 -3
  364. package/lib/AvatarTeam/AvatarTeam.js +36 -58
  365. package/lib/AvatarTeam/AvatarTeam.module.css +191 -191
  366. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +61 -77
  367. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -704
  368. package/lib/AvatarTeam/props/propTypes.js +0 -3
  369. package/lib/Button/Button.js +26 -37
  370. package/lib/Button/__tests__/Button.spec.js +48 -65
  371. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -440
  372. package/lib/Button/css/Button.module.css +533 -533
  373. package/lib/Button/css/cssJSLogic.js +17 -18
  374. package/lib/Button/index.js +0 -3
  375. package/lib/Button/props/defaultProps.js +0 -2
  376. package/lib/Button/props/propTypes.js +0 -3
  377. package/lib/Buttongroup/Buttongroup.js +13 -33
  378. package/lib/Buttongroup/Buttongroup.module.css +108 -107
  379. package/lib/Buttongroup/__tests__/Buttongroup.spec.js +10 -18
  380. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  381. package/lib/Buttongroup/props/propTypes.js +0 -3
  382. package/lib/Card/Card.js +50 -106
  383. package/lib/Card/Card.module.css +20 -20
  384. package/lib/Card/index.js +0 -4
  385. package/lib/Card/props/propTypes.js +0 -3
  386. package/lib/CheckBox/CheckBox.js +47 -71
  387. package/lib/CheckBox/CheckBox.module.css +159 -159
  388. package/lib/CheckBox/props/propTypes.js +0 -3
  389. package/lib/DateTime/CalendarView.js +42 -82
  390. package/lib/DateTime/DateTime.js +156 -244
  391. package/lib/DateTime/DateTime.module.css +249 -249
  392. package/lib/DateTime/DateTimePopupFooter.js +8 -33
  393. package/lib/DateTime/DateTimePopupHeader.js +17 -49
  394. package/lib/DateTime/DateWidget.js +249 -350
  395. package/lib/DateTime/DateWidget.module.css +38 -38
  396. package/lib/DateTime/DaysRow.js +5 -28
  397. package/lib/DateTime/Time.js +32 -75
  398. package/lib/DateTime/YearView.js +27 -76
  399. package/lib/DateTime/YearView.module.css +98 -98
  400. package/lib/DateTime/common.js +0 -6
  401. package/lib/DateTime/constants.js +0 -1
  402. package/lib/DateTime/dateFormatUtils/dateFormat.js +122 -187
  403. package/lib/DateTime/dateFormatUtils/dateFormats.js +1 -0
  404. package/lib/DateTime/dateFormatUtils/dayChange.js +7 -15
  405. package/lib/DateTime/dateFormatUtils/index.js +16 -73
  406. package/lib/DateTime/dateFormatUtils/monthChange.js +9 -20
  407. package/lib/DateTime/dateFormatUtils/timeChange.js +22 -54
  408. package/lib/DateTime/dateFormatUtils/yearChange.js +11 -23
  409. package/lib/DateTime/index.js +0 -2
  410. package/lib/DateTime/objectUtils.js +20 -24
  411. package/lib/DateTime/props/propTypes.js +1 -11
  412. package/lib/DateTime/typeChecker.js +0 -4
  413. package/lib/DateTime/validator.js +10 -73
  414. package/lib/DropBox/DropBox.js +21 -45
  415. package/lib/DropBox/DropBoxElement/DropBoxElement.js +38 -59
  416. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +441 -441
  417. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +34 -42
  418. package/lib/DropBox/DropBoxElement/props/propTypes.js +0 -3
  419. package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +9 -14
  420. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  421. package/lib/DropBox/css/DropBox.module.css +59 -59
  422. package/lib/DropBox/css/cssJSLogic.js +1 -3
  423. package/lib/DropBox/props/defaultProps.js +4 -8
  424. package/lib/DropBox/props/propTypes.js +4 -10
  425. package/lib/DropDown/DropDown.js +5 -51
  426. package/lib/DropDown/DropDown.module.css +5 -5
  427. package/lib/DropDown/DropDownHeading.js +20 -39
  428. package/lib/DropDown/DropDownHeading.module.css +59 -59
  429. package/lib/DropDown/DropDownItem.js +20 -42
  430. package/lib/DropDown/DropDownItem.module.css +97 -97
  431. package/lib/DropDown/DropDownSearch.js +17 -40
  432. package/lib/DropDown/DropDownSearch.module.css +14 -14
  433. package/lib/DropDown/DropDownSeparator.js +4 -24
  434. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  435. package/lib/DropDown/index.js +0 -9
  436. package/lib/DropDown/props/propTypes.js +4 -10
  437. package/lib/Heading/Heading.js +15 -37
  438. package/lib/Heading/Heading.module.css +4 -4
  439. package/lib/Heading/props/propTypes.js +0 -3
  440. package/lib/Label/Label.js +21 -41
  441. package/lib/Label/Label.module.css +58 -53
  442. package/lib/Label/LabelColors.module.css +20 -20
  443. package/lib/Label/__tests__/Label.spec.js +34 -48
  444. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
  445. package/lib/Label/props/propTypes.js +0 -3
  446. package/lib/Layout/Box.js +15 -35
  447. package/lib/Layout/Container.js +14 -33
  448. package/lib/Layout/Layout.module.css +335 -335
  449. package/lib/Layout/index.js +0 -3
  450. package/lib/Layout/props/propTypes.js +0 -3
  451. package/lib/Layout/utils.js +0 -11
  452. package/lib/ListItem/ListContainer.js +34 -51
  453. package/lib/ListItem/ListItem.js +45 -74
  454. package/lib/ListItem/ListItem.module.css +237 -237
  455. package/lib/ListItem/ListItemWithAvatar.js +48 -80
  456. package/lib/ListItem/ListItemWithCheckBox.js +40 -70
  457. package/lib/ListItem/ListItemWithIcon.js +44 -73
  458. package/lib/ListItem/ListItemWithRadio.js +42 -71
  459. package/lib/ListItem/index.js +0 -7
  460. package/lib/ListItem/props/propTypes.js +4 -6
  461. package/lib/Modal/Modal.js +10 -45
  462. package/lib/Modal/props/propTypes.js +0 -3
  463. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +171 -298
  464. package/lib/MultiSelect/AdvancedMultiSelect.js +125 -202
  465. package/lib/MultiSelect/EmptyState.js +24 -45
  466. package/lib/MultiSelect/MobileHeader/MobileHeader.js +5 -14
  467. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -16
  468. package/lib/MultiSelect/MobileHeader/props/propTypes.js +0 -3
  469. package/lib/MultiSelect/MultiSelect.js +219 -338
  470. package/lib/MultiSelect/MultiSelect.module.css +204 -204
  471. package/lib/MultiSelect/MultiSelectHeader.js +7 -29
  472. package/lib/MultiSelect/MultiSelectWithAvatar.js +43 -85
  473. package/lib/MultiSelect/SelectedOptions.js +17 -43
  474. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  475. package/lib/MultiSelect/Suggestions.js +34 -65
  476. package/lib/MultiSelect/index.js +0 -5
  477. package/lib/MultiSelect/props/defaultProps.js +0 -2
  478. package/lib/MultiSelect/props/propTypes.js +4 -14
  479. package/lib/PopOver/PopOver.js +47 -94
  480. package/lib/PopOver/PopOver.module.css +9 -9
  481. package/lib/PopOver/index.js +0 -4
  482. package/lib/PopOver/props/propTypes.js +0 -3
  483. package/lib/Popup/Popup.js +81 -158
  484. package/lib/Popup/PositionMapping.json +73 -73
  485. package/lib/Popup/viewPort.js +14 -28
  486. package/lib/Provider/AvatarSize.js +0 -4
  487. package/lib/Provider/Config.js +0 -2
  488. package/lib/Provider/CssProvider.js +0 -4
  489. package/lib/Provider/IdProvider.js +6 -17
  490. package/lib/Provider/LibraryContext.js +15 -35
  491. package/lib/Provider/LibraryContextInit.js +0 -4
  492. package/lib/Provider/NumberGenerator/NumberGenerator.js +15 -44
  493. package/lib/Provider/ZindexProvider.js +3 -15
  494. package/lib/Provider/index.js +0 -5
  495. package/lib/Radio/Radio.js +36 -60
  496. package/lib/Radio/Radio.module.css +113 -113
  497. package/lib/Radio/__tests__/Radio.spec.js +103 -134
  498. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -1837
  499. package/lib/Radio/props/propTypes.js +0 -3
  500. package/lib/Responsive/CustomResponsive.js +29 -73
  501. package/lib/Responsive/RefWrapper.js +11 -17
  502. package/lib/Responsive/ResizeComponent.js +36 -62
  503. package/lib/Responsive/ResizeObserver.js +10 -24
  504. package/lib/Responsive/Responsive.js +30 -80
  505. package/lib/Responsive/index.js +0 -4
  506. package/lib/Responsive/props/propTypes.js +0 -3
  507. package/lib/Responsive/sizeObservers.js +17 -53
  508. package/lib/Responsive/utils/index.js +3 -11
  509. package/lib/Responsive/utils/shallowCompare.js +2 -11
  510. package/lib/Responsive/windowResizeObserver.js +0 -8
  511. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +17 -45
  512. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  513. package/lib/ResponsiveDropBox/props/propTypes.js +4 -9
  514. package/lib/Ribbon/Ribbon.js +13 -33
  515. package/lib/Ribbon/Ribbon.module.css +506 -458
  516. package/lib/Ribbon/__tests__/Ribbon.spec.js +14 -24
  517. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
  518. package/lib/Ribbon/props/propTypes.js +0 -3
  519. package/lib/RippleEffect/RippleEffect.js +10 -18
  520. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  521. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +22 -34
  522. package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -171
  523. package/lib/RippleEffect/props/propTypes.js +0 -3
  524. package/lib/Select/GroupSelect.js +130 -229
  525. package/lib/Select/Select.js +212 -292
  526. package/lib/Select/Select.module.css +109 -108
  527. package/lib/Select/SelectWithAvatar.js +56 -102
  528. package/lib/Select/SelectWithIcon.js +76 -131
  529. package/lib/Select/index.js +0 -5
  530. package/lib/Select/props/defaultProps.js +4 -5
  531. package/lib/Select/props/propTypes.js +4 -10
  532. package/lib/Stencils/Stencils.js +10 -29
  533. package/lib/Stencils/Stencils.module.css +96 -96
  534. package/lib/Stencils/__tests__/Stencils.spec.js +13 -22
  535. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
  536. package/lib/Stencils/props/propTypes.js +0 -3
  537. package/lib/Switch/Switch.js +36 -59
  538. package/lib/Switch/Switch.module.css +129 -129
  539. package/lib/Switch/__tests__/Switch.spec.js +72 -91
  540. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
  541. package/lib/Switch/props/propTypes.js +0 -3
  542. package/lib/Tab/Tab.js +27 -40
  543. package/lib/Tab/Tab.module.css +100 -100
  544. package/lib/Tab/TabContent.js +5 -12
  545. package/lib/Tab/TabContent.module.css +4 -4
  546. package/lib/Tab/TabContentWrapper.js +6 -13
  547. package/lib/Tab/TabWrapper.js +19 -37
  548. package/lib/Tab/Tabs.js +102 -182
  549. package/lib/Tab/Tabs.module.css +136 -136
  550. package/lib/Tab/index.js +0 -6
  551. package/lib/Tab/props/propTypes.js +0 -3
  552. package/lib/Tag/Tag.js +51 -80
  553. package/lib/Tag/Tag.module.css +260 -260
  554. package/lib/Tag/props/propTypes.js +0 -3
  555. package/lib/TextBox/TextBox.js +59 -85
  556. package/lib/TextBox/TextBox.module.css +179 -178
  557. package/lib/TextBox/props/propTypes.js +4 -6
  558. package/lib/TextBoxIcon/TextBoxIcon.js +52 -79
  559. package/lib/TextBoxIcon/TextBoxIcon.module.css +84 -84
  560. package/lib/TextBoxIcon/props/propTypes.js +4 -9
  561. package/lib/Textarea/Textarea.js +29 -54
  562. package/lib/Textarea/Textarea.module.css +146 -145
  563. package/lib/Textarea/props/propTypes.js +0 -3
  564. package/lib/Tooltip/Tooltip.js +31 -94
  565. package/lib/Tooltip/Tooltip.module.css +144 -144
  566. package/lib/Tooltip/props/propTypes.js +0 -3
  567. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +16 -40
  568. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
  569. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +25 -53
  570. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
  571. package/lib/VelocityAnimation/index.js +0 -3
  572. package/lib/common/a11y.module.css +3 -3
  573. package/lib/common/animation.module.css +624 -624
  574. package/lib/common/avatarsizes.module.css +48 -48
  575. package/lib/common/basic.module.css +33 -33
  576. package/lib/common/basicReset.module.css +40 -40
  577. package/lib/common/boxShadow.module.css +33 -33
  578. package/lib/common/common.module.css +524 -524
  579. package/lib/common/customscroll.module.css +128 -128
  580. package/lib/common/reset.module.css +13 -13
  581. package/lib/common/transition.module.css +146 -146
  582. package/lib/css.js +0 -40
  583. package/lib/deprecated/PortalLayer/PortalLayer.js +23 -46
  584. package/lib/deprecated/PortalLayer/props/propTypes.js +0 -3
  585. package/lib/index.js +0 -58
  586. package/lib/semantic/Button/Button.js +22 -42
  587. package/lib/semantic/Button/props/propTypes.js +0 -3
  588. package/lib/semantic/Button/semanticButton.module.css +9 -9
  589. package/lib/semantic/index.js +0 -2
  590. package/lib/utils/Common.js +18 -111
  591. package/lib/utils/ContextOptimizer.js +10 -16
  592. package/lib/utils/constructFullName.js +4 -13
  593. package/lib/utils/datetime/common.js +5 -34
  594. package/lib/utils/debounce.js +1 -6
  595. package/lib/utils/dropDownUtils.js +59 -175
  596. package/lib/utils/dummyFunction.js +0 -2
  597. package/lib/utils/getHTMLFontSize.js +0 -1
  598. package/lib/utils/getInitial.js +0 -6
  599. package/lib/utils/index.js +0 -1
  600. package/lib/utils/scrollTo.js +0 -2
  601. package/lib/utils/shallowEqual.js +0 -8
  602. package/lib/v1/Accordion/Accordion.js +21 -40
  603. package/lib/v1/Accordion/AccordionItem.js +15 -25
  604. package/lib/v1/Accordion/index.js +0 -3
  605. package/lib/v1/Accordion/props/defaultProps.js +20 -0
  606. package/lib/v1/Accordion/props/propTypes.js +42 -0
  607. package/lib/v1/Animation/Animation.js +16 -22
  608. package/lib/v1/Animation/props/defaultProps.js +14 -0
  609. package/lib/v1/Animation/props/propTypes.js +20 -0
  610. package/lib/v1/AppContainer/AppContainer.js +19 -48
  611. package/lib/v1/AppContainer/props/defaultProps.js +17 -0
  612. package/lib/v1/AppContainer/props/propTypes.js +25 -0
  613. package/lib/v1/Avatar/Avatar.js +41 -76
  614. package/lib/v1/Avatar/props/defaultProps.js +24 -0
  615. package/lib/v1/Avatar/props/propTypes.js +34 -0
  616. package/lib/v1/AvatarTeam/AvatarTeam.js +30 -38
  617. package/lib/v1/AvatarTeam/props/defaultProps.js +24 -0
  618. package/lib/v1/AvatarTeam/props/propTypes.js +35 -0
  619. package/lib/v1/Button/Button.js +28 -38
  620. package/lib/v1/Button/props/defaultProps.js +25 -0
  621. package/lib/v1/Button/props/propTypes.js +36 -0
  622. package/lib/v1/Buttongroup/Buttongroup.js +7 -15
  623. package/lib/v1/Buttongroup/props/defaultProps.js +13 -0
  624. package/lib/v1/Buttongroup/props/propTypes.js +17 -0
  625. package/lib/v1/Card/Card.js +51 -85
  626. package/lib/v1/Card/index.js +0 -4
  627. package/lib/v1/Card/props/defaultProps.js +35 -0
  628. package/lib/v1/Card/props/propTypes.js +59 -0
  629. package/lib/v1/CheckBox/CheckBox.js +46 -57
  630. package/lib/v1/CheckBox/props/defaultProps.js +25 -0
  631. package/lib/v1/CheckBox/props/propTypes.js +48 -0
  632. package/lib/v1/DateTime/CalendarView.js +48 -89
  633. package/lib/v1/DateTime/DateTime.js +158 -246
  634. package/lib/v1/DateTime/DateTimePopupFooter.js +8 -33
  635. package/lib/v1/DateTime/DateTimePopupHeader.js +17 -49
  636. package/lib/v1/DateTime/DateWidget.js +251 -352
  637. package/lib/v1/DateTime/DaysRow.js +5 -28
  638. package/lib/v1/DateTime/Time.js +32 -75
  639. package/lib/v1/DateTime/YearView.js +27 -76
  640. package/lib/v1/DateTime/index.js +0 -2
  641. package/lib/v1/DateTime/props/propTypes.js +1 -11
  642. package/lib/v1/DropBox/DropBox.js +23 -47
  643. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +40 -61
  644. package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +25 -0
  645. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +59 -0
  646. package/lib/v1/DropBox/props/defaultProps.js +26 -0
  647. package/lib/v1/DropBox/props/propTypes.js +29 -0
  648. package/lib/v1/DropDown/DropDown.js +5 -25
  649. package/lib/v1/DropDown/DropDownHeading.js +15 -22
  650. package/lib/v1/DropDown/DropDownItem.js +13 -28
  651. package/lib/v1/DropDown/DropDownSearch.js +18 -30
  652. package/lib/v1/DropDown/DropDownSeparator.js +2 -8
  653. package/lib/v1/DropDown/props/defaultProps.js +30 -0
  654. package/lib/v1/DropDown/props/propTypes.js +81 -0
  655. package/lib/v1/Heading/Heading.js +16 -21
  656. package/lib/v1/Heading/props/defaultProps.js +12 -0
  657. package/lib/v1/Heading/props/propTypes.js +19 -0
  658. package/lib/v1/Label/Label.js +16 -24
  659. package/lib/v1/Label/props/defaultProps.js +18 -0
  660. package/lib/v1/Label/props/propTypes.js +27 -0
  661. package/lib/v1/Layout/Box.js +17 -37
  662. package/lib/v1/Layout/Container.js +16 -35
  663. package/lib/v1/Layout/index.js +0 -3
  664. package/lib/v1/Layout/props/defaultProps.js +24 -0
  665. package/lib/v1/Layout/props/propTypes.js +55 -0
  666. package/lib/v1/ListItem/ListContainer.js +36 -53
  667. package/lib/v1/ListItem/ListItem.js +40 -55
  668. package/lib/v1/ListItem/ListItemWithAvatar.js +41 -64
  669. package/lib/v1/ListItem/ListItemWithCheckBox.js +36 -51
  670. package/lib/v1/ListItem/ListItemWithIcon.js +39 -54
  671. package/lib/v1/ListItem/ListItemWithRadio.js +37 -51
  672. package/lib/v1/ListItem/index.js +0 -7
  673. package/lib/v1/ListItem/props/defaultProps.js +109 -0
  674. package/lib/v1/ListItem/props/propTypes.js +194 -0
  675. package/lib/v1/Modal/Modal.js +11 -48
  676. package/lib/v1/Modal/props/defaultProps.js +10 -0
  677. package/lib/v1/Modal/props/propTypes.js +15 -0
  678. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +175 -301
  679. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +127 -204
  680. package/lib/v1/MultiSelect/EmptyState.js +26 -47
  681. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +7 -16
  682. package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
  683. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +15 -0
  684. package/lib/v1/MultiSelect/MultiSelect.js +224 -343
  685. package/lib/v1/MultiSelect/MultiSelectHeader.js +9 -31
  686. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +46 -89
  687. package/lib/v1/MultiSelect/SelectedOptions.js +19 -45
  688. package/lib/v1/MultiSelect/Suggestions.js +36 -67
  689. package/lib/v1/MultiSelect/index.js +0 -5
  690. package/lib/v1/MultiSelect/props/defaultProps.js +167 -0
  691. package/lib/v1/MultiSelect/props/propTypes.js +330 -0
  692. package/lib/v1/PopOver/PopOver.js +42 -73
  693. package/lib/v1/PopOver/props/defaultProps.js +15 -0
  694. package/lib/v1/PopOver/props/propTypes.js +63 -0
  695. package/lib/v1/Popup/Popup.js +81 -158
  696. package/lib/v1/Provider/AvatarSize.js +0 -4
  697. package/lib/v1/Provider/Config.js +0 -2
  698. package/lib/v1/Provider/CssProvider.js +0 -4
  699. package/lib/v1/Provider/IdProvider.js +6 -17
  700. package/lib/v1/Provider/LibraryContext.js +15 -35
  701. package/lib/v1/Provider/LibraryContextInit.js +0 -4
  702. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +15 -44
  703. package/lib/v1/Provider/ZindexProvider.js +3 -15
  704. package/lib/v1/Provider/index.js +0 -5
  705. package/lib/v1/Radio/Radio.js +36 -46
  706. package/lib/v1/Radio/props/defaultProps.js +21 -0
  707. package/lib/v1/Radio/props/propTypes.js +41 -0
  708. package/lib/v1/Responsive/CustomResponsive.js +31 -75
  709. package/lib/v1/Responsive/RefWrapper.js +11 -17
  710. package/lib/v1/Responsive/ResizeComponent.js +36 -62
  711. package/lib/v1/Responsive/ResizeObserver.js +10 -24
  712. package/lib/v1/Responsive/Responsive.js +32 -82
  713. package/lib/v1/Responsive/index.js +0 -4
  714. package/lib/v1/Responsive/props/defaultProps.js +23 -0
  715. package/lib/v1/Responsive/props/propTypes.js +36 -0
  716. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +15 -29
  717. package/lib/v1/ResponsiveDropBox/props/defaultProps.js +11 -0
  718. package/lib/v1/ResponsiveDropBox/props/propTypes.js +22 -0
  719. package/lib/v1/Ribbon/Ribbon.js +10 -17
  720. package/lib/v1/Ribbon/props/defaultProps.js +16 -0
  721. package/lib/v1/Ribbon/props/propTypes.js +19 -0
  722. package/lib/v1/RippleEffect/RippleEffect.js +9 -19
  723. package/lib/v1/RippleEffect/props/defaultProps.js +16 -0
  724. package/lib/v1/RippleEffect/props/propTypes.js +19 -0
  725. package/lib/v1/Select/GroupSelect.js +132 -231
  726. package/lib/v1/Select/Select.js +216 -295
  727. package/lib/v1/Select/SelectWithAvatar.js +58 -104
  728. package/lib/v1/Select/SelectWithIcon.js +78 -133
  729. package/lib/v1/Select/index.js +0 -5
  730. package/lib/v1/Select/props/defaultProps.js +119 -0
  731. package/lib/v1/Select/props/propTypes.js +304 -0
  732. package/lib/v1/Stencils/Stencils.js +5 -15
  733. package/lib/v1/Stencils/props/defaultProps.js +13 -0
  734. package/lib/v1/Stencils/props/propTypes.js +15 -0
  735. package/lib/v1/Switch/Switch.js +29 -42
  736. package/lib/v1/Switch/props/defaultProps.js +18 -0
  737. package/lib/v1/Switch/props/propTypes.js +36 -0
  738. package/lib/v1/Tab/Tab.js +29 -42
  739. package/lib/v1/Tab/TabContent.js +7 -14
  740. package/lib/v1/Tab/TabContentWrapper.js +8 -15
  741. package/lib/v1/Tab/TabWrapper.js +21 -39
  742. package/lib/v1/Tab/Tabs.js +104 -184
  743. package/lib/v1/Tab/index.js +0 -6
  744. package/lib/v1/Tab/props/defaultProps.js +55 -0
  745. package/lib/v1/Tab/props/propTypes.js +118 -0
  746. package/lib/v1/Tag/Tag.js +42 -60
  747. package/lib/v1/Tag/props/defaultProps.js +21 -0
  748. package/lib/v1/Tag/props/propTypes.js +43 -0
  749. package/lib/v1/TextBox/TextBox.js +48 -69
  750. package/lib/v1/TextBox/props/defaultProps.js +26 -0
  751. package/lib/v1/TextBox/props/propTypes.js +60 -0
  752. package/lib/v1/TextBoxIcon/TextBoxIcon.js +56 -81
  753. package/lib/v1/TextBoxIcon/props/defaultProps.js +29 -0
  754. package/lib/v1/TextBoxIcon/props/propTypes.js +65 -0
  755. package/lib/v1/Textarea/Textarea.js +30 -47
  756. package/lib/v1/Textarea/props/defaultProps.js +24 -0
  757. package/lib/v1/Textarea/props/propTypes.js +39 -0
  758. package/lib/v1/Tooltip/Tooltip.js +33 -96
  759. package/lib/v1/Tooltip/props/defaultProps.js +11 -0
  760. package/lib/v1/Tooltip/props/propTypes.js +13 -0
  761. package/lib/v1/Typography/Typography.js +15 -26
  762. package/lib/v1/Typography/css/Typography.module.css +380 -380
  763. package/lib/v1/Typography/css/cssJSLogic.js +20 -25
  764. package/lib/v1/Typography/props/propTypes.js +0 -3
  765. package/lib/v1/Typography/utils/index.js +0 -1
  766. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +14 -27
  767. package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
  768. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +20 -0
  769. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +24 -40
  770. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
  771. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +27 -0
  772. package/lib/v1/semantic/Button/Button.js +20 -26
  773. package/lib/v1/semantic/Button/props/defaultProps.js +19 -0
  774. package/lib/v1/semantic/Button/props/propTypes.js +30 -0
  775. package/lib/v1/semantic/index.js +0 -2
  776. package/package.json +97 -95
  777. package/postPublish.js +8 -8
  778. package/prePublish.js +70 -70
  779. package/propValidationArg.json +7 -7
  780. package/react-cli.config.js +23 -23
  781. package/result.json +1 -1
@@ -4,19 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.propTypes = exports.DropBoxPropTypes = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _propTypes2 = require("../DropBoxElement/props/propTypes");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
10
+ 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); }
14
11
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
-
16
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
-
18
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
-
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
+ 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); }
20
16
  var propTypes = {
21
17
  needResponsive: _propTypes["default"].bool,
22
18
  portalId: _propTypes["default"].string,
@@ -29,7 +25,5 @@ var propTypes = {
29
25
  onClose: _propTypes["default"].func
30
26
  };
31
27
  exports.propTypes = propTypes;
32
-
33
28
  var DropBoxPropTypes = _objectSpread(_objectSpread({}, _propTypes2.DropBoxElementPropTypes), propTypes);
34
-
35
29
  exports.DropBoxPropTypes = DropBoxPropTypes;
@@ -1,60 +1,38 @@
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"] = exports.DropDownTarget = exports.DropDownItemContainer = exports.DropDownContainer = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _propTypes = require("./props/propTypes");
13
-
14
10
  var _defaultProps = require("./props/defaultProps");
15
-
16
11
  var _DropDownModule = _interopRequireDefault(require("./DropDown.module.css"));
17
-
18
12
  var _PopOver = _interopRequireWildcard(require("../PopOver/PopOver"));
19
-
20
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
-
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, descriptor.key, descriptor); } }
29
-
17
+ 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); } }
30
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
-
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ 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); }
32
21
  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); }
33
-
34
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
-
36
23
  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); }; }
37
-
38
24
  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); }
39
-
40
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
-
42
26
  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; } }
43
-
44
27
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
46
28
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['dropdown', 'shadow', 'target', 'menu', 'header', 'headertext', 'list', 'padding', 'listHover', 'active', 'children', 'user', 'footer', 'separator', 'small', 'search', 'medium', 'heading'] }] */
47
29
  var DropDown = /*#__PURE__*/function (_React$Component) {
48
30
  _inherits(DropDown, _React$Component);
49
-
50
31
  var _super = _createSuper(DropDown);
51
-
52
32
  function DropDown() {
53
33
  _classCallCheck(this, DropDown);
54
-
55
34
  return _super.apply(this, arguments);
56
35
  }
57
-
58
36
  _createClass(DropDown, [{
59
37
  key: "render",
60
38
  value: function render() {
@@ -62,24 +40,17 @@ var DropDown = /*#__PURE__*/function (_React$Component) {
62
40
  return /*#__PURE__*/_react["default"].createElement(_PopOver["default"], this.props, /*#__PURE__*/_react["default"].createElement(_PopOver.PopOverTarget, null, children[0]), /*#__PURE__*/_react["default"].createElement(_PopOver.PopOverContainer, null, children[1]));
63
41
  }
64
42
  }]);
65
-
66
43
  return DropDown;
67
44
  }(_react["default"].Component);
68
-
69
45
  exports["default"] = DropDown;
70
46
  DropDown.propTypes = _propTypes.DropDown_propTypes;
71
-
72
47
  var DropDownTarget = /*#__PURE__*/function (_React$Component2) {
73
48
  _inherits(DropDownTarget, _React$Component2);
74
-
75
49
  var _super2 = _createSuper(DropDownTarget);
76
-
77
50
  function DropDownTarget() {
78
51
  _classCallCheck(this, DropDownTarget);
79
-
80
52
  return _super2.apply(this, arguments);
81
53
  }
82
-
83
54
  _createClass(DropDownTarget, [{
84
55
  key: "render",
85
56
  value: function render() {
@@ -87,24 +58,17 @@ var DropDownTarget = /*#__PURE__*/function (_React$Component2) {
87
58
  return /*#__PURE__*/_react["default"].createElement("div", null, children);
88
59
  }
89
60
  }]);
90
-
91
61
  return DropDownTarget;
92
62
  }(_react["default"].Component);
93
-
94
63
  exports.DropDownTarget = DropDownTarget;
95
64
  DropDownTarget.propTypes = _propTypes.DropDownTarget_propTypes;
96
-
97
65
  var DropDownContainer = /*#__PURE__*/function (_React$Component3) {
98
66
  _inherits(DropDownContainer, _React$Component3);
99
-
100
67
  var _super3 = _createSuper(DropDownContainer);
101
-
102
68
  function DropDownContainer() {
103
69
  _classCallCheck(this, DropDownContainer);
104
-
105
70
  return _super3.apply(this, arguments);
106
71
  }
107
-
108
72
  _createClass(DropDownContainer, [{
109
73
  key: "render",
110
74
  value: function render() {
@@ -112,29 +76,21 @@ var DropDownContainer = /*#__PURE__*/function (_React$Component3) {
112
76
  return /*#__PURE__*/_react["default"].createElement("div", null, " ", children, " ");
113
77
  }
114
78
  }]);
115
-
116
79
  return DropDownContainer;
117
80
  }(_react["default"].Component);
118
-
119
81
  exports.DropDownContainer = DropDownContainer;
120
82
  DropDownContainer.propTypes = _propTypes.DropDownContainer_propTypes;
121
-
122
83
  var DropDownItemContainer = /*#__PURE__*/function (_React$Component4) {
123
84
  _inherits(DropDownItemContainer, _React$Component4);
124
-
125
85
  var _super4 = _createSuper(DropDownItemContainer);
126
-
127
86
  function DropDownItemContainer(props) {
128
87
  var _this;
129
-
130
88
  _classCallCheck(this, DropDownItemContainer);
131
-
132
89
  _this = _super4.call(this, props);
133
90
  _this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
134
91
  _this.onScroll = _this.onScroll.bind(_assertThisInitialized(_this));
135
92
  return _this;
136
93
  }
137
-
138
94
  _createClass(DropDownItemContainer, [{
139
95
  key: "onScroll",
140
96
  value: function onScroll(e) {
@@ -151,8 +107,8 @@ var DropDownItemContainer = /*#__PURE__*/function (_React$Component4) {
151
107
  key: "render",
152
108
  value: function render() {
153
109
  var _this$props = this.props,
154
- children = _this$props.children,
155
- dataId = _this$props.dataId;
110
+ children = _this$props.children,
111
+ dataId = _this$props.dataId;
156
112
  return /*#__PURE__*/_react["default"].createElement("div", {
157
113
  className: _DropDownModule["default"].listGroup,
158
114
  onScroll: this.onScroll,
@@ -162,10 +118,8 @@ var DropDownItemContainer = /*#__PURE__*/function (_React$Component4) {
162
118
  }, children);
163
119
  }
164
120
  }]);
165
-
166
121
  return DropDownItemContainer;
167
122
  }(_react["default"].Component);
168
-
169
123
  exports.DropDownItemContainer = DropDownItemContainer;
170
124
  DropDownItemContainer.propTypes = _propTypes.DropDownItemContainer_propTypes;
171
125
  DropDownItemContainer.defaultProps = _defaultProps.DropDownItemContainer_defaultProps;
@@ -1,5 +1,5 @@
1
- .listGroup {
2
- max-height: var(--zd_size220) ;
3
- composes: oflowy from '../common/common.module.css';
4
- margin: var(--zd_size8) 0 var(--zd_size4) ;
5
- }
1
+ .listGroup {
2
+ max-height: 220px;
3
+ composes: oflowy from '../common/common.module.css';
4
+ margin: 8px 0 4px;
5
+ }
@@ -1,70 +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 _propTypes = require("./props/propTypes");
13
-
14
10
  var _defaultProps = require("./props/defaultProps");
15
-
16
11
  var _DropDownHeadingModule = _interopRequireDefault(require("./DropDownHeading.module.css"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- 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); } }
23
-
14
+ 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); } }
24
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
-
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ 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); }
26
18
  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); }
27
-
28
19
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
20
  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); }; }
31
-
32
21
  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); }
33
-
34
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
-
36
23
  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; } }
37
-
38
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
25
  var DropDownHeading = /*#__PURE__*/function (_React$Component) {
41
26
  _inherits(DropDownHeading, _React$Component);
42
-
43
27
  var _super = _createSuper(DropDownHeading);
44
-
45
28
  function DropDownHeading() {
46
29
  _classCallCheck(this, DropDownHeading);
47
-
48
30
  return _super.apply(this, arguments);
49
31
  }
50
-
51
32
  _createClass(DropDownHeading, [{
52
33
  key: "render",
53
34
  value: function render() {
54
35
  var _this$props = this.props,
55
- text = _this$props.text,
56
- _this$props$title = _this$props.title,
57
- title = _this$props$title === void 0 ? text : _this$props$title,
58
- children = _this$props.children,
59
- customClass = _this$props.customClass,
60
- palette = _this$props.palette,
61
- htmlId = _this$props.htmlId,
62
- a11y = _this$props.a11y,
63
- dataId = _this$props.dataId,
64
- dataSelectorId = _this$props.dataSelectorId;
36
+ text = _this$props.text,
37
+ _this$props$title = _this$props.title,
38
+ title = _this$props$title === void 0 ? text : _this$props$title,
39
+ children = _this$props.children,
40
+ customClass = _this$props.customClass,
41
+ palette = _this$props.palette,
42
+ htmlId = _this$props.htmlId,
43
+ a11y = _this$props.a11y,
44
+ dataId = _this$props.dataId,
45
+ dataSelectorId = _this$props.dataSelectorId;
65
46
  var role = a11y.role,
66
- ariaLabelledby = a11y.ariaLabelledby,
67
- ariaLabel = a11y.ariaLabel;
47
+ ariaLabelledby = a11y.ariaLabelledby,
48
+ ariaLabel = a11y.ariaLabel;
68
49
  return /*#__PURE__*/_react["default"].createElement("div", {
69
50
  className: "".concat(_DropDownHeadingModule["default"][palette], " ").concat(customClass),
70
51
  "data-title": title,
@@ -74,18 +55,18 @@ var DropDownHeading = /*#__PURE__*/function (_React$Component) {
74
55
  id: htmlId,
75
56
  "data-id": dataId,
76
57
  "data-test-id": dataId,
77
- "data-selector-id": dataSelectorId // tabindex='0'
78
-
58
+ "data-selector-id": dataSelectorId
59
+ // tabindex='0'
79
60
  }, text, children);
80
61
  }
81
62
  }]);
82
-
83
63
  return DropDownHeading;
84
64
  }(_react["default"].Component);
85
-
86
65
  exports["default"] = DropDownHeading;
87
66
  DropDownHeading.propTypes = _propTypes.DropDownHeading_propTypes;
88
- DropDownHeading.defaultProps = _defaultProps.DropDownHeading_defaultProps; // if (__DOCS__) {
67
+ DropDownHeading.defaultProps = _defaultProps.DropDownHeading_defaultProps;
68
+
69
+ // if (__DOCS__) {
89
70
  // DropDownHeading.docs = {
90
71
  // componentGroup: 'Form Elements',
91
72
  // folderName: 'Style Guide'
@@ -1,59 +1,59 @@
1
- .varClass {
2
- /* dropdownheading default variables */
3
- --dropdownheading_text_color: var(--zdt_dropdown_default_text);
4
- --dropdownheading_text_transform: uppercase;
5
- --dropdownheading_padding: var(--zd_size10) var(--zd_size20);
6
- --dropdownheading_bg_color: none;
7
-
8
- /* dropdownheading underline default variables */
9
- --dropdownheading_underline_width: var(--zd_size20);
10
- --dropdownheading_underline_height: var(--zd_size1);
11
- --dropdownheading_underline_bg_color: var(--zdt_dropdown_default_bg);
12
- --dropdownheading_underline_left: var(--zd_size20);
13
- }
14
- .default {
15
- composes: dotted semibold from '../common/common.module.css';
16
- composes: varClass;
17
- position: relative;
18
- font-size: var(--zd_font_size11) ;
19
- letter-spacing: 0.6px;
20
- text-transform: var(--dropdownheading_text_transform);
21
- /* css:theme-validation:ignore */
22
- color: var(--dropdownheading_text_color);
23
- /* css:theme-validation:ignore */
24
- padding: var(--dropdownheading_padding);
25
- background-color: var(--dropdownheading_bg_color);
26
- }
27
- .default::after {
28
- position: absolute;
29
- content: '';
30
- bottom: var(--zd_size2) ;
31
- width: var(--dropdownheading_underline_width);
32
- height: var(--dropdownheading_underline_height);
33
- }
34
-
35
- .light {
36
- composes: default;
37
- }
38
- .light::after,
39
- .dark::after {
40
- /* css:theme-validation:ignore */
41
- }
42
- .light::after, .dark::after {
43
- background-color: var(--dropdownheading_underline_bg_color);
44
- }
45
- [dir=ltr] .light::after, [dir=ltr] .dark::after {
46
- left: var(--dropdownheading_underline_left);
47
- }
48
- [dir=rtl] .light::after, [dir=rtl] .dark::after {
49
- right: var(--dropdownheading_underline_left);
50
- }
51
-
52
- .dark {
53
- composes: default;
54
- --dropdownheading_text_color: var(--zdt_dropdown_darkheading_text);
55
- --dropdownheading_bg_color: var(--zdt_dropdown_darkheading_bg);
56
- }
57
- .dark::after {
58
- --dropdownheading_underline_bg_color: var(--zdt_dropdown_darkheading_underline_bg);
59
- }
1
+ .varClass {
2
+ /* dropdownheading default variables */
3
+ --dropdownheading_text_color: var(--zdt_dropdown_default_text);
4
+ --dropdownheading_text_transform: uppercase;
5
+ --dropdownheading_padding: 10px 20px;
6
+ --dropdownheading_bg_color: none;
7
+
8
+ /* dropdownheading underline default variables */
9
+ --dropdownheading_underline_width: 20px;
10
+ --dropdownheading_underline_height: 1px;
11
+ --dropdownheading_underline_bg_color: var(--zdt_dropdown_default_bg);
12
+ --dropdownheading_underline_left: 20px;
13
+ }
14
+ .default {
15
+ composes: dotted semibold from '../common/common.module.css';
16
+ composes: varClass;
17
+ position: relative;
18
+ font-size: 11px;
19
+ letter-spacing: 0.6px;
20
+ text-transform: var(--dropdownheading_text_transform);
21
+ /* css:theme-validation:ignore */
22
+ color: var(--dropdownheading_text_color);
23
+ /* css:theme-validation:ignore */
24
+ padding: var(--dropdownheading_padding);
25
+ background-color: var(--dropdownheading_bg_color);
26
+ }
27
+ .default::after {
28
+ position: absolute;
29
+ content: '';
30
+ bottom: 2px;
31
+ width: var(--dropdownheading_underline_width);
32
+ height: var(--dropdownheading_underline_height);
33
+ }
34
+
35
+ .light {
36
+ composes: default;
37
+ }
38
+ .light::after,
39
+ .dark::after {
40
+ /* css:theme-validation:ignore */
41
+ }
42
+ .light::after, .dark::after {
43
+ background-color: var(--dropdownheading_underline_bg_color);
44
+ }
45
+ [dir=ltr] .light::after, [dir=ltr] .dark::after {
46
+ left: var(--dropdownheading_underline_left);
47
+ }
48
+ [dir=rtl] .light::after, [dir=rtl] .dark::after {
49
+ right: var(--dropdownheading_underline_left);
50
+ }
51
+
52
+ .dark {
53
+ composes: default;
54
+ --dropdownheading_text_color: var(--zdt_dropdown_darkheading_text);
55
+ --dropdownheading_bg_color: var(--zdt_dropdown_darkheading_bg);
56
+ }
57
+ .dark::after {
58
+ --dropdownheading_underline_bg_color: var(--zdt_dropdown_darkheading_underline_bg);
59
+ }
@@ -1,52 +1,33 @@
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 _propTypes = require("./props/propTypes");
13
-
14
10
  var _defaultProps = require("./props/defaultProps");
15
-
16
11
  var _DropDownItemModule = _interopRequireDefault(require("./DropDownItem.module.css"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- 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); } }
23
-
14
+ 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); } }
24
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
-
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ 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); }
26
18
  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); }
27
-
28
19
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
20
  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); }; }
31
-
32
21
  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); }
33
-
34
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
-
36
23
  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; } }
37
-
38
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
25
  var DropDownItem = /*#__PURE__*/function (_React$Component) {
41
26
  _inherits(DropDownItem, _React$Component);
42
-
43
27
  var _super = _createSuper(DropDownItem);
44
-
45
28
  function DropDownItem(props) {
46
29
  var _this;
47
-
48
30
  _classCallCheck(this, DropDownItem);
49
-
50
31
  _this = _super.call(this, props);
51
32
  _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));
52
33
  _this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
@@ -54,14 +35,13 @@ var DropDownItem = /*#__PURE__*/function (_React$Component) {
54
35
  _this.onHover = _this.onHover.bind(_assertThisInitialized(_this));
55
36
  return _this;
56
37
  }
57
-
58
38
  _createClass(DropDownItem, [{
59
39
  key: "getRef",
60
40
  value: function getRef(ele) {
61
41
  this.ele = ele;
62
42
  var _this$props = this.props,
63
- index = _this$props.index,
64
- getRef = _this$props.getRef;
43
+ index = _this$props.index,
44
+ getRef = _this$props.getRef;
65
45
  getRef && getRef(ele, index);
66
46
  }
67
47
  }, {
@@ -73,33 +53,33 @@ var DropDownItem = /*#__PURE__*/function (_React$Component) {
73
53
  key: "onClick",
74
54
  value: function onClick(e) {
75
55
  var _this$props2 = this.props,
76
- onClick = _this$props2.onClick,
77
- id = _this$props2.id,
78
- value = _this$props2.value,
79
- index = _this$props2.index;
56
+ onClick = _this$props2.onClick,
57
+ id = _this$props2.id,
58
+ value = _this$props2.value,
59
+ index = _this$props2.index;
80
60
  onClick && onClick(id, value, index, e);
81
61
  }
82
62
  }, {
83
63
  key: "onHover",
84
64
  value: function onHover(e) {
85
65
  var _this$props3 = this.props,
86
- onHover = _this$props3.onHover,
87
- id = _this$props3.id,
88
- value = _this$props3.value,
89
- index = _this$props3.index;
66
+ onHover = _this$props3.onHover,
67
+ id = _this$props3.id,
68
+ value = _this$props3.value,
69
+ index = _this$props3.index;
90
70
  onHover && onHover(id, value, index, e);
91
71
  }
92
72
  }, {
93
73
  key: "render",
94
74
  value: function render() {
95
75
  var _this$props4 = this.props,
96
- value = _this$props4.value,
97
- active = _this$props4.active,
98
- children = _this$props4.children,
99
- hightlight = _this$props4.hightlight,
100
- dataId = _this$props4.dataId,
101
- _this$props4$customCl = _this$props4.customClass,
102
- customClass = _this$props4$customCl === void 0 ? '' : _this$props4$customCl;
76
+ value = _this$props4.value,
77
+ active = _this$props4.active,
78
+ children = _this$props4.children,
79
+ hightlight = _this$props4.hightlight,
80
+ dataId = _this$props4.dataId,
81
+ _this$props4$customCl = _this$props4.customClass,
82
+ customClass = _this$props4$customCl === void 0 ? '' : _this$props4$customCl;
103
83
  return /*#__PURE__*/_react["default"].createElement("div", {
104
84
  className: "".concat(_DropDownItemModule["default"].list, " ").concat(customClass, " ").concat(active ? _DropDownItemModule["default"].listActive : hightlight ? _DropDownItemModule["default"].listHover : '', " ").concat(children && children[1] ? _DropDownItemModule["default"].padding : ''),
105
85
  onClick: this.onClick,
@@ -118,10 +98,8 @@ var DropDownItem = /*#__PURE__*/function (_React$Component) {
118
98
  }, " ", children[1], " ") : '');
119
99
  }
120
100
  }]);
121
-
122
101
  return DropDownItem;
123
102
  }(_react["default"].Component);
124
-
125
103
  exports["default"] = DropDownItem;
126
104
  DropDownItem.propTypes = _propTypes.DropDownItem_propTypes;
127
105
  DropDownItem.defaultProps = _defaultProps.DropDownItem_defaultProps;