@zohodesk/components 1.0.0-alpha-195 → 1.0.0-alpha-199

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 (395) hide show
  1. package/README.md +21 -0
  2. package/es/Avatar/Avatar.module.css +9 -11
  3. package/es/AvatarTeam/AvatarTeam.module.css +7 -21
  4. package/es/Button/Button.module.css +23 -96
  5. package/es/Buttongroup/Buttongroup.module.css +8 -37
  6. package/es/CheckBox/CheckBox.module.css +11 -17
  7. package/es/DateTime/DateTime.module.css +12 -39
  8. package/es/DateTime/DateWidget.module.css +5 -9
  9. package/es/DateTime/YearView.module.css +6 -16
  10. package/es/DateTime/dateFormatUtils/dateFormat.js +2 -2
  11. package/es/DropBox/DropBox.module.css +11 -47
  12. package/es/DropDown/DropDownHeading.module.css +3 -7
  13. package/es/DropDown/DropDownItem.module.css +6 -32
  14. package/es/ListItem/ListItem.module.css +24 -56
  15. package/es/MultiSelect/AdvancedMultiSelect.js +3 -2
  16. package/es/MultiSelect/AdvancedMultiSelect.module.css +6 -21
  17. package/es/MultiSelect/MultiSelect.js +31 -31
  18. package/es/MultiSelect/MultiSelect.module.css +8 -26
  19. package/es/MultiSelect/SelectedOptions.module.css +2 -8
  20. package/es/PopOver/PopOver.module.css +1 -1
  21. package/es/Popup/Popup.js +2 -2
  22. package/es/Radio/Radio.module.css +3 -9
  23. package/es/Responsive/CustomResponsive.js +73 -74
  24. package/es/Responsive/docs/style.module.css +8 -17
  25. package/es/Responsive/sizeObservers.js +31 -13
  26. package/es/Ribbon/Ribbon.module.css +28 -93
  27. package/es/RippleEffect/RippleEffect.module.css +44 -15
  28. package/es/Select/Select.module.css +2 -12
  29. package/es/Stencils/Stencils.module.css +4 -27
  30. package/es/Switch/Switch.module.css +7 -6
  31. package/es/Tab/Tab.module.css +7 -16
  32. package/es/Tab/Tabs.module.css +8 -41
  33. package/es/Tab/docs/tabdocs.module.css +1 -1
  34. package/es/Tag/Tag.module.css +14 -36
  35. package/es/TextBox/TextBox.module.css +11 -7
  36. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -10
  37. package/es/Textarea/Textarea.module.css +7 -6
  38. package/es/Tooltip/Tooltip.module.css +8 -9
  39. package/es/beta/FocusRing/FocusRing.module.css +26 -51
  40. package/es/common/animation.module.css +20 -212
  41. package/es/common/basicReset.module.css +12 -2
  42. package/es/common/common.module.css +18 -62
  43. package/es/common/customscroll.module.css +21 -17
  44. package/es/common/docStyle.module.css +26 -64
  45. package/es/common/transition.module.css +10 -50
  46. package/es/deprecated/customscroll_Old.module.css +1 -1
  47. package/es/semantic/Button/semanticButton.module.css +3 -3
  48. package/es/utils/ContextOptimizer.js +38 -0
  49. package/package.json +3 -3
  50. package/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  51. package/assets/fonts/LatoLatin-Heavy.woff2 +0 -0
  52. package/assets/fonts/LatoLatin-Medium.woff2 +0 -0
  53. package/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  54. package/assets/fonts/LatoLatin-Semibold.woff2 +0 -0
  55. package/lib/Accordion/Accordion.js +0 -146
  56. package/lib/Accordion/AccordionItem.js +0 -121
  57. package/lib/Accordion/__tests__/Accordion.spec.js +0 -85
  58. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -126
  59. package/lib/Accordion/index.js +0 -23
  60. package/lib/Animation/Animation.js +0 -207
  61. package/lib/Animation/__tests__/Animation.spec.js +0 -23
  62. package/lib/Animation/docs/Animation__default.docs.js +0 -85
  63. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -85
  64. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -85
  65. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -85
  66. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -85
  67. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -85
  68. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -85
  69. package/lib/AppContainer/AppContainer.js +0 -154
  70. package/lib/AppContainer/AppContainer.module.css +0 -17
  71. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -70
  72. package/lib/Appearance/dark/mode/darkMode.module.css +0 -403
  73. package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
  74. package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -31
  75. package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
  76. package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -31
  77. package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
  78. package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -31
  79. package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
  80. package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -31
  81. package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
  82. package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -31
  83. package/lib/Appearance/default/mode/defaultMode.module.css +0 -403
  84. package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
  85. package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -31
  86. package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
  87. package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -31
  88. package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
  89. package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -31
  90. package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
  91. package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -31
  92. package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
  93. package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -31
  94. package/lib/Avatar/Avatar.js +0 -280
  95. package/lib/Avatar/Avatar.module.css +0 -117
  96. package/lib/Avatar/__tests__/Avatar.spec.js +0 -208
  97. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -288
  98. package/lib/Avatar/docs/Avatar__custom.docs.js +0 -87
  99. package/lib/Avatar/docs/Avatar__default.docs.js +0 -83
  100. package/lib/Avatar/docs/Avatar__palette.docs.js +0 -107
  101. package/lib/Avatar/docs/Avatar__text.docs.js +0 -86
  102. package/lib/AvatarTeam/AvatarTeam.js +0 -157
  103. package/lib/AvatarTeam/AvatarTeam.module.css +0 -161
  104. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -92
  105. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -226
  106. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -124
  107. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -82
  108. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -101
  109. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -100
  110. package/lib/Button/Button.js +0 -159
  111. package/lib/Button/Button.module.css +0 -520
  112. package/lib/Button/__tests__/Button.spec.js +0 -233
  113. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -191
  114. package/lib/Button/docs/Button__custom.docs.js +0 -826
  115. package/lib/Button/docs/Button__default.docs.js +0 -590
  116. package/lib/Buttongroup/Buttongroup.js +0 -101
  117. package/lib/Buttongroup/Buttongroup.module.css +0 -89
  118. package/lib/Buttongroup/__test__/Buttongroup.spec.js +0 -86
  119. package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +0 -146
  120. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -89
  121. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -85
  122. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -98
  123. package/lib/Card/Card.js +0 -403
  124. package/lib/Card/Card.module.css +0 -20
  125. package/lib/Card/__tests__/Card.spec.js +0 -56
  126. package/lib/Card/docs/Card__Custom.docs.js +0 -90
  127. package/lib/Card/docs/Card__Default.docs.js +0 -92
  128. package/lib/Card/docs/Card__Scroll.docs.js +0 -114
  129. package/lib/Card/index.js +0 -37
  130. package/lib/CheckBox/CheckBox.js +0 -265
  131. package/lib/CheckBox/CheckBox.module.css +0 -153
  132. package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -18
  133. package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -348
  134. package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -273
  135. package/lib/DateTime/CalendarView.js +0 -305
  136. package/lib/DateTime/DateTime.js +0 -1030
  137. package/lib/DateTime/DateTime.module.css +0 -188
  138. package/lib/DateTime/DateWidget.js +0 -1183
  139. package/lib/DateTime/DateWidget.module.css +0 -46
  140. package/lib/DateTime/YearView.js +0 -324
  141. package/lib/DateTime/YearView.module.css +0 -80
  142. package/lib/DateTime/__tests__/CalendarView.spec.js +0 -45
  143. package/lib/DateTime/__tests__/DateTime.spec.js +0 -127
  144. package/lib/DateTime/__tests__/DateWidget.spec.js +0 -81
  145. package/lib/DateTime/common.js +0 -36
  146. package/lib/DateTime/constants.js +0 -77
  147. package/lib/DateTime/dateFormatUtils/dateFormat.js +0 -613
  148. package/lib/DateTime/dateFormatUtils/dayChange.js +0 -81
  149. package/lib/DateTime/dateFormatUtils/index.js +0 -274
  150. package/lib/DateTime/dateFormatUtils/monthChange.js +0 -94
  151. package/lib/DateTime/dateFormatUtils/timeChange.js +0 -240
  152. package/lib/DateTime/dateFormatUtils/yearChange.js +0 -119
  153. package/lib/DateTime/docs/DateTime__default.docs.js +0 -142
  154. package/lib/DateTime/docs/DateWidget__default.docs.js +0 -240
  155. package/lib/DateTime/docs/timezonedata.json +0 -1
  156. package/lib/DateTime/index.js +0 -15
  157. package/lib/DateTime/objectUtils.js +0 -76
  158. package/lib/DateTime/typeChecker.js +0 -26
  159. package/lib/DateTime/validator.js +0 -353
  160. package/lib/DropBox/DropBox.js +0 -384
  161. package/lib/DropBox/DropBox.module.css +0 -406
  162. package/lib/DropBox/DropBoxPositionMapping.json +0 -145
  163. package/lib/DropBox/__tests__/DropBox.spec.js +0 -87
  164. package/lib/DropBox/docs/DropBox__custom.docs.js +0 -122
  165. package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -141
  166. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -140
  167. package/lib/DropBox/docs/DropBox__position.docs.js +0 -142
  168. package/lib/DropBox/docs/DropBox__size.docs.js +0 -116
  169. package/lib/DropDown/DropDown.js +0 -203
  170. package/lib/DropDown/DropDown.module.css +0 -5
  171. package/lib/DropDown/DropDownHeading.js +0 -102
  172. package/lib/DropDown/DropDownHeading.module.css +0 -53
  173. package/lib/DropDown/DropDownItem.js +0 -139
  174. package/lib/DropDown/DropDownItem.module.css +0 -94
  175. package/lib/DropDown/DropDownSearch.js +0 -130
  176. package/lib/DropDown/DropDownSearch.module.css +0 -14
  177. package/lib/DropDown/DropDownSeparator.js +0 -66
  178. package/lib/DropDown/DropDownSeparator.module.css +0 -7
  179. package/lib/DropDown/__tests__/DropDown.spec.js +0 -50
  180. package/lib/DropDown/__tests__/DropDownItem.spec.js +0 -51
  181. package/lib/DropDown/__tests__/DropDownSearch.spec.js +0 -17
  182. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -73
  183. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -70
  184. package/lib/Label/Label.js +0 -107
  185. package/lib/Label/Label.module.css +0 -73
  186. package/lib/Label/__tests__/Label.spec.js +0 -137
  187. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -101
  188. package/lib/Label/docs/Label__clipped.docs.js +0 -81
  189. package/lib/Label/docs/Label__custom.docs.js +0 -85
  190. package/lib/Label/docs/Label__palette.docs.js +0 -96
  191. package/lib/Label/docs/Label__size.docs.js +0 -83
  192. package/lib/Label/docs/Label__type.docs.js +0 -91
  193. package/lib/Layout/Box.js +0 -138
  194. package/lib/Layout/Container.js +0 -152
  195. package/lib/Layout/Layout.module.css +0 -324
  196. package/lib/Layout/__tests__/Box.spec.js +0 -121
  197. package/lib/Layout/__tests__/Container.spec.js +0 -127
  198. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -127
  199. package/lib/Layout/docs/Layout__default.docs.js +0 -98
  200. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -135
  201. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -126
  202. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -119
  203. package/lib/Layout/index.js +0 -34
  204. package/lib/Layout/utils.js +0 -55
  205. package/lib/ListItem/ListItem.js +0 -234
  206. package/lib/ListItem/ListItem.module.css +0 -200
  207. package/lib/ListItem/ListItemWithAvatar.js +0 -236
  208. package/lib/ListItem/ListItemWithCheckBox.js +0 -208
  209. package/lib/ListItem/ListItemWithIcon.js +0 -221
  210. package/lib/ListItem/ListItemWithRadio.js +0 -209
  211. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -206
  212. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -162
  213. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -142
  214. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -115
  215. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -119
  216. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -112
  217. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -142
  218. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -115
  219. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -164
  220. package/lib/ListItem/docs/ListItem__default.docs.js +0 -131
  221. package/lib/Modal/Modal.js +0 -218
  222. package/lib/Modal/__docs__/Modal__default.docs.js +0 -88
  223. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +0 -1209
  224. package/lib/MultiSelect/AdvancedMultiSelect.js +0 -664
  225. package/lib/MultiSelect/AdvancedMultiSelect.module.css +0 -127
  226. package/lib/MultiSelect/EmptyState.js +0 -132
  227. package/lib/MultiSelect/MultiSelect.js +0 -1210
  228. package/lib/MultiSelect/MultiSelect.module.css +0 -198
  229. package/lib/MultiSelect/MultiSelectHeader.js +0 -86
  230. package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -407
  231. package/lib/MultiSelect/SelectedOptions.js +0 -139
  232. package/lib/MultiSelect/SelectedOptions.module.css +0 -15
  233. package/lib/MultiSelect/Suggestions.js +0 -205
  234. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -170
  235. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -177
  236. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -150
  237. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -191
  238. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -214
  239. package/lib/PopOver/PopOver.js +0 -366
  240. package/lib/PopOver/PopOver.module.css +0 -8
  241. package/lib/PopOver/__tests__/PopOver.spec.js +0 -20
  242. package/lib/PopOver/docs/PopOver__default.docs.js +0 -86
  243. package/lib/Popup/Popup.js +0 -716
  244. package/lib/Popup/PositionMapping.json +0 -74
  245. package/lib/Popup/__tests__/Popup.spec.js +0 -192
  246. package/lib/Popup/viewPort.js +0 -368
  247. package/lib/Provider/AvatarSize.js +0 -23
  248. package/lib/Provider/Config.js +0 -21
  249. package/lib/Provider/CssProvider.js +0 -27
  250. package/lib/Provider/IdProvider.js +0 -82
  251. package/lib/Provider/NumberGenerator/NumberGenerator.js +0 -174
  252. package/lib/Provider/ZindexProvider.js +0 -69
  253. package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -77
  254. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -29
  255. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -80
  256. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -34
  257. package/lib/Provider.js +0 -232
  258. package/lib/Radio/Radio.js +0 -216
  259. package/lib/Radio/Radio.module.css +0 -110
  260. package/lib/Radio/__tests__/Radiospec.js +0 -29
  261. package/lib/Radio/docs/Radio__custom.docs.js +0 -299
  262. package/lib/Radio/docs/Radio__default.docs.js +0 -222
  263. package/lib/Responsive/CustomResponsive.js +0 -282
  264. package/lib/Responsive/RefWrapper.js +0 -55
  265. package/lib/Responsive/ResizeObserver.js +0 -168
  266. package/lib/Responsive/Responsive.js +0 -280
  267. package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -272
  268. package/lib/Responsive/docs/Responsive__default.docs.js +0 -142
  269. package/lib/Responsive/docs/style.module.css +0 -56
  270. package/lib/Responsive/index.js +0 -30
  271. package/lib/Responsive/sizeObservers.js +0 -145
  272. package/lib/Responsive/utils/index.js +0 -69
  273. package/lib/Responsive/utils/shallowCompare.js +0 -38
  274. package/lib/Responsive/windowResizeObserver.js +0 -63
  275. package/lib/Ribbon/Ribbon.js +0 -115
  276. package/lib/Ribbon/Ribbon.module.css +0 -377
  277. package/lib/Ribbon/__tests__/Ribbon.spec.js +0 -193
  278. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -163
  279. package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -437
  280. package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -392
  281. package/lib/RippleEffect/RippleEffect.js +0 -58
  282. package/lib/RippleEffect/RippleEffect.module.css +0 -67
  283. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -484
  284. package/lib/Select/GroupSelect.js +0 -936
  285. package/lib/Select/Select.js +0 -1028
  286. package/lib/Select/Select.module.css +0 -100
  287. package/lib/Select/SelectWithAvatar.js +0 -430
  288. package/lib/Select/SelectWithIcon.js +0 -550
  289. package/lib/Select/__tests__/Select.spec.js +0 -383
  290. package/lib/Select/docs/GroupSelect__default.docs.js +0 -199
  291. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -152
  292. package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -190
  293. package/lib/Select/docs/Select__default.docs.js +0 -261
  294. package/lib/Stencils/Stencils.js +0 -94
  295. package/lib/Stencils/Stencils.module.css +0 -106
  296. package/lib/Stencils/__tests__/Stencils.spec.js +0 -84
  297. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -49
  298. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -96
  299. package/lib/Stencils/docs/Stencils__default.docs.js +0 -101
  300. package/lib/Switch/Switch.js +0 -183
  301. package/lib/Switch/Switch.module.css +0 -110
  302. package/lib/Switch/docs/Switch__custom.docs.js +0 -203
  303. package/lib/Switch/docs/Switch__default.docs.js +0 -156
  304. package/lib/Tab/Tab.js +0 -155
  305. package/lib/Tab/Tab.module.css +0 -101
  306. package/lib/Tab/TabContent.js +0 -45
  307. package/lib/Tab/TabContent.module.css +0 -4
  308. package/lib/Tab/TabContentWrapper.js +0 -47
  309. package/lib/Tab/TabWrapper.js +0 -109
  310. package/lib/Tab/Tabs.js +0 -671
  311. package/lib/Tab/Tabs.module.css +0 -140
  312. package/lib/Tab/__tests__/Tab.spec.js +0 -130
  313. package/lib/Tab/__tests__/TabContent.spec.js +0 -22
  314. package/lib/Tab/__tests__/TabContentWrapper.spec.js +0 -59
  315. package/lib/Tab/__tests__/TabWrapper.spec.js +0 -100
  316. package/lib/Tab/__tests__/Tabs.spec.js +0 -123
  317. package/lib/Tab/docs/Tab__default.docs.js +0 -299
  318. package/lib/Tab/docs/tabdocs.module.css +0 -29
  319. package/lib/Tab/index.js +0 -47
  320. package/lib/Tag/Tag.js +0 -246
  321. package/lib/Tag/Tag.module.css +0 -247
  322. package/lib/Tag/__tests__/Tag.spec.js +0 -35
  323. package/lib/Tag/docs/Tag__custom.docs.js +0 -423
  324. package/lib/Tag/docs/Tag__default.docs.js +0 -307
  325. package/lib/TextBox/TextBox.js +0 -285
  326. package/lib/TextBox/TextBox.module.css +0 -157
  327. package/lib/TextBox/__tests__/TextBox.spec.js +0 -205
  328. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -127
  329. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -98
  330. package/lib/TextBox/docs/TextBox__default.docs.js +0 -95
  331. package/lib/TextBox/docs/TextBox__size.docs.js +0 -93
  332. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -93
  333. package/lib/TextBoxIcon/TextBoxIcon.js +0 -276
  334. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -75
  335. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -228
  336. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -334
  337. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -145
  338. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -117
  339. package/lib/Textarea/Textarea.js +0 -202
  340. package/lib/Textarea/Textarea.module.css +0 -139
  341. package/lib/Textarea/__tests__/Textarea.spec.js +0 -186
  342. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -97
  343. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -95
  344. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -137
  345. package/lib/Textarea/docs/Textarea__default.docs.js +0 -130
  346. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -83
  347. package/lib/Tooltip/Tooltip.js +0 -538
  348. package/lib/Tooltip/Tooltip.module.css +0 -104
  349. package/lib/Tooltip/__tests__/Tooltip.spec.js +0 -98
  350. package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -391
  351. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -138
  352. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -150
  353. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -182
  354. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -206
  355. package/lib/a11y/FocusScope/FocusScope.js +0 -443
  356. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
  357. package/lib/beta/FocusRing/FocusRing.js +0 -338
  358. package/lib/beta/FocusRing/FocusRing.module.css +0 -152
  359. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +0 -101
  360. package/lib/common/animation.module.css +0 -612
  361. package/lib/common/avatarsizes.module.css +0 -45
  362. package/lib/common/basic.module.css +0 -33
  363. package/lib/common/basicReset.module.css +0 -40
  364. package/lib/common/common.module.css +0 -502
  365. package/lib/common/customscroll.module.css +0 -89
  366. package/lib/common/docStyle.module.css +0 -705
  367. package/lib/common/reset.module.css +0 -12
  368. package/lib/common/transition.module.css +0 -146
  369. package/lib/css.js +0 -81
  370. package/lib/deprecated/PortalLayer/PortalLayer.js +0 -165
  371. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -145
  372. package/lib/deprecated/Theme/darkTheme.module.css +0 -393
  373. package/lib/deprecated/Theme/defaultTheme.module.css +0 -393
  374. package/lib/deprecated/Theme/palette/darkCTAPalette.module.css +0 -116
  375. package/lib/deprecated/Theme/palette/darkPalette.module.css +0 -155
  376. package/lib/deprecated/Theme/palette/defaultCTAPalette.module.css +0 -116
  377. package/lib/deprecated/Theme/palette/defaultPalette.module.css +0 -155
  378. package/lib/deprecated/customscroll_Old.module.css +0 -46
  379. package/lib/index.js +0 -1403
  380. package/lib/semantic/Button/Button.js +0 -138
  381. package/lib/semantic/Button/docs/Button__default.docs.js +0 -66
  382. package/lib/semantic/Button/semanticButton.module.css +0 -9
  383. package/lib/utils/Common.js +0 -433
  384. package/lib/utils/__tests__/constructFullName.spec.js +0 -12
  385. package/lib/utils/__tests__/debounce.spec.js +0 -40
  386. package/lib/utils/__tests__/getInitial.spec.js +0 -26
  387. package/lib/utils/constant.js +0 -10
  388. package/lib/utils/constructFullName.js +0 -34
  389. package/lib/utils/datetime/common.js +0 -233
  390. package/lib/utils/debounce.js +0 -30
  391. package/lib/utils/dropDownUtils.js +0 -556
  392. package/lib/utils/dummyFunction.js +0 -10
  393. package/lib/utils/getHTMLFontSize.js +0 -11
  394. package/lib/utils/getInitial.js +0 -33
  395. package/lib/utils/scrollTo.js +0 -22
@@ -1,228 +0,0 @@
1
- "use strict";
2
-
3
- var _react = _interopRequireDefault(require("react"));
4
-
5
- var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon"));
6
-
7
- var _reactTestRenderer = _interopRequireDefault(require("react-test-renderer"));
8
-
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
-
11
- // children: PropTypes.node,
12
- // disabled: PropTypes.bool,
13
- // iconRotated: PropTypes.bool,
14
- // id: PropTypes.string,
15
- // inputRef: PropTypes.func,
16
- // isClear: PropTypes.bool,
17
- // maxLength: PropTypes.string,
18
- // name: PropTypes.string,
19
- // needBorder: PropTypes.bool,
20
- // onBlur: PropTypes.func,
21
- // onChange: PropTypes.func,
22
- // onClear: PropTypes.func,
23
- // onClick: PropTypes.func,
24
- // onFocus: PropTypes.func,
25
- // onKeyDown: PropTypes.func,
26
- // onKeyUp: PropTypes.func,
27
- // placeHolder: PropTypes.string,
28
- // readOnly: PropTypes.bool,
29
- // size: PropTypes.oneOf(['small', 'medium', 'xmedium']),
30
- // title: PropTypes.func,
31
- // type: PropTypes.oneOf(['text', 'password', 'number']),
32
- // value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
33
- // variant: PropTypes.oneOf(['primary', 'secondary', 'default'])
34
- describe('TextBoxIcon component', function () {
35
- it('should display size small', function () {
36
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
37
- maxLength: "100",
38
- placeHolder: "Text Box Icon",
39
- size: "small",
40
- variant: "default"
41
- }));
42
-
43
- var tree = ele.toJSON();
44
- expect(tree).toMatchSnapshot();
45
- });
46
- it('should display size medium', function () {
47
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
48
- maxLength: "100",
49
- placeHolder: "Text Area",
50
- size: "medium",
51
- variant: "default"
52
- }));
53
-
54
- var tree = ele.toJSON();
55
- expect(tree).toMatchSnapshot();
56
- });
57
- it('should display size xmedium', function () {
58
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
59
- maxLength: "100",
60
- placeHolder: "Text Area",
61
- size: "xmedium",
62
- variant: "default"
63
- }));
64
-
65
- var tree = ele.toJSON();
66
- expect(tree).toMatchSnapshot();
67
- });
68
- it('should display size small - primary', function () {
69
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
70
- maxLength: "100",
71
- placeHolder: "Text Area",
72
- size: "small",
73
- variant: "primary"
74
- }));
75
-
76
- var tree = ele.toJSON();
77
- expect(tree).toMatchSnapshot();
78
- });
79
- it('should display size medium - primary', function () {
80
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
81
- maxLength: "100",
82
- placeHolder: "Text Area",
83
- size: "medium",
84
- variant: "primary"
85
- }));
86
-
87
- var tree = ele.toJSON();
88
- expect(tree).toMatchSnapshot();
89
- });
90
- it('should display size xmedium - primary', function () {
91
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
92
- maxLength: "100",
93
- placeHolder: "Text Area",
94
- size: "xmedium",
95
- variant: "primary"
96
- }));
97
-
98
- var tree = ele.toJSON();
99
- expect(tree).toMatchSnapshot();
100
- });
101
- it('should display size small - secondary', function () {
102
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
103
- maxLength: "100",
104
- placeHolder: "Text Area",
105
- size: "small",
106
- variant: "secondary"
107
- }));
108
-
109
- var tree = ele.toJSON();
110
- expect(tree).toMatchSnapshot();
111
- });
112
- it('should display size medium - secondary', function () {
113
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
114
- maxLength: "100",
115
- placeHolder: "Text Area",
116
- size: "medium",
117
- variant: "secondary"
118
- }));
119
-
120
- var tree = ele.toJSON();
121
- expect(tree).toMatchSnapshot();
122
- });
123
- it('should display size xmedium - secondary', function () {
124
- var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
125
- maxLength: "100",
126
- placeHolder: "Text Area",
127
- size: "xmedium",
128
- variant: "secondary"
129
- }));
130
-
131
- var tree = ele.toJSON();
132
- expect(tree).toMatchSnapshot();
133
- });
134
- it('should text propertly entered', function () {
135
- var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
136
- maxLength: "100",
137
- placeHolder: "Text Box",
138
- size: "medium",
139
- variant: "primary",
140
- value: "Text Box Working"
141
- }));
142
- expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon').value.contains('Text Box Working')).toBe(true);
143
- });
144
- it('should placeHolder propertly entered', function () {
145
- var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
146
- maxLength: "100",
147
- placeHolder: "Text Box",
148
- size: "medium",
149
- variant: "primary",
150
- text: "Text Box Working"
151
- }));
152
- expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon').getAttribute('placeholder')).toMatch(/Text Box/);
153
- }); // it('Check disabled works', () => {
154
- // let renderedDOM = TestUtils.renderIntoDocument(
155
- // <TextBoxIcon maxLength='100' placeHolder='Text Box' size='medium' variant='primary' value='Text Box Working' disabled />
156
- // );
157
- // let pass = false;
158
- // let classNames = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBox').classList;
159
- // Object.keys(classNames)
160
- // .map(className => {
161
- // if (classNames[className] == 'disabled') {
162
- // pass = true;
163
- // }
164
- // });
165
- // expect(
166
- // pass
167
- // ).toBe(true);
168
- // });
169
- // it('Check readOnly works', () => {
170
- // let renderedDOM = TestUtils.renderIntoDocument(
171
- // <TextBoxIcon maxLength='100' placeHolder='Text Box' size='medium' variant='primary' value='Text Box Working' readOnly />
172
- // );
173
- // let pass = false;
174
- // let classNames = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBox').classList;
175
- // Object.keys(classNames)
176
- // .map(className => {
177
- // if (classNames[className] == 'pointer') {
178
- // pass = true;
179
- // }
180
- // });
181
- // expect(
182
- // pass
183
- // ).toBe(true);
184
- // });
185
-
186
- it('Check onchange works', function () {
187
- var mockfn = jest.fn();
188
- var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
189
- maxLength: "100",
190
- placeHolder: "Text Box",
191
- size: "medium",
192
- variant: "primary",
193
- value: "Text Box Working",
194
- onChange: mockfn
195
- }));
196
- var onChangeEle = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon');
197
- TestUtils.Simulate.change(onChangeEle);
198
- expect(mockfn.mock.calls.length).toBe(1);
199
- });
200
- it('Check onBlur works', function () {
201
- var mockfn = jest.fn();
202
- var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
203
- maxLength: "100",
204
- placeHolder: "Text Box",
205
- size: "medium",
206
- variant: "primary",
207
- value: "Text Box Working",
208
- onBlur: mockfn
209
- }));
210
- var onBlurEle = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon');
211
- TestUtils.Simulate.blur(onBlurEle);
212
- expect(mockfn.mock.calls.length).toBe(1);
213
- });
214
- it('Check onFocus works', function () {
215
- var mockfn = jest.fn();
216
- var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
217
- maxLength: "100",
218
- placeHolder: "Text Box",
219
- size: "medium",
220
- variant: "primary",
221
- value: "Text Box Working",
222
- onFocus: mockfn
223
- }));
224
- var onFocusEle = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon');
225
- TestUtils.Simulate.focus(onFocusEle);
226
- expect(mockfn.mock.calls.length).toBe(1);
227
- });
228
- });
@@ -1,334 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`TextBoxIcon component should display size medium - primary 1`] = `
4
- <div
5
- className="container effect flex rowdir"
6
- data-id="containerComponent"
7
- data-title=""
8
- >
9
- <div
10
- className="grow basis shrinkOff"
11
- data-id="boxComponent"
12
- >
13
- <input
14
- className=" container medium primary effect borderColor_default"
15
- data-id="textBoxIcon"
16
- maxLength="100"
17
- onBlur={[Function]}
18
- onChange={[Function]}
19
- onFocus={[Function]}
20
- placeholder="Text Area"
21
- type="text"
22
- value=""
23
- />
24
- </div>
25
- <div
26
- className="iconContainer shrinkOff"
27
- data-id="boxComponent"
28
- >
29
- <div
30
- className="flex cover rowdir vCenter"
31
- data-id="containerComponent"
32
- />
33
- </div>
34
- <div
35
- className="line borderColor_default"
36
- />
37
- </div>
38
- `;
39
-
40
- exports[`TextBoxIcon component should display size medium - secondary 1`] = `
41
- <div
42
- className="container effect flex rowdir"
43
- data-id="containerComponent"
44
- data-title=""
45
- >
46
- <div
47
- className="grow basis shrinkOff"
48
- data-id="boxComponent"
49
- >
50
- <input
51
- className=" container medium secondary effect borderColor_default"
52
- data-id="textBoxIcon"
53
- maxLength="100"
54
- onBlur={[Function]}
55
- onChange={[Function]}
56
- onFocus={[Function]}
57
- placeholder="Text Area"
58
- type="text"
59
- value=""
60
- />
61
- </div>
62
- <div
63
- className="iconContainer shrinkOff"
64
- data-id="boxComponent"
65
- >
66
- <div
67
- className="flex cover rowdir vCenter"
68
- data-id="containerComponent"
69
- />
70
- </div>
71
- <div
72
- className="line borderColor_default"
73
- />
74
- </div>
75
- `;
76
-
77
- exports[`TextBoxIcon component should display size medium 1`] = `
78
- <div
79
- className="container effect flex rowdir"
80
- data-id="containerComponent"
81
- data-title=""
82
- >
83
- <div
84
- className="grow basis shrinkOff"
85
- data-id="boxComponent"
86
- >
87
- <input
88
- className=" container medium default effect borderColor_default"
89
- data-id="textBoxIcon"
90
- maxLength="100"
91
- onBlur={[Function]}
92
- onChange={[Function]}
93
- onFocus={[Function]}
94
- placeholder="Text Area"
95
- type="text"
96
- value=""
97
- />
98
- </div>
99
- <div
100
- className="iconContainer shrinkOff"
101
- data-id="boxComponent"
102
- >
103
- <div
104
- className="flex cover rowdir vCenter"
105
- data-id="containerComponent"
106
- />
107
- </div>
108
- <div
109
- className="line borderColor_default"
110
- />
111
- </div>
112
- `;
113
-
114
- exports[`TextBoxIcon component should display size small - primary 1`] = `
115
- <div
116
- className="container effect flex rowdir"
117
- data-id="containerComponent"
118
- data-title=""
119
- >
120
- <div
121
- className="grow basis shrinkOff"
122
- data-id="boxComponent"
123
- >
124
- <input
125
- className=" container small primary effect borderColor_default"
126
- data-id="textBoxIcon"
127
- maxLength="100"
128
- onBlur={[Function]}
129
- onChange={[Function]}
130
- onFocus={[Function]}
131
- placeholder="Text Area"
132
- type="text"
133
- value=""
134
- />
135
- </div>
136
- <div
137
- className="iconContainer shrinkOff"
138
- data-id="boxComponent"
139
- >
140
- <div
141
- className="flex cover rowdir vCenter"
142
- data-id="containerComponent"
143
- />
144
- </div>
145
- <div
146
- className="line borderColor_default"
147
- />
148
- </div>
149
- `;
150
-
151
- exports[`TextBoxIcon component should display size small - secondary 1`] = `
152
- <div
153
- className="container effect flex rowdir"
154
- data-id="containerComponent"
155
- data-title=""
156
- >
157
- <div
158
- className="grow basis shrinkOff"
159
- data-id="boxComponent"
160
- >
161
- <input
162
- className=" container small secondary effect borderColor_default"
163
- data-id="textBoxIcon"
164
- maxLength="100"
165
- onBlur={[Function]}
166
- onChange={[Function]}
167
- onFocus={[Function]}
168
- placeholder="Text Area"
169
- type="text"
170
- value=""
171
- />
172
- </div>
173
- <div
174
- className="iconContainer shrinkOff"
175
- data-id="boxComponent"
176
- >
177
- <div
178
- className="flex cover rowdir vCenter"
179
- data-id="containerComponent"
180
- />
181
- </div>
182
- <div
183
- className="line borderColor_default"
184
- />
185
- </div>
186
- `;
187
-
188
- exports[`TextBoxIcon component should display size small 1`] = `
189
- <div
190
- className="container effect flex rowdir"
191
- data-id="containerComponent"
192
- data-title=""
193
- >
194
- <div
195
- className="grow basis shrinkOff"
196
- data-id="boxComponent"
197
- >
198
- <input
199
- className=" container small default effect borderColor_default"
200
- data-id="textBoxIcon"
201
- maxLength="100"
202
- onBlur={[Function]}
203
- onChange={[Function]}
204
- onFocus={[Function]}
205
- placeholder="Text Box Icon"
206
- type="text"
207
- value=""
208
- />
209
- </div>
210
- <div
211
- className="iconContainer shrinkOff"
212
- data-id="boxComponent"
213
- >
214
- <div
215
- className="flex cover rowdir vCenter"
216
- data-id="containerComponent"
217
- />
218
- </div>
219
- <div
220
- className="line borderColor_default"
221
- />
222
- </div>
223
- `;
224
-
225
- exports[`TextBoxIcon component should display size xmedium - primary 1`] = `
226
- <div
227
- className="container effect flex rowdir"
228
- data-id="containerComponent"
229
- data-title=""
230
- >
231
- <div
232
- className="grow basis shrinkOff"
233
- data-id="boxComponent"
234
- >
235
- <input
236
- className=" container xmedium primary effect borderColor_default"
237
- data-id="textBoxIcon"
238
- maxLength="100"
239
- onBlur={[Function]}
240
- onChange={[Function]}
241
- onFocus={[Function]}
242
- placeholder="Text Area"
243
- type="text"
244
- value=""
245
- />
246
- </div>
247
- <div
248
- className="iconContainer shrinkOff"
249
- data-id="boxComponent"
250
- >
251
- <div
252
- className="flex cover rowdir vCenter"
253
- data-id="containerComponent"
254
- />
255
- </div>
256
- <div
257
- className="line borderColor_default"
258
- />
259
- </div>
260
- `;
261
-
262
- exports[`TextBoxIcon component should display size xmedium - secondary 1`] = `
263
- <div
264
- className="container effect flex rowdir"
265
- data-id="containerComponent"
266
- data-title=""
267
- >
268
- <div
269
- className="grow basis shrinkOff"
270
- data-id="boxComponent"
271
- >
272
- <input
273
- className=" container xmedium secondary effect borderColor_default"
274
- data-id="textBoxIcon"
275
- maxLength="100"
276
- onBlur={[Function]}
277
- onChange={[Function]}
278
- onFocus={[Function]}
279
- placeholder="Text Area"
280
- type="text"
281
- value=""
282
- />
283
- </div>
284
- <div
285
- className="iconContainer shrinkOff"
286
- data-id="boxComponent"
287
- >
288
- <div
289
- className="flex cover rowdir vCenter"
290
- data-id="containerComponent"
291
- />
292
- </div>
293
- <div
294
- className="line borderColor_default"
295
- />
296
- </div>
297
- `;
298
-
299
- exports[`TextBoxIcon component should display size xmedium 1`] = `
300
- <div
301
- className="container effect flex rowdir"
302
- data-id="containerComponent"
303
- data-title=""
304
- >
305
- <div
306
- className="grow basis shrinkOff"
307
- data-id="boxComponent"
308
- >
309
- <input
310
- className=" container xmedium default effect borderColor_default"
311
- data-id="textBoxIcon"
312
- maxLength="100"
313
- onBlur={[Function]}
314
- onChange={[Function]}
315
- onFocus={[Function]}
316
- placeholder="Text Area"
317
- type="text"
318
- value=""
319
- />
320
- </div>
321
- <div
322
- className="iconContainer shrinkOff"
323
- data-id="boxComponent"
324
- >
325
- <div
326
- className="flex cover rowdir vCenter"
327
- data-id="containerComponent"
328
- />
329
- </div>
330
- <div
331
- className="line borderColor_default"
332
- />
333
- </div>
334
- `;