@movable/ui 3.0.0 → 3.1.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.
@@ -0,0 +1,9 @@
1
+ import { GridColDef } from '@mui/x-data-grid-premium';
2
+ /**
3
+ * Creates empty column definitions with skeleton loading placeholders.
4
+ * Used to maintain grid structure while showing loading state.
5
+ *
6
+ * @param columns - The original column definitions to create empty versions of
7
+ * @returns Array of column definitions with skeleton renderCell functions
8
+ */
9
+ export declare function createEmptyColumns(columns: GridColDef[]): GridColDef[];
@@ -0,0 +1,12 @@
1
+ import { DataGridPremiumProps } from '@mui/x-data-grid-premium';
2
+ export interface InkDataGridProps extends DataGridPremiumProps {
3
+ /**
4
+ * Test selector for automated testing
5
+ */
6
+ testSelector?: string;
7
+ }
8
+ /**
9
+ * InkDataGrid is a customized DataGridPremium component with Movable Ink styling and behavior.
10
+ * It provides automatic height adjustment, hidden column separators, and transparent row hover effects.
11
+ */
12
+ export declare function InkDataGrid({ testSelector, sx, rows, ...rest }: InkDataGridProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { GridColDef } from '@mui/x-data-grid-premium';
2
+ export interface InkDataGridEmptyProps {
3
+ /**
4
+ * Test selector for automated testing
5
+ */
6
+ testSelector?: string;
7
+ /**
8
+ * Column definitions to display in the empty state grid
9
+ */
10
+ emptyColumns: GridColDef[];
11
+ }
12
+ /**
13
+ * InkDataGridEmpty displays an empty state grid with skeleton rows.
14
+ * Used to show the grid structure while data is loading.
15
+ */
16
+ export declare function InkDataGridEmpty({ testSelector, emptyColumns, }: InkDataGridEmptyProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { InkDataGrid, type InkDataGridProps } from './InkDataGrid';
2
+ export { InkDataGridEmpty, type InkDataGridEmptyProps, } from './InkDataGridEmpty';
3
+ export { createEmptyColumns } from './CreateEmptyColumns';
@@ -24,3 +24,4 @@ export { InternalUseOnlyLabel, InternalUseOnlyAlert, } from './InternalUseOnlyIn
24
24
  export { InkChart } from './InkChart';
25
25
  export { InkCard } from './InkCard';
26
26
  export { InkGridToolBar } from './InkGridToolBar';
27
+ export { InkDataGrid, InkDataGridEmpty, createEmptyColumns, type InkDataGridProps, type InkDataGridEmptyProps, } from './InkDataGrid';
package/lib/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { CheckboxProps } from '@mui/material';
11
11
  import { CheckboxProps as CheckboxProps_2 } from '@mui/material/Checkbox';
12
12
  import { ChipProps } from '@mui/material';
13
13
  import { CustomContentProps } from 'notistack';
14
+ import { DataGridPremiumProps } from '@mui/x-data-grid-premium';
14
15
  import type { DialogProps } from '@mui/material/Dialog';
15
16
  import { DrawerProps } from '@mui/material/Drawer';
16
17
  import { DrawerProps as DrawerProps_2 } from '@mui/material';
@@ -129,6 +130,15 @@ declare type CopiedValue = string | null;
129
130
 
130
131
  declare type CopyFn = (text: string) => Promise<boolean>;
131
132
 
133
+ /**
134
+ * Creates empty column definitions with skeleton loading placeholders.
135
+ * Used to maintain grid structure while showing loading state.
136
+ *
137
+ * @param columns - The original column definitions to create empty versions of
138
+ * @returns Array of column definitions with skeleton renderCell functions
139
+ */
140
+ export declare function createEmptyColumns(columns: GridColDef[]): GridColDef[];
141
+
132
142
  declare const defaultDrawerWidths: {
133
143
  md: number;
134
144
  lg: number;
@@ -364,6 +374,36 @@ declare type InkChipPropType = {
364
374
  truncation?: 'end' | 'middle';
365
375
  };
366
376
 
377
+ /**
378
+ * InkDataGrid is a customized DataGridPremium component with Movable Ink styling and behavior.
379
+ * It provides automatic height adjustment, hidden column separators, and transparent row hover effects.
380
+ */
381
+ export declare function InkDataGrid({ testSelector, sx, rows, ...rest }: InkDataGridProps): JSX_2.Element;
382
+
383
+ /**
384
+ * InkDataGridEmpty displays an empty state grid with skeleton rows.
385
+ * Used to show the grid structure while data is loading.
386
+ */
387
+ export declare function InkDataGridEmpty({ testSelector, emptyColumns, }: InkDataGridEmptyProps): JSX_2.Element;
388
+
389
+ export declare interface InkDataGridEmptyProps {
390
+ /**
391
+ * Test selector for automated testing
392
+ */
393
+ testSelector?: string;
394
+ /**
395
+ * Column definitions to display in the empty state grid
396
+ */
397
+ emptyColumns: GridColDef[];
398
+ }
399
+
400
+ export declare interface InkDataGridProps extends DataGridPremiumProps {
401
+ /**
402
+ * Test selector for automated testing
403
+ */
404
+ testSelector?: string;
405
+ }
406
+
367
407
  export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ActionsProp, ...props }: InkDialogProps): JSX_2.Element;
368
408
 
369
409
  export declare const inkDialog: InkDialogPageObject;