rechtspilot-ui 0.0.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/README.md +9 -0
- package/dist/components/Button/Button.d.ts +9 -0
- package/dist/components/Button/buttonVariants.d.ts +7 -0
- package/dist/components/Chat/Chat.d.ts +9 -0
- package/dist/components/Chat/Input.d.ts +6 -0
- package/dist/components/Message/Message.d.ts +7 -0
- package/dist/components/OptionButton/OptionButton.d.ts +5 -0
- package/dist/components/ReplyBadge/ReplyBadge.d.ts +6 -0
- package/dist/icons/Attach.d.ts +3 -0
- package/dist/icons/Close.d.ts +3 -0
- package/dist/icons/Data.d.ts +3 -0
- package/dist/icons/Edit.d.ts +3 -0
- package/dist/icons/Enter.d.ts +3 -0
- package/dist/icons/Pilot.d.ts +3 -0
- package/dist/index.d.ts +5 -0
- package/dist/lib/theme.d.ts +66 -0
- package/dist/lib/types.d.ts +8 -0
- package/dist/lib/ui/skeleton.d.ts +2 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/rechtspilot-ui-library.es.js +4553 -0
- package/dist/rechtspilot-ui-library.umd.js +286 -0
- package/dist/stories/Button.stories.d.ts +6 -0
- package/dist/stories/Chat.stories.d.ts +6 -0
- package/dist/stories/Message.stories.d.ts +7 -0
- package/dist/stories/OptionButton.stories.d.ts +6 -0
- package/dist/stories/ReplyBadge.stories.d.ts +6 -0
- package/package.json +89 -0
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { buttonVariants } from './buttonVariants';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
5
|
+
label: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const buttonVariantsStyle: {
|
|
2
|
+
default: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "default" | null | undefined;
|
|
6
|
+
fullWidth?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputProps } from './Input';
|
|
2
|
+
export type ChatProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
disclaimer: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
input: InputProps;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export default function Chat({ title, disclaimer, onClose, input, children }: ChatProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Button } from './components/Button/Button';
|
|
2
|
+
export { default as Chat } from './components/Chat/Chat';
|
|
3
|
+
export { default as Message } from './components/Message/Message';
|
|
4
|
+
export { default as OptionButton } from './components/OptionButton/OptionButton';
|
|
5
|
+
export { default as ReplyBadge } from './components/ReplyBadge/ReplyBadge';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
primary: {
|
|
3
|
+
25: string;
|
|
4
|
+
50: string;
|
|
5
|
+
100: string;
|
|
6
|
+
200: string;
|
|
7
|
+
300: string;
|
|
8
|
+
400: string;
|
|
9
|
+
500: string;
|
|
10
|
+
600: string;
|
|
11
|
+
700: string;
|
|
12
|
+
800: string;
|
|
13
|
+
900: string;
|
|
14
|
+
950: string;
|
|
15
|
+
};
|
|
16
|
+
fg: {
|
|
17
|
+
primary: string;
|
|
18
|
+
secondary: string;
|
|
19
|
+
tertiary: string;
|
|
20
|
+
accent: {
|
|
21
|
+
action: string;
|
|
22
|
+
error: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
bg: {
|
|
26
|
+
primary: string;
|
|
27
|
+
secondary: string;
|
|
28
|
+
elevated: string;
|
|
29
|
+
};
|
|
30
|
+
sf: {
|
|
31
|
+
primary: string;
|
|
32
|
+
secondary: string;
|
|
33
|
+
tertiary: string;
|
|
34
|
+
tertiaryHover: string;
|
|
35
|
+
light: {
|
|
36
|
+
action: string;
|
|
37
|
+
error: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
border: {
|
|
41
|
+
default: string;
|
|
42
|
+
action: string;
|
|
43
|
+
error: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const typography: {
|
|
47
|
+
title: {
|
|
48
|
+
fontFamily: string;
|
|
49
|
+
fontWeight: number;
|
|
50
|
+
letterSpacing: string;
|
|
51
|
+
};
|
|
52
|
+
label: {
|
|
53
|
+
fontFamily: string;
|
|
54
|
+
fontWeight: number;
|
|
55
|
+
};
|
|
56
|
+
body: {
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
fontWeight: number;
|
|
59
|
+
};
|
|
60
|
+
caption: {
|
|
61
|
+
fontFamily: string;
|
|
62
|
+
fontWeight: number;
|
|
63
|
+
fontSize: string;
|
|
64
|
+
lineHeight: string;
|
|
65
|
+
};
|
|
66
|
+
};
|