@agentatom/design-system 1.4.85 → 1.4.87
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 +64 -0
- package/dist/index.es.js +1432 -1232
- 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> {
|
|
@@ -348,6 +388,29 @@ export interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
348
388
|
|
|
349
389
|
export declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
350
390
|
|
|
391
|
+
// ─── Mention ──────────────────────────────────────────────────────────────
|
|
392
|
+
|
|
393
|
+
export type MentionMode = 'click' | 'hover';
|
|
394
|
+
|
|
395
|
+
export interface MentionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
396
|
+
/** Chip text (auto-prefixed with @). Ignored as trigger content when `children` is set. */
|
|
397
|
+
label?: string;
|
|
398
|
+
/** Custom trigger (avatar, icon). Chip styles are reset via `ds-mention--custom`. */
|
|
399
|
+
children?: ReactNode;
|
|
400
|
+
/** click = toggle on press; hover = open on pointer enter (header pins). */
|
|
401
|
+
mode?: MentionMode;
|
|
402
|
+
avatar?: ReactNode;
|
|
403
|
+
name?: string;
|
|
404
|
+
/** Shown as @handle in the popover. */
|
|
405
|
+
handle?: string;
|
|
406
|
+
description?: ReactNode;
|
|
407
|
+
/** Slot under the description. Clicking an action closes the popover. */
|
|
408
|
+
actions?: ReactNode;
|
|
409
|
+
popoverClassName?: string;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export declare function Mention(props: MentionProps): JSX.Element;
|
|
413
|
+
|
|
351
414
|
// ─── Spinner ──────────────────────────────────────────────────────────────
|
|
352
415
|
|
|
353
416
|
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -1111,6 +1174,7 @@ export interface DesignSystemStrings {
|
|
|
1111
1174
|
maxImages: string;
|
|
1112
1175
|
uploading: string;
|
|
1113
1176
|
removeAttachment: string;
|
|
1177
|
+
closeTab: string;
|
|
1114
1178
|
}
|
|
1115
1179
|
|
|
1116
1180
|
export declare const defaultStrings: DesignSystemStrings;
|