@scbt-ecom/ui 0.97.2 → 0.98.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.
@@ -0,0 +1,7 @@
1
+ import { Table as TTable } from '@tanstack/react-table';
2
+ import { DataTableProps } from './model';
3
+ type DesktopTableProps<TData extends {}> = Pick<DataTableProps<TData>, 'enableHeaders' | 'classes' | 'mode' | 'pagination' | 'empty'> & {
4
+ table: TTable<TData>;
5
+ };
6
+ export declare const Horizontal: <TData extends {}>({ mode, enableHeaders, table, classes, pagination, empty }: DesktopTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,2 +1,2 @@
1
1
  import { DataTableProps } from './model';
2
- export declare const DataTable: <TData extends {}>({ columns, data, enableHeaders, mode, classes, pagination, empty, pageSize }: DataTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DataTable: <TData extends {}>({ columns, data, enableHeaders, mode, classes, pagination, empty, pageSize, horizontal }: DataTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
@@ -63,5 +63,9 @@ export type DataTableProps<TData extends {}> = {
63
63
  * для переопределения пустой таблицы
64
64
  */
65
65
  empty?: React.ReactNode;
66
+ /**
67
+ * для горизонтальной ориентации таблицы
68
+ */
69
+ horizontal?: boolean;
66
70
  };
67
71
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.97.2",
3
+ "version": "0.98.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {