@cagatayfdn/flora-components 0.0.139 → 0.0.141
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/utils/table.js +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1296,7 +1296,7 @@ export declare type TableActionsType = {
|
|
|
1296
1296
|
export declare const TableColumns: TableColumnsType;
|
|
1297
1297
|
|
|
1298
1298
|
export declare type TableColumnsType = {
|
|
1299
|
-
[key: string]: ColumnsType;
|
|
1299
|
+
[key: string]: ColumnsType | ((...props: any[]) => ColumnsType);
|
|
1300
1300
|
};
|
|
1301
1301
|
|
|
1302
1302
|
export declare const TableHeader: ({ totalCount, currentPage, title, actionOnChange, className, pagerOnChange, pageSizeOnChange, pagerVisible, pageSizeVisible, pageSize, actionItems, pageSizeItems, headerLeftItem, customItem, appearance, showItemsText, }: TableHeaderProps) => JSX_2.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1296,7 +1296,7 @@ export declare type TableActionsType = {
|
|
|
1296
1296
|
export declare const TableColumns: TableColumnsType;
|
|
1297
1297
|
|
|
1298
1298
|
export declare type TableColumnsType = {
|
|
1299
|
-
[key: string]: ColumnsType;
|
|
1299
|
+
[key: string]: ColumnsType | ((...props: any[]) => ColumnsType);
|
|
1300
1300
|
};
|
|
1301
1301
|
|
|
1302
1302
|
export declare const TableHeader: ({ totalCount, currentPage, title, actionOnChange, className, pagerOnChange, pageSizeOnChange, pagerVisible, pageSizeVisible, pageSize, actionItems, pageSizeItems, headerLeftItem, customItem, appearance, showItemsText, }: TableHeaderProps) => JSX_2.Element;
|
package/dist/utils/table.js
CHANGED
|
@@ -23,12 +23,12 @@ import n from "../components/StatusTag/StatusTag.js";
|
|
|
23
23
|
import "../components/Switch/Switch.js";
|
|
24
24
|
import "../components/Textarea/Textarea.js";
|
|
25
25
|
const S = {
|
|
26
|
-
status: {
|
|
26
|
+
status: (t) => ({
|
|
27
27
|
title: a.t("label.status"),
|
|
28
28
|
dataIndex: "status",
|
|
29
29
|
className: "capitalize",
|
|
30
|
-
render: (
|
|
31
|
-
},
|
|
30
|
+
render: (e) => /* @__PURE__ */ r.jsx(n, { status: t[e], text: e })
|
|
31
|
+
}),
|
|
32
32
|
dateCreated: {
|
|
33
33
|
title: a.t("label.date_created"),
|
|
34
34
|
dataIndex: "created_date",
|