@croquiscom/pds 8.2.0 → 8.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b5b97e9: Table 컴포넌트의 children 프로퍼티 옵셔널로 수정하고 forwardRef 처리
8
+
3
9
  ## 8.2.0
4
10
 
5
11
  ### Minor Changes
@@ -1,7 +1,6 @@
1
1
  import React, { TableHTMLAttributes } from 'react';
2
2
  import { Scroll } from '../table/types';
3
3
  export interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
4
- children: React.ReactNode;
5
4
  /**
6
5
  * 테이블 스크롤 영역 너비/높이를 지정할 수 있습니다.
7
6
  * - { x: number | string, y: number | string }
@@ -17,6 +16,5 @@ export interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
17
16
  * @default false
18
17
  */
19
18
  resize?: boolean;
20
- className?: string;
21
19
  }
22
20
  export declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
@@ -1,7 +1,6 @@
1
- import { ReactNode, TdHTMLAttributes } from 'react';
1
+ import React, { TdHTMLAttributes } from 'react';
2
2
  import { ColumnAlign } from '../table/types';
3
3
  interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
4
- children: ReactNode;
5
4
  id?: string;
6
5
  fixed?: boolean;
7
6
  fixedColWidth?: number;
@@ -11,5 +10,5 @@ interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
11
10
  resize?: boolean;
12
11
  colSpan?: number;
13
12
  }
14
- export declare const TableCell: ({ children, className, colSpan, id, ...props }: TableCellProps) => JSX.Element;
13
+ export declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
15
14
  export {};
@@ -1,8 +1,7 @@
1
- import React, { ReactNode, ThHTMLAttributes } from 'react';
1
+ import React, { ThHTMLAttributes } from 'react';
2
2
  import { TableSortIndicatorProps } from '../table/TableSortIndicator';
3
3
  import { ColumnAlign } from '../table/types';
4
4
  interface TableColProps extends ThHTMLAttributes<HTMLTableCellElement> {
5
- children: ReactNode;
6
5
  id?: string;
7
6
  width?: number;
8
7
  fixed?: boolean;
@@ -1,6 +1,5 @@
1
- import { ReactNode, TableHTMLAttributes } from 'react';
1
+ import React, { TableHTMLAttributes } from 'react';
2
2
  interface TableRowProps extends TableHTMLAttributes<HTMLTableRowElement> {
3
- children: ReactNode;
4
3
  selected?: boolean;
5
4
  isEmpty?: boolean;
6
5
  cellHoverStyle?: boolean;
@@ -8,5 +7,5 @@ interface TableRowProps extends TableHTMLAttributes<HTMLTableRowElement> {
8
7
  selectable?: boolean;
9
8
  disabled?: boolean;
10
9
  }
11
- export declare const TableRow: ({ children, className, ...props }: TableRowProps) => JSX.Element;
10
+ export declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
12
11
  export {};