@alfalab/core-components-table 2.3.11 → 2.4.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 (113) hide show
  1. package/Component-72308007.d.ts +1 -1
  2. package/Component-72dda473.d.ts +53 -0
  3. package/component-72308007.d.ts +1 -1
  4. package/components/pagination/Component.d.ts +4 -0
  5. package/components/pagination/Component.js +4 -4
  6. package/components/pagination/index.css +10 -8
  7. package/components/pagination/select-field/index.css +4 -4
  8. package/components/pagination/select-field/index.js +1 -1
  9. package/components/table/Component.js +1 -1
  10. package/components/table/index.css +7 -7
  11. package/components/tbody/Component.js +1 -1
  12. package/components/tbody/index.css +2 -2
  13. package/components/tcell/Component.js +1 -1
  14. package/components/tcell/index.css +6 -6
  15. package/components/texpandable-row/Component.js +1 -1
  16. package/components/texpandable-row/index.css +5 -5
  17. package/components/thead/Component.js +1 -1
  18. package/components/thead/index.css +6 -6
  19. package/components/thead-cell/Component.js +1 -1
  20. package/components/thead-cell/index.css +9 -9
  21. package/components/trow/Component.js +1 -1
  22. package/components/trow/index.css +8 -8
  23. package/components/tsortable-head-cell/Component.js +1 -1
  24. package/components/tsortable-head-cell/index.css +8 -8
  25. package/cssm/Component-72308007.d.ts +1 -1
  26. package/cssm/Component-72dda473.d.ts +53 -0
  27. package/cssm/component-72308007.d.ts +1 -1
  28. package/cssm/components/pagination/Component.d.ts +4 -0
  29. package/cssm/components/pagination/Component.js +3 -3
  30. package/cssm/components/pagination/index.module.css +3 -1
  31. package/cssm/index-72308007.d.ts +2 -2
  32. package/cssm/index-c44170fe.d.ts +2 -20
  33. package/cssm/index-c76d6398.d.ts +1 -1
  34. package/cssm/index-ebda875c.d.ts +2 -2
  35. package/cssm/index-f12ee135.d.ts +1 -1
  36. package/{esm/types-83e2bd9e.d.ts → cssm/types-1c79e231.d.ts} +1 -1
  37. package/{esm/types-e40becc7.d.ts → cssm/types-67a2d8af.d.ts} +1 -1
  38. package/esm/Component-72308007.d.ts +1 -1
  39. package/esm/Component-72dda473.d.ts +53 -0
  40. package/esm/component-72308007.d.ts +1 -1
  41. package/esm/components/pagination/Component.d.ts +4 -0
  42. package/esm/components/pagination/Component.js +4 -4
  43. package/esm/components/pagination/index.css +10 -8
  44. package/esm/components/pagination/select-field/index.css +4 -4
  45. package/esm/components/pagination/select-field/index.js +1 -1
  46. package/esm/components/table/Component.js +1 -1
  47. package/esm/components/table/index.css +7 -7
  48. package/esm/components/tbody/Component.js +1 -1
  49. package/esm/components/tbody/index.css +2 -2
  50. package/esm/components/tcell/Component.js +1 -1
  51. package/esm/components/tcell/index.css +6 -6
  52. package/esm/components/texpandable-row/Component.js +1 -1
  53. package/esm/components/texpandable-row/index.css +5 -5
  54. package/esm/components/thead/Component.js +1 -1
  55. package/esm/components/thead/index.css +6 -6
  56. package/esm/components/thead-cell/Component.js +1 -1
  57. package/esm/components/thead-cell/index.css +9 -9
  58. package/esm/components/trow/Component.js +1 -1
  59. package/esm/components/trow/index.css +8 -8
  60. package/esm/components/tsortable-head-cell/Component.js +1 -1
  61. package/esm/components/tsortable-head-cell/index.css +8 -8
  62. package/esm/index-72308007.d.ts +2 -2
  63. package/esm/index-c44170fe.d.ts +2 -20
  64. package/esm/index-c76d6398.d.ts +1 -1
  65. package/esm/index-ebda875c.d.ts +2 -2
  66. package/esm/index-f12ee135.d.ts +1 -1
  67. package/{cssm/types-83e2bd9e.d.ts → esm/types-1c79e231.d.ts} +1 -1
  68. package/{modern/types-e40becc7.d.ts → esm/types-67a2d8af.d.ts} +1 -1
  69. package/index-72308007.d.ts +2 -2
  70. package/index-c44170fe.d.ts +2 -20
  71. package/index-c76d6398.d.ts +1 -1
  72. package/index-ebda875c.d.ts +2 -2
  73. package/index-f12ee135.d.ts +1 -1
  74. package/modern/Component-72308007.d.ts +1 -1
  75. package/modern/Component-72dda473.d.ts +53 -0
  76. package/modern/component-72308007.d.ts +1 -1
  77. package/modern/components/pagination/Component.d.ts +4 -0
  78. package/modern/components/pagination/Component.js +4 -4
  79. package/modern/components/pagination/index.css +10 -8
  80. package/modern/components/pagination/select-field/index.css +4 -4
  81. package/modern/components/pagination/select-field/index.js +1 -1
  82. package/modern/components/table/Component.js +1 -1
  83. package/modern/components/table/index.css +7 -7
  84. package/modern/components/tbody/Component.js +1 -1
  85. package/modern/components/tbody/index.css +2 -2
  86. package/modern/components/tcell/Component.js +1 -1
  87. package/modern/components/tcell/index.css +6 -6
  88. package/modern/components/texpandable-row/Component.js +1 -1
  89. package/modern/components/texpandable-row/index.css +5 -5
  90. package/modern/components/thead/Component.js +1 -1
  91. package/modern/components/thead/index.css +6 -6
  92. package/modern/components/thead-cell/Component.js +1 -1
  93. package/modern/components/thead-cell/index.css +9 -9
  94. package/modern/components/trow/Component.js +1 -1
  95. package/modern/components/trow/index.css +8 -8
  96. package/modern/components/tsortable-head-cell/Component.js +1 -1
  97. package/modern/components/tsortable-head-cell/index.css +8 -8
  98. package/modern/index-72308007.d.ts +2 -2
  99. package/modern/index-c44170fe.d.ts +2 -20
  100. package/modern/index-c76d6398.d.ts +1 -1
  101. package/modern/index-ebda875c.d.ts +2 -2
  102. package/modern/index-f12ee135.d.ts +1 -1
  103. package/modern/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  104. package/{cssm/types-e40becc7.d.ts → modern/types-67a2d8af.d.ts} +1 -1
  105. package/package.json +2 -2
  106. package/src/components/pagination/Component.tsx +21 -11
  107. package/src/components/pagination/index.module.css +4 -0
  108. package/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  109. package/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  110. /package/cssm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  111. /package/esm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  112. /package/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  113. /package/modern/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
@@ -7,7 +7,7 @@ import { SortIconDesc } from './sort-icon-desc.js';
7
7
  import { SortIconUnset } from './sort-icon-unset.js';
8
8
  import '../table-context/index.js';
9
9
 
10
- var styles = {"content":"table__content_gzson","icon":"table__icon_gzson","reverse":"table__reverse_gzson","sorted":"table__sorted_gzson"};
10
+ var styles = {"content":"table__content_1v4bn","icon":"table__icon_1v4bn","reverse":"table__reverse_1v4bn","sorted":"table__sorted_1v4bn"};
11
11
  require('./index.css')
12
12
 
13
13
  var TSortableHeadCell = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 4pjoi */
1
+ /* hash: ez9ux */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-link: #0072ef;
@@ -18,10 +18,10 @@
18
18
  --gap-xs: 8px;
19
19
  } :root {
20
20
  } :root {
21
- } .table__content_gzson {
21
+ } .table__content_1v4bn {
22
22
  display: flex;
23
23
  align-items: flex-start;
24
- } .table__icon_gzson {
24
+ } .table__icon_1v4bn {
25
25
  cursor: pointer;
26
26
  margin-left: var(--gap-xs);
27
27
 
@@ -33,15 +33,15 @@
33
33
  color: var(--color-light-graphic-secondary);
34
34
  transition: color 0.2s ease;
35
35
  flex-shrink: 0
36
- } .table__icon_gzson:hover {
36
+ } .table__icon_1v4bn:hover {
37
37
  color: var(--color-light-graphic-primary);
38
- } .table__reverse_gzson {
38
+ } .table__reverse_1v4bn {
39
39
  flex-direction: row-reverse
40
- } .table__reverse_gzson .table__icon_gzson {
40
+ } .table__reverse_1v4bn .table__icon_1v4bn {
41
41
  margin-left: 0;
42
42
  margin-right: var(--gap-xs);
43
- } .table__sorted_gzson {
43
+ } .table__sorted_1v4bn {
44
44
  color: var(--color-light-graphic-link)
45
- } .table__sorted_gzson:hover {
45
+ } .table__sorted_1v4bn:hover {
46
46
  color: var(--color-light-graphic-link);
47
47
  }
@@ -3,9 +3,9 @@ import React from "react";
3
3
  import { PaddingType } from "./index-72dda473";
4
4
  /* eslint-disable no-plusplus, no-param-reassign */
5
5
  import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
6
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
7
6
  declare const isClient: () => boolean;
8
7
  declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
8
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
9
9
  declare function easeInOutQuad(x: number): number;
10
10
  declare const easingFns: {
11
11
  easeInOutQuad: typeof easeInOutQuad;
@@ -51,4 +51,4 @@ declare const maskUtils: {
51
51
  prefixPostprocessor: typeof prefixPostprocessor;
52
52
  caretGuard: typeof caretGuard;
53
53
  };
54
- export { createPaddingStyle, isClient, getDataTestId, easingFns, inputUtils, fnUtils, maskUtils };
54
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils };
@@ -1,21 +1,3 @@
1
1
  /// <reference types="react" />
2
- import React from "react";
3
- import { BaseInputProps } from "./index-ebda875c";
4
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
5
- /**
6
- * Контрольная точка, с нее начинается desktop версия
7
- * @default 1024
8
- */
9
- breakpoint?: number;
10
- /**
11
- * Значение по-умолчанию для хука useMatchMedia
12
- */
13
- defaultMatchMediaValue?: boolean | (() => boolean);
14
- };
15
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "colorStyles" | "FormControlComponent"> & {
16
- breakpoint?: number | undefined;
17
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
18
- } & React.RefAttributes<HTMLInputElement>>;
19
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
20
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
21
- export { InputProps, Input, InputMobileProps, InputMobile };
2
+ export * from "./Component.responsive-785df74d";
3
+ export {};
@@ -1,2 +1,2 @@
1
1
  export * from "./Component-72308007";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -66,7 +66,7 @@ type IconButtonProps = {
66
66
  * Набор цветов для компонента
67
67
  */
68
68
  colors?: "default" | "inverted";
69
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
69
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "Component" | "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
70
70
  declare const IconButton: React.ForwardRefExoticComponent<{
71
71
  icon: ElementType<{
72
72
  className?: string;
@@ -77,5 +77,5 @@ declare const IconButton: React.ForwardRefExoticComponent<{
77
77
  alignIcon?: "center" | "left" | "right" | undefined;
78
78
  dataTestId?: string | undefined;
79
79
  colors?: "default" | "inverted" | undefined;
80
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
80
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
81
81
  export { CloserProps, Closer, IconButtonProps, IconButton };
@@ -1,3 +1,3 @@
1
1
  export * from "./component-72308007";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -3,9 +3,9 @@ import React from "react";
3
3
  import { PaddingType } from "./index-72dda473";
4
4
  /* eslint-disable no-plusplus, no-param-reassign */
5
5
  import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
6
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
7
6
  declare const isClient: () => boolean;
8
7
  declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
8
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
9
9
  declare function easeInOutQuad(x: number): number;
10
10
  declare const easingFns: {
11
11
  easeInOutQuad: typeof easeInOutQuad;
@@ -51,4 +51,4 @@ declare const maskUtils: {
51
51
  prefixPostprocessor: typeof prefixPostprocessor;
52
52
  caretGuard: typeof caretGuard;
53
53
  };
54
- export { createPaddingStyle, isClient, getDataTestId, easingFns, inputUtils, fnUtils, maskUtils };
54
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils };
@@ -1,21 +1,3 @@
1
1
  /// <reference types="react" />
2
- import React from "react";
3
- import { BaseInputProps } from "./index-ebda875c";
4
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
5
- /**
6
- * Контрольная точка, с нее начинается desktop версия
7
- * @default 1024
8
- */
9
- breakpoint?: number;
10
- /**
11
- * Значение по-умолчанию для хука useMatchMedia
12
- */
13
- defaultMatchMediaValue?: boolean | (() => boolean);
14
- };
15
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "colorStyles" | "FormControlComponent"> & {
16
- breakpoint?: number | undefined;
17
- defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
18
- } & React.RefAttributes<HTMLInputElement>>;
19
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
20
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
21
- export { InputProps, Input, InputMobileProps, InputMobile };
2
+ export * from "./Component.responsive-785df74d";
3
+ export {};
@@ -1,2 +1,2 @@
1
1
  export * from "./Component-72308007";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -66,7 +66,7 @@ type IconButtonProps = {
66
66
  * Набор цветов для компонента
67
67
  */
68
68
  colors?: "default" | "inverted";
69
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
69
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "Component" | "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
70
70
  declare const IconButton: React.ForwardRefExoticComponent<{
71
71
  icon: ElementType<{
72
72
  className?: string;
@@ -77,5 +77,5 @@ declare const IconButton: React.ForwardRefExoticComponent<{
77
77
  alignIcon?: "center" | "left" | "right" | undefined;
78
78
  dataTestId?: string | undefined;
79
79
  colors?: "default" | "inverted" | undefined;
80
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
80
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
81
81
  export { CloserProps, Closer, IconButtonProps, IconButton };
@@ -1,3 +1,3 @@
1
1
  export * from "./component-72308007";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { NavigationBarProps } from "./types-83e2bd9e";
3
+ import { NavigationBarProps } from "./types-1c79e231";
4
4
  declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
5
  export * from "./Component-63dec22f";
6
6
  export { NavigationBar };
@@ -0,0 +1,53 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
4
+ type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
5
+ type BadgeProps = {
6
+ /**
7
+ * Дополнительный класс
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Вид компонента
12
+ */
13
+ view: 'icon' | 'count';
14
+ /**
15
+ * Размер компонента (только для view=icon)
16
+ * //deprecated(используйте height для view=count )
17
+ */
18
+ size?: 's' | 'm' | 'l' | 'xl';
19
+ /**
20
+ * Видимость белой обводки вокруг иконки
21
+ */
22
+ visibleIconOutline?: boolean;
23
+ /**
24
+ * Видимость цветной обводки вокруг иконки (только для view=icon)
25
+ */
26
+ visibleColorOutline?: boolean;
27
+ /**
28
+ * Контент компонента
29
+ */
30
+ content?: React.ReactElement | number;
31
+ /**
32
+ * Высота компонента, min = 16; max = 48 (только для view=count)
33
+ */
34
+ height?: number;
35
+ /**
36
+ * Цветовое оформление бейджа при view='count'
37
+ */
38
+ color?: Extract<BackgroundColorType, 'accent' | 'primary' | 'specialbg-secondary-transparent'>;
39
+ /**
40
+ * Цветовое оформление бейджа при view='icon'
41
+ */
42
+ iconColor?: IconColorType;
43
+ /**
44
+ * Цвет подложки под иконкой
45
+ */
46
+ iconUnderlayColor?: Extract<GraphicColorType, 'primary' | 'static-light'>;
47
+ /**
48
+ * Идентификатор для систем автоматизированного тестирования
49
+ */
50
+ dataTestId?: string;
51
+ };
52
+ declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
53
+ export { IconColorType, BadgeProps, Badge };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -13,6 +13,10 @@ type PaginationProps = CorePaginationProps & {
13
13
  * Обработчик переключения perPage
14
14
  */
15
15
  onPerPageChange?: (perPage: number) => void;
16
+ /**
17
+ * Скрывает переключатель количества строк на страницу
18
+ */
19
+ hidePerPageSelect?: boolean;
16
20
  /**
17
21
  * Идентификатор для систем автоматизированного тестирования
18
22
  */
@@ -6,10 +6,10 @@ 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_xw96e","pagesWrapper":"table__pagesWrapper_xw96e","tag":"table__tag_xw96e","tagActive":"table__tagActive_xw96e","menu":"table__menu_xw96e","option":"table__option_xw96e"};
9
+ const styles = {"component":"table__component_18w9y","pagesWrapper":"table__pagesWrapper_18w9y","tag":"table__tag_18w9y","tagActive":"table__tagActive_18w9y","pagination":"table__pagination_18w9y","menu":"table__menu_18w9y","option":"table__option_18w9y"};
10
10
  require('./index.css')
11
11
 
12
- const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageChange = () => null, pagesCount, onPageChange = () => null, className, dataTestId, ...restPaginationProps }) => {
12
+ const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageChange = () => null, hidePerPageSelect = false, pagesCount, onPageChange = () => null, className, dataTestId, ...restPaginationProps }) => {
13
13
  const { wrapperRef } = useContext(TableContext);
14
14
  const options = useMemo(() => Array.from(new Set(possiblePerPage.concat(perPage)))
15
15
  .sort((a, b) => a - b)
@@ -29,8 +29,8 @@ 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(SelectDesktop, { options: options, selected: perPage.toString(), onChange: handlePerPageChange, preventFlip: false, size: 's', className: styles.select, optionsListClassName: styles.menu, optionClassName: styles.option, Field: CustomSelectField }),
33
- pagesCount > 1 && (React.createElement(Pagination$1, { pagesCount: pagesCount, onPageChange: handlePageChange, ...restPaginationProps }))));
32
+ hidePerPageSelect === false && (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
+ pagesCount > 1 && (React.createElement(Pagination$1, { pagesCount: pagesCount, onPageChange: handlePageChange, className: styles.pagination, ...restPaginationProps }))));
34
34
  };
35
35
 
36
36
  export { Pagination };
@@ -1,4 +1,4 @@
1
- /* hash: 36au2 */
1
+ /* hash: 1nfn7 */
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_xw96e {
23
+ } .table__component_18w9y {
24
24
  display: flex;
25
25
  justify-content: space-between;
26
26
  align-items: flex-start;
@@ -28,19 +28,21 @@
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_xw96e {
31
+ } .table__pagesWrapper_18w9y {
32
32
  display: flex;
33
- } .table__tag_xw96e.table__tag_xw96e {
33
+ } .table__tag_18w9y.table__tag_18w9y {
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_xw96e.table__tag_xw96e:last-child {
38
+ } .table__tag_18w9y.table__tag_18w9y:last-child {
39
39
  margin-right: 0;
40
- } .table__tag_xw96e.table__tag_xw96e.table__tagActive_xw96e {
40
+ } .table__tag_18w9y.table__tag_18w9y.table__tagActive_18w9y {
41
41
  cursor: default;
42
- } .table__menu_xw96e {
42
+ } .table__pagination_18w9y {
43
+ margin-left: auto;
44
+ } .table__menu_18w9y {
43
45
  margin: var(--gap-2xs) 0;
44
- } .table__option_xw96e {
46
+ } .table__option_18w9y {
45
47
  min-width: 208px;
46
48
  }
@@ -1,4 +1,4 @@
1
- /* hash: hkwwm */
1
+ /* hash: 2t57v */
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_yg5wr svg {
18
+ } .table__field_13v8d svg {
19
19
  width: 18px;
20
20
  height: 18px;
21
- } .table__open_yg5wr,
22
- .table__open_yg5wr:hover {
21
+ } .table__open_13v8d,
22
+ .table__open_13v8d: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_yg5wr","open":"table__open_yg5wr"};
5
+ const styles = {"field":"table__field_13v8d","open":"table__open_13v8d"};
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_lt7dg","wrapper":"table__wrapper_lt7dg","stickyHeader":"table__stickyHeader_lt7dg","hasPagination":"table__hasPagination_lt7dg","table":"table__table_lt7dg"};
8
+ const styles = {"component":"table__component_1cxc6","wrapper":"table__wrapper_1cxc6","stickyHeader":"table__stickyHeader_1cxc6","hasPagination":"table__hasPagination_1cxc6","table":"table__table_1cxc6"};
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: 11yuc */
1
+ /* hash: 1c8ki */
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_lt7dg {
21
+ } .table__component_1cxc6 {
22
22
  box-sizing: border-box;
23
- } .table__wrapper_lt7dg {
23
+ } .table__wrapper_1cxc6 {
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_lt7dg {
29
+ } .table__stickyHeader_1cxc6 {
30
30
  max-height: 100%;
31
- } .table__hasPagination_lt7dg {
31
+ } .table__hasPagination_1cxc6 {
32
32
  padding-bottom: 0;
33
- } .table__table_lt7dg {
33
+ } .table__table_1cxc6 {
34
34
  width: 100%;
35
35
  border-collapse: collapse;
36
36
  box-sizing: border-box
37
37
 
38
38
  /* TODO: Хак для выравнивания чекбокса */
39
- } .table__table_lt7dg td:first-child label > *[class^='box'], .table__table_lt7dg th:first-child label > *[class^='box'] {
39
+ } .table__table_1cxc6 td:first-child label > *[class^='box'], .table__table_1cxc6 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_1bexy"};
4
+ const styles = {"component":"table__component_20zv7"};
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: fu3ff */
1
+ /* hash: 17bfv */
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_1bexy {
17
+ } .table__component_20zv7 {
18
18
  width: 100%;
19
19
  box-sizing: border-box;
20
20
  }
@@ -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_sma90","compactHorizontal":"table__compactHorizontal_sma90","compact":"table__compact_sma90"};
5
+ const styles = {"component":"table__component_zw0wn","compactHorizontal":"table__compactHorizontal_zw0wn","compact":"table__compact_zw0wn"};
6
6
  require('./index.css')
7
7
 
8
8
  const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 2fu39 */
1
+ /* hash: ajukn */
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_sma90 {
23
+ } .table__component_zw0wn {
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_sma90:first-child {
34
+ } .table__component_zw0wn:first-child {
35
35
  padding-left: var(--gap-m);
36
- } .table__component_sma90:last-child {
36
+ } .table__component_zw0wn:last-child {
37
37
  padding-right: var(--gap-m);
38
- } .table__compactHorizontal_sma90 {
38
+ } .table__compactHorizontal_zw0wn {
39
39
  padding-left: 6px;
40
40
  padding-right: 6px;
41
- } .table__compact_sma90 {
41
+ } .table__compact_zw0wn {
42
42
  padding-top: var(--gap-xs);
43
43
  padding-bottom: var(--gap-xs);
44
44
 
@@ -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_uzwks","selected":"table__selected_uzwks","expanded":"table__expanded_uzwks","expandable":"table__expandable_uzwks"};
5
+ const styles = {"row":"table__row_12cgx","selected":"table__selected_12cgx","expanded":"table__expanded_12cgx","expandable":"table__expandable_12cgx"};
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: 1bbdb */
1
+ /* hash: 111n5 */
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_uzwks {
17
+ } .table__row_12cgx {
18
18
  cursor: pointer;
19
- } .table__selected_uzwks.table__expanded_uzwks {
19
+ } .table__selected_12cgx.table__expanded_12cgx {
20
20
  background-color: inherit;
21
- } .table__expanded_uzwks:hover {
21
+ } .table__expanded_12cgx:hover {
22
22
  background-color: inherit;
23
- } .table__expandable_uzwks td {
23
+ } .table__expandable_12cgx 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_een2a","row":"table__row_een2a"};
4
+ const styles = {"component":"table__component_1polh","row":"table__row_1polh"};
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: 1sys1 */
1
+ /* hash: utoeh */
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_een2a {
19
+ } .table__component_1polh {
20
20
  position: relative;
21
21
  width: 100%;
22
22
  box-sizing: border-box
23
- } .table__component_een2a th:not(:last-child):not(:empty):after {
23
+ } .table__component_1polh 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_een2a th:after {
34
+ } .table__component_1polh th:after {
35
35
  opacity: 0;
36
- } .table__component_een2a:hover th:after {
36
+ } .table__component_1polh:hover th:after {
37
37
  opacity: 1;
38
- } .table__row_een2a {
38
+ } .table__row_1polh {
39
39
  height: 72px;
40
40
  }
@@ -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_m3ymr","stickyHeader":"table__stickyHeader_m3ymr","sortable":"table__sortable_m3ymr","sorted":"table__sorted_m3ymr","compactHorizontal":"table__compactHorizontal_m3ymr"};
5
+ const styles = {"component":"table__component_10gr5","stickyHeader":"table__stickyHeader_10gr5","sortable":"table__sortable_10gr5","sorted":"table__sorted_10gr5","compactHorizontal":"table__compactHorizontal_10gr5"};
6
6
  require('./index.css')
7
7
 
8
8
  const THeadCell = ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }) => {