@zohodesk/components 1.0.0-alpha-225 → 1.0.0-alpha-228

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 (296) hide show
  1. package/README.md +20 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +2 -0
  3. package/assets/Appearance/default/mode/defaultMode.module.css +2 -0
  4. package/es/Animation/Animation.js +7 -8
  5. package/es/Avatar/Avatar.js +10 -10
  6. package/es/Button/Button.js +15 -16
  7. package/es/Button/Button.module.css +6 -2
  8. package/es/Card/Card.js +4 -5
  9. package/es/DateTime/DateWidget.module.css +0 -4
  10. package/es/DropBox/DropBox.js +2 -2
  11. package/es/ListItem/ListContainer.js +118 -0
  12. package/es/ListItem/ListItem.js +23 -31
  13. package/es/ListItem/ListItemWithAvatar.js +21 -27
  14. package/es/ListItem/ListItemWithCheckBox.js +23 -29
  15. package/es/ListItem/ListItemWithIcon.js +26 -26
  16. package/es/ListItem/ListItemWithRadio.js +24 -31
  17. package/es/MultiSelect/AdvancedGroupMultiSelect.js +7 -4
  18. package/es/MultiSelect/AdvancedMultiSelect.js +6 -3
  19. package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  20. package/es/MultiSelect/MultiSelect.js +7 -4
  21. package/es/MultiSelect/MultiSelect.module.css +8 -13
  22. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
  23. package/es/MultiSelect/SelectedOptions.js +3 -2
  24. package/es/PopOver/PopOver.js +19 -20
  25. package/es/Popup/Popup.js +1 -1
  26. package/es/Radio/Radio.js +1 -2
  27. package/es/Radio/Radio.module.css +2 -2
  28. package/es/Ribbon/Ribbon.js +8 -8
  29. package/es/RippleEffect/RippleEffect.js +7 -4
  30. package/es/RippleEffect/RippleEffect.module.css +3 -0
  31. package/es/Select/Select.module.css +1 -1
  32. package/es/Select/SelectWithAvatar.js +7 -4
  33. package/es/Stencils/Stencils.js +5 -6
  34. package/es/Tag/Tag.js +10 -4
  35. package/es/Tag/Tag.module.css +14 -11
  36. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  37. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
  38. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -1
  39. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
  40. package/lib/Animation/Animation.js +7 -8
  41. package/lib/Avatar/Avatar.js +10 -10
  42. package/lib/Button/Button.js +15 -16
  43. package/lib/Button/Button.module.css +6 -2
  44. package/lib/Card/Card.js +4 -5
  45. package/lib/DateTime/DateWidget.module.css +0 -4
  46. package/lib/DropBox/DropBox.js +6 -2
  47. package/lib/ListItem/ListContainer.js +127 -0
  48. package/lib/ListItem/ListItem.js +25 -32
  49. package/lib/ListItem/ListItemWithAvatar.js +23 -28
  50. package/lib/ListItem/ListItemWithCheckBox.js +24 -27
  51. package/lib/ListItem/ListItemWithIcon.js +27 -26
  52. package/lib/ListItem/ListItemWithRadio.js +26 -27
  53. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -4
  54. package/lib/MultiSelect/AdvancedMultiSelect.js +6 -3
  55. package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
  56. package/lib/MultiSelect/MultiSelect.js +7 -4
  57. package/lib/MultiSelect/MultiSelect.module.css +8 -13
  58. package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -3
  59. package/lib/MultiSelect/SelectedOptions.js +3 -2
  60. package/lib/PopOver/PopOver.js +19 -20
  61. package/lib/Popup/Popup.js +32 -29
  62. package/lib/Radio/Radio.js +1 -3
  63. package/lib/Radio/Radio.module.css +2 -2
  64. package/lib/Ribbon/Ribbon.js +8 -8
  65. package/lib/RippleEffect/RippleEffect.js +7 -4
  66. package/lib/RippleEffect/RippleEffect.module.css +3 -0
  67. package/lib/Select/Select.module.css +1 -1
  68. package/lib/Select/SelectWithAvatar.js +7 -4
  69. package/lib/Stencils/Stencils.js +5 -6
  70. package/lib/Tag/Tag.js +10 -4
  71. package/lib/Tag/Tag.module.css +14 -11
  72. package/lib/TextBoxIcon/TextBoxIcon.js +1 -1
  73. package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -2
  74. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -3
  75. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -3
  76. package/package.json +3 -3
  77. package/README_Beta.md +0 -2
  78. package/__testUtils__/globals.js +0 -46
  79. package/__testUtils__/moduleMapKey.json +0 -138
  80. package/dubFinder.js +0 -96
  81. package/es/Accordion/docs/Accordion__Demo.docs.js +0 -80
  82. package/es/Animation/docs/Animation__default.docs.js +0 -34
  83. package/es/Animation/docs/Animation__fadeIn.docs.js +0 -34
  84. package/es/Animation/docs/Animation__scaleIn.docs.js +0 -34
  85. package/es/Animation/docs/Animation__skewIn.docs.js +0 -34
  86. package/es/Animation/docs/Animation__slideDown.docs.js +0 -34
  87. package/es/Animation/docs/Animation__slideLeft.docs.js +0 -34
  88. package/es/Animation/docs/Animation__zoomIn.docs.js +0 -34
  89. package/es/AppContainer/docs/AppContainer__default.docs.js +0 -20
  90. package/es/Avatar/docs/Avatar__custom.docs.js +0 -29
  91. package/es/Avatar/docs/Avatar__default.docs.js +0 -29
  92. package/es/Avatar/docs/Avatar__palette.docs.js +0 -49
  93. package/es/Avatar/docs/Avatar__text.docs.js +0 -28
  94. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -73
  95. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -31
  96. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -50
  97. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -49
  98. package/es/Button/docs/Button__custom.docs.js +0 -771
  99. package/es/Button/docs/Button__default.docs.js +0 -536
  100. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -37
  101. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -33
  102. package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -42
  103. package/es/Card/docs/Card__Custom.docs.js +0 -34
  104. package/es/Card/docs/Card__Default.docs.js +0 -37
  105. package/es/Card/docs/Card__Scroll.docs.js +0 -59
  106. package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -293
  107. package/es/CheckBox/docs/CheckBox__default.docs.js +0 -219
  108. package/es/DateTime/docs/DateTime__default.docs.js +0 -91
  109. package/es/DateTime/docs/DateWidget__default.docs.js +0 -183
  110. package/es/DateTime/docs/timezonedata.json +0 -1
  111. package/es/DropBox/docs/DropBox__custom.docs.js +0 -66
  112. package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -92
  113. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -91
  114. package/es/DropBox/docs/DropBox__position.docs.js +0 -87
  115. package/es/DropBox/docs/DropBox__size.docs.js +0 -61
  116. package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -23
  117. package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -21
  118. package/es/Label/docs/Label__clipped.docs.js +0 -27
  119. package/es/Label/docs/Label__custom.docs.js +0 -30
  120. package/es/Label/docs/Label__palette.docs.js +0 -42
  121. package/es/Label/docs/Label__size.docs.js +0 -29
  122. package/es/Label/docs/Label__type.docs.js +0 -37
  123. package/es/Layout/docs/Layout__Hidden.docs.js +0 -77
  124. package/es/Layout/docs/Layout__default.docs.js +0 -49
  125. package/es/Layout/docs/Layout__four_Column.docs.js +0 -85
  126. package/es/Layout/docs/Layout__three_Column.docs.js +0 -76
  127. package/es/Layout/docs/Layout__two_Column.docs.js +0 -69
  128. package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -74
  129. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -155
  130. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -112
  131. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -91
  132. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -65
  133. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -68
  134. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -62
  135. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -91
  136. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -65
  137. package/es/ListItem/docs/ListItem__custom.docs.js +0 -114
  138. package/es/ListItem/docs/ListItem__default.docs.js +0 -82
  139. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -125
  140. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -114
  141. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -141
  142. package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -161
  143. package/es/PopOver/docs/PopOver__default.docs.js +0 -32
  144. package/es/Provider/docs/Provider_Id__Class.docs.js +0 -29
  145. package/es/Provider/docs/Provider_Id__Function.docs.js +0 -18
  146. package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -32
  147. package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -23
  148. package/es/Radio/docs/Radio__custom.docs.js +0 -245
  149. package/es/Radio/docs/Radio__default.docs.js +0 -169
  150. package/es/Responsive/docs/Responsive__Custom.docs.js +0 -206
  151. package/es/Responsive/docs/Responsive__default.docs.js +0 -97
  152. package/es/Responsive/docs/style.module.css +0 -56
  153. package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -386
  154. package/es/Ribbon/docs/Ribbon__default.docs.js +0 -342
  155. package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -435
  156. package/es/Select/docs/GroupSelect__default.docs.js +0 -149
  157. package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -97
  158. package/es/Select/docs/SelectWithIcon__default.docs.js +0 -138
  159. package/es/Select/docs/Select__default.docs.js +0 -288
  160. package/es/Stencils/docs/Stencils__custom.docs.js +0 -45
  161. package/es/Stencils/docs/Stencils__default.docs.js +0 -50
  162. package/es/Switch/docs/Switch__custom.docs.js +0 -153
  163. package/es/Switch/docs/Switch__default.docs.js +0 -107
  164. package/es/Tab/docs/Tab__default.docs.js +0 -258
  165. package/es/Tab/docs/tabdocs.module.css +0 -29
  166. package/es/Tag/docs/Tag__custom.docs.js +0 -368
  167. package/es/Tag/docs/Tag__default.docs.js +0 -253
  168. package/es/TextBox/docs/TextBox__custom.docs.js +0 -43
  169. package/es/TextBox/docs/TextBox__default.docs.js +0 -40
  170. package/es/TextBox/docs/TextBox__size.docs.js +0 -38
  171. package/es/TextBox/docs/TextBox__variant.docs.js +0 -38
  172. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -89
  173. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -61
  174. package/es/Textarea/docs/Textarea__animated.docs.js +0 -41
  175. package/es/Textarea/docs/Textarea__custom.docs.js +0 -82
  176. package/es/Textarea/docs/Textarea__default.docs.js +0 -76
  177. package/es/Textarea/docs/Textarea__disabled.docs.js +0 -29
  178. package/es/Tooltip/docs/Tooltip__default.docs.js +0 -332
  179. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -97
  180. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -150
  181. package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
  182. package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
  183. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -72
  184. package/es/semantic/Button/docs/Button__default.docs.js +0 -20
  185. package/externalDocsBuild.js +0 -21
  186. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -126
  187. package/lib/Animation/docs/Animation__default.docs.js +0 -85
  188. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -85
  189. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -85
  190. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -85
  191. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -85
  192. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -85
  193. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -85
  194. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -70
  195. package/lib/Avatar/docs/Avatar__custom.docs.js +0 -87
  196. package/lib/Avatar/docs/Avatar__default.docs.js +0 -83
  197. package/lib/Avatar/docs/Avatar__palette.docs.js +0 -107
  198. package/lib/Avatar/docs/Avatar__text.docs.js +0 -86
  199. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -124
  200. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -82
  201. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -101
  202. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -100
  203. package/lib/Button/docs/Button__custom.docs.js +0 -826
  204. package/lib/Button/docs/Button__default.docs.js +0 -590
  205. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -89
  206. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -85
  207. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -98
  208. package/lib/Card/docs/Card__Custom.docs.js +0 -90
  209. package/lib/Card/docs/Card__Default.docs.js +0 -92
  210. package/lib/Card/docs/Card__Scroll.docs.js +0 -114
  211. package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -348
  212. package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -273
  213. package/lib/DateTime/docs/DateTime__default.docs.js +0 -142
  214. package/lib/DateTime/docs/DateWidget__default.docs.js +0 -240
  215. package/lib/DateTime/docs/timezonedata.json +0 -1
  216. package/lib/DropBox/docs/DropBox__custom.docs.js +0 -122
  217. package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -141
  218. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -140
  219. package/lib/DropBox/docs/DropBox__position.docs.js +0 -142
  220. package/lib/DropBox/docs/DropBox__size.docs.js +0 -116
  221. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -73
  222. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -70
  223. package/lib/Label/docs/Label__clipped.docs.js +0 -81
  224. package/lib/Label/docs/Label__custom.docs.js +0 -85
  225. package/lib/Label/docs/Label__palette.docs.js +0 -96
  226. package/lib/Label/docs/Label__size.docs.js +0 -83
  227. package/lib/Label/docs/Label__type.docs.js +0 -91
  228. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -127
  229. package/lib/Layout/docs/Layout__default.docs.js +0 -98
  230. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -135
  231. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -126
  232. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -119
  233. package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -131
  234. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -206
  235. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -162
  236. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -142
  237. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -115
  238. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -119
  239. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -112
  240. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -142
  241. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -115
  242. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -164
  243. package/lib/ListItem/docs/ListItem__default.docs.js +0 -131
  244. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -177
  245. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -165
  246. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -191
  247. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -214
  248. package/lib/PopOver/docs/PopOver__default.docs.js +0 -86
  249. package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -77
  250. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -29
  251. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -80
  252. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -34
  253. package/lib/Radio/docs/Radio__custom.docs.js +0 -299
  254. package/lib/Radio/docs/Radio__default.docs.js +0 -222
  255. package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -272
  256. package/lib/Responsive/docs/Responsive__default.docs.js +0 -142
  257. package/lib/Responsive/docs/style.module.css +0 -56
  258. package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -437
  259. package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -392
  260. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -484
  261. package/lib/Select/docs/GroupSelect__default.docs.js +0 -199
  262. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -152
  263. package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -190
  264. package/lib/Select/docs/Select__default.docs.js +0 -340
  265. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -96
  266. package/lib/Stencils/docs/Stencils__default.docs.js +0 -101
  267. package/lib/Switch/docs/Switch__custom.docs.js +0 -203
  268. package/lib/Switch/docs/Switch__default.docs.js +0 -156
  269. package/lib/Tab/docs/Tab__default.docs.js +0 -308
  270. package/lib/Tab/docs/tabdocs.module.css +0 -29
  271. package/lib/Tag/docs/Tag__custom.docs.js +0 -423
  272. package/lib/Tag/docs/Tag__default.docs.js +0 -307
  273. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -98
  274. package/lib/TextBox/docs/TextBox__default.docs.js +0 -95
  275. package/lib/TextBox/docs/TextBox__size.docs.js +0 -93
  276. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -93
  277. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -145
  278. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -117
  279. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -95
  280. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -137
  281. package/lib/Textarea/docs/Textarea__default.docs.js +0 -130
  282. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -83
  283. package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -391
  284. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -150
  285. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -206
  286. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
  287. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +0 -101
  288. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -145
  289. package/lib/semantic/Button/docs/Button__default.docs.js +0 -66
  290. package/preprocess/componentAppearanceColors.js +0 -67
  291. package/preprocess/componentThemeColors.js +0 -123
  292. package/preprocess/ctaThemeColors.js +0 -101
  293. package/preprocess/index.js +0 -3
  294. package/preprocess/json/componentAppearanceVariableJson.js +0 -1346
  295. package/preprocess/json/componentThemeVariableJson.js +0 -242
  296. package/preprocess/json/ctaThemeVariableJson.js +0 -203
package/README.md CHANGED
@@ -32,6 +32,26 @@ In this Package, we Provide Some Basic Components to Build Web App
32
32
  - TextBoxIcon
33
33
  - Tooltip
34
34
 
35
+ # 1.0.0-alpha-228
36
+
37
+ - Button => danger, primary loader color issue solved
38
+ # 1.0.0-alpha-227
39
+
40
+ - isReadOnly and needEffect prop added in Tag Component for read-only case
41
+ - needEffect prop added for the below components: ( This props has been added for read-only case )
42
+ => Advanced Group Multi Select
43
+ => Advanced Multi Select
44
+ => Multi Select
45
+ => Multi Select With Avatar
46
+ => Select With Avatar
47
+ - isReadonly prop added for SelectedOption component
48
+ - Read-only class added for TextBoxIcon component
49
+ - Removed click action in tag multi select component for read-only case
50
+ - Changed the cursor default to not-allowed in Radio component for read-only case
51
+ # 1.0.0-alpha-226
52
+
53
+ - ListContainer Implemented in => ListItem,ListItemWithAvatar,ListItemWithIcon,ListItemWithRadio,ListItemWithCheckBox
54
+
35
55
  # 1.0.0-alpha-225
36
56
 
37
57
  - Appearance css moved to assets
@@ -66,6 +66,8 @@
66
66
  --zdt_button_tick_primary_border: var(--zdt_cta_secondary_text);
67
67
  --zdt_button_loading_default_bg: var(--dot_ebonyclay);
68
68
  --zdt_button_loading_linear_gradient: linear-gradient(0deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%) 0% 100%;
69
+ --zdt_button_loading_primary_linear_gradient: linear-gradient(0deg, rgba(71, 157, 255, 1) 50%, rgba(71, 157, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(71, 157, 255, 0.9) 0%, rgba(71, 157, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(71, 157, 255, 0.6) 0%, rgba(71, 157, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(71, 157, 255, 0.3) 0%, rgba(71, 157, 255, 0) 100%) 0% 100%;
70
+ --zdt_button_loading_danger_linear_gradient: linear-gradient(0deg, rgba(255, 107, 107, 1) 50%, rgba(255, 107, 107, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 107, 107, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 107, 107, 0.6) 0%, rgba(255, 107, 107, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0) 100%) 0% 100%;
69
71
 
70
72
  /* button group */
71
73
  --zdt_buttongroup_default_bg: var(--dot_ebonyclay);
@@ -66,6 +66,8 @@
66
66
  --zdt_button_tick_primary_border: var(--zdt_cta_secondary_text);
67
67
  --zdt_button_loading_default_bg: var(--dot_white);
68
68
  --zdt_button_loading_linear_gradient: linear-gradient(0deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%) 0% 100%;
69
+ --zdt_button_loading_primary_linear_gradient: linear-gradient(0deg, rgba(10, 115, 235, 1) 50%, rgba(10, 115, 235, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(10, 115, 235, 0.9) 0%, rgba(10, 115, 235, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(10, 115, 235, 0.6) 0%, rgba(10, 115, 235, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(10, 115, 235, 0.3) 0%, rgba(10, 115, 235, 0) 100%) 0% 100%;
70
+ --zdt_button_loading_danger_linear_gradient: linear-gradient(0deg, rgba(222, 53, 53, 1) 50%, rgba(222, 53, 53, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(222, 53, 53, 0.9) 0%, rgba(222, 53, 53, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(222, 53, 53, 0.6) 0%, rgba(222, 53, 53, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(222, 53, 53, 0.3) 0%, rgba(222, 53, 53, 0) 100%) 0% 100%;
69
71
 
70
72
  /* button group */
71
73
  --zdt_buttongroup_default_bg: var(--dot_white);
@@ -139,14 +139,13 @@ Animation.defaultProps = {
139
139
  isActive: false,
140
140
  name: 'fadeIn',
141
141
  unmountOnExit: true
142
- };
143
- Animation.propTypesDescription = {
144
- name: ' ',
145
- children: ' ',
146
- enterDuration: ' ',
147
- exitDuration: ' ',
148
- isActive: ' '
149
- };
142
+ }; // Animation.propTypesDescription = {
143
+ // name: ' ',
144
+ // children: ' ',
145
+ // enterDuration: ' ',
146
+ // exitDuration: ' ',
147
+ // isActive: ' '
148
+ // };
150
149
 
151
150
  if (false) {
152
151
  Animation.docs = {
@@ -197,16 +197,16 @@ Avatar.propTypes = {
197
197
  customProps: PropTypes.shape({
198
198
  AvatarProps: PropTypes.object
199
199
  })
200
- };
201
- Avatar.propTypesDescription = {
202
- name: ' ',
203
- size: ' ',
204
- src: ' ',
205
- palette: ' ',
206
- onClick: ' ',
207
- shape: ' ',
208
- title: ' '
209
- };
200
+ }; // Avatar.propTypesDescription = {
201
+ // name: ' ',
202
+ // size: ' ',
203
+ // src: ' ',
204
+ // palette: ' ',
205
+ // onClick: ' ',
206
+ // shape: ' ',
207
+ // title: ' '
208
+ // };
209
+
210
210
  Avatar.invalidImageURLs = [];
211
211
  Avatar.validImageURLs = [];
212
212
 
@@ -36,7 +36,7 @@ export default class Button extends React.Component {
36
36
  let paletteLower = palette.toLowerCase();
37
37
  let statusLower = status.toLowerCase();
38
38
  let classList = needAppearance ? `${style[paletteLower]} ${rounded ? style.rounded : ''} ${!children ? style[size.toLowerCase()] : `${style[`${size}Btn`]}
39
- ${rounded ? style[`${size}Btn${paletteLower}`] : ''}`}` : `${style.default}`;
39
+ ${rounded ? style[`${size}Btn${paletteLower}`] : ''}`} ${statusLower !== 'none' ? style.loader : ''}` : `${style.default}`;
40
40
  return /*#__PURE__*/React.createElement("button", {
41
41
  className: `${customButton} ${classList} ${isBold ? style.bold : ''} `,
42
42
  "data-id": disabled ? `${dataId}_disabled` : dataId,
@@ -45,12 +45,12 @@ export default class Button extends React.Component {
45
45
  "data-title": title,
46
46
  type: "button",
47
47
  ref: getRef
48
- }, children ? children : text, status !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
48
+ }, children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
49
49
  className: style.overlay
50
50
  }, /*#__PURE__*/React.createElement("div", {
51
- className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`]}` : style.success}`
51
+ className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`] ? style[`${size}loading`] : ''}` : style.success}`
52
52
  }, /*#__PURE__*/React.createElement("div", {
53
- className: `${customStatus} ${statusLower === 'loading' ? `${style.loadingelement} ${style[`${paletteLower}element`]}` : `${style.successelement} ${style[`${paletteLower}success`]}`}`
53
+ className: `${customStatus} ${statusLower === 'loading' ? `${style.loadingelement} ${style[`${paletteLower}element`] ? style[`${paletteLower}element`] : ''}` : `${style.successelement} ${style[`${paletteLower}success`] ? style[`${paletteLower}success`] : ''}`}`
54
54
  }))));
55
55
  }
56
56
 
@@ -89,18 +89,17 @@ Button.propTypes = {
89
89
  customStatus: PropTypes.string,
90
90
  customStatusSize: PropTypes.string
91
91
  })
92
- };
93
- Button.propTypesDescription = {
94
- onClick: ' ',
95
- text: ' ',
96
- palette: ' ',
97
- disabled: ' ',
98
- size: ' ',
99
- rounded: ' ',
100
- status: ' ',
101
- isBold: ' ',
102
- children: ' '
103
- };
92
+ }; // Button.propTypesDescription = {
93
+ // onClick: ' ',
94
+ // text: ' ',
95
+ // palette: ' ',
96
+ // disabled: ' ',
97
+ // size: ' ',
98
+ // rounded: ' ',
99
+ // status: ' ',
100
+ // isBold: ' ',
101
+ // children: ' '
102
+ // };
104
103
 
105
104
  if (false) {
106
105
  Button.docs = {
@@ -362,17 +362,20 @@
362
362
 
363
363
  .primaryelement:before {
364
364
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
365
+ --zdt_button_loading_linear_gradient:var(--zdt_button_loading_primary_linear_gradient);
365
366
  transform: rotateX(180deg);
366
367
  }
367
368
 
368
369
  .dangerelement:before {
369
370
  --button_loading_bg_color: var(--zdt_button_dangerfill_bg);
371
+ --zdt_button_loading_linear_gradient:var(--zdt_button_loading_danger_linear_gradient);
370
372
  transform: rotateX(180deg);
371
373
  }
372
374
 
373
375
  .primarysuccess {
374
376
  --button_success_border_color: var(--zdt_button_default_border);
375
377
  }
378
+
376
379
  .primaryfilled .successelement {
377
380
  --button_success_border_color: var(--zdt_button_tick_primary_border);
378
381
  }
@@ -456,7 +459,6 @@
456
459
  top: calc(var(--zd_size2) * -1);
457
460
  width: var(--zd_size6);
458
461
  transform: scaleX(-1) rotate(135deg);
459
- -ms-transform: scaleX(-1) rotate(135deg);
460
462
  -moz-transform: scaleX(-1) rotate(135deg);
461
463
  -webkit-transform: scaleX(-1) rotate(135deg);
462
464
  transform-origin: center;
@@ -515,4 +517,6 @@
515
517
  height: var(--zd_size15);
516
518
  width: var(--zd_size6);
517
519
  }
518
- }
520
+ }
521
+
522
+ .loader{color:var(--dot_mirror)}
package/es/Card/Card.js CHANGED
@@ -278,11 +278,10 @@ Card.defaultProps = {
278
278
  scrollAt: '10',
279
279
  a11y: {},
280
280
  isPercentageScroll: false
281
- };
282
- Card.propTypesDescription = {
283
- children: ' ',
284
- isScrollAttribute: ' '
285
- };
281
+ }; // Card.propTypesDescription = {
282
+ // children: ' ',
283
+ // isScrollAttribute: ' '
284
+ // };
286
285
 
287
286
  if (false) {
288
287
  Card.docs = {
@@ -6,10 +6,6 @@
6
6
  .readOnly, .readOnly > input, .disabled {
7
7
  cursor: not-allowed;
8
8
  }
9
- .readOnly,
10
- .disabled {
11
- composes: readonly from '../common/common.module.css';
12
- }
13
9
  .enabled {
14
10
  cursor: pointer;
15
11
  }
@@ -66,7 +66,7 @@ export class DropBoxElement extends React.Component {
66
66
  } = this.props;
67
67
  let {
68
68
  isReducedMotion
69
- } = this.context;
69
+ } = this.context || {};
70
70
 
71
71
  if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
72
72
  isAbsolutePositioningNeeded = true;
@@ -212,7 +212,7 @@ export default class DropBox extends React.Component {
212
212
  } : {};
213
213
  const {
214
214
  direction
215
- } = this.context;
215
+ } = this.context || {};
216
216
  const dropBoxEle = /*#__PURE__*/React.createElement(DropBoxElement, _extends({
217
217
  isModel: isModel,
218
218
  direction: direction
@@ -0,0 +1,118 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ /**** Libraries ****/
4
+ import React from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import { Container } from '../Layout';
7
+ import CssProvider from '../Provider/CssProvider';
8
+ import style from './ListItem.module.css';
9
+
10
+ const ListContainer = props => {
11
+ const {
12
+ size,
13
+ active,
14
+ highlight,
15
+ autoHover,
16
+ palette,
17
+ title,
18
+ disableTitle,
19
+ needTick,
20
+ isLink,
21
+ href,
22
+ target,
23
+ needBorder,
24
+ isDisabled,
25
+ children,
26
+ dataId,
27
+ a11y,
28
+ customClass,
29
+ customProps,
30
+ onClick,
31
+ onMouseEnter,
32
+ onMouseOver,
33
+ eleRef
34
+ } = props;
35
+ const {
36
+ role,
37
+ ariaSelected
38
+ } = a11y;
39
+ const options = {};
40
+
41
+ if (isLink) {
42
+ options.href = href;
43
+ options.target = `_${target}`;
44
+ }
45
+
46
+ if (active) {
47
+ options['data-selected'] = active;
48
+ }
49
+
50
+ if (!isDisabled && !isLink && active) {
51
+ options.tabindex = '0';
52
+ }
53
+
54
+ return /*#__PURE__*/React.createElement(Container, _extends({
55
+ role: role,
56
+ "aria-selected": ariaSelected,
57
+ isCover: false,
58
+ align: "vertical",
59
+ alignBox: "row",
60
+ className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customClass}`,
61
+ dataId: dataId,
62
+ onClick: !isDisabled && onClick,
63
+ onMouseEnter: onMouseEnter,
64
+ onMouseOver: onMouseOver,
65
+ eleRef: eleRef,
66
+ tagName: isLink ? 'a' : 'li',
67
+ "data-title": isDisabled ? disableTitle : title
68
+ }, options, customProps), children);
69
+ };
70
+
71
+ ListContainer.defaultProps = {
72
+ active: false,
73
+ autoHover: false,
74
+ highlight: false,
75
+ needTick: false,
76
+ palette: 'default',
77
+ size: 'medium',
78
+ isLink: false,
79
+ target: 'blank',
80
+ needBorder: true,
81
+ a11y: {},
82
+ customClass: '',
83
+ customProps: {}
84
+ };
85
+ export default ListContainer;
86
+ ListContainer.propTypes = {
87
+ active: PropTypes.bool,
88
+ autoHover: PropTypes.bool,
89
+ children: PropTypes.node,
90
+ dataId: PropTypes.string,
91
+ disableTitle: PropTypes.string,
92
+ highlight: PropTypes.bool,
93
+ href: PropTypes.string,
94
+ isDisabled: PropTypes.bool,
95
+ isLink: PropTypes.bool,
96
+ needBorder: PropTypes.bool,
97
+ needTick: PropTypes.bool,
98
+ onClick: PropTypes.func,
99
+ onMouseEnter: PropTypes.func,
100
+ onMouseOver: PropTypes.func,
101
+ palette: PropTypes.oneOf(['default', 'primary', 'secondary', 'dark']),
102
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
103
+ target: PropTypes.oneOf(['blank', 'self']),
104
+ title: PropTypes.string,
105
+ a11y: PropTypes.shape({
106
+ role: PropTypes.string,
107
+ ariaSelected: PropTypes.bool
108
+ }),
109
+ customClass: PropTypes.string,
110
+ customProps: PropTypes.object
111
+ };
112
+
113
+ if (false) {
114
+ ListContainer.docs = {
115
+ componentGroup: 'Molecule',
116
+ folderName: 'Style Guide'
117
+ };
118
+ }
@@ -3,11 +3,11 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { Container, Box } from '../Layout';
6
+ import { Box } from '../Layout';
7
+ import ListContainer from './ListContainer';
7
8
  /**** Components ****/
8
9
 
9
10
  import Icon from '@zohodesk/icons/lib/Icon';
10
- import CssProvider from '../Provider/CssProvider';
11
11
  /**** CSS ****/
12
12
 
13
13
  import style from './ListItem.module.css';
@@ -72,48 +72,40 @@ export default class ListItem extends React.Component {
72
72
  customProps
73
73
  } = this.props;
74
74
  let {
75
- ListItemProps = {}
75
+ ListItemProps = {},
76
+ ContainerProps = {}
76
77
  } = customProps;
77
78
  let {
78
79
  customListItem = '',
79
80
  customTickIcon = ''
80
81
  } = customClass;
81
82
  let {
82
- role,
83
- ariaSelected,
84
83
  ariaHidden = true
85
84
  } = a11y;
86
85
  let tickIconPalette = style[`${palette}Tick`] ? style[`${palette}Tick`] : '';
87
- let options = {};
88
-
89
- if (isLink) {
90
- options.href = href;
91
- options.target = `_${target}`;
92
- }
93
-
94
- if (active) {
95
- options['data-selected'] = active;
96
- }
97
-
98
- if (!isDisabled && !isLink && active) {
99
- options.tabindex = '0';
100
- }
101
-
102
86
  let dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
103
- return /*#__PURE__*/React.createElement(Container, _extends({
104
- role: role,
105
- "aria-selected": ariaSelected,
106
- isCover: false,
107
- align: "vertical",
108
- alignBox: "row",
109
- className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customListItem}`,
87
+ return /*#__PURE__*/React.createElement(ListContainer, _extends({
88
+ a11y: a11y,
89
+ size: size,
90
+ palette: palette,
91
+ highlight: highlight,
92
+ isDisabled: isDisabled,
93
+ active: active,
94
+ autoHover: autoHover,
95
+ needTick: needTick,
96
+ needBorder: needBorder,
97
+ customClass: customListItem,
110
98
  dataId: dataIdString,
111
- onClick: !isDisabled && this.handleClick,
99
+ isLink: isLink,
100
+ href: href,
101
+ target: target,
102
+ disableTitle: disableTitle,
103
+ title: title,
104
+ onClick: this.handleClick,
112
105
  onMouseEnter: this.handleMouseEnter,
113
106
  eleRef: this.getRef,
114
- tagName: isLink ? 'a' : 'li',
115
- "data-title": isDisabled ? disableTitle : title
116
- }, options, ListItemProps), value ? /*#__PURE__*/React.createElement(Box, {
107
+ customProps: ListItemProps
108
+ }, ContainerProps), value ? /*#__PURE__*/React.createElement(Box, {
117
109
  shrink: true,
118
110
  adjust: true,
119
111
  className: style.value
@@ -3,13 +3,13 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  /**** Libraries ****/
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { Container, Box } from '../Layout';
6
+ import { Box } from '../Layout';
7
+ import ListContainer from './ListContainer';
7
8
  /**** Components ****/
8
9
 
9
10
  import Avatar from '../Avatar/Avatar';
10
11
  import AvatarTeam from '../AvatarTeam/AvatarTeam';
11
12
  import Icon from '@zohodesk/icons/lib/Icon';
12
- import CssProvider from '../Provider/CssProvider';
13
13
  /**** CSS ****/
14
14
 
15
15
  import style from './ListItem.module.css';
@@ -76,44 +76,38 @@ export default class ListItemWithAvatar extends React.PureComponent {
76
76
  customProps
77
77
  } = this.props;
78
78
  let {
79
- ListItemProps = {}
79
+ ListItemProps = {},
80
+ ContainerProps = {}
80
81
  } = customProps;
81
82
  let {
82
83
  customListItem = '',
83
84
  customAvatar = '',
84
85
  customAvatarTeam = ''
85
86
  } = customClass;
86
- let options = {};
87
87
  let {
88
- role,
89
- ariaSelected,
90
88
  ariaHidden = true
91
89
  } = a11y;
92
90
  let isDarkPalette = palette === 'dark';
93
-
94
- if (active) {
95
- options['data-selected'] = active;
96
- }
97
-
98
- if (!isDisabled && active) {
99
- options.tabindex = '0';
100
- }
101
-
102
91
  let dataIdString = value ? value : dataId;
103
- return /*#__PURE__*/React.createElement(Container, _extends({
104
- role: role,
105
- "aria-selected": ariaSelected,
106
- isCover: false,
107
- align: "vertical",
108
- alignBox: "row",
109
- className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''} ${needTick ? style[`${size}withTick`] : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? active ? style.activewithBorder : style.withBorder : ''} ${customListItem}`,
110
- onClick: !isDisabled && this.handleClick,
92
+ return /*#__PURE__*/React.createElement(ListContainer, _extends({
93
+ a11y: a11y,
94
+ size: size,
95
+ palette: palette,
96
+ highlight: highlight,
97
+ isDisabled: isDisabled,
98
+ active: active,
99
+ autoHover: autoHover,
100
+ needTick: needTick,
101
+ needBorder: needBorder,
102
+ customClass: customListItem,
103
+ dataId: `${dataIdString}_ListItemWithAvatar`,
104
+ onClick: this.handleClick,
111
105
  onMouseEnter: this.handleMouseEnter,
112
106
  eleRef: this.getRef,
113
- tagName: "li",
114
- dataId: `${dataIdString}_ListItemWithAvatar`,
115
- "data-title": isDisabled ? disableTitle : null
116
- }, options, ListItemProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
107
+ disableTitle: disableTitle,
108
+ title: null,
109
+ customProps: ListItemProps
110
+ }, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
117
111
  className: style.leftAvatar
118
112
  }, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
119
113
  name: name,
@@ -2,9 +2,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
+ import ListContainer from './ListContainer';
5
6
  import CheckBox from '../CheckBox/CheckBox';
6
- import { Container, Box } from '../Layout';
7
- import CssProvider from '../Provider/CssProvider';
7
+ import { Box } from '../Layout';
8
8
  import style from './ListItem.module.css';
9
9
  export default class ListItemWithCheckBox extends React.Component {
10
10
  constructor(props) {
@@ -57,42 +57,35 @@ export default class ListItemWithCheckBox extends React.Component {
57
57
  isDisabled,
58
58
  disableTitle,
59
59
  a11y,
60
- customClass
60
+ customClass,
61
+ customProps
61
62
  } = this.props;
62
63
  let {
63
- role,
64
- ariaSelected
65
- } = a11y;
64
+ ListItemProps = {},
65
+ ContainerProps = {}
66
+ } = customProps;
66
67
  let {
67
68
  customListItem = '',
68
69
  customCheckBox = '',
69
70
  customLabel = ''
70
71
  } = customClass;
71
- let options = {};
72
-
73
- if (active) {
74
- options['data-selected'] = active;
75
- }
76
-
77
- if (!isDisabled && active) {
78
- options.tabindex = '0';
79
- }
80
-
81
- return /*#__PURE__*/React.createElement(Container, _extends({
82
- role: role,
83
- "aria-selected": ariaSelected,
84
- isCover: false,
85
- align: "vertical",
86
- alignBox: "row",
87
- className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''}
88
- ${isDisabled ? CssProvider('isDisable') : ''} ${customListItem}`,
72
+ return /*#__PURE__*/React.createElement(ListContainer, _extends({
73
+ a11y: a11y,
74
+ size: size,
75
+ palette: palette,
76
+ highlight: highlight,
77
+ isDisabled: isDisabled,
78
+ active: active,
79
+ autoHover: autoHover,
80
+ customClass: customListItem,
89
81
  dataId: `${dataId ? dataId : value}_ListItemWithCheckBox`,
90
- onClick: !isDisabled && this.onClick,
82
+ onClick: this.onClick,
91
83
  onMouseOver: this.onHover,
92
84
  eleRef: this.getRef,
93
- tagName: "li",
94
- "data-title": isDisabled ? disableTitle : null
95
- }, options), /*#__PURE__*/React.createElement(Box, {
85
+ disableTitle: disableTitle,
86
+ title: null,
87
+ customProps: ListItemProps
88
+ }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
96
89
  className: style.iconBox
97
90
  }, /*#__PURE__*/React.createElement(CheckBox, {
98
91
  checked: checked,
@@ -121,7 +114,8 @@ ListItemWithCheckBox.defaultProps = {
121
114
  size: 'medium',
122
115
  value: 'List',
123
116
  a11y: {},
124
- customClass: {}
117
+ customClass: {},
118
+ customProps: {}
125
119
  };
126
120
  ListItemWithCheckBox.propTypes = {
127
121
  active: PropTypes.bool,