@zohodesk/components 1.6.1 → 1.6.2

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 (545) hide show
  1. package/README.md +5 -0
  2. package/_react-cli.config.js +24 -0
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +330 -321
  4. package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +13 -13
  5. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +466 -466
  6. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +34 -34
  7. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +33 -29
  8. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +466 -466
  9. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +34 -34
  10. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +33 -29
  11. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +466 -466
  12. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +34 -34
  13. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +33 -29
  14. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +466 -466
  15. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +34 -34
  16. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +33 -29
  17. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +466 -466
  18. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +34 -34
  19. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +33 -29
  20. package/assets/Appearance/light/mode/Component_LightMode.module.css +330 -321
  21. package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +13 -13
  22. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +466 -466
  23. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +34 -34
  24. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +33 -29
  25. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +466 -466
  26. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +34 -34
  27. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +33 -29
  28. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +466 -466
  29. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +34 -34
  30. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +33 -29
  31. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +466 -466
  32. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +34 -34
  33. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +33 -29
  34. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +466 -466
  35. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +34 -34
  36. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +33 -29
  37. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +330 -321
  38. package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +13 -13
  39. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +466 -466
  40. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +34 -34
  41. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +33 -29
  42. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +466 -466
  43. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +34 -34
  44. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +33 -29
  45. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +466 -466
  46. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +34 -34
  47. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +33 -29
  48. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +466 -466
  49. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +34 -34
  50. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +33 -29
  51. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +466 -466
  52. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +34 -34
  53. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +33 -29
  54. package/assets/Contrast/darkContrastLightness.module.css +36 -36
  55. package/assets/Contrast/lightContrastLightness.module.css +36 -36
  56. package/assets/Contrast/pureDarkContrastLightness.module.css +36 -36
  57. package/cbt.config.js +41 -0
  58. package/es/AppContainer/AppContainer.js +9 -10
  59. package/es/Avatar/Avatar.js +5 -4
  60. package/es/Avatar/Avatar.module.css +8 -8
  61. package/es/AvatarTeam/AvatarTeam.js +7 -7
  62. package/es/AvatarTeam/AvatarTeam.module.css +30 -30
  63. package/es/Button/Button.js +6 -5
  64. package/es/Button/css/Button.module.css +19 -19
  65. package/es/Buttongroup/Buttongroup.js +0 -0
  66. package/es/Buttongroup/Buttongroup.module.css +5 -3
  67. package/es/Card/Card.js +0 -0
  68. package/es/CheckBox/CheckBox.js +11 -11
  69. package/es/ColorSelect/ColorMultiSelect.js +4 -2
  70. package/es/ColorSelect/ColorSingleSelect.js +4 -2
  71. package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.js +4 -3
  72. package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
  73. package/es/ColorSelect/_shared/ColoredTag/ColoredTag.js +4 -2
  74. package/es/ColorSelect/_shared/helpers/renderHelpers.js +6 -4
  75. package/es/DateTime/CalendarView.js +0 -0
  76. package/es/DateTime/DateTime.js +5 -4
  77. package/es/DateTime/DateWidget.js +5 -4
  78. package/es/DateTime/Time.js +11 -12
  79. package/es/DateTime/YearView.js +0 -0
  80. package/es/DateTime/common.js +0 -0
  81. package/es/DateTime/index.js +0 -0
  82. package/es/DateTime/objectUtils.js +0 -0
  83. package/es/DateTime/typeChecker.js +0 -0
  84. package/es/DateTime/validator.js +0 -0
  85. package/es/DropBox/DropBox.js +11 -10
  86. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
  87. package/es/DropDown/DropDown.js +1 -2
  88. package/es/DropDown/DropDownHeading.js +0 -0
  89. package/es/DropDown/DropDownHeading.module.css +4 -4
  90. package/es/DropDown/DropDownItem.js +0 -0
  91. package/es/DropDown/DropDownItem.module.css +4 -4
  92. package/es/DropDown/DropDownSearch.js +0 -0
  93. package/es/DropDown/DropDownSearch.module.css +3 -3
  94. package/es/DropDown/DropDownSeparator.js +0 -0
  95. package/es/Label/Label.js +7 -7
  96. package/es/Label/Label.module.css +5 -5
  97. package/es/Layout/Box.js +0 -0
  98. package/es/Layout/Container.js +0 -0
  99. package/es/Layout/utils.js +0 -0
  100. package/es/ListItem/ListContainer.js +5 -6
  101. package/es/ListItem/ListItem.js +5 -4
  102. package/es/ListItem/ListItem.module.css +30 -19
  103. package/es/ListItem/ListItemWithAvatar.js +10 -11
  104. package/es/ListItem/ListItemWithCheckBox.js +5 -4
  105. package/es/ListItem/ListItemWithIcon.js +5 -4
  106. package/es/ListItem/ListItemWithRadio.js +5 -4
  107. package/es/Modal/Modal.js +5 -4
  108. package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
  109. package/es/MultiSelect/AdvancedMultiSelect.js +11 -8
  110. package/es/MultiSelect/EmptyState.js +16 -2
  111. package/es/MultiSelect/MultiSelect.js +10 -8
  112. package/es/MultiSelect/MultiSelectWithAvatar.js +7 -4
  113. package/es/MultiSelect/SelectedOptions.js +8 -6
  114. package/es/MultiSelect/Suggestions.js +8 -6
  115. package/es/MultiSelect/props/propTypes.js +3 -0
  116. package/es/Popup/Popup.js +0 -0
  117. package/es/Radio/Radio.js +11 -11
  118. package/es/Radio/Radio.module.css +9 -8
  119. package/es/Responsive/CustomResponsive.js +0 -0
  120. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  121. package/es/Ribbon/Ribbon.js +0 -0
  122. package/es/Ribbon/Ribbon.module.css +25 -20
  123. package/es/Select/GroupSelect.js +13 -12
  124. package/es/Select/Select.js +14 -12
  125. package/es/Select/SelectWithAvatar.js +13 -12
  126. package/es/Select/SelectWithIcon.js +10 -8
  127. package/es/Select/props/propTypes.js +3 -0
  128. package/es/Stencils/Stencils.js +0 -0
  129. package/es/Stencils/Stencils.module.css +11 -11
  130. package/es/Switch/Switch.js +8 -8
  131. package/es/Tab/Tab.js +5 -4
  132. package/es/Tab/TabContentWrapper.js +5 -4
  133. package/es/Tab/TabWrapper.js +4 -2
  134. package/es/Tab/Tabs.js +19 -20
  135. package/es/Tag/Tag.js +11 -12
  136. package/es/Tag/Tag.module.css +18 -17
  137. package/es/TextBox/TextBox.js +5 -5
  138. package/es/TextBox/TextBox.module.css +9 -9
  139. package/es/TextBoxIcon/TextBoxIcon.js +4 -2
  140. package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
  141. package/es/Textarea/Textarea.js +7 -6
  142. package/es/Textarea/Textarea.module.css +18 -18
  143. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  144. package/es/common/avatarsizes.module.css +16 -16
  145. package/es/common/common.module.css +2 -2
  146. package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
  147. package/es/deprecated/Switch/Switch.js +8 -8
  148. package/es/shared/ArrowIcon/ArrowIcon.js +6 -6
  149. package/es/shared/InputFieldLine/InputFieldLine.js +6 -6
  150. package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
  151. package/es/utils/Common.js +0 -0
  152. package/es/utils/dropDownUtils.js +0 -0
  153. package/es/v1/Label/Label.js +5 -3
  154. package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +40 -34
  155. package/es/v1/Switch/Switch.js +7 -6
  156. package/es/v1/Switch/css/Switch_v1.module.css +28 -28
  157. package/lib/Avatar/Avatar.module.css +8 -8
  158. package/lib/AvatarTeam/AvatarTeam.js +0 -0
  159. package/lib/AvatarTeam/AvatarTeam.module.css +30 -30
  160. package/lib/Button/Button.js +0 -0
  161. package/lib/Button/css/Button.module.css +19 -19
  162. package/lib/Buttongroup/Buttongroup.js +0 -0
  163. package/lib/Buttongroup/Buttongroup.module.css +5 -3
  164. package/lib/Card/Card.js +0 -0
  165. package/lib/CheckBox/CheckBox.js +0 -0
  166. package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
  167. package/lib/DateTime/CalendarView.js +0 -0
  168. package/lib/DateTime/DateTime.js +0 -0
  169. package/lib/DateTime/DateWidget.js +0 -0
  170. package/lib/DateTime/YearView.js +0 -0
  171. package/lib/DateTime/common.js +0 -0
  172. package/lib/DateTime/index.js +0 -0
  173. package/lib/DateTime/objectUtils.js +0 -0
  174. package/lib/DateTime/typeChecker.js +0 -0
  175. package/lib/DateTime/validator.js +0 -0
  176. package/lib/DropBox/DropBox.js +0 -0
  177. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
  178. package/lib/DropDown/DropDown.js +0 -0
  179. package/lib/DropDown/DropDownHeading.js +0 -0
  180. package/lib/DropDown/DropDownHeading.module.css +4 -4
  181. package/lib/DropDown/DropDownItem.js +0 -0
  182. package/lib/DropDown/DropDownItem.module.css +4 -4
  183. package/lib/DropDown/DropDownSearch.js +0 -0
  184. package/lib/DropDown/DropDownSearch.module.css +3 -3
  185. package/lib/DropDown/DropDownSeparator.js +0 -0
  186. package/lib/Label/Label.js +0 -0
  187. package/lib/Label/Label.module.css +5 -5
  188. package/lib/Layout/Box.js +0 -0
  189. package/lib/Layout/Container.js +0 -0
  190. package/lib/Layout/utils.js +0 -0
  191. package/lib/ListItem/ListItem.js +0 -0
  192. package/lib/ListItem/ListItem.module.css +30 -19
  193. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
  194. package/lib/MultiSelect/AdvancedMultiSelect.js +2 -0
  195. package/lib/MultiSelect/EmptyState.js +17 -2
  196. package/lib/MultiSelect/MultiSelect.js +2 -0
  197. package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -0
  198. package/lib/MultiSelect/props/propTypes.js +3 -0
  199. package/lib/Popup/Popup.js +0 -0
  200. package/lib/Radio/Radio.js +0 -0
  201. package/lib/Radio/Radio.module.css +9 -8
  202. package/lib/Responsive/CustomResponsive.js +0 -0
  203. package/lib/Ribbon/Ribbon.js +0 -0
  204. package/lib/Ribbon/Ribbon.module.css +25 -20
  205. package/lib/Select/GroupSelect.js +2 -0
  206. package/lib/Select/Select.js +2 -0
  207. package/lib/Select/SelectWithAvatar.js +2 -0
  208. package/lib/Select/SelectWithIcon.js +2 -0
  209. package/lib/Select/props/propTypes.js +3 -0
  210. package/lib/Stencils/Stencils.js +0 -0
  211. package/lib/Stencils/Stencils.module.css +11 -11
  212. package/lib/Switch/Switch.js +0 -0
  213. package/lib/Tag/Tag.js +0 -0
  214. package/lib/Tag/Tag.module.css +18 -17
  215. package/lib/TextBox/TextBox.js +0 -0
  216. package/lib/TextBox/TextBox.module.css +9 -9
  217. package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
  218. package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
  219. package/lib/Textarea/Textarea.js +0 -0
  220. package/lib/Textarea/Textarea.module.css +18 -18
  221. package/lib/common/avatarsizes.module.css +16 -16
  222. package/lib/common/common.module.css +2 -2
  223. package/lib/deprecated/Switch/Switch.js +0 -0
  224. package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
  225. package/lib/utils/Common.js +0 -0
  226. package/lib/utils/dropDownUtils.js +0 -0
  227. package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +40 -34
  228. package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
  229. package/package.json +15 -20
  230. package/es/v1/Accordion/Accordion.js +0 -66
  231. package/es/v1/Accordion/AccordionItem.js +0 -57
  232. package/es/v1/Accordion/index.js +0 -2
  233. package/es/v1/Accordion/props/defaultProps.js +0 -12
  234. package/es/v1/Accordion/props/propTypes.js +0 -33
  235. package/es/v1/Animation/Animation.js +0 -45
  236. package/es/v1/Animation/props/defaultProps.js +0 -7
  237. package/es/v1/Animation/props/propTypes.js +0 -12
  238. package/es/v1/Animation/utils.js +0 -83
  239. package/es/v1/AppContainer/AppContainer.js +0 -115
  240. package/es/v1/AppContainer/props/defaultProps.js +0 -10
  241. package/es/v1/AppContainer/props/propTypes.js +0 -17
  242. package/es/v1/Avatar/Avatar.js +0 -139
  243. package/es/v1/Avatar/props/defaultProps.js +0 -17
  244. package/es/v1/Avatar/props/propTypes.js +0 -26
  245. package/es/v1/AvatarTeam/AvatarTeam.js +0 -70
  246. package/es/v1/AvatarTeam/props/defaultProps.js +0 -17
  247. package/es/v1/AvatarTeam/props/propTypes.js +0 -27
  248. package/es/v1/Button/Button.js +0 -67
  249. package/es/v1/Button/props/defaultProps.js +0 -18
  250. package/es/v1/Button/props/propTypes.js +0 -28
  251. package/es/v1/Buttongroup/Buttongroup.js +0 -31
  252. package/es/v1/Buttongroup/props/defaultProps.js +0 -6
  253. package/es/v1/Buttongroup/props/propTypes.js +0 -9
  254. package/es/v1/Card/Card.js +0 -237
  255. package/es/v1/Card/index.js +0 -4
  256. package/es/v1/Card/props/defaultProps.js +0 -25
  257. package/es/v1/Card/props/propTypes.js +0 -48
  258. package/es/v1/CheckBox/CheckBox.js +0 -161
  259. package/es/v1/CheckBox/props/defaultProps.js +0 -18
  260. package/es/v1/CheckBox/props/propTypes.js +0 -41
  261. package/es/v1/DateTime/CalendarView.js +0 -254
  262. package/es/v1/DateTime/DateTime.js +0 -779
  263. package/es/v1/DateTime/DateTimePopupFooter.js +0 -47
  264. package/es/v1/DateTime/DateTimePopupHeader.js +0 -105
  265. package/es/v1/DateTime/DateWidget.js +0 -1134
  266. package/es/v1/DateTime/DaysRow.js +0 -32
  267. package/es/v1/DateTime/Time.js +0 -181
  268. package/es/v1/DateTime/YearView.js +0 -264
  269. package/es/v1/DateTime/index.js +0 -1
  270. package/es/v1/DateTime/props/defaultProps.js +0 -63
  271. package/es/v1/DateTime/props/propTypes.js +0 -206
  272. package/es/v1/DropBox/DropBox.js +0 -79
  273. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -133
  274. package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -18
  275. package/es/v1/DropBox/DropBoxElement/props/propTypes.js +0 -51
  276. package/es/v1/DropBox/props/defaultProps.js +0 -14
  277. package/es/v1/DropBox/props/propTypes.js +0 -16
  278. package/es/v1/DropBox/utils/isMobilePopover.js +0 -17
  279. package/es/v1/DropDown/DropDown.js +0 -53
  280. package/es/v1/DropDown/DropDownHeading.js +0 -36
  281. package/es/v1/DropDown/DropDownItem.js +0 -56
  282. package/es/v1/DropDown/DropDownSearch.js +0 -58
  283. package/es/v1/DropDown/DropDownSeparator.js +0 -12
  284. package/es/v1/DropDown/props/defaultProps.js +0 -21
  285. package/es/v1/DropDown/props/propTypes.js +0 -66
  286. package/es/v1/Heading/Heading.js +0 -35
  287. package/es/v1/Heading/props/defaultProps.js +0 -5
  288. package/es/v1/Heading/props/propTypes.js +0 -12
  289. package/es/v1/Layout/Box.js +0 -115
  290. package/es/v1/Layout/Container.js +0 -132
  291. package/es/v1/Layout/index.js +0 -2
  292. package/es/v1/Layout/props/defaultProps.js +0 -16
  293. package/es/v1/Layout/props/propTypes.js +0 -46
  294. package/es/v1/ListItem/ListContainer.js +0 -104
  295. package/es/v1/ListItem/ListItem.js +0 -123
  296. package/es/v1/ListItem/ListItemWithAvatar.js +0 -143
  297. package/es/v1/ListItem/ListItemWithCheckBox.js +0 -104
  298. package/es/v1/ListItem/ListItemWithIcon.js +0 -126
  299. package/es/v1/ListItem/ListItemWithRadio.js +0 -105
  300. package/es/v1/ListItem/index.js +0 -6
  301. package/es/v1/ListItem/props/defaultProps.js +0 -97
  302. package/es/v1/ListItem/props/propTypes.js +0 -202
  303. package/es/v1/Modal/Modal.js +0 -125
  304. package/es/v1/Modal/props/defaultProps.js +0 -3
  305. package/es/v1/Modal/props/propTypes.js +0 -7
  306. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1092
  307. package/es/v1/MultiSelect/AdvancedMultiSelect.js +0 -583
  308. package/es/v1/MultiSelect/EmptyState.js +0 -64
  309. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -50
  310. package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
  311. package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -7
  312. package/es/v1/MultiSelect/MultiSelect.js +0 -1119
  313. package/es/v1/MultiSelect/MultiSelectHeader.js +0 -32
  314. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -208
  315. package/es/v1/MultiSelect/SelectedOptions.js +0 -84
  316. package/es/v1/MultiSelect/Suggestions.js +0 -141
  317. package/es/v1/MultiSelect/index.js +0 -4
  318. package/es/v1/MultiSelect/props/defaultProps.js +0 -165
  319. package/es/v1/MultiSelect/props/propTypes.js +0 -322
  320. package/es/v1/PopOver/PopOver.js +0 -176
  321. package/es/v1/PopOver/props/defaultProps.js +0 -7
  322. package/es/v1/PopOver/props/propTypes.js +0 -53
  323. package/es/v1/Popup/Popup.js +0 -644
  324. package/es/v1/Radio/Radio.js +0 -130
  325. package/es/v1/Radio/props/defaultProps.js +0 -15
  326. package/es/v1/Radio/props/propTypes.js +0 -40
  327. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -56
  328. package/es/v1/ResponsiveDropBox/props/defaultProps.js +0 -4
  329. package/es/v1/ResponsiveDropBox/props/propTypes.js +0 -8
  330. package/es/v1/Ribbon/Ribbon.js +0 -33
  331. package/es/v1/Ribbon/props/defaultProps.js +0 -9
  332. package/es/v1/Ribbon/props/propTypes.js +0 -11
  333. package/es/v1/RippleEffect/RippleEffect.js +0 -25
  334. package/es/v1/RippleEffect/props/defaultProps.js +0 -10
  335. package/es/v1/RippleEffect/props/propTypes.js +0 -12
  336. package/es/v1/Select/GroupSelect.js +0 -818
  337. package/es/v1/Select/Select.js +0 -975
  338. package/es/v1/Select/SelectWithAvatar.js +0 -356
  339. package/es/v1/Select/SelectWithIcon.js +0 -545
  340. package/es/v1/Select/index.js +0 -4
  341. package/es/v1/Select/props/defaultProps.js +0 -126
  342. package/es/v1/Select/props/propTypes.js +0 -297
  343. package/es/v1/Stencils/Stencils.js +0 -26
  344. package/es/v1/Stencils/props/defaultProps.js +0 -6
  345. package/es/v1/Stencils/props/propTypes.js +0 -7
  346. package/es/v1/Tab/Tab.js +0 -106
  347. package/es/v1/Tab/TabContent.js +0 -30
  348. package/es/v1/Tab/TabContentWrapper.js +0 -33
  349. package/es/v1/Tab/TabWrapper.js +0 -55
  350. package/es/v1/Tab/Tabs.js +0 -619
  351. package/es/v1/Tab/index.js +0 -5
  352. package/es/v1/Tab/props/defaultProps.js +0 -51
  353. package/es/v1/Tab/props/propTypes.js +0 -117
  354. package/es/v1/Tab/v1Tab.module.css +0 -100
  355. package/es/v1/Tab/v1TabContent.module.css +0 -4
  356. package/es/v1/Tab/v1Tabs.module.css +0 -167
  357. package/es/v1/Tag/Tag.js +0 -140
  358. package/es/v1/Tag/props/defaultProps.js +0 -15
  359. package/es/v1/Tag/props/propTypes.js +0 -36
  360. package/es/v1/TextBox/TextBox.js +0 -160
  361. package/es/v1/TextBox/props/defaultProps.js +0 -20
  362. package/es/v1/TextBox/props/propTypes.js +0 -56
  363. package/es/v1/TextBoxIcon/TextBoxIcon.js +0 -166
  364. package/es/v1/TextBoxIcon/props/defaultProps.js +0 -24
  365. package/es/v1/TextBoxIcon/props/propTypes.js +0 -53
  366. package/es/v1/Textarea/Textarea.js +0 -100
  367. package/es/v1/Textarea/props/defaultProps.js +0 -17
  368. package/es/v1/Textarea/props/propTypes.js +0 -31
  369. package/es/v1/Tooltip/Tooltip.js +0 -530
  370. package/es/v1/Tooltip/props/defaultProps.js +0 -4
  371. package/es/v1/Tooltip/props/propTypes.js +0 -5
  372. package/es/v1/Typography/Typography.js +0 -38
  373. package/es/v1/Typography/css/cssJSLogic.js +0 -56
  374. package/es/v1/Typography/css/v1_Typography.module.css +0 -380
  375. package/es/v1/Typography/props/defaultProps.js +0 -8
  376. package/es/v1/Typography/props/propTypes.js +0 -27
  377. package/es/v1/Typography/utils/index.js +0 -50
  378. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -69
  379. package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
  380. package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
  381. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -99
  382. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
  383. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -19
  384. package/es/v1/semantic/Button/Button.js +0 -53
  385. package/es/v1/semantic/Button/props/defaultProps.js +0 -12
  386. package/es/v1/semantic/Button/props/propTypes.js +0 -22
  387. package/es/v1/semantic/index.js +0 -1
  388. package/lib/v1/Accordion/Accordion.js +0 -98
  389. package/lib/v1/Accordion/AccordionItem.js +0 -68
  390. package/lib/v1/Accordion/index.js +0 -23
  391. package/lib/v1/Accordion/props/defaultProps.js +0 -20
  392. package/lib/v1/Accordion/props/propTypes.js +0 -45
  393. package/lib/v1/Animation/Animation.js +0 -61
  394. package/lib/v1/Animation/props/defaultProps.js +0 -14
  395. package/lib/v1/Animation/props/propTypes.js +0 -23
  396. package/lib/v1/Animation/utils.js +0 -94
  397. package/lib/v1/AppContainer/AppContainer.js +0 -146
  398. package/lib/v1/AppContainer/props/defaultProps.js +0 -17
  399. package/lib/v1/AppContainer/props/propTypes.js +0 -28
  400. package/lib/v1/Avatar/Avatar.js +0 -191
  401. package/lib/v1/Avatar/props/defaultProps.js +0 -24
  402. package/lib/v1/Avatar/props/propTypes.js +0 -37
  403. package/lib/v1/AvatarTeam/AvatarTeam.js +0 -81
  404. package/lib/v1/AvatarTeam/props/defaultProps.js +0 -24
  405. package/lib/v1/AvatarTeam/props/propTypes.js +0 -38
  406. package/lib/v1/Button/Button.js +0 -82
  407. package/lib/v1/Button/props/defaultProps.js +0 -27
  408. package/lib/v1/Button/props/propTypes.js +0 -40
  409. package/lib/v1/Buttongroup/Buttongroup.js +0 -44
  410. package/lib/v1/Buttongroup/props/defaultProps.js +0 -13
  411. package/lib/v1/Buttongroup/props/propTypes.js +0 -20
  412. package/lib/v1/Card/Card.js +0 -269
  413. package/lib/v1/Card/index.js +0 -37
  414. package/lib/v1/Card/props/defaultProps.js +0 -35
  415. package/lib/v1/Card/props/propTypes.js +0 -62
  416. package/lib/v1/CheckBox/CheckBox.js +0 -172
  417. package/lib/v1/CheckBox/props/defaultProps.js +0 -25
  418. package/lib/v1/CheckBox/props/propTypes.js +0 -52
  419. package/lib/v1/DateTime/CalendarView.js +0 -322
  420. package/lib/v1/DateTime/DateTime.js +0 -877
  421. package/lib/v1/DateTime/DateTimePopupFooter.js +0 -96
  422. package/lib/v1/DateTime/DateTimePopupHeader.js +0 -166
  423. package/lib/v1/DateTime/DateWidget.js +0 -1163
  424. package/lib/v1/DateTime/DaysRow.js +0 -81
  425. package/lib/v1/DateTime/Time.js +0 -270
  426. package/lib/v1/DateTime/YearView.js +0 -325
  427. package/lib/v1/DateTime/index.js +0 -15
  428. package/lib/v1/DateTime/props/defaultProps.js +0 -76
  429. package/lib/v1/DateTime/props/propTypes.js +0 -238
  430. package/lib/v1/DropBox/DropBox.js +0 -109
  431. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -146
  432. package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -25
  433. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -62
  434. package/lib/v1/DropBox/props/defaultProps.js +0 -30
  435. package/lib/v1/DropBox/props/propTypes.js +0 -35
  436. package/lib/v1/DropBox/utils/isMobilePopover.js +0 -25
  437. package/lib/v1/DropDown/DropDown.js +0 -74
  438. package/lib/v1/DropDown/DropDownHeading.js +0 -47
  439. package/lib/v1/DropDown/DropDownItem.js +0 -75
  440. package/lib/v1/DropDown/DropDownSearch.js +0 -77
  441. package/lib/v1/DropDown/DropDownSeparator.js +0 -24
  442. package/lib/v1/DropDown/props/defaultProps.js +0 -31
  443. package/lib/v1/DropDown/props/propTypes.js +0 -87
  444. package/lib/v1/Heading/Heading.js +0 -53
  445. package/lib/v1/Heading/props/defaultProps.js +0 -12
  446. package/lib/v1/Heading/props/propTypes.js +0 -23
  447. package/lib/v1/Layout/Box.js +0 -128
  448. package/lib/v1/Layout/Container.js +0 -145
  449. package/lib/v1/Layout/index.js +0 -23
  450. package/lib/v1/Layout/props/defaultProps.js +0 -24
  451. package/lib/v1/Layout/props/propTypes.js +0 -58
  452. package/lib/v1/ListItem/ListContainer.js +0 -128
  453. package/lib/v1/ListItem/ListItem.js +0 -138
  454. package/lib/v1/ListItem/ListItemWithAvatar.js +0 -167
  455. package/lib/v1/ListItem/ListItemWithCheckBox.js +0 -126
  456. package/lib/v1/ListItem/ListItemWithIcon.js +0 -143
  457. package/lib/v1/ListItem/ListItemWithRadio.js +0 -127
  458. package/lib/v1/ListItem/index.js +0 -55
  459. package/lib/v1/ListItem/props/defaultProps.js +0 -109
  460. package/lib/v1/ListItem/props/propTypes.js +0 -196
  461. package/lib/v1/Modal/Modal.js +0 -166
  462. package/lib/v1/Modal/props/defaultProps.js +0 -10
  463. package/lib/v1/Modal/props/propTypes.js +0 -18
  464. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1180
  465. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +0 -649
  466. package/lib/v1/MultiSelect/EmptyState.js +0 -112
  467. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -62
  468. package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
  469. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -18
  470. package/lib/v1/MultiSelect/MultiSelect.js +0 -1202
  471. package/lib/v1/MultiSelect/MultiSelectHeader.js +0 -78
  472. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -262
  473. package/lib/v1/MultiSelect/SelectedOptions.js +0 -130
  474. package/lib/v1/MultiSelect/Suggestions.js +0 -196
  475. package/lib/v1/MultiSelect/index.js +0 -39
  476. package/lib/v1/MultiSelect/props/defaultProps.js +0 -181
  477. package/lib/v1/MultiSelect/props/propTypes.js +0 -350
  478. package/lib/v1/PopOver/PopOver.js +0 -197
  479. package/lib/v1/PopOver/props/defaultProps.js +0 -15
  480. package/lib/v1/PopOver/props/propTypes.js +0 -66
  481. package/lib/v1/Popup/Popup.js +0 -715
  482. package/lib/v1/Radio/Radio.js +0 -141
  483. package/lib/v1/Radio/props/defaultProps.js +0 -22
  484. package/lib/v1/Radio/props/propTypes.js +0 -51
  485. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -79
  486. package/lib/v1/ResponsiveDropBox/props/defaultProps.js +0 -11
  487. package/lib/v1/ResponsiveDropBox/props/propTypes.js +0 -27
  488. package/lib/v1/Ribbon/Ribbon.js +0 -44
  489. package/lib/v1/Ribbon/props/defaultProps.js +0 -16
  490. package/lib/v1/Ribbon/props/propTypes.js +0 -22
  491. package/lib/v1/RippleEffect/RippleEffect.js +0 -40
  492. package/lib/v1/RippleEffect/props/defaultProps.js +0 -17
  493. package/lib/v1/RippleEffect/props/propTypes.js +0 -23
  494. package/lib/v1/Select/GroupSelect.js +0 -894
  495. package/lib/v1/Select/Select.js +0 -1025
  496. package/lib/v1/Select/SelectWithAvatar.js +0 -406
  497. package/lib/v1/Select/SelectWithIcon.js +0 -607
  498. package/lib/v1/Select/index.js +0 -39
  499. package/lib/v1/Select/props/defaultProps.js +0 -125
  500. package/lib/v1/Select/props/propTypes.js +0 -319
  501. package/lib/v1/Stencils/Stencils.js +0 -43
  502. package/lib/v1/Stencils/props/defaultProps.js +0 -13
  503. package/lib/v1/Stencils/props/propTypes.js +0 -18
  504. package/lib/v1/Tab/Tab.js +0 -132
  505. package/lib/v1/Tab/TabContent.js +0 -42
  506. package/lib/v1/Tab/TabContentWrapper.js +0 -47
  507. package/lib/v1/Tab/TabWrapper.js +0 -89
  508. package/lib/v1/Tab/Tabs.js +0 -688
  509. package/lib/v1/Tab/index.js +0 -47
  510. package/lib/v1/Tab/props/defaultProps.js +0 -62
  511. package/lib/v1/Tab/props/propTypes.js +0 -132
  512. package/lib/v1/Tab/v1Tab.module.css +0 -100
  513. package/lib/v1/Tab/v1TabContent.module.css +0 -4
  514. package/lib/v1/Tab/v1Tabs.module.css +0 -167
  515. package/lib/v1/Tag/Tag.js +0 -160
  516. package/lib/v1/Tag/props/defaultProps.js +0 -22
  517. package/lib/v1/Tag/props/propTypes.js +0 -47
  518. package/lib/v1/TextBox/TextBox.js +0 -175
  519. package/lib/v1/TextBox/props/defaultProps.js +0 -27
  520. package/lib/v1/TextBox/props/propTypes.js +0 -62
  521. package/lib/v1/TextBoxIcon/TextBoxIcon.js +0 -206
  522. package/lib/v1/TextBoxIcon/props/defaultProps.js +0 -31
  523. package/lib/v1/TextBoxIcon/props/propTypes.js +0 -72
  524. package/lib/v1/Textarea/Textarea.js +0 -118
  525. package/lib/v1/Textarea/props/defaultProps.js +0 -24
  526. package/lib/v1/Textarea/props/propTypes.js +0 -42
  527. package/lib/v1/Tooltip/Tooltip.js +0 -599
  528. package/lib/v1/Tooltip/props/defaultProps.js +0 -11
  529. package/lib/v1/Tooltip/props/propTypes.js +0 -16
  530. package/lib/v1/Typography/Typography.js +0 -56
  531. package/lib/v1/Typography/css/cssJSLogic.js +0 -48
  532. package/lib/v1/Typography/css/v1_Typography.module.css +0 -380
  533. package/lib/v1/Typography/props/defaultProps.js +0 -15
  534. package/lib/v1/Typography/props/propTypes.js +0 -38
  535. package/lib/v1/Typography/utils/index.js +0 -59
  536. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -90
  537. package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
  538. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
  539. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -126
  540. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
  541. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -30
  542. package/lib/v1/semantic/Button/Button.js +0 -63
  543. package/lib/v1/semantic/Button/props/defaultProps.js +0 -19
  544. package/lib/v1/semantic/Button/props/propTypes.js +0 -33
  545. package/lib/v1/semantic/index.js +0 -15
@@ -1,81 +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
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _propTypes = require("./props/propTypes");
13
-
14
- var _DateTimeModule = _interopRequireDefault(require("../../DateTime/DateTime.module.css"));
15
-
16
- var _Layout = require("../Layout");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
-
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
-
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
-
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
-
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
-
36
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
37
-
38
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
-
40
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
-
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
-
44
- var DaysRow = /*#__PURE__*/function (_PureComponent) {
45
- _inherits(DaysRow, _PureComponent);
46
-
47
- var _super = _createSuper(DaysRow);
48
-
49
- function DaysRow() {
50
- _classCallCheck(this, DaysRow);
51
-
52
- return _super.apply(this, arguments);
53
- }
54
-
55
- _createClass(DaysRow, [{
56
- key: "render",
57
- value: function render() {
58
- var _this$props = this.props,
59
- dayNames = _this$props.dayNames,
60
- dayNamesShort = _this$props.dayNamesShort,
61
- holidays = _this$props.holidays;
62
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
63
- alignBox: "row",
64
- align: "center",
65
- className: _DateTimeModule["default"].days
66
- }, dayNames.map(function (dayName, index) {
67
- return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
68
- key: dayName,
69
- className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(holidays.includes(index) ? _DateTimeModule["default"].holiday : ''),
70
- "data-title": dayName,
71
- "aria-label": dayName
72
- }, dayNamesShort[index]);
73
- }));
74
- }
75
- }]);
76
-
77
- return DaysRow;
78
- }(_react.PureComponent);
79
-
80
- exports["default"] = DaysRow;
81
- DaysRow.propTypes = _propTypes.DaysRow_propTypes;
@@ -1,270 +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
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _propTypes = require("./props/propTypes");
13
-
14
- var _defaultProps = require("./props/defaultProps");
15
-
16
- var _Layout = require("../Layout");
17
-
18
- var _Select = _interopRequireDefault(require("../Select/Select"));
19
-
20
- var _DateTimeModule = _interopRequireDefault(require("../../DateTime/DateTime.module.css"));
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
-
26
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
-
28
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
-
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
-
40
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
-
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
50
- var Time = /*#__PURE__*/function (_PureComponent) {
51
- _inherits(Time, _PureComponent);
52
-
53
- var _super = _createSuper(Time);
54
-
55
- function Time() {
56
- _classCallCheck(this, Time);
57
-
58
- return _super.apply(this, arguments);
59
- }
60
-
61
- _createClass(Time, [{
62
- key: "render",
63
- value: function render() {
64
- var _this$props = this.props,
65
- timeText = _this$props.timeText,
66
- dataId = _this$props.dataId,
67
- hourSuggestions = _this$props.hourSuggestions,
68
- onHourSelect = _this$props.onHourSelect,
69
- hours = _this$props.hours,
70
- hourEmptyText = _this$props.hourEmptyText,
71
- needResponsive = _this$props.needResponsive,
72
- minSuggestions = _this$props.minSuggestions,
73
- onMinutesSelect = _this$props.onMinutesSelect,
74
- mins = _this$props.mins,
75
- minuteEmptyText = _this$props.minuteEmptyText,
76
- ampmSuggestions = _this$props.ampmSuggestions,
77
- onAmPmSelect = _this$props.onAmPmSelect,
78
- amPm = _this$props.amPm,
79
- is24Hour = _this$props.is24Hour,
80
- _this$props$customPro = _this$props.customProps,
81
- customProps = _this$props$customPro === void 0 ? {} : _this$props$customPro;
82
- var _customProps$HourSele = customProps.HourSelectProps,
83
- HourSelectProps = _customProps$HourSele === void 0 ? {} : _customProps$HourSele,
84
- _customProps$MinuteSe = customProps.MinuteSelectProps,
85
- MinuteSelectProps = _customProps$MinuteSe === void 0 ? {} : _customProps$MinuteSe,
86
- _customProps$AmPmSele = customProps.AmPmSelectProps,
87
- AmPmSelectProps = _customProps$AmPmSele === void 0 ? {} : _customProps$AmPmSele;
88
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
89
- className: _DateTimeModule["default"].text
90
- }, timeText), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
91
- alignBox: "row",
92
- align: "vertical",
93
- className: _DateTimeModule["default"].timesection,
94
- isCover: false,
95
- dataId: "".concat(dataId, "_timeContainer")
96
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
97
- flexible: true,
98
- className: _DateTimeModule["default"].dropDownContainer
99
- }, /*#__PURE__*/_react["default"].createElement(Hour, {
100
- hourSuggestions: hourSuggestions,
101
- onHourSelect: onHourSelect,
102
- hours: hours,
103
- needResponsive: needResponsive,
104
- hourEmptyText: hourEmptyText,
105
- customProps: HourSelectProps
106
- })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
107
- flexible: true,
108
- className: _DateTimeModule["default"].dropDownContainer
109
- }, /*#__PURE__*/_react["default"].createElement(Minute, {
110
- minSuggestions: minSuggestions,
111
- onMinutesSelect: onMinutesSelect,
112
- mins: mins,
113
- minuteEmptyText: minuteEmptyText,
114
- needResponsive: needResponsive,
115
- customProps: MinuteSelectProps
116
- })), !is24Hour ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
117
- flexible: true,
118
- className: _DateTimeModule["default"].dropDownContainer
119
- }, /*#__PURE__*/_react["default"].createElement(AmPm, {
120
- ampmSuggestions: ampmSuggestions,
121
- onAmPmSelect: onAmPmSelect,
122
- amPm: amPm,
123
- needResponsive: needResponsive,
124
- customProps: AmPmSelectProps
125
- })) : null));
126
- }
127
- }]);
128
-
129
- return Time;
130
- }(_react.PureComponent);
131
-
132
- exports["default"] = Time;
133
- Time.propTypes = _propTypes.Time_propTypes;
134
- Time.defaultProps = _defaultProps.Time_defaultProps;
135
-
136
- var Hour = /*#__PURE__*/function (_React$PureComponent) {
137
- _inherits(Hour, _React$PureComponent);
138
-
139
- var _super2 = _createSuper(Hour);
140
-
141
- function Hour() {
142
- _classCallCheck(this, Hour);
143
-
144
- return _super2.apply(this, arguments);
145
- }
146
-
147
- _createClass(Hour, [{
148
- key: "render",
149
- value: function render() {
150
- var _this$props2 = this.props,
151
- hourSuggestions = _this$props2.hourSuggestions,
152
- onHourSelect = _this$props2.onHourSelect,
153
- hours = _this$props2.hours,
154
- needResponsive = _this$props2.needResponsive,
155
- hourEmptyText = _this$props2.hourEmptyText,
156
- customProps = _this$props2.customProps;
157
- return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
158
- options: hourSuggestions,
159
- onChange: onHourSelect,
160
- selectedValue: hours,
161
- needSearch: true,
162
- emptyMessage: hourEmptyText,
163
- animationStyle: "bounce",
164
- textBoxSize: "xmedium",
165
- textBoxVariant: "primary",
166
- searchBoxSize: "xmedium",
167
- searchBoxPlaceHolder: "",
168
- maxLength: "2",
169
- popupGroup: "calender",
170
- size: "small",
171
- dataId: "hourField",
172
- needResponsive: needResponsive,
173
- needListBorder: true,
174
- needTick: false,
175
- listItemSize: "small"
176
- }, customProps));
177
- }
178
- }]);
179
-
180
- return Hour;
181
- }(_react["default"].PureComponent);
182
-
183
- var Minute = /*#__PURE__*/function (_React$PureComponent2) {
184
- _inherits(Minute, _React$PureComponent2);
185
-
186
- var _super3 = _createSuper(Minute);
187
-
188
- function Minute() {
189
- _classCallCheck(this, Minute);
190
-
191
- return _super3.apply(this, arguments);
192
- }
193
-
194
- _createClass(Minute, [{
195
- key: "render",
196
- value: function render() {
197
- var _this$props3 = this.props,
198
- minSuggestions = _this$props3.minSuggestions,
199
- onMinutesSelect = _this$props3.onMinutesSelect,
200
- mins = _this$props3.mins,
201
- minuteEmptyText = _this$props3.minuteEmptyText,
202
- needResponsive = _this$props3.needResponsive,
203
- customProps = _this$props3.customProps;
204
- return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
205
- options: minSuggestions,
206
- onChange: onMinutesSelect,
207
- selectedValue: mins,
208
- needSearch: true,
209
- emptyMessage: minuteEmptyText,
210
- animationStyle: "bounce",
211
- textBoxSize: "xmedium",
212
- textBoxVariant: "primary",
213
- searchBoxSize: "xmedium",
214
- searchBoxPlaceHolder: "",
215
- maxLength: "2",
216
- popupGroup: "calender",
217
- size: "small",
218
- dataId: "minuteField",
219
- needResponsive: needResponsive,
220
- needListBorder: true,
221
- needTick: false,
222
- listItemSize: "small"
223
- }, customProps));
224
- }
225
- }]);
226
-
227
- return Minute;
228
- }(_react["default"].PureComponent);
229
-
230
- var AmPm = /*#__PURE__*/function (_React$PureComponent3) {
231
- _inherits(AmPm, _React$PureComponent3);
232
-
233
- var _super4 = _createSuper(AmPm);
234
-
235
- function AmPm() {
236
- _classCallCheck(this, AmPm);
237
-
238
- return _super4.apply(this, arguments);
239
- }
240
-
241
- _createClass(AmPm, [{
242
- key: "render",
243
- value: function render() {
244
- var _this$props4 = this.props,
245
- ampmSuggestions = _this$props4.ampmSuggestions,
246
- onAmPmSelect = _this$props4.onAmPmSelect,
247
- amPm = _this$props4.amPm,
248
- needResponsive = _this$props4.needResponsive,
249
- customProps = _this$props4.customProps;
250
- return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
251
- options: ampmSuggestions,
252
- onChange: onAmPmSelect,
253
- selectedValue: amPm,
254
- animationStyle: "bounce",
255
- textBoxSize: "xmedium",
256
- textBoxVariant: "primary",
257
- maxLength: "2",
258
- popupGroup: "calender",
259
- size: "small",
260
- dataId: "ampmField",
261
- needResponsive: needResponsive,
262
- needListBorder: true,
263
- needTick: false,
264
- listItemSize: "small"
265
- }, customProps));
266
- }
267
- }]);
268
-
269
- return AmPm;
270
- }(_react["default"].PureComponent);
@@ -1,325 +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
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _propTypes = require("./props/propTypes");
13
-
14
- var _defaultProps = require("./props/defaultProps");
15
-
16
- var _virtualizer = require("@zohodesk/virtualizer");
17
-
18
- var _Layout = require("../Layout");
19
-
20
- var _icons = require("@zohodesk/icons");
21
-
22
- var _Heading = _interopRequireDefault(require("../Heading/Heading"));
23
-
24
- var _YearViewModule = _interopRequireDefault(require("../../DateTime/YearView.module.css"));
25
-
26
- var _dateFormatUtils = require("../../DateTime/dateFormatUtils");
27
-
28
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
-
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
-
40
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
-
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
50
- var monthNamesData = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
51
-
52
- function getYears() {
53
- var years = [];
54
-
55
- var _getYearDetails = (0, _dateFormatUtils.getYearDetails)(),
56
- startPoint = _getYearDetails.startPoint,
57
- endPoint = _getYearDetails.endPoint;
58
-
59
- for (var i = startPoint; i <= endPoint; i++) {
60
- years.push(i);
61
- }
62
-
63
- return years;
64
- }
65
-
66
- var Year = /*#__PURE__*/function (_React$PureComponent) {
67
- _inherits(Year, _React$PureComponent);
68
-
69
- var _super = _createSuper(Year);
70
-
71
- function Year(props) {
72
- var _this;
73
-
74
- _classCallCheck(this, Year);
75
-
76
- _this = _super.call(this, props);
77
- _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
78
- return _this;
79
- }
80
-
81
- _createClass(Year, [{
82
- key: "handleClick",
83
- value: function handleClick() {
84
- var _this$props = this.props,
85
- year = _this$props.year,
86
- onClick = _this$props.onClick;
87
- onClick && onClick(year);
88
- }
89
- }, {
90
- key: "render",
91
- value: function render() {
92
- var _this$props2 = this.props,
93
- year = _this$props2.year,
94
- isActive = _this$props2.isActive,
95
- isOpen = _this$props2.isOpen;
96
- return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
97
- className: "".concat(_YearViewModule["default"].year, " ").concat(isActive ? _YearViewModule["default"].isActive : ''),
98
- onClick: this.handleClick,
99
- dataId: isActive ? "yearAtv_".concat(year) : "year_".concat(year)
100
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
101
- alignBox: "row",
102
- align: "vertical"
103
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
104
- flexible: true
105
- }, /*#__PURE__*/_react["default"].createElement(_Heading["default"], {
106
- className: _YearViewModule["default"].yearText,
107
- title: year,
108
- a11y: {
109
- tabindex: '0'
110
- },
111
- tagName: "h4"
112
- })), /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
113
- name: "ZD-arrowDownSingle",
114
- size: "7",
115
- isBold: true,
116
- iconClass: isOpen ? "".concat(_YearViewModule["default"].arrow, " ").concat(_YearViewModule["default"].arrowActive) : _YearViewModule["default"].arrow
117
- })));
118
- }
119
- }]);
120
-
121
- return Year;
122
- }(_react["default"].PureComponent);
123
-
124
- var Month = /*#__PURE__*/function (_React$PureComponent2) {
125
- _inherits(Month, _React$PureComponent2);
126
-
127
- var _super2 = _createSuper(Month);
128
-
129
- function Month(props) {
130
- var _this2;
131
-
132
- _classCallCheck(this, Month);
133
-
134
- _this2 = _super2.call(this, props);
135
- _this2.handleClick = _this2.handleClick.bind(_assertThisInitialized(_this2));
136
- return _this2;
137
- }
138
-
139
- _createClass(Month, [{
140
- key: "handleClick",
141
- value: function handleClick() {
142
- var _this$props3 = this.props,
143
- month = _this$props3.month,
144
- onClick = _this$props3.onClick;
145
- var monthIndex = monthNamesData.indexOf(month);
146
- monthIndex = monthIndex === -1 ? 0 : monthIndex;
147
- onClick && onClick(monthIndex);
148
- }
149
- }, {
150
- key: "render",
151
- value: function render() {
152
- var _this$props4 = this.props,
153
- month = _this$props4.month,
154
- isActive = _this$props4.isActive,
155
- displayText = _this$props4.displayText,
156
- hoverText = _this$props4.hoverText;
157
- return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
158
- dataId: "month_".concat(month),
159
- className: "".concat(_YearViewModule["default"].month, " ").concat(isActive ? _YearViewModule["default"].currentMonth : ''),
160
- onClick: this.handleClick,
161
- "data-title": hoverText,
162
- "aria-label": month
163
- }, displayText);
164
- }
165
- }]);
166
-
167
- return Month;
168
- }(_react["default"].PureComponent);
169
-
170
- var YearView = /*#__PURE__*/function (_React$PureComponent3) {
171
- _inherits(YearView, _React$PureComponent3);
172
-
173
- var _super3 = _createSuper(YearView);
174
-
175
- function YearView(props) {
176
- var _this3;
177
-
178
- _classCallCheck(this, YearView);
179
-
180
- _this3 = _super3.call(this, props);
181
- _this3.renderListItem = _this3.renderListItem.bind(_assertThisInitialized(_this3));
182
- _this3.handleMonthClick = _this3.handleMonthClick.bind(_assertThisInitialized(_this3));
183
- _this3.handleYearClick = _this3.handleYearClick.bind(_assertThisInitialized(_this3));
184
- _this3.getPublicMethods = _this3.getPublicMethods.bind(_assertThisInitialized(_this3));
185
- _this3.handleScrollToYear = _this3.handleScrollToYear.bind(_assertThisInitialized(_this3));
186
- _this3.handleUpdateLocalYear = _this3.handleUpdateLocalYear.bind(_assertThisInitialized(_this3));
187
- _this3.years = getYears();
188
- _this3.state = {
189
- localYear: ''
190
- };
191
- return _this3;
192
- }
193
-
194
- _createClass(YearView, [{
195
- key: "componentDidMount",
196
- value: function componentDidMount() {
197
- this.handleScrollToYear(this.props);
198
- this.handleUpdateLocalYear(this.props);
199
- }
200
- }, {
201
- key: "componentDidUpdate",
202
- value: function componentDidUpdate(prevProps) {
203
- var viewedYear = this.props.viewedYear;
204
- viewedYear = parseInt(viewedYear) || 0;
205
- var oldViewedYear = prevProps.viewedYear;
206
- oldViewedYear = parseInt(oldViewedYear) || 0;
207
-
208
- if (viewedYear !== oldViewedYear) {
209
- this.handleScrollToYear(this.props);
210
- this.handleUpdateLocalYear(this.props);
211
- }
212
- }
213
- }, {
214
- key: "handleUpdateLocalYear",
215
- value: function handleUpdateLocalYear(props) {
216
- var _this4 = this;
217
-
218
- var viewedYear = props.viewedYear;
219
- viewedYear = parseInt(viewedYear) || 0;
220
- setTimeout(function () {
221
- _this4.setState({
222
- localYear: viewedYear
223
- });
224
- }, 150);
225
- }
226
- }, {
227
- key: "handleScrollToYear",
228
- value: function handleScrollToYear(props) {
229
- var _this$years = this.years,
230
- years = _this$years === void 0 ? [] : _this$years,
231
- scrollToIndex = this.scrollToIndex;
232
- var viewedYear = props.viewedYear;
233
- viewedYear = parseInt(viewedYear) || 0;
234
- var yearIndex = years.indexOf(viewedYear);
235
- yearIndex >= 0 && scrollToIndex && scrollToIndex(yearIndex, 0, {
236
- duration: 0
237
- });
238
- }
239
- }, {
240
- key: "getPublicMethods",
241
- value: function getPublicMethods(methods) {
242
- var scrollToIndex = methods.scrollToIndex;
243
- this.scrollToIndex = scrollToIndex;
244
- }
245
- }, {
246
- key: "handleMonthClick",
247
- value: function handleMonthClick(month) {
248
- var onSelectMonth = this.props.onSelectMonth;
249
- onSelectMonth && onSelectMonth(month);
250
- }
251
- }, {
252
- key: "handleYearClick",
253
- value: function handleYearClick(year) {
254
- var onSelectYear = this.props.onSelectYear;
255
- onSelectYear && onSelectYear(year);
256
- }
257
- }, {
258
- key: "renderListItem",
259
- value: function renderListItem(_ref) {
260
- var _this5 = this;
261
-
262
- var index = _ref.index,
263
- virtualizerStyle = _ref.style,
264
- ref = _ref.ref;
265
- var years = this.years;
266
- var year = years[index];
267
- var _this$props5 = this.props,
268
- viewedYear = _this$props5.viewedYear,
269
- viewedMonth = _this$props5.viewedMonth,
270
- monthNamesShort = _this$props5.monthNamesShort,
271
- isMonthOpen = _this$props5.isMonthOpen;
272
- viewedYear = parseInt(viewedYear) || 0;
273
- var localYear = this.state.localYear;
274
- localYear = parseInt(localYear) || 0;
275
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
276
- isCover: false,
277
- className: _YearViewModule["default"].yearBox,
278
- eleRef: ref,
279
- style: virtualizerStyle
280
- }, /*#__PURE__*/_react["default"].createElement(Year, {
281
- year: year,
282
- onClick: this.handleYearClick,
283
- isActive: viewedYear === year,
284
- isOpen: isMonthOpen
285
- }), viewedYear === year && isMonthOpen ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
286
- flexible: true
287
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
288
- alignBox: "row",
289
- wrap: "wrap",
290
- align: "between",
291
- className: "".concat(_YearViewModule["default"].yearContainer, " ").concat(viewedYear !== localYear && viewedYear === year ? _YearViewModule["default"].toggleYear : '')
292
- }, monthNamesData.map(function (month, index) {
293
- var monthIndex = monthNamesData.indexOf(month);
294
- return /*#__PURE__*/_react["default"].createElement(Month, {
295
- key: month,
296
- month: month,
297
- onClick: _this5.handleMonthClick,
298
- isActive: monthIndex === viewedMonth,
299
- displayText: monthNamesShort[index] // hoverText={monthNames[index]}
300
-
301
- });
302
- }))) : null);
303
- }
304
- }, {
305
- key: "render",
306
- value: function render() {
307
- var _this$years2 = this.years,
308
- years = _this$years2 === void 0 ? [] : _this$years2;
309
- return /*#__PURE__*/_react["default"].createElement(_virtualizer.Virtualizer, {
310
- elementRenderer: this.renderListItem,
311
- elementsCount: years.length,
312
- className: _YearViewModule["default"].container,
313
- getExposedPublicMethods: this.getPublicMethods,
314
- isElementsFixedHeight: false,
315
- dataId: "yearList"
316
- });
317
- }
318
- }]);
319
-
320
- return YearView;
321
- }(_react["default"].PureComponent);
322
-
323
- exports["default"] = YearView;
324
- YearView.propTypes = _propTypes.YearView_propTypes;
325
- YearView.defaultProps = _defaultProps.YearView_defaultProps;