gantri-components 2.81.0-alpha.1 → 2.82.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.
@@ -1,4 +1,4 @@
1
- import { JSXElementConstructor } from 'react';
1
+ import { JSXElementConstructor, MouseEventHandler } from 'react';
2
2
  import { TextVariant } from '../typography';
3
3
  import { FieldChangeEvent } from '../text-field';
4
4
  export type CheckboxVariant = 'primary' | 'alert';
@@ -17,6 +17,8 @@ export interface CheckboxProps<T = boolean> {
17
17
  labelVariant?: TextVariant;
18
18
  name?: string;
19
19
  onChange?: (event: FieldChangeEvent<T>) => void;
20
+ /** Only fired if not disabled. */
21
+ onClick?: MouseEventHandler<HTMLDivElement>;
20
22
  onSelected?: (value: T) => void;
21
23
  variant?: CheckboxVariant;
22
24
  }
@@ -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' | string;
2
+ export type TableInteraction = 'FOCUS_SEARCH' | 'OPEN_FILTERS' | 'OPEN_SORT' | 'USE_PAGING' | 'CUSTOM_ACTION';
3
3
  export interface UseConfirmInteractionProps<TData extends RowData> {
4
4
  table: Table<TData>;
5
5
  }
@@ -1,4 +1 @@
1
- export declare const StyledDraggableRowTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, {
2
- reorderEnabled: boolean;
3
- }, never>;
4
1
  export declare const StyledDraggableRowWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,6 +1,7 @@
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";
4
5
  /** Applying this data attribute marks a row as active, applying a new background color. */
5
6
  export declare const dataAttrActiveRow: "data-active-row";
6
7
  /** Prefix added to table cell data attrs (like cell ID). */
@@ -1,7 +1,8 @@
1
- import { ColumnDef, ColumnOrderState, RowData, VisibilityState } from '@tanstack/react-table';
1
+ import { ColumnDef, ColumnOrderState, RowData, Table, 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<import("./table.types").CustomTData>>(table: Table<TData>) => {};
5
6
  export declare const extractColumnsDefinition: <TData extends RowData<import("./table.types").CustomTData>>(columns: ColumnDef<TData, unknown>[]) => {
6
7
  order: string[];
7
8
  visibility: Record<string, boolean>;