@mittwald/flow-react-components 0.1.0-alpha.260 → 0.1.0-alpha.261
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/List.js +1 -1
- package/dist/types/components/List/hooks/useList.d.ts +2 -1
- package/dist/types/components/List/model/table/TableCell.d.ts +3 -2
- package/dist/types/components/List/model/table/types.d.ts +3 -3
- package/dist/types/components/List/setupComponents/TableCell.d.ts +3 -2
- package/dist/types/components/List/typedList.d.ts +1 -1
- package/package.json +4 -4
package/dist/List.js
CHANGED
|
@@ -1100,7 +1100,7 @@ const Gs = () => Rt, $t = (a) => null, zt = (a) => null, Ut = (a) => null, js =
|
|
|
1100
1100
|
onAction: o ? () => o(l.data) : void 0,
|
|
1101
1101
|
...t.body.row.componentProps
|
|
1102
1102
|
},
|
|
1103
|
-
(d = t.body.row) == null ? void 0 : d.cells.map((u, h) => /* @__PURE__ */ i.createElement(Lt, { key: h, ...u.componentProps }, u.renderFn ? u.renderFn(l.data) : void 0))
|
|
1103
|
+
(d = t.body.row) == null ? void 0 : d.cells.map((u, h) => /* @__PURE__ */ i.createElement(Lt, { key: h, ...u.componentProps }, u.renderFn ? u.renderFn(l.data, a) : void 0))
|
|
1104
1104
|
);
|
|
1105
1105
|
})
|
|
1106
1106
|
)
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as List } from '../model/List';
|
|
2
|
+
export declare const useList: <T = never>() => List<T>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableCellShape, TableCellSupportedComponentProps } from './types';
|
|
2
2
|
import { TableRow } from './TableRow';
|
|
3
|
+
import { RenderItemFn } from '../..';
|
|
3
4
|
export declare class TableCell<T> {
|
|
4
5
|
readonly row: TableRow<T>;
|
|
5
|
-
readonly renderFn?:
|
|
6
|
+
readonly renderFn?: RenderItemFn<T>;
|
|
6
7
|
readonly componentProps: TableCellSupportedComponentProps;
|
|
7
8
|
constructor(row: TableRow<T>, shape?: TableCellShape<T>);
|
|
8
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PropsWithChildren
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { TableBodyProps, TableCellProps, TableColumnProps, TableHeaderProps, TableProps, TableRowProps } from '../../../Table';
|
|
3
|
+
import { RenderItemFn } from '../..';
|
|
3
4
|
/** Cell */
|
|
4
|
-
export type RenderCellFn<T> = (data: T) => ReactNode;
|
|
5
5
|
export type TableCellSupportedComponentProps = Omit<TableCellProps, "children">;
|
|
6
6
|
export interface TableCellShape<T> extends TableCellSupportedComponentProps {
|
|
7
|
-
renderFn?:
|
|
7
|
+
renderFn?: RenderItemFn<T>;
|
|
8
8
|
}
|
|
9
9
|
/** Row */
|
|
10
10
|
export type TableRowSupportedComponentProps = Omit<TableRowProps, "onAction" | "children">;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TableCellShape } from '../model/table/types';
|
|
3
|
+
import { RenderItemFn } from '..';
|
|
3
4
|
type Props<T> = Omit<TableCellShape<T>, "renderFn"> & {
|
|
4
|
-
children:
|
|
5
|
+
children: RenderItemFn<T>;
|
|
5
6
|
};
|
|
6
7
|
export declare const TableCell: <T>(ignoredProps: Props<T>) => null;
|
|
7
8
|
export declare const TypedTableCell: <T>() => ComponentType<Props<T>>;
|
|
@@ -51,7 +51,7 @@ export declare const typedList: <T>() => {
|
|
|
51
51
|
columns?: Iterable<never> | undefined;
|
|
52
52
|
}) => null;
|
|
53
53
|
TableCell: (ignoredProps: Omit<import('./model/table/types').TableCellShape<T>, "renderFn"> & {
|
|
54
|
-
children: import('
|
|
54
|
+
children: import('.').RenderItemFn<T>;
|
|
55
55
|
}) => null;
|
|
56
56
|
Table: (ignoredProps: {
|
|
57
57
|
slot?: (string | null) | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.261",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"@chakra-ui/live-region": "^2.1.0",
|
|
314
314
|
"@internationalized/date": "^3.5.5",
|
|
315
315
|
"@internationalized/string-compiler": "^3.2.4",
|
|
316
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
316
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.261",
|
|
317
317
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
318
318
|
"@react-aria/utils": "^3.25.2",
|
|
319
319
|
"@react-types/shared": "^3.24.1",
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
},
|
|
341
341
|
"devDependencies": {
|
|
342
342
|
"@faker-js/faker": "^9.0.1",
|
|
343
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
343
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.261",
|
|
344
344
|
"@mittwald/react-use-promise": "^2.5.0",
|
|
345
345
|
"@nx/storybook": "^19.7.4",
|
|
346
346
|
"@storybook/addon-a11y": "^8.3.2",
|
|
@@ -418,5 +418,5 @@
|
|
|
418
418
|
"optional": true
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
|
-
"gitHead": "
|
|
421
|
+
"gitHead": "84c3363b2a25c8f30746d91e956ba63b4dff18da"
|
|
422
422
|
}
|