gantri-components 2.42.2 → 2.43.0-beta.2
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/dist/components/icon/generated/ui-control/ExlamationCircleFilled.d.ts +3 -0
- package/dist/components/icon/generated/ui-control/ExlamationCircleFilled24.d.ts +3 -0
- package/dist/components/paging/__tests__/paging.test.d.ts +1 -0
- package/dist/components/paging/index.d.ts +1 -0
- package/dist/components/paging/paging.d.ts +5 -0
- package/dist/components/paging/paging.presets.d.ts +2 -0
- package/dist/components/paging/paging.styles.d.ts +3 -0
- package/dist/components/paging/paging.types.d.ts +13 -0
- package/dist/components/table/components/custom-columns-wrapper/custom-columns-wrapper.styles.d.ts +1 -0
- package/dist/components/table/components/custom-columns-wrapper/custom-columns-wrapper.types.d.ts +0 -1
- package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.d.ts +3 -0
- package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.types.d.ts +2 -0
- package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/index.d.ts +1 -0
- package/dist/components/table/table.d.ts +4 -1
- package/dist/components/table/table.styles.d.ts +0 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/setupTests.d.ts +0 -1
- package/package.json +2 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Paging } from './paging';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledFlex: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../flex/flex.types").FlexProps & import("react").RefAttributes<import("../flex/flex.types").FlexProps>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const StyledPagingButton: import("styled-components").StyledComponent<import("react").FC<import("../button/button.types").ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnConfirmInteraction } from '../table/components/table-actions-wrapper/hooks/use-confirm-interaction/use-confirm-interaction.types';
|
|
2
|
+
export interface PagingProps {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
onPageChange: (page: number) => void;
|
|
5
|
+
/** Total number of pages. */
|
|
6
|
+
pageCount: number;
|
|
7
|
+
/** Total number of returned results. */
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PagingComponentProps extends PagingProps {
|
|
11
|
+
confirmAllInteractions: boolean;
|
|
12
|
+
onConfirmInteraction: OnConfirmInteraction;
|
|
13
|
+
}
|
package/dist/components/table/components/custom-columns-wrapper/custom-columns-wrapper.styles.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const StyledTableContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
1
2
|
export declare const StyledToggleWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
3
|
isScrolling: boolean;
|
|
3
4
|
}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-sort-mapping';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { RowData } from '@tanstack/react-table';
|
|
2
2
|
import { TableProps } from './table.types';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* See https://components.gantri.com/?path=/story/core-table for usage examples.
|
|
5
|
+
* Official docs: https://tanstack.com/table/v8/docs/guide/overview
|
|
6
|
+
*/
|
|
4
7
|
export declare const Table: {
|
|
5
8
|
<TData extends RowData<{
|
|
6
9
|
[key: string]: unknown;
|
|
@@ -7,7 +7,6 @@ export declare const getTableRowBackgroundColors: (theme: DefaultTheme) => {
|
|
|
7
7
|
readonly statusWarningClickableHoverColor: string;
|
|
8
8
|
readonly statusWarningColor: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const StyledTableWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
11
10
|
export declare const StyledTableContainer: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
12
11
|
export declare const StyledTable: import("styled-components").StyledComponent<"table", DefaultTheme, {
|
|
13
12
|
isCustomColumnsEnabled: boolean;
|