@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
@@ -0,0 +1 @@
1
+ "use strict";const I=require("react"),f=require("./TransitionGroupContext-BlR3HYBG.cjs"),i=require("./index-B-zZeebW.cjs"),H=require("./ThemeProvider-sqppyE-5.cjs"),me=require("./useTheme-DJmNR5EL.cjs"),Te=require("react/jsx-runtime"),he=require("./setPrototypeOf-BmHXYjK5.cjs"),L=require("react-dom");function Y(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const d=Y(I),ge=Y(L);function xe(e){const{prototype:a={}}=e;return!!a.isReactComponent}function ee(e,a,r,o,n){const t=e[a],s=n||a;if(t==null||typeof window>"u")return null;let u;const p=t.type;return typeof p=="function"&&!xe(p)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${o} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const z=f.chainPropTypes(i.PropTypes.element,ee);z.isRequired=f.chainPropTypes(i.PropTypes.element.isRequired,ee);function te(e,a,r,o,n){if(process.env.NODE_ENV==="production")return null;const t=e[a],s=n||a;return t==null?null:t&&t.nodeType!==1?new Error(`Invalid ${o} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Pe(e){return e&&e.ownerDocument||document}let B=0;function ve(e){const[a,r]=d.useState(e),o=e||a;return d.useEffect(()=>{a==null&&(B+=1,r(`mui-${B}`))},[a]),o}const be={...d},K=be.useId;function Ne(e){if(K!==void 0){const a=K();return e??a}return ve(e)}function Re(e){return typeof e=="string"}function ne(e,a,r){return e===void 0||Re(e)?a:{...a,ownerState:{...a.ownerState,...r}}}function oe(e,a=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!a.includes(o)).forEach(o=>{r[o]=e[o]}),r}function J(e){if(e===void 0)return{};const a={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{a[r]=e[r]}),a}function re(e){const{getSlotProps:a,additionalProps:r,externalSlotProps:o,externalForwardedProps:n,className:t}=e;if(!a){const g=H.clsx(r==null?void 0:r.className,t,n==null?void 0:n.className,o==null?void 0:o.className),x={...r==null?void 0:r.style,...n==null?void 0:n.style,...o==null?void 0:o.style},m={...r,...n,...o};return g.length>0&&(m.className=g),Object.keys(x).length>0&&(m.style=x),{props:m,internalRef:void 0}}const s=oe({...n,...o}),u=J(o),p=J(n),c=a(s),E=H.clsx(c==null?void 0:c.className,r==null?void 0:r.className,t,n==null?void 0:n.className,o==null?void 0:o.className),y={...c==null?void 0:c.style,...r==null?void 0:r.style,...n==null?void 0:n.style,...o==null?void 0:o.style},T={...c,...r,...p,...u};return E.length>0&&(T.className=E),Object.keys(y).length>0&&(T.style=y),{props:T,internalRef:c.ref}}function ie(e,a,r){return typeof e=="function"?e(a,r):e}function Oe(e){var y;const{elementType:a,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:n=!1,...t}=e,s=n?{}:ie(r,o),{props:u,internalRef:p}=re({...t,externalSlotProps:s}),c=f.useForkRef(p,s==null?void 0:s.ref,(y=e.additionalProps)==null?void 0:y.ref);return ne(a,{...u,ref:c},o)}function Z(e){var a;return parseInt(d.version,10)>=19?((a=e==null?void 0:e.props)==null?void 0:a.ref)||null:(e==null?void 0:e.ref)||null}function se(){const e=me.useTheme(H.defaultTheme);return process.env.NODE_ENV!=="production"&&d.useDebugValue(e),e[H.THEME_ID]||e}const Q={disabled:!1};var De=process.env.NODE_ENV!=="production"?i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.shape({enter:i.PropTypes.number,exit:i.PropTypes.number,appear:i.PropTypes.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.shape({enter:i.PropTypes.string,exit:i.PropTypes.string,active:i.PropTypes.string}),i.PropTypes.shape({enter:i.PropTypes.string,enterDone:i.PropTypes.string,enterActive:i.PropTypes.string,exit:i.PropTypes.string,exitDone:i.PropTypes.string,exitActive:i.PropTypes.string})]);var Se=function(a){return a.scrollTop},M="unmounted",N="exited",R="entering",k="entered",F="exiting",h=function(e){f._inheritsLoose(a,e);function a(o,n){var t;t=e.call(this,o,n)||this;var s=n,u=s&&!s.isMounting?o.enter:o.appear,p;return t.appearStatus=null,o.in?u?(p=N,t.appearStatus=R):p=k:o.unmountOnExit||o.mountOnEnter?p=M:p=N,t.state={status:p},t.nextCallback=null,t}a.getDerivedStateFromProps=function(n,t){var s=n.in;return s&&t.status===M?{status:N}:null};var r=a.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var t=null;if(n!==this.props){var s=this.state.status;this.props.in?s!==R&&s!==k&&(t=R):(s===R||s===k)&&(t=F)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,t,s,u;return t=s=u=n,n!=null&&typeof n!="number"&&(t=n.exit,s=n.enter,u=n.appear!==void 0?n.appear:s),{exit:t,enter:s,appear:u}},r.updateStatus=function(n,t){if(n===void 0&&(n=!1),t!==null)if(this.cancelNextCallback(),t===R){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);s&&Se(s)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===N&&this.setState({status:M})},r.performEnter=function(n){var t=this,s=this.props.enter,u=this.context?this.context.isMounting:n,p=this.props.nodeRef?[u]:[L.findDOMNode(this),u],c=p[0],E=p[1],y=this.getTimeouts(),T=u?y.appear:y.enter;if(!n&&!s||Q.disabled){this.safeSetState({status:k},function(){t.props.onEntered(c)});return}this.props.onEnter(c,E),this.safeSetState({status:R},function(){t.props.onEntering(c,E),t.onTransitionEnd(T,function(){t.safeSetState({status:k},function(){t.props.onEntered(c,E)})})})},r.performExit=function(){var n=this,t=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:L.findDOMNode(this);if(!t||Q.disabled){this.safeSetState({status:N},function(){n.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:F},function(){n.props.onExiting(u),n.onTransitionEnd(s.exit,function(){n.safeSetState({status:N},function(){n.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,t){t=this.setNextCallback(t),this.setState(n,t)},r.setNextCallback=function(n){var t=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,t.nextCallback=null,n(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(n,t){this.setNextCallback(t);var s=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this),u=n==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=p[0],E=p[1];this.props.addEndListener(c,E)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===M)return null;var t=this.props,s=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var u=he._objectWithoutPropertiesLoose(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(f.TransitionGroupContext.Provider,{value:null},typeof s=="function"?s(n,u):I.cloneElement(I.Children.only(s),u))},a}(I.Component);h.contextType=f.TransitionGroupContext;h.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.PropTypes.shape({current:typeof Element>"u"?i.PropTypes.any:function(e,a,r,o,n,t){var s=e[a];return i.PropTypes.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,a,r,o,n,t)}}),children:i.PropTypes.oneOfType([i.PropTypes.func.isRequired,i.PropTypes.element.isRequired]).isRequired,in:i.PropTypes.bool,mountOnEnter:i.PropTypes.bool,unmountOnExit:i.PropTypes.bool,appear:i.PropTypes.bool,enter:i.PropTypes.bool,exit:i.PropTypes.bool,timeout:function(a){var r=De;a.addEndListener||(r=r.isRequired);for(var o=arguments.length,n=new Array(o>1?o-1:0),t=1;t<o;t++)n[t-1]=arguments[t];return r.apply(void 0,[a].concat(n))},addEndListener:i.PropTypes.func,onEnter:i.PropTypes.func,onEntering:i.PropTypes.func,onEntered:i.PropTypes.func,onExit:i.PropTypes.func,onExiting:i.PropTypes.func,onExited:i.PropTypes.func}:{};function C(){}h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:C,onEntering:C,onEntered:C,onExit:C,onExiting:C,onExited:C};h.UNMOUNTED=M;h.EXITED=N;h.ENTERING=R;h.ENTERED=k;h.EXITING=F;const ae=e=>e.scrollTop;function W(e,a){const{timeout:r,easing:o,style:n={}}=e;return{duration:n.transitionDuration??(typeof r=="number"?r:r[a.mode]||0),easing:n.transitionTimingFunction??(typeof o=="object"?o[a.mode]:o),delay:n.transitionDelay}}function X(e){return`scale(${e}, ${e**2})`}const Ce={entering:{opacity:1,transform:X(1)},entered:{opacity:1,transform:"none"}},U=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),G=d.forwardRef(function(a,r){const{addEndListener:o,appear:n=!0,children:t,easing:s,in:u,onEnter:p,onEntered:c,onEntering:E,onExit:y,onExited:T,onExiting:g,style:x,timeout:m="auto",TransitionComponent:j=h,...$}=a,_=f.useTimeout(),w=d.useRef(),O=se(),q=d.useRef(null),ue=f.useForkRef(q,Z(t),r),D=l=>v=>{if(l){const b=q.current;v===void 0?l(b):l(b,v)}},pe=D(E),ce=D((l,v)=>{ae(l);const{duration:b,delay:A,easing:P}=W({style:x,timeout:m,easing:s},{mode:"enter"});let S;m==="auto"?(S=O.transitions.getAutoHeightDuration(l.clientHeight),w.current=S):S=b,l.style.transition=[O.transitions.create("opacity",{duration:S,delay:A}),O.transitions.create("transform",{duration:U?S:S*.666,delay:A,easing:P})].join(","),p&&p(l,v)}),le=D(c),fe=D(g),de=D(l=>{const{duration:v,delay:b,easing:A}=W({style:x,timeout:m,easing:s},{mode:"exit"});let P;m==="auto"?(P=O.transitions.getAutoHeightDuration(l.clientHeight),w.current=P):P=v,l.style.transition=[O.transitions.create("opacity",{duration:P,delay:b}),O.transitions.create("transform",{duration:U?P:P*.666,delay:U?b:b||P*.333,easing:A})].join(","),l.style.opacity=0,l.style.transform=X(.75),y&&y(l)}),Ee=D(T),ye=l=>{m==="auto"&&_.start(w.current||0,l),o&&o(q.current,l)};return Te.jsx(j,{appear:n,in:u,nodeRef:q,onEnter:ce,onEntered:le,onEntering:pe,onExit:de,onExited:Ee,onExiting:fe,addEndListener:ye,timeout:m==="auto"?null:m,...$,children:(l,v)=>d.cloneElement(t,{style:{opacity:0,transform:X(.75),visibility:l==="exited"&&!u?"hidden":void 0,...Ce[l],...x,...t.props.style},ref:ue,...v})})});process.env.NODE_ENV!=="production"&&(G.propTypes={addEndListener:i.PropTypes.func,appear:i.PropTypes.bool,children:z.isRequired,easing:i.PropTypes.oneOfType([i.PropTypes.shape({enter:i.PropTypes.string,exit:i.PropTypes.string}),i.PropTypes.string]),in:i.PropTypes.bool,onEnter:i.PropTypes.func,onEntered:i.PropTypes.func,onEntering:i.PropTypes.func,onExit:i.PropTypes.func,onExited:i.PropTypes.func,onExiting:i.PropTypes.func,style:i.PropTypes.object,timeout:i.PropTypes.oneOfType([i.PropTypes.oneOf(["auto"]),i.PropTypes.number,i.PropTypes.shape({appear:i.PropTypes.number,enter:i.PropTypes.number,exit:i.PropTypes.number})])});G&&(G.muiSupportAuto=!0);function ke(e){return typeof e=="function"?e():e}const V=d.forwardRef(function(a,r){const{children:o,container:n,disablePortal:t=!1}=a,[s,u]=d.useState(null),p=f.useForkRef(d.isValidElement(o)?Z(o):null,r);if(f.useEnhancedEffect(()=>{t||u(ke(n)||document.body)},[n,t]),f.useEnhancedEffect(()=>{if(s&&!t)return f.setRef(r,s),()=>{f.setRef(r,null)}},[r,s,t]),t){if(d.isValidElement(o)){const c={ref:p};return d.cloneElement(o,c)}return o}return s&&ge.createPortal(o,s)});process.env.NODE_ENV!=="production"&&(V.propTypes={children:i.PropTypes.node,container:i.PropTypes.oneOfType([te,i.PropTypes.func]),disablePortal:i.PropTypes.bool});process.env.NODE_ENV!=="production"&&(V.propTypes=H.exactProp(V.propTypes));function we(e,a){const{className:r,elementType:o,ownerState:n,externalForwardedProps:t,internalForwardedProps:s,...u}=a,{component:p,slots:c={[e]:void 0},slotProps:E={[e]:void 0},...y}=t,T=c[e]||o,g=ie(E[e],n),{props:{component:x,...m},internalRef:j}=re({className:r,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),$=f.useForkRef(j,g==null?void 0:g.ref,a.ref),_=e==="root"?x||p:x,w=ne(T,{...e==="root"&&!p&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...m,..._&&{as:_},ref:$},n);return[T,w]}exports.Grow=G;exports.HTMLElementType=te;exports.Portal=V;exports.Transition=h;exports.elementAcceptingRef=z;exports.extractEventHandlers=oe;exports.getReactElementRef=Z;exports.getTransitionProps=W;exports.ownerDocument=Pe;exports.reflow=ae;exports.useId=Ne;exports.useSlot=we;exports.useSlotProps=Oe;exports.useTheme=se;
@@ -0,0 +1,8 @@
1
+ import { c as s, u as t } from "./ThemeProvider-aq1EWT1u.js";
2
+ const m = s();
3
+ function r(e = m) {
4
+ return t(e);
5
+ }
6
+ export {
7
+ r as u
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./ThemeProvider-sqppyE-5.cjs"),t=e.createTheme();function r(s=t){return e.useTheme(s)}exports.useTheme=r;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/sisense/compose-sdk-monorepo",
7
7
  "directory": "packages/sdk-shared-ui"
8
8
  },
9
- "version": "1.27.1",
9
+ "version": "1.28.0",
10
10
  "type": "module",
11
11
  "sideEffects": false,
12
12
  "main": "./dist/index.js",
@@ -148,6 +148,9 @@
148
148
  ]
149
149
  }
150
150
  },
151
+ "files": [
152
+ "dist/**/*"
153
+ ],
151
154
  "scripts": {
152
155
  "dev": "vite",
153
156
  "type-check": "tsc --noEmit",
package/.eslintignore DELETED
@@ -1,4 +0,0 @@
1
- build
2
- dist
3
- node_modules
4
- coverage
package/.prettierignore DELETED
@@ -1,11 +0,0 @@
1
- .git/
2
- .idea/
3
- .vscode/
4
- node_modules/
5
-
6
- # Ignore artifacts:
7
- dist/
8
- coverage/
9
-
10
- # Ignore auto-generated files:
11
- CHANGELOG.md
@@ -1,44 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/react-vite';
2
- import { dirname, join } from 'path';
3
-
4
- const getAbsolutePath = (value: string): string =>
5
- dirname(require.resolve(join(value, 'package.json')));
6
-
7
- const config: StorybookConfig = {
8
- framework: '@storybook/react-vite',
9
-
10
- stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
11
-
12
- addons: [getAbsolutePath('@storybook/addon-docs'), getAbsolutePath('@storybook/addon-a11y')],
13
-
14
- core: {
15
- builder: {
16
- options: {},
17
- name: '@storybook/builder-vite',
18
- },
19
- },
20
-
21
- async viteFinal(config) {
22
- const { mergeConfig } = await import('vite');
23
- return mergeConfig(config, {
24
- resolve: {
25
- alias: [
26
- {
27
- find: '@sbi/styleguide',
28
- replacement: '@sbi/styleguide/dist/styleguide',
29
- },
30
- ],
31
- },
32
- css: {
33
- modules: {
34
- scopeBehaviour: 'local',
35
- generateScopedName: '[name]__[local]___[hash:base64:5]',
36
- },
37
- },
38
- });
39
- },
40
-
41
- typescript: { reactDocgen: false },
42
- };
43
-
44
- export default config;
@@ -1,4 +0,0 @@
1
- <link
2
- rel="stylesheet"
3
- href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap"
4
- />
@@ -1,34 +0,0 @@
1
- import React, { useEffect } from 'react';
2
- import { type Preview } from '@storybook/react';
3
-
4
- const preview: Preview = {
5
- tags: ['autodocs'],
6
- parameters: {
7
- options: {
8
- storySort: {
9
- order: [
10
- 'Inputs',
11
- 'Data Display',
12
- 'Feedback',
13
- 'Date - Time',
14
- 'Surfaces',
15
- 'Navigation',
16
- 'Layout',
17
- 'Utils',
18
- 'Deprecated',
19
- ],
20
- },
21
- },
22
- },
23
- decorators: [
24
- (Story) => {
25
- return <Story />;
26
- },
27
- ],
28
- };
29
-
30
- (function loadStories() {
31
- document.body.className += 'sis-scope';
32
- })();
33
-
34
- export default preview;
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib';
@@ -1,19 +0,0 @@
1
- declare module '*.scss' {
2
- export const content: { [className: string]: string };
3
- export default content;
4
- }
5
-
6
- declare module '*.module.scss' {
7
- const classes: { readonly [key: string]: string };
8
- export default classes;
9
- }
10
-
11
- declare module '*.module.sass' {
12
- const classes: { readonly [key: string]: string };
13
- export default classes;
14
- }
15
-
16
- declare module '*.module.css' {
17
- const classes: { readonly [key: string]: string };
18
- export default classes;
19
- }
@@ -1,13 +0,0 @@
1
- .item {
2
- margin-bottom: 12px;
3
- &:last-child {
4
- margin-bottom: 0;
5
- }
6
- cursor: pointer;
7
- height: 18px;
8
- user-select: none;
9
-
10
- .icon {
11
- margin-top: -3px;
12
- }
13
- }
@@ -1,61 +0,0 @@
1
- import React from 'react';
2
- import { render, screen, fireEvent } from '@testing-library/react';
3
- import { describe, it, vi, expect } from 'vitest';
4
-
5
- import { CheckableList } from './CheckableList';
6
-
7
- import '@testing-library/jest-dom';
8
-
9
- describe('CheckableList', () => {
10
- const items = [
11
- { name: 'Item 1', value: 'item1', checked: true, dataTestId: 'item-1' },
12
- { name: 'Item 2', value: 'item2', checked: false, dataTestId: 'item-2' },
13
- ];
14
-
15
- it('should render all items', () => {
16
- render(<CheckableList items={items} onChange={vi.fn()} className="custom-class" />);
17
-
18
- items.forEach((item) => {
19
- expect(screen.getByText(item.name)).toBeInTheDocument();
20
- expect(screen.getByTestId(item.dataTestId)).toBeInTheDocument();
21
- });
22
- });
23
-
24
- it('should call onChange with the correct value when an item is clicked', () => {
25
- const onChangeMock = vi.fn();
26
- render(<CheckableList items={items} onChange={onChangeMock} className="custom-class" />);
27
-
28
- const firstItem = screen.getByTestId('item-1');
29
- fireEvent.click(firstItem);
30
-
31
- expect(onChangeMock).toHaveBeenCalledWith('item1');
32
- });
33
-
34
- it('should render DEPRECATED_Icon for checked items', () => {
35
- const { container } = render(
36
- <CheckableList items={items} onChange={vi.fn()} className="custom-class" />,
37
- );
38
-
39
- const icon = container.querySelector(`.app-icon.app-icon--general-vi-small-white`);
40
-
41
- expect(icon).toBeInTheDocument();
42
- expect(icon).toHaveClass('app-icon app-icon--general-vi-small-white');
43
- });
44
-
45
- it('should not render DEPRECATED_Icon for unchecked items', () => {
46
- render(<CheckableList items={items} onChange={vi.fn()} className="custom-class" />);
47
-
48
- const uncheckedItem = screen.getByTestId('item-2');
49
- const icon = uncheckedItem.querySelector(`.app-icon.app-icon--general-vi-small-white`);
50
-
51
- expect(icon).toBeNull();
52
- });
53
-
54
- it('should apply custom className to the container', () => {
55
- const { container } = render(
56
- <CheckableList items={items} onChange={vi.fn()} className="custom-class" />,
57
- );
58
-
59
- expect(container.firstChild).toHaveClass('custom-class');
60
- });
61
- });
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
-
3
- import { DEPRECATED_Icon } from '../DEPRECATED_Icon';
4
-
5
- import styles from './CheckableList.module.scss';
6
-
7
- type Item = {
8
- name: string;
9
- value: string;
10
- checked: boolean;
11
- dataTestId?: string;
12
- };
13
-
14
- export type CheckableListProps = {
15
- items: Item[];
16
- onChange: (value: string) => void;
17
- className?: string;
18
- };
19
-
20
- const CheckableList = ({ items, className, onChange }: CheckableListProps) => {
21
- return (
22
- <div className={className}>
23
- {items.map((item) => (
24
- <div
25
- key={item.value}
26
- className={styles.item}
27
- onClick={() => onChange(item.value)}
28
- data-testid={item.dataTestId}
29
- >
30
- <span className={styles.name}>{item.name}</span>
31
- {item.checked && (
32
- <DEPRECATED_Icon className={styles.icon} name="general-vi-small-white" />
33
- )}
34
- </div>
35
- ))}
36
- </div>
37
- );
38
- };
39
-
40
- export default CheckableList;
41
- export { CheckableList };
@@ -1,4 +0,0 @@
1
- import CheckableList from './CheckableList';
2
-
3
- export default CheckableList;
4
- export * from './CheckableList';
@@ -1,28 +0,0 @@
1
- import React, { forwardRef } from 'react';
2
- import MuiCheckbox, { CheckboxProps as MuiCheckboxProps } from '@mui/material/Checkbox';
3
- import ThemeProvider from '@mui/material/styles/ThemeProvider';
4
-
5
- import { checkboxTheme, type CheckboxTheme } from './themes';
6
-
7
- export type CheckboxProps = {
8
- dataTestId?: string;
9
- disabled?: boolean;
10
- inline?: boolean;
11
- onDescriptionClick?: () => void;
12
- text?: string;
13
- textClassName?: string;
14
- title?: string;
15
- transparent?: boolean;
16
- inputCheckboxClassName?: string;
17
- } & MuiCheckboxProps & { theme?: CheckboxTheme };
18
-
19
- const Checkbox = forwardRef<HTMLButtonElement, CheckboxProps>(
20
- ({ theme = checkboxTheme, dataTestId, ...rest }, ref) => (
21
- <ThemeProvider theme={theme}>
22
- <MuiCheckbox data-testid={dataTestId} ref={ref} {...rest} />
23
- </ThemeProvider>
24
- ),
25
- );
26
-
27
- export default Checkbox;
28
- export { Checkbox };
@@ -1,4 +0,0 @@
1
- import Checkbox from './Checkbox';
2
-
3
- export default Checkbox;
4
- export * from './Checkbox';
@@ -1,42 +0,0 @@
1
- import createTheme from '@mui/material/styles/createTheme';
2
- // import { injectStylesWithWrapper } from '@sbi/styleguide';
3
- //import { calcStyles } from './uiCustomization';
4
-
5
- // TODO: review this later
6
- // injectStylesWithWrapper && injectStylesWithWrapper(calcStyles);
7
- import { siColors, type SisenseTheme } from '../../themes';
8
-
9
- declare module '@mui/material' {
10
- interface Theme {
11
- sisense: SisenseTheme;
12
- }
13
-
14
- interface ThemeOptions {
15
- sisense?: Partial<SisenseTheme>;
16
- }
17
- }
18
-
19
- export const checkboxTheme = createTheme({
20
- components: {
21
- MuiCheckbox: {
22
- styleOverrides: {
23
- root: {
24
- width: '28px',
25
- height: '28px',
26
- '&.Mui-disabled': {
27
- opacity: 0.5,
28
- },
29
- '&:hover': {
30
- backgroundColor: siColors.StInteractionColors.defaultHover,
31
- },
32
- '& .MuiSvgIcon-root': {
33
- fontSize: 14,
34
- fill: siColors.StUiColors.default,
35
- },
36
- },
37
- },
38
- },
39
- },
40
- });
41
-
42
- export type CheckboxTheme = typeof checkboxTheme;
@@ -1,28 +0,0 @@
1
- // import { CalcStyles, DesignSettings } from '@sbi/styleguide';
2
- import { siColors } from '../../themes';
3
-
4
- export type MuiCheckbox =
5
- | {
6
- '.MuiCheckbox-root': {
7
- color: string;
8
- '&:hover': {
9
- color: string;
10
- borderRadius: string;
11
- backgroundColor: string;
12
- };
13
- };
14
- }
15
- | Record<string, never>;
16
-
17
- export const calcStyles: any /* CalcStyles */ = (
18
- designSettings: any /* DesignSettings */,
19
- ): MuiCheckbox => ({
20
- '.MuiCheckbox-root': {
21
- color: designSettings.general.primaryButtonTextColor,
22
- '&:hover': {
23
- color: designSettings.typography.primaryTextColor,
24
- borderRadius: '50%',
25
- backgroundColor: siColors.StBackgroundColors.themeAgnostic,
26
- },
27
- },
28
- });
@@ -1,57 +0,0 @@
1
- @import '../styles/style_styleguide_react/fonts';
2
- @import '../styles/style_styleguide_react/colors';
3
-
4
- @mixin sharedButtonText {
5
- padding: 5px 20px;
6
- }
7
-
8
- :global(.sis-scope) {
9
- :global(.btn--dark) {
10
- :global(.btn__text) {
11
- @include sharedButtonText;
12
- }
13
- }
14
-
15
- :global(.btn--gray) {
16
- background: $buttonCancel;
17
-
18
- &:disabled {
19
- background: $buttonCancel;
20
- opacity: 1;
21
-
22
- &:hover {
23
- background: $buttonCancelHovered;
24
- }
25
-
26
- :global(.app-icon),
27
- :global(.btn__text) {
28
- opacity: 0.4;
29
- }
30
- }
31
- }
32
-
33
- .sharedComponentsButton {
34
- line-height: $lineHeightMedium;
35
- }
36
-
37
- .sharedComponentsButtonText {
38
- @include sharedButtonText;
39
- }
40
-
41
- :global(.btn).btnSecondary {
42
- border: 1px solid $wizardFore;
43
- background-color: $buttonSecondary;
44
-
45
- &:hover {
46
- background-color: $buttonSecondaryHovered;
47
- }
48
-
49
- &:disabled {
50
- background-color: $buttonSecondary;
51
-
52
- &:hover {
53
- background-color: $buttonSecondary;
54
- }
55
- }
56
- }
57
- }
@@ -1,169 +0,0 @@
1
- import React from 'react';
2
-
3
- import { DEPRECATED_Button } from './DEPRECATED_Button';
4
-
5
- export default {
6
- title: 'DEPRECATED/Button',
7
- };
8
-
9
- export const Primary = () => (
10
- <div
11
- style={{
12
- display: 'inline-flex',
13
- justifyContent: 'space-between',
14
- height: '175px',
15
- padding: '20px 50px',
16
- flexDirection: 'column',
17
- }}
18
- >
19
- <>
20
- <DEPRECATED_Button text={'normal!'} />
21
- <DEPRECATED_Button text={'hover!'} style={{ backgroundColor: '#f2b900' }} />
22
- <DEPRECATED_Button text={'disable!'} disabled />
23
- </>
24
- </div>
25
- );
26
-
27
- export const PrimaryWithIcon = () => (
28
- <div
29
- style={{
30
- display: 'inline-flex',
31
- justifyContent: 'space-between',
32
- height: '175px',
33
- padding: '20px 50px',
34
- flexDirection: 'column',
35
- }}
36
- >
37
- <>
38
- <DEPRECATED_Button text={'normal!'} iconName="general-plus" />
39
- <DEPRECATED_Button
40
- text={'hover!'}
41
- iconName="general-plus"
42
- style={{ backgroundColor: '#f2b900' }}
43
- />
44
- <DEPRECATED_Button text={'disable!'} iconName="general-plus" disabled />
45
- </>
46
- </div>
47
- );
48
-
49
- export const Secondary = () => (
50
- <div
51
- style={{
52
- display: 'inline-flex',
53
- justifyContent: 'space-between',
54
- height: '175px',
55
- padding: '20px 50px',
56
- flexDirection: 'column',
57
- }}
58
- >
59
- <>
60
- <DEPRECATED_Button text={'normal!'} secondary />
61
- <DEPRECATED_Button text={'hover!'} secondary style={{ backgroundColor: '#F4F4F8' }} />
62
- <DEPRECATED_Button text={'disable!'} secondary disabled />
63
- </>
64
- </div>
65
- );
66
-
67
- export const SecondaryWithIcon = () => (
68
- <div
69
- style={{
70
- display: 'inline-flex',
71
- justifyContent: 'space-between',
72
- height: '175px',
73
- padding: '20px 50px',
74
- flexDirection: 'column',
75
- }}
76
- >
77
- <>
78
- <DEPRECATED_Button text={'normal!'} iconName="general-plus" secondary />
79
- <DEPRECATED_Button
80
- text={'hover!'}
81
- iconName="general-plus"
82
- secondary
83
- style={{ backgroundColor: '#F4F4F8' }}
84
- />
85
- <DEPRECATED_Button text={'disable!'} iconName="general-plus" secondary disabled />
86
- </>
87
- </div>
88
- );
89
-
90
- export const Cancel = () => (
91
- <div
92
- style={{
93
- display: 'inline-flex',
94
- justifyContent: 'space-between',
95
- height: '175px',
96
- padding: '20px 50px',
97
- flexDirection: 'column',
98
- }}
99
- >
100
- <>
101
- <DEPRECATED_Button text={'normal!'} gray />
102
- <DEPRECATED_Button text={'hover!'} style={{ backgroundColor: '#D1D1D7' }} />
103
- <DEPRECATED_Button text={'disable!'} gray disabled />
104
- </>
105
- </div>
106
- );
107
-
108
- export const CancelWithIcon = () => (
109
- <div
110
- style={{
111
- display: 'inline-flex',
112
- justifyContent: 'space-between',
113
- height: '175px',
114
- padding: '20px 50px',
115
- flexDirection: 'column',
116
- }}
117
- >
118
- <>
119
- <DEPRECATED_Button text={'normal!'} iconName="general-plus" gray />
120
- <DEPRECATED_Button
121
- text={'hover!'}
122
- iconName="general-plus"
123
- style={{ backgroundColor: '#D1D1D7' }}
124
- />
125
- <DEPRECATED_Button text={'disable!'} iconName="general-plus" gray disabled />
126
- </>
127
- </div>
128
- );
129
-
130
- export const Text = () => (
131
- <div
132
- style={{
133
- display: 'inline-flex',
134
- justifyContent: 'space-between',
135
- height: '175px',
136
- padding: '20px 50px',
137
- flexDirection: 'column',
138
- }}
139
- >
140
- <>
141
- <DEPRECATED_Button text={'normal!'} dark />
142
- <DEPRECATED_Button text={'hover!'} style={{ backgroundColor: '#f4f4f8' }} dark />
143
- <DEPRECATED_Button text={'disable!'} disabled dark />
144
- </>
145
- </div>
146
- );
147
-
148
- export const TextWithIcon = () => (
149
- <div
150
- style={{
151
- display: 'inline-flex',
152
- justifyContent: 'space-between',
153
- height: '175px',
154
- padding: '20px 50px',
155
- flexDirection: 'column',
156
- }}
157
- >
158
- <>
159
- <DEPRECATED_Button text={'normal!'} dark iconName={'general-edit'} />
160
- <DEPRECATED_Button
161
- text={'hover!'}
162
- style={{ backgroundColor: '#f4f4f8' }}
163
- iconName={'general-edit'}
164
- dark
165
- />
166
- <DEPRECATED_Button text={'disable!'} iconName={'general-edit'} disabled dark />
167
- </>
168
- </div>
169
- );