@zohodesk/components 1.0.0-temp-170 → 1.0.0-temp-171

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 (428) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -7
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +1344 -1335
  5. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
  6. package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
  7. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +180 -180
  8. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +12 -12
  9. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
  10. package/coverage/Avatar/Avatar.js.html +649 -0
  11. package/coverage/Avatar/Avatar.module.css.html +556 -0
  12. package/coverage/Avatar/index.html +131 -0
  13. package/coverage/Avatar/props/defaultProps.js.html +136 -0
  14. package/coverage/Avatar/props/index.html +131 -0
  15. package/coverage/Avatar/props/propTypes.js.html +166 -0
  16. package/coverage/AvatarTeam/AvatarTeam.js.html +340 -0
  17. package/coverage/AvatarTeam/AvatarTeam.module.css.html +610 -0
  18. package/coverage/AvatarTeam/index.html +131 -0
  19. package/coverage/AvatarTeam/props/defaultProps.js.html +136 -0
  20. package/coverage/AvatarTeam/props/index.html +131 -0
  21. package/coverage/AvatarTeam/props/propTypes.js.html +169 -0
  22. package/coverage/Button/Button.js.html +1 -1
  23. package/coverage/Button/css/Button.module.css.html +1 -1
  24. package/coverage/Button/css/cssJSLogic.js.html +1 -1
  25. package/coverage/Button/css/index.html +1 -1
  26. package/coverage/Button/index.html +1 -1
  27. package/coverage/Button/props/defaultProps.js.html +1 -1
  28. package/coverage/Button/props/index.html +1 -1
  29. package/coverage/Button/props/propTypes.js.html +1 -1
  30. package/coverage/Buttongroup/Buttongroup.js.html +1 -1
  31. package/coverage/Buttongroup/Buttongroup.module.css.html +1 -1
  32. package/coverage/Buttongroup/index.html +1 -1
  33. package/coverage/Buttongroup/props/defaultProps.js.html +1 -1
  34. package/coverage/Buttongroup/props/index.html +1 -1
  35. package/coverage/Buttongroup/props/propTypes.js.html +1 -1
  36. package/coverage/Label/Label.js.html +253 -0
  37. package/coverage/Label/Label.module.css.html +241 -0
  38. package/coverage/Label/LabelColors.module.css.html +145 -0
  39. package/coverage/Label/index.html +146 -0
  40. package/coverage/Label/props/defaultProps.js.html +118 -0
  41. package/coverage/Label/props/index.html +131 -0
  42. package/coverage/Label/props/propTypes.js.html +145 -0
  43. package/coverage/Layout/Box.js.html +367 -0
  44. package/coverage/Layout/Container.js.html +439 -0
  45. package/coverage/Layout/Layout.module.css.html +1090 -0
  46. package/coverage/Layout/index.html +176 -0
  47. package/coverage/Layout/index.js.html +118 -0
  48. package/coverage/Layout/props/defaultProps.js.html +136 -0
  49. package/coverage/Layout/props/index.html +131 -0
  50. package/coverage/Layout/props/propTypes.js.html +262 -0
  51. package/coverage/Layout/utils.js.html +199 -0
  52. package/coverage/Provider/AvatarSize.js.html +124 -0
  53. package/coverage/Provider/CssProvider.js.html +133 -0
  54. package/coverage/Provider/index.html +131 -0
  55. package/coverage/Radio/Radio.js.html +415 -0
  56. package/coverage/Radio/Radio.module.css.html +403 -0
  57. package/coverage/Radio/index.html +131 -0
  58. package/coverage/Radio/props/defaultProps.js.html +127 -0
  59. package/coverage/Radio/props/index.html +131 -0
  60. package/coverage/Radio/props/propTypes.js.html +187 -0
  61. package/coverage/Ribbon/Ribbon.js.html +229 -0
  62. package/coverage/Ribbon/Ribbon.module.css.html +1210 -0
  63. package/coverage/Ribbon/index.html +131 -0
  64. package/coverage/Ribbon/props/defaultProps.js.html +112 -0
  65. package/coverage/Ribbon/props/index.html +131 -0
  66. package/coverage/Ribbon/props/propTypes.js.html +121 -0
  67. package/coverage/RippleEffect/RippleEffect.js.html +172 -0
  68. package/coverage/RippleEffect/RippleEffect.module.css.html +415 -0
  69. package/coverage/RippleEffect/index.html +131 -0
  70. package/coverage/RippleEffect/props/defaultProps.js.html +112 -0
  71. package/coverage/RippleEffect/props/index.html +131 -0
  72. package/coverage/RippleEffect/props/propTypes.js.html +121 -0
  73. package/coverage/Stencils/Stencils.js.html +163 -0
  74. package/coverage/Stencils/Stencils.module.css.html +319 -0
  75. package/coverage/Stencils/index.html +131 -0
  76. package/coverage/Stencils/props/defaultProps.js.html +103 -0
  77. package/coverage/Stencils/props/index.html +131 -0
  78. package/coverage/Stencils/props/propTypes.js.html +109 -0
  79. package/coverage/Switch/Switch.js.html +379 -0
  80. package/coverage/Switch/Switch.module.css.html +481 -0
  81. package/coverage/Switch/index.html +131 -0
  82. package/coverage/Switch/props/defaultProps.js.html +118 -0
  83. package/coverage/Switch/props/index.html +131 -0
  84. package/coverage/Switch/props/propTypes.js.html +172 -0
  85. package/coverage/common/avatarsizes.module.css.html +229 -0
  86. package/coverage/common/common.module.css.html +1519 -0
  87. package/coverage/common/index.html +131 -0
  88. package/coverage/coverage-final.json +55 -10
  89. package/coverage/coverage-summary.json +56 -11
  90. package/coverage/index.html +311 -11
  91. package/coverage/utils/dummyFunction.js.html +1 -1
  92. package/coverage/utils/getInitial.js.html +139 -0
  93. package/coverage/utils/index.html +25 -10
  94. package/es/AppContainer/AppContainer.module.css +18 -18
  95. package/es/Avatar/Avatar.js +9 -9
  96. package/es/Avatar/Avatar.module.css +175 -175
  97. package/es/Avatar/__tests__/Avatar.spec.js +181 -0
  98. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
  99. package/es/AvatarTeam/AvatarTeam.js +7 -7
  100. package/es/AvatarTeam/AvatarTeam.module.css +189 -189
  101. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +138 -0
  102. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +704 -0
  103. package/es/Button/Button.js +4 -4
  104. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -440
  105. package/es/Button/css/Button.module.css +525 -525
  106. package/es/Buttongroup/Buttongroup.js +1 -1
  107. package/es/Buttongroup/Buttongroup.module.css +105 -105
  108. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  109. package/es/Card/Card.js +4 -4
  110. package/es/Card/Card.module.css +20 -20
  111. package/es/CheckBox/CheckBox.js +0 -0
  112. package/es/CheckBox/CheckBox.module.css +157 -157
  113. package/es/DateTime/CalendarView.js +0 -0
  114. package/es/DateTime/DateTime.js +0 -0
  115. package/es/DateTime/DateTime.module.css +248 -237
  116. package/es/DateTime/DateWidget.js +0 -0
  117. package/es/DateTime/DateWidget.module.css +38 -38
  118. package/es/DateTime/YearView.js +0 -0
  119. package/es/DateTime/YearView.module.css +98 -98
  120. package/es/DateTime/common.js +0 -0
  121. package/es/DateTime/index.js +0 -0
  122. package/es/DateTime/objectUtils.js +0 -0
  123. package/es/DateTime/typeChecker.js +0 -0
  124. package/es/DateTime/validator.js +0 -0
  125. package/es/DropBox/DropBox.js +0 -0
  126. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +434 -434
  127. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  128. package/es/DropBox/css/DropBox.module.css +58 -58
  129. package/es/DropDown/DropDown.js +0 -0
  130. package/es/DropDown/DropDown.module.css +5 -5
  131. package/es/DropDown/DropDownHeading.js +0 -0
  132. package/es/DropDown/DropDownHeading.module.css +53 -53
  133. package/es/DropDown/DropDownItem.js +0 -0
  134. package/es/DropDown/DropDownItem.module.css +94 -94
  135. package/es/DropDown/DropDownSearch.js +0 -0
  136. package/es/DropDown/DropDownSearch.module.css +14 -14
  137. package/es/DropDown/DropDownSeparator.js +0 -0
  138. package/es/DropDown/DropDownSeparator.module.css +7 -7
  139. package/es/Heading/Heading.module.css +4 -4
  140. package/es/Label/Label.js +2 -2
  141. package/es/Label/Label.module.css +52 -52
  142. package/es/Label/LabelColors.module.css +20 -20
  143. package/es/Label/__tests__/Label.spec.js +99 -0
  144. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
  145. package/es/Layout/Box.js +0 -0
  146. package/es/Layout/Container.js +0 -0
  147. package/es/Layout/Layout.module.css +335 -335
  148. package/es/Layout/utils.js +0 -0
  149. package/es/ListItem/ListContainer.js +1 -1
  150. package/es/ListItem/ListItem.js +0 -0
  151. package/es/ListItem/ListItem.module.css +216 -216
  152. package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
  153. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -16
  154. package/es/MultiSelect/MultiSelect.js +5 -5
  155. package/es/MultiSelect/MultiSelect.module.css +204 -204
  156. package/es/MultiSelect/MultiSelectWithAvatar.js +0 -0
  157. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  158. package/es/MultiSelect/Suggestions.js +2 -1
  159. package/es/PopOver/PopOver.module.css +8 -8
  160. package/es/Popup/Popup.js +0 -0
  161. package/es/Popup/PositionMapping.json +73 -73
  162. package/es/Radio/Radio.js +0 -0
  163. package/es/Radio/Radio.module.css +112 -112
  164. package/es/Radio/__tests__/Radio.spec.js +241 -0
  165. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
  166. package/es/Responsive/CustomResponsive.js +0 -0
  167. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  168. package/es/Ribbon/Ribbon.js +0 -0
  169. package/es/Ribbon/Ribbon.module.css +454 -454
  170. package/es/Ribbon/__tests__/Ribbon.spec.js +52 -0
  171. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
  172. package/es/RippleEffect/RippleEffect.module.css +92 -92
  173. package/es/RippleEffect/__tests__/RippleEffect.spec.js +69 -0
  174. package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
  175. package/es/Select/GroupSelect.js +0 -0
  176. package/es/Select/Select.js +4 -3
  177. package/es/Select/Select.module.css +108 -108
  178. package/es/Select/SelectWithAvatar.js +0 -0
  179. package/es/Select/SelectWithIcon.js +0 -0
  180. package/es/Stencils/Stencils.js +0 -0
  181. package/es/Stencils/Stencils.module.css +96 -96
  182. package/es/Stencils/__tests__/Stencils.spec.js +46 -0
  183. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
  184. package/es/Switch/Switch.js +0 -0
  185. package/es/Switch/Switch.module.css +127 -127
  186. package/es/Switch/__tests__/Switch.spec.js +156 -0
  187. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
  188. package/es/Tab/Tab.module.css +100 -100
  189. package/es/Tab/TabContent.module.css +4 -4
  190. package/es/Tab/Tabs.js +17 -17
  191. package/es/Tab/Tabs.module.css +136 -136
  192. package/es/Tag/Tag.js +8 -8
  193. package/es/Tag/Tag.module.css +254 -254
  194. package/es/TextBox/TextBox.js +0 -0
  195. package/es/TextBox/TextBox.module.css +158 -158
  196. package/es/TextBoxIcon/TextBoxIcon.js +0 -0
  197. package/es/TextBoxIcon/TextBoxIcon.module.css +79 -79
  198. package/es/Textarea/Textarea.js +0 -0
  199. package/es/Textarea/Textarea.module.css +139 -139
  200. package/es/Tooltip/Tooltip.module.css +140 -140
  201. package/es/common/a11y.module.css +3 -3
  202. package/es/common/animation.module.css +624 -624
  203. package/es/common/avatarsizes.module.css +48 -48
  204. package/es/common/basic.module.css +33 -33
  205. package/es/common/basicReset.module.css +40 -40
  206. package/es/common/boxShadow.module.css +33 -33
  207. package/es/common/common.module.css +524 -524
  208. package/es/common/customscroll.module.css +91 -91
  209. package/es/common/reset.module.css +13 -13
  210. package/es/common/transition.module.css +146 -146
  211. package/es/semantic/Button/semanticButton.module.css +9 -9
  212. package/es/utils/Common.js +0 -0
  213. package/es/utils/dropDownUtils.js +0 -0
  214. package/es/v1/Avatar/Avatar.js +5 -5
  215. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  216. package/es/v1/Button/Button.js +4 -4
  217. package/es/v1/Card/Card.js +4 -4
  218. package/es/v1/CheckBox/CheckBox.js +0 -0
  219. package/es/v1/DateTime/CalendarView.js +43 -10
  220. package/es/v1/DateTime/DateTime.js +8 -4
  221. package/es/v1/DateTime/DateTimePopupFooter.js +2 -2
  222. package/es/v1/DateTime/DateTimePopupHeader.js +1 -1
  223. package/es/v1/DateTime/DateWidget.js +8 -4
  224. package/es/v1/DateTime/DaysRow.js +1 -1
  225. package/es/v1/DateTime/Time.js +2 -2
  226. package/es/v1/DateTime/YearView.js +2 -2
  227. package/es/v1/DateTime/index.js +0 -0
  228. package/es/v1/DateTime/props/defaultProps.js +57 -0
  229. package/es/v1/DateTime/props/propTypes.js +195 -0
  230. package/es/v1/DropBox/DropBox.js +0 -0
  231. package/es/v1/DropDown/DropDown.js +0 -0
  232. package/es/v1/DropDown/DropDownHeading.js +0 -0
  233. package/es/v1/DropDown/DropDownItem.js +0 -0
  234. package/es/v1/DropDown/DropDownSearch.js +0 -0
  235. package/es/v1/DropDown/DropDownSeparator.js +0 -0
  236. package/es/v1/Layout/Box.js +0 -0
  237. package/es/v1/Layout/Container.js +0 -0
  238. package/es/v1/ListItem/ListItem.js +0 -0
  239. package/es/v1/ListItem/ListItemWithAvatar.js +7 -8
  240. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
  241. package/es/v1/MultiSelect/MultiSelect.js +5 -5
  242. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -0
  243. package/es/v1/Radio/Radio.js +0 -0
  244. package/es/v1/Responsive/CustomResponsive.js +0 -0
  245. package/es/v1/Select/GroupSelect.js +0 -0
  246. package/es/v1/Select/Select.js +0 -0
  247. package/es/v1/Select/SelectWithAvatar.js +0 -0
  248. package/es/v1/Select/SelectWithIcon.js +0 -0
  249. package/es/v1/Switch/Switch.js +0 -0
  250. package/es/v1/Tab/Tabs.js +17 -17
  251. package/es/v1/Tag/Tag.js +14 -10
  252. package/es/v1/TextBox/TextBox.js +10 -10
  253. package/es/v1/Typography/Typography.js +4 -4
  254. package/es/v1/Typography/css/Typography.module.css +409 -376
  255. package/es/v1/Typography/css/cssJSLogic.js +14 -8
  256. package/es/v1/Typography/props/defaultProps.js +4 -4
  257. package/es/v1/Typography/props/propTypes.js +8 -5
  258. package/install.md +10 -10
  259. package/lib/AppContainer/AppContainer.module.css +18 -18
  260. package/lib/Avatar/Avatar.js +9 -9
  261. package/lib/Avatar/Avatar.module.css +175 -175
  262. package/lib/Avatar/__tests__/Avatar.spec.js +188 -0
  263. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
  264. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  265. package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
  266. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +145 -0
  267. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +704 -0
  268. package/lib/Button/Button.js +4 -4
  269. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -440
  270. package/lib/Button/css/Button.module.css +525 -525
  271. package/lib/Buttongroup/Buttongroup.js +1 -1
  272. package/lib/Buttongroup/Buttongroup.module.css +105 -105
  273. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
  274. package/lib/Card/Card.js +4 -4
  275. package/lib/Card/Card.module.css +20 -20
  276. package/lib/CheckBox/CheckBox.js +0 -0
  277. package/lib/CheckBox/CheckBox.module.css +157 -157
  278. package/lib/DateTime/CalendarView.js +0 -0
  279. package/lib/DateTime/DateTime.js +0 -0
  280. package/lib/DateTime/DateTime.module.css +248 -237
  281. package/lib/DateTime/DateWidget.js +0 -0
  282. package/lib/DateTime/DateWidget.module.css +38 -38
  283. package/lib/DateTime/YearView.js +0 -0
  284. package/lib/DateTime/YearView.module.css +98 -98
  285. package/lib/DateTime/common.js +0 -0
  286. package/lib/DateTime/index.js +0 -0
  287. package/lib/DateTime/objectUtils.js +0 -0
  288. package/lib/DateTime/typeChecker.js +0 -0
  289. package/lib/DateTime/validator.js +0 -0
  290. package/lib/DropBox/DropBox.js +0 -0
  291. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +434 -434
  292. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  293. package/lib/DropBox/css/DropBox.module.css +58 -58
  294. package/lib/DropDown/DropDown.js +0 -0
  295. package/lib/DropDown/DropDown.module.css +5 -5
  296. package/lib/DropDown/DropDownHeading.js +0 -0
  297. package/lib/DropDown/DropDownHeading.module.css +53 -53
  298. package/lib/DropDown/DropDownItem.js +0 -0
  299. package/lib/DropDown/DropDownItem.module.css +94 -94
  300. package/lib/DropDown/DropDownSearch.js +0 -0
  301. package/lib/DropDown/DropDownSearch.module.css +14 -14
  302. package/lib/DropDown/DropDownSeparator.js +0 -0
  303. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  304. package/lib/Heading/Heading.module.css +4 -4
  305. package/lib/Label/Label.js +0 -0
  306. package/lib/Label/Label.module.css +52 -52
  307. package/lib/Label/LabelColors.module.css +20 -20
  308. package/lib/Label/__tests__/Label.spec.js +106 -0
  309. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
  310. package/lib/Layout/Box.js +0 -0
  311. package/lib/Layout/Container.js +0 -0
  312. package/lib/Layout/Layout.module.css +335 -335
  313. package/lib/Layout/utils.js +0 -0
  314. package/lib/ListItem/ListContainer.js +1 -1
  315. package/lib/ListItem/ListItem.js +0 -0
  316. package/lib/ListItem/ListItem.module.css +216 -216
  317. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
  318. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -16
  319. package/lib/MultiSelect/MultiSelect.js +5 -5
  320. package/lib/MultiSelect/MultiSelect.module.css +204 -204
  321. package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -0
  322. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  323. package/lib/MultiSelect/Suggestions.js +2 -1
  324. package/lib/PopOver/PopOver.module.css +8 -8
  325. package/lib/Popup/Popup.js +0 -0
  326. package/lib/Popup/PositionMapping.json +73 -73
  327. package/lib/Radio/Radio.js +0 -0
  328. package/lib/Radio/Radio.module.css +112 -112
  329. package/lib/Radio/__tests__/Radio.spec.js +250 -0
  330. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
  331. package/lib/Responsive/CustomResponsive.js +0 -0
  332. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  333. package/lib/Ribbon/Ribbon.js +0 -0
  334. package/lib/Ribbon/Ribbon.module.css +454 -454
  335. package/lib/Ribbon/__tests__/Ribbon.spec.js +59 -0
  336. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
  337. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  338. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +76 -0
  339. package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
  340. package/lib/Select/GroupSelect.js +0 -0
  341. package/lib/Select/Select.js +4 -3
  342. package/lib/Select/Select.module.css +108 -108
  343. package/lib/Select/SelectWithAvatar.js +0 -0
  344. package/lib/Select/SelectWithIcon.js +0 -0
  345. package/lib/Stencils/Stencils.js +0 -0
  346. package/lib/Stencils/Stencils.module.css +96 -96
  347. package/lib/Stencils/__tests__/Stencils.spec.js +53 -0
  348. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
  349. package/lib/Switch/Switch.js +0 -0
  350. package/lib/Switch/Switch.module.css +127 -127
  351. package/lib/Switch/__tests__/Switch.spec.js +163 -0
  352. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
  353. package/lib/Tab/Tab.module.css +100 -100
  354. package/lib/Tab/TabContent.module.css +4 -4
  355. package/lib/Tab/Tabs.js +11 -11
  356. package/lib/Tab/Tabs.module.css +136 -136
  357. package/lib/Tag/Tag.js +8 -8
  358. package/lib/Tag/Tag.module.css +254 -254
  359. package/lib/TextBox/TextBox.js +0 -0
  360. package/lib/TextBox/TextBox.module.css +158 -158
  361. package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
  362. package/lib/TextBoxIcon/TextBoxIcon.module.css +79 -79
  363. package/lib/Textarea/Textarea.js +0 -0
  364. package/lib/Textarea/Textarea.module.css +139 -139
  365. package/lib/Tooltip/Tooltip.module.css +140 -140
  366. package/lib/common/a11y.module.css +3 -3
  367. package/lib/common/animation.module.css +624 -624
  368. package/lib/common/avatarsizes.module.css +48 -48
  369. package/lib/common/basic.module.css +33 -33
  370. package/lib/common/basicReset.module.css +40 -40
  371. package/lib/common/boxShadow.module.css +33 -33
  372. package/lib/common/common.module.css +524 -524
  373. package/lib/common/customscroll.module.css +91 -91
  374. package/lib/common/reset.module.css +13 -13
  375. package/lib/common/transition.module.css +146 -146
  376. package/lib/semantic/Button/semanticButton.module.css +9 -9
  377. package/lib/utils/Common.js +0 -0
  378. package/lib/utils/dropDownUtils.js +0 -0
  379. package/lib/v1/Avatar/Avatar.js +5 -5
  380. package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
  381. package/lib/v1/Button/Button.js +4 -4
  382. package/lib/v1/Card/Card.js +4 -4
  383. package/lib/v1/CheckBox/CheckBox.js +0 -0
  384. package/lib/v1/DateTime/CalendarView.js +44 -10
  385. package/lib/v1/DateTime/DateTime.js +8 -4
  386. package/lib/v1/DateTime/DateTimePopupFooter.js +2 -2
  387. package/lib/v1/DateTime/DateTimePopupHeader.js +1 -1
  388. package/lib/v1/DateTime/DateWidget.js +8 -4
  389. package/lib/v1/DateTime/DaysRow.js +1 -1
  390. package/lib/v1/DateTime/Time.js +2 -2
  391. package/lib/v1/DateTime/YearView.js +2 -2
  392. package/lib/v1/DateTime/index.js +0 -0
  393. package/lib/v1/DateTime/props/defaultProps.js +70 -0
  394. package/lib/v1/DateTime/props/propTypes.js +227 -0
  395. package/lib/v1/DropBox/DropBox.js +0 -0
  396. package/lib/v1/DropDown/DropDown.js +0 -0
  397. package/lib/v1/DropDown/DropDownHeading.js +0 -0
  398. package/lib/v1/DropDown/DropDownItem.js +0 -0
  399. package/lib/v1/DropDown/DropDownSearch.js +0 -0
  400. package/lib/v1/DropDown/DropDownSeparator.js +0 -0
  401. package/lib/v1/Layout/Box.js +0 -0
  402. package/lib/v1/Layout/Container.js +0 -0
  403. package/lib/v1/ListItem/ListItem.js +0 -0
  404. package/lib/v1/ListItem/ListItemWithAvatar.js +14 -9
  405. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
  406. package/lib/v1/MultiSelect/MultiSelect.js +5 -5
  407. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -0
  408. package/lib/v1/Radio/Radio.js +0 -0
  409. package/lib/v1/Responsive/CustomResponsive.js +0 -0
  410. package/lib/v1/Select/GroupSelect.js +0 -0
  411. package/lib/v1/Select/Select.js +0 -0
  412. package/lib/v1/Select/SelectWithAvatar.js +0 -0
  413. package/lib/v1/Select/SelectWithIcon.js +0 -0
  414. package/lib/v1/Switch/Switch.js +0 -0
  415. package/lib/v1/Tab/Tabs.js +11 -11
  416. package/lib/v1/Tag/Tag.js +15 -12
  417. package/lib/v1/TextBox/TextBox.js +8 -9
  418. package/lib/v1/Typography/Typography.js +3 -3
  419. package/lib/v1/Typography/css/Typography.module.css +409 -376
  420. package/lib/v1/Typography/css/cssJSLogic.js +8 -5
  421. package/lib/v1/Typography/props/defaultProps.js +4 -4
  422. package/lib/v1/Typography/props/propTypes.js +8 -5
  423. package/package.json +93 -93
  424. package/postPublish.js +8 -8
  425. package/prePublish.js +70 -70
  426. package/react-cli.config.js +23 -23
  427. package/result.json +1 -1
  428. package/unittest/index.html +1 -1
@@ -1,112 +1,112 @@
1
- .varClass {
2
- /* radio default variables */
3
- --radio_width: var(--zd_size16);
4
- --radio_height: var(--zd_size16);
5
- --radio_bg_color: none;
6
- --radio_stroke_width: 2px;
7
- --radio_stroke_color: var(--zdt_radio_default_stroke);
8
- --radio_fill: none;
9
- --radio_inner_stroke_width: 0;
10
- }[dir=ltr] .varClass {
11
- --radio_label_margin: 0 0 0 var(--zd_size6);
12
- }[dir=rtl] .varClass {
13
- --radio_label_margin: 0 var(--zd_size6) 0 0;
14
- }
15
- .container {
16
- composes: varClass;
17
- }
18
- .pointer {
19
- cursor: pointer;
20
- }
21
- .readonly, .disabled {
22
- cursor: not-allowed;
23
- }
24
- .radio {
25
- composes: offSelection from '../common/common.module.css';
26
- width: var(--radio_width);
27
- height: var(--radio_height);
28
- stroke: var(--radio_stroke_color);
29
- background: var(--radio_bg_color);
30
- border-radius: 50%;
31
- }
32
- .radio,
33
- .centerPath {
34
- fill: var(--radio_fill);
35
- }
36
- .filled {
37
- --radio_bg_color: var(--zdt_radio_default_bg);
38
- }
39
-
40
- .medium {
41
- --radio_width: var(--zd_size16);
42
- --radio_height: var(--zd_size16);
43
- }
44
- .small {
45
- --radio_width: var(--zd_size13);
46
- --radio_height: var(--zd_size13);
47
- }
48
- .radioLabel {
49
- font-size: 0 ;
50
- display: block;
51
- }
52
- .rdBox {
53
- fill: none;
54
- stroke-width: var(--radio_stroke_width);
55
- stroke-linecap: round;
56
- stroke: inherit;
57
- }
58
- .centerPath {
59
- --radio_fill: inherit;
60
- stroke-width: var(--radio_inner_stroke_width);
61
- transform-origin: center;
62
- }
63
- [dir=ltr] .checked .centerPath {
64
- animation: circleAnimate var(--zd_transition3) ease forwards;
65
- }
66
- [dir=rtl] .checked .centerPath {
67
- animation: circleAnimate var(--zd_transition3) ease forwards;
68
- }
69
- .rdBoxprimary,
70
- .hoverEfffect:hover .hoverprimary
71
- /* .hoverEfffect:focus .hoverprimary */
72
- {
73
- --radio_stroke_color: var(--zdt_radio_primary_stroke);
74
- }
75
-
76
- .rdBoxdanger,
77
- .hoverEfffect:hover .hoverdanger
78
- /* .hoverEfffect:focus .hoverdanger */
79
- {
80
- --radio_stroke_color: var(--zdt_radio_danger_stroke);
81
- }
82
-
83
- .centerPathprimary {
84
- --radio_fill: var(--zdt_radio_primary_fill);
85
- }
86
- .centerPathdanger {
87
- --radio_fill: var(--zdt_radio_danger_fill);
88
- }
89
-
90
- .active:hover .primaryLabel,
91
- /* .active:focus .primaryLabel, */
92
- .primarycheckedActive {
93
- --label_text_color: var(--zdt_radio_label_primary_text);
94
- }
95
-
96
- .active:hover .dangerLabel,
97
- /* .active:focus .dangerLabel, */
98
- .dangercheckedActive {
99
- --label_text_color: var(--zdt_radio_label_danger_text);
100
- }
101
-
102
- .text {
103
- margin: var(--radio_label_margin);
104
- }
105
- @keyframes circleAnimate {
106
- 0% {
107
- transform: scale(0);
108
- }
109
- 100% {
110
- transform: scale(1);
111
- }
112
- }
1
+ .varClass {
2
+ /* radio default variables */
3
+ --radio_width: var(--zd_size16);
4
+ --radio_height: var(--zd_size16);
5
+ --radio_bg_color: none;
6
+ --radio_stroke_width: 2px;
7
+ --radio_stroke_color: var(--zdt_radio_default_stroke);
8
+ --radio_fill: none;
9
+ --radio_inner_stroke_width: 0;
10
+ }[dir=ltr] .varClass {
11
+ --radio_label_margin: 0 0 0 var(--zd_size6);
12
+ }[dir=rtl] .varClass {
13
+ --radio_label_margin: 0 var(--zd_size6) 0 0;
14
+ }
15
+ .container {
16
+ composes: varClass;
17
+ }
18
+ .pointer {
19
+ cursor: pointer;
20
+ }
21
+ .readonly, .disabled {
22
+ cursor: not-allowed;
23
+ }
24
+ .radio {
25
+ composes: offSelection from '../common/common.module.css';
26
+ width: var(--radio_width);
27
+ height: var(--radio_height);
28
+ stroke: var(--radio_stroke_color);
29
+ background: var(--radio_bg_color);
30
+ border-radius: 50%;
31
+ }
32
+ .radio,
33
+ .centerPath {
34
+ fill: var(--radio_fill);
35
+ }
36
+ .filled {
37
+ --radio_bg_color: var(--zdt_radio_default_bg);
38
+ }
39
+
40
+ .medium {
41
+ --radio_width: var(--zd_size16);
42
+ --radio_height: var(--zd_size16);
43
+ }
44
+ .small {
45
+ --radio_width: var(--zd_size13);
46
+ --radio_height: var(--zd_size13);
47
+ }
48
+ .radioLabel {
49
+ font-size: 0 ;
50
+ display: block;
51
+ }
52
+ .rdBox {
53
+ fill: none;
54
+ stroke-width: var(--radio_stroke_width);
55
+ stroke-linecap: round;
56
+ stroke: inherit;
57
+ }
58
+ .centerPath {
59
+ --radio_fill: inherit;
60
+ stroke-width: var(--radio_inner_stroke_width);
61
+ transform-origin: center;
62
+ }
63
+ [dir=ltr] .checked .centerPath {
64
+ animation: circleAnimate var(--zd_transition3) ease forwards;
65
+ }
66
+ [dir=rtl] .checked .centerPath {
67
+ animation: circleAnimate var(--zd_transition3) ease forwards;
68
+ }
69
+ .rdBoxprimary,
70
+ .hoverEfffect:hover .hoverprimary
71
+ /* .hoverEfffect:focus .hoverprimary */
72
+ {
73
+ --radio_stroke_color: var(--zdt_radio_primary_stroke);
74
+ }
75
+
76
+ .rdBoxdanger,
77
+ .hoverEfffect:hover .hoverdanger
78
+ /* .hoverEfffect:focus .hoverdanger */
79
+ {
80
+ --radio_stroke_color: var(--zdt_radio_danger_stroke);
81
+ }
82
+
83
+ .centerPathprimary {
84
+ --radio_fill: var(--zdt_radio_primary_fill);
85
+ }
86
+ .centerPathdanger {
87
+ --radio_fill: var(--zdt_radio_danger_fill);
88
+ }
89
+
90
+ .active:hover .primaryLabel,
91
+ /* .active:focus .primaryLabel, */
92
+ .primarycheckedActive {
93
+ --label_text_color: var(--zdt_radio_label_primary_text);
94
+ }
95
+
96
+ .active:hover .dangerLabel,
97
+ /* .active:focus .dangerLabel, */
98
+ .dangercheckedActive {
99
+ --label_text_color: var(--zdt_radio_label_danger_text);
100
+ }
101
+
102
+ .text {
103
+ margin: var(--radio_label_margin);
104
+ }
105
+ @keyframes circleAnimate {
106
+ 0% {
107
+ transform: scale(0);
108
+ }
109
+ 100% {
110
+ transform: scale(1);
111
+ }
112
+ }
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+
3
+ var _react = _interopRequireDefault(require("react"));
4
+
5
+ var _react2 = require("@testing-library/react");
6
+
7
+ var _Radio = _interopRequireDefault(require("../Radio.js"));
8
+
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+
11
+ describe('Radio', function () {
12
+ test('rendering the defult props', function () {
13
+ var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], null)),
14
+ asFragment = _render.asFragment;
15
+
16
+ expect(asFragment()).toMatchSnapshot();
17
+ });
18
+ test('rendering the ID', function () {
19
+ var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
20
+ id: "RadioID"
21
+ })),
22
+ asFragment = _render2.asFragment;
23
+
24
+ expect(asFragment()).toMatchSnapshot();
25
+ });
26
+ test('rendering the Name', function () {
27
+ var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
28
+ name: "RadioName"
29
+ })),
30
+ asFragment = _render3.asFragment;
31
+
32
+ expect(asFragment()).toMatchSnapshot();
33
+ });
34
+ test('rendering the Value', function () {
35
+ var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
36
+ value: "RadioValue"
37
+ })),
38
+ asFragment = _render4.asFragment;
39
+
40
+ expect(asFragment()).toMatchSnapshot();
41
+ });
42
+ var palette = ['primary', 'danger'];
43
+ test.each(palette)('rendering palette - %s', function (palette) {
44
+ var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
45
+ palette: palette
46
+ })),
47
+ asFragment = _render5.asFragment;
48
+
49
+ expect(asFragment()).toMatchSnapshot();
50
+ });
51
+ test('rendering the Checked is true', function () {
52
+ var _render6 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
53
+ palette: palette,
54
+ active: true,
55
+ text: "RadioText"
56
+ })),
57
+ asFragment = _render6.asFragment;
58
+
59
+ expect(asFragment()).toMatchSnapshot();
60
+ });
61
+ test('rendering the disabled is true', function () {
62
+ var _render7 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
63
+ disabled: true,
64
+ palette: palette,
65
+ text: "RadioText"
66
+ })),
67
+ asFragment = _render7.asFragment;
68
+
69
+ expect(asFragment()).toMatchSnapshot();
70
+ });
71
+ test('rendering the isReadOnly is true', function () {
72
+ var _render8 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
73
+ isReadOnly: true
74
+ })),
75
+ asFragment = _render8.asFragment;
76
+
77
+ expect(asFragment()).toMatchSnapshot();
78
+ });
79
+ test('rendering the disabledTitle', function () {
80
+ var _render9 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
81
+ disabled: true,
82
+ disabledTitle: "radioDisableTitle",
83
+ text: "RadioText"
84
+ })),
85
+ asFragment = _render9.asFragment;
86
+
87
+ expect(asFragment()).toMatchSnapshot();
88
+ });
89
+ test('rendering the title', function () {
90
+ var _render10 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
91
+ title: "radioTitle",
92
+ text: "RadioText"
93
+ })),
94
+ asFragment = _render10.asFragment;
95
+
96
+ expect(asFragment()).toMatchSnapshot();
97
+ });
98
+ test('rendering the text', function () {
99
+ var _render11 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
100
+ text: "RadioText"
101
+ })),
102
+ asFragment = _render11.asFragment;
103
+
104
+ expect(asFragment()).toMatchSnapshot();
105
+ });
106
+ var labelPalette = ['default', 'primary', 'danger', 'mandatory'];
107
+ test.each(labelPalette)('rendering labelPalette - %s', function (labelPalette) {
108
+ var _render12 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
109
+ labelPalette: labelPalette,
110
+ text: "RadioText"
111
+ })),
112
+ asFragment = _render12.asFragment;
113
+
114
+ expect(asFragment()).toMatchSnapshot();
115
+ });
116
+ var size = ['small', 'medium'];
117
+ test.each(size)('rendering size - %s', function (size) {
118
+ var _render13 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
119
+ size: size
120
+ })),
121
+ asFragment = _render13.asFragment;
122
+
123
+ expect(asFragment()).toMatchSnapshot();
124
+ });
125
+ var labelSize = ['small', 'medium', 'large'];
126
+ test.each(labelSize)('rendering labelSize - %s', function (labelSize) {
127
+ var _render14 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
128
+ labelSize: labelSize,
129
+ text: "RadioText"
130
+ })),
131
+ asFragment = _render14.asFragment;
132
+
133
+ expect(asFragment()).toMatchSnapshot();
134
+ });
135
+ var variant = ['primary', 'default'];
136
+ test.each(variant)('rendering labelSize - %s', function (variant) {
137
+ var _render15 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
138
+ variant: variant,
139
+ text: "RadioText"
140
+ })),
141
+ asFragment = _render15.asFragment;
142
+
143
+ expect(asFragment()).toMatchSnapshot();
144
+ });
145
+ test.each(palette)('rendering the active is true - %s', function (palette) {
146
+ var _render16 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
147
+ palette: palette,
148
+ active: true,
149
+ checked: true,
150
+ text: "RadioText"
151
+ })),
152
+ asFragment = _render16.asFragment;
153
+
154
+ expect(asFragment()).toMatchSnapshot();
155
+ });
156
+ test('rendering the isFilled is false', function () {
157
+ var _render17 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
158
+ isFilled: false
159
+ })),
160
+ asFragment = _render17.asFragment;
161
+
162
+ expect(asFragment()).toMatchSnapshot();
163
+ });
164
+ test('rendering the customClass of customRadioWrap,customRadio,customLabel ', function () {
165
+ var _render18 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
166
+ customClass: {
167
+ customRadioWrap: 'CustomClassCustomRadioWrap',
168
+ customRadio: 'CustomClassCustomRadio',
169
+ customLabel: 'CustomClassCustomLabel'
170
+ },
171
+ text: "RadioText"
172
+ })),
173
+ asFragment = _render18.asFragment;
174
+
175
+ expect(asFragment()).toMatchSnapshot();
176
+ });
177
+ test('rendering ally ariaChecked true', function () {
178
+ var _render19 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
179
+ checked: true
180
+ })),
181
+ asFragment = _render19.asFragment;
182
+
183
+ expect(asFragment()).toMatchSnapshot();
184
+ });
185
+ test('rendering ally ariaHidden , ariaChecked, ariaReadonly fasle true', function () {
186
+ var _render20 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
187
+ checked: true,
188
+ isReadOnly: true,
189
+ disabled: true,
190
+ a11y: {
191
+ ariaHidden: true,
192
+ ariaChecked: true,
193
+ ariaReadonly: true
194
+ }
195
+ })),
196
+ asFragment = _render20.asFragment;
197
+
198
+ expect(asFragment()).toMatchSnapshot();
199
+ });
200
+ test('rendering ally ariaHidden , ariaChecked, ariaReadonly is false', function () {
201
+ var _render21 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
202
+ a11y: {
203
+ ariaHidden: false
204
+ }
205
+ })),
206
+ asFragment = _render21.asFragment;
207
+
208
+ expect(asFragment()).toMatchSnapshot();
209
+ });
210
+ test('rendering the accessMode when isReadOnly ', function () {
211
+ var _render22 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
212
+ isReadOnly: true,
213
+ text: "RadioText"
214
+ })),
215
+ asFragment = _render22.asFragment;
216
+
217
+ expect(asFragment()).toMatchSnapshot();
218
+ });
219
+ test('rendering the accessMode when disabled ', function () {
220
+ var _render23 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
221
+ disabled: true,
222
+ text: "RadioText"
223
+ })),
224
+ asFragment = _render23.asFragment;
225
+
226
+ expect(asFragment()).toMatchSnapshot();
227
+ });
228
+ test('eleRef prop is a function', function () {
229
+ // Create a mock function
230
+ var mockEleRef = jest.fn();
231
+
232
+ var _render24 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
233
+ eleRef: mockEleRef
234
+ })),
235
+ asFragment = _render24.asFragment;
236
+
237
+ expect(asFragment()).toMatchSnapshot();
238
+ });
239
+ test('renders with different onClick props', function () {
240
+ var onClickFunction = jest.fn();
241
+
242
+ var _render25 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
243
+ value: "radioValue",
244
+ onChange: onClickFunction
245
+ }))),
246
+ asFragment = _render25.asFragment;
247
+
248
+ expect(asFragment()).toMatchSnapshot();
249
+ });
250
+ });