@stella-source/stellasource-dsl 3.1.6 → 3.2.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/cjs/index.js +42 -29
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Table/types.d.ts +4 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.esm.js +42 -29
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/Table/types.d.ts +4 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +12 -1
- package/package.json +1 -1
|
@@ -59,7 +59,10 @@ export interface CustomColumnMeta {
|
|
|
59
59
|
cellAlign?: "left" | "right";
|
|
60
60
|
dataType?: "string" | "number";
|
|
61
61
|
pin?: "left" | "right";
|
|
62
|
-
filterOptions?: string[] | number[]
|
|
62
|
+
filterOptions?: string[] | number[] | {
|
|
63
|
+
key?: string;
|
|
64
|
+
value?: string;
|
|
65
|
+
}[];
|
|
63
66
|
filterMode?: "singleSelect" | "multiSelect" | "search";
|
|
64
67
|
}
|
|
65
68
|
export type RowStatus = "action-pending" | "completed";
|
|
@@ -24,4 +24,5 @@ import "./shared/tokens/tokens.css";
|
|
|
24
24
|
import OrderStatus from "./components/OrderStatus/OrderStatus";
|
|
25
25
|
/**Exports */
|
|
26
26
|
export type { StellaIconDefinition } from "./components/StellaIcon/types";
|
|
27
|
+
export type { CustomColumnMeta } from "./components/Table/types";
|
|
27
28
|
export { Tabs, Label, StellaButton, IconButton, Loader, HelperText, Tooltip, StellaIcon, TextInput, PasswordInput, NumberInput, Table, Pagination, Sync, TableUnitsAndTotals, StellaButtonVariant, PaymentStatus, OrderStatus, Styles, };
|
package/dist/index.d.ts
CHANGED
|
@@ -278,6 +278,17 @@ interface TableProps<T> {
|
|
|
278
278
|
value: unknown;
|
|
279
279
|
}[];
|
|
280
280
|
}
|
|
281
|
+
interface CustomColumnMeta {
|
|
282
|
+
headerAlign?: "left" | "right";
|
|
283
|
+
cellAlign?: "left" | "right";
|
|
284
|
+
dataType?: "string" | "number";
|
|
285
|
+
pin?: "left" | "right";
|
|
286
|
+
filterOptions?: string[] | number[] | {
|
|
287
|
+
key?: string;
|
|
288
|
+
value?: string;
|
|
289
|
+
}[];
|
|
290
|
+
filterMode?: "singleSelect" | "multiSelect" | "search";
|
|
291
|
+
}
|
|
281
292
|
type RowStatus = "action-pending" | "completed";
|
|
282
293
|
|
|
283
294
|
declare function Table<T>({ columns, data, isLoading, serverSide, onPageChange, onSortChange, onFilterChange, onRowSelect, onRowClick, rowStatuses, showSelection, showRowOptions, showPagination, variant, paginationDetails, selectionMenuItems, dataAuto, dataTestId, id, className, htmlProps, resetTrigger, emptyTableState, defaultFilters, staticFilters, }: TableProps<T>): React$1.JSX.Element;
|
|
@@ -464,4 +475,4 @@ interface OrderStatusProps {
|
|
|
464
475
|
declare const OrderStatus: ({ variant, id, className, isPurchaser, }: OrderStatusProps) => React$1.JSX.Element;
|
|
465
476
|
|
|
466
477
|
export { HelperText, IconButton, Label, Loader, NumberInput, OrderStatus, Pagination, PasswordInput, PaymentStatus, StellaButton, StellaButtonVariant, StellaIcon, Styles, Sync, Table, TableUnitsAndTotals, Tabs, TextInput, Tooltip };
|
|
467
|
-
export type { StellaIconDefinition };
|
|
478
|
+
export type { CustomColumnMeta, StellaIconDefinition };
|