@donkit-ai/design-system 1.1.6 → 1.1.7
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.d.ts +443 -0
- package/package.json +4 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ReactNode,
|
|
3
|
+
ReactElement,
|
|
4
|
+
MouseEvent,
|
|
5
|
+
HTMLAttributes,
|
|
6
|
+
ButtonHTMLAttributes,
|
|
7
|
+
InputHTMLAttributes,
|
|
8
|
+
TextareaHTMLAttributes,
|
|
9
|
+
AnchorHTMLAttributes,
|
|
10
|
+
} from 'react';
|
|
11
|
+
|
|
12
|
+
// ─── Shared ───────────────────────────────────────────────────────────────
|
|
13
|
+
|
|
14
|
+
type Size = 'xs' | 's' | 'm' | 'l';
|
|
15
|
+
|
|
16
|
+
// ─── iconSizes ────────────────────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
export declare const iconSizes: { 1: 16; 2: 20; 3: 24; 4: 28; 5: 48 };
|
|
19
|
+
|
|
20
|
+
// ─── Button ───────────────────────────────────────────────────────────────
|
|
21
|
+
|
|
22
|
+
export interface ButtonProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
25
|
+
size?: Size;
|
|
26
|
+
fullWidth?: boolean;
|
|
27
|
+
icon?: ReactNode;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
onClick?: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
30
|
+
type?: 'button' | 'submit' | 'reset';
|
|
31
|
+
href?: string;
|
|
32
|
+
'aria-label'?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export declare function Button(props: ButtonProps): JSX.Element;
|
|
36
|
+
|
|
37
|
+
// ─── Tabs ─────────────────────────────────────────────────────────────────
|
|
38
|
+
|
|
39
|
+
export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
size?: Size;
|
|
42
|
+
variant?: 'ghost' | 'underline';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export declare function Tabs(props: TabsProps): JSX.Element;
|
|
46
|
+
|
|
47
|
+
export interface TabProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
selected?: boolean;
|
|
50
|
+
onClick?: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
51
|
+
size?: Size;
|
|
52
|
+
variant?: 'ghost' | 'underline';
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
icon?: ReactNode;
|
|
55
|
+
href?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare function Tab(props: TabProps): JSX.Element;
|
|
59
|
+
|
|
60
|
+
// ─── Input ────────────────────────────────────────────────────────────────
|
|
61
|
+
|
|
62
|
+
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
63
|
+
label?: string;
|
|
64
|
+
error?: string;
|
|
65
|
+
hint?: string;
|
|
66
|
+
fullWidth?: boolean;
|
|
67
|
+
icon?: ReactNode;
|
|
68
|
+
iconRight?: ReactNode;
|
|
69
|
+
onIconRightClick?: () => void;
|
|
70
|
+
size?: Size;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export declare function Input(props: InputProps): JSX.Element;
|
|
74
|
+
|
|
75
|
+
// ─── Textarea ─────────────────────────────────────────────────────────────
|
|
76
|
+
|
|
77
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
78
|
+
label?: string;
|
|
79
|
+
error?: string;
|
|
80
|
+
hint?: string;
|
|
81
|
+
fullWidth?: boolean;
|
|
82
|
+
size?: 'xs' | 's' | 'm';
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare function Textarea(props: TextareaProps): JSX.Element;
|
|
86
|
+
|
|
87
|
+
// ─── Select ───────────────────────────────────────────────────────────────
|
|
88
|
+
|
|
89
|
+
export interface SelectOption {
|
|
90
|
+
value: string;
|
|
91
|
+
label: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface SelectProps {
|
|
95
|
+
label?: string;
|
|
96
|
+
value?: string;
|
|
97
|
+
onChange?: (value: string) => void;
|
|
98
|
+
options?: SelectOption[];
|
|
99
|
+
placeholder?: string;
|
|
100
|
+
error?: string;
|
|
101
|
+
fullWidth?: boolean;
|
|
102
|
+
size?: Size;
|
|
103
|
+
disabled?: boolean;
|
|
104
|
+
id?: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export declare function Select(props: SelectProps): JSX.Element;
|
|
108
|
+
|
|
109
|
+
// ─── Stepper ──────────────────────────────────────────────────────────────
|
|
110
|
+
|
|
111
|
+
export interface StepperProps {
|
|
112
|
+
label?: string;
|
|
113
|
+
value?: number;
|
|
114
|
+
onChange?: (value: number) => void;
|
|
115
|
+
min?: number;
|
|
116
|
+
max?: number;
|
|
117
|
+
step?: number;
|
|
118
|
+
size?: 'xs' | 's' | 'm';
|
|
119
|
+
disabled?: boolean;
|
|
120
|
+
hint?: string;
|
|
121
|
+
error?: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare function Stepper(props: StepperProps): JSX.Element;
|
|
125
|
+
|
|
126
|
+
// ─── Toggle ───────────────────────────────────────────────────────────────
|
|
127
|
+
|
|
128
|
+
export interface ToggleProps {
|
|
129
|
+
checked?: boolean;
|
|
130
|
+
onChange?: (checked: boolean) => void;
|
|
131
|
+
size?: Size;
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
label?: string;
|
|
134
|
+
id?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export declare function Toggle(props: ToggleProps): JSX.Element;
|
|
138
|
+
|
|
139
|
+
// ─── Checkbox ─────────────────────────────────────────────────────────────
|
|
140
|
+
|
|
141
|
+
export interface CheckboxProps {
|
|
142
|
+
checked?: boolean;
|
|
143
|
+
onChange?: (checked: boolean) => void;
|
|
144
|
+
size?: Size;
|
|
145
|
+
disabled?: boolean;
|
|
146
|
+
label?: string;
|
|
147
|
+
id?: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export declare function Checkbox(props: CheckboxProps): JSX.Element;
|
|
151
|
+
|
|
152
|
+
// ─── Radio ────────────────────────────────────────────────────────────────
|
|
153
|
+
|
|
154
|
+
export interface RadioProps {
|
|
155
|
+
checked?: boolean;
|
|
156
|
+
onChange?: (checked: boolean) => void;
|
|
157
|
+
size?: Size;
|
|
158
|
+
disabled?: boolean;
|
|
159
|
+
label?: string;
|
|
160
|
+
name?: string;
|
|
161
|
+
value?: string;
|
|
162
|
+
id?: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export declare function Radio(props: RadioProps): JSX.Element;
|
|
166
|
+
|
|
167
|
+
// ─── Badge ────────────────────────────────────────────────────────────────
|
|
168
|
+
|
|
169
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
170
|
+
children?: ReactNode;
|
|
171
|
+
variant?: 'default' | 'info' | 'success' | 'warning' | 'error' | 'accent';
|
|
172
|
+
size?: 's' | 'm';
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export declare function Badge(props: BadgeProps): JSX.Element;
|
|
176
|
+
|
|
177
|
+
// ─── Alert ────────────────────────────────────────────────────────────────
|
|
178
|
+
|
|
179
|
+
export interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
180
|
+
children?: ReactNode;
|
|
181
|
+
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
182
|
+
title?: string;
|
|
183
|
+
onClose?: () => void;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export declare function Alert(props: AlertProps): JSX.Element;
|
|
187
|
+
|
|
188
|
+
// ─── Modal ────────────────────────────────────────────────────────────────
|
|
189
|
+
|
|
190
|
+
export interface ModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
191
|
+
children?: ReactNode;
|
|
192
|
+
title?: string;
|
|
193
|
+
onClose?: () => void;
|
|
194
|
+
size?: 's' | 'm' | 'l';
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export declare function Modal(props: ModalProps): JSX.Element;
|
|
198
|
+
|
|
199
|
+
export interface ModalFooterProps {
|
|
200
|
+
children?: ReactNode;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export declare function ModalFooter(props: ModalFooterProps): JSX.Element;
|
|
204
|
+
|
|
205
|
+
// ─── Card ─────────────────────────────────────────────────────────────────
|
|
206
|
+
|
|
207
|
+
export interface CardProps extends HTMLAttributes<HTMLElement> {
|
|
208
|
+
children?: ReactNode;
|
|
209
|
+
padding?: 's' | 'm' | 'l';
|
|
210
|
+
variant?: 'info' | 'interactive';
|
|
211
|
+
/** @deprecated use variant="interactive" */
|
|
212
|
+
hover?: boolean;
|
|
213
|
+
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
214
|
+
href?: string;
|
|
215
|
+
disabled?: boolean;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export declare function Card(props: CardProps): JSX.Element;
|
|
219
|
+
|
|
220
|
+
// ─── Typography ───────────────────────────────────────────────────────────
|
|
221
|
+
|
|
222
|
+
export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
223
|
+
children?: ReactNode;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
227
|
+
children?: ReactNode;
|
|
228
|
+
secondary?: boolean;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export declare function H1(props: HeadingProps): JSX.Element;
|
|
232
|
+
export declare function H2(props: HeadingProps): JSX.Element;
|
|
233
|
+
export declare function H3(props: HeadingProps): JSX.Element;
|
|
234
|
+
export declare function H4(props: HeadingProps): JSX.Element;
|
|
235
|
+
export declare function P1(props: ParagraphProps): JSX.Element;
|
|
236
|
+
export declare function P2(props: ParagraphProps): JSX.Element;
|
|
237
|
+
export declare function P3(props: ParagraphProps): JSX.Element;
|
|
238
|
+
|
|
239
|
+
// ─── Accordion ────────────────────────────────────────────────────────────
|
|
240
|
+
|
|
241
|
+
export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
242
|
+
children?: ReactNode;
|
|
243
|
+
title: string;
|
|
244
|
+
defaultExpanded?: boolean;
|
|
245
|
+
expanded?: boolean;
|
|
246
|
+
onToggle?: (expanded: boolean) => void;
|
|
247
|
+
padding?: 's' | 'm' | 'l';
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export declare function Accordion(props: AccordionProps): JSX.Element;
|
|
251
|
+
|
|
252
|
+
// ─── CodeAccordion ────────────────────────────────────────────────────────
|
|
253
|
+
|
|
254
|
+
export interface CodeAccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
255
|
+
children?: ReactNode;
|
|
256
|
+
title?: string;
|
|
257
|
+
defaultExpanded?: boolean;
|
|
258
|
+
expanded?: boolean;
|
|
259
|
+
onToggle?: (expanded: boolean) => void;
|
|
260
|
+
padding?: 's' | 'm' | 'l';
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export declare function CodeAccordion(props: CodeAccordionProps): JSX.Element;
|
|
264
|
+
|
|
265
|
+
// ─── Code ─────────────────────────────────────────────────────────────────
|
|
266
|
+
|
|
267
|
+
export interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
268
|
+
children?: ReactNode;
|
|
269
|
+
block?: boolean;
|
|
270
|
+
collapsible?: boolean;
|
|
271
|
+
title?: string;
|
|
272
|
+
defaultExpanded?: boolean;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export declare function Code(props: CodeProps): JSX.Element;
|
|
276
|
+
|
|
277
|
+
// ─── Link ─────────────────────────────────────────────────────────────────
|
|
278
|
+
|
|
279
|
+
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
280
|
+
children?: ReactNode;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export declare function Link(props: LinkProps): JSX.Element;
|
|
284
|
+
|
|
285
|
+
// ─── Tooltip ──────────────────────────────────────────────────────────────
|
|
286
|
+
|
|
287
|
+
export interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
288
|
+
children?: ReactNode;
|
|
289
|
+
content?: ReactNode;
|
|
290
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
294
|
+
|
|
295
|
+
// ─── Spinner ──────────────────────────────────────────────────────────────
|
|
296
|
+
|
|
297
|
+
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
298
|
+
size?: Size;
|
|
299
|
+
color?: 'default' | 'accent' | 'white';
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export declare function Spinner(props: SpinnerProps): JSX.Element;
|
|
303
|
+
|
|
304
|
+
// ─── Skeleton ─────────────────────────────────────────────────────────────
|
|
305
|
+
|
|
306
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
307
|
+
width?: number | string;
|
|
308
|
+
height?: number | string;
|
|
309
|
+
shape?: 'rect' | 'circle';
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export declare function Skeleton(props: SkeletonProps): JSX.Element;
|
|
313
|
+
|
|
314
|
+
// ─── Avatar ───────────────────────────────────────────────────────────────
|
|
315
|
+
|
|
316
|
+
export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
317
|
+
seed?: string;
|
|
318
|
+
icon?: ReactNode;
|
|
319
|
+
src?: string;
|
|
320
|
+
size?: number;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export declare function Avatar(props: AvatarProps): JSX.Element;
|
|
324
|
+
|
|
325
|
+
// ─── Table ────────────────────────────────────────────────────────────────
|
|
326
|
+
|
|
327
|
+
export interface TableProps extends HTMLAttributes<HTMLTableElement> {
|
|
328
|
+
children?: ReactNode;
|
|
329
|
+
size?: 'compact' | 'comfortable';
|
|
330
|
+
stickyTop?: number | string;
|
|
331
|
+
maxHeight?: string;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export declare function Table(props: TableProps): JSX.Element;
|
|
335
|
+
|
|
336
|
+
export interface TableHeadProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
337
|
+
children?: ReactNode;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export declare function TableHead(props: TableHeadProps): JSX.Element;
|
|
341
|
+
|
|
342
|
+
export interface TableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
343
|
+
children?: ReactNode;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export declare function TableBody(props: TableBodyProps): JSX.Element;
|
|
347
|
+
|
|
348
|
+
export interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
349
|
+
children?: ReactNode;
|
|
350
|
+
interactive?: boolean;
|
|
351
|
+
selected?: boolean;
|
|
352
|
+
subheader?: boolean;
|
|
353
|
+
onClick?: () => void;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export declare function TableRow(props: TableRowProps): JSX.Element;
|
|
357
|
+
|
|
358
|
+
export interface TableSubheaderRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
359
|
+
children?: ReactNode;
|
|
360
|
+
colSpan?: number;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export declare function TableSubheaderRow(props: TableSubheaderRowProps): JSX.Element;
|
|
364
|
+
|
|
365
|
+
export interface ThProps extends HTMLAttributes<HTMLTableCellElement> {
|
|
366
|
+
children?: ReactNode;
|
|
367
|
+
align?: 'left' | 'center' | 'right';
|
|
368
|
+
sortDir?: 'asc' | 'desc' | null;
|
|
369
|
+
onSort?: () => void;
|
|
370
|
+
width?: number | string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export declare function Th(props: ThProps): JSX.Element;
|
|
374
|
+
|
|
375
|
+
export interface TdProps extends HTMLAttributes<HTMLTableCellElement> {
|
|
376
|
+
children?: ReactNode;
|
|
377
|
+
align?: 'left' | 'center' | 'right';
|
|
378
|
+
secondary?: boolean;
|
|
379
|
+
muted?: boolean;
|
|
380
|
+
truncate?: boolean;
|
|
381
|
+
nowrap?: boolean;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export declare function Td(props: TdProps): JSX.Element;
|
|
385
|
+
|
|
386
|
+
// ─── EmptyState ───────────────────────────────────────────────────────────
|
|
387
|
+
|
|
388
|
+
export interface EmptyStateProps extends HTMLAttributes<HTMLDivElement> {
|
|
389
|
+
icon?: ReactNode;
|
|
390
|
+
title: string;
|
|
391
|
+
description?: string;
|
|
392
|
+
action?: ReactNode;
|
|
393
|
+
size?: 's' | 'm' | 'l';
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export declare function EmptyState(props: EmptyStateProps): JSX.Element;
|
|
397
|
+
|
|
398
|
+
// ─── Dropdown ─────────────────────────────────────────────────────────────
|
|
399
|
+
|
|
400
|
+
export interface DropdownItem {
|
|
401
|
+
label?: string;
|
|
402
|
+
onClick?: () => void;
|
|
403
|
+
icon?: ReactNode;
|
|
404
|
+
shortcut?: string;
|
|
405
|
+
disabled?: boolean;
|
|
406
|
+
danger?: boolean;
|
|
407
|
+
href?: string;
|
|
408
|
+
separator?: boolean;
|
|
409
|
+
type?: 'section';
|
|
410
|
+
content?: ReactNode;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
414
|
+
trigger: ReactNode;
|
|
415
|
+
items?: DropdownItem[];
|
|
416
|
+
open?: boolean;
|
|
417
|
+
onOpenChange?: (open: boolean) => void;
|
|
418
|
+
align?: 'left' | 'right';
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export declare function Dropdown(props: DropdownProps): JSX.Element;
|
|
422
|
+
|
|
423
|
+
// ─── Toast ────────────────────────────────────────────────────────────────
|
|
424
|
+
|
|
425
|
+
export interface ToastOptions {
|
|
426
|
+
type?: 'default' | 'success' | 'warning' | 'error';
|
|
427
|
+
duration?: number;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface ToastFn {
|
|
431
|
+
(message: string, opts?: ToastOptions): void;
|
|
432
|
+
success(message: string, opts?: Omit<ToastOptions, 'type'>): void;
|
|
433
|
+
warning(message: string, opts?: Omit<ToastOptions, 'type'>): void;
|
|
434
|
+
error(message: string, opts?: Omit<ToastOptions, 'type'>): void;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export declare function useToast(): { toast: ToastFn };
|
|
438
|
+
|
|
439
|
+
export interface ToastContainerProps {
|
|
440
|
+
position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export declare function ToastContainer(props: ToastContainerProps): JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donkit-ai/design-system",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Donkit Design System - minimal design tokens and React components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
8
9
|
"sideEffects": [
|
|
9
10
|
"*.css",
|
|
10
11
|
"dist/tokens.css"
|
|
11
12
|
],
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
14
16
|
"import": "./dist/index.es.js",
|
|
15
17
|
"require": "./dist/index.cjs.js"
|
|
16
18
|
},
|
|
@@ -22,7 +24,7 @@
|
|
|
22
24
|
],
|
|
23
25
|
"scripts": {
|
|
24
26
|
"dev": "vite",
|
|
25
|
-
"build": "vite build",
|
|
27
|
+
"build": "vite build && cp src/index.d.ts dist/index.d.ts",
|
|
26
28
|
"preview": "vite preview",
|
|
27
29
|
"prepublishOnly": "npm run build"
|
|
28
30
|
},
|