gantri-components 2.41.0 → 2.42.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.
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgExlamationCircleFilled: React.NamedExoticComponent<object>;
3
+ export default SvgExlamationCircleFilled;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgExlamationCircleFilled24: React.NamedExoticComponent<object>;
3
+ export default SvgExlamationCircleFilled24;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { Paging } from './paging';
@@ -0,0 +1,5 @@
1
+ import { PagingComponentProps } from './paging.types';
2
+ export declare const Paging: {
3
+ (props: PagingComponentProps): JSX.Element;
4
+ defaultProps: Partial<import("./paging.types").PagingProps>;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { PagingProps } from './paging.types';
2
+ export declare const pagingDefaultProps: Partial<PagingProps>;
@@ -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
+ }
@@ -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>;
@@ -15,5 +15,4 @@ export interface CustomColumnOption {
15
15
  export type CustomColumnsWrapperProps<TData extends RowData> = PropsWithChildren<{
16
16
  customColumns: CustomColumnsProps<TData> | undefined;
17
17
  table: Table<TData>;
18
- tableContainerEl: HTMLDivElement | null;
19
18
  }>;
@@ -0,0 +1,3 @@
1
+ import { TableSortField } from '../../sort.types';
2
+ import { SortMapping } from './get-sort-mapping.types';
3
+ export declare const getSortMapping: <SortingField = string>(sortingOptions?: TableSortField<SortingField>[]) => SortMapping<SortingField>;
@@ -0,0 +1,2 @@
1
+ import { SortInfo } from '../../../../table.props';
2
+ export type SortMapping<SortingField = string> = Record<string, SortInfo<SortingField>>;
@@ -1,6 +1,9 @@
1
1
  import { RowData } from '@tanstack/react-table';
2
2
  import { TableProps } from './table.types';
3
- /** Official docs: https://tanstack.com/table/v8/docs/guide/overview */
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;