@connectif/ui-components 1.0.0 → 1.0.2
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 +23 -0
- package/dist/components/chat/Chat.d.ts +5 -1
- package/dist/components/chat/ChatMessage.d.ts +17 -0
- package/dist/components/progress/CircularProgress.d.ts +8 -1
- package/dist/components/typography/Typography.d.ts +10 -0
- package/dist/index.js +223 -152
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# UI Components
|
|
2
|
+
|
|
3
|
+
This package contains reusable user interface components from the Connectif platform.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
To install this package, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @connectif/ui-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Import the components into your project:
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
import { TextField } from '@connectif/ui-components';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
This package is licensed under the MIT license.
|
|
@@ -4,10 +4,14 @@ export type ChatProps = React.PropsWithChildren<{
|
|
|
4
4
|
* Header to place at the beginning of the chat
|
|
5
5
|
*/
|
|
6
6
|
header?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Background color
|
|
9
|
+
*/
|
|
10
|
+
backgroundColor?: string;
|
|
7
11
|
}>;
|
|
8
12
|
/**
|
|
9
13
|
* Shows a list of chat message, in a vertical layout.
|
|
10
14
|
*
|
|
11
15
|
*/
|
|
12
|
-
declare const Chat: ({ children, header }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const Chat: ({ children, header, backgroundColor }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
17
|
export default Chat;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { TypographyProps } from '../typography/Typography';
|
|
2
3
|
export type ChatMessageProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Message type, messages send by user will be outgoing and responses will be incoming.
|
|
@@ -26,6 +27,22 @@ export type ChatMessageProps = {
|
|
|
26
27
|
* Text to the cancelable button tooltip. If not provided, cancelable button will not display
|
|
27
28
|
*/
|
|
28
29
|
cancelableButtonText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Typography color
|
|
32
|
+
*/
|
|
33
|
+
typographyColor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Typography variant
|
|
36
|
+
*/
|
|
37
|
+
typographyVariant?: TypographyProps['variant'];
|
|
38
|
+
/**
|
|
39
|
+
* Background color to force
|
|
40
|
+
*/
|
|
41
|
+
backgroundColor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Sets a different border radius in the entry message
|
|
44
|
+
*/
|
|
45
|
+
highlightStartEdge?: boolean;
|
|
29
46
|
/**
|
|
30
47
|
* When cancelable button is clicked
|
|
31
48
|
*/
|
|
@@ -50,6 +50,13 @@ export type CircularProgressProps = Pick<MuiCircularProgressProps, 'thickness'>
|
|
|
50
50
|
* The color of the typography.
|
|
51
51
|
*/
|
|
52
52
|
typographyColor?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The color of the gradient.
|
|
55
|
+
*/
|
|
56
|
+
gradientColors?: {
|
|
57
|
+
startColor: string;
|
|
58
|
+
endColor: string;
|
|
59
|
+
};
|
|
53
60
|
};
|
|
54
|
-
declare const CircularProgress: ({ value, label, variant, color, size, showCircularBackground, thickness, roundedStroke, rotationDegrees, typographyVariant, typographyColor }: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
declare const CircularProgress: ({ value, label, variant, color, size, showCircularBackground, thickness, roundedStroke, rotationDegrees, typographyVariant, typographyColor, gradientColors }: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
62
|
export default CircularProgress;
|
|
@@ -11,6 +11,11 @@ export type TypographyProps = Pick<MuiTypographyProps, 'noWrap' | 'sx' | 'childr
|
|
|
11
11
|
* Whether the text is italic or not.
|
|
12
12
|
*/
|
|
13
13
|
italic?: boolean;
|
|
14
|
+
shimmer?: {
|
|
15
|
+
startColor: string;
|
|
16
|
+
endColor: string;
|
|
17
|
+
duration?: number;
|
|
18
|
+
};
|
|
14
19
|
/**
|
|
15
20
|
* The component to be used to render the text.
|
|
16
21
|
* By default, it is a `span` element.
|
|
@@ -30,6 +35,11 @@ declare const Typography: React.ForwardRefExoticComponent<Pick<MuiTypographyProp
|
|
|
30
35
|
* Whether the text is italic or not.
|
|
31
36
|
*/
|
|
32
37
|
italic?: boolean;
|
|
38
|
+
shimmer?: {
|
|
39
|
+
startColor: string;
|
|
40
|
+
endColor: string;
|
|
41
|
+
duration?: number;
|
|
42
|
+
};
|
|
33
43
|
/**
|
|
34
44
|
* The component to be used to render the text.
|
|
35
45
|
* By default, it is a `span` element.
|