@muraldevkit/ui-toolkit 2.83.1 → 2.84.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/README.md
CHANGED
|
@@ -22,7 +22,12 @@ If you need to verify your local changes in an external project see our [Local E
|
|
|
22
22
|
|
|
23
23
|
Within the project you'll find the `src/` directory, which logically groups components together. For more information on our components see our [Component standards](./src/storybook_docs/getting-started/component-standards.mdx)
|
|
24
24
|
|
|
25
|
-
## Documentation
|
|
25
|
+
## Documentation
|
|
26
|
+
### Usage
|
|
27
|
+
The source of truth for component and token documentation is at http://uitoolkit.mural.co/. Sign in with your Google account and explore.
|
|
28
|
+
If you have any questions or feedback, please let us know in slack `#ask-fe-platform`
|
|
29
|
+
|
|
30
|
+
### Development
|
|
26
31
|
Our doc site uses Storybook as living documentation and dev environment. We support [mdx](https://mdxjs.com/) files and standard Storybook files, we use [CSF version 3](https://storybook.js.org/blog/component-story-format-3-0/). You can find examples on how to add markdown docs to the doc section of our site in the `src/storybookds_docs`. For documentation on how to write [Storybook stories](https://storybook.js.org/docs/react/writing-stories/introduction).
|
|
27
32
|
|
|
28
33
|
*During deployments we remove the docs and strip comments.*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { MrlTableProps } from '../MrlTable';
|
|
3
3
|
import { MrlSortDirection, MrlTableColumnId, MrlTableColumnSortDescriptor, MrlTableItemId, MrlTableSelectionMode } from '../constants';
|
|
4
4
|
export interface MrlSmartColumnRendererProps {
|
|
@@ -58,6 +58,11 @@ export interface MrlTableItem extends Record<string, unknown> {
|
|
|
58
58
|
* This makes the row item visually disabled.
|
|
59
59
|
*/
|
|
60
60
|
isDisabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* A ref to the table row element
|
|
63
|
+
* The ref is an object where the key is the item id and the value is the table row element
|
|
64
|
+
*/
|
|
65
|
+
rowRef?: React.MutableRefObject<Record<MrlTableItemId, HTMLTableRowElement>>;
|
|
61
66
|
}
|
|
62
67
|
export type MrlTableColumnSticky = 'left' | 'right';
|
|
63
68
|
export interface MrlSmartTableColumn {
|
|
@@ -7,6 +7,10 @@ export interface MrlTableRowProps extends React.ComponentPropsWithoutRef<'tr'> {
|
|
|
7
7
|
* @default `${id}-mrl-table-row`
|
|
8
8
|
*/
|
|
9
9
|
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Id of the MrlTableItem associated with the table row
|
|
12
|
+
*/
|
|
13
|
+
itemId?: string;
|
|
10
14
|
/**
|
|
11
15
|
*
|
|
12
16
|
* Custom click handler to be used for mouse and keyboard selection of table row
|
|
@@ -19,4 +23,4 @@ export interface MrlTableRowProps extends React.ComponentPropsWithoutRef<'tr'> {
|
|
|
19
23
|
* @param {MrlTableRowProps} props - MrlTableRow component props
|
|
20
24
|
* @returns a table row element
|
|
21
25
|
*/
|
|
22
|
-
export declare
|
|
26
|
+
export declare const MrlTableRow: React.ForwardRefExoticComponent<MrlTableRowProps & React.RefAttributes<Record<string, HTMLTableRowElement>>>;
|