@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
@@ -16,25 +16,28 @@ function cssJSLogic(_ref) {
16
16
 
17
17
  var props = _ref.props,
18
18
  style = _ref.style;
19
- var $ui_isReset = props.$ui_isReset,
20
- $ui_isDotted = props.$ui_isDotted,
19
+ var $flag_reset = props.$flag_reset,
20
+ $flag_dotted = props.$flag_dotted,
21
21
  $ui_size = props.$ui_size,
22
22
  $ui_lineClamp = props.$ui_lineClamp,
23
23
  $ui_lineHeight = props.$ui_lineHeight,
24
24
  $ui_display = props.$ui_display,
25
- $ui_variant = props.$ui_variant,
25
+ $ui_weight = props.$ui_weight,
26
26
  $ui_typeFace = props.$ui_typeFace,
27
27
  $ui_textAlign = props.$ui_textAlign,
28
28
  $ui_letterSpacing = props.$ui_letterSpacing,
29
29
  $ui_transform = props.$ui_transform,
30
30
  $ui_decoration = props.$ui_decoration,
31
- $ui_className = props.$ui_className;
31
+ $ui_className = props.$ui_className,
32
+ $ui_wordBreak = props.$ui_wordBreak,
33
+ $ui_wordWrap = props.$ui_wordWrap,
34
+ $ui_whiteSpace = props.$ui_whiteSpace;
32
35
 
33
36
  if ($ui_letterSpacing && $ui_letterSpacing.match(/\./g)) {
34
37
  $ui_letterSpacing = _letterSpacingMap.letterspacingMapping[$ui_letterSpacing];
35
38
  }
36
39
 
37
- var typographyClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.reset, $ui_isReset), _defineProperty(_compileClassNames, style.dotted, $ui_isDotted), _defineProperty(_compileClassNames, style["size".concat($ui_size)], !!$ui_size), _defineProperty(_compileClassNames, style["lineclamp_".concat($ui_lineClamp)], !!$ui_lineClamp), _defineProperty(_compileClassNames, style["lineheight_".concat($ui_lineHeight)], !!$ui_lineHeight), _defineProperty(_compileClassNames, style["display_".concat($ui_display)], !!$ui_display), _defineProperty(_compileClassNames, style["font_".concat($ui_variant)], !!$ui_variant), _defineProperty(_compileClassNames, style["fontStyles_".concat($ui_typeFace)], !!$ui_typeFace), _defineProperty(_compileClassNames, style["textalign_".concat($ui_textAlign)], !!$ui_textAlign), _defineProperty(_compileClassNames, style["letterspacing_".concat($ui_letterSpacing)], !!$ui_letterSpacing), _defineProperty(_compileClassNames, style["transform_".concat($ui_transform)], !!$ui_transform), _defineProperty(_compileClassNames, style["decoration_".concat($ui_decoration)], !!$ui_decoration), _defineProperty(_compileClassNames, $ui_className, !!$ui_className), _compileClassNames));
40
+ var typographyClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.reset, $flag_reset), _defineProperty(_compileClassNames, style.dotted, $flag_dotted), _defineProperty(_compileClassNames, style["size".concat($ui_size)], !!$ui_size), _defineProperty(_compileClassNames, style["lineclamp_".concat($ui_lineClamp)], !!$ui_lineClamp), _defineProperty(_compileClassNames, style["lineheight_".concat($ui_lineHeight)], !!$ui_lineHeight), _defineProperty(_compileClassNames, style["display_".concat($ui_display)], !!$ui_display), _defineProperty(_compileClassNames, style["font_".concat($ui_weight)], !!$ui_weight), _defineProperty(_compileClassNames, style["fontStyles_".concat($ui_typeFace)], !!$ui_typeFace), _defineProperty(_compileClassNames, style["textalign_".concat($ui_textAlign)], !!$ui_textAlign), _defineProperty(_compileClassNames, style["letterspacing_".concat($ui_letterSpacing)], !!$ui_letterSpacing), _defineProperty(_compileClassNames, style["transform_".concat($ui_transform)], !!$ui_transform), _defineProperty(_compileClassNames, style["decoration_".concat($ui_decoration)], !!$ui_decoration), _defineProperty(_compileClassNames, $ui_className, !!$ui_className), _defineProperty(_compileClassNames, style["wordBreak_".concat($ui_wordBreak)], !!$ui_wordBreak), _defineProperty(_compileClassNames, style["wordWrap_".concat($ui_wordWrap)], !!$ui_wordWrap), _defineProperty(_compileClassNames, style["whiteSpace_".concat($ui_whiteSpace)], !!$ui_whiteSpace), _compileClassNames));
38
41
  return {
39
42
  typographyClass: typographyClass
40
43
  };
@@ -7,9 +7,9 @@ exports.defaultProps = void 0;
7
7
  var defaultProps = {
8
8
  $ui_className: '',
9
9
  $ui_tagName: 'div',
10
- $ui_isReset: false,
11
- $ui_isDotted: false,
12
- a11yAttributes: {},
13
- tagAttributes: {}
10
+ $flag_reset: false,
11
+ $flag_dotted: false,
12
+ $tagAttributes_text: {},
13
+ $a11yAttributes_text: {}
14
14
  };
15
15
  exports.defaultProps = defaultProps;
@@ -13,10 +13,10 @@ var propTypes = {
13
13
  children: _propTypes["default"].node,
14
14
  $ui_className: _propTypes["default"].string,
15
15
  $ui_tagName: _propTypes["default"].string,
16
- $ui_isReset: _propTypes["default"].bool,
17
- $ui_isDotted: _propTypes["default"].bool,
16
+ $flag_reset: _propTypes["default"].bool,
17
+ $flag_dotted: _propTypes["default"].bool,
18
18
  $ui_display: _propTypes["default"].oneOf(['block', 'inlineBlock', 'inline', 'initial']),
19
- $ui_variant: _propTypes["default"].oneOf(['regular', 'light', 'semibold', 'bold']),
19
+ $ui_weight: _propTypes["default"].oneOf(['regular', 'light', 'semibold', 'bold']),
20
20
  $ui_textAlign: _propTypes["default"].oneOf(['left', 'right', 'center', 'justify']),
21
21
  $ui_transform: _propTypes["default"].oneOf(['default', 'upper', 'lower', 'capital']),
22
22
  $ui_lineClamp: _propTypes["default"].oneOf(['1', '2', '3', '4', '5']),
@@ -25,11 +25,14 @@ var propTypes = {
25
25
  $ui_size: _propTypes["default"].oneOf(['7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '24', '25', '26', '28', '29', '30', '32', '34', '35', '36', '40', '50', 'inherit']),
26
26
  $ui_lineHeight: _propTypes["default"].oneOf(['0', '1', '8', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '24', '25', '26', '27', '28', '29', '30', '32', '33', '34', '35', '36', '38', '40', '41', '42', '45', '50', '52', '54', '55', '60', '70', '75', '120', 'inherit']),
27
27
  $ui_letterSpacing: _propTypes["default"].oneOf(['0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1', '2', '4', 'inherit']),
28
+ $ui_wordBreak: _propTypes["default"].oneOf(['breakAll', 'keepAll', 'breakWord']),
29
+ $ui_wordWrap: _propTypes["default"].oneOf(['normal', 'break']),
30
+ $ui_whiteSpace: _propTypes["default"].oneOf(['normal', 'noWrap', 'pre', 'preLine', 'preWrap']),
28
31
  $i18n_dataTitle: _propTypes["default"].string,
29
32
  testId: _propTypes["default"].string,
30
33
  customId: _propTypes["default"].string,
31
34
  customStyle: _propTypes["default"].object,
32
- a11yAttributes: _propTypes["default"].object,
33
- tagAttributes: _propTypes["default"].object
35
+ $a11yAttributes_text: _propTypes["default"].object,
36
+ $tagAttributes_text: _propTypes["default"].object
34
37
  };
35
38
  exports.propTypes = propTypes;
package/package.json CHANGED
@@ -1,93 +1,93 @@
1
- {
2
- "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-170",
4
- "main": "es/index.js",
5
- "module": "es/index.js",
6
- "private": false,
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "author": "Z Team",
11
- "homepage": "https://www.npmjs.com/search?q=@zohodesk",
12
- "license": "ISC",
13
- "keywords": [
14
- "DOT",
15
- "ZOHODESK",
16
- "ZTEAM",
17
- "LIBRARY"
18
- ],
19
- "scripts": {
20
- "build:docs": "react-cli build:docs",
21
- "lint": "react-cli lint",
22
- "lintAll": "react-cli lint ./src",
23
- "lintAllFix": "npm run lintAll --eslint:fix=true",
24
- "clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
25
- "dubCheck": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/icons/lib node_modules/@zohodesk/variables/lib",
26
- "init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components && npm run build:variables",
27
- "build:variables": "node ./preprocess/index",
28
- "rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
29
- "common_package_build": "cd ../common && npm run build && cd ../components",
30
- "start": "react-cli start",
31
- "docs": "npm run dubCheck && react-cli docs",
32
- "build:lib": "react-cli build:component:cmjs",
33
- "build:es": "react-cli build:library:es",
34
- "build": "npm run build:lib && npm run build:es",
35
- "build:local": " npm run build && npm run rtl && npm run cssVariableConvert",
36
- "build:watch": "npm run build:variables && npm run build && npm run build:es --module:mode=dev -- -w",
37
- "rtl:watch": "react-cli rtl ./src ./es -w",
38
- "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
39
- "coverage": "react-cli coverage",
40
- "prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
41
- "prepublishOnly": "node prePublish.js && npm run test && npm run review:props",
42
- "postpublish": "node postPublish.js",
43
- "report": "react-cli publish:report",
44
- "test": "react-cli test",
45
- "snap-update": "npm run test -- -u",
46
- "sstest": "npm run init && react-cli sstest",
47
- "build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && react-cli build:component:umd && npm run externalDocHTMLChange",
48
- "download": "react-cli clean ./node_modules ./package-lock.json && npm install",
49
- "expublish": "npm publish --tag experimental-version",
50
- "cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
51
- "variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
52
- "variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
53
- "variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
54
- "review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js ./src/ ./.cli ./.cli "
55
- },
56
- "devDependencies": {
57
- "@testing-library/jest-dom": "^5.11.9",
58
- "@testing-library/react": "^11.2.5",
59
- "@testing-library/react-hooks": "^7.0.2",
60
- "@testing-library/user-event": "^13.0.10",
61
- "@zohodesk-private/color-variable-preprocessor": "1.0.6",
62
- "@zohodesk-private/css-variable-migrator": "^1.0.7",
63
- "@zohodesk-private/node-plugins": "^1.0.0",
64
- "@zohodesk-private/react-prop-validator": "^0.1.1",
65
- "@zohodesk/a11y": "2.1.0",
66
- "@zohodesk/docstool": "1.0.0-alpha-2",
67
- "@zohodesk/hooks": "2.0.1",
68
- "@zohodesk/icons": "1.0.10",
69
- "@zohodesk/svg": "1.1.4",
70
- "@zohodesk/utils": "1.3.13",
71
- "@zohodesk/variables": "1.0.0",
72
- "@zohodesk/virtualizer": "1.0.3",
73
- "react-sortable-hoc": "^0.8.3",
74
- "velocity-react": "1.4.3"
75
- },
76
- "dependencies": {
77
- "hoist-non-react-statics": "3.0.1",
78
- "react-transition-group": "2.5.0",
79
- "reselect": "4.0.0",
80
- "selectn": "1.1.2"
81
- },
82
- "peerDependencies": {
83
- "@zohodesk/icons": "1.0.10",
84
- "@zohodesk/variables": "1.0.0",
85
- "@zohodesk/svg": "1.1.4",
86
- "@zohodesk/virtualizer": "1.0.3",
87
- "velocity-react": "1.4.3",
88
- "react-sortable-hoc": "^0.8.3",
89
- "@zohodesk/hooks": "2.0.1",
90
- "@zohodesk/utils": "1.3.13",
91
- "@zohodesk/a11y": "2.1.0"
92
- }
93
- }
1
+ {
2
+ "name": "@zohodesk/components",
3
+ "version": "1.0.0-temp-171",
4
+ "main": "es/index.js",
5
+ "module": "es/index.js",
6
+ "private": false,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "author": "Z Team",
11
+ "homepage": "https://www.npmjs.com/search?q=@zohodesk",
12
+ "license": "ISC",
13
+ "keywords": [
14
+ "DOT",
15
+ "ZOHODESK",
16
+ "ZTEAM",
17
+ "LIBRARY"
18
+ ],
19
+ "scripts": {
20
+ "build:docs": "react-cli build:docs",
21
+ "lint": "react-cli lint",
22
+ "lintAll": "react-cli lint ./src",
23
+ "lintAllFix": "npm run lintAll --eslint:fix=true",
24
+ "clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
25
+ "dubCheck": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/icons/lib node_modules/@zohodesk/variables/lib",
26
+ "init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components && npm run build:variables",
27
+ "build:variables": "node ./preprocess/index",
28
+ "rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
29
+ "common_package_build": "cd ../common && npm run build && cd ../components",
30
+ "start": "react-cli start",
31
+ "docs": "npm run dubCheck && react-cli docs",
32
+ "build:lib": "react-cli build:component:cmjs",
33
+ "build:es": "react-cli build:library:es",
34
+ "build": "npm run build:lib && npm run build:es",
35
+ "build:local": " npm run build && npm run rtl && npm run cssVariableConvert",
36
+ "build:watch": "npm run build:variables && npm run build && npm run build:es --module:mode=dev -- -w",
37
+ "rtl:watch": "react-cli rtl ./src ./es -w",
38
+ "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
39
+ "coverage": "react-cli coverage",
40
+ "prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
41
+ "prepublishOnly": "node prePublish.js && npm run test && npm run review:props",
42
+ "postpublish": "node postPublish.js",
43
+ "report": "react-cli publish:report",
44
+ "test": "react-cli test",
45
+ "snap-update": "npm run test -- -u",
46
+ "sstest": "npm run init && react-cli sstest",
47
+ "build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && react-cli build:component:umd && npm run externalDocHTMLChange",
48
+ "download": "react-cli clean ./node_modules ./package-lock.json && npm install",
49
+ "expublish": "npm publish --tag experimental-version",
50
+ "cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
51
+ "variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
52
+ "variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
53
+ "variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
54
+ "review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js ./src/ ./.cli ./.cli "
55
+ },
56
+ "devDependencies": {
57
+ "@testing-library/jest-dom": "^5.11.9",
58
+ "@testing-library/react": "^11.2.5",
59
+ "@testing-library/react-hooks": "^7.0.2",
60
+ "@testing-library/user-event": "^13.0.10",
61
+ "@zohodesk-private/color-variable-preprocessor": "1.0.6",
62
+ "@zohodesk-private/css-variable-migrator": "^1.0.7",
63
+ "@zohodesk-private/node-plugins": "^1.0.0",
64
+ "@zohodesk-private/react-prop-validator": "^1.0.0",
65
+ "@zohodesk/a11y": "1.0.0-temp-1",
66
+ "@zohodesk/docstool": "1.0.0-alpha-2",
67
+ "@zohodesk/hooks": "2.0.2",
68
+ "@zohodesk/icons": "1.0.10",
69
+ "@zohodesk/svg": "1.1.4",
70
+ "@zohodesk/utils": "1.3.13",
71
+ "@zohodesk/variables": "1.0.0",
72
+ "@zohodesk/virtualizer": "1.0.3",
73
+ "react-sortable-hoc": "^0.8.3",
74
+ "velocity-react": "1.4.3"
75
+ },
76
+ "dependencies": {
77
+ "hoist-non-react-statics": "3.0.1",
78
+ "react-transition-group": "2.5.0",
79
+ "reselect": "4.0.0",
80
+ "selectn": "1.1.2"
81
+ },
82
+ "peerDependencies": {
83
+ "@zohodesk/icons": "1.0.10",
84
+ "@zohodesk/variables": "1.0.0",
85
+ "@zohodesk/svg": "1.1.4",
86
+ "@zohodesk/virtualizer": "1.0.3",
87
+ "velocity-react": "1.4.3",
88
+ "react-sortable-hoc": "^0.8.3",
89
+ "@zohodesk/hooks": "2.0.2",
90
+ "@zohodesk/utils": "1.3.13",
91
+ "@zohodesk/a11y": "../a11y"
92
+ }
93
+ }
package/postPublish.js CHANGED
@@ -1,8 +1,8 @@
1
- const { execSync } = require('child_process');
2
- const { version, name } = require('./package.json');
3
- const tagName = `${name}@${version}`;
4
- // const tagName = `${name.replace(/^@/g, "").replace(/\//g, "-")}-v-${version}}@${version}`;
5
- console.log(`going to add git tag... ${tagName}`);
6
-
7
- execSync(`git tag -a ${tagName} -m ${tagName}`, { stdio: 'inherit' });
8
- execSync(`git push origin ${tagName}`, { stdio: 'inherit' });
1
+ const { execSync } = require('child_process');
2
+ const { version, name } = require('./package.json');
3
+ const tagName = `${name}@${version}`;
4
+ // const tagName = `${name.replace(/^@/g, "").replace(/\//g, "-")}-v-${version}}@${version}`;
5
+ console.log(`going to add git tag... ${tagName}`);
6
+
7
+ execSync(`git tag -a ${tagName} -m ${tagName}`, { stdio: 'inherit' });
8
+ execSync(`git push origin ${tagName}`, { stdio: 'inherit' });
package/prePublish.js CHANGED
@@ -1,70 +1,70 @@
1
- const readline = require('readline');
2
- const { exec } = require('child_process');
3
-
4
- const rl = readline.createInterface({
5
- input: process.stdin,
6
- output: process.stdout
7
- });
8
-
9
- console.log('\nNode.js version:', process.version);
10
-
11
- function runConsole(command, callback) {
12
- exec(command, (error, stdout, stderr) => {
13
- if (error) {
14
- console.error('Error:', error.message);
15
- return;
16
- }
17
-
18
- if (stderr) {
19
- console.error('Error:', stderr);
20
- return;
21
- }
22
-
23
- const npmVersion = stdout.trim();
24
- console.log('\n' + command, npmVersion);
25
- callback && callback();
26
- });
27
- }
28
-
29
- function askQuestion1() {
30
- rl.question('\nHave you updated the changelog in README.md? (yes/no): ', (answer) => {
31
- if (answer.toLowerCase() === 'yes') {
32
- console.log('\nGreat! Proceeding...');
33
- askQuestion2();
34
- // rl.close();
35
- // Call the function or code to proceed further here.
36
- } else if (answer.toLowerCase() === 'no') {
37
- rl.close();
38
- console.log('\nPlease Update the ChangeLog in README.md, then try again');
39
- //throw new Error('\nPlease Update the ChangeLog in README.md, then try again');
40
- process.exitCode = 1; // Exit the Node.js process with a success code.
41
- } else {
42
- console.log('\nInvalid answer. Please enter "yes" or "no".');
43
- askQuestion1(); // Ask the question again if the input is not "yes" or "no".
44
- }
45
- });
46
- }
47
-
48
- function askQuestion2() {
49
- rl.question('\nHave you verified the test snapshot? (yes/no): ', (answer) => {
50
- if (answer.toLowerCase() === 'yes') {
51
- console.log('\nGreat! Proceeding...');
52
- rl.close();
53
- // Call the function or code to proceed further here.
54
- } else if (answer.toLowerCase() === 'no') {
55
- rl.close();
56
- //throw new Error('\nPlease Verify the snapshot results, then try again');
57
- console.log('\nPlease Verify the snapshot results, then try again');
58
- process.exitCode = 1; // Exit the Node.js process with a success code.
59
- } else {
60
- console.log('\nInvalid answer. Please enter "yes" or "no".');
61
- askQuestion2(); // Ask the question again if the input is not "yes" or "no".
62
- }
63
- });
64
- }
65
-
66
- function getReactCliVersion() {
67
- runConsole('react-cli --version', askQuestion1);
68
- }
69
-
70
- runConsole('npm --version', getReactCliVersion);
1
+ const readline = require('readline');
2
+ const { exec } = require('child_process');
3
+
4
+ const rl = readline.createInterface({
5
+ input: process.stdin,
6
+ output: process.stdout
7
+ });
8
+
9
+ console.log('\nNode.js version:', process.version);
10
+
11
+ function runConsole(command, callback) {
12
+ exec(command, (error, stdout, stderr) => {
13
+ if (error) {
14
+ console.error('Error:', error.message);
15
+ return;
16
+ }
17
+
18
+ if (stderr) {
19
+ console.error('Error:', stderr);
20
+ return;
21
+ }
22
+
23
+ const npmVersion = stdout.trim();
24
+ console.log('\n' + command, npmVersion);
25
+ callback && callback();
26
+ });
27
+ }
28
+
29
+ function askQuestion1() {
30
+ rl.question('\nHave you updated the changelog in README.md? (yes/no): ', (answer) => {
31
+ if (answer.toLowerCase() === 'yes') {
32
+ console.log('\nGreat! Proceeding...');
33
+ askQuestion2();
34
+ // rl.close();
35
+ // Call the function or code to proceed further here.
36
+ } else if (answer.toLowerCase() === 'no') {
37
+ rl.close();
38
+ console.log('\nPlease Update the ChangeLog in README.md, then try again');
39
+ //throw new Error('\nPlease Update the ChangeLog in README.md, then try again');
40
+ process.exitCode = 1; // Exit the Node.js process with a success code.
41
+ } else {
42
+ console.log('\nInvalid answer. Please enter "yes" or "no".');
43
+ askQuestion1(); // Ask the question again if the input is not "yes" or "no".
44
+ }
45
+ });
46
+ }
47
+
48
+ function askQuestion2() {
49
+ rl.question('\nHave you verified the test snapshot? (yes/no): ', (answer) => {
50
+ if (answer.toLowerCase() === 'yes') {
51
+ console.log('\nGreat! Proceeding...');
52
+ rl.close();
53
+ // Call the function or code to proceed further here.
54
+ } else if (answer.toLowerCase() === 'no') {
55
+ rl.close();
56
+ //throw new Error('\nPlease Verify the snapshot results, then try again');
57
+ console.log('\nPlease Verify the snapshot results, then try again');
58
+ process.exitCode = 1; // Exit the Node.js process with a success code.
59
+ } else {
60
+ console.log('\nInvalid answer. Please enter "yes" or "no".');
61
+ askQuestion2(); // Ask the question again if the input is not "yes" or "no".
62
+ }
63
+ });
64
+ }
65
+
66
+ function getReactCliVersion() {
67
+ runConsole('react-cli --version', askQuestion1);
68
+ }
69
+
70
+ runConsole('npm --version', getReactCliVersion);
@@ -1,24 +1,24 @@
1
- exports.config= {
2
- "preprocess": {
3
- "runner": "./preprocess/index.js"
4
- },
5
- "css": {
6
- "plugins": {
7
- "hasRTL": true,
8
- "cssVariableReplacement": true
9
- },
10
- "patterns": {
11
- "cssVariableReplacement": [
12
- "**/src/**",
13
- "**/lib/**",
14
- "**/es/**",
15
- "!**/node_modules/**"
16
- ],
17
- "hasRTL":[
18
- "**/src/**",
19
- "!**/node_modules/**"
20
- ]
21
- },
22
- "cssVariableReplacementConfig": "./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
23
- }
1
+ exports.config= {
2
+ "preprocess": {
3
+ "runner": "./preprocess/index.js"
4
+ },
5
+ "css": {
6
+ "plugins": {
7
+ "hasRTL": true,
8
+ "cssVariableReplacement": true
9
+ },
10
+ "patterns": {
11
+ "cssVariableReplacement": [
12
+ "**/src/**",
13
+ "**/lib/**",
14
+ "**/es/**",
15
+ "!**/node_modules/**"
16
+ ],
17
+ "hasRTL":[
18
+ "**/src/**",
19
+ "!**/node_modules/**"
20
+ ]
21
+ },
22
+ "cssVariableReplacementConfig": "./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
23
+ }
24
24
  }
package/result.json CHANGED
@@ -1 +1 @@
1
- {"jobDetails":{"isRunByLocal":true,"hostName":"karuppiah-zt111","platForm":"Windows_NT","branchName":"varunLibrary"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":36,"numberOfFails":0,"numberOfCases":36,"numberOfSuites":2,"endTime":1697546573059,"startTime":1697546565163,"coverageDetail":{"codeCoveragePercentage":null,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"D:\\git\\client\\desklibrary\\SVGPkg\\jsapps\\dot\\components\\src\\Buttongroup\\__tests__\\Buttongroup.spec.js","CaseList":{"passedCaseList":["rendering the default props","rendering the \"buttonPosition\" to - left","rendering the \"buttonPosition\" to - right","rendering the \"buttonPosition\" to - center","Checking the \"customclass\"","rendering the \"type\" - footer","rendering the \"type\" - header","rendering the \"type\" - tab"],"failedCaseList":[]}},{"fileName":"D:\\git\\client\\desklibrary\\SVGPkg\\jsapps\\dot\\components\\src\\Button\\__tests__\\Button.spec.js","CaseList":{"passedCaseList":["Should be render with the basic set of default props","Should render palette of buttons - plainPrimary","Should render palette of buttons - plainSecondary","Should render palette of buttons - primary","Should render palette of buttons - primaryFilled","Should render palette of buttons - dangerFilled","Should render palette of buttons - secondary","Should render palette of buttons - secondaryFilled","Should render palette of buttons - successFilled","Should render palette of buttons - info","Should render palette of buttons - tertiaryFilled","Should render Sizes of buttons - small","Should render Sizes of buttons - medium","Should render Sizes of buttons - large","Should render Sizes of buttons - xlarge","Should render Status of buttons - loading","Should render Status of buttons - success","Should render Status of buttons - none","Should render CustomStatusclassname of buttons - loading","Should render CustomStatusclassname of buttons - success","Should be render with the basic set of default props with disabled is true","Should be render with the basic set of default props with isBold is false","Should be render with the basic set of default props with rounded is true","Should be render with the basic set of default props with needAppearance is false","Should be render with the basic set customButtonclass with buttonClass ","Should be render with the basic set customstatusSize props with buttonClass ","Should be render with the basic set customstyle ","Should be render with the customstyle with medium "],"failedCaseList":[]}}]}}}
1
+ {"jobDetails":{"isRunByLocal":true,"hostName":"lakshmi-zt257","platForm":"Darwin","branchName":"Selva_Accessibility_Desk_Library"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":218,"numberOfFails":0,"numberOfCases":218,"numberOfSuites":10,"endTime":1699430923903,"startTime":1699430915292,"coverageDetail":{"codeCoveragePercentage":91.97,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Buttongroup/__tests__/Buttongroup.spec.js","CaseList":{"passedCaseList":["rendering the default props","rendering the \"buttonPosition\" to - left","rendering the \"buttonPosition\" to - right","rendering the \"buttonPosition\" to - center","Checking the \"customclass\"","rendering the \"type\" - footer","rendering the \"type\" - header","rendering the \"type\" - tab"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Button/__tests__/Button.spec.js","CaseList":{"passedCaseList":["Should be render with the basic set of default props","Should render palette of buttons - plainPrimary","Should render palette of buttons - plainSecondary","Should render palette of buttons - primary","Should render palette of buttons - primaryFilled","Should render palette of buttons - dangerFilled","Should render palette of buttons - secondary","Should render palette of buttons - secondaryFilled","Should render palette of buttons - successFilled","Should render palette of buttons - info","Should render palette of buttons - tertiaryFilled","Should render Sizes of buttons - small","Should render Sizes of buttons - medium","Should render Sizes of buttons - large","Should render Sizes of buttons - xlarge","Should render Status of buttons - loading","Should render Status of buttons - success","Should render Status of buttons - none","Should render CustomStatusclassname of buttons - loading","Should render CustomStatusclassname of buttons - success","Should be render with the basic set of default props with disabled is true","Should be render with the basic set of default props with isBold is false","Should be render with the basic set of default props with rounded is true","Should be render with the basic set of default props with needAppearance is false","Should be render with the basic set customButtonclass with buttonClass ","Should be render with the basic set customstatusSize props with buttonClass ","Should be render with the basic set customstyle ","Should be render with the customstyle with medium "],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Label/__tests__/Label.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the type of- title","rendering the type of- subtitle","rendering the palette of- default","rendering the palette of- primary","rendering the palette of- secondary","rendering the palette of- danger","rendering the palette of- mandatory","rendering the palette of- disable","rendering the palette of- dark","rendering the size of- xsmall","rendering the size of- small","rendering the size of- medium","rendering the size of- large","rendering the clipped is true","rendering the title","rendering the variant of- primary","rendering the variant of- default","rendering the customClass","rendering the Id","rendering the htmlFor","rendering the onClick prop with asFragment and toMatchSnapshot"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/RippleEffect/__tests__/RippleEffect.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering isActive is true","rendering isDisabled is true","rendering the palette of- default","rendering the palette of- primary","rendering the palette of- primaryLight","rendering the palette of- primaryFilled","rendering the palette of- primaryDark","rendering the palette of- green","rendering the palette of- danger","rendering hoverType of- default","rendering hoverType of- border","rendering hoverType of- bg","rendering hoverType of- test","rendering isNeedEffect is false","rendering needBorder is false","rendering isCopyTextEnabled is false"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Button/__tests__/Button.spec.js","CaseList":{"passedCaseList":["Should be render with the basic set of default props","Should render palette of buttons - plainPrimary","Should render palette of buttons - plainSecondary","Should render palette of buttons - primary","Should render palette of buttons - primaryFilled","Should render palette of buttons - dangerFilled","Should render palette of buttons - secondary","Should render palette of buttons - secondaryFilled","Should render palette of buttons - successFilled","Should render palette of buttons - info","Should render palette of buttons - tertiaryFilled","Should render Sizes of buttons - small","Should render Sizes of buttons - medium","Should render Sizes of buttons - large","Should render Sizes of buttons - xlarge","Should render Status of buttons - loading","Should render Status of buttons - success","Should render Status of buttons - none","Should render CustomStatusclassname of buttons - loading","Should render CustomStatusclassname of buttons - success","Should be render with the basic set of default props with disabled is true","Should be render with the basic set of default props with isBold is false","Should be render with the basic set of default props with rounded is true","Should be render with the basic set of default props with needAppearance is false","Should be render with the basic set customButtonclass with buttonClass ","Should be render with the basic set customstatusSize props with buttonClass ","Should be render with the basic set customstyle ","Should be render with the customstyle with medium "],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Avatar/__tests__/Avatar.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- secondary","rendering the palette of- info","rendering the palette of- default","rendering the shape of- circle","rendering the shape of- square","rendering the size of- xxsmall","rendering the size of- small","rendering the size of- xsmall","rendering the size of- medium","rendering the size of- xmedium","rendering the size of- large","rendering the size of- xlarge","rendering the size of- white","rendering the size of- black","rendering src","rendering Name in 2 Word","rendering title","rendering needTitle","rendering initial","rendering NeedBorder false","rendering BorderOnActive true","rendering borderOnHover true","rendering customClass true","rendering alternateSrc","rendering showAlternateAvatar is enabled border get disabled","rendering isAnimate is false","rendering needInnerBorder is true","rendering showDefaultBorder is true","rendering the Custom props"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Ribbon/__tests__/Ribbon.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- default","rendering the palette of- danger","rendering the palette of- primary","rendering the palette of- secondary","rendering the palette of- info","rendering the palette of- dark","rendering the type - default","rendering the type - flag","rendering the type - plain","rendering the type - ribbon","rendering the type - box","rendering the type - stamp","rendering the type - sticker","rendering the type - tag","rendering children ","rendering the size - small","rendering the size - medium","rendering the size - large","rendering the size - xlarge","rendering the customClass"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/AvatarTeam/__tests__/AvatarTeam.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the Props of Avatar","rendering the palette of- primary","rendering the palette of- secondary","rendering the palette of- info","rendering the sizes of- xxsmall","rendering the sizes of- small","rendering the sizes of- xsmall","rendering the sizes of- medium","rendering the sizes of- xmedium","rendering the sizes of- large","rendering the sizes of- xlarge","rendering the textPalette of- white","rendering the textPalette of- black","rendering borderOnActive","rendering border is true","rendering the onClick prop with asFragment and toMatchSnapshot","rendering the palette with isFilled of- primary","rendering the palette with isFilled of- secondary","rendering the palette with isFilled of- info","rendering CustomClass - customAvatar","rendering CustomClass - customAvatarTeam","rendering customProps - AvatarTeamProps","rendering customProps - AvatarProps"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Switch/__tests__/Switch.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the checked","rendering the dataId","rendering the disabled and disableTitle","rendering the text","rendering the ID","rendering the isReadOnly","rendering the size of- small","rendering the size of- medium","rendering the labelSize of- small","rendering the labelSize of- medium","rendering the labelSize of- large","rendering the labelSize of- default","rendering the labelSize of- primary","rendering the labelSize of- secondary","rendering the labelSize of- danger","rendering the labelSize of- mandatory","rendering the Name","rendering the Title","rendering the Value","rendering the CustomClass","rendering the CustomProps"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Buttongroup/__tests__/Buttongroup.spec.js","CaseList":{"passedCaseList":["rendering the default props","rendering the \"buttonPosition\" to - left","rendering the \"buttonPosition\" to - right","rendering the \"buttonPosition\" to - center","Checking the \"customclass\"","rendering the \"type\" - footer","rendering the \"type\" - header","rendering the \"type\" - tab"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Radio/__tests__/Radio.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the ID","rendering the Name","rendering the Value","rendering palette - primary","rendering palette - danger","rendering the Checked is true","rendering the disabled is true","rendering the isReadOnly is true","rendering the disabledTitle","rendering the title","rendering the text","rendering labelPalette - default","rendering labelPalette - primary","rendering labelPalette - danger","rendering labelPalette - mandatory","rendering size - small","rendering size - medium","rendering labelSize - small","rendering labelSize - medium","rendering labelSize - large","rendering labelSize - primary","rendering labelSize - default","rendering the active is true - primary","rendering the active is true - danger","rendering the isFilled is false","rendering the customClass of customRadioWrap,customRadio,customLabel ","rendering ally ariaChecked true","rendering ally ariaHidden , ariaChecked, ariaReadonly fasle true","rendering ally ariaHidden , ariaChecked, ariaReadonly is false","rendering the accessMode when isReadOnly ","rendering the accessMode when disabled ","eleRef prop is a function","renders with different onClick props"],"failedCaseList":[]}},{"fileName":"/Users/lakshmi-zt257/Documents/Git/LibraryCheck/jsapps/dot/components/src/Stencils/__tests__/Stencils.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- secondary","rendering the palette of- dark","rendering the shape of- rect","rendering the shape of- circle","rendering the size of- small","rendering the size of- medium","rendering the size of- large","rendering the size of- default","rendering the customClass"],"failedCaseList":[]}}]}}}
@@ -31,7 +31,7 @@
31
31
  </tr>
32
32
 
33
33
  </table>
34
- <br/>COVERAGE <span class="red">0%</span> <br/> less than 60% consider failure
34
+ <br/>COVERAGE <span class="green">91.97%</span> <br/> less than 60% consider failure
35
35
  </body>
36
36
  </html>
37
37