@zohodesk/components 1.0.0-temp-999 → 1.0.0-temp-69

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 (413) hide show
  1. package/README.md +1 -1
  2. package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +1 -1
  3. package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
  4. package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
  5. package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
  6. package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
  7. package/es/Accordion/Accordion.js +4 -20
  8. package/es/Accordion/AccordionItem.js +4 -19
  9. package/es/Accordion/props/defaultProps.js +8 -0
  10. package/es/Accordion/props/propTypes.js +30 -0
  11. package/es/Animation/Animation.js +4 -25
  12. package/es/Animation/props/defaultProps.js +7 -0
  13. package/es/Animation/props/propTypes.js +12 -0
  14. package/es/AppContainer/AppContainer.js +4 -23
  15. package/es/AppContainer/props/defaultProps.js +8 -0
  16. package/es/AppContainer/props/propTypes.js +15 -0
  17. package/es/Avatar/Avatar.js +4 -44
  18. package/es/Avatar/Avatar.module.css +11 -9
  19. package/es/Avatar/props/defaultProps.js +13 -0
  20. package/es/Avatar/props/propTypes.js +22 -0
  21. package/es/AvatarTeam/AvatarTeam.js +4 -36
  22. package/es/AvatarTeam/AvatarTeam.module.css +21 -7
  23. package/es/AvatarTeam/props/defaultProps.js +13 -0
  24. package/es/AvatarTeam/props/propTypes.js +23 -0
  25. package/es/Button/Button.js +4 -47
  26. package/es/Button/Button.module.css +97 -24
  27. package/es/Button/props/defaultProps.js +15 -0
  28. package/es/Button/props/propTypes.js +22 -0
  29. package/es/Buttongroup/Buttongroup.js +4 -11
  30. package/es/Buttongroup/Buttongroup.module.css +37 -8
  31. package/es/Buttongroup/props/defaultProps.js +4 -0
  32. package/es/Buttongroup/props/propTypes.js +7 -0
  33. package/es/Card/Card.js +12 -60
  34. package/es/Card/props/defaultProps.js +15 -0
  35. package/es/Card/props/propTypes.js +43 -0
  36. package/es/CheckBox/CheckBox.js +4 -59
  37. package/es/CheckBox/CheckBox.module.css +29 -19
  38. package/es/CheckBox/props/defaultProps.js +18 -0
  39. package/es/CheckBox/props/propTypes.js +41 -0
  40. package/es/DateTime/CalendarView.js +6 -26
  41. package/es/DateTime/DateTime.js +4 -62
  42. package/es/DateTime/DateTime.module.css +39 -12
  43. package/es/DateTime/DateWidget.js +4 -83
  44. package/es/DateTime/DateWidget.module.css +9 -5
  45. package/es/DateTime/YearView.js +4 -12
  46. package/es/DateTime/YearView.module.css +17 -7
  47. package/es/DateTime/props/defaultProps.js +50 -0
  48. package/es/DateTime/props/propTypes.js +130 -0
  49. package/es/DropBox/DropBox.js +4 -71
  50. package/es/DropBox/DropBox.module.css +47 -11
  51. package/es/DropBox/props/defaultProps.js +20 -0
  52. package/es/DropBox/props/propTypes.js +47 -0
  53. package/es/DropDown/DropDown.js +7 -34
  54. package/es/DropDown/DropDownHeading.js +4 -19
  55. package/es/DropDown/DropDownHeading.module.css +7 -3
  56. package/es/DropDown/DropDownItem.js +4 -18
  57. package/es/DropDown/DropDownItem.module.css +32 -6
  58. package/es/DropDown/DropDownSearch.js +4 -24
  59. package/es/DropDown/DropDownSeparator.js +2 -4
  60. package/es/DropDown/props/defaultProps.js +18 -0
  61. package/es/DropDown/props/propTypes.js +77 -0
  62. package/es/Label/Label.js +4 -24
  63. package/es/Label/props/defaultProps.js +10 -0
  64. package/es/Label/props/propTypes.js +14 -0
  65. package/es/Layout/Box.js +15 -30
  66. package/es/Layout/Container.js +15 -27
  67. package/es/Layout/Layout.module.css +13 -1
  68. package/es/Layout/docs/Layout__four_Column.docs.js +16 -22
  69. package/es/Layout/props/defaultProps.js +12 -0
  70. package/es/Layout/props/propTypes.js +42 -0
  71. package/es/ListItem/ListContainer.js +4 -41
  72. package/es/ListItem/ListItem.js +4 -50
  73. package/es/ListItem/ListItem.module.css +69 -33
  74. package/es/ListItem/ListItemWithAvatar.js +4 -56
  75. package/es/ListItem/ListItemWithCheckBox.js +4 -40
  76. package/es/ListItem/ListItemWithIcon.js +4 -47
  77. package/es/ListItem/ListItemWithRadio.js +4 -41
  78. package/es/ListItem/props/defaultProps.js +85 -0
  79. package/es/ListItem/props/propTypes.js +185 -0
  80. package/es/Modal/Modal.js +4 -9
  81. package/es/Modal/props/defaultProps.js +3 -0
  82. package/es/Modal/props/propTypes.js +6 -0
  83. package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -91
  84. package/es/MultiSelect/AdvancedMultiSelect.js +4 -113
  85. package/es/MultiSelect/EmptyState.js +4 -29
  86. package/es/MultiSelect/MultiSelect.js +4 -113
  87. package/es/MultiSelect/MultiSelect.module.css +28 -11
  88. package/es/MultiSelect/MultiSelectHeader.js +4 -12
  89. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -99
  90. package/es/MultiSelect/SelectedOptions.js +4 -19
  91. package/es/MultiSelect/SelectedOptions.module.css +8 -2
  92. package/es/MultiSelect/Suggestions.js +5 -34
  93. package/es/MultiSelect/props/defaultProps.js +140 -0
  94. package/es/MultiSelect/props/propTypes.js +360 -0
  95. package/es/PopOver/PopOver.js +7 -78
  96. package/es/PopOver/PopOver.module.css +1 -1
  97. package/es/PopOver/props/defaultProps.js +7 -0
  98. package/es/PopOver/props/propTypes.js +53 -0
  99. package/es/Radio/Radio.js +4 -46
  100. package/es/Radio/Radio.module.css +18 -10
  101. package/es/Radio/props/defaultProps.js +14 -0
  102. package/es/Radio/props/propTypes.js +32 -0
  103. package/es/Responsive/CustomResponsive.js +8 -19
  104. package/es/Responsive/ResizeComponent.js +15 -82
  105. package/es/Responsive/ResizeObserver.js +2 -6
  106. package/es/Responsive/Responsive.js +8 -22
  107. package/es/Responsive/docs/style.module.css +17 -8
  108. package/es/Responsive/props/defaultProps.js +13 -0
  109. package/es/Responsive/props/propTypes.js +25 -0
  110. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -11
  111. package/es/ResponsiveDropBox/props/defaultProps.js +4 -0
  112. package/es/ResponsiveDropBox/props/propTypes.js +7 -0
  113. package/es/Ribbon/Ribbon.js +4 -25
  114. package/es/Ribbon/Ribbon.module.css +93 -28
  115. package/es/Ribbon/props/defaultProps.js +8 -0
  116. package/es/Ribbon/props/propTypes.js +10 -0
  117. package/es/RippleEffect/RippleEffect.js +4 -20
  118. package/es/RippleEffect/RippleEffect.module.css +37 -44
  119. package/es/RippleEffect/props/defaultProps.js +9 -0
  120. package/es/RippleEffect/props/propTypes.js +11 -0
  121. package/es/Select/GroupSelect.js +4 -109
  122. package/es/Select/Select.js +4 -120
  123. package/es/Select/Select.module.css +12 -2
  124. package/es/Select/SelectWithAvatar.js +4 -80
  125. package/es/Select/SelectWithIcon.js +4 -69
  126. package/es/Select/props/defaultProps.js +110 -0
  127. package/es/Select/props/propTypes.js +266 -0
  128. package/es/Stencils/Stencils.js +4 -17
  129. package/es/Stencils/Stencils.module.css +21 -3
  130. package/es/Stencils/props/defaultProps.js +6 -0
  131. package/es/Stencils/props/propTypes.js +7 -0
  132. package/es/Switch/Switch.js +4 -37
  133. package/es/Switch/Switch.module.css +9 -9
  134. package/es/Switch/props/defaultProps.js +10 -0
  135. package/es/Switch/props/propTypes.js +27 -0
  136. package/es/Tab/Tab.js +4 -31
  137. package/es/Tab/Tab.module.css +16 -7
  138. package/es/Tab/TabContent.js +4 -10
  139. package/es/Tab/TabContentWrapper.js +4 -12
  140. package/es/Tab/TabWrapper.js +4 -25
  141. package/es/Tab/Tabs.js +6 -68
  142. package/es/Tab/Tabs.module.css +42 -8
  143. package/es/Tab/docs/tabdocs.module.css +1 -1
  144. package/es/Tab/props/defaultProps.js +39 -0
  145. package/es/Tab/props/propTypes.js +102 -0
  146. package/es/Tag/Tag.js +4 -47
  147. package/es/Tag/Tag.module.css +36 -14
  148. package/es/Tag/props/defaultProps.js +13 -0
  149. package/es/Tag/props/propTypes.js +34 -0
  150. package/es/TextBox/TextBox.js +4 -72
  151. package/es/TextBox/TextBox.module.css +7 -11
  152. package/es/TextBox/props/defaultProps.js +19 -0
  153. package/es/TextBox/props/propTypes.js +53 -0
  154. package/es/TextBoxIcon/TextBoxIcon.js +4 -70
  155. package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
  156. package/es/TextBoxIcon/props/defaultProps.js +21 -0
  157. package/es/TextBoxIcon/props/propTypes.js +49 -0
  158. package/es/Textarea/Textarea.js +4 -47
  159. package/es/Textarea/Textarea.module.css +6 -7
  160. package/es/Textarea/props/defaultProps.js +16 -0
  161. package/es/Textarea/props/propTypes.js +31 -0
  162. package/es/Tooltip/Tooltip.js +4 -12
  163. package/es/Tooltip/Tooltip.module.css +9 -8
  164. package/es/Tooltip/props/defaultProps.js +4 -0
  165. package/es/Tooltip/props/propTypes.js +8 -0
  166. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +4 -23
  167. package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
  168. package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
  169. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -37
  170. package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
  171. package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
  172. package/es/common/animation.module.css +219 -21
  173. package/es/common/basicReset.module.css +2 -12
  174. package/es/common/common.module.css +88 -21
  175. package/es/common/customscroll.module.css +17 -21
  176. package/es/common/docStyle.module.css +79 -32
  177. package/es/common/transition.module.css +50 -10
  178. package/es/deprecated/AdvancedMultiSelect.module.css +22 -8
  179. package/es/deprecated/PortalLayer/PortalLayer.js +4 -16
  180. package/es/deprecated/PortalLayer/props/defaultProps.js +5 -0
  181. package/es/deprecated/PortalLayer/props/propTypes.js +11 -0
  182. package/es/index.js +9 -4
  183. package/es/semantic/Button/Button.js +4 -38
  184. package/es/semantic/Button/props/defaultProps.js +12 -0
  185. package/es/semantic/Button/props/propTypes.js +26 -0
  186. package/es/semantic/Button/semanticButton.module.css +3 -3
  187. package/es/ucl/Grid/Grid.js +45 -0
  188. package/es/ucl/Grid/componentNames.js +6 -0
  189. package/es/ucl/Grid/css/Grid.module.css +217 -0
  190. package/es/ucl/Grid/css/cssJSLogic.js +46 -0
  191. package/es/ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js +41 -0
  192. package/es/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +49 -0
  193. package/es/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +32 -0
  194. package/es/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +41 -0
  195. package/es/ucl/Grid/docs/Grid__Box_Alignment.docs.js +37 -0
  196. package/es/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +41 -0
  197. package/es/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +45 -0
  198. package/es/ucl/Grid/docs/Grid__default.docs.js +61 -0
  199. package/es/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
  200. package/es/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
  201. package/es/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
  202. package/es/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
  203. package/es/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
  204. package/es/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
  205. package/es/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
  206. package/es/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
  207. package/es/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
  208. package/es/ucl/Grid/index.js +5 -0
  209. package/es/ucl/Grid/props/ariaPropTypes.js +6 -0
  210. package/es/ucl/Grid/props/defaultProps.js +8 -0
  211. package/es/ucl/Grid/props/propConstants.js +66 -0
  212. package/es/ucl/Grid/props/propTypes.js +27 -0
  213. package/lib/Accordion/Accordion.js +5 -20
  214. package/lib/Accordion/AccordionItem.js +5 -19
  215. package/lib/Accordion/props/defaultProps.js +16 -0
  216. package/lib/Accordion/props/propTypes.js +42 -0
  217. package/lib/Animation/Animation.js +5 -25
  218. package/lib/Animation/props/defaultProps.js +14 -0
  219. package/lib/Animation/props/propTypes.js +23 -0
  220. package/lib/AppContainer/AppContainer.js +13 -24
  221. package/lib/AppContainer/props/defaultProps.js +15 -0
  222. package/lib/AppContainer/props/propTypes.js +26 -0
  223. package/lib/Avatar/Avatar.js +5 -44
  224. package/lib/Avatar/props/defaultProps.js +20 -0
  225. package/lib/Avatar/props/propTypes.js +33 -0
  226. package/lib/AvatarTeam/AvatarTeam.js +5 -36
  227. package/lib/AvatarTeam/props/defaultProps.js +20 -0
  228. package/lib/AvatarTeam/props/propTypes.js +34 -0
  229. package/lib/Button/Button.js +5 -48
  230. package/lib/Button/props/defaultProps.js +24 -0
  231. package/lib/Button/props/propTypes.js +33 -0
  232. package/lib/Buttongroup/Buttongroup.js +5 -11
  233. package/lib/Buttongroup/props/defaultProps.js +11 -0
  234. package/lib/Buttongroup/props/propTypes.js +18 -0
  235. package/lib/Card/Card.js +13 -60
  236. package/lib/Card/props/defaultProps.js +23 -0
  237. package/lib/Card/props/propTypes.js +57 -0
  238. package/lib/CheckBox/CheckBox.js +7 -60
  239. package/lib/CheckBox/CheckBox.module.css +12 -8
  240. package/lib/CheckBox/props/defaultProps.js +25 -0
  241. package/lib/CheckBox/props/propTypes.js +52 -0
  242. package/lib/DateTime/CalendarView.js +7 -26
  243. package/lib/DateTime/DateTime.js +53 -82
  244. package/lib/DateTime/DateTime.module.css +1 -1
  245. package/lib/DateTime/DateWidget.js +17 -85
  246. package/lib/DateTime/DateWidget.module.css +0 -4
  247. package/lib/DateTime/YearView.js +5 -12
  248. package/lib/DateTime/YearView.module.css +1 -0
  249. package/lib/DateTime/props/defaultProps.js +61 -0
  250. package/lib/DateTime/props/propTypes.js +145 -0
  251. package/lib/DropBox/DropBox.js +6 -72
  252. package/lib/DropBox/props/defaultProps.js +27 -0
  253. package/lib/DropBox/props/propTypes.js +58 -0
  254. package/lib/DropDown/DropDown.js +8 -34
  255. package/lib/DropDown/DropDownHeading.js +5 -19
  256. package/lib/DropDown/DropDownItem.js +5 -18
  257. package/lib/DropDown/DropDownSearch.js +5 -23
  258. package/lib/DropDown/DropDownSeparator.js +2 -4
  259. package/lib/DropDown/props/defaultProps.js +28 -0
  260. package/lib/DropDown/props/propTypes.js +94 -0
  261. package/lib/Label/Label.js +5 -24
  262. package/lib/Label/props/defaultProps.js +17 -0
  263. package/lib/Label/props/propTypes.js +25 -0
  264. package/lib/Layout/Box.js +18 -32
  265. package/lib/Layout/Container.js +18 -29
  266. package/lib/Layout/Layout.module.css +13 -1
  267. package/lib/Layout/docs/Layout__four_Column.docs.js +16 -22
  268. package/lib/Layout/props/defaultProps.js +20 -0
  269. package/lib/Layout/props/propTypes.js +54 -0
  270. package/lib/LightNightMode/Colors.json +496 -397
  271. package/lib/LightNightMode/docs/AlternativeColors.docs.js +23 -1
  272. package/lib/ListItem/ListContainer.js +13 -46
  273. package/lib/ListItem/ListItem.js +7 -52
  274. package/lib/ListItem/ListItem.module.css +18 -19
  275. package/lib/ListItem/ListItemWithAvatar.js +7 -38
  276. package/lib/ListItem/ListItemWithCheckBox.js +7 -42
  277. package/lib/ListItem/ListItemWithIcon.js +7 -49
  278. package/lib/ListItem/ListItemWithRadio.js +7 -43
  279. package/lib/ListItem/props/defaultProps.js +97 -0
  280. package/lib/ListItem/props/propTypes.js +181 -0
  281. package/lib/Modal/Modal.js +5 -9
  282. package/lib/Modal/props/defaultProps.js +10 -0
  283. package/lib/Modal/props/propTypes.js +17 -0
  284. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +118 -172
  285. package/lib/MultiSelect/AdvancedMultiSelect.js +101 -172
  286. package/lib/MultiSelect/EmptyState.js +5 -29
  287. package/lib/MultiSelect/MultiSelect.js +91 -173
  288. package/lib/MultiSelect/MultiSelect.module.css +15 -2
  289. package/lib/MultiSelect/MultiSelectHeader.js +5 -12
  290. package/lib/MultiSelect/MultiSelectWithAvatar.js +83 -152
  291. package/lib/MultiSelect/SelectedOptions.js +5 -19
  292. package/lib/MultiSelect/Suggestions.js +6 -34
  293. package/lib/MultiSelect/props/defaultProps.js +156 -0
  294. package/lib/MultiSelect/props/propTypes.js +378 -0
  295. package/lib/PopOver/PopOver.js +19 -82
  296. package/lib/PopOver/props/defaultProps.js +15 -0
  297. package/lib/PopOver/props/propTypes.js +66 -0
  298. package/lib/Provider/Config.js +3 -1
  299. package/lib/Provider.js +32 -98
  300. package/lib/Radio/Radio.js +5 -46
  301. package/lib/Radio/Radio.module.css +8 -6
  302. package/lib/Radio/props/defaultProps.js +21 -0
  303. package/lib/Radio/props/propTypes.js +43 -0
  304. package/lib/Responsive/CustomResponsive.js +11 -21
  305. package/lib/Responsive/Responsive.js +17 -24
  306. package/lib/Responsive/props/defaultProps.js +23 -0
  307. package/lib/Responsive/props/propTypes.js +39 -0
  308. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +124 -0
  309. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
  310. package/lib/ResponsiveDropBox/props/defaultProps.js +11 -0
  311. package/lib/ResponsiveDropBox/props/propTypes.js +18 -0
  312. package/lib/Ribbon/Ribbon.js +5 -25
  313. package/lib/Ribbon/props/defaultProps.js +15 -0
  314. package/lib/Ribbon/props/propTypes.js +21 -0
  315. package/lib/RippleEffect/RippleEffect.js +5 -20
  316. package/lib/RippleEffect/RippleEffect.module.css +37 -15
  317. package/lib/RippleEffect/props/defaultProps.js +16 -0
  318. package/lib/RippleEffect/props/propTypes.js +22 -0
  319. package/lib/Select/GroupSelect.js +105 -186
  320. package/lib/Select/Select.js +113 -196
  321. package/lib/Select/Select.module.css +6 -0
  322. package/lib/Select/SelectWithAvatar.js +101 -151
  323. package/lib/Select/SelectWithIcon.js +102 -134
  324. package/lib/Select/props/defaultProps.js +113 -0
  325. package/lib/Select/props/propTypes.js +280 -0
  326. package/lib/Stencils/Stencils.js +5 -17
  327. package/lib/Stencils/props/defaultProps.js +13 -0
  328. package/lib/Stencils/props/propTypes.js +18 -0
  329. package/lib/Switch/Switch.js +5 -37
  330. package/lib/Switch/Switch.module.css +3 -2
  331. package/lib/Switch/props/defaultProps.js +17 -0
  332. package/lib/Switch/props/propTypes.js +38 -0
  333. package/lib/Tab/Tab.js +5 -31
  334. package/lib/Tab/TabContent.js +5 -10
  335. package/lib/Tab/TabContentWrapper.js +5 -12
  336. package/lib/Tab/TabWrapper.js +5 -27
  337. package/lib/Tab/Tabs.js +80 -114
  338. package/lib/Tab/Tabs.module.css +2 -1
  339. package/lib/Tab/props/defaultProps.js +50 -0
  340. package/lib/Tab/props/propTypes.js +117 -0
  341. package/lib/Tag/Tag.js +5 -47
  342. package/lib/Tag/Tag.module.css +6 -2
  343. package/lib/Tag/props/defaultProps.js +20 -0
  344. package/lib/Tag/props/propTypes.js +45 -0
  345. package/lib/TextBox/TextBox.js +5 -70
  346. package/lib/TextBox/props/defaultProps.js +26 -0
  347. package/lib/TextBox/props/propTypes.js +62 -0
  348. package/lib/TextBoxIcon/TextBoxIcon.js +5 -70
  349. package/lib/TextBoxIcon/props/defaultProps.js +28 -0
  350. package/lib/TextBoxIcon/props/propTypes.js +60 -0
  351. package/lib/Textarea/Textarea.js +5 -47
  352. package/lib/Textarea/props/defaultProps.js +23 -0
  353. package/lib/Textarea/props/propTypes.js +42 -0
  354. package/lib/Tooltip/Tooltip.js +65 -20
  355. package/lib/Tooltip/Tooltip.module.css +6 -1
  356. package/lib/Tooltip/docs/Tooltip__default.docs.js +50 -11
  357. package/lib/Tooltip/props/defaultProps.js +11 -0
  358. package/lib/Tooltip/props/propTypes.js +19 -0
  359. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -23
  360. package/lib/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
  361. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
  362. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +12 -38
  363. package/lib/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
  364. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +30 -0
  365. package/lib/common/common.module.css +26 -3
  366. package/lib/common/docStyle.module.css +6 -2
  367. package/lib/css.js +0 -2
  368. package/lib/{MultiSelect → deprecated}/AdvancedMultiSelect.module.css +1 -1
  369. package/lib/deprecated/PortalLayer/PortalLayer.js +5 -16
  370. package/lib/deprecated/PortalLayer/props/defaultProps.js +12 -0
  371. package/lib/deprecated/PortalLayer/props/propTypes.js +22 -0
  372. package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
  373. package/lib/index.js +80 -21
  374. package/lib/semantic/Button/Button.js +5 -38
  375. package/lib/semantic/Button/props/defaultProps.js +19 -0
  376. package/lib/semantic/Button/props/propTypes.js +37 -0
  377. package/lib/ucl/Grid/Grid.js +70 -0
  378. package/lib/ucl/Grid/componentNames.js +13 -0
  379. package/lib/ucl/Grid/css/Grid.module.css +217 -0
  380. package/lib/ucl/Grid/css/cssJSLogic.js +44 -0
  381. package/lib/{beta/FocusRing/docs/FocusRing__default.docs.js → ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js} +42 -50
  382. package/lib/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +101 -0
  383. package/lib/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +86 -0
  384. package/lib/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +93 -0
  385. package/lib/ucl/Grid/docs/Grid__Box_Alignment.docs.js +91 -0
  386. package/lib/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +93 -0
  387. package/lib/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +97 -0
  388. package/lib/ucl/Grid/docs/Grid__default.docs.js +113 -0
  389. package/lib/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
  390. package/lib/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
  391. package/lib/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
  392. package/lib/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
  393. package/lib/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
  394. package/lib/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
  395. package/lib/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
  396. package/lib/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
  397. package/lib/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
  398. package/lib/ucl/Grid/index.js +31 -0
  399. package/lib/ucl/Grid/props/ariaPropTypes.js +23 -0
  400. package/lib/ucl/Grid/props/defaultProps.js +19 -0
  401. package/lib/ucl/Grid/props/propConstants.js +73 -0
  402. package/lib/ucl/Grid/props/propTypes.js +46 -0
  403. package/package.json +6 -3
  404. package/es/MultiSelect/AdvancedMultiSelect.module.css +0 -113
  405. package/es/a11y/FocusScope/FocusScope.js +0 -370
  406. package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
  407. package/es/beta/FocusRing/FocusRing.js +0 -281
  408. package/es/beta/FocusRing/FocusRing.module.css +0 -127
  409. package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
  410. package/lib/a11y/FocusScope/FocusScope.js +0 -443
  411. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
  412. package/lib/beta/FocusRing/FocusRing.js +0 -338
  413. package/lib/beta/FocusRing/FocusRing.module.css +0 -152
@@ -0,0 +1,50 @@
1
+ export const CalendarView_defaultProps = {
2
+ dataId: 'dateContainer',
3
+ needBorder: true
4
+ };
5
+ export const Span_defaultProps = {
6
+ dataId: 'calendar-view'
7
+ };
8
+ export const DateTime_defaultProps = {
9
+ isDateTimeField: true,
10
+ dataId: 'dateTime',
11
+ needDefaultTime: true,
12
+ isAbsolute: true,
13
+ isAnimate: true,
14
+ needAction: true,
15
+ boxSize: 'large',
16
+ className: '',
17
+ innerClass: '',
18
+ dateFormat: 'dd/MM/yyyy',
19
+ isPadding: false,
20
+ i18nKeys: {},
21
+ is24Hour: false,
22
+ isDefaultPosition: false
23
+ };
24
+ export const DateWidget_defaultProps = {
25
+ borderColor: 'default',
26
+ dataId: 'dateWidget',
27
+ dateFormat: 'MM/dd/yyyy',
28
+ isDateTime: false,
29
+ isDisabled: false,
30
+ isPopupOpenOnEnter: false,
31
+ isReadOnly: false,
32
+ needBorder: true,
33
+ needDefaultTime: true,
34
+ placeholder: '-None-',
35
+ textBoxSize: 'medium',
36
+ textBoxVariant: 'default',
37
+ timeZone: null,
38
+ isPopupOpenOnClick: true,
39
+ isPopupCloseOnClick: false,
40
+ cantEditOnPopupOpen: true,
41
+ i18nKeys: {},
42
+ needErrorOnBlur: false,
43
+ isEditable: false,
44
+ iconOnHover: false,
45
+ is24Hour: false
46
+ };
47
+ export const YearView_defaultProps = {
48
+ dataId: 'dateContainer',
49
+ needBorder: true
50
+ };
@@ -0,0 +1,130 @@
1
+ import PropTypes from 'prop-types';
2
+ export const CalendarView_propTypes = {
3
+ dataId: PropTypes.string,
4
+ date: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
5
+ month: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
6
+ needBorder: PropTypes.bool,
7
+ onSelect: PropTypes.func,
8
+ year: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
9
+ };
10
+ export const Span_propTypes = {
11
+ dataId: PropTypes.string,
12
+ handleSelect: PropTypes.func,
13
+ i: PropTypes.number,
14
+ incremday: PropTypes.number,
15
+ isActive: PropTypes.bool,
16
+ tdclass: PropTypes.string,
17
+ userSeeMonth: PropTypes.number,
18
+ userSeeYear: PropTypes.number
19
+ };
20
+ export const DateTime_propTypes = {
21
+ boxSize: PropTypes.string,
22
+ className: PropTypes.string,
23
+ dataId: PropTypes.string,
24
+ dateFormat: PropTypes.string,
25
+ // eslint-disable-next-line react/no-unused-prop-types
26
+ defaultTime: PropTypes.string,
27
+ getMethods: PropTypes.func,
28
+ getRef: PropTypes.func,
29
+ i18nKeys: PropTypes.shape({
30
+ timeText: PropTypes.string.isRequired,
31
+ submitText: PropTypes.string.isRequired,
32
+ cancelText: PropTypes.string.isRequired,
33
+ hourEmptyText: PropTypes.string.isRequired,
34
+ minuteEmptyText: PropTypes.string.isRequired,
35
+ nextMonthTitleText: PropTypes.string.isRequired,
36
+ prevMonthTitleText: PropTypes.string.isRequired
37
+ }),
38
+ innerClass: PropTypes.string,
39
+ isAbsolute: PropTypes.bool,
40
+ isActive: PropTypes.bool,
41
+ isAnimate: PropTypes.bool,
42
+ isDateTimeField: PropTypes.bool,
43
+ isPadding: PropTypes.bool,
44
+ isReady: PropTypes.bool,
45
+ max: PropTypes.string,
46
+ maxErrorText: PropTypes.string,
47
+ min: PropTypes.string,
48
+ minErrorText: PropTypes.string,
49
+ // eslint-disable-next-line react/no-unused-prop-types
50
+ needAction: PropTypes.bool,
51
+ needDefaultTime: PropTypes.bool,
52
+ needResponsive: PropTypes.bool,
53
+ onChange: PropTypes.func,
54
+ onClear: PropTypes.func,
55
+ onClick: PropTypes.func,
56
+ onDateSelect: PropTypes.func,
57
+ onError: PropTypes.func,
58
+ onSelect: PropTypes.func,
59
+ position: PropTypes.string,
60
+ timeZone: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
61
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
62
+ is24Hour: PropTypes.bool,
63
+ isDefaultPosition: PropTypes.bool
64
+ };
65
+ export const DateWidget_propTypes = {
66
+ borderColor: PropTypes.oneOf(['transparent', 'default']),
67
+ cantEditOnPopupOpen: PropTypes.bool,
68
+ children: PropTypes.object,
69
+ className: PropTypes.string,
70
+ closePopupOnly: PropTypes.func,
71
+ dataId: PropTypes.string,
72
+ dateFormat: PropTypes.oneOf(['yyyy/MM/dd', 'MM/dd/yyyy', 'dd/MM/yyyy', 'yyyy-MM-dd', 'MM-dd-yyyy', 'dd-MM-yyyy', 'yyyy.MM.dd', 'MM.dd.yyyy', 'dd.MM.yyyy', 'dd/MMMM/YY', 'dd/MMM/YY']),
73
+ defaultPosition: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
74
+ defaultTime: PropTypes.string,
75
+ getContainerRef: PropTypes.func,
76
+ getMethods: PropTypes.func,
77
+ getRef: PropTypes.func,
78
+ getTargetRef: PropTypes.func,
79
+ i18nKeys: PropTypes.object,
80
+ id: PropTypes.string,
81
+ isDateTime: PropTypes.bool,
82
+ isDisabled: PropTypes.bool,
83
+ isEditable: PropTypes.bool,
84
+ isPopupCloseOnClick: PropTypes.bool,
85
+ isPopupOpen: PropTypes.bool,
86
+ isPopupOpenOnClick: PropTypes.bool,
87
+ isPopupOpenOnEnter: PropTypes.bool,
88
+ isPopupReady: PropTypes.bool,
89
+ isReadOnly: PropTypes.bool,
90
+ max: PropTypes.string,
91
+ maxErrorText: PropTypes.string,
92
+ min: PropTypes.string,
93
+ minErrorText: PropTypes.string,
94
+ needBorder: PropTypes.bool,
95
+ needDefaultTime: PropTypes.bool,
96
+ needErrorOnBlur: PropTypes.bool,
97
+ needResponsive: PropTypes.bool,
98
+ onFailValidation: PropTypes.func,
99
+ onKeyDown: PropTypes.func,
100
+ onPassValidation: PropTypes.func,
101
+ onSelect: PropTypes.func,
102
+ placeholder: PropTypes.string,
103
+ position: PropTypes.string,
104
+ removeClose: PropTypes.func,
105
+ textBoxSize: PropTypes.string,
106
+ textBoxVariant: PropTypes.string,
107
+ timeZone: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
108
+ togglePopup: PropTypes.func,
109
+ validation: PropTypes.shape({
110
+ validate: PropTypes.bool,
111
+ validateOn: PropTypes.string,
112
+ rulesOrder: PropTypes.arrayOf(PropTypes.string),
113
+ rules: PropTypes.object,
114
+ messages: PropTypes.object
115
+ }),
116
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
117
+ htmlId: PropTypes.string,
118
+ iconOnHover: PropTypes.bool,
119
+ is24Hour: PropTypes.bool,
120
+ isHideCurrentYear: PropTypes.bool,
121
+ onFocus: PropTypes.func,
122
+ onBlur: PropTypes.func
123
+ };
124
+ export const YearView_propTypes = {
125
+ dataId: PropTypes.string,
126
+ needBorder: PropTypes.bool,
127
+ onSelectMonth: PropTypes.func,
128
+ onSelectYear: PropTypes.func,
129
+ viewedYear: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
130
+ };
@@ -1,7 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || 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); }
2
2
 
3
3
  import React, { Fragment } from 'react';
4
- import PropTypes from 'prop-types';
4
+ import { defaultProps } from './props/defaultProps';
5
+ import { propTypes } from './props/propTypes';
5
6
  import { remConvert } from '../utils/Common';
6
7
  import Modal from '../Modal/Modal';
7
8
  import style from './DropBox.module.css';
@@ -235,77 +236,9 @@ export default class DropBox extends React.Component {
235
236
  }
236
237
 
237
238
  }
238
- DropBox.propTypes = {
239
- animationStyle: PropTypes.oneOf(['default', 'bounce']),
240
- arrowBottom: PropTypes.number,
241
- arrowLeft: PropTypes.number,
242
- arrowPosition: PropTypes.oneOf(['start', 'mid', 'end']),
243
- arrowRight: PropTypes.number,
244
- arrowTop: PropTypes.number,
245
- bottom: PropTypes.number,
246
- boxPosition: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
247
- children: PropTypes.element,
248
- dataId: PropTypes.string,
249
- forwardRef: PropTypes.object,
250
- getRef: PropTypes.func,
251
- isAbsolutePositioningNeeded: PropTypes.bool,
252
- isActive: PropTypes.bool,
253
- isAnimate: PropTypes.bool,
254
- isArrow: PropTypes.bool,
255
- isBoxPaddingNeed: PropTypes.bool,
256
- isPadding: PropTypes.bool,
257
- isRadius: PropTypes.bool,
258
- left: PropTypes.number,
259
- needResponsive: PropTypes.bool,
260
- onClick: PropTypes.func,
261
- right: PropTypes.number,
262
- size: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
263
- top: PropTypes.number,
264
- tourId: PropTypes.string,
265
- htmlId: PropTypes.string,
266
- tabIndex: PropTypes.number,
267
- customClass: PropTypes.shape({
268
- customDropBox: PropTypes.string,
269
- customMobileDropBox: PropTypes.string,
270
- customDropBoxWrap: PropTypes.string,
271
- customMobileDropBoxWrap: PropTypes.string
272
- }),
273
- a11y: PropTypes.shape({
274
- role: PropTypes.string,
275
- ariaMultiselectable: PropTypes.bool,
276
- ariaLabelledby: PropTypes.string
277
- }),
278
- palette: PropTypes.oneOf(['default', 'dark']),
279
- needAutoZindex: PropTypes.bool,
280
- portalId: PropTypes.string,
281
- isRestrictScroll: PropTypes.bool,
282
- customStyle: PropTypes.object
283
- };
284
- DropBox.contextTypes = {
285
- direction: PropTypes.string,
286
- isReducedMotion: PropTypes.bool
287
- };
239
+ DropBox.propTypes = propTypes;
288
240
  DropBox.contextType = LibraryContext;
289
- DropBox.defaultProps = {
290
- animationStyle: 'default',
291
- boxPosition: 'bottomLeft',
292
- dataId: 'dropBox',
293
- isActive: false,
294
- isAnimate: false,
295
- isArrow: true,
296
- isRadius: true,
297
- size: 'default',
298
- needResponsive: true,
299
- isAbsolutePositioningNeeded: true,
300
- isBoxPaddingNeed: false,
301
- isPadding: true,
302
- customClass: {},
303
- a11y: {},
304
- palette: 'default',
305
- needAutoZindex: true,
306
- portalId: 'portal1',
307
- isRestrictScroll: false
308
- };
241
+ DropBox.defaultProps = defaultProps;
309
242
 
310
243
  if (false) {
311
244
  DropBox.docs = {
@@ -28,8 +28,7 @@
28
28
  padding: var(--dropbox_padding);
29
29
  box-shadow: var(--dropbox_box_shadow);
30
30
  }
31
- .defaultPalette,
32
- .darkPalette {
31
+ .defaultPalette, .darkPalette {
33
32
  background-color: var(--dropbox_bg_color);
34
33
  }
35
34
  .radius {
@@ -84,11 +83,13 @@
84
83
  .bottom_shadow {
85
84
  --dropbox_box_shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
86
85
  }
87
- .defaultShadow {
86
+ [dir=ltr] .defaultShadow {
88
87
  box-shadow: 4px 3px 30px var(--zdt_dropbox_default_box_shadow);
89
88
  }
89
+ [dir=rtl] .defaultShadow {
90
+ box-shadow: -4px 3px 30px var(--zdt_dropbox_default_box_shadow);
91
+ }
90
92
  /* box direction styles */
91
- /*rtl:begin:ignore*/
92
93
  .topStart {
93
94
  bottom: 100%;
94
95
  right: 0;
@@ -272,7 +273,6 @@
272
273
  bottom: var(--zd_size28);
273
274
  transform: rotate(-90deg) translateX(-50%);
274
275
  }
275
- /*rtl:end:ignore*/
276
276
  .hidden {
277
277
  visibility: hidden;
278
278
  opacity: 0;
@@ -282,7 +282,10 @@
282
282
  .hidden .subContainer {
283
283
  box-shadow: none;
284
284
  }
285
- .animationBasic {
285
+ [dir=ltr] .animationBasic {
286
+ animation-duration: var(--zd_transition2);
287
+ }
288
+ [dir=rtl] .animationBasic {
286
289
  animation-duration: var(--zd_transition2);
287
290
  }
288
291
  .fadeIn {
@@ -291,11 +294,24 @@
291
294
  }
292
295
  .bounce {
293
296
  composes: animationBasic;
297
+ }
298
+ [dir=ltr] .bounce {
299
+ animation-name: animation;
300
+ animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
301
+ }
302
+ [dir=rtl] .bounce {
294
303
  animation-name: animation;
295
304
  animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
296
305
  }
297
306
  .slideUp {
298
307
  composes: modeForward from '../common/animation.module.css';
308
+ }
309
+ [dir=ltr] .slideUp {
310
+ animation-duration: var(--zd_transition3);
311
+ animation-name: slideUp;
312
+ animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
313
+ }
314
+ [dir=rtl] .slideUp {
299
315
  animation-duration: var(--zd_transition3);
300
316
  animation-name: slideUp;
301
317
  animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
@@ -325,16 +341,23 @@
325
341
  .responsive {
326
342
  position: absolute;
327
343
  bottom: 0;
328
- left: 0;
329
344
  width: 100%;
330
345
  max-height: 90%;
331
346
  }
332
347
 
348
+ [dir=ltr] .responsive {
349
+ left: 0;
350
+ }
351
+
352
+ [dir=rtl] .responsive {
353
+ right: 0;
354
+ }
355
+
333
356
  .closeBar {
334
357
  height: 6px;
358
+ width: 20%;
335
359
  border-radius: 5px;
336
360
  background-color: var(--dropbox_mob_close_bg_color);
337
- width: 20%;
338
361
  cursor: pointer;
339
362
  margin: 0 auto var(--zd_size10);
340
363
  }
@@ -346,19 +369,32 @@
346
369
  }
347
370
  .activateInDelay {
348
371
  composes: modeForward from '../common/animation.module.css';
372
+ pointer-events: none;
373
+ }
374
+ [dir=ltr] .activateInDelay {
375
+ animation-duration: var(--zd_transition1);
376
+ animation-delay: var(--zd_transition2);
377
+ animation-name: activateInDelay;
378
+ }
379
+ [dir=rtl] .activateInDelay {
349
380
  animation-duration: var(--zd_transition1);
350
381
  animation-delay: var(--zd_transition2);
351
- pointer-events: none;
352
382
  animation-name: activateInDelay;
353
383
  }
354
384
  .freezeLayer {
355
385
  position: absolute;
356
386
  top: 0;
357
- left: 0;
358
387
  bottom: 0;
359
- right: 0;
360
388
  composes: activateInDelay;
361
389
  }
390
+ [dir=ltr] .freezeLayer {
391
+ left: 0;
392
+ right: 0;
393
+ }
394
+ [dir=rtl] .freezeLayer {
395
+ right: 0;
396
+ left: 0;
397
+ }
362
398
  .freeze {
363
399
  composes: varClass;
364
400
  background: var(--dropbox_mob_bg_color);
@@ -0,0 +1,20 @@
1
+ export const defaultProps = {
2
+ animationStyle: 'default',
3
+ boxPosition: 'bottomLeft',
4
+ dataId: 'dropBox',
5
+ isActive: false,
6
+ isAnimate: false,
7
+ isArrow: true,
8
+ isRadius: true,
9
+ size: 'default',
10
+ needResponsive: true,
11
+ isAbsolutePositioningNeeded: true,
12
+ isBoxPaddingNeed: false,
13
+ isPadding: true,
14
+ customClass: {},
15
+ a11y: {},
16
+ palette: 'default',
17
+ needAutoZindex: true,
18
+ portalId: 'portal1',
19
+ isRestrictScroll: false
20
+ };
@@ -0,0 +1,47 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ animationStyle: PropTypes.oneOf(['default', 'bounce']),
4
+ arrowBottom: PropTypes.number,
5
+ arrowLeft: PropTypes.number,
6
+ arrowPosition: PropTypes.oneOf(['start', 'mid', 'end']),
7
+ arrowRight: PropTypes.number,
8
+ arrowTop: PropTypes.number,
9
+ bottom: PropTypes.number,
10
+ boxPosition: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
11
+ children: PropTypes.element,
12
+ dataId: PropTypes.string,
13
+ forwardRef: PropTypes.object,
14
+ getRef: PropTypes.func,
15
+ isAbsolutePositioningNeeded: PropTypes.bool,
16
+ isActive: PropTypes.bool,
17
+ isAnimate: PropTypes.bool,
18
+ isArrow: PropTypes.bool,
19
+ isBoxPaddingNeed: PropTypes.bool,
20
+ isPadding: PropTypes.bool,
21
+ isRadius: PropTypes.bool,
22
+ left: PropTypes.number,
23
+ needResponsive: PropTypes.bool,
24
+ onClick: PropTypes.func,
25
+ right: PropTypes.number,
26
+ size: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
27
+ top: PropTypes.number,
28
+ tourId: PropTypes.string,
29
+ htmlId: PropTypes.string,
30
+ tabIndex: PropTypes.number,
31
+ customClass: PropTypes.shape({
32
+ customDropBox: PropTypes.string,
33
+ customMobileDropBox: PropTypes.string,
34
+ customDropBoxWrap: PropTypes.string,
35
+ customMobileDropBoxWrap: PropTypes.string
36
+ }),
37
+ a11y: PropTypes.shape({
38
+ role: PropTypes.string,
39
+ ariaMultiselectable: PropTypes.bool,
40
+ ariaLabelledby: PropTypes.string
41
+ }),
42
+ palette: PropTypes.oneOf(['default', 'dark']),
43
+ needAutoZindex: PropTypes.bool,
44
+ portalId: PropTypes.string,
45
+ isRestrictScroll: PropTypes.bool,
46
+ customStyle: PropTypes.object
47
+ };
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { DropDown_propTypes, DropDownTarget_propTypes, DropDownContainer_propTypes, DropDownItemContainer_propTypes } from './props/propTypes';
3
+ import { DropDownItemContainer_defaultProps } from './props/defaultProps';
3
4
  import style from './DropDown.module.css';
4
5
  import PopOver, { PopOverTarget, PopOverContainer } from '../PopOver/PopOver';
5
6
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['dropdown', 'shadow', 'target', 'menu', 'header', 'headertext', 'list', 'padding', 'listHover', 'active', 'children', 'user', 'footer', 'separator', 'small', 'search', 'medium', 'heading'] }] */
@@ -13,24 +14,7 @@ export default class DropDown extends React.Component {
13
14
  }
14
15
 
15
16
  }
16
- DropDown.propTypes = {
17
- arrowBottom: PropTypes.string,
18
- arrowLeft: PropTypes.string,
19
- arrowPosition: PropTypes.string,
20
- arrowRight: PropTypes.string,
21
- arrowTop: PropTypes.string,
22
- bottom: PropTypes.string,
23
- boxPosition: PropTypes.string,
24
- children: PropTypes.node,
25
- isAnimate: PropTypes.bool,
26
- isArrow: PropTypes.bool,
27
- isPopupOpen: PropTypes.bool,
28
- left: PropTypes.string,
29
- onClick: PropTypes.func,
30
- right: PropTypes.string,
31
- size: PropTypes.string,
32
- top: PropTypes.string
33
- };
17
+ DropDown.propTypes = DropDown_propTypes;
34
18
 
35
19
  if (false) {
36
20
  DropDown.docs = {
@@ -48,9 +32,7 @@ export class DropDownTarget extends React.Component {
48
32
  }
49
33
 
50
34
  }
51
- DropDownTarget.propTypes = {
52
- children: PropTypes.node
53
- };
35
+ DropDownTarget.propTypes = DropDownTarget_propTypes;
54
36
  export class DropDownContainer extends React.Component {
55
37
  render() {
56
38
  let {
@@ -60,9 +42,7 @@ export class DropDownContainer extends React.Component {
60
42
  }
61
43
 
62
44
  }
63
- DropDownContainer.propTypes = {
64
- children: PropTypes.node
65
- };
45
+ DropDownContainer.propTypes = DropDownContainer_propTypes;
66
46
  export class DropDownItemContainer extends React.Component {
67
47
  constructor(props) {
68
48
  super(props);
@@ -98,12 +78,5 @@ export class DropDownItemContainer extends React.Component {
98
78
  }
99
79
 
100
80
  }
101
- DropDownItemContainer.propTypes = {
102
- children: PropTypes.node,
103
- dataId: PropTypes.string,
104
- getRef: PropTypes.func,
105
- onScroll: PropTypes.func
106
- };
107
- DropDownItemContainer.defaultProps = {
108
- dataId: 'drpdwnItemContainer'
109
- };
81
+ DropDownItemContainer.propTypes = DropDownItemContainer_propTypes;
82
+ DropDownItemContainer.defaultProps = DropDownItemContainer_defaultProps;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { DropDownHeading_propTypes } from './props/propTypes';
3
+ import { DropDownHeading_defaultProps } from './props/defaultProps';
3
4
  import style from './DropDownHeading.module.css';
4
5
  export default class DropDownHeading extends React.Component {
5
6
  render() {
@@ -27,24 +28,8 @@ export default class DropDownHeading extends React.Component {
27
28
  }
28
29
 
29
30
  }
30
- DropDownHeading.propTypes = {
31
- children: PropTypes.node,
32
- customClass: PropTypes.string,
33
- palette: PropTypes.oneOf(['light', 'dark']),
34
- text: PropTypes.string,
35
- title: PropTypes.string,
36
- htmlId: PropTypes.string,
37
- a11y: PropTypes.shape({
38
- role: PropTypes.string,
39
- ariaLabelledby: PropTypes.string
40
- })
41
- };
42
- DropDownHeading.defaultProps = {
43
- customClass: '',
44
- children: null,
45
- palette: 'light',
46
- a11y: {}
47
- };
31
+ DropDownHeading.propTypes = DropDownHeading_propTypes;
32
+ DropDownHeading.defaultProps = DropDownHeading_defaultProps;
48
33
 
49
34
  if (false) {
50
35
  DropDownHeading.docs = {
@@ -33,11 +33,15 @@
33
33
  .light {
34
34
  composes: default;
35
35
  }
36
- .light::after,
37
- .dark::after {
38
- left: var(--dropdownheading_underline_left);
36
+ .light::after, .dark::after {
39
37
  background-color: var(--dropdownheading_underline_bg_color);
40
38
  }
39
+ [dir=ltr] .light::after, [dir=ltr] .dark::after {
40
+ left: var(--dropdownheading_underline_left);
41
+ }
42
+ [dir=rtl] .light::after, [dir=rtl] .dark::after {
43
+ right: var(--dropdownheading_underline_left);
44
+ }
41
45
 
42
46
  .dark {
43
47
  composes: default;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { DropDownItem_propTypes } from './props/propTypes';
3
+ import { DropDownItem_defaultProps } from './props/defaultProps';
3
4
  import style from './DropDownItem.module.css';
4
5
  export default class DropDownItem extends React.Component {
5
6
  constructor(props) {
@@ -70,20 +71,5 @@ export default class DropDownItem extends React.Component {
70
71
  }
71
72
 
72
73
  }
73
- DropDownItem.propTypes = {
74
- active: PropTypes.bool,
75
- children: PropTypes.node,
76
- dataId: PropTypes.string,
77
- getRef: PropTypes.func,
78
- hightlight: PropTypes.bool,
79
- id: PropTypes.string,
80
- index: PropTypes.number,
81
- onClick: PropTypes.func,
82
- onHover: PropTypes.func,
83
- value: PropTypes.string,
84
- customClass: PropTypes.string
85
- };
86
- DropDownItem.defaultProps = {
87
- active: false,
88
- dataId: 'dropDwnItemContainer'
89
- };
74
+ DropDownItem.propTypes = DropDownItem_propTypes;
75
+ DropDownItem.defaultProps = DropDownItem_defaultProps;