@inntechcorp/it-design 2.0.142 → 2.0.144

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { MutableRefObject, RefObject, Context, ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, FocusEventHandler, KeyboardEvent, CSSProperties, ReactElement, MouseEvent } from 'react';
3
+ import react__default, { MutableRefObject, RefObject, Context, ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, FunctionComponent, CSSProperties, FocusEventHandler, KeyboardEvent, ReactElement, MouseEvent } from 'react';
4
4
  import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
5
5
  import { IStyledComponent } from 'styled-components';
6
6
  import { Cancel, AxiosProgressEvent } from 'axios';
@@ -676,7 +676,9 @@ declare const Tabs: ({ tabs, activeTabKey, variant, height, onTabChange }: TabsP
676
676
 
677
677
  declare const Card: ({ title, titleSeparator, extra, tabs, onTabChange, minWidth, minHeight, children, activeTabKey, updating, contentPadding, }: CardProps) => react_jsx_runtime.JSX.Element;
678
678
 
679
- declare const Table: <T>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow }: TableProps<T>) => react_jsx_runtime.JSX.Element;
679
+ declare const Table: <T>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T> & {
680
+ getTRProps?: (row: T, rowIndex: number) => CSSProperties;
681
+ }) => react_jsx_runtime.JSX.Element;
680
682
 
681
683
  declare const Flex: ({ gap, justify, align, vertical, wrap, stretch, style, className, children }: FlexProps) => react_jsx_runtime.JSX.Element;
682
684
 
@@ -1328,6 +1330,7 @@ type TableProps<T> = {
1328
1330
  dashed?: boolean;
1329
1331
  noGaps?: boolean;
1330
1332
  overflow?: boolean;
1333
+ getTRProps?: (row: T, rowIndex: number) => React.CSSProperties;
1331
1334
  };
1332
1335
 
1333
1336
  type CardProps = {