@zohodesk/components 1.0.0-alpha-252 → 1.0.0-alpha-254

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 +6 -0
  2. package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +3 -0
  3. package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +3 -0
  4. package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +3 -0
  5. package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +3 -0
  6. package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +3 -0
  7. package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +3 -0
  8. package/assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +3 -0
  9. package/assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +3 -0
  10. package/assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css +3 -0
  11. package/assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +3 -0
  12. package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +3 -0
  13. package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +3 -0
  14. package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +3 -0
  15. package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +3 -0
  16. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +3 -0
  17. package/css_error.log +0 -0
  18. package/es/AppContainer/AppContainer.js +1 -0
  19. package/es/Avatar/Avatar.js +2 -1
  20. package/es/Button/Button.js +5 -3
  21. package/es/Card/props/defaultProps.js +0 -1
  22. package/es/Card/props/propTypes.js +2 -2
  23. package/es/DateTime/CalendarView.js +4 -2
  24. package/es/DateTime/DateTime.module.css +1 -0
  25. package/es/DateTime/DateTimePopupHeader.js +21 -8
  26. package/es/DateTime/DateWidget.js +4 -2
  27. package/es/DateTime/DaysRow.js +2 -1
  28. package/es/DateTime/YearView.js +12 -4
  29. package/es/DateTime/YearView.module.css +19 -1
  30. package/es/DropBox/DropBox.js +24 -4
  31. package/es/DropBox/props/defaultProps.js +2 -1
  32. package/es/DropBox/props/propTypes.js +1 -0
  33. package/es/DropDown/DropDownHeading.js +3 -1
  34. package/es/DropDown/props/propTypes.js +2 -1
  35. package/es/Label/Label.js +4 -2
  36. package/es/Layout/props/propTypes.js +3 -3
  37. package/es/ListItem/ListContainer.js +5 -2
  38. package/es/MultiSelect/MultiSelect.js +4 -2
  39. package/es/MultiSelect/Suggestions.js +2 -1
  40. package/es/Responsive/CustomResponsive.js +7 -3
  41. package/es/Select/Select.js +7 -4
  42. package/es/Select/SelectWithIcon.js +2 -1
  43. package/es/Switch/Switch.js +7 -5
  44. package/es/Tab/TabContent.js +1 -1
  45. package/es/Tab/Tabs.js +13 -7
  46. package/es/Tab/Tabs.module.css +1 -1
  47. package/es/Tooltip/Tooltip.js +4 -1
  48. package/es/common/a11y.module.css +4 -0
  49. package/es/index.js +107 -106
  50. package/lib/AppContainer/AppContainer.js +1 -0
  51. package/lib/Avatar/Avatar.js +2 -1
  52. package/lib/Button/Button.js +5 -3
  53. package/lib/Card/props/defaultProps.js +0 -1
  54. package/lib/Card/props/propTypes.js +2 -2
  55. package/lib/DateTime/CalendarView.js +4 -2
  56. package/lib/DateTime/DateTime.module.css +1 -0
  57. package/lib/DateTime/DateTimePopupHeader.js +21 -8
  58. package/lib/DateTime/DateWidget.js +4 -2
  59. package/lib/DateTime/DaysRow.js +2 -1
  60. package/lib/DateTime/YearView.js +12 -4
  61. package/lib/DateTime/YearView.module.css +19 -1
  62. package/lib/DropBox/DropBox.js +24 -4
  63. package/lib/DropBox/props/defaultProps.js +2 -1
  64. package/lib/DropBox/props/propTypes.js +1 -0
  65. package/lib/DropDown/DropDownHeading.js +3 -1
  66. package/lib/DropDown/props/propTypes.js +2 -1
  67. package/lib/Label/Label.js +4 -2
  68. package/lib/Layout/props/propTypes.js +3 -3
  69. package/lib/ListItem/ListContainer.js +5 -2
  70. package/lib/MultiSelect/MultiSelect.js +4 -2
  71. package/lib/MultiSelect/Suggestions.js +2 -1
  72. package/lib/Responsive/CustomResponsive.js +7 -3
  73. package/lib/Select/Select.js +7 -4
  74. package/lib/Select/SelectWithIcon.js +2 -1
  75. package/lib/Switch/Switch.js +7 -5
  76. package/lib/Tab/TabContent.js +1 -1
  77. package/lib/Tab/Tabs.js +13 -7
  78. package/lib/Tab/Tabs.module.css +1 -1
  79. package/lib/Tooltip/Tooltip.js +4 -1
  80. package/lib/common/a11y.module.css +4 -0
  81. package/lib/index.js +1 -842
  82. package/package.json +14 -7
  83. package/es/Accordion/docs/Accordion__Demo.docs.js +0 -78
  84. package/es/Animation/docs/Animation__default.docs.js +0 -32
  85. package/es/Animation/docs/Animation__fadeIn.docs.js +0 -32
  86. package/es/Animation/docs/Animation__scaleIn.docs.js +0 -32
  87. package/es/Animation/docs/Animation__skewIn.docs.js +0 -32
  88. package/es/Animation/docs/Animation__slideDown.docs.js +0 -32
  89. package/es/Animation/docs/Animation__slideLeft.docs.js +0 -32
  90. package/es/Animation/docs/Animation__zoomIn.docs.js +0 -32
  91. package/es/AppContainer/docs/AppContainer__default.docs.js +0 -18
  92. package/es/Avatar/docs/Avatar__custom.docs.js +0 -27
  93. package/es/Avatar/docs/Avatar__default.docs.js +0 -27
  94. package/es/Avatar/docs/Avatar__palette.docs.js +0 -47
  95. package/es/Avatar/docs/Avatar__text.docs.js +0 -26
  96. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -71
  97. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -29
  98. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -48
  99. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -47
  100. package/es/Button/docs/Button__custom.docs.js +0 -769
  101. package/es/Button/docs/Button__default.docs.js +0 -534
  102. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -35
  103. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -31
  104. package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -40
  105. package/es/Card/docs/Card__Custom.docs.js +0 -32
  106. package/es/Card/docs/Card__Default.docs.js +0 -35
  107. package/es/Card/docs/Card__Scroll.docs.js +0 -56
  108. package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -289
  109. package/es/CheckBox/docs/CheckBox__default.docs.js +0 -215
  110. package/es/DateTime/docs/DateTime__default.docs.js +0 -88
  111. package/es/DateTime/docs/DateWidget__default.docs.js +0 -178
  112. package/es/DateTime/docs/timezonedata.json +0 -1
  113. package/es/DropBox/docs/DropBox__custom.docs.js +0 -64
  114. package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -85
  115. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -84
  116. package/es/DropBox/docs/DropBox__position.docs.js +0 -85
  117. package/es/DropBox/docs/DropBox__size.docs.js +0 -59
  118. package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -21
  119. package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -19
  120. package/es/Heading/docs/Heading__default.docs.js +0 -19
  121. package/es/Label/docs/Label__clipped.docs.js +0 -25
  122. package/es/Label/docs/Label__custom.docs.js +0 -28
  123. package/es/Label/docs/Label__palette.docs.js +0 -40
  124. package/es/Label/docs/Label__size.docs.js +0 -27
  125. package/es/Label/docs/Label__type.docs.js +0 -35
  126. package/es/Layout/docs/Layout__Hidden.docs.js +0 -76
  127. package/es/Layout/docs/Layout__default.docs.js +0 -48
  128. package/es/Layout/docs/Layout__four_Column.docs.js +0 -78
  129. package/es/Layout/docs/Layout__three_Column.docs.js +0 -75
  130. package/es/Layout/docs/Layout__two_Column.docs.js +0 -68
  131. package/es/LightNightMode/Colors.json +0 -497
  132. package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -92
  133. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -153
  134. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -110
  135. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -89
  136. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -63
  137. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -66
  138. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -60
  139. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -89
  140. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -63
  141. package/es/ListItem/docs/ListItem__custom.docs.js +0 -112
  142. package/es/ListItem/docs/ListItem__default.docs.js +0 -80
  143. package/es/Modal/__docs__/Modal__default.docs.js +0 -42
  144. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -118
  145. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -108
  146. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -137
  147. package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -156
  148. package/es/PopOver/docs/PopOver__default.docs.js +0 -30
  149. package/es/Provider/docs/Provider_Id__Class.docs.js +0 -28
  150. package/es/Provider/docs/Provider_Id__Function.docs.js +0 -17
  151. package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -31
  152. package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -22
  153. package/es/Provider.js +0 -91
  154. package/es/Radio/docs/Radio__custom.docs.js +0 -241
  155. package/es/Radio/docs/Radio__default.docs.js +0 -165
  156. package/es/Responsive/docs/Responsive__Custom.docs.js +0 -214
  157. package/es/Responsive/docs/Responsive__default.docs.js +0 -95
  158. package/es/Responsive/docs/style.module.css +0 -56
  159. package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -385
  160. package/es/Ribbon/docs/Ribbon__default.docs.js +0 -341
  161. package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -433
  162. package/es/Select/docs/GroupSelect__default.docs.js +0 -144
  163. package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -93
  164. package/es/Select/docs/SelectWithIcon__default.docs.js +0 -134
  165. package/es/Select/docs/Select__default.docs.js +0 -283
  166. package/es/Stencils/docs/Stencils__custom.docs.js +0 -43
  167. package/es/Stencils/docs/Stencils__default.docs.js +0 -48
  168. package/es/Switch/docs/Switch__custom.docs.js +0 -151
  169. package/es/Switch/docs/Switch__default.docs.js +0 -105
  170. package/es/Tab/docs/Tab__default.docs.js +0 -253
  171. package/es/Tab/docs/tabdocs.module.css +0 -29
  172. package/es/Tag/docs/Tag__custom.docs.js +0 -366
  173. package/es/Tag/docs/Tag__default.docs.js +0 -321
  174. package/es/TextBox/docs/TextBox__custom.docs.js +0 -41
  175. package/es/TextBox/docs/TextBox__default.docs.js +0 -38
  176. package/es/TextBox/docs/TextBox__size.docs.js +0 -36
  177. package/es/TextBox/docs/TextBox__variant.docs.js +0 -36
  178. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -87
  179. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -59
  180. package/es/Textarea/docs/Textarea__animated.docs.js +0 -39
  181. package/es/Textarea/docs/Textarea__custom.docs.js +0 -80
  182. package/es/Textarea/docs/Textarea__default.docs.js +0 -74
  183. package/es/Textarea/docs/Textarea__disabled.docs.js +0 -27
  184. package/es/Tooltip/docs/Tooltip__default.docs.js +0 -367
  185. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -92
  186. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -139
  187. package/es/common/docStyle.module.css +0 -766
  188. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -65
  189. package/es/semantic/Button/docs/Button__default.docs.js +0 -17
  190. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -104
  191. package/lib/Animation/docs/Animation__default.docs.js +0 -61
  192. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -61
  193. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -61
  194. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -61
  195. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -61
  196. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -61
  197. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -61
  198. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -47
  199. package/lib/Avatar/docs/Avatar__custom.docs.js +0 -62
  200. package/lib/Avatar/docs/Avatar__default.docs.js +0 -60
  201. package/lib/Avatar/docs/Avatar__palette.docs.js +0 -82
  202. package/lib/Avatar/docs/Avatar__text.docs.js +0 -61
  203. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -100
  204. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -58
  205. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -77
  206. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -76
  207. package/lib/Button/docs/Button__custom.docs.js +0 -800
  208. package/lib/Button/docs/Button__default.docs.js +0 -565
  209. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -64
  210. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -60
  211. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -71
  212. package/lib/Card/docs/Card__Custom.docs.js +0 -63
  213. package/lib/Card/docs/Card__Default.docs.js +0 -66
  214. package/lib/Card/docs/Card__Scroll.docs.js +0 -87
  215. package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -323
  216. package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -249
  217. package/lib/DateTime/docs/DateTime__default.docs.js +0 -119
  218. package/lib/DateTime/docs/DateWidget__default.docs.js +0 -212
  219. package/lib/DateTime/docs/timezonedata.json +0 -1
  220. package/lib/DropBox/docs/DropBox__custom.docs.js +0 -97
  221. package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -114
  222. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -113
  223. package/lib/DropBox/docs/DropBox__position.docs.js +0 -118
  224. package/lib/DropBox/docs/DropBox__size.docs.js +0 -92
  225. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -50
  226. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -48
  227. package/lib/Heading/docs/Heading__default.docs.js +0 -50
  228. package/lib/Label/docs/Label__clipped.docs.js +0 -56
  229. package/lib/Label/docs/Label__custom.docs.js +0 -59
  230. package/lib/Label/docs/Label__palette.docs.js +0 -71
  231. package/lib/Label/docs/Label__size.docs.js +0 -58
  232. package/lib/Label/docs/Label__type.docs.js +0 -66
  233. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -105
  234. package/lib/Layout/docs/Layout__default.docs.js +0 -77
  235. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -107
  236. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -104
  237. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -97
  238. package/lib/LightNightMode/Colors.json +0 -497
  239. package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -128
  240. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -182
  241. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -139
  242. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -118
  243. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -92
  244. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -95
  245. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -89
  246. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -118
  247. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -92
  248. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -141
  249. package/lib/ListItem/docs/ListItem__default.docs.js +0 -109
  250. package/lib/Modal/__docs__/Modal__default.docs.js +0 -65
  251. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -154
  252. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -140
  253. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -165
  254. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -186
  255. package/lib/PopOver/docs/PopOver__default.docs.js +0 -61
  256. package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -56
  257. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -24
  258. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -59
  259. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -29
  260. package/lib/Provider.js +0 -116
  261. package/lib/Radio/docs/Radio__custom.docs.js +0 -273
  262. package/lib/Radio/docs/Radio__default.docs.js +0 -197
  263. package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -247
  264. package/lib/Responsive/docs/Responsive__default.docs.js +0 -118
  265. package/lib/Responsive/docs/style.module.css +0 -56
  266. package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -414
  267. package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -370
  268. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -462
  269. package/lib/Select/docs/GroupSelect__default.docs.js +0 -173
  270. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -124
  271. package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -165
  272. package/lib/Select/docs/Select__default.docs.js +0 -313
  273. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -72
  274. package/lib/Stencils/docs/Stencils__default.docs.js +0 -77
  275. package/lib/Switch/docs/Switch__custom.docs.js +0 -180
  276. package/lib/Switch/docs/Switch__default.docs.js +0 -134
  277. package/lib/Tab/docs/Tab__default.docs.js +0 -283
  278. package/lib/Tab/docs/tabdocs.module.css +0 -29
  279. package/lib/Tag/docs/Tag__custom.docs.js +0 -397
  280. package/lib/Tag/docs/Tag__default.docs.js +0 -352
  281. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -72
  282. package/lib/TextBox/docs/TextBox__default.docs.js +0 -69
  283. package/lib/TextBox/docs/TextBox__size.docs.js +0 -67
  284. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -67
  285. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -118
  286. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -90
  287. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -70
  288. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -111
  289. package/lib/Textarea/docs/Textarea__default.docs.js +0 -105
  290. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -58
  291. package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -402
  292. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -123
  293. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -174
  294. package/lib/common/docStyle.module.css +0 -766
  295. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -111
  296. package/lib/semantic/Button/docs/Button__default.docs.js +0 -43
package/README.md CHANGED
@@ -32,6 +32,12 @@ 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-253
36
+
37
+ - **Tabs, Tooltip** - If condition check added to reduce murphy error logs.
38
+
39
+ - `Accesssility`- Screen Reader support for some components.
40
+
35
41
  # 1.0.0-alpha-252
36
42
 
37
43
  - **Select,GroupSelect,SelectWithAvatar,SelectWithIcon,MultiSelect,MultiSelectWithAvatar** - Initial Loader and Scroll End Loader added.
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_cadetblue);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: var(--dot_butterflyblue);
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_cadetblue);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #45a159;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_cadetblue);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #ff801f;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_cadetblue);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #e94f4f;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_cadetblue);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #d79835;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_white);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: var(--dot_primary);
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_white);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #26a942;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_white);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #e57717;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_white);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: var(--dot_brightRed);
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: var(--dot_white);
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #e8b923;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: #999;
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: var(--dot_butterflyblue);
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: #999;
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #45a159;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: #999;
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #ff801f;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: #999;
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #e94f4f;
42
45
  }
@@ -39,4 +39,7 @@
39
39
 
40
40
  /* dropdown */
41
41
  --zdt_dropdown_darkheading_text: #999;
42
+
43
+ /* focusscope */
44
+ --zdt_a11y_focusScope_focus_border: #d79835;
42
45
  }
package/css_error.log ADDED
File without changes
@@ -12,6 +12,7 @@ import '@zohodesk/variables/assets/fontsizeVariables.module.css';
12
12
  import '@zohodesk/variables/lib/fontFamilyVariables.module.css';
13
13
  import '@zohodesk/variables/assets/transitionVariables.module.css';
14
14
  import '@zohodesk/variables/assets/no_transitionVariables.module.css';
15
+ import '../common/a11y.module.css';
15
16
  import style from './AppContainer.module.css';
16
17
  import { getLibraryConfig, setLibraryConfig } from '../Provider/Config';
17
18
  export default class AppContainer extends React.Component {
@@ -154,7 +154,8 @@ export default class Avatar extends React.Component {
154
154
  name: name,
155
155
  onError: this.putInvalidImageURLJSON,
156
156
  onLoad: this.putValidImageURLJSON,
157
- src: showAlternateAvatar ? alternateSrc : src
157
+ src: showAlternateAvatar ? alternateSrc : src,
158
+ alt: name
158
159
  }), !isValidImageList && !showAlternateAvatar ? null : /*#__PURE__*/React.createElement("span", {
159
160
  className: `${style.shadow} ${textStyle} `
160
161
  })));
@@ -1,3 +1,4 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
1
2
  import React from 'react';
2
3
  import { defaultProps } from './props/defaultProps';
3
4
  import { propTypes } from './props/propTypes';
@@ -24,7 +25,8 @@ export default class Button extends React.Component {
24
25
  needAppearance,
25
26
  getRef,
26
27
  title,
27
- customClass
28
+ customClass,
29
+ customProps
28
30
  } = this.props;
29
31
  let {
30
32
  customButton = '',
@@ -35,7 +37,7 @@ export default class Button extends React.Component {
35
37
  let statusLower = status.toLowerCase();
36
38
  let classList = needAppearance ? `${style[paletteLower]} ${rounded ? style.rounded : ''} ${!children ? style[size.toLowerCase()] : `${style[`${size}Btn`]}
37
39
  ${rounded ? style[`${size}Btn${paletteLower}`] : ''}`} ${statusLower !== 'none' ? style.loader : ''}` : `${style.default}`;
38
- return /*#__PURE__*/React.createElement("button", {
40
+ return /*#__PURE__*/React.createElement("button", _extends({
39
41
  className: `${customButton} ${classList} ${isBold ? style.bold : ''} `,
40
42
  "data-id": disabled ? `${dataId}_disabled` : dataId,
41
43
  disabled: disabled || statusLower === 'loading',
@@ -43,7 +45,7 @@ export default class Button extends React.Component {
43
45
  "data-title": title,
44
46
  type: "button",
45
47
  ref: getRef
46
- }, children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
48
+ }, customProps), children ? children : text, statusLower !== 'none' && needAppearance && /*#__PURE__*/React.createElement("div", {
47
49
  className: style.overlay
48
50
  }, /*#__PURE__*/React.createElement("div", {
49
51
  className: `${customStatusSize} ${statusLower === 'loading' ? `${style.loading} ${style[`${size}loading`] ? style[`${size}loading`] : ''}` : style.success}`
@@ -9,7 +9,6 @@ export const Card_defaultProps = {
9
9
  export const CardContent_defaultProps = {
10
10
  isScrollAttribute: false,
11
11
  scroll: 'vertical',
12
- preventParentScroll: 'vertical',
13
12
  dataId: 'CardContent',
14
13
  customClass: ''
15
14
  };
@@ -11,10 +11,10 @@ export const CardContent_propTypes = {
11
11
  eleRef: PropTypes.func,
12
12
  isScrollAttribute: PropTypes.bool,
13
13
  onScroll: PropTypes.func,
14
- scroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
14
+ scroll: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
15
15
  shrink: PropTypes.bool,
16
16
  customClass: PropTypes.string,
17
- preventParentScroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both'])
17
+ preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
18
18
  };
19
19
  export const Card_propTypes = {
20
20
  childTypes: PropTypes.object,
@@ -147,7 +147,8 @@ export default class CalendarView extends React.PureComponent {
147
147
  })();
148
148
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DaysRow, {
149
149
  dayNames: dayNames,
150
- dayNamesShort: dayNamesShort
150
+ dayNamesShort: dayNamesShort,
151
+ ariaLabel: dayNamesShort
151
152
  }), /*#__PURE__*/React.createElement("div", {
152
153
  "data-id": `${dataId}_dateContainer`,
153
154
  className: `${style.dateContainer} ${needBorder ? style.separator : ''}`
@@ -183,7 +184,8 @@ export class Span extends React.PureComponent {
183
184
  dataId: dataId,
184
185
  className: `${tdclass} ${isActive ? style.active : ''} ${isToday ? style.today : ''}`,
185
186
  key: i,
186
- onClick: this.handleSelectChild
187
+ onClick: this.handleSelectChild,
188
+ "aria-label": incremday
187
189
  }, incremday);
188
190
  }
189
191
  }
@@ -74,6 +74,7 @@
74
74
  line-height: var(--zd_size24);
75
75
  color: var(--zdt_datetime_datestr_text);
76
76
  composes: semibold;
77
+ display: initial
77
78
  }
78
79
 
79
80
  .dateContainer {
@@ -6,6 +6,7 @@ import React, { PureComponent } from 'react';
6
6
  /** ** Components *** */
7
7
  import { Container, Box } from '../Layout';
8
8
  import Icon from '@zohodesk/icons/lib/Icon';
9
+ import Heading from '../Heading/Heading';
9
10
 
10
11
  /** ** CSS *** */
11
12
  import style from './DateTime.module.css';
@@ -26,13 +27,16 @@ class Span extends React.PureComponent {
26
27
  dataTitle,
27
28
  children,
28
29
  dataId,
29
- className = ''
30
+ className = '',
31
+ ariaLabel
30
32
  } = this.props;
31
33
  return /*#__PURE__*/React.createElement(Box, {
32
34
  "data-title": dataTitle,
33
35
  dataId: dataId,
34
36
  className: `${style.thArrow} ${style.grid} ${className}`,
35
- onClick: this.modifyCalendarChild
37
+ onClick: this.modifyCalendarChild,
38
+ "aria-label": ariaLabel,
39
+ tabindex: "0"
36
40
  }, children);
37
41
  }
38
42
  }
@@ -54,19 +58,26 @@ export default class DateTimePopupHeader extends PureComponent {
54
58
  className: style.dateText,
55
59
  dataId: "selectYear",
56
60
  onClick: onOpenYearView
57
- }, /*#__PURE__*/React.createElement("span", {
58
- className: style.thMonYear
59
- }, showMonthTxt), /*#__PURE__*/React.createElement(Icon, {
61
+ }, /*#__PURE__*/React.createElement(Heading, {
62
+ className: style.thMonYear,
63
+ title: showMonthTxt,
64
+ tagName: "h2",
65
+ a11y: {
66
+ tabindex: '0'
67
+ }
68
+ }), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Icon, {
60
69
  name: "ZD-GN-dropdown",
61
70
  size: "12",
62
71
  iconClass: style.downArrow
63
- })), /*#__PURE__*/React.createElement(Box, {
72
+ }))), /*#__PURE__*/React.createElement(Box, {
64
73
  flexible: true
65
74
  }), !isYearView ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Span, {
66
75
  dataTitle: prevMonthTitleText,
67
76
  dataId: "prevMonth",
68
77
  modifyCalendar: onModifyCalendar,
69
- type: "previousMonth"
78
+ type: "previousMonth",
79
+ ariaLabel: "prevMonth",
80
+ tabindex: "0"
70
81
  }, /*#__PURE__*/React.createElement(Icon, {
71
82
  name: "ZD-arrowLeft3",
72
83
  isBold: true
@@ -75,7 +86,9 @@ export default class DateTimePopupHeader extends PureComponent {
75
86
  dataId: "nextMonth",
76
87
  modifyCalendar: onModifyCalendar,
77
88
  type: "nextMonth",
78
- className: style.navigation
89
+ className: style.navigation,
90
+ ariaLabel: "nextMonth",
91
+ tabindex: "0"
79
92
  }, /*#__PURE__*/React.createElement(Icon, {
80
93
  name: "ZD-arrowRight3",
81
94
  isBold: true
@@ -919,7 +919,8 @@ class DateWidgetComponent extends React.Component {
919
919
  positionsOffset,
920
920
  targetOffset,
921
921
  isRestrictScroll,
922
- dropBoxPortalId
922
+ dropBoxPortalId,
923
+ a11y
923
924
  } = this.props;
924
925
  const {
925
926
  selected: value = '',
@@ -969,7 +970,8 @@ class DateWidgetComponent extends React.Component {
969
970
  },
970
971
  iconOnHover: iconOnHover,
971
972
  isFocus: isPopupReady,
972
- autoComplete: false
973
+ autoComplete: false,
974
+ a11y: a11y
973
975
  }, /*#__PURE__*/React.createElement(Container, {
974
976
  align: "both",
975
977
  onClick: isDisabled || isReadOnly ? null : this.handleDateIconClick
@@ -20,7 +20,8 @@ export default class DaysRow extends PureComponent {
20
20
  }, dayNames.map((dayName, index) => /*#__PURE__*/React.createElement(Box, {
21
21
  key: dayName,
22
22
  className: `${style.daysStr} ${style.grid} ${index === 0 ? style.sunday : ''}`,
23
- "data-title": dayName
23
+ "data-title": dayName,
24
+ "aria-label": dayName
24
25
  }, dayNamesShort[index])));
25
26
  }
26
27
  }
@@ -7,6 +7,7 @@ import { YearView_defaultProps } from './props/defaultProps';
7
7
  import { Virtualizer } from '@zohodesk/virtualizer';
8
8
  import { Container, Box } from '../Layout';
9
9
  import Icon from '@zohodesk/icons/lib/Icon';
10
+ import Heading from '../Heading/Heading';
10
11
  /**** CSS ****/
11
12
  import style from './YearView.module.css';
12
13
 
@@ -50,9 +51,15 @@ class Year extends React.PureComponent {
50
51
  alignBox: "row",
51
52
  align: "vertical"
52
53
  }, /*#__PURE__*/React.createElement(Box, {
53
- flexible: true,
54
- className: style.yearText
55
- }, year), /*#__PURE__*/React.createElement(Icon, {
54
+ flexible: true
55
+ }, /*#__PURE__*/React.createElement(Heading, {
56
+ className: style.yearText,
57
+ title: year,
58
+ a11y: {
59
+ tabindex: '0'
60
+ },
61
+ tagName: "h4"
62
+ })), /*#__PURE__*/React.createElement(Icon, {
56
63
  name: "ZD-arrowDownSingle",
57
64
  size: "7",
58
65
  isBold: true,
@@ -85,7 +92,8 @@ class Month extends React.PureComponent {
85
92
  dataId: `month_${month}`,
86
93
  className: `${style.month} ${isActive ? style.currentMonth : ''}`,
87
94
  onClick: this.handleClick,
88
- "data-title": hoverText
95
+ "data-title": hoverText,
96
+ "aria-label": month
89
97
  }, displayText);
90
98
  }
91
99
  }
@@ -5,6 +5,7 @@
5
5
  padding-left: var(--zd_size19);
6
6
  padding-right: var(--zd_size19);
7
7
  }
8
+
8
9
  .month {
9
10
  width: 30.333%;
10
11
  font-size: var(--zd_font_size12);
@@ -17,51 +18,66 @@
17
18
  background-color: var(--zdt_yearview_month_bg);
18
19
  border-radius: 20px;
19
20
  }
21
+
20
22
  .month:hover {
21
23
  background-color: var(--zdt_yearview_month_hover_bg);
22
24
  }
25
+
23
26
  .currentMonth,
24
27
  .currentMonth:hover {
25
28
  color: var(--zdt_yearview_currentmonth_text);
26
29
  }
30
+
27
31
  .currentMonth, .currentMonth:hover {
28
32
  background-color: var(--zdt_yearview_currentmonth_bg);
29
33
  }
34
+
30
35
  .yearBox {
31
36
  border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
32
37
  }
38
+
33
39
  .year {
34
40
  padding: var(--zd_size7) 0;
35
41
  cursor: pointer;
36
42
  }
43
+
37
44
  .year:hover .yearText,
38
45
  .year:hover .arrow {
39
46
  color: var(--zdt_yearview_year_hover_text);
40
47
  }
48
+
41
49
  .yearText {
42
50
  color: var(--zdt_yearview_yeartext_text);
43
51
  font-size: var(--zd_font_size11);
44
52
  }
53
+
45
54
  .arrow {
46
55
  color: var(--zdt_yearview_yeartext_text);
47
56
  transition: transform var(--zd_transition1);
48
57
  }
58
+
49
59
  .isActive {
50
60
  cursor: default;
51
61
  }
62
+
52
63
  .isActive .yearText {
53
64
  font-family: var(--zd_semibold);
54
65
  color: var(--zdt_yearview_year_hover_text);
66
+ font-size: var(--zd_font_size11);
55
67
  }
68
+
56
69
  .arrowActive {
57
70
  color: var(--zdt_yearview_year_hover_text);
58
71
  }
72
+
59
73
  [dir=ltr] .arrowActive {
60
74
  transform: rotate(180deg);
61
75
  }
76
+
62
77
  [dir=rtl] .arrowActive {
63
78
  transform: rotate(-180deg);
64
79
  }
80
+
65
81
  .container {
66
82
  height: 100%;
67
83
  overflow-y: auto;
@@ -69,13 +85,15 @@
69
85
  composes: boxPadding;
70
86
  background-color: var(--zdt_yearview_default_bg);
71
87
  }
88
+
72
89
  .yearContainer {
73
90
  height: var(--zd_size135);
74
91
  overflow: hidden;
75
92
  transition: height var(--zd_transition1);
76
93
  padding-bottom: var(--zd_size5);
77
94
  }
95
+
78
96
  .toggleYear {
79
97
  height: 0;
80
98
  padding: 0;
81
- }
99
+ }
@@ -9,6 +9,7 @@ import { positionMapping } from './DropBoxPositionMapping.json';
9
9
  import { getZIndex } from '../Provider/ZindexProvider';
10
10
  import { getLibraryConfig } from '../Provider/Config';
11
11
  import LibraryContext from '../Provider/LibraryContextInit';
12
+ import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
12
13
  export class DropBoxElement extends React.Component {
13
14
  constructor(props) {
14
15
  super(props);
@@ -59,7 +60,8 @@ export class DropBoxElement extends React.Component {
59
60
  positionsOffset,
60
61
  targetOffset,
61
62
  zIndexStyle,
62
- customStyle
63
+ customStyle,
64
+ subContainerRef
63
65
  } = this.props;
64
66
  let {
65
67
  isReducedMotion
@@ -146,9 +148,11 @@ export class DropBoxElement extends React.Component {
146
148
  "aria-labelledby": ariaLabelledby,
147
149
  tabIndex: tabIndex
148
150
  }, /*#__PURE__*/React.createElement("div", {
151
+ tabIndex: "-1",
149
152
  className: `${subContainerClass} ${style[`${palette}Palette`]}`,
150
153
  onClick: onClick,
151
- "data-id": `${dataId}_subcontainer`
154
+ "data-id": `${dataId}_subcontainer`,
155
+ ref: subContainerRef
152
156
  }, isModel ? /*#__PURE__*/React.createElement("div", {
153
157
  className: style.closeBar
154
158
  }) : null, isArrow && !isModel && /*#__PURE__*/React.createElement("div", {
@@ -165,6 +169,7 @@ export default class DropBox extends React.Component {
165
169
  super(props);
166
170
  this.getNextIndex = getZIndex(this);
167
171
  this.onFreezeClick = this.onFreezeClick.bind(this);
172
+ this.createRef = /*#__PURE__*/React.createRef();
168
173
  }
169
174
  onFreezeClick(e) {
170
175
  e && e.stopPropagation();
@@ -176,7 +181,9 @@ export default class DropBox extends React.Component {
176
181
  isActive,
177
182
  isAbsolutePositioningNeeded,
178
183
  needAutoZindex,
179
- isRestrictScroll
184
+ isRestrictScroll,
185
+ needFocusScope,
186
+ onClose
180
187
  } = this.props;
181
188
  let windowWidth,
182
189
  mobileWidth = getLibraryConfig('mobileWidth'),
@@ -193,7 +200,20 @@ export default class DropBox extends React.Component {
193
200
  const {
194
201
  direction
195
202
  } = this.context || {};
196
- const dropBoxEle = /*#__PURE__*/React.createElement(DropBoxElement, _extends({
203
+ const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
204
+ focusClose: onClose,
205
+ elementRef: this.createRef,
206
+ autoFocus: true,
207
+ restoreFocus: true,
208
+ focusArrowLoop: true,
209
+ enableEnterAction: true
210
+ }, /*#__PURE__*/React.createElement(DropBoxElement, _extends({
211
+ isModel: isModel,
212
+ direction: direction
213
+ }, this.props, {
214
+ zIndexStyle: zIndexStyle,
215
+ subContainerRef: this.createRef
216
+ }))) : /*#__PURE__*/React.createElement(DropBoxElement, _extends({
197
217
  isModel: isModel,
198
218
  direction: direction
199
219
  }, this.props, {
@@ -16,5 +16,6 @@ export const defaultProps = {
16
16
  palette: 'default',
17
17
  needAutoZindex: true,
18
18
  portalId: 'portal1',
19
- isRestrictScroll: false
19
+ isRestrictScroll: false,
20
+ needFocusScope: false
20
21
  };
@@ -22,6 +22,7 @@ export const propTypes = {
22
22
  left: PropTypes.number,
23
23
  needResponsive: PropTypes.bool,
24
24
  onClick: PropTypes.func,
25
+ needFocusScope: PropTypes.bool,
25
26
  right: PropTypes.number,
26
27
  size: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
27
28
  top: PropTypes.number,
@@ -15,13 +15,15 @@ export default class DropDownHeading extends React.Component {
15
15
  } = this.props;
16
16
  let {
17
17
  role,
18
- ariaLabelledby
18
+ ariaLabelledby,
19
+ ariaLabel
19
20
  } = a11y;
20
21
  return /*#__PURE__*/React.createElement("div", {
21
22
  className: `${style[palette]} ${customClass}`,
22
23
  "data-title": title,
23
24
  role: role,
24
25
  "aria-labelledby": ariaLabelledby,
26
+ "aria-label": ariaLabel,
25
27
  id: htmlId
26
28
  // tabindex='0'
27
29
  }, text, children);
@@ -38,7 +38,8 @@ export const DropDownHeading_propTypes = {
38
38
  htmlId: PropTypes.string,
39
39
  a11y: PropTypes.shape({
40
40
  role: PropTypes.string,
41
- ariaLabelledby: PropTypes.string
41
+ ariaLabelledby: PropTypes.string,
42
+ ariaLabel: PropTypes.string
42
43
  })
43
44
  };
44
45
  export const DropDownItem_propTypes = {
package/es/Label/Label.js CHANGED
@@ -19,7 +19,8 @@ export default class Label extends React.Component {
19
19
  onClick,
20
20
  dataId,
21
21
  variant,
22
- customClass
22
+ customClass,
23
+ id
23
24
  } = this.props;
24
25
  return /*#__PURE__*/React.createElement("label", {
25
26
  className: `${style.label} ${style[type]} ${style[size]} ${colors[palette]} ${style[`font_${variant}`]}
@@ -27,7 +28,8 @@ export default class Label extends React.Component {
27
28
  htmlFor: htmlFor,
28
29
  "data-title": title,
29
30
  "data-id": dataId,
30
- onClick: onClick
31
+ onClick: onClick,
32
+ id: id
31
33
  }, text);
32
34
  }
33
35
  }
@@ -16,11 +16,11 @@ export const BoxProps = {
16
16
  isFirst: PropTypes.bool,
17
17
  isLast: PropTypes.bool,
18
18
  isScrollAttribute: PropTypes.bool,
19
- scroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
19
+ scroll: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'none']),
20
20
  shrink: PropTypes.bool,
21
21
  tagName: PropTypes.string,
22
22
  tourId: PropTypes.string,
23
- preventParentScroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both'])
23
+ preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
24
24
  };
25
25
  export const ContainerProps = {
26
26
  align: PropTypes.oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around', 'baseline']),
@@ -38,5 +38,5 @@ export const ContainerProps = {
38
38
  tagName: PropTypes.string,
39
39
  tourId: PropTypes.string,
40
40
  wrap: PropTypes.oneOf(['wrap', 'wrap-reverse', 'nowrap']),
41
- preventParentScroll: PropTypes.PropTypes.oneOf(['vertical', 'horizontal', 'both'])
41
+ preventParentScroll: PropTypes.oneOf(['vertical', 'horizontal', 'both'])
42
42
  };