@zohodesk/components 1.0.0-temp-234 → 1.0.0-temp-236

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 (1581) hide show
  1. package/README.md +8 -17
  2. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +5 -5
  3. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +1 -1
  4. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +1 -1
  5. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +1 -1
  6. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +1 -1
  7. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +1 -1
  8. package/assets/Appearance/light/mode/Component_LightMode.module.css +5 -5
  9. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +1 -1
  10. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +1 -1
  11. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +1 -1
  12. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +1 -1
  13. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +1 -1
  14. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +5 -5
  15. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +1 -1
  16. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +1 -1
  17. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +1 -1
  18. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +1 -1
  19. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +1 -1
  20. package/coverage/__testUtils__/MockResizeObserver.js.html +163 -0
  21. package/coverage/__testUtils__/index.html +116 -0
  22. package/coverage/base.css +224 -0
  23. package/coverage/block-navigation.js +87 -0
  24. package/coverage/coverage-final.json +14 -0
  25. package/coverage/coverage-summary.json +15 -0
  26. package/coverage/favicon.png +0 -0
  27. package/coverage/index.html +206 -0
  28. package/coverage/prettify.css +1 -0
  29. package/coverage/prettify.js +2 -0
  30. package/coverage/sort-arrow-sprite.png +0 -0
  31. package/coverage/sorter.js +196 -0
  32. package/coverage/src/Accordion/Accordion.js.html +307 -0
  33. package/coverage/src/Accordion/AccordionItem.js.html +232 -0
  34. package/coverage/src/Accordion/index.html +116 -0
  35. package/coverage/src/Accordion/props/defaultProps.js.html +124 -0
  36. package/coverage/src/Accordion/props/index.html +131 -0
  37. package/coverage/src/Accordion/props/propTypes.js.html +190 -0
  38. package/coverage/src/Animation/Animation.js.html +256 -0
  39. package/coverage/src/Animation/index.html +131 -0
  40. package/coverage/src/Animation/props/defaultProps.js.html +106 -0
  41. package/coverage/src/Animation/props/index.html +131 -0
  42. package/coverage/src/Animation/props/propTypes.js.html +124 -0
  43. package/coverage/src/Animation/utils.js.html +331 -0
  44. package/coverage/src/AppContainer/AppContainer.js.html +475 -0
  45. package/coverage/src/AppContainer/AppContainer.module.css.html +139 -0
  46. package/coverage/src/AppContainer/index.html +116 -0
  47. package/coverage/src/AppContainer/props/defaultProps.js.html +115 -0
  48. package/coverage/src/AppContainer/props/index.html +131 -0
  49. package/coverage/src/AppContainer/props/propTypes.js.html +139 -0
  50. package/coverage/src/Avatar/Avatar.js.html +652 -0
  51. package/coverage/src/Avatar/Avatar.module.css.html +556 -0
  52. package/coverage/src/Avatar/index.html +131 -0
  53. package/coverage/src/Avatar/props/defaultProps.js.html +136 -0
  54. package/coverage/src/Avatar/props/index.html +131 -0
  55. package/coverage/src/Avatar/props/propTypes.js.html +166 -0
  56. package/coverage/src/AvatarTeam/AvatarTeam.js.html +340 -0
  57. package/coverage/src/AvatarTeam/AvatarTeam.module.css.html +610 -0
  58. package/coverage/src/AvatarTeam/index.html +131 -0
  59. package/coverage/src/AvatarTeam/props/defaultProps.js.html +136 -0
  60. package/coverage/src/AvatarTeam/props/index.html +116 -0
  61. package/coverage/src/AvatarTeam/props/propTypes.js.html +172 -0
  62. package/coverage/src/Button/Button.js.html +337 -0
  63. package/coverage/src/Button/css/Button.module.css.html +1693 -0
  64. package/coverage/src/Button/css/cssJSLogic.js.html +220 -0
  65. package/coverage/src/Button/css/index.html +131 -0
  66. package/coverage/src/Button/index.html +116 -0
  67. package/coverage/src/Button/props/defaultProps.js.html +142 -0
  68. package/coverage/src/Button/props/index.html +131 -0
  69. package/coverage/src/Button/props/propTypes.js.html +220 -0
  70. package/coverage/src/Buttongroup/Buttongroup.js.html +220 -0
  71. package/coverage/src/Buttongroup/Buttongroup.module.css.html +298 -0
  72. package/coverage/src/Buttongroup/index.html +131 -0
  73. package/coverage/src/Buttongroup/props/defaultProps.js.html +103 -0
  74. package/coverage/src/Buttongroup/props/index.html +131 -0
  75. package/coverage/src/Buttongroup/props/propTypes.js.html +115 -0
  76. package/coverage/src/Card/Card.js.html +976 -0
  77. package/coverage/src/Card/Card.module.css.html +145 -0
  78. package/coverage/src/Card/index.html +131 -0
  79. package/coverage/src/Card/props/defaultProps.js.html +172 -0
  80. package/coverage/src/Card/props/index.html +131 -0
  81. package/coverage/src/Card/props/propTypes.js.html +244 -0
  82. package/coverage/src/CheckBox/CheckBox.js.html +625 -0
  83. package/coverage/src/CheckBox/CheckBox.module.css.html +547 -0
  84. package/coverage/src/CheckBox/index.html +131 -0
  85. package/coverage/src/CheckBox/props/defaultProps.js.html +139 -0
  86. package/coverage/src/CheckBox/props/index.html +131 -0
  87. package/coverage/src/CheckBox/props/propTypes.js.html +214 -0
  88. package/coverage/src/DateTime/CalendarView.js.html +706 -0
  89. package/coverage/src/DateTime/DateTime.js.html +1954 -0
  90. package/coverage/src/DateTime/DateTime.module.css.html +733 -0
  91. package/coverage/src/DateTime/DateTimePopupFooter.js.html +187 -0
  92. package/coverage/src/DateTime/DateTimePopupHeader.js.html +346 -0
  93. package/coverage/src/DateTime/DateWidget.js.html +2920 -0
  94. package/coverage/src/DateTime/DateWidget.module.css.html +190 -0
  95. package/coverage/src/DateTime/DaysRow.js.html +178 -0
  96. package/coverage/src/DateTime/Time.js.html +595 -0
  97. package/coverage/src/DateTime/YearView.js.html +736 -0
  98. package/coverage/src/DateTime/YearView.module.css.html +340 -0
  99. package/coverage/src/DateTime/constants.js.html +370 -0
  100. package/coverage/src/DateTime/dateFormatUtils/dateFormat.js.html +1714 -0
  101. package/coverage/src/DateTime/dateFormatUtils/dateFormats.js.html +436 -0
  102. package/coverage/src/DateTime/dateFormatUtils/dayChange.js.html +289 -0
  103. package/coverage/src/DateTime/dateFormatUtils/index.html +146 -0
  104. package/coverage/src/DateTime/dateFormatUtils/index.js.html +748 -0
  105. package/coverage/src/DateTime/dateFormatUtils/monthChange.js.html +325 -0
  106. package/coverage/src/DateTime/dateFormatUtils/timeChange.js.html +748 -0
  107. package/coverage/src/DateTime/dateFormatUtils/yearChange.js.html +427 -0
  108. package/coverage/src/DateTime/index.html +146 -0
  109. package/coverage/src/DateTime/objectUtils.js.html +274 -0
  110. package/coverage/src/DateTime/props/defaultProps.js.html +298 -0
  111. package/coverage/src/DateTime/props/index.html +131 -0
  112. package/coverage/src/DateTime/props/propTypes.js.html +721 -0
  113. package/coverage/src/DateTime/typeChecker.js.html +148 -0
  114. package/coverage/src/DateTime/validator.js.html +1378 -0
  115. package/coverage/src/DropBox/DropBox.js.html +355 -0
  116. package/coverage/src/DropBox/DropBoxElement/DropBoxElement.js.html +463 -0
  117. package/coverage/src/DropBox/DropBoxElement/css/DropBoxElement.module.css.html +1336 -0
  118. package/coverage/src/DropBox/DropBoxElement/css/cssJSLogic.js.html +349 -0
  119. package/coverage/src/DropBox/DropBoxElement/css/index.html +131 -0
  120. package/coverage/src/DropBox/DropBoxElement/index.html +131 -0
  121. package/coverage/src/DropBox/DropBoxElement/props/defaultProps.js.html +139 -0
  122. package/coverage/src/DropBox/DropBoxElement/props/index.html +131 -0
  123. package/coverage/src/DropBox/DropBoxElement/props/propTypes.js.html +313 -0
  124. package/coverage/src/DropBox/DropBoxElement/useDropboxPosCalc.js.html +244 -0
  125. package/coverage/src/DropBox/DropBoxPositionMapping.js.html +511 -0
  126. package/coverage/src/DropBox/css/DropBox.module.css.html +208 -0
  127. package/coverage/src/DropBox/css/cssJSLogic.js.html +118 -0
  128. package/coverage/src/DropBox/css/index.html +131 -0
  129. package/coverage/src/DropBox/index.html +131 -0
  130. package/coverage/src/DropBox/props/defaultProps.js.html +136 -0
  131. package/coverage/src/DropBox/props/index.html +131 -0
  132. package/coverage/src/DropBox/props/propTypes.js.html +142 -0
  133. package/coverage/src/DropBox/utils/index.html +116 -0
  134. package/coverage/src/DropBox/utils/isMobilePopover.js.html +133 -0
  135. package/coverage/src/DropDown/DropDown.js.html +310 -0
  136. package/coverage/src/DropDown/DropDown.module.css.html +100 -0
  137. package/coverage/src/DropDown/DropDownHeading.js.html +196 -0
  138. package/coverage/src/DropDown/DropDownHeading.module.css.html +232 -0
  139. package/coverage/src/DropDown/DropDownItem.js.html +271 -0
  140. package/coverage/src/DropDown/DropDownItem.module.css.html +289 -0
  141. package/coverage/src/DropDown/DropDownSearch.js.html +229 -0
  142. package/coverage/src/DropDown/DropDownSearch.module.css.html +127 -0
  143. package/coverage/src/DropDown/DropDownSeparator.js.html +118 -0
  144. package/coverage/src/DropDown/DropDownSeparator.module.css.html +106 -0
  145. package/coverage/src/DropDown/index.html +131 -0
  146. package/coverage/src/DropDown/props/defaultProps.js.html +127 -0
  147. package/coverage/src/DropDown/props/index.html +131 -0
  148. package/coverage/src/DropDown/props/propTypes.js.html +310 -0
  149. package/coverage/src/Heading/Heading.js.html +193 -0
  150. package/coverage/src/Heading/Heading.module.css.html +97 -0
  151. package/coverage/src/Heading/index.html +131 -0
  152. package/coverage/src/Heading/props/defaultProps.js.html +100 -0
  153. package/coverage/src/Heading/props/index.html +131 -0
  154. package/coverage/src/Heading/props/propTypes.js.html +124 -0
  155. package/coverage/src/Label/Label.js.html +250 -0
  156. package/coverage/src/Label/Label.module.css.html +256 -0
  157. package/coverage/src/Label/LabelColors.module.css.html +145 -0
  158. package/coverage/src/Label/index.html +146 -0
  159. package/coverage/src/Label/props/defaultProps.js.html +118 -0
  160. package/coverage/src/Label/props/index.html +131 -0
  161. package/coverage/src/Label/props/propTypes.js.html +145 -0
  162. package/coverage/src/Layout/Box.js.html +367 -0
  163. package/coverage/src/Layout/Container.js.html +439 -0
  164. package/coverage/src/Layout/Layout.module.css.html +1090 -0
  165. package/coverage/src/Layout/index.html +176 -0
  166. package/coverage/src/Layout/index.js.html +118 -0
  167. package/coverage/src/Layout/props/defaultProps.js.html +136 -0
  168. package/coverage/src/Layout/props/index.html +131 -0
  169. package/coverage/src/Layout/props/propTypes.js.html +262 -0
  170. package/coverage/src/Layout/utils.js.html +199 -0
  171. package/coverage/src/ListItem/ListContainer.js.html +385 -0
  172. package/coverage/src/ListItem/ListItem.js.html +493 -0
  173. package/coverage/src/ListItem/ListItem.module.css.html +793 -0
  174. package/coverage/src/ListItem/ListItemWithAvatar.js.html +577 -0
  175. package/coverage/src/ListItem/ListItemWithCheckBox.js.html +430 -0
  176. package/coverage/src/ListItem/ListItemWithIcon.js.html +520 -0
  177. package/coverage/src/ListItem/ListItemWithRadio.js.html +445 -0
  178. package/coverage/src/ListItem/index.html +146 -0
  179. package/coverage/src/ListItem/props/defaultProps.js.html +415 -0
  180. package/coverage/src/ListItem/props/index.html +131 -0
  181. package/coverage/src/ListItem/props/propTypes.js.html +763 -0
  182. package/coverage/src/Modal/Modal.js.html +562 -0
  183. package/coverage/src/Modal/Portal/Portal.js.html +166 -0
  184. package/coverage/src/Modal/Portal/index.html +116 -0
  185. package/coverage/src/Modal/Portal/props/defaultProps.js.html +97 -0
  186. package/coverage/src/Modal/Portal/props/index.html +131 -0
  187. package/coverage/src/Modal/Portal/props/propTypes.js.html +100 -0
  188. package/coverage/src/Modal/index.html +116 -0
  189. package/coverage/src/Modal/props/defaultProps.js.html +94 -0
  190. package/coverage/src/Modal/props/index.html +131 -0
  191. package/coverage/src/Modal/props/propTypes.js.html +109 -0
  192. package/coverage/src/MultiSelect/AdvancedGroupMultiSelect.js.html +3085 -0
  193. package/coverage/src/MultiSelect/AdvancedMultiSelect.js.html +1762 -0
  194. package/coverage/src/MultiSelect/EmptyState.js.html +277 -0
  195. package/coverage/src/MultiSelect/MobileHeader/MobileHeader.js.html +214 -0
  196. package/coverage/src/MultiSelect/MobileHeader/MobileHeader.module.css.html +133 -0
  197. package/coverage/src/MultiSelect/MobileHeader/index.html +131 -0
  198. package/coverage/src/MultiSelect/MobileHeader/props/defaultProps.js.html +97 -0
  199. package/coverage/src/MultiSelect/MobileHeader/props/index.html +131 -0
  200. package/coverage/src/MultiSelect/MobileHeader/props/propTypes.js.html +109 -0
  201. package/coverage/src/MultiSelect/MultiSelect.js.html +3346 -0
  202. package/coverage/src/MultiSelect/MultiSelect.module.css.html +658 -0
  203. package/coverage/src/MultiSelect/MultiSelectHeader.js.html +187 -0
  204. package/coverage/src/MultiSelect/MultiSelectWithAvatar.js.html +772 -0
  205. package/coverage/src/MultiSelect/SelectedOptions.js.html +307 -0
  206. package/coverage/src/MultiSelect/SelectedOptions.module.css.html +112 -0
  207. package/coverage/src/MultiSelect/Suggestions.js.html +736 -0
  208. package/coverage/src/MultiSelect/constants.js.html +100 -0
  209. package/coverage/src/MultiSelect/index.html +146 -0
  210. package/coverage/src/MultiSelect/props/defaultProps.js.html +628 -0
  211. package/coverage/src/MultiSelect/props/index.html +131 -0
  212. package/coverage/src/MultiSelect/props/propTypes.js.html +1063 -0
  213. package/coverage/src/PopOver/PopOver.js.html +670 -0
  214. package/coverage/src/PopOver/PopOver.module.css.html +109 -0
  215. package/coverage/src/PopOver/index.html +131 -0
  216. package/coverage/src/PopOver/props/defaultProps.js.html +109 -0
  217. package/coverage/src/PopOver/props/index.html +116 -0
  218. package/coverage/src/PopOver/props/propTypes.js.html +253 -0
  219. package/coverage/src/Popup/Popup.js.html +2869 -0
  220. package/coverage/src/Popup/PositionMapping.js.html +310 -0
  221. package/coverage/src/Popup/Registry.js.html +205 -0
  222. package/coverage/src/Popup/index.html +176 -0
  223. package/coverage/src/Popup/intersectionObserver.js.html +223 -0
  224. package/coverage/src/Popup/props/index.html +116 -0
  225. package/coverage/src/Popup/props/propTypes.js.html +232 -0
  226. package/coverage/src/Popup/viewPort.js.html +1492 -0
  227. package/coverage/src/Provider/AvatarSize.js.html +124 -0
  228. package/coverage/src/Provider/Config.js.html +151 -0
  229. package/coverage/src/Provider/CssProvider.js.html +133 -0
  230. package/coverage/src/Provider/IdProvider.js.html +289 -0
  231. package/coverage/src/Provider/LibraryContextInit.js.html +97 -0
  232. package/coverage/src/Provider/NumberGenerator/NumberGenerator.js.html +523 -0
  233. package/coverage/src/Provider/NumberGenerator/index.html +116 -0
  234. package/coverage/src/Provider/ZindexProvider.js.html +253 -0
  235. package/coverage/src/Provider/index.html +116 -0
  236. package/coverage/src/Radio/Radio.js.html +472 -0
  237. package/coverage/src/Radio/Radio.module.css.html +412 -0
  238. package/coverage/src/Radio/index.html +131 -0
  239. package/coverage/src/Radio/props/defaultProps.js.html +130 -0
  240. package/coverage/src/Radio/props/index.html +131 -0
  241. package/coverage/src/Radio/props/propTypes.js.html +211 -0
  242. package/coverage/src/Responsive/CustomResponsive.js.html +622 -0
  243. package/coverage/src/Responsive/RefWrapper.js.html +214 -0
  244. package/coverage/src/Responsive/ResizeObserver.js.html +274 -0
  245. package/coverage/src/Responsive/index.html +161 -0
  246. package/coverage/src/Responsive/props/defaultProps.js.html +133 -0
  247. package/coverage/src/Responsive/props/index.html +131 -0
  248. package/coverage/src/Responsive/props/propTypes.js.html +172 -0
  249. package/coverage/src/Responsive/sizeObservers.js.html +460 -0
  250. package/coverage/src/Responsive/utils/index.html +116 -0
  251. package/coverage/src/Responsive/utils/shallowCompare.js.html +148 -0
  252. package/coverage/src/ResponsiveDropBox/ResponsiveDropBox.js.html +259 -0
  253. package/coverage/src/ResponsiveDropBox/ResponsiveDropBox.module.css.html +103 -0
  254. package/coverage/src/ResponsiveDropBox/index.html +131 -0
  255. package/coverage/src/ResponsiveDropBox/props/defaultProps.js.html +97 -0
  256. package/coverage/src/ResponsiveDropBox/props/index.html +131 -0
  257. package/coverage/src/ResponsiveDropBox/props/propTypes.js.html +115 -0
  258. package/coverage/src/Ribbon/Ribbon.js.html +229 -0
  259. package/coverage/src/Ribbon/Ribbon.module.css.html +1348 -0
  260. package/coverage/src/Ribbon/index.html +131 -0
  261. package/coverage/src/Ribbon/props/defaultProps.js.html +112 -0
  262. package/coverage/src/Ribbon/props/index.html +131 -0
  263. package/coverage/src/Ribbon/props/propTypes.js.html +121 -0
  264. package/coverage/src/RippleEffect/RippleEffect.js.html +172 -0
  265. package/coverage/src/RippleEffect/RippleEffect.module.css.html +472 -0
  266. package/coverage/src/RippleEffect/index.html +131 -0
  267. package/coverage/src/RippleEffect/props/defaultProps.js.html +115 -0
  268. package/coverage/src/RippleEffect/props/index.html +131 -0
  269. package/coverage/src/RippleEffect/props/propTypes.js.html +124 -0
  270. package/coverage/src/Select/GroupSelect.js.html +2209 -0
  271. package/coverage/src/Select/Select.js.html +2647 -0
  272. package/coverage/src/Select/Select.module.css.html +463 -0
  273. package/coverage/src/Select/SelectWithAvatar.js.html +1114 -0
  274. package/coverage/src/Select/SelectWithIcon.js.html +1573 -0
  275. package/coverage/src/Select/index.html +131 -0
  276. package/coverage/src/Select/props/defaultProps.js.html +490 -0
  277. package/coverage/src/Select/props/index.html +131 -0
  278. package/coverage/src/Select/props/propTypes.js.html +1138 -0
  279. package/coverage/src/Stencils/Stencils.js.html +136 -0
  280. package/coverage/src/Stencils/Stencils.module.css.html +337 -0
  281. package/coverage/src/Stencils/index.html +131 -0
  282. package/coverage/src/Stencils/props/defaultProps.js.html +106 -0
  283. package/coverage/src/Stencils/props/index.html +131 -0
  284. package/coverage/src/Stencils/props/propTypes.js.html +112 -0
  285. package/coverage/src/Switch/Switch.js.html +376 -0
  286. package/coverage/src/Switch/Switch.module.css.html +481 -0
  287. package/coverage/src/Switch/index.html +131 -0
  288. package/coverage/src/Switch/props/defaultProps.js.html +118 -0
  289. package/coverage/src/Switch/props/index.html +131 -0
  290. package/coverage/src/Switch/props/propTypes.js.html +172 -0
  291. package/coverage/src/Tab/Tab.js.html +454 -0
  292. package/coverage/src/Tab/Tab.module.css.html +358 -0
  293. package/coverage/src/Tab/TabContent.js.html +163 -0
  294. package/coverage/src/Tab/TabContent.module.css.html +97 -0
  295. package/coverage/src/Tab/TabContentWrapper.js.html +139 -0
  296. package/coverage/src/Tab/TabWrapper.js.html +274 -0
  297. package/coverage/src/Tab/Tabs.js.html +2026 -0
  298. package/coverage/src/Tab/Tabs.module.css.html +493 -0
  299. package/coverage/src/Tab/index.html +161 -0
  300. package/coverage/src/Tab/index.js.html +100 -0
  301. package/coverage/src/Tab/props/defaultProps.js.html +250 -0
  302. package/coverage/src/Tab/props/index.html +131 -0
  303. package/coverage/src/Tab/props/propTypes.js.html +451 -0
  304. package/coverage/src/Tab/utils/index.html +116 -0
  305. package/coverage/src/Tab/utils/tabConfigs.js.html +142 -0
  306. package/coverage/src/Tag/Tag.js.html +544 -0
  307. package/coverage/src/Tag/Tag.module.css.html +781 -0
  308. package/coverage/src/Tag/index.html +131 -0
  309. package/coverage/src/Tag/props/defaultProps.js.html +133 -0
  310. package/coverage/src/Tag/props/index.html +131 -0
  311. package/coverage/src/Tag/props/propTypes.js.html +244 -0
  312. package/coverage/src/TextBox/TextBox.js.html +619 -0
  313. package/coverage/src/TextBox/TextBox.module.css.html +685 -0
  314. package/coverage/src/TextBox/index.html +131 -0
  315. package/coverage/src/TextBox/props/defaultProps.js.html +145 -0
  316. package/coverage/src/TextBox/props/index.html +131 -0
  317. package/coverage/src/TextBox/props/propTypes.js.html +247 -0
  318. package/coverage/src/TextBoxIcon/TextBoxIcon.js.html +661 -0
  319. package/coverage/src/TextBoxIcon/TextBoxIcon.module.css.html +301 -0
  320. package/coverage/src/TextBoxIcon/index.html +131 -0
  321. package/coverage/src/TextBoxIcon/props/defaultProps.js.html +157 -0
  322. package/coverage/src/TextBoxIcon/props/index.html +131 -0
  323. package/coverage/src/TextBoxIcon/props/propTypes.js.html +256 -0
  324. package/coverage/src/Textarea/Textarea.js.html +463 -0
  325. package/coverage/src/Textarea/Textarea.module.css.html +532 -0
  326. package/coverage/src/Textarea/index.html +131 -0
  327. package/coverage/src/Textarea/props/defaultProps.js.html +139 -0
  328. package/coverage/src/Textarea/props/index.html +131 -0
  329. package/coverage/src/Textarea/props/propTypes.js.html +193 -0
  330. package/coverage/src/Tooltip/Tooltip.js.html +1795 -0
  331. package/coverage/src/Tooltip/Tooltip.module.css.html +484 -0
  332. package/coverage/src/Tooltip/index.html +131 -0
  333. package/coverage/src/Tooltip/props/defaultProps.js.html +97 -0
  334. package/coverage/src/Tooltip/props/index.html +131 -0
  335. package/coverage/src/Tooltip/props/propTypes.js.html +103 -0
  336. package/coverage/src/VelocityAnimation/VelocityAnimation/VelocityAnimation.js.html +283 -0
  337. package/coverage/src/VelocityAnimation/VelocityAnimation/index.html +116 -0
  338. package/coverage/src/VelocityAnimation/VelocityAnimation/props/defaultProps.js.html +106 -0
  339. package/coverage/src/VelocityAnimation/VelocityAnimation/props/index.html +131 -0
  340. package/coverage/src/VelocityAnimation/VelocityAnimation/props/propTypes.js.html +124 -0
  341. package/coverage/src/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js.html +502 -0
  342. package/coverage/src/VelocityAnimation/VelocityAnimationGroup/index.html +116 -0
  343. package/coverage/src/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js.html +130 -0
  344. package/coverage/src/VelocityAnimation/VelocityAnimationGroup/props/index.html +131 -0
  345. package/coverage/src/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js.html +154 -0
  346. package/coverage/src/common/a11y.module.css.html +94 -0
  347. package/coverage/src/common/avatarsizes.module.css.html +229 -0
  348. package/coverage/src/common/basic.module.css.html +178 -0
  349. package/coverage/src/common/boxShadow.module.css.html +184 -0
  350. package/coverage/src/common/common.module.css.html +1645 -0
  351. package/coverage/src/common/index.html +116 -0
  352. package/coverage/src/common/transition.module.css.html +403 -0
  353. package/coverage/src/semantic/Button/Button.js.html +220 -0
  354. package/coverage/src/semantic/Button/index.html +131 -0
  355. package/coverage/src/semantic/Button/props/defaultProps.js.html +121 -0
  356. package/coverage/src/semantic/Button/props/index.html +131 -0
  357. package/coverage/src/semantic/Button/props/propTypes.js.html +154 -0
  358. package/coverage/src/semantic/Button/semanticButton.module.css.html +112 -0
  359. package/coverage/src/utils/Common.js.html +1267 -0
  360. package/coverage/src/utils/ContextOptimizer.js.html +196 -0
  361. package/coverage/src/utils/cssUtils.js.html +118 -0
  362. package/coverage/src/utils/datetime/GMTZones.js.html +229 -0
  363. package/coverage/src/utils/datetime/common.js.html +790 -0
  364. package/coverage/src/utils/datetime/index.html +131 -0
  365. package/coverage/src/utils/dropDownUtils.js.html +1897 -0
  366. package/coverage/src/utils/dummyFunction.js.html +88 -0
  367. package/coverage/src/utils/getInitial.js.html +139 -0
  368. package/coverage/src/utils/index.html +116 -0
  369. package/coverage/src/utils/shallowEqual.js.html +181 -0
  370. package/coverage/src/v1/Switch/Switch.js.html +433 -0
  371. package/coverage/src/v1/Switch/contants/index.html +116 -0
  372. package/coverage/src/v1/Switch/contants/index.js.html +166 -0
  373. package/coverage/src/v1/Switch/css/Switch_v1.module.css.html +439 -0
  374. package/coverage/src/v1/Switch/css/cssJSLogic.js.html +220 -0
  375. package/coverage/src/v1/Switch/css/index.html +131 -0
  376. package/coverage/src/v1/Switch/index.html +131 -0
  377. package/coverage/src/v1/Switch/props/defaultProps.js.html +115 -0
  378. package/coverage/src/v1/Switch/props/index.html +131 -0
  379. package/coverage/src/v1/Switch/props/propTypes.js.html +193 -0
  380. package/coverage/src/v1/Switch/useSwitch.js.html +154 -0
  381. package/package.json +9 -3
  382. package/es/Accordion/Accordion.js +0 -85
  383. package/es/Accordion/AccordionItem.js +0 -63
  384. package/es/Accordion/__tests__/Accordion.spec.js +0 -11
  385. package/es/Accordion/__tests__/AccordionItem.spec.js +0 -16
  386. package/es/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +0 -12
  387. package/es/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +0 -23
  388. package/es/Accordion/index.js +0 -2
  389. package/es/Accordion/props/defaultProps.js +0 -12
  390. package/es/Accordion/props/propTypes.js +0 -33
  391. package/es/Animation/Animation.js +0 -52
  392. package/es/Animation/__tests__/Animation.spec.js +0 -14
  393. package/es/Animation/__tests__/__snapshots__/Animation.spec.js.snap +0 -11
  394. package/es/Animation/props/defaultProps.js +0 -7
  395. package/es/Animation/props/propTypes.js +0 -12
  396. package/es/Animation/utils.js +0 -83
  397. package/es/AppContainer/AppContainer.js +0 -139
  398. package/es/AppContainer/AppContainer.module.css +0 -18
  399. package/es/AppContainer/__tests__/AppContainer.spec.js +0 -82
  400. package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +0 -201
  401. package/es/AppContainer/props/defaultProps.js +0 -10
  402. package/es/AppContainer/props/propTypes.js +0 -17
  403. package/es/Avatar/Avatar.js +0 -195
  404. package/es/Avatar/Avatar.module.css +0 -176
  405. package/es/Avatar/__tests__/Avatar.spec.js +0 -181
  406. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -591
  407. package/es/Avatar/props/defaultProps.js +0 -17
  408. package/es/Avatar/props/propTypes.js +0 -26
  409. package/es/AvatarTeam/AvatarTeam.js +0 -84
  410. package/es/AvatarTeam/AvatarTeam.module.css +0 -189
  411. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -138
  412. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -705
  413. package/es/AvatarTeam/props/defaultProps.js +0 -17
  414. package/es/AvatarTeam/props/propTypes.js +0 -28
  415. package/es/Button/Button.js +0 -76
  416. package/es/Button/__tests__/Button.spec.js +0 -242
  417. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -412
  418. package/es/Button/css/Button.module.css +0 -613
  419. package/es/Button/css/cssJSLogic.js +0 -58
  420. package/es/Button/index.js +0 -2
  421. package/es/Button/props/defaultProps.js +0 -18
  422. package/es/Button/props/propTypes.js +0 -28
  423. package/es/Buttongroup/Buttongroup.js +0 -50
  424. package/es/Buttongroup/Buttongroup.module.css +0 -105
  425. package/es/Buttongroup/__tests__/Buttongroup.spec.js +0 -37
  426. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +0 -191
  427. package/es/Buttongroup/props/defaultProps.js +0 -6
  428. package/es/Buttongroup/props/propTypes.js +0 -9
  429. package/es/Card/Card.js +0 -305
  430. package/es/Card/Card.module.css +0 -20
  431. package/es/Card/__tests__/Card.spec.js +0 -90
  432. package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +0 -56
  433. package/es/Card/index.js +0 -4
  434. package/es/Card/props/defaultProps.js +0 -26
  435. package/es/Card/props/propTypes.js +0 -49
  436. package/es/CheckBox/CheckBox.js +0 -172
  437. package/es/CheckBox/CheckBox.module.css +0 -160
  438. package/es/CheckBox/__tests__/CheckBox.spec.js +0 -240
  439. package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +0 -1878
  440. package/es/CheckBox/props/defaultProps.js +0 -18
  441. package/es/CheckBox/props/propTypes.js +0 -42
  442. package/es/DateTime/CalendarView.js +0 -223
  443. package/es/DateTime/DateTime.js +0 -779
  444. package/es/DateTime/DateTime.module.css +0 -249
  445. package/es/DateTime/DateTimePopupFooter.js +0 -47
  446. package/es/DateTime/DateTimePopupHeader.js +0 -105
  447. package/es/DateTime/DateWidget.js +0 -1142
  448. package/es/DateTime/DateWidget.module.css +0 -39
  449. package/es/DateTime/DaysRow.js +0 -32
  450. package/es/DateTime/Time.js +0 -181
  451. package/es/DateTime/YearView.js +0 -264
  452. package/es/DateTime/YearView.module.css +0 -99
  453. package/es/DateTime/__tests__/CalendarView.spec.js +0 -13
  454. package/es/DateTime/__tests__/DateTime.spec.js +0 -21
  455. package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +0 -11
  456. package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +0 -11
  457. package/es/DateTime/__tests__/DateWidget.spec.js +0 -11
  458. package/es/DateTime/__tests__/DaysRow.spec.js +0 -13
  459. package/es/DateTime/__tests__/Time.spec.js +0 -11
  460. package/es/DateTime/__tests__/YearView.spec.js +0 -10
  461. package/es/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +0 -312
  462. package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +0 -938
  463. package/es/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +0 -34
  464. package/es/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +0 -72
  465. package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +0 -79
  466. package/es/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +0 -12
  467. package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +0 -310
  468. package/es/DateTime/common.js +0 -25
  469. package/es/DateTime/constants.js +0 -57
  470. package/es/DateTime/dateFormatUtils/dateFormat.js +0 -616
  471. package/es/DateTime/dateFormatUtils/dateFormats.js +0 -42
  472. package/es/DateTime/dateFormatUtils/dayChange.js +0 -83
  473. package/es/DateTime/dateFormatUtils/index.js +0 -267
  474. package/es/DateTime/dateFormatUtils/monthChange.js +0 -90
  475. package/es/DateTime/dateFormatUtils/timeChange.js +0 -228
  476. package/es/DateTime/dateFormatUtils/yearChange.js +0 -121
  477. package/es/DateTime/index.js +0 -1
  478. package/es/DateTime/objectUtils.js +0 -55
  479. package/es/DateTime/props/defaultProps.js +0 -65
  480. package/es/DateTime/props/propTypes.js +0 -203
  481. package/es/DateTime/typeChecker.js +0 -19
  482. package/es/DateTime/validator.js +0 -327
  483. package/es/DropBox/DropBox.js +0 -80
  484. package/es/DropBox/DropBoxElement/DropBoxElement.js +0 -137
  485. package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +0 -28
  486. package/es/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +0 -95
  487. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -442
  488. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +0 -91
  489. package/es/DropBox/DropBoxElement/props/defaultProps.js +0 -18
  490. package/es/DropBox/DropBoxElement/props/propTypes.js +0 -51
  491. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -54
  492. package/es/DropBox/DropBoxPositionMapping.js +0 -142
  493. package/es/DropBox/__tests__/DropBox.spec.js +0 -11
  494. package/es/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +0 -36
  495. package/es/DropBox/css/DropBox.module.css +0 -59
  496. package/es/DropBox/css/cssJSLogic.js +0 -14
  497. package/es/DropBox/props/defaultProps.js +0 -14
  498. package/es/DropBox/props/propTypes.js +0 -16
  499. package/es/DropBox/utils/isMobilePopover.js +0 -17
  500. package/es/DropDown/DropDown.js +0 -76
  501. package/es/DropDown/DropDown.module.css +0 -5
  502. package/es/DropDown/DropDownHeading.js +0 -44
  503. package/es/DropDown/DropDownHeading.module.css +0 -53
  504. package/es/DropDown/DropDownItem.js +0 -76
  505. package/es/DropDown/DropDownItem.module.css +0 -94
  506. package/es/DropDown/DropDownSearch.js +0 -68
  507. package/es/DropDown/DropDownSearch.module.css +0 -14
  508. package/es/DropDown/DropDownSeparator.js +0 -15
  509. package/es/DropDown/DropDownSeparator.module.css +0 -7
  510. package/es/DropDown/__tests__/DropDown.spec.js +0 -11
  511. package/es/DropDown/__tests__/DropDownHeading.spec.js +0 -11
  512. package/es/DropDown/__tests__/DropDownItem.spec.js +0 -11
  513. package/es/DropDown/__tests__/DropDownSearch.spec.js +0 -11
  514. package/es/DropDown/__tests__/DropDownSeparator.spec.js +0 -11
  515. package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +0 -54
  516. package/es/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +0 -12
  517. package/es/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +0 -11
  518. package/es/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +0 -20
  519. package/es/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +0 -9
  520. package/es/DropDown/index.js +0 -7
  521. package/es/DropDown/props/defaultProps.js +0 -21
  522. package/es/DropDown/props/propTypes.js +0 -66
  523. package/es/Heading/Heading.js +0 -38
  524. package/es/Heading/Heading.module.css +0 -5
  525. package/es/Heading/__tests__/Heading.spec.js +0 -20
  526. package/es/Heading/__tests__/__snapshots__/Heading.spec.js.snap +0 -63
  527. package/es/Heading/props/defaultProps.js +0 -5
  528. package/es/Heading/props/propTypes.js +0 -12
  529. package/es/Label/Label.js +0 -51
  530. package/es/Label/Label.module.css +0 -57
  531. package/es/Label/LabelColors.module.css +0 -21
  532. package/es/Label/__tests__/Label.spec.js +0 -99
  533. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -312
  534. package/es/Label/props/defaultProps.js +0 -11
  535. package/es/Label/props/propTypes.js +0 -19
  536. package/es/Layout/Box.js +0 -115
  537. package/es/Layout/Container.js +0 -132
  538. package/es/Layout/Layout.module.css +0 -336
  539. package/es/Layout/__tests__/Box.spec.js +0 -11
  540. package/es/Layout/__tests__/Container.spec.js +0 -11
  541. package/es/Layout/__tests__/__snapshots__/Box.spec.js.snap +0 -16
  542. package/es/Layout/__tests__/__snapshots__/Container.spec.js.snap +0 -16
  543. package/es/Layout/index.js +0 -10
  544. package/es/Layout/props/defaultProps.js +0 -16
  545. package/es/Layout/props/propTypes.js +0 -46
  546. package/es/Layout/utils.js +0 -30
  547. package/es/ListItem/ListContainer.js +0 -105
  548. package/es/ListItem/ListItem.js +0 -155
  549. package/es/ListItem/ListItem.module.css +0 -261
  550. package/es/ListItem/ListItemWithAvatar.js +0 -184
  551. package/es/ListItem/ListItemWithCheckBox.js +0 -140
  552. package/es/ListItem/ListItemWithIcon.js +0 -164
  553. package/es/ListItem/ListItemWithRadio.js +0 -143
  554. package/es/ListItem/__tests__/ListContainer.spec.js +0 -19
  555. package/es/ListItem/__tests__/ListItem.spec.js +0 -30
  556. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -65
  557. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -65
  558. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +0 -63
  559. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +0 -65
  560. package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +0 -27
  561. package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -107
  562. package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +0 -316
  563. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +0 -694
  564. package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +0 -316
  565. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +0 -687
  566. package/es/ListItem/index.js +0 -6
  567. package/es/ListItem/props/defaultProps.js +0 -105
  568. package/es/ListItem/props/propTypes.js +0 -230
  569. package/es/Modal/Modal.js +0 -174
  570. package/es/Modal/Portal/Portal.js +0 -33
  571. package/es/Modal/Portal/__tests__/Portal.spec.js +0 -28
  572. package/es/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +0 -30
  573. package/es/Modal/Portal/props/defaultProps.js +0 -3
  574. package/es/Modal/Portal/props/propTypes.js +0 -5
  575. package/es/Modal/__tests__/Modal.spec.js +0 -15
  576. package/es/Modal/__tests__/__snapshots__/Modal.spec.js.snap +0 -26
  577. package/es/Modal/props/defaultProps.js +0 -3
  578. package/es/Modal/props/propTypes.js +0 -7
  579. package/es/MultiSelect/AdvancedGroupMultiSelect.js +0 -1109
  580. package/es/MultiSelect/AdvancedMultiSelect.js +0 -604
  581. package/es/MultiSelect/EmptyState.js +0 -65
  582. package/es/MultiSelect/MobileHeader/MobileHeader.js +0 -50
  583. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +0 -16
  584. package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +0 -11
  585. package/es/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +0 -39
  586. package/es/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
  587. package/es/MultiSelect/MobileHeader/props/propTypes.js +0 -7
  588. package/es/MultiSelect/MultiSelect.js +0 -1193
  589. package/es/MultiSelect/MultiSelect.module.css +0 -216
  590. package/es/MultiSelect/MultiSelectHeader.js +0 -32
  591. package/es/MultiSelect/MultiSelectWithAvatar.js +0 -218
  592. package/es/MultiSelect/SelectedOptions.js +0 -86
  593. package/es/MultiSelect/SelectedOptions.module.css +0 -15
  594. package/es/MultiSelect/Suggestions.js +0 -225
  595. package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +0 -12
  596. package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +0 -47
  597. package/es/MultiSelect/__tests__/EmptyState.spec.js +0 -15
  598. package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -36
  599. package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +0 -21
  600. package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +0 -11
  601. package/es/MultiSelect/__tests__/SelectedOptions.spec.js +0 -28
  602. package/es/MultiSelect/__tests__/Suggestions.spec.js +0 -71
  603. package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +0 -74
  604. package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +0 -534
  605. package/es/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +0 -12
  606. package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +0 -339
  607. package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +0 -63
  608. package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +0 -85
  609. package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +0 -80
  610. package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +0 -363
  611. package/es/MultiSelect/constants.js +0 -6
  612. package/es/MultiSelect/index.js +0 -4
  613. package/es/MultiSelect/props/defaultProps.js +0 -173
  614. package/es/MultiSelect/props/propTypes.js +0 -300
  615. package/es/PopOver/PopOver.js +0 -211
  616. package/es/PopOver/PopOver.module.css +0 -9
  617. package/es/PopOver/__tests__/PopOver.spec.js +0 -11
  618. package/es/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +0 -13
  619. package/es/PopOver/index.js +0 -3
  620. package/es/PopOver/props/defaultProps.js +0 -7
  621. package/es/PopOver/props/propTypes.js +0 -53
  622. package/es/Popup/Popup.js +0 -1049
  623. package/es/Popup/PositionMapping.js +0 -72
  624. package/es/Popup/Registry.js +0 -36
  625. package/es/Popup/intersectionObserver.js +0 -49
  626. package/es/Popup/props/propTypes.js +0 -30
  627. package/es/Popup/viewPort.js +0 -373
  628. package/es/Provider/AvatarSize.js +0 -13
  629. package/es/Provider/Config.js +0 -21
  630. package/es/Provider/CssProvider.js +0 -16
  631. package/es/Provider/IdProvider.js +0 -66
  632. package/es/Provider/LibraryContext.js +0 -57
  633. package/es/Provider/LibraryContextInit.js +0 -3
  634. package/es/Provider/NumberGenerator/NumberGenerator.js +0 -136
  635. package/es/Provider/ZindexProvider.js +0 -57
  636. package/es/Provider/index.js +0 -4
  637. package/es/Radio/Radio.js +0 -138
  638. package/es/Radio/Radio.module.css +0 -115
  639. package/es/Radio/__tests__/Radio.spec.js +0 -238
  640. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +0 -1916
  641. package/es/Radio/props/defaultProps.js +0 -15
  642. package/es/Radio/props/propTypes.js +0 -41
  643. package/es/Responsive/CustomResponsive.js +0 -195
  644. package/es/Responsive/RefWrapper.js +0 -38
  645. package/es/Responsive/ResizeComponent.js +0 -197
  646. package/es/Responsive/ResizeObserver.js +0 -76
  647. package/es/Responsive/ResizeObserverWithPolyfill.js +0 -140
  648. package/es/Responsive/Responsive.js +0 -194
  649. package/es/Responsive/index.js +0 -9
  650. package/es/Responsive/props/defaultProps.js +0 -13
  651. package/es/Responsive/props/propTypes.js +0 -25
  652. package/es/Responsive/sizeObservers.js +0 -141
  653. package/es/Responsive/utils/index.js +0 -52
  654. package/es/Responsive/utils/shallowCompare.js +0 -28
  655. package/es/Responsive/windowResizeObserver.js +0 -51
  656. package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -65
  657. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
  658. package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +0 -11
  659. package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +0 -42
  660. package/es/ResponsiveDropBox/props/defaultProps.js +0 -4
  661. package/es/ResponsiveDropBox/props/propTypes.js +0 -8
  662. package/es/Ribbon/Ribbon.js +0 -51
  663. package/es/Ribbon/Ribbon.module.css +0 -500
  664. package/es/Ribbon/__tests__/Ribbon.spec.js +0 -52
  665. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -374
  666. package/es/Ribbon/props/defaultProps.js +0 -9
  667. package/es/Ribbon/props/propTypes.js +0 -11
  668. package/es/RippleEffect/RippleEffect.js +0 -30
  669. package/es/RippleEffect/RippleEffect.module.css +0 -109
  670. package/es/RippleEffect/__tests__/RippleEffect.spec.js +0 -69
  671. package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -161
  672. package/es/RippleEffect/props/defaultProps.js +0 -10
  673. package/es/RippleEffect/props/propTypes.js +0 -12
  674. package/es/Select/GroupSelect.js +0 -827
  675. package/es/Select/Select.js +0 -1022
  676. package/es/Select/Select.module.css +0 -138
  677. package/es/Select/SelectWithAvatar.js +0 -369
  678. package/es/Select/SelectWithIcon.js +0 -567
  679. package/es/Select/__tests__/GroupSelect.spec.js +0 -19
  680. package/es/Select/__tests__/Select.spec.js +0 -1153
  681. package/es/Select/__tests__/SelectWithAvatar.spec.js +0 -12
  682. package/es/Select/__tests__/SelectWithIcon.spec.js +0 -12
  683. package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +0 -90
  684. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +0 -10446
  685. package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +0 -45
  686. package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +0 -108
  687. package/es/Select/index.js +0 -4
  688. package/es/Select/props/defaultProps.js +0 -132
  689. package/es/Select/props/propTypes.js +0 -316
  690. package/es/Stencils/Stencils.js +0 -24
  691. package/es/Stencils/Stencils.module.css +0 -100
  692. package/es/Stencils/__tests__/Stencils.spec.js +0 -54
  693. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -105
  694. package/es/Stencils/props/defaultProps.js +0 -7
  695. package/es/Stencils/props/propTypes.js +0 -8
  696. package/es/Switch/Switch.js +0 -99
  697. package/es/Switch/Switch.module.css +0 -128
  698. package/es/Switch/__tests__/Switch.spec.js +0 -156
  699. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -831
  700. package/es/Switch/props/defaultProps.js +0 -11
  701. package/es/Switch/props/propTypes.js +0 -28
  702. package/es/Tab/Tab.js +0 -110
  703. package/es/Tab/Tab.module.css +0 -100
  704. package/es/Tab/TabContent.js +0 -30
  705. package/es/Tab/TabContent.module.css +0 -4
  706. package/es/Tab/TabContentWrapper.js +0 -33
  707. package/es/Tab/TabWrapper.js +0 -56
  708. package/es/Tab/Tabs.js +0 -723
  709. package/es/Tab/Tabs.module.css +0 -167
  710. package/es/Tab/__tests__/Tab.spec.js +0 -11
  711. package/es/Tab/__tests__/TabContent.spec.js +0 -11
  712. package/es/Tab/__tests__/TabContentWrapper.spec.js +0 -11
  713. package/es/Tab/__tests__/TabLayout.spec.js +0 -34
  714. package/es/Tab/__tests__/TabWrapper.spec.js +0 -11
  715. package/es/Tab/__tests__/Tabs.spec.js +0 -11
  716. package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +0 -22
  717. package/es/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +0 -19
  718. package/es/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +0 -12
  719. package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +0 -341
  720. package/es/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +0 -20
  721. package/es/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +0 -33
  722. package/es/Tab/index.js +0 -5
  723. package/es/Tab/props/defaultProps.js +0 -51
  724. package/es/Tab/props/propTypes.js +0 -117
  725. package/es/Tab/utils/tabConfigs.js +0 -18
  726. package/es/Tag/Tag.js +0 -163
  727. package/es/Tag/Tag.module.css +0 -254
  728. package/es/Tag/__tests__/Tag.spec.js +0 -252
  729. package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +0 -3074
  730. package/es/Tag/props/defaultProps.js +0 -16
  731. package/es/Tag/props/propTypes.js +0 -42
  732. package/es/TextBox/TextBox.js +0 -189
  733. package/es/TextBox/TextBox.module.css +0 -197
  734. package/es/TextBox/__tests__/TextBox.spec.js +0 -327
  735. package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -615
  736. package/es/TextBox/props/defaultProps.js +0 -20
  737. package/es/TextBox/props/propTypes.js +0 -53
  738. package/es/TextBoxIcon/TextBoxIcon.js +0 -203
  739. package/es/TextBoxIcon/TextBoxIcon.module.css +0 -79
  740. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -268
  741. package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -1784
  742. package/es/TextBoxIcon/props/defaultProps.js +0 -24
  743. package/es/TextBoxIcon/props/propTypes.js +0 -55
  744. package/es/Textarea/Textarea.js +0 -125
  745. package/es/Textarea/Textarea.module.css +0 -148
  746. package/es/Textarea/__tests__/Textarea.spec.js +0 -266
  747. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -525
  748. package/es/Textarea/props/defaultProps.js +0 -18
  749. package/es/Textarea/props/propTypes.js +0 -35
  750. package/es/Tooltip/Tooltip.js +0 -530
  751. package/es/Tooltip/Tooltip.module.css +0 -133
  752. package/es/Tooltip/props/defaultProps.js +0 -4
  753. package/es/Tooltip/props/propTypes.js +0 -5
  754. package/es/Typography/Typography.js +0 -38
  755. package/es/Typography/css/Typography.module.css +0 -489
  756. package/es/Typography/css/cssJSLogic.js +0 -56
  757. package/es/Typography/props/defaultProps.js +0 -8
  758. package/es/Typography/props/propTypes.js +0 -27
  759. package/es/Typography/utils/index.js +0 -50
  760. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -77
  761. package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +0 -11
  762. package/es/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +0 -9
  763. package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
  764. package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
  765. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -144
  766. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +0 -19
  767. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +0 -11
  768. package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
  769. package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -22
  770. package/es/VelocityAnimation/index.js +0 -2
  771. package/es/common/a11y.module.css +0 -4
  772. package/es/common/animation.module.css +0 -624
  773. package/es/common/avatarsizes.module.css +0 -49
  774. package/es/common/basic.module.css +0 -31
  775. package/es/common/basicReset.module.css +0 -40
  776. package/es/common/boxShadow.module.css +0 -34
  777. package/es/common/common.module.css +0 -559
  778. package/es/common/customscroll.module.css +0 -142
  779. package/es/common/reset.module.css +0 -13
  780. package/es/common/transition.module.css +0 -146
  781. package/es/components_layer.module.css +0 -1
  782. package/es/css.js +0 -41
  783. package/es/deprecated/PortalLayer/PortalLayer.js +0 -108
  784. package/es/deprecated/PortalLayer/props/defaultProps.js +0 -5
  785. package/es/deprecated/PortalLayer/props/propTypes.js +0 -20
  786. package/es/deprecated/Switch/Switch.js +0 -94
  787. package/es/deprecated/Switch/props/defaultProps.js +0 -11
  788. package/es/deprecated/Switch/props/propTypes.js +0 -28
  789. package/es/index.js +0 -42
  790. package/es/semantic/Button/Button.js +0 -60
  791. package/es/semantic/Button/__tests__/Button.spec.js +0 -11
  792. package/es/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -15
  793. package/es/semantic/Button/props/defaultProps.js +0 -12
  794. package/es/semantic/Button/props/propTypes.js +0 -22
  795. package/es/semantic/Button/semanticButton.module.css +0 -9
  796. package/es/semantic/index.js +0 -1
  797. package/es/utils/Common.js +0 -417
  798. package/es/utils/ContextOptimizer.js +0 -38
  799. package/es/utils/constant.js +0 -2
  800. package/es/utils/constructFullName.js +0 -13
  801. package/es/utils/cssUtils.js +0 -11
  802. package/es/utils/datetime/GMTZones.js +0 -48
  803. package/es/utils/datetime/common.js +0 -204
  804. package/es/utils/debounce.js +0 -23
  805. package/es/utils/dropDownUtils.js +0 -519
  806. package/es/utils/dummyFunction.js +0 -1
  807. package/es/utils/getHTMLFontSize.js +0 -4
  808. package/es/utils/getInitial.js +0 -24
  809. package/es/utils/index.js +0 -1
  810. package/es/utils/scrollTo.js +0 -13
  811. package/es/utils/shallowEqual.js +0 -32
  812. package/es/v1/Accordion/Accordion.js +0 -66
  813. package/es/v1/Accordion/AccordionItem.js +0 -57
  814. package/es/v1/Accordion/index.js +0 -2
  815. package/es/v1/Accordion/props/defaultProps.js +0 -12
  816. package/es/v1/Accordion/props/propTypes.js +0 -33
  817. package/es/v1/Animation/Animation.js +0 -45
  818. package/es/v1/Animation/props/defaultProps.js +0 -7
  819. package/es/v1/Animation/props/propTypes.js +0 -12
  820. package/es/v1/Animation/utils.js +0 -83
  821. package/es/v1/AppContainer/AppContainer.js +0 -115
  822. package/es/v1/AppContainer/props/defaultProps.js +0 -10
  823. package/es/v1/AppContainer/props/propTypes.js +0 -17
  824. package/es/v1/Avatar/Avatar.js +0 -139
  825. package/es/v1/Avatar/props/defaultProps.js +0 -17
  826. package/es/v1/Avatar/props/propTypes.js +0 -26
  827. package/es/v1/AvatarTeam/AvatarTeam.js +0 -70
  828. package/es/v1/AvatarTeam/props/defaultProps.js +0 -17
  829. package/es/v1/AvatarTeam/props/propTypes.js +0 -27
  830. package/es/v1/Button/Button.js +0 -67
  831. package/es/v1/Button/props/defaultProps.js +0 -18
  832. package/es/v1/Button/props/propTypes.js +0 -28
  833. package/es/v1/Buttongroup/Buttongroup.js +0 -31
  834. package/es/v1/Buttongroup/props/defaultProps.js +0 -6
  835. package/es/v1/Buttongroup/props/propTypes.js +0 -9
  836. package/es/v1/Card/Card.js +0 -237
  837. package/es/v1/Card/index.js +0 -4
  838. package/es/v1/Card/props/defaultProps.js +0 -25
  839. package/es/v1/Card/props/propTypes.js +0 -48
  840. package/es/v1/CheckBox/CheckBox.js +0 -161
  841. package/es/v1/CheckBox/props/defaultProps.js +0 -18
  842. package/es/v1/CheckBox/props/propTypes.js +0 -41
  843. package/es/v1/DateTime/CalendarView.js +0 -254
  844. package/es/v1/DateTime/DateTime.js +0 -779
  845. package/es/v1/DateTime/DateTimePopupFooter.js +0 -47
  846. package/es/v1/DateTime/DateTimePopupHeader.js +0 -105
  847. package/es/v1/DateTime/DateWidget.js +0 -1134
  848. package/es/v1/DateTime/DaysRow.js +0 -32
  849. package/es/v1/DateTime/Time.js +0 -181
  850. package/es/v1/DateTime/YearView.js +0 -264
  851. package/es/v1/DateTime/index.js +0 -1
  852. package/es/v1/DateTime/props/defaultProps.js +0 -63
  853. package/es/v1/DateTime/props/propTypes.js +0 -206
  854. package/es/v1/DropBox/DropBox.js +0 -79
  855. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -133
  856. package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -18
  857. package/es/v1/DropBox/DropBoxElement/props/propTypes.js +0 -51
  858. package/es/v1/DropBox/props/defaultProps.js +0 -14
  859. package/es/v1/DropBox/props/propTypes.js +0 -16
  860. package/es/v1/DropBox/utils/isMobilePopover.js +0 -17
  861. package/es/v1/DropDown/DropDown.js +0 -53
  862. package/es/v1/DropDown/DropDownHeading.js +0 -36
  863. package/es/v1/DropDown/DropDownItem.js +0 -56
  864. package/es/v1/DropDown/DropDownSearch.js +0 -58
  865. package/es/v1/DropDown/DropDownSeparator.js +0 -12
  866. package/es/v1/DropDown/props/defaultProps.js +0 -21
  867. package/es/v1/DropDown/props/propTypes.js +0 -66
  868. package/es/v1/Heading/Heading.js +0 -35
  869. package/es/v1/Heading/props/defaultProps.js +0 -5
  870. package/es/v1/Heading/props/propTypes.js +0 -12
  871. package/es/v1/Label/Label.js +0 -40
  872. package/es/v1/Label/props/defaultProps.js +0 -11
  873. package/es/v1/Label/props/propTypes.js +0 -19
  874. package/es/v1/Layout/Box.js +0 -115
  875. package/es/v1/Layout/Container.js +0 -132
  876. package/es/v1/Layout/index.js +0 -2
  877. package/es/v1/Layout/props/defaultProps.js +0 -16
  878. package/es/v1/Layout/props/propTypes.js +0 -46
  879. package/es/v1/ListItem/ListContainer.js +0 -104
  880. package/es/v1/ListItem/ListItem.js +0 -123
  881. package/es/v1/ListItem/ListItemWithAvatar.js +0 -143
  882. package/es/v1/ListItem/ListItemWithCheckBox.js +0 -104
  883. package/es/v1/ListItem/ListItemWithIcon.js +0 -126
  884. package/es/v1/ListItem/ListItemWithRadio.js +0 -105
  885. package/es/v1/ListItem/index.js +0 -6
  886. package/es/v1/ListItem/props/defaultProps.js +0 -97
  887. package/es/v1/ListItem/props/propTypes.js +0 -202
  888. package/es/v1/Modal/Modal.js +0 -125
  889. package/es/v1/Modal/props/defaultProps.js +0 -3
  890. package/es/v1/Modal/props/propTypes.js +0 -7
  891. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1092
  892. package/es/v1/MultiSelect/AdvancedMultiSelect.js +0 -583
  893. package/es/v1/MultiSelect/EmptyState.js +0 -64
  894. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -50
  895. package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
  896. package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -7
  897. package/es/v1/MultiSelect/MultiSelect.js +0 -1119
  898. package/es/v1/MultiSelect/MultiSelectHeader.js +0 -32
  899. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -208
  900. package/es/v1/MultiSelect/SelectedOptions.js +0 -84
  901. package/es/v1/MultiSelect/Suggestions.js +0 -141
  902. package/es/v1/MultiSelect/index.js +0 -4
  903. package/es/v1/MultiSelect/props/defaultProps.js +0 -165
  904. package/es/v1/MultiSelect/props/propTypes.js +0 -322
  905. package/es/v1/PopOver/PopOver.js +0 -176
  906. package/es/v1/PopOver/props/defaultProps.js +0 -7
  907. package/es/v1/PopOver/props/propTypes.js +0 -53
  908. package/es/v1/Popup/Popup.js +0 -644
  909. package/es/v1/Radio/Radio.js +0 -130
  910. package/es/v1/Radio/props/defaultProps.js +0 -15
  911. package/es/v1/Radio/props/propTypes.js +0 -40
  912. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -56
  913. package/es/v1/ResponsiveDropBox/props/defaultProps.js +0 -4
  914. package/es/v1/ResponsiveDropBox/props/propTypes.js +0 -8
  915. package/es/v1/Ribbon/Ribbon.js +0 -33
  916. package/es/v1/Ribbon/props/defaultProps.js +0 -9
  917. package/es/v1/Ribbon/props/propTypes.js +0 -11
  918. package/es/v1/RippleEffect/RippleEffect.js +0 -25
  919. package/es/v1/RippleEffect/props/defaultProps.js +0 -10
  920. package/es/v1/RippleEffect/props/propTypes.js +0 -12
  921. package/es/v1/Select/GroupSelect.js +0 -818
  922. package/es/v1/Select/Select.js +0 -975
  923. package/es/v1/Select/SelectWithAvatar.js +0 -356
  924. package/es/v1/Select/SelectWithIcon.js +0 -545
  925. package/es/v1/Select/index.js +0 -4
  926. package/es/v1/Select/props/defaultProps.js +0 -126
  927. package/es/v1/Select/props/propTypes.js +0 -297
  928. package/es/v1/Stencils/Stencils.js +0 -26
  929. package/es/v1/Stencils/props/defaultProps.js +0 -6
  930. package/es/v1/Stencils/props/propTypes.js +0 -7
  931. package/es/v1/Switch/Switch.js +0 -138
  932. package/es/v1/Switch/__tests__/Switch.spec.js +0 -30
  933. package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -135
  934. package/es/v1/Switch/contants/index.js +0 -24
  935. package/es/v1/Switch/css/Switch_v1.module.css +0 -134
  936. package/es/v1/Switch/css/cssJSLogic.js +0 -48
  937. package/es/v1/Switch/props/defaultProps.js +0 -11
  938. package/es/v1/Switch/props/propTypes.js +0 -36
  939. package/es/v1/Switch/useSwitch.js +0 -33
  940. package/es/v1/Tab/Tab.js +0 -106
  941. package/es/v1/Tab/TabContent.js +0 -30
  942. package/es/v1/Tab/TabContentWrapper.js +0 -33
  943. package/es/v1/Tab/TabWrapper.js +0 -55
  944. package/es/v1/Tab/Tabs.js +0 -619
  945. package/es/v1/Tab/index.js +0 -5
  946. package/es/v1/Tab/props/defaultProps.js +0 -51
  947. package/es/v1/Tab/props/propTypes.js +0 -117
  948. package/es/v1/Tab/v1Tab.module.css +0 -100
  949. package/es/v1/Tab/v1TabContent.module.css +0 -4
  950. package/es/v1/Tab/v1Tabs.module.css +0 -167
  951. package/es/v1/Tag/Tag.js +0 -140
  952. package/es/v1/Tag/props/defaultProps.js +0 -15
  953. package/es/v1/Tag/props/propTypes.js +0 -36
  954. package/es/v1/TextBox/TextBox.js +0 -160
  955. package/es/v1/TextBox/props/defaultProps.js +0 -20
  956. package/es/v1/TextBox/props/propTypes.js +0 -56
  957. package/es/v1/TextBoxIcon/TextBoxIcon.js +0 -166
  958. package/es/v1/TextBoxIcon/props/defaultProps.js +0 -24
  959. package/es/v1/TextBoxIcon/props/propTypes.js +0 -53
  960. package/es/v1/Textarea/Textarea.js +0 -100
  961. package/es/v1/Textarea/props/defaultProps.js +0 -17
  962. package/es/v1/Textarea/props/propTypes.js +0 -31
  963. package/es/v1/Tooltip/Tooltip.js +0 -530
  964. package/es/v1/Tooltip/props/defaultProps.js +0 -4
  965. package/es/v1/Tooltip/props/propTypes.js +0 -5
  966. package/es/v1/Typography/Typography.js +0 -38
  967. package/es/v1/Typography/css/cssJSLogic.js +0 -56
  968. package/es/v1/Typography/css/v1_Typography.module.css +0 -380
  969. package/es/v1/Typography/props/defaultProps.js +0 -8
  970. package/es/v1/Typography/props/propTypes.js +0 -27
  971. package/es/v1/Typography/utils/index.js +0 -50
  972. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -69
  973. package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
  974. package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
  975. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -99
  976. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
  977. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -19
  978. package/es/v1/semantic/Button/Button.js +0 -53
  979. package/es/v1/semantic/Button/props/defaultProps.js +0 -12
  980. package/es/v1/semantic/Button/props/propTypes.js +0 -22
  981. package/es/v1/semantic/index.js +0 -1
  982. package/lib/Accordion/Accordion.js +0 -134
  983. package/lib/Accordion/AccordionItem.js +0 -111
  984. package/lib/Accordion/__tests__/Accordion.spec.js +0 -18
  985. package/lib/Accordion/__tests__/AccordionItem.spec.js +0 -24
  986. package/lib/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +0 -12
  987. package/lib/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +0 -23
  988. package/lib/Accordion/index.js +0 -23
  989. package/lib/Accordion/props/defaultProps.js +0 -20
  990. package/lib/Accordion/props/propTypes.js +0 -45
  991. package/lib/Animation/Animation.js +0 -102
  992. package/lib/Animation/__tests__/Animation.spec.js +0 -21
  993. package/lib/Animation/__tests__/__snapshots__/Animation.spec.js.snap +0 -11
  994. package/lib/Animation/props/defaultProps.js +0 -14
  995. package/lib/Animation/props/propTypes.js +0 -23
  996. package/lib/Animation/utils.js +0 -94
  997. package/lib/AppContainer/AppContainer.js +0 -210
  998. package/lib/AppContainer/AppContainer.module.css +0 -18
  999. package/lib/AppContainer/__tests__/AppContainer.spec.js +0 -90
  1000. package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +0 -201
  1001. package/lib/AppContainer/props/defaultProps.js +0 -17
  1002. package/lib/AppContainer/props/propTypes.js +0 -28
  1003. package/lib/Avatar/Avatar.js +0 -253
  1004. package/lib/Avatar/Avatar.module.css +0 -176
  1005. package/lib/Avatar/__tests__/Avatar.spec.js +0 -188
  1006. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -591
  1007. package/lib/Avatar/props/defaultProps.js +0 -24
  1008. package/lib/Avatar/props/propTypes.js +0 -37
  1009. package/lib/AvatarTeam/AvatarTeam.js +0 -133
  1010. package/lib/AvatarTeam/AvatarTeam.module.css +0 -189
  1011. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -145
  1012. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -705
  1013. package/lib/AvatarTeam/props/defaultProps.js +0 -24
  1014. package/lib/AvatarTeam/props/propTypes.js +0 -40
  1015. package/lib/Button/Button.js +0 -91
  1016. package/lib/Button/__tests__/Button.spec.js +0 -256
  1017. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -412
  1018. package/lib/Button/css/Button.module.css +0 -613
  1019. package/lib/Button/css/cssJSLogic.js +0 -45
  1020. package/lib/Button/index.js +0 -23
  1021. package/lib/Button/props/defaultProps.js +0 -27
  1022. package/lib/Button/props/propTypes.js +0 -40
  1023. package/lib/Buttongroup/Buttongroup.js +0 -100
  1024. package/lib/Buttongroup/Buttongroup.module.css +0 -105
  1025. package/lib/Buttongroup/__tests__/Buttongroup.spec.js +0 -44
  1026. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +0 -191
  1027. package/lib/Buttongroup/props/defaultProps.js +0 -13
  1028. package/lib/Buttongroup/props/propTypes.js +0 -20
  1029. package/lib/Card/Card.js +0 -399
  1030. package/lib/Card/Card.module.css +0 -20
  1031. package/lib/Card/__tests__/Card.spec.js +0 -135
  1032. package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +0 -56
  1033. package/lib/Card/index.js +0 -37
  1034. package/lib/Card/props/defaultProps.js +0 -36
  1035. package/lib/Card/props/propTypes.js +0 -63
  1036. package/lib/CheckBox/CheckBox.js +0 -223
  1037. package/lib/CheckBox/CheckBox.module.css +0 -160
  1038. package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -248
  1039. package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +0 -1878
  1040. package/lib/CheckBox/props/defaultProps.js +0 -25
  1041. package/lib/CheckBox/props/propTypes.js +0 -53
  1042. package/lib/DateTime/CalendarView.js +0 -290
  1043. package/lib/DateTime/DateTime.js +0 -879
  1044. package/lib/DateTime/DateTime.module.css +0 -249
  1045. package/lib/DateTime/DateTimePopupFooter.js +0 -96
  1046. package/lib/DateTime/DateTimePopupHeader.js +0 -166
  1047. package/lib/DateTime/DateWidget.js +0 -1173
  1048. package/lib/DateTime/DateWidget.module.css +0 -39
  1049. package/lib/DateTime/DaysRow.js +0 -81
  1050. package/lib/DateTime/Time.js +0 -270
  1051. package/lib/DateTime/YearView.js +0 -325
  1052. package/lib/DateTime/YearView.module.css +0 -99
  1053. package/lib/DateTime/__tests__/CalendarView.spec.js +0 -20
  1054. package/lib/DateTime/__tests__/DateTime.spec.js +0 -28
  1055. package/lib/DateTime/__tests__/DateTimePopupFooter.spec.js +0 -18
  1056. package/lib/DateTime/__tests__/DateTimePopupHeader.spec.js +0 -18
  1057. package/lib/DateTime/__tests__/DateWidget.spec.js +0 -18
  1058. package/lib/DateTime/__tests__/DaysRow.spec.js +0 -20
  1059. package/lib/DateTime/__tests__/Time.spec.js +0 -18
  1060. package/lib/DateTime/__tests__/YearView.spec.js +0 -17
  1061. package/lib/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +0 -312
  1062. package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +0 -938
  1063. package/lib/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +0 -34
  1064. package/lib/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +0 -72
  1065. package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +0 -79
  1066. package/lib/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +0 -12
  1067. package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +0 -310
  1068. package/lib/DateTime/common.js +0 -36
  1069. package/lib/DateTime/constants.js +0 -77
  1070. package/lib/DateTime/dateFormatUtils/dateFormat.js +0 -627
  1071. package/lib/DateTime/dateFormatUtils/dateFormats.js +0 -50
  1072. package/lib/DateTime/dateFormatUtils/dayChange.js +0 -83
  1073. package/lib/DateTime/dateFormatUtils/index.js +0 -307
  1074. package/lib/DateTime/dateFormatUtils/monthChange.js +0 -96
  1075. package/lib/DateTime/dateFormatUtils/timeChange.js +0 -240
  1076. package/lib/DateTime/dateFormatUtils/yearChange.js +0 -121
  1077. package/lib/DateTime/index.js +0 -15
  1078. package/lib/DateTime/objectUtils.js +0 -76
  1079. package/lib/DateTime/props/defaultProps.js +0 -78
  1080. package/lib/DateTime/props/propTypes.js +0 -235
  1081. package/lib/DateTime/typeChecker.js +0 -26
  1082. package/lib/DateTime/validator.js +0 -353
  1083. package/lib/DropBox/DropBox.js +0 -109
  1084. package/lib/DropBox/DropBoxElement/DropBoxElement.js +0 -150
  1085. package/lib/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +0 -35
  1086. package/lib/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +0 -95
  1087. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -442
  1088. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +0 -81
  1089. package/lib/DropBox/DropBoxElement/props/defaultProps.js +0 -25
  1090. package/lib/DropBox/DropBoxElement/props/propTypes.js +0 -62
  1091. package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -60
  1092. package/lib/DropBox/DropBoxPositionMapping.js +0 -149
  1093. package/lib/DropBox/__tests__/DropBox.spec.js +0 -18
  1094. package/lib/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +0 -36
  1095. package/lib/DropBox/css/DropBox.module.css +0 -59
  1096. package/lib/DropBox/css/cssJSLogic.js +0 -20
  1097. package/lib/DropBox/props/defaultProps.js +0 -30
  1098. package/lib/DropBox/props/propTypes.js +0 -35
  1099. package/lib/DropBox/utils/isMobilePopover.js +0 -25
  1100. package/lib/DropDown/DropDown.js +0 -171
  1101. package/lib/DropDown/DropDown.module.css +0 -5
  1102. package/lib/DropDown/DropDownHeading.js +0 -93
  1103. package/lib/DropDown/DropDownHeading.module.css +0 -53
  1104. package/lib/DropDown/DropDownItem.js +0 -127
  1105. package/lib/DropDown/DropDownItem.module.css +0 -94
  1106. package/lib/DropDown/DropDownSearch.js +0 -117
  1107. package/lib/DropDown/DropDownSearch.module.css +0 -14
  1108. package/lib/DropDown/DropDownSeparator.js +0 -64
  1109. package/lib/DropDown/DropDownSeparator.module.css +0 -7
  1110. package/lib/DropDown/__tests__/DropDown.spec.js +0 -18
  1111. package/lib/DropDown/__tests__/DropDownHeading.spec.js +0 -18
  1112. package/lib/DropDown/__tests__/DropDownItem.spec.js +0 -18
  1113. package/lib/DropDown/__tests__/DropDownSearch.spec.js +0 -18
  1114. package/lib/DropDown/__tests__/DropDownSeparator.spec.js +0 -18
  1115. package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +0 -54
  1116. package/lib/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +0 -12
  1117. package/lib/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +0 -11
  1118. package/lib/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +0 -20
  1119. package/lib/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +0 -9
  1120. package/lib/DropDown/index.js +0 -65
  1121. package/lib/DropDown/props/defaultProps.js +0 -31
  1122. package/lib/DropDown/props/propTypes.js +0 -87
  1123. package/lib/Heading/Heading.js +0 -94
  1124. package/lib/Heading/Heading.module.css +0 -5
  1125. package/lib/Heading/__tests__/Heading.spec.js +0 -27
  1126. package/lib/Heading/__tests__/__snapshots__/Heading.spec.js.snap +0 -63
  1127. package/lib/Heading/props/defaultProps.js +0 -12
  1128. package/lib/Heading/props/propTypes.js +0 -23
  1129. package/lib/Label/Label.js +0 -97
  1130. package/lib/Label/Label.module.css +0 -57
  1131. package/lib/Label/LabelColors.module.css +0 -21
  1132. package/lib/Label/__tests__/Label.spec.js +0 -106
  1133. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -312
  1134. package/lib/Label/props/defaultProps.js +0 -18
  1135. package/lib/Label/props/propTypes.js +0 -30
  1136. package/lib/Layout/Box.js +0 -128
  1137. package/lib/Layout/Container.js +0 -145
  1138. package/lib/Layout/Layout.module.css +0 -336
  1139. package/lib/Layout/__tests__/Box.spec.js +0 -18
  1140. package/lib/Layout/__tests__/Container.spec.js +0 -18
  1141. package/lib/Layout/__tests__/__snapshots__/Box.spec.js.snap +0 -16
  1142. package/lib/Layout/__tests__/__snapshots__/Container.spec.js.snap +0 -16
  1143. package/lib/Layout/index.js +0 -23
  1144. package/lib/Layout/props/defaultProps.js +0 -24
  1145. package/lib/Layout/props/propTypes.js +0 -58
  1146. package/lib/Layout/utils.js +0 -59
  1147. package/lib/ListItem/ListContainer.js +0 -129
  1148. package/lib/ListItem/ListItem.js +0 -209
  1149. package/lib/ListItem/ListItem.module.css +0 -261
  1150. package/lib/ListItem/ListItemWithAvatar.js +0 -241
  1151. package/lib/ListItem/ListItemWithCheckBox.js +0 -202
  1152. package/lib/ListItem/ListItemWithIcon.js +0 -219
  1153. package/lib/ListItem/ListItemWithRadio.js +0 -205
  1154. package/lib/ListItem/__tests__/ListContainer.spec.js +0 -26
  1155. package/lib/ListItem/__tests__/ListItem.spec.js +0 -41
  1156. package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -76
  1157. package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -76
  1158. package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +0 -74
  1159. package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +0 -76
  1160. package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +0 -27
  1161. package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -107
  1162. package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +0 -316
  1163. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +0 -694
  1164. package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +0 -316
  1165. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +0 -687
  1166. package/lib/ListItem/index.js +0 -55
  1167. package/lib/ListItem/props/defaultProps.js +0 -117
  1168. package/lib/ListItem/props/propTypes.js +0 -223
  1169. package/lib/Modal/Modal.js +0 -236
  1170. package/lib/Modal/Portal/Portal.js +0 -46
  1171. package/lib/Modal/Portal/__tests__/Portal.spec.js +0 -37
  1172. package/lib/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +0 -30
  1173. package/lib/Modal/Portal/props/defaultProps.js +0 -10
  1174. package/lib/Modal/Portal/props/propTypes.js +0 -16
  1175. package/lib/Modal/__tests__/Modal.spec.js +0 -22
  1176. package/lib/Modal/__tests__/__snapshots__/Modal.spec.js.snap +0 -26
  1177. package/lib/Modal/props/defaultProps.js +0 -10
  1178. package/lib/Modal/props/propTypes.js +0 -18
  1179. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +0 -1198
  1180. package/lib/MultiSelect/AdvancedMultiSelect.js +0 -673
  1181. package/lib/MultiSelect/EmptyState.js +0 -114
  1182. package/lib/MultiSelect/MobileHeader/MobileHeader.js +0 -62
  1183. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +0 -16
  1184. package/lib/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +0 -18
  1185. package/lib/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +0 -39
  1186. package/lib/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
  1187. package/lib/MultiSelect/MobileHeader/props/propTypes.js +0 -18
  1188. package/lib/MultiSelect/MultiSelect.js +0 -1273
  1189. package/lib/MultiSelect/MultiSelect.module.css +0 -216
  1190. package/lib/MultiSelect/MultiSelectHeader.js +0 -78
  1191. package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -276
  1192. package/lib/MultiSelect/SelectedOptions.js +0 -132
  1193. package/lib/MultiSelect/SelectedOptions.module.css +0 -15
  1194. package/lib/MultiSelect/Suggestions.js +0 -279
  1195. package/lib/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +0 -20
  1196. package/lib/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +0 -56
  1197. package/lib/MultiSelect/__tests__/EmptyState.spec.js +0 -22
  1198. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -43
  1199. package/lib/MultiSelect/__tests__/MultiSelectHeader.spec.js +0 -28
  1200. package/lib/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +0 -18
  1201. package/lib/MultiSelect/__tests__/SelectedOptions.spec.js +0 -35
  1202. package/lib/MultiSelect/__tests__/Suggestions.spec.js +0 -78
  1203. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +0 -74
  1204. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +0 -534
  1205. package/lib/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +0 -12
  1206. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +0 -339
  1207. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +0 -63
  1208. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +0 -85
  1209. package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +0 -80
  1210. package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +0 -363
  1211. package/lib/MultiSelect/constants.js +0 -13
  1212. package/lib/MultiSelect/index.js +0 -39
  1213. package/lib/MultiSelect/props/defaultProps.js +0 -189
  1214. package/lib/MultiSelect/props/propTypes.js +0 -325
  1215. package/lib/PopOver/PopOver.js +0 -293
  1216. package/lib/PopOver/PopOver.module.css +0 -9
  1217. package/lib/PopOver/__tests__/PopOver.spec.js +0 -18
  1218. package/lib/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +0 -13
  1219. package/lib/PopOver/index.js +0 -31
  1220. package/lib/PopOver/props/defaultProps.js +0 -15
  1221. package/lib/PopOver/props/propTypes.js +0 -66
  1222. package/lib/Popup/Popup.js +0 -1169
  1223. package/lib/Popup/PositionMapping.js +0 -81
  1224. package/lib/Popup/Registry.js +0 -46
  1225. package/lib/Popup/intersectionObserver.js +0 -72
  1226. package/lib/Popup/props/propTypes.js +0 -51
  1227. package/lib/Popup/viewPort.js +0 -367
  1228. package/lib/Provider/AvatarSize.js +0 -24
  1229. package/lib/Provider/Config.js +0 -30
  1230. package/lib/Provider/CssProvider.js +0 -27
  1231. package/lib/Provider/IdProvider.js +0 -80
  1232. package/lib/Provider/LibraryContext.js +0 -94
  1233. package/lib/Provider/LibraryContextInit.js +0 -15
  1234. package/lib/Provider/NumberGenerator/NumberGenerator.js +0 -174
  1235. package/lib/Provider/ZindexProvider.js +0 -69
  1236. package/lib/Provider/index.js +0 -81
  1237. package/lib/Radio/Radio.js +0 -189
  1238. package/lib/Radio/Radio.module.css +0 -115
  1239. package/lib/Radio/__tests__/Radio.spec.js +0 -246
  1240. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +0 -1916
  1241. package/lib/Radio/props/defaultProps.js +0 -22
  1242. package/lib/Radio/props/propTypes.js +0 -52
  1243. package/lib/Responsive/CustomResponsive.js +0 -242
  1244. package/lib/Responsive/RefWrapper.js +0 -56
  1245. package/lib/Responsive/ResizeComponent.js +0 -268
  1246. package/lib/Responsive/ResizeObserver.js +0 -100
  1247. package/lib/Responsive/ResizeObserverWithPolyfill.js +0 -168
  1248. package/lib/Responsive/Responsive.js +0 -274
  1249. package/lib/Responsive/index.js +0 -55
  1250. package/lib/Responsive/props/defaultProps.js +0 -23
  1251. package/lib/Responsive/props/propTypes.js +0 -39
  1252. package/lib/Responsive/sizeObservers.js +0 -214
  1253. package/lib/Responsive/utils/index.js +0 -70
  1254. package/lib/Responsive/utils/shallowCompare.js +0 -38
  1255. package/lib/Responsive/windowResizeObserver.js +0 -63
  1256. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +0 -124
  1257. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
  1258. package/lib/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +0 -18
  1259. package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +0 -42
  1260. package/lib/ResponsiveDropBox/props/defaultProps.js +0 -11
  1261. package/lib/ResponsiveDropBox/props/propTypes.js +0 -27
  1262. package/lib/Ribbon/Ribbon.js +0 -98
  1263. package/lib/Ribbon/Ribbon.module.css +0 -500
  1264. package/lib/Ribbon/__tests__/Ribbon.spec.js +0 -59
  1265. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -374
  1266. package/lib/Ribbon/props/defaultProps.js +0 -16
  1267. package/lib/Ribbon/props/propTypes.js +0 -22
  1268. package/lib/RippleEffect/RippleEffect.js +0 -45
  1269. package/lib/RippleEffect/RippleEffect.module.css +0 -109
  1270. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +0 -76
  1271. package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -161
  1272. package/lib/RippleEffect/props/defaultProps.js +0 -17
  1273. package/lib/RippleEffect/props/propTypes.js +0 -23
  1274. package/lib/Select/GroupSelect.js +0 -902
  1275. package/lib/Select/Select.js +0 -1073
  1276. package/lib/Select/Select.module.css +0 -138
  1277. package/lib/Select/SelectWithAvatar.js +0 -416
  1278. package/lib/Select/SelectWithIcon.js +0 -635
  1279. package/lib/Select/__tests__/GroupSelect.spec.js +0 -27
  1280. package/lib/Select/__tests__/Select.spec.js +0 -1398
  1281. package/lib/Select/__tests__/SelectWithAvatar.spec.js +0 -20
  1282. package/lib/Select/__tests__/SelectWithIcon.spec.js +0 -20
  1283. package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +0 -90
  1284. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +0 -10446
  1285. package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +0 -45
  1286. package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +0 -108
  1287. package/lib/Select/index.js +0 -39
  1288. package/lib/Select/props/defaultProps.js +0 -130
  1289. package/lib/Select/props/propTypes.js +0 -338
  1290. package/lib/Stencils/Stencils.js +0 -72
  1291. package/lib/Stencils/Stencils.module.css +0 -100
  1292. package/lib/Stencils/__tests__/Stencils.spec.js +0 -61
  1293. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -105
  1294. package/lib/Stencils/props/defaultProps.js +0 -14
  1295. package/lib/Stencils/props/propTypes.js +0 -19
  1296. package/lib/Switch/Switch.js +0 -152
  1297. package/lib/Switch/Switch.module.css +0 -128
  1298. package/lib/Switch/__tests__/Switch.spec.js +0 -163
  1299. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -831
  1300. package/lib/Switch/props/defaultProps.js +0 -18
  1301. package/lib/Switch/props/propTypes.js +0 -39
  1302. package/lib/Tab/Tab.js +0 -134
  1303. package/lib/Tab/Tab.module.css +0 -100
  1304. package/lib/Tab/TabContent.js +0 -42
  1305. package/lib/Tab/TabContent.module.css +0 -4
  1306. package/lib/Tab/TabContentWrapper.js +0 -47
  1307. package/lib/Tab/TabWrapper.js +0 -91
  1308. package/lib/Tab/Tabs.js +0 -787
  1309. package/lib/Tab/Tabs.module.css +0 -167
  1310. package/lib/Tab/__tests__/Tab.spec.js +0 -18
  1311. package/lib/Tab/__tests__/TabContent.spec.js +0 -18
  1312. package/lib/Tab/__tests__/TabContentWrapper.spec.js +0 -18
  1313. package/lib/Tab/__tests__/TabLayout.spec.js +0 -41
  1314. package/lib/Tab/__tests__/TabWrapper.spec.js +0 -18
  1315. package/lib/Tab/__tests__/Tabs.spec.js +0 -18
  1316. package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +0 -22
  1317. package/lib/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +0 -19
  1318. package/lib/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +0 -12
  1319. package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +0 -341
  1320. package/lib/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +0 -20
  1321. package/lib/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +0 -33
  1322. package/lib/Tab/index.js +0 -47
  1323. package/lib/Tab/props/defaultProps.js +0 -62
  1324. package/lib/Tab/props/propTypes.js +0 -132
  1325. package/lib/Tab/utils/tabConfigs.js +0 -27
  1326. package/lib/Tag/Tag.js +0 -219
  1327. package/lib/Tag/Tag.module.css +0 -254
  1328. package/lib/Tag/__tests__/Tag.spec.js +0 -270
  1329. package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +0 -3074
  1330. package/lib/Tag/props/defaultProps.js +0 -23
  1331. package/lib/Tag/props/propTypes.js +0 -55
  1332. package/lib/TextBox/TextBox.js +0 -233
  1333. package/lib/TextBox/TextBox.module.css +0 -197
  1334. package/lib/TextBox/__tests__/TextBox.spec.js +0 -334
  1335. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -615
  1336. package/lib/TextBox/props/defaultProps.js +0 -27
  1337. package/lib/TextBox/props/propTypes.js +0 -64
  1338. package/lib/TextBoxIcon/TextBoxIcon.js +0 -253
  1339. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -79
  1340. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -279
  1341. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -1784
  1342. package/lib/TextBoxIcon/props/defaultProps.js +0 -31
  1343. package/lib/TextBoxIcon/props/propTypes.js +0 -74
  1344. package/lib/Textarea/Textarea.js +0 -168
  1345. package/lib/Textarea/Textarea.module.css +0 -148
  1346. package/lib/Textarea/__tests__/Textarea.spec.js +0 -273
  1347. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -525
  1348. package/lib/Textarea/props/defaultProps.js +0 -25
  1349. package/lib/Textarea/props/propTypes.js +0 -46
  1350. package/lib/Tooltip/Tooltip.js +0 -599
  1351. package/lib/Tooltip/Tooltip.module.css +0 -133
  1352. package/lib/Tooltip/props/defaultProps.js +0 -11
  1353. package/lib/Tooltip/props/propTypes.js +0 -16
  1354. package/lib/Typography/Typography.js +0 -56
  1355. package/lib/Typography/css/Typography.module.css +0 -489
  1356. package/lib/Typography/css/cssJSLogic.js +0 -48
  1357. package/lib/Typography/props/defaultProps.js +0 -15
  1358. package/lib/Typography/props/propTypes.js +0 -38
  1359. package/lib/Typography/utils/index.js +0 -59
  1360. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -126
  1361. package/lib/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +0 -18
  1362. package/lib/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +0 -9
  1363. package/lib/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
  1364. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
  1365. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -216
  1366. package/lib/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +0 -26
  1367. package/lib/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +0 -11
  1368. package/lib/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
  1369. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -33
  1370. package/lib/VelocityAnimation/index.js +0 -23
  1371. package/lib/common/a11y.module.css +0 -4
  1372. package/lib/common/animation.module.css +0 -624
  1373. package/lib/common/avatarsizes.module.css +0 -49
  1374. package/lib/common/basic.module.css +0 -31
  1375. package/lib/common/basicReset.module.css +0 -40
  1376. package/lib/common/boxShadow.module.css +0 -34
  1377. package/lib/common/common.module.css +0 -559
  1378. package/lib/common/customscroll.module.css +0 -142
  1379. package/lib/common/reset.module.css +0 -13
  1380. package/lib/common/transition.module.css +0 -146
  1381. package/lib/components_layer.module.css +0 -1
  1382. package/lib/css.js +0 -83
  1383. package/lib/deprecated/PortalLayer/PortalLayer.js +0 -153
  1384. package/lib/deprecated/PortalLayer/props/defaultProps.js +0 -12
  1385. package/lib/deprecated/PortalLayer/props/propTypes.js +0 -32
  1386. package/lib/deprecated/Switch/Switch.js +0 -108
  1387. package/lib/deprecated/Switch/props/defaultProps.js +0 -18
  1388. package/lib/deprecated/Switch/props/propTypes.js +0 -39
  1389. package/lib/index.js +0 -417
  1390. package/lib/semantic/Button/Button.js +0 -104
  1391. package/lib/semantic/Button/__tests__/Button.spec.js +0 -18
  1392. package/lib/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -15
  1393. package/lib/semantic/Button/props/defaultProps.js +0 -19
  1394. package/lib/semantic/Button/props/propTypes.js +0 -33
  1395. package/lib/semantic/Button/semanticButton.module.css +0 -9
  1396. package/lib/semantic/index.js +0 -15
  1397. package/lib/utils/Common.js +0 -521
  1398. package/lib/utils/ContextOptimizer.js +0 -49
  1399. package/lib/utils/constant.js +0 -10
  1400. package/lib/utils/constructFullName.js +0 -34
  1401. package/lib/utils/cssUtils.js +0 -22
  1402. package/lib/utils/datetime/GMTZones.js +0 -55
  1403. package/lib/utils/datetime/common.js +0 -251
  1404. package/lib/utils/debounce.js +0 -30
  1405. package/lib/utils/dropDownUtils.js +0 -702
  1406. package/lib/utils/dummyFunction.js +0 -10
  1407. package/lib/utils/getHTMLFontSize.js +0 -11
  1408. package/lib/utils/getInitial.js +0 -33
  1409. package/lib/utils/index.js +0 -103
  1410. package/lib/utils/scrollTo.js +0 -22
  1411. package/lib/utils/shallowEqual.js +0 -41
  1412. package/lib/v1/Accordion/Accordion.js +0 -98
  1413. package/lib/v1/Accordion/AccordionItem.js +0 -68
  1414. package/lib/v1/Accordion/index.js +0 -23
  1415. package/lib/v1/Accordion/props/defaultProps.js +0 -20
  1416. package/lib/v1/Accordion/props/propTypes.js +0 -45
  1417. package/lib/v1/Animation/Animation.js +0 -61
  1418. package/lib/v1/Animation/props/defaultProps.js +0 -14
  1419. package/lib/v1/Animation/props/propTypes.js +0 -23
  1420. package/lib/v1/Animation/utils.js +0 -94
  1421. package/lib/v1/AppContainer/AppContainer.js +0 -146
  1422. package/lib/v1/AppContainer/props/defaultProps.js +0 -17
  1423. package/lib/v1/AppContainer/props/propTypes.js +0 -28
  1424. package/lib/v1/Avatar/Avatar.js +0 -191
  1425. package/lib/v1/Avatar/props/defaultProps.js +0 -24
  1426. package/lib/v1/Avatar/props/propTypes.js +0 -37
  1427. package/lib/v1/AvatarTeam/AvatarTeam.js +0 -81
  1428. package/lib/v1/AvatarTeam/props/defaultProps.js +0 -24
  1429. package/lib/v1/AvatarTeam/props/propTypes.js +0 -38
  1430. package/lib/v1/Button/Button.js +0 -82
  1431. package/lib/v1/Button/props/defaultProps.js +0 -27
  1432. package/lib/v1/Button/props/propTypes.js +0 -40
  1433. package/lib/v1/Buttongroup/Buttongroup.js +0 -44
  1434. package/lib/v1/Buttongroup/props/defaultProps.js +0 -13
  1435. package/lib/v1/Buttongroup/props/propTypes.js +0 -20
  1436. package/lib/v1/Card/Card.js +0 -269
  1437. package/lib/v1/Card/index.js +0 -37
  1438. package/lib/v1/Card/props/defaultProps.js +0 -35
  1439. package/lib/v1/Card/props/propTypes.js +0 -62
  1440. package/lib/v1/CheckBox/CheckBox.js +0 -172
  1441. package/lib/v1/CheckBox/props/defaultProps.js +0 -25
  1442. package/lib/v1/CheckBox/props/propTypes.js +0 -52
  1443. package/lib/v1/DateTime/CalendarView.js +0 -322
  1444. package/lib/v1/DateTime/DateTime.js +0 -877
  1445. package/lib/v1/DateTime/DateTimePopupFooter.js +0 -96
  1446. package/lib/v1/DateTime/DateTimePopupHeader.js +0 -166
  1447. package/lib/v1/DateTime/DateWidget.js +0 -1163
  1448. package/lib/v1/DateTime/DaysRow.js +0 -81
  1449. package/lib/v1/DateTime/Time.js +0 -270
  1450. package/lib/v1/DateTime/YearView.js +0 -325
  1451. package/lib/v1/DateTime/index.js +0 -15
  1452. package/lib/v1/DateTime/props/defaultProps.js +0 -76
  1453. package/lib/v1/DateTime/props/propTypes.js +0 -238
  1454. package/lib/v1/DropBox/DropBox.js +0 -109
  1455. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -146
  1456. package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -25
  1457. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -62
  1458. package/lib/v1/DropBox/props/defaultProps.js +0 -30
  1459. package/lib/v1/DropBox/props/propTypes.js +0 -35
  1460. package/lib/v1/DropBox/utils/isMobilePopover.js +0 -25
  1461. package/lib/v1/DropDown/DropDown.js +0 -74
  1462. package/lib/v1/DropDown/DropDownHeading.js +0 -47
  1463. package/lib/v1/DropDown/DropDownItem.js +0 -75
  1464. package/lib/v1/DropDown/DropDownSearch.js +0 -77
  1465. package/lib/v1/DropDown/DropDownSeparator.js +0 -24
  1466. package/lib/v1/DropDown/props/defaultProps.js +0 -31
  1467. package/lib/v1/DropDown/props/propTypes.js +0 -87
  1468. package/lib/v1/Heading/Heading.js +0 -53
  1469. package/lib/v1/Heading/props/defaultProps.js +0 -12
  1470. package/lib/v1/Heading/props/propTypes.js +0 -23
  1471. package/lib/v1/Label/Label.js +0 -51
  1472. package/lib/v1/Label/props/defaultProps.js +0 -18
  1473. package/lib/v1/Label/props/propTypes.js +0 -30
  1474. package/lib/v1/Layout/Box.js +0 -128
  1475. package/lib/v1/Layout/Container.js +0 -145
  1476. package/lib/v1/Layout/index.js +0 -23
  1477. package/lib/v1/Layout/props/defaultProps.js +0 -24
  1478. package/lib/v1/Layout/props/propTypes.js +0 -58
  1479. package/lib/v1/ListItem/ListContainer.js +0 -128
  1480. package/lib/v1/ListItem/ListItem.js +0 -138
  1481. package/lib/v1/ListItem/ListItemWithAvatar.js +0 -167
  1482. package/lib/v1/ListItem/ListItemWithCheckBox.js +0 -126
  1483. package/lib/v1/ListItem/ListItemWithIcon.js +0 -143
  1484. package/lib/v1/ListItem/ListItemWithRadio.js +0 -127
  1485. package/lib/v1/ListItem/index.js +0 -55
  1486. package/lib/v1/ListItem/props/defaultProps.js +0 -109
  1487. package/lib/v1/ListItem/props/propTypes.js +0 -196
  1488. package/lib/v1/Modal/Modal.js +0 -166
  1489. package/lib/v1/Modal/props/defaultProps.js +0 -10
  1490. package/lib/v1/Modal/props/propTypes.js +0 -18
  1491. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1180
  1492. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +0 -649
  1493. package/lib/v1/MultiSelect/EmptyState.js +0 -112
  1494. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -62
  1495. package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
  1496. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -18
  1497. package/lib/v1/MultiSelect/MultiSelect.js +0 -1202
  1498. package/lib/v1/MultiSelect/MultiSelectHeader.js +0 -78
  1499. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -262
  1500. package/lib/v1/MultiSelect/SelectedOptions.js +0 -130
  1501. package/lib/v1/MultiSelect/Suggestions.js +0 -196
  1502. package/lib/v1/MultiSelect/index.js +0 -39
  1503. package/lib/v1/MultiSelect/props/defaultProps.js +0 -181
  1504. package/lib/v1/MultiSelect/props/propTypes.js +0 -350
  1505. package/lib/v1/PopOver/PopOver.js +0 -197
  1506. package/lib/v1/PopOver/props/defaultProps.js +0 -15
  1507. package/lib/v1/PopOver/props/propTypes.js +0 -66
  1508. package/lib/v1/Popup/Popup.js +0 -715
  1509. package/lib/v1/Radio/Radio.js +0 -141
  1510. package/lib/v1/Radio/props/defaultProps.js +0 -22
  1511. package/lib/v1/Radio/props/propTypes.js +0 -51
  1512. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -79
  1513. package/lib/v1/ResponsiveDropBox/props/defaultProps.js +0 -11
  1514. package/lib/v1/ResponsiveDropBox/props/propTypes.js +0 -27
  1515. package/lib/v1/Ribbon/Ribbon.js +0 -44
  1516. package/lib/v1/Ribbon/props/defaultProps.js +0 -16
  1517. package/lib/v1/Ribbon/props/propTypes.js +0 -22
  1518. package/lib/v1/RippleEffect/RippleEffect.js +0 -40
  1519. package/lib/v1/RippleEffect/props/defaultProps.js +0 -17
  1520. package/lib/v1/RippleEffect/props/propTypes.js +0 -23
  1521. package/lib/v1/Select/GroupSelect.js +0 -894
  1522. package/lib/v1/Select/Select.js +0 -1025
  1523. package/lib/v1/Select/SelectWithAvatar.js +0 -406
  1524. package/lib/v1/Select/SelectWithIcon.js +0 -607
  1525. package/lib/v1/Select/index.js +0 -39
  1526. package/lib/v1/Select/props/defaultProps.js +0 -125
  1527. package/lib/v1/Select/props/propTypes.js +0 -319
  1528. package/lib/v1/Stencils/Stencils.js +0 -43
  1529. package/lib/v1/Stencils/props/defaultProps.js +0 -13
  1530. package/lib/v1/Stencils/props/propTypes.js +0 -18
  1531. package/lib/v1/Switch/Switch.js +0 -159
  1532. package/lib/v1/Switch/__tests__/Switch.spec.js +0 -37
  1533. package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -135
  1534. package/lib/v1/Switch/contants/index.js +0 -34
  1535. package/lib/v1/Switch/css/Switch_v1.module.css +0 -134
  1536. package/lib/v1/Switch/css/cssJSLogic.js +0 -37
  1537. package/lib/v1/Switch/props/defaultProps.js +0 -18
  1538. package/lib/v1/Switch/props/propTypes.js +0 -47
  1539. package/lib/v1/Switch/useSwitch.js +0 -56
  1540. package/lib/v1/Tab/Tab.js +0 -132
  1541. package/lib/v1/Tab/TabContent.js +0 -42
  1542. package/lib/v1/Tab/TabContentWrapper.js +0 -47
  1543. package/lib/v1/Tab/TabWrapper.js +0 -89
  1544. package/lib/v1/Tab/Tabs.js +0 -688
  1545. package/lib/v1/Tab/index.js +0 -47
  1546. package/lib/v1/Tab/props/defaultProps.js +0 -62
  1547. package/lib/v1/Tab/props/propTypes.js +0 -132
  1548. package/lib/v1/Tab/v1Tab.module.css +0 -100
  1549. package/lib/v1/Tab/v1TabContent.module.css +0 -4
  1550. package/lib/v1/Tab/v1Tabs.module.css +0 -167
  1551. package/lib/v1/Tag/Tag.js +0 -160
  1552. package/lib/v1/Tag/props/defaultProps.js +0 -22
  1553. package/lib/v1/Tag/props/propTypes.js +0 -47
  1554. package/lib/v1/TextBox/TextBox.js +0 -175
  1555. package/lib/v1/TextBox/props/defaultProps.js +0 -27
  1556. package/lib/v1/TextBox/props/propTypes.js +0 -62
  1557. package/lib/v1/TextBoxIcon/TextBoxIcon.js +0 -206
  1558. package/lib/v1/TextBoxIcon/props/defaultProps.js +0 -31
  1559. package/lib/v1/TextBoxIcon/props/propTypes.js +0 -72
  1560. package/lib/v1/Textarea/Textarea.js +0 -118
  1561. package/lib/v1/Textarea/props/defaultProps.js +0 -24
  1562. package/lib/v1/Textarea/props/propTypes.js +0 -42
  1563. package/lib/v1/Tooltip/Tooltip.js +0 -599
  1564. package/lib/v1/Tooltip/props/defaultProps.js +0 -11
  1565. package/lib/v1/Tooltip/props/propTypes.js +0 -16
  1566. package/lib/v1/Typography/Typography.js +0 -56
  1567. package/lib/v1/Typography/css/cssJSLogic.js +0 -48
  1568. package/lib/v1/Typography/css/v1_Typography.module.css +0 -380
  1569. package/lib/v1/Typography/props/defaultProps.js +0 -15
  1570. package/lib/v1/Typography/props/propTypes.js +0 -38
  1571. package/lib/v1/Typography/utils/index.js +0 -59
  1572. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -90
  1573. package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
  1574. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
  1575. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -126
  1576. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
  1577. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -30
  1578. package/lib/v1/semantic/Button/Button.js +0 -63
  1579. package/lib/v1/semantic/Button/props/defaultProps.js +0 -19
  1580. package/lib/v1/semantic/Button/props/propTypes.js +0 -33
  1581. package/lib/v1/semantic/index.js +0 -15
@@ -1,1398 +0,0 @@
1
- "use strict";
2
-
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
- var _react = _interopRequireDefault(require("react"));
6
-
7
- var _react2 = require("@testing-library/react");
8
-
9
- var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
10
-
11
- var _IdProvider = require("../../Provider/IdProvider");
12
-
13
- var _Select = _interopRequireDefault(require("../Select"));
14
-
15
- require("@testing-library/jest-dom");
16
-
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
-
19
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
20
-
21
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
22
-
23
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
24
-
25
- beforeEach(function () {
26
- (0, _IdProvider.setGlobalId)(0);
27
- });
28
- afterEach(function () {
29
- (0, _react2.cleanup)();
30
- });
31
- var selectInputRole = 'Menuitem';
32
- var dropboxTestId = 'selectComponent_suggestions';
33
- var listItemRole = 'option';
34
- var options = [{
35
- id: '1',
36
- text: 'Option 1'
37
- }, {
38
- id: '2',
39
- text: 'Option 2'
40
- }, {
41
- id: '3',
42
- text: 'Option 3'
43
- }];
44
- var selectOptions = [{
45
- id: '1',
46
- text: 'Option 1'
47
- }, {
48
- id: '2',
49
- text: 'Option 2'
50
- }, {
51
- id: '3',
52
- text: 'Option 3'
53
- }, {
54
- id: '4',
55
- text: 'Option 4'
56
- }, {
57
- id: '5',
58
- text: 'Option 5'
59
- }, {
60
- id: '6',
61
- text: 'Option 6'
62
- }, {
63
- id: '7',
64
- text: 'Option 7'
65
- }, {
66
- id: '8',
67
- text: 'Option 8'
68
- }, {
69
- id: '9',
70
- text: 'Option 9'
71
- }, {
72
- id: '10',
73
- text: 'Option 10'
74
- }];
75
- describe('Select -', function () {
76
- test('Should render the Select component', function () {
77
- var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], null)),
78
- getByRole = _render.getByRole,
79
- asFragment = _render.asFragment;
80
-
81
- expect(getByRole(selectInputRole)).toBeInTheDocument();
82
- expect(asFragment()).toMatchSnapshot();
83
- });
84
- test('Should render the placeholder when there is no default value', function () {
85
- var placeHolder = 'Select Correct Option';
86
-
87
- var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
88
- placeHolder: placeHolder,
89
- isDefaultSelectValue: false,
90
- options: options
91
- })),
92
- getByPlaceholderText = _render2.getByPlaceholderText,
93
- asFragment = _render2.asFragment;
94
-
95
- expect(getByPlaceholderText(placeHolder)).toBeInTheDocument();
96
- expect(asFragment()).toMatchSnapshot();
97
- });
98
- test('Should render the default selected value', function () {
99
- var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
100
- options: options
101
- })),
102
- getByRole = _render3.getByRole,
103
- asFragment = _render3.asFragment;
104
-
105
- expect(getByRole(selectInputRole)).toHaveValue('Option 1');
106
- expect(asFragment()).toMatchSnapshot();
107
- });
108
- test('Should render the given selected value', function () {
109
- var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
110
- options: options,
111
- selectedValue: "Option 2"
112
- })),
113
- getByRole = _render4.getByRole,
114
- asFragment = _render4.asFragment;
115
-
116
- expect(getByRole(selectInputRole)).toHaveValue('Option 2');
117
- expect(asFragment()).toMatchSnapshot();
118
- });
119
- test('Should open the dropdown, when click on the input', function () {
120
- var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], null)),
121
- getByRole = _render5.getByRole,
122
- getByTestId = _render5.getByTestId,
123
- asFragment = _render5.asFragment;
124
-
125
- _userEvent["default"].click(getByRole(selectInputRole));
126
-
127
- expect(getByTestId(dropboxTestId)).toBeInTheDocument();
128
- expect(asFragment()).toMatchSnapshot();
129
- });
130
- test('Should open the dropdown, when press down arrow on the input', function () {
131
- var _render6 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
132
- options: options
133
- })),
134
- getByRole = _render6.getByRole,
135
- getByTestId = _render6.getByTestId;
136
-
137
- _react2.fireEvent.keyDown(getByRole(selectInputRole), {
138
- key: 'ArrowDown',
139
- keyCode: 40,
140
- code: 'ArrowDown'
141
- });
142
-
143
- expect(getByTestId(dropboxTestId)).toBeInTheDocument();
144
- });
145
- test('Should open the dropdown, when isPopupOpenOnEnter is true. If press enter key on the input', function () {
146
- var _render7 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
147
- isPopupOpenOnEnter: true,
148
- options: options
149
- })),
150
- getByRole = _render7.getByRole,
151
- getByTestId = _render7.getByTestId;
152
-
153
- _react2.fireEvent.keyDown(getByRole(selectInputRole), {
154
- key: 'Enter',
155
- keyCode: 13,
156
- code: 'Enter'
157
- });
158
-
159
- expect(getByTestId(dropboxTestId)).toBeInTheDocument();
160
- });
161
- test('Should open the dropdown, when isPopupOpenOnEnter is true. If press tab key on the input', function () {
162
- var _render8 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
163
- isPopupOpenOnEnter: true,
164
- options: options
165
- })),
166
- getByRole = _render8.getByRole,
167
- getByTestId = _render8.getByTestId;
168
-
169
- _react2.fireEvent.keyDown(getByRole(selectInputRole), {
170
- key: 'Tab',
171
- keyCode: 9,
172
- code: 'Tab'
173
- });
174
-
175
- expect(getByTestId(dropboxTestId)).toBeInTheDocument();
176
- });
177
- test('Should show the empty message when open the dropdown with no options', function () {
178
- var emptyMessage = 'No Options Available';
179
-
180
- var _render9 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
181
- emptyMessage: emptyMessage
182
- })),
183
- getByRole = _render9.getByRole,
184
- queryByRole = _render9.queryByRole,
185
- getByText = _render9.getByText,
186
- asFragment = _render9.asFragment;
187
-
188
- _userEvent["default"].click(getByRole(selectInputRole));
189
-
190
- expect(queryByRole(listItemRole)).not.toBeInTheDocument();
191
- expect(getByText(emptyMessage)).toBeInTheDocument();
192
- expect(asFragment()).toMatchSnapshot();
193
- });
194
- test('Should render given the options', function () {
195
- var _render10 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
196
- options: options
197
- })),
198
- getByRole = _render10.getByRole,
199
- getAllByRole = _render10.getAllByRole,
200
- asFragment = _render10.asFragment;
201
-
202
- _userEvent["default"].click(getByRole(selectInputRole));
203
-
204
- expect(getAllByRole(listItemRole)).toHaveLength(3);
205
- expect(getAllByRole(listItemRole)[0]).toHaveTextContent('Option 1');
206
- expect(getAllByRole(listItemRole)[1]).toHaveTextContent('Option 2');
207
- expect(getAllByRole(listItemRole)[2]).toHaveTextContent('Option 3');
208
- expect(asFragment()).toMatchSnapshot();
209
- });
210
- test('Should trigger the onChange event when select an option', function () {
211
- var mockOnChange = jest.fn();
212
-
213
- var _render11 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
214
- options: options,
215
- onChange: mockOnChange
216
- })),
217
- getByRole = _render11.getByRole,
218
- getAllByRole = _render11.getAllByRole;
219
-
220
- _userEvent["default"].click(getByRole(selectInputRole));
221
-
222
- _userEvent["default"].click(getAllByRole(listItemRole)[1]);
223
-
224
- expect(mockOnChange).toHaveBeenCalledWith('2', {
225
- groupId: '',
226
- id: '2',
227
- text: 'Option 2'
228
- });
229
- });
230
- test('Should update the value when select the option', function () {
231
- var _render12 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
232
- options: options
233
- })),
234
- getByRole = _render12.getByRole,
235
- getAllByRole = _render12.getAllByRole,
236
- rerender = _render12.rerender,
237
- asFragment = _render12.asFragment;
238
-
239
- var inputElement = getByRole(selectInputRole);
240
- expect(inputElement).toHaveValue('Option 1');
241
-
242
- _userEvent["default"].click(inputElement);
243
-
244
- expect(asFragment()).toMatchSnapshot();
245
-
246
- _userEvent["default"].click(getAllByRole(listItemRole)[1]);
247
-
248
- rerender( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
249
- options: options,
250
- selectedValue: "Option 2"
251
- }));
252
- expect(asFragment()).toMatchSnapshot();
253
- expect(inputElement).toHaveValue('Option 2');
254
- });
255
- test('Should focus the search input, when open the dropdown', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
256
- var _render13, getByRole, getByTestId;
257
-
258
- return _regeneratorRuntime().wrap(function _callee$(_context) {
259
- while (1) {
260
- switch (_context.prev = _context.next) {
261
- case 0:
262
- _render13 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
263
- needSearch: true,
264
- options: options
265
- })), getByRole = _render13.getByRole, getByTestId = _render13.getByTestId;
266
-
267
- _userEvent["default"].click(getByRole(selectInputRole));
268
-
269
- _context.next = 4;
270
- return (0, _react2.waitFor)(function () {
271
- expect((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox')).toHaveFocus();
272
- });
273
-
274
- case 4:
275
- case "end":
276
- return _context.stop();
277
- }
278
- }
279
- }, _callee);
280
- })));
281
- test('Should render the only options matching search value', function () {
282
- var _render14 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
283
- needSearch: true,
284
- options: options
285
- })),
286
- getByRole = _render14.getByRole,
287
- getAllByRole = _render14.getAllByRole,
288
- asFragment = _render14.asFragment,
289
- getByTestId = _render14.getByTestId;
290
-
291
- _userEvent["default"].click(getByRole(selectInputRole));
292
-
293
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), '2');
294
-
295
- expect(getAllByRole(listItemRole)).toHaveLength(1);
296
- expect(asFragment()).toMatchSnapshot();
297
- });
298
- test('Should render the only options matching search value even with additional spaces before and after', function () {
299
- var _render15 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
300
- needSearch: true,
301
- options: options
302
- })),
303
- getByRole = _render15.getByRole,
304
- getAllByRole = _render15.getAllByRole,
305
- asFragment = _render15.asFragment,
306
- getByTestId = _render15.getByTestId;
307
-
308
- _userEvent["default"].click(getByRole(selectInputRole));
309
-
310
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), ' 2 ');
311
-
312
- expect(getAllByRole(listItemRole)).toHaveLength(1);
313
- expect(asFragment()).toMatchSnapshot();
314
- });
315
- test('Should trigger given onSearch, when type on the search input', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
316
- var mockOnSearch, _render16, getByRole, getByTestId;
317
-
318
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
319
- while (1) {
320
- switch (_context2.prev = _context2.next) {
321
- case 0:
322
- mockOnSearch = jest.fn();
323
- _render16 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
324
- needSearch: true,
325
- options: options,
326
- onSearch: mockOnSearch
327
- })), getByRole = _render16.getByRole, getByTestId = _render16.getByTestId;
328
-
329
- _userEvent["default"].click(getByRole(selectInputRole));
330
-
331
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), '2');
332
-
333
- _context2.next = 6;
334
- return (0, _react2.waitFor)(function () {
335
- expect(mockOnSearch).toHaveBeenCalledWith('2');
336
- });
337
-
338
- case 6:
339
- case "end":
340
- return _context2.stop();
341
- }
342
- }
343
- }, _callee2);
344
- })));
345
- test('Should render all the options when search value is cleared', function () {
346
- var _render17 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
347
- needSearch: true,
348
- options: options
349
- })),
350
- getByRole = _render17.getByRole,
351
- getAllByRole = _render17.getAllByRole,
352
- asFragment = _render17.asFragment,
353
- getByTestId = _render17.getByTestId;
354
-
355
- _userEvent["default"].click(getByRole(selectInputRole));
356
-
357
- var searchInput = (0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox');
358
-
359
- _userEvent["default"].type(searchInput, 'option 2');
360
-
361
- expect(getAllByRole(listItemRole)).toHaveLength(1);
362
-
363
- _userEvent["default"].click((0, _react2.within)(getByTestId('CardHeader')).getByRole('button'));
364
-
365
- expect(getAllByRole(listItemRole)).toHaveLength(3);
366
- expect(searchInput).toHaveValue('');
367
- expect(searchInput).toHaveFocus();
368
- expect(asFragment()).toMatchSnapshot();
369
- });
370
- test('Should not open the dropdown when disabled', function () {
371
- var _render18 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
372
- options: options,
373
- isDisabled: true
374
- })),
375
- getByRole = _render18.getByRole,
376
- queryByTestId = _render18.queryByTestId,
377
- asFragment = _render18.asFragment;
378
-
379
- _userEvent["default"].click(getByRole(selectInputRole));
380
-
381
- expect(queryByTestId(dropboxTestId)).not.toBeInTheDocument();
382
- expect(asFragment()).toMatchSnapshot();
383
- });
384
- test('Should not open the dropdown when readonly', function () {
385
- var _render19 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
386
- options: options,
387
- isReadOnly: true
388
- })),
389
- getByRole = _render19.getByRole,
390
- queryByTestId = _render19.queryByTestId,
391
- asFragment = _render19.asFragment;
392
-
393
- _userEvent["default"].click(getByRole(selectInputRole));
394
-
395
- expect(queryByTestId(dropboxTestId)).not.toBeInTheDocument();
396
- expect(asFragment()).toMatchSnapshot();
397
- });
398
- test('Should close the dropdown when clicking outside', function () {
399
- var _render20 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
400
- options: options
401
- })),
402
- getByRole = _render20.getByRole,
403
- queryByTestId = _render20.queryByTestId,
404
- asFragment = _render20.asFragment;
405
-
406
- _userEvent["default"].click(getByRole(selectInputRole));
407
-
408
- expect(queryByTestId(dropboxTestId)).toBeInTheDocument();
409
-
410
- _userEvent["default"].click(document.body);
411
-
412
- expect(queryByTestId(dropboxTestId)).not.toBeInTheDocument();
413
- expect(asFragment()).toMatchSnapshot();
414
- });
415
- test('Should show the custom empty state using getCustomEmptyState prop, when there is no matching options search value', function () {
416
- var emptyMessage = 'Custom Empty State';
417
- var getCustomEmptyState = jest.fn(function () {
418
- return /*#__PURE__*/_react["default"].createElement("div", null, emptyMessage);
419
- });
420
-
421
- var _render21 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
422
- needSearch: true,
423
- options: options,
424
- getCustomEmptyState: getCustomEmptyState
425
- })),
426
- getByText = _render21.getByText,
427
- getByRole = _render21.getByRole,
428
- asFragment = _render21.asFragment,
429
- getByTestId = _render21.getByTestId;
430
-
431
- _userEvent["default"].click(getByRole(selectInputRole));
432
-
433
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), '5');
434
-
435
- expect(getByText(emptyMessage)).toBeInTheDocument();
436
- expect(asFragment()).toMatchSnapshot();
437
- });
438
- test('Should call the onKeyDown function, when press any key in the input element', function () {
439
- var mockKeyDown = jest.fn();
440
-
441
- var _render22 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
442
- onKeyDown: mockKeyDown
443
- })),
444
- getByRole = _render22.getByRole;
445
-
446
- _react2.fireEvent.keyDown(getByRole(selectInputRole), {
447
- key: 'a',
448
- code: 'KeyA'
449
- });
450
-
451
- expect(mockKeyDown).toHaveBeenCalled();
452
- });
453
- test('Should highlight the next list-items, when arrow keys pressed', function () {
454
- var _render23 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
455
- options: options
456
- })),
457
- getByRole = _render23.getByRole,
458
- getAllByRole = _render23.getAllByRole,
459
- asFragment = _render23.asFragment;
460
-
461
- _userEvent["default"].click(getByRole(selectInputRole));
462
-
463
- var listItems = getAllByRole(listItemRole);
464
- expect(listItems[0]).toHaveAttribute("data-a11y-list-active", "true");
465
-
466
- _userEvent["default"].keyboard('{arrowdown}');
467
-
468
- expect(listItems[0]).toHaveAttribute("data-a11y-list-active", "false");
469
- expect(listItems[1]).toHaveAttribute("data-a11y-list-active", "true");
470
-
471
- _userEvent["default"].keyboard('{arrowdown}');
472
-
473
- expect(listItems[1]).toHaveAttribute("data-a11y-list-active", "false");
474
- expect(listItems[2]).toHaveAttribute("data-a11y-list-active", "true");
475
-
476
- _userEvent["default"].keyboard('{arrowdown}');
477
-
478
- expect(listItems[2]).toHaveAttribute("data-a11y-list-active", "true");
479
-
480
- _userEvent["default"].keyboard('{arrowup}');
481
-
482
- expect(listItems[2]).toHaveAttribute("data-a11y-list-active", "false");
483
- expect(listItems[1]).toHaveAttribute("data-a11y-list-active", "true");
484
- expect(asFragment()).toMatchSnapshot();
485
-
486
- _userEvent["default"].keyboard('{arrowup}');
487
-
488
- expect(listItems[1]).toHaveAttribute("data-a11y-list-active", "false");
489
- expect(listItems[0]).toHaveAttribute("data-a11y-list-active", "true");
490
-
491
- _userEvent["default"].keyboard('{arrowup}');
492
-
493
- expect(listItems[0]).toHaveAttribute("data-a11y-list-active", "true");
494
- });
495
- test('Should update the value, when select the option using keyboard', function () {
496
- var mockOnChange = jest.fn();
497
-
498
- var _render24 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
499
- options: options,
500
- onChange: mockOnChange
501
- })),
502
- getByRole = _render24.getByRole,
503
- asFragment = _render24.asFragment;
504
-
505
- _userEvent["default"].click(getByRole(selectInputRole));
506
-
507
- _userEvent["default"].keyboard('{arrowdown}');
508
-
509
- _userEvent["default"].keyboard('{enter}');
510
-
511
- expect(mockOnChange).toHaveBeenCalledWith('2', {
512
- groupId: '',
513
- id: '2',
514
- text: 'Option 2'
515
- });
516
- expect(asFragment()).toMatchSnapshot();
517
- });
518
- test('Should close the dropdown and focus the select input, when press escape key', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
519
- var _render25, getByRole, getByTestId, queryByTestId;
520
-
521
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
522
- while (1) {
523
- switch (_context3.prev = _context3.next) {
524
- case 0:
525
- _render25 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
526
- needSearch: true,
527
- options: options
528
- })), getByRole = _render25.getByRole, getByTestId = _render25.getByTestId, queryByTestId = _render25.queryByTestId;
529
-
530
- _userEvent["default"].click(getByRole(selectInputRole));
531
-
532
- expect(queryByTestId(dropboxTestId)).toBeInTheDocument();
533
- _context3.next = 5;
534
- return (0, _react2.waitFor)(function () {
535
- expect((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox')).toHaveFocus();
536
- });
537
-
538
- case 5:
539
- _userEvent["default"].keyboard('{escape}');
540
-
541
- _context3.next = 8;
542
- return (0, _react2.waitFor)(function () {
543
- expect(queryByTestId(dropboxTestId)).not.toBeInTheDocument();
544
- expect(getByRole(selectInputRole)).toHaveFocus();
545
- });
546
-
547
- case 8:
548
- case "end":
549
- return _context3.stop();
550
- }
551
- }
552
- }, _callee3);
553
- })));
554
- test('Should close the dropdown and trigger the onchange, when press tab key', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
555
- var mockOnChange, _render26, getByRole, getByTestId, queryByTestId;
556
-
557
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
558
- while (1) {
559
- switch (_context4.prev = _context4.next) {
560
- case 0:
561
- mockOnChange = jest.fn();
562
- _render26 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
563
- needSearch: true,
564
- options: options,
565
- onChange: mockOnChange
566
- })), getByRole = _render26.getByRole, getByTestId = _render26.getByTestId, queryByTestId = _render26.queryByTestId;
567
-
568
- _userEvent["default"].click(getByRole(selectInputRole));
569
-
570
- _context4.next = 5;
571
- return (0, _react2.waitFor)(function () {
572
- expect((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox')).toHaveFocus();
573
- });
574
-
575
- case 5:
576
- _react2.fireEvent.keyDown((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), {
577
- key: 'ArrowDown',
578
- code: 'ArrowDown',
579
- keyCode: 40
580
- });
581
-
582
- _react2.fireEvent.keyDown((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), {
583
- key: 'Tab',
584
- code: 'Tab',
585
- keyCode: 9
586
- });
587
-
588
- _context4.next = 9;
589
- return (0, _react2.waitFor)(function () {
590
- expect(mockOnChange).toHaveBeenCalledWith('2', {
591
- groupId: '',
592
- id: '2',
593
- text: 'Option 2'
594
- });
595
- expect(queryByTestId(dropboxTestId)).not.toBeInTheDocument();
596
- expect(getByRole(selectInputRole)).toHaveFocus();
597
- });
598
-
599
- case 9:
600
- case "end":
601
- return _context4.stop();
602
- }
603
- }
604
- }, _callee4);
605
- })));
606
- test('Should trigger getNextOptions, when scroll to the end of the dropbox list and isNextOptions is true', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
607
- var mockGetNextOptions, _render27, getByRole, getByTestId, asFragment, cardContent;
608
-
609
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
610
- while (1) {
611
- switch (_context5.prev = _context5.next) {
612
- case 0:
613
- mockGetNextOptions = jest.fn(function () {
614
- return new Promise(function (resolve) {
615
- setTimeout(function () {
616
- resolve();
617
- }, 2000);
618
- });
619
- });
620
- _render27 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
621
- options: selectOptions,
622
- isNextOptions: true,
623
- getNextOptions: mockGetNextOptions
624
- })), getByRole = _render27.getByRole, getByTestId = _render27.getByTestId, asFragment = _render27.asFragment;
625
-
626
- _userEvent["default"].click(getByRole(selectInputRole));
627
-
628
- cardContent = (0, _react2.within)(getByTestId(dropboxTestId)).getByTestId('CardContent');
629
- Object.defineProperty(cardContent, 'scrollHeight', {
630
- value: 1000,
631
- writable: true
632
- });
633
- Object.defineProperty(cardContent, 'clientHeight', {
634
- value: 800,
635
- writable: true
636
- });
637
- Object.defineProperty(cardContent, 'offsetHeight', {
638
- value: 800,
639
- writable: true
640
- });
641
-
642
- _react2.fireEvent.scroll(cardContent, {
643
- target: {
644
- scrollTop: 201
645
- }
646
- });
647
-
648
- _context5.next = 10;
649
- return (0, _react2.waitFor)(function () {
650
- var loader = (0, _react2.within)(getByTestId(dropboxTestId)).queryByTestId('loader');
651
- expect(loader).toBeInTheDocument();
652
- expect(asFragment()).toMatchSnapshot();
653
- expect(mockGetNextOptions).toHaveBeenCalledWith('');
654
- });
655
-
656
- case 10:
657
- _context5.next = 12;
658
- return (0, _react2.waitFor)(function () {
659
- var loader = (0, _react2.within)(getByTestId(dropboxTestId)).queryByTestId('loader');
660
- expect(loader).not.toBeInTheDocument();
661
- }, {
662
- timeout: 2500
663
- });
664
-
665
- case 12:
666
- case "end":
667
- return _context5.stop();
668
- }
669
- }
670
- }, _callee5);
671
- })));
672
- test('Should trigger getNextOptions, when search with needLocalSearch is false', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
673
- var mockGetNextOptions, _render28, getByRole, getByTestId, asFragment, loader;
674
-
675
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
676
- while (1) {
677
- switch (_context6.prev = _context6.next) {
678
- case 0:
679
- mockGetNextOptions = jest.fn(function () {
680
- return new Promise(function (resolve, reject) {
681
- setTimeout(function () {
682
- reject();
683
- }, 2000);
684
- });
685
- });
686
- _render28 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
687
- needSearch: true,
688
- needLocalSearch: false,
689
- options: options,
690
- isNextOptions: true,
691
- getNextOptions: mockGetNextOptions
692
- })), getByRole = _render28.getByRole, getByTestId = _render28.getByTestId, asFragment = _render28.asFragment;
693
-
694
- _userEvent["default"].click(getByRole(selectInputRole));
695
-
696
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), 'a');
697
-
698
- loader = (0, _react2.within)(getByTestId(dropboxTestId)).queryByTestId('loader');
699
- _context6.next = 7;
700
- return (0, _react2.waitFor)(function () {
701
- expect(loader).toBeInTheDocument();
702
- expect(asFragment()).toMatchSnapshot();
703
- expect(mockGetNextOptions).toHaveBeenCalledWith('');
704
- });
705
-
706
- case 7:
707
- _context6.next = 9;
708
- return (0, _react2.waitFor)(function () {
709
- expect(loader).not.toBeInTheDocument();
710
- }, {
711
- timeout: 2500
712
- });
713
-
714
- case 9:
715
- case "end":
716
- return _context6.stop();
717
- }
718
- }
719
- }, _callee6);
720
- })));
721
- test('Should trigger onChange, when type on select input with autoSelectOnType is true', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
722
- var mockOnChange, optionsList, _render29, getByRole;
723
-
724
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
725
- while (1) {
726
- switch (_context7.prev = _context7.next) {
727
- case 0:
728
- mockOnChange = jest.fn();
729
- optionsList = [{
730
- id: '1',
731
- text: 'Madurai'
732
- }, {
733
- id: '2',
734
- text: 'Chennai'
735
- }, {
736
- id: '3',
737
- text: 'Coimbatore'
738
- }, {
739
- id: '4',
740
- text: 'Trichy'
741
- }];
742
- _render29 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
743
- options: optionsList,
744
- autoSelectOnType: true,
745
- onChange: mockOnChange
746
- })), getByRole = _render29.getByRole;
747
-
748
- _react2.fireEvent.keyPress(getByRole(selectInputRole), {
749
- key: 'c',
750
- code: 'KeyC',
751
- keyCode: 67,
752
- charCode: 67
753
- });
754
-
755
- _context7.next = 6;
756
- return (0, _react2.waitFor)(function () {
757
- expect(mockOnChange).toHaveBeenCalledWith('2', {
758
- groupId: '',
759
- id: '2',
760
- text: 'Chennai'
761
- });
762
- });
763
-
764
- case 6:
765
- _react2.fireEvent.keyPress(getByRole(selectInputRole), {
766
- key: 'c',
767
- code: 'KeyC',
768
- keyCode: 67,
769
- charCode: 67
770
- });
771
-
772
- _context7.next = 9;
773
- return (0, _react2.waitFor)(function () {
774
- expect(mockOnChange).toHaveBeenCalledWith('3', {
775
- groupId: '',
776
- id: '3',
777
- text: 'Coimbatore'
778
- });
779
- });
780
-
781
- case 9:
782
- _react2.fireEvent.keyPress(getByRole(selectInputRole), {
783
- key: 'c',
784
- code: 'KeyC',
785
- keyCode: 67,
786
- charCode: 67
787
- });
788
-
789
- _context7.next = 12;
790
- return (0, _react2.waitFor)(function () {
791
- expect(mockOnChange).toHaveBeenCalledWith('2', {
792
- groupId: '',
793
- id: '2',
794
- text: 'Chennai'
795
- });
796
- });
797
-
798
- case 12:
799
- case "end":
800
- return _context7.stop();
801
- }
802
- }
803
- }, _callee7);
804
- })));
805
- test('Should trigger onAddNewOption, when click on the custom search empty state button', function () {
806
- var addMessage = 'Add New Option';
807
- var getCustomEmptyState = jest.fn(function (_ref8) {
808
- var searchString = _ref8.searchString,
809
- onAddNewOption = _ref8.onAddNewOption;
810
- return /*#__PURE__*/_react["default"].createElement("button", {
811
- onClick: onAddNewOption
812
- }, addMessage);
813
- });
814
- var mockOnAddNewOption = jest.fn();
815
-
816
- var _render30 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
817
- needSearch: true,
818
- options: options,
819
- onAddNewOption: mockOnAddNewOption,
820
- getCustomEmptyState: getCustomEmptyState
821
- })),
822
- getByRole = _render30.getByRole,
823
- getByTestId = _render30.getByTestId,
824
- asFragment = _render30.asFragment;
825
-
826
- _userEvent["default"].click(getByRole(selectInputRole));
827
-
828
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), '5');
829
-
830
- expect(getCustomEmptyState).toHaveBeenCalledWith({
831
- searchString: '5',
832
- onAddNewOption: expect.any(Function)
833
- });
834
- expect(getByRole('button', {
835
- name: addMessage
836
- })).toBeInTheDocument();
837
- expect(asFragment()).toMatchSnapshot();
838
-
839
- _userEvent["default"].click(getByRole('button', {
840
- name: addMessage
841
- }));
842
-
843
- expect(mockOnAddNewOption).toHaveBeenCalledWith('5');
844
- }); // Yellow coverage
845
-
846
- test('Should trigger the onDropBoxOpen, when open the select', function () {
847
- var mockOnDropBoxOpen = jest.fn();
848
-
849
- var _render31 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
850
- options: options,
851
- onDropBoxOpen: mockOnDropBoxOpen
852
- })),
853
- getByRole = _render31.getByRole;
854
-
855
- _userEvent["default"].click(getByRole(selectInputRole));
856
-
857
- expect(mockOnDropBoxOpen).toHaveBeenCalledWith('');
858
- });
859
- test('Should trigger the onDropBoxClose, when close the select', function () {
860
- var mockOnDropBoxClose = jest.fn();
861
-
862
- var _render32 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
863
- options: options,
864
- onDropBoxClose: mockOnDropBoxClose
865
- })),
866
- getByRole = _render32.getByRole;
867
-
868
- _userEvent["default"].click(getByRole(selectInputRole));
869
-
870
- _userEvent["default"].click(document.body);
871
-
872
- expect(mockOnDropBoxClose).toHaveBeenCalledWith();
873
- });
874
- test('Should trigger the onSearch with empty string, when close the select and isSearchClearOnClose is true', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
875
- var mockOnSearch, _render33, getByRole, getByTestId;
876
-
877
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
878
- while (1) {
879
- switch (_context8.prev = _context8.next) {
880
- case 0:
881
- mockOnSearch = jest.fn();
882
- _render33 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
883
- needSearch: true,
884
- isSearchClearOnClose: true,
885
- options: options,
886
- onSearch: mockOnSearch
887
- })), getByRole = _render33.getByRole, getByTestId = _render33.getByTestId;
888
-
889
- _userEvent["default"].click(getByRole(selectInputRole));
890
-
891
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), '2');
892
-
893
- _context8.next = 6;
894
- return (0, _react2.waitFor)(function () {
895
- expect(mockOnSearch).toHaveBeenCalledWith('2');
896
- });
897
-
898
- case 6:
899
- _userEvent["default"].click(document.body);
900
-
901
- _context8.next = 9;
902
- return (0, _react2.waitFor)(function () {
903
- expect(mockOnSearch).toHaveBeenCalledWith('');
904
- });
905
-
906
- case 9:
907
- case "end":
908
- return _context8.stop();
909
- }
910
- }
911
- }, _callee8);
912
- })));
913
- test('Should trigger the onSearch with search string, when close the select and isSearchClearOnClose is false', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
914
- var mockOnSearch, _render34, getByRole, getByTestId;
915
-
916
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
917
- while (1) {
918
- switch (_context9.prev = _context9.next) {
919
- case 0:
920
- mockOnSearch = jest.fn();
921
- _render34 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
922
- needSearch: true,
923
- isSearchClearOnClose: false,
924
- options: options,
925
- onSearch: mockOnSearch
926
- })), getByRole = _render34.getByRole, getByTestId = _render34.getByTestId;
927
-
928
- _userEvent["default"].click(getByRole(selectInputRole));
929
-
930
- _userEvent["default"].type((0, _react2.within)(getByTestId(dropboxTestId)).getByRole('textbox'), '2');
931
-
932
- _context9.next = 6;
933
- return (0, _react2.waitFor)(function () {
934
- expect(mockOnSearch).toHaveBeenCalledWith('2');
935
- });
936
-
937
- case 6:
938
- _userEvent["default"].click(document.body);
939
-
940
- _context9.next = 9;
941
- return (0, _react2.waitFor)(function () {
942
- expect(mockOnSearch).toHaveBeenCalledWith('2');
943
- });
944
-
945
- case 9:
946
- case "end":
947
- return _context9.stop();
948
- }
949
- }
950
- }, _callee9);
951
- })));
952
- test('Should trigger the getPopupHandlers with popup handlers, when select is mounted', function () {
953
- var mockGetPopupHandlers = jest.fn();
954
- (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
955
- options: options,
956
- getPopupHandlers: mockGetPopupHandlers
957
- }));
958
- expect(mockGetPopupHandlers).toHaveBeenCalledWith({
959
- removeClose: expect.any(Function),
960
- openPopup: expect.any(Function),
961
- closePopup: expect.any(Function),
962
- togglePopup: expect.any(Function)
963
- });
964
- });
965
- test('Should trigger the getPopupHandlers with null, when select is unmounted', function () {
966
- var mockGetPopupHandlers = jest.fn();
967
-
968
- var _render35 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
969
- options: options,
970
- getPopupHandlers: mockGetPopupHandlers
971
- })),
972
- unmount = _render35.unmount;
973
-
974
- unmount();
975
- expect(mockGetPopupHandlers).toHaveBeenCalledWith({
976
- removeClose: null,
977
- openPopup: null,
978
- closePopup: null,
979
- togglePopup: null
980
- });
981
- });
982
- test('Should trigger the togglePopup with given defaultDropBoxPosition', function () {
983
- var _render36 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
984
- options: options,
985
- defaultDropBoxPosition: "topCenter"
986
- })),
987
- getByRole = _render36.getByRole,
988
- getByTestId = _render36.getByTestId;
989
-
990
- _userEvent["default"].click(getByRole(selectInputRole));
991
-
992
- expect(getByTestId(dropboxTestId)).toHaveAttribute('data-position', 'topMid');
993
- });
994
- test('Should trigger the onFocus, when open the select', function () {
995
- var mockOnFocus = jest.fn();
996
-
997
- var _render37 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
998
- options: options,
999
- onFocus: mockOnFocus
1000
- })),
1001
- getByRole = _render37.getByRole;
1002
-
1003
- _userEvent["default"].click(getByRole(selectInputRole));
1004
-
1005
- expect(mockOnFocus).toHaveBeenCalledWith(expect.any(Object));
1006
- });
1007
- test('Should trigger the getPopupHandlers with popup handlers, when select is mounted', function () {
1008
- var mockGetRef = jest.fn();
1009
-
1010
- var _render38 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1011
- options: options,
1012
- getRef: mockGetRef
1013
- })),
1014
- getByRole = _render38.getByRole;
1015
-
1016
- expect(mockGetRef).toHaveBeenCalledWith(getByRole(selectInputRole));
1017
- });
1018
- test('Should not open the dropdown, when press down arrow on the input with needSelectDownIcon as false', function () {
1019
- var _render39 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1020
- options: options,
1021
- needSelectDownIcon: false
1022
- })),
1023
- getByRole = _render39.getByRole,
1024
- queryByTestId = _render39.queryByTestId;
1025
-
1026
- _react2.fireEvent.keyDown(getByRole(selectInputRole), {
1027
- key: 'ArrowDown',
1028
- keyCode: 40,
1029
- code: 'ArrowDown'
1030
- });
1031
-
1032
- expect(queryByTestId(dropboxTestId)).not.toBeInTheDocument();
1033
- });
1034
- test('Should open the dropdown, when press down arrow on the input with getChildren used and needSelectDownIcon as false', function () {
1035
- var _render40 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1036
- options: options,
1037
- needSelectDownIcon: false,
1038
- getChildren: function getChildren() {
1039
- return /*#__PURE__*/_react["default"].createElement("span", null, "getChildren element");
1040
- }
1041
- })),
1042
- getByRole = _render40.getByRole,
1043
- getByTestId = _render40.getByTestId;
1044
-
1045
- _react2.fireEvent.keyDown(getByRole(selectInputRole), {
1046
- key: 'ArrowDown',
1047
- keyCode: 40,
1048
- code: 'ArrowDown'
1049
- });
1050
-
1051
- expect(getByTestId(dropboxTestId)).toBeInTheDocument();
1052
- });
1053
- });
1054
- describe('Select snapshot - ', function () {
1055
- test('Should render with isParentBased as false', function () {
1056
- var _render41 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1057
- isParentBased: false
1058
- })),
1059
- asFragment = _render41.asFragment;
1060
-
1061
- expect(asFragment()).toMatchSnapshot();
1062
- });
1063
- var sizes = ['small', 'medium'];
1064
- test.each(sizes)('Should render with size as %s', function (size) {
1065
- var _render42 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1066
- size: size
1067
- })),
1068
- asFragment = _render42.asFragment;
1069
-
1070
- expect(asFragment()).toMatchSnapshot();
1071
- });
1072
- test('Should render with iconOnHover as true', function () {
1073
- var _render43 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1074
- iconOnHover: true
1075
- })),
1076
- asFragment = _render43.asFragment;
1077
-
1078
- expect(asFragment()).toMatchSnapshot();
1079
- });
1080
- test('Should render with iconOnHover as true and isReadOnly as true', function () {
1081
- var _render44 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1082
- iconOnHover: true,
1083
- isReadOnly: true
1084
- })),
1085
- asFragment = _render44.asFragment;
1086
-
1087
- expect(asFragment()).toMatchSnapshot();
1088
- });
1089
- test('Should render with iconOnHover as true and isDisabled as true', function () {
1090
- var _render45 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1091
- iconOnHover: true,
1092
- isDisabled: true
1093
- })),
1094
- asFragment = _render45.asFragment;
1095
-
1096
- expect(asFragment()).toMatchSnapshot();
1097
- });
1098
- test('Should render with title prop', function () {
1099
- var _render46 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1100
- title: "Select tooltip"
1101
- })),
1102
- asFragment = _render46.asFragment;
1103
-
1104
- expect(asFragment()).toMatchSnapshot();
1105
- });
1106
- test('Should render with dataSelectorId prop', function () {
1107
- var _render47 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1108
- dataSelectorId: "customSelectorId"
1109
- })),
1110
- asFragment = _render47.asFragment;
1111
-
1112
- expect(asFragment()).toMatchSnapshot();
1113
- });
1114
- test('Should render with className prop', function () {
1115
- var _render48 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1116
- className: "customClass"
1117
- })),
1118
- asFragment = _render48.asFragment;
1119
-
1120
- expect(asFragment()).toMatchSnapshot();
1121
- });
1122
- test('Should render with needSelectDownIcon as false', function () {
1123
- var _render49 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1124
- needSelectDownIcon: false
1125
- })),
1126
- asFragment = _render49.asFragment;
1127
-
1128
- expect(asFragment()).toMatchSnapshot();
1129
- });
1130
- test('Should render with isLoading', function () {
1131
- var _render50 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1132
- isPopupOpen: true,
1133
- isLoading: true
1134
- })),
1135
- asFragment = _render50.asFragment;
1136
-
1137
- expect(asFragment()).toMatchSnapshot();
1138
- });
1139
- test('Should render with children', function () {
1140
- var _render51 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], null, /*#__PURE__*/_react["default"].createElement("span", null, "children element"))),
1141
- asFragment = _render51.asFragment;
1142
-
1143
- expect(asFragment()).toMatchSnapshot();
1144
- });
1145
- test('Should render with children and dropdown open', function () {
1146
- var _render52 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1147
- isPopupOpen: true
1148
- }, /*#__PURE__*/_react["default"].createElement("span", null, "children element"))),
1149
- asFragment = _render52.asFragment;
1150
-
1151
- expect(asFragment()).toMatchSnapshot();
1152
- });
1153
- var dropBoxSizes = ['small', 'medium', 'large'];
1154
- test.each(dropBoxSizes)('Should render with dropBoxSize as %s', function (dropBoxSize) {
1155
- var _render53 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1156
- isPopupOpen: true,
1157
- dropBoxSize: dropBoxSize,
1158
- needSearch: true
1159
- })),
1160
- asFragment = _render53.asFragment;
1161
-
1162
- expect(asFragment()).toMatchSnapshot();
1163
- });
1164
- test('Should render with getFooter', function () {
1165
- var _render54 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1166
- isPopupOpen: true,
1167
- getFooter: function getFooter() {
1168
- return /*#__PURE__*/_react["default"].createElement("span", null, "getFooter element");
1169
- }
1170
- })),
1171
- asFragment = _render54.asFragment;
1172
-
1173
- expect(asFragment()).toMatchSnapshot();
1174
- });
1175
- test('Should render with getChildren', function () {
1176
- var _render55 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1177
- isPopupOpen: true,
1178
- getChildren: function getChildren() {
1179
- return /*#__PURE__*/_react["default"].createElement("span", null, "getChildren element");
1180
- }
1181
- })),
1182
- asFragment = _render55.asFragment;
1183
-
1184
- expect(asFragment()).toMatchSnapshot();
1185
- });
1186
- test("Should render with customProps", function () {
1187
- var _render56 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1188
- needSearch: true,
1189
- options: options,
1190
- isPopupOpen: true,
1191
- customProps: {
1192
- TextBoxProps: {
1193
- 'data-custom-attr': 'true'
1194
- },
1195
- DropdownSearchTextBoxProps: {
1196
- 'data-custom-search-attr': 'true'
1197
- },
1198
- SuggestionsProps: {
1199
- listItemSize: 'small'
1200
- },
1201
- TextBoxIconProps: {
1202
- 'data-custom-select-attr': 'true'
1203
- },
1204
- listItemProps: {
1205
- 'data-custom-listitem-attr': 'true'
1206
- }
1207
- }
1208
- })),
1209
- asFragment = _render56.asFragment;
1210
-
1211
- expect(asFragment()).toMatchSnapshot();
1212
- });
1213
- });
1214
- describe('Select box needSelectDownIcon snapshot - ', function () {
1215
- [true, false].forEach(function (needSelectDownIcon) {
1216
- test("Should render with aria properties - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1217
- var _render57 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1218
- i18nKeys: {
1219
- TextBox_ally_label: ''
1220
- },
1221
- ariaLabelledby: "customLabelId",
1222
- options: options,
1223
- needSelectDownIcon: needSelectDownIcon
1224
- })),
1225
- asFragment = _render57.asFragment;
1226
-
1227
- expect(asFragment()).toMatchSnapshot();
1228
- });
1229
- test("Should render with isPopupOpen as true - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1230
- var _render58 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1231
- isPopupOpen: true,
1232
- needSelectDownIcon: needSelectDownIcon
1233
- })),
1234
- asFragment = _render58.asFragment;
1235
-
1236
- expect(asFragment()).toMatchSnapshot();
1237
- });
1238
- test("Should render with maxLength - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1239
- var _render59 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1240
- maxLength: "100",
1241
- needSelectDownIcon: needSelectDownIcon
1242
- })),
1243
- asFragment = _render59.asFragment;
1244
-
1245
- expect(asFragment()).toMatchSnapshot();
1246
- });
1247
- test("Should render with needBorder as false - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1248
- var _render60 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1249
- needBorder: false,
1250
- needSelectDownIcon: needSelectDownIcon
1251
- })),
1252
- asFragment = _render60.asFragment;
1253
-
1254
- expect(asFragment()).toMatchSnapshot();
1255
- });
1256
- test("Should render with placeHolder - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1257
- var _render61 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1258
- placeHolder: "custom placeholder",
1259
- needSelectDownIcon: needSelectDownIcon
1260
- })),
1261
- asFragment = _render61.asFragment;
1262
-
1263
- expect(asFragment()).toMatchSnapshot();
1264
- });
1265
- test("Should render with isReadOnly as true - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1266
- var _render62 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1267
- isReadOnly: true,
1268
- needSelectDownIcon: needSelectDownIcon
1269
- })),
1270
- asFragment = _render62.asFragment;
1271
-
1272
- expect(asFragment()).toMatchSnapshot();
1273
- });
1274
- test("Should render with isDisabled as true - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1275
- var _render63 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1276
- isDisabled: true,
1277
- needSelectDownIcon: needSelectDownIcon
1278
- })),
1279
- asFragment = _render63.asFragment;
1280
-
1281
- expect(asFragment()).toMatchSnapshot();
1282
- });
1283
- var textBoxSizes = ['xsmall', 'small', 'medium', 'xmedium'];
1284
- test.each(textBoxSizes)("Should render with textBoxSize as %s - needSelectDownIcon as ".concat(needSelectDownIcon), function (textBoxSize) {
1285
- var _render64 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1286
- textBoxSize: textBoxSize,
1287
- needSelectDownIcon: needSelectDownIcon
1288
- })),
1289
- asFragment = _render64.asFragment;
1290
-
1291
- expect(asFragment()).toMatchSnapshot();
1292
- });
1293
- var textBoxVariants = ['primary', 'secondary', 'default', 'light'];
1294
- test.each(textBoxVariants)("Should render with textBoxVariant as %s - needSelectDownIcon as ".concat(needSelectDownIcon), function (textBoxVariant) {
1295
- var _render65 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1296
- textBoxVariant: textBoxVariant,
1297
- needSelectDownIcon: needSelectDownIcon
1298
- })),
1299
- asFragment = _render65.asFragment;
1300
-
1301
- expect(asFragment()).toMatchSnapshot();
1302
- });
1303
- var borderColors = ['transparent', 'default'];
1304
- test.each(borderColors)("Should render with borderColor as %s - needSelectDownIcon as ".concat(needSelectDownIcon), function (borderColor) {
1305
- var _render66 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1306
- borderColor: borderColor,
1307
- needSelectDownIcon: needSelectDownIcon
1308
- })),
1309
- asFragment = _render66.asFragment;
1310
-
1311
- expect(asFragment()).toMatchSnapshot();
1312
- });
1313
- test("Should render with htmlId - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1314
- var _render67 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1315
- htmlId: "customHtmlId",
1316
- needSelectDownIcon: needSelectDownIcon
1317
- })),
1318
- asFragment = _render67.asFragment;
1319
-
1320
- expect(asFragment()).toMatchSnapshot();
1321
- });
1322
- test("Should render with autoComplete as true - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1323
- var _render68 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1324
- autoComplete: true,
1325
- needSelectDownIcon: needSelectDownIcon
1326
- })),
1327
- asFragment = _render68.asFragment;
1328
-
1329
- expect(asFragment()).toMatchSnapshot();
1330
- });
1331
- test("Should render with title - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1332
- var _render69 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1333
- title: "custom select title",
1334
- needSelectDownIcon: needSelectDownIcon
1335
- })),
1336
- asFragment = _render69.asFragment;
1337
-
1338
- expect(asFragment()).toMatchSnapshot();
1339
- });
1340
- test("Should render with customProps TextBoxProps - needSelectDownIcon as ".concat(needSelectDownIcon), function () {
1341
- var _render70 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1342
- customProps: {
1343
- TextBoxProps: {
1344
- 'data-custom-attr': 'true'
1345
- }
1346
- },
1347
- needSelectDownIcon: needSelectDownIcon
1348
- })),
1349
- asFragment = _render70.asFragment;
1350
-
1351
- expect(asFragment()).toMatchSnapshot();
1352
- });
1353
- });
1354
- });
1355
- describe('Select dataId snapshot - ', function () {
1356
- test('Should render with dataId prop - dropbox open', function () {
1357
- var _render71 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1358
- needSearch: true,
1359
- options: options,
1360
- dataId: "customDataId"
1361
- })),
1362
- getByRole = _render71.getByRole,
1363
- asFragment = _render71.asFragment;
1364
-
1365
- _userEvent["default"].click(getByRole(selectInputRole));
1366
-
1367
- expect(asFragment()).toMatchSnapshot();
1368
- });
1369
- test('Should render with dataId prop - isDisabled as true', function () {
1370
- var _render72 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1371
- isDisabled: true,
1372
- dataId: "customDataId"
1373
- })),
1374
- asFragment = _render72.asFragment;
1375
-
1376
- expect(asFragment()).toMatchSnapshot();
1377
- });
1378
- test('Should render with dataId prop - isReadOnly as true', function () {
1379
- var _render73 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1380
- isReadOnly: true,
1381
- dataId: "customDataId"
1382
- })),
1383
- asFragment = _render73.asFragment;
1384
-
1385
- expect(asFragment()).toMatchSnapshot();
1386
- });
1387
- test('Should render with dataId prop - empty state and needSelectDownIcon as false', function () {
1388
- var _render74 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Select["default"], {
1389
- needSelectDownIcon: false
1390
- })),
1391
- getByRole = _render74.getByRole,
1392
- asFragment = _render74.asFragment;
1393
-
1394
- _userEvent["default"].click(getByRole(selectInputRole));
1395
-
1396
- expect(asFragment()).toMatchSnapshot();
1397
- });
1398
- });