gantri-components 2.39.0-beta.9 → 2.40.0-beta.1

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.
Files changed (36) hide show
  1. package/dist/components/checkbox/checkbox.styles.d.ts +0 -1
  2. package/dist/components/table/__tests__/table.test.d.ts +1 -0
  3. package/dist/components/table/components/custom-columns-wrapper/components/index.d.ts +1 -0
  4. package/dist/components/table/components/custom-columns-wrapper/components/user-preferences-toggle/components/index.d.ts +1 -0
  5. package/dist/components/table/components/custom-columns-wrapper/custom-columns-wrapper.d.ts +1 -1
  6. package/dist/components/table/components/custom-columns-wrapper/helpers/get-custom-column-options/get-custom-column-options.d.ts +1 -1
  7. package/dist/components/table/components/custom-columns-wrapper/helpers/index.d.ts +2 -0
  8. package/dist/components/table/components/custom-columns-wrapper/hooks/index.d.ts +1 -0
  9. package/dist/components/table/components/index.d.ts +5 -0
  10. package/dist/components/table/components/table-actions-wrapper/components/index.d.ts +3 -0
  11. package/dist/components/table/components/table-actions-wrapper/components/paging/__tests__/paging.test.d.ts +1 -0
  12. package/dist/components/table/components/table-actions-wrapper/components/paging/index.d.ts +1 -0
  13. package/dist/components/table/components/table-actions-wrapper/components/paging/paging.d.ts +5 -0
  14. package/dist/components/table/components/table-actions-wrapper/components/paging/paging.presets.d.ts +2 -0
  15. package/dist/components/table/components/table-actions-wrapper/components/paging/paging.styles.d.ts +3 -0
  16. package/dist/components/table/components/table-actions-wrapper/components/paging/paging.types.d.ts +13 -0
  17. package/dist/components/table/components/table-actions-wrapper/hooks/index.d.ts +1 -0
  18. package/dist/components/table/components/table-actions-wrapper/hooks/use-confirm-interaction/use-confirm-interaction.d.ts +1 -1
  19. package/dist/components/table/components/table-actions-wrapper/table-actions-wrapper.d.ts +1 -1
  20. package/dist/components/table/components/table-actions-wrapper/table-actions-wrapper.types.d.ts +1 -1
  21. package/dist/components/table/components/table-footer/table-footer.d.ts +1 -1
  22. package/dist/components/table/components/table-header/table-header.d.ts +1 -1
  23. package/dist/components/table/components/table-row/hooks/index.d.ts +1 -0
  24. package/dist/components/table/components/table-row/hooks/use-drag-and-drop/use-drag-and-drop.d.ts +1 -1
  25. package/dist/components/table/components/table-row/table-row.d.ts +1 -1
  26. package/dist/components/table/helpers/add-missing-ids/add-missing-ids.d.ts +1 -1
  27. package/dist/components/table/helpers/index.d.ts +2 -0
  28. package/dist/components/table/hooks/index.d.ts +2 -0
  29. package/dist/components/table/hooks/use-move-row/use-move-row.d.ts +1 -1
  30. package/dist/components/table/table.d.ts +1 -1
  31. package/dist/components/table/table.types.d.ts +1 -1
  32. package/dist/index.cjs.js +1 -1
  33. package/dist/index.esm.js +1 -1
  34. package/dist/index.umd.js +1 -1
  35. package/dist/setupTests.d.ts +1 -0
  36. package/package.json +17 -7
@@ -4,7 +4,6 @@ export declare const StyledCheckbox: import("styled-components").StyledComponent
4
4
  $checked: boolean;
5
5
  $variant?: CheckboxVariant | undefined;
6
6
  }, never>;
7
- export declare const StyledIndeterminateMarker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
7
  export declare const StyledCheckboxContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
8
  disabled: boolean;
10
9
  }, never>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './user-preferences-toggle';
@@ -2,6 +2,6 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { CustomColumnsWrapperProps } from './custom-columns-wrapper.types';
3
3
  export declare const CustomColumnsWrapper: <DataType extends RowData<{
4
4
  [key: string]: unknown;
5
- id: string | number;
5
+ id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
7
7
  }>>(props: CustomColumnsWrapperProps<DataType>) => JSX.Element;
@@ -3,6 +3,6 @@ import { CustomColumnOption } from '../../custom-columns-wrapper.types';
3
3
  import { GetCustomColumnOptionsArgs } from './get-custom-column-options.types';
4
4
  export declare const getCustomColumnOptions: <DataType extends RowData<{
5
5
  [key: string]: unknown;
6
- id: string | number;
6
+ id?: string | number | undefined;
7
7
  subRows?: any[] | undefined;
8
8
  }>>(args: GetCustomColumnOptionsArgs<DataType>) => CustomColumnOption[];
@@ -0,0 +1,2 @@
1
+ export * from './get-custom-column-initial-visibility';
2
+ export * from './get-custom-column-options';
@@ -0,0 +1 @@
1
+ export * from './use-detect-horizontal-scroll';
@@ -0,0 +1,5 @@
1
+ export * from './custom-columns-wrapper';
2
+ export * from './table-actions-wrapper';
3
+ export * from './table-footer';
4
+ export * from './table-header';
5
+ export * from './table-row';
@@ -0,0 +1,3 @@
1
+ export * from './paging';
2
+ export * from './search';
3
+ export * from './sort';
@@ -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 '../../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
+ }
@@ -0,0 +1 @@
1
+ export * from './use-confirm-interaction';
@@ -2,7 +2,7 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { UseConfirmInteractionProps, OnConfirmInteraction } from './use-confirm-interaction.types';
3
3
  export declare const useConfirmInteraction: <DataType extends RowData<{
4
4
  [key: string]: unknown;
5
- id: string | number;
5
+ id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
7
7
  }>>(props: UseConfirmInteractionProps<DataType>) => {
8
8
  /** Not necessary for `onConfirmInteraction`. Only provided in case additional logic is needed. */
@@ -4,6 +4,6 @@ import { TableActionsWrapperProps } from './table-actions-wrapper.types';
4
4
  /** Wraps the table with relevant components for paging, filters, sort, and table actions. */
5
5
  export declare const TableActionsWrapper: <DataType extends RowData<{
6
6
  [key: string]: unknown;
7
- id: string | number;
7
+ id?: string | number | undefined;
8
8
  subRows?: any[] | undefined;
9
9
  }>>(props: React.PropsWithChildren<TableActionsWrapperProps<DataType>>) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { JSXElementConstructor } from 'react';
2
2
  import { RowData, Table } from '@tanstack/react-table';
3
- import { PagingProps } from '../../../paging/paging.types';
3
+ import { PagingProps } from './components/paging/paging.types';
4
4
  import { SortProps } from './components/sort/sort.types';
5
5
  export type FiltersProps = {
6
6
  count: number;
@@ -2,6 +2,6 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { TableFooterProps } from './table-footer.types';
3
3
  export declare const TableFooter: <DataType extends RowData<{
4
4
  [key: string]: unknown;
5
- id: string | number;
5
+ id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
7
7
  }>>(props: TableFooterProps<DataType>) => JSX.Element;
@@ -2,6 +2,6 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { TableHeaderProps } from './table-header.types';
3
3
  export declare const TableHeader: <DataType extends RowData<{
4
4
  [key: string]: unknown;
5
- id: string | number;
5
+ id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
7
7
  }>>(props: TableHeaderProps<DataType>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './use-drag-and-drop';
@@ -3,7 +3,7 @@ import { RowData } from '@tanstack/react-table';
3
3
  import { UseDragAndDropProps } from './use-drag-and-drop.types';
4
4
  export declare const useDragAndDrop: <DataType extends RowData<{
5
5
  [key: string]: unknown;
6
- id: string | number;
6
+ id?: string | number | undefined;
7
7
  subRows?: any[] | undefined;
8
8
  }>>(props: UseDragAndDropProps<DataType>) => {
9
9
  dragAndDropRef: import("react").RefObject<HTMLTableRowElement>;
@@ -2,6 +2,6 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { TableRowProps } from './table-row.types';
3
3
  export declare const TableRow: <DataType extends RowData<{
4
4
  [key: string]: unknown;
5
- id: string | number;
5
+ id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
7
7
  }>>(props: TableRowProps<DataType>) => JSX.Element;
@@ -2,6 +2,6 @@ import { RowData } from '@tanstack/react-table';
2
2
  /** If an index does not contain an `id` value, one is added using uuid. */
3
3
  export declare const addMissingIds: <DataType extends RowData<{
4
4
  [key: string]: unknown;
5
- id: string | number;
5
+ id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
7
7
  }>>(data: DataType[]) => DataType[];
@@ -0,0 +1,2 @@
1
+ export * from './add-missing-ids';
2
+ export * from './hyphenate-column-id';
@@ -0,0 +1,2 @@
1
+ export * from './use-move-row';
2
+ export * from './use-track-sticky-cells';
@@ -2,7 +2,7 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { UseMoveRowProps } from './use-move-row.types';
3
3
  export declare const useMoveRow: <TData extends RowData<{
4
4
  [key: string]: unknown;
5
- id: string | number;
5
+ id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
7
7
  }>>(props: UseMoveRowProps<TData>) => {
8
8
  moveRow: (startIndex: number, endIndex: number) => void;
@@ -3,7 +3,7 @@ import { TableProps } from './table.types';
3
3
  export declare const Table: {
4
4
  <DataType extends RowData<{
5
5
  [key: string]: unknown;
6
- id: string | number;
6
+ id?: string | number | undefined;
7
7
  subRows?: any[] | undefined;
8
8
  }>>(props: TableProps<DataType>): JSX.Element;
9
9
  defaultProps: import("./table.types").TableDefaultProps;
@@ -1,6 +1,6 @@
1
1
  import { Cell, ColumnDef, Header, Row, RowData, TableOptions } from '@tanstack/react-table';
2
2
  import { HTMLAttributes, MouseEvent } from 'react';
3
- import { PagingProps } from '../paging/paging.types';
3
+ import { PagingProps } from './components/table-actions-wrapper/components/paging/paging.types';
4
4
  import { CustomActionProps, FiltersProps, SearchProps } from './components/table-actions-wrapper/table-actions-wrapper.types';
5
5
  import { SortProps } from './components/table-actions-wrapper/components/sort/sort.types';
6
6
  import { CustomColumnsProps } from './components/custom-columns-wrapper/custom-columns-wrapper.types';