@sisense/sdk-shared-ui 1.27.1 → 1.29.0

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 (407) hide show
  1. package/dist/Breadcrumbs-B46ViOSv.cjs +3 -0
  2. package/dist/Breadcrumbs-CQNCIJ2Y.js +301 -0
  3. package/dist/Button-CoMaroSC.cjs +1 -0
  4. package/dist/Button-D5ZAS_sd.js +569 -0
  5. package/dist/ButtonBase-Camgk6s8.cjs +74 -0
  6. package/dist/ButtonBase-DPVWpC8-.js +883 -0
  7. package/dist/CheckableList-BLLCGCKX.cjs +1 -0
  8. package/dist/CheckableList-CC7iKnHq.js +21 -0
  9. package/dist/Checkbox-3bG1OLg3.js +516 -0
  10. package/dist/Checkbox-oJOn5Vb9.cjs +1 -0
  11. package/dist/DEPRECATED_Button-D2XS1y1r.cjs +1 -0
  12. package/dist/DEPRECATED_Button-m2ifXo3Q.js +87 -0
  13. package/dist/DEPRECATED_Checkbox-CYomxatm.cjs +1 -0
  14. package/dist/DEPRECATED_Checkbox-DWtXr5K7.js +63 -0
  15. package/dist/DEPRECATED_Icon-BQ4AqiI1.js +56 -0
  16. package/dist/DEPRECATED_Icon-iUszZb09.cjs +1 -0
  17. package/dist/DEPRECATED_Toggle-DMnlQO3F.js +30 -0
  18. package/dist/DEPRECATED_Toggle-Dp0ZZ_6E.cjs +1 -0
  19. package/dist/DEPRECATED_Tooltip-C2bU8ipb.js +2316 -0
  20. package/dist/DEPRECATED_Tooltip-D3ReAkFF.cjs +27 -0
  21. package/dist/Dropdown-BtZZ4fY6.cjs +1 -0
  22. package/dist/Dropdown-BxoUPsca.js +231 -0
  23. package/dist/Icon-CqoYg88-.cjs +1 -0
  24. package/dist/Icon-D0uZg6iJ.js +131 -0
  25. package/dist/Input-BghWSV2Z.js +119 -0
  26. package/dist/Input-Cd6a2FUC.cjs +1 -0
  27. package/dist/LazyLoader-DB86QSSx.js +18 -0
  28. package/dist/LazyLoader-gOLNhxc-.cjs +1 -0
  29. package/dist/Menu-BfAQOpHl.cjs +1 -0
  30. package/dist/Menu-C5wQnuq6.js +1212 -0
  31. package/dist/Popover-0n4kd3ut.js +49 -0
  32. package/dist/Popover-Bp5g_ws9.cjs +1 -0
  33. package/dist/RadioButton-BpAksn2s.js +70 -0
  34. package/dist/RadioButton-Ds-0wj0r.cjs +1 -0
  35. package/dist/SvgIcon-Dg-EBYZz.cjs +1 -0
  36. package/dist/SvgIcon-DsAvI5iY.js +238 -0
  37. package/dist/TablePagination-DUkJaWJG.js +7758 -0
  38. package/dist/TablePagination-Yp8eKLZB.cjs +15 -0
  39. package/dist/ThemeProvider-BCsnqK18.js +5085 -0
  40. package/dist/ThemeProvider-BjBWRt7C.cjs +114 -0
  41. package/dist/Tooltip-B0-7TF8b.js +2155 -0
  42. package/dist/Tooltip-DE1hlnS3.cjs +7 -0
  43. package/dist/Typography-BGFgTnYN.js +498 -0
  44. package/dist/Typography-CGsd6zC4.cjs +1 -0
  45. package/dist/align.interface-B17uA473.cjs +1 -0
  46. package/dist/align.interface-DdWsijrT.js +4 -0
  47. package/dist/assertThisInitialized-BSnhOY1M.cjs +1 -0
  48. package/dist/assertThisInitialized-lz6cHcRv.js +8 -0
  49. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  50. package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
  51. package/dist/createSvgIcon-DDrcw4wZ.cjs +1 -0
  52. package/dist/createSvgIcon-rAujRRtd.js +17 -0
  53. package/dist/deepmerge-BuAjuQR6.cjs +17 -0
  54. package/dist/deepmerge-DNqbOtFI.js +177 -0
  55. package/dist/extends-DX42hfxm.js +13 -0
  56. package/dist/extends-q0Hkx4pQ.cjs +1 -0
  57. package/dist/index-B-zZeebW.cjs +20 -0
  58. package/dist/index-D0lMis-I.js +667 -0
  59. package/dist/index.cjs +1 -0
  60. package/dist/index.d.ts +2 -0
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/index.js +30 -24
  63. package/dist/integerPropType-B8hl-7D0.js +180 -0
  64. package/dist/integerPropType-BGlNA6vX.cjs +17 -0
  65. package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -0
  66. package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts +16 -0
  67. package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
  68. package/dist/lib/Breadcrumbs/Breadcrumbs.js +7 -0
  69. package/dist/lib/Breadcrumbs/index.d.ts +5 -0
  70. package/dist/lib/Breadcrumbs/index.d.ts.map +1 -0
  71. package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts +4 -0
  72. package/dist/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts.map +1 -0
  73. package/dist/lib/Breadcrumbs/themes/index.d.ts +2 -0
  74. package/dist/lib/Breadcrumbs/themes/index.d.ts.map +1 -0
  75. package/dist/lib/Button/Button.cjs +1 -0
  76. package/dist/lib/Button/Button.d.ts +10 -0
  77. package/dist/lib/Button/Button.d.ts.map +1 -0
  78. package/dist/lib/Button/Button.js +7 -0
  79. package/dist/lib/Button/index.d.ts +5 -0
  80. package/dist/lib/Button/index.d.ts.map +1 -0
  81. package/dist/lib/Button/themes/buttonsTheme.d.ts +11 -0
  82. package/dist/lib/Button/themes/buttonsTheme.d.ts.map +1 -0
  83. package/dist/lib/Button/themes/index.d.ts +2 -0
  84. package/dist/lib/Button/themes/index.d.ts.map +1 -0
  85. package/dist/lib/CheckableList/CheckableList.cjs +1 -0
  86. package/dist/lib/CheckableList/CheckableList.d.ts +16 -0
  87. package/dist/lib/CheckableList/CheckableList.d.ts.map +1 -0
  88. package/dist/lib/CheckableList/CheckableList.js +5 -0
  89. package/dist/lib/CheckableList/index.d.ts +4 -0
  90. package/dist/lib/CheckableList/index.d.ts.map +1 -0
  91. package/dist/lib/Checkbox/Checkbox.cjs +1 -0
  92. package/dist/lib/Checkbox/Checkbox.d.ts +20 -0
  93. package/dist/lib/Checkbox/Checkbox.d.ts.map +1 -0
  94. package/dist/lib/Checkbox/Checkbox.js +5 -0
  95. package/dist/lib/Checkbox/index.d.ts +4 -0
  96. package/dist/lib/Checkbox/index.d.ts.map +1 -0
  97. package/dist/lib/Checkbox/themes/checkboxTheme.d.ts +12 -0
  98. package/dist/lib/Checkbox/themes/checkboxTheme.d.ts.map +1 -0
  99. package/{src/lib/Checkbox/themes/index.ts → dist/lib/Checkbox/themes/index.d.ts} +1 -0
  100. package/dist/lib/Checkbox/themes/index.d.ts.map +1 -0
  101. package/dist/lib/Checkbox/themes/uiCustomization.d.ts +12 -0
  102. package/dist/lib/Checkbox/themes/uiCustomization.d.ts.map +1 -0
  103. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -0
  104. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +43 -0
  105. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -0
  106. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.js +5 -0
  107. package/dist/lib/DEPRECATED_Button/index.d.ts +4 -0
  108. package/dist/lib/DEPRECATED_Button/index.d.ts.map +1 -0
  109. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -0
  110. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts +20 -0
  111. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -0
  112. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +5 -0
  113. package/dist/lib/DEPRECATED_Checkbox/index.d.ts +4 -0
  114. package/dist/lib/DEPRECATED_Checkbox/index.d.ts.map +1 -0
  115. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -0
  116. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts +17 -0
  117. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -0
  118. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +5 -0
  119. package/dist/lib/DEPRECATED_Icon/index.d.ts +4 -0
  120. package/dist/lib/DEPRECATED_Icon/index.d.ts.map +1 -0
  121. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.cjs +1 -0
  122. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts +13 -0
  123. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -0
  124. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.js +5 -0
  125. package/dist/lib/DEPRECATED_Toggle/index.d.ts +4 -0
  126. package/dist/lib/DEPRECATED_Toggle/index.d.ts.map +1 -0
  127. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -0
  128. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +15 -0
  129. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -0
  130. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +5 -0
  131. package/dist/lib/DEPRECATED_Tooltip/index.d.ts +4 -0
  132. package/dist/lib/DEPRECATED_Tooltip/index.d.ts.map +1 -0
  133. package/dist/lib/Dropdown/Dropdown.cjs +1 -0
  134. package/dist/lib/Dropdown/Dropdown.d.ts +32 -0
  135. package/dist/lib/Dropdown/Dropdown.d.ts.map +1 -0
  136. package/dist/lib/Dropdown/Dropdown.js +5 -0
  137. package/dist/lib/Dropdown/DropdownButton/DropdownButton.d.ts +18 -0
  138. package/dist/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -0
  139. package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts +12 -0
  140. package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts.map +1 -0
  141. package/{src/lib/Dropdown/DropdownButton/DropdownButtonBody/index.ts → dist/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts} +1 -0
  142. package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts.map +1 -0
  143. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts +10 -0
  144. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -0
  145. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts +2 -0
  146. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts.map +1 -0
  147. package/{src/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.ts → dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts} +1 -0
  148. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts.map +1 -0
  149. package/{src/lib/Dropdown/DropdownButton/hooks/index.tsx → dist/lib/Dropdown/DropdownButton/hooks/index.d.ts} +1 -0
  150. package/dist/lib/Dropdown/DropdownButton/hooks/index.d.ts.map +1 -0
  151. package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +15 -0
  152. package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -0
  153. package/{src/lib/Dropdown/DropdownButton/index.ts → dist/lib/Dropdown/DropdownButton/index.d.ts} +1 -0
  154. package/dist/lib/Dropdown/DropdownButton/index.d.ts.map +1 -0
  155. package/{src/lib/Dropdown/hooks/index.tsx → dist/lib/Dropdown/hooks/index.d.ts} +1 -0
  156. package/dist/lib/Dropdown/hooks/index.d.ts.map +1 -0
  157. package/dist/lib/Dropdown/hooks/useDropdown.d.ts +9 -0
  158. package/dist/lib/Dropdown/hooks/useDropdown.d.ts.map +1 -0
  159. package/dist/lib/Dropdown/index.d.ts +5 -0
  160. package/dist/lib/Dropdown/index.d.ts.map +1 -0
  161. package/dist/lib/Dropdown/types.d.ts +12 -0
  162. package/dist/lib/Dropdown/types.d.ts.map +1 -0
  163. package/dist/lib/Icon/Icon.cjs +1 -0
  164. package/dist/lib/Icon/Icon.d.ts +13 -0
  165. package/dist/lib/Icon/Icon.d.ts.map +1 -0
  166. package/dist/lib/Icon/Icon.js +5 -0
  167. package/dist/lib/Icon/index.d.ts +4 -0
  168. package/dist/lib/Icon/index.d.ts.map +1 -0
  169. package/dist/lib/Icon/themes/iconTheme.d.ts +8 -0
  170. package/dist/lib/Icon/themes/iconTheme.d.ts.map +1 -0
  171. package/{src/lib/Icon/themes/index.ts → dist/lib/Icon/themes/index.d.ts} +1 -0
  172. package/dist/lib/Icon/themes/index.d.ts.map +1 -0
  173. package/dist/lib/Icon/themes/uiCustomization.d.ts +2 -0
  174. package/dist/lib/Icon/themes/uiCustomization.d.ts.map +1 -0
  175. package/dist/lib/Input/Input.cjs +1 -0
  176. package/dist/lib/Input/Input.d.ts +28 -0
  177. package/dist/lib/Input/Input.d.ts.map +1 -0
  178. package/dist/lib/Input/Input.js +5 -0
  179. package/dist/lib/Input/index.d.ts +4 -0
  180. package/dist/lib/Input/index.d.ts.map +1 -0
  181. package/dist/lib/LazyLoader/LazyLoader.cjs +1 -0
  182. package/dist/lib/LazyLoader/LazyLoader.d.ts +9 -0
  183. package/dist/lib/LazyLoader/LazyLoader.d.ts.map +1 -0
  184. package/dist/lib/LazyLoader/LazyLoader.js +5 -0
  185. package/dist/lib/LazyLoader/index.d.ts +4 -0
  186. package/dist/lib/LazyLoader/index.d.ts.map +1 -0
  187. package/dist/lib/Menu/Confirmation/Confirmation.d.ts +8 -0
  188. package/dist/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -0
  189. package/{src/lib/Menu/Confirmation/index.ts → dist/lib/Menu/Confirmation/index.d.ts} +1 -0
  190. package/dist/lib/Menu/Confirmation/index.d.ts.map +1 -0
  191. package/dist/lib/Menu/Confirmation/translation.d.ts +2 -0
  192. package/dist/lib/Menu/Confirmation/translation.d.ts.map +1 -0
  193. package/dist/lib/Menu/Menu.cjs +1 -0
  194. package/dist/lib/Menu/Menu.d.ts +80 -0
  195. package/dist/lib/Menu/Menu.d.ts.map +1 -0
  196. package/dist/lib/Menu/Menu.js +8 -0
  197. package/dist/lib/Menu/MenuItem/MenuItem.d.ts +36 -0
  198. package/dist/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -0
  199. package/{src/lib/Menu/MenuItem/index.ts → dist/lib/Menu/MenuItem/index.d.ts} +1 -0
  200. package/dist/lib/Menu/MenuItem/index.d.ts.map +1 -0
  201. package/{src/lib/Menu/index.ts → dist/lib/Menu/index.d.ts} +2 -2
  202. package/dist/lib/Menu/index.d.ts.map +1 -0
  203. package/dist/lib/Menu/utils.d.ts +6 -0
  204. package/dist/lib/Menu/utils.d.ts.map +1 -0
  205. package/dist/lib/Popover/Popover.cjs +1 -0
  206. package/dist/lib/Popover/Popover.d.ts +16 -0
  207. package/dist/lib/Popover/Popover.d.ts.map +1 -0
  208. package/dist/lib/Popover/Popover.js +7 -0
  209. package/dist/lib/Popover/align.interface.d.ts +23 -0
  210. package/dist/lib/Popover/align.interface.d.ts.map +1 -0
  211. package/{src/lib/Popover/index.ts → dist/lib/Popover/index.d.ts} +2 -2
  212. package/dist/lib/Popover/index.d.ts.map +1 -0
  213. package/dist/lib/RadioButton/RadioButton.cjs +1 -0
  214. package/dist/lib/RadioButton/RadioButton.d.ts +20 -0
  215. package/dist/lib/RadioButton/RadioButton.d.ts.map +1 -0
  216. package/dist/lib/RadioButton/RadioButton.js +5 -0
  217. package/dist/lib/RadioButton/index.d.ts +4 -0
  218. package/dist/lib/RadioButton/index.d.ts.map +1 -0
  219. package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +9 -0
  220. package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -0
  221. package/dist/lib/TablePagination/PaginationActionsComponent/index.d.ts +2 -0
  222. package/dist/lib/TablePagination/PaginationActionsComponent/index.d.ts.map +1 -0
  223. package/dist/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts +2 -0
  224. package/dist/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts.map +1 -0
  225. package/dist/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts +3 -0
  226. package/dist/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -0
  227. package/dist/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts +2 -0
  228. package/dist/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts.map +1 -0
  229. package/dist/lib/TablePagination/TablePagination.cjs +1 -0
  230. package/dist/lib/TablePagination/TablePagination.d.ts +19 -0
  231. package/dist/lib/TablePagination/TablePagination.d.ts.map +1 -0
  232. package/dist/lib/TablePagination/TablePagination.js +5 -0
  233. package/dist/lib/TablePagination/TablePaginationContext.d.ts +3 -0
  234. package/dist/lib/TablePagination/TablePaginationContext.d.ts.map +1 -0
  235. package/dist/lib/TablePagination/index.d.ts +4 -0
  236. package/dist/lib/TablePagination/index.d.ts.map +1 -0
  237. package/{src/lib/TablePagination/themes/index.ts → dist/lib/TablePagination/themes/index.d.ts} +1 -0
  238. package/dist/lib/TablePagination/themes/index.d.ts.map +1 -0
  239. package/dist/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts +10 -0
  240. package/dist/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts.map +1 -0
  241. package/dist/lib/TablePagination/themes/tablePaginationTheme.d.ts +3 -0
  242. package/dist/lib/TablePagination/themes/tablePaginationTheme.d.ts.map +1 -0
  243. package/dist/lib/TablePagination/themes/uiCustomization.d.ts +2 -0
  244. package/dist/lib/TablePagination/themes/uiCustomization.d.ts.map +1 -0
  245. package/dist/lib/Tooltip/Tooltip.cjs +1 -0
  246. package/dist/lib/Tooltip/Tooltip.d.ts +10 -0
  247. package/dist/lib/Tooltip/Tooltip.d.ts.map +1 -0
  248. package/dist/lib/Tooltip/Tooltip.js +7 -0
  249. package/{src/lib/Tooltip/index.ts → dist/lib/Tooltip/index.d.ts} +2 -2
  250. package/dist/lib/Tooltip/index.d.ts.map +1 -0
  251. package/{src/lib/Tooltip/themes/index.ts → dist/lib/Tooltip/themes/index.d.ts} +1 -0
  252. package/dist/lib/Tooltip/themes/index.d.ts.map +1 -0
  253. package/dist/lib/Tooltip/themes/tooltipTheme.d.ts +3 -0
  254. package/dist/lib/Tooltip/themes/tooltipTheme.d.ts.map +1 -0
  255. package/dist/lib/Typography/Typography.cjs +1 -0
  256. package/dist/lib/Typography/Typography.d.ts +11 -0
  257. package/dist/lib/Typography/Typography.d.ts.map +1 -0
  258. package/dist/lib/Typography/Typography.js +7 -0
  259. package/{src/lib/Typography/index.ts → dist/lib/Typography/index.d.ts} +2 -2
  260. package/dist/lib/Typography/index.d.ts.map +1 -0
  261. package/{src/lib/Typography/themes/index.ts → dist/lib/Typography/themes/index.d.ts} +1 -0
  262. package/dist/lib/Typography/themes/index.d.ts.map +1 -0
  263. package/dist/lib/Typography/themes/typographyTheme.d.ts +21 -0
  264. package/dist/lib/Typography/themes/typographyTheme.d.ts.map +1 -0
  265. package/dist/lib/Typography/themes/uiCustomization.d.ts +2 -0
  266. package/dist/lib/Typography/themes/uiCustomization.d.ts.map +1 -0
  267. package/dist/lib/constants/styleguideConstants.d.ts +9 -0
  268. package/dist/lib/constants/styleguideConstants.d.ts.map +1 -0
  269. package/{src/lib/index.ts → dist/lib/index.d.ts} +3 -0
  270. package/dist/lib/index.d.ts.map +1 -0
  271. package/{src/lib/themes/colors/index.ts → dist/lib/themes/colors/index.d.ts} +1 -0
  272. package/dist/lib/themes/colors/index.d.ts.map +1 -0
  273. package/dist/lib/themes/colors/siColors.d.ts +140 -0
  274. package/dist/lib/themes/colors/siColors.d.ts.map +1 -0
  275. package/{src/lib/themes/index.ts → dist/lib/themes/index.d.ts} +1 -0
  276. package/dist/lib/themes/index.d.ts.map +1 -0
  277. package/dist/lib/themes/themes.cjs +2 -0
  278. package/dist/lib/themes/themes.js +142 -0
  279. package/dist/lib/themes/types/SisenseTheme.d.ts +12 -0
  280. package/dist/lib/themes/types/SisenseTheme.d.ts.map +1 -0
  281. package/{src/lib/themes/types/index.ts → dist/lib/themes/types/index.d.ts} +1 -0
  282. package/dist/lib/themes/types/index.d.ts.map +1 -0
  283. package/dist/package.json +225 -0
  284. package/dist/setPrototypeOf-BmHXYjK5.cjs +1 -0
  285. package/dist/setPrototypeOf-CEtRTXk2.js +19 -0
  286. package/dist/styleguideConstants-CtXkvIZK.cjs +1 -0
  287. package/dist/styleguideConstants-D4Yls16w.js +11 -0
  288. package/dist/useControlled-BYdyS7Pn.js +31 -0
  289. package/dist/useControlled-Ysk4KqoX.cjs +3 -0
  290. package/dist/useFormControl-CatNKXAi.js +10 -0
  291. package/dist/useFormControl-haP0iPhl.cjs +1 -0
  292. package/dist/useSlot-7x9FkqBW.js +720 -0
  293. package/dist/useSlot-B_P_o-pz.cjs +1 -0
  294. package/dist/useSlotProps-BpXHXb21.js +102 -0
  295. package/dist/useSlotProps-COvANhgg.cjs +1 -0
  296. package/dist/useTheme-BN6DGaDZ.cjs +1 -0
  297. package/dist/useTheme-eCVqNAnk.js +8 -0
  298. package/dist/useTimeout-BG7TPjEm.js +92 -0
  299. package/dist/useTimeout-DQN9lwd_.cjs +2 -0
  300. package/package.json +21 -1
  301. package/.eslintignore +0 -4
  302. package/.prettierignore +0 -11
  303. package/.storybook/main.ts +0 -44
  304. package/.storybook/preview-head.html +0 -4
  305. package/.storybook/preview.tsx +0 -34
  306. package/src/index.ts +0 -1
  307. package/src/lib/@types/sass.d.ts +0 -19
  308. package/src/lib/CheckableList/CheckableList.module.scss +0 -13
  309. package/src/lib/CheckableList/CheckableList.test.tsx +0 -61
  310. package/src/lib/CheckableList/CheckableList.tsx +0 -41
  311. package/src/lib/CheckableList/index.ts +0 -4
  312. package/src/lib/Checkbox/Checkbox.tsx +0 -28
  313. package/src/lib/Checkbox/index.ts +0 -4
  314. package/src/lib/Checkbox/themes/checkboxTheme.ts +0 -42
  315. package/src/lib/Checkbox/themes/uiCustomization.ts +0 -28
  316. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.module.scss +0 -57
  317. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.stories.tsx +0 -169
  318. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.test.tsx +0 -154
  319. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.tsx +0 -129
  320. package/src/lib/DEPRECATED_Button/index.ts +0 -4
  321. package/src/lib/DEPRECATED_Checkbox/Checkbox.module.scss +0 -49
  322. package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.test.tsx +0 -131
  323. package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.tsx +0 -103
  324. package/src/lib/DEPRECATED_Checkbox/index.ts +0 -4
  325. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.module.scss +0 -7
  326. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.stories.tsx +0 -27
  327. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.test.tsx +0 -105
  328. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.tsx +0 -91
  329. package/src/lib/DEPRECATED_Icon/index.ts +0 -4
  330. package/src/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.tsx +0 -49
  331. package/src/lib/DEPRECATED_Toggle/index.ts +0 -4
  332. package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.module.scss +0 -115
  333. package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.tsx +0 -68
  334. package/src/lib/DEPRECATED_Tooltip/index.ts +0 -4
  335. package/src/lib/Dropdown/Dropdown.module.scss +0 -9
  336. package/src/lib/Dropdown/Dropdown.tsx +0 -150
  337. package/src/lib/Dropdown/DropdownButton/DropdownButton.module.scss +0 -49
  338. package/src/lib/Dropdown/DropdownButton/DropdownButton.tsx +0 -81
  339. package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.test.tsx +0 -121
  340. package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.tsx +0 -39
  341. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.module.scss +0 -20
  342. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.tsx +0 -44
  343. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.ts +0 -1
  344. package/src/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.ts +0 -51
  345. package/src/lib/Dropdown/hooks/useDropdown.ts +0 -29
  346. package/src/lib/Dropdown/index.ts +0 -5
  347. package/src/lib/Dropdown/types.ts +0 -17
  348. package/src/lib/Icon/Icon.tsx +0 -118
  349. package/src/lib/Icon/index.ts +0 -4
  350. package/src/lib/Icon/themes/iconTheme.tsx +0 -38
  351. package/src/lib/Icon/themes/uiCustomization.ts +0 -9
  352. package/src/lib/Input/Input.module.scss +0 -97
  353. package/src/lib/Input/Input.test.tsx +0 -177
  354. package/src/lib/Input/Input.tsx +0 -134
  355. package/src/lib/Input/index.ts +0 -4
  356. package/src/lib/LazyLoader/LazyLoader.module.scss +0 -18
  357. package/src/lib/LazyLoader/LazyLoader.tsx +0 -42
  358. package/src/lib/LazyLoader/index.ts +0 -4
  359. package/src/lib/Menu/Confirmation/Confirmation.module.scss +0 -48
  360. package/src/lib/Menu/Confirmation/Confirmation.tsx +0 -45
  361. package/src/lib/Menu/Confirmation/translation.ts +0 -17
  362. package/src/lib/Menu/Menu.module.scss +0 -178
  363. package/src/lib/Menu/Menu.tsx +0 -363
  364. package/src/lib/Menu/MenuItem/MenuItem.test.tsx +0 -241
  365. package/src/lib/Menu/MenuItem/MenuItem.tsx +0 -186
  366. package/src/lib/Menu/utils.ts +0 -13
  367. package/src/lib/Popover/Popover.module.scss +0 -15
  368. package/src/lib/Popover/Popover.tsx +0 -92
  369. package/src/lib/Popover/align.interface.ts +0 -20
  370. package/src/lib/RadioButton/RadioButton.module.scss +0 -22
  371. package/src/lib/RadioButton/RadioButton.tsx +0 -89
  372. package/src/lib/RadioButton/index.ts +0 -4
  373. package/src/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.tsx +0 -87
  374. package/src/lib/TablePagination/PaginationActionsComponent/index.ts +0 -4
  375. package/src/lib/TablePagination/PaginationActionsComponent/themes/index.ts +0 -4
  376. package/src/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.tsx +0 -70
  377. package/src/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.ts +0 -17
  378. package/src/lib/TablePagination/TablePagination.tsx +0 -148
  379. package/src/lib/TablePagination/TablePaginationContext.ts +0 -4
  380. package/src/lib/TablePagination/index.ts +0 -4
  381. package/src/lib/TablePagination/themes/tablePaginationResponsiveDesign.ts +0 -33
  382. package/src/lib/TablePagination/themes/tablePaginationTheme.tsx +0 -128
  383. package/src/lib/TablePagination/themes/uiCustomization.ts +0 -50
  384. package/src/lib/Tooltip/Tooltip.module.scss +0 -125
  385. package/src/lib/Tooltip/Tooltip.tsx +0 -34
  386. package/src/lib/Tooltip/themes/tooltipTheme.ts +0 -30
  387. package/src/lib/Typography/Typography.tsx +0 -28
  388. package/src/lib/Typography/themes/typographyTheme.tsx +0 -170
  389. package/src/lib/Typography/themes/uiCustomization.ts +0 -10
  390. package/src/lib/constants/styleguideConstants.ts +0 -8
  391. package/src/lib/styles/colors.module.scss +0 -10
  392. package/src/lib/styles/sisenseStyleguideReactColors.scss +0 -57
  393. package/src/lib/styles/style_styleguide_react/_variables.deprecated.scss +0 -107
  394. package/src/lib/styles/style_styleguide_react/_variables.scss +0 -100
  395. package/src/lib/styles/style_styleguide_react/base.scss +0 -9
  396. package/src/lib/styles/style_styleguide_react/colors.scss +0 -71
  397. package/src/lib/styles/style_styleguide_react/exports/colors.exports.scss +0 -69
  398. package/src/lib/styles/style_styleguide_react/exports/fonts.exports.scss +0 -33
  399. package/src/lib/styles/style_styleguide_react/fonts.scss +0 -27
  400. package/src/lib/styles/style_styleguide_react/mixins.scss +0 -90
  401. package/src/lib/themes/colors/siColors.ts +0 -143
  402. package/src/lib/themes/types/SisenseTheme.ts +0 -12
  403. package/tsconfig.eslint.json +0 -12
  404. package/tsconfig.json +0 -17
  405. package/tsconfig.lib.json +0 -22
  406. package/tsconfig.spec.json +0 -21
  407. package/vite.config.ts +0 -140
@@ -0,0 +1,1212 @@
1
+ import { jsxs as $, jsx as v } from "react/jsx-runtime";
2
+ import Le, { Component as ze } from "react";
3
+ import D from "classnames";
4
+ import { c as Ve, p as Ze } from "./index-D0lMis-I.js";
5
+ import { P as _e } from "./Popover-0n4kd3ut.js";
6
+ import { L as Qe } from "./LazyLoader-DB86QSSx.js";
7
+ import { D as oe } from "./DEPRECATED_Icon-BQ4AqiI1.js";
8
+ import { R as Je } from "./RadioButton-BpAksn2s.js";
9
+ import { D as Ke } from "./DEPRECATED_Toggle-DMnlQO3F.js";
10
+ import { D as et } from "./DEPRECATED_Checkbox-DWtXr5K7.js";
11
+ import { D as tt } from "./DEPRECATED_Tooltip-C2bU8ipb.js";
12
+ import { s as K } from "./styleguideConstants-D4Yls16w.js";
13
+ var Ie = {}, Oe = {}, ce = { exports: {} }, ee = { exports: {} };
14
+ (function() {
15
+ var n, o, e, i, u, c;
16
+ typeof performance < "u" && performance !== null && performance.now ? ee.exports = function() {
17
+ return performance.now();
18
+ } : typeof process < "u" && process !== null && process.hrtime ? (ee.exports = function() {
19
+ return (n() - u) / 1e6;
20
+ }, o = process.hrtime, n = function() {
21
+ var d;
22
+ return d = o(), d[0] * 1e9 + d[1];
23
+ }, i = n(), c = process.uptime() * 1e9, u = i - c) : Date.now ? (ee.exports = function() {
24
+ return Date.now() - e;
25
+ }, e = Date.now()) : (ee.exports = function() {
26
+ return (/* @__PURE__ */ new Date()).getTime() - e;
27
+ }, e = (/* @__PURE__ */ new Date()).getTime());
28
+ }).call(Ve);
29
+ var rt = ee.exports, nt = rt, O = typeof window > "u" ? Ve : window, ie = ["moz", "webkit"], q = "AnimationFrame", j = O["request" + q], te = O["cancel" + q] || O["cancelRequest" + q];
30
+ for (var J = 0; !j && J < ie.length; J++)
31
+ j = O[ie[J] + "Request" + q], te = O[ie[J] + "Cancel" + q] || O[ie[J] + "CancelRequest" + q];
32
+ if (!j || !te) {
33
+ var Se = 0, Me = 0, X = [], ot = 1e3 / 60;
34
+ j = function(n) {
35
+ if (X.length === 0) {
36
+ var o = nt(), e = Math.max(0, ot - (o - Se));
37
+ Se = e + o, setTimeout(function() {
38
+ var i = X.slice(0);
39
+ X.length = 0;
40
+ for (var u = 0; u < i.length; u++)
41
+ if (!i[u].cancelled)
42
+ try {
43
+ i[u].callback(Se);
44
+ } catch (c) {
45
+ setTimeout(function() {
46
+ throw c;
47
+ }, 0);
48
+ }
49
+ }, Math.round(e));
50
+ }
51
+ return X.push({
52
+ handle: ++Me,
53
+ callback: n,
54
+ cancelled: !1
55
+ }), Me;
56
+ }, te = function(n) {
57
+ for (var o = 0; o < X.length; o++)
58
+ X[o].handle === n && (X[o].cancelled = !0);
59
+ };
60
+ }
61
+ ce.exports = function(n) {
62
+ return j.call(O, n);
63
+ };
64
+ ce.exports.cancel = function() {
65
+ te.apply(O, arguments);
66
+ };
67
+ ce.exports.polyfill = function(n) {
68
+ n || (n = O), n.requestAnimationFrame = j, n.cancelAnimationFrame = te;
69
+ };
70
+ var it = ce.exports, de = { exports: {} }, ye = null, Ce = ["Webkit", "Moz", "O", "ms"], at = function(o) {
71
+ ye || (ye = document.createElement("div"));
72
+ var e = ye.style;
73
+ if (o in e)
74
+ return o;
75
+ for (var i = o.charAt(0).toUpperCase() + o.slice(1), u = Ce.length; u >= 0; u--) {
76
+ var c = Ce[u] + i;
77
+ if (c in e)
78
+ return c;
79
+ }
80
+ return !1;
81
+ }, lt = dt, st = /\s/, ut = /(_|-|\.|:)/, ct = /([a-z][A-Z]|[A-Z][a-z])/;
82
+ function dt(n) {
83
+ return st.test(n) ? n.toLowerCase() : ut.test(n) ? (ft(n) || n).toLowerCase() : ct.test(n) ? vt(n).toLowerCase() : n.toLowerCase();
84
+ }
85
+ var ht = /[\W_]+(.|$)/g;
86
+ function ft(n) {
87
+ return n.replace(ht, function(o, e) {
88
+ return e ? " " + e : "";
89
+ });
90
+ }
91
+ var mt = /(.)([A-Z]+)/g;
92
+ function vt(n) {
93
+ return n.replace(mt, function(o, e, i) {
94
+ return e + " " + i.toLowerCase().split("").join(" ");
95
+ });
96
+ }
97
+ var pt = lt, gt = bt;
98
+ function bt(n) {
99
+ return pt(n).replace(/[\W_]+(.|$)/g, function(o, e) {
100
+ return e ? " " + e : "";
101
+ }).trim();
102
+ }
103
+ var Tt = gt, _t = St;
104
+ function St(n) {
105
+ return Tt(n).replace(/\s(\w)/g, function(o, e) {
106
+ return e.toUpperCase();
107
+ });
108
+ }
109
+ var yt = {
110
+ animationIterationCount: !0,
111
+ boxFlex: !0,
112
+ boxFlexGroup: !0,
113
+ boxOrdinalGroup: !0,
114
+ columnCount: !0,
115
+ flex: !0,
116
+ flexGrow: !0,
117
+ flexPositive: !0,
118
+ flexShrink: !0,
119
+ flexNegative: !0,
120
+ flexOrder: !0,
121
+ gridRow: !0,
122
+ gridColumn: !0,
123
+ fontWeight: !0,
124
+ lineClamp: !0,
125
+ lineHeight: !0,
126
+ opacity: !0,
127
+ order: !0,
128
+ orphans: !0,
129
+ tabSize: !0,
130
+ widows: !0,
131
+ zIndex: !0,
132
+ zoom: !0,
133
+ // SVG-related properties
134
+ fillOpacity: !0,
135
+ stopOpacity: !0,
136
+ strokeDashoffset: !0,
137
+ strokeOpacity: !0,
138
+ strokeWidth: !0
139
+ }, kt = function(n, o) {
140
+ return typeof o == "number" && !yt[n] ? o + "px" : o;
141
+ }, Ht = at, wt = _t, le = { float: "cssFloat" }, Mt = kt;
142
+ function se(n, o, e) {
143
+ var i = le[o];
144
+ if (typeof i > "u" && (i = Dt(o)), i) {
145
+ if (e === void 0)
146
+ return n.style[i];
147
+ n.style[i] = Mt(i, e);
148
+ }
149
+ }
150
+ function Ct(n, o) {
151
+ for (var e in o)
152
+ o.hasOwnProperty(e) && se(n, e, o[e]);
153
+ }
154
+ function Dt(n) {
155
+ var o = wt(n), e = Ht(o);
156
+ return le[o] = le[n] = le[e] = e, e;
157
+ }
158
+ function We() {
159
+ arguments.length === 2 ? typeof arguments[1] == "string" ? arguments[0].style.cssText = arguments[1] : Ct(arguments[0], arguments[1]) : se(arguments[0], arguments[1], arguments[2]);
160
+ }
161
+ de.exports = We;
162
+ de.exports.set = We;
163
+ de.exports.get = function(n, o) {
164
+ return Array.isArray(o) ? o.reduce(function(e, i) {
165
+ return e[i] = se(n, i || ""), e;
166
+ }, {}) : se(n, o || "");
167
+ };
168
+ var xe = de.exports, Ne = {};
169
+ (function(n) {
170
+ Object.defineProperty(n, "__esModule", {
171
+ value: !0
172
+ }), n.default = o;
173
+ function o(e) {
174
+ return typeof e == "string";
175
+ }
176
+ })(Ne);
177
+ var Re = {};
178
+ (function(n) {
179
+ Object.defineProperty(n, "__esModule", {
180
+ value: !0
181
+ }), n.default = c;
182
+ var o = xe, e = i(o);
183
+ function i(d) {
184
+ return d && d.__esModule ? d : { default: d };
185
+ }
186
+ var u = !1;
187
+ function c() {
188
+ if (u !== !1) return u;
189
+ if (typeof document < "u") {
190
+ var d = document.createElement("div");
191
+ (0, e.default)(d, {
192
+ width: 100,
193
+ height: 100,
194
+ position: "absolute",
195
+ top: -9999,
196
+ overflow: "scroll",
197
+ MsOverflowStyle: "scrollbar"
198
+ }), document.body.appendChild(d), u = d.offsetWidth - d.clientWidth, document.body.removeChild(d);
199
+ } else
200
+ u = 0;
201
+ return u || 0;
202
+ }
203
+ })(Re);
204
+ var Pe = {};
205
+ (function(n) {
206
+ Object.defineProperty(n, "__esModule", {
207
+ value: !0
208
+ }), n.default = o;
209
+ function o() {
210
+ return !1;
211
+ }
212
+ })(Pe);
213
+ var Ae = {};
214
+ (function(n) {
215
+ Object.defineProperty(n, "__esModule", {
216
+ value: !0
217
+ }), n.default = o;
218
+ function o(e) {
219
+ var i = e.clientWidth, u = getComputedStyle(e), c = u.paddingLeft, d = u.paddingRight;
220
+ return i - parseFloat(c) - parseFloat(d);
221
+ }
222
+ })(Ae);
223
+ var Be = {};
224
+ (function(n) {
225
+ Object.defineProperty(n, "__esModule", {
226
+ value: !0
227
+ }), n.default = o;
228
+ function o(e) {
229
+ var i = e.clientHeight, u = getComputedStyle(e), c = u.paddingTop, d = u.paddingBottom;
230
+ return i - parseFloat(c) - parseFloat(d);
231
+ }
232
+ })(Be);
233
+ var H = {};
234
+ Object.defineProperty(H, "__esModule", {
235
+ value: !0
236
+ });
237
+ H.containerStyleDefault = {
238
+ position: "relative",
239
+ overflow: "hidden",
240
+ width: "100%",
241
+ height: "100%"
242
+ };
243
+ H.containerStyleAutoHeight = {
244
+ height: "auto"
245
+ };
246
+ H.viewStyleDefault = {
247
+ position: "absolute",
248
+ top: 0,
249
+ left: 0,
250
+ right: 0,
251
+ bottom: 0,
252
+ overflow: "scroll",
253
+ WebkitOverflowScrolling: "touch"
254
+ };
255
+ H.viewStyleAutoHeight = {
256
+ position: "relative",
257
+ top: void 0,
258
+ left: void 0,
259
+ right: void 0,
260
+ bottom: void 0
261
+ };
262
+ H.viewStyleUniversalInitial = {
263
+ overflow: "hidden",
264
+ marginRight: 0,
265
+ marginBottom: 0
266
+ };
267
+ H.trackHorizontalStyleDefault = {
268
+ position: "absolute",
269
+ height: 6
270
+ };
271
+ H.trackVerticalStyleDefault = {
272
+ position: "absolute",
273
+ width: 6
274
+ };
275
+ H.thumbHorizontalStyleDefault = {
276
+ position: "relative",
277
+ display: "block",
278
+ height: "100%"
279
+ };
280
+ H.thumbVerticalStyleDefault = {
281
+ position: "relative",
282
+ display: "block",
283
+ width: "100%"
284
+ };
285
+ H.disableSelectStyle = {
286
+ userSelect: "none"
287
+ };
288
+ H.disableSelectStyleReset = {
289
+ userSelect: ""
290
+ };
291
+ var Y = {};
292
+ Object.defineProperty(Y, "__esModule", {
293
+ value: !0
294
+ });
295
+ var F = Object.assign || function(n) {
296
+ for (var o = 1; o < arguments.length; o++) {
297
+ var e = arguments[o];
298
+ for (var i in e)
299
+ Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
300
+ }
301
+ return n;
302
+ };
303
+ Y.renderViewDefault = zt;
304
+ Y.renderTrackHorizontalDefault = Vt;
305
+ Y.renderTrackVerticalDefault = It;
306
+ Y.renderThumbHorizontalDefault = Ot;
307
+ Y.renderThumbVerticalDefault = Wt;
308
+ var Et = Le, re = Lt(Et);
309
+ function Lt(n) {
310
+ return n && n.__esModule ? n : { default: n };
311
+ }
312
+ function he(n, o) {
313
+ var e = {};
314
+ for (var i in n)
315
+ o.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
316
+ return e;
317
+ }
318
+ function zt(n) {
319
+ return re.default.createElement("div", n);
320
+ }
321
+ function Vt(n) {
322
+ var o = n.style, e = he(n, ["style"]), i = F({}, o, {
323
+ right: 2,
324
+ bottom: 2,
325
+ left: 2,
326
+ borderRadius: 3
327
+ });
328
+ return re.default.createElement("div", F({ style: i }, e));
329
+ }
330
+ function It(n) {
331
+ var o = n.style, e = he(n, ["style"]), i = F({}, o, {
332
+ right: 2,
333
+ bottom: 2,
334
+ top: 2,
335
+ borderRadius: 3
336
+ });
337
+ return re.default.createElement("div", F({ style: i }, e));
338
+ }
339
+ function Ot(n) {
340
+ var o = n.style, e = he(n, ["style"]), i = F({}, o, {
341
+ cursor: "pointer",
342
+ borderRadius: "inherit",
343
+ backgroundColor: "rgba(0,0,0,.2)"
344
+ });
345
+ return re.default.createElement("div", F({ style: i }, e));
346
+ }
347
+ function Wt(n) {
348
+ var o = n.style, e = he(n, ["style"]), i = F({}, o, {
349
+ cursor: "pointer",
350
+ borderRadius: "inherit",
351
+ backgroundColor: "rgba(0,0,0,.2)"
352
+ });
353
+ return re.default.createElement("div", F({ style: i }, e));
354
+ }
355
+ (function(n) {
356
+ Object.defineProperty(n, "__esModule", {
357
+ value: !0
358
+ });
359
+ var o = Object.assign || function(g) {
360
+ for (var m = 1; m < arguments.length; m++) {
361
+ var l = arguments[m];
362
+ for (var r in l)
363
+ Object.prototype.hasOwnProperty.call(l, r) && (g[r] = l[r]);
364
+ }
365
+ return g;
366
+ }, e = /* @__PURE__ */ function() {
367
+ function g(m, l) {
368
+ for (var r = 0; r < l.length; r++) {
369
+ var a = l[r];
370
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(m, a.key, a);
371
+ }
372
+ }
373
+ return function(m, l, r) {
374
+ return l && g(m.prototype, l), r && g(m, r), m;
375
+ };
376
+ }(), i = it, u = x(i), c = xe, d = x(c), y = Le, E = Ze, f = x(E), W = Ne, V = x(W), k = Re, b = x(k), I = Pe, U = x(I), Fe = Ae, fe = x(Fe), Ue = Be, me = x(Ue), w = H, Z = Y;
377
+ function x(g) {
378
+ return g && g.__esModule ? g : { default: g };
379
+ }
380
+ function Xe(g, m) {
381
+ var l = {};
382
+ for (var r in g)
383
+ m.indexOf(r) >= 0 || Object.prototype.hasOwnProperty.call(g, r) && (l[r] = g[r]);
384
+ return l;
385
+ }
386
+ function $e(g, m) {
387
+ if (!(g instanceof m))
388
+ throw new TypeError("Cannot call a class as a function");
389
+ }
390
+ function Ye(g, m) {
391
+ if (!g)
392
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
393
+ return m && (typeof m == "object" || typeof m == "function") ? m : g;
394
+ }
395
+ function Ge(g, m) {
396
+ if (typeof m != "function" && m !== null)
397
+ throw new TypeError("Super expression must either be null or a function, not " + typeof m);
398
+ g.prototype = Object.create(m && m.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(g, m) : g.__proto__ = m);
399
+ }
400
+ var ve = function(g) {
401
+ Ge(m, g);
402
+ function m(l) {
403
+ var r;
404
+ $e(this, m);
405
+ for (var a = arguments.length, s = Array(a > 1 ? a - 1 : 0), h = 1; h < a; h++)
406
+ s[h - 1] = arguments[h];
407
+ var t = Ye(this, (r = m.__proto__ || Object.getPrototypeOf(m)).call.apply(r, [this, l].concat(s)));
408
+ return t.getScrollLeft = t.getScrollLeft.bind(t), t.getScrollTop = t.getScrollTop.bind(t), t.getScrollWidth = t.getScrollWidth.bind(t), t.getScrollHeight = t.getScrollHeight.bind(t), t.getClientWidth = t.getClientWidth.bind(t), t.getClientHeight = t.getClientHeight.bind(t), t.getValues = t.getValues.bind(t), t.getThumbHorizontalWidth = t.getThumbHorizontalWidth.bind(t), t.getThumbVerticalHeight = t.getThumbVerticalHeight.bind(t), t.getScrollLeftForOffset = t.getScrollLeftForOffset.bind(t), t.getScrollTopForOffset = t.getScrollTopForOffset.bind(t), t.scrollLeft = t.scrollLeft.bind(t), t.scrollTop = t.scrollTop.bind(t), t.scrollToLeft = t.scrollToLeft.bind(t), t.scrollToTop = t.scrollToTop.bind(t), t.scrollToRight = t.scrollToRight.bind(t), t.scrollToBottom = t.scrollToBottom.bind(t), t.handleTrackMouseEnter = t.handleTrackMouseEnter.bind(t), t.handleTrackMouseLeave = t.handleTrackMouseLeave.bind(t), t.handleHorizontalTrackMouseDown = t.handleHorizontalTrackMouseDown.bind(t), t.handleVerticalTrackMouseDown = t.handleVerticalTrackMouseDown.bind(t), t.handleHorizontalThumbMouseDown = t.handleHorizontalThumbMouseDown.bind(t), t.handleVerticalThumbMouseDown = t.handleVerticalThumbMouseDown.bind(t), t.handleWindowResize = t.handleWindowResize.bind(t), t.handleScroll = t.handleScroll.bind(t), t.handleDrag = t.handleDrag.bind(t), t.handleDragEnd = t.handleDragEnd.bind(t), t.state = {
409
+ didMountUniversal: !1
410
+ }, t;
411
+ }
412
+ return e(m, [{
413
+ key: "componentDidMount",
414
+ value: function() {
415
+ this.addListeners(), this.update(), this.componentDidMountUniversal();
416
+ }
417
+ }, {
418
+ key: "componentDidMountUniversal",
419
+ value: function() {
420
+ var r = this.props.universal;
421
+ r && this.setState({ didMountUniversal: !0 });
422
+ }
423
+ }, {
424
+ key: "componentDidUpdate",
425
+ value: function() {
426
+ this.update();
427
+ }
428
+ }, {
429
+ key: "componentWillUnmount",
430
+ value: function() {
431
+ this.removeListeners(), (0, i.cancel)(this.requestFrame), clearTimeout(this.hideTracksTimeout), clearInterval(this.detectScrollingInterval);
432
+ }
433
+ }, {
434
+ key: "getScrollLeft",
435
+ value: function() {
436
+ return this.view ? this.view.scrollLeft : 0;
437
+ }
438
+ }, {
439
+ key: "getScrollTop",
440
+ value: function() {
441
+ return this.view ? this.view.scrollTop : 0;
442
+ }
443
+ }, {
444
+ key: "getScrollWidth",
445
+ value: function() {
446
+ return this.view ? this.view.scrollWidth : 0;
447
+ }
448
+ }, {
449
+ key: "getScrollHeight",
450
+ value: function() {
451
+ return this.view ? this.view.scrollHeight : 0;
452
+ }
453
+ }, {
454
+ key: "getClientWidth",
455
+ value: function() {
456
+ return this.view ? this.view.clientWidth : 0;
457
+ }
458
+ }, {
459
+ key: "getClientHeight",
460
+ value: function() {
461
+ return this.view ? this.view.clientHeight : 0;
462
+ }
463
+ }, {
464
+ key: "getValues",
465
+ value: function() {
466
+ var r = this.view || {}, a = r.scrollLeft, s = a === void 0 ? 0 : a, h = r.scrollTop, t = h === void 0 ? 0 : h, p = r.scrollWidth, T = p === void 0 ? 0 : p, S = r.scrollHeight, N = S === void 0 ? 0 : S, L = r.clientWidth, R = L === void 0 ? 0 : L, M = r.clientHeight, z = M === void 0 ? 0 : M;
467
+ return {
468
+ left: s / (T - R) || 0,
469
+ top: t / (N - z) || 0,
470
+ scrollLeft: s,
471
+ scrollTop: t,
472
+ scrollWidth: T,
473
+ scrollHeight: N,
474
+ clientWidth: R,
475
+ clientHeight: z
476
+ };
477
+ }
478
+ }, {
479
+ key: "getThumbHorizontalWidth",
480
+ value: function() {
481
+ var r = this.props, a = r.thumbSize, s = r.thumbMinSize, h = this.view, t = h.scrollWidth, p = h.clientWidth, T = (0, fe.default)(this.trackHorizontal), S = Math.ceil(p / t * T);
482
+ return T === S ? 0 : a || Math.max(S, s);
483
+ }
484
+ }, {
485
+ key: "getThumbVerticalHeight",
486
+ value: function() {
487
+ var r = this.props, a = r.thumbSize, s = r.thumbMinSize, h = this.view, t = h.scrollHeight, p = h.clientHeight, T = (0, me.default)(this.trackVertical), S = Math.ceil(p / t * T);
488
+ return T === S ? 0 : a || Math.max(S, s);
489
+ }
490
+ }, {
491
+ key: "getScrollLeftForOffset",
492
+ value: function(r) {
493
+ var a = this.view, s = a.scrollWidth, h = a.clientWidth, t = (0, fe.default)(this.trackHorizontal), p = this.getThumbHorizontalWidth();
494
+ return r / (t - p) * (s - h);
495
+ }
496
+ }, {
497
+ key: "getScrollTopForOffset",
498
+ value: function(r) {
499
+ var a = this.view, s = a.scrollHeight, h = a.clientHeight, t = (0, me.default)(this.trackVertical), p = this.getThumbVerticalHeight();
500
+ return r / (t - p) * (s - h);
501
+ }
502
+ }, {
503
+ key: "scrollLeft",
504
+ value: function() {
505
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
506
+ this.view && (this.view.scrollLeft = r);
507
+ }
508
+ }, {
509
+ key: "scrollTop",
510
+ value: function() {
511
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
512
+ this.view && (this.view.scrollTop = r);
513
+ }
514
+ }, {
515
+ key: "scrollToLeft",
516
+ value: function() {
517
+ this.view && (this.view.scrollLeft = 0);
518
+ }
519
+ }, {
520
+ key: "scrollToTop",
521
+ value: function() {
522
+ this.view && (this.view.scrollTop = 0);
523
+ }
524
+ }, {
525
+ key: "scrollToRight",
526
+ value: function() {
527
+ this.view && (this.view.scrollLeft = this.view.scrollWidth);
528
+ }
529
+ }, {
530
+ key: "scrollToBottom",
531
+ value: function() {
532
+ this.view && (this.view.scrollTop = this.view.scrollHeight);
533
+ }
534
+ }, {
535
+ key: "addListeners",
536
+ value: function() {
537
+ if (!(typeof document > "u" || !this.view)) {
538
+ var r = this.view, a = this.trackHorizontal, s = this.trackVertical, h = this.thumbHorizontal, t = this.thumbVertical;
539
+ r.addEventListener("scroll", this.handleScroll), (0, b.default)() && (a.addEventListener("mouseenter", this.handleTrackMouseEnter), a.addEventListener("mouseleave", this.handleTrackMouseLeave), a.addEventListener("mousedown", this.handleHorizontalTrackMouseDown), s.addEventListener("mouseenter", this.handleTrackMouseEnter), s.addEventListener("mouseleave", this.handleTrackMouseLeave), s.addEventListener("mousedown", this.handleVerticalTrackMouseDown), h.addEventListener("mousedown", this.handleHorizontalThumbMouseDown), t.addEventListener("mousedown", this.handleVerticalThumbMouseDown), window.addEventListener("resize", this.handleWindowResize));
540
+ }
541
+ }
542
+ }, {
543
+ key: "removeListeners",
544
+ value: function() {
545
+ if (!(typeof document > "u" || !this.view)) {
546
+ var r = this.view, a = this.trackHorizontal, s = this.trackVertical, h = this.thumbHorizontal, t = this.thumbVertical;
547
+ r.removeEventListener("scroll", this.handleScroll), (0, b.default)() && (a.removeEventListener("mouseenter", this.handleTrackMouseEnter), a.removeEventListener("mouseleave", this.handleTrackMouseLeave), a.removeEventListener("mousedown", this.handleHorizontalTrackMouseDown), s.removeEventListener("mouseenter", this.handleTrackMouseEnter), s.removeEventListener("mouseleave", this.handleTrackMouseLeave), s.removeEventListener("mousedown", this.handleVerticalTrackMouseDown), h.removeEventListener("mousedown", this.handleHorizontalThumbMouseDown), t.removeEventListener("mousedown", this.handleVerticalThumbMouseDown), window.removeEventListener("resize", this.handleWindowResize), this.teardownDragging());
548
+ }
549
+ }
550
+ }, {
551
+ key: "handleScroll",
552
+ value: function(r) {
553
+ var a = this, s = this.props, h = s.onScroll, t = s.onScrollFrame;
554
+ h && h(r), this.update(function(p) {
555
+ var T = p.scrollLeft, S = p.scrollTop;
556
+ a.viewScrollLeft = T, a.viewScrollTop = S, t && t(p);
557
+ }), this.detectScrolling();
558
+ }
559
+ }, {
560
+ key: "handleScrollStart",
561
+ value: function() {
562
+ var r = this.props.onScrollStart;
563
+ r && r(), this.handleScrollStartAutoHide();
564
+ }
565
+ }, {
566
+ key: "handleScrollStartAutoHide",
567
+ value: function() {
568
+ var r = this.props.autoHide;
569
+ r && this.showTracks();
570
+ }
571
+ }, {
572
+ key: "handleScrollStop",
573
+ value: function() {
574
+ var r = this.props.onScrollStop;
575
+ r && r(), this.handleScrollStopAutoHide();
576
+ }
577
+ }, {
578
+ key: "handleScrollStopAutoHide",
579
+ value: function() {
580
+ var r = this.props.autoHide;
581
+ r && this.hideTracks();
582
+ }
583
+ }, {
584
+ key: "handleWindowResize",
585
+ value: function() {
586
+ this.update();
587
+ }
588
+ }, {
589
+ key: "handleHorizontalTrackMouseDown",
590
+ value: function(r) {
591
+ r.preventDefault();
592
+ var a = r.target, s = r.clientX, h = a.getBoundingClientRect(), t = h.left, p = this.getThumbHorizontalWidth(), T = Math.abs(t - s) - p / 2;
593
+ this.view.scrollLeft = this.getScrollLeftForOffset(T);
594
+ }
595
+ }, {
596
+ key: "handleVerticalTrackMouseDown",
597
+ value: function(r) {
598
+ r.preventDefault();
599
+ var a = r.target, s = r.clientY, h = a.getBoundingClientRect(), t = h.top, p = this.getThumbVerticalHeight(), T = Math.abs(t - s) - p / 2;
600
+ this.view.scrollTop = this.getScrollTopForOffset(T);
601
+ }
602
+ }, {
603
+ key: "handleHorizontalThumbMouseDown",
604
+ value: function(r) {
605
+ r.preventDefault(), this.handleDragStart(r);
606
+ var a = r.target, s = r.clientX, h = a.offsetWidth, t = a.getBoundingClientRect(), p = t.left;
607
+ this.prevPageX = h - (s - p);
608
+ }
609
+ }, {
610
+ key: "handleVerticalThumbMouseDown",
611
+ value: function(r) {
612
+ r.preventDefault(), this.handleDragStart(r);
613
+ var a = r.target, s = r.clientY, h = a.offsetHeight, t = a.getBoundingClientRect(), p = t.top;
614
+ this.prevPageY = h - (s - p);
615
+ }
616
+ }, {
617
+ key: "setupDragging",
618
+ value: function() {
619
+ (0, d.default)(document.body, w.disableSelectStyle), document.addEventListener("mousemove", this.handleDrag), document.addEventListener("mouseup", this.handleDragEnd), document.onselectstart = U.default;
620
+ }
621
+ }, {
622
+ key: "teardownDragging",
623
+ value: function() {
624
+ (0, d.default)(document.body, w.disableSelectStyleReset), document.removeEventListener("mousemove", this.handleDrag), document.removeEventListener("mouseup", this.handleDragEnd), document.onselectstart = void 0;
625
+ }
626
+ }, {
627
+ key: "handleDragStart",
628
+ value: function(r) {
629
+ this.dragging = !0, r.stopImmediatePropagation(), this.setupDragging();
630
+ }
631
+ }, {
632
+ key: "handleDrag",
633
+ value: function(r) {
634
+ if (this.prevPageX) {
635
+ var a = r.clientX, s = this.trackHorizontal.getBoundingClientRect(), h = s.left, t = this.getThumbHorizontalWidth(), p = t - this.prevPageX, T = -h + a - p;
636
+ this.view.scrollLeft = this.getScrollLeftForOffset(T);
637
+ }
638
+ if (this.prevPageY) {
639
+ var S = r.clientY, N = this.trackVertical.getBoundingClientRect(), L = N.top, R = this.getThumbVerticalHeight(), M = R - this.prevPageY, z = -L + S - M;
640
+ this.view.scrollTop = this.getScrollTopForOffset(z);
641
+ }
642
+ return !1;
643
+ }
644
+ }, {
645
+ key: "handleDragEnd",
646
+ value: function() {
647
+ this.dragging = !1, this.prevPageX = this.prevPageY = 0, this.teardownDragging(), this.handleDragEndAutoHide();
648
+ }
649
+ }, {
650
+ key: "handleDragEndAutoHide",
651
+ value: function() {
652
+ var r = this.props.autoHide;
653
+ r && this.hideTracks();
654
+ }
655
+ }, {
656
+ key: "handleTrackMouseEnter",
657
+ value: function() {
658
+ this.trackMouseOver = !0, this.handleTrackMouseEnterAutoHide();
659
+ }
660
+ }, {
661
+ key: "handleTrackMouseEnterAutoHide",
662
+ value: function() {
663
+ var r = this.props.autoHide;
664
+ r && this.showTracks();
665
+ }
666
+ }, {
667
+ key: "handleTrackMouseLeave",
668
+ value: function() {
669
+ this.trackMouseOver = !1, this.handleTrackMouseLeaveAutoHide();
670
+ }
671
+ }, {
672
+ key: "handleTrackMouseLeaveAutoHide",
673
+ value: function() {
674
+ var r = this.props.autoHide;
675
+ r && this.hideTracks();
676
+ }
677
+ }, {
678
+ key: "showTracks",
679
+ value: function() {
680
+ clearTimeout(this.hideTracksTimeout), (0, d.default)(this.trackHorizontal, { opacity: 1 }), (0, d.default)(this.trackVertical, { opacity: 1 });
681
+ }
682
+ }, {
683
+ key: "hideTracks",
684
+ value: function() {
685
+ var r = this;
686
+ if (!this.dragging && !this.scrolling && !this.trackMouseOver) {
687
+ var a = this.props.autoHideTimeout;
688
+ clearTimeout(this.hideTracksTimeout), this.hideTracksTimeout = setTimeout(function() {
689
+ (0, d.default)(r.trackHorizontal, { opacity: 0 }), (0, d.default)(r.trackVertical, { opacity: 0 });
690
+ }, a);
691
+ }
692
+ }
693
+ }, {
694
+ key: "detectScrolling",
695
+ value: function() {
696
+ var r = this;
697
+ this.scrolling || (this.scrolling = !0, this.handleScrollStart(), this.detectScrollingInterval = setInterval(function() {
698
+ r.lastViewScrollLeft === r.viewScrollLeft && r.lastViewScrollTop === r.viewScrollTop && (clearInterval(r.detectScrollingInterval), r.scrolling = !1, r.handleScrollStop()), r.lastViewScrollLeft = r.viewScrollLeft, r.lastViewScrollTop = r.viewScrollTop;
699
+ }, 100));
700
+ }
701
+ }, {
702
+ key: "raf",
703
+ value: function(r) {
704
+ var a = this;
705
+ this.requestFrame && u.default.cancel(this.requestFrame), this.requestFrame = (0, u.default)(function() {
706
+ a.requestFrame = void 0, r();
707
+ });
708
+ }
709
+ }, {
710
+ key: "update",
711
+ value: function(r) {
712
+ var a = this;
713
+ this.raf(function() {
714
+ return a._update(r);
715
+ });
716
+ }
717
+ }, {
718
+ key: "_update",
719
+ value: function(r) {
720
+ var a = this.props, s = a.onUpdate, h = a.hideTracksWhenNotNeeded, t = this.getValues();
721
+ if ((0, b.default)()) {
722
+ var p = t.scrollLeft, T = t.clientWidth, S = t.scrollWidth, N = (0, fe.default)(this.trackHorizontal), L = this.getThumbHorizontalWidth(), R = p / (S - T) * (N - L), M = {
723
+ width: L,
724
+ transform: "translateX(" + R + "px)"
725
+ }, z = t.scrollTop, P = t.clientHeight, A = t.scrollHeight, pe = (0, me.default)(this.trackVertical), ne = this.getThumbVerticalHeight(), ge = z / (A - P) * (pe - ne), G = {
726
+ height: ne,
727
+ transform: "translateY(" + ge + "px)"
728
+ };
729
+ if (h) {
730
+ var be = {
731
+ visibility: S > T ? "visible" : "hidden"
732
+ }, Te = {
733
+ visibility: A > P ? "visible" : "hidden"
734
+ };
735
+ (0, d.default)(this.trackHorizontal, be), (0, d.default)(this.trackVertical, Te);
736
+ }
737
+ (0, d.default)(this.thumbHorizontal, M), (0, d.default)(this.thumbVertical, G);
738
+ }
739
+ s && s(t), typeof r == "function" && r(t);
740
+ }
741
+ }, {
742
+ key: "render",
743
+ value: function() {
744
+ var r = this, a = (0, b.default)(), s = this.props;
745
+ s.onScroll, s.onScrollFrame, s.onScrollStart, s.onScrollStop, s.onUpdate;
746
+ var h = s.renderView, t = s.renderTrackHorizontal, p = s.renderTrackVertical, T = s.renderThumbHorizontal, S = s.renderThumbVertical, N = s.tagName;
747
+ s.hideTracksWhenNotNeeded;
748
+ var L = s.autoHide;
749
+ s.autoHideTimeout;
750
+ var R = s.autoHideDuration;
751
+ s.thumbSize, s.thumbMinSize;
752
+ var M = s.universal, z = s.autoHeight, P = s.autoHeightMin, A = s.autoHeightMax, pe = s.style, ne = s.children, ge = Xe(s, ["onScroll", "onScrollFrame", "onScrollStart", "onScrollStop", "onUpdate", "renderView", "renderTrackHorizontal", "renderTrackVertical", "renderThumbHorizontal", "renderThumbVertical", "tagName", "hideTracksWhenNotNeeded", "autoHide", "autoHideTimeout", "autoHideDuration", "thumbSize", "thumbMinSize", "universal", "autoHeight", "autoHeightMin", "autoHeightMax", "style", "children"]), G = this.state.didMountUniversal, be = o({}, w.containerStyleDefault, z && o({}, w.containerStyleAutoHeight, {
753
+ minHeight: P,
754
+ maxHeight: A
755
+ }), pe), Te = o({}, w.viewStyleDefault, {
756
+ // Hide scrollbars by setting a negative margin
757
+ marginRight: a ? -a : 0,
758
+ marginBottom: a ? -a : 0
759
+ }, z && o({}, w.viewStyleAutoHeight, {
760
+ // Add scrollbarWidth to autoHeight in order to compensate negative margins
761
+ minHeight: (0, V.default)(P) ? "calc(" + P + " + " + a + "px)" : P + a,
762
+ maxHeight: (0, V.default)(A) ? "calc(" + A + " + " + a + "px)" : A + a
763
+ }), z && M && !G && {
764
+ minHeight: P,
765
+ maxHeight: A
766
+ }, M && !G && w.viewStyleUniversalInitial), we = {
767
+ transition: "opacity " + R + "ms",
768
+ opacity: 0
769
+ }, qe = o({}, w.trackHorizontalStyleDefault, L && we, (!a || M && !G) && {
770
+ display: "none"
771
+ }), je = o({}, w.trackVerticalStyleDefault, L && we, (!a || M && !G) && {
772
+ display: "none"
773
+ });
774
+ return (0, y.createElement)(N, o({}, ge, { style: be, ref: function(C) {
775
+ r.container = C;
776
+ } }), [(0, y.cloneElement)(h({ style: Te }), { key: "view", ref: function(C) {
777
+ r.view = C;
778
+ } }, ne), (0, y.cloneElement)(t({ style: qe }), { key: "trackHorizontal", ref: function(C) {
779
+ r.trackHorizontal = C;
780
+ } }, (0, y.cloneElement)(T({ style: w.thumbHorizontalStyleDefault }), { ref: function(C) {
781
+ r.thumbHorizontal = C;
782
+ } })), (0, y.cloneElement)(p({ style: je }), { key: "trackVertical", ref: function(C) {
783
+ r.trackVertical = C;
784
+ } }, (0, y.cloneElement)(S({ style: w.thumbVerticalStyleDefault }), { ref: function(C) {
785
+ r.thumbVertical = C;
786
+ } }))]);
787
+ }
788
+ }]), m;
789
+ }(y.Component);
790
+ n.default = ve, ve.propTypes = {
791
+ onScroll: f.default.func,
792
+ onScrollFrame: f.default.func,
793
+ onScrollStart: f.default.func,
794
+ onScrollStop: f.default.func,
795
+ onUpdate: f.default.func,
796
+ renderView: f.default.func,
797
+ renderTrackHorizontal: f.default.func,
798
+ renderTrackVertical: f.default.func,
799
+ renderThumbHorizontal: f.default.func,
800
+ renderThumbVertical: f.default.func,
801
+ tagName: f.default.string,
802
+ thumbSize: f.default.number,
803
+ thumbMinSize: f.default.number,
804
+ hideTracksWhenNotNeeded: f.default.bool,
805
+ autoHide: f.default.bool,
806
+ autoHideTimeout: f.default.number,
807
+ autoHideDuration: f.default.number,
808
+ autoHeight: f.default.bool,
809
+ autoHeightMin: f.default.oneOfType([f.default.number, f.default.string]),
810
+ autoHeightMax: f.default.oneOfType([f.default.number, f.default.string]),
811
+ universal: f.default.bool,
812
+ style: f.default.object,
813
+ children: f.default.node
814
+ }, ve.defaultProps = {
815
+ renderView: Z.renderViewDefault,
816
+ renderTrackHorizontal: Z.renderTrackHorizontalDefault,
817
+ renderTrackVertical: Z.renderTrackVerticalDefault,
818
+ renderThumbHorizontal: Z.renderThumbHorizontalDefault,
819
+ renderThumbVertical: Z.renderThumbVerticalDefault,
820
+ tagName: "div",
821
+ thumbMinSize: 30,
822
+ hideTracksWhenNotNeeded: !1,
823
+ autoHide: !1,
824
+ autoHideTimeout: 1e3,
825
+ autoHideDuration: 200,
826
+ autoHeight: !1,
827
+ autoHeightMin: 0,
828
+ autoHeightMax: 200,
829
+ universal: !1
830
+ };
831
+ })(Oe);
832
+ (function(n) {
833
+ Object.defineProperty(n, "__esModule", {
834
+ value: !0
835
+ }), n.Scrollbars = void 0;
836
+ var o = Oe, e = i(o);
837
+ function i(u) {
838
+ return u && u.__esModule ? u : { default: u };
839
+ }
840
+ n.default = e.default, n.Scrollbars = e.default;
841
+ })(Ie);
842
+ const xt = "Menu-module__container___KGp0N", Nt = "Menu-module__disabled___xdT-F", Rt = "Menu-module__groupHeader___-d7MT", Pt = "Menu-module__isDrill___6OfQP", At = "Menu-module__separator___OQ--M", Bt = "Menu-module__noIcon___MYkPf", Ft = "Menu-module__item___nmDUr", Ut = "Menu-module__checked___6OJEB", Xt = "Menu-module__radio___OlxcQ", $t = "Menu-module__checkbox___HocC7", Yt = "Menu-module__icon___ZxKUL", Gt = "Menu-module__itemType___VLiEZ", qt = "Menu-module__nestedType___gayzp", jt = "Menu-module__nestedIcon___VyPyZ", Zt = "Menu-module__menuItemText___agoSf", Qt = "Menu-module__separateGroup___0J5WE", Jt = "Menu-module__itemCheckBox___2DHy4", Kt = "Menu-module__itemRadioButton___h2ifs", er = "Menu-module__scrollbar___li1b-", tr = "Menu-module__itemContainer___m0XPy", rr = "Menu-module__inlineConfirmation___0JCIX", nr = "Menu-module__menuItemTooltip___5jA0S", or = "Menu-module__toggleButtonMenu___qwLCQ", ir = "Menu-module__loader___pzNnL", _ = {
843
+ container: xt,
844
+ disabled: Nt,
845
+ groupHeader: Rt,
846
+ isDrill: Pt,
847
+ separator: At,
848
+ noIcon: Bt,
849
+ item: Ft,
850
+ checked: Ut,
851
+ radio: Xt,
852
+ checkbox: $t,
853
+ icon: Yt,
854
+ itemType: Gt,
855
+ nestedType: qt,
856
+ nestedIcon: jt,
857
+ menuItemText: Zt,
858
+ separateGroup: Qt,
859
+ itemCheckBox: Jt,
860
+ itemRadioButton: Kt,
861
+ scrollbar: er,
862
+ itemContainer: tr,
863
+ inlineConfirmation: rr,
864
+ menuItemTooltip: nr,
865
+ toggleButtonMenu: or,
866
+ loader: ir
867
+ }, ae = Object.freeze({
868
+ ITEM: "item",
869
+ RADIO: "radio",
870
+ CHECKBOX: "checkbox",
871
+ TOGGLE: "toggle",
872
+ NESTED: "nested"
873
+ }), He = class He extends ze {
874
+ constructor(o) {
875
+ super(o), this.renderRegularMenuItem = () => {
876
+ const { dataTestId: e, iconName: i, iconClass: u, isDrill: c } = this.props;
877
+ return /* @__PURE__ */ $("span", { className: _.itemContainer, children: [
878
+ i && /* @__PURE__ */ v(oe, { name: i, className: u }),
879
+ /* @__PURE__ */ v(
880
+ "span",
881
+ {
882
+ "data-testid": e,
883
+ className: D(_.menuItemText, K.TEXT_PRIMARY),
884
+ children: this.getContent()
885
+ }
886
+ ),
887
+ c && /* @__PURE__ */ v(oe, { name: "general-arrow-right" })
888
+ ] });
889
+ }, this.renderMenuItem = () => {
890
+ const { tooltip: e, classNameTooltip: i, level: u } = this.props, c = this.renderRegularMenuItem();
891
+ return e ? /* @__PURE__ */ v(
892
+ tt,
893
+ {
894
+ overlay: /* @__PURE__ */ v("div", { children: e }),
895
+ placement: "right",
896
+ overlayClassName: D(i, _.menuItemTooltip),
897
+ mouseLeaveDelay: 0,
898
+ align: { offset: [u ? 5 : 10, 0] },
899
+ children: c
900
+ }
901
+ ) : c;
902
+ }, this.state = { inInlineConfirmation: !1 };
903
+ }
904
+ getContent() {
905
+ const { type: o, caption: e, subCaption: i, checked: u, selected: c } = this.props;
906
+ switch (o) {
907
+ case ae.RADIO:
908
+ return /* @__PURE__ */ v(
909
+ Je,
910
+ {
911
+ text: e,
912
+ name: e,
913
+ onChange: () => null,
914
+ value: e,
915
+ checked: !!u,
916
+ preventClick: !0
917
+ }
918
+ );
919
+ case ae.CHECKBOX:
920
+ return /* @__PURE__ */ v(
921
+ et,
922
+ {
923
+ title: e,
924
+ text: e,
925
+ onChange: () => null,
926
+ checked: !!u,
927
+ className: _.itemCheckBox
928
+ }
929
+ );
930
+ case ae.TOGGLE:
931
+ return /* @__PURE__ */ $("div", { children: [
932
+ /* @__PURE__ */ v("span", { children: e }),
933
+ /* @__PURE__ */ v(
934
+ Ke,
935
+ {
936
+ onChange: () => null,
937
+ className: _.toggleButtonMenu,
938
+ checked: !!u
939
+ }
940
+ )
941
+ ] });
942
+ case ae.NESTED:
943
+ return /* @__PURE__ */ $("div", { className: _.nestedType, children: [
944
+ /* @__PURE__ */ v("div", { children: e }),
945
+ /* @__PURE__ */ v(oe, { className: _.nestedIcon, name: "general-double-arrow-front" }),
946
+ /* @__PURE__ */ v("div", { children: i })
947
+ ] });
948
+ default:
949
+ return /* @__PURE__ */ $("div", { className: _.itemType, children: [
950
+ e,
951
+ c && /* @__PURE__ */ v(oe, { name: "general-vi-small-white" })
952
+ ] });
953
+ }
954
+ }
955
+ handleClick(o) {
956
+ o.stopPropagation();
957
+ const { handleClick: e, disabled: i } = this.props;
958
+ i || e();
959
+ }
960
+ render() {
961
+ const { checked: o, className: e, iconName: i, handleOver: u, handleOut: c, disabled: d } = this.props, y = !1, E = D(e, {
962
+ [_.checked]: o,
963
+ [_.noIcon]: !i || y,
964
+ [_.disabled]: d,
965
+ [K.TEXT_PRIMARY]: o,
966
+ [K.TEXT_SECONDARY_HOVER]: !o && !d,
967
+ [K.TEXT_SECONDARY]: d
968
+ });
969
+ return /* @__PURE__ */ v(
970
+ "li",
971
+ {
972
+ "data-menu-item": !0,
973
+ className: E,
974
+ onClick: this.handleClick.bind(this),
975
+ onMouseOver: u,
976
+ onMouseOut: c,
977
+ children: this.renderMenuItem()
978
+ }
979
+ );
980
+ }
981
+ };
982
+ He.defaultProps = {
983
+ className: ""
984
+ };
985
+ let ke = He;
986
+ const ar = "Confirmation-module__container___45eSd", lr = "Confirmation-module__message___4r1SC", sr = "Confirmation-module__buttons___QYVqm", ur = "Confirmation-module__button___gJmIL", cr = "Confirmation-module__confirm___DqtMv", dr = "Confirmation-module__cancel___3CIW9", B = {
987
+ container: ar,
988
+ message: lr,
989
+ buttons: sr,
990
+ button: ur,
991
+ confirm: cr,
992
+ cancel: dr
993
+ }, hr = ({
994
+ message: n,
995
+ title: o,
996
+ onCancel: e,
997
+ onConfirm: i
998
+ }) => {
999
+ const u = D(B.button, B.confirm), c = D(B.button, B.cancel);
1000
+ return /* @__PURE__ */ $("div", { className: B.container, children: [
1001
+ /* @__PURE__ */ v("div", { className: B.title, children: o }),
1002
+ /* @__PURE__ */ v("div", { className: D(B.message, K.TEXT_SECONDARY), children: n }),
1003
+ /* @__PURE__ */ $("div", { className: B.buttons, children: [
1004
+ /* @__PURE__ */ v("button", { className: u, onClick: i, children: "Yes" }),
1005
+ /* @__PURE__ */ v("button", { className: c, onClick: e, children: "No" })
1006
+ ] })
1007
+ ] });
1008
+ };
1009
+ function fr(n, o) {
1010
+ const e = {};
1011
+ return n.reduce(function(i, u) {
1012
+ const c = o(u);
1013
+ return i[c] || (i[c] = []), i[c].push(u), i;
1014
+ }, e);
1015
+ }
1016
+ const De = () => {
1017
+ }, ue = class ue extends ze {
1018
+ constructor(o) {
1019
+ super(o), this.handleClick = (e) => {
1020
+ if (e.subItems || e.actionableComponent) {
1021
+ this.clearTimeout(), this.state.activeSubMenu === e.id ? this.closeSubMenu() : this.setState({ activeSubMenu: e.id });
1022
+ return;
1023
+ } else if (e.confirmation && !e.confirmation.inline) {
1024
+ this.clearTimeout(), this.setState({ activeSubMenu: e.id });
1025
+ return;
1026
+ }
1027
+ const { onItemSelected: i } = this.props;
1028
+ i(e, e.value);
1029
+ }, this.handleOver = (e) => {
1030
+ this.clearTimeout(), this.setState({ isHoverSubMenu: !1 });
1031
+ const i = e.subItems || e.actionableComponent ? e.id : null;
1032
+ this.timeoutIn = window.setTimeout(() => {
1033
+ this.setState({
1034
+ activeSubMenu: i
1035
+ });
1036
+ }, 900);
1037
+ }, this.handleOut = (e) => {
1038
+ (e.subItems || e.actionableComponent) && this.state.activeSubMenu && this.clearTimeout();
1039
+ }, this.onSubMenuMouseEnter = () => {
1040
+ this.clearTimeout(), this.setState({ isHoverSubMenu: !0 });
1041
+ }, this.onSubMenuMouseLeave = () => {
1042
+ this.setState({ isHoverSubMenu: !1 });
1043
+ }, this.closeSubMenu = () => {
1044
+ this.setState({ activeSubMenu: null });
1045
+ }, this.onConfirm = (e) => {
1046
+ const { onItemSelected: i } = this.props;
1047
+ this.closeSubMenu(), i(e);
1048
+ }, this.renderMenuItem = (e) => {
1049
+ const { onItemSelected: i, onRequestClose: u, level: c, classNameTooltip: d, zIndex: y, className: E } = this.props;
1050
+ let f = D(_[e.type], {
1051
+ [_.isDrill]: e.subItems,
1052
+ [_.separator]: e.separator,
1053
+ fakeHover: e.checked,
1054
+ [_.groupHeader]: e.groupTitle
1055
+ });
1056
+ const W = (k) => {
1057
+ const b = D(e.iconClass, _.icon);
1058
+ return /* @__PURE__ */ v(
1059
+ ke,
1060
+ {
1061
+ className: k,
1062
+ checked: e.checked,
1063
+ dataTestId: e.dataTestId,
1064
+ disabled: e.disabled,
1065
+ type: e.type,
1066
+ caption: e.caption,
1067
+ subCaption: e.subCaption,
1068
+ tooltip: e.tooltip,
1069
+ classNameTooltip: d,
1070
+ iconName: e.iconName,
1071
+ iconClass: b,
1072
+ isDrill: !!e.subItems || !!e.actionableComponent,
1073
+ level: c,
1074
+ selected: e.selected,
1075
+ handleClick: () => this.handleClick(e),
1076
+ handleOver: () => this.handleOver(e),
1077
+ handleOut: () => this.handleOut(e)
1078
+ },
1079
+ e.id
1080
+ );
1081
+ };
1082
+ let V = e.subItems;
1083
+ if (V) {
1084
+ const k = this.state.activeSubMenu === e.id;
1085
+ let b = this.handleClick;
1086
+ return f = D(f, {
1087
+ fakeHover: k && this.state.isHoverSubMenu
1088
+ }), e.value !== void 0 && (V = V.map(function(U) {
1089
+ return {
1090
+ ...U,
1091
+ checked: U.value === e.value
1092
+ };
1093
+ }), b = (U) => i(e, U.value)), /* @__PURE__ */ v(
1094
+ _e,
1095
+ {
1096
+ visible: k,
1097
+ level: 1,
1098
+ mask: !1,
1099
+ trigger: [],
1100
+ placement: "rightTop",
1101
+ align: { offset: [0, 0] },
1102
+ overlay: () => /* @__PURE__ */ v(
1103
+ ue,
1104
+ {
1105
+ items: V || [],
1106
+ className: E,
1107
+ onItemSelected: b,
1108
+ onMouseEnter: this.onSubMenuMouseEnter,
1109
+ scrollbarProps: {
1110
+ className: e.subItemScrollbarClassName
1111
+ },
1112
+ level: (c || 0) + 1,
1113
+ zIndex: (y || 1) + 1
1114
+ }
1115
+ ),
1116
+ onRequestClose: u,
1117
+ zIndex: (y || 1) + 1,
1118
+ children: W(f)
1119
+ },
1120
+ e.id
1121
+ );
1122
+ } else if (e.actionableComponent) {
1123
+ const { componentProps: k } = e.actionableComponent, b = e.actionableComponent.component, I = this.state.activeSubMenu === e.id;
1124
+ return /* @__PURE__ */ v(
1125
+ _e,
1126
+ {
1127
+ visible: I,
1128
+ level: 1,
1129
+ mask: !1,
1130
+ trigger: [],
1131
+ placement: "rightTop",
1132
+ align: { offset: [10, 0] },
1133
+ overlay: () => /* @__PURE__ */ v(b, { ...k, onRequestClose: u }),
1134
+ onRequestClose: u,
1135
+ children: W(f)
1136
+ },
1137
+ e.id
1138
+ );
1139
+ } else if (e.confirmation && !e.confirmation.inline) {
1140
+ const k = e.confirmation, b = this.state.activeSubMenu === e.id;
1141
+ return /* @__PURE__ */ v(
1142
+ _e,
1143
+ {
1144
+ visible: b,
1145
+ level: 1,
1146
+ mask: !0,
1147
+ trigger: [],
1148
+ placement: "rightBottom",
1149
+ align: { offset: [10, 0] },
1150
+ overlay: () => /* @__PURE__ */ v(
1151
+ hr,
1152
+ {
1153
+ title: k.title,
1154
+ message: k.message,
1155
+ onCancel: this.closeSubMenu,
1156
+ onConfirm: () => this.onConfirm(e)
1157
+ }
1158
+ ),
1159
+ onRequestClose: this.closeSubMenu,
1160
+ children: W(f)
1161
+ },
1162
+ e.id
1163
+ );
1164
+ }
1165
+ return W(f);
1166
+ }, this.state = {
1167
+ activeSubMenu: null,
1168
+ isHoverSubMenu: !1
1169
+ }, this.timeoutIn = null;
1170
+ }
1171
+ componentWillUnmount() {
1172
+ this.clearTimeout();
1173
+ }
1174
+ clearTimeout() {
1175
+ this.timeoutIn && (clearTimeout(this.timeoutIn), this.timeoutIn = null);
1176
+ }
1177
+ getSeparateGroups(o) {
1178
+ const e = fr(o, (c) => c.groupId || ""), i = Object.values(e);
1179
+ return i.slice(1).forEach((c) => c[0].separator = !0), i;
1180
+ }
1181
+ render() {
1182
+ const {
1183
+ items: o,
1184
+ className: e,
1185
+ onMouseEnter: i,
1186
+ scrollbarProps: { className: u, ...c },
1187
+ width: d,
1188
+ isLoading: y
1189
+ } = this.props;
1190
+ let E = o.filter((b) => !b.hidden);
1191
+ E = E.map((b, I) => (b.separator && !E[I - 1] && (b.separator = !1), b));
1192
+ const f = D(_.container, e), W = D(_.scrollbar, u), V = d ? { width: `${d}px`, minWidth: "inherit" } : {}, k = y ? _.loader : "";
1193
+ return /* @__PURE__ */ v("div", { className: f, onMouseEnter: i, style: V, children: /* @__PURE__ */ $(Ie.Scrollbars, { className: W, ...c, hideTracksWhenNotNeeded: !0, children: [
1194
+ this.getSeparateGroups(E).map((b, I) => /* @__PURE__ */ v("div", { className: _.separateGroup, children: b.map(this.renderMenuItem) }, I)),
1195
+ /* @__PURE__ */ v("div", { className: k, children: /* @__PURE__ */ v(Qe, { isLoading: y }) })
1196
+ ] }) });
1197
+ }
1198
+ };
1199
+ ue.defaultProps = {
1200
+ onMouseEnter: De,
1201
+ onRequestClose: De,
1202
+ scrollbarProps: {},
1203
+ level: 0,
1204
+ isLoading: !1,
1205
+ zIndex: 1
1206
+ };
1207
+ let Ee = ue;
1208
+ export {
1209
+ ke as M,
1210
+ Ee as a,
1211
+ ae as i
1212
+ };