asma-core-ui 2.0.6 → 2.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.
@@ -1,3 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { IBaseStyledDataGrid } from './types';
3
- export declare const StyledDataGrid: (props: IBaseStyledDataGrid) => import("react").JSX.Element;
3
+ export declare const StyledDataGrid: {
4
+ (props: IBaseStyledDataGrid): import("react").JSX.Element;
5
+ defaultProps: {
6
+ disableHeaderPin: boolean;
7
+ disableRowActions: boolean;
8
+ };
9
+ };
@@ -2,9 +2,24 @@
2
2
  import type { StoryObj } from '@storybook/react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: (props: import("./types").IBaseStyledDataGrid) => import("react").JSX.Element;
5
+ component: {
6
+ (props: import("./types").IBaseStyledDataGrid): import("react").JSX.Element;
7
+ defaultProps: {
8
+ disableHeaderPin: boolean;
9
+ disableRowActions: boolean;
10
+ };
11
+ };
6
12
  tags: string[];
7
- argTypes: {};
13
+ argTypes: {
14
+ disableHeaderPin: {
15
+ control: string;
16
+ defaultValue: boolean;
17
+ };
18
+ disableRowActions: {
19
+ control: string;
20
+ defaultValue: boolean;
21
+ };
22
+ };
8
23
  args: {
9
24
  rows: {
10
25
  id: number;
@@ -44,10 +59,13 @@ declare const meta: {
44
59
  disableColumnSelector: true;
45
60
  disableColumnFilter: true;
46
61
  disableDensitySelector: true;
62
+ rowActions: () => import("react").JSX.Element[];
47
63
  slots: {
48
64
  columnSortedAscendingIcon: () => import("react").JSX.Element;
49
65
  columnSortedDescendingIcon: () => import("react").JSX.Element;
50
66
  };
67
+ disableHeaderPin: false;
68
+ disableRowActions: false;
51
69
  };
52
70
  };
53
71
  export default meta;
@@ -1,4 +1,4 @@
1
- import { type ReactNode, type JSXElementConstructor, type ReactElement } from 'react';
1
+ import { type JSXElementConstructor, type ReactElement, type ReactNode } from 'react';
2
2
  import { type GridActionsCellItemProps, type GridRowParams } from '@mui/x-data-grid';
3
3
  import type { GridApiCommunity } from '@mui/x-data-grid/internals';
4
4
  export declare const columnActions: (apiRef: React.MutableRefObject<GridApiCommunity>, rowActions: (params: GridRowParams<any>) => ReactElement<GridActionsCellItemProps, string | JSXElementConstructor<any>>[], columnsMenuTitle: ReactNode, fixedColumns?: string[]) => {
@@ -3,6 +3,7 @@ import type { JSXElementConstructor, ReactElement, ReactNode } from 'react';
3
3
  export interface IBaseStyledDataGrid extends DataGridProps {
4
4
  columnsMenuTitle?: ReactNode;
5
5
  disableRowActions?: boolean;
6
+ disableHeaderPin?: boolean;
6
7
  fixedColumns?: string[];
7
8
  rowActions?: (params: GridRowParams<any>) => ReactElement<GridActionsCellItemProps, string | JSXElementConstructor<any>>[];
8
9
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.0.6",
6
+ "version": "2.2.0",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",