@livechat/design-system-react-components 2.32.0 → 2.34.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 +2 -4
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/types.d.ts +6 -0
- package/dist/components/UserGuide/components/UserGuideStep/types.d.ts +4 -0
- package/dist/{style.css → design-system-react-components.css} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2388 -2389
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
This package contains a library of reusable React components designed to be used in various projects. These components are the building blocks of our design system and can be easily integrated into your applications.
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
## Installation
|
|
21
20
|
|
|
22
21
|
Run the following command using [npm](https://www.npmjs.com/) (or with you other favorite package manager, eg. [yarn](https://yarnpkg.com/)):
|
|
@@ -30,7 +29,7 @@ npm install @livechat/design-system-react-components @livechat/design-system-ico
|
|
|
30
29
|
It is required to import the `CSS` directly into your project so it could be applied to components:
|
|
31
30
|
|
|
32
31
|
```js
|
|
33
|
-
import '@livechat/design-system-react-components/dist/
|
|
32
|
+
import '@livechat/design-system-react-components/dist/design-system-react-components.css';
|
|
34
33
|
```
|
|
35
34
|
|
|
36
35
|
You can import components directly from the npm package:
|
|
@@ -55,7 +54,6 @@ At this stage of the project we consider Storybook and Figma as parts of our doc
|
|
|
55
54
|
[Storybook](https://design.livechat.com/) - includes design system foundations, describes components API and allows to familiarize with the thier capabilities
|
|
56
55
|
[Figma](https://www.figma.com/file/2pFu80PXO5A2tfyrAGnx91/Product-Components) - it's not an official documentation from design perspective but we follow a simple rule of working in public
|
|
57
56
|
|
|
58
|
-
|
|
59
57
|
### Development
|
|
60
58
|
|
|
61
59
|
Required version of `node.js` is `20.14.0`.
|
|
@@ -78,4 +76,4 @@ If `Storybook` is not enough, you can additionaly run `npm start:example` which
|
|
|
78
76
|
|
|
79
77
|
### Contributing
|
|
80
78
|
|
|
81
|
-
For the `contribution/testing/releasing` guides please refer to the [main repository](https://github.com/livechat/design-system/) documentation.
|
|
79
|
+
For the `contribution/testing/releasing` guides please refer to the [main repository](https://github.com/livechat/design-system/) documentation.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ITableProps } from './types';
|
|
2
|
-
export declare const Table: <T>({ data, columns, stripped, size, pin, selectable, getRowId, resizable, selectedRows, onSelectionChange, rowSelectionMessage, rowActions, testId, }: ITableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Table: <T>({ data, columns, stripped, size, pin, selectable, getRowId, resizable, selectedRows, onSelectionChange, rowSelectionMessage, rowActions, testId, customBackgroundColor, }: ITableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -57,6 +57,12 @@ type BaseTableProps<T> = {
|
|
|
57
57
|
* Sets the `data-testid` attribute, allowing the table to be easily selected in automated tests.
|
|
58
58
|
*/
|
|
59
59
|
testId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Custom background color for table elements in their default state.
|
|
62
|
+
* When provided, all table elements will use this color as their background-color.
|
|
63
|
+
* Other states (hover, selected, etc.) will remain unchanged.
|
|
64
|
+
*/
|
|
65
|
+
customBackgroundColor?: string;
|
|
60
66
|
};
|
|
61
67
|
type NonSelectableTableProps<T> = BaseTableProps<T> & {
|
|
62
68
|
selectable?: false;
|