@mdspl/mds-shared-ui 0.4.0 → 0.4.1
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 +7 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
5
5
|
import { RefAttributes } from 'react';
|
|
6
6
|
import { Store } from '@tanstack/store';
|
|
7
7
|
|
|
8
|
-
declare interface ActionHeaderProps {
|
|
8
|
+
export declare interface ActionHeaderProps {
|
|
9
9
|
backgroundColor?: string;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
showActionColumn?: boolean;
|
|
@@ -16,7 +16,7 @@ declare interface ActionHeaderProps {
|
|
|
16
16
|
|
|
17
17
|
export declare const addPreset: (pageKey: string, item: PresetItem) => void;
|
|
18
18
|
|
|
19
|
-
declare interface Column<T = unknown> {
|
|
19
|
+
export declare interface Column<T = unknown> {
|
|
20
20
|
id: string;
|
|
21
21
|
label: string;
|
|
22
22
|
minWidth?: number | string;
|
|
@@ -39,14 +39,14 @@ export declare interface ConfirmDeleteDialogProps {
|
|
|
39
39
|
|
|
40
40
|
export declare function DataTable<T extends Record<string, unknown>>({ tableId, data: rowData, headers, loading, emptyMessage, actions, page, pageSize, onPageChange, onPageSizeChange, density, totalCount, paginationMode, actionConfig, }: DataTableProps<T>): JSX_2.Element;
|
|
41
41
|
|
|
42
|
-
declare interface DataTableAction<T = unknown> {
|
|
42
|
+
export declare interface DataTableAction<T = unknown> {
|
|
43
43
|
icon: JSX.Element;
|
|
44
44
|
label: string;
|
|
45
45
|
onClick: (row: T) => void;
|
|
46
46
|
colorScheme?: 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink';
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
declare interface DataTableProps<T = unknown> {
|
|
49
|
+
export declare interface DataTableProps<T = unknown> {
|
|
50
50
|
tableId: string;
|
|
51
51
|
headers?: Column<T>[];
|
|
52
52
|
data?: T[];
|
|
@@ -67,7 +67,7 @@ export declare type DateTimeVariant = 'date' | 'time' | 'dateTime' | 'full' | 'r
|
|
|
67
67
|
|
|
68
68
|
export declare const deletePreset: (pageKey: string, id: string) => void;
|
|
69
69
|
|
|
70
|
-
declare type DensityType = 'sm' | 'md' | 'lg';
|
|
70
|
+
export declare type DensityType = 'sm' | 'md' | 'lg';
|
|
71
71
|
|
|
72
72
|
export declare const Filters: ({ title, filters, onVisibilityChange, onReorder, onSizeChange, onClear, maxToolbarUnits, pageKey, currentFilters, onLoadPreset, activePresetName, filterDrawerSize, }: IMainFilterType) => JSX_2.Element;
|
|
73
73
|
|
|
@@ -228,6 +228,8 @@ export declare function setData(newData: any[], headers?: Column<any>[]): void;
|
|
|
228
228
|
|
|
229
229
|
export declare function setTableId(tableId: string): void;
|
|
230
230
|
|
|
231
|
+
export declare type SortOrder = 'asc' | 'desc';
|
|
232
|
+
|
|
231
233
|
export declare function StackedDateTime({ value, dateVariant, timeVariant, dateFormat, timeFormat, align, }: StackedDateTimeProps): JSX_2.Element;
|
|
232
234
|
|
|
233
235
|
declare interface StackedDateTimeProps {
|