@alfalab/core-components-table 1.1.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 (281) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/component.d.ts +24 -0
  3. package/dist/component.js +39 -0
  4. package/dist/components/index.d.ts +9 -0
  5. package/dist/components/index.js +38 -0
  6. package/dist/components/pagination/Component.d.ts +22 -0
  7. package/dist/components/pagination/Component.js +52 -0
  8. package/dist/components/pagination/index.css +49 -0
  9. package/dist/components/pagination/index.d.ts +1 -0
  10. package/dist/components/pagination/index.js +17 -0
  11. package/dist/components/pagination/select-field/index.css +20 -0
  12. package/dist/components/pagination/select-field/index.d.ts +3 -0
  13. package/dist/components/pagination/select-field/index.js +26 -0
  14. package/dist/components/table/Component.d.ts +56 -0
  15. package/dist/components/table/Component.js +42 -0
  16. package/dist/components/table/index.css +39 -0
  17. package/dist/components/table/index.d.ts +1 -0
  18. package/dist/components/table/index.js +16 -0
  19. package/dist/components/table/utils.d.ts +5 -0
  20. package/dist/components/table/utils.js +27 -0
  21. package/dist/components/table-context/index.d.ts +18 -0
  22. package/dist/components/table-context/index.js +19 -0
  23. package/dist/components/tbody/Component.d.ts +15 -0
  24. package/dist/components/tbody/Component.js +22 -0
  25. package/dist/components/tbody/index.css +13 -0
  26. package/dist/components/tbody/index.d.ts +1 -0
  27. package/dist/components/tbody/index.js +12 -0
  28. package/dist/components/tcell/Component.d.ts +18 -0
  29. package/dist/components/tcell/Component.js +28 -0
  30. package/dist/components/tcell/index.css +42 -0
  31. package/dist/components/tcell/index.d.ts +1 -0
  32. package/dist/components/tcell/index.js +13 -0
  33. package/dist/components/texpandable-row/Component.d.ts +11 -0
  34. package/dist/components/texpandable-row/Component.js +38 -0
  35. package/dist/components/texpandable-row/index.css +24 -0
  36. package/dist/components/texpandable-row/index.d.ts +1 -0
  37. package/dist/components/texpandable-row/index.js +13 -0
  38. package/dist/components/thead/Component.d.ts +19 -0
  39. package/dist/components/thead/Component.js +23 -0
  40. package/dist/components/thead/index.css +38 -0
  41. package/dist/components/thead/index.d.ts +1 -0
  42. package/dist/components/thead/index.js +12 -0
  43. package/dist/components/thead-cell/Component.d.ts +27 -0
  44. package/dist/components/thead-cell/Component.js +22 -0
  45. package/dist/components/thead-cell/index.css +44 -0
  46. package/dist/components/thead-cell/index.d.ts +1 -0
  47. package/dist/components/thead-cell/index.js +12 -0
  48. package/dist/components/trow/Component.d.ts +28 -0
  49. package/dist/components/trow/Component.js +27 -0
  50. package/dist/components/trow/index.css +43 -0
  51. package/dist/components/trow/index.d.ts +1 -0
  52. package/dist/components/trow/index.js +12 -0
  53. package/dist/components/tsortable-head-cell/Component.d.ts +9 -0
  54. package/dist/components/tsortable-head-cell/Component.js +40 -0
  55. package/dist/components/tsortable-head-cell/index.css +46 -0
  56. package/dist/components/tsortable-head-cell/index.d.ts +1 -0
  57. package/dist/components/tsortable-head-cell/index.js +16 -0
  58. package/dist/components/tsortable-head-cell/sort-icon-asc.d.ts +5 -0
  59. package/dist/components/tsortable-head-cell/sort-icon-asc.js +15 -0
  60. package/dist/components/tsortable-head-cell/sort-icon-desc.d.ts +5 -0
  61. package/dist/components/tsortable-head-cell/sort-icon-desc.js +15 -0
  62. package/dist/components/tsortable-head-cell/sort-icon-unset.d.ts +5 -0
  63. package/dist/components/tsortable-head-cell/sort-icon-unset.js +15 -0
  64. package/dist/cssm/component.d.ts +24 -0
  65. package/dist/cssm/component.js +49 -0
  66. package/dist/cssm/components/index.d.ts +9 -0
  67. package/dist/cssm/components/index.js +48 -0
  68. package/dist/cssm/components/pagination/Component.d.ts +22 -0
  69. package/dist/cssm/components/pagination/Component.js +52 -0
  70. package/dist/cssm/components/pagination/index.d.ts +1 -0
  71. package/dist/cssm/components/pagination/index.js +19 -0
  72. package/dist/cssm/components/pagination/index.module.css +48 -0
  73. package/dist/cssm/components/pagination/select-field/index.d.ts +3 -0
  74. package/dist/cssm/components/pagination/select-field/index.js +25 -0
  75. package/dist/cssm/components/pagination/select-field/index.module.css +19 -0
  76. package/dist/cssm/components/table/Component.d.ts +56 -0
  77. package/dist/cssm/components/table/Component.js +42 -0
  78. package/dist/cssm/components/table/index.d.ts +1 -0
  79. package/dist/cssm/components/table/index.js +18 -0
  80. package/dist/cssm/components/table/index.module.css +38 -0
  81. package/dist/cssm/components/table/utils.d.ts +5 -0
  82. package/dist/cssm/components/table/utils.js +28 -0
  83. package/dist/cssm/components/table-context/index.d.ts +18 -0
  84. package/dist/cssm/components/table-context/index.js +19 -0
  85. package/dist/cssm/components/tbody/Component.d.ts +15 -0
  86. package/dist/cssm/components/tbody/Component.js +21 -0
  87. package/dist/cssm/components/tbody/index.d.ts +1 -0
  88. package/dist/cssm/components/tbody/index.js +13 -0
  89. package/dist/cssm/components/tbody/index.module.css +12 -0
  90. package/dist/cssm/components/tcell/Component.d.ts +18 -0
  91. package/dist/cssm/components/tcell/Component.js +27 -0
  92. package/dist/cssm/components/tcell/index.d.ts +1 -0
  93. package/dist/cssm/components/tcell/index.js +14 -0
  94. package/dist/cssm/components/tcell/index.module.css +41 -0
  95. package/dist/cssm/components/texpandable-row/Component.d.ts +11 -0
  96. package/dist/cssm/components/texpandable-row/Component.js +38 -0
  97. package/dist/cssm/components/texpandable-row/index.d.ts +1 -0
  98. package/dist/cssm/components/texpandable-row/index.js +15 -0
  99. package/dist/cssm/components/texpandable-row/index.module.css +23 -0
  100. package/dist/cssm/components/thead/Component.d.ts +19 -0
  101. package/dist/cssm/components/thead/Component.js +22 -0
  102. package/dist/cssm/components/thead/index.d.ts +1 -0
  103. package/dist/cssm/components/thead/index.js +13 -0
  104. package/dist/cssm/components/thead/index.module.css +37 -0
  105. package/dist/cssm/components/thead-cell/Component.d.ts +27 -0
  106. package/dist/cssm/components/thead-cell/Component.js +21 -0
  107. package/dist/cssm/components/thead-cell/index.d.ts +1 -0
  108. package/dist/cssm/components/thead-cell/index.js +13 -0
  109. package/dist/cssm/components/thead-cell/index.module.css +43 -0
  110. package/dist/cssm/components/trow/Component.d.ts +28 -0
  111. package/dist/cssm/components/trow/Component.js +26 -0
  112. package/dist/cssm/components/trow/index.d.ts +1 -0
  113. package/dist/cssm/components/trow/index.js +13 -0
  114. package/dist/cssm/components/trow/index.module.css +42 -0
  115. package/dist/cssm/components/tsortable-head-cell/Component.d.ts +9 -0
  116. package/dist/cssm/components/tsortable-head-cell/Component.js +40 -0
  117. package/dist/cssm/components/tsortable-head-cell/index.d.ts +1 -0
  118. package/dist/cssm/components/tsortable-head-cell/index.js +18 -0
  119. package/dist/cssm/components/tsortable-head-cell/index.module.css +45 -0
  120. package/dist/cssm/components/tsortable-head-cell/sort-icon-asc.d.ts +5 -0
  121. package/dist/cssm/components/tsortable-head-cell/sort-icon-asc.js +15 -0
  122. package/dist/cssm/components/tsortable-head-cell/sort-icon-desc.d.ts +5 -0
  123. package/dist/cssm/components/tsortable-head-cell/sort-icon-desc.js +15 -0
  124. package/dist/cssm/components/tsortable-head-cell/sort-icon-unset.d.ts +5 -0
  125. package/dist/cssm/components/tsortable-head-cell/sort-icon-unset.js +15 -0
  126. package/dist/cssm/index.d.ts +1 -0
  127. package/dist/cssm/index.js +41 -0
  128. package/dist/cssm/tslib.es6-ce870b46.d.ts +32 -0
  129. package/dist/cssm/tslib.es6-ce870b46.js +42 -0
  130. package/dist/cssm/typings.d.ts +2 -0
  131. package/dist/cssm/typings.js +2 -0
  132. package/dist/cssm/utils.d.ts +4 -0
  133. package/dist/cssm/utils.js +16 -0
  134. package/dist/esm/component.d.ts +24 -0
  135. package/dist/esm/component.js +35 -0
  136. package/dist/esm/components/index.d.ts +9 -0
  137. package/dist/esm/components/index.js +22 -0
  138. package/dist/esm/components/pagination/Component.d.ts +22 -0
  139. package/dist/esm/components/pagination/Component.js +43 -0
  140. package/dist/esm/components/pagination/index.css +49 -0
  141. package/dist/esm/components/pagination/index.d.ts +1 -0
  142. package/dist/esm/components/pagination/index.js +9 -0
  143. package/dist/esm/components/pagination/select-field/index.css +20 -0
  144. package/dist/esm/components/pagination/select-field/index.d.ts +3 -0
  145. package/dist/esm/components/pagination/select-field/index.js +17 -0
  146. package/dist/esm/components/table/Component.d.ts +56 -0
  147. package/dist/esm/components/table/Component.js +33 -0
  148. package/dist/esm/components/table/index.css +39 -0
  149. package/dist/esm/components/table/index.d.ts +1 -0
  150. package/dist/esm/components/table/index.js +8 -0
  151. package/dist/esm/components/table/utils.d.ts +5 -0
  152. package/dist/esm/components/table/utils.js +19 -0
  153. package/dist/esm/components/table-context/index.d.ts +18 -0
  154. package/dist/esm/components/table-context/index.js +10 -0
  155. package/dist/esm/components/tbody/Component.d.ts +15 -0
  156. package/dist/esm/components/tbody/Component.js +13 -0
  157. package/dist/esm/components/tbody/index.css +13 -0
  158. package/dist/esm/components/tbody/index.d.ts +1 -0
  159. package/dist/esm/components/tbody/index.js +4 -0
  160. package/dist/esm/components/tcell/Component.d.ts +18 -0
  161. package/dist/esm/components/tcell/Component.js +19 -0
  162. package/dist/esm/components/tcell/index.css +42 -0
  163. package/dist/esm/components/tcell/index.d.ts +1 -0
  164. package/dist/esm/components/tcell/index.js +5 -0
  165. package/dist/esm/components/texpandable-row/Component.d.ts +11 -0
  166. package/dist/esm/components/texpandable-row/Component.js +29 -0
  167. package/dist/esm/components/texpandable-row/index.css +24 -0
  168. package/dist/esm/components/texpandable-row/index.d.ts +1 -0
  169. package/dist/esm/components/texpandable-row/index.js +5 -0
  170. package/dist/esm/components/thead/Component.d.ts +19 -0
  171. package/dist/esm/components/thead/Component.js +14 -0
  172. package/dist/esm/components/thead/index.css +38 -0
  173. package/dist/esm/components/thead/index.d.ts +1 -0
  174. package/dist/esm/components/thead/index.js +4 -0
  175. package/dist/esm/components/thead-cell/Component.d.ts +27 -0
  176. package/dist/esm/components/thead-cell/Component.js +13 -0
  177. package/dist/esm/components/thead-cell/index.css +44 -0
  178. package/dist/esm/components/thead-cell/index.d.ts +1 -0
  179. package/dist/esm/components/thead-cell/index.js +4 -0
  180. package/dist/esm/components/trow/Component.d.ts +28 -0
  181. package/dist/esm/components/trow/Component.js +18 -0
  182. package/dist/esm/components/trow/index.css +43 -0
  183. package/dist/esm/components/trow/index.d.ts +1 -0
  184. package/dist/esm/components/trow/index.js +4 -0
  185. package/dist/esm/components/tsortable-head-cell/Component.d.ts +9 -0
  186. package/dist/esm/components/tsortable-head-cell/Component.js +31 -0
  187. package/dist/esm/components/tsortable-head-cell/index.css +46 -0
  188. package/dist/esm/components/tsortable-head-cell/index.d.ts +1 -0
  189. package/dist/esm/components/tsortable-head-cell/index.js +8 -0
  190. package/dist/esm/components/tsortable-head-cell/sort-icon-asc.d.ts +5 -0
  191. package/dist/esm/components/tsortable-head-cell/sort-icon-asc.js +7 -0
  192. package/dist/esm/components/tsortable-head-cell/sort-icon-desc.d.ts +5 -0
  193. package/dist/esm/components/tsortable-head-cell/sort-icon-desc.js +7 -0
  194. package/dist/esm/components/tsortable-head-cell/sort-icon-unset.d.ts +5 -0
  195. package/dist/esm/components/tsortable-head-cell/sort-icon-unset.js +7 -0
  196. package/dist/esm/index.d.ts +1 -0
  197. package/dist/esm/index.js +23 -0
  198. package/dist/esm/tslib.es6-f3c5f2e2.d.ts +32 -0
  199. package/dist/esm/tslib.es6-f3c5f2e2.js +40 -0
  200. package/dist/esm/typings.d.ts +2 -0
  201. package/dist/esm/typings.js +1 -0
  202. package/dist/esm/utils.d.ts +4 -0
  203. package/dist/esm/utils.js +8 -0
  204. package/dist/index.d.ts +1 -0
  205. package/dist/index.js +31 -0
  206. package/dist/modern/component.d.ts +24 -0
  207. package/dist/modern/component.js +34 -0
  208. package/dist/modern/components/index.d.ts +9 -0
  209. package/dist/modern/components/index.js +21 -0
  210. package/dist/modern/components/pagination/Component.d.ts +22 -0
  211. package/dist/modern/components/pagination/Component.js +38 -0
  212. package/dist/modern/components/pagination/index.css +49 -0
  213. package/dist/modern/components/pagination/index.d.ts +1 -0
  214. package/dist/modern/components/pagination/index.js +8 -0
  215. package/dist/modern/components/pagination/select-field/index.css +20 -0
  216. package/dist/modern/components/pagination/select-field/index.d.ts +3 -0
  217. package/dist/modern/components/pagination/select-field/index.js +14 -0
  218. package/dist/modern/components/table/Component.d.ts +56 -0
  219. package/dist/modern/components/table/Component.js +28 -0
  220. package/dist/modern/components/table/index.css +39 -0
  221. package/dist/modern/components/table/index.d.ts +1 -0
  222. package/dist/modern/components/table/index.js +7 -0
  223. package/dist/modern/components/table/utils.d.ts +5 -0
  224. package/dist/modern/components/table/utils.js +18 -0
  225. package/dist/modern/components/table-context/index.d.ts +18 -0
  226. package/dist/modern/components/table-context/index.js +10 -0
  227. package/dist/modern/components/tbody/Component.d.ts +15 -0
  228. package/dist/modern/components/tbody/Component.js +11 -0
  229. package/dist/modern/components/tbody/index.css +13 -0
  230. package/dist/modern/components/tbody/index.d.ts +1 -0
  231. package/dist/modern/components/tbody/index.js +3 -0
  232. package/dist/modern/components/tcell/Component.d.ts +18 -0
  233. package/dist/modern/components/tcell/Component.js +17 -0
  234. package/dist/modern/components/tcell/index.css +42 -0
  235. package/dist/modern/components/tcell/index.d.ts +1 -0
  236. package/dist/modern/components/tcell/index.js +4 -0
  237. package/dist/modern/components/texpandable-row/Component.d.ts +11 -0
  238. package/dist/modern/components/texpandable-row/Component.js +26 -0
  239. package/dist/modern/components/texpandable-row/index.css +24 -0
  240. package/dist/modern/components/texpandable-row/index.d.ts +1 -0
  241. package/dist/modern/components/texpandable-row/index.js +4 -0
  242. package/dist/modern/components/thead/Component.d.ts +19 -0
  243. package/dist/modern/components/thead/Component.js +12 -0
  244. package/dist/modern/components/thead/index.css +38 -0
  245. package/dist/modern/components/thead/index.d.ts +1 -0
  246. package/dist/modern/components/thead/index.js +3 -0
  247. package/dist/modern/components/thead-cell/Component.d.ts +27 -0
  248. package/dist/modern/components/thead-cell/Component.js +9 -0
  249. package/dist/modern/components/thead-cell/index.css +44 -0
  250. package/dist/modern/components/thead-cell/index.d.ts +1 -0
  251. package/dist/modern/components/thead-cell/index.js +3 -0
  252. package/dist/modern/components/trow/Component.d.ts +28 -0
  253. package/dist/modern/components/trow/Component.js +13 -0
  254. package/dist/modern/components/trow/index.css +43 -0
  255. package/dist/modern/components/trow/index.d.ts +1 -0
  256. package/dist/modern/components/trow/index.js +3 -0
  257. package/dist/modern/components/tsortable-head-cell/Component.d.ts +9 -0
  258. package/dist/modern/components/tsortable-head-cell/Component.js +28 -0
  259. package/dist/modern/components/tsortable-head-cell/index.css +46 -0
  260. package/dist/modern/components/tsortable-head-cell/index.d.ts +1 -0
  261. package/dist/modern/components/tsortable-head-cell/index.js +7 -0
  262. package/dist/modern/components/tsortable-head-cell/sort-icon-asc.d.ts +5 -0
  263. package/dist/modern/components/tsortable-head-cell/sort-icon-asc.js +6 -0
  264. package/dist/modern/components/tsortable-head-cell/sort-icon-desc.d.ts +5 -0
  265. package/dist/modern/components/tsortable-head-cell/sort-icon-desc.js +6 -0
  266. package/dist/modern/components/tsortable-head-cell/sort-icon-unset.d.ts +5 -0
  267. package/dist/modern/components/tsortable-head-cell/sort-icon-unset.js +6 -0
  268. package/dist/modern/index.d.ts +1 -0
  269. package/dist/modern/index.js +22 -0
  270. package/dist/modern/typings.d.ts +2 -0
  271. package/dist/modern/typings.js +1 -0
  272. package/dist/modern/utils.d.ts +4 -0
  273. package/dist/modern/utils.js +8 -0
  274. package/dist/send-stats.js +82 -0
  275. package/dist/tslib.es6-2f687e1c.d.ts +32 -0
  276. package/dist/tslib.es6-2f687e1c.js +42 -0
  277. package/dist/typings.d.ts +2 -0
  278. package/dist/typings.js +2 -0
  279. package/dist/utils.d.ts +4 -0
  280. package/dist/utils.js +16 -0
  281. package/package.json +26 -0
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { THeadCellProps } from "../thead-cell/index";
3
+ type TSortableHeadCellProps = THeadCellProps & {
4
+ isSortedDesc?: boolean;
5
+ defaultIsSortedDesc?: boolean;
6
+ onSort?: () => void;
7
+ };
8
+ declare const TSortableHeadCell: ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }: TSortableHeadCellProps) => JSX.Element;
9
+ export { TSortableHeadCellProps, TSortableHeadCell };
@@ -0,0 +1,31 @@
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-f3c5f2e2.js';
2
+ import React, { useMemo } from 'react';
3
+ import cn from 'classnames';
4
+ import { THeadCell } from '../thead-cell/Component.js';
5
+ import { SortIconAsc } from './sort-icon-asc.js';
6
+ import { SortIconDesc } from './sort-icon-desc.js';
7
+ import { SortIconUnset } from './sort-icon-unset.js';
8
+
9
+ var styles = {"component":"table__component_5ob2m","content":"table__content_5ob2m","icon":"table__icon_5ob2m","reverse":"table__reverse_5ob2m","sorted":"table__sorted_5ob2m"};
10
+ require('./index.css')
11
+
12
+ var TSortableHeadCell = function (_a) {
13
+ var _b, _c;
14
+ var children = _a.children, className = _a.className, defaultIsSortedDesc = _a.defaultIsSortedDesc, isSortedDesc = _a.isSortedDesc, textAlign = _a.textAlign, onSort = _a.onSort, restProps = __rest(_a, ["children", "className", "defaultIsSortedDesc", "isSortedDesc", "textAlign", "onSort"]);
15
+ var SortIcon = useMemo(function () {
16
+ var value = isSortedDesc;
17
+ if (value === undefined)
18
+ value = defaultIsSortedDesc;
19
+ if (typeof value === 'boolean')
20
+ return value ? SortIconDesc : SortIconAsc;
21
+ return SortIconUnset;
22
+ }, [defaultIsSortedDesc, isSortedDesc]);
23
+ return (React.createElement(THeadCell, __assign({ className: cn(className, styles.component) }, restProps),
24
+ React.createElement("div", { className: cn(styles.content, (_b = {}, _b[styles.reverse] = textAlign === 'right', _b)) },
25
+ children,
26
+ React.createElement(SortIcon, { onClick: onSort, className: cn(styles.icon, (_c = {},
27
+ _c[styles.sorted] = isSortedDesc !== undefined,
28
+ _c)) }))));
29
+ };
30
+
31
+ export { TSortableHeadCell };
@@ -0,0 +1,46 @@
1
+ /* hash: 1tbmz */
2
+ :root {
3
+ --color-light-graphic-link: #007aff;
4
+ --color-light-graphic-primary: #0b1f35;
5
+ --color-light-graphic-secondary: #6d7986;
6
+ }
7
+ :root {
8
+
9
+ /* Hard */
10
+
11
+ /* Up */
12
+
13
+ /* Hard up */
14
+ }
15
+ :root {
16
+ --gap-xs: 8px;
17
+ }
18
+ .table__component_5ob2m {
19
+ position: relative;
20
+ }
21
+ .table__content_5ob2m {
22
+ display: flex;
23
+ align-items: center;
24
+ }
25
+ .table__icon_5ob2m {
26
+ cursor: pointer;
27
+ margin-left: var(--gap-xs);
28
+ color: var(--color-light-graphic-secondary);
29
+ transition: color 0.2s ease
30
+ }
31
+ .table__icon_5ob2m:hover {
32
+ color: var(--color-light-graphic-primary);
33
+ }
34
+ .table__reverse_5ob2m {
35
+ flex-direction: row-reverse
36
+ }
37
+ .table__reverse_5ob2m .table__icon_5ob2m {
38
+ margin-left: 0;
39
+ margin-right: var(--gap-xs);
40
+ }
41
+ .table__sorted_5ob2m {
42
+ color: var(--color-light-graphic-link)
43
+ }
44
+ .table__sorted_5ob2m:hover {
45
+ color: var(--color-light-graphic-link);
46
+ }
@@ -0,0 +1 @@
1
+ export * from "./Component";
@@ -0,0 +1,8 @@
1
+ import '../../tslib.es6-f3c5f2e2.js';
2
+ import 'react';
3
+ import 'classnames';
4
+ import '../thead-cell/Component.js';
5
+ export { TSortableHeadCell } from './Component.js';
6
+ import './sort-icon-asc.js';
7
+ import './sort-icon-desc.js';
8
+ import './sort-icon-unset.js';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { SVGProps } from "react";
4
+ declare const SortIconAsc: React.FC<SVGProps<SVGSVGElement>>;
5
+ export { SortIconAsc };
@@ -0,0 +1,7 @@
1
+ import { a as __assign } from '../../tslib.es6-f3c5f2e2.js';
2
+ import React from 'react';
3
+
4
+ var SortIconAsc = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
5
+ React.createElement("path", { d: 'M3.00004 10C3.00004 10 11.4477 10 12 10C12 9.33333 12.0001 8.16667 12.0001 7.5H3.0001C3.00006 8 3.0001 9.5 3.00004 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H9C9 5.33333 9 4.16667 9 3.5C9 3.5 3.55238 3.5 3.0001 3.5ZM3.00009 14C3.21041 14 15 14 15 14C15 13.5 15 12 15 11.5C15 11.5 3.55238 11.5 3.00009 11.5C3 12 3 13.5 3.00009 14Z' }))); };
6
+
7
+ export { SortIconAsc };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { SVGProps } from "react";
4
+ declare const SortIconDesc: React.FC<SVGProps<SVGSVGElement>>;
5
+ export { SortIconDesc };
@@ -0,0 +1,7 @@
1
+ import { a as __assign } from '../../tslib.es6-f3c5f2e2.js';
2
+ import React from 'react';
3
+
4
+ var SortIconDesc = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
5
+ React.createElement("path", { d: 'M3.00004 10C3.00004 10 11.4477 10 12 10C12 9.33333 12.0001 8.16667 12.0001 7.5H3.0001C3.00006 8 3.0001 9.5 3.00004 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H15C15 5.33333 15 4.16667 15 3.5C15 3.5 3.55238 3.5 3.0001 3.5ZM3.00009 14C3.21041 14 9 14 9 14C9 13.5 9 12 9 11.5C9 11.5 3.55238 11.5 3.00009 11.5C3 12 3 13.5 3.00009 14Z' }))); };
6
+
7
+ export { SortIconDesc };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { SVGProps } from "react";
4
+ declare const SortIconUnset: React.FC<SVGProps<SVGSVGElement>>;
5
+ export { SortIconUnset };
@@ -0,0 +1,7 @@
1
+ import { a as __assign } from '../../tslib.es6-f3c5f2e2.js';
2
+ import React from 'react';
3
+
4
+ var SortIconUnset = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
5
+ React.createElement("path", { d: 'M3 10C3 10 10.4477 10 11 10C11 9.33333 11.0001 8.16667 11.0001 7.5H3.00006C3.00002 8 3.00006 9.5 3 10ZM3.0001 3.5C3.00003 4.16667 3 5.33333 3 6H15C15 5.33333 15 4.16667 15 3.5C15 3.5 3.55238 3.5 3.0001 3.5ZM3 14C3.21032 14 14 14 14 14C14 13.5 14 12 14 11.5C14 11.5 3.55228 11.5 3 11.5C2.99991 12 2.99991 13.5 3 14Z' }))); };
6
+
7
+ export { SortIconUnset };
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1,23 @@
1
+ import './tslib.es6-f3c5f2e2.js';
2
+ import 'react';
3
+ import 'classnames';
4
+ import './components/thead/Component.js';
5
+ import './utils.js';
6
+ import './components/table/utils.js';
7
+ import './components/table-context/index.js';
8
+ import './components/table/Component.js';
9
+ import '@alfalab/core-components-select/dist/esm';
10
+ import '@alfalab/core-components-pagination/dist/esm';
11
+ import '@alfalab/core-components-button/dist/esm';
12
+ import './components/pagination/select-field/index.js';
13
+ import './components/pagination/Component.js';
14
+ import './components/thead-cell/Component.js';
15
+ import './components/tsortable-head-cell/Component.js';
16
+ import './components/tsortable-head-cell/sort-icon-asc.js';
17
+ import './components/tsortable-head-cell/sort-icon-desc.js';
18
+ import './components/tsortable-head-cell/sort-icon-unset.js';
19
+ import './components/tbody/Component.js';
20
+ import './components/tcell/Component.js';
21
+ import './components/trow/Component.js';
22
+ import './components/texpandable-row/Component.js';
23
+ export { Table } from './component.js';
@@ -0,0 +1,32 @@
1
+ declare function __extends(d: any, b: any): void;
2
+ declare function __rest(s: any, e: any): {};
3
+ declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
4
+ declare function __param(paramIndex: any, decorator: any): (target: any, key: any) => void;
5
+ declare function __metadata(metadataKey: any, metadataValue: any): any;
6
+ declare function __awaiter(thisArg: any, _arguments: any, P: any, generator: any): any;
7
+ declare function __generator(thisArg: any, body: any): {
8
+ next: (v: any) => any;
9
+ throw: (v: any) => any;
10
+ return: (v: any) => any;
11
+ };
12
+ declare function __exportStar(m: any, o: any): void;
13
+ declare function __values(o: any): any;
14
+ declare function __read(o: any, n: any): any;
15
+ declare function __spread(...args: any[]): any[];
16
+ declare function __spreadArrays(...args: any[]): any[];
17
+ declare function __await(v: any): any;
18
+ declare class __await {
19
+ constructor(v: any);
20
+ v: any;
21
+ }
22
+ declare function __asyncGenerator(thisArg: any, _arguments: any, generator: any): {};
23
+ declare function __asyncDelegator(o: any): {};
24
+ declare function __asyncValues(o: any): any;
25
+ declare function __makeTemplateObject(cooked: any, raw: any): any;
26
+ declare function __importStar(mod: any): any;
27
+ declare function __importDefault(mod: any): any;
28
+ declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
29
+ declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
30
+ declare function __assign(...args: any[]): any;
31
+ declare function __createBinding(o: any, m: any, k: any, k2: any): void;
32
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
@@ -0,0 +1,40 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
15
+ var __assign = function () {
16
+ __assign = Object.assign || function __assign(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s)
20
+ if (Object.prototype.hasOwnProperty.call(s, p))
21
+ t[p] = s[p];
22
+ }
23
+ return t;
24
+ };
25
+ return __assign.apply(this, arguments);
26
+ };
27
+ function __rest(s, e) {
28
+ var t = {};
29
+ for (var p in s)
30
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ }
39
+
40
+ export { __rest as _, __assign as a };
@@ -0,0 +1,2 @@
1
+ type TextAlignProperty = 'center' | 'end' | 'justify' | 'left' | 'match-parent' | 'right' | 'start';
2
+ export { TextAlignProperty };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare function isChildInstanceOf<P>(child: React.ReactElement, Component: React.ComponentType<P>): boolean;
4
+ export { isChildInstanceOf };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+
3
+ function isChildInstanceOf(child, Component) {
4
+ // мы не можем полагаться на child.type === Component, см. https://github.com/gaearon/react-hot-loader/issues/304
5
+ return child.type === React.createElement(Component).type;
6
+ }
7
+
8
+ export { isChildInstanceOf };
@@ -0,0 +1 @@
1
+ export * from "./component";
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('./tslib.es6-2f687e1c.js');
6
+ require('react');
7
+ require('classnames');
8
+ require('./components/thead/Component.js');
9
+ require('./utils.js');
10
+ require('./components/table/utils.js');
11
+ require('./components/table-context/index.js');
12
+ require('./components/table/Component.js');
13
+ require('@alfalab/core-components-select');
14
+ require('@alfalab/core-components-pagination');
15
+ require('@alfalab/core-components-button');
16
+ require('./components/pagination/select-field/index.js');
17
+ require('./components/pagination/Component.js');
18
+ require('./components/thead-cell/Component.js');
19
+ require('./components/tsortable-head-cell/Component.js');
20
+ require('./components/tsortable-head-cell/sort-icon-asc.js');
21
+ require('./components/tsortable-head-cell/sort-icon-desc.js');
22
+ require('./components/tsortable-head-cell/sort-icon-unset.js');
23
+ require('./components/tbody/Component.js');
24
+ require('./components/tcell/Component.js');
25
+ require('./components/trow/Component.js');
26
+ require('./components/texpandable-row/Component.js');
27
+ var component = require('./component.js');
28
+
29
+
30
+
31
+ exports.Table = component.Table;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ declare const Table: import("react").ForwardRefExoticComponent<import("react").TableHTMLAttributes<HTMLTableElement> & {
3
+ compactView?: boolean | undefined;
4
+ className?: string | undefined;
5
+ children: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>[];
6
+ wrapper?: boolean | undefined;
7
+ pagination?: import("react").ReactNode;
8
+ dataTestId?: string | undefined;
9
+ } & import("react").RefAttributes<HTMLTableElement>> & {
10
+ TBody: import("react").FC<import("./components/index").TBodyProps>;
11
+ THead: import("react").FC<import("./components/index").THeadProps>;
12
+ THeadCell: ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }: import("./components/index").THeadCellProps) => JSX.Element;
13
+ TSortableHeadCell: ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }: import("./components/index").TSortableHeadCellProps) => JSX.Element;
14
+ TCell: ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => JSX.Element;
15
+ TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: import("./components/index").TRowProps) => JSX.Element;
16
+ TExpandableRow: ({ className, selected, expanded, defaultExpanded, onToggle, renderContent, ...restProps }: import("./components/index").TExpandableRowProps) => JSX.Element;
17
+ Pagination: import("react").FC<import("packages/pagination/src").PaginationProps & {
18
+ perPage?: number | undefined;
19
+ possiblePerPage?: number[] | undefined;
20
+ onPerPageChange?: ((perPage: number) => void) | undefined;
21
+ dataTestId?: string | undefined;
22
+ }>;
23
+ };
24
+ export { Table };
@@ -0,0 +1,34 @@
1
+ import 'react';
2
+ import 'classnames';
3
+ import { THead } from './components/thead/Component.js';
4
+ import './utils.js';
5
+ import './components/table/utils.js';
6
+ import './components/table-context/index.js';
7
+ import { Table as Table$1 } from './components/table/Component.js';
8
+ import '@alfalab/core-components-select/dist/modern';
9
+ import '@alfalab/core-components-pagination/dist/modern';
10
+ import '@alfalab/core-components-button/dist/modern';
11
+ import './components/pagination/select-field/index.js';
12
+ import { Pagination } from './components/pagination/Component.js';
13
+ import { THeadCell } from './components/thead-cell/Component.js';
14
+ import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
15
+ import './components/tsortable-head-cell/sort-icon-asc.js';
16
+ import './components/tsortable-head-cell/sort-icon-desc.js';
17
+ import './components/tsortable-head-cell/sort-icon-unset.js';
18
+ import { TBody } from './components/tbody/Component.js';
19
+ import { TCell } from './components/tcell/Component.js';
20
+ import { TRow } from './components/trow/Component.js';
21
+ import { TExpandableRow } from './components/texpandable-row/Component.js';
22
+
23
+ const Table = Object.assign(Table$1, {
24
+ TBody,
25
+ THead,
26
+ THeadCell,
27
+ TSortableHeadCell,
28
+ TCell,
29
+ TRow,
30
+ TExpandableRow,
31
+ Pagination,
32
+ });
33
+
34
+ export { Table };
@@ -0,0 +1,9 @@
1
+ export * from "./table/index";
2
+ export * from "./pagination/index";
3
+ export * from "./thead/index";
4
+ export * from "./thead-cell/index";
5
+ export * from "./tsortable-head-cell/index";
6
+ export * from "./tbody/index";
7
+ export * from "./tcell/index";
8
+ export * from "./trow/index";
9
+ export * from "./texpandable-row/index";
@@ -0,0 +1,21 @@
1
+ import 'react';
2
+ import 'classnames';
3
+ export { THead } from './thead/Component.js';
4
+ import '../utils.js';
5
+ import './table/utils.js';
6
+ import './table-context/index.js';
7
+ export { Table } from './table/Component.js';
8
+ import '@alfalab/core-components-select/dist/modern';
9
+ import '@alfalab/core-components-pagination/dist/modern';
10
+ import '@alfalab/core-components-button/dist/modern';
11
+ import './pagination/select-field/index.js';
12
+ export { Pagination } from './pagination/Component.js';
13
+ export { THeadCell } from './thead-cell/Component.js';
14
+ export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
15
+ import './tsortable-head-cell/sort-icon-asc.js';
16
+ import './tsortable-head-cell/sort-icon-desc.js';
17
+ import './tsortable-head-cell/sort-icon-unset.js';
18
+ export { TBody } from './tbody/Component.js';
19
+ export { TCell } from './tcell/Component.js';
20
+ export { TRow } from './trow/Component.js';
21
+ export { TExpandableRow } from './texpandable-row/Component.js';
@@ -0,0 +1,22 @@
1
+ import { FC } from 'react';
2
+ import { PaginationProps as CorePaginationProps } from "@alfalab/core-components-pagination";
3
+ type PaginationProps = CorePaginationProps & {
4
+ /**
5
+ * Количество строк на страницу
6
+ */
7
+ perPage?: number;
8
+ /**
9
+ * Возможные варианты разбивки
10
+ */
11
+ possiblePerPage?: number[];
12
+ /**
13
+ * Обработчик переключения perPage
14
+ */
15
+ onPerPageChange?: (perPage: number) => void;
16
+ /**
17
+ * Идентификатор для систем автоматизированного тестирования
18
+ */
19
+ dataTestId?: string;
20
+ };
21
+ declare const Pagination: FC<PaginationProps>;
22
+ export { Pagination };
@@ -0,0 +1,38 @@
1
+ import React, { useContext, useMemo, useCallback } from 'react';
2
+ import cn from 'classnames';
3
+ import { TableContext } from '../table-context/index.js';
4
+ import { Select } from '@alfalab/core-components-select/dist/modern';
5
+ import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/dist/modern';
6
+ import '@alfalab/core-components-button/dist/modern';
7
+ import { CustomSelectField } from './select-field/index.js';
8
+
9
+ var styles = {"component":"table__component_ylny0","pagesWrapper":"table__pagesWrapper_ylny0","tag":"table__tag_ylny0","tagActive":"table__tagActive_ylny0","menu":"table__menu_ylny0","option":"table__option_ylny0"};
10
+ require('./index.css')
11
+
12
+ const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageChange = () => null, pagesCount, onPageChange = () => null, className, dataTestId, ...restPaginationProps }) => {
13
+ const { wrapperRef } = useContext(TableContext);
14
+ const options = useMemo(() => Array.from(new Set(possiblePerPage.concat(perPage)))
15
+ .sort((a, b) => a - b)
16
+ .map(value => ({
17
+ key: value.toString(),
18
+ content: `Показывать по ${value}`,
19
+ })), [perPage, possiblePerPage]);
20
+ const handlePerPageChange = useCallback(({ selected }) => {
21
+ onPerPageChange(Number(selected?.key));
22
+ }, [onPerPageChange]);
23
+ const handlePageChange = useCallback((pageIndex) => {
24
+ onPageChange(pageIndex);
25
+ setTimeout(() => {
26
+ if (wrapperRef.current) {
27
+ wrapperRef.current.scrollIntoView();
28
+ }
29
+ }, 0);
30
+ }, [onPageChange, wrapperRef]);
31
+ if (pagesCount <= 1)
32
+ return null;
33
+ return (React.createElement("div", { className: cn(styles.component, className), "data-test-id": dataTestId },
34
+ 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 }),
35
+ React.createElement(Pagination$1, Object.assign({ pagesCount: pagesCount, onPageChange: handlePageChange }, restPaginationProps))));
36
+ };
37
+
38
+ export { Pagination };
@@ -0,0 +1,49 @@
1
+ /* hash: 6rusb */
2
+ :root {
3
+ --color-light-border-primary: #dbdee1;
4
+ }
5
+ :root {
6
+
7
+ /* Hard */
8
+
9
+ /* Up */
10
+
11
+ /* Hard up */
12
+ }
13
+ :root {
14
+ --gap-2xs: 4px;
15
+ --gap-xs: 8px;
16
+ --gap-m: 16px;
17
+ --gap-xl: 24px;
18
+ --gap-2xl: 32px;
19
+ }
20
+ .table__component_ylny0 {
21
+ display: flex;
22
+ justify-content: space-between;
23
+ align-items: flex-start;
24
+ width: 100%;
25
+ padding: var(--gap-xl) var(--gap-m) var(--gap-2xl);
26
+ border-top: 1px solid var(--color-light-border-primary);
27
+ box-sizing: border-box;
28
+ }
29
+ .table__pagesWrapper_ylny0 {
30
+ display: flex;
31
+ }
32
+ .table__tag_ylny0.table__tag_ylny0 {
33
+ flex-shrink: 0;
34
+ margin-right: var(--gap-xs);
35
+ padding: 0 var(--gap-xs);
36
+ min-width: 32px
37
+ }
38
+ .table__tag_ylny0.table__tag_ylny0:last-child {
39
+ margin-right: 0;
40
+ }
41
+ .table__tag_ylny0.table__tag_ylny0.table__tagActive_ylny0 {
42
+ cursor: default;
43
+ }
44
+ .table__menu_ylny0 {
45
+ margin: var(--gap-2xs) 0;
46
+ }
47
+ .table__option_ylny0 {
48
+ min-width: 208px;
49
+ }
@@ -0,0 +1 @@
1
+ export * from "./Component";
@@ -0,0 +1,8 @@
1
+ import 'react';
2
+ import 'classnames';
3
+ import '../table-context/index.js';
4
+ import '@alfalab/core-components-select/dist/modern';
5
+ import '@alfalab/core-components-pagination/dist/modern';
6
+ import '@alfalab/core-components-button/dist/modern';
7
+ import './select-field/index.js';
8
+ export { Pagination } from './Component.js';
@@ -0,0 +1,20 @@
1
+ /* hash: l0bps */
2
+ :root {
3
+ --color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
4
+ }
5
+ :root {
6
+
7
+ /* Hard */
8
+
9
+ /* Up */
10
+
11
+ /* Hard up */
12
+ }
13
+ .table__field_1dkl5 svg {
14
+ width: 18px;
15
+ height: 18px;
16
+ }
17
+ .table__open_1dkl5,
18
+ .table__open_1dkl5:hover {
19
+ background-color: var(--color-light-specialbg-component-shade-7);
20
+ }
@@ -0,0 +1,3 @@
1
+ import { SelectProps } from "@alfalab/core-components-select";
2
+ declare const CustomSelectField: SelectProps['Field'];
3
+ export { CustomSelectField };
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import cn from 'classnames';
3
+ import { Button } from '@alfalab/core-components-button/dist/modern';
4
+
5
+ var styles = {"field":"table__field_1dkl5","open":"table__open_1dkl5"};
6
+ require('./index.css')
7
+
8
+ const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
9
+ const { ref, ...restInnerProps } = innerProps;
10
+ return (React.createElement("div", { ref: ref },
11
+ React.createElement(Button, Object.assign({}, restInnerProps, { size: 'xxs', view: 'link', className: cn(styles.field, { [styles.open]: open }), rightAddons: Arrow }), selected?.content)));
12
+ };
13
+
14
+ export { CustomSelectField };
@@ -0,0 +1,56 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TableHTMLAttributes, ReactNode } from "react";
4
+ type TableProps = TableHTMLAttributes<HTMLTableElement> & {
5
+ /**
6
+ * Компактный вид
7
+ */
8
+ compactView?: boolean;
9
+ /**
10
+ * Дополнительный класс
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Дочерние компоненты
15
+ */
16
+ children: React.ReactElement[];
17
+ /**
18
+ * Оборачивает таблицу в стилизованный контейнер
19
+ */
20
+ wrapper?: boolean;
21
+ /**
22
+ * Слот для пагинации
23
+ */
24
+ pagination?: ReactNode;
25
+ /**
26
+ * Идентификатор для систем автоматизированного тестирования
27
+ */
28
+ dataTestId?: string;
29
+ };
30
+ declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<HTMLTableElement> & {
31
+ /**
32
+ * Компактный вид
33
+ */
34
+ compactView?: boolean | undefined;
35
+ /**
36
+ * Дополнительный класс
37
+ */
38
+ className?: string | undefined;
39
+ /**
40
+ * Дочерние компоненты
41
+ */
42
+ children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
43
+ /**
44
+ * Оборачивает таблицу в стилизованный контейнер
45
+ */
46
+ wrapper?: boolean | undefined;
47
+ /**
48
+ * Слот для пагинации
49
+ */
50
+ pagination?: React.ReactNode;
51
+ /**
52
+ * Идентификатор для систем автоматизированного тестирования
53
+ */
54
+ dataTestId?: string | undefined;
55
+ } & React.RefAttributes<HTMLTableElement>>;
56
+ export { TableProps, Table };