matsuri-ui 17.0.2-alpha-1750051925500-43a75f0.0 → 17.1.0

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.
@@ -1,5 +1,7 @@
1
1
  import { WithPaginationProps } from "./WithPagination";
2
2
  import React from "react";
3
+ import type { CSSObject, SerializedStyles } from "@emotion/react";
4
+ import type { Theme } from "../theme";
3
5
  export interface TableUIRenderCellProps<Row, Value> {
4
6
  cell: {
5
7
  value: Value;
@@ -29,6 +31,11 @@ export interface TableUIPropsRenderActionsArgs<Row> {
29
31
  row: Row;
30
32
  index: number;
31
33
  }
34
+ export interface TableUIPropsGetRowStyleArgs<Row> {
35
+ row: Row;
36
+ index: number;
37
+ theme: Theme;
38
+ }
32
39
  export interface TableUIProps<Row> extends WithPaginationProps {
33
40
  /**
34
41
  * テーブルをストライプ柄にするかどうか
@@ -76,5 +83,11 @@ export interface TableUIProps<Row> extends WithPaginationProps {
76
83
  * 行の末尾にインタラクティブ要素を追加するためのメソッド
77
84
  */
78
85
  renderActions?: (args: TableUIPropsRenderActionsArgs<Row>) => React.JSX.Element;
86
+ /**
87
+ * 行のスタイルをカスタマイズするための関数
88
+ * @param args - 行のデータ、インデックス、テーマオブジェクトを含むオブジェクト
89
+ * @returns Emotion CSSオブジェクトまたはCSSオブジェクト
90
+ */
91
+ getRowStyle?: (args: TableUIPropsGetRowStyleArgs<Row>) => SerializedStyles | CSSObject | undefined;
79
92
  }
80
93
  export declare const TableUI: <Row extends Record<string, any>>(props: TableUIProps<Row>) => import("@emotion/react/jsx-runtime").JSX.Element;