@donkit-ai/design-system 1.4.85 → 1.4.88
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 +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +66 -0
- package/dist/index.es.js +1487 -1265
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -93,6 +93,46 @@ export interface TabProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
|
93
93
|
|
|
94
94
|
export declare function Tab(props: TabProps): JSX.Element;
|
|
95
95
|
|
|
96
|
+
// ─── Browser tabs / canvas pane ───────────────────────────────────────────
|
|
97
|
+
|
|
98
|
+
export interface BrowserTabItem {
|
|
99
|
+
id: string;
|
|
100
|
+
label: string;
|
|
101
|
+
icon?: ReactNode;
|
|
102
|
+
closable?: boolean;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface BrowserPaneProps extends HTMLAttributes<HTMLDivElement> {
|
|
106
|
+
children?: ReactNode;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare function BrowserPane(props: BrowserPaneProps): JSX.Element;
|
|
110
|
+
|
|
111
|
+
export interface BrowserTabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
112
|
+
tabs: BrowserTabItem[];
|
|
113
|
+
active: string;
|
|
114
|
+
onChange?: (id: string) => void;
|
|
115
|
+
onClose?: (id: string) => void;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export declare function BrowserTabs(props: BrowserTabsProps): JSX.Element;
|
|
119
|
+
|
|
120
|
+
export interface ListProps extends HTMLAttributes<HTMLDivElement> {
|
|
121
|
+
children?: ReactNode;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare function List(props: ListProps): JSX.Element;
|
|
125
|
+
|
|
126
|
+
export interface ListRowProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'title'> {
|
|
127
|
+
icon?: ReactNode;
|
|
128
|
+
title: ReactNode;
|
|
129
|
+
subtitle?: ReactNode;
|
|
130
|
+
meta?: ReactNode | ReactNode[];
|
|
131
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare function ListRow(props: ListRowProps): JSX.Element;
|
|
135
|
+
|
|
96
136
|
// ─── Input ────────────────────────────────────────────────────────────────
|
|
97
137
|
|
|
98
138
|
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -227,6 +267,7 @@ export declare function Alert(props: AlertProps): JSX.Element;
|
|
|
227
267
|
|
|
228
268
|
// ─── Modal ────────────────────────────────────────────────────────────────
|
|
229
269
|
|
|
270
|
+
/** Overlay root stamps `data-ds-portal` so a parent SidePage ignores nested clicks. */
|
|
230
271
|
export interface ModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
231
272
|
children?: ReactNode;
|
|
232
273
|
title?: string;
|
|
@@ -246,6 +287,7 @@ export declare function ModalFooter(props: ModalFooterProps): JSX.Element;
|
|
|
246
287
|
|
|
247
288
|
// ─── BottomSheet ──────────────────────────────────────────────────────────────
|
|
248
289
|
|
|
290
|
+
/** Overlay root stamps `data-ds-portal` so a parent SidePage ignores nested clicks. */
|
|
249
291
|
export interface BottomSheetProps extends HTMLAttributes<HTMLDivElement> {
|
|
250
292
|
children?: ReactNode;
|
|
251
293
|
title?: string;
|
|
@@ -348,6 +390,29 @@ export interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
348
390
|
|
|
349
391
|
export declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
350
392
|
|
|
393
|
+
// ─── Mention ──────────────────────────────────────────────────────────────
|
|
394
|
+
|
|
395
|
+
export type MentionMode = 'click' | 'hover';
|
|
396
|
+
|
|
397
|
+
export interface MentionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
398
|
+
/** Chip text (auto-prefixed with @). Ignored as trigger content when `children` is set. */
|
|
399
|
+
label?: string;
|
|
400
|
+
/** Custom trigger (avatar, icon). Chip styles are reset via `ds-mention--custom`. */
|
|
401
|
+
children?: ReactNode;
|
|
402
|
+
/** click = toggle on press; hover = open on pointer enter (header pins). */
|
|
403
|
+
mode?: MentionMode;
|
|
404
|
+
avatar?: ReactNode;
|
|
405
|
+
name?: string;
|
|
406
|
+
/** Shown as @handle in the popover. */
|
|
407
|
+
handle?: string;
|
|
408
|
+
description?: ReactNode;
|
|
409
|
+
/** Slot under the description. Clicking an action closes the popover. */
|
|
410
|
+
actions?: ReactNode;
|
|
411
|
+
popoverClassName?: string;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export declare function Mention(props: MentionProps): JSX.Element;
|
|
415
|
+
|
|
351
416
|
// ─── Spinner ──────────────────────────────────────────────────────────────
|
|
352
417
|
|
|
353
418
|
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -1111,6 +1176,7 @@ export interface DesignSystemStrings {
|
|
|
1111
1176
|
maxImages: string;
|
|
1112
1177
|
uploading: string;
|
|
1113
1178
|
removeAttachment: string;
|
|
1179
|
+
closeTab: string;
|
|
1114
1180
|
}
|
|
1115
1181
|
|
|
1116
1182
|
export declare const defaultStrings: DesignSystemStrings;
|