gantri-components 2.43.0-beta.9 → 3.0.0-beta.10

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 @@
1
- /// <reference types="react" />
2
- export declare const StyledOption: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../typography").TypographyProps & import("react").RefAttributes<unknown>>, import("styled-components").DefaultTheme, {}, never>;
3
1
  export declare const StyledSelect: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
- export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -2,6 +2,7 @@ import { RowData } from '@tanstack/react-table';
2
2
  import { TableProps } from './table.types';
3
3
  /**
4
4
  * See https://components.gantri.com/?path=/story/core-table for usage examples.
5
+ *
5
6
  * Official docs: https://tanstack.com/table/v8/docs/guide/overview
6
7
  */
7
8
  export declare const Table: {
@@ -27,7 +27,7 @@ export interface TableProps<TData extends RowData> extends Partial<TableDefaultP
27
27
  */
28
28
  data: TData[];
29
29
  filters?: FiltersProps;
30
- /** Include `href` and (optionally) `target` in the returned object to apply an anchor with appropriate cell styling. Text styling must be applied within the column. */
30
+ /** Include `isClickable` in the returned object to apply appropriate cell styling. Text styling must be applied within the column. */
31
31
  getCellProps?: GetCellProps<TData>;
32
32
  getHeaderCellProps?: GetHeaderCellProps<TData>;
33
33
  /** Include `status` in the returned object to set the row status color. */
@@ -52,10 +52,9 @@ export interface CustomRowProps extends HTMLAttributes<HTMLTableRowElement>, Rec
52
52
  status?: RowStatusValue | undefined;
53
53
  }
54
54
  export type RowStatusValue = 'handled' | 'next' | 'error' | 'warning';
55
- /** Include `href` and (optionally) `target` in the returned object to apply an anchor with appropriate cell styling. Text styling must be applied within the column. */
55
+ /** Include `isClickable` in the returned object to apply appropriate cell styling. Text styling must be applied within the column. */
56
56
  export type GetCellProps<TData extends RowData, TValue = unknown> = (cell?: Cell<TData, TValue>) => CustomCellProps;
57
57
  export type OnRowClick<TData extends RowData> = (data: Row<TData>, event: MouseEvent<HTMLTableRowElement>) => void;
58
58
  export interface CustomCellProps extends HTMLAttributes<HTMLTableCellElement>, Record<string, unknown> {
59
- href?: string;
60
- target?: '_blank';
59
+ isClickable?: boolean;
61
60
  }
@@ -38,11 +38,11 @@ export interface TextFieldProps {
38
38
  maxValue?: number;
39
39
  minValue?: number;
40
40
  name?: string;
41
- onBlur?: (event: FocusEvent) => void;
41
+ onBlur?: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
42
42
  onBlurTextChange?: (value: string) => void;
43
43
  onChange?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
44
- onClick?: (event: MouseEvent) => void;
45
- onFocus?: (event: FocusEvent) => void;
44
+ onClick?: (event: MouseEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
45
+ onFocus?: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
46
46
  onKeyDown?: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
47
47
  onKeyUp?: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
48
48
  onTextChange?: (value: string) => void;