@semcore/data-table 16.0.2 → 16.0.3-prerelease.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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -31
- package/lib/cjs/components/Body/Body.js +71 -73
- package/lib/cjs/components/Body/Body.js.map +1 -1
- package/lib/cjs/components/Body/Body.types.js.map +1 -1
- package/lib/cjs/components/Body/Cell.js +57 -58
- package/lib/cjs/components/Body/Cell.js.map +1 -1
- package/lib/cjs/components/Body/Cell.types.js.map +1 -1
- package/lib/cjs/components/Body/MergedCells.js +3 -5
- package/lib/cjs/components/Body/MergedCells.js.map +1 -1
- package/lib/cjs/components/Body/Row.js +57 -58
- package/lib/cjs/components/Body/Row.js.map +1 -1
- package/lib/cjs/components/Body/Row.types.js +0 -2
- package/lib/cjs/components/Body/Row.types.js.map +1 -1
- package/lib/cjs/components/DataTable/DataTable.js +107 -123
- package/lib/cjs/components/DataTable/DataTable.js.map +1 -1
- package/lib/cjs/components/DataTable/DataTable.types.js +0 -2
- package/lib/cjs/components/DataTable/DataTable.types.js.map +1 -1
- package/lib/cjs/components/Head/Column.js +56 -57
- package/lib/cjs/components/Head/Column.js.map +1 -1
- package/lib/cjs/components/Head/Column.types.js.map +1 -1
- package/lib/cjs/components/Head/Group.js +37 -38
- package/lib/cjs/components/Head/Group.js.map +1 -1
- package/lib/cjs/components/Head/Group.type.js.map +1 -1
- package/lib/cjs/components/Head/Head.js +55 -57
- package/lib/cjs/components/Head/Head.js.map +1 -1
- package/lib/cjs/components/Head/Head.types.js.map +1 -1
- package/lib/cjs/index.js +1 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/components/Body/Body.js +70 -71
- package/lib/es6/components/Body/Body.js.map +1 -1
- package/lib/es6/components/Body/Body.types.js.map +1 -1
- package/lib/es6/components/Body/Cell.js +57 -57
- package/lib/es6/components/Body/Cell.js.map +1 -1
- package/lib/es6/components/Body/Cell.types.js.map +1 -1
- package/lib/es6/components/Body/MergedCells.js.map +1 -1
- package/lib/es6/components/Body/Row.js +56 -56
- package/lib/es6/components/Body/Row.js.map +1 -1
- package/lib/es6/components/Body/Row.types.js +1 -1
- package/lib/es6/components/Body/Row.types.js.map +1 -1
- package/lib/es6/components/DataTable/DataTable.js +101 -110
- package/lib/es6/components/DataTable/DataTable.js.map +1 -1
- package/lib/es6/components/DataTable/DataTable.types.js +1 -1
- package/lib/es6/components/DataTable/DataTable.types.js.map +1 -1
- package/lib/es6/components/Head/Column.js +54 -54
- package/lib/es6/components/Head/Column.js.map +1 -1
- package/lib/es6/components/Head/Column.types.js.map +1 -1
- package/lib/es6/components/Head/Group.js +34 -33
- package/lib/es6/components/Head/Group.js.map +1 -1
- package/lib/es6/components/Head/Group.type.js.map +1 -1
- package/lib/es6/components/Head/Head.js +50 -51
- package/lib/es6/components/Head/Head.js.map +1 -1
- package/lib/es6/components/Head/Head.types.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/components/Body/Body.mjs +73 -72
- package/lib/esm/components/Body/Cell.mjs +59 -57
- package/lib/esm/components/Body/Row.mjs +58 -56
- package/lib/esm/components/DataTable/DataTable.mjs +99 -100
- package/lib/esm/components/Head/Column.mjs +55 -53
- package/lib/esm/components/Head/Group.mjs +38 -35
- package/lib/esm/components/Head/Head.mjs +57 -55
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/types/components/Body/Body.d.ts +7 -7
- package/lib/types/components/Body/Body.types.d.ts +4 -5
- package/lib/types/components/Body/Cell.types.d.ts +3 -4
- package/lib/types/components/Body/MergedCells.d.ts +1 -2
- package/lib/types/components/Body/Row.types.d.ts +5 -6
- package/lib/types/components/DataTable/DataTable.d.ts +3 -3
- package/lib/types/components/DataTable/DataTable.types.d.ts +8 -9
- package/lib/types/components/Head/Column.d.ts +2 -2
- package/lib/types/components/Head/Column.types.d.ts +1 -2
- package/lib/types/components/Head/Group.d.ts +3 -3
- package/lib/types/components/Head/Group.type.d.ts +3 -3
- package/lib/types/components/Head/Head.d.ts +7 -96
- package/lib/types/components/Head/Head.types.d.ts +2 -3
- package/lib/types/index.d.ts +3 -6
- package/package.json +16 -16
|
@@ -6,12 +6,12 @@ import it from "./it.json.mjs";
|
|
|
6
6
|
import ja from "./ja.json.mjs";
|
|
7
7
|
import ko from "./ko.json.mjs";
|
|
8
8
|
import nl from "./nl.json.mjs";
|
|
9
|
+
import pl from "./pl.json.mjs";
|
|
9
10
|
import pt from "./pt.json.mjs";
|
|
11
|
+
import sv from "./sv.json.mjs";
|
|
10
12
|
import tr from "./tr.json.mjs";
|
|
11
13
|
import vi from "./vi.json.mjs";
|
|
12
14
|
import zh from "./zh.json.mjs";
|
|
13
|
-
import pl from "./pl.json.mjs";
|
|
14
|
-
import sv from "./sv.json.mjs";
|
|
15
15
|
var localizedMessages = {
|
|
16
16
|
de,
|
|
17
17
|
en,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DataTableBodyProps } from './Body.types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare const Body:
|
|
6
|
-
Row: Intergalactic.Component<
|
|
7
|
-
Cell: Intergalactic.Component<
|
|
1
|
+
import { type Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { DataTableBodyProps } from './Body.types';
|
|
3
|
+
import type { DataTableCellProps } from './Cell.types';
|
|
4
|
+
import type { DataTableRowProps } from './Row.types';
|
|
5
|
+
export declare const Body: Intergalactic.Component<"div", DataTableBodyProps> & {
|
|
6
|
+
Row: Intergalactic.Component<"div", DataTableRowProps>;
|
|
7
|
+
Cell: Intergalactic.Component<"div", DataTableCellProps>;
|
|
8
8
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { DTRow } from './Row.types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Theme } from './Cell.types';
|
|
1
|
+
import type { Theme } from './Cell.types';
|
|
2
|
+
import type { DTRow } from './Row.types';
|
|
3
|
+
import type { DTUse, VirtualScroll } from '../DataTable/DataTable.types';
|
|
4
|
+
import type { DTColumn } from '../Head/Column.types';
|
|
6
5
|
export type CellRenderProps = {
|
|
7
6
|
dataKey: string;
|
|
8
7
|
row: DTRow;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DTColumn } from '../Head/Column.types';
|
|
1
|
+
import type { DTRow, DTRows } from './Row.types';
|
|
2
|
+
import type { DTUse } from '../DataTable/DataTable.types';
|
|
3
|
+
import type { DTColumn } from '../Head/Column.types';
|
|
5
4
|
export type Theme = 'muted' | 'info' | 'success' | 'warning' | 'danger';
|
|
6
5
|
export type DataTableCellProps = {
|
|
7
6
|
id: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { DataTableCellProps } from './Cell.types';
|
|
1
|
+
import type { DataTableCellProps } from './Cell.types';
|
|
2
|
+
import type { MergedColumnsCell, MergedRowsCell } from './MergedCells';
|
|
3
|
+
import type { ACCORDION, ROW_GROUP, ROW_INDEX, UNIQ_ROW_KEY } from '../DataTable/DataTable';
|
|
4
|
+
import type { DTValue, DTUse, DataTableData } from '../DataTable/DataTable.types';
|
|
5
|
+
import type { DTColumn } from '../Head/Column.types';
|
|
7
6
|
export type UniqRowKey = string;
|
|
8
7
|
export type DTRow = {
|
|
9
8
|
[UNIQ_ROW_KEY]: UniqRowKey;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Head } from '../Head/Head';
|
|
1
|
+
import type { DataTableType } from './DataTable.types';
|
|
3
2
|
import { Body } from '../Body/Body';
|
|
3
|
+
import { Head } from '../Head/Head';
|
|
4
4
|
export declare const ACCORDION: unique symbol;
|
|
5
5
|
export declare const ROW_GROUP: unique symbol;
|
|
6
6
|
export declare const UNIQ_ROW_KEY: unique symbol;
|
|
7
7
|
export declare const SELECT_ALL: unique symbol;
|
|
8
8
|
export declare const ROW_INDEX: unique symbol;
|
|
9
9
|
export declare const DataTable: DataTableType;
|
|
10
|
-
export declare const DataTableInternal:
|
|
10
|
+
export declare const DataTableInternal: DataTableType & {
|
|
11
11
|
Head: typeof Head;
|
|
12
12
|
Body: typeof Body;
|
|
13
13
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import { Intergalactic } from '@semcore/core';
|
|
3
|
-
import
|
|
4
|
-
import { ACCORDION, ROW_GROUP, UNIQ_ROW_KEY } from './DataTable';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { DTRow } from '../Body/Row.types';
|
|
1
|
+
import type { BoxProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
import type Tooltip from '@semcore/tooltip';
|
|
4
|
+
import type { ACCORDION, ROW_GROUP, UNIQ_ROW_KEY } from './DataTable';
|
|
5
|
+
import type { DataTableBodyProps } from '../Body/Body.types';
|
|
6
|
+
import type { DTRow } from '../Body/Row.types';
|
|
7
|
+
import type { DataTableColumnProps } from '../Head/Column.types';
|
|
9
8
|
/**
|
|
10
9
|
* Datatable must have an accessible name (aria-table-name).
|
|
11
10
|
* It should describe table content.
|
|
@@ -13,7 +12,7 @@ import { DTRow } from '../Body/Row.types';
|
|
|
13
12
|
export type DataTableAriaProps = Intergalactic.RequireAtLeastOne<{
|
|
14
13
|
'aria-label'?: string;
|
|
15
14
|
'aria-labelledby'?: string;
|
|
16
|
-
title?: string;
|
|
15
|
+
'title'?: string;
|
|
17
16
|
}>;
|
|
18
17
|
export type SortDirection = 'asc' | 'desc';
|
|
19
18
|
export type DataTableSort<Column> = [sortBy: Column, sortDirection: SortDirection];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Component } from '@semcore/core';
|
|
3
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { ColumnPropsInner, DataTableColumnProps } from './Column.types';
|
|
4
4
|
import type { DataTableData, SortDirection } from '../DataTable/DataTable.types';
|
|
5
5
|
type State = {
|
|
6
6
|
sortVisible: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnGroupConfig, ColumnItemConfig, DataTableData, DataTableProps, DTUse, SortDirection } from '../DataTable/DataTable.types';
|
|
3
1
|
import type { Property } from 'csstype';
|
|
2
|
+
import type { ColumnGroupConfig, ColumnItemConfig, DataTableData, DataTableProps, DTUse, SortDirection } from '../DataTable/DataTable.types';
|
|
4
3
|
export type CommonColumnType = {
|
|
5
4
|
/**
|
|
6
5
|
* Name of column for mapping with data
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Component } from '@semcore/core';
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { DataTableGroupProps, GroupPropsInner } from './Group.type';
|
|
4
4
|
export declare class Group extends Component<DataTableGroupProps, {}, {}, typeof Group.enhance, GroupPropsInner> {
|
|
5
5
|
static displayName: string;
|
|
6
6
|
static style: {
|
|
7
7
|
[key: string]: string;
|
|
8
8
|
};
|
|
9
9
|
static enhance: readonly [(props: any) => {
|
|
10
|
-
uid:
|
|
10
|
+
uid: ReturnType<typeof import("@semcore/core/lib/utils/uniqueID").useUID>;
|
|
11
11
|
}];
|
|
12
12
|
componentDidMount(): void;
|
|
13
13
|
get groupId(): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { DataTableColumnProps, DTColumn } from './Column.types';
|
|
3
|
+
import type { DTUse } from '../DataTable/DataTable.types';
|
|
4
4
|
export type DataTableGroupProps = {
|
|
5
5
|
title: React.ReactNode;
|
|
6
6
|
borders?: 'both' | 'left' | 'right';
|
|
@@ -1,98 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Intergalactic } from '@semcore/core';
|
|
3
|
-
import { DataTableHeadProps } from './Head.types';
|
|
1
|
+
import { type Intergalactic } from '@semcore/core';
|
|
4
2
|
import type Tooltip from '@semcore/tooltip';
|
|
5
|
-
import { DataTableColumnProps } from './Column.types';
|
|
6
|
-
import { DataTableGroupProps } from './Group.type';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
display?: import("csstype").Property.Display | undefined;
|
|
12
|
-
inline?: boolean | undefined;
|
|
13
|
-
boxSizing?: boolean | "border-box" | undefined;
|
|
14
|
-
flex?: import("csstype").Property.Flex<string> | undefined;
|
|
15
|
-
m?: string | number | undefined;
|
|
16
|
-
mt?: string | number | undefined;
|
|
17
|
-
mr?: string | number | undefined;
|
|
18
|
-
mb?: string | number | undefined;
|
|
19
|
-
ml?: string | number | undefined;
|
|
20
|
-
mx?: string | number | undefined;
|
|
21
|
-
my?: string | number | undefined;
|
|
22
|
-
p?: string | number | undefined;
|
|
23
|
-
pt?: string | number | undefined;
|
|
24
|
-
pr?: string | number | undefined;
|
|
25
|
-
pb?: string | number | undefined;
|
|
26
|
-
pl?: string | number | undefined;
|
|
27
|
-
px?: string | number | undefined;
|
|
28
|
-
py?: string | number | undefined;
|
|
29
|
-
w?: string | number | undefined;
|
|
30
|
-
wMin?: string | number | undefined;
|
|
31
|
-
wMax?: string | number | undefined;
|
|
32
|
-
h?: string | number | undefined;
|
|
33
|
-
hMin?: string | number | undefined;
|
|
34
|
-
hMax?: string | number | undefined;
|
|
35
|
-
scaleIndent?: number | undefined;
|
|
36
|
-
innerOutline?: boolean | undefined;
|
|
37
|
-
css?: React.CSSProperties | undefined;
|
|
38
|
-
position?: import("csstype").Property.Position | undefined;
|
|
39
|
-
top?: string | number | undefined;
|
|
40
|
-
left?: string | number | undefined;
|
|
41
|
-
bottom?: string | number | undefined;
|
|
42
|
-
right?: string | number | undefined;
|
|
43
|
-
zIndex?: number | undefined;
|
|
44
|
-
children?: React.ReactNode;
|
|
45
|
-
} & {
|
|
46
|
-
disableEnforceFocus?: boolean | undefined;
|
|
47
|
-
} & {
|
|
48
|
-
title?: React.ReactNode;
|
|
49
|
-
theme?: "default" | "warning" | "invert" | undefined;
|
|
50
|
-
interaction?: "none" | "hover" | "click" | "focus" | import("@semcore/base-components").eventInteraction | undefined;
|
|
51
|
-
} & import("@semcore/tooltip").ArrowCustom, import("@semcore/base-components").PopperContext, never[]>;
|
|
52
|
-
}) = "div">(props: Intergalactic.InternalTypings.ComponentProps<Tag_1, "div", DataTableColumnProps, {}, []>) => Intergalactic.InternalTypings.ComponentRenderingResults;
|
|
53
|
-
Group: <Tag_3 extends "div" | ((<Tag_2 extends Intergalactic.InternalTypings.ComponentTag = "div", Props_1 extends import("@semcore/tooltip").TooltipProps = import("@semcore/tooltip").TooltipProps>(props: Intergalactic.InternalTypings.ComponentProps<Tag_2, "div", Props_1, import("@semcore/base-components").PopperContext, never[]>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<"div", Intergalactic.InternalTypings.ComponentTag, import("@semcore/tooltip").TooltipProps, import("@semcore/base-components").PopperContext, never[]> & {
|
|
54
|
-
Trigger: Intergalactic.Component<"div", import("@semcore/base-components").PopperTriggerProps, import("@semcore/tooltip").TooltipTriggerContext, never[]>;
|
|
55
|
-
Popper: Intergalactic.Component<"div", Intergalactic.InternalTypings.EfficientOmit<import("@semcore/base-components").PopperProps, "interaction"> & import("@semcore/core").StyledProps & {
|
|
56
|
-
display?: import("csstype").Property.Display | undefined;
|
|
57
|
-
inline?: boolean | undefined;
|
|
58
|
-
boxSizing?: boolean | "border-box" | undefined;
|
|
59
|
-
flex?: import("csstype").Property.Flex<string> | undefined;
|
|
60
|
-
m?: string | number | undefined;
|
|
61
|
-
mt?: string | number | undefined;
|
|
62
|
-
mr?: string | number | undefined;
|
|
63
|
-
mb?: string | number | undefined;
|
|
64
|
-
ml?: string | number | undefined;
|
|
65
|
-
mx?: string | number | undefined;
|
|
66
|
-
my?: string | number | undefined;
|
|
67
|
-
p?: string | number | undefined;
|
|
68
|
-
pt?: string | number | undefined;
|
|
69
|
-
pr?: string | number | undefined;
|
|
70
|
-
pb?: string | number | undefined;
|
|
71
|
-
pl?: string | number | undefined;
|
|
72
|
-
px?: string | number | undefined;
|
|
73
|
-
py?: string | number | undefined;
|
|
74
|
-
w?: string | number | undefined;
|
|
75
|
-
wMin?: string | number | undefined;
|
|
76
|
-
wMax?: string | number | undefined;
|
|
77
|
-
h?: string | number | undefined;
|
|
78
|
-
hMin?: string | number | undefined;
|
|
79
|
-
hMax?: string | number | undefined;
|
|
80
|
-
scaleIndent?: number | undefined;
|
|
81
|
-
innerOutline?: boolean | undefined;
|
|
82
|
-
css?: React.CSSProperties | undefined;
|
|
83
|
-
position?: import("csstype").Property.Position | undefined;
|
|
84
|
-
top?: string | number | undefined;
|
|
85
|
-
left?: string | number | undefined;
|
|
86
|
-
bottom?: string | number | undefined;
|
|
87
|
-
right?: string | number | undefined;
|
|
88
|
-
zIndex?: number | undefined;
|
|
89
|
-
children?: React.ReactNode;
|
|
90
|
-
} & {
|
|
91
|
-
disableEnforceFocus?: boolean | undefined;
|
|
92
|
-
} & {
|
|
93
|
-
title?: React.ReactNode;
|
|
94
|
-
theme?: "default" | "warning" | "invert" | undefined;
|
|
95
|
-
interaction?: "none" | "hover" | "click" | "focus" | import("@semcore/base-components").eventInteraction | undefined;
|
|
96
|
-
} & import("@semcore/tooltip").ArrowCustom, import("@semcore/base-components").PopperContext, never[]>;
|
|
97
|
-
}) = "div">(props: Intergalactic.InternalTypings.ComponentProps<Tag_3, "div", DataTableGroupProps, {}, []>) => Intergalactic.InternalTypings.ComponentRenderingResults;
|
|
3
|
+
import type { DataTableColumnProps } from './Column.types';
|
|
4
|
+
import type { DataTableGroupProps } from './Group.type';
|
|
5
|
+
import type { DataTableHeadProps } from './Head.types';
|
|
6
|
+
export declare const Head: Intergalactic.Component<"div", DataTableHeadProps> & {
|
|
7
|
+
Column: <Tag extends "div" | typeof Tooltip = "div">(props: Intergalactic.InternalTypings.ComponentProps<Tag, "div", DataTableColumnProps, {}, []>) => Intergalactic.InternalTypings.ComponentRenderingResults;
|
|
8
|
+
Group: <Tag extends "div" | typeof Tooltip = "div">(props: Intergalactic.InternalTypings.ComponentProps<Tag, "div", DataTableGroupProps, {}, []>) => Intergalactic.InternalTypings.ComponentRenderingResults;
|
|
98
9
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { DataTableData, DataTableProps, DTUse } from '../DataTable/DataTable.types';
|
|
3
|
-
import { DTColumn } from './Column.types';
|
|
1
|
+
import type { DTColumn } from './Column.types';
|
|
2
|
+
import type { DataTableData, DataTableProps, DTUse } from '../DataTable/DataTable.types';
|
|
4
3
|
export type DataTableHeadProps = {
|
|
5
4
|
/**
|
|
6
5
|
* Sticky header
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type React from 'react';
|
|
1
3
|
import { DataTable, ACCORDION, ROW_GROUP, UNIQ_ROW_KEY } from './components/DataTable/DataTable';
|
|
2
4
|
import type { DataTableSort, DataTableType, DataTableData } from './components/DataTable/DataTable.types';
|
|
3
|
-
|
|
4
|
-
import React from 'react';
|
|
5
|
-
declare const wrapDataTable: <PropsExtending extends {}>(wrapper: (props: Intergalactic.InternalTypings.EfficientOmit<Intergalactic.InternalTypings.ComponentPropsNesting<DataTableType>, "tag" | "ref"> & {
|
|
6
|
-
ref: React.Ref<any>;
|
|
7
|
-
tag: Intergalactic.InternalTypings.ComponentTag;
|
|
8
|
-
} & PropsExtending) => React.ReactNode) => DataTableType;
|
|
5
|
+
declare const wrapDataTable: <PropsExtending extends {}>(wrapper: (props: Intergalactic.InternalTypings.UntypeRefAndTag<Intergalactic.InternalTypings.ComponentPropsNesting<DataTableType>> & PropsExtending) => React.ReactNode) => DataTableType;
|
|
9
6
|
export { DataTable, ACCORDION, ROW_GROUP, UNIQ_ROW_KEY, wrapDataTable };
|
|
10
7
|
export type { DataTableSort, DataTableData };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/data-table",
|
|
3
3
|
"description": "Semrush DataTable Component",
|
|
4
|
-
"version": "16.0.
|
|
4
|
+
"version": "16.0.3-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/icon": "16.2.0",
|
|
17
|
+
"@semcore/icon": "16.2.0-prerelease.0",
|
|
18
18
|
"@semcore/button": "16.0.1",
|
|
19
19
|
"@semcore/checkbox": "16.0.1",
|
|
20
20
|
"@semcore/flex-box": "16.0.1",
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
"@semcore/widget-empty": "16.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/react": "18.0.21",
|
|
28
|
-
"@semcore/testing-utils": "1.0.0",
|
|
29
|
-
"@semcore/base-trigger": "*",
|
|
30
|
-
"@semcore/dropdown-menu": "*",
|
|
31
|
-
"@semcore/typography": "*",
|
|
32
|
-
"@semcore/accordion": "*",
|
|
33
|
-
"@semcore/divider": "*",
|
|
34
|
-
"@semcore/portal": "*",
|
|
35
|
-
"@semcore/progress-bar": "*",
|
|
36
|
-
"@semcore/skeleton": "*",
|
|
37
|
-
"@semcore/spin": "*",
|
|
38
|
-
"@semcore/spin-container": "*",
|
|
39
|
-
"@semcore/tooltip": "*",
|
|
40
27
|
"@types/node": "18.16.15",
|
|
41
|
-
"csstype": "3.1.3"
|
|
28
|
+
"csstype": "3.1.3",
|
|
29
|
+
"@semcore/testing-utils": "1.0.0",
|
|
30
|
+
"@semcore/dropdown-menu": "16.1.2-prerelease.0",
|
|
31
|
+
"@semcore/typography": "16.1.1",
|
|
32
|
+
"@semcore/accordion": "16.2.0",
|
|
33
|
+
"@semcore/divider": "16.0.1",
|
|
34
|
+
"@semcore/base-trigger": "16.2.0",
|
|
35
|
+
"@semcore/progress-bar": "16.0.1",
|
|
36
|
+
"@semcore/portal": "16.0.1",
|
|
37
|
+
"@semcore/skeleton": "16.0.1",
|
|
38
|
+
"@semcore/spin-container": "16.0.1",
|
|
39
|
+
"@semcore/base-components": "16.0.1",
|
|
40
|
+
"@semcore/spin": "16.0.1",
|
|
41
|
+
"@semcore/tooltip": "16.0.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@semcore/base-components": "^16.0.0"
|