@sisense/sdk-shared-ui 1.27.1 → 1.28.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 (370) hide show
  1. package/dist/CheckableList-BLLCGCKX.cjs +1 -0
  2. package/dist/CheckableList-CC7iKnHq.js +21 -0
  3. package/dist/Checkbox-CrbGw8d7.js +513 -0
  4. package/dist/Checkbox-Dy9BTXfS.cjs +1 -0
  5. package/dist/DEPRECATED_Button-D2XS1y1r.cjs +1 -0
  6. package/dist/DEPRECATED_Button-m2ifXo3Q.js +87 -0
  7. package/dist/DEPRECATED_Checkbox-CYomxatm.cjs +1 -0
  8. package/dist/DEPRECATED_Checkbox-DWtXr5K7.js +63 -0
  9. package/dist/DEPRECATED_Icon-BQ4AqiI1.js +56 -0
  10. package/dist/DEPRECATED_Icon-iUszZb09.cjs +1 -0
  11. package/dist/DEPRECATED_Toggle-DMnlQO3F.js +30 -0
  12. package/dist/DEPRECATED_Toggle-Dp0ZZ_6E.cjs +1 -0
  13. package/dist/DEPRECATED_Tooltip-C2bU8ipb.js +2316 -0
  14. package/dist/DEPRECATED_Tooltip-D3ReAkFF.cjs +27 -0
  15. package/dist/Dropdown-BtZZ4fY6.cjs +1 -0
  16. package/dist/Dropdown-BxoUPsca.js +231 -0
  17. package/dist/Icon-B1V-T6UH.cjs +1 -0
  18. package/dist/Icon-Cs6oGRgo.js +110 -0
  19. package/dist/Input-BghWSV2Z.js +119 -0
  20. package/dist/Input-Cd6a2FUC.cjs +1 -0
  21. package/dist/LazyLoader-DB86QSSx.js +18 -0
  22. package/dist/LazyLoader-gOLNhxc-.cjs +1 -0
  23. package/dist/Menu-BfAQOpHl.cjs +1 -0
  24. package/dist/Menu-C5wQnuq6.js +1212 -0
  25. package/dist/Popover-0n4kd3ut.js +49 -0
  26. package/dist/Popover-Bp5g_ws9.cjs +1 -0
  27. package/dist/RadioButton-BpAksn2s.js +70 -0
  28. package/dist/RadioButton-Ds-0wj0r.cjs +1 -0
  29. package/dist/SvgIcon-LwOuESoH.js +238 -0
  30. package/dist/SvgIcon-SnObJHZS.cjs +1 -0
  31. package/dist/TablePagination-B8I5QURH.js +7929 -0
  32. package/dist/TablePagination-DH0TZ21v.cjs +31 -0
  33. package/dist/ThemeProvider-aq1EWT1u.js +5041 -0
  34. package/dist/ThemeProvider-sqppyE-5.cjs +114 -0
  35. package/dist/Tooltip-Dokek6y8.cjs +7 -0
  36. package/dist/Tooltip-vVc6Lxew.js +2153 -0
  37. package/dist/TransitionGroupContext-BlR3HYBG.cjs +4 -0
  38. package/dist/TransitionGroupContext-Ci_clMyv.js +120 -0
  39. package/dist/Typography-C891hjk2.js +497 -0
  40. package/dist/Typography-vldQClJj.cjs +1 -0
  41. package/dist/align.interface-B17uA473.cjs +1 -0
  42. package/dist/align.interface-DdWsijrT.js +4 -0
  43. package/dist/assertThisInitialized-BSnhOY1M.cjs +1 -0
  44. package/dist/assertThisInitialized-lz6cHcRv.js +8 -0
  45. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  46. package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
  47. package/dist/createSvgIcon-CXJWSg3i.js +902 -0
  48. package/dist/createSvgIcon-DF4qzIJY.cjs +74 -0
  49. package/dist/extends-DX42hfxm.js +13 -0
  50. package/dist/extends-q0Hkx4pQ.cjs +1 -0
  51. package/dist/index-B-zZeebW.cjs +20 -0
  52. package/dist/index-D0lMis-I.js +667 -0
  53. package/dist/index.cjs +1 -0
  54. package/dist/index.d.ts +2 -0
  55. package/dist/index.d.ts.map +1 -0
  56. package/dist/lib/CheckableList/CheckableList.cjs +1 -0
  57. package/dist/lib/CheckableList/CheckableList.d.ts +16 -0
  58. package/dist/lib/CheckableList/CheckableList.d.ts.map +1 -0
  59. package/dist/lib/CheckableList/CheckableList.js +5 -0
  60. package/dist/lib/CheckableList/index.d.ts +4 -0
  61. package/dist/lib/CheckableList/index.d.ts.map +1 -0
  62. package/dist/lib/Checkbox/Checkbox.cjs +1 -0
  63. package/dist/lib/Checkbox/Checkbox.d.ts +20 -0
  64. package/dist/lib/Checkbox/Checkbox.d.ts.map +1 -0
  65. package/dist/lib/Checkbox/Checkbox.js +5 -0
  66. package/dist/lib/Checkbox/index.d.ts +4 -0
  67. package/dist/lib/Checkbox/index.d.ts.map +1 -0
  68. package/dist/lib/Checkbox/themes/checkboxTheme.d.ts +12 -0
  69. package/dist/lib/Checkbox/themes/checkboxTheme.d.ts.map +1 -0
  70. package/{src/lib/Checkbox/themes/index.ts → dist/lib/Checkbox/themes/index.d.ts} +1 -0
  71. package/dist/lib/Checkbox/themes/index.d.ts.map +1 -0
  72. package/dist/lib/Checkbox/themes/uiCustomization.d.ts +12 -0
  73. package/dist/lib/Checkbox/themes/uiCustomization.d.ts.map +1 -0
  74. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -0
  75. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +43 -0
  76. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -0
  77. package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.js +5 -0
  78. package/dist/lib/DEPRECATED_Button/index.d.ts +4 -0
  79. package/dist/lib/DEPRECATED_Button/index.d.ts.map +1 -0
  80. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -0
  81. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts +20 -0
  82. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -0
  83. package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +5 -0
  84. package/dist/lib/DEPRECATED_Checkbox/index.d.ts +4 -0
  85. package/dist/lib/DEPRECATED_Checkbox/index.d.ts.map +1 -0
  86. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -0
  87. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts +17 -0
  88. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -0
  89. package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +5 -0
  90. package/dist/lib/DEPRECATED_Icon/index.d.ts +4 -0
  91. package/dist/lib/DEPRECATED_Icon/index.d.ts.map +1 -0
  92. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.cjs +1 -0
  93. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts +13 -0
  94. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -0
  95. package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.js +5 -0
  96. package/dist/lib/DEPRECATED_Toggle/index.d.ts +4 -0
  97. package/dist/lib/DEPRECATED_Toggle/index.d.ts.map +1 -0
  98. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -0
  99. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +15 -0
  100. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -0
  101. package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +5 -0
  102. package/dist/lib/DEPRECATED_Tooltip/index.d.ts +4 -0
  103. package/dist/lib/DEPRECATED_Tooltip/index.d.ts.map +1 -0
  104. package/dist/lib/Dropdown/Dropdown.cjs +1 -0
  105. package/dist/lib/Dropdown/Dropdown.d.ts +32 -0
  106. package/dist/lib/Dropdown/Dropdown.d.ts.map +1 -0
  107. package/dist/lib/Dropdown/Dropdown.js +5 -0
  108. package/dist/lib/Dropdown/DropdownButton/DropdownButton.d.ts +18 -0
  109. package/dist/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -0
  110. package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts +12 -0
  111. package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts.map +1 -0
  112. package/{src/lib/Dropdown/DropdownButton/DropdownButtonBody/index.ts → dist/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts} +1 -0
  113. package/dist/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts.map +1 -0
  114. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts +10 -0
  115. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -0
  116. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts +2 -0
  117. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts.map +1 -0
  118. package/{src/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.ts → dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts} +1 -0
  119. package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts.map +1 -0
  120. package/{src/lib/Dropdown/DropdownButton/hooks/index.tsx → dist/lib/Dropdown/DropdownButton/hooks/index.d.ts} +1 -0
  121. package/dist/lib/Dropdown/DropdownButton/hooks/index.d.ts.map +1 -0
  122. package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +15 -0
  123. package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -0
  124. package/{src/lib/Dropdown/DropdownButton/index.ts → dist/lib/Dropdown/DropdownButton/index.d.ts} +1 -0
  125. package/dist/lib/Dropdown/DropdownButton/index.d.ts.map +1 -0
  126. package/{src/lib/Dropdown/hooks/index.tsx → dist/lib/Dropdown/hooks/index.d.ts} +1 -0
  127. package/dist/lib/Dropdown/hooks/index.d.ts.map +1 -0
  128. package/dist/lib/Dropdown/hooks/useDropdown.d.ts +9 -0
  129. package/dist/lib/Dropdown/hooks/useDropdown.d.ts.map +1 -0
  130. package/dist/lib/Dropdown/index.d.ts +5 -0
  131. package/dist/lib/Dropdown/index.d.ts.map +1 -0
  132. package/dist/lib/Dropdown/types.d.ts +12 -0
  133. package/dist/lib/Dropdown/types.d.ts.map +1 -0
  134. package/dist/lib/Icon/Icon.cjs +1 -0
  135. package/dist/lib/Icon/Icon.d.ts +13 -0
  136. package/dist/lib/Icon/Icon.d.ts.map +1 -0
  137. package/dist/lib/Icon/Icon.js +5 -0
  138. package/dist/lib/Icon/index.d.ts +4 -0
  139. package/dist/lib/Icon/index.d.ts.map +1 -0
  140. package/dist/lib/Icon/themes/iconTheme.d.ts +8 -0
  141. package/dist/lib/Icon/themes/iconTheme.d.ts.map +1 -0
  142. package/{src/lib/Icon/themes/index.ts → dist/lib/Icon/themes/index.d.ts} +1 -0
  143. package/dist/lib/Icon/themes/index.d.ts.map +1 -0
  144. package/dist/lib/Icon/themes/uiCustomization.d.ts +2 -0
  145. package/dist/lib/Icon/themes/uiCustomization.d.ts.map +1 -0
  146. package/dist/lib/Input/Input.cjs +1 -0
  147. package/dist/lib/Input/Input.d.ts +28 -0
  148. package/dist/lib/Input/Input.d.ts.map +1 -0
  149. package/dist/lib/Input/Input.js +5 -0
  150. package/dist/lib/Input/index.d.ts +4 -0
  151. package/dist/lib/Input/index.d.ts.map +1 -0
  152. package/dist/lib/LazyLoader/LazyLoader.cjs +1 -0
  153. package/dist/lib/LazyLoader/LazyLoader.d.ts +9 -0
  154. package/dist/lib/LazyLoader/LazyLoader.d.ts.map +1 -0
  155. package/dist/lib/LazyLoader/LazyLoader.js +5 -0
  156. package/dist/lib/LazyLoader/index.d.ts +4 -0
  157. package/dist/lib/LazyLoader/index.d.ts.map +1 -0
  158. package/dist/lib/Menu/Confirmation/Confirmation.d.ts +8 -0
  159. package/dist/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -0
  160. package/{src/lib/Menu/Confirmation/index.ts → dist/lib/Menu/Confirmation/index.d.ts} +1 -0
  161. package/dist/lib/Menu/Confirmation/index.d.ts.map +1 -0
  162. package/dist/lib/Menu/Confirmation/translation.d.ts +2 -0
  163. package/dist/lib/Menu/Confirmation/translation.d.ts.map +1 -0
  164. package/dist/lib/Menu/Menu.cjs +1 -0
  165. package/dist/lib/Menu/Menu.d.ts +80 -0
  166. package/dist/lib/Menu/Menu.d.ts.map +1 -0
  167. package/dist/lib/Menu/Menu.js +8 -0
  168. package/dist/lib/Menu/MenuItem/MenuItem.d.ts +36 -0
  169. package/dist/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -0
  170. package/{src/lib/Menu/MenuItem/index.ts → dist/lib/Menu/MenuItem/index.d.ts} +1 -0
  171. package/dist/lib/Menu/MenuItem/index.d.ts.map +1 -0
  172. package/{src/lib/Menu/index.ts → dist/lib/Menu/index.d.ts} +2 -2
  173. package/dist/lib/Menu/index.d.ts.map +1 -0
  174. package/dist/lib/Menu/utils.d.ts +6 -0
  175. package/dist/lib/Menu/utils.d.ts.map +1 -0
  176. package/dist/lib/Popover/Popover.cjs +1 -0
  177. package/dist/lib/Popover/Popover.d.ts +16 -0
  178. package/dist/lib/Popover/Popover.d.ts.map +1 -0
  179. package/dist/lib/Popover/Popover.js +7 -0
  180. package/dist/lib/Popover/align.interface.d.ts +23 -0
  181. package/dist/lib/Popover/align.interface.d.ts.map +1 -0
  182. package/{src/lib/Popover/index.ts → dist/lib/Popover/index.d.ts} +2 -2
  183. package/dist/lib/Popover/index.d.ts.map +1 -0
  184. package/dist/lib/RadioButton/RadioButton.cjs +1 -0
  185. package/dist/lib/RadioButton/RadioButton.d.ts +20 -0
  186. package/dist/lib/RadioButton/RadioButton.d.ts.map +1 -0
  187. package/dist/lib/RadioButton/RadioButton.js +5 -0
  188. package/dist/lib/RadioButton/index.d.ts +4 -0
  189. package/dist/lib/RadioButton/index.d.ts.map +1 -0
  190. package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +9 -0
  191. package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -0
  192. package/dist/lib/TablePagination/PaginationActionsComponent/index.d.ts +2 -0
  193. package/dist/lib/TablePagination/PaginationActionsComponent/index.d.ts.map +1 -0
  194. package/dist/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts +2 -0
  195. package/dist/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts.map +1 -0
  196. package/dist/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts +3 -0
  197. package/dist/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -0
  198. package/dist/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts +2 -0
  199. package/dist/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts.map +1 -0
  200. package/dist/lib/TablePagination/TablePagination.cjs +1 -0
  201. package/dist/lib/TablePagination/TablePagination.d.ts +19 -0
  202. package/dist/lib/TablePagination/TablePagination.d.ts.map +1 -0
  203. package/dist/lib/TablePagination/TablePagination.js +5 -0
  204. package/dist/lib/TablePagination/TablePaginationContext.d.ts +3 -0
  205. package/dist/lib/TablePagination/TablePaginationContext.d.ts.map +1 -0
  206. package/dist/lib/TablePagination/index.d.ts +4 -0
  207. package/dist/lib/TablePagination/index.d.ts.map +1 -0
  208. package/{src/lib/TablePagination/themes/index.ts → dist/lib/TablePagination/themes/index.d.ts} +1 -0
  209. package/dist/lib/TablePagination/themes/index.d.ts.map +1 -0
  210. package/dist/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts +10 -0
  211. package/dist/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts.map +1 -0
  212. package/dist/lib/TablePagination/themes/tablePaginationTheme.d.ts +3 -0
  213. package/dist/lib/TablePagination/themes/tablePaginationTheme.d.ts.map +1 -0
  214. package/dist/lib/TablePagination/themes/uiCustomization.d.ts +2 -0
  215. package/dist/lib/TablePagination/themes/uiCustomization.d.ts.map +1 -0
  216. package/dist/lib/Tooltip/Tooltip.cjs +1 -0
  217. package/dist/lib/Tooltip/Tooltip.d.ts +10 -0
  218. package/dist/lib/Tooltip/Tooltip.d.ts.map +1 -0
  219. package/dist/lib/Tooltip/Tooltip.js +7 -0
  220. package/{src/lib/Tooltip/index.ts → dist/lib/Tooltip/index.d.ts} +2 -2
  221. package/dist/lib/Tooltip/index.d.ts.map +1 -0
  222. package/{src/lib/Tooltip/themes/index.ts → dist/lib/Tooltip/themes/index.d.ts} +1 -0
  223. package/dist/lib/Tooltip/themes/index.d.ts.map +1 -0
  224. package/dist/lib/Tooltip/themes/tooltipTheme.d.ts +3 -0
  225. package/dist/lib/Tooltip/themes/tooltipTheme.d.ts.map +1 -0
  226. package/dist/lib/Typography/Typography.cjs +1 -0
  227. package/dist/lib/Typography/Typography.d.ts +11 -0
  228. package/dist/lib/Typography/Typography.d.ts.map +1 -0
  229. package/dist/lib/Typography/Typography.js +7 -0
  230. package/{src/lib/Typography/index.ts → dist/lib/Typography/index.d.ts} +2 -2
  231. package/dist/lib/Typography/index.d.ts.map +1 -0
  232. package/{src/lib/Typography/themes/index.ts → dist/lib/Typography/themes/index.d.ts} +1 -0
  233. package/dist/lib/Typography/themes/index.d.ts.map +1 -0
  234. package/dist/lib/Typography/themes/typographyTheme.d.ts +21 -0
  235. package/dist/lib/Typography/themes/typographyTheme.d.ts.map +1 -0
  236. package/dist/lib/Typography/themes/uiCustomization.d.ts +2 -0
  237. package/dist/lib/Typography/themes/uiCustomization.d.ts.map +1 -0
  238. package/dist/lib/constants/styleguideConstants.d.ts +9 -0
  239. package/dist/lib/constants/styleguideConstants.d.ts.map +1 -0
  240. package/{src/lib/index.ts → dist/lib/index.d.ts} +1 -0
  241. package/dist/lib/index.d.ts.map +1 -0
  242. package/{src/lib/themes/colors/index.ts → dist/lib/themes/colors/index.d.ts} +1 -0
  243. package/dist/lib/themes/colors/index.d.ts.map +1 -0
  244. package/dist/lib/themes/colors/siColors.d.ts +140 -0
  245. package/dist/lib/themes/colors/siColors.d.ts.map +1 -0
  246. package/{src/lib/themes/index.ts → dist/lib/themes/index.d.ts} +1 -0
  247. package/dist/lib/themes/index.d.ts.map +1 -0
  248. package/dist/lib/themes/themes.cjs +2 -0
  249. package/dist/lib/themes/themes.js +142 -0
  250. package/dist/lib/themes/types/SisenseTheme.d.ts +12 -0
  251. package/dist/lib/themes/types/SisenseTheme.d.ts.map +1 -0
  252. package/{src/lib/themes/types/index.ts → dist/lib/themes/types/index.d.ts} +1 -0
  253. package/dist/lib/themes/types/index.d.ts.map +1 -0
  254. package/dist/package.json +208 -0
  255. package/dist/setPrototypeOf-BmHXYjK5.cjs +1 -0
  256. package/dist/setPrototypeOf-CEtRTXk2.js +19 -0
  257. package/dist/styleguideConstants-CtXkvIZK.cjs +1 -0
  258. package/dist/styleguideConstants-D4Yls16w.js +11 -0
  259. package/dist/useSlot-BfQr8KCN.js +803 -0
  260. package/dist/useSlot-C3-OaWva.cjs +1 -0
  261. package/dist/useTheme-CtIZL8WJ.js +8 -0
  262. package/dist/useTheme-DJmNR5EL.cjs +1 -0
  263. package/package.json +4 -1
  264. package/.eslintignore +0 -4
  265. package/.prettierignore +0 -11
  266. package/.storybook/main.ts +0 -44
  267. package/.storybook/preview-head.html +0 -4
  268. package/.storybook/preview.tsx +0 -34
  269. package/src/index.ts +0 -1
  270. package/src/lib/@types/sass.d.ts +0 -19
  271. package/src/lib/CheckableList/CheckableList.module.scss +0 -13
  272. package/src/lib/CheckableList/CheckableList.test.tsx +0 -61
  273. package/src/lib/CheckableList/CheckableList.tsx +0 -41
  274. package/src/lib/CheckableList/index.ts +0 -4
  275. package/src/lib/Checkbox/Checkbox.tsx +0 -28
  276. package/src/lib/Checkbox/index.ts +0 -4
  277. package/src/lib/Checkbox/themes/checkboxTheme.ts +0 -42
  278. package/src/lib/Checkbox/themes/uiCustomization.ts +0 -28
  279. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.module.scss +0 -57
  280. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.stories.tsx +0 -169
  281. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.test.tsx +0 -154
  282. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.tsx +0 -129
  283. package/src/lib/DEPRECATED_Button/index.ts +0 -4
  284. package/src/lib/DEPRECATED_Checkbox/Checkbox.module.scss +0 -49
  285. package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.test.tsx +0 -131
  286. package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.tsx +0 -103
  287. package/src/lib/DEPRECATED_Checkbox/index.ts +0 -4
  288. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.module.scss +0 -7
  289. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.stories.tsx +0 -27
  290. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.test.tsx +0 -105
  291. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.tsx +0 -91
  292. package/src/lib/DEPRECATED_Icon/index.ts +0 -4
  293. package/src/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.tsx +0 -49
  294. package/src/lib/DEPRECATED_Toggle/index.ts +0 -4
  295. package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.module.scss +0 -115
  296. package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.tsx +0 -68
  297. package/src/lib/DEPRECATED_Tooltip/index.ts +0 -4
  298. package/src/lib/Dropdown/Dropdown.module.scss +0 -9
  299. package/src/lib/Dropdown/Dropdown.tsx +0 -150
  300. package/src/lib/Dropdown/DropdownButton/DropdownButton.module.scss +0 -49
  301. package/src/lib/Dropdown/DropdownButton/DropdownButton.tsx +0 -81
  302. package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.test.tsx +0 -121
  303. package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.tsx +0 -39
  304. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.module.scss +0 -20
  305. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.tsx +0 -44
  306. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.ts +0 -1
  307. package/src/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.ts +0 -51
  308. package/src/lib/Dropdown/hooks/useDropdown.ts +0 -29
  309. package/src/lib/Dropdown/index.ts +0 -5
  310. package/src/lib/Dropdown/types.ts +0 -17
  311. package/src/lib/Icon/Icon.tsx +0 -118
  312. package/src/lib/Icon/index.ts +0 -4
  313. package/src/lib/Icon/themes/iconTheme.tsx +0 -38
  314. package/src/lib/Icon/themes/uiCustomization.ts +0 -9
  315. package/src/lib/Input/Input.module.scss +0 -97
  316. package/src/lib/Input/Input.test.tsx +0 -177
  317. package/src/lib/Input/Input.tsx +0 -134
  318. package/src/lib/Input/index.ts +0 -4
  319. package/src/lib/LazyLoader/LazyLoader.module.scss +0 -18
  320. package/src/lib/LazyLoader/LazyLoader.tsx +0 -42
  321. package/src/lib/LazyLoader/index.ts +0 -4
  322. package/src/lib/Menu/Confirmation/Confirmation.module.scss +0 -48
  323. package/src/lib/Menu/Confirmation/Confirmation.tsx +0 -45
  324. package/src/lib/Menu/Confirmation/translation.ts +0 -17
  325. package/src/lib/Menu/Menu.module.scss +0 -178
  326. package/src/lib/Menu/Menu.tsx +0 -363
  327. package/src/lib/Menu/MenuItem/MenuItem.test.tsx +0 -241
  328. package/src/lib/Menu/MenuItem/MenuItem.tsx +0 -186
  329. package/src/lib/Menu/utils.ts +0 -13
  330. package/src/lib/Popover/Popover.module.scss +0 -15
  331. package/src/lib/Popover/Popover.tsx +0 -92
  332. package/src/lib/Popover/align.interface.ts +0 -20
  333. package/src/lib/RadioButton/RadioButton.module.scss +0 -22
  334. package/src/lib/RadioButton/RadioButton.tsx +0 -89
  335. package/src/lib/RadioButton/index.ts +0 -4
  336. package/src/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.tsx +0 -87
  337. package/src/lib/TablePagination/PaginationActionsComponent/index.ts +0 -4
  338. package/src/lib/TablePagination/PaginationActionsComponent/themes/index.ts +0 -4
  339. package/src/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.tsx +0 -70
  340. package/src/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.ts +0 -17
  341. package/src/lib/TablePagination/TablePagination.tsx +0 -148
  342. package/src/lib/TablePagination/TablePaginationContext.ts +0 -4
  343. package/src/lib/TablePagination/index.ts +0 -4
  344. package/src/lib/TablePagination/themes/tablePaginationResponsiveDesign.ts +0 -33
  345. package/src/lib/TablePagination/themes/tablePaginationTheme.tsx +0 -128
  346. package/src/lib/TablePagination/themes/uiCustomization.ts +0 -50
  347. package/src/lib/Tooltip/Tooltip.module.scss +0 -125
  348. package/src/lib/Tooltip/Tooltip.tsx +0 -34
  349. package/src/lib/Tooltip/themes/tooltipTheme.ts +0 -30
  350. package/src/lib/Typography/Typography.tsx +0 -28
  351. package/src/lib/Typography/themes/typographyTheme.tsx +0 -170
  352. package/src/lib/Typography/themes/uiCustomization.ts +0 -10
  353. package/src/lib/constants/styleguideConstants.ts +0 -8
  354. package/src/lib/styles/colors.module.scss +0 -10
  355. package/src/lib/styles/sisenseStyleguideReactColors.scss +0 -57
  356. package/src/lib/styles/style_styleguide_react/_variables.deprecated.scss +0 -107
  357. package/src/lib/styles/style_styleguide_react/_variables.scss +0 -100
  358. package/src/lib/styles/style_styleguide_react/base.scss +0 -9
  359. package/src/lib/styles/style_styleguide_react/colors.scss +0 -71
  360. package/src/lib/styles/style_styleguide_react/exports/colors.exports.scss +0 -69
  361. package/src/lib/styles/style_styleguide_react/exports/fonts.exports.scss +0 -33
  362. package/src/lib/styles/style_styleguide_react/fonts.scss +0 -27
  363. package/src/lib/styles/style_styleguide_react/mixins.scss +0 -90
  364. package/src/lib/themes/colors/siColors.ts +0 -143
  365. package/src/lib/themes/types/SisenseTheme.ts +0 -12
  366. package/tsconfig.eslint.json +0 -12
  367. package/tsconfig.json +0 -17
  368. package/tsconfig.lib.json +0 -22
  369. package/tsconfig.spec.json +0 -21
  370. package/vite.config.ts +0 -140
@@ -1,148 +0,0 @@
1
- import React, { ForwardedRef } from 'react';
2
- import MuiTablePagination, {
3
- type TablePaginationProps as MuiTablePaginationProps,
4
- } from '@mui/material/TablePagination';
5
- import ThemeProvider from '@mui/material/styles/ThemeProvider';
6
- import { useMeasure } from 'react-use';
7
- import { UsePaginationProps } from '@mui/material/usePagination/usePagination';
8
-
9
- import { TablePaginationContext } from './TablePaginationContext';
10
- import {
11
- getCurrentBreakpoint,
12
- RESPONSIVE_TABLE_PAGINATION_CLASS,
13
- tablePaginationResponsiveWidth,
14
- } from './themes/tablePaginationResponsiveDesign';
15
- import { PaginationActionsComponent } from './PaginationActionsComponent';
16
- import { Typography } from '../Typography';
17
- import { Icon, type IconProps } from '../Icon';
18
-
19
- import { siColors } from '../themes';
20
- import { tablePaginationTheme, type TablePaginationTheme } from './themes';
21
-
22
- type MuiSelectDisplayProps = React.HTMLAttributes<HTMLDivElement> & {
23
- 'data-testid'?: string;
24
- };
25
-
26
- export type TablePaginationProps = Omit<
27
- MuiTablePaginationProps,
28
- 'onPageChange' | 'ActionsComponent' | 'labelRowsPerPage' | 'onRowsPerPageChange'
29
- > & {
30
- displayedLabelRows: { conjunction: string; result: string };
31
- onRowsPerPageChange: (rowsPerPage: number) => void;
32
- onPageChange: (page: number) => void;
33
- theme?: TablePaginationTheme;
34
- labelRowsPerPage: string;
35
- labelRowsPerPageShort?: string;
36
- dataTestId?: string;
37
- };
38
-
39
- const PAGE_START_ZERO_BASE_INDEX = 1;
40
-
41
- const TablePagination = React.forwardRef(
42
- // eslint-disable-next-line max-lines-per-function
43
- (
44
- {
45
- count,
46
- page,
47
- rowsPerPage,
48
- onRowsPerPageChange,
49
- displayedLabelRows,
50
- onPageChange,
51
- labelRowsPerPage,
52
- labelRowsPerPageShort = 'Rows',
53
- rowsPerPageOptions = [10, 25, 50, 75],
54
- theme = tablePaginationTheme,
55
- dataTestId,
56
- style,
57
- // eslint-disable-next-line @typescript-eslint/no-unused-vars,no-unused-vars
58
- ...rest
59
- }: TablePaginationProps,
60
- ref: ForwardedRef<HTMLDivElement>,
61
- ) => {
62
- // React sensor hook that tracks dimensions of an HTML element using the Resize Observer API
63
- const [measureRef, { width }] = useMeasure<HTMLDivElement>();
64
- const breakpointIsLessThanLg = width < tablePaginationResponsiveWidth.lg;
65
-
66
- const handleLabelDisplayedRows = ({
67
- from,
68
- to,
69
- count,
70
- }: {
71
- from: number;
72
- to: number;
73
- count: number;
74
- }) => {
75
- const msg = breakpointIsLessThanLg
76
- ? `${from}-${to} / ${count}`
77
- : `${from}-${to} ${displayedLabelRows.conjunction} ${count} ${displayedLabelRows.result}`;
78
-
79
- return (
80
- <Typography variant={'bodyParagraph'} sx={{ color: siColors.StTextColors.secondary }}>
81
- {msg}
82
- </Typography>
83
- );
84
- };
85
-
86
- const handleOnPageChange = (event: React.MouseEvent<HTMLButtonElement> | null, page: number) =>
87
- onPageChange(page);
88
-
89
- const handleOnRowsPerPage = (
90
- event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>,
91
- ) => onRowsPerPageChange(Number(event.target.value));
92
-
93
- const breakpoint = getCurrentBreakpoint(width);
94
- const paginationProps: UsePaginationProps = {
95
- siblingCount: breakpointIsLessThanLg ? 0 : 1,
96
- };
97
-
98
- return (
99
- <ThemeProvider theme={theme}>
100
- <TablePaginationContext.Provider value={paginationProps}>
101
- <div className={`${RESPONSIVE_TABLE_PAGINATION_CLASS} ${breakpoint}`} ref={measureRef}>
102
- <MuiTablePagination
103
- ref={ref}
104
- component={'div'}
105
- count={count}
106
- page={page - PAGE_START_ZERO_BASE_INDEX}
107
- ActionsComponent={PaginationActionsComponent}
108
- onPageChange={handleOnPageChange}
109
- onRowsPerPageChange={handleOnRowsPerPage}
110
- rowsPerPage={rowsPerPage}
111
- rowsPerPageOptions={rowsPerPageOptions}
112
- labelDisplayedRows={handleLabelDisplayedRows}
113
- slotProps={{
114
- select: {
115
- SelectDisplayProps: {
116
- 'data-testid': 'TablePaginationSelect',
117
- } as MuiSelectDisplayProps,
118
- IconComponent: (props: IconProps) => (
119
- <Icon {...props} name="general-arrow-big-down" />
120
- ),
121
- renderValue: (value: unknown) => (
122
- <Typography variant={'bodyParagraph'}>{String(value)}</Typography>
123
- ),
124
- MenuProps: {
125
- sx: {
126
- '.MuiPaper-root': {
127
- fontFamily: style?.fontFamily,
128
- },
129
- },
130
- },
131
- },
132
- }}
133
- labelRowsPerPage={
134
- <Typography variant={'bodyParagraph'}>
135
- {breakpointIsLessThanLg ? labelRowsPerPageShort : labelRowsPerPage}
136
- </Typography>
137
- }
138
- data-testid={dataTestId}
139
- />
140
- </div>
141
- </TablePaginationContext.Provider>
142
- </ThemeProvider>
143
- );
144
- },
145
- );
146
-
147
- export default TablePagination;
148
- export { TablePagination };
@@ -1,4 +0,0 @@
1
- import { UsePaginationProps } from '@mui/material/usePagination/usePagination';
2
- import { createContext } from 'react';
3
-
4
- export const TablePaginationContext = createContext<UsePaginationProps>({});
@@ -1,4 +0,0 @@
1
- import TablePagination from './TablePagination';
2
-
3
- export default TablePagination;
4
- export * from './TablePagination';
@@ -1,33 +0,0 @@
1
- export const RESPONSIVE_TABLE_PAGINATION_CLASS = 'responsive-table-pagination';
2
-
3
- // Each breakpoint (a key) matches with a fixed screen width in px:
4
- export const tablePaginationResponsiveWidth = {
5
- xs: 0,
6
- sm: 200,
7
- md: 439,
8
- lg: 600,
9
- xl: 1536,
10
- };
11
-
12
- export const getCurrentBreakpoint = (width: number): string => {
13
- if (inRange(tablePaginationResponsiveWidth.xs, tablePaginationResponsiveWidth.sm, width)) {
14
- return 'xs';
15
- }
16
-
17
- if (inRange(tablePaginationResponsiveWidth.sm, tablePaginationResponsiveWidth.md, width)) {
18
- return 'sm';
19
- }
20
-
21
- if (inRange(tablePaginationResponsiveWidth.md, tablePaginationResponsiveWidth.lg, width)) {
22
- return 'md';
23
- }
24
-
25
- if (inRange(tablePaginationResponsiveWidth.lg, tablePaginationResponsiveWidth.xl, width)) {
26
- return 'lg';
27
- }
28
-
29
- return 'xl';
30
- };
31
-
32
- const inRange = (start: number, end: number, point: number): boolean =>
33
- point >= start && point < end;
@@ -1,128 +0,0 @@
1
- import createTheme from '@mui/material/styles/createTheme';
2
-
3
- // import { injectStylesWithWrapper, themeService } from '@sbi/styleguide';
4
-
5
- import { siColors, stEffects } from '../../themes';
6
- // import { calcStyles } from './uiCustomization';
7
- import { tablePaginationResponsiveWidth } from './tablePaginationResponsiveDesign';
8
-
9
- // injectStylesWithWrapper && injectStylesWithWrapper(calcStyles);
10
- export const tablePaginationTheme = createTheme({
11
- breakpoints: {
12
- values: tablePaginationResponsiveWidth,
13
- },
14
- components: {
15
- MuiTablePagination: {
16
- styleOverrides: {
17
- root: {
18
- display: 'flex',
19
- flexDirection: 'row',
20
- justifyContent: 'space-between',
21
- alignItems: 'center',
22
- width: '100%',
23
- },
24
- toolbar: {
25
- '&.MuiTablePagination-toolbar': {
26
- display: 'flex',
27
- flexDirection: 'row',
28
- padding: '0px 20px 0 20px',
29
- alignItems: 'center',
30
- height: '30px',
31
- width: '100%',
32
- },
33
- '.Mui-selected': {
34
- margin: 0,
35
- },
36
- },
37
- spacer: {
38
- display: 'none',
39
- },
40
- displayedRows: {
41
- whiteSpace: 'nowrap',
42
- },
43
- selectLabel: {
44
- order: 4,
45
- paddingLeft: '20px',
46
- },
47
- input: {
48
- order: 5,
49
- display: 'flex',
50
- flexDirection: 'row',
51
- alignItems: 'center',
52
- borderRadius: '4px',
53
- marginRight: '0',
54
- },
55
- select: {
56
- '&.MuiTablePagination-select': {
57
- background: 'transparent',
58
- },
59
- },
60
- selectIcon: {
61
- position: 'absolute',
62
- top: '8%',
63
- },
64
- menuItem: {
65
- paddingLeft: '10px',
66
- '&.MuiTablePagination-menuItem.Mui-selected': {
67
- position: 'relative',
68
- background: 'transparent',
69
- // '&:hover': {
70
- // backgroundColor:
71
- // themeService.getDesignSettings().typography.primaryTextColor,
72
- // color: themeService.getDesignSettings().typography.primaryTextColor,
73
- // },
74
- '&:after': {
75
- marginLeft: '15px',
76
- content: '""',
77
- display: 'block',
78
- position: 'absolute',
79
- width: '24px',
80
- height: '24px',
81
- top: '3px',
82
- backgroundImage:
83
- "url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.2604 8.58124L10.9174 16.0615L7 12.1442L7.70711 11.4371L10.7898 14.5197L15.4467 8L16.2604 8.58124Z' fill='%235B6372'/%3E%3C/svg%3E%0A\")",
84
- },
85
- },
86
- '&.MuiTablePagination-menuItem': {
87
- fontFamily: 'inherit',
88
- fontWeight: '400',
89
- fontSize: '13px',
90
- lineHeight: '18px',
91
- color: siColors.StTextColors.content,
92
- },
93
- '&:hover': {
94
- backgroundColor: siColors.StBackgroundColors.priority,
95
- },
96
- },
97
- actions: {
98
- marginLeft: 0,
99
- },
100
- },
101
- },
102
- MuiPaper: {
103
- styleOverrides: {
104
- root: {
105
- display: 'flex',
106
- flexDirection: 'column',
107
- alignItems: 'flex-start',
108
- padding: '4px 0px',
109
- gap: '4px',
110
- marginTop: '4px',
111
- background: siColors.StBackgroundColors.workspace,
112
- boxShadow: stEffects.Shadows.level1,
113
- borderRadius: '4px',
114
- },
115
- },
116
- },
117
- MuiList: {
118
- styleOverrides: {
119
- root: {
120
- padding: 0,
121
- width: '100%',
122
- },
123
- },
124
- },
125
- },
126
- });
127
-
128
- export type TablePaginationTheme = typeof tablePaginationTheme;
@@ -1,50 +0,0 @@
1
- export {};
2
- // import { CalcStyles, DesignSettings, utils } from '@sbi/styleguide';
3
- // import { RESPONSIVE_TABLE_PAGINATION_CLASS } from './tablePaginationResponsiveDesign';
4
- //
5
- // const DEFAULT_OPACITY = 0.1;
6
- //
7
- // export const calcStyles: CalcStyles = (designSettings: DesignSettings) => ({
8
- // [`.${RESPONSIVE_TABLE_PAGINATION_CLASS}`]: {
9
- // '&.sm, &.xs': {
10
- // '.MuiTablePagination-selectLabel, .MuiTablePagination-displayedRows, .MuiInputBase-root':
11
- // {
12
- // display: 'none',
13
- // },
14
- // '.MuiTablePagination-toolbar': {
15
- // padding: 0,
16
- // },
17
- // },
18
- // '&.xs': {
19
- // '.MuiPaginationItem-page, .MuiPaginationItem-ellipsis': {
20
- // display: 'none',
21
- // },
22
- // '.Mui-selected, .MuiPaginationItem-firstLast': {
23
- // display: 'block',
24
- // padding: 0,
25
- // },
26
- // '.MuiPaginationItem-previousNext': {
27
- // width: '26px',
28
- // },
29
- // },
30
- // width: '100%',
31
- // },
32
- // '.MuiTablePagination-root': {
33
- // backgroundColor: utils.makeASlightlyDifferentColor(
34
- // designSettings.general.backgroundColor,
35
- // DEFAULT_OPACITY,
36
- // ),
37
- // },
38
- // '.MuiTablePagination-select.MuiTablePagination-select': {
39
- // backgroundColor: designSettings.general.backgroundColor,
40
- // },
41
- // '.MuiTablePagination-select': {
42
- // color: designSettings.typography.primaryTextColor,
43
- // },
44
- // '.MuiTablePagination-selectIcon': {
45
- // color: utils.makeASlightlyDifferentColor(
46
- // designSettings.typography.secondaryTextColor,
47
- // DEFAULT_OPACITY,
48
- // ),
49
- // },
50
- // });
@@ -1,125 +0,0 @@
1
- @use 'sass:math';
2
- @import '../styles/style_styleguide_react/base';
3
-
4
- $tooltip-max-width: 432px;
5
-
6
- :global {
7
- @import 'rc-tooltip/assets/bootstrap_white';
8
-
9
- $arrow-size: 8px;
10
- $arrow-depth: 6px; // Math.ceil(sqrt(2) * $arrow-size / 2)
11
-
12
- .rc-tooltip {
13
- padding: 0;
14
- background-color: transparent;
15
- opacity: 1;
16
-
17
- &.hide-arrow {
18
- .rc-tooltip-arrow,
19
- .rc-tooltip-content:before {
20
- display: none;
21
- }
22
-
23
- &.rc-tooltip-placement-top,
24
- &.rc-tooltip-placement-bottom,
25
- &.rc-tooltip-placement-left,
26
- &.rc-tooltip-placement-right {
27
- padding: 0;
28
- }
29
-
30
- .rc-tooltip-inner {
31
- padding: 0;
32
- }
33
- }
34
- }
35
-
36
- .rc-tooltip-content {
37
- position: relative;
38
- }
39
-
40
- .rc-tooltip-inner {
41
- padding: 6px 12px;
42
- min-height: 0;
43
- border: 0;
44
- border-radius: 4px;
45
- @include boxShadow;
46
- pointer-events: none;
47
- color: $fore;
48
- font-size: $sizeDefault;
49
- }
50
-
51
- .rc-tooltip-arrow {
52
- border-width: 0 !important;
53
- width: $arrow-size;
54
- height: $arrow-size;
55
- background-color: $back;
56
- @include boxShadow;
57
- z-index: -1;
58
- transform: rotate(45deg);
59
- }
60
-
61
- .rc-tooltip-content:before {
62
- content: '';
63
- position: absolute;
64
- width: $arrow-size;
65
- height: $arrow-size;
66
- background-color: $back;
67
- transform: rotate(45deg);
68
- }
69
-
70
- .rc-tooltip-placement-top {
71
- padding-bottom: $arrow-depth;
72
-
73
- .rc-tooltip-arrow,
74
- .rc-tooltip-content:before {
75
- left: 50%;
76
- margin-left: math.div(-$arrow-size, 2);
77
- bottom: math.div(-$arrow-size, 2);
78
- }
79
- }
80
-
81
- .rc-tooltip-placement-bottom {
82
- padding-top: $arrow-depth;
83
-
84
- .rc-tooltip-arrow,
85
- .rc-tooltip-content:before {
86
- left: 50%;
87
- margin-left: math.div(-$arrow-size, 2);
88
- top: math.div(-$arrow-size, 2);
89
- }
90
- }
91
-
92
- .rc-tooltip-placement-right {
93
- padding-left: $arrow-depth;
94
-
95
- .rc-tooltip-arrow,
96
- .rc-tooltip-content:before {
97
- top: 50%;
98
- margin-top: math.div(-$arrow-size, 2);
99
- left: math.div(-$arrow-size, 2);
100
- }
101
- }
102
-
103
- .rc-tooltip-placement-left {
104
- padding-right: $arrow-depth;
105
-
106
- .rc-tooltip-arrow,
107
- .rc-tooltip-content:before {
108
- top: 50%;
109
- margin-top: math.div(-$arrow-size, 2);
110
- right: math.div(-$arrow-size, 2);
111
- }
112
- }
113
- }
114
-
115
- .breakLongWord {
116
- word-break: break-all;
117
- }
118
-
119
- .semanticText {
120
- max-width: $tooltip-max-width;
121
- }
122
-
123
- :global(.sis-scope).tooltip {
124
- padding: 12px 16px;
125
- }
@@ -1,34 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- import MuiTooltip, { type TooltipProps as MuiTooltipProps } from '@mui/material/Tooltip';
3
- import ThemeProvider from '@mui/material/styles/ThemeProvider';
4
- import classnames from 'classnames';
5
-
6
- import { tooltipTheme, type TooltipTheme } from './themes';
7
- import { styleguideConstants } from '../constants/styleguideConstants';
8
- import styles from './Tooltip.module.scss';
9
-
10
- export type TooltipProps = MuiTooltipProps & { theme?: TooltipTheme };
11
-
12
- const Tooltip = forwardRef(
13
- ({ title, children, arrow, theme = tooltipTheme, ...rest }: TooltipProps, ref) => {
14
- const { classes: customClasses = {} } = rest;
15
- const classes = {
16
- ...customClasses,
17
- tooltip: classnames(
18
- styles.tooltip,
19
- customClasses.tooltip,
20
- styleguideConstants.SISENSE_NAMESPACE,
21
- ),
22
- };
23
- return (
24
- <ThemeProvider theme={theme}>
25
- <MuiTooltip {...rest} title={title} arrow={arrow} ref={ref} classes={classes}>
26
- {children}
27
- </MuiTooltip>
28
- </ThemeProvider>
29
- );
30
- },
31
- );
32
-
33
- export default Tooltip;
34
- export { Tooltip };
@@ -1,30 +0,0 @@
1
- import createTheme from '@mui/material/styles/createTheme';
2
- import { siColors } from '../../themes';
3
-
4
- export const tooltipTheme = createTheme({
5
- components: {
6
- MuiTooltip: {
7
- styleOverrides: {
8
- arrow: {
9
- color: siColors.StBackgroundColors.workspace,
10
- },
11
- tooltip: {
12
- color: siColors.StTextColors.content,
13
- maxWidth: '432px',
14
- borderRadius: '4px',
15
- display: 'flex',
16
- flexDirection: 'row',
17
- justifyContent: 'center',
18
- alignItems: 'center',
19
- padding: '12px 16px',
20
- gap: '10px',
21
- backgroundColor: siColors.StBackgroundColors.workspace,
22
- filter:
23
- 'drop-shadow(0px 1px 4px rgba(9, 9, 10, 0.1)) drop-shadow(0px 4px 12px rgba(9, 9, 10, 0.2));',
24
- },
25
- },
26
- },
27
- },
28
- });
29
-
30
- export type TooltipTheme = typeof tooltipTheme;
@@ -1,28 +0,0 @@
1
- import React, { ForwardedRef } from 'react';
2
- import MuiTypography, {
3
- type TypographyProps as MuiTypographyProps,
4
- } from '@mui/material/Typography';
5
- import ThemeProvider from '@mui/material/styles/ThemeProvider';
6
-
7
- import { typographyTheme, type TypographyTheme } from './themes';
8
-
9
- export type TypographyProps = MuiTypographyProps & {
10
- theme?: TypographyTheme;
11
- dataTestId?: string;
12
- } & React.HTMLAttributes<HTMLSpanElement>;
13
-
14
- const Typography = React.forwardRef(
15
- (
16
- { children, theme = typographyTheme, dataTestId, ...rest }: TypographyProps,
17
- ref: ForwardedRef<HTMLSpanElement>,
18
- ) => (
19
- <ThemeProvider theme={theme}>
20
- <MuiTypography ref={ref} {...rest} data-testid={dataTestId}>
21
- {children}
22
- </MuiTypography>
23
- </ThemeProvider>
24
- ),
25
- );
26
-
27
- export default Typography;
28
- export { Typography };