@donkit-ai/design-system 1.1.7 → 1.1.9

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import type {
2
2
  ReactNode,
3
3
  ReactElement,
4
4
  MouseEvent,
5
+ CSSProperties,
5
6
  HTMLAttributes,
6
7
  ButtonHTMLAttributes,
7
8
  InputHTMLAttributes,
@@ -29,6 +30,8 @@ export interface ButtonProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'
29
30
  onClick?: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
30
31
  type?: 'button' | 'submit' | 'reset';
31
32
  href?: string;
33
+ target?: string;
34
+ rel?: string;
32
35
  'aria-label'?: string;
33
36
  }
34
37
 
@@ -40,6 +43,8 @@ export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
40
43
  children?: ReactNode;
41
44
  size?: Size;
42
45
  variant?: 'ghost' | 'underline';
46
+ value?: string;
47
+ onChange?: (value: string) => void;
43
48
  }
44
49
 
45
50
  export declare function Tabs(props: TabsProps): JSX.Element;
@@ -53,6 +58,7 @@ export interface TabProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'> {
53
58
  disabled?: boolean;
54
59
  icon?: ReactNode;
55
60
  href?: string;
61
+ value?: string;
56
62
  }
57
63
 
58
64
  export declare function Tab(props: TabProps): JSX.Element;
@@ -102,6 +108,8 @@ export interface SelectProps {
102
108
  size?: Size;
103
109
  disabled?: boolean;
104
110
  id?: string;
111
+ className?: string;
112
+ style?: CSSProperties;
105
113
  }
106
114
 
107
115
  export declare function Select(props: SelectProps): JSX.Element;
@@ -270,6 +278,7 @@ export interface CodeProps extends HTMLAttributes<HTMLElement> {
270
278
  collapsible?: boolean;
271
279
  title?: string;
272
280
  defaultExpanded?: boolean;
281
+ language?: string;
273
282
  }
274
283
 
275
284
  export declare function Code(props: CodeProps): JSX.Element;
@@ -379,6 +388,8 @@ export interface TdProps extends HTMLAttributes<HTMLTableCellElement> {
379
388
  muted?: boolean;
380
389
  truncate?: boolean;
381
390
  nowrap?: boolean;
391
+ colSpan?: number;
392
+ rowSpan?: number;
382
393
  }
383
394
 
384
395
  export declare function Td(props: TdProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkit-ai/design-system",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Donkit Design System - minimal design tokens and React components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",