@bigtablet/design-system 1.1.3 → 1.2.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 +134 -2
- package/dist/index.css +1162 -0
- package/dist/index.d.ts +136 -1
- package/dist/index.js +605 -5
- package/dist/next.css +87 -0
- package/dist/next.d.ts +24 -0
- package/dist/next.js +68 -0
- package/package.json +19 -12
- package/dist/client.css +0 -943
- package/dist/client.d.ts +0 -135
- package/dist/client.js +0 -4185
package/dist/client.d.ts
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react_toastify from 'react-toastify';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
declare const ToastProvider: () => react_jsx_runtime.JSX.Element;
|
|
6
|
-
|
|
7
|
-
declare const useToast: () => {
|
|
8
|
-
success: (msg: string) => react_toastify.Id;
|
|
9
|
-
error: (msg: string) => react_toastify.Id;
|
|
10
|
-
warning: (msg: string) => react_toastify.Id;
|
|
11
|
-
info: (msg: string) => react_toastify.Id;
|
|
12
|
-
message: (msg: string) => react_toastify.Id;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
16
|
-
variant?: "primary" | "secondary" | "ghost";
|
|
17
|
-
size?: "sm" | "md" | "lg";
|
|
18
|
-
}
|
|
19
|
-
declare const Button: ({ variant, size, className, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
type SelectSize = "sm" | "md" | "lg";
|
|
22
|
-
type SelectVariant = "outline" | "filled" | "ghost";
|
|
23
|
-
interface SelectOption {
|
|
24
|
-
value: string;
|
|
25
|
-
label: string;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
}
|
|
28
|
-
interface SelectProps {
|
|
29
|
-
id?: string;
|
|
30
|
-
label?: string;
|
|
31
|
-
placeholder?: string;
|
|
32
|
-
options: SelectOption[];
|
|
33
|
-
value?: string | null;
|
|
34
|
-
onChange?: (value: string | null, option?: SelectOption | null) => void;
|
|
35
|
-
defaultValue?: string | null;
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
size?: SelectSize;
|
|
38
|
-
variant?: SelectVariant;
|
|
39
|
-
fullWidth?: boolean;
|
|
40
|
-
className?: string;
|
|
41
|
-
}
|
|
42
|
-
declare function Select({ id, label, placeholder, options, value, onChange, defaultValue, disabled, size, variant, fullWidth, className }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
43
|
-
|
|
44
|
-
type AlertVariant = "info" | "success" | "warning" | "error";
|
|
45
|
-
interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
46
|
-
variant?: AlertVariant;
|
|
47
|
-
title?: React.ReactNode;
|
|
48
|
-
icon?: React.ReactNode;
|
|
49
|
-
closable?: boolean;
|
|
50
|
-
onClose?: () => void;
|
|
51
|
-
}
|
|
52
|
-
declare const Alert: ({ variant, title, icon, closable, onClose, className, children, ...props }: AlertProps) => react_jsx_runtime.JSX.Element;
|
|
53
|
-
|
|
54
|
-
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
55
|
-
label?: React.ReactNode;
|
|
56
|
-
size?: "sm" | "md" | "lg";
|
|
57
|
-
indeterminate?: boolean;
|
|
58
|
-
}
|
|
59
|
-
declare const Checkbox: ({ label, size, indeterminate, className, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
60
|
-
|
|
61
|
-
interface FileInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
62
|
-
label?: string;
|
|
63
|
-
onFiles?: (files: FileList | null) => void;
|
|
64
|
-
}
|
|
65
|
-
declare const FileInput: ({ label, onFiles, className, ...props }: FileInputProps) => react_jsx_runtime.JSX.Element;
|
|
66
|
-
|
|
67
|
-
interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
68
|
-
label?: React.ReactNode;
|
|
69
|
-
size?: "sm" | "md" | "lg";
|
|
70
|
-
}
|
|
71
|
-
declare const Radio: ({ label, size, className, ...props }: RadioProps) => react_jsx_runtime.JSX.Element;
|
|
72
|
-
|
|
73
|
-
interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
|
|
74
|
-
checked?: boolean;
|
|
75
|
-
defaultChecked?: boolean;
|
|
76
|
-
onChange?: (checked: boolean) => void;
|
|
77
|
-
size?: "sm" | "md" | "lg";
|
|
78
|
-
disabled?: boolean;
|
|
79
|
-
}
|
|
80
|
-
declare const Switch: ({ checked, defaultChecked, onChange, size, disabled, className, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
81
|
-
|
|
82
|
-
type TextFieldVariant = "outline" | "filled" | "ghost";
|
|
83
|
-
type TextFieldSize = "sm" | "md" | "lg";
|
|
84
|
-
interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
85
|
-
label?: string;
|
|
86
|
-
helperText?: string;
|
|
87
|
-
error?: boolean;
|
|
88
|
-
success?: boolean;
|
|
89
|
-
variant?: TextFieldVariant;
|
|
90
|
-
size?: TextFieldSize;
|
|
91
|
-
leftIcon?: React.ReactNode;
|
|
92
|
-
rightIcon?: React.ReactNode;
|
|
93
|
-
fullWidth?: boolean;
|
|
94
|
-
}
|
|
95
|
-
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
96
|
-
|
|
97
|
-
interface PaginationProps {
|
|
98
|
-
page: number;
|
|
99
|
-
total: number;
|
|
100
|
-
onChange: (page: number) => void;
|
|
101
|
-
siblingCount?: number;
|
|
102
|
-
}
|
|
103
|
-
declare const Pagination: ({ page, total, onChange, siblingCount }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
104
|
-
|
|
105
|
-
interface SidebarItem {
|
|
106
|
-
href: string;
|
|
107
|
-
label: React.ReactNode;
|
|
108
|
-
icon?: React.ComponentType<{
|
|
109
|
-
size?: number;
|
|
110
|
-
}>;
|
|
111
|
-
}
|
|
112
|
-
type MatchMode = "startsWith" | "exact";
|
|
113
|
-
interface SidebarProps {
|
|
114
|
-
items?: SidebarItem[];
|
|
115
|
-
activePath?: string;
|
|
116
|
-
onItemSelect?: (href: string) => void;
|
|
117
|
-
width?: number;
|
|
118
|
-
collapsible?: boolean;
|
|
119
|
-
defaultCollapsed?: boolean;
|
|
120
|
-
className?: string;
|
|
121
|
-
style?: React.CSSProperties;
|
|
122
|
-
match?: MatchMode;
|
|
123
|
-
}
|
|
124
|
-
declare const Sidebar: ({ items, activePath, onItemSelect, width, collapsible, defaultCollapsed, className, style, match, }: SidebarProps) => react_jsx_runtime.JSX.Element;
|
|
125
|
-
|
|
126
|
-
interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
127
|
-
open: boolean;
|
|
128
|
-
onClose?: () => void;
|
|
129
|
-
closeOnOverlay?: boolean;
|
|
130
|
-
width?: number | string;
|
|
131
|
-
title?: React.ReactNode;
|
|
132
|
-
}
|
|
133
|
-
declare const Modal: ({ open, onClose, closeOnOverlay, width, title, children, ...props }: ModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
134
|
-
|
|
135
|
-
export { Alert, Button, Checkbox, FileInput, Modal, Pagination, Radio, Select, Sidebar, Switch, TextField, ToastProvider, useToast };
|