@umami/react-zen 0.95.0 → 0.96.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.
- package/dist/index.d.ts +5 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -433,19 +433,20 @@ declare module '@umami/react-zen/Dialog' {
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
declare module '@umami/react-zen/DataTable' {
|
|
436
|
-
import { ReactNode } from 'react';
|
|
437
|
-
import {
|
|
436
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
437
|
+
import { TableProps } from 'react-aria-components';
|
|
438
438
|
export interface DataTableProps extends TableProps {
|
|
439
439
|
data?: any[];
|
|
440
|
-
columns?: string;
|
|
441
440
|
}
|
|
442
441
|
export function DataTable({ data, className, children, ...props }: DataTableProps): import("react").JSX.Element;
|
|
443
|
-
export interface DataColumnProps extends
|
|
442
|
+
export interface DataColumnProps extends Omit<HTMLAttributes<any>, 'children'> {
|
|
444
443
|
id: string;
|
|
445
444
|
label?: ReactNode;
|
|
446
445
|
align?: 'start' | 'center' | 'end';
|
|
446
|
+
width?: string;
|
|
447
447
|
as?: string;
|
|
448
448
|
hidden?: boolean;
|
|
449
|
+
children?: ReactNode | ((props: DataColumnProps) => void);
|
|
449
450
|
}
|
|
450
451
|
export function DataColumn(props: DataColumnProps): null;
|
|
451
452
|
}
|