rechtspilot-ui 0.0.6 → 0.0.8
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/Button/Button.d.ts +6 -7
- package/dist/components/Divider/Divider.d.ts +1 -0
- package/dist/components/FormTitle/FormTitle.d.ts +5 -0
- package/dist/components/IconButton/IconButton.d.ts +6 -0
- package/dist/components/Input/Input.d.ts +8 -0
- package/dist/components/Message/Message.d.ts +3 -4
- package/dist/components/Modal/DialogContent.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/icons/DoubleCaret.d.ts +6 -0
- package/dist/icons/Menu.d.ts +3 -0
- package/dist/icons/index.d.ts +11 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.es.js +4407 -4386
- package/dist/lib/theme.d.ts +17 -2
- package/dist/lib/types.d.ts +2 -2
- package/dist/lib/utils.d.ts +3 -0
- package/dist/stories/Button.stories.d.ts +1 -1
- package/dist/stories/Divider.stories.d.ts +6 -0
- package/dist/stories/FormTitle.stories.d.ts +6 -0
- package/dist/stories/IconButton.stories.d.ts +6 -0
- package/dist/stories/Input.stories.d.ts +6 -0
- package/package.json +14 -13
- package/dist/components/Button/buttonVariants.d.ts +0 -7
- package/dist/components/Chat/Chat.d.ts +0 -9
- package/dist/components/Chat/Input.d.ts +0 -6
- package/dist/icons/Util.d.ts +0 -1
- package/dist/stories/Chat.stories.d.ts +0 -6
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
5
|
-
label: string;
|
|
1
|
+
type ButtonVariant = 'primary' | 'secondary';
|
|
2
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant?: ButtonVariant;
|
|
6
4
|
fullWidth?: boolean;
|
|
7
|
-
|
|
5
|
+
children?: React.ReactNode;
|
|
8
6
|
}
|
|
9
|
-
export
|
|
7
|
+
export default function Button({ variant, fullWidth, children, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Divider(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type InputProps = {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
inputType?: React.HTMLInputTypeAttribute;
|
|
5
|
+
onChange: (e: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export default function Input({ label, value, inputType, onChange }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
export type MessageProps = {
|
|
3
|
-
|
|
4
|
-
text?:
|
|
2
|
+
loading?: boolean;
|
|
3
|
+
text?: React.ReactNode;
|
|
5
4
|
children?: React.ReactNode;
|
|
6
5
|
};
|
|
7
|
-
export default function Message({
|
|
6
|
+
export default function Message({ loading, text, children }: MessageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as DialogPrimitive from
|
|
1
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
2
|
declare const DialogContent: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
3
3
|
handleClose?: () => void;
|
|
4
4
|
handleGoBack?: () => void;
|
|
@@ -8,4 +8,4 @@ export type ModalProps = {
|
|
|
8
8
|
isOpen?: boolean;
|
|
9
9
|
handleOpen?: () => void;
|
|
10
10
|
};
|
|
11
|
-
export default function Modal({ handleGoBack, handleClose, children, trigger, preventClosing, isOpen, handleOpen }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function Modal({ handleGoBack, handleClose, children, trigger, preventClosing, isOpen, handleOpen, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IconProps } from '../lib/types';
|
|
2
|
+
interface DoubleCaretProps extends IconProps {
|
|
3
|
+
direction?: 'left' | 'right';
|
|
4
|
+
}
|
|
5
|
+
declare const DoubleCaret: ({ color, size, direction }: DoubleCaretProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default DoubleCaret;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as Account } from './Account';
|
|
2
|
+
export { default as Attach } from './Attach';
|
|
3
|
+
export { default as Checkmark } from './Checkmark';
|
|
4
|
+
export { default as Close } from './Close';
|
|
5
|
+
export { default as Data } from './Data';
|
|
6
|
+
export { default as Edit } from './Edit';
|
|
7
|
+
export { default as Enter } from './Enter';
|
|
8
|
+
export { default as DoubleCaret } from './DoubleCaret';
|
|
9
|
+
export { default as LeftArrow } from './LeftArrow';
|
|
10
|
+
export { default as Pilot } from './Pilot';
|
|
11
|
+
export { default as Menu } from './Menu';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Button } from './components/Button/Button';
|
|
2
|
-
export { default as
|
|
1
|
+
export { default as Button } from './components/Button/Button';
|
|
2
|
+
export { default as Divider } from './components/Divider/Divider';
|
|
3
3
|
export { default as Message } from './components/Message/Message';
|
|
4
4
|
export { default as OptionButton } from './components/OptionButton/OptionButton';
|
|
5
5
|
export { default as ReplyBadge } from './components/ReplyBadge/ReplyBadge';
|
|
@@ -7,3 +7,8 @@ export { default as Modal } from './components/Modal/Modal';
|
|
|
7
7
|
export { default as ModalChecklist } from './components/Modal/ModalChecklist';
|
|
8
8
|
export { default as ModalChecklistItem } from './components/Modal/ModalChecklistItem';
|
|
9
9
|
export { default as ModalContent } from './components/Modal/ModalContent';
|
|
10
|
+
export { default as IconButton } from './components/IconButton/IconButton';
|
|
11
|
+
export { default as Input } from './components/Input/Input';
|
|
12
|
+
export { colors, typography } from './lib/theme';
|
|
13
|
+
export { useIsMobile } from './lib/utils';
|
|
14
|
+
export * from './icons';
|