@agentatom/design-system 1.4.86 → 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/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;
@@ -1134,6 +1176,7 @@ export interface DesignSystemStrings {
1134
1176
  maxImages: string;
1135
1177
  uploading: string;
1136
1178
  removeAttachment: string;
1179
+ closeTab: string;
1137
1180
  }
1138
1181
 
1139
1182
  export declare const defaultStrings: DesignSystemStrings;