@donkit-ai/design-system 1.1.8 → 1.1.10
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 +10 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export interface ButtonProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'
|
|
|
30
30
|
onClick?: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
31
31
|
type?: 'button' | 'submit' | 'reset';
|
|
32
32
|
href?: string;
|
|
33
|
+
target?: string;
|
|
34
|
+
rel?: string;
|
|
33
35
|
'aria-label'?: string;
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -41,6 +43,8 @@ export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
41
43
|
children?: ReactNode;
|
|
42
44
|
size?: Size;
|
|
43
45
|
variant?: 'ghost' | 'underline';
|
|
46
|
+
value?: string;
|
|
47
|
+
onChange?: (value: string) => void;
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
export declare function Tabs(props: TabsProps): JSX.Element;
|
|
@@ -54,6 +58,7 @@ export interface TabProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
|
54
58
|
disabled?: boolean;
|
|
55
59
|
icon?: ReactNode;
|
|
56
60
|
href?: string;
|
|
61
|
+
value?: string;
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
export declare function Tab(props: TabProps): JSX.Element;
|
|
@@ -241,12 +246,13 @@ export declare function P3(props: ParagraphProps): JSX.Element;
|
|
|
241
246
|
|
|
242
247
|
// ─── Accordion ────────────────────────────────────────────────────────────
|
|
243
248
|
|
|
244
|
-
export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
249
|
+
export interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
245
250
|
children?: ReactNode;
|
|
246
|
-
title:
|
|
251
|
+
title: ReactNode;
|
|
247
252
|
defaultExpanded?: boolean;
|
|
248
253
|
expanded?: boolean;
|
|
249
254
|
onToggle?: (expanded: boolean) => void;
|
|
255
|
+
onChange?: (expanded: boolean) => void;
|
|
250
256
|
padding?: 's' | 'm' | 'l';
|
|
251
257
|
}
|
|
252
258
|
|
|
@@ -383,6 +389,8 @@ export interface TdProps extends HTMLAttributes<HTMLTableCellElement> {
|
|
|
383
389
|
muted?: boolean;
|
|
384
390
|
truncate?: boolean;
|
|
385
391
|
nowrap?: boolean;
|
|
392
|
+
colSpan?: number;
|
|
393
|
+
rowSpan?: number;
|
|
386
394
|
}
|
|
387
395
|
|
|
388
396
|
export declare function Td(props: TdProps): JSX.Element;
|