@alfalab/core-components-table 2.2.41 → 2.3.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 (288) hide show
  1. package/Component-5e1b8383.d.ts +5 -0
  2. package/Component-63dec22f.d.ts +167 -0
  3. package/Component-89a3cf4c.d.ts +6 -0
  4. package/Component-bdb4c6b9.d.ts +12 -0
  5. package/Component-e81c389f.d.ts +5 -0
  6. package/Component-ebda875c.d.ts +12 -0
  7. package/Component.desktop-63dec22f.d.ts +6 -0
  8. package/Component.desktop-785df74d.d.ts +6 -0
  9. package/Component.mobile-d7e9f69d.d.ts +6 -0
  10. package/Component.mobile-ebda875c.d.ts +6 -0
  11. package/Component.responsive-785df74d.d.ts +26 -0
  12. package/Context-bdb4c6b9.d.ts +4 -0
  13. package/ResponsiveContext-baf4875b.d.ts +5 -0
  14. package/component-89a3cf4c.d.ts +44 -0
  15. package/component.d.ts +5 -5
  16. package/component.js +1 -1
  17. package/components/index.js +1 -1
  18. package/components/pagination/Component.js +3 -3
  19. package/components/pagination/index.css +8 -8
  20. package/components/pagination/index.js +1 -1
  21. package/components/pagination/select-field/index.css +4 -4
  22. package/components/pagination/select-field/index.js +1 -1
  23. package/components/table/Component.js +1 -1
  24. package/components/table/index.css +7 -7
  25. package/components/tbody/Component.js +1 -1
  26. package/components/tbody/index.css +2 -2
  27. package/components/tcell/Component.d.ts +3 -2
  28. package/components/tcell/Component.js +1 -1
  29. package/components/tcell/index.css +6 -6
  30. package/components/texpandable-row/Component.d.ts +3 -2
  31. package/components/texpandable-row/Component.js +1 -1
  32. package/components/texpandable-row/index.css +5 -5
  33. package/components/thead/Component.js +1 -1
  34. package/components/thead/index.css +6 -6
  35. package/components/thead-cell/Component.d.ts +3 -2
  36. package/components/thead-cell/Component.js +1 -1
  37. package/components/thead-cell/index.css +10 -9
  38. package/components/trow/Component.d.ts +1 -1
  39. package/components/trow/Component.js +1 -1
  40. package/components/trow/index.css +8 -8
  41. package/components/tsortable-head-cell/Component.d.ts +2 -1
  42. package/components/tsortable-head-cell/Component.js +2 -2
  43. package/components/tsortable-head-cell/index.css +8 -10
  44. package/consts-f777ba1a.d.ts +2 -0
  45. package/cssm/Component-5e1b8383.d.ts +5 -0
  46. package/cssm/Component-63dec22f.d.ts +167 -0
  47. package/cssm/Component-89a3cf4c.d.ts +6 -0
  48. package/cssm/Component-bdb4c6b9.d.ts +12 -0
  49. package/cssm/Component-e81c389f.d.ts +5 -0
  50. package/cssm/Component-ebda875c.d.ts +12 -0
  51. package/cssm/Component.desktop-63dec22f.d.ts +6 -0
  52. package/cssm/Component.desktop-785df74d.d.ts +6 -0
  53. package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
  54. package/cssm/Component.mobile-ebda875c.d.ts +6 -0
  55. package/cssm/Component.responsive-785df74d.d.ts +26 -0
  56. package/cssm/Context-bdb4c6b9.d.ts +4 -0
  57. package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
  58. package/cssm/component-89a3cf4c.d.ts +44 -0
  59. package/cssm/component.d.ts +5 -5
  60. package/cssm/component.js +1 -1
  61. package/cssm/components/index.js +1 -1
  62. package/cssm/components/pagination/Component.js +2 -2
  63. package/cssm/components/pagination/index.js +1 -1
  64. package/cssm/components/tcell/Component.d.ts +3 -2
  65. package/cssm/components/texpandable-row/Component.d.ts +3 -2
  66. package/cssm/components/thead-cell/Component.d.ts +3 -2
  67. package/cssm/components/thead-cell/index.module.css +2 -1
  68. package/cssm/components/trow/Component.d.ts +1 -1
  69. package/cssm/components/tsortable-head-cell/Component.d.ts +2 -1
  70. package/cssm/components/tsortable-head-cell/Component.js +1 -1
  71. package/cssm/components/tsortable-head-cell/index.module.css +0 -2
  72. package/cssm/consts-f777ba1a.d.ts +2 -0
  73. package/cssm/desktop-63dec22f.d.ts +6 -0
  74. package/cssm/hook-5e1b8383.d.ts +75 -0
  75. package/cssm/hook-ebda875c.d.ts +48 -0
  76. package/cssm/index-136acbb1.d.ts +28 -0
  77. package/cssm/index-3109f463.d.ts +62 -0
  78. package/cssm/index-425c8522.d.ts +6 -0
  79. package/cssm/index-89a3cf4c.d.ts +3 -0
  80. package/cssm/index-bdb4c6b9.d.ts +2 -0
  81. package/cssm/index-c44170fe.d.ts +21 -0
  82. package/cssm/index-e81c389f.d.ts +3 -0
  83. package/cssm/index-ebda875c.d.ts +81 -0
  84. package/cssm/index-f12ee135.d.ts +3 -0
  85. package/cssm/index.js +1 -1
  86. package/cssm/mobile-96988a65.d.ts +2 -0
  87. package/cssm/types-425c8522.d.ts +259 -0
  88. package/cssm/types-ebda875c.d.ts +113 -0
  89. package/cssm/typings-5e1b8383.d.ts +550 -0
  90. package/cssm/typings-9211a437.d.ts +95 -0
  91. package/cssm/typings-bdb4c6b9.d.ts +52 -0
  92. package/cssm/utils-1574ad8b.d.ts +29 -0
  93. package/cssm/utils-49cc3c24.d.ts +8 -0
  94. package/cssm/utils-5e1b8383.d.ts +38 -0
  95. package/desktop-63dec22f.d.ts +6 -0
  96. package/esm/Component-5e1b8383.d.ts +5 -0
  97. package/esm/Component-63dec22f.d.ts +167 -0
  98. package/esm/Component-89a3cf4c.d.ts +6 -0
  99. package/esm/Component-bdb4c6b9.d.ts +12 -0
  100. package/esm/Component-e81c389f.d.ts +5 -0
  101. package/esm/Component-ebda875c.d.ts +12 -0
  102. package/esm/Component.desktop-63dec22f.d.ts +6 -0
  103. package/esm/Component.desktop-785df74d.d.ts +6 -0
  104. package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
  105. package/esm/Component.mobile-ebda875c.d.ts +6 -0
  106. package/esm/Component.responsive-785df74d.d.ts +26 -0
  107. package/esm/Context-bdb4c6b9.d.ts +4 -0
  108. package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
  109. package/esm/component-89a3cf4c.d.ts +44 -0
  110. package/esm/component.d.ts +5 -5
  111. package/esm/component.js +1 -1
  112. package/esm/components/index.js +1 -1
  113. package/esm/components/pagination/Component.js +3 -3
  114. package/esm/components/pagination/index.css +8 -8
  115. package/esm/components/pagination/index.js +1 -1
  116. package/esm/components/pagination/select-field/index.css +4 -4
  117. package/esm/components/pagination/select-field/index.js +1 -1
  118. package/esm/components/table/Component.js +1 -1
  119. package/esm/components/table/index.css +7 -7
  120. package/esm/components/tbody/Component.js +1 -1
  121. package/esm/components/tbody/index.css +2 -2
  122. package/esm/components/tcell/Component.d.ts +3 -2
  123. package/esm/components/tcell/Component.js +1 -1
  124. package/esm/components/tcell/index.css +6 -6
  125. package/esm/components/texpandable-row/Component.d.ts +3 -2
  126. package/esm/components/texpandable-row/Component.js +1 -1
  127. package/esm/components/texpandable-row/index.css +5 -5
  128. package/esm/components/thead/Component.js +1 -1
  129. package/esm/components/thead/index.css +6 -6
  130. package/esm/components/thead-cell/Component.d.ts +3 -2
  131. package/esm/components/thead-cell/Component.js +1 -1
  132. package/esm/components/thead-cell/index.css +10 -9
  133. package/esm/components/trow/Component.d.ts +1 -1
  134. package/esm/components/trow/Component.js +1 -1
  135. package/esm/components/trow/index.css +8 -8
  136. package/esm/components/tsortable-head-cell/Component.d.ts +2 -1
  137. package/esm/components/tsortable-head-cell/Component.js +2 -2
  138. package/esm/components/tsortable-head-cell/index.css +8 -10
  139. package/esm/consts-f777ba1a.d.ts +2 -0
  140. package/esm/desktop-63dec22f.d.ts +6 -0
  141. package/esm/hook-5e1b8383.d.ts +75 -0
  142. package/esm/hook-ebda875c.d.ts +48 -0
  143. package/esm/index-136acbb1.d.ts +28 -0
  144. package/esm/index-3109f463.d.ts +62 -0
  145. package/esm/index-425c8522.d.ts +6 -0
  146. package/esm/index-89a3cf4c.d.ts +3 -0
  147. package/esm/index-bdb4c6b9.d.ts +2 -0
  148. package/esm/index-c44170fe.d.ts +21 -0
  149. package/esm/index-e81c389f.d.ts +3 -0
  150. package/esm/index-ebda875c.d.ts +81 -0
  151. package/esm/index-f12ee135.d.ts +3 -0
  152. package/esm/index.js +1 -1
  153. package/esm/mobile-96988a65.d.ts +2 -0
  154. package/esm/types-425c8522.d.ts +259 -0
  155. package/esm/types-ebda875c.d.ts +113 -0
  156. package/esm/typings-5e1b8383.d.ts +550 -0
  157. package/esm/typings-9211a437.d.ts +95 -0
  158. package/esm/typings-bdb4c6b9.d.ts +52 -0
  159. package/esm/utils-1574ad8b.d.ts +29 -0
  160. package/esm/utils-49cc3c24.d.ts +8 -0
  161. package/esm/utils-5e1b8383.d.ts +38 -0
  162. package/hook-5e1b8383.d.ts +75 -0
  163. package/hook-ebda875c.d.ts +48 -0
  164. package/index-136acbb1.d.ts +28 -0
  165. package/index-3109f463.d.ts +62 -0
  166. package/index-425c8522.d.ts +6 -0
  167. package/index-89a3cf4c.d.ts +3 -0
  168. package/index-bdb4c6b9.d.ts +2 -0
  169. package/index-c44170fe.d.ts +21 -0
  170. package/index-e81c389f.d.ts +3 -0
  171. package/index-ebda875c.d.ts +81 -0
  172. package/index-f12ee135.d.ts +3 -0
  173. package/index.js +1 -1
  174. package/mobile-96988a65.d.ts +2 -0
  175. package/modern/Component-5e1b8383.d.ts +5 -0
  176. package/modern/Component-63dec22f.d.ts +167 -0
  177. package/modern/Component-89a3cf4c.d.ts +6 -0
  178. package/modern/Component-bdb4c6b9.d.ts +12 -0
  179. package/modern/Component-e81c389f.d.ts +5 -0
  180. package/modern/Component-ebda875c.d.ts +12 -0
  181. package/modern/Component.desktop-63dec22f.d.ts +6 -0
  182. package/modern/Component.desktop-785df74d.d.ts +6 -0
  183. package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
  184. package/modern/Component.mobile-ebda875c.d.ts +6 -0
  185. package/modern/Component.responsive-785df74d.d.ts +26 -0
  186. package/modern/Context-bdb4c6b9.d.ts +4 -0
  187. package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
  188. package/modern/component-89a3cf4c.d.ts +44 -0
  189. package/modern/component.d.ts +5 -5
  190. package/modern/component.js +1 -1
  191. package/modern/components/index.js +1 -1
  192. package/modern/components/pagination/Component.js +3 -3
  193. package/modern/components/pagination/index.css +8 -8
  194. package/modern/components/pagination/index.js +1 -1
  195. package/modern/components/pagination/select-field/index.css +4 -4
  196. package/modern/components/pagination/select-field/index.js +1 -1
  197. package/modern/components/table/Component.js +1 -1
  198. package/modern/components/table/index.css +7 -7
  199. package/modern/components/tbody/Component.js +1 -1
  200. package/modern/components/tbody/index.css +2 -2
  201. package/modern/components/tcell/Component.d.ts +3 -2
  202. package/modern/components/tcell/Component.js +1 -1
  203. package/modern/components/tcell/index.css +6 -6
  204. package/modern/components/texpandable-row/Component.d.ts +3 -2
  205. package/modern/components/texpandable-row/Component.js +1 -1
  206. package/modern/components/texpandable-row/index.css +5 -5
  207. package/modern/components/thead/Component.js +1 -1
  208. package/modern/components/thead/index.css +6 -6
  209. package/modern/components/thead-cell/Component.d.ts +3 -2
  210. package/modern/components/thead-cell/Component.js +1 -1
  211. package/modern/components/thead-cell/index.css +10 -9
  212. package/modern/components/trow/Component.d.ts +1 -1
  213. package/modern/components/trow/Component.js +1 -1
  214. package/modern/components/trow/index.css +8 -8
  215. package/modern/components/tsortable-head-cell/Component.d.ts +2 -1
  216. package/modern/components/tsortable-head-cell/Component.js +2 -2
  217. package/modern/components/tsortable-head-cell/index.css +8 -10
  218. package/modern/consts-f777ba1a.d.ts +2 -0
  219. package/modern/desktop-63dec22f.d.ts +6 -0
  220. package/modern/hook-5e1b8383.d.ts +75 -0
  221. package/modern/hook-ebda875c.d.ts +48 -0
  222. package/modern/index-136acbb1.d.ts +28 -0
  223. package/modern/index-3109f463.d.ts +62 -0
  224. package/modern/index-425c8522.d.ts +6 -0
  225. package/modern/index-89a3cf4c.d.ts +3 -0
  226. package/modern/index-bdb4c6b9.d.ts +2 -0
  227. package/modern/index-c44170fe.d.ts +21 -0
  228. package/modern/index-e81c389f.d.ts +3 -0
  229. package/modern/index-ebda875c.d.ts +81 -0
  230. package/modern/index-f12ee135.d.ts +3 -0
  231. package/modern/index.js +1 -1
  232. package/modern/mobile-96988a65.d.ts +2 -0
  233. package/modern/types-425c8522.d.ts +259 -0
  234. package/modern/types-ebda875c.d.ts +113 -0
  235. package/modern/typings-5e1b8383.d.ts +550 -0
  236. package/modern/typings-9211a437.d.ts +95 -0
  237. package/modern/typings-bdb4c6b9.d.ts +52 -0
  238. package/modern/utils-1574ad8b.d.ts +29 -0
  239. package/modern/utils-49cc3c24.d.ts +8 -0
  240. package/modern/utils-5e1b8383.d.ts +38 -0
  241. package/package.json +4 -4
  242. package/src/component.tsx +22 -0
  243. package/src/components/index.ts +9 -0
  244. package/src/components/pagination/Component.tsx +104 -0
  245. package/src/components/pagination/index.module.css +38 -0
  246. package/src/components/pagination/index.ts +1 -0
  247. package/src/components/pagination/select-field/index.module.css +13 -0
  248. package/src/components/pagination/select-field/index.tsx +25 -0
  249. package/src/components/table/Component.tsx +109 -0
  250. package/src/components/table/index.module.css +35 -0
  251. package/src/components/table/index.ts +1 -0
  252. package/src/components/table/utils.ts +19 -0
  253. package/src/components/table-context/index.tsx +28 -0
  254. package/src/components/tbody/Component.tsx +22 -0
  255. package/src/components/tbody/index.module.css +6 -0
  256. package/src/components/tbody/index.ts +1 -0
  257. package/src/components/tcell/Component.tsx +56 -0
  258. package/src/components/tcell/index.module.css +35 -0
  259. package/src/components/tcell/index.ts +1 -0
  260. package/src/components/texpandable-row/Component.tsx +58 -0
  261. package/src/components/texpandable-row/index.module.css +25 -0
  262. package/src/components/texpandable-row/index.ts +1 -0
  263. package/src/components/thead/Component.tsx +33 -0
  264. package/src/components/thead/index.module.css +32 -0
  265. package/src/components/thead/index.ts +1 -0
  266. package/src/components/thead-cell/Component.tsx +67 -0
  267. package/src/components/thead-cell/index.module.css +47 -0
  268. package/src/components/thead-cell/index.ts +1 -0
  269. package/src/components/trow/Component.tsx +56 -0
  270. package/src/components/trow/index.module.css +35 -0
  271. package/src/components/trow/index.ts +1 -0
  272. package/src/components/tsortable-head-cell/Component.tsx +50 -0
  273. package/src/components/tsortable-head-cell/index.module.css +41 -0
  274. package/src/components/tsortable-head-cell/index.ts +1 -0
  275. package/src/components/tsortable-head-cell/sort-icon-asc.tsx +16 -0
  276. package/src/components/tsortable-head-cell/sort-icon-desc.tsx +16 -0
  277. package/src/components/tsortable-head-cell/sort-icon-unset.tsx +16 -0
  278. package/src/index.ts +1 -0
  279. package/src/typings.ts +8 -0
  280. package/src/utils.ts +6 -0
  281. package/types-425c8522.d.ts +259 -0
  282. package/types-ebda875c.d.ts +113 -0
  283. package/typings-5e1b8383.d.ts +550 -0
  284. package/typings-9211a437.d.ts +95 -0
  285. package/typings-bdb4c6b9.d.ts +52 -0
  286. package/utils-1574ad8b.d.ts +29 -0
  287. package/utils-49cc3c24.d.ts +8 -0
  288. package/utils-5e1b8383.d.ts +38 -0
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
+ declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { FormControlDesktopProps, FormControlDesktop };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
+ declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { FormControlMobileProps, FormControlMobile };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
4
+ type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
5
+ declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
+ export { ButtonMobileProps, ButtonMobile };
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
+ /**
6
+ * Контрольная точка, с нее начинается desktop версия
7
+ * @default 1024
8
+ */
9
+ breakpoint?: number;
10
+ /**
11
+ * Значение по-умолчанию для хука useMatchMedia
12
+ */
13
+ defaultMatchMediaValue?: boolean | (() => boolean);
14
+ };
15
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
16
+ /**
17
+ * Контрольная точка, с нее начинается desktop версия
18
+ * @default 1024
19
+ */
20
+ breakpoint?: number | undefined;
21
+ /**
22
+ * Значение по-умолчанию для хука useMatchMedia
23
+ */
24
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
+ } & React.RefAttributes<HTMLDivElement>>;
26
+ export { FormControlProps, FormControl };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { BaseModalContext } from "./index-bdb4c6b9";
3
+ declare const ModalContext: import("react").Context<BaseModalContext>;
4
+ export { ModalContext };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TResponsiveModalContext } from "./typings-bdb4c6b9";
4
+ declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
+ export { ResponsiveContext };
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ReactNode, RefObject } from "react";
4
+ import { NavigationBarProps } from "./index-e81c389f";
5
+ import { SwipeableHandlers } from "react-swipeable";
6
+ import { BackdropProps } from "./index-ebda875c";
7
+ import { BottomSheetProps } from "./types-425c8522";
8
+ type FooterProps = {
9
+ /**
10
+ * Контент футера
11
+ */
12
+ children?: ReactNode;
13
+ /**
14
+ * Фиксирует футер
15
+ */
16
+ sticky?: boolean;
17
+ /**
18
+ * Дополнительный класс
19
+ */
20
+ className?: string;
21
+ };
22
+ declare const Footer: FC<FooterProps>;
23
+ type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
24
+ headerRef: RefObject<HTMLDivElement>;
25
+ headerOffset: number;
26
+ };
27
+ declare const Header: FC<HeaderProps>;
28
+ type SwipeableBackdropProps = BackdropProps & {
29
+ /**
30
+ * Прозрачность бэкдропа
31
+ */
32
+ opacity?: number;
33
+ /**
34
+ * Обработчики свайпа
35
+ */
36
+ handlers?: SwipeableHandlers;
37
+ /**
38
+ * Время анимации opacity
39
+ */
40
+ opacityTimeout?: number;
41
+ };
42
+ declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
43
+ declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
44
+ export { FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop, BottomSheet };
@@ -11,11 +11,11 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
11
11
  } & import("react").RefAttributes<HTMLTableElement>> & {
12
12
  TBody: import("react").FC<import("./components/index").TBodyProps>;
13
13
  THead: import("react").FC<import("./components/index").THeadProps>;
14
- THeadCell: ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }: import("./components/index").THeadCellProps) => JSX.Element | null;
15
- TSortableHeadCell: ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }: import("./components/index").TSortableHeadCellProps) => JSX.Element;
16
- TCell: ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => JSX.Element | null;
17
- TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: import("./components/index").TRowProps) => JSX.Element;
18
- TExpandableRow: ({ className, selected, expanded, defaultExpanded, onToggle, renderContent, ...restProps }: import("./components/index").TExpandableRowProps) => JSX.Element;
14
+ THeadCell: ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }: import("./components/index").THeadCellProps) => import("react").JSX.Element | null;
15
+ TSortableHeadCell: ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }: import("./components/index").TSortableHeadCellProps) => import("react").JSX.Element;
16
+ TCell: ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null;
17
+ TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: import("./components/index").TRowProps) => import("react").JSX.Element;
18
+ TExpandableRow: ({ className, selected, expanded, defaultExpanded, onToggle, renderContent, ...restProps }: import("./components/index").TExpandableRowProps) => import("react").JSX.Element;
19
19
  Pagination: import("react").FC<import("./components/index").PaginationProps>;
20
20
  };
21
21
  export { Table };
@@ -13,7 +13,7 @@ import './components/table-context/index.js';
13
13
  import './components/table/utils.js';
14
14
  import './utils.js';
15
15
  import '@alfalab/core-components-pagination/modern';
16
- import '@alfalab/core-components-select/modern';
16
+ import '@alfalab/core-components-select/modern/desktop';
17
17
  import './components/pagination/select-field/index.js';
18
18
  import '@alfalab/core-components-button/modern';
19
19
  import './components/tsortable-head-cell/sort-icon-asc.js';
@@ -13,7 +13,7 @@ import './table-context/index.js';
13
13
  import './table/utils.js';
14
14
  import '../utils.js';
15
15
  import '@alfalab/core-components-pagination/modern';
16
- import '@alfalab/core-components-select/modern';
16
+ import '@alfalab/core-components-select/modern/desktop';
17
17
  import './pagination/select-field/index.js';
18
18
  import '@alfalab/core-components-button/modern';
19
19
  import './tsortable-head-cell/sort-icon-asc.js';
@@ -1,12 +1,12 @@
1
1
  import React, { useContext, useMemo, useCallback } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/modern';
4
- import { Select } from '@alfalab/core-components-select/modern';
4
+ import { SelectDesktop } from '@alfalab/core-components-select/modern/desktop';
5
5
  import { TableContext } from '../table-context/index.js';
6
6
  import { CustomSelectField } from './select-field/index.js';
7
7
  import '@alfalab/core-components-button/modern';
8
8
 
9
- const styles = {"component":"table__component_ki3dy","pagesWrapper":"table__pagesWrapper_ki3dy","tag":"table__tag_ki3dy","tagActive":"table__tagActive_ki3dy","menu":"table__menu_ki3dy","option":"table__option_ki3dy"};
9
+ const styles = {"component":"table__component_16gby","pagesWrapper":"table__pagesWrapper_16gby","tag":"table__tag_16gby","tagActive":"table__tagActive_16gby","menu":"table__menu_16gby","option":"table__option_16gby"};
10
10
  require('./index.css')
11
11
 
12
12
  const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageChange = () => null, pagesCount, onPageChange = () => null, className, dataTestId, ...restPaginationProps }) => {
@@ -29,7 +29,7 @@ const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageCh
29
29
  }, 0);
30
30
  }, [onPageChange, wrapperRef]);
31
31
  return (React.createElement("div", { className: cn(styles.component, className), "data-test-id": dataTestId },
32
- React.createElement(Select, { options: options, selected: perPage.toString(), onChange: handlePerPageChange, preventFlip: false, size: 's', className: styles.select, optionsListClassName: styles.menu, optionClassName: styles.option, Field: CustomSelectField }),
32
+ React.createElement(SelectDesktop, { options: options, selected: perPage.toString(), onChange: handlePerPageChange, preventFlip: false, size: 's', className: styles.select, optionsListClassName: styles.menu, optionClassName: styles.option, Field: CustomSelectField }),
33
33
  pagesCount > 1 && (React.createElement(Pagination$1, { pagesCount: pagesCount, onPageChange: handlePageChange, ...restPaginationProps }))));
34
34
  };
35
35
 
@@ -1,4 +1,4 @@
1
- /* hash: 79z0r */
1
+ /* hash: 1mktp */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dcdcdd; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -20,7 +20,7 @@
20
20
  --gap-2xl: 32px;
21
21
  } :root {
22
22
  } :root {
23
- } .table__component_ki3dy {
23
+ } .table__component_16gby {
24
24
  display: flex;
25
25
  justify-content: space-between;
26
26
  align-items: flex-start;
@@ -28,19 +28,19 @@
28
28
  padding: var(--gap-xl) var(--gap-m) var(--gap-2xl);
29
29
  border-top: 1px solid var(--color-light-border-primary);
30
30
  box-sizing: border-box;
31
- } .table__pagesWrapper_ki3dy {
31
+ } .table__pagesWrapper_16gby {
32
32
  display: flex;
33
- } .table__tag_ki3dy.table__tag_ki3dy {
33
+ } .table__tag_16gby.table__tag_16gby {
34
34
  flex-shrink: 0;
35
35
  margin-right: var(--gap-xs);
36
36
  padding: 0 var(--gap-xs);
37
37
  min-width: 32px
38
- } .table__tag_ki3dy.table__tag_ki3dy:last-child {
38
+ } .table__tag_16gby.table__tag_16gby:last-child {
39
39
  margin-right: 0;
40
- } .table__tag_ki3dy.table__tag_ki3dy.table__tagActive_ki3dy {
40
+ } .table__tag_16gby.table__tag_16gby.table__tagActive_16gby {
41
41
  cursor: default;
42
- } .table__menu_ki3dy {
42
+ } .table__menu_16gby {
43
43
  margin: var(--gap-2xs) 0;
44
- } .table__option_ki3dy {
44
+ } .table__option_16gby {
45
45
  min-width: 208px;
46
46
  }
@@ -2,7 +2,7 @@ export { Pagination } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-pagination/modern';
5
- import '@alfalab/core-components-select/modern';
5
+ import '@alfalab/core-components-select/modern/desktop';
6
6
  import '../table-context/index.js';
7
7
  import './select-field/index.js';
8
8
  import '@alfalab/core-components-button/modern';
@@ -1,4 +1,4 @@
1
- /* hash: lol3c */
1
+ /* hash: 1ybq8 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  --color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
@@ -15,10 +15,10 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .table__field_14ksb svg {
18
+ } .table__field_11fad svg {
19
19
  width: 18px;
20
20
  height: 18px;
21
- } .table__open_14ksb,
22
- .table__open_14ksb:hover {
21
+ } .table__open_11fad,
22
+ .table__open_11fad:hover {
23
23
  background-color: var(--color-light-specialbg-component-shade-7);
24
24
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/modern';
4
4
 
5
- const styles = {"field":"table__field_14ksb","open":"table__open_14ksb"};
5
+ const styles = {"field":"table__field_11fad","open":"table__open_11fad"};
6
6
  require('./index.css')
7
7
 
8
8
  const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
@@ -5,7 +5,7 @@ import { findAllHeadCellsProps } from './utils.js';
5
5
  import '../../utils.js';
6
6
  import '../thead/Component.js';
7
7
 
8
- const styles = {"component":"table__component_gbj6g","wrapper":"table__wrapper_gbj6g","stickyHeader":"table__stickyHeader_gbj6g","hasPagination":"table__hasPagination_gbj6g","table":"table__table_gbj6g"};
8
+ const styles = {"component":"table__component_5b8fb","wrapper":"table__wrapper_5b8fb","stickyHeader":"table__stickyHeader_5b8fb","hasPagination":"table__hasPagination_5b8fb","table":"table__table_5b8fb"};
9
9
  require('./index.css')
10
10
 
11
11
  const Table = forwardRef(({ className, children, compactView = false, compactHorizontal = false, wrapper = true, pagination, dataTestId, stickyHeader = false, ...restProps }, ref) => {
@@ -1,4 +1,4 @@
1
- /* hash: y6x9a */
1
+ /* hash: x98qu */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -18,24 +18,24 @@
18
18
  --gap-m: 16px;
19
19
  } :root {
20
20
  } :root {
21
- } .table__component_gbj6g {
21
+ } .table__component_5b8fb {
22
22
  box-sizing: border-box;
23
- } .table__wrapper_gbj6g {
23
+ } .table__wrapper_5b8fb {
24
24
  padding: 0 var(--gap-m) var(--gap-m);
25
25
  background: var(--color-light-bg-primary);
26
26
  box-shadow: var(--shadow-xs-hard);
27
27
  border-radius: var(--border-radius-m);
28
28
  overflow: auto;
29
- } .table__stickyHeader_gbj6g {
29
+ } .table__stickyHeader_5b8fb {
30
30
  max-height: 100%;
31
- } .table__hasPagination_gbj6g {
31
+ } .table__hasPagination_5b8fb {
32
32
  padding-bottom: 0;
33
- } .table__table_gbj6g {
33
+ } .table__table_5b8fb {
34
34
  width: 100%;
35
35
  border-collapse: collapse;
36
36
  box-sizing: border-box
37
37
 
38
38
  /* TODO: Хак для выравнивания чекбокса */
39
- } .table__table_gbj6g td:first-child label > *[class^='box'], .table__table_gbj6g th:first-child label > *[class^='box'] {
39
+ } .table__table_5b8fb td:first-child label > *[class^='box'], .table__table_5b8fb th:first-child label > *[class^='box'] {
40
40
  margin-top: 0;
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"table__component_1np9f"};
4
+ const styles = {"component":"table__component_1ym5x"};
5
5
  require('./index.css')
6
6
 
7
7
  const TBody = ({ className, children, dataTestId, ...restProps }) => (React.createElement("tbody", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps }, children));
@@ -1,4 +1,4 @@
1
- /* hash: jxrm5 */
1
+ /* hash: ex3rk */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -14,7 +14,7 @@
14
14
  } :root {
15
15
  } :root {
16
16
  } :root {
17
- } .table__component_1np9f {
17
+ } .table__component_1ym5x {
18
18
  width: 100%;
19
19
  box-sizing: border-box;
20
20
  }
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { TdHTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ import { TdHTMLAttributes } from "react";
3
4
  type TCellProps = TdHTMLAttributes<HTMLTableCellElement> & {
4
5
  /**
5
6
  * Дополнительный класс
@@ -14,5 +15,5 @@ type TCellProps = TdHTMLAttributes<HTMLTableCellElement> & {
14
15
  */
15
16
  index?: number;
16
17
  };
17
- declare const TCell: ({ className, style, dataTestId, children, index, ...restProps }: TCellProps) => JSX.Element | null;
18
+ declare const TCell: ({ className, style, dataTestId, children, index, ...restProps }: TCellProps) => React.JSX.Element | null;
18
19
  export { TCellProps, TCell };
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TableContext } from '../table-context/index.js';
4
4
 
5
- const styles = {"component":"table__component_1yn2i","compactHorizontal":"table__compactHorizontal_1yn2i","compact":"table__compact_1yn2i"};
5
+ const styles = {"component":"table__component_1rb17","compactHorizontal":"table__compactHorizontal_1rb17","compact":"table__compact_1rb17"};
6
6
  require('./index.css')
7
7
 
8
8
  const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1551m */
1
+ /* hash: 1utnc */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dcdcdd;
@@ -20,7 +20,7 @@
20
20
  --gap-xl: 24px;
21
21
  } :root {
22
22
  } :root {
23
- } .table__component_1yn2i {
23
+ } .table__component_1rb17 {
24
24
  font-size: 14px;
25
25
  line-height: 20px;
26
26
  font-weight: 400;
@@ -31,14 +31,14 @@
31
31
  border-top: 1px solid var(--color-light-border-primary);
32
32
  vertical-align: top;
33
33
  box-sizing: border-box
34
- } .table__component_1yn2i:first-child {
34
+ } .table__component_1rb17:first-child {
35
35
  padding-left: var(--gap-m);
36
- } .table__component_1yn2i:last-child {
36
+ } .table__component_1rb17:last-child {
37
37
  padding-right: var(--gap-m);
38
- } .table__compactHorizontal_1yn2i {
38
+ } .table__compactHorizontal_1rb17 {
39
39
  padding-left: 6px;
40
40
  padding-right: 6px;
41
- } .table__compact_1yn2i {
41
+ } .table__compact_1rb17 {
42
42
  padding-top: var(--gap-xs);
43
43
  padding-bottom: var(--gap-xs);
44
44
 
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ReactNode } from 'react';
2
+ import React from 'react';
3
+ import { ReactNode } from "react";
3
4
  import { TRowProps } from "../trow/index";
4
5
  type TExpandableRowProps = TRowProps & {
5
6
  defaultExpanded?: boolean;
@@ -7,5 +8,5 @@ type TExpandableRowProps = TRowProps & {
7
8
  onToggle?: (expanded: boolean) => void;
8
9
  renderContent: (expanded: boolean) => ReactNode;
9
10
  };
10
- declare const TExpandableRow: ({ className, selected, expanded, defaultExpanded, onToggle, renderContent, ...restProps }: TExpandableRowProps) => JSX.Element;
11
+ declare const TExpandableRow: ({ className, selected, expanded, defaultExpanded, onToggle, renderContent, ...restProps }: TExpandableRowProps) => React.JSX.Element;
11
12
  export { TExpandableRowProps, TExpandableRow };
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TRow } from '../trow/Component.js';
4
4
 
5
- const styles = {"row":"table__row_ef6ys","selected":"table__selected_ef6ys","expanded":"table__expanded_ef6ys","expandable":"table__expandable_ef6ys"};
5
+ const styles = {"row":"table__row_3iagx","selected":"table__selected_3iagx","expanded":"table__expanded_3iagx","expandable":"table__expandable_3iagx"};
6
6
  require('./index.css')
7
7
 
8
8
  const TExpandableRow = ({ className, selected, expanded, defaultExpanded = false, onToggle = () => null, renderContent = () => null, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: qkixn */
1
+ /* hash: qf692 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -14,13 +14,13 @@
14
14
  } :root {
15
15
  } :root {
16
16
  } :root {
17
- } .table__row_ef6ys {
17
+ } .table__row_3iagx {
18
18
  cursor: pointer;
19
- } .table__selected_ef6ys.table__expanded_ef6ys {
19
+ } .table__selected_3iagx.table__expanded_3iagx {
20
20
  background-color: inherit;
21
- } .table__expanded_ef6ys:hover {
21
+ } .table__expanded_3iagx:hover {
22
22
  background-color: inherit;
23
- } .table__expandable_ef6ys td {
23
+ } .table__expandable_3iagx td {
24
24
  margin: 0;
25
25
  padding-top: 0;
26
26
  padding-bottom: 0;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"table__component_v2ssl","row":"table__row_v2ssl"};
4
+ const styles = {"component":"table__component_1gjld","row":"table__row_1gjld"};
5
5
  require('./index.css')
6
6
 
7
7
  const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => (React.createElement("thead", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps },
@@ -1,4 +1,4 @@
1
- /* hash: 1p6uy */
1
+ /* hash: 1q4jg */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-quaternary: #dcdcdd; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,11 +16,11 @@
16
16
  --gap-xs: 8px;
17
17
  } :root {
18
18
  } :root {
19
- } .table__component_v2ssl {
19
+ } .table__component_1gjld {
20
20
  position: relative;
21
21
  width: 100%;
22
22
  box-sizing: border-box
23
- } .table__component_v2ssl th:not(:last-child):not(:empty):after {
23
+ } .table__component_1gjld th:not(:last-child):not(:empty):after {
24
24
  transition: opacity 0.2s;
25
25
  position: absolute;
26
26
  content: '';
@@ -31,10 +31,10 @@
31
31
  top: var(--gap-xs);
32
32
  bottom: var(--gap-xs);
33
33
  background-color: var(--color-light-graphic-quaternary);
34
- } .table__component_v2ssl th:after {
34
+ } .table__component_1gjld th:after {
35
35
  opacity: 0;
36
- } .table__component_v2ssl:hover th:after {
36
+ } .table__component_1gjld:hover th:after {
37
37
  opacity: 1;
38
- } .table__row_v2ssl {
38
+ } .table__row_1gjld {
39
39
  height: 72px;
40
40
  }
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ThHTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ import { ThHTMLAttributes } from "react";
3
4
  import { TextAlignProperty } from "../../typings";
4
5
  type THeadCellProps = ThHTMLAttributes<HTMLHeadingElement> & {
5
6
  /**
@@ -23,5 +24,5 @@ type THeadCellProps = ThHTMLAttributes<HTMLHeadingElement> & {
23
24
  */
24
25
  dataTestId?: string;
25
26
  };
26
- declare const THeadCell: ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }: THeadCellProps) => JSX.Element | null;
27
+ declare const THeadCell: ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }: THeadCellProps) => React.JSX.Element | null;
27
28
  export { THeadCellProps, THeadCell };
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TableContext } from '../table-context/index.js';
4
4
 
5
- const styles = {"component":"table__component_1v2jt","sortable":"table__sortable_1v2jt","sorted":"table__sorted_1v2jt","stickyHeader":"table__stickyHeader_1v2jt","compactHorizontal":"table__compactHorizontal_1v2jt"};
5
+ const styles = {"component":"table__component_19lr8","stickyHeader":"table__stickyHeader_19lr8","sortable":"table__sortable_19lr8","sorted":"table__sorted_19lr8","compactHorizontal":"table__compactHorizontal_19lr8"};
6
6
  require('./index.css')
7
7
 
8
8
  const THeadCell = ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: ztmeg */
1
+ /* hash: 1jjvr */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -21,7 +21,7 @@
21
21
  --gap-2xl: 32px;
22
22
  } :root {
23
23
  } :root {
24
- } .table__component_1v2jt {
24
+ } .table__component_19lr8 {
25
25
  font-size: 12px;
26
26
  line-height: 16px;
27
27
  font-weight: 500;
@@ -29,7 +29,6 @@
29
29
  text-transform: uppercase;
30
30
 
31
31
  line-height: 20px;
32
- position: relative;
33
32
  text-align: left;
34
33
  color: var(--color-light-text-primary);
35
34
  padding: var(--gap-2xl) var(--gap-s) var(--gap-2xs);
@@ -37,21 +36,23 @@
37
36
  background: var(--color-light-bg-primary);
38
37
  vertical-align: top;
39
38
  box-sizing: border-box
40
- } .table__component_1v2jt:first-child {
39
+ } .table__component_19lr8:first-child {
41
40
  padding-left: var(--gap-m);
42
- } .table__component_1v2jt:last-child {
41
+ } .table__component_19lr8:last-child {
43
42
  padding-right: var(--gap-m);
44
- } .table__sortable_1v2jt {
43
+ } .table__component_19lr8:not(.table__stickyHeader_19lr8) {
44
+ position: relative;
45
+ } .table__sortable_19lr8 {
45
46
  cursor: pointer;
46
- } .table__sorted_1v2jt {
47
+ } .table__sorted_19lr8 {
47
48
  color: var(--color-light-text-primary);
48
- } .table__stickyHeader_1v2jt {
49
+ } .table__stickyHeader_19lr8 {
49
50
  top: 0;
50
51
  position: sticky;
51
52
  box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
52
53
  border: none;
53
54
  z-index: 1;
54
- } .table__compactHorizontal_1v2jt {
55
+ } .table__compactHorizontal_19lr8 {
55
56
  padding-left: 6px;
56
57
  padding-right: 6px;
57
58
  }
@@ -25,5 +25,5 @@ type TRowProps = HTMLAttributes<HTMLTableRowElement> & {
25
25
  */
26
26
  dataTestId?: string;
27
27
  };
28
- declare const TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: TRowProps) => JSX.Element;
28
+ declare const TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: TRowProps) => React.JSX.Element;
29
29
  export { TRowProps, TRow };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"table__component_1jdfp","withoutBorder":"table__withoutBorder_1jdfp","clickable":"table__clickable_1jdfp","selected":"table__selected_1jdfp"};
4
+ const styles = {"component":"table__component_jb2m6","withoutBorder":"table__withoutBorder_jb2m6","clickable":"table__clickable_jb2m6","selected":"table__selected_jb2m6"};
5
5
  require('./index.css')
6
6
 
7
7
  const TRow = ({ children, className, selected, withoutBorder, dataTestId, ...restProps }) => (React.createElement("tr", { className: cn(styles.component, className, {
@@ -1,4 +1,4 @@
1
- /* hash: 5olj8 */
1
+ /* hash: vd79c */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -17,22 +17,22 @@
17
17
  } :root {
18
18
  } :root {
19
19
  } :root {
20
- } .table__component_1jdfp {
20
+ } .table__component_jb2m6 {
21
21
  padding-top: 1px;
22
22
  width: 100%;
23
23
  transition: background-color 0.2s;
24
24
  box-sizing: border-box;
25
25
  background: var(--color-light-bg-primary)
26
- } .table__component_1jdfp:first-child td {
26
+ } .table__component_jb2m6:first-child td {
27
27
  border-top: 0;
28
- } .table__withoutBorder_1jdfp td {
28
+ } .table__withoutBorder_jb2m6 td {
29
29
  border: none;
30
- } .table__clickable_1jdfp {
30
+ } .table__clickable_jb2m6 {
31
31
  cursor: pointer
32
- } .table__clickable_1jdfp:hover {
32
+ } .table__clickable_jb2m6:hover {
33
33
  background-color: var(--color-light-bg-secondary);
34
- } .table__selected_1jdfp {
34
+ } .table__selected_jb2m6 {
35
35
  background-color: #f2f8ff /* нет цвета в палитре */
36
- } .table__selected_1jdfp:hover {
36
+ } .table__selected_jb2m6:hover {
37
37
  background-color: var(--color-static-graphic-solitude);
38
38
  }