@croquiscom/pds 12.2.0 → 12.2.2

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,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 12.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - bd87e02: DataTable noDataPadding 속성 추가
8
+
9
+ ## 12.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 9fd7078: Section간 여백 수정(Desktop)
14
+
3
15
  ## 12.2.0
4
16
 
5
17
  ### Minor Changes
@@ -75,6 +75,11 @@ export interface DataTableProps<DataType> {
75
75
  * @default '데이터가 없습니다'
76
76
  */
77
77
  noDataText?: ReactNode;
78
+ /**
79
+ * Table 데이터가 없을 경우 노출되는 텍스트의 상하 여백입니다.
80
+ * @default 120
81
+ */
82
+ noDataPadding?: number;
78
83
  /**
79
84
  * 테이블의 컬럼 리사이즈 활성화 여부
80
85
  * - width값 지정된 컬럼은 resize가 불가합니다.
@@ -14,6 +14,7 @@ export declare const Loading: Story;
14
14
  export declare const Resize: Story;
15
15
  export declare const NoData: Story;
16
16
  export declare const CustomNoDataText: Story;
17
+ export declare const CustomNoDataPadding: Story;
17
18
  export declare const ColumnGroup: Story;
18
19
  export declare const CellSpan: Story;
19
20
  export declare const ColumnFixed: Story;
@@ -1,12 +1,12 @@
1
1
  import { Key } from 'react';
2
2
  import { DataTableProps } from './DataTable';
3
3
  import { SelectRowAction, DataTableRowType } from './types';
4
- interface DataTableRowsProps<DataType> extends Pick<DataTableProps<DataType>, 'columns' | 'rows' | 'noDataText' | 'loading' | 'selectableRows' | 'clickableRows' | 'cellHoverStyle' | 'cellDisabledStyle' | 'resize'> {
4
+ interface DataTableRowsProps<DataType> extends Pick<DataTableProps<DataType>, 'columns' | 'rows' | 'noDataText' | 'noDataPadding' | 'loading' | 'selectableRows' | 'clickableRows' | 'cellHoverStyle' | 'cellDisabledStyle' | 'resize'> {
5
5
  tableContainerAttribute: number;
6
6
  allSelected?: boolean;
7
7
  selectedRows?: Map<Key, DataTableRowType<DataType>>;
8
8
  rowColor?: (row: DataTableRowType<DataType>, index: number) => (string | undefined) | string;
9
9
  onSelectedRow?: (action: SelectRowAction<DataType>) => void;
10
10
  }
11
- export declare const DataTableRows: <DataType extends object = any>({ columns, rows, loading, selectableRows, clickableRows, selectedRows, noDataText, cellHoverStyle, cellDisabledStyle, tableContainerAttribute, resize, onSelectedRow, rowColor, }: DataTableRowsProps<DataType>) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const DataTableRows: <DataType extends object = any>({ columns, rows, loading, selectableRows, clickableRows, selectedRows, noDataText, noDataPadding, cellHoverStyle, cellDisabledStyle, tableContainerAttribute, resize, onSelectedRow, rowColor, }: DataTableRowsProps<DataType>) => import("@emotion/react/jsx-runtime").JSX.Element;
12
12
  export {};