@crispy-seed/data-table 0.9.0 → 0.10.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/dist/index.d.ts CHANGED
@@ -114,7 +114,7 @@ interface UseDataTableViewsProps {
114
114
  storageKey?: string;
115
115
  }
116
116
 
117
- type DataTableCellType = "text" | "entity" | "url" | "email" | "tags" | "status" | "number" | "currency" | "date" | "datetime" | "rating" | "checkbox";
117
+ type DataTableCellType = "text" | "entity" | "url" | "email" | "tags" | "status" | "number" | "currency" | "date" | "datetime" | "rating" | "checkbox" | "chip" | "chip-list";
118
118
 
119
119
  /** A `select`/`reference`/`actor` editor's own choice list -- `value`/`label` are
120
120
  * required (the committed string and what the row reads), `avatar` is read only by
@@ -269,6 +269,14 @@ interface DataTableColumn<TRow> {
269
269
  onOpenPreview?: (row: TRow) => void;
270
270
  /** `onOpenPreview` 아이콘의 aria-label입니다. @default "Open preview" */
271
271
  openPreviewLabel?: string;
272
+ /**
273
+ * 셀 텍스트 옆에 고정으로 붙는 접미(trailing) 아이콘입니다 (예: 링크 열의 외부 링크
274
+ * 아이콘, 위치 열의 핀 아이콘) -- 텍스트가 길어져도 이 아이콘은 잘리거나 사라지지
275
+ * 않습니다 (cells.tsx의 `CellWithSuffix`: 텍스트 쪽만 `flex:1;min-width:0`로
276
+ * 줄임표 처리되고, 아이콘은 `flex-shrink:0`). `type: "text"`(기본)와 `"url"`/
277
+ * `"email"` 열에서 동작합니다.
278
+ */
279
+ suffixIcon?: (row: TRow) => React.ReactNode;
272
280
  }
273
281
  interface DataTableProps<TRow extends {
274
282
  id: string;