@bigtablet/design-system 1.3.2 → 1.5.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/dist/index.css +348 -525
- package/dist/index.d.ts +16 -18
- package/dist/index.js +240 -211
- package/dist/next.css +16 -17
- package/dist/next.js +19 -14
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -49,13 +49,17 @@ interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">
|
|
|
49
49
|
*/
|
|
50
50
|
declare const Alert: ({ variant, title, icon, closable, onClose, showActions, onConfirm, onCancel, confirmText, cancelText, actionsAlign, className, children, ...props }: AlertProps) => react_jsx_runtime.JSX.Element;
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
interface LoadingProps {
|
|
53
53
|
size?: number;
|
|
54
|
-
}
|
|
54
|
+
}
|
|
55
|
+
declare const Loading: ({ size }: LoadingProps) => react_jsx_runtime.JSX.Element;
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
interface ToastProviderProps {
|
|
58
|
+
containerId?: string;
|
|
59
|
+
}
|
|
60
|
+
declare const ToastProvider: ({ containerId }: ToastProviderProps) => react_jsx_runtime.JSX.Element;
|
|
57
61
|
|
|
58
|
-
declare const useToast: () => {
|
|
62
|
+
declare const useToast: (containerId?: string) => {
|
|
59
63
|
success: (msg: string) => react_toastify.Id;
|
|
60
64
|
error: (msg: string) => react_toastify.Id;
|
|
61
65
|
warning: (msg: string) => react_toastify.Id;
|
|
@@ -64,11 +68,10 @@ declare const useToast: () => {
|
|
|
64
68
|
};
|
|
65
69
|
|
|
66
70
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
67
|
-
variant?: "primary" | "secondary" | "ghost";
|
|
71
|
+
variant?: "primary" | "secondary" | "ghost" | "danger";
|
|
68
72
|
size?: "sm" | "md" | "lg";
|
|
69
|
-
style?: React.CSSProperties;
|
|
70
73
|
}
|
|
71
|
-
declare const Button: ({ variant, size, className,
|
|
74
|
+
declare const Button: ({ variant, size, className, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
72
75
|
|
|
73
76
|
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
74
77
|
label?: React.ReactNode;
|
|
@@ -81,7 +84,7 @@ interface FileInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
81
84
|
label?: string;
|
|
82
85
|
onFiles?: (files: FileList | null) => void;
|
|
83
86
|
}
|
|
84
|
-
declare const FileInput: ({ label, onFiles, className, ...props }: FileInputProps) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare const FileInput: ({ label, onFiles, className, disabled, ...props }: FileInputProps) => react_jsx_runtime.JSX.Element;
|
|
85
88
|
|
|
86
89
|
interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
87
90
|
label?: React.ReactNode;
|
|
@@ -110,7 +113,7 @@ interface SelectProps {
|
|
|
110
113
|
fullWidth?: boolean;
|
|
111
114
|
className?: string;
|
|
112
115
|
}
|
|
113
|
-
declare
|
|
116
|
+
declare const Select: ({ id, label, placeholder, options, value, onChange, defaultValue, disabled, size, variant, fullWidth, className, }: SelectProps) => react_jsx_runtime.JSX.Element;
|
|
114
117
|
|
|
115
118
|
interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
|
|
116
119
|
checked?: boolean;
|
|
@@ -139,11 +142,10 @@ declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.
|
|
|
139
142
|
|
|
140
143
|
interface PaginationProps {
|
|
141
144
|
page: number;
|
|
142
|
-
|
|
143
|
-
size?: number;
|
|
145
|
+
totalPages: number;
|
|
144
146
|
onChange: (page: number) => void;
|
|
145
147
|
}
|
|
146
|
-
declare const Pagination: ({ page,
|
|
148
|
+
declare const Pagination: ({ page, totalPages, onChange }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
147
149
|
|
|
148
150
|
interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
149
151
|
open: boolean;
|
|
@@ -152,10 +154,6 @@ interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">
|
|
|
152
154
|
width?: number | string;
|
|
153
155
|
title?: React.ReactNode;
|
|
154
156
|
}
|
|
155
|
-
declare const Modal: ({ open, onClose, closeOnOverlay, width, title, children, ...props }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
156
|
-
|
|
157
|
-
declare const SkeletonCard: () => react_jsx_runtime.JSX.Element;
|
|
158
|
-
|
|
159
|
-
declare const SkeletonList: () => react_jsx_runtime.JSX.Element;
|
|
157
|
+
declare const Modal: ({ open, onClose, closeOnOverlay, width, title, children, className, ...props }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
160
158
|
|
|
161
|
-
export { Alert, AlertProvider, Button, Card, Checkbox, FileInput, Loading, Modal, Pagination, Radio, Select, type SelectOption,
|
|
159
|
+
export { Alert, AlertProvider, Button, Card, Checkbox, FileInput, Loading, Modal, Pagination, Radio, Select, type SelectOption, Switch, TextField, ToastProvider, useAlert, useToast };
|