@rafal.lemieszewski/tide-ui 0.34.0 → 0.36.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/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/data-table.d.ts +22 -0
- package/dist/index.cjs.js +1697 -1697
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +20343 -20073
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
5
|
-
intent?: "success" | "warning" | "destructive" | "neutral" | "brand" | null | undefined;
|
|
5
|
+
intent?: "success" | "warning" | "destructive" | "magenta" | "violet" | "information" | "neutral" | "brand" | null | undefined;
|
|
6
6
|
appearance?: "solid" | "outline" | "subtle" | null | undefined;
|
|
7
7
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -8,6 +8,7 @@ export interface NestedHeaderConfig {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
columns: ColumnDef<any, any>[];
|
|
10
10
|
}
|
|
11
|
+
export type AggregationType = 'range' | 'average' | 'sum' | 'count' | 'uniqueCount' | 'mostCommon' | 'dateRange' | false | ((rows: any[], accessor: any) => string);
|
|
11
12
|
export interface ColumnMeta {
|
|
12
13
|
label?: string;
|
|
13
14
|
filterVariant?: FilterVariant;
|
|
@@ -18,6 +19,27 @@ export interface ColumnMeta {
|
|
|
18
19
|
}>;
|
|
19
20
|
placeholder?: string;
|
|
20
21
|
icon?: React.ComponentType<any>;
|
|
22
|
+
renderInGroupedRows?: boolean;
|
|
23
|
+
aggregation?: AggregationType;
|
|
24
|
+
align?: 'left' | 'right';
|
|
25
|
+
truncate?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare module '@tanstack/react-table' {
|
|
28
|
+
interface ColumnMeta<TData extends unknown, TValue> {
|
|
29
|
+
label?: string;
|
|
30
|
+
filterVariant?: FilterVariant;
|
|
31
|
+
filterOptions?: Array<{
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
icon?: React.ComponentType<any>;
|
|
35
|
+
}>;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
icon?: React.ComponentType<any>;
|
|
38
|
+
renderInGroupedRows?: boolean;
|
|
39
|
+
aggregation?: AggregationType;
|
|
40
|
+
align?: 'left' | 'right';
|
|
41
|
+
truncate?: boolean;
|
|
42
|
+
}
|
|
21
43
|
}
|
|
22
44
|
declare const fuzzyFilter: FilterFn<any>;
|
|
23
45
|
declare const multiSelectFilter: FilterFn<any>;
|