@zohodesk/components 1.0.0-temp-78 → 1.0.0-temp-80

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 (698) hide show
  1. package/README.md +1084 -1075
  2. package/assets/Appearance/dark/mode/contrast/darkContrast.module.css +343 -0
  3. package/assets/Appearance/dark/themes/blue/contrast/blueDarkCTAThemeContrast.module.css +34 -0
  4. package/assets/Appearance/dark/themes/green/contrast/greenDarkCTAThemeContrast.module.css +34 -0
  5. package/assets/Appearance/dark/themes/orange/contrast/orangeDarkCTAThemeContrast.module.css +34 -0
  6. package/assets/Appearance/dark/themes/red/contrast/redDarkCTAThemeContrast.module.css +34 -0
  7. package/assets/Appearance/dark/themes/yellow/contrast/yellowDarkCTAThemeContrast.module.css +34 -0
  8. package/assets/Appearance/default/mode/contrast/defaultContrast.module.css +343 -0
  9. package/assets/Appearance/default/themes/blue/contrast/blueDefaultCTAThemeContrast.module.css +34 -0
  10. package/assets/Appearance/default/themes/green/contrast/greenDefaultCTAThemeContrast.module.css +34 -0
  11. package/assets/Appearance/default/themes/orange/contrast/orangeDefaultCTAThemeContrast.module.css +34 -0
  12. package/assets/Appearance/default/themes/red/contrast/redDefaultCTAThemeContrast.module.css +34 -0
  13. package/assets/Appearance/default/themes/yellow/contrast/yellowDefaultCTAThemeContrast.module.css +34 -0
  14. package/assets/Appearance/pureDark/mode/contrast/pureDarkContrast.module.css +343 -0
  15. package/assets/Appearance/pureDark/themes/blue/contrast/bluePureDarkCTAThemeContrast.module.css +34 -0
  16. package/assets/Appearance/pureDark/themes/green/contrast/greenPureDarkCTAThemeContrast.module.css +34 -0
  17. package/assets/Appearance/pureDark/themes/orange/contrast/orangePureDarkCTAThemeContrast.module.css +34 -0
  18. package/assets/Appearance/pureDark/themes/red/contrast/redPureDarkCTAThemeContrast.module.css +34 -0
  19. package/assets/Appearance/pureDark/themes/yellow/contrast/yellowPureDarkCTAThemeContrast.module.css +34 -0
  20. package/docs/external/active-line.js +72 -72
  21. package/docs/external/autorefresh.js +47 -47
  22. package/docs/external/codemirror.js +9681 -9681
  23. package/docs/external/css/hopscotch.css +576 -576
  24. package/docs/external/css/styleGuide.css +1100 -1100
  25. package/docs/external/css.js +466 -466
  26. package/docs/external/designTokens.js +1 -1
  27. package/docs/external/foldcode.js +151 -151
  28. package/docs/external/format.js +129 -129
  29. package/docs/external/htmlmixed.js +84 -84
  30. package/docs/external/index.html +127 -127
  31. package/docs/external/javascript.js +422 -422
  32. package/docs/external/jsx.js +147 -147
  33. package/docs/external/matchbrackets.js +145 -145
  34. package/docs/external/xml.js +322 -322
  35. package/docs/package.json +41 -41
  36. package/docs/src/index.js +1311 -1311
  37. package/es/Accordion/Accordion.js +0 -7
  38. package/es/Accordion/AccordionItem.js +0 -4
  39. package/es/Accordion/docs/Accordion__Demo.docs.js +0 -2
  40. package/es/Animation/Animation.js +0 -3
  41. package/es/Animation/docs/Animation__default.docs.js +0 -2
  42. package/es/Animation/docs/Animation__fadeIn.docs.js +0 -2
  43. package/es/Animation/docs/Animation__scaleIn.docs.js +0 -2
  44. package/es/Animation/docs/Animation__skewIn.docs.js +0 -2
  45. package/es/Animation/docs/Animation__slideDown.docs.js +0 -2
  46. package/es/Animation/docs/Animation__slideLeft.docs.js +0 -2
  47. package/es/Animation/docs/Animation__zoomIn.docs.js +0 -2
  48. package/es/AppContainer/AppContainer.js +2 -13
  49. package/es/AppContainer/AppContainer.module.css +18 -18
  50. package/es/AppContainer/docs/AppContainer__default.docs.js +0 -2
  51. package/es/Avatar/Avatar.js +44 -50
  52. package/es/Avatar/Avatar.module.css +135 -117
  53. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  54. package/es/Avatar/docs/Avatar__custom.docs.js +1 -3
  55. package/es/Avatar/docs/Avatar__default.docs.js +1 -3
  56. package/es/Avatar/docs/Avatar__palette.docs.js +1 -3
  57. package/es/Avatar/docs/Avatar__text.docs.js +1 -3
  58. package/es/Avatar/props/defaultProps.js +2 -1
  59. package/es/Avatar/props/propTypes.js +2 -1
  60. package/es/AvatarTeam/AvatarTeam.js +7 -10
  61. package/es/AvatarTeam/AvatarTeam.module.css +161 -161
  62. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  63. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -2
  64. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -2
  65. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -2
  66. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -2
  67. package/es/Button/Button.js +7 -14
  68. package/es/Button/Button.module.css +521 -521
  69. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  70. package/es/Button/docs/Button__custom.docs.js +11 -13
  71. package/es/Button/docs/Button__default.docs.js +11 -13
  72. package/es/Buttongroup/Buttongroup.js +1 -4
  73. package/es/Buttongroup/Buttongroup.module.css +89 -89
  74. package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  75. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -2
  76. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -2
  77. package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -2
  78. package/es/Card/Card.js +11 -26
  79. package/es/Card/Card.module.css +20 -20
  80. package/es/Card/docs/Card__Custom.docs.js +0 -2
  81. package/es/Card/docs/Card__Default.docs.js +0 -2
  82. package/es/Card/docs/Card__Scroll.docs.js +0 -3
  83. package/es/CheckBox/CheckBox.js +0 -5
  84. package/es/CheckBox/CheckBox.module.css +157 -157
  85. package/es/CheckBox/docs/CheckBox__custom.docs.js +12 -16
  86. package/es/CheckBox/docs/CheckBox__default.docs.js +12 -16
  87. package/es/DateTime/CalendarView.js +4 -23
  88. package/es/DateTime/DateTime.js +6 -74
  89. package/es/DateTime/DateTime.module.css +187 -187
  90. package/es/DateTime/DateTimePopupFooter.js +2 -4
  91. package/es/DateTime/DateTimePopupHeader.js +2 -8
  92. package/es/DateTime/DateWidget.js +34 -101
  93. package/es/DateTime/DateWidget.module.css +38 -38
  94. package/es/DateTime/DaysRow.js +2 -4
  95. package/es/DateTime/Time.js +2 -10
  96. package/es/DateTime/YearView.js +4 -28
  97. package/es/DateTime/YearView.module.css +81 -81
  98. package/es/DateTime/__tests__/CalendarView.spec.js +0 -1
  99. package/es/DateTime/__tests__/DateTime.spec.js +0 -1
  100. package/es/DateTime/__tests__/DateWidget.spec.js +3 -2
  101. package/es/DateTime/common.js +0 -3
  102. package/es/DateTime/constants.js +0 -1
  103. package/es/DateTime/dateFormatUtils/dateFormat.js +30 -63
  104. package/es/DateTime/dateFormatUtils/dayChange.js +4 -13
  105. package/es/DateTime/dateFormatUtils/index.js +2 -28
  106. package/es/DateTime/dateFormatUtils/monthChange.js +0 -8
  107. package/es/DateTime/dateFormatUtils/timeChange.js +6 -22
  108. package/es/DateTime/dateFormatUtils/yearChange.js +2 -11
  109. package/es/DateTime/docs/DateTime__default.docs.js +6 -9
  110. package/es/DateTime/docs/DateWidget__default.docs.js +0 -5
  111. package/es/DateTime/index.js +0 -0
  112. package/es/DateTime/objectUtils.js +20 -14
  113. package/es/DateTime/typeChecker.js +0 -3
  114. package/es/DateTime/validator.js +6 -58
  115. package/es/DropBox/DropBox.js +9 -52
  116. package/es/DropBox/DropBox.module.css +406 -406
  117. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  118. package/es/DropBox/docs/DropBox__custom.docs.js +25 -27
  119. package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -7
  120. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -7
  121. package/es/DropBox/docs/DropBox__position.docs.js +35 -37
  122. package/es/DropBox/docs/DropBox__size.docs.js +28 -30
  123. package/es/DropBox/props/defaultProps.js +1 -2
  124. package/es/DropBox/props/propTypes.js +0 -1
  125. package/es/DropDown/DropDown.js +1 -9
  126. package/es/DropDown/DropDown.module.css +5 -5
  127. package/es/DropDown/DropDownHeading.js +2 -4
  128. package/es/DropDown/DropDownHeading.module.css +53 -53
  129. package/es/DropDown/DropDownItem.js +0 -6
  130. package/es/DropDown/DropDownItem.module.css +94 -94
  131. package/es/DropDown/DropDownSearch.js +0 -4
  132. package/es/DropDown/DropDownSearch.module.css +14 -14
  133. package/es/DropDown/DropDownSeparator.js +0 -1
  134. package/es/DropDown/DropDownSeparator.module.css +7 -7
  135. package/es/DropDown/__tests__/DropDown.spec.js +2 -1
  136. package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -2
  137. package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -2
  138. package/es/Heading/Heading.js +34 -0
  139. package/es/Heading/Heading.module.css +5 -0
  140. package/es/Heading/docs/Heading__default.docs.js +19 -0
  141. package/es/Heading/props/defaultProps.js +5 -0
  142. package/es/Heading/props/propTypes.js +11 -0
  143. package/es/Label/Label.js +2 -4
  144. package/es/Label/Label.module.css +52 -52
  145. package/es/Label/LabelColors.module.css +20 -20
  146. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  147. package/es/Label/docs/Label__clipped.docs.js +0 -2
  148. package/es/Label/docs/Label__custom.docs.js +0 -2
  149. package/es/Label/docs/Label__palette.docs.js +0 -2
  150. package/es/Label/docs/Label__size.docs.js +0 -2
  151. package/es/Label/docs/Label__type.docs.js +0 -2
  152. package/es/Layout/Box.js +0 -13
  153. package/es/Layout/Container.js +1 -12
  154. package/es/Layout/Layout.module.css +335 -335
  155. package/es/Layout/docs/Layout__Hidden.docs.js +0 -1
  156. package/es/Layout/docs/Layout__default.docs.js +0 -1
  157. package/es/Layout/docs/Layout__four_Column.docs.js +0 -1
  158. package/es/Layout/docs/Layout__three_Column.docs.js +0 -1
  159. package/es/Layout/docs/Layout__two_Column.docs.js +0 -1
  160. package/es/Layout/utils.js +0 -0
  161. package/es/LightNightMode/Colors.json +496 -496
  162. package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -2
  163. package/es/ListItem/ListContainer.js +1 -10
  164. package/es/ListItem/ListItem.js +0 -9
  165. package/es/ListItem/ListItem.module.css +209 -209
  166. package/es/ListItem/ListItemWithAvatar.js +1 -9
  167. package/es/ListItem/ListItemWithCheckBox.js +0 -7
  168. package/es/ListItem/ListItemWithIcon.js +0 -8
  169. package/es/ListItem/ListItemWithRadio.js +0 -7
  170. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -2
  171. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -2
  172. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -2
  173. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -2
  174. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -2
  175. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -2
  176. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -2
  177. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -2
  178. package/es/ListItem/docs/ListItem__custom.docs.js +0 -2
  179. package/es/ListItem/docs/ListItem__default.docs.js +0 -2
  180. package/es/Modal/Modal.js +8 -28
  181. package/es/Modal/__docs__/Modal__default.docs.js +1 -5
  182. package/es/MultiSelect/AdvancedGroupMultiSelect.js +16 -95
  183. package/es/MultiSelect/AdvancedMultiSelect.js +10 -36
  184. package/es/MultiSelect/EmptyState.js +0 -2
  185. package/es/MultiSelect/MultiSelect.js +36 -105
  186. package/es/MultiSelect/MultiSelect.module.css +205 -205
  187. package/es/MultiSelect/MultiSelectHeader.js +0 -3
  188. package/es/MultiSelect/MultiSelectWithAvatar.js +5 -14
  189. package/es/MultiSelect/SelectedOptions.js +3 -6
  190. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  191. package/es/MultiSelect/Suggestions.js +3 -7
  192. package/es/MultiSelect/__tests__/MultiSelect.spec.js +6 -4
  193. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -7
  194. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +1 -7
  195. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +1 -5
  196. package/es/MultiSelect/docs/MultiSelect__default.docs.js +1 -6
  197. package/es/MultiSelect/props/propTypes.js +0 -2
  198. package/es/PopOver/PopOver.js +0 -18
  199. package/es/PopOver/PopOver.module.css +8 -8
  200. package/es/PopOver/__tests__/PopOver.spec.js +1 -2
  201. package/es/PopOver/docs/PopOver__default.docs.js +0 -2
  202. package/es/Popup/Popup.js +24 -77
  203. package/es/Popup/PositionMapping.json +73 -73
  204. package/es/Popup/__tests__/Popup.spec.js +5 -17
  205. package/es/Popup/viewPort.js +4 -16
  206. package/es/Provider/IdProvider.js +2 -9
  207. package/es/Provider/LibraryContext.js +4 -6
  208. package/es/Provider/NumberGenerator/NumberGenerator.js +7 -21
  209. package/es/Provider/ZindexProvider.js +2 -9
  210. package/es/Provider/docs/Provider_Id__Class.docs.js +3 -4
  211. package/es/Provider/docs/Provider_Id__Function.docs.js +0 -1
  212. package/es/Provider/docs/Provider_Zindex__Class.docs.js +3 -4
  213. package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -1
  214. package/es/Provider.js +36 -11
  215. package/es/Radio/Radio.js +0 -4
  216. package/es/Radio/Radio.module.css +112 -112
  217. package/es/Radio/docs/Radio__custom.docs.js +12 -16
  218. package/es/Radio/docs/Radio__default.docs.js +12 -16
  219. package/es/Responsive/CustomResponsive.js +18 -28
  220. package/es/Responsive/RefWrapper.js +7 -6
  221. package/es/Responsive/ResizeComponent.js +25 -35
  222. package/es/Responsive/ResizeObserver.js +6 -26
  223. package/es/Responsive/Responsive.js +20 -34
  224. package/es/Responsive/docs/Responsive__Custom.docs.js +22 -14
  225. package/es/Responsive/docs/Responsive__default.docs.js +1 -3
  226. package/es/Responsive/docs/style.module.css +55 -55
  227. package/es/Responsive/sizeObservers.js +7 -28
  228. package/es/Responsive/utils/index.js +5 -7
  229. package/es/Responsive/utils/shallowCompare.js +2 -7
  230. package/es/Responsive/windowResizeObserver.js +0 -7
  231. package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -4
  232. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  233. package/es/Ribbon/Ribbon.js +0 -3
  234. package/es/Ribbon/Ribbon.module.css +376 -376
  235. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  236. package/es/Ribbon/docs/Ribbon__custom.docs.js +13 -14
  237. package/es/Ribbon/docs/Ribbon__default.docs.js +13 -14
  238. package/es/RippleEffect/RippleEffect.js +0 -1
  239. package/es/RippleEffect/RippleEffect.module.css +92 -92
  240. package/es/RippleEffect/docs/RippleEffect__default.docs.js +12 -14
  241. package/es/Select/GroupSelect.js +13 -60
  242. package/es/Select/Select.js +34 -84
  243. package/es/Select/Select.module.css +106 -106
  244. package/es/Select/SelectWithAvatar.js +3 -20
  245. package/es/Select/SelectWithIcon.js +2 -40
  246. package/es/Select/__tests__/Select.spec.js +8 -6
  247. package/es/Select/docs/GroupSelect__default.docs.js +1 -6
  248. package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -4
  249. package/es/Select/docs/SelectWithIcon__default.docs.js +0 -4
  250. package/es/Select/docs/Select__default.docs.js +0 -5
  251. package/es/Select/props/propTypes.js +0 -1
  252. package/es/Stencils/Stencils.js +0 -3
  253. package/es/Stencils/Stencils.module.css +96 -96
  254. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  255. package/es/Stencils/docs/Stencils__custom.docs.js +0 -2
  256. package/es/Stencils/docs/Stencils__default.docs.js +0 -2
  257. package/es/Switch/Switch.js +0 -5
  258. package/es/Switch/Switch.module.css +110 -110
  259. package/es/Switch/docs/Switch__custom.docs.js +12 -14
  260. package/es/Switch/docs/Switch__default.docs.js +12 -14
  261. package/es/Tab/Tab.js +1 -4
  262. package/es/Tab/Tab.module.css +101 -101
  263. package/es/Tab/TabContent.js +0 -1
  264. package/es/Tab/TabContent.module.css +4 -4
  265. package/es/Tab/TabContentWrapper.js +0 -2
  266. package/es/Tab/TabWrapper.js +2 -5
  267. package/es/Tab/Tabs.js +24 -71
  268. package/es/Tab/Tabs.module.css +141 -141
  269. package/es/Tab/__tests__/Tab.spec.js +2 -1
  270. package/es/Tab/__tests__/TabWrapper.spec.js +0 -1
  271. package/es/Tab/docs/Tab__default.docs.js +0 -5
  272. package/es/Tab/docs/tabdocs.module.css +29 -29
  273. package/es/Tag/Tag.js +9 -14
  274. package/es/Tag/Tag.module.css +254 -254
  275. package/es/Tag/docs/Tag__custom.docs.js +11 -13
  276. package/es/Tag/docs/Tag__default.docs.js +11 -13
  277. package/es/TextBox/TextBox.js +0 -15
  278. package/es/TextBox/TextBox.module.css +157 -157
  279. package/es/TextBox/__tests__/TextBox.spec.js +4 -1
  280. package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  281. package/es/TextBox/docs/TextBox__custom.docs.js +0 -2
  282. package/es/TextBox/docs/TextBox__default.docs.js +0 -2
  283. package/es/TextBox/docs/TextBox__size.docs.js +0 -2
  284. package/es/TextBox/docs/TextBox__variant.docs.js +0 -2
  285. package/es/TextBoxIcon/TextBoxIcon.js +0 -7
  286. package/es/TextBoxIcon/TextBoxIcon.module.css +78 -78
  287. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +7 -2
  288. package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  289. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -2
  290. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -2
  291. package/es/Textarea/Textarea.js +0 -12
  292. package/es/Textarea/Textarea.module.css +139 -139
  293. package/es/Textarea/__tests__/Textarea.spec.js +2 -2
  294. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  295. package/es/Textarea/docs/Textarea__animated.docs.js +0 -2
  296. package/es/Textarea/docs/Textarea__custom.docs.js +0 -2
  297. package/es/Textarea/docs/Textarea__default.docs.js +0 -2
  298. package/es/Textarea/docs/Textarea__disabled.docs.js +0 -2
  299. package/es/Tooltip/Tooltip.js +11 -58
  300. package/es/Tooltip/Tooltip.module.css +109 -109
  301. package/es/Tooltip/__tests__/Tooltip.spec.js +0 -5
  302. package/es/Tooltip/docs/Tooltip__default.docs.js +63 -67
  303. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -3
  304. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -5
  305. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +2 -7
  306. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +17 -28
  307. package/es/common/animation.module.css +624 -624
  308. package/es/common/avatarsizes.module.css +44 -44
  309. package/es/common/basic.module.css +33 -33
  310. package/es/common/basicReset.module.css +40 -40
  311. package/es/common/common.module.css +524 -524
  312. package/es/common/customscroll.module.css +89 -89
  313. package/es/common/docStyle.module.css +887 -766
  314. package/es/common/reset.module.css +12 -12
  315. package/es/common/transition.module.css +146 -146
  316. package/es/deprecated/AdvancedMultiSelect.module.css +126 -126
  317. package/es/deprecated/PortalLayer/PortalLayer.js +17 -25
  318. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -7
  319. package/es/index.js +5 -2
  320. package/es/semantic/Button/Button.js +0 -3
  321. package/es/semantic/Button/docs/Button__default.docs.js +0 -3
  322. package/es/semantic/Button/semanticButton.module.css +9 -9
  323. package/es/utils/Common.js +5 -47
  324. package/es/utils/ContextOptimizer.js +5 -4
  325. package/es/utils/__tests__/debounce.spec.js +2 -2
  326. package/es/utils/constructFullName.js +0 -2
  327. package/es/utils/datetime/common.js +5 -16
  328. package/es/utils/debounce.js +1 -5
  329. package/es/utils/dropDownUtils.js +11 -67
  330. package/es/utils/getInitial.js +0 -4
  331. package/es/utils/shallowEqual.js +0 -6
  332. package/lib/Accordion/Accordion.js +10 -39
  333. package/lib/Accordion/AccordionItem.js +12 -38
  334. package/lib/Accordion/__tests__/Accordion.spec.js +0 -3
  335. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -22
  336. package/lib/Accordion/index.js +0 -3
  337. package/lib/Accordion/props/propTypes.js +0 -3
  338. package/lib/Animation/Animation.js +12 -37
  339. package/lib/Animation/__tests__/Animation.spec.js +7 -11
  340. package/lib/Animation/docs/Animation__default.docs.js +0 -24
  341. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -24
  342. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -24
  343. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -24
  344. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -24
  345. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -24
  346. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -24
  347. package/lib/Animation/props/propTypes.js +0 -3
  348. package/lib/AppContainer/AppContainer.js +14 -52
  349. package/lib/AppContainer/AppContainer.module.css +18 -18
  350. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -23
  351. package/lib/AppContainer/props/propTypes.js +0 -3
  352. package/lib/Avatar/Avatar.js +56 -98
  353. package/lib/Avatar/Avatar.module.css +135 -117
  354. package/lib/Avatar/__tests__/Avatar.spec.js +0 -44
  355. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  356. package/lib/Avatar/docs/Avatar__custom.docs.js +1 -26
  357. package/lib/Avatar/docs/Avatar__default.docs.js +1 -24
  358. package/lib/Avatar/docs/Avatar__palette.docs.js +1 -26
  359. package/lib/Avatar/docs/Avatar__text.docs.js +1 -26
  360. package/lib/Avatar/props/defaultProps.js +2 -1
  361. package/lib/Avatar/props/propTypes.js +2 -4
  362. package/lib/AvatarTeam/AvatarTeam.js +27 -54
  363. package/lib/AvatarTeam/AvatarTeam.module.css +161 -161
  364. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -13
  365. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  366. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -24
  367. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -24
  368. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -24
  369. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -24
  370. package/lib/AvatarTeam/props/propTypes.js +0 -3
  371. package/lib/Button/Button.js +25 -53
  372. package/lib/Button/Button.module.css +521 -521
  373. package/lib/Button/__tests__/Button.spec.js +0 -40
  374. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  375. package/lib/Button/docs/Button__custom.docs.js +11 -37
  376. package/lib/Button/docs/Button__default.docs.js +11 -36
  377. package/lib/Button/props/defaultProps.js +0 -2
  378. package/lib/Button/props/propTypes.js +0 -3
  379. package/lib/Buttongroup/Buttongroup.js +6 -32
  380. package/lib/Buttongroup/Buttongroup.module.css +89 -89
  381. package/lib/Buttongroup/__test__/Buttongroup.spec.js +0 -10
  382. package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  383. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -25
  384. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -25
  385. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -27
  386. package/lib/Buttongroup/props/propTypes.js +0 -3
  387. package/lib/Card/Card.js +45 -106
  388. package/lib/Card/Card.module.css +20 -20
  389. package/lib/Card/__tests__/Card.spec.js +1 -10
  390. package/lib/Card/docs/Card__Custom.docs.js +0 -27
  391. package/lib/Card/docs/Card__Default.docs.js +0 -26
  392. package/lib/Card/docs/Card__Scroll.docs.js +3 -30
  393. package/lib/Card/index.js +0 -4
  394. package/lib/Card/props/propTypes.js +0 -3
  395. package/lib/CheckBox/CheckBox.js +40 -69
  396. package/lib/CheckBox/CheckBox.module.css +157 -157
  397. package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -3
  398. package/lib/CheckBox/docs/CheckBox__custom.docs.js +12 -37
  399. package/lib/CheckBox/docs/CheckBox__default.docs.js +12 -36
  400. package/lib/CheckBox/props/propTypes.js +0 -3
  401. package/lib/DateTime/CalendarView.js +20 -70
  402. package/lib/DateTime/DateTime.js +149 -243
  403. package/lib/DateTime/DateTime.module.css +187 -187
  404. package/lib/DateTime/DateTimePopupFooter.js +5 -30
  405. package/lib/DateTime/DateTimePopupHeader.js +13 -45
  406. package/lib/DateTime/DateWidget.js +243 -349
  407. package/lib/DateTime/DateWidget.module.css +38 -38
  408. package/lib/DateTime/DaysRow.js +2 -26
  409. package/lib/DateTime/Time.js +29 -72
  410. package/lib/DateTime/YearView.js +25 -75
  411. package/lib/DateTime/YearView.module.css +81 -81
  412. package/lib/DateTime/__tests__/CalendarView.spec.js +5 -13
  413. package/lib/DateTime/__tests__/DateTime.spec.js +37 -51
  414. package/lib/DateTime/__tests__/DateWidget.spec.js +8 -10
  415. package/lib/DateTime/common.js +0 -6
  416. package/lib/DateTime/constants.js +0 -1
  417. package/lib/DateTime/dateFormatUtils/dateFormat.js +122 -184
  418. package/lib/DateTime/dateFormatUtils/dayChange.js +7 -14
  419. package/lib/DateTime/dateFormatUtils/index.js +12 -61
  420. package/lib/DateTime/dateFormatUtils/monthChange.js +9 -19
  421. package/lib/DateTime/dateFormatUtils/timeChange.js +20 -52
  422. package/lib/DateTime/dateFormatUtils/yearChange.js +11 -22
  423. package/lib/DateTime/docs/DateTime__default.docs.js +10 -33
  424. package/lib/DateTime/docs/DateWidget__default.docs.js +2 -30
  425. package/lib/DateTime/index.js +0 -2
  426. package/lib/DateTime/objectUtils.js +20 -24
  427. package/lib/DateTime/props/propTypes.js +0 -3
  428. package/lib/DateTime/typeChecker.js +0 -4
  429. package/lib/DateTime/validator.js +6 -69
  430. package/lib/DropBox/DropBox.js +60 -141
  431. package/lib/DropBox/DropBox.module.css +406 -406
  432. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  433. package/lib/DropBox/__tests__/DropBox.spec.js +2 -6
  434. package/lib/DropBox/docs/DropBox__custom.docs.js +25 -50
  435. package/lib/DropBox/docs/DropBox__customOrder.docs.js +9 -36
  436. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +9 -36
  437. package/lib/DropBox/docs/DropBox__position.docs.js +35 -59
  438. package/lib/DropBox/docs/DropBox__size.docs.js +28 -52
  439. package/lib/DropBox/props/defaultProps.js +1 -2
  440. package/lib/DropBox/props/propTypes.js +0 -4
  441. package/lib/DropDown/DropDown.js +3 -53
  442. package/lib/DropDown/DropDown.module.css +5 -5
  443. package/lib/DropDown/DropDownHeading.js +11 -35
  444. package/lib/DropDown/DropDownHeading.module.css +53 -53
  445. package/lib/DropDown/DropDownItem.js +17 -41
  446. package/lib/DropDown/DropDownItem.module.css +94 -94
  447. package/lib/DropDown/DropDownSearch.js +15 -41
  448. package/lib/DropDown/DropDownSearch.module.css +14 -14
  449. package/lib/DropDown/DropDownSeparator.js +1 -23
  450. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  451. package/lib/DropDown/__tests__/DropDown.spec.js +9 -15
  452. package/lib/DropDown/__tests__/DropDownItem.spec.js +4 -9
  453. package/lib/DropDown/__tests__/DropDownSearch.spec.js +0 -3
  454. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -23
  455. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -22
  456. package/lib/DropDown/props/propTypes.js +0 -5
  457. package/lib/Heading/Heading.js +64 -0
  458. package/lib/Heading/Heading.module.css +5 -0
  459. package/lib/Heading/docs/Heading__default.docs.js +50 -0
  460. package/lib/Heading/props/defaultProps.js +12 -0
  461. package/lib/Heading/props/propTypes.js +19 -0
  462. package/lib/Label/Label.js +11 -36
  463. package/lib/Label/Label.module.css +52 -52
  464. package/lib/Label/LabelColors.module.css +20 -20
  465. package/lib/Label/__tests__/Label.spec.js +1 -14
  466. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  467. package/lib/Label/docs/Label__clipped.docs.js +0 -25
  468. package/lib/Label/docs/Label__custom.docs.js +0 -26
  469. package/lib/Label/docs/Label__palette.docs.js +0 -25
  470. package/lib/Label/docs/Label__size.docs.js +0 -25
  471. package/lib/Label/docs/Label__type.docs.js +0 -25
  472. package/lib/Label/props/propTypes.js +0 -3
  473. package/lib/Layout/Box.js +11 -31
  474. package/lib/Layout/Container.js +10 -29
  475. package/lib/Layout/Layout.module.css +335 -335
  476. package/lib/Layout/__tests__/Box.spec.js +49 -65
  477. package/lib/Layout/__tests__/Container.spec.js +50 -67
  478. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -22
  479. package/lib/Layout/docs/Layout__default.docs.js +0 -21
  480. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -22
  481. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -22
  482. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -22
  483. package/lib/Layout/index.js +0 -4
  484. package/lib/Layout/props/propTypes.js +0 -3
  485. package/lib/Layout/utils.js +0 -10
  486. package/lib/LightNightMode/Colors.json +496 -496
  487. package/lib/LightNightMode/docs/AlternativeColors.docs.js +1 -26
  488. package/lib/ListItem/ListContainer.js +26 -48
  489. package/lib/ListItem/ListItem.js +37 -66
  490. package/lib/ListItem/ListItem.module.css +209 -209
  491. package/lib/ListItem/ListItemWithAvatar.js +41 -72
  492. package/lib/ListItem/ListItemWithCheckBox.js +32 -61
  493. package/lib/ListItem/ListItemWithIcon.js +36 -65
  494. package/lib/ListItem/ListItemWithRadio.js +33 -62
  495. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -24
  496. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -23
  497. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -24
  498. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -23
  499. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -24
  500. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -23
  501. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -24
  502. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -23
  503. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -23
  504. package/lib/ListItem/docs/ListItem__default.docs.js +0 -22
  505. package/lib/ListItem/props/propTypes.js +0 -5
  506. package/lib/Modal/Modal.js +4 -44
  507. package/lib/Modal/__docs__/Modal__default.docs.js +0 -23
  508. package/lib/Modal/props/propTypes.js +0 -3
  509. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +162 -294
  510. package/lib/MultiSelect/AdvancedMultiSelect.js +120 -201
  511. package/lib/MultiSelect/EmptyState.js +21 -44
  512. package/lib/MultiSelect/MultiSelect.js +196 -317
  513. package/lib/MultiSelect/MultiSelect.module.css +205 -205
  514. package/lib/MultiSelect/MultiSelectHeader.js +5 -29
  515. package/lib/MultiSelect/MultiSelectWithAvatar.js +51 -96
  516. package/lib/MultiSelect/SelectedOptions.js +15 -44
  517. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  518. package/lib/MultiSelect/Suggestions.js +26 -59
  519. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +75 -86
  520. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -23
  521. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -28
  522. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -28
  523. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -30
  524. package/lib/MultiSelect/props/defaultProps.js +0 -2
  525. package/lib/MultiSelect/props/propTypes.js +0 -5
  526. package/lib/PopOver/PopOver.js +44 -94
  527. package/lib/PopOver/PopOver.module.css +8 -8
  528. package/lib/PopOver/__tests__/PopOver.spec.js +1 -4
  529. package/lib/PopOver/docs/PopOver__default.docs.js +0 -25
  530. package/lib/PopOver/props/propTypes.js +0 -3
  531. package/lib/Popup/Popup.js +77 -156
  532. package/lib/Popup/PositionMapping.json +73 -73
  533. package/lib/Popup/__tests__/Popup.spec.js +5 -42
  534. package/lib/Popup/viewPort.js +14 -28
  535. package/lib/Provider/AvatarSize.js +0 -4
  536. package/lib/Provider/Config.js +0 -2
  537. package/lib/Provider/CssProvider.js +0 -4
  538. package/lib/Provider/IdProvider.js +3 -17
  539. package/lib/Provider/LibraryContext.js +10 -32
  540. package/lib/Provider/LibraryContextInit.js +0 -4
  541. package/lib/Provider/NumberGenerator/NumberGenerator.js +14 -43
  542. package/lib/Provider/ZindexProvider.js +3 -15
  543. package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -24
  544. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -5
  545. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -24
  546. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -5
  547. package/lib/Provider.js +38 -64
  548. package/lib/Radio/Radio.js +33 -60
  549. package/lib/Radio/Radio.module.css +112 -112
  550. package/lib/Radio/__tests__/Radiospec.js +5 -9
  551. package/lib/Radio/docs/Radio__custom.docs.js +12 -38
  552. package/lib/Radio/docs/Radio__default.docs.js +12 -37
  553. package/lib/Radio/props/propTypes.js +0 -3
  554. package/lib/Responsive/CustomResponsive.js +23 -67
  555. package/lib/Responsive/RefWrapper.js +7 -15
  556. package/lib/Responsive/ResizeComponent.js +27 -58
  557. package/lib/Responsive/ResizeObserver.js +6 -23
  558. package/lib/Responsive/Responsive.js +24 -76
  559. package/lib/Responsive/docs/Responsive__Custom.docs.js +29 -54
  560. package/lib/Responsive/docs/Responsive__default.docs.js +4 -28
  561. package/lib/Responsive/docs/style.module.css +55 -55
  562. package/lib/Responsive/index.js +0 -2
  563. package/lib/Responsive/props/propTypes.js +0 -3
  564. package/lib/Responsive/sizeObservers.js +13 -51
  565. package/lib/Responsive/utils/index.js +3 -11
  566. package/lib/Responsive/utils/shallowCompare.js +2 -11
  567. package/lib/Responsive/windowResizeObserver.js +0 -8
  568. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +14 -44
  569. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  570. package/lib/ResponsiveDropBox/props/propTypes.js +0 -3
  571. package/lib/Ribbon/Ribbon.js +7 -31
  572. package/lib/Ribbon/Ribbon.module.css +376 -376
  573. package/lib/Ribbon/__tests__/Ribbon.spec.js +0 -22
  574. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  575. package/lib/Ribbon/docs/Ribbon__custom.docs.js +13 -36
  576. package/lib/Ribbon/docs/Ribbon__default.docs.js +13 -35
  577. package/lib/Ribbon/props/propTypes.js +0 -3
  578. package/lib/RippleEffect/RippleEffect.js +7 -18
  579. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  580. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +12 -34
  581. package/lib/RippleEffect/props/propTypes.js +0 -3
  582. package/lib/Select/GroupSelect.js +125 -225
  583. package/lib/Select/Select.js +203 -288
  584. package/lib/Select/Select.module.css +106 -106
  585. package/lib/Select/SelectWithAvatar.js +50 -101
  586. package/lib/Select/SelectWithIcon.js +69 -127
  587. package/lib/Select/__tests__/Select.spec.js +89 -131
  588. package/lib/Select/docs/GroupSelect__default.docs.js +0 -26
  589. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -28
  590. package/lib/Select/docs/SelectWithIcon__default.docs.js +4 -29
  591. package/lib/Select/docs/Select__default.docs.js +0 -27
  592. package/lib/Select/props/defaultProps.js +0 -4
  593. package/lib/Select/props/propTypes.js +0 -4
  594. package/lib/Stencils/Stencils.js +4 -28
  595. package/lib/Stencils/Stencils.module.css +96 -96
  596. package/lib/Stencils/__tests__/Stencils.spec.js +0 -12
  597. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  598. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -24
  599. package/lib/Stencils/docs/Stencils__default.docs.js +0 -24
  600. package/lib/Stencils/props/propTypes.js +0 -3
  601. package/lib/Switch/Switch.js +27 -55
  602. package/lib/Switch/Switch.module.css +110 -110
  603. package/lib/Switch/docs/Switch__custom.docs.js +12 -35
  604. package/lib/Switch/docs/Switch__default.docs.js +12 -34
  605. package/lib/Switch/props/propTypes.js +0 -3
  606. package/lib/Tab/Tab.js +23 -39
  607. package/lib/Tab/Tab.module.css +101 -101
  608. package/lib/Tab/TabContent.js +4 -11
  609. package/lib/Tab/TabContent.module.css +4 -4
  610. package/lib/Tab/TabContentWrapper.js +5 -12
  611. package/lib/Tab/TabWrapper.js +16 -34
  612. package/lib/Tab/Tabs.js +96 -177
  613. package/lib/Tab/Tabs.module.css +141 -141
  614. package/lib/Tab/__tests__/Tab.spec.js +63 -74
  615. package/lib/Tab/__tests__/TabContent.spec.js +6 -10
  616. package/lib/Tab/__tests__/TabContentWrapper.spec.js +20 -28
  617. package/lib/Tab/__tests__/TabWrapper.spec.js +0 -12
  618. package/lib/Tab/__tests__/Tabs.spec.js +39 -53
  619. package/lib/Tab/docs/Tab__default.docs.js +0 -25
  620. package/lib/Tab/docs/tabdocs.module.css +29 -29
  621. package/lib/Tab/index.js +0 -6
  622. package/lib/Tab/props/propTypes.js +0 -3
  623. package/lib/Tag/Tag.js +45 -78
  624. package/lib/Tag/Tag.module.css +254 -254
  625. package/lib/Tag/__tests__/Tag.spec.js +8 -14
  626. package/lib/Tag/docs/Tag__custom.docs.js +11 -37
  627. package/lib/Tag/docs/Tag__default.docs.js +11 -36
  628. package/lib/Tag/props/propTypes.js +0 -3
  629. package/lib/TextBox/TextBox.js +52 -83
  630. package/lib/TextBox/TextBox.module.css +157 -157
  631. package/lib/TextBox/__tests__/TextBox.spec.js +4 -14
  632. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  633. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -26
  634. package/lib/TextBox/docs/TextBox__default.docs.js +0 -26
  635. package/lib/TextBox/docs/TextBox__size.docs.js +0 -26
  636. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -26
  637. package/lib/TextBox/props/propTypes.js +0 -5
  638. package/lib/TextBoxIcon/TextBoxIcon.js +48 -80
  639. package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
  640. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +5 -14
  641. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  642. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -27
  643. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -27
  644. package/lib/TextBoxIcon/props/propTypes.js +0 -3
  645. package/lib/Textarea/Textarea.js +22 -52
  646. package/lib/Textarea/Textarea.module.css +139 -139
  647. package/lib/Textarea/__tests__/Textarea.spec.js +2 -14
  648. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  649. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -25
  650. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -26
  651. package/lib/Textarea/docs/Textarea__default.docs.js +0 -25
  652. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -25
  653. package/lib/Textarea/props/propTypes.js +0 -3
  654. package/lib/Tooltip/Tooltip.js +25 -92
  655. package/lib/Tooltip/Tooltip.module.css +109 -109
  656. package/lib/Tooltip/__tests__/Tooltip.spec.js +0 -23
  657. package/lib/Tooltip/docs/Tooltip__default.docs.js +63 -91
  658. package/lib/Tooltip/props/propTypes.js +0 -3
  659. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +11 -39
  660. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -29
  661. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
  662. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +18 -51
  663. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +22 -54
  664. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
  665. package/lib/common/animation.module.css +624 -624
  666. package/lib/common/avatarsizes.module.css +44 -44
  667. package/lib/common/basic.module.css +33 -33
  668. package/lib/common/basicReset.module.css +40 -40
  669. package/lib/common/common.module.css +524 -524
  670. package/lib/common/customscroll.module.css +89 -89
  671. package/lib/common/docStyle.module.css +887 -766
  672. package/lib/common/reset.module.css +12 -12
  673. package/lib/common/transition.module.css +146 -146
  674. package/lib/css.js +0 -39
  675. package/lib/deprecated/AdvancedMultiSelect.module.css +126 -126
  676. package/lib/deprecated/PortalLayer/PortalLayer.js +17 -45
  677. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -36
  678. package/lib/deprecated/PortalLayer/props/propTypes.js +0 -3
  679. package/lib/index.js +17 -157
  680. package/lib/semantic/Button/Button.js +17 -41
  681. package/lib/semantic/Button/docs/Button__default.docs.js +0 -23
  682. package/lib/semantic/Button/props/propTypes.js +0 -3
  683. package/lib/semantic/Button/semanticButton.module.css +9 -9
  684. package/lib/utils/Common.js +11 -95
  685. package/lib/utils/ContextOptimizer.js +10 -16
  686. package/lib/utils/__tests__/constructFullName.spec.js +0 -1
  687. package/lib/utils/__tests__/debounce.spec.js +2 -3
  688. package/lib/utils/__tests__/getInitial.spec.js +0 -1
  689. package/lib/utils/constructFullName.js +2 -11
  690. package/lib/utils/datetime/common.js +5 -32
  691. package/lib/utils/debounce.js +1 -6
  692. package/lib/utils/dropDownUtils.js +54 -171
  693. package/lib/utils/dummyFunction.js +0 -2
  694. package/lib/utils/getHTMLFontSize.js +0 -1
  695. package/lib/utils/getInitial.js +0 -6
  696. package/lib/utils/scrollTo.js +0 -2
  697. package/lib/utils/shallowEqual.js +0 -8
  698. package/package.json +76 -77
package/lib/Card/Card.js CHANGED
@@ -1,75 +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"] = exports.CardHeader = exports.CardFooter = exports.CardContent = void 0;
9
-
10
8
  var _react = _interopRequireWildcard(require("react"));
11
-
12
9
  var _propTypes = require("./props/propTypes");
13
-
14
10
  var _defaultProps = require("./props/defaultProps");
15
-
16
11
  var _Layout = require("../Layout");
17
-
18
12
  var _Config = require("../Provider/Config");
19
-
20
13
  var _CardModule = _interopRequireDefault(require("./Card.module.css"));
21
-
22
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
15
  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); }
25
-
26
16
  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; }
27
-
28
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
18
  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); } }
31
-
32
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
-
34
20
  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); }
35
-
36
21
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
-
38
22
  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); }; }
39
-
40
23
  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); }
41
-
42
24
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
-
44
25
  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; } }
45
-
46
26
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
-
48
27
  /* eslint-disable react/forbid-component-props */
49
-
50
- /*
51
- isscroll header border change use ref
52
- scroll logic remove from here
53
- scroll logic move to virtualizer list
28
+ /*
29
+ isscroll header border change use ref
30
+ scroll logic remove from here
31
+ scroll logic move to virtualizer list
54
32
  */
55
-
56
33
  /* performance handling pending in card component moving to ref instead of setState */
57
34
  var CardHeader = /*#__PURE__*/function (_Component) {
58
35
  _inherits(CardHeader, _Component);
59
-
60
36
  var _super = _createSuper(CardHeader);
61
-
62
37
  function CardHeader(props) {
63
38
  var _this;
64
-
65
39
  _classCallCheck(this, CardHeader);
66
-
67
40
  _this = _super.call(this, props);
68
41
  _this.getCardHeaderDom = _this.getCardHeaderDom.bind(_assertThisInitialized(_this));
69
42
  _this.cardHeader = null;
70
43
  return _this;
71
44
  }
72
-
73
45
  _createClass(CardHeader, [{
74
46
  key: "getCardHeaderDom",
75
47
  value: function getCardHeaderDom(ele) {
@@ -86,12 +58,12 @@ var CardHeader = /*#__PURE__*/function (_Component) {
86
58
  key: "render",
87
59
  value: function render() {
88
60
  var _this$props = this.props,
89
- isScroll = _this$props.isScroll,
90
- children = _this$props.children,
91
- _this$props$dataId = _this$props.dataId,
92
- dataId = _this$props$dataId === void 0 ? 'CardHeader' : _this$props$dataId,
93
- _this$props$customCla = _this$props.customClass,
94
- customClass = _this$props$customCla === void 0 ? '' : _this$props$customCla;
61
+ isScroll = _this$props.isScroll,
62
+ children = _this$props.children,
63
+ _this$props$dataId = _this$props.dataId,
64
+ dataId = _this$props$dataId === void 0 ? 'CardHeader' : _this$props$dataId,
65
+ _this$props$customCla = _this$props.customClass,
66
+ customClass = _this$props$customCla === void 0 ? '' : _this$props$customCla;
95
67
  return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
96
68
  className: "".concat(isScroll ? _CardModule["default"].scroll : _CardModule["default"].notScroll, " ").concat(customClass),
97
69
  eleRef: this.getCardHeaderDom,
@@ -99,37 +71,30 @@ var CardHeader = /*#__PURE__*/function (_Component) {
99
71
  }, children);
100
72
  }
101
73
  }]);
102
-
103
74
  return CardHeader;
104
75
  }(_react.Component);
105
-
106
76
  exports.CardHeader = CardHeader;
107
77
  CardHeader.propTypes = _propTypes.CardHeader_propTypes;
108
-
109
78
  var CardContent = /*#__PURE__*/function (_Component2) {
110
79
  _inherits(CardContent, _Component2);
111
-
112
80
  var _super2 = _createSuper(CardContent);
113
-
114
81
  function CardContent() {
115
82
  _classCallCheck(this, CardContent);
116
-
117
83
  return _super2.apply(this, arguments);
118
84
  }
119
-
120
85
  _createClass(CardContent, [{
121
86
  key: "render",
122
87
  value: function render() {
123
88
  var _this$props2 = this.props,
124
- onScroll = _this$props2.onScroll,
125
- eleRef = _this$props2.eleRef,
126
- children = _this$props2.children,
127
- scroll = _this$props2.scroll,
128
- isScrollAttribute = _this$props2.isScrollAttribute,
129
- dataId = _this$props2.dataId,
130
- shrink = _this$props2.shrink,
131
- customClass = _this$props2.customClass,
132
- preventParentScroll = _this$props2.preventParentScroll;
89
+ onScroll = _this$props2.onScroll,
90
+ eleRef = _this$props2.eleRef,
91
+ children = _this$props2.children,
92
+ scroll = _this$props2.scroll,
93
+ isScrollAttribute = _this$props2.isScrollAttribute,
94
+ dataId = _this$props2.dataId,
95
+ shrink = _this$props2.shrink,
96
+ customClass = _this$props2.customClass,
97
+ preventParentScroll = _this$props2.preventParentScroll;
133
98
  return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
134
99
  flexible: true,
135
100
  onScroll: onScroll,
@@ -143,41 +108,33 @@ var CardContent = /*#__PURE__*/function (_Component2) {
143
108
  }, children);
144
109
  }
145
110
  }]);
146
-
147
111
  return CardContent;
148
112
  }(_react.Component);
149
-
150
113
  exports.CardContent = CardContent;
151
114
  CardContent.propTypes = _propTypes.CardContent_propTypes;
152
115
  CardContent.defaultProps = _defaultProps.CardContent_defaultProps;
153
-
154
116
  var Card = /*#__PURE__*/function (_Component3) {
155
117
  _inherits(Card, _Component3);
156
-
157
118
  var _super3 = _createSuper(Card);
158
-
159
119
  function Card(props) {
160
120
  var _this2;
161
-
162
121
  _classCallCheck(this, Card);
163
-
164
122
  _this2 = _super3.call(this, props);
165
123
  _this2.state = {
166
124
  isScroll: false
167
125
  };
168
126
  var from = props.from,
169
- limit = props.limit;
127
+ limit = props.limit;
170
128
  _this2.from = from;
171
129
  _this2.limit = limit;
172
130
  _this2.to = from + 3 * limit;
173
131
  _this2.isFetching = false;
174
132
  _this2.lastScrollTop = 0;
175
- _this2.onScroll = _this2.onScroll.bind(_assertThisInitialized(_this2)); //this.onSetScroll = debounce(this.setScroll.bind(this, true), 10, true);
133
+ _this2.onScroll = _this2.onScroll.bind(_assertThisInitialized(_this2));
134
+ //this.onSetScroll = debounce(this.setScroll.bind(this, true), 10, true);
176
135
  //this.onClearScroll = debounce(this.setScroll.bind(this, false), 500);
177
-
178
136
  return _this2;
179
137
  }
180
-
181
138
  _createClass(Card, [{
182
139
  key: "componentWillReceiveProps",
183
140
  value: function componentWillReceiveProps(nextProps) {
@@ -189,7 +146,6 @@ var Card = /*#__PURE__*/function (_Component3) {
189
146
  key: "onScroll",
190
147
  value: function onScroll(e) {
191
148
  var _this3 = this;
192
-
193
149
  var scrollContainerObj = e.currentTarget;
194
150
  var scrollHeight = scrollContainerObj.scrollHeight;
195
151
  var scrollTop = scrollContainerObj.scrollTop;
@@ -197,25 +153,21 @@ var Card = /*#__PURE__*/function (_Component3) {
197
153
  var onScroll = this.props.onScroll;
198
154
  onScroll && onScroll(e);
199
155
  var _this$props3 = this.props,
200
- fetchData = _this$props3.fetchData,
201
- noMoreData = _this$props3.noMoreData,
202
- scrollAt = _this$props3.scrollAt,
203
- noNeedUpScroll = _this$props3.noNeedUpScroll,
204
- isPercentageScroll = _this$props3.isPercentageScroll;
205
-
156
+ fetchData = _this$props3.fetchData,
157
+ noMoreData = _this$props3.noMoreData,
158
+ scrollAt = _this$props3.scrollAt,
159
+ noNeedUpScroll = _this$props3.noNeedUpScroll,
160
+ isPercentageScroll = _this$props3.isPercentageScroll;
206
161
  if (scrollTop > this.lastScrollTop) {
207
162
  this.scrollDirection = 'down';
208
163
  } else {
209
164
  this.scrollDirection = 'up';
210
165
  }
211
-
212
166
  this.lastScrollTop = scrollTop;
213
-
214
167
  if (fetchData && !this.isFetching) {
215
168
  if (this.scrollDirection === 'down' && !noMoreData) {
216
169
  var scrollingPercentage = (scrollTop + offsetHeight) / (scrollHeight - scrollAt) * 100;
217
170
  var prefetch = isPercentageScroll ? scrollingPercentage >= (0, _Config.getLibraryConfig)('scrollFetchLimit') : scrollHeight - scrollAt <= scrollTop + offsetHeight;
218
-
219
171
  if (prefetch) {
220
172
  this.isFetching = true;
221
173
  fetchData(this.from + this.limit, this.limit + this.to, this.scrollDirection).then(function () {
@@ -237,18 +189,19 @@ var Card = /*#__PURE__*/function (_Component3) {
237
189
  }
238
190
  }
239
191
  }
240
-
241
192
  if (fetchData && !noNeedUpScroll) {
242
193
  if (this.from !== 0 && scrollTop === 0 && !noNeedUpScroll) {
243
194
  scrollContainerObj.scrollTop = scrollTop + offsetHeight / 3;
244
195
  } else if (scrollHeight === scrollTop + offsetHeight && !noMoreData) {
245
196
  scrollContainerObj.scrollTop = scrollTop - offsetHeight / 2;
246
197
  }
247
- } // if (isScrollShadow) {
198
+ }
199
+ // if (isScrollShadow) {
248
200
  // this.onSetScroll();
249
201
  // }
202
+ }
250
203
 
251
- } // setScroll(isScroll) {
204
+ // setScroll(isScroll) {
252
205
  // let { isScroll: stateIsScroll } = this.state;
253
206
  // if (isScroll && !stateIsScroll) {
254
207
  // this.setState({ isScroll: true }, () => {
@@ -258,22 +211,20 @@ var Card = /*#__PURE__*/function (_Component3) {
258
211
  // this.setState({ isScroll: false });
259
212
  // }
260
213
  // }
261
-
262
214
  }, {
263
215
  key: "render",
264
216
  value: function render() {
265
217
  var _this4 = this;
266
-
267
218
  var _this$props4 = this.props,
268
- onClick = _this$props4.onClick,
269
- children = _this$props4.children,
270
- isScrollAttribute = _this$props4.isScrollAttribute,
271
- dataId = _this$props4.dataId,
272
- eleRef = _this$props4.eleRef,
273
- _this$props4$customCl = _this$props4.customClass,
274
- customClass = _this$props4$customCl === void 0 ? '' : _this$props4$customCl,
275
- htmlId = _this$props4.htmlId,
276
- a11y = _this$props4.a11y;
219
+ onClick = _this$props4.onClick,
220
+ children = _this$props4.children,
221
+ isScrollAttribute = _this$props4.isScrollAttribute,
222
+ dataId = _this$props4.dataId,
223
+ eleRef = _this$props4.eleRef,
224
+ _this$props4$customCl = _this$props4.customClass,
225
+ customClass = _this$props4$customCl === void 0 ? '' : _this$props4$customCl,
226
+ htmlId = _this$props4.htmlId,
227
+ a11y = _this$props4.a11y;
277
228
  var isScroll = this.state.isScroll;
278
229
  var role = a11y.role;
279
230
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
@@ -286,7 +237,6 @@ var Card = /*#__PURE__*/function (_Component3) {
286
237
  if (!child) {
287
238
  return child;
288
239
  }
289
-
290
240
  if (child.type === CardHeader || _this4.props.childTypes && child.type === _this4.props.childTypes.cardHeader) {
291
241
  return /*#__PURE__*/_react["default"].cloneElement(child, {
292
242
  isScroll: isScroll
@@ -306,19 +256,15 @@ var Card = /*#__PURE__*/function (_Component3) {
306
256
  className: child.props.customClass
307
257
  }, child.props.children);
308
258
  }
309
-
310
259
  return child;
311
260
  }));
312
261
  }
313
262
  }]);
314
-
315
263
  return Card;
316
264
  }(_react.Component);
317
-
318
265
  exports["default"] = Card;
319
266
  Card.propTypes = _propTypes.Card_propTypes;
320
267
  Card.defaultProps = _defaultProps.Card_defaultProps;
321
-
322
268
  if (false) {
323
269
  Card.docs = {
324
270
  componentGroup: 'Template',
@@ -327,36 +273,29 @@ if (false) {
327
273
  description: ' '
328
274
  };
329
275
  }
330
-
331
276
  var CardFooter = /*#__PURE__*/function (_Component4) {
332
277
  _inherits(CardFooter, _Component4);
333
-
334
278
  var _super4 = _createSuper(CardFooter);
335
-
336
279
  function CardFooter() {
337
280
  _classCallCheck(this, CardFooter);
338
-
339
281
  return _super4.apply(this, arguments);
340
282
  }
341
-
342
283
  _createClass(CardFooter, [{
343
284
  key: "render",
344
285
  value: function render() {
345
286
  var _this$props5 = this.props,
346
- children = _this$props5.children,
347
- _this$props5$dataId = _this$props5.dataId,
348
- dataId = _this$props5$dataId === void 0 ? 'CardFooter' : _this$props5$dataId,
349
- _this$props5$customCl = _this$props5.customClass,
350
- customClass = _this$props5$customCl === void 0 ? '' : _this$props5$customCl;
287
+ children = _this$props5.children,
288
+ _this$props5$dataId = _this$props5.dataId,
289
+ dataId = _this$props5$dataId === void 0 ? 'CardFooter' : _this$props5$dataId,
290
+ _this$props5$customCl = _this$props5.customClass,
291
+ customClass = _this$props5$customCl === void 0 ? '' : _this$props5$customCl;
351
292
  return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
352
293
  className: "".concat(customClass),
353
294
  dataId: dataId
354
295
  }, children);
355
296
  }
356
297
  }]);
357
-
358
298
  return CardFooter;
359
299
  }(_react.Component);
360
-
361
300
  exports.CardFooter = CardFooter;
362
301
  CardFooter.propTypes = _propTypes.CardFooter_propTypes;
@@ -1,20 +1,20 @@
1
- .notScroll {
2
- position: relative;
3
- }
4
- .scroll {
5
- /* background: var(--dot_white);
6
- position: relative; */
7
- }
8
- /*
9
- .scroll::after {
10
- box-shadow: 0 0 6px var(--zd_dark10);
11
- border-radius: 100px / 10px;
12
- content: '';
13
- left: var(--zd_size50);
14
- position: absolute;
15
- right: var(--zd_size50);
16
- display: block;
17
- z-index: -1;
18
- height: var(--zd_size1);
19
- bottom: 0;
20
- } */
1
+ .notScroll {
2
+ position: relative;
3
+ }
4
+ .scroll {
5
+ /* background: var(--dot_white);
6
+ position: relative; */
7
+ }
8
+ /*
9
+ .scroll::after {
10
+ box-shadow: 0 0 6px var(--zd_dark10);
11
+ border-radius: 100px / 10px;
12
+ content: '';
13
+ left: var(--zd_size50);
14
+ position: absolute;
15
+ right: var(--zd_size50);
16
+ display: block;
17
+ z-index: -1;
18
+ height: var(--zd_size1);
19
+ bottom: 0;
20
+ } */
@@ -1,27 +1,20 @@
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
  var _react = _interopRequireDefault(require("react"));
6
-
7
5
  var _reactDom = _interopRequireDefault(require("react-dom"));
8
-
9
6
  var _Card = _interopRequireWildcard(require("../Card"));
10
-
11
7
  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); }
12
-
13
8
  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; }
14
-
15
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
-
17
10
  //https://github.com/facebook/react/issues/4971
11
+
18
12
  var data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29];
19
13
  describe('Button component', function () {
20
14
  it('should display text', function () {
21
15
  var div = document.createElement('div');
22
16
  document.body.appendChild(div);
23
17
  var scrollElement;
24
-
25
18
  _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", {
26
19
  style: {
27
20
  height: '400px'
@@ -45,12 +38,10 @@ describe('Button component', function () {
45
38
  }
46
39
  }, val);
47
40
  })), /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, /*#__PURE__*/_react["default"].createElement("div", null, "Footer")))), div);
48
-
49
41
  scrollElement.scrollTop = 310;
50
42
  TestUtils.Simulate.scroll(scrollElement, {
51
43
  deltaY: 310
52
44
  });
53
-
54
45
  _reactDom["default"].unmountComponentAtNode(div);
55
46
  });
56
47
  });
@@ -1,59 +1,35 @@
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 = _interopRequireWildcard(require("react"));
11
-
12
9
  var _Card = _interopRequireWildcard(require("../Card"));
13
-
14
10
  var _Layout = require("../../Layout");
15
-
16
11
  var _CodeExtractor = _interopRequireDefault(require("@zohodesk/docstool/lib/CodeExtractor/CodeExtractor"));
17
-
18
12
  var _docStyleModule = _interopRequireDefault(require("../../common/docStyle.module.css"));
19
-
20
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
14
  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); }
23
-
24
15
  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; }
25
-
26
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
-
28
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, descriptor.key, descriptor); } }
29
-
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
-
32
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); }
33
-
34
20
  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
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); }; }
37
-
38
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); }
39
-
40
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
-
42
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; } }
43
-
44
25
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
46
26
  var Card__Custom = /*#__PURE__*/function (_Component) {
47
27
  _inherits(Card__Custom, _Component);
48
-
49
28
  var _super = _createSuper(Card__Custom);
50
-
51
29
  function Card__Custom() {
52
30
  _classCallCheck(this, Card__Custom);
53
-
54
31
  return _super.apply(this, arguments);
55
32
  }
56
-
57
33
  _createClass(Card__Custom, [{
58
34
  key: "render",
59
35
  value: function render() {
@@ -74,12 +50,9 @@ var Card__Custom = /*#__PURE__*/function (_Component) {
74
50
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, "Footer")))));
75
51
  }
76
52
  }]);
77
-
78
53
  return Card__Custom;
79
54
  }(_react.Component);
80
-
81
55
  exports["default"] = Card__Custom;
82
-
83
56
  if (false) {
84
57
  Card__Custom.docs = {
85
58
  componentGroup: 'Template',
@@ -1,57 +1,34 @@
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 = _interopRequireWildcard(require("react"));
11
-
12
9
  var _Card = _interopRequireWildcard(require("../Card"));
13
-
14
10
  var _Layout = require("../../Layout");
15
-
16
11
  var _CodeExtractor = _interopRequireDefault(require("@zohodesk/docstool/lib/CodeExtractor/CodeExtractor"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
16
  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); } }
27
-
28
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
-
30
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); }
31
-
32
19
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
-
34
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); }; }
35
-
36
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); }
37
-
38
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
-
40
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; } }
41
-
42
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
-
44
25
  var Card__Default = /*#__PURE__*/function (_Component) {
45
26
  _inherits(Card__Default, _Component);
46
-
47
27
  var _super = _createSuper(Card__Default);
48
-
49
28
  function Card__Default() {
50
29
  _classCallCheck(this, Card__Default);
51
-
52
30
  return _super.apply(this, arguments);
53
31
  }
54
-
55
32
  _createClass(Card__Default, [{
56
33
  key: "render",
57
34
  value: function render() {
@@ -76,12 +53,9 @@ var Card__Default = /*#__PURE__*/function (_Component) {
76
53
  }, "Footer")))));
77
54
  }
78
55
  }]);
79
-
80
56
  return Card__Default;
81
57
  }(_react.Component);
82
-
83
58
  exports["default"] = Card__Default;
84
-
85
59
  if (false) {
86
60
  Card__Default.docs = {
87
61
  componentGroup: 'Template',