gantri-components 2.73.2-beta.4 → 2.74.0-alpha.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.
@@ -3,4 +3,3 @@ export * from './useModal';
3
3
  export * from './modal-context';
4
4
  export * from './modal-provider';
5
5
  export * from './useModalActions';
6
- export { getModalDetailsPanelBackgroundColor } from './modal.styles';
@@ -1,33 +1,28 @@
1
1
  /// <reference types="react" />
2
- import { DefaultTheme } from 'styled-components';
3
2
  import { Property } from 'csstype';
4
3
  import { ModalProps } from './modal.types';
5
4
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
6
- export declare const StyledModal: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
7
- export declare const StyledModalBody: import("styled-components").StyledComponent<"div", DefaultTheme, ModalProps & {
5
+ export declare const StyledModal: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const StyledModalBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ModalProps & {
8
7
  isFullScreen?: boolean | undefined;
9
8
  noTopSpacing?: boolean | undefined;
10
9
  } & {
11
10
  $height?: ResolutionAwareProp<Property.Height<0 | (string & {})>> | undefined;
12
11
  $width?: ResolutionAwareProp<Property.Width<0 | (string & {})>> | undefined;
13
12
  }, never>;
14
- export declare const StyledModalContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../stack/stack.types").StackProps & import("react").RefAttributes<import("../stack/stack.types").StackProps>>, DefaultTheme, {
13
+ export declare const StyledModalContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../stack/stack.types").StackProps & import("react").RefAttributes<import("../stack/stack.types").StackProps>>, import("styled-components").DefaultTheme, {
15
14
  isFullScreen?: boolean | undefined;
16
15
  noTopSpacing?: boolean | undefined;
17
16
  }, never>;
18
- export declare const getModalDetailsPanelBackgroundColor: ({ theme, isFullScreen, }: {
19
- isFullScreen: boolean | undefined;
20
- theme: DefaultTheme;
21
- }) => string;
22
- export declare const StyledDetailsPanelContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../box/box.types").BoxProps & import("react").RefAttributes<import("../box/box.types").BoxProps>>, DefaultTheme, {
17
+ export declare const StyledDetailsPanelContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../box/box.types").BoxProps & import("react").RefAttributes<import("../box/box.types").BoxProps>>, import("styled-components").DefaultTheme, {
23
18
  isFullScreen?: boolean | undefined;
24
19
  }, never>;
25
- export declare const StyledModalHeader: import("styled-components").StyledComponent<"header", DefaultTheme, {
20
+ export declare const StyledModalHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {
26
21
  $closeable?: boolean | undefined;
27
22
  isFullScreen?: boolean | undefined;
28
23
  }, never>;
29
- export declare const StyledModalFooter: import("styled-components").StyledComponent<"footer", DefaultTheme, {
24
+ export declare const StyledModalFooter: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {
30
25
  $hasBorder: boolean;
31
26
  }, never>;
32
- export declare const StyledModalBackdrop: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
33
- export declare const StyledModalCloseButtonContainer: import("styled-components").StyledComponent<"span", DefaultTheme, {}, never>;
27
+ export declare const StyledModalBackdrop: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
28
+ export declare const StyledModalCloseButtonContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
@@ -1,10 +1,8 @@
1
1
  import { Property } from 'csstype';
2
2
  import { ReactElement, ReactNode } from 'react';
3
3
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
4
- import { StackProps } from '../stack/stack.types';
5
4
  export interface ModalProps {
6
5
  closeable?: boolean;
7
- contentStackProps?: StackProps;
8
6
  dataAttributes?: Record<string, unknown>;
9
7
  detailsPanel?: ReactElement;
10
8
  /** Applies to desktop only. */
@@ -17,6 +15,7 @@ export interface ModalProps {
17
15
  maxWidth?: ResolutionAwareProp<Property.MaxWidth>;
18
16
  /** Applies to mobile/tablet only. */
19
17
  noTopSpacing?: boolean;
18
+ onCancel?: () => void;
20
19
  onClose?: () => void;
21
20
  /** Ignored if `isFullScreen` is `true`. */
22
21
  top?: ResolutionAwareProp<Property.Top>;
@@ -1,5 +1,5 @@
1
1
  import { RowData, Table } from '@tanstack/react-table';
2
- export type TableInteraction = 'FOCUS_SEARCH' | 'OPEN_FILTERS' | 'OPEN_SORT' | 'USE_PAGING' | 'CUSTOM_ACTION';
2
+ export type TableInteraction = 'FOCUS_SEARCH' | 'OPEN_FILTERS' | 'OPEN_SORT' | 'USE_PAGING' | 'CUSTOM_ACTION' | string;
3
3
  export interface UseConfirmInteractionProps<TData extends RowData> {
4
4
  table: Table<TData>;
5
5
  }
@@ -1,7 +1,6 @@
1
1
  /** See `RowStatusValue` type for possible values. */
2
2
  export declare const dataAttrRowStatus: "data-row-status";
3
3
  export declare const dataAttrRowIsClickable: "data-row-is-clickable";
4
- export declare const dataAttrRowHighlightOnHover: "data-row-highlight-on-hover";
5
4
  /** Applying this data attribute marks a row as active, applying a new background color. */
6
5
  export declare const dataAttrActiveRow: "data-active-row";
7
6
  /** Prefix added to table cell data attrs (like cell ID). */
@@ -1,12 +1,7 @@
1
- import { ColumnDef, ColumnOrderState, RowData, Table, VisibilityState } from '@tanstack/react-table';
1
+ import { ColumnDef, ColumnOrderState, RowData, VisibilityState } from '@tanstack/react-table';
2
2
  import { ColumnConfig } from './table.types';
3
3
  export declare const extractColumnIdsFromColumnConfig: (records: ColumnConfig[]) => string[];
4
4
  export declare const extractColumnsVisibilityFromColumnConfig: (records: ColumnConfig[]) => VisibilityState;
5
- export declare const extractColumnsVisibilityFromTable: <TData extends RowData<{
6
- [key: string]: unknown;
7
- id?: string | number | undefined;
8
- subRows?: any[] | undefined;
9
- }>>(table: Table<TData>) => {};
10
5
  export declare const extractColumnsDefinition: <TData extends RowData<{
11
6
  [key: string]: unknown;
12
7
  id?: string | number | undefined;
@@ -1,9 +1,5 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
- export declare const getTableRowBackgroundColors: ({ theme, backgroundColor, clickableRowHoverBackgroundColor, }: {
3
- backgroundColor: string | undefined;
4
- clickableRowHoverBackgroundColor: string | undefined;
5
- theme: DefaultTheme;
6
- }) => {
2
+ export declare const getTableRowBackgroundColors: (theme: DefaultTheme) => {
7
3
  readonly statusErrorClickableHoverColor: string;
8
4
  readonly statusErrorColor: string;
9
5
  readonly statusNoneClickableHoverColor: string;
@@ -13,8 +9,6 @@ export declare const getTableRowBackgroundColors: ({ theme, backgroundColor, cli
13
9
  };
14
10
  export declare const StyledTableContainer: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
15
11
  export declare const StyledTable: import("styled-components").StyledComponent<"table", DefaultTheme, {
16
- backgroundColor: string | undefined;
17
- clickableRowHoverBackgroundColor: string | undefined;
18
12
  isCustomColumnsEnabled: boolean;
19
13
  stickyFirstColumn: boolean | undefined;
20
14
  stickyFooter: boolean | undefined;
@@ -24,10 +24,7 @@ export type SyncState = {
24
24
  reordered?: boolean;
25
25
  };
26
26
  export interface TableProps<TData extends RowData> extends Partial<TableDefaultProps> {
27
- backgroundColor?: string;
28
27
  className?: string;
29
- /** Applies to clickable rows without a status that changes the default color. */
30
- clickableRowHoverBackgroundColor?: string;
31
28
  columns: ColumnDef<TData, any>[];
32
29
  customAction?: CustomActionProps<TData>;
33
30
  /** Providing this will automatically make the last column sticky. */
@@ -40,11 +37,6 @@ export interface TableProps<TData extends RowData> extends Partial<TableDefaultP
40
37
  filters?: FiltersProps;
41
38
  /** Include `isClickable` in the returned object to apply appropriate cell styling. Text styling must be applied within the column. */
42
39
  getCellProps?: GetCellProps<TData>;
43
- /**
44
- * If getColumnsConfig and onColumnsConfigChange are provided,
45
- * the table will be able to save and load column configurations.
46
- * the table settings component will become visible.
47
- */
48
40
  getColumnsConfig?: GetColumnsConfigFn;
49
41
  getHeaderCellProps?: GetHeaderCellProps<TData>;
50
42
  /** Include `status` in the returned object to set the row status color. */