@croquiscom/pds 8.34.3 → 8.34.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.34.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 90d75ea: cell, cellAttributes 함수에서 rows데이터를 참조할 수 있도록 수정
8
+
3
9
  ## 8.34.3
4
10
 
5
11
  ### Patch Changes
@@ -13,11 +13,12 @@ export type CellAttributes = {
13
13
  style?: CSSObject;
14
14
  };
15
15
  export type RowSelectState<DataType> = ((row: DataType) => boolean) | Array<Key> | null;
16
- export type CellAttributesProps<DataType> = (row: DataType, index?: number) => Pick<TdHTMLAttributes<any>, 'rowSpan' | 'colSpan'> & CellAttributes;
17
- export type CellProps<DataType> = ({ row, value, index, }: {
16
+ export type CellAttributesProps<DataType> = (row: DataType, index?: number, rows?: DataTableRowsType<DataType>) => Pick<TdHTMLAttributes<any>, 'rowSpan' | 'colSpan'> & CellAttributes;
17
+ export type CellProps<DataType> = ({ row, value, index, rows, }: {
18
18
  row: DataType;
19
19
  value: CellValue<any>;
20
20
  index: number;
21
+ rows: DataTableRowsType<DataType>;
21
22
  }) => ReactNode;
22
23
  export type DataTableColumnBase = {
23
24
  /**