@zohodesk/components 1.0.0-temp-71 → 1.0.0-temp-73

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 (412) hide show
  1. package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +1 -1
  2. package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
  3. package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
  4. package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
  5. package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
  6. package/es/Accordion/Accordion.js +4 -20
  7. package/es/Accordion/AccordionItem.js +4 -19
  8. package/es/Accordion/props/defaultProps.js +8 -0
  9. package/es/Accordion/props/propTypes.js +30 -0
  10. package/es/Animation/Animation.js +4 -25
  11. package/es/Animation/props/defaultProps.js +7 -0
  12. package/es/Animation/props/propTypes.js +12 -0
  13. package/es/AppContainer/AppContainer.js +4 -23
  14. package/es/AppContainer/props/defaultProps.js +8 -0
  15. package/es/AppContainer/props/propTypes.js +15 -0
  16. package/es/Avatar/Avatar.js +4 -44
  17. package/es/Avatar/Avatar.module.css +11 -9
  18. package/es/Avatar/props/defaultProps.js +13 -0
  19. package/es/Avatar/props/propTypes.js +22 -0
  20. package/es/AvatarTeam/AvatarTeam.js +4 -36
  21. package/es/AvatarTeam/AvatarTeam.module.css +21 -7
  22. package/es/AvatarTeam/props/defaultProps.js +13 -0
  23. package/es/AvatarTeam/props/propTypes.js +23 -0
  24. package/es/Button/Button.js +4 -47
  25. package/es/Button/Button.module.css +97 -24
  26. package/es/Button/props/defaultProps.js +15 -0
  27. package/es/Button/props/propTypes.js +22 -0
  28. package/es/Buttongroup/Buttongroup.js +4 -11
  29. package/es/Buttongroup/Buttongroup.module.css +37 -8
  30. package/es/Buttongroup/props/defaultProps.js +4 -0
  31. package/es/Buttongroup/props/propTypes.js +7 -0
  32. package/es/Card/Card.js +12 -60
  33. package/es/Card/props/defaultProps.js +15 -0
  34. package/es/Card/props/propTypes.js +43 -0
  35. package/es/CheckBox/CheckBox.js +4 -59
  36. package/es/CheckBox/CheckBox.module.css +29 -19
  37. package/es/CheckBox/props/defaultProps.js +18 -0
  38. package/es/CheckBox/props/propTypes.js +41 -0
  39. package/es/DateTime/CalendarView.js +6 -26
  40. package/es/DateTime/DateTime.js +4 -62
  41. package/es/DateTime/DateTime.module.css +39 -12
  42. package/es/DateTime/DateWidget.js +4 -83
  43. package/es/DateTime/DateWidget.module.css +9 -5
  44. package/es/DateTime/YearView.js +4 -12
  45. package/es/DateTime/YearView.module.css +17 -7
  46. package/es/DateTime/props/defaultProps.js +50 -0
  47. package/es/DateTime/props/propTypes.js +130 -0
  48. package/es/DropBox/DropBox.js +4 -71
  49. package/es/DropBox/DropBox.module.css +47 -11
  50. package/es/DropBox/props/defaultProps.js +20 -0
  51. package/es/DropBox/props/propTypes.js +47 -0
  52. package/es/DropDown/DropDown.js +7 -34
  53. package/es/DropDown/DropDownHeading.js +4 -19
  54. package/es/DropDown/DropDownHeading.module.css +7 -3
  55. package/es/DropDown/DropDownItem.js +4 -18
  56. package/es/DropDown/DropDownItem.module.css +32 -6
  57. package/es/DropDown/DropDownSearch.js +4 -24
  58. package/es/DropDown/DropDownSeparator.js +2 -4
  59. package/es/DropDown/props/defaultProps.js +18 -0
  60. package/es/DropDown/props/propTypes.js +77 -0
  61. package/es/Label/Label.js +4 -24
  62. package/es/Label/props/defaultProps.js +10 -0
  63. package/es/Label/props/propTypes.js +14 -0
  64. package/es/Layout/Box.js +15 -30
  65. package/es/Layout/Container.js +15 -27
  66. package/es/Layout/Layout.module.css +13 -1
  67. package/es/Layout/docs/Layout__four_Column.docs.js +16 -22
  68. package/es/Layout/props/defaultProps.js +12 -0
  69. package/es/Layout/props/propTypes.js +42 -0
  70. package/es/ListItem/ListContainer.js +4 -41
  71. package/es/ListItem/ListItem.js +4 -50
  72. package/es/ListItem/ListItem.module.css +69 -33
  73. package/es/ListItem/ListItemWithAvatar.js +4 -56
  74. package/es/ListItem/ListItemWithCheckBox.js +4 -40
  75. package/es/ListItem/ListItemWithIcon.js +4 -47
  76. package/es/ListItem/ListItemWithRadio.js +4 -41
  77. package/es/ListItem/props/defaultProps.js +85 -0
  78. package/es/ListItem/props/propTypes.js +185 -0
  79. package/es/Modal/Modal.js +4 -9
  80. package/es/Modal/props/defaultProps.js +3 -0
  81. package/es/Modal/props/propTypes.js +6 -0
  82. package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -91
  83. package/es/MultiSelect/AdvancedMultiSelect.js +4 -113
  84. package/es/MultiSelect/EmptyState.js +4 -29
  85. package/es/MultiSelect/MultiSelect.js +4 -113
  86. package/es/MultiSelect/MultiSelect.module.css +28 -11
  87. package/es/MultiSelect/MultiSelectHeader.js +4 -12
  88. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -99
  89. package/es/MultiSelect/SelectedOptions.js +4 -19
  90. package/es/MultiSelect/SelectedOptions.module.css +8 -2
  91. package/es/MultiSelect/Suggestions.js +5 -34
  92. package/es/MultiSelect/props/defaultProps.js +140 -0
  93. package/es/MultiSelect/props/propTypes.js +360 -0
  94. package/es/PopOver/PopOver.js +7 -78
  95. package/es/PopOver/PopOver.module.css +1 -1
  96. package/es/PopOver/props/defaultProps.js +7 -0
  97. package/es/PopOver/props/propTypes.js +53 -0
  98. package/es/Radio/Radio.js +4 -46
  99. package/es/Radio/Radio.module.css +18 -10
  100. package/es/Radio/props/defaultProps.js +14 -0
  101. package/es/Radio/props/propTypes.js +32 -0
  102. package/es/Responsive/CustomResponsive.js +8 -19
  103. package/es/Responsive/ResizeComponent.js +15 -82
  104. package/es/Responsive/ResizeObserver.js +2 -6
  105. package/es/Responsive/Responsive.js +8 -22
  106. package/es/Responsive/docs/style.module.css +17 -8
  107. package/es/Responsive/props/defaultProps.js +13 -0
  108. package/es/Responsive/props/propTypes.js +25 -0
  109. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -11
  110. package/es/ResponsiveDropBox/props/defaultProps.js +4 -0
  111. package/es/ResponsiveDropBox/props/propTypes.js +7 -0
  112. package/es/Ribbon/Ribbon.js +4 -25
  113. package/es/Ribbon/Ribbon.module.css +93 -28
  114. package/es/Ribbon/props/defaultProps.js +8 -0
  115. package/es/Ribbon/props/propTypes.js +10 -0
  116. package/es/RippleEffect/RippleEffect.js +4 -20
  117. package/es/RippleEffect/RippleEffect.module.css +37 -44
  118. package/es/RippleEffect/props/defaultProps.js +9 -0
  119. package/es/RippleEffect/props/propTypes.js +11 -0
  120. package/es/Select/GroupSelect.js +4 -109
  121. package/es/Select/Select.js +4 -120
  122. package/es/Select/Select.module.css +12 -2
  123. package/es/Select/SelectWithAvatar.js +4 -80
  124. package/es/Select/SelectWithIcon.js +4 -69
  125. package/es/Select/props/defaultProps.js +110 -0
  126. package/es/Select/props/propTypes.js +266 -0
  127. package/es/Stencils/Stencils.js +4 -17
  128. package/es/Stencils/Stencils.module.css +21 -3
  129. package/es/Stencils/props/defaultProps.js +6 -0
  130. package/es/Stencils/props/propTypes.js +7 -0
  131. package/es/Switch/Switch.js +4 -37
  132. package/es/Switch/Switch.module.css +9 -9
  133. package/es/Switch/props/defaultProps.js +10 -0
  134. package/es/Switch/props/propTypes.js +27 -0
  135. package/es/Tab/Tab.js +4 -31
  136. package/es/Tab/Tab.module.css +16 -7
  137. package/es/Tab/TabContent.js +4 -10
  138. package/es/Tab/TabContentWrapper.js +4 -12
  139. package/es/Tab/TabWrapper.js +4 -25
  140. package/es/Tab/Tabs.js +6 -68
  141. package/es/Tab/Tabs.module.css +42 -8
  142. package/es/Tab/docs/tabdocs.module.css +1 -1
  143. package/es/Tab/props/defaultProps.js +39 -0
  144. package/es/Tab/props/propTypes.js +102 -0
  145. package/es/Tag/Tag.js +4 -47
  146. package/es/Tag/Tag.module.css +36 -14
  147. package/es/Tag/props/defaultProps.js +13 -0
  148. package/es/Tag/props/propTypes.js +34 -0
  149. package/es/TextBox/TextBox.js +4 -72
  150. package/es/TextBox/TextBox.module.css +7 -11
  151. package/es/TextBox/props/defaultProps.js +19 -0
  152. package/es/TextBox/props/propTypes.js +53 -0
  153. package/es/TextBoxIcon/TextBoxIcon.js +4 -70
  154. package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
  155. package/es/TextBoxIcon/props/defaultProps.js +21 -0
  156. package/es/TextBoxIcon/props/propTypes.js +49 -0
  157. package/es/Textarea/Textarea.js +4 -47
  158. package/es/Textarea/Textarea.module.css +6 -7
  159. package/es/Textarea/props/defaultProps.js +16 -0
  160. package/es/Textarea/props/propTypes.js +31 -0
  161. package/es/Tooltip/Tooltip.js +4 -12
  162. package/es/Tooltip/Tooltip.module.css +9 -8
  163. package/es/Tooltip/props/defaultProps.js +4 -0
  164. package/es/Tooltip/props/propTypes.js +8 -0
  165. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +4 -23
  166. package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
  167. package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
  168. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -37
  169. package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
  170. package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
  171. package/es/common/animation.module.css +219 -21
  172. package/es/common/basicReset.module.css +2 -12
  173. package/es/common/common.module.css +88 -21
  174. package/es/common/customscroll.module.css +17 -21
  175. package/es/common/docStyle.module.css +79 -32
  176. package/es/common/transition.module.css +50 -10
  177. package/es/deprecated/AdvancedMultiSelect.module.css +22 -8
  178. package/es/deprecated/PortalLayer/PortalLayer.js +4 -16
  179. package/es/deprecated/PortalLayer/props/defaultProps.js +5 -0
  180. package/es/deprecated/PortalLayer/props/propTypes.js +11 -0
  181. package/es/index.js +9 -4
  182. package/es/semantic/Button/Button.js +4 -38
  183. package/es/semantic/Button/props/defaultProps.js +12 -0
  184. package/es/semantic/Button/props/propTypes.js +26 -0
  185. package/es/semantic/Button/semanticButton.module.css +3 -3
  186. package/es/ucl/Grid/Grid.js +45 -0
  187. package/es/ucl/Grid/componentNames.js +6 -0
  188. package/es/ucl/Grid/css/Grid.module.css +217 -0
  189. package/es/ucl/Grid/css/cssJSLogic.js +46 -0
  190. package/es/ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js +41 -0
  191. package/es/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +49 -0
  192. package/es/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +32 -0
  193. package/es/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +41 -0
  194. package/es/ucl/Grid/docs/Grid__Box_Alignment.docs.js +37 -0
  195. package/es/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +41 -0
  196. package/es/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +45 -0
  197. package/es/ucl/Grid/docs/Grid__default.docs.js +61 -0
  198. package/es/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
  199. package/es/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
  200. package/es/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
  201. package/es/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
  202. package/es/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
  203. package/es/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
  204. package/es/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
  205. package/es/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
  206. package/es/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
  207. package/es/ucl/Grid/index.js +5 -0
  208. package/es/ucl/Grid/props/ariaPropTypes.js +6 -0
  209. package/es/ucl/Grid/props/defaultProps.js +8 -0
  210. package/es/ucl/Grid/props/propConstants.js +66 -0
  211. package/es/ucl/Grid/props/propTypes.js +27 -0
  212. package/lib/Accordion/Accordion.js +5 -20
  213. package/lib/Accordion/AccordionItem.js +5 -19
  214. package/lib/Accordion/props/defaultProps.js +16 -0
  215. package/lib/Accordion/props/propTypes.js +42 -0
  216. package/lib/Animation/Animation.js +5 -25
  217. package/lib/Animation/props/defaultProps.js +14 -0
  218. package/lib/Animation/props/propTypes.js +23 -0
  219. package/lib/AppContainer/AppContainer.js +13 -24
  220. package/lib/AppContainer/props/defaultProps.js +15 -0
  221. package/lib/AppContainer/props/propTypes.js +26 -0
  222. package/lib/Avatar/Avatar.js +5 -44
  223. package/lib/Avatar/props/defaultProps.js +20 -0
  224. package/lib/Avatar/props/propTypes.js +33 -0
  225. package/lib/AvatarTeam/AvatarTeam.js +5 -36
  226. package/lib/AvatarTeam/props/defaultProps.js +20 -0
  227. package/lib/AvatarTeam/props/propTypes.js +34 -0
  228. package/lib/Button/Button.js +5 -48
  229. package/lib/Button/props/defaultProps.js +24 -0
  230. package/lib/Button/props/propTypes.js +33 -0
  231. package/lib/Buttongroup/Buttongroup.js +5 -11
  232. package/lib/Buttongroup/props/defaultProps.js +11 -0
  233. package/lib/Buttongroup/props/propTypes.js +18 -0
  234. package/lib/Card/Card.js +13 -60
  235. package/lib/Card/props/defaultProps.js +23 -0
  236. package/lib/Card/props/propTypes.js +57 -0
  237. package/lib/CheckBox/CheckBox.js +7 -60
  238. package/lib/CheckBox/CheckBox.module.css +12 -8
  239. package/lib/CheckBox/props/defaultProps.js +25 -0
  240. package/lib/CheckBox/props/propTypes.js +52 -0
  241. package/lib/DateTime/CalendarView.js +7 -26
  242. package/lib/DateTime/DateTime.js +53 -82
  243. package/lib/DateTime/DateTime.module.css +1 -1
  244. package/lib/DateTime/DateWidget.js +17 -85
  245. package/lib/DateTime/DateWidget.module.css +0 -4
  246. package/lib/DateTime/YearView.js +5 -12
  247. package/lib/DateTime/YearView.module.css +1 -0
  248. package/lib/DateTime/props/defaultProps.js +61 -0
  249. package/lib/DateTime/props/propTypes.js +145 -0
  250. package/lib/DropBox/DropBox.js +6 -72
  251. package/lib/DropBox/props/defaultProps.js +27 -0
  252. package/lib/DropBox/props/propTypes.js +58 -0
  253. package/lib/DropDown/DropDown.js +8 -34
  254. package/lib/DropDown/DropDownHeading.js +5 -19
  255. package/lib/DropDown/DropDownItem.js +5 -18
  256. package/lib/DropDown/DropDownSearch.js +5 -23
  257. package/lib/DropDown/DropDownSeparator.js +2 -4
  258. package/lib/DropDown/props/defaultProps.js +28 -0
  259. package/lib/DropDown/props/propTypes.js +94 -0
  260. package/lib/Label/Label.js +5 -24
  261. package/lib/Label/props/defaultProps.js +17 -0
  262. package/lib/Label/props/propTypes.js +25 -0
  263. package/lib/Layout/Box.js +18 -32
  264. package/lib/Layout/Container.js +18 -29
  265. package/lib/Layout/Layout.module.css +13 -1
  266. package/lib/Layout/docs/Layout__four_Column.docs.js +16 -22
  267. package/lib/Layout/props/defaultProps.js +20 -0
  268. package/lib/Layout/props/propTypes.js +54 -0
  269. package/lib/LightNightMode/Colors.json +496 -397
  270. package/lib/LightNightMode/docs/AlternativeColors.docs.js +23 -1
  271. package/lib/ListItem/ListContainer.js +13 -46
  272. package/lib/ListItem/ListItem.js +7 -52
  273. package/lib/ListItem/ListItem.module.css +18 -19
  274. package/lib/ListItem/ListItemWithAvatar.js +7 -38
  275. package/lib/ListItem/ListItemWithCheckBox.js +7 -42
  276. package/lib/ListItem/ListItemWithIcon.js +7 -49
  277. package/lib/ListItem/ListItemWithRadio.js +7 -43
  278. package/lib/ListItem/props/defaultProps.js +97 -0
  279. package/lib/ListItem/props/propTypes.js +181 -0
  280. package/lib/Modal/Modal.js +5 -9
  281. package/lib/Modal/props/defaultProps.js +10 -0
  282. package/lib/Modal/props/propTypes.js +17 -0
  283. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +118 -172
  284. package/lib/MultiSelect/AdvancedMultiSelect.js +101 -172
  285. package/lib/MultiSelect/EmptyState.js +5 -29
  286. package/lib/MultiSelect/MultiSelect.js +91 -173
  287. package/lib/MultiSelect/MultiSelect.module.css +15 -2
  288. package/lib/MultiSelect/MultiSelectHeader.js +5 -12
  289. package/lib/MultiSelect/MultiSelectWithAvatar.js +83 -152
  290. package/lib/MultiSelect/SelectedOptions.js +5 -19
  291. package/lib/MultiSelect/Suggestions.js +6 -34
  292. package/lib/MultiSelect/props/defaultProps.js +156 -0
  293. package/lib/MultiSelect/props/propTypes.js +378 -0
  294. package/lib/PopOver/PopOver.js +19 -82
  295. package/lib/PopOver/props/defaultProps.js +15 -0
  296. package/lib/PopOver/props/propTypes.js +66 -0
  297. package/lib/Provider/Config.js +3 -1
  298. package/lib/Provider.js +32 -98
  299. package/lib/Radio/Radio.js +5 -46
  300. package/lib/Radio/Radio.module.css +8 -6
  301. package/lib/Radio/props/defaultProps.js +21 -0
  302. package/lib/Radio/props/propTypes.js +43 -0
  303. package/lib/Responsive/CustomResponsive.js +11 -21
  304. package/lib/Responsive/Responsive.js +17 -24
  305. package/lib/Responsive/props/defaultProps.js +23 -0
  306. package/lib/Responsive/props/propTypes.js +39 -0
  307. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +124 -0
  308. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
  309. package/lib/ResponsiveDropBox/props/defaultProps.js +11 -0
  310. package/lib/ResponsiveDropBox/props/propTypes.js +18 -0
  311. package/lib/Ribbon/Ribbon.js +5 -25
  312. package/lib/Ribbon/props/defaultProps.js +15 -0
  313. package/lib/Ribbon/props/propTypes.js +21 -0
  314. package/lib/RippleEffect/RippleEffect.js +5 -20
  315. package/lib/RippleEffect/RippleEffect.module.css +37 -15
  316. package/lib/RippleEffect/props/defaultProps.js +16 -0
  317. package/lib/RippleEffect/props/propTypes.js +22 -0
  318. package/lib/Select/GroupSelect.js +105 -186
  319. package/lib/Select/Select.js +113 -196
  320. package/lib/Select/Select.module.css +6 -0
  321. package/lib/Select/SelectWithAvatar.js +101 -151
  322. package/lib/Select/SelectWithIcon.js +102 -134
  323. package/lib/Select/props/defaultProps.js +113 -0
  324. package/lib/Select/props/propTypes.js +280 -0
  325. package/lib/Stencils/Stencils.js +5 -17
  326. package/lib/Stencils/props/defaultProps.js +13 -0
  327. package/lib/Stencils/props/propTypes.js +18 -0
  328. package/lib/Switch/Switch.js +5 -37
  329. package/lib/Switch/Switch.module.css +3 -2
  330. package/lib/Switch/props/defaultProps.js +17 -0
  331. package/lib/Switch/props/propTypes.js +38 -0
  332. package/lib/Tab/Tab.js +5 -31
  333. package/lib/Tab/TabContent.js +5 -10
  334. package/lib/Tab/TabContentWrapper.js +5 -12
  335. package/lib/Tab/TabWrapper.js +5 -27
  336. package/lib/Tab/Tabs.js +80 -114
  337. package/lib/Tab/Tabs.module.css +2 -1
  338. package/lib/Tab/props/defaultProps.js +50 -0
  339. package/lib/Tab/props/propTypes.js +117 -0
  340. package/lib/Tag/Tag.js +5 -47
  341. package/lib/Tag/Tag.module.css +6 -2
  342. package/lib/Tag/props/defaultProps.js +20 -0
  343. package/lib/Tag/props/propTypes.js +45 -0
  344. package/lib/TextBox/TextBox.js +5 -70
  345. package/lib/TextBox/props/defaultProps.js +26 -0
  346. package/lib/TextBox/props/propTypes.js +62 -0
  347. package/lib/TextBoxIcon/TextBoxIcon.js +5 -70
  348. package/lib/TextBoxIcon/props/defaultProps.js +28 -0
  349. package/lib/TextBoxIcon/props/propTypes.js +60 -0
  350. package/lib/Textarea/Textarea.js +5 -47
  351. package/lib/Textarea/props/defaultProps.js +23 -0
  352. package/lib/Textarea/props/propTypes.js +42 -0
  353. package/lib/Tooltip/Tooltip.js +65 -20
  354. package/lib/Tooltip/Tooltip.module.css +6 -1
  355. package/lib/Tooltip/docs/Tooltip__default.docs.js +50 -11
  356. package/lib/Tooltip/props/defaultProps.js +11 -0
  357. package/lib/Tooltip/props/propTypes.js +19 -0
  358. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -23
  359. package/lib/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
  360. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
  361. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +12 -38
  362. package/lib/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
  363. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +30 -0
  364. package/lib/common/common.module.css +26 -3
  365. package/lib/common/docStyle.module.css +6 -2
  366. package/lib/css.js +0 -2
  367. package/lib/{MultiSelect → deprecated}/AdvancedMultiSelect.module.css +1 -1
  368. package/lib/deprecated/PortalLayer/PortalLayer.js +5 -16
  369. package/lib/deprecated/PortalLayer/props/defaultProps.js +12 -0
  370. package/lib/deprecated/PortalLayer/props/propTypes.js +22 -0
  371. package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
  372. package/lib/index.js +80 -21
  373. package/lib/semantic/Button/Button.js +5 -38
  374. package/lib/semantic/Button/props/defaultProps.js +19 -0
  375. package/lib/semantic/Button/props/propTypes.js +37 -0
  376. package/lib/ucl/Grid/Grid.js +70 -0
  377. package/lib/ucl/Grid/componentNames.js +13 -0
  378. package/lib/ucl/Grid/css/Grid.module.css +217 -0
  379. package/lib/ucl/Grid/css/cssJSLogic.js +44 -0
  380. package/lib/{beta/FocusRing/docs/FocusRing__default.docs.js → ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js} +42 -50
  381. package/lib/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +101 -0
  382. package/lib/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +86 -0
  383. package/lib/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +93 -0
  384. package/lib/ucl/Grid/docs/Grid__Box_Alignment.docs.js +91 -0
  385. package/lib/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +93 -0
  386. package/lib/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +97 -0
  387. package/lib/ucl/Grid/docs/Grid__default.docs.js +113 -0
  388. package/lib/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
  389. package/lib/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
  390. package/lib/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
  391. package/lib/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
  392. package/lib/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
  393. package/lib/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
  394. package/lib/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
  395. package/lib/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
  396. package/lib/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
  397. package/lib/ucl/Grid/index.js +31 -0
  398. package/lib/ucl/Grid/props/ariaPropTypes.js +23 -0
  399. package/lib/ucl/Grid/props/defaultProps.js +19 -0
  400. package/lib/ucl/Grid/props/propConstants.js +73 -0
  401. package/lib/ucl/Grid/props/propTypes.js +46 -0
  402. package/package.json +6 -3
  403. package/es/MultiSelect/AdvancedMultiSelect.module.css +0 -113
  404. package/es/a11y/FocusScope/FocusScope.js +0 -370
  405. package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
  406. package/es/beta/FocusRing/FocusRing.js +0 -281
  407. package/es/beta/FocusRing/FocusRing.module.css +0 -127
  408. package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
  409. package/lib/a11y/FocusScope/FocusScope.js +0 -443
  410. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
  411. package/lib/beta/FocusRing/FocusRing.js +0 -338
  412. package/lib/beta/FocusRing/FocusRing.module.css +0 -152
@@ -0,0 +1,32 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ active: PropTypes.bool,
4
+ checked: PropTypes.bool,
5
+ dataId: PropTypes.string,
6
+ disabled: PropTypes.bool,
7
+ disabledTitle: PropTypes.string,
8
+ id: PropTypes.string,
9
+ isFilled: PropTypes.bool,
10
+ isReadOnly: PropTypes.bool,
11
+ labelPalette: PropTypes.oneOf(['default', 'primary', 'danger', 'mandatory']),
12
+ labelSize: PropTypes.oneOf(['small', 'medium', 'large']),
13
+ name: PropTypes.string,
14
+ palette: PropTypes.oneOf(['primary', 'danger']),
15
+ size: PropTypes.oneOf(['small', 'medium']),
16
+ title: PropTypes.string,
17
+ value: PropTypes.string,
18
+ variant: PropTypes.oneOf(['primary', 'default']),
19
+ customClass: PropTypes.shape({
20
+ customRadioWrap: PropTypes.string,
21
+ customRadio: PropTypes.string,
22
+ customLabel: PropTypes.string
23
+ }),
24
+ a11y: PropTypes.shape({
25
+ ariaChecked: PropTypes.bool,
26
+ ariaHidden: PropTypes.bool,
27
+ role: PropTypes.string,
28
+ ariaLabelledby: PropTypes.string,
29
+ ariaLabel: PropTypes.string,
30
+ ariaReadonly: PropTypes.bool
31
+ })
32
+ };
@@ -1,5 +1,6 @@
1
1
  import React, { useContext, useEffect, useState, useRef, useMemo } from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { CustomResponsiveSender_defaultProps, CustomResponsiveReceiver_defaultProps } from './props/defaultProps';
3
+ import { CustomResponsiveSender_propTypes, CustomResponsiveReceiver_propTypes } from './props/propTypes';
3
4
  import ResizeObserver from './ResizeObserver';
4
5
  import DOMRefWrapper from './RefWrapper';
5
6
  import shallowCompare from './utils/shallowCompare';
@@ -88,16 +89,11 @@ export function ResponsiveSender(props) {
88
89
  ref: containerRef
89
90
  }, children)));
90
91
  }
91
- ResponsiveSender.defaultProps = {
92
- responsiveId: defaultResponsiveId,
93
- domRefKey: 'eleRef'
92
+ ResponsiveSender.defaultProps = { ...CustomResponsiveSender_defaultProps,
93
+ responsiveId: defaultResponsiveId
94
94
  };
95
95
  ResponsiveSender.contextType = ResponsiveContext;
96
- ResponsiveSender.propTypes = {
97
- children: PropTypes.any.isRequired,
98
- domRefKey: PropTypes.string,
99
- responsiveId: PropTypes.string
100
- };
96
+ ResponsiveSender.propTypes = CustomResponsiveSender_propTypes;
101
97
  export function useResponsiveReceiver() {
102
98
  let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
103
99
  let query = arguments.length > 1 ? arguments[1] : undefined;
@@ -187,14 +183,7 @@ export function ResponsiveReceiver(_ref) {
187
183
  ref: eleRef
188
184
  }, child) : child;
189
185
  }
190
- ResponsiveReceiver.defaultProps = {
191
- responsiveId: defaultResponsiveId,
192
- domRefKey: 'eleRef'
186
+ ResponsiveReceiver.defaultProps = { ...CustomResponsiveReceiver_defaultProps,
187
+ responsiveId: defaultResponsiveId
193
188
  };
194
- ResponsiveReceiver.propTypes = {
195
- children: PropTypes.func,
196
- domRefKey: PropTypes.string,
197
- eleRef: PropTypes.func,
198
- query: PropTypes.func,
199
- responsiveId: PropTypes.string
200
- };
189
+ ResponsiveReceiver.propTypes = CustomResponsiveReceiver_propTypes;
@@ -13,33 +13,13 @@ export default class ResizeComponent extends React.Component {
13
13
  this.childrenCurrentList = [];
14
14
  this.widthCheck = debounce(this.widthCheck.bind(this), 10); // this.widthCheck = this.widthCheck.bind(this);
15
15
 
16
- this.onResize = debounce(this.onResize.bind(this), 500);
16
+ this.onResize = this.onResize.bind(this);
17
17
  this.onResizeMutation = this.onResizeMutation.bind(this);
18
18
  this.tabsObserver = new ResizeObserver(this.onResize);
19
19
  this.tabObserver = new MutationObserver(this.onResizeMutation);
20
20
  this.reset = this.reset.bind(this);
21
21
  this.constructChildren = this.constructChildren.bind(this);
22
22
  this.querySelector = this.querySelector.bind(this);
23
- this.onAnimationStart = this.onAnimationStart.bind(this);
24
- this.onAnimationEnd = this.onAnimationEnd.bind(this);
25
- this.isAnimating = false;
26
- this.state = {
27
- responsiveHook: true,
28
- validListCount: this.props.childrenList ? this.props.childrenList.length : 0,
29
- emptyDataCount: this.props.childrenList ? this.props.childrenList.length : 0
30
- };
31
- }
32
-
33
- onAnimationStart(e) {
34
- if (this.props.wrapperDivRef.current === e.target) {
35
- this.isAnimating = true;
36
- }
37
- }
38
-
39
- onAnimationEnd(e) {
40
- if (this.props.wrapperDivRef.current === e.target) {
41
- this.isAnimating = false;
42
- }
43
23
  }
44
24
 
45
25
  querySelector() {
@@ -92,8 +72,6 @@ export default class ResizeComponent extends React.Component {
92
72
 
93
73
  componentDidMount() {
94
74
  if (this.props.wrapperDivRef && this.props.wrapperDivRef.current) {
95
- this.props.wrapperDivRef.current.addEventListener('animationstart', this.onAnimationStart, false);
96
- this.props.wrapperDivRef.current.addEventListener('animationend', this.onAnimationEnd, false);
97
75
  this.tabsObserver.observe(this.props.wrapperDivRef.current);
98
76
  this.tabObserver.observe(this.props.wrapperDivRef.current, {
99
77
  characterData: true,
@@ -110,20 +88,13 @@ export default class ResizeComponent extends React.Component {
110
88
  }
111
89
 
112
90
  reset() {
113
- this.forceUpdate = true;
114
91
  this.childrenCurrentList = [];
115
92
  this.tabsObserver.disconnect();
116
93
  this.tabObserver && this.tabObserver.disconnect();
117
- this.props.wrapperDivRef.current.removeEventListener('animationstart', this.onAnimationStart);
118
- this.props.wrapperDivRef.current.removeEventListener('animationend', this.onAnimationEnd);
119
94
  }
120
95
 
121
- componentDidUpdate(prevProps, prevState) {
122
- // if (this.childrenCurrentList.length === 0) {
123
- // this.childrenCurrentList = this.querySelector();
124
- // this.widthCheck();
125
- // }
126
- if (this.state.responsiveHook !== prevState.responsiveHook && !this.state.responsiveHook) {
96
+ componentDidUpdate(prevProps) {
97
+ if (this.childrenCurrentList.length === 0) {
127
98
  this.childrenCurrentList = this.querySelector();
128
99
  this.widthCheck();
129
100
  }
@@ -145,27 +116,10 @@ export default class ResizeComponent extends React.Component {
145
116
  }
146
117
  }
147
118
 
148
- onResize(size) {
149
- if (size) {
150
- window.requestAnimationFrame(() => {
151
- if (this.forceUpdate || (this.height !== size.height || this.width !== size.width || this.scrollWidth !== size.scrollWidth || this.scrollHeight !== size.scrollHeight) && !this.isAnimating) {
152
- this.forceUpdate = false;
153
- this.height = size.height;
154
- this.width = size.width;
155
- this.scrollHeight = size.scrollHeight;
156
- this.scrollWidth = size.scrollWidth;
157
- this.childrenCurrentList = [];
158
- this.constructChildren(0, false);
159
- }
160
- });
161
- } else {
162
- this.childrenCurrentList = [];
163
- this.constructChildren(0, false);
164
- } // if (this.childrenCurrentList.length !== 0) {
165
- // this.childrenCurrentList = [];
166
- // this.constructChildren(0, false);
167
- //}
168
-
119
+ onResize() {
120
+ // if (this.childrenCurrentList.length !== 0) {
121
+ this.childrenCurrentList = [];
122
+ this.constructChildren(0, false); //}
169
123
  } // shouldComponentUpdate() {
170
124
  // return this.childrenCurrentList.length === 0
171
125
  // }
@@ -185,7 +139,7 @@ export default class ResizeComponent extends React.Component {
185
139
  let dataCount = 0;
186
140
  this.noSpaceForChildren = false;
187
141
 
188
- if (totalWidth + moreWidth <= moreWidth) {
142
+ if (totalWidth <= moreWidth) {
189
143
  this.noSpaceForChildren = true;
190
144
  } else {
191
145
  for (let i = 0; i < childrenWidthList.length; i++) {
@@ -198,14 +152,7 @@ export default class ResizeComponent extends React.Component {
198
152
 
199
153
  if (totalWidth <= _childrenTotalWidth) {
200
154
  dataCount = i;
201
-
202
- if (dataCount == 0) {
203
- this.noSpaceForChildren = true;
204
- }
205
-
206
155
  break;
207
- } else {
208
- dataCount++;
209
156
  }
210
157
  }
211
158
  }
@@ -220,45 +167,31 @@ export default class ResizeComponent extends React.Component {
220
167
  let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
221
168
  let responsive = arguments.length > 1 ? arguments[1] : undefined;
222
169
  const {
223
- childrenList
170
+ childrenList,
171
+ getData
224
172
  } = this.props; // If the data count is zero we assume that we can render all the items - data count will be zero only when we want to calculate the whole list width
225
- // let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
226
- // let responsive = arguments.length > 1 ? arguments[1] : undefined;
227
- //let isResize = arguments.length > 2 ? arguments[2] : false;
228
173
 
229
174
  dataCount = dataCount || childrenList && childrenList.length;
230
- let rederElementCount = this.querySelector().length;
231
- let emptyCount = childrenList.length - rederElementCount; // dataCount = responsive ? dataCount : dataCount || (childrenList && childrenList.length);
232
- //dataCount = !isResize ? dataCount : dataCount || (childrenList && childrenList.length);
233
-
234
- this.setState({
175
+ getData({
235
176
  responsiveHook: responsive,
236
- validListCount: this.noSpaceForChildren ? 0 : dataCount,
237
- emptyDataCount: emptyCount
177
+ validListCount: this.noSpaceForChildren ? 0 : dataCount
238
178
  });
239
179
  }
240
180
 
241
181
  render() {
242
- let {
243
- responsiveHook,
244
- validListCount,
245
- emptyDataCount
246
- } = this.state;
247
- return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children({
248
- responsiveHook,
249
- validListCount,
250
- emptyDataCount
251
- }));
182
+ return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children);
252
183
  }
253
184
 
254
185
  }
255
186
  ResizeComponent.propTypes = {
256
187
  children: PropTypes.node,
188
+ getData: PropTypes.func,
257
189
  resizeId: PropTypes.number,
258
190
  childrenList: PropTypes.array,
259
191
  wrapperDivRef: PropTypes.any,
260
192
  moreDivRef: PropTypes.any
261
193
  };
262
194
  ResizeComponent.defaultProps = {
195
+ getData: () => {},
263
196
  resizeId: null
264
197
  };
@@ -8,16 +8,12 @@ const mutationObserverOptions = {
8
8
  function getSize(element) {
9
9
  let {
10
10
  offsetHeight,
11
- offsetWidth,
12
- scrollHeight,
13
- scrollWidth
11
+ offsetWidth
14
12
  } = element; // const { height, width } = element.getBoundingClientRect();
15
13
 
16
14
  return {
17
15
  height: offsetHeight,
18
- width: offsetWidth,
19
- scrollHeight: scrollHeight,
20
- scrollWidth: scrollWidth
16
+ width: offsetWidth
21
17
  };
22
18
  }
23
19
 
@@ -1,7 +1,8 @@
1
1
  import "core-js/modules/es.array.includes";
2
2
  import React, { useContext, useEffect, useState, useMemo } from 'react'; // import React, { useState, useMemo, useCallback, useContext } from 'react';
3
3
 
4
- import PropTypes from 'prop-types';
4
+ import { ResponsiveSender_defaultProps, ResponsiveReceiver_defaultProps } from './props/defaultProps';
5
+ import { ResponsiveSender_propTypes, ResponsiveReceiver_propTypes } from './props/propTypes';
5
6
  import ResizeObserver from './ResizeObserver';
6
7
  import DOMRefWrapper from './RefWrapper';
7
8
  import { windowResizeObserver } from './windowResizeObserver';
@@ -91,18 +92,11 @@ export class ResponsiveSender extends React.Component {
91
92
  }
92
93
 
93
94
  }
94
- ResponsiveSender.defaultProps = {
95
- responsiveId: defaultResponsiveId,
96
- domRefKey: 'eleRef' // matcher: defaultMatcher
97
-
95
+ ResponsiveSender.defaultProps = { ...ResponsiveSender_defaultProps,
96
+ responsiveId: defaultResponsiveId
98
97
  };
99
98
  ResponsiveSender.contextType = ResponsiveContext;
100
- ResponsiveSender.propTypes = {
101
- children: PropTypes.any.isRequired,
102
- domRefKey: PropTypes.string,
103
- responsiveId: PropTypes.string // matcher: PropTypes.func
104
-
105
- };
99
+ ResponsiveSender.propTypes = ResponsiveSender_propTypes;
106
100
  export function useResponsiveReceiver() {
107
101
  let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
108
102
  const [_, forceUpdate] = useState();
@@ -195,15 +189,7 @@ export function ResponsiveReceiver(_ref) {
195
189
  ref: eleRef
196
190
  }, child) : child : null;
197
191
  }
198
- ResponsiveReceiver.defaultProps = {
199
- responsiveId: defaultResponsiveId,
200
- domRefKey: 'eleRef',
201
- hiddenSizes: []
192
+ ResponsiveReceiver.defaultProps = { ...ResponsiveReceiver_defaultProps,
193
+ responsiveId: defaultResponsiveId
202
194
  };
203
- ResponsiveReceiver.propTypes = {
204
- children: PropTypes.func,
205
- domRefKey: PropTypes.string,
206
- eleRef: PropTypes.func,
207
- hiddenSizes: PropTypes.array,
208
- responsiveId: PropTypes.string
209
- };
195
+ ResponsiveReceiver.propTypes = ResponsiveReceiver_propTypes;
@@ -1,18 +1,21 @@
1
1
  .header{
2
- background-color: #c60000;
3
- box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
4
2
  color: #fff;
5
3
  font-size: 24px;
4
+ background-color: #c60000;
6
5
  padding: 10px;
7
6
  text-align: center;
8
7
  margin: 10px 6px;
8
+ }[dir=ltr] .header{
9
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
10
+ }[dir=rtl] .header{
11
+ box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);
9
12
  }
10
13
  .box{
11
14
  height: 80px;
12
- background-color: #ffbb11;
13
- text-align: center;
14
15
  line-height: 80px;
15
16
  min-width: 300px;
17
+ background-color: #ffbb11;
18
+ text-align: center;
16
19
  margin:6px;
17
20
  padding: 0 100x;
18
21
  }
@@ -20,10 +23,10 @@
20
23
  background-color: #60de55
21
24
  }
22
25
  .subHeading{
23
- text-align: center;
24
- padding: 10px;
25
26
  position: sticky;
26
27
  top: 0;
28
+ text-align: center;
29
+ padding: 10px;
27
30
  background-color: #fff
28
31
  }
29
32
 
@@ -37,11 +40,17 @@
37
40
  position: absolute;
38
41
  width: 60%;
39
42
  top: 50%;
40
- transform: translate(-50%,-50%);
41
- left: 50%;
42
43
  border: 1px solid #aaa;
43
44
  border-radius: 4px
44
45
  }
46
+ [dir=ltr] .wrapper{
47
+ transform: translate(-50%,-50%);
48
+ left: 50%
49
+ }
50
+ [dir=rtl] .wrapper{
51
+ transform: translate(50%,-50%);
52
+ right: 50%
53
+ }
45
54
  .avatar{
46
55
  margin:20px auto
47
56
  }
@@ -0,0 +1,13 @@
1
+ export const CustomResponsiveSender_defaultProps = {
2
+ domRefKey: 'eleRef'
3
+ };
4
+ export const CustomResponsiveReceiver_defaultProps = {
5
+ domRefKey: 'eleRef'
6
+ };
7
+ export const ResponsiveSender_defaultProps = {
8
+ domRefKey: 'eleRef'
9
+ };
10
+ export const ResponsiveReceiver_defaultProps = {
11
+ domRefKey: 'eleRef',
12
+ hiddenSizes: []
13
+ };
@@ -0,0 +1,25 @@
1
+ import PropTypes from 'prop-types';
2
+ export const CustomResponsiveSender_propTypes = {
3
+ children: PropTypes.any.isRequired,
4
+ domRefKey: PropTypes.string,
5
+ responsiveId: PropTypes.string
6
+ };
7
+ export const CustomResponsiveReceiver_propTypes = {
8
+ children: PropTypes.func,
9
+ domRefKey: PropTypes.string,
10
+ eleRef: PropTypes.func,
11
+ query: PropTypes.func,
12
+ responsiveId: PropTypes.string
13
+ };
14
+ export const ResponsiveSender_propTypes = {
15
+ children: PropTypes.any.isRequired,
16
+ domRefKey: PropTypes.string,
17
+ responsiveId: PropTypes.string
18
+ };
19
+ export const ResponsiveReceiver_propTypes = {
20
+ children: PropTypes.func,
21
+ domRefKey: PropTypes.string,
22
+ eleRef: PropTypes.func,
23
+ hiddenSizes: PropTypes.array,
24
+ responsiveId: PropTypes.string
25
+ };
@@ -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, { Component } from 'react';
4
- import PropTypes from 'prop-types';
4
+ import { defaultProps } from './props/defaultProps';
5
+ import { propTypes } from './props/propTypes';
5
6
  import DropBox from '../DropBox/DropBox';
6
7
  import { Container } from '../Layout';
7
8
  import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
@@ -62,13 +63,5 @@ export default class ResponsiveDropBox extends Component {
62
63
  }
63
64
 
64
65
  }
65
- ResponsiveDropBox.propTypes = {
66
- children: PropTypes.element,
67
- customClass: PropTypes.object,
68
- isResponsivePadding: PropTypes.bool,
69
- alignBox: PropTypes.oneOf(['column', 'row'])
70
- };
71
- ResponsiveDropBox.defaultProps = {
72
- isResponsivePadding: false,
73
- alignBox: 'column'
74
- };
66
+ ResponsiveDropBox.propTypes = propTypes;
67
+ ResponsiveDropBox.defaultProps = defaultProps;
@@ -0,0 +1,4 @@
1
+ export const defaultProps = {
2
+ isResponsivePadding: false,
3
+ alignBox: 'column'
4
+ };
@@ -0,0 +1,7 @@
1
+ import PropTypes from 'prop-types';
2
+ export const propTypes = {
3
+ children: PropTypes.element,
4
+ customClass: PropTypes.object,
5
+ isResponsivePadding: PropTypes.bool,
6
+ alignBox: PropTypes.oneOf(['column', 'row'])
7
+ };
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
3
4
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: [default, flag, plain, ribbon, box, stamp, sticker, small, medium, large, xlarge, palette_default, palette_danger, palette_primary, palette_secondary, palette_info, palette_dark, plain_default, plain_danger, plain_primary, plain_secondary, plain_info, plain_dark, tag] }] */
4
5
 
5
6
  import style from './Ribbon.module.css';
@@ -30,30 +31,8 @@ export default class Ribbon extends React.Component {
30
31
  }
31
32
 
32
33
  }
33
- Ribbon.propTypes = {
34
- children: PropTypes.element,
35
- dataId: PropTypes.string,
36
- palette: PropTypes.oneOf(['default', 'danger', 'primary', 'secondary', 'info', 'dark']),
37
- size: PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),
38
- text: PropTypes.string,
39
- type: PropTypes.oneOf(['default', 'flag', 'plain', 'ribbon', 'box', 'stamp', 'sticker', 'tag']),
40
- customClass: PropTypes.string
41
- }; // Ribbon.propTypesDescription = {
42
- // text: ' ',
43
- // type: ' ',
44
- // children: ' ',
45
- // palette: ' ',
46
- // size: ' '
47
- // };
48
-
49
- Ribbon.defaultProps = {
50
- palette: 'default',
51
- size: 'large',
52
- text: 'Ribbon',
53
- type: 'default',
54
- dataId: 'ribbonComp',
55
- customClass: ''
56
- };
34
+ Ribbon.propTypes = propTypes;
35
+ Ribbon.defaultProps = defaultProps;
57
36
 
58
37
  if (false) {
59
38
  Ribbon.docs = {