@efiche/design 0.2.7 → 0.2.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/{index.js → index.mjs} +1 -1
- package/package.json +3 -3
- package/dist/index.cjs +0 -155
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -303
- /package/dist/{index.js.map → index.mjs.map} +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React, { FC, ReactNode, ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
type Theme = 'light' | 'dark';
|
|
5
|
-
interface ThemeContextValue {
|
|
6
|
-
theme: Theme;
|
|
7
|
-
toggle: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const ThemeProvider: ({ children, defaultTheme, }: {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
defaultTheme?: Theme;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
13
|
-
declare const useTheme: () => ThemeContextValue;
|
|
14
|
-
|
|
15
|
-
type ChartTheme = 'light' | 'dark';
|
|
16
|
-
|
|
17
|
-
interface LineConfig {
|
|
18
|
-
dataKey: string;
|
|
19
|
-
color?: string;
|
|
20
|
-
label?: string;
|
|
21
|
-
}
|
|
22
|
-
interface LineChartProps {
|
|
23
|
-
data: Record<string, unknown>[];
|
|
24
|
-
xKey: string;
|
|
25
|
-
lines: LineConfig[];
|
|
26
|
-
height?: number;
|
|
27
|
-
legend?: boolean;
|
|
28
|
-
grid?: boolean;
|
|
29
|
-
theme?: ChartTheme;
|
|
30
|
-
className?: string;
|
|
31
|
-
style?: React.CSSProperties;
|
|
32
|
-
}
|
|
33
|
-
declare const LineChart: FC<LineChartProps>;
|
|
34
|
-
|
|
35
|
-
interface BarConfig {
|
|
36
|
-
dataKey: string;
|
|
37
|
-
color?: string;
|
|
38
|
-
stackId?: string;
|
|
39
|
-
label?: string;
|
|
40
|
-
}
|
|
41
|
-
interface BarChartProps {
|
|
42
|
-
data: Record<string, unknown>[];
|
|
43
|
-
xKey: string;
|
|
44
|
-
bars: BarConfig[];
|
|
45
|
-
height?: number;
|
|
46
|
-
legend?: boolean;
|
|
47
|
-
grid?: boolean;
|
|
48
|
-
theme?: ChartTheme;
|
|
49
|
-
className?: string;
|
|
50
|
-
style?: React.CSSProperties;
|
|
51
|
-
}
|
|
52
|
-
declare const BarChart: FC<BarChartProps>;
|
|
53
|
-
|
|
54
|
-
interface AreaConfig {
|
|
55
|
-
dataKey: string;
|
|
56
|
-
color?: string;
|
|
57
|
-
stackId?: string;
|
|
58
|
-
fillOpacity?: number;
|
|
59
|
-
label?: string;
|
|
60
|
-
}
|
|
61
|
-
interface AreaChartProps {
|
|
62
|
-
data: Record<string, unknown>[];
|
|
63
|
-
xKey: string;
|
|
64
|
-
areas: AreaConfig[];
|
|
65
|
-
height?: number;
|
|
66
|
-
legend?: boolean;
|
|
67
|
-
grid?: boolean;
|
|
68
|
-
theme?: ChartTheme;
|
|
69
|
-
className?: string;
|
|
70
|
-
style?: React.CSSProperties;
|
|
71
|
-
}
|
|
72
|
-
declare const AreaChart: FC<AreaChartProps>;
|
|
73
|
-
|
|
74
|
-
interface PieDataItem {
|
|
75
|
-
name: string;
|
|
76
|
-
value: number;
|
|
77
|
-
fill?: string;
|
|
78
|
-
}
|
|
79
|
-
interface PieChartProps {
|
|
80
|
-
data: PieDataItem[];
|
|
81
|
-
height?: number;
|
|
82
|
-
donut?: boolean;
|
|
83
|
-
legend?: boolean;
|
|
84
|
-
label?: boolean;
|
|
85
|
-
theme?: ChartTheme;
|
|
86
|
-
className?: string;
|
|
87
|
-
style?: React.CSSProperties;
|
|
88
|
-
}
|
|
89
|
-
declare const PieChart: FC<PieChartProps>;
|
|
90
|
-
|
|
91
|
-
interface AccordionItem {
|
|
92
|
-
value: string;
|
|
93
|
-
trigger: string;
|
|
94
|
-
content: string;
|
|
95
|
-
}
|
|
96
|
-
interface AccordionProps {
|
|
97
|
-
items: AccordionItem[];
|
|
98
|
-
defaultValue?: string | string[];
|
|
99
|
-
multiple?: boolean;
|
|
100
|
-
}
|
|
101
|
-
declare const Accordion: FC<AccordionProps>;
|
|
102
|
-
|
|
103
|
-
type AlertVariant = 'info' | 'success' | 'warning' | 'danger';
|
|
104
|
-
interface AlertProps {
|
|
105
|
-
variant?: AlertVariant;
|
|
106
|
-
title: string;
|
|
107
|
-
description: string;
|
|
108
|
-
}
|
|
109
|
-
declare const Alert: FC<AlertProps>;
|
|
110
|
-
|
|
111
|
-
type AvatarSize = 'sm' | 'md' | 'lg';
|
|
112
|
-
interface AvatarProps {
|
|
113
|
-
fallback: string;
|
|
114
|
-
size?: AvatarSize;
|
|
115
|
-
style?: React.CSSProperties;
|
|
116
|
-
className?: string;
|
|
117
|
-
}
|
|
118
|
-
declare const Avatar: FC<AvatarProps>;
|
|
119
|
-
|
|
120
|
-
type BadgeVariant = 'default' | 'secondary' | 'outline' | 'danger' | 'success' | 'warning' | 'info';
|
|
121
|
-
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
122
|
-
interface BadgeProps {
|
|
123
|
-
variant?: BadgeVariant;
|
|
124
|
-
size?: BadgeSize;
|
|
125
|
-
children: ReactNode;
|
|
126
|
-
style?: React.CSSProperties;
|
|
127
|
-
}
|
|
128
|
-
declare const Badge: FC<BadgeProps>;
|
|
129
|
-
|
|
130
|
-
interface BreadcrumbItem {
|
|
131
|
-
label: string;
|
|
132
|
-
href?: string;
|
|
133
|
-
}
|
|
134
|
-
interface BreadcrumbProps {
|
|
135
|
-
items: BreadcrumbItem[];
|
|
136
|
-
}
|
|
137
|
-
declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
138
|
-
|
|
139
|
-
type ButtonVariant = "solid" | "outline" | "ghost" | "danger" | "warning" | "info" | "success";
|
|
140
|
-
type ButtonSize = "sm" | "md" | "lg";
|
|
141
|
-
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
142
|
-
text?: string;
|
|
143
|
-
loading?: boolean;
|
|
144
|
-
icon?: ReactNode;
|
|
145
|
-
iconPosition?: "left" | "right";
|
|
146
|
-
outline?: boolean;
|
|
147
|
-
ghost?: boolean;
|
|
148
|
-
danger?: boolean;
|
|
149
|
-
warning?: boolean;
|
|
150
|
-
info?: boolean;
|
|
151
|
-
success?: boolean;
|
|
152
|
-
variant?: ButtonVariant;
|
|
153
|
-
small?: boolean;
|
|
154
|
-
large?: boolean;
|
|
155
|
-
size?: ButtonSize;
|
|
156
|
-
}
|
|
157
|
-
declare const Button: FC<ButtonProps>;
|
|
158
|
-
|
|
159
|
-
declare const Card: FC<HTMLAttributes<HTMLDivElement>>;
|
|
160
|
-
declare const CardHeader: FC<HTMLAttributes<HTMLDivElement>>;
|
|
161
|
-
declare const CardTitle: FC<HTMLAttributes<HTMLHeadingElement>>;
|
|
162
|
-
declare const CardDescription: FC<HTMLAttributes<HTMLParagraphElement>>;
|
|
163
|
-
declare const CardContent: FC<HTMLAttributes<HTMLDivElement>>;
|
|
164
|
-
declare const CardFooter: FC<HTMLAttributes<HTMLDivElement>>;
|
|
165
|
-
|
|
166
|
-
interface CheckboxProps {
|
|
167
|
-
label?: string;
|
|
168
|
-
checked?: boolean;
|
|
169
|
-
defaultChecked?: boolean;
|
|
170
|
-
disabled?: boolean;
|
|
171
|
-
id?: string;
|
|
172
|
-
onChange?: (checked: boolean) => void;
|
|
173
|
-
}
|
|
174
|
-
declare const Checkbox: FC<CheckboxProps>;
|
|
175
|
-
|
|
176
|
-
interface CopyButtonProps {
|
|
177
|
-
text: string;
|
|
178
|
-
}
|
|
179
|
-
declare const CopyButton: FC<CopyButtonProps>;
|
|
180
|
-
|
|
181
|
-
interface FileUploadProps {
|
|
182
|
-
accept?: string;
|
|
183
|
-
multiple?: boolean;
|
|
184
|
-
disabled?: boolean;
|
|
185
|
-
onFileSelect?: (files: FileList) => void;
|
|
186
|
-
}
|
|
187
|
-
declare const FileUpload: FC<FileUploadProps>;
|
|
188
|
-
|
|
189
|
-
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
190
|
-
error?: boolean;
|
|
191
|
-
success?: boolean;
|
|
192
|
-
leftIcon?: ReactNode;
|
|
193
|
-
rightIcon?: ReactNode;
|
|
194
|
-
}
|
|
195
|
-
declare const Input: FC<InputProps>;
|
|
196
|
-
|
|
197
|
-
interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
198
|
-
required?: boolean;
|
|
199
|
-
}
|
|
200
|
-
declare const Label: FC<LabelProps>;
|
|
201
|
-
|
|
202
|
-
type PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>;
|
|
203
|
-
declare const PasswordInput: FC<PasswordInputProps>;
|
|
204
|
-
|
|
205
|
-
interface ProgressProps {
|
|
206
|
-
value?: number;
|
|
207
|
-
}
|
|
208
|
-
declare const Progress: FC<ProgressProps>;
|
|
209
|
-
|
|
210
|
-
interface RadioOption {
|
|
211
|
-
value: string;
|
|
212
|
-
label: string;
|
|
213
|
-
}
|
|
214
|
-
interface RadioGroupProps {
|
|
215
|
-
options: RadioOption[];
|
|
216
|
-
name: string;
|
|
217
|
-
value?: string;
|
|
218
|
-
defaultValue?: string;
|
|
219
|
-
disabled?: boolean;
|
|
220
|
-
onChange?: (value: string) => void;
|
|
221
|
-
}
|
|
222
|
-
declare const RadioGroup: FC<RadioGroupProps>;
|
|
223
|
-
|
|
224
|
-
interface SelectOption {
|
|
225
|
-
value: string;
|
|
226
|
-
label: string;
|
|
227
|
-
}
|
|
228
|
-
interface SelectProps {
|
|
229
|
-
options: SelectOption[];
|
|
230
|
-
value?: string;
|
|
231
|
-
defaultValue?: string;
|
|
232
|
-
placeholder?: string;
|
|
233
|
-
disabled?: boolean;
|
|
234
|
-
onChange?: (value: string) => void;
|
|
235
|
-
}
|
|
236
|
-
declare const Select: FC<SelectProps>;
|
|
237
|
-
|
|
238
|
-
interface SkeletonProps {
|
|
239
|
-
height?: string;
|
|
240
|
-
width?: string;
|
|
241
|
-
circle?: boolean;
|
|
242
|
-
}
|
|
243
|
-
declare const Skeleton: FC<SkeletonProps>;
|
|
244
|
-
|
|
245
|
-
interface SliderProps {
|
|
246
|
-
value?: number;
|
|
247
|
-
defaultValue?: number;
|
|
248
|
-
min?: number;
|
|
249
|
-
max?: number;
|
|
250
|
-
step?: number;
|
|
251
|
-
disabled?: boolean;
|
|
252
|
-
onChange?: (value: number) => void;
|
|
253
|
-
}
|
|
254
|
-
declare const Slider: FC<SliderProps>;
|
|
255
|
-
|
|
256
|
-
type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
257
|
-
interface SpinnerProps {
|
|
258
|
-
size?: SpinnerSize;
|
|
259
|
-
}
|
|
260
|
-
declare const Spinner: FC<SpinnerProps>;
|
|
261
|
-
|
|
262
|
-
interface SwitchProps {
|
|
263
|
-
label?: string;
|
|
264
|
-
checked?: boolean;
|
|
265
|
-
defaultChecked?: boolean;
|
|
266
|
-
disabled?: boolean;
|
|
267
|
-
id?: string;
|
|
268
|
-
onChange?: (checked: boolean) => void;
|
|
269
|
-
}
|
|
270
|
-
declare const Switch: FC<SwitchProps>;
|
|
271
|
-
|
|
272
|
-
declare const Table: FC<HTMLAttributes<HTMLTableElement>>;
|
|
273
|
-
declare const TableHead: FC<HTMLAttributes<HTMLTableSectionElement>>;
|
|
274
|
-
declare const TableBody: FC<HTMLAttributes<HTMLTableSectionElement>>;
|
|
275
|
-
declare const TableRow: FC<HTMLAttributes<HTMLTableRowElement>>;
|
|
276
|
-
declare const TableHeader: FC<ThHTMLAttributes<HTMLTableCellElement>>;
|
|
277
|
-
declare const TableCell: FC<TdHTMLAttributes<HTMLTableCellElement>>;
|
|
278
|
-
|
|
279
|
-
interface TabItem {
|
|
280
|
-
value: string;
|
|
281
|
-
label: string;
|
|
282
|
-
content: ReactNode;
|
|
283
|
-
icon?: ReactNode;
|
|
284
|
-
}
|
|
285
|
-
interface TabsProps {
|
|
286
|
-
tabs: TabItem[];
|
|
287
|
-
defaultValue?: string;
|
|
288
|
-
}
|
|
289
|
-
declare const Tabs: FC<TabsProps>;
|
|
290
|
-
|
|
291
|
-
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
292
|
-
error?: boolean;
|
|
293
|
-
}
|
|
294
|
-
declare const Textarea: FC<TextareaProps>;
|
|
295
|
-
|
|
296
|
-
interface TooltipProps {
|
|
297
|
-
content: string;
|
|
298
|
-
children: ReactNode;
|
|
299
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
300
|
-
}
|
|
301
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
302
|
-
|
|
303
|
-
export { Accordion, Alert, AreaChart, Avatar, Badge, BarChart, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CopyButton, FileUpload, Input, Label, LineChart, PasswordInput, PieChart, Progress, RadioGroup, Select, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Textarea, ThemeProvider, Tooltip, useTheme };
|
|
File without changes
|