@muraldevkit/ui-toolkit 2.86.7 → 2.87.0-dev-nydP.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/components/svg/config.d.ts +1 -1
- package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +22 -0
- package/dist/components/table/MrlTable/MrlTable.d.ts +2 -2
- package/dist/components/table/MrlTableHeader/MrlTableHeader.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlSmartTable/module.scss +20 -0
- package/package.json +1 -1
|
@@ -140,6 +140,24 @@ export interface MrlTableColumnSortOptions {
|
|
|
140
140
|
*/
|
|
141
141
|
sortDescriptor: MrlTableColumnSortDescriptor;
|
|
142
142
|
}
|
|
143
|
+
export interface MrlTableStickyHeaderOptions {
|
|
144
|
+
/**
|
|
145
|
+
* Whether the table header is stuck to the top of the page when scrolling.
|
|
146
|
+
*/
|
|
147
|
+
isTableHeaderSticky?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* A ref to the sticky table thead element.
|
|
150
|
+
*/
|
|
151
|
+
stickyTableHeaderRef?: React.RefObject<HTMLTableSectionElement>;
|
|
152
|
+
/**
|
|
153
|
+
* A ref to the sticky table container element.
|
|
154
|
+
*/
|
|
155
|
+
stickyTableContainerRef?: React.RefObject<HTMLDivElement>;
|
|
156
|
+
/**
|
|
157
|
+
* A ref to the non-sticky table element.
|
|
158
|
+
*/
|
|
159
|
+
tableRef?: React.RefObject<HTMLTableElement>;
|
|
160
|
+
}
|
|
143
161
|
export interface MrlSmartTableProps extends Partial<Pick<MrlTableProps, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-details'>> {
|
|
144
162
|
/**
|
|
145
163
|
* A list of table columns.
|
|
@@ -172,6 +190,10 @@ export interface MrlSmartTableProps extends Partial<Pick<MrlTableProps, 'aria-la
|
|
|
172
190
|
* @default ${id}-mrl-smart-table
|
|
173
191
|
*/
|
|
174
192
|
id?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Configuration options for a sticky table header.
|
|
195
|
+
*/
|
|
196
|
+
stickyTableHeaderOptions?: MrlTableStickyHeaderOptions;
|
|
175
197
|
/**
|
|
176
198
|
* A function to override the default sort items when a sort descriptor is set.
|
|
177
199
|
*/
|
|
@@ -11,7 +11,7 @@ export interface MrlTableProps extends React.ComponentPropsWithoutRef<'table'> {
|
|
|
11
11
|
/**
|
|
12
12
|
* MrlTable Component
|
|
13
13
|
*
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {MrlTableProps} props - MrlTable component props
|
|
15
15
|
* @returns a table element
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
17
|
+
export declare const MrlTable: React.ForwardRefExoticComponent<MrlTableProps & React.RefAttributes<HTMLTableElement>>;
|
|
@@ -14,4 +14,4 @@ export interface MrlTableHeaderProps extends React.ComponentPropsWithoutRef<'the
|
|
|
14
14
|
* @param {MrlTableHeaderProps} props - MrlTableHeader component props
|
|
15
15
|
* @returns a table header element with a nested table row element
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
17
|
+
export declare const MrlTableHeader: React.ForwardRefExoticComponent<MrlTableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
|