@astral/ui 4.3.0 → 4.4.1

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 (145) hide show
  1. package/components/Checkbox/Icon/Icon.js +1 -1
  2. package/components/DataGrid/DataGrid.d.ts +2 -162
  3. package/components/DataGrid/DataGrid.js +2 -2
  4. package/components/DataGrid/types.d.ts +164 -0
  5. package/components/DataGrid/useLogic/useLogic.d.ts +3 -3
  6. package/components/DataGrid/useLogic/useLogic.js +3 -1
  7. package/components/DataGridInfinite/DataGridInfinite.d.ts +2 -15
  8. package/components/DataGridInfinite/DataGridInfinite.js +2 -2
  9. package/components/DataGridInfinite/index.d.ts +1 -0
  10. package/components/DataGridInfinite/types.d.ts +19 -0
  11. package/components/DataGridInfinite/types.js +1 -0
  12. package/components/DataGridInfinite/useLogic/useLogic.d.ts +3 -2
  13. package/components/DataGridInfinite/useLogic/useLogic.js +3 -1
  14. package/components/Radio/Icon/Icon.js +1 -1
  15. package/components/SvgIcon/SvgIcon.js +1 -1
  16. package/icons/FillSm/ArrowDFillSm.js +1 -1
  17. package/icons/FillSm/ArrowUpFillSm.js +1 -1
  18. package/icons/FillSm/CircleErrorFillSm.js +1 -1
  19. package/icons/FillSm/ClockFillSm.js +1 -1
  20. package/icons/FillSm/DislikeFillSm.js +1 -1
  21. package/icons/FillSm/ErrorFillSm.js +1 -1
  22. package/icons/FillSm/InfoFillSm.js +1 -1
  23. package/icons/FillSm/LikeFillSm.js +1 -1
  24. package/icons/FillSm/LocationFillSm.js +1 -1
  25. package/icons/FillSm/MailFillSm.js +1 -1
  26. package/icons/FillSm/PauseFillSm.js +1 -1
  27. package/icons/FillSm/PhoneFillSm.js +1 -1
  28. package/icons/FillSm/PitFillSm.js +1 -1
  29. package/icons/FillSm/PlayFillSm.js +1 -1
  30. package/icons/FillSm/RectangleFillSm.js +1 -1
  31. package/icons/FillSm/RoundFillSm.js +1 -1
  32. package/icons/FillSm/SentFillSm.js +1 -1
  33. package/icons/FillSm/SortDownFillSm.js +1 -1
  34. package/icons/FillSm/SortFillSm.js +1 -1
  35. package/icons/FillSm/SortUpFillSm.js +1 -1
  36. package/icons/FillSm/StarFillSm.js +1 -1
  37. package/icons/FillSm/SuccessFillSm.js +1 -1
  38. package/icons/FillSm/UpToDateFillSm.js +1 -1
  39. package/icons/FillSm/WarningFillSm.js +1 -1
  40. package/icons/OutlineSm/AddOutlineSm.js +1 -1
  41. package/icons/OutlineSm/AddSmOutlineSm.js +1 -1
  42. package/icons/OutlineSm/ArrowDwnOutlineSm.js +1 -1
  43. package/icons/OutlineSm/ArrowLOutlineSm.js +1 -1
  44. package/icons/OutlineSm/ArrowROutlineSm.js +1 -1
  45. package/icons/OutlineSm/ArrowUpOutlineSm.js +1 -1
  46. package/icons/OutlineSm/BlockOutlineSm.js +1 -1
  47. package/icons/OutlineSm/CheckOutlineSm.js +1 -1
  48. package/icons/OutlineSm/ClockOutlineSm.js +1 -1
  49. package/icons/OutlineSm/CopyOutlineSm.js +1 -1
  50. package/icons/OutlineSm/CrossOutlineSm.js +1 -1
  51. package/icons/OutlineSm/CrossSmOutlineSm.js +1 -1
  52. package/icons/OutlineSm/DislikeOutlineSm.js +1 -1
  53. package/icons/OutlineSm/DocumentOutlineSm.js +1 -1
  54. package/icons/OutlineSm/DocumentsOutlineSm.js +1 -1
  55. package/icons/OutlineSm/DotOutlineSm.js +1 -1
  56. package/icons/OutlineSm/DoubleCheckOutlineSm.js +1 -1
  57. package/icons/OutlineSm/DownloadVOutlineSm.js +1 -1
  58. package/icons/OutlineSm/EditOutlineSm.js +1 -1
  59. package/icons/OutlineSm/InfoOutlineSm.js +1 -1
  60. package/icons/OutlineSm/LikeOutlineSm.js +1 -1
  61. package/icons/OutlineSm/LoaderOutlineSm.js +1 -1
  62. package/icons/OutlineSm/MessageOutlineSm.js +1 -1
  63. package/icons/OutlineSm/OpenLinkOutlineSm.js +1 -1
  64. package/icons/OutlineSm/PageOutlineSm.js +1 -1
  65. package/icons/OutlineSm/ProfileOutlineSm.js +1 -1
  66. package/icons/OutlineSm/RefreshOutlineSm.js +1 -1
  67. package/icons/OutlineSm/RequestOutlineSm.js +1 -1
  68. package/icons/OutlineSm/RouteOutlineSm.js +1 -1
  69. package/icons/OutlineSm/SearchOutlineSm.js +1 -1
  70. package/icons/OutlineSm/SortingOutlineSm.js +1 -1
  71. package/icons/OutlineSm/SuccessOutlineSm.js +1 -1
  72. package/icons/OutlineSm/TransferOutlineSm.js +1 -1
  73. package/node/components/Checkbox/Icon/Icon.js +1 -1
  74. package/node/components/DataGrid/DataGrid.d.ts +2 -162
  75. package/node/components/DataGrid/DataGrid.js +2 -2
  76. package/node/components/DataGrid/types.d.ts +164 -0
  77. package/node/components/DataGrid/useLogic/useLogic.d.ts +3 -3
  78. package/node/components/DataGrid/useLogic/useLogic.js +3 -1
  79. package/node/components/DataGridInfinite/DataGridInfinite.d.ts +2 -15
  80. package/node/components/DataGridInfinite/DataGridInfinite.js +2 -2
  81. package/node/components/DataGridInfinite/index.d.ts +1 -0
  82. package/node/components/DataGridInfinite/types.d.ts +19 -0
  83. package/node/components/DataGridInfinite/types.js +2 -0
  84. package/node/components/DataGridInfinite/useLogic/useLogic.d.ts +3 -2
  85. package/node/components/DataGridInfinite/useLogic/useLogic.js +3 -1
  86. package/node/components/Radio/Icon/Icon.js +1 -1
  87. package/node/components/SvgIcon/SvgIcon.js +1 -1
  88. package/node/icons/FillSm/ArrowDFillSm.js +1 -1
  89. package/node/icons/FillSm/ArrowUpFillSm.js +1 -1
  90. package/node/icons/FillSm/CircleErrorFillSm.js +1 -1
  91. package/node/icons/FillSm/ClockFillSm.js +1 -1
  92. package/node/icons/FillSm/DislikeFillSm.js +1 -1
  93. package/node/icons/FillSm/ErrorFillSm.js +1 -1
  94. package/node/icons/FillSm/InfoFillSm.js +1 -1
  95. package/node/icons/FillSm/LikeFillSm.js +1 -1
  96. package/node/icons/FillSm/LocationFillSm.js +1 -1
  97. package/node/icons/FillSm/MailFillSm.js +1 -1
  98. package/node/icons/FillSm/PauseFillSm.js +1 -1
  99. package/node/icons/FillSm/PhoneFillSm.js +1 -1
  100. package/node/icons/FillSm/PitFillSm.js +1 -1
  101. package/node/icons/FillSm/PlayFillSm.js +1 -1
  102. package/node/icons/FillSm/RectangleFillSm.js +1 -1
  103. package/node/icons/FillSm/RoundFillSm.js +1 -1
  104. package/node/icons/FillSm/SentFillSm.js +1 -1
  105. package/node/icons/FillSm/SortDownFillSm.js +1 -1
  106. package/node/icons/FillSm/SortFillSm.js +1 -1
  107. package/node/icons/FillSm/SortUpFillSm.js +1 -1
  108. package/node/icons/FillSm/StarFillSm.js +1 -1
  109. package/node/icons/FillSm/SuccessFillSm.js +1 -1
  110. package/node/icons/FillSm/UpToDateFillSm.js +1 -1
  111. package/node/icons/FillSm/WarningFillSm.js +1 -1
  112. package/node/icons/OutlineSm/AddOutlineSm.js +1 -1
  113. package/node/icons/OutlineSm/AddSmOutlineSm.js +1 -1
  114. package/node/icons/OutlineSm/ArrowDwnOutlineSm.js +1 -1
  115. package/node/icons/OutlineSm/ArrowLOutlineSm.js +1 -1
  116. package/node/icons/OutlineSm/ArrowROutlineSm.js +1 -1
  117. package/node/icons/OutlineSm/ArrowUpOutlineSm.js +1 -1
  118. package/node/icons/OutlineSm/BlockOutlineSm.js +1 -1
  119. package/node/icons/OutlineSm/CheckOutlineSm.js +1 -1
  120. package/node/icons/OutlineSm/ClockOutlineSm.js +1 -1
  121. package/node/icons/OutlineSm/CopyOutlineSm.js +1 -1
  122. package/node/icons/OutlineSm/CrossOutlineSm.js +1 -1
  123. package/node/icons/OutlineSm/CrossSmOutlineSm.js +1 -1
  124. package/node/icons/OutlineSm/DislikeOutlineSm.js +1 -1
  125. package/node/icons/OutlineSm/DocumentOutlineSm.js +1 -1
  126. package/node/icons/OutlineSm/DocumentsOutlineSm.js +1 -1
  127. package/node/icons/OutlineSm/DotOutlineSm.js +1 -1
  128. package/node/icons/OutlineSm/DoubleCheckOutlineSm.js +1 -1
  129. package/node/icons/OutlineSm/DownloadVOutlineSm.js +1 -1
  130. package/node/icons/OutlineSm/EditOutlineSm.js +1 -1
  131. package/node/icons/OutlineSm/InfoOutlineSm.js +1 -1
  132. package/node/icons/OutlineSm/LikeOutlineSm.js +1 -1
  133. package/node/icons/OutlineSm/LoaderOutlineSm.js +1 -1
  134. package/node/icons/OutlineSm/MessageOutlineSm.js +1 -1
  135. package/node/icons/OutlineSm/OpenLinkOutlineSm.js +1 -1
  136. package/node/icons/OutlineSm/PageOutlineSm.js +1 -1
  137. package/node/icons/OutlineSm/ProfileOutlineSm.js +1 -1
  138. package/node/icons/OutlineSm/RefreshOutlineSm.js +1 -1
  139. package/node/icons/OutlineSm/RequestOutlineSm.js +1 -1
  140. package/node/icons/OutlineSm/RouteOutlineSm.js +1 -1
  141. package/node/icons/OutlineSm/SearchOutlineSm.js +1 -1
  142. package/node/icons/OutlineSm/SortingOutlineSm.js +1 -1
  143. package/node/icons/OutlineSm/SuccessOutlineSm.js +1 -1
  144. package/node/icons/OutlineSm/TransferOutlineSm.js +1 -1
  145. package/package.json +1 -1
@@ -2,4 +2,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../SvgIcon';
3
3
  import { classNames } from '../../utils';
4
4
  import { checkboxClassnames } from '../constants';
5
- export const Icon = ({ ...props }) => (_jsxs(SvgIcon, { size: "sm", ...props, children: [_jsx("rect", { className: checkboxClassnames.outline, x: "0.5", y: "0.5", width: "15", height: "15", rx: "3.5" }), _jsx("path", { className: classNames(checkboxClassnames.symbol, checkboxClassnames.iconChecked), d: "M3.892 8.64a.75.75 0 0 1 1.003-1.112l.058.052 1.97 1.97 4.469-4.47.056-.052a.75.75 0 0 1 1.056 1.056l-.051.056-5 5a.75.75 0 0 1-1.061 0l-2.5-2.5Z" }), _jsx("path", { className: classNames(checkboxClassnames.symbol, checkboxClassnames.iconIndeterminate), d: "M12 7.25a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1 0-1.5h8Z" })] }));
5
+ export const Icon = ({ ...props }) => (_jsxs(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: [_jsx("rect", { className: checkboxClassnames.outline, x: "0.5", y: "0.5", width: "15", height: "15", rx: "3.5" }), _jsx("path", { className: classNames(checkboxClassnames.symbol, checkboxClassnames.iconChecked), d: "M3.892 8.64a.75.75 0 0 1 1.003-1.112l.058.052 1.97 1.97 4.469-4.47.056-.052a.75.75 0 0 1 1.056 1.056l-.051.056-5 5a.75.75 0 0 1-1.061 0l-2.5-2.5Z" }), _jsx("path", { className: classNames(checkboxClassnames.symbol, checkboxClassnames.iconIndeterminate), d: "M12 7.25a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1 0-1.5h8Z" })] }));
@@ -1,163 +1,3 @@
1
- import { type ReactNode } from 'react';
2
- import { Variant } from './enums';
3
- import { type NoDataProps } from './NoData';
4
- import type { CellValue, DataGridColumns, DataGridRow, DataGridRowWithOptions, DataGridSort } from './types';
5
- export type DataGridProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = {
6
- /**
7
- * Название класса, применяется к корневому компоненту
8
- */
9
- className?: string;
10
- /**
11
- * Массив данных для таблицы
12
- */
13
- rows: DataGridRowWithOptions<TData>[];
14
- /**
15
- * @example <DataGrid columns={[
16
- * {
17
- * field: 'test',
18
- * label: 'Тестовая колонка',
19
- * sortable: true,
20
- * }]} />
21
- * Конфигурация колонок для таблицы
22
- */
23
- columns: DataGridColumns<TData>[];
24
- /**
25
- * Идентификатор активного элемента массива rows. Выделяет активную строку в таблице
26
- */
27
- activeRowId?: string;
28
- /**
29
- * Поле, которое будет использоваться в качестве ключа
30
- */
31
- keyId: keyof TData;
32
- /**
33
- * @example <DataGrid selectedRows={[{name: 'test'}]} />
34
- * Массив выбранных строк
35
- */
36
- selectedRows?: TData[];
37
- /**
38
- * @example <DataGrid sorting={{fieldId: 'test', sort: 'asc'}} />
39
- * Параметры сортируемой колонки
40
- */
41
- sorting?: DataGridSort<TSortField>;
42
- /**
43
- * Компонент кастомного футера (например Pagination)
44
- */
45
- footer?: ReactNode;
46
- /**
47
- * Используется для отображения placeholder при отсутствии данных в таблице
48
- */
49
- noDataPlaceholder?: ReactNode;
50
- /**
51
- * Максимальная высота для таблицы
52
- */
53
- maxHeight?: number;
54
- /**
55
- * Если true, показывается анимация загрузки
56
- */
57
- isLoading?: boolean;
58
- /**
59
- * Если true, таблица будет заблокирована для взаимодействия
60
- */
61
- isDisabled?: boolean;
62
- /**
63
- * Флаг состояния ошибки
64
- */
65
- isError?: boolean;
66
- /**
67
- * Текст ошибки
68
- */
69
- errorMsg?: string;
70
- /**
71
- * Вариант отображения вложенных элементов
72
- * @default 'tree'
73
- */
74
- variant?: `${Variant}`;
75
- /**
76
- * Опции для отображения древовидных списков
77
- * Применяется если variant="tree"
78
- */
79
- tree?: {
80
- /**
81
- * Если true, то дерево будет раскрыто по умолчанию
82
- * @default 'false'
83
- */
84
- isInitialExpanded?: boolean;
85
- /**
86
- * Уровень раскрытия дерева по умолчанию, при `isInitialExpanded=true`
87
- * @default '1'
88
- */
89
- expandedLevel?: number;
90
- /**
91
- * Количество отображаемых по умолчанию дочерних элементов
92
- * @default '2'
93
- */
94
- initialVisibleChildrenCount?: number;
95
- };
96
- /**
97
- * Опции для отображения вложенных списков
98
- * Применяется если variant="subrows"
99
- */
100
- subrows?: {
101
- /**
102
- * Уровень раскрытия дочерних элементов по умолчанию, при `isInitialExpanded=true`
103
- * @default '1'
104
- */
105
- expandedLevel?: number;
106
- /**
107
- * Количество отображаемых по умолчанию дочерних элементов
108
- * @default '2'
109
- */
110
- initialVisibleChildrenCount?: number;
111
- /**
112
- * Номер колонки, в которой будет расположена кнопка "Показать все"
113
- * @default 1
114
- */
115
- moreButtonColumnPosition?: number;
116
- /**
117
- * Если false, кнопка разворачивания элементов не показывается
118
- * @default true
119
- */
120
- isVisibleCollapseButton?: boolean;
121
- };
122
- /**
123
- * Заглушка для пустых ячеек (если отсутствует field и filter и renderCell)
124
- * @default '—'
125
- */
126
- emptyCellValue?: ReactNode;
127
- /**
128
- * Используется для отображения переданного кол-ва строк при отсутствии данных
129
- * @default 10
130
- */
131
- minDisplayRows?: number;
132
- /**
133
- * Функция обработки нажатия на кнопку "Повторить запрос"
134
- */
135
- onRetry: () => void;
136
- /**
137
- * Обработчик клика строки таблицы
138
- */
139
- onRowClick?: (row: TData) => void;
140
- /**
141
- * Обработчик выбора строки
142
- */
143
- onSelectRow?: (row: TData[]) => void;
144
- /**
145
- * @example <DataGrid onSort={({fieldId: 'test', sort: 'asc'}) => console.log('sorted')} />
146
- * Обработчик сортировки
147
- */
148
- onSort?: (sorting: DataGridSort<TSortField> | undefined) => void;
149
- /**
150
- * Используется для кастомизации компонента, использующегося в сценарии отсутствия данных
151
- */
152
- noDataOptions?: NoDataProps;
153
- /**
154
- * Используется для скрытия чекбокса "Выбрать все"
155
- */
156
- isHideSelectAll?: boolean;
157
- /**
158
- * Место для рендера перед head страницы
159
- * @private Предполагается для использования в реализации изменения размеров таблицы
160
- */
161
- headPreAddon?: ReactNode;
162
- };
1
+ /// <reference types="react" />
2
+ import { type DataGridProps, type DataGridRow } from './types';
163
3
  export declare const DataGrid: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>(props: DataGridProps<TData, TSortField>) => JSX.Element;
@@ -12,7 +12,7 @@ import { NoData } from './NoData';
12
12
  import { Container, DataGridWrapper, DisabledDataGridWrapper } from './styles';
13
13
  import { useLogic } from './useLogic';
14
14
  export const DataGrid = (props) => {
15
- const { isDataGridDisabled, treeRenderConfig, headProps, bodyProps, loaderProps, renderRows, isAllowHorizontalScroll, } = useLogic(props);
15
+ const { isDataGridDisabled, treeRenderConfig, headProps, bodyProps, loaderProps, renderRows, isAllowHorizontalScroll, isHideHead, } = useLogic(props);
16
16
  const { emptySymbol } = useContext(ConfigContext);
17
17
  const { columns, selectedRows = [], sorting, maxHeight, minDisplayRows = MIN_DISPLAY_ROWS_BY_DEFAULT, errorMsg, variant = Variant.Tree, footer, noDataPlaceholder, isLoading, isError, subrows, keyId, activeRowId, emptyCellValue = emptySymbol, className, onRowClick, onSort, noDataOptions, onRetry, headPreAddon, } = props;
18
18
  const { moreButtonColumnPosition = 1, isVisibleCollapseButton = true } = subrows || {};
@@ -26,5 +26,5 @@ export const DataGrid = (props) => {
26
26
  }
27
27
  return null;
28
28
  }, [noDataPlaceholder, noDataOptions, isLoading]);
29
- return (_jsx(DataGridContextProvider, { isLoading: isLoading, children: _jsxs(Container, { "$maxHeight": maxHeight, "$isAllowHorizontalScroll": isAllowHorizontalScroll, className: classNames(dataGridClassnames.root, className), children: [_jsxs(TableContainer, { "$isAllowHorizontalScroll": isAllowHorizontalScroll, inert: isDataGridDisabled ? '' : undefined, children: [headPreAddon, _jsx(Head, { ...headProps, sorting: sorting, onSort: onSort }), _jsx(Body, { ...bodyProps, activeRowId: activeRowId, keyId: keyId, selectedRows: selectedRows, minDisplayRows: minDisplayRows, rows: renderRows, columns: columns, variant: variant, emptyCellValue: emptyCellValue, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition, isVisibleCollapseButton: isVisibleCollapseButton, isLoading: isLoading, isError: isError, errorMsg: errorMsg, noDataPlaceholder: renderedPlaceholder(), onRowClick: onRowClick, onRetry: onRetry })] }), _jsx(Loader, { ...loaderProps }), footer && footer] }) }));
29
+ return (_jsx(DataGridContextProvider, { isLoading: isLoading, children: _jsxs(Container, { "$maxHeight": maxHeight, "$isAllowHorizontalScroll": isAllowHorizontalScroll, className: classNames(dataGridClassnames.root, className), children: [_jsxs(TableContainer, { "$isAllowHorizontalScroll": isAllowHorizontalScroll, inert: isDataGridDisabled ? '' : undefined, children: [headPreAddon, !isHideHead && (_jsx(Head, { ...headProps, sorting: sorting, onSort: onSort })), _jsx(Body, { ...bodyProps, activeRowId: activeRowId, keyId: keyId, selectedRows: selectedRows, minDisplayRows: minDisplayRows, rows: renderRows, columns: columns, variant: variant, emptyCellValue: emptyCellValue, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition, isVisibleCollapseButton: isVisibleCollapseButton, isLoading: isLoading, isError: isError, errorMsg: errorMsg, noDataPlaceholder: renderedPlaceholder(), onRowClick: onRowClick, onRetry: onRetry })] }), _jsx(Loader, { ...loaderProps }), footer && footer] }) }));
30
30
  };
@@ -1,9 +1,173 @@
1
1
  import { type CSSProperties, type ReactNode } from 'react';
2
2
  import { type Target } from '../utils';
3
+ import { type Variant } from './enums';
4
+ import type { NoDataProps } from './NoData';
3
5
  export type AlignVariant = 'left' | 'center' | 'right';
4
6
  export type SortState = 'asc' | 'desc';
5
7
  export type RenderCell<TData> = (params: TData) => ReactNode;
6
8
  export type CellValue = unknown;
9
+ export type DataGridProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = {
10
+ /**
11
+ * Название класса, применяется к корневому компоненту
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Массив данных для таблицы
16
+ */
17
+ rows: DataGridRowWithOptions<TData>[];
18
+ /**
19
+ * @example <DataGrid columns={[
20
+ * {
21
+ * field: 'test',
22
+ * label: 'Тестовая колонка',
23
+ * sortable: true,
24
+ * }]} />
25
+ * Конфигурация колонок для таблицы
26
+ */
27
+ columns: DataGridColumns<TData>[];
28
+ /**
29
+ * Идентификатор активного элемента массива rows. Выделяет активную строку в таблице
30
+ */
31
+ activeRowId?: string;
32
+ /**
33
+ * Поле, которое будет использоваться в качестве ключа
34
+ */
35
+ keyId: keyof TData;
36
+ /**
37
+ * @example <DataGrid selectedRows={[{name: 'test'}]} />
38
+ * Массив выбранных строк
39
+ */
40
+ selectedRows?: TData[];
41
+ /**
42
+ * @example <DataGrid sorting={{fieldId: 'test', sort: 'asc'}} />
43
+ * Параметры сортируемой колонки
44
+ */
45
+ sorting?: DataGridSort<TSortField>;
46
+ /**
47
+ * Компонент кастомного футера (например Pagination)
48
+ */
49
+ footer?: ReactNode;
50
+ /**
51
+ * Используется для отображения placeholder при отсутствии данных в таблице
52
+ */
53
+ noDataPlaceholder?: ReactNode;
54
+ /**
55
+ * Максимальная высота для таблицы
56
+ */
57
+ maxHeight?: number;
58
+ /**
59
+ * Если true, показывается анимация загрузки
60
+ */
61
+ isLoading?: boolean;
62
+ /**
63
+ * Если true, таблица будет заблокирована для взаимодействия
64
+ */
65
+ isDisabled?: boolean;
66
+ /**
67
+ * Флаг состояния ошибки
68
+ */
69
+ isError?: boolean;
70
+ /**
71
+ * Текст ошибки
72
+ */
73
+ errorMsg?: string;
74
+ /**
75
+ * Вариант отображения вложенных элементов
76
+ * @default 'tree'
77
+ */
78
+ variant?: `${Variant}`;
79
+ /**
80
+ * Опции для отображения древовидных списков
81
+ * Применяется если variant="tree"
82
+ */
83
+ tree?: {
84
+ /**
85
+ * Если true, то дерево будет раскрыто по умолчанию
86
+ * @default 'false'
87
+ */
88
+ isInitialExpanded?: boolean;
89
+ /**
90
+ * Уровень раскрытия дерева по умолчанию, при `isInitialExpanded=true`
91
+ * @default '1'
92
+ */
93
+ expandedLevel?: number;
94
+ /**
95
+ * Количество отображаемых по умолчанию дочерних элементов
96
+ * @default '2'
97
+ */
98
+ initialVisibleChildrenCount?: number;
99
+ };
100
+ /**
101
+ * Опции для отображения вложенных списков
102
+ * Применяется если variant="subrows"
103
+ */
104
+ subrows?: {
105
+ /**
106
+ * Уровень раскрытия дочерних элементов по умолчанию, при `isInitialExpanded=true`
107
+ * @default '1'
108
+ */
109
+ expandedLevel?: number;
110
+ /**
111
+ * Количество отображаемых по умолчанию дочерних элементов
112
+ * @default '2'
113
+ */
114
+ initialVisibleChildrenCount?: number;
115
+ /**
116
+ * Номер колонки, в которой будет расположена кнопка "Показать все"
117
+ * @default 1
118
+ */
119
+ moreButtonColumnPosition?: number;
120
+ /**
121
+ * Если false, кнопка разворачивания элементов не показывается
122
+ * @default true
123
+ */
124
+ isVisibleCollapseButton?: boolean;
125
+ };
126
+ /**
127
+ * Заглушка для пустых ячеек (если отсутствует field и filter и renderCell)
128
+ * @default '—'
129
+ */
130
+ emptyCellValue?: ReactNode;
131
+ /**
132
+ * Используется для отображения переданного кол-ва строк при отсутствии данных
133
+ * @default 10
134
+ */
135
+ minDisplayRows?: number;
136
+ /**
137
+ * Функция обработки нажатия на кнопку "Повторить запрос"
138
+ */
139
+ onRetry: () => void;
140
+ /**
141
+ * Обработчик клика строки таблицы
142
+ */
143
+ onRowClick?: (row: TData) => void;
144
+ /**
145
+ * Обработчик выбора строки
146
+ */
147
+ onSelectRow?: (row: TData[]) => void;
148
+ /**
149
+ * @example <DataGrid onSort={({fieldId: 'test', sort: 'asc'}) => console.log('sorted')} />
150
+ * Обработчик сортировки
151
+ */
152
+ onSort?: (sorting: DataGridSort<TSortField> | undefined) => void;
153
+ /**
154
+ * Используется для кастомизации компонента, использующегося в сценарии отсутствия данных
155
+ */
156
+ noDataOptions?: NoDataProps;
157
+ /**
158
+ * Используется для скрытия чекбокса "Выбрать все"
159
+ */
160
+ isHideSelectAll?: boolean;
161
+ /**
162
+ * Место для рендера перед head страницы
163
+ * @private Предполагается для использования в реализации изменения размеров таблицы
164
+ */
165
+ headPreAddon?: ReactNode;
166
+ /**
167
+ * Убирает шапку таблицы, когда нет данных
168
+ */
169
+ isHideHeaderIfNoData?: boolean;
170
+ };
7
171
  export type DataGridSort<TSortField> = {
8
172
  /**
9
173
  * @example {fieldId: 'test'}
@@ -1,8 +1,7 @@
1
1
  import { type ChangeEvent } from 'react';
2
- import { type DataGridProps } from '../DataGrid';
3
- import type { CellValue, DataGridRow } from '../types';
2
+ import type { CellValue, DataGridProps, DataGridRow } from '../types';
4
3
  type UseLogicParams<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = DataGridProps<TData, TSortField>;
5
- export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, variant, tree, subrows, selectedRows, isLoading, isDisabled, onSelectRow, isHideSelectAll, }: UseLogicParams<TData, TSortField>) => {
4
+ export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, variant, tree, subrows, selectedRows, isLoading, isDisabled, onSelectRow, isHideSelectAll, isHideHeaderIfNoData, }: UseLogicParams<TData, TSortField>) => {
6
5
  isDataGridDisabled: boolean | undefined;
7
6
  treeRenderConfig: {
8
7
  isInitialExpanded?: boolean | undefined;
@@ -11,6 +10,7 @@ export declare const useLogic: <TData extends Record<string, unknown> = DataGrid
11
10
  } | undefined;
12
11
  renderRows: TData[];
13
12
  isAllowHorizontalScroll: boolean;
13
+ isHideHead: boolean;
14
14
  headProps: {
15
15
  rowsCount: number;
16
16
  uncheckedRowsCount: number;
@@ -3,7 +3,7 @@ import { useFirstMountState } from '../../hooks';
3
3
  import { prop, uniqueBy } from '../../utils';
4
4
  import { Variant } from '../enums';
5
5
  import { getGridTemplateColumns, getIsAllowHorizontalScroll } from './utils';
6
- export const useLogic = ({ keyId, columns, rows = [], variant, tree, subrows, selectedRows = [], isLoading, isDisabled, onSelectRow, isHideSelectAll, }) => {
6
+ export const useLogic = ({ keyId, columns, rows = [], variant, tree, subrows, selectedRows = [], isLoading, isDisabled, onSelectRow, isHideSelectAll, isHideHeaderIfNoData = false, }) => {
7
7
  const isFirstRender = useFirstMountState();
8
8
  const isSelectable = Boolean(onSelectRow);
9
9
  const isDataGridDisabled = isLoading || isDisabled;
@@ -54,11 +54,13 @@ export const useLogic = ({ keyId, columns, rows = [], variant, tree, subrows, se
54
54
  }
55
55
  onSelectRow(selectedRowsRef.current.filter((selectedRow) => selectedRow[keyId] !== row[keyId]));
56
56
  };
57
+ const isHideHead = isHideHeaderIfNoData && rows.length === 0;
57
58
  return {
58
59
  isDataGridDisabled,
59
60
  treeRenderConfig,
60
61
  renderRows,
61
62
  isAllowHorizontalScroll,
63
+ isHideHead,
62
64
  headProps: {
63
65
  rowsCount: availableRows.length,
64
66
  uncheckedRowsCount,
@@ -1,17 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { type CellValue, type DataGridProps, type DataGridRow } from '../DataGrid';
3
- export type DataGridInfiniteProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = Omit<DataGridProps<TData, TSortField>, 'footer' | 'minDisplayRows'> & {
4
- /**
5
- * Флаг достижения конца списка
6
- */
7
- isEndReached?: boolean;
8
- /**
9
- * Текст достижения конца списка
10
- */
11
- endOfScrollMsg?: string;
12
- /**
13
- * Обработчик подгрузки данных
14
- */
15
- onEndReached?: () => void;
16
- };
2
+ import { type DataGridRow } from '../DataGrid';
3
+ import { type DataGridInfiniteProps } from './types';
17
4
  export declare const DataGridInfinite: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>(props: DataGridInfiniteProps<TData, TSortField>) => JSX.Element;
@@ -18,12 +18,12 @@ import { useLogic } from './useLogic';
18
18
  const INITIAL_LEVEL = 0;
19
19
  export const DataGridInfinite = (props) => {
20
20
  const { imagesMap, emptySymbol } = useContext(ConfigContext);
21
- const { isNoData, isDataGridDisabled, isStickyButtonActive, treeRenderConfig, virtuosoProps, headProps, rowProps, scrollToTopButtonProps, isEndReached, } = useLogic(props);
21
+ const { isNoData, isDataGridDisabled, isStickyButtonActive, treeRenderConfig, virtuosoProps, headProps, rowProps, scrollToTopButtonProps, isEndReached, isHideHead, } = useLogic(props);
22
22
  const { columns, rows = [], selectedRows = [], sorting, maxHeight, isLoading, isDisabled, keyId, activeRowId, emptyCellValue = emptySymbol, variant = Variant.Tree, subrows, className, isError, endOfScrollMsg, errorMsg, noDataPlaceholder, onRowClick, onSort, onRetry, headPreAddon, } = props;
23
23
  const { moreButtonColumnPosition = 1, isVisibleCollapseButton = true } = subrows || {};
24
24
  const { isInitialExpanded = false, expandedLevel = EXPANDED_LEVEL_BY_DEFAULT, initialVisibleChildrenCount = INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT, } = treeRenderConfig || {};
25
25
  const TableContainer = isDisabled ? DisabledDataGridWrapper : DataGridWrapper;
26
- return (_jsx(DataGridContextProvider, { children: _jsxs(Container, { "$maxHeight": maxHeight, className: classNames(dataGridClassnames.root, className), children: [headPreAddon, _jsxs(TableContainer, { inert: isDataGridDisabled ? '' : undefined, children: [_jsx(Head, { ...headProps, onSort: onSort, sorting: sorting, columns: columns }), _jsx(ContentState, { isLoading: isLoading && !isNoData, loadingTitle: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0434\u0430\u043D\u043D\u044B\u0445", isError: isError && !isNoData, errorState: {
26
+ return (_jsx(DataGridContextProvider, { children: _jsxs(Container, { "$maxHeight": maxHeight, className: classNames(dataGridClassnames.root, className), children: [headPreAddon, _jsxs(TableContainer, { inert: isDataGridDisabled ? '' : undefined, children: [!isHideHead && (_jsx(Head, { ...headProps, onSort: onSort, sorting: sorting, columns: columns })), _jsx(ContentState, { isLoading: isLoading && !isNoData, loadingTitle: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0434\u0430\u043D\u043D\u044B\u0445", isError: isError && !isNoData, errorState: {
27
27
  imgAlt: 'Что-то пошло не так',
28
28
  errorList: [errorMsg || ''],
29
29
  imgSrc: imagesMap.defaultErrorImgSrc,
@@ -1 +1,2 @@
1
1
  export * from './DataGridInfinite';
2
+ export type { DataGridInfiniteProps } from './types';
@@ -0,0 +1,19 @@
1
+ import type { CellValue, DataGridProps, DataGridRow } from '../DataGrid';
2
+ export type DataGridInfiniteProps<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = Omit<DataGridProps<TData, TSortField>, 'footer' | 'minDisplayRows'> & {
3
+ /**
4
+ * Флаг достижения конца списка
5
+ */
6
+ isEndReached?: boolean;
7
+ /**
8
+ * Текст достижения конца списка
9
+ */
10
+ endOfScrollMsg?: string;
11
+ /**
12
+ * Обработчик подгрузки данных
13
+ */
14
+ onEndReached?: () => void;
15
+ /**
16
+ * Убирает шапку таблицы, когда нет данных
17
+ */
18
+ isHideHeaderIfNoData?: boolean;
19
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,9 @@
1
1
  import { type ChangeEvent } from 'react';
2
2
  import type { ListRange, VirtuosoHandle } from 'react-virtuoso';
3
3
  import { type CellValue, type DataGridRow } from '../../DataGrid';
4
- import { type DataGridInfiniteProps } from '../DataGridInfinite';
4
+ import { type DataGridInfiniteProps } from '../types';
5
5
  type UseLogicParams<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = DataGridInfiniteProps<TData, TSortField>;
6
- export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, variant, tree, subrows, selectedRows, isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, }: UseLogicParams<TData, TSortField>) => {
6
+ export declare const useLogic: <TData extends Record<string, unknown> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, variant, tree, subrows, selectedRows, isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, isHideHeaderIfNoData, }: UseLogicParams<TData, TSortField>) => {
7
7
  isNoData: boolean;
8
8
  isDataGridDisabled: boolean | undefined;
9
9
  isStickyButtonActive: boolean;
@@ -13,6 +13,7 @@ export declare const useLogic: <TData extends Record<string, unknown> = DataGrid
13
13
  initialVisibleChildrenCount?: number | undefined;
14
14
  } | undefined;
15
15
  isEndReached: boolean | undefined;
16
+ isHideHead: boolean;
16
17
  virtuosoProps: {
17
18
  id: string;
18
19
  ref: import("react").RefObject<VirtuosoHandle>;
@@ -4,7 +4,7 @@ import { getGridTemplateColumns } from '../../DataGrid/useLogic/utils';
4
4
  import { useToggle } from '../../hooks';
5
5
  import { prop, uniqueBy } from '../../utils';
6
6
  import { VIRTUOSO_CONTAINER_ID, VIRTUOSO_LIST_ID } from '../constants';
7
- export const useLogic = ({ keyId, columns, rows, variant, tree, subrows, selectedRows = [], isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, }) => {
7
+ export const useLogic = ({ keyId, columns, rows, variant, tree, subrows, selectedRows = [], isLoading, isDisabled, isEndReached, onEndReached, onSelectRow, isHideSelectAll, isHideHeaderIfNoData = false, }) => {
8
8
  const virtuoso = useRef(null);
9
9
  const [hasVerticalScroll, setHasVerticalScroll] = useState(false);
10
10
  const [isStickyButtonActive, showStickyButton, hideStickyButton] = useToggle();
@@ -57,12 +57,14 @@ export const useLogic = ({ keyId, columns, rows, variant, tree, subrows, selecte
57
57
  setHasVerticalScroll(list?.clientHeight > container?.clientHeight);
58
58
  }
59
59
  };
60
+ const isHideHead = isHideHeaderIfNoData && rows.length === 0;
60
61
  return {
61
62
  isNoData,
62
63
  isDataGridDisabled,
63
64
  isStickyButtonActive,
64
65
  treeRenderConfig,
65
66
  isEndReached: isEndReached && hasVerticalScroll,
67
+ isHideHead,
66
68
  virtuosoProps: {
67
69
  id: VIRTUOSO_CONTAINER_ID,
68
70
  ref: virtuoso,
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../SvgIcon';
3
3
  import { radioClassnames } from '../constants';
4
- export const Icon = ({ ...props }) => (_jsxs(SvgIcon, { size: "sm", ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "7.5", className: radioClassnames.outerCircle }), _jsx("circle", { cx: "8", cy: "8", r: "4", className: radioClassnames.dot, fill: "#fff" })] }));
4
+ export const Icon = ({ ...props }) => (_jsxs(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "7.5", className: radioClassnames.outerCircle }), _jsx("circle", { cx: "8", cy: "8", r: "4", className: radioClassnames.dot, fill: "#fff" })] }));
@@ -3,6 +3,6 @@ import { classNames } from '../utils';
3
3
  import { SIZES, svgIconClassnames } from './constants';
4
4
  import { StyledSvg } from './styles';
5
5
  export const SvgIcon = (props) => {
6
- const { children, color = 'inherit', titleAccess, size, width, height, viewBox = size === 'sm' ? '0 0 16 16' : '0 0 24 24', xmlns = 'http://www.w3.org/2000/svg', className, ...restProps } = props;
6
+ const { children, color = 'inherit', titleAccess, size, width, height, viewBox = '0 0 24 24', xmlns = 'http://www.w3.org/2000/svg', className, ...restProps } = props;
7
7
  return (_jsxs(StyledSvg, { className: classNames(className, svgIconClassnames.root), viewBox: viewBox, "aria-hidden": titleAccess ? undefined : true, role: titleAccess ? 'img' : undefined, xmlns: xmlns, color: color, width: SIZES[size] || width || '1em', height: SIZES[size] || height || '1em', ...restProps, children: [children, titleAccess ? _jsx("title", { children: titleAccess }) : null] }));
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const ArrowDFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M8 10 5.5 7h5L8 10Z" }) }));
3
+ const ArrowDFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M8 10 5.5 7h5L8 10Z" }) }));
4
4
  export default ArrowDFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const ArrowUpFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "m8 7-2.5 3h5L8 7Z" }) }));
3
+ const ArrowUpFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "m8 7-2.5 3h5L8 7Z" }) }));
4
4
  export default ArrowUpFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const CircleErrorFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm2.875 3.412a.75.75 0 0 0-1.06-.032L8.126 6.97l-1.69-1.59A.75.75 0 0 0 5.41 6.472l1.622 1.527L5.41 9.526a.75.75 0 0 0 .969 1.143l.059-.05 1.689-1.59 1.69 1.59.058.05a.75.75 0 0 0 .969-1.143L9.22 8l1.623-1.527a.75.75 0 0 0 .032-1.06Z" }) }));
3
+ const CircleErrorFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm2.875 3.412a.75.75 0 0 0-1.06-.032L8.126 6.97l-1.69-1.59A.75.75 0 0 0 5.41 6.472l1.622 1.527L5.41 9.526a.75.75 0 0 0 .969 1.143l.059-.05 1.689-1.59 1.69 1.59.058.05a.75.75 0 0 0 .969-1.143L9.22 8l1.623-1.527a.75.75 0 0 0 .032-1.06Z" }) }));
4
4
  export default CircleErrorFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const ClockFillSm = ({ ...props }) => (_jsxs(SvgIcon, { size: "sm", ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "6" }), _jsx("path", { d: "M10.5 9.5 8 8V4.5", stroke: "#fff", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
3
+ const ClockFillSm = ({ ...props }) => (_jsxs(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: [_jsx("circle", { cx: "8", cy: "8", r: "6" }), _jsx("path", { d: "M10.5 9.5 8 8V4.5", stroke: "#fff", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
4
4
  export default ClockFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const DislikeFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M1.504 9.417a.75.75 0 0 0 .75-.75V2A.75.75 0 0 0 .753 2v6.667c0 .414.337.75.75.75ZM8.504 14.75c.658 0 1.185-.286 1.506-.8.283-.455.361-1.016.369-1.522.01-.725-.125-1.567-.281-2.345h3.073c.535 0 1.024-.145 1.403-.483.373-.334.552-.777.626-1.207.143-.827-.06-1.834-.329-2.732-.551-1.837-1.547-3.719-1.69-3.984a.811.811 0 0 0-.717-.427h-7.96a.75.75 0 0 0-.75.75v6.667c0 .585.277 1.03.588 1.354.296.307.676.56.981.762.335.222.602.397.81.59.201.184.28.323.303.44.059.298.123.66.181.936.062.292.138.6.254.875.117.279.294.575.587.797.304.23.663.329 1.046.329Z" }) }));
3
+ const DislikeFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M1.504 9.417a.75.75 0 0 0 .75-.75V2A.75.75 0 0 0 .753 2v6.667c0 .414.337.75.75.75ZM8.504 14.75c.658 0 1.185-.286 1.506-.8.283-.455.361-1.016.369-1.522.01-.725-.125-1.567-.281-2.345h3.073c.535 0 1.024-.145 1.403-.483.373-.334.552-.777.626-1.207.143-.827-.06-1.834-.329-2.732-.551-1.837-1.547-3.719-1.69-3.984a.811.811 0 0 0-.717-.427h-7.96a.75.75 0 0 0-.75.75v6.667c0 .585.277 1.03.588 1.354.296.307.676.56.981.762.335.222.602.397.81.59.201.184.28.323.303.44.059.298.123.66.181.936.062.292.138.6.254.875.117.279.294.575.587.797.304.23.663.329 1.046.329Z" }) }));
4
4
  export default DislikeFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const ErrorFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M6.821 1.979c.651-.651 1.707-.651 2.358 0l4.843 4.842c.65.651.65 1.707 0 2.358l-4.843 4.843c-.651.65-1.707.65-2.358 0L1.98 9.179a1.667 1.667 0 0 1 0-2.358L6.82 1.98Zm1.18 8.604a.75.75 0 0 0 0 1.5h.008l.076-.004a.75.75 0 0 0 0-1.492l-.076-.004H8Zm0-6.667a.75.75 0 0 0-.75.75V8a.75.75 0 0 0 1.5 0V4.666a.75.75 0 0 0-.75-.75Z" }) }));
3
+ const ErrorFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M6.821 1.979c.651-.651 1.707-.651 2.358 0l4.843 4.842c.65.651.65 1.707 0 2.358l-4.843 4.843c-.651.65-1.707.65-2.358 0L1.98 9.179a1.667 1.667 0 0 1 0-2.358L6.82 1.98Zm1.18 8.604a.75.75 0 0 0 0 1.5h.008l.076-.004a.75.75 0 0 0 0-1.492l-.076-.004H8Zm0-6.667a.75.75 0 0 0-.75.75V8a.75.75 0 0 0 1.5 0V4.666a.75.75 0 0 0-.75-.75Z" }) }));
4
4
  export default ErrorFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const InfoFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 5.25a.75.75 0 0 0-.75.75v3.333a.75.75 0 0 0 1.5 0V8A.75.75 0 0 0 8 7.25Zm0-3.333a.75.75 0 0 0 0 1.5h.009l.076-.004a.75.75 0 0 0 0-1.492l-.076-.004H8Z" }) }));
3
+ const InfoFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 5.25a.75.75 0 0 0-.75.75v3.333a.75.75 0 0 0 1.5 0V8A.75.75 0 0 0 8 7.25Zm0-3.333a.75.75 0 0 0 0 1.5h.009l.076-.004a.75.75 0 0 0 0-1.492l-.076-.004H8Z" }) }));
4
4
  export default InfoFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const LikeFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M1.504 6.583a.75.75 0 0 1 .75.75V14a.75.75 0 0 1-1.501 0V7.333c0-.414.337-.75.75-.75ZM8.504 1.25c.658 0 1.185.286 1.506.8.283.455.361 1.016.369 1.522.01.725-.125 1.567-.281 2.345h3.073c.535 0 1.024.145 1.403.483.373.334.552.777.626 1.207.143.827-.06 1.834-.329 2.732-.551 1.837-1.547 3.719-1.69 3.984a.811.811 0 0 1-.717.427h-7.96a.75.75 0 0 1-.75-.75V7.333c0-.585.277-1.03.588-1.354.296-.307.676-.56.981-.762.335-.222.602-.397.81-.59.201-.184.28-.323.303-.44.059-.298.123-.66.181-.936.062-.292.138-.6.254-.875.117-.279.294-.575.587-.797.304-.23.663-.329 1.046-.329Z" }) }));
3
+ const LikeFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M1.504 6.583a.75.75 0 0 1 .75.75V14a.75.75 0 0 1-1.501 0V7.333c0-.414.337-.75.75-.75ZM8.504 1.25c.658 0 1.185.286 1.506.8.283.455.361 1.016.369 1.522.01.725-.125 1.567-.281 2.345h3.073c.535 0 1.024.145 1.403.483.373.334.552.777.626 1.207.143.827-.06 1.834-.329 2.732-.551 1.837-1.547 3.719-1.69 3.984a.811.811 0 0 1-.717.427h-7.96a.75.75 0 0 1-.75-.75V7.333c0-.585.277-1.03.588-1.354.296-.307.676-.56.981-.762.335-.222.602-.397.81-.59.201-.184.28-.323.303-.44.059-.298.123-.66.181-.936.062-.292.138-.6.254-.875.117-.279.294-.575.587-.797.304-.23.663-.329 1.046-.329Z" }) }));
4
4
  export default LikeFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const LocationFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M8 1c1.187 0 2.346.34 3.333.978a5.847 5.847 0 0 1 2.21 2.602 5.62 5.62 0 0 1 .342 3.35 5.741 5.741 0 0 1-1.643 2.97L8 15l-4.242-4.1a5.742 5.742 0 0 1-1.643-2.97 5.62 5.62 0 0 1 .342-3.35 5.847 5.847 0 0 1 2.21-2.602A6.149 6.149 0 0 1 8 1Zm0 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" }) }));
3
+ const LocationFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M8 1c1.187 0 2.346.34 3.333.978a5.847 5.847 0 0 1 2.21 2.602 5.62 5.62 0 0 1 .342 3.35 5.741 5.741 0 0 1-1.643 2.97L8 15l-4.242-4.1a5.742 5.742 0 0 1-1.643-2.97 5.62 5.62 0 0 1 .342-3.35 5.847 5.847 0 0 1 2.21-2.602A6.149 6.149 0 0 1 8 1Zm0 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" }) }));
4
4
  export default LocationFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const MailFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M13 3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h10Zm.558 1.498a.75.75 0 0 0-1.06-.056L8.836 7.738a1.25 1.25 0 0 1-1.672 0L3.502 4.442l-.06-.047a.75.75 0 0 0-.998 1.108l.054.055L4.636 7.48l-1.28 2.133a.751.751 0 0 0 1.288.772L5.77 8.504l.39.35a2.75 2.75 0 0 0 3.679 0l.387-.35 1.13 1.882a.751.751 0 0 0 1.287-.772l-1.28-2.133 2.138-1.923a.75.75 0 0 0 .056-1.06Z" }) }));
3
+ const MailFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M13 3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h10Zm.558 1.498a.75.75 0 0 0-1.06-.056L8.836 7.738a1.25 1.25 0 0 1-1.672 0L3.502 4.442l-.06-.047a.75.75 0 0 0-.998 1.108l.054.055L4.636 7.48l-1.28 2.133a.751.751 0 0 0 1.288.772L5.77 8.504l.39.35a2.75 2.75 0 0 0 3.679 0l.387-.35 1.13 1.882a.751.751 0 0 0 1.287-.772l-1.28-2.133 2.138-1.923a.75.75 0 0 0 .056-1.06Z" }) }));
4
4
  export default MailFillSm;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SvgIcon } from '../../components/SvgIcon';
3
- const PauseFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", ...props, children: _jsx("path", { d: "M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2ZM6 5.25a.75.75 0 0 0-.75.75v4a.75.75 0 0 0 1.5 0V6A.75.75 0 0 0 6 5.25Zm4 0a.75.75 0 0 0-.75.75v4a.75.75 0 0 0 1.5 0V6a.75.75 0 0 0-.75-.75Z" }) }));
3
+ const PauseFillSm = ({ ...props }) => (_jsx(SvgIcon, { size: "sm", viewBox: "0 0 16 16", ...props, children: _jsx("path", { d: "M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2ZM6 5.25a.75.75 0 0 0-.75.75v4a.75.75 0 0 0 1.5 0V6A.75.75 0 0 0 6 5.25Zm4 0a.75.75 0 0 0-.75.75v4a.75.75 0 0 0 1.5 0V6a.75.75 0 0 0-.75-.75Z" }) }));
4
4
  export default PauseFillSm;