@emoo-ai/ui-react 0.1.16 → 0.1.17
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/paper-planes-icon.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3237 -3200
- package/dist/styles.css +1 -1
- package/dist/table/DataTable.d.ts +6 -1
- package/dist/table/table-preferences.d.ts +2 -0
- package/package.json +2 -2
|
@@ -15,6 +15,9 @@ interface ServerPagination {
|
|
|
15
15
|
summary?: ReactNode;
|
|
16
16
|
}
|
|
17
17
|
declare module "@tanstack/react-table" {
|
|
18
|
+
interface TableMeta<TData extends RowData> {
|
|
19
|
+
columnWrap?: ReadonlySet<string>;
|
|
20
|
+
}
|
|
18
21
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
19
22
|
className?: string;
|
|
20
23
|
headClassName?: string;
|
|
@@ -28,9 +31,10 @@ declare module "@tanstack/react-table" {
|
|
|
28
31
|
enableReordering?: boolean;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
export declare function EllipsisText({ text, as }: {
|
|
34
|
+
export declare function EllipsisText({ text, as, wrap }: {
|
|
32
35
|
text: string;
|
|
33
36
|
as?: "div" | "span";
|
|
37
|
+
wrap?: boolean;
|
|
34
38
|
}): import("react/jsx-runtime").JSX.Element;
|
|
35
39
|
interface DataTableBaseProps<TData> {
|
|
36
40
|
columns: ColumnDef<TData, unknown>[];
|
|
@@ -57,6 +61,7 @@ interface DataTableBaseProps<TData> {
|
|
|
57
61
|
enableColumnPinning?: boolean;
|
|
58
62
|
enableColumnVisibility?: boolean;
|
|
59
63
|
enableColumnReordering?: boolean;
|
|
64
|
+
enableColumnWrap?: boolean;
|
|
60
65
|
defaultColumnSizing?: ColumnSizingState;
|
|
61
66
|
pinnedColumns?: {
|
|
62
67
|
left?: number;
|
|
@@ -9,6 +9,7 @@ export declare function writeStoredPins(storageKey: string, pins: {
|
|
|
9
9
|
} | undefined): void;
|
|
10
10
|
export declare function readStoredVisibility(storageKey: string): VisibilityState;
|
|
11
11
|
export declare function writeStoredVisibility(storageKey: string, visibility: VisibilityState, validIds: Set<string>): void;
|
|
12
|
+
export type ColumnWrapState = Record<string, true>;
|
|
12
13
|
export interface TablePreferences {
|
|
13
14
|
version: 1;
|
|
14
15
|
sorting?: SortingState;
|
|
@@ -18,6 +19,7 @@ export interface TablePreferences {
|
|
|
18
19
|
pinnedColumns?: {
|
|
19
20
|
left?: number;
|
|
20
21
|
};
|
|
22
|
+
columnWrap?: ColumnWrapState;
|
|
21
23
|
}
|
|
22
24
|
export interface LegacyTableKeys {
|
|
23
25
|
columnSizingKey?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emoo-ai/ui-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-dom": "^19.2.8"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@emoo-ai/brand": "0.1.
|
|
32
|
+
"@emoo-ai/brand": "0.1.17",
|
|
33
33
|
"@phosphor-icons/react": "2.1.10",
|
|
34
34
|
"@shadcn/react": "0.3.0",
|
|
35
35
|
"@tanstack/react-table": "^8.21.3",
|