@movable/ui 3.1.2 → 3.3.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.
@@ -4,9 +4,14 @@ export interface InkDataGridProps extends DataGridPremiumProps {
4
4
  * Test selector for automated testing
5
5
  */
6
6
  testSelector?: string;
7
+ /**
8
+ * If true, the column reordering feature is disabled
9
+ * @default true
10
+ */
11
+ disableColumnReorder?: boolean;
7
12
  }
8
13
  /**
9
14
  * InkDataGrid is a customized DataGridPremium component with Movable Ink styling and behavior.
10
15
  * It provides automatic height adjustment, hidden column separators, and transparent row hover effects.
11
16
  */
12
- export declare function InkDataGrid({ testSelector, sx, rows, ...rest }: InkDataGridProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function InkDataGrid({ testSelector, disableColumnReorder, sx, rows, ...rest }: InkDataGridProps): import("react/jsx-runtime").JSX.Element;
package/lib/index.d.ts CHANGED
@@ -22,10 +22,9 @@ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
22
22
  import { FormGroupProps } from '@mui/material/FormGroup';
23
23
  import { FormLabelProps } from '@mui/material/FormLabel';
24
24
  import { ForwardRefExoticComponent } from 'react';
25
+ import { Grid2Props } from '@mui/material/Grid2';
25
26
  import { GridColDef } from '@mui/x-data-grid-premium';
26
27
  import { GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
27
- import { GridProps } from '@mui/material/Grid';
28
- import { GridProps as GridProps_2 } from '@mui/material';
29
28
  import { JSX as JSX_2 } from 'react/jsx-runtime';
30
29
  import { LinkProps } from '@mui/material';
31
30
  import { ListItemIconProps } from '@mui/material/ListItemIcon';
@@ -167,8 +166,8 @@ export declare function EightColumnFullContentLayout({ children, itemProps, cont
167
166
 
168
167
  declare type EightColumnFullContentLayoutProps = {
169
168
  children: React.ReactNode;
170
- containerProps?: GridProps_2;
171
- itemProps?: GridProps_2;
169
+ containerProps?: Grid2Props;
170
+ itemProps?: Grid2Props;
172
171
  };
173
172
 
174
173
  export declare function FiveThreeSplitContentLayout({ leftContent, rightContent, containerProps, leftProps, rightProps, }: FiveThreeSplitContentLayoutProps): JSX_2.Element;
@@ -176,9 +175,9 @@ export declare function FiveThreeSplitContentLayout({ leftContent, rightContent,
176
175
  declare type FiveThreeSplitContentLayoutProps = {
177
176
  leftContent: React.ReactNode;
178
177
  rightContent: React.ReactNode;
179
- containerProps?: GridProps_2;
180
- leftProps?: GridProps_2;
181
- rightProps?: GridProps_2;
178
+ containerProps?: Grid2Props;
179
+ leftProps?: Grid2Props;
180
+ rightProps?: Grid2Props;
182
181
  };
183
182
 
184
183
  export declare const FormSkeletonGrid: ({ skeletonRows, skeletonColumns, }: SkeletonGridType) => JSX_2.Element;
@@ -265,7 +264,7 @@ declare interface IInkGridToolBarProps {
265
264
 
266
265
  export declare function IndexLayout({ Header, children, sx, ...containerProps }: IndexLayoutProps): JSX_2.Element;
267
266
 
268
- declare type IndexLayoutProps = GridProps & {
267
+ declare type IndexLayoutProps = Grid2Props & {
269
268
  Header: JSX.Element;
270
269
  children: React.ReactNode;
271
270
  };
@@ -379,7 +378,7 @@ declare type InkChipPropType = {
379
378
  * InkDataGrid is a customized DataGridPremium component with Movable Ink styling and behavior.
380
379
  * It provides automatic height adjustment, hidden column separators, and transparent row hover effects.
381
380
  */
382
- export declare function InkDataGrid({ testSelector, sx, rows, ...rest }: InkDataGridProps): JSX_2.Element;
381
+ export declare function InkDataGrid({ testSelector, disableColumnReorder, sx, rows, ...rest }: InkDataGridProps): JSX_2.Element;
383
382
 
384
383
  /**
385
384
  * InkDataGridEmpty displays an empty state grid with skeleton rows.
@@ -403,6 +402,11 @@ export declare interface InkDataGridProps extends DataGridPremiumProps {
403
402
  * Test selector for automated testing
404
403
  */
405
404
  testSelector?: string;
405
+ /**
406
+ * If true, the column reordering feature is disabled
407
+ * @default true
408
+ */
409
+ disableColumnReorder?: boolean;
406
410
  }
407
411
 
408
412
  export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ActionsProp, ...props }: InkDialogProps): JSX_2.Element;
@@ -802,10 +806,10 @@ declare type IPageWrapperProps = {
802
806
  description?: string;
803
807
  };
804
808
 
805
- declare type LayoutDetailsProps = GridProps & {
809
+ declare type LayoutDetailsProps = Grid2Props & {
806
810
  Header: JSX.Element;
807
811
  children: React.ReactNode;
808
- itemProps?: GridProps;
812
+ itemProps?: Grid2Props;
809
813
  };
810
814
 
811
815
  export declare function LinkBreadcrumbs({ breadcrumbs }: BreadcrumbProps): JSX_2.Element;
@@ -879,8 +883,8 @@ declare type PanelWithPaperContentLayoutProps = React.PropsWithChildren<{
879
883
  children: React.ReactNode;
880
884
  wrapperProps?: BoxProps;
881
885
  panelProps?: BoxProps;
882
- containerProps?: GridProps_2;
883
- itemProps?: GridProps_2;
886
+ containerProps?: Grid2Props;
887
+ itemProps?: Grid2Props;
884
888
  }>;
885
889
 
886
890
  declare type PrimaryButtonType = ButtonProps & {
@@ -893,9 +897,9 @@ export declare function SevenThreeSplitContentLayout({ leftContent, rightContent
893
897
  declare type SevenThreeSplitContentLayoutProps = {
894
898
  leftContent: React.ReactNode;
895
899
  rightContent: React.ReactNode;
896
- containerProps?: GridProps_2;
897
- leftProps?: GridProps_2;
898
- rightProps?: GridProps_2;
900
+ containerProps?: Grid2Props;
901
+ leftProps?: Grid2Props;
902
+ rightProps?: Grid2Props;
899
903
  };
900
904
 
901
905
  declare type SkeletonGridType = {
@@ -909,8 +913,8 @@ export declare function TenColumnFullContentLayout({ children, itemProps, contai
909
913
 
910
914
  declare type TenColumnFullContentLayoutProps = {
911
915
  children: React.ReactNode;
912
- containerProps?: GridProps_2;
913
- itemProps?: GridProps_2;
916
+ containerProps?: Grid2Props;
917
+ itemProps?: Grid2Props;
914
918
  };
915
919
 
916
920
  export declare function useCopyToClipboard(): [CopiedValue, CopyFn];
@@ -919,10 +923,10 @@ declare type VariantType = 'page' | 'paper' | 'search' | 'data';
919
923
 
920
924
  export declare function WorkflowLayout({ Header, children, sx, itemProps, ...rest }: WorkflowLayoutProps): JSX_2.Element;
921
925
 
922
- declare type WorkflowLayoutProps = GridProps & {
926
+ declare type WorkflowLayoutProps = Grid2Props & {
923
927
  Header: JSX.Element;
924
928
  children: React.ReactNode;
925
- itemProps?: GridProps;
929
+ itemProps?: Grid2Props;
926
930
  };
927
931
 
928
932
  export { }