@ltht-react/table 1.0.137 → 1.0.139

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.
@@ -1,194 +1,194 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
14
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15
- to[j] = from[i];
16
- return to;
17
- };
18
- var __importDefault = (this && this.__importDefault) || function (mod) {
19
- return (mod && mod.__esModule) ? mod : { "default": mod };
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.handleDataUpdateForManualPagination = exports.handleDataUpdate = exports.handleScrollEvent = exports.calculateStaticColumnOffset = exports.createColumns = void 0;
23
- var jsx_runtime_1 = require("react/jsx-runtime");
24
- var react_table_1 = require("@tanstack/react-table");
25
- var table_cell_1 = __importDefault(require("./table-cell"));
26
- var createColumns = function (tableData, headerAxis) {
27
- var columnHelper = react_table_1.createColumnHelper();
28
- var columns = createColumnsRecursively(tableData.headers, columnHelper, headerAxis);
29
- if (tableData.rows.some(function (row) { return row.subRows; })) {
30
- columns = prependColumnWithExpansionControls(columns, columnHelper, headerAxis);
31
- }
32
- return columns;
33
- };
34
- exports.createColumns = createColumns;
35
- var createColumnsRecursively = function (headers, columnHelper, headerAxis) {
36
- var result = headers.map(function (header) {
37
- var _a, _b;
38
- if (header.type === 'display') {
39
- return columnHelper.display({
40
- id: header.id,
41
- header: function () {
42
- var headerCellProps = __assign(__assign({}, header.cellProps), { headerAxis: headerAxis });
43
- return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, headerCellProps), void 0);
44
- },
45
- cell: function (props) {
46
- var cellProps = __assign(__assign({}, props.getValue()), { headerAxis: headerAxis });
47
- return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
48
- },
49
- });
50
- }
51
- if (header.type === 'accessor') {
52
- return columnHelper.accessor(header.id, {
53
- header: function (props) {
54
- var cellProps = __assign(__assign({}, header.cellProps), { iconProps: deriveHeaderIconProps(props), headerAxis: headerAxis });
55
- return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
56
- },
57
- cell: function (props) {
58
- var cellProps = __assign(__assign({}, props.getValue()), { headerAxis: headerAxis });
59
- return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
60
- },
61
- });
62
- }
63
- return columnHelper.group({
64
- header: (_a = header.cellProps.text) !== null && _a !== void 0 ? _a : '',
65
- columns: createColumnsRecursively((_b = header.subHeaders) !== null && _b !== void 0 ? _b : [], columnHelper, headerAxis),
66
- });
67
- });
68
- return result;
69
- };
70
- var deriveHeaderIconProps = function (props) {
71
- if (props.column.getIsSorted() === 'asc') {
72
- return {
73
- type: 'chevron',
74
- direction: 'up',
75
- size: 'medium',
76
- };
77
- }
78
- if (props.column.getIsSorted() === 'desc') {
79
- return {
80
- type: 'chevron',
81
- direction: 'down',
82
- size: 'medium',
83
- };
84
- }
85
- return undefined;
86
- };
87
- var prependColumnWithExpansionControls = function (columns, columnHelper, headerAxis) {
88
- var expanderColumn = columnHelper.display({
89
- id: 'expander',
90
- header: function (_a) {
91
- var table = _a.table;
92
- var headerCellProps = {
93
- iconProps: {
94
- type: 'chevron',
95
- direction: table.getIsAllRowsExpanded() ? 'down' : 'right',
96
- size: 'medium',
97
- },
98
- headerAxis: headerAxis,
99
- clickHandler: table.getToggleAllRowsExpandedHandler(),
100
- };
101
- return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, headerCellProps), void 0);
102
- },
103
- cell: function (props) {
104
- var cellProps = props.row.getCanExpand()
105
- ? {
106
- iconProps: {
107
- type: 'chevron',
108
- direction: props.row.getIsExpanded() ? 'down' : 'right',
109
- size: 'medium',
110
- },
111
- headerAxis: headerAxis,
112
- clickHandler: props.row.getToggleExpandedHandler(),
113
- }
114
- : { headerAxis: headerAxis };
115
- return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
116
- },
117
- });
118
- return [expanderColumn].concat(columns);
119
- };
120
- var calculateStaticColumnOffset = function (cellIdx, staticColumns, firstColumnWidth, secondColumnWidth) {
121
- if (staticColumns === 0) {
122
- return undefined;
123
- }
124
- switch (cellIdx) {
125
- case 0:
126
- return 0;
127
- case 1:
128
- return cellIdx < staticColumns ? firstColumnWidth : undefined;
129
- case 2:
130
- return cellIdx < staticColumns ? firstColumnWidth + secondColumnWidth : undefined;
131
- default:
132
- return undefined;
133
- }
134
- };
135
- exports.calculateStaticColumnOffset = calculateStaticColumnOffset;
136
- var handleScrollEvent = function (table, headerAxis, scrollState) {
137
- var scrollWidth = scrollState.scrollWidth, scrollHeight = scrollState.scrollHeight, currentXScroll = scrollState.currentXScroll, currentYScroll = scrollState.currentYScroll;
138
- if (headerAxis === 'x' &&
139
- currentYScroll >= scrollHeight - getPercentageOfMax(5, scrollHeight) &&
140
- currentYScroll <= scrollHeight &&
141
- table.getCanNextPage()) {
142
- table.nextPage();
143
- }
144
- if (headerAxis === 'y' &&
145
- currentXScroll >= scrollWidth - getPercentageOfMax(5, scrollWidth) &&
146
- currentXScroll <= scrollWidth &&
147
- table.getCanNextPage()) {
148
- table.nextPage();
149
- }
150
- };
151
- exports.handleScrollEvent = handleScrollEvent;
152
- var getPercentageOfMax = function (percentage, max) { return max * (percentage / 100); };
153
- var handleDataUpdate = function (tableData, pageIndex, pageSize, headerAxis, setColumns, setData, setPageCount) {
154
- if (tableData && tableData.headers.length > 0) {
155
- if (headerAxis === 'x') {
156
- setColumns(createColumns(tableData, headerAxis));
157
- setData(tableData.rows.slice(0, (pageIndex + 1) * pageSize));
158
- setPageCount(Math.ceil(tableData.rows.length / pageSize));
159
- }
160
- else {
161
- var head = tableData.headers[0];
162
- var tail = tableData.headers.slice(1, tableData.headers.length);
163
- setColumns(createColumns({ headers: __spreadArray([head], tail.slice(0, (pageIndex + 1) * pageSize)), rows: tableData.rows }, headerAxis));
164
- setData(tableData.rows);
165
- setPageCount(Math.ceil(tail.length / pageSize));
166
- }
167
- }
168
- };
169
- exports.handleDataUpdate = handleDataUpdate;
170
- var calculateSliceStartPoint = function (oldLength, usingExpanderColumn) {
171
- if (oldLength > 0) {
172
- return usingExpanderColumn ? 2 : 1;
173
- }
174
- return 0;
175
- };
176
- var handleDataUpdateForManualPagination = function (tableData, headerAxis, keepPreviousData, setColumns, setData) {
177
- if (headerAxis === 'x') {
178
- setData(function (old) {
179
- var newData = keepPreviousData ? __spreadArray(__spreadArray([], old), tableData.rows) : tableData.rows;
180
- setColumns(createColumns({ headers: tableData.headers, rows: newData }, headerAxis));
181
- return newData;
182
- });
183
- }
184
- else if (tableData.headers.length > 0) {
185
- setColumns(function (old) {
186
- var newColumns = createColumns(tableData, headerAxis);
187
- var sliceStartPoint = calculateSliceStartPoint(old.length, tableData.rows.some(function (x) { return x.subRows; }));
188
- return keepPreviousData ? __spreadArray(__spreadArray([], old), newColumns.slice(sliceStartPoint, newColumns.length)) : newColumns;
189
- });
190
- setData(tableData.rows);
191
- }
192
- };
193
- exports.handleDataUpdateForManualPagination = handleDataUpdateForManualPagination;
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
14
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15
+ to[j] = from[i];
16
+ return to;
17
+ };
18
+ var __importDefault = (this && this.__importDefault) || function (mod) {
19
+ return (mod && mod.__esModule) ? mod : { "default": mod };
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.handleDataUpdateForManualPagination = exports.handleDataUpdate = exports.handleScrollEvent = exports.calculateStaticColumnOffset = exports.createColumns = void 0;
23
+ var jsx_runtime_1 = require("react/jsx-runtime");
24
+ var react_table_1 = require("@tanstack/react-table");
25
+ var table_cell_1 = __importDefault(require("./table-cell"));
26
+ var createColumns = function (tableData, headerAxis) {
27
+ var columnHelper = react_table_1.createColumnHelper();
28
+ var columns = createColumnsRecursively(tableData.headers, columnHelper, headerAxis);
29
+ if (tableData.rows.some(function (row) { return row.subRows; })) {
30
+ columns = prependColumnWithExpansionControls(columns, columnHelper, headerAxis);
31
+ }
32
+ return columns;
33
+ };
34
+ exports.createColumns = createColumns;
35
+ var createColumnsRecursively = function (headers, columnHelper, headerAxis) {
36
+ var result = headers.map(function (header) {
37
+ var _a, _b;
38
+ if (header.type === 'display') {
39
+ return columnHelper.display({
40
+ id: header.id,
41
+ header: function () {
42
+ var headerCellProps = __assign(__assign({}, header.cellProps), { headerAxis: headerAxis });
43
+ return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, headerCellProps), void 0);
44
+ },
45
+ cell: function (props) {
46
+ var cellProps = __assign(__assign({}, props.getValue()), { headerAxis: headerAxis });
47
+ return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
48
+ },
49
+ });
50
+ }
51
+ if (header.type === 'accessor') {
52
+ return columnHelper.accessor(header.id, {
53
+ header: function (props) {
54
+ var cellProps = __assign(__assign({}, header.cellProps), { iconProps: deriveHeaderIconProps(props), headerAxis: headerAxis });
55
+ return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
56
+ },
57
+ cell: function (props) {
58
+ var cellProps = __assign(__assign({}, props.getValue()), { headerAxis: headerAxis });
59
+ return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
60
+ },
61
+ });
62
+ }
63
+ return columnHelper.group({
64
+ header: (_a = header.cellProps.text) !== null && _a !== void 0 ? _a : '',
65
+ columns: createColumnsRecursively((_b = header.subHeaders) !== null && _b !== void 0 ? _b : [], columnHelper, headerAxis),
66
+ });
67
+ });
68
+ return result;
69
+ };
70
+ var deriveHeaderIconProps = function (props) {
71
+ if (props.column.getIsSorted() === 'asc') {
72
+ return {
73
+ type: 'chevron',
74
+ direction: 'up',
75
+ size: 'medium',
76
+ };
77
+ }
78
+ if (props.column.getIsSorted() === 'desc') {
79
+ return {
80
+ type: 'chevron',
81
+ direction: 'down',
82
+ size: 'medium',
83
+ };
84
+ }
85
+ return undefined;
86
+ };
87
+ var prependColumnWithExpansionControls = function (columns, columnHelper, headerAxis) {
88
+ var expanderColumn = columnHelper.display({
89
+ id: 'expander',
90
+ header: function (_a) {
91
+ var table = _a.table;
92
+ var headerCellProps = {
93
+ iconProps: {
94
+ type: 'chevron',
95
+ direction: table.getIsAllRowsExpanded() ? 'down' : 'right',
96
+ size: 'medium',
97
+ },
98
+ headerAxis: headerAxis,
99
+ clickHandler: table.getToggleAllRowsExpandedHandler(),
100
+ };
101
+ return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, headerCellProps), void 0);
102
+ },
103
+ cell: function (props) {
104
+ var cellProps = props.row.getCanExpand()
105
+ ? {
106
+ iconProps: {
107
+ type: 'chevron',
108
+ direction: props.row.getIsExpanded() ? 'down' : 'right',
109
+ size: 'medium',
110
+ },
111
+ headerAxis: headerAxis,
112
+ clickHandler: props.row.getToggleExpandedHandler(),
113
+ }
114
+ : { headerAxis: headerAxis };
115
+ return jsx_runtime_1.jsx(table_cell_1.default, __assign({}, cellProps), void 0);
116
+ },
117
+ });
118
+ return [expanderColumn].concat(columns);
119
+ };
120
+ var calculateStaticColumnOffset = function (cellIdx, staticColumns, firstColumnWidth, secondColumnWidth) {
121
+ if (staticColumns === 0) {
122
+ return undefined;
123
+ }
124
+ switch (cellIdx) {
125
+ case 0:
126
+ return 0;
127
+ case 1:
128
+ return cellIdx < staticColumns ? firstColumnWidth : undefined;
129
+ case 2:
130
+ return cellIdx < staticColumns ? firstColumnWidth + secondColumnWidth : undefined;
131
+ default:
132
+ return undefined;
133
+ }
134
+ };
135
+ exports.calculateStaticColumnOffset = calculateStaticColumnOffset;
136
+ var handleScrollEvent = function (table, headerAxis, scrollState) {
137
+ var scrollWidth = scrollState.scrollWidth, scrollHeight = scrollState.scrollHeight, currentXScroll = scrollState.currentXScroll, currentYScroll = scrollState.currentYScroll;
138
+ if (headerAxis === 'x' &&
139
+ currentYScroll >= scrollHeight - getPercentageOfMax(5, scrollHeight) &&
140
+ currentYScroll <= scrollHeight &&
141
+ table.getCanNextPage()) {
142
+ table.nextPage();
143
+ }
144
+ if (headerAxis === 'y' &&
145
+ currentXScroll >= scrollWidth - getPercentageOfMax(5, scrollWidth) &&
146
+ currentXScroll <= scrollWidth &&
147
+ table.getCanNextPage()) {
148
+ table.nextPage();
149
+ }
150
+ };
151
+ exports.handleScrollEvent = handleScrollEvent;
152
+ var getPercentageOfMax = function (percentage, max) { return max * (percentage / 100); };
153
+ var handleDataUpdate = function (tableData, pageIndex, pageSize, headerAxis, setColumns, setData, setPageCount) {
154
+ if (tableData && tableData.headers.length > 0) {
155
+ if (headerAxis === 'x') {
156
+ setColumns(createColumns(tableData, headerAxis));
157
+ setData(tableData.rows.slice(0, (pageIndex + 1) * pageSize));
158
+ setPageCount(Math.ceil(tableData.rows.length / pageSize));
159
+ }
160
+ else {
161
+ var head = tableData.headers[0];
162
+ var tail = tableData.headers.slice(1, tableData.headers.length);
163
+ setColumns(createColumns({ headers: __spreadArray([head], tail.slice(0, (pageIndex + 1) * pageSize)), rows: tableData.rows }, headerAxis));
164
+ setData(tableData.rows);
165
+ setPageCount(Math.ceil(tail.length / pageSize));
166
+ }
167
+ }
168
+ };
169
+ exports.handleDataUpdate = handleDataUpdate;
170
+ var calculateSliceStartPoint = function (oldLength, usingExpanderColumn) {
171
+ if (oldLength > 0) {
172
+ return usingExpanderColumn ? 2 : 1;
173
+ }
174
+ return 0;
175
+ };
176
+ var handleDataUpdateForManualPagination = function (tableData, headerAxis, keepPreviousData, setColumns, setData) {
177
+ if (headerAxis === 'x') {
178
+ setData(function (old) {
179
+ var newData = keepPreviousData ? __spreadArray(__spreadArray([], old), tableData.rows) : tableData.rows;
180
+ setColumns(createColumns({ headers: tableData.headers, rows: newData }, headerAxis));
181
+ return newData;
182
+ });
183
+ }
184
+ else if (tableData.headers.length > 0) {
185
+ setColumns(function (old) {
186
+ var newColumns = createColumns(tableData, headerAxis);
187
+ var sliceStartPoint = calculateSliceStartPoint(old.length, tableData.rows.some(function (x) { return x.subRows; }));
188
+ return keepPreviousData ? __spreadArray(__spreadArray([], old), newColumns.slice(sliceStartPoint, newColumns.length)) : newColumns;
189
+ });
190
+ setData(tableData.rows);
191
+ }
192
+ };
193
+ exports.handleDataUpdateForManualPagination = handleDataUpdateForManualPagination;
194
194
  //# sourceMappingURL=table-methods.js.map
@@ -1,86 +1,86 @@
1
- /// <reference types="react" />
2
- import { Axis } from '@ltht-react/types';
3
- declare const ScrollableContainer: import("@emotion/styled").StyledComponent<{
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- } & IScrollableContainer, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
- declare const StyledTable: import("@emotion/styled").StyledComponent<{
8
- theme?: import("@emotion/react").Theme | undefined;
9
- as?: import("react").ElementType<any> | undefined;
10
- }, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
11
- declare const StyledTableHeader: import("@emotion/styled").StyledComponent<{
12
- theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
14
- } & IStyledTableCell, import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
15
- declare const StyledTableData: import("@emotion/styled").StyledComponent<{
16
- theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
18
- } & IStyledTableCell, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
19
- declare const StyledTableRow: import("@emotion/styled").StyledComponent<{
20
- theme?: import("@emotion/react").Theme | undefined;
21
- as?: import("react").ElementType<any> | undefined;
22
- } & IStyledTableCell, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
23
- declare const PaginationContainer: import("@emotion/styled").StyledComponent<{
24
- theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
26
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
27
- declare const StyledPaginationPageInput: import("@emotion/styled").StyledComponent<{
28
- theme?: import("@emotion/react").Theme | undefined;
29
- as?: import("react").ElementType<any> | undefined;
30
- }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
31
- declare const StyledPaginationPageSelect: import("@emotion/styled").StyledComponent<{
32
- theme?: import("@emotion/react").Theme | undefined;
33
- as?: import("react").ElementType<any> | undefined;
34
- }, import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, {}>;
35
- declare const StyledHideOnMobile: import("@emotion/styled").StyledComponent<{
36
- theme?: import("@emotion/react").Theme | undefined;
37
- as?: import("react").ElementType<any> | undefined;
38
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
39
- declare const StyledPaginationButtonDiv: import("@emotion/styled").StyledComponent<{
40
- theme?: import("@emotion/react").Theme | undefined;
41
- as?: import("react").ElementType<any> | undefined;
42
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
43
- declare const StyledPageCountDiv: import("@emotion/styled").StyledComponent<{
44
- theme?: import("@emotion/react").Theme | undefined;
45
- as?: import("react").ElementType<any> | undefined;
46
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
47
- declare const StyledStandardButton: import("@emotion/styled").StyledComponent<import("@ltht-react/icon/lib/organisms/icon-button").IconButtonProps & {
48
- children?: import("react").ReactNode;
49
- } & {
50
- theme?: import("@emotion/react").Theme | undefined;
51
- }, {}, {}>;
52
- declare const StyledPaginationButton: import("@emotion/styled").StyledComponent<import("@ltht-react/icon/lib/organisms/icon-button").IconButtonProps & {
53
- children?: import("react").ReactNode;
54
- } & {
55
- theme?: import("@emotion/react").Theme | undefined;
56
- }, {}, {}>;
57
- declare const StyledSpinnerIcon: import("@emotion/styled").StyledComponent<import("@ltht-react/icon").IconProps & {
58
- children?: import("react").ReactNode;
59
- } & {
60
- theme?: import("@emotion/react").Theme | undefined;
61
- }, {}, {}>;
62
- declare const StyledNextPageButtonContainer: import("@emotion/styled").StyledComponent<{
63
- theme?: import("@emotion/react").Theme | undefined;
64
- as?: import("react").ElementType<any> | undefined;
65
- } & IStyledNextPageButtonContainer, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
66
- declare const StyledSpinnerContainer: import("@emotion/styled").StyledComponent<{
67
- theme?: import("@emotion/react").Theme | undefined;
68
- as?: import("react").ElementType<any> | undefined;
69
- } & IStyledNextPageButtonContainer, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
70
- declare const StyledTHead: import("@emotion/styled").StyledComponent<{
71
- theme?: import("@emotion/react").Theme | undefined;
72
- as?: import("react").ElementType<any> | undefined;
73
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, {}>;
74
- interface IStyledTableCell {
75
- stickyWidth?: number;
76
- tableHeaderAxis?: string;
77
- }
78
- interface IStyledNextPageButtonContainer {
79
- elementPosition: 'right' | 'bottom';
80
- }
81
- interface IScrollableContainer {
82
- tableHeaderAxis: Axis;
83
- maxHeight?: string;
84
- maxWidth?: string;
85
- }
86
- export { StyledTable, StyledTableHeader, StyledTableRow, StyledTableData, PaginationContainer, StyledPaginationPageInput, StyledPaginationPageSelect, StyledHideOnMobile, StyledPaginationButton, ScrollableContainer, StyledPaginationButtonDiv, StyledPageCountDiv, StyledStandardButton, StyledSpinnerIcon, StyledNextPageButtonContainer, StyledTHead, StyledSpinnerContainer, };
1
+ /// <reference types="react" />
2
+ import { Axis } from '@ltht-react/types';
3
+ declare const ScrollableContainer: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & IScrollableContainer, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ declare const StyledTable: import("@emotion/styled").StyledComponent<{
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ as?: import("react").ElementType<any> | undefined;
10
+ }, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
11
+ declare const StyledTableHeader: import("@emotion/styled").StyledComponent<{
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ } & IStyledTableCell, import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {}>;
15
+ declare const StyledTableData: import("@emotion/styled").StyledComponent<{
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ } & IStyledTableCell, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
19
+ declare const StyledTableRow: import("@emotion/styled").StyledComponent<{
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ } & IStyledTableCell, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
23
+ declare const PaginationContainer: import("@emotion/styled").StyledComponent<{
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ as?: import("react").ElementType<any> | undefined;
26
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
27
+ declare const StyledPaginationPageInput: import("@emotion/styled").StyledComponent<{
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ as?: import("react").ElementType<any> | undefined;
30
+ }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
31
+ declare const StyledPaginationPageSelect: import("@emotion/styled").StyledComponent<{
32
+ theme?: import("@emotion/react").Theme | undefined;
33
+ as?: import("react").ElementType<any> | undefined;
34
+ }, import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, {}>;
35
+ declare const StyledHideOnMobile: import("@emotion/styled").StyledComponent<{
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ as?: import("react").ElementType<any> | undefined;
38
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
39
+ declare const StyledPaginationButtonDiv: import("@emotion/styled").StyledComponent<{
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ as?: import("react").ElementType<any> | undefined;
42
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
43
+ declare const StyledPageCountDiv: import("@emotion/styled").StyledComponent<{
44
+ theme?: import("@emotion/react").Theme | undefined;
45
+ as?: import("react").ElementType<any> | undefined;
46
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
47
+ declare const StyledStandardButton: import("@emotion/styled").StyledComponent<import("@ltht-react/icon/lib/organisms/icon-button").IconButtonProps & {
48
+ children?: import("react").ReactNode;
49
+ } & {
50
+ theme?: import("@emotion/react").Theme | undefined;
51
+ }, {}, {}>;
52
+ declare const StyledPaginationButton: import("@emotion/styled").StyledComponent<import("@ltht-react/icon/lib/organisms/icon-button").IconButtonProps & {
53
+ children?: import("react").ReactNode;
54
+ } & {
55
+ theme?: import("@emotion/react").Theme | undefined;
56
+ }, {}, {}>;
57
+ declare const StyledSpinnerIcon: import("@emotion/styled").StyledComponent<import("@ltht-react/icon").IconProps & {
58
+ children?: import("react").ReactNode;
59
+ } & {
60
+ theme?: import("@emotion/react").Theme | undefined;
61
+ }, {}, {}>;
62
+ declare const StyledNextPageButtonContainer: import("@emotion/styled").StyledComponent<{
63
+ theme?: import("@emotion/react").Theme | undefined;
64
+ as?: import("react").ElementType<any> | undefined;
65
+ } & IStyledNextPageButtonContainer, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
66
+ declare const StyledSpinnerContainer: import("@emotion/styled").StyledComponent<{
67
+ theme?: import("@emotion/react").Theme | undefined;
68
+ as?: import("react").ElementType<any> | undefined;
69
+ } & IStyledNextPageButtonContainer, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
70
+ declare const StyledTHead: import("@emotion/styled").StyledComponent<{
71
+ theme?: import("@emotion/react").Theme | undefined;
72
+ as?: import("react").ElementType<any> | undefined;
73
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, {}>;
74
+ interface IStyledTableCell {
75
+ stickyWidth?: number;
76
+ tableHeaderAxis?: string;
77
+ }
78
+ interface IStyledNextPageButtonContainer {
79
+ elementPosition: 'right' | 'bottom';
80
+ }
81
+ interface IScrollableContainer {
82
+ tableHeaderAxis: Axis;
83
+ maxHeight?: string;
84
+ maxWidth?: string;
85
+ }
86
+ export { StyledTable, StyledTableHeader, StyledTableRow, StyledTableData, PaginationContainer, StyledPaginationPageInput, StyledPaginationPageSelect, StyledHideOnMobile, StyledPaginationButton, ScrollableContainer, StyledPaginationButtonDiv, StyledPageCountDiv, StyledStandardButton, StyledSpinnerIcon, StyledNextPageButtonContainer, StyledTHead, StyledSpinnerContainer, };