@muraldevkit/ui-toolkit 4.40.0 → 4.41.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/components/svg/config.d.ts +1 -1
- package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +7 -1
- package/dist/components/table/MrlTableCell/MrlTableCell.d.ts +2 -0
- package/dist/components/table/MrlTableColumn/MrlTableColumn.d.ts +2 -0
- package/dist/components/table/constants.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/styles/MrlSmartTable/module.scss +16 -3
- package/dist/styles/MrlTableCell/module.scss +3 -0
- package/dist/styles/MrlTableColumn/module.scss +3 -0
- package/dist/styles.css +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MrlTableProps } from '../MrlTable';
|
|
3
|
-
import { MrlSortDirection, MrlTableColumnId, MrlTableColumnSortDescriptor, MrlTableItemId, MrlTableSelectionMode } from '../constants';
|
|
3
|
+
import { MrlSortDirection, MrlTableCellHorizontalAlign, MrlTableColumnId, MrlTableColumnSortDescriptor, MrlTableItemId, MrlTableSelectionMode } from '../constants';
|
|
4
4
|
export interface MrlSmartColumnRendererProps {
|
|
5
5
|
/**
|
|
6
6
|
* The column being rendered.
|
|
@@ -28,6 +28,7 @@ export interface MrlSmartColumnRendererProps {
|
|
|
28
28
|
sortDescriptor?: MrlTableColumnSortDescriptor;
|
|
29
29
|
hasScrollShadowLeft: boolean;
|
|
30
30
|
hasScrollShadowRight: boolean;
|
|
31
|
+
horizontalAlign?: MrlTableCellHorizontalAlign;
|
|
31
32
|
}
|
|
32
33
|
export interface MrlSmartCellRendererProps {
|
|
33
34
|
/**
|
|
@@ -79,6 +80,11 @@ export interface MrlSmartTableColumn {
|
|
|
79
80
|
* The display name of the column.
|
|
80
81
|
*/
|
|
81
82
|
name: string;
|
|
83
|
+
/**
|
|
84
|
+
* The horizontal alignment of the column content.
|
|
85
|
+
* If not provided, the default alignment is left.
|
|
86
|
+
*/
|
|
87
|
+
horizontalAlign?: MrlTableCellHorizontalAlign;
|
|
82
88
|
/**
|
|
83
89
|
* A component used to override rendering for each column cell. The
|
|
84
90
|
* component is expected to render a MrlTableColumn.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { MrlTableColumnSticky } from '../MrlSmartTable';
|
|
3
|
+
import { MrlTableCellHorizontalAlign } from '../constants';
|
|
3
4
|
export interface MrlTableCellProps extends React.ComponentPropsWithoutRef<'td'> {
|
|
4
5
|
/**
|
|
5
6
|
* An element id (and if not provided, a unique value decorated
|
|
@@ -14,6 +15,7 @@ export interface MrlTableCellProps extends React.ComponentPropsWithoutRef<'td'>
|
|
|
14
15
|
sticky?: MrlTableColumnSticky;
|
|
15
16
|
hasScrollShadowLeft?: boolean;
|
|
16
17
|
hasScrollShadowRight?: boolean;
|
|
18
|
+
horizontalAlign?: MrlTableCellHorizontalAlign;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* MrlTableCell Component
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { MrlTableColumnSticky } from '../MrlSmartTable';
|
|
3
|
+
import { MrlTableCellHorizontalAlign } from '../constants';
|
|
3
4
|
export interface MrlTableColumnProps extends React.ComponentPropsWithoutRef<'th'> {
|
|
4
5
|
/**
|
|
5
6
|
* An element id (and if not provided, a unique value decorated
|
|
@@ -14,6 +15,7 @@ export interface MrlTableColumnProps extends React.ComponentPropsWithoutRef<'th'
|
|
|
14
15
|
sticky?: MrlTableColumnSticky;
|
|
15
16
|
hasScrollShadowLeft?: boolean;
|
|
16
17
|
hasScrollShadowRight?: boolean;
|
|
18
|
+
horizontalAlign?: MrlTableCellHorizontalAlign;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* MrlTableColumn Component
|