@zohodesk/components 1.0.0-temp-139 → 1.0.0-temp-141

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 (355) hide show
  1. package/README.md +1186 -1168
  2. package/assets/Appearance/dark/mode/darkMode.module.css +185 -184
  3. package/assets/Appearance/dark/themes/blue/blueDarkCTAModifyCategory.module.css +302 -0
  4. package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +31 -31
  5. package/assets/Appearance/dark/themes/green/greenDarkCTAModifyCategory.module.css +302 -0
  6. package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +30 -30
  7. package/assets/Appearance/dark/themes/orange/orangeDarkCTAModifyCategory.module.css +302 -0
  8. package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +30 -30
  9. package/assets/Appearance/dark/themes/red/redDarkCTAModifyCategory.module.css +302 -0
  10. package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +30 -30
  11. package/assets/Appearance/dark/themes/yellow/yellowDarkCTAModifyCategory.module.css +302 -0
  12. package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +30 -30
  13. package/assets/Appearance/default/mode/defaultMode.module.css +181 -180
  14. package/assets/Appearance/default/themes/blue/blueDefaultCTAModifyCategory.module.css +302 -0
  15. package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +31 -31
  16. package/assets/Appearance/default/themes/green/greenDefaultCTAModifyCategory.module.css +302 -0
  17. package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +30 -30
  18. package/assets/Appearance/default/themes/orange/orangeDefaultCTAModifyCategory.module.css +302 -0
  19. package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +30 -30
  20. package/assets/Appearance/default/themes/red/redDefaultCTAModifyCategory.module.css +302 -0
  21. package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +30 -30
  22. package/assets/Appearance/default/themes/yellow/yellowDefaultCTAModifyCategory.module.css +302 -0
  23. package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +30 -30
  24. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +186 -185
  25. package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTAModifyCategory.module.css +302 -0
  26. package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +31 -31
  27. package/assets/Appearance/pureDark/themes/green/greenPureDarkCTAModifyCategory.module.css +302 -0
  28. package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +30 -30
  29. package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTAModifyCategory.module.css +302 -0
  30. package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +30 -30
  31. package/assets/Appearance/pureDark/themes/red/redPureDarkCTAModifyCategory.module.css +302 -0
  32. package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +30 -30
  33. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTAModifyCategory.module.css +302 -0
  34. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +30 -30
  35. package/assets/Contrast/darkContrastLightness.module.css +31 -0
  36. package/assets/Contrast/defaultContrastLightness.module.css +31 -0
  37. package/assets/Contrast/pureDarkContrastLightness.module.css +31 -0
  38. package/css_error.log +119 -0
  39. package/es/AppContainer/AppContainer.js +1 -0
  40. package/es/AppContainer/AppContainer.module.css +18 -18
  41. package/es/Avatar/Avatar.js +9 -9
  42. package/es/Avatar/Avatar.module.css +176 -141
  43. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  44. package/es/AvatarTeam/AvatarTeam.js +7 -7
  45. package/es/AvatarTeam/AvatarTeam.module.css +188 -188
  46. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  47. package/es/Button/Button.js +4 -4
  48. package/es/Button/Button.module.css +543 -525
  49. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  50. package/es/Buttongroup/Buttongroup.js +1 -1
  51. package/es/Buttongroup/Buttongroup.module.css +107 -89
  52. package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  53. package/es/Card/Card.js +4 -4
  54. package/es/Card/Card.module.css +20 -20
  55. package/es/CheckBox/CheckBox.js +0 -0
  56. package/es/CheckBox/CheckBox.module.css +157 -157
  57. package/es/DateTime/CalendarView.js +0 -0
  58. package/es/DateTime/DateTime.js +0 -0
  59. package/es/DateTime/DateTime.module.css +235 -235
  60. package/es/DateTime/DateWidget.js +0 -0
  61. package/es/DateTime/DateWidget.module.css +38 -38
  62. package/es/DateTime/YearView.js +0 -0
  63. package/es/DateTime/YearView.module.css +98 -98
  64. package/es/DateTime/common.js +0 -0
  65. package/es/DateTime/index.js +0 -0
  66. package/es/DateTime/objectUtils.js +0 -0
  67. package/es/DateTime/typeChecker.js +0 -0
  68. package/es/DateTime/validator.js +0 -0
  69. package/es/DropBox/DropBox.js +69 -243
  70. package/es/DropBox/DropBoxElement/DropBoxElement.js +118 -0
  71. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +432 -0
  72. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +89 -0
  73. package/es/DropBox/DropBoxElement/props/defaultProps.js +18 -0
  74. package/es/DropBox/DropBoxElement/props/propTypes.js +45 -0
  75. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +51 -0
  76. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  77. package/es/DropBox/css/DropBox.module.css +59 -0
  78. package/es/DropBox/css/cssJSLogic.js +14 -0
  79. package/es/DropBox/props/defaultProps.js +9 -17
  80. package/es/DropBox/props/propTypes.js +9 -43
  81. package/es/DropDown/DropDown.js +0 -0
  82. package/es/DropDown/DropDown.module.css +5 -5
  83. package/es/DropDown/DropDownHeading.js +0 -0
  84. package/es/DropDown/DropDownHeading.module.css +53 -53
  85. package/es/DropDown/DropDownItem.js +0 -0
  86. package/es/DropDown/DropDownItem.module.css +94 -94
  87. package/es/DropDown/DropDownSearch.js +0 -0
  88. package/es/DropDown/DropDownSearch.module.css +14 -14
  89. package/es/DropDown/DropDownSeparator.js +0 -0
  90. package/es/DropDown/DropDownSeparator.module.css +7 -7
  91. package/es/Heading/Heading.module.css +4 -4
  92. package/es/Label/Label.js +2 -2
  93. package/es/Label/Label.module.css +52 -52
  94. package/es/Label/LabelColors.module.css +20 -20
  95. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  96. package/es/Layout/Box.js +0 -0
  97. package/es/Layout/Container.js +0 -0
  98. package/es/Layout/Layout.module.css +335 -335
  99. package/es/Layout/utils.js +0 -0
  100. package/es/ListItem/ListItem.js +0 -0
  101. package/es/ListItem/ListItem.module.css +216 -214
  102. package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
  103. package/es/MultiSelect/MultiSelect.js +23 -10
  104. package/es/MultiSelect/MultiSelect.module.css +205 -205
  105. package/es/MultiSelect/MultiSelectWithAvatar.js +18 -5
  106. package/es/MultiSelect/SelectedOptions.module.css +15 -15
  107. package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
  108. package/es/MultiSelect/props/defaultProps.js +5 -2
  109. package/es/MultiSelect/props/propTypes.js +7 -1
  110. package/es/PopOver/PopOver.module.css +8 -8
  111. package/es/Popup/Popup.js +0 -0
  112. package/es/Popup/PositionMapping.json +73 -73
  113. package/es/Radio/Radio.js +0 -0
  114. package/es/Radio/Radio.module.css +112 -112
  115. package/es/Responsive/CustomResponsive.js +0 -0
  116. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  117. package/es/Ribbon/Ribbon.js +0 -0
  118. package/es/Ribbon/Ribbon.module.css +454 -376
  119. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  120. package/es/RippleEffect/RippleEffect.module.css +92 -92
  121. package/es/Select/GroupSelect.js +0 -0
  122. package/es/Select/Select.js +0 -0
  123. package/es/Select/Select.module.css +108 -108
  124. package/es/Select/SelectWithAvatar.js +0 -0
  125. package/es/Select/SelectWithIcon.js +0 -0
  126. package/es/Select/__tests__/Select.spec.js +0 -0
  127. package/es/Stencils/Stencils.js +0 -0
  128. package/es/Stencils/Stencils.module.css +96 -96
  129. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  130. package/es/Switch/Switch.js +0 -0
  131. package/es/Switch/Switch.module.css +127 -110
  132. package/es/Tab/Tab.module.css +100 -100
  133. package/es/Tab/TabContent.module.css +4 -4
  134. package/es/Tab/Tabs.js +17 -17
  135. package/es/Tab/Tabs.module.css +143 -139
  136. package/es/Tag/Tag.js +8 -8
  137. package/es/Tag/Tag.module.css +254 -254
  138. package/es/TextBox/TextBox.js +0 -0
  139. package/es/TextBox/TextBox.module.css +157 -157
  140. package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  141. package/es/TextBoxIcon/TextBoxIcon.js +0 -0
  142. package/es/TextBoxIcon/TextBoxIcon.module.css +78 -78
  143. package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  144. package/es/Textarea/Textarea.js +0 -0
  145. package/es/Textarea/Textarea.module.css +139 -139
  146. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  147. package/es/Tooltip/Tooltip.module.css +134 -109
  148. package/es/common/a11y.module.css +3 -3
  149. package/es/common/animation.module.css +624 -624
  150. package/es/common/avatarsizes.module.css +48 -48
  151. package/es/common/basic.module.css +33 -33
  152. package/es/common/basicReset.module.css +40 -40
  153. package/es/common/boxShadow.module.css +34 -0
  154. package/es/common/common.module.css +524 -524
  155. package/es/common/customscroll.module.css +89 -89
  156. package/es/common/reset.module.css +12 -12
  157. package/es/common/transition.module.css +146 -146
  158. package/es/css.js +2 -1
  159. package/es/deprecated/AdvancedMultiSelect.module.css +126 -126
  160. package/es/semantic/Button/semanticButton.module.css +9 -9
  161. package/es/utils/Common.js +0 -0
  162. package/es/utils/css/mergeStyle.js +2 -1
  163. package/es/utils/dropDownUtils.js +3 -2
  164. package/install.md +10 -10
  165. package/lib/Accordion/Accordion.js +1 -3
  166. package/lib/Accordion/AccordionItem.js +1 -3
  167. package/lib/Animation/Animation.js +1 -3
  168. package/lib/AppContainer/AppContainer.js +2 -3
  169. package/lib/AppContainer/AppContainer.module.css +18 -18
  170. package/lib/Avatar/Avatar.js +11 -13
  171. package/lib/Avatar/Avatar.module.css +176 -141
  172. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  173. package/lib/AvatarTeam/AvatarTeam.js +8 -10
  174. package/lib/AvatarTeam/AvatarTeam.module.css +188 -188
  175. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  176. package/lib/Button/Button.js +5 -7
  177. package/lib/Button/Button.module.css +543 -525
  178. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  179. package/lib/Buttongroup/Buttongroup.js +3 -6
  180. package/lib/Buttongroup/Buttongroup.module.css +107 -89
  181. package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  182. package/lib/Card/Card.js +5 -7
  183. package/lib/Card/Card.module.css +20 -20
  184. package/lib/CheckBox/CheckBox.js +1 -3
  185. package/lib/CheckBox/CheckBox.module.css +157 -157
  186. package/lib/DateTime/CalendarView.js +2 -5
  187. package/lib/DateTime/DateTime.js +3 -5
  188. package/lib/DateTime/DateTime.module.css +235 -235
  189. package/lib/DateTime/DateTimePopupFooter.js +1 -3
  190. package/lib/DateTime/DateTimePopupHeader.js +1 -3
  191. package/lib/DateTime/DateWidget.js +1 -3
  192. package/lib/DateTime/DateWidget.module.css +38 -38
  193. package/lib/DateTime/DaysRow.js +1 -3
  194. package/lib/DateTime/Time.js +1 -3
  195. package/lib/DateTime/YearView.js +1 -3
  196. package/lib/DateTime/YearView.module.css +98 -98
  197. package/lib/DateTime/common.js +0 -0
  198. package/lib/DateTime/dateFormatUtils/timeChange.js +2 -2
  199. package/lib/DateTime/index.js +0 -0
  200. package/lib/DateTime/objectUtils.js +0 -0
  201. package/lib/DateTime/typeChecker.js +0 -0
  202. package/lib/DateTime/validator.js +4 -4
  203. package/lib/DropBox/DropBox.js +67 -276
  204. package/lib/DropBox/DropBoxElement/DropBoxElement.js +117 -0
  205. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +432 -0
  206. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +69 -0
  207. package/lib/DropBox/DropBoxElement/props/defaultProps.js +25 -0
  208. package/lib/DropBox/DropBoxElement/props/propTypes.js +53 -0
  209. package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +55 -0
  210. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  211. package/lib/DropBox/css/DropBox.module.css +59 -0
  212. package/lib/DropBox/css/cssJSLogic.js +18 -0
  213. package/lib/DropBox/props/defaultProps.js +12 -19
  214. package/lib/DropBox/props/propTypes.js +12 -45
  215. package/lib/DropDown/DropDown.js +2 -5
  216. package/lib/DropDown/DropDown.module.css +5 -5
  217. package/lib/DropDown/DropDownHeading.js +1 -3
  218. package/lib/DropDown/DropDownHeading.module.css +53 -53
  219. package/lib/DropDown/DropDownItem.js +1 -3
  220. package/lib/DropDown/DropDownItem.module.css +94 -94
  221. package/lib/DropDown/DropDownSearch.js +2 -5
  222. package/lib/DropDown/DropDownSearch.module.css +14 -14
  223. package/lib/DropDown/DropDownSeparator.js +1 -3
  224. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  225. package/lib/DropDown/props/propTypes.js +1 -4
  226. package/lib/Heading/Heading.js +2 -4
  227. package/lib/Heading/Heading.module.css +4 -4
  228. package/lib/Label/Label.js +1 -3
  229. package/lib/Label/Label.module.css +52 -52
  230. package/lib/Label/LabelColors.module.css +20 -20
  231. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  232. package/lib/Layout/Box.js +0 -0
  233. package/lib/Layout/Container.js +0 -0
  234. package/lib/Layout/Layout.module.css +335 -335
  235. package/lib/Layout/utils.js +0 -0
  236. package/lib/ListItem/ListItem.js +1 -3
  237. package/lib/ListItem/ListItem.module.css +216 -214
  238. package/lib/ListItem/ListItemWithAvatar.js +1 -3
  239. package/lib/ListItem/ListItemWithCheckBox.js +1 -3
  240. package/lib/ListItem/ListItemWithIcon.js +1 -3
  241. package/lib/ListItem/ListItemWithRadio.js +1 -3
  242. package/lib/ListItem/props/propTypes.js +1 -4
  243. package/lib/Modal/Modal.js +1 -3
  244. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +9 -11
  245. package/lib/MultiSelect/AdvancedMultiSelect.js +2 -4
  246. package/lib/MultiSelect/EmptyState.js +1 -3
  247. package/lib/MultiSelect/MultiSelect.js +26 -15
  248. package/lib/MultiSelect/MultiSelect.module.css +205 -205
  249. package/lib/MultiSelect/MultiSelectHeader.js +1 -3
  250. package/lib/MultiSelect/MultiSelectWithAvatar.js +19 -8
  251. package/lib/MultiSelect/SelectedOptions.js +2 -5
  252. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  253. package/lib/MultiSelect/Suggestions.js +2 -4
  254. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
  255. package/lib/MultiSelect/props/defaultProps.js +5 -2
  256. package/lib/MultiSelect/props/propTypes.js +7 -1
  257. package/lib/PopOver/PopOver.js +1 -3
  258. package/lib/PopOver/PopOver.module.css +8 -8
  259. package/lib/Popup/Popup.js +2 -4
  260. package/lib/Popup/PositionMapping.json +73 -73
  261. package/lib/Popup/__tests__/Popup.spec.js +1 -3
  262. package/lib/Provider/LibraryContext.js +3 -5
  263. package/lib/Provider/NumberGenerator/NumberGenerator.js +1 -1
  264. package/lib/Radio/Radio.js +1 -3
  265. package/lib/Radio/Radio.module.css +112 -112
  266. package/lib/Responsive/CustomResponsive.js +4 -6
  267. package/lib/Responsive/RefWrapper.js +2 -4
  268. package/lib/Responsive/ResizeComponent.js +4 -9
  269. package/lib/Responsive/ResizeObserver.js +1 -4
  270. package/lib/Responsive/Responsive.js +4 -6
  271. package/lib/Responsive/sizeObservers.js +2 -4
  272. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +1 -3
  273. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
  274. package/lib/Ribbon/Ribbon.js +1 -3
  275. package/lib/Ribbon/Ribbon.module.css +454 -376
  276. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  277. package/lib/RippleEffect/RippleEffect.module.css +92 -92
  278. package/lib/Select/GroupSelect.js +3 -5
  279. package/lib/Select/Select.js +1 -3
  280. package/lib/Select/Select.module.css +108 -108
  281. package/lib/Select/SelectWithAvatar.js +1 -3
  282. package/lib/Select/SelectWithIcon.js +1 -3
  283. package/lib/Select/__tests__/Select.spec.js +2 -2
  284. package/lib/Select/props/defaultProps.js +1 -4
  285. package/lib/Stencils/Stencils.js +1 -3
  286. package/lib/Stencils/Stencils.module.css +96 -96
  287. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  288. package/lib/Switch/Switch.js +1 -3
  289. package/lib/Switch/Switch.module.css +127 -110
  290. package/lib/Tab/Tab.module.css +100 -100
  291. package/lib/Tab/TabContent.module.css +4 -4
  292. package/lib/Tab/TabWrapper.js +2 -2
  293. package/lib/Tab/Tabs.js +13 -15
  294. package/lib/Tab/Tabs.module.css +143 -139
  295. package/lib/Tag/Tag.js +9 -11
  296. package/lib/Tag/Tag.module.css +254 -254
  297. package/lib/TextBox/TextBox.js +1 -3
  298. package/lib/TextBox/TextBox.module.css +157 -157
  299. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  300. package/lib/TextBox/props/propTypes.js +1 -4
  301. package/lib/TextBoxIcon/TextBoxIcon.js +2 -5
  302. package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
  303. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  304. package/lib/Textarea/Textarea.js +1 -3
  305. package/lib/Textarea/Textarea.module.css +139 -139
  306. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  307. package/lib/Tooltip/Tooltip.js +1 -3
  308. package/lib/Tooltip/Tooltip.module.css +134 -109
  309. package/lib/Tooltip/__tests__/Tooltip.spec.js +1 -3
  310. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -3
  311. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +2 -4
  312. package/lib/common/a11y.module.css +3 -3
  313. package/lib/common/animation.module.css +624 -624
  314. package/lib/common/avatarsizes.module.css +48 -48
  315. package/lib/common/basic.module.css +33 -33
  316. package/lib/common/basicReset.module.css +40 -40
  317. package/lib/common/boxShadow.module.css +34 -0
  318. package/lib/common/common.module.css +524 -524
  319. package/lib/common/customscroll.module.css +89 -89
  320. package/lib/common/reset.module.css +12 -12
  321. package/lib/common/transition.module.css +146 -146
  322. package/lib/css.js +2 -1
  323. package/lib/deprecated/AdvancedMultiSelect.module.css +126 -126
  324. package/lib/deprecated/PortalLayer/PortalLayer.js +1 -3
  325. package/lib/semantic/Button/Button.js +1 -3
  326. package/lib/semantic/Button/semanticButton.module.css +9 -9
  327. package/lib/utils/Common.js +0 -0
  328. package/lib/utils/constructFullName.js +2 -2
  329. package/lib/utils/css/mergeStyle.js +3 -5
  330. package/lib/utils/dropDownUtils.js +8 -7
  331. package/package.json +102 -102
  332. package/docs/external/active-line.js +0 -72
  333. package/docs/external/autorefresh.js +0 -47
  334. package/docs/external/codemirror.js +0 -9681
  335. package/docs/external/css/hopscotch.css +0 -576
  336. package/docs/external/css/styleGuide.css +0 -1100
  337. package/docs/external/css.js +0 -466
  338. package/docs/external/designTokens.js +0 -1
  339. package/docs/external/foldcode.js +0 -152
  340. package/docs/external/format.js +0 -129
  341. package/docs/external/htmlmixed.js +0 -84
  342. package/docs/external/images/bottom.png +0 -0
  343. package/docs/external/images/bottombg.jpg +0 -0
  344. package/docs/external/images/desk.png +0 -0
  345. package/docs/external/images/desklogo.png +0 -0
  346. package/docs/external/images/menu.png +0 -0
  347. package/docs/external/index.html +0 -127
  348. package/docs/external/javascript.js +0 -422
  349. package/docs/external/jsx.js +0 -148
  350. package/docs/external/matchbrackets.js +0 -145
  351. package/docs/external/xml.js +0 -322
  352. package/docs/package.json +0 -41
  353. package/docs/src/index.js +0 -1311
  354. package/es/DropBox/DropBox.module.css +0 -405
  355. package/lib/DropBox/DropBox.module.css +0 -405
@@ -1,99 +1,99 @@
1
- [dir=ltr] .boxPadding {
2
- padding-right: var(--zd_size19);
3
- padding-left: var(--zd_size19);
4
- }[dir=rtl] .boxPadding {
5
- padding-left: var(--zd_size19);
6
- padding-right: var(--zd_size19);
7
- }
8
-
9
- .month {
10
- width: 30.333%;
11
- font-size: var(--zd_font_size12);
12
- line-height: var(--zd_size26);
13
- height: var(--zd_size26);
14
- color: var(--zdt_yearview_month_text);
15
- text-align: center;
16
- margin: 0 0 var(--zd_size1);
17
- cursor: pointer;
18
- background-color: var(--zdt_yearview_month_bg);
19
- border-radius: 20px;
20
- }
21
-
22
- .month:hover {
23
- background-color: var(--zdt_yearview_month_hover_bg);
24
- }
25
-
26
- .currentMonth,
27
- .currentMonth:hover {
28
- color: var(--zdt_yearview_currentmonth_text);
29
- }
30
-
31
- .currentMonth, .currentMonth:hover {
32
- background-color: var(--zdt_yearview_currentmonth_bg);
33
- }
34
-
35
- .yearBox {
36
- border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
37
- }
38
-
39
- .year {
40
- padding: var(--zd_size7) 0;
41
- cursor: pointer;
42
- }
43
-
44
- .year:hover .yearText,
45
- .year:hover .arrow {
46
- color: var(--zdt_yearview_year_hover_text);
47
- }
48
-
49
- .yearText {
50
- color: var(--zdt_yearview_yeartext_text);
51
- font-size: var(--zd_font_size11);
52
- }
53
-
54
- .arrow {
55
- color: var(--zdt_yearview_yeartext_text);
56
- transition: transform var(--zd_transition1);
57
- }
58
-
59
- .isActive {
60
- cursor: default;
61
- }
62
-
63
- .isActive .yearText {
64
- font-family: var(--zd_semibold);
65
- color: var(--zdt_yearview_year_hover_text);
66
- font-size: var(--zd_font_size11);
67
- }
68
-
69
- .arrowActive {
70
- color: var(--zdt_yearview_year_hover_text);
71
- }
72
-
73
- [dir=ltr] .arrowActive {
74
- transform: rotate(180deg);
75
- }
76
-
77
- [dir=rtl] .arrowActive {
78
- transform: rotate(-180deg);
79
- }
80
-
81
- .container {
82
- height: 100%;
83
- overflow-y: auto;
84
- overflow-x: hidden;
85
- composes: boxPadding;
86
- background-color: var(--zdt_yearview_default_bg);
87
- }
88
-
89
- .yearContainer {
90
- height: var(--zd_size135);
91
- overflow: hidden;
92
- transition: height var(--zd_transition1);
93
- padding-bottom: var(--zd_size5);
94
- }
95
-
96
- .toggleYear {
97
- height: 0;
98
- padding: 0;
1
+ [dir=ltr] .boxPadding {
2
+ padding-right: var(--zd_size19);
3
+ padding-left: var(--zd_size19);
4
+ }[dir=rtl] .boxPadding {
5
+ padding-left: var(--zd_size19);
6
+ padding-right: var(--zd_size19);
7
+ }
8
+
9
+ .month {
10
+ width: 30.333%;
11
+ font-size: var(--zd_font_size12);
12
+ line-height: var(--zd_size26);
13
+ height: var(--zd_size26);
14
+ color: var(--zdt_yearview_month_text);
15
+ text-align: center;
16
+ margin: 0 0 var(--zd_size1);
17
+ cursor: pointer;
18
+ background-color: var(--zdt_yearview_month_bg);
19
+ border-radius: 20px;
20
+ }
21
+
22
+ .month:hover {
23
+ background-color: var(--zdt_yearview_month_hover_bg);
24
+ }
25
+
26
+ .currentMonth,
27
+ .currentMonth:hover {
28
+ color: var(--zdt_yearview_currentmonth_text);
29
+ }
30
+
31
+ .currentMonth, .currentMonth:hover {
32
+ background-color: var(--zdt_yearview_currentmonth_bg);
33
+ }
34
+
35
+ .yearBox {
36
+ border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
37
+ }
38
+
39
+ .year {
40
+ padding: var(--zd_size7) 0;
41
+ cursor: pointer;
42
+ }
43
+
44
+ .year:hover .yearText,
45
+ .year:hover .arrow {
46
+ color: var(--zdt_yearview_year_hover_text);
47
+ }
48
+
49
+ .yearText {
50
+ color: var(--zdt_yearview_yeartext_text);
51
+ font-size: var(--zd_font_size11);
52
+ }
53
+
54
+ .arrow {
55
+ color: var(--zdt_yearview_yeartext_text);
56
+ transition: transform var(--zd_transition1);
57
+ }
58
+
59
+ .isActive {
60
+ cursor: default;
61
+ }
62
+
63
+ .isActive .yearText {
64
+ font-family: var(--zd_semibold);
65
+ color: var(--zdt_yearview_year_hover_text);
66
+ font-size: var(--zd_font_size11);
67
+ }
68
+
69
+ .arrowActive {
70
+ color: var(--zdt_yearview_year_hover_text);
71
+ }
72
+
73
+ [dir=ltr] .arrowActive {
74
+ transform: rotate(180deg);
75
+ }
76
+
77
+ [dir=rtl] .arrowActive {
78
+ transform: rotate(-180deg);
79
+ }
80
+
81
+ .container {
82
+ height: 100%;
83
+ overflow-y: auto;
84
+ overflow-x: hidden;
85
+ composes: boxPadding;
86
+ background-color: var(--zdt_yearview_default_bg);
87
+ }
88
+
89
+ .yearContainer {
90
+ height: var(--zd_size135);
91
+ overflow: hidden;
92
+ transition: height var(--zd_transition1);
93
+ padding-bottom: var(--zd_size5);
94
+ }
95
+
96
+ .toggleYear {
97
+ height: 0;
98
+ padding: 0;
99
99
  }
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,251 +1,77 @@
1
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); }
2
- import React, { Fragment } from 'react';
3
- import { defaultProps } from './props/defaultProps';
4
- import { propTypes } from './props/propTypes';
5
- import { remConvert } from '../utils/Common';
2
+ import React, { useRef, Fragment, useContext } from 'react';
3
+ import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
6
4
  import Modal from '../Modal/Modal';
7
- import style from './DropBox.module.css';
8
- import { positionMapping } from './DropBoxPositionMapping.json';
9
- import { getZIndex } from '../Provider/ZindexProvider';
10
5
  import { getLibraryConfig } from '../Provider/Config';
11
6
  import LibraryContext from '../Provider/LibraryContextInit';
12
- import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
13
- export class DropBoxElement extends React.Component {
14
- constructor(props) {
15
- super(props);
16
- this.getRef = this.getRef.bind(this);
17
- }
18
- getRef(ele) {
19
- const {
20
- getRef,
21
- forwardRef
22
- } = this.props;
23
- getRef && getRef(ele);
24
- if (forwardRef) {
25
- forwardRef.current = ele;
26
- }
27
- }
28
- render() {
29
- let {
30
- children,
31
- isAnimate,
32
- isArrow,
33
- arrowPosition,
34
- boxPosition,
35
- size,
36
- right,
37
- left,
38
- top,
39
- arrowRight,
40
- arrowLeft,
41
- arrowTop,
42
- arrowBottom,
43
- bottom,
44
- onClick,
45
- isRadius,
46
- animationStyle,
47
- isActive,
48
- dataId,
49
- dataSelectorId,
50
- isModel,
51
- isAbsolutePositioningNeeded,
52
- tourId,
53
- isBoxPaddingNeed,
54
- isPadding,
55
- customClass,
56
- htmlId,
57
- a11y,
58
- direction,
59
- tabIndex,
60
- palette,
61
- positionsOffset,
62
- targetOffset,
63
- zIndexStyle,
64
- customStyle,
65
- subContainerRef
66
- } = this.props;
67
- let {
68
- isReducedMotion
69
- } = this.context || {};
70
- if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
71
- isAbsolutePositioningNeeded = true;
72
- }
73
- const {
74
- role,
75
- ariaMultiselectable,
76
- ariaLabelledby
77
- } = a11y;
78
- const {
79
- customDropBox = '',
80
- customMobileDropBox = '',
81
- customDropBoxWrap = '',
82
- customMobileDropBoxWrap = ''
83
- } = customClass;
84
- const unit = 'rem';
85
- let boxstyle = {};
86
- let arrowstyle = {};
87
- const needBoxStyle = right || left || top || bottom;
88
- const needArrowStyle = arrowLeft || arrowRight || arrowTop || arrowBottom;
89
- if (needBoxStyle) {
90
- boxstyle = !isModel ? direction === 'rtl' ? {
91
- right: [remConvert(left)] + unit,
92
- left: [remConvert(right)] + unit,
93
- top: [remConvert(top)] + unit,
94
- bottom: [remConvert(bottom)] + unit
95
- } : {
96
- right: [remConvert(right)] + unit,
97
- left: [remConvert(left)] + unit,
98
- top: [remConvert(top)] + unit,
99
- bottom: [remConvert(bottom)] + unit
100
- } : {};
101
- }
102
- if (needArrowStyle) {
103
- arrowstyle = !isModel ? direction === 'rtl' ? {
104
- right: [remConvert(arrowLeft)] + unit,
105
- left: [remConvert(arrowRight)] + unit,
106
- top: [remConvert(arrowTop)] + unit,
107
- bottom: [remConvert(arrowBottom)] + unit
108
- } : {
109
- right: [remConvert(arrowRight)] + unit,
110
- left: [remConvert(arrowLeft)] + unit,
111
- top: [remConvert(arrowTop)] + unit,
112
- bottom: [remConvert(arrowBottom)] + unit
113
- } : {};
114
- }
115
- boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
116
- const boxDirection = positionMapping[boxPosition].direction; /*getting box direction*/
117
- if (isAbsolutePositioningNeeded) {
118
- arrowPosition = arrowPosition ? arrowPosition : positionMapping[boxPosition].arrowPosition;
119
- boxPosition = positionMapping[boxPosition].positionStyle;
120
- } else {
121
- arrowPosition = positionMapping[boxPosition].arrowPosition;
122
- }
123
- const boxClassName = `${style.main} ${!isActive ? style.hidden : ''} ${isModel ? `${style.responsive} ${customMobileDropBoxWrap}` : `${customDropBoxWrap} ${size ? style[size] : ''} ${isActive ? `${isArrow ? `${style[boxDirection]} ${isAbsolutePositioningNeeded ? style[`arrow${boxDirection}`] : ''}` : isPadding ? style[`paddingSpace_${boxDirection}`] : ''}` : ''} ${isAbsolutePositioningNeeded ? `${style.container} ${style[boxPosition]}` : style.fixedContainer}`}`;
124
- const subContainerClass = `${style.subContainer} ${isModel ? ` ${customMobileDropBox} ${style.mobRadius} ${isActive ? style.slideUp : ''} ` : `${customDropBox} ${style[`${boxDirection}_shadow`]} ${isRadius ? style.radius : ''} ${isAnimate && !isReducedMotion && isActive ? animationStyle === 'default' ? style.fadeIn : style.bounce : ''} ${isBoxPaddingNeed ? style.boxPadding : ''}`}`;
125
-
126
- // setting inlineStyle for dropbox
127
- let inlineStyle = !isModel ? isAbsolutePositioningNeeded ? needBoxStyle && boxstyle : positionsOffset && positionsOffset[boxPosition] || {} : {};
128
- if (zIndexStyle) {
129
- inlineStyle = Object.assign({}, inlineStyle, zIndexStyle);
130
- }
131
- if (!isModel && !isAbsolutePositioningNeeded && size === 'default' && targetOffset && isActive) {
132
- inlineStyle = Object.assign({}, inlineStyle, {
133
- width: targetOffset.width
134
- });
135
- }
136
- if (customStyle) {
137
- inlineStyle = Object.assign({}, inlineStyle, customStyle);
138
- }
139
- return /*#__PURE__*/React.createElement("div", {
140
- className: boxClassName,
141
- "data-id": `${dataId}`,
142
- "data-selector-id": dataSelectorId,
143
- ref: this.getRef,
144
- style: inlineStyle,
145
- "data-tour": tourId,
146
- "data-position": boxPosition,
147
- id: htmlId,
148
- role: role,
149
- "aria-multiselectable": ariaMultiselectable,
150
- "aria-labelledby": ariaLabelledby,
151
- tabIndex: tabIndex
152
- }, /*#__PURE__*/React.createElement("div", {
153
- tabIndex: "-1",
154
- className: `${subContainerClass} ${style[`${palette}Palette`]}`,
155
- onClick: onClick,
156
- "data-id": `${dataId}_subcontainer`,
157
- "data-selector-id": `${dataSelectorId}_subcontainer`,
158
- ref: subContainerRef
159
- }, isModel ? /*#__PURE__*/React.createElement("div", {
160
- className: style.closeBar
161
- }) : null, isArrow && !isModel && /*#__PURE__*/React.createElement("div", {
162
- className: style[arrowPosition],
163
- style: needArrowStyle && arrowstyle,
164
- "data-id": `${dataId}_arrow`,
165
- "data-selector-id": `${dataSelectorId}_arrow`
166
- }, /*#__PURE__*/React.createElement("div", {
167
- className: style.arrowShape
168
- })), children));
169
- }
170
- }
171
- export default class DropBox extends React.Component {
172
- constructor(props) {
173
- super(props);
174
- this.getNextIndex = getZIndex(this);
175
- this.onFreezeClick = this.onFreezeClick.bind(this);
176
- this.createRef = /*#__PURE__*/React.createRef();
177
- }
178
- onFreezeClick(e) {
7
+ import cssJSLogic from './css/cssJSLogic';
8
+ import DropBoxElement from './DropBoxElement/DropBoxElement';
9
+ import { DropBoxDefaultProps } from './props/defaultProps';
10
+ import { DropBoxPropTypes } from './props/propTypes';
11
+ import style from './css/DropBox.module.css';
12
+ export default function DropBox(props) {
13
+ const focusRef = useRef(null);
14
+ const DropBoxContext = useContext(LibraryContext);
15
+ const onFreezeClick = e => {
179
16
  e && e.stopPropagation();
180
- }
181
- render() {
182
- const {
183
- needResponsive,
184
- portalId,
185
- isActive,
186
- isAbsolutePositioningNeeded,
187
- needAutoZindex,
188
- isRestrictScroll,
189
- needFocusScope,
190
- onClose
191
- } = this.props;
192
- let windowWidth,
193
- mobileWidth = getLibraryConfig('mobileWidth'),
194
- isModel = false;
195
- if (needResponsive) {
196
- windowWidth = window.innerWidth;
197
- if (windowWidth <= mobileWidth) {
198
- isModel = true;
199
- }
17
+ };
18
+ const {
19
+ needResponsive,
20
+ portalId,
21
+ isActive,
22
+ isAbsolutePositioningNeeded,
23
+ isRestrictScroll,
24
+ needFocusScope,
25
+ onClose
26
+ } = props;
27
+ const {
28
+ direction
29
+ } = DropBoxContext || {};
30
+ let windowWidth,
31
+ mobileWidth = getLibraryConfig('mobileWidth'),
32
+ isModel = false;
33
+ if (needResponsive) {
34
+ windowWidth = window.innerWidth;
35
+ if (windowWidth <= mobileWidth) {
36
+ isModel = true;
200
37
  }
201
- const zIndexStyle = isActive && needAutoZindex ? {
202
- zIndex: this.getNextIndex()
203
- } : {};
204
- const {
205
- direction
206
- } = this.context || {};
207
- const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
208
- focusClose: onClose,
209
- elementRef: this.createRef,
210
- autoFocus: true,
211
- restoreFocus: true,
212
- focusArrowLoop: true,
213
- enableEnterAction: true
214
- }, /*#__PURE__*/React.createElement(DropBoxElement, _extends({
215
- isModel: isModel,
216
- direction: direction
217
- }, this.props, {
218
- zIndexStyle: zIndexStyle,
219
- subContainerRef: this.createRef
220
- }))) : /*#__PURE__*/React.createElement(DropBoxElement, _extends({
221
- isModel: isModel,
222
- direction: direction
223
- }, this.props, {
224
- zIndexStyle: zIndexStyle
225
- }));
226
- return isModel && isActive ? /*#__PURE__*/React.createElement(Modal, {
227
- portalId: portalId
228
- }, /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
229
- className: `${style.freezeLayer} ${style.freeze}`,
230
- style: zIndexStyle,
231
- onClick: this.onFreezeClick
232
- }), dropBoxEle)) : !isAbsolutePositioningNeeded && isActive ? /*#__PURE__*/React.createElement(Modal, {
233
- portalId: portalId
234
- }, /*#__PURE__*/React.createElement(Fragment, null, isRestrictScroll ? /*#__PURE__*/React.createElement("div", {
235
- className: style.freezeLayer,
236
- style: zIndexStyle,
237
- onClick: this.onFreezeClick
238
- }) : null, dropBoxEle)) : dropBoxEle;
239
38
  }
39
+ const {
40
+ zIndexStyle
41
+ } = cssJSLogic(props);
42
+ const dropBoxEle = needFocusScope ? /*#__PURE__*/React.createElement(FocusScope, {
43
+ focusClose: onClose,
44
+ elementRef: focusRef,
45
+ autoFocus: true,
46
+ restoreFocus: true,
47
+ focusArrowLoop: true,
48
+ enableEnterAction: true
49
+ }, /*#__PURE__*/React.createElement(DropBoxElement, _extends({
50
+ isModel: isModel,
51
+ direction: direction
52
+ }, props, {
53
+ zIndexStyle: zIndexStyle,
54
+ subContainerRef: focusRef
55
+ }))) : /*#__PURE__*/React.createElement(DropBoxElement, _extends({
56
+ isModel: isModel,
57
+ subContainerRef: focusRef,
58
+ direction: direction
59
+ }, props, {
60
+ zIndexStyle: zIndexStyle
61
+ }));
62
+ return isModel && isActive ? /*#__PURE__*/React.createElement(Modal, {
63
+ portalId: portalId
64
+ }, /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
65
+ className: `${style.freezeLayer} ${style.freeze}`,
66
+ style: zIndexStyle,
67
+ onClick: onFreezeClick
68
+ }), dropBoxEle)) : !isAbsolutePositioningNeeded && isActive ? /*#__PURE__*/React.createElement(Modal, {
69
+ portalId: portalId
70
+ }, /*#__PURE__*/React.createElement(Fragment, null, isRestrictScroll ? /*#__PURE__*/React.createElement("div", {
71
+ className: style.freezeLayer,
72
+ style: zIndexStyle,
73
+ onClick: onFreezeClick
74
+ }) : null, dropBoxEle)) : dropBoxEle;
240
75
  }
241
- DropBox.propTypes = propTypes;
242
- DropBox.contextType = LibraryContext;
243
- DropBox.defaultProps = defaultProps;
244
- // if (__DOCS__) {
245
- // DropBox.docs = {
246
- // componentGroup: 'Atom',
247
- // folderName: 'Style Guide',
248
- // external: true,
249
- // description: ' '
250
- // };
251
- // }
76
+ DropBox.propTypes = DropBoxPropTypes;
77
+ DropBox.defaultProps = DropBoxDefaultProps;
@@ -0,0 +1,118 @@
1
+ import React from 'react';
2
+ import useDropboxPosCalc from './useDropboxPosCalc';
3
+ import cssJSLogic from './css/cssJSLogic';
4
+ import { positionMapping } from '../DropBoxPositionMapping.json';
5
+ import { DropBoxElementDefaultProps } from './props/defaultProps';
6
+ import { DropBoxElementPropTypes } from './props/propTypes';
7
+ import { mergeStyle } from '../../utils';
8
+ import style from './css/DropBoxElement.module.css';
9
+ export default function DropBoxElement(props) {
10
+ let {
11
+ children,
12
+ isAnimate,
13
+ isArrow,
14
+ arrowPosition,
15
+ boxPosition,
16
+ size,
17
+ onClick,
18
+ isActive,
19
+ dataId,
20
+ dataSelectorId,
21
+ isModel,
22
+ isAbsolutePositioningNeeded,
23
+ tourId,
24
+ htmlId,
25
+ a11y,
26
+ tabIndex,
27
+ palette,
28
+ subContainerRef,
29
+ customStyle
30
+ } = props;
31
+ const FireOnAnimationEnd = () => {
32
+ let element = subContainerRef && subContainerRef.current.classList;
33
+ (isAnimate ? style.fadeIn : style.bounce).split(' ').map(rmStyle => {
34
+ if (element && element.contains(rmStyle)) {
35
+ element.remove(rmStyle);
36
+ }
37
+ });
38
+ };
39
+ const getRef = ele => {
40
+ const {
41
+ getRef,
42
+ forwardRef
43
+ } = props;
44
+ getRef && getRef(ele);
45
+ if (forwardRef) {
46
+ forwardRef.current = ele;
47
+ }
48
+ };
49
+ if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
50
+ isAbsolutePositioningNeeded = true;
51
+ }
52
+ const {
53
+ role,
54
+ ariaMultiselectable,
55
+ ariaLabelledby
56
+ } = a11y;
57
+ boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
58
+ const boxDirection = positionMapping[boxPosition].direction;
59
+ if (isAbsolutePositioningNeeded) {
60
+ arrowPosition = arrowPosition ? arrowPosition : positionMapping[boxPosition].arrowPosition;
61
+ boxPosition = positionMapping[boxPosition].positionStyle;
62
+ } else {
63
+ arrowPosition = positionMapping[boxPosition].arrowPosition;
64
+ }
65
+ const {
66
+ arrowstyle,
67
+ boxstyle,
68
+ needBoxStyle
69
+ } = useDropboxPosCalc(props);
70
+ const mergedStyle = mergeStyle(style, customStyle);
71
+ const {
72
+ boxClassName,
73
+ subContainerClass,
74
+ inlineStyle
75
+ } = cssJSLogic({
76
+ props,
77
+ style: mergedStyle,
78
+ customState: {
79
+ boxPosition,
80
+ boxDirection,
81
+ boxstyle,
82
+ needBoxStyle
83
+ }
84
+ });
85
+ return /*#__PURE__*/React.createElement("div", {
86
+ className: boxClassName,
87
+ "data-id": `${dataId}`,
88
+ "data-selector-id": dataSelectorId,
89
+ ref: getRef,
90
+ style: inlineStyle,
91
+ "data-tour": tourId,
92
+ "data-position": boxPosition,
93
+ id: htmlId,
94
+ role: role,
95
+ "aria-multiselectable": ariaMultiselectable,
96
+ "aria-labelledby": ariaLabelledby,
97
+ tabIndex: tabIndex,
98
+ onAnimationEnd: FireOnAnimationEnd
99
+ }, /*#__PURE__*/React.createElement("div", {
100
+ tabIndex: "-1",
101
+ className: `${subContainerClass} ${style[`${palette}Palette`]}`,
102
+ onClick: onClick,
103
+ "data-id": `${dataId}_subcontainer`,
104
+ "data-selector-id": `${dataSelectorId}_subcontainer`,
105
+ ref: subContainerRef
106
+ }, isModel ? /*#__PURE__*/React.createElement("div", {
107
+ className: style.closeBar
108
+ }) : null, isArrow && !isModel && /*#__PURE__*/React.createElement("div", {
109
+ className: style[arrowPosition],
110
+ style: arrowstyle,
111
+ "data-id": `${dataId}_arrow`,
112
+ "data-selector-id": `${dataSelectorId}_arrow`
113
+ }, /*#__PURE__*/React.createElement("div", {
114
+ className: style.arrowShape
115
+ })), children));
116
+ }
117
+ DropBoxElement.propTypes = DropBoxElementPropTypes;
118
+ DropBoxElement.defaultProps = DropBoxElementDefaultProps;