@tetrascience-npm/tetrascience-react-ui 0.4.0-beta.9.1 → 0.5.0-beta.14.1

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 (59) hide show
  1. package/README.md +58 -4
  2. package/dist/athena.d.ts +167 -0
  3. package/dist/databricks.d.ts +129 -0
  4. package/dist/exceptions-DN25pCDi.cjs +2 -0
  5. package/dist/exceptions-DN25pCDi.cjs.map +1 -0
  6. package/dist/exceptions-jCQ6h5C8.js +33 -0
  7. package/dist/exceptions-jCQ6h5C8.js.map +1 -0
  8. package/dist/index.cjs +11 -0
  9. package/dist/index.cjs.map +1 -0
  10. package/dist/index.css +1 -1
  11. package/dist/index.d.ts +2049 -2027
  12. package/dist/index.js +9438 -3
  13. package/dist/index.js.map +1 -0
  14. package/dist/providers/athena.cjs +2 -0
  15. package/dist/providers/athena.cjs.map +1 -0
  16. package/dist/providers/athena.d.ts +2 -79
  17. package/dist/providers/athena.js +160 -0
  18. package/dist/providers/athena.js.map +1 -0
  19. package/dist/providers/databricks.cjs +2 -0
  20. package/dist/providers/databricks.cjs.map +1 -0
  21. package/dist/providers/databricks.d.ts +2 -43
  22. package/dist/providers/databricks.js +85 -0
  23. package/dist/providers/databricks.js.map +1 -0
  24. package/dist/providers/snowflake.cjs +2 -0
  25. package/dist/providers/snowflake.cjs.map +1 -0
  26. package/dist/providers/snowflake.d.ts +2 -40
  27. package/dist/providers/snowflake.js +122 -0
  28. package/dist/providers/snowflake.js.map +1 -0
  29. package/dist/server.cjs +2 -0
  30. package/dist/server.cjs.map +1 -0
  31. package/dist/server.d.ts +533 -525
  32. package/dist/server.js +266 -0
  33. package/dist/server.js.map +1 -0
  34. package/dist/{providers/types-Ck4uFaGp.d.ts → snowflake.d.ts} +125 -82
  35. package/package.json +54 -55
  36. package/dist/cjs/index.js +0 -2001
  37. package/dist/cjs/index.js.map +0 -1
  38. package/dist/cjs/providers/athena.js +0 -2
  39. package/dist/cjs/providers/athena.js.map +0 -1
  40. package/dist/cjs/providers/databricks.js +0 -2
  41. package/dist/cjs/providers/databricks.js.map +0 -1
  42. package/dist/cjs/providers/exceptions-CYktpdqW.js +0 -2
  43. package/dist/cjs/providers/exceptions-CYktpdqW.js.map +0 -1
  44. package/dist/cjs/providers/snowflake.js +0 -2
  45. package/dist/cjs/providers/snowflake.js.map +0 -1
  46. package/dist/cjs/server.js +0 -2
  47. package/dist/cjs/server.js.map +0 -1
  48. package/dist/esm/index.js +0 -2001
  49. package/dist/esm/index.js.map +0 -1
  50. package/dist/esm/providers/athena.js +0 -2
  51. package/dist/esm/providers/athena.js.map +0 -1
  52. package/dist/esm/providers/databricks.js +0 -2
  53. package/dist/esm/providers/databricks.js.map +0 -1
  54. package/dist/esm/providers/exceptions-C3uFWZB2.js +0 -2
  55. package/dist/esm/providers/exceptions-C3uFWZB2.js.map +0 -1
  56. package/dist/esm/providers/snowflake.js +0 -2
  57. package/dist/esm/providers/snowflake.js.map +0 -1
  58. package/dist/esm/server.js +0 -2
  59. package/dist/esm/server.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,2027 +1,2049 @@
1
- import React$1, { ClassAttributes, HTMLAttributes, ReactNode } from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { OnChange } from '@monaco-editor/react';
4
- import { ExtraProps } from 'react-markdown';
5
- import { SearchEqlRequest } from '@tetrascience-npm/ts-connectors-sdk';
6
-
7
- type BadgeSize = "small" | "medium";
8
- type BadgeVariant = "default" | "primary";
9
- interface BadgeProps {
10
- children: React$1.ReactNode;
11
- size?: BadgeSize;
12
- variant?: BadgeVariant;
13
- disabled?: boolean;
14
- iconLeft?: React$1.ReactNode;
15
- iconRight?: React$1.ReactNode;
16
- className?: string;
17
- }
18
- declare const Badge: React$1.FC<BadgeProps>;
19
-
20
- type ButtonSize = "small" | "medium";
21
- type ButtonVariant = "primary" | "secondary" | "tertiary";
22
- interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
23
- children: React$1.ReactNode;
24
- variant?: ButtonVariant;
25
- size?: ButtonSize;
26
- loading?: boolean;
27
- leftIcon?: React$1.ReactNode;
28
- rightIcon?: React$1.ReactNode;
29
- noPadding?: boolean;
30
- fullWidth?: boolean;
31
- ref?: React$1.Ref<HTMLButtonElement>;
32
- }
33
- declare const Button: ({ children, variant, size, loading, leftIcon, rightIcon, noPadding, fullWidth, disabled, ref, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
34
-
35
- interface ButtonControlProps {
36
- icon?: React$1.ReactNode;
37
- selected?: boolean;
38
- disabled?: boolean;
39
- onClick?: () => void;
40
- }
41
- declare const ButtonControl: React$1.FC<ButtonControlProps>;
42
-
43
- type CardSize = "small" | "medium" | "large";
44
- type CardVariant = "default" | "outlined" | "elevated";
45
- interface CardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "title"> {
46
- children: React$1.ReactNode;
47
- title?: React$1.ReactNode;
48
- size?: CardSize;
49
- variant?: CardVariant;
50
- className?: string;
51
- fullWidth?: boolean;
52
- ref?: React$1.Ref<HTMLDivElement>;
53
- }
54
- declare const Card: ({ children, title, size, variant, className, fullWidth, ref, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
55
-
56
- interface CheckboxProps {
57
- checked?: boolean;
58
- onChange?: (checked: boolean) => void;
59
- disabled?: boolean;
60
- className?: string;
61
- onClick?: (e: React$1.MouseEvent) => void;
62
- label?: React$1.ReactNode;
63
- noPadding?: boolean;
64
- ref?: React$1.Ref<HTMLInputElement>;
65
- }
66
- declare const Checkbox: ({ checked, onChange, disabled, className, onClick, label, noPadding, ref, }: CheckboxProps) => react_jsx_runtime.JSX.Element;
67
-
68
- interface CodeEditorProps {
69
- value: string;
70
- onChange: OnChange;
71
- language?: string;
72
- theme?: "light" | "dark";
73
- height?: string | number;
74
- width?: string | number;
75
- options?: Record<string, unknown>;
76
- label?: string;
77
- onCopy?: (code: string) => void;
78
- onLaunch?: (code: string) => void;
79
- disabled?: boolean;
80
- }
81
- declare const CodeEditor: React$1.FC<CodeEditorProps>;
82
-
83
- type DropdownSize = "xsmall" | "small";
84
- interface DropdownOption {
85
- value: string;
86
- label: string;
87
- disabled?: boolean;
88
- }
89
- interface DropdownProps {
90
- options: DropdownOption[];
91
- value?: string;
92
- placeholder?: string;
93
- disabled?: boolean;
94
- error?: boolean;
95
- size?: DropdownSize;
96
- onChange?: (value: string) => void;
97
- onOpen?: () => void;
98
- onClose?: () => void;
99
- width?: string;
100
- menuWidth?: string;
101
- }
102
- declare const Dropdown: React$1.FC<DropdownProps>;
103
-
104
- interface ErrorAlertProps {
105
- /** The error object to display. Can be Error, AxiosError, string, or any other type. */
106
- error: unknown;
107
- /** Optional title for the error alert. Defaults to 'An Error Occurred'. */
108
- title?: React$1.ReactNode;
109
- /** Optional callback function when the alert is closed. */
110
- onClose?: () => void;
111
- /** Set to true to show technical details expanded by default. Defaults to false. */
112
- showDetailsDefault?: boolean;
113
- /** Custom message to show when error is null/undefined (optional, component renders nothing by default) */
114
- noErrorContent?: React$1.ReactNode;
115
- }
116
- declare const ErrorAlert: React$1.FC<ErrorAlertProps>;
117
-
118
- interface IconsProps {
119
- fill?: string;
120
- width?: string;
121
- height?: string;
122
- name: IconName;
123
- }
124
- interface IconProps {
125
- fill?: string;
126
- width?: string;
127
- height?: string;
128
- }
129
- declare enum IconName {
130
- BARS_3_BOTTOM_LEFT = "bars-3-bottom-left",
131
- BUILDING = "building",
132
- BULK_CHECK = "bulk-check",
133
- CHECK = "check",
134
- CHECK_CIRCLE = "check-circle",
135
- CHECK_SQUARE = "check-square",
136
- CHEVRON_DOWN = "chevron-down",
137
- CLOSE = "close",
138
- CODE = "code",
139
- COMPUTER = "computer",
140
- COPY = "copy",
141
- CUBE = "cube",
142
- DATABASE = "database",
143
- EXCLAMATION_CIRCLE = "exclamation-circle",
144
- EXCLAMATION_TRIANGLE = "exclamation-triangle",
145
- GEAR = "gear",
146
- GLobe = "globe",
147
- HASHTAG = "hashtag",
148
- HOME = "home",
149
- INBOX = "inbox",
150
- INFORMATION_CIRCLE = "information-circle",
151
- INFORMATION_CIRCLE_MICRO = "information-circle-micro",
152
- LAMP = "lamp",
153
- LOCK_OPEN = "lock-open",
154
- MINUS = "minus",
155
- PAPER_PLANE = "paper-plane",
156
- PENCIL = "pencil",
157
- PIE_CHART = "pie-chart",
158
- PIPELINE = "pipeline",
159
- PLUS = "plus",
160
- PROFILE = "profile",
161
- QUESTION_CIRCLE = "question-circle",
162
- ROCKET_LAUNCH = "rocket-launch",
163
- SEARCH = "search",
164
- SEARCH_DOCUMENT = "search-document",
165
- SEARCH_SQL = "search-sql",
166
- SITEMAP = "sitemap",
167
- TETRASCIENCE_ICON = "tetrascience-icon",
168
- TEXT = "text",
169
- TRASH = "trash",
170
- VIEWFINDER_CIRCLE = "viewfinder-circle"
171
- }
172
- declare const Icon: (props: IconsProps) => react_jsx_runtime.JSX.Element;
173
-
174
- type InputSize = "xsmall" | "small";
175
- interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
176
- size?: InputSize;
177
- iconLeft?: React$1.ReactNode;
178
- iconRight?: React$1.ReactNode;
179
- error?: boolean;
180
- disabled?: boolean;
181
- ref?: React$1.Ref<HTMLInputElement>;
182
- }
183
- declare const Input: ({ size, iconLeft, iconRight, error, disabled, ref, ...rest }: InputProps) => react_jsx_runtime.JSX.Element;
184
-
185
- interface LabelProps {
186
- children: React$1.ReactNode;
187
- infoText?: string;
188
- className?: string;
189
- }
190
- declare const Label: React$1.FC<LabelProps>;
191
-
192
- type CodeComponentProps = ClassAttributes<HTMLElement> & HTMLAttributes<HTMLElement> & ExtraProps & {
193
- inline?: boolean;
194
- };
195
- type MarkdownDisplayProps = {
196
- markdown: string;
197
- codeRenderer?: (props: CodeComponentProps) => React$1.ReactElement;
198
- };
199
- declare const MarkdownDisplay: ({ markdown, codeRenderer }: MarkdownDisplayProps) => react_jsx_runtime.JSX.Element;
200
-
201
- interface MenuItemProps {
202
- label: string;
203
- checked?: boolean;
204
- showCheckbox?: boolean;
205
- onClick?: () => void;
206
- onCheckChange?: (checked: boolean) => void;
207
- active?: boolean;
208
- className?: string;
209
- ref?: React$1.Ref<HTMLDivElement>;
210
- }
211
- declare const MenuItem: ({ label, checked, showCheckbox, onClick, onCheckChange, active, className, ref, }: MenuItemProps) => react_jsx_runtime.JSX.Element;
212
-
213
- interface ModalProps {
214
- isOpen: boolean;
215
- onClose: () => void;
216
- onCloseLabel?: string;
217
- onConfirm: () => void;
218
- onConfirmLabel?: string;
219
- children: ReactNode;
220
- width?: string;
221
- className?: string;
222
- hideActions?: boolean;
223
- title?: string;
224
- }
225
- declare const Modal: ({ isOpen, onClose, onCloseLabel, onConfirm, onConfirmLabel, children, width, className, hideActions, title, }: ModalProps) => false | react_jsx_runtime.JSX.Element;
226
-
227
- type PopConfirmPlacement = "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
228
- interface PopConfirmProps {
229
- title?: ReactNode;
230
- description?: ReactNode;
231
- onConfirm?: (e?: React$1.MouseEvent<HTMLElement>) => void;
232
- onCancel?: (e?: React$1.MouseEvent<HTMLElement>) => void;
233
- okText?: string;
234
- cancelText?: string;
235
- placement?: PopConfirmPlacement;
236
- children: ReactNode;
237
- className?: string;
238
- okButtonProps?: React$1.ButtonHTMLAttributes<HTMLButtonElement>;
239
- cancelButtonProps?: React$1.ButtonHTMLAttributes<HTMLButtonElement>;
240
- }
241
- declare const PopConfirm: React$1.FC<PopConfirmProps>;
242
-
243
- interface SupportiveTextProps {
244
- children: React$1.ReactNode;
245
- showCheck?: boolean;
246
- className?: string;
247
- }
248
- declare const SupportiveText: React$1.FC<SupportiveTextProps>;
249
-
250
- type TabSize = "small" | "medium";
251
- interface TabProps {
252
- label: string;
253
- active?: boolean;
254
- disabled?: boolean;
255
- size?: TabSize;
256
- onClick?: () => void;
257
- }
258
- declare const Tab: React$1.FC<TabProps>;
259
-
260
- interface TableCellProps extends React$1.TdHTMLAttributes<HTMLTableCellElement> {
261
- children?: React$1.ReactNode;
262
- align?: "left" | "center" | "right";
263
- width?: string;
264
- className?: string;
265
- ref?: React$1.Ref<HTMLTableCellElement>;
266
- }
267
- declare const TableCell: ({ children, align, width, className, ref, ...props }: TableCellProps) => react_jsx_runtime.JSX.Element;
268
-
269
- interface TableHeaderCellProps extends React$1.ThHTMLAttributes<HTMLTableCellElement> {
270
- children?: React$1.ReactNode;
271
- sortable?: boolean;
272
- sortDirection?: "asc" | "desc" | null;
273
- onSort?: () => void;
274
- filterable?: boolean;
275
- filterOptions?: DropdownOption[];
276
- filterValue?: string;
277
- onFilterChange?: (value: string) => void;
278
- width?: string;
279
- className?: string;
280
- ref?: React$1.Ref<HTMLTableCellElement>;
281
- }
282
- declare const TableHeaderCell: ({ children, sortable, sortDirection, onSort, filterable, filterOptions, filterValue, onFilterChange, width, className, ref, ...props }: TableHeaderCellProps) => react_jsx_runtime.JSX.Element;
283
-
284
- type TextareaSize = "xsmall" | "small";
285
- interface TextareaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
286
- size?: TextareaSize;
287
- error?: boolean;
288
- disabled?: boolean;
289
- fullWidth?: boolean;
290
- rows?: number;
291
- ref?: React$1.Ref<HTMLTextAreaElement>;
292
- }
293
- declare const Textarea: ({ size, error, disabled, fullWidth, rows, ref, ...rest }: TextareaProps) => react_jsx_runtime.JSX.Element;
294
-
295
- type ToastType = "info" | "success" | "warning" | "danger" | "default";
296
- interface ToastProps {
297
- type?: ToastType;
298
- heading: string;
299
- description?: string;
300
- className?: string;
301
- }
302
- declare const Toast: React$1.FC<ToastProps>;
303
-
304
- interface ToggleProps {
305
- checked?: boolean;
306
- onChange?: (checked: boolean) => void;
307
- disabled?: boolean;
308
- label?: string;
309
- className?: string;
310
- }
311
- declare const Toggle: React$1.FC<ToggleProps>;
312
-
313
- /**
314
- * TDP Navigation Utilities
315
- *
316
- * Pure utility functions for constructing and navigating to TDP URLs.
317
- * These work independently of React and can be used in any context.
318
- *
319
- * Data apps run inside iframes within TDP. These utilities help resolve
320
- * the TDP base URL from the iframe context and construct navigation URLs.
321
- */
322
- /**
323
- * Extract the TDP base URL from `document.referrer`.
324
- *
325
- * In production, data apps run inside iframes within TDP. The browser
326
- * provides `document.referrer` containing the parent TDP page URL.
327
- * This function strips the known route path to get the base URL
328
- * (origin + org slug path prefix).
329
- *
330
- * @example
331
- * // referrer: "https://tetrascience-uat.com/my-org/data-workspace/abc"
332
- * getTdpBaseUrlFromReferrer() // "https://tetrascience-uat.com/my-org"
333
- *
334
- * @returns The TDP base URL, or null if detection fails
335
- */
336
- declare function getTdpBaseUrlFromReferrer(): string | null;
337
- /**
338
- * Construct a full TDP URL by joining a base URL with a path.
339
- *
340
- * @example
341
- * buildTdpUrl("https://tetrascience.com/my-org", "/file/abc-123")
342
- * // "https://tetrascience.com/my-org/file/abc-123"
343
- *
344
- * @param baseUrl - The TDP base URL (origin + optional org prefix)
345
- * @param path - The TDP page path (e.g., "/file/abc-123")
346
- * @returns The full TDP URL, or null if construction fails
347
- */
348
- declare function buildTdpUrl(baseUrl: string, path: string): string | null;
349
- interface TdpNavigationOptions {
350
- /** Open in a new tab instead of navigating the parent TDP frame. Default: false */
351
- newTab?: boolean;
352
- }
353
- /**
354
- * Navigate to a TDP URL.
355
- *
356
- * - `{ newTab: true }` opens the URL in a new browser tab.
357
- * - Default: sends a `postMessage` to the parent TDP frame (same-tab navigation
358
- * when inside an iframe), or navigates the current window (standalone).
359
- *
360
- * @param url - Full TDP URL to navigate to
361
- * @param options - Navigation options
362
- */
363
- declare function navigateToTdpUrl(url: string, options?: TdpNavigationOptions): void;
364
- /**
365
- * Convenience helpers for constructing common TDP page paths.
366
- * Returns path strings for use with `getTdpUrl()` or `buildTdpUrl()`.
367
- *
368
- * @example
369
- * const { getTdpUrl } = useTdpNavigation();
370
- * const url = getTdpUrl(tdpPaths.fileDetails("abc-123"));
371
- */
372
- declare const tdpPaths: {
373
- fileDetails: (fileId: string) => string;
374
- pipelineEdit: (pipelineId: string) => string;
375
- pipelineDetails: (pipelineId: string) => string;
376
- search: (query?: string) => string;
377
- dataWorkspace: () => string;
378
- dataApps: () => string;
379
- artifact: (type: string, namespace: string, slug: string) => string;
380
- };
381
-
382
- interface TdpNavigationContextValue {
383
- /** The resolved TDP base URL (origin + org path prefix), or null if not resolved */
384
- tdpBaseUrl: string | null;
385
- /** Construct a full TDP URL from a path. Returns null if base URL is not resolved. */
386
- getTdpUrl: (path: string) => string | null;
387
- /** Navigate to a TDP page. */
388
- navigateToTdp: (path: string, options?: TdpNavigationOptions) => void;
389
- }
390
- declare const TdpNavigationContext: React$1.Context<TdpNavigationContextValue | null>;
391
- /**
392
- * Access TDP navigation helpers from the nearest TdpNavigationProvider.
393
- *
394
- * @throws Error if used outside a TdpNavigationProvider
395
- *
396
- * @example
397
- * ```tsx
398
- * const { getTdpUrl, navigateToTdp } = useTdpNavigationContext();
399
- * ```
400
- */
401
- declare function useTdpNavigationContext(): TdpNavigationContextValue;
402
- /** Props for the TdpNavigationProvider component */
403
- interface TdpNavigationProviderProps {
404
- /**
405
- * Explicit TDP base URL override. Skips auto-detection when provided.
406
- */
407
- tdpBaseUrl?: string;
408
- children: React$1.ReactNode;
409
- }
410
- /**
411
- * Provider that resolves the TDP base URL and exposes navigation helpers.
412
- *
413
- * Resolution order:
414
- * 1. Explicit `tdpBaseUrl` prop (if provided)
415
- * 2. `document.referrer` parsing (production iframe)
416
- *
417
- * @example
418
- * ```tsx
419
- * <TdpNavigationProvider tdpBaseUrl="https://tetrascience.com/my-org">
420
- * <App />
421
- * </TdpNavigationProvider>
422
- * ```
423
- */
424
- declare const TdpNavigationProvider: React$1.FC<TdpNavigationProviderProps>;
425
- interface UseTdpNavigationOptions {
426
- /** Explicit TDP base URL override */
427
- tdpBaseUrl?: string;
428
- }
429
- interface UseTdpNavigationReturn {
430
- /** The resolved TDP base URL, or null */
431
- tdpBaseUrl: string | null;
432
- /** Construct a full TDP URL from a path */
433
- getTdpUrl: (path: string) => string | null;
434
- /** Navigate to a TDP page */
435
- navigateToTdp: (path: string, options?: TdpNavigationOptions) => void;
436
- }
437
- /**
438
- * Standalone hook for TDP navigation (no provider required).
439
- *
440
- * For simple use cases where you don't need a TdpNavigationProvider.
441
- * If multiple components need navigation, prefer the provider approach.
442
- *
443
- * @example
444
- * ```tsx
445
- * function MyComponent() {
446
- * const { getTdpUrl, navigateToTdp } = useTdpNavigation({
447
- * tdpBaseUrl: "https://tetrascience.com/my-org",
448
- * });
449
- *
450
- * return (
451
- * <a href={getTdpUrl("/file/abc") ?? "#"} target="_blank" rel="noopener noreferrer">
452
- * View File
453
- * </a>
454
- * );
455
- * }
456
- * ```
457
- */
458
- declare function useTdpNavigation(options?: UseTdpNavigationOptions): UseTdpNavigationReturn;
459
- /** Props for the TDPLink component */
460
- interface TDPLinkProps extends Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
461
- /** TDP page path (e.g., "/file/abc-123" or use tdpPaths helpers) */
462
- path: string;
463
- /** Navigation behavior. Default: { newTab: true } */
464
- navigationOptions?: TdpNavigationOptions;
465
- children: React$1.ReactNode;
466
- ref?: React$1.Ref<HTMLAnchorElement>;
467
- }
468
- /**
469
- * A link component that navigates to TDP pages.
470
- *
471
- * Renders a standard `<a>` tag with the correct href for right-click
472
- * "Open in new tab" support, accessibility, and SEO.
473
- *
474
- * Must be used inside a `<TdpNavigationProvider>`.
475
- *
476
- * @example
477
- * ```tsx
478
- * import { TDPLink, tdpPaths } from '@tetrascience-npm/tetrascience-react-ui';
479
- *
480
- * <TDPLink path={tdpPaths.fileDetails("abc-123")}>
481
- * View File Details
482
- * </TDPLink>
483
- *
484
- * <TDPLink path="/search?q=test" navigationOptions={{ newTab: false }}>
485
- * Search in TDP (same tab)
486
- * </TDPLink>
487
- * ```
488
- */
489
- declare const TDPLink: React$1.FC<TDPLinkProps>;
490
-
491
- type TooltipPlacement = "top" | "right" | "bottom" | "left";
492
- interface TooltipProps {
493
- content: ReactNode;
494
- children: ReactNode;
495
- placement?: TooltipPlacement;
496
- className?: string;
497
- delay?: number;
498
- }
499
- declare const Tooltip: React$1.FC<TooltipProps>;
500
-
501
- interface UserProfileProps {
502
- name: string;
503
- avatar?: string;
504
- }
505
- interface AppHeaderProps {
506
- hostname: string;
507
- userProfile: UserProfileProps;
508
- onHomeClick?: () => void;
509
- onSettingsClick?: () => void;
510
- onUserProfileClick?: () => void;
511
- }
512
- declare const AppHeader: React$1.FC<AppHeaderProps>;
513
-
514
- interface AssistantModalProps {
515
- open: boolean;
516
- title: string;
517
- prompt: string;
518
- initialCode?: string;
519
- userQuery?: string;
520
- onUserQueryChange?: (value: string) => void;
521
- onCopy: (code: string) => void;
522
- onLaunch: (code: string) => void;
523
- onSend: (input: string) => void;
524
- onCancel: () => void;
525
- }
526
- declare const AssistantModal: React$1.FC<AssistantModalProps>;
527
-
528
- interface ButtonControlItem extends ButtonControlProps {
529
- id: string;
530
- }
531
- interface ButtonControlGroupProps {
532
- controls: ButtonControlItem[];
533
- selectedId?: string;
534
- onChange?: (id: string) => void;
535
- vertical?: boolean;
536
- disabled?: boolean;
537
- }
538
- declare const ButtonControlGroup: React$1.FC<ButtonControlGroupProps>;
539
-
540
- type CardSidebarStatus = "default" | "active" | "hover" | "disabled";
541
- interface CardSidebarProps {
542
- title: string;
543
- description?: string;
544
- buttonText?: string;
545
- linkText?: string;
546
- status?: CardSidebarStatus;
547
- onButtonClick?: () => void;
548
- onLinkClick?: () => void;
549
- className?: string;
550
- ref?: React$1.Ref<HTMLDivElement>;
551
- }
552
- declare const CardSidebar: ({ title, description, buttonText, linkText, status, onButtonClick, onLinkClick, className, ref, }: CardSidebarProps) => react_jsx_runtime.JSX.Element;
553
-
554
- interface CodeScriptEditorButtonProps {
555
- initialCode?: string;
556
- onCodeSave?: (newCode: string) => void;
557
- language?: string;
558
- buttonText?: string;
559
- modalTitle?: string;
560
- buttonProps?: React.ComponentProps<typeof Button>;
561
- modalProps?: Omit<React.ComponentProps<typeof Modal>, "isOpen" | "onConfirm" | "onClose">;
562
- disabled?: boolean;
563
- isEditMode?: boolean;
564
- }
565
- /**
566
- * Renders an 'Edit code' button that opens a modal with a Monaco code editor.
567
- */
568
- declare const CodeScriptEditorButton: ({ initialCode, onCodeSave, language, buttonText, modalTitle, buttonProps, modalProps, disabled, }: CodeScriptEditorButtonProps) => react_jsx_runtime.JSX.Element;
569
-
570
- interface FormFieldProps extends Omit<InputProps, "className"> {
571
- label: string;
572
- infoText?: string;
573
- supportiveText?: string;
574
- showSupportiveCheck?: boolean;
575
- className?: string;
576
- ref?: React$1.Ref<HTMLInputElement>;
577
- }
578
- declare const FormField: ({ label, infoText, supportiveText, showSupportiveCheck, className, ref, ...inputProps }: FormFieldProps) => react_jsx_runtime.JSX.Element;
579
-
580
- interface LaunchContentProps {
581
- initialCode?: string;
582
- onDeploy?: () => void;
583
- versions?: string[];
584
- currentVersion?: string;
585
- onVersionChange?: (version: string) => void;
586
- }
587
- declare const LaunchContent: React$1.FC<LaunchContentProps>;
588
-
589
- interface MenuItemData extends Omit<MenuItemProps, "onClick" | "onCheckChange"> {
590
- id: string;
591
- }
592
- interface MenuProps {
593
- title?: string;
594
- items: MenuItemData[];
595
- onItemClick?: (itemId: string) => void;
596
- onItemCheckChange?: (itemId: string, checked: boolean) => void;
597
- activeItemId?: string | null;
598
- className?: string;
599
- }
600
- declare const Menu: React$1.FC<MenuProps>;
601
-
602
- interface OrganizationInfo {
603
- name: string;
604
- subtext?: string;
605
- logo?: React$1.ReactNode;
606
- }
607
- interface NavbarProps {
608
- organization: OrganizationInfo;
609
- }
610
- declare const Navbar: React$1.FC<NavbarProps>;
611
-
612
- interface ProtocolConfigurationProps {
613
- className?: string;
614
- }
615
- declare const ProtocolConfiguration: React$1.FC<ProtocolConfigurationProps>;
616
-
617
- interface ProtocolYamlCardProps {
618
- title: string;
619
- newVersionMode: boolean;
620
- onToggleNewVersionMode: (checked: boolean) => void;
621
- versionOptions: DropdownOption[];
622
- selectedVersion: string;
623
- onVersionChange: (value: string) => void;
624
- onDeploy: () => void;
625
- yaml: string;
626
- onYamlChange: (value: string) => void;
627
- }
628
- declare const ProtocolYamlCard: React$1.FC<ProtocolYamlCardProps>;
629
-
630
- interface PythonEditorModalProps {
631
- open: boolean;
632
- initialValue?: string;
633
- title?: string;
634
- onSave: (value: string) => void;
635
- onCancel: () => void;
636
- }
637
- declare const PythonEditorModal: React$1.FC<PythonEditorModalProps>;
638
-
639
- interface SelectFieldProps extends Omit<DropdownProps, "className"> {
640
- label: string;
641
- infoText?: string;
642
- supportiveText?: string;
643
- showSupportiveCheck?: boolean;
644
- className?: string;
645
- ref?: React$1.Ref<HTMLDivElement>;
646
- }
647
- declare const SelectField: ({ label, infoText, supportiveText, showSupportiveCheck, className, ref, ...dropdownProps }: SelectFieldProps) => react_jsx_runtime.JSX.Element;
648
-
649
- interface SidebarItemProps {
650
- icon: IconName;
651
- label: string;
652
- active?: boolean;
653
- onClick?: () => void;
654
- }
655
- interface SidebarProps {
656
- items: SidebarItemProps[];
657
- activeItem?: string;
658
- onItemClick?: (label: string) => void;
659
- }
660
- declare const Sidebar: React$1.FC<SidebarProps>;
661
-
662
- interface TableColumn<T = any> {
663
- key: string;
664
- header: string;
665
- sortable?: boolean;
666
- filterable?: boolean;
667
- filterOptions?: DropdownOption[];
668
- width?: string;
669
- align?: "left" | "center" | "right";
670
- render?: (value: any, row: T, index: number) => React$1.ReactNode;
671
- }
672
- interface TableProps<T = any> {
673
- columns: TableColumn<T>[];
674
- data: T[];
675
- pageSize?: number;
676
- rowKey?: keyof T | ((row: T) => string | number);
677
- selectable?: boolean;
678
- onRowSelect?: (selectedRows: T[]) => void;
679
- sortKey?: string;
680
- sortDirection?: "asc" | "desc";
681
- onSort?: (key: string, direction: "asc" | "desc") => void;
682
- currentPage?: number;
683
- onPageChange?: (page: number) => void;
684
- totalItems?: number;
685
- selectedRows?: T[];
686
- className?: string;
687
- }
688
- declare function Table<T extends Record<string, any>>({ columns, data, pageSize, rowKey, selectable, onRowSelect, sortKey: controlledSortKey, sortDirection: controlledSortDirection, onSort: controlledOnSort, currentPage: controlledCurrentPage, onPageChange: controlledOnPageChange, totalItems, selectedRows: controlledSelectedRows, className, }: TableProps<T>): react_jsx_runtime.JSX.Element;
689
- declare namespace Table {
690
- var displayName: string;
691
- }
692
-
693
- interface TabItem extends Omit<TabProps, "active" | "onClick"> {
694
- id: string;
695
- }
696
- interface TabGroupProps {
697
- tabs: TabItem[];
698
- activeTab?: string;
699
- onChange?: (tabId: string) => void;
700
- disabled?: boolean;
701
- size?: TabSize;
702
- }
703
- declare const TabGroup: React$1.FC<TabGroupProps>;
704
-
705
- declare module "styled-components" {
706
- interface DefaultTheme {
707
- position: ToastPosition;
708
- }
709
- }
710
- type ToastPosition = "top" | "bottom";
711
- interface ToastContainerProps {
712
- position: ToastPosition;
713
- }
714
- interface ToastManagerProps {
715
- position?: ToastPosition;
716
- }
717
- declare const ToastManager: React$1.FC<ToastManagerProps>;
718
-
719
- interface AppLayoutProps {
720
- userProfile: {
721
- name: string;
722
- avatar?: string;
723
- };
724
- hostname: string;
725
- organization: {
726
- name: string;
727
- subtext?: string;
728
- logo?: React$1.ReactNode;
729
- };
730
- children?: React$1.ReactNode;
731
- }
732
- declare const AppLayout: React$1.FC<AppLayoutProps>;
733
-
734
- interface AreaDataSeries {
735
- x: number[];
736
- y: number[];
737
- name: string;
738
- color: string;
739
- fill?: "tozeroy" | "tonexty" | "toself";
740
- }
741
- type AreaGraphVariant = "normal" | "stacked";
742
- interface AreaGraphProps {
743
- dataSeries: AreaDataSeries[];
744
- width?: number;
745
- height?: number;
746
- xRange?: [number, number];
747
- yRange?: [number, number];
748
- variant?: AreaGraphVariant;
749
- xTitle?: string;
750
- yTitle?: string;
751
- title?: string;
752
- }
753
- declare const AreaGraph: React$1.FC<AreaGraphProps>;
754
-
755
- interface BarDataSeries {
756
- x: number[];
757
- y: number[];
758
- name: string;
759
- color: string;
760
- error_y?: {
761
- type: "data";
762
- array: number[];
763
- visible: boolean;
764
- };
765
- }
766
- type BarGraphVariant = "group" | "stack" | "overlay";
767
- interface BarGraphProps {
768
- dataSeries: BarDataSeries[];
769
- width?: number;
770
- height?: number;
771
- xRange?: [number, number];
772
- yRange?: [number, number];
773
- variant?: BarGraphVariant;
774
- xTitle?: string;
775
- yTitle?: string;
776
- title?: string;
777
- barWidth?: number;
778
- }
779
- declare const BarGraph: React$1.FC<BarGraphProps>;
780
-
781
- interface BoxDataSeries {
782
- y: number[];
783
- name: string;
784
- color: string;
785
- x?: string[] | number[];
786
- boxpoints?: "all" | "outliers" | "suspectedoutliers" | false;
787
- jitter?: number;
788
- pointpos?: number;
789
- }
790
- interface BoxplotProps {
791
- dataSeries: BoxDataSeries[];
792
- width?: number;
793
- height?: number;
794
- xRange?: [number, number];
795
- yRange?: [number, number];
796
- xTitle?: string;
797
- yTitle?: string;
798
- title?: string;
799
- showPoints?: boolean;
800
- }
801
- declare const Boxplot: React$1.FC<BoxplotProps>;
802
-
803
- interface PeakData {
804
- position: number;
805
- base?: string;
806
- peakA: number;
807
- peakT: number;
808
- peakG: number;
809
- peakC: number;
810
- }
811
- interface ChromatogramProps {
812
- data?: PeakData[];
813
- width?: number;
814
- height?: number;
815
- positionInterval?: number;
816
- colorA?: string;
817
- colorT?: string;
818
- colorG?: string;
819
- colorC?: string;
820
- }
821
- declare const Chromatogram: React$1.FC<ChromatogramProps>;
822
-
823
- /**
824
- * Type definitions for ChromatogramChart component
825
- */
826
- /**
827
- * Data series for chromatogram visualization
828
- */
829
- interface ChromatogramSeries {
830
- /** Retention time values (x-axis) */
831
- x: number[];
832
- /** Signal intensity values (y-axis) */
833
- y: number[];
834
- /** Series label for legend */
835
- name: string;
836
- /** Optional color override (auto-assigned from CHART_COLORS if not provided) */
837
- color?: string;
838
- /** Optional metadata for the trace (displayed in tooltip on hover) */
839
- metadata?: Record<string, unknown>;
840
- }
841
- /**
842
- * Individual boundary marker type for a single boundary point
843
- */
844
- type BoundaryMarkerType = "none" | "triangle" | "diamond";
845
- /**
846
- * Internal computed fields for peak annotations.
847
- * These are populated by the component during processing.
848
- * @internal
849
- */
850
- interface PeakComputedFields {
851
- /** Peak area calculated using trapezoidal integration */
852
- area?: number;
853
- /** Peak index in the data array */
854
- index?: number;
855
- /** Start index of peak boundary in the data array */
856
- startIndex?: number;
857
- /** End index of peak boundary in the data array */
858
- endIndex?: number;
859
- /** Peak width at half maximum */
860
- widthAtHalfMax?: number;
861
- }
862
- /**
863
- * Peak annotation for labeling peaks on the chromatogram.
864
- * Used for both user-provided annotations and auto-detected peaks.
865
- */
866
- interface PeakAnnotation {
867
- /** Retention time of the peak (x-axis position) */
868
- x: number;
869
- /** Signal intensity at peak (y-axis position) */
870
- y: number;
871
- /** Label text (e.g., compound name). If not provided, auto-generated from computed area. */
872
- text?: string;
873
- /** Vertical arrow offset in pixels (negative = above peak, default: -30) */
874
- ay?: number;
875
- /** Horizontal arrow offset in pixels (default: 0) */
876
- ax?: number;
877
- /** Start retention time for peak boundary */
878
- startX?: number;
879
- /** End retention time for peak boundary */
880
- endX?: number;
881
- /** Marker style for start boundary (default: "triangle") */
882
- startMarker?: BoundaryMarkerType;
883
- /** Marker style for end boundary (default: "diamond") */
884
- endMarker?: BoundaryMarkerType;
885
- /**
886
- * Internal computed fields populated by the component.
887
- * @internal Do not set these directly - they are computed from startX/endX or auto-detection.
888
- */
889
- _computed?: PeakComputedFields;
890
- }
891
- /**
892
- * Baseline correction method
893
- */
894
- type BaselineCorrectionMethod = "none" | "linear" | "rolling";
895
- /**
896
- * Global boundary marker style setting
897
- * - "none": No boundary markers displayed
898
- * - "enabled": Show boundary markers using per-peak settings (startMarker/endMarker) or defaults
899
- */
900
- type BoundaryMarkerStyle = "none" | "enabled";
901
- /**
902
- * Peak detection algorithm options
903
- */
904
- interface PeakDetectionOptions {
905
- /** Minimum peak height threshold (absolute or relative to max, default: 0.05) */
906
- minHeight?: number;
907
- /** Minimum distance between peaks in data points (default: 5) */
908
- minDistance?: number;
909
- /** Prominence threshold - how much a peak stands out from neighbors (default: 0.02) */
910
- prominence?: number;
911
- /** Use relative threshold as percentage of max signal (default: true) */
912
- relativeThreshold?: boolean;
913
- }
914
- /**
915
- * Props for ChromatogramChart component
916
- */
917
- interface ChromatogramChartProps {
918
- /** Array of data series to display */
919
- series: ChromatogramSeries[];
920
- /** Chart width in pixels */
921
- width?: number;
922
- /** Chart height in pixels */
923
- height?: number;
924
- /** Chart title */
925
- title?: string;
926
- /** X-axis label */
927
- xAxisTitle?: string;
928
- /** Y-axis label */
929
- yAxisTitle?: string;
930
- /** Peak annotations to display */
931
- annotations?: PeakAnnotation[];
932
- /** Fixed x-axis range [min, max] */
933
- xRange?: [number, number];
934
- /** Fixed y-axis range [min, max] */
935
- yRange?: [number, number];
936
- /** Show legend (default: true) */
937
- showLegend?: boolean;
938
- /** Show vertical grid lines (default: true) */
939
- showGridX?: boolean;
940
- /** Show horizontal grid lines (default: true) */
941
- showGridY?: boolean;
942
- /** Show data point markers (default: false) */
943
- showMarkers?: boolean;
944
- /** Marker size when showMarkers is true (default: 4) */
945
- markerSize?: number;
946
- /** Show crosshairs on hover (default: false) */
947
- showCrosshairs?: boolean;
948
- /** Baseline correction method (default: "none") */
949
- baselineCorrection?: BaselineCorrectionMethod;
950
- /** Rolling baseline window size (default: 50) */
951
- baselineWindowSize?: number;
952
- /** Peak detection algorithm options - if provided, enables automatic peak detection */
953
- peakDetectionOptions?: PeakDetectionOptions;
954
- /** Show peak areas as annotations (default: false) */
955
- showPeakAreas?: boolean;
956
- /**
957
- * Show peak boundary markers (default: "none").
958
- * - "none": No boundary markers displayed
959
- * - "enabled": Show boundary markers using per-peak startMarker/endMarker settings
960
- *
961
- * Per-peak marker defaults: startMarker="triangle", endMarker="diamond"
962
- */
963
- boundaryMarkers?: BoundaryMarkerStyle;
964
- /**
965
- * Retention time threshold for grouping overlapping annotations (default: 0.4 minutes).
966
- * Peaks closer than this threshold will have their annotations staggered to avoid overlap.
967
- */
968
- annotationOverlapThreshold?: number;
969
- /** Show export button in modebar (default: true) */
970
- showExportButton?: boolean;
971
- }
972
-
973
- declare const ChromatogramChart: React$1.FC<ChromatogramChartProps>;
974
-
975
- type MarkerSymbol$1 = "circle" | "square" | "diamond" | "triangle-up" | "triangle-down" | "star";
976
- interface DotPlotDataSeries {
977
- x: number[];
978
- y: number[];
979
- name: string;
980
- color?: string;
981
- symbol?: MarkerSymbol$1;
982
- size?: number;
983
- }
984
- type DotPlotVariant = "default" | "stacked";
985
- type DotPlotProps = {
986
- dataSeries: DotPlotDataSeries | DotPlotDataSeries[];
987
- width?: number;
988
- height?: number;
989
- title?: string;
990
- xTitle?: string;
991
- yTitle?: string;
992
- variant?: DotPlotVariant;
993
- markerSize?: number;
994
- };
995
- declare const DotPlot: React$1.FC<DotPlotProps>;
996
-
997
- /**
998
- * Props for the Heatmap component
999
- * @deprecated Use PlateMap component instead. Heatmap is now a wrapper around PlateMap for backward compatibility.
1000
- */
1001
- interface HeatmapProps {
1002
- /** 2D array of numeric values */
1003
- data?: number[][];
1004
- /** Custom x-axis labels (column labels) */
1005
- xLabels?: string[] | number[];
1006
- /** Custom y-axis labels (row labels) */
1007
- yLabels?: string[] | number[];
1008
- /** Chart title */
1009
- title?: string;
1010
- /** X-axis title */
1011
- xTitle?: string;
1012
- /** Y-axis title */
1013
- yTitle?: string;
1014
- /** Color scale - string name or array of [position, color] pairs */
1015
- colorscale?: string | Array<[number, string]>;
1016
- /** Chart width in pixels */
1017
- width?: number;
1018
- /** Chart height in pixels */
1019
- height?: number;
1020
- /** Show color scale legend */
1021
- showScale?: boolean;
1022
- /** Number of decimal places for values */
1023
- precision?: number;
1024
- /** Minimum value for color scale */
1025
- zmin?: number;
1026
- /** Maximum value for color scale */
1027
- zmax?: number;
1028
- /** Value unit suffix */
1029
- valueUnit?: string;
1030
- }
1031
- declare const Heatmap: React$1.FC<HeatmapProps>;
1032
-
1033
- interface HistogramDataSeries {
1034
- x: number[];
1035
- name: string;
1036
- color?: string;
1037
- autobinx?: boolean;
1038
- xbins?: {
1039
- start: number;
1040
- end: number;
1041
- size: number;
1042
- };
1043
- opacity?: number;
1044
- showDistributionLine?: boolean;
1045
- lineWidth?: number;
1046
- }
1047
- type HistogramProps = {
1048
- dataSeries: HistogramDataSeries | HistogramDataSeries[];
1049
- width?: number;
1050
- height?: number;
1051
- title?: string;
1052
- xTitle?: string;
1053
- yTitle?: string;
1054
- bargap?: number;
1055
- showDistributionLine?: boolean;
1056
- };
1057
- declare const Histogram: React$1.FC<HistogramProps>;
1058
-
1059
- /**
1060
- * A single data point in the scatter plot
1061
- */
1062
- interface ScatterPoint {
1063
- /** Unique identifier for the point */
1064
- id: string | number;
1065
- /** X-axis value */
1066
- x: number;
1067
- /** Y-axis value */
1068
- y: number;
1069
- /** Optional label for the point */
1070
- label?: string;
1071
- /** Additional metadata for tooltips and styling */
1072
- metadata?: Record<string, unknown>;
1073
- }
1074
- /**
1075
- * Scale type for axes
1076
- */
1077
- type ScaleType = "linear" | "log";
1078
- /**
1079
- * Marker shape for scatter points
1080
- */
1081
- type MarkerShape = "circle" | "square" | "diamond" | "cross" | "x" | "triangle-up" | "triangle-down" | "star";
1082
- /**
1083
- * Selection mode for interactive selection
1084
- */
1085
- type SelectionMode = "replace" | "add" | "remove" | "toggle";
1086
- /**
1087
- * Color mapping configuration
1088
- */
1089
- interface ColorMapping {
1090
- /** Type of mapping: data-driven or static */
1091
- type: "static" | "continuous" | "categorical";
1092
- /** Static color value (for type: "static") */
1093
- value?: string;
1094
- /** Data field to map (for type: "continuous" | "categorical") */
1095
- field?: string;
1096
- /** Color scale for continuous mapping */
1097
- colorScale?: string | Array<[number, string]>;
1098
- /** Discrete colors for categorical mapping */
1099
- categoryColors?: Record<string, string>;
1100
- /** Min/max values for continuous mapping (auto-calculated if not provided) */
1101
- min?: number;
1102
- max?: number;
1103
- }
1104
- /**
1105
- * Shape mapping configuration
1106
- */
1107
- interface ShapeMapping {
1108
- /** Type of mapping: data-driven or static */
1109
- type: "static" | "categorical";
1110
- /** Static shape value (for type: "static") */
1111
- value?: MarkerShape;
1112
- /** Data field to map (for type: "categorical") */
1113
- field?: string;
1114
- /** Shape mapping for categorical values */
1115
- categoryShapes?: Record<string, MarkerShape>;
1116
- }
1117
- /**
1118
- * Size mapping configuration
1119
- */
1120
- interface SizeMapping {
1121
- /** Type of mapping: data-driven or static */
1122
- type: "static" | "continuous" | "categorical";
1123
- /** Static size value (for type: "static") */
1124
- value?: number;
1125
- /** Data field to map (for type: "continuous" | "categorical") */
1126
- field?: string;
1127
- /** Size range for continuous mapping */
1128
- sizeRange?: [number, number];
1129
- /** Discrete sizes for categorical mapping */
1130
- categorySizes?: Record<string, number>;
1131
- /** Min/max values for continuous mapping (auto-calculated if not provided) */
1132
- min?: number;
1133
- max?: number;
1134
- }
1135
- /**
1136
- * Axis configuration
1137
- */
1138
- interface AxisConfig {
1139
- /** Axis label */
1140
- title?: string;
1141
- /** Scale type (linear or log) */
1142
- scale?: ScaleType;
1143
- /** Fixed axis range [min, max] */
1144
- range?: [number, number];
1145
- /** Auto-range with optional padding percentage (0-1) */
1146
- autoRange?: boolean;
1147
- /** Padding percentage for auto-range (default: 0.1 = 10%) */
1148
- autoRangePadding?: number;
1149
- }
1150
- /**
1151
- * Tooltip configuration
1152
- */
1153
- interface TooltipConfig {
1154
- /** Enable/disable tooltips */
1155
- enabled?: boolean;
1156
- /** Custom tooltip content function */
1157
- content?: (point: ScatterPoint) => string;
1158
- /** Fields to display in default tooltip */
1159
- fields?: string[];
1160
- }
1161
- /**
1162
- * Selection state
1163
- */
1164
- interface SelectionState {
1165
- /** Array of selected point IDs */
1166
- selectedIds: Set<string | number>;
1167
- }
1168
- /**
1169
- * Downsampling configuration for performance optimization
1170
- */
1171
- interface DownsamplingConfig {
1172
- /** Enable downsampling */
1173
- enabled: boolean;
1174
- /** Target number of points to display */
1175
- maxPoints?: number;
1176
- /** Downsampling strategy */
1177
- strategy?: "lttb";
1178
- }
1179
- /**
1180
- * Props for InteractiveScatter component
1181
- */
1182
- interface InteractiveScatterProps {
1183
- /**
1184
- * Array of data points to plot
1185
- */
1186
- data: ScatterPoint[];
1187
- /**
1188
- * Chart title
1189
- */
1190
- title?: string;
1191
- /**
1192
- * X-axis configuration
1193
- */
1194
- xAxis?: AxisConfig;
1195
- /**
1196
- * Y-axis configuration
1197
- */
1198
- yAxis?: AxisConfig;
1199
- /**
1200
- * Color mapping configuration
1201
- */
1202
- colorMapping?: ColorMapping;
1203
- /**
1204
- * Shape mapping configuration
1205
- */
1206
- shapeMapping?: ShapeMapping;
1207
- /**
1208
- * Size mapping configuration
1209
- */
1210
- sizeMapping?: SizeMapping;
1211
- /**
1212
- * Tooltip configuration
1213
- */
1214
- tooltip?: TooltipConfig;
1215
- /**
1216
- * Enable click selection
1217
- * @default true
1218
- */
1219
- enableClickSelection?: boolean;
1220
- /**
1221
- * Enable box selection (drag to select rectangular region)
1222
- * @default true
1223
- */
1224
- enableBoxSelection?: boolean;
1225
- /**
1226
- * Enable lasso selection (freeform selection)
1227
- * @default true
1228
- */
1229
- enableLassoSelection?: boolean;
1230
- /**
1231
- * Controlled selection state.
1232
- * If provided, component operates in controlled mode.
1233
- */
1234
- selectedIds?: Set<string | number>;
1235
- /**
1236
- * Callback when selection changes
1237
- */
1238
- onSelectionChange?: (selectedIds: Set<string | number>, mode: SelectionMode) => void;
1239
- /**
1240
- * Callback when a point is clicked
1241
- */
1242
- onPointClick?: (point: ScatterPoint, event: MouseEvent) => void;
1243
- /**
1244
- * Downsampling configuration for large datasets
1245
- */
1246
- downsampling?: DownsamplingConfig;
1247
- /**
1248
- * Chart width in pixels
1249
- * @default 800
1250
- */
1251
- width?: number;
1252
- /**
1253
- * Chart height in pixels
1254
- * @default 600
1255
- */
1256
- height?: number;
1257
- /**
1258
- * Show the continuous color-scale bar when using a continuous `colorMapping`.
1259
- * Has no effect for categorical or static mappings.
1260
- * @default true
1261
- */
1262
- showColorBar?: boolean;
1263
- /**
1264
- * Custom CSS class name
1265
- */
1266
- className?: string;
1267
- }
1268
- /**
1269
- * Data format for selection propagation between components
1270
- */
1271
- interface SelectionEvent {
1272
- /** Array of selected point IDs */
1273
- selectedIds: Set<string | number>;
1274
- /** Selection mode used */
1275
- mode: SelectionMode;
1276
- /** Source component identifier (optional) */
1277
- source?: string;
1278
- }
1279
-
1280
- /**
1281
- * InteractiveScatter component for visualizing scatter plot data with advanced interactions.
1282
- *
1283
- * **Features:**
1284
- * - Data-driven and static styling (color, shape, size)
1285
- * - Interactive selection (click, box, lasso)
1286
- * - Keyboard modifiers for click-selection modes (Shift/Ctrl)
1287
- * - Customizable tooltips with rich content support
1288
- * - Axis customization (ranges, log/linear scales)
1289
- * - Performance optimizations for large datasets
1290
- * - Selection propagation via callbacks
1291
- *
1292
- * **Selection Modes (click selection only):**
1293
- * - Default click: Replace selection
1294
- * - Shift + click: Add to selection
1295
- * - Ctrl/Cmd + click: Remove from selection
1296
- * - Shift + Ctrl + click: Toggle selection
1297
- *
1298
- * Box/lasso selection always replaces the current selection because
1299
- * Plotly does not expose the original keyboard event for drag operations.
1300
- */
1301
- declare const InteractiveScatter: React$1.FC<InteractiveScatterProps>;
1302
-
1303
- /**
1304
- * Default color scale for continuous color mapping
1305
- */
1306
- declare const DEFAULT_COLOR_SCALE: Array<[number, string]>;
1307
- /**
1308
- * Default category colors (cycle through these)
1309
- */
1310
- declare const DEFAULT_CATEGORY_COLORS: string[];
1311
- /**
1312
- * Default sizes
1313
- */
1314
- declare const DEFAULT_MARKER_SIZE = 8;
1315
- declare const DEFAULT_SIZE_RANGE: [number, number];
1316
- /**
1317
- * Default downsampling configuration
1318
- */
1319
- declare const DEFAULT_MAX_POINTS = 5000;
1320
- /**
1321
- * Constants for plot layout
1322
- */
1323
- declare const PLOT_CONSTANTS: {
1324
- MARGIN_LEFT: number;
1325
- MARGIN_RIGHT: number;
1326
- MARGIN_TOP: number;
1327
- MARGIN_BOTTOM: number;
1328
- TITLE_FONT_SIZE: number;
1329
- AXIS_TITLE_FONT_SIZE: number;
1330
- AXIS_TICK_FONT_SIZE: number;
1331
- LEGEND_FONT_SIZE: number;
1332
- FONT_FAMILY: string;
1333
- GRID_WIDTH: number;
1334
- AXIS_LINE_WIDTH: number;
1335
- AUTO_RANGE_PADDING: number;
1336
- };
1337
- /**
1338
- * Selection mode keyboard modifiers
1339
- */
1340
- declare const SELECTION_MODIFIERS: {
1341
- readonly ADD: "shiftKey";
1342
- readonly REMOVE: "ctrlKey";
1343
- readonly TOGGLE: "both";
1344
- };
1345
-
1346
- type MarkerSymbol = "circle" | "circle-open" | "circle-dot" | "circle-open-dot" | "square" | "square-open" | "square-dot" | "square-open-dot" | "diamond" | "diamond-open" | "diamond-dot" | "diamond-open-dot" | "cross" | "cross-open" | "cross-dot" | "cross-open-dot" | "x" | "x-open" | "x-dot" | "x-open-dot" | "triangle-up" | "triangle-up-open" | "triangle-up-dot" | "triangle-up-open-dot" | "triangle-down" | "triangle-down-open" | "triangle-down-dot" | "triangle-down-open-dot" | "triangle-left" | "triangle-left-open" | "triangle-left-dot" | "triangle-left-open-dot" | "triangle-right" | "triangle-right-open" | "triangle-right-dot" | "triangle-right-open-dot" | "triangle-ne" | "triangle-ne-open" | "triangle-ne-dot" | "triangle-ne-open-dot" | "triangle-se" | "triangle-se-open" | "triangle-se-dot" | "triangle-se-open-dot" | "triangle-sw" | "triangle-sw-open" | "triangle-sw-dot" | "triangle-sw-open-dot" | "triangle-nw" | "triangle-nw-open" | "triangle-nw-dot" | "triangle-nw-open-dot" | "pentagon" | "pentagon-open" | "pentagon-dot" | "pentagon-open-dot" | "hexagon" | "hexagon-open" | "hexagon-dot" | "hexagon-open-dot" | "hexagon2" | "hexagon2-open" | "hexagon2-dot" | "hexagon2-open-dot" | "octagon" | "octagon-open" | "octagon-dot" | "octagon-open-dot" | "star" | "star-open" | "star-dot" | "star-open-dot" | "hexagram" | "hexagram-open" | "hexagram-dot" | "hexagram-open-dot" | "star-triangle-up" | "star-triangle-up-open" | "star-triangle-up-dot" | "star-triangle-up-open-dot" | "star-triangle-down" | "star-triangle-down-open" | "star-triangle-down-dot" | "star-triangle-down-open-dot" | "star-square" | "star-square-open" | "star-square-dot" | "star-square-open-dot" | "star-diamond" | "star-diamond-open" | "star-diamond-dot" | "star-diamond-open-dot" | "diamond-tall" | "diamond-tall-open" | "diamond-tall-dot" | "diamond-tall-open-dot" | "diamond-wide" | "diamond-wide-open" | "diamond-wide-dot" | "diamond-wide-open-dot" | "hourglass" | "hourglass-open" | "bowtie" | "bowtie-open" | "circle-cross" | "circle-cross-open" | "circle-x" | "circle-x-open" | "square-cross" | "square-cross-open" | "square-x" | "square-x-open" | "diamond-cross" | "diamond-cross-open" | "diamond-x" | "diamond-x-open" | "cross-thin" | "cross-thin-open" | "x-thin" | "x-thin-open" | "asterisk" | "asterisk-open" | "hash" | "hash-open" | "hash-dot" | "hash-open-dot" | "y-up" | "y-up-open" | "y-down" | "y-down-open" | "y-left" | "y-left-open" | "y-right" | "y-right-open" | "line-ew" | "line-ew-open" | "line-ns" | "line-ns-open" | "line-ne" | "line-ne-open" | "line-nw" | "line-nw-open" | "arrow" | "arrow-open" | "arrow-wide" | "arrow-wide-open";
1347
- interface LineDataSeries {
1348
- x: number[];
1349
- y: number[];
1350
- name: string;
1351
- color: string;
1352
- symbol?: MarkerSymbol;
1353
- error_y?: {
1354
- type: "data";
1355
- array: number[];
1356
- visible: boolean;
1357
- };
1358
- }
1359
- type LineGraphVariant = "lines" | "lines+markers" | "lines+markers+error_bars";
1360
- type LineGraphProps = {
1361
- dataSeries: LineDataSeries[];
1362
- width?: number;
1363
- height?: number;
1364
- xRange?: [number, number];
1365
- yRange?: [number, number];
1366
- variant?: LineGraphVariant;
1367
- xTitle?: string;
1368
- yTitle?: string;
1369
- title?: string;
1370
- };
1371
- declare const LineGraph: React$1.FC<LineGraphProps>;
1372
-
1373
- interface MainProps {
1374
- userProfile: {
1375
- name: string;
1376
- avatar?: string;
1377
- };
1378
- hostname: string;
1379
- organization: {
1380
- name: string;
1381
- subtext?: string;
1382
- logo?: React$1.ReactNode;
1383
- };
1384
- }
1385
- declare const Main: React$1.FC<MainProps>;
1386
-
1387
- interface PieDataSeries {
1388
- labels: string[];
1389
- values: number[];
1390
- name: string;
1391
- colors?: string[];
1392
- }
1393
- type PieTextInfo = "none" | "label" | "percent" | "value" | "label+percent" | "label+value" | "value+percent" | "label+value+percent";
1394
- type PieChartProps = {
1395
- dataSeries: PieDataSeries;
1396
- width?: number;
1397
- height?: number;
1398
- title?: string;
1399
- textInfo?: PieTextInfo;
1400
- hole?: number;
1401
- rotation?: number;
1402
- };
1403
- declare const PieChart: React$1.FC<PieChartProps>;
1404
-
1405
- /**
1406
- * Plate format string constants for standard microplate configurations.
1407
- */
1408
- declare const PLATE_FORMAT_96: "96";
1409
- declare const PLATE_FORMAT_384: "384";
1410
- declare const PLATE_FORMAT_1536: "1536";
1411
- declare const PLATE_FORMAT_CUSTOM: "custom";
1412
- /**
1413
- * Plate format presets for standard microplate configurations.
1414
- * - `"96"`: 8 rows × 12 columns (wells A1-H12)
1415
- * - `"384"`: 16 rows × 24 columns (wells A1-P24)
1416
- * - `"1536"`: 32 rows × 48 columns (wells A1-AF48)
1417
- * - `"custom"`: User-defined dimensions via `rows` and `columns` props
1418
- */
1419
- type PlateFormat = typeof PLATE_FORMAT_96 | typeof PLATE_FORMAT_384 | typeof PLATE_FORMAT_1536 | typeof PLATE_FORMAT_CUSTOM;
1420
- /**
1421
- * Visualization mode for the plate map.
1422
- * - `"heatmap"`: Displays quantitative values as a continuous color gradient.
1423
- * Use for OD readings, fluorescence intensity, or other numeric measurements.
1424
- * - `"categorical"`: Displays well types with discrete colors.
1425
- * Use for showing sample types, control positions, or experimental conditions.
1426
- */
1427
- type VisualizationMode = "heatmap" | "categorical";
1428
- /**
1429
- * Color scale definition for the heatmap visualization mode.
1430
- *
1431
- * Can be:
1432
- * - A named Plotly colorscale (e.g., "Viridis", "Blues", "Hot")
1433
- * - An array of [position, color] tuples where position is 0-1
1434
- *
1435
- * @example
1436
- * // Named colorscale
1437
- * colorScale="Viridis"
1438
- *
1439
- * @example
1440
- * // Custom gradient
1441
- * colorScale={[
1442
- * [0, "#313695"], // Dark blue at min
1443
- * [0.5, "#ffffbf"], // Yellow at midpoint
1444
- * [1, "#a50026"], // Dark red at max
1445
- * ]}
1446
- */
1447
- type ColorScale = string | Array<[number, string]>;
1448
- /**
1449
- * Position for the legend display.
1450
- * - `"right"`: Legend appears to the right of the plate (default)
1451
- * - `"bottom"`: Legend appears below the plate
1452
- * - `"left"`: Legend appears to the left of the plate
1453
- * - `"top"`: Legend appears above the plate
1454
- */
1455
- type LegendPosition = "right" | "bottom" | "left" | "top";
1456
- /**
1457
- * Well data for individual wells.
1458
- *
1459
- * @example
1460
- * // Well with a single numeric value
1461
- * { wellId: "A1", values: { "Fluorescence": 1500 } }
1462
- *
1463
- * @example
1464
- * // Well with multiple values (creates multiple layers)
1465
- * { wellId: "A1", values: { "Raw": 1500, "Normalized": 0.85, "Status": "positive" } }
1466
- *
1467
- * @example
1468
- * // Well with tooltip-only data
1469
- * { wellId: "A1", values: { "Value": 500 }, tooltipData: { compound: "Drug A", concentration: "10µM" } }
1470
- */
1471
- interface WellData {
1472
- /**
1473
- * Well identifier in standard microplate notation.
1474
- * - Single letter + number for 96/384-well: "A1", "H12", "P24"
1475
- * - Double letter + number for 1536-well: "A1", "AA1", "AF48"
1476
- * Case-insensitive ("a1" and "A1" are equivalent).
1477
- */
1478
- wellId: string;
1479
- /**
1480
- * Named values for the well. Each key can become a visualization layer.
1481
- *
1482
- * - Numeric values: Displayed using heatmap visualization
1483
- * - String values: Displayed using categorical visualization
1484
- * - null: Empty/no data for that property
1485
- *
1486
- * All values are shown in the tooltip regardless of which layer is active.
1487
- *
1488
- * @example
1489
- * // Well with multiple measurement values (numeric)
1490
- * { wellId: "A1", values: { "Raw": 1500, "Normalized": 0.85, "Z-Score": 1.2 } }
1491
- *
1492
- * @example
1493
- * // Well with categorical values (string)
1494
- * { wellId: "A1", values: { "Status": "positive", "QC": "pass" } }
1495
- *
1496
- * @example
1497
- * // Mixed numeric and categorical
1498
- * { wellId: "A1", values: { "Fluorescence": 1500, "Status": "positive" } }
1499
- */
1500
- values?: Record<string, string | number | null>;
1501
- /**
1502
- * Optional data for tooltip display only (not visualized as layers).
1503
- * Keys become labels, values are displayed.
1504
- *
1505
- * @example
1506
- * { tooltipData: { sampleId: "S001", compound: "Drug A", concentration: "10µM" } }
1507
- */
1508
- tooltipData?: Record<string, unknown>;
1509
- }
1510
- /**
1511
- * Configuration for auto-generated layers when using WellData with `values`.
1512
- *
1513
- * When wells have multiple values (via the `values` property), layers are
1514
- * auto-generated from the unique keys. Use LayerConfig to customize the
1515
- * display name, visualization mode, and color scale for each layer.
1516
- *
1517
- * @example
1518
- * // Configure layers for wells with { values: { "Raw": 100, "Normalized": 0.5 } }
1519
- * const layerConfigs: LayerConfig[] = [
1520
- * { id: "Raw", name: "Raw Data", colorScale: "Blues" },
1521
- * { id: "Normalized", name: "Normalized Values", valueMin: 0, valueMax: 1 },
1522
- * ];
1523
- */
1524
- interface LayerConfig {
1525
- /** Layer ID (must match a key in WellData.values) */
1526
- id: string;
1527
- /** Display name for the layer (defaults to id if not provided) */
1528
- name?: string;
1529
- /** Visualization mode for this layer */
1530
- visualizationMode?: VisualizationMode;
1531
- /** Color scale for this layer (for heatmap mode) */
1532
- colorScale?: ColorScale;
1533
- /** Minimum value for color scaling */
1534
- valueMin?: number;
1535
- /** Maximum value for color scaling */
1536
- valueMax?: number;
1537
- /** Value unit suffix for tooltips and colorbar (e.g., "RFU", "%"). A space is automatically added before the unit. */
1538
- valueUnit?: string;
1539
- /**
1540
- * Custom colors for categorical visualization mode.
1541
- * Keys are category values (strings from `values`), values are hex colors.
1542
- * Merged with DEFAULT_CATEGORY_COLORS.
1543
- */
1544
- categoryColors?: Record<string, string>;
1545
- }
1546
- /**
1547
- * Configuration for legend styling and positioning.
1548
- *
1549
- * @example
1550
- * // Legend on the bottom with custom styling
1551
- * legendConfig={{
1552
- * position: "bottom",
1553
- * fontSize: 14,
1554
- * itemSpacing: 12,
1555
- * swatchSize: 20,
1556
- * }}
1557
- */
1558
- interface LegendConfig {
1559
- /**
1560
- * Position of the legend relative to the plate.
1561
- * @default "right"
1562
- */
1563
- position?: LegendPosition;
1564
- /**
1565
- * Font size for legend labels in pixels.
1566
- * @default 12
1567
- */
1568
- fontSize?: number;
1569
- /**
1570
- * Spacing between legend items in pixels.
1571
- * @default 4
1572
- */
1573
- itemSpacing?: number;
1574
- /**
1575
- * Size of the color swatch in pixels.
1576
- * @default 16
1577
- */
1578
- swatchSize?: number;
1579
- /**
1580
- * Title to display above the legend.
1581
- */
1582
- title?: string;
1583
- }
1584
- /**
1585
- * A region to highlight on the plate (e.g., controls, sample areas, empty wells)
1586
- */
1587
- interface PlateRegion {
1588
- /** Unique identifier for the region */
1589
- id: string;
1590
- /** Display name for the region (shown in legend) */
1591
- name: string;
1592
- /**
1593
- * Wells included in this region using range notation.
1594
- * Format: "StartWell:EndWell" (e.g., "A1:B6" for a rectangular block from A1 to B6)
1595
- */
1596
- wells: string;
1597
- /** Border color for the region highlight */
1598
- borderColor?: string;
1599
- /** Border width in pixels (default: 2) */
1600
- borderWidth?: number;
1601
- /** Optional fill color with transparency (e.g., "rgba(255, 0, 0, 0.1)") */
1602
- fillColor?: string;
1603
- }
1604
- /**
1605
- * Props for PlateMap component
1606
- */
1607
- interface PlateMapProps {
1608
- /**
1609
- * Well data array as WellData objects with wellId and values.
1610
- *
1611
- * If wells have multiple values (via `values` property), layers are
1612
- * auto-generated for each unique key, enabling layer toggling.
1613
- */
1614
- data?: WellData[];
1615
- /**
1616
- * Configuration for auto-generated layers when using WellData with `values`.
1617
- * Use this to customize display names, colors, and ranges for each layer.
1618
- * Only used when `data` contains wells with `values` property.
1619
- */
1620
- layerConfigs?: LayerConfig[];
1621
- /**
1622
- * Initial layer ID to display when the component mounts.
1623
- * If not provided, defaults to the first layer.
1624
- */
1625
- initialLayerId?: string;
1626
- /**
1627
- * Optional callback notified when the active layer changes.
1628
- * This is purely informational - the component manages layer state internally.
1629
- * Use this for logging, analytics, or syncing with external state.
1630
- */
1631
- onLayerChange?: (layerId: string) => void;
1632
- /** Plate format preset (default: "96") */
1633
- plateFormat?: PlateFormat;
1634
- /** Number of rows for custom format (default: 8 for 96-well, 16 for 384-well) */
1635
- rows?: number;
1636
- /** Number of columns for custom format (default: 12 for 96-well, 24 for 384-well) */
1637
- columns?: number;
1638
- /**
1639
- * Visualization mode (default: "heatmap")
1640
- * - "heatmap": Display quantitative values with color gradient
1641
- * - "categorical": Display well types with discrete colors
1642
- */
1643
- visualizationMode?: VisualizationMode;
1644
- /**
1645
- * Custom colors for categorical visualization mode.
1646
- * Keys are well types, values are hex colors.
1647
- * Merged with DEFAULT_CATEGORY_COLORS.
1648
- */
1649
- categoryColors?: Record<string, string>;
1650
- /**
1651
- * Regions to highlight on the plate (e.g., controls, sample areas, empty wells).
1652
- * Each region can specify wells and styling for visual distinction.
1653
- */
1654
- regions?: PlateRegion[];
1655
- /** Chart title */
1656
- title?: string;
1657
- /** X-axis title (e.g., "Columns") */
1658
- xTitle?: string;
1659
- /** Y-axis title (e.g., "Rows") */
1660
- yTitle?: string;
1661
- /** Custom x-axis labels (overrides auto-generated column numbers) */
1662
- xLabels?: string[] | number[];
1663
- /** Custom y-axis labels (overrides auto-generated row letters) */
1664
- yLabels?: string[] | number[];
1665
- /** Color scale for the heatmap (only used in heatmap mode) */
1666
- colorScale?: ColorScale;
1667
- /** Minimum value for color scale (auto-calculated if not provided) */
1668
- valueMin?: number;
1669
- /** Maximum value for color scale (auto-calculated if not provided) */
1670
- valueMax?: number;
1671
- /** Color for empty/null wells (default: "#f0f0f0") */
1672
- emptyWellColor?: string;
1673
- /** Show color bar legend for heatmap mode (default: true) */
1674
- showColorBar?: boolean;
1675
- /** Show categorical legend for categorical mode (default: true) */
1676
- showLegend?: boolean;
1677
- /**
1678
- * Configuration for legend positioning and styling.
1679
- * Applies to both heatmap colorbar and categorical legend.
1680
- *
1681
- * @example
1682
- * // Position legend at bottom with larger text
1683
- * legendConfig={{ position: "bottom", fontSize: 14 }}
1684
- */
1685
- legendConfig?: LegendConfig;
1686
- /** Chart width in pixels (default: 800) */
1687
- width?: number;
1688
- /** Chart height in pixels (default: 500) */
1689
- height?: number;
1690
- /** Number of decimal places for values (default: 0) */
1691
- precision?: number;
1692
- /**
1693
- * Marker shape for wells (default: "circle")
1694
- * - "circle": Round markers, ideal for plate-based data
1695
- * - "square": Square markers, ideal for generic heatmaps
1696
- */
1697
- markerShape?: "circle" | "square";
1698
- /**
1699
- * Callback when a well/cell is clicked.
1700
- * @param wellData - The full well data object including wellId, values, and tooltipData
1701
- */
1702
- onWellClick?: (wellData: WellData) => void;
1703
- }
1704
-
1705
- /**
1706
- * PlateMap component for visualizing well plate data as a heatmap or categorical display.
1707
- *
1708
- * **Supported Plate Formats:**
1709
- * - 96-well (8 rows × 12 columns, wells A1-H12)
1710
- * - 384-well (16 rows × 24 columns, wells A1-P24)
1711
- * - 1536-well (32 rows × 48 columns, wells A1-AF48)
1712
- * - Custom dimensions with user-specified rows/columns
1713
- *
1714
- * **Visualization Modes:**
1715
- * - `"heatmap"`: Continuous color gradient for quantitative values
1716
- * - `"categorical"`: Discrete colors for well types (sample, control, empty)
1717
- *
1718
- * **Features:**
1719
- * - Multiple data layers with independent visualization settings
1720
- * - Control region highlighting with borders and fill colors
1721
- * - Configurable color scales, tooltips, and click interactions
1722
- * - Support for WellData arrays with multi-layer visualization
1723
- *
1724
- * **Data Format:**
1725
- * - **WellData array**: `[{ wellId: "A1", values: { RFU: 100 }, tooltipData: {...} }, ...]`
1726
- *
1727
- */
1728
- declare const PlateMap: React$1.FC<PlateMapProps>;
1729
-
1730
- interface ScatterDataPoint {
1731
- x: number;
1732
- y: number;
1733
- additionalInfo?: Record<string, string | number>;
1734
- }
1735
- interface ScatterDataSeries {
1736
- x: number[];
1737
- y: number[];
1738
- name: string;
1739
- color: string;
1740
- }
1741
- interface ScatterGraphProps {
1742
- dataSeries: ScatterDataSeries[];
1743
- width?: number;
1744
- height?: number;
1745
- xRange?: [number, number];
1746
- yRange?: [number, number];
1747
- xTitle?: string;
1748
- yTitle?: string;
1749
- title?: string;
1750
- }
1751
- declare const ScatterGraph: React$1.FC<ScatterGraphProps>;
1752
-
1753
- /** Transformed search result (flattened from Elasticsearch hit format) */
1754
- interface SearchResult {
1755
- id: string;
1756
- _score?: number | null;
1757
- [key: string]: any;
1758
- }
1759
- /** Configuration for a search filter */
1760
- interface TdpSearchFilter {
1761
- key: string;
1762
- label: string;
1763
- options: DropdownOption[];
1764
- }
1765
- /** Configuration for column display */
1766
- interface TdpSearchColumn {
1767
- key: string;
1768
- header: string;
1769
- sortable?: boolean;
1770
- width?: string;
1771
- align?: "left" | "center" | "right";
1772
- render?: (value: any, row: SearchResult, index: number) => React$1.ReactNode;
1773
- }
1774
- /** Sort configuration */
1775
- interface TdpSearchSort {
1776
- field: string;
1777
- order: "asc" | "desc";
1778
- }
1779
- /** Props passed to the renderSearchBar render prop */
1780
- interface TdpSearchBarRenderProps {
1781
- query: string;
1782
- setQuery: (query: string) => void;
1783
- onSearch: () => void;
1784
- isLoading: boolean;
1785
- placeholder: string;
1786
- }
1787
- /** Props passed to the renderFilters render prop */
1788
- interface TdpFiltersRenderProps {
1789
- filters: TdpSearchFilter[];
1790
- filterValues: Record<string, string>;
1791
- onFilterChange: (key: string, value: string) => void;
1792
- }
1793
- /** Props passed to the renderResults render prop */
1794
- interface TdpResultsRenderProps {
1795
- results: SearchResult[];
1796
- total: number;
1797
- currentPage: number;
1798
- pageSize: number;
1799
- columns: TdpSearchColumn[];
1800
- onPageChange: (page: number) => void;
1801
- sortKey: string | null;
1802
- sortDirection: "asc" | "desc";
1803
- onSort: (key: string, direction: "asc" | "desc") => void;
1804
- }
1805
- /** Search connection configuration */
1806
- interface TdpSearchConfig {
1807
- /**
1808
- * When true, calls the TDP API directly from the browser
1809
- * When false/omitted, proxies the request through your backend `apiEndpoint`
1810
- */
1811
- standalone?: boolean;
1812
- /** TDP API base URL (required when standalone is true) */
1813
- baseUrl?: string;
1814
- /** Backend API endpoint for search (used when standalone is false). Defaults to '/api/search' */
1815
- apiEndpoint?: string;
1816
- /** Common | authentication token */
1817
- authToken?: string;
1818
- /** Common | organization slug */
1819
- orgSlug?: string;
1820
- }
1821
- /** Common props shared by both search modes */
1822
- interface CommonTdpSearchProps {
1823
- /** Default search term (default query) */
1824
- defaultQuery?: string;
1825
- /** Display fields/columns for the results table */
1826
- columns: TdpSearchColumn[];
1827
- /** UI filters displayed as dropdowns (for user selection) */
1828
- filters?: TdpSearchFilter[];
1829
- /** Default sort configuration (sort options) */
1830
- defaultSort?: TdpSearchSort;
1831
- /**
1832
- * Additional search parameters to pass to the SDK's searchEql method.
1833
- * Allows customization of expression, selectedPipelineIds, selectedSourceTypes, etc.
1834
- */
1835
- advancedSearchParams?: Partial<Omit<SearchEqlRequest, "searchTerm" | "from" | "size" | "sort" | "order">>;
1836
- /** Results per page. Defaults to 10 */
1837
- pageSize?: number;
1838
- /** Search input placeholder text */
1839
- searchPlaceholder?: string;
1840
- /** Custom CSS class */
1841
- className?: string;
1842
- /** Callback fired when search is executed with the query and results */
1843
- onSearch?: (query: SearchEqlRequest, results: SearchResult[]) => void;
1844
- /** Replace the entire search bar (input + button) */
1845
- renderSearchBar?: (props: TdpSearchBarRenderProps) => React$1.ReactNode;
1846
- /** Replace the filters row */
1847
- renderFilters?: (props: TdpFiltersRenderProps) => React$1.ReactNode;
1848
- /** Replace the results table (and pagination) */
1849
- renderResults?: (props: TdpResultsRenderProps) => React$1.ReactNode;
1850
- }
1851
- type TdpSearchProps = CommonTdpSearchProps & TdpSearchConfig;
1852
- type UseSearchConfig = {
1853
- pageSize: number;
1854
- } & TdpSearchConfig;
1855
- interface UseSearchResult {
1856
- results: SearchResult[];
1857
- total: number;
1858
- currentPage: number;
1859
- isLoading: boolean;
1860
- error: string | null;
1861
- executeSearch: (searchRequest: Omit<SearchEqlRequest, "from" | "size">, page?: number) => Promise<SearchResult[]>;
1862
- }
1863
-
1864
- /**
1865
- * TdpSearch Component
1866
- *
1867
- * A reusable search component for querying the TDP.
1868
- *
1869
- * @example
1870
- * ```tsx
1871
- * <TdpSearch
1872
- * columns={[
1873
- * { key: "id", header: "ID" },
1874
- * { key: "filePath", header: "File Path", sortable: true }
1875
- * ]}
1876
- * defaultQuery="sample-data"
1877
- * pageSize={20}
1878
- * />
1879
- * ```
1880
- */
1881
- declare const TdpSearch: React$1.FC<TdpSearchProps>;
1882
-
1883
- declare function useSearch(config: UseSearchConfig): UseSearchResult;
1884
-
1885
- /**
1886
- * Centralized color system for TetraScience UI
1887
- * This utility provides access to CSS variables defined in colors.css
1888
- * while maintaining TypeScript support and IntelliSense
1889
- */
1890
- /**
1891
- * Centralized color tokens that map to CSS variables
1892
- * This provides TypeScript support while leveraging CSS custom properties
1893
- */
1894
- declare const COLORS: {
1895
- readonly BLACK_50: string;
1896
- readonly BLACK_100: string;
1897
- readonly BLACK_200: string;
1898
- readonly BLACK_300: string;
1899
- readonly BLACK_400: string;
1900
- readonly BLACK_500: string;
1901
- readonly BLACK_600: string;
1902
- readonly BLACK_700: string;
1903
- readonly BLACK_800: string;
1904
- readonly BLACK_900: string;
1905
- readonly BLACK: string;
1906
- readonly BLACK_OPACITY_20: "rgba(26, 26, 26, 0.2)";
1907
- readonly WHITE_50: string;
1908
- readonly WHITE_100: string;
1909
- readonly WHITE_200: string;
1910
- readonly WHITE_300: string;
1911
- readonly WHITE_400: string;
1912
- readonly WHITE_500: string;
1913
- readonly WHITE_600: string;
1914
- readonly WHITE_700: string;
1915
- readonly WHITE_800: string;
1916
- readonly WHITE_900: string;
1917
- readonly WHITE: string;
1918
- readonly BLUE_50: string;
1919
- readonly BLUE_100: string;
1920
- readonly BLUE_200: string;
1921
- readonly BLUE_300: string;
1922
- readonly BLUE_400: string;
1923
- readonly BLUE_500: string;
1924
- readonly BLUE_600: string;
1925
- readonly BLUE_700: string;
1926
- readonly BLUE_800: string;
1927
- readonly BLUE_900: string;
1928
- readonly BLUE: string;
1929
- readonly GREY_50: string;
1930
- readonly GREY_100: string;
1931
- readonly GREY_200: string;
1932
- readonly GREY_300: string;
1933
- readonly GREY_400: string;
1934
- readonly GREY_500: string;
1935
- readonly GREY_600: string;
1936
- readonly GREY_700: string;
1937
- readonly GREY_800: string;
1938
- readonly GREY_900: string;
1939
- readonly GREY: string;
1940
- readonly ORANGE: string;
1941
- readonly RED: string;
1942
- readonly GREEN: string;
1943
- readonly YELLOW: string;
1944
- readonly PURPLE: string;
1945
- readonly GREEN_BG: string;
1946
- readonly GREEN_SUCCESS: string;
1947
- readonly ORANGE_BG: string;
1948
- readonly ORANGE_CAUTION: string;
1949
- readonly RED_BG: string;
1950
- readonly RED_ERROR: string;
1951
- readonly GRAPH_SECONDARY_BROWN: string;
1952
- readonly GRAPH_SECONDARY_PINK: string;
1953
- readonly GRAPH_SECONDARY_TEAL: string;
1954
- readonly GRAPH_SECONDARY_DARK_BLUE: string;
1955
- readonly GRAPH_SECONDARY_BLACK: string;
1956
- readonly GRAPH_SECONDARY_GREY: string;
1957
- };
1958
- /**
1959
- * Chart color palette for consistent graph styling
1960
- * Uses the primary graph colors from the design system
1961
- */
1962
- declare const CHART_COLORS: readonly [string, string, string, string, string, string, string, string, string, string, string, string];
1963
- type ColorToken = keyof typeof COLORS;
1964
-
1965
- /**
1966
- * Theme type definitions for TetraScience UI Kit
1967
- */
1968
- interface ThemeColors {
1969
- primary?: string;
1970
- primaryHover?: string;
1971
- primaryActive?: string;
1972
- background?: string;
1973
- text?: string;
1974
- border?: string;
1975
- cardBackground?: string;
1976
- cardBorder?: string;
1977
- }
1978
- interface ThemeRadius {
1979
- small?: string;
1980
- medium?: string;
1981
- large?: string;
1982
- }
1983
- interface ThemeSpacing {
1984
- small?: string;
1985
- medium?: string;
1986
- large?: string;
1987
- }
1988
- interface Theme {
1989
- colors?: ThemeColors;
1990
- radius?: ThemeRadius;
1991
- spacing?: ThemeSpacing;
1992
- }
1993
- declare const defaultTheme: Theme;
1994
-
1995
- interface ThemeProviderProps {
1996
- theme?: Theme;
1997
- children: React$1.ReactNode;
1998
- }
1999
- /**
2000
- * ThemeProvider component that sets CSS custom properties for theming
2001
- *
2002
- * This provider merges the provided theme with the default theme and
2003
- * sets CSS variables on a wrapper element, making them available to both
2004
- * styled-components and SCSS styles within the provider's scope.
2005
- *
2006
- * @example
2007
- * ```tsx
2008
- * import { ThemeProvider, Button } from '@tetrascience-npm/tetrascience-react-ui';
2009
- *
2010
- * const customTheme = {
2011
- * colors: {
2012
- * primary: '#FF0000',
2013
- * },
2014
- * radius: {
2015
- * medium: '12px',
2016
- * }
2017
- * };
2018
- *
2019
- * <ThemeProvider theme={customTheme}>
2020
- * <Button>Click me</Button>
2021
- * </ThemeProvider>
2022
- * ```
2023
- */
2024
- declare const ThemeProvider: React$1.FC<ThemeProviderProps>;
2025
-
2026
- export { AppHeader, AppLayout, AreaGraph, AssistantModal, Badge, BarGraph, Boxplot, Button, ButtonControl, ButtonControlGroup, CHART_COLORS, COLORS, Card, CardSidebar, Checkbox, Chromatogram, ChromatogramChart, CodeEditor, CodeScriptEditorButton, DEFAULT_CATEGORY_COLORS, DEFAULT_COLOR_SCALE, DEFAULT_MARKER_SIZE, DEFAULT_MAX_POINTS, DEFAULT_SIZE_RANGE, DotPlot, Dropdown, ErrorAlert, FormField, Heatmap, Histogram, Icon, IconName, Input, InteractiveScatter, Label, LaunchContent, LineGraph, Main, MarkdownDisplay, Menu, MenuItem, Modal, Navbar, PLOT_CONSTANTS, PieChart, PlateMap, PopConfirm, ProtocolConfiguration, ProtocolYamlCard, PythonEditorModal, SELECTION_MODIFIERS, ScatterGraph, SelectField, Sidebar, SupportiveText, TDPLink, Tab, TabGroup, Table, TableCell, TableHeaderCell, TdpNavigationContext, TdpNavigationProvider, TdpSearch, Textarea, ThemeProvider, Toast, ToastManager, Toggle, Tooltip, buildTdpUrl, defaultTheme, getTdpBaseUrlFromReferrer, navigateToTdpUrl, tdpPaths, useSearch, useTdpNavigation, useTdpNavigationContext };
2027
- export type { AppHeaderProps, AppLayoutProps, AreaDataSeries, AreaGraphProps, AreaGraphVariant, AssistantModalProps, AxisConfig, BadgeProps, BarDataSeries, BarGraphProps, BarGraphVariant, BaselineCorrectionMethod, BoundaryMarkerStyle, BoxDataSeries, BoxplotProps, ButtonControlGroupProps, ButtonControlProps, ButtonProps, CardProps, CardSidebarProps, CheckboxProps, ChromatogramChartProps, ChromatogramProps, ChromatogramSeries, CodeEditorProps, CodeScriptEditorButtonProps, ColorMapping, ColorScale, ColorToken, DotPlotDataSeries, DotPlotProps, DotPlotVariant, DownsamplingConfig, DropdownOption, DropdownProps, ErrorAlertProps, FormFieldProps, HeatmapProps, HistogramDataSeries, HistogramProps, IconProps, IconsProps, InputProps, InteractiveScatterProps, LabelProps, LaunchContentProps, LineDataSeries, LineGraphProps, LineGraphVariant, MainProps, MarkdownDisplayProps, MarkerShape, MarkerSymbol, MenuItemProps, MenuProps, ModalProps, NavbarProps, PeakAnnotation, PeakData, PeakDetectionOptions, PieChartProps, PieDataSeries, PieTextInfo, PlateFormat, PlateMapProps, PopConfirmProps, ProtocolConfigurationProps, ProtocolYamlCardProps, PythonEditorModalProps, ScaleType, ScatterDataPoint, ScatterDataSeries, ScatterGraphProps, ScatterPoint, SearchResult, SelectFieldProps, SelectionEvent, SelectionMode, SelectionState, ShapeMapping, SidebarProps, SizeMapping, SupportiveTextProps, TDPLinkProps, TabGroupProps, TabProps, TabSize, TableCellProps, TableColumn, TableHeaderCellProps, TableProps, TdpFiltersRenderProps, TdpNavigationContextValue, TdpNavigationOptions, TdpNavigationProviderProps, TdpResultsRenderProps, TdpSearchBarRenderProps, TdpSearchColumn, TdpSearchConfig, TdpSearchFilter, TdpSearchProps, TdpSearchSort, TextareaProps, Theme, ThemeColors, ThemeProviderProps, ThemeRadius, ThemeSpacing, ToastContainerProps, ToastManagerProps, ToastProps, ToastType, ToggleProps, TooltipConfig, TooltipProps, UseSearchConfig, UseSearchResult, UseTdpNavigationOptions, UseTdpNavigationReturn, WellData };
1
+ import { Accordion as Accordion_2 } from 'radix-ui';
2
+ import { AlertDialog as AlertDialog_2 } from 'radix-ui';
3
+ import { AspectRatio as AspectRatio_2 } from 'radix-ui';
4
+ import { Avatar as Avatar_2 } from 'radix-ui';
5
+ import { Checkbox as Checkbox_2 } from 'radix-ui';
6
+ import { ClassProp } from 'class-variance-authority/types';
7
+ import { Collapsible as Collapsible_2 } from 'radix-ui';
8
+ import { Combobox as Combobox_2 } from '@base-ui/react';
9
+ import { Command as Command_2 } from 'cmdk';
10
+ import { ContextMenu as ContextMenu_2 } from 'radix-ui';
11
+ import { DayButton } from 'react-day-picker';
12
+ import { DayPicker } from 'react-day-picker';
13
+ import { default as default_2 } from 'react';
14
+ import { default as default_3 } from 'embla-carousel-react';
15
+ import { Dialog as Dialog_2 } from 'radix-ui';
16
+ import { Drawer as Drawer_2 } from 'vaul';
17
+ import { DropdownMenu as DropdownMenu_2 } from 'radix-ui';
18
+ import { HoverCard as HoverCard_2 } from 'radix-ui';
19
+ import { JSX } from 'react/jsx-runtime';
20
+ import { Label as Label_2 } from 'radix-ui';
21
+ import { Locale } from 'react-day-picker';
22
+ import { LucideIcon } from 'lucide-react';
23
+ import { Menubar as Menubar_2 } from 'radix-ui';
24
+ import { NavigationMenu as NavigationMenu_2 } from 'radix-ui';
25
+ import { OnChange } from '@monaco-editor/react';
26
+ import { OTPInput } from 'input-otp';
27
+ import { RadioGroup as RadioGroup_2 } from 'radix-ui';
28
+ import * as React_2 from 'react';
29
+ import * as ResizablePrimitive from 'react-resizable-panels';
30
+ import { ScrollArea as ScrollArea_2 } from 'radix-ui';
31
+ import { SearchEqlRequest } from '@tetrascience-npm/ts-connectors-sdk';
32
+ import { Select as Select_2 } from 'radix-ui';
33
+ import { Separator as Separator_2 } from 'radix-ui';
34
+ import { Slider as Slider_2 } from 'radix-ui';
35
+ import { Switch as Switch_2 } from 'radix-ui';
36
+ import { Tabs as Tabs_2 } from 'radix-ui';
37
+ import { ToasterProps } from 'sonner';
38
+ import { Toggle as Toggle_2 } from 'radix-ui';
39
+ import { ToggleGroup as ToggleGroup_2 } from 'radix-ui';
40
+ import { Tooltip as Tooltip_2 } from 'radix-ui';
41
+ import { UseEmblaCarouselType } from 'embla-carousel-react';
42
+ import { VariantProps } from 'class-variance-authority';
43
+
44
+ export declare function Accordion({ className, ...props }: React_2.ComponentProps<typeof Accordion_2.Root>): JSX.Element;
45
+
46
+ export declare function AccordionContent({ className, children, ...props }: React_2.ComponentProps<typeof Accordion_2.Content>): JSX.Element;
47
+
48
+ export declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof Accordion_2.Item>): JSX.Element;
49
+
50
+ export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof Accordion_2.Trigger>): JSX.Element;
51
+
52
+ export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
53
+
54
+ export declare function AlertAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
55
+
56
+ export declare function AlertDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
57
+
58
+ export declare function AlertDialog({ ...props }: React_2.ComponentProps<typeof AlertDialog_2.Root>): JSX.Element;
59
+
60
+ export declare function AlertDialogAction({ className, variant, size, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Action> & Pick<React_2.ComponentProps<typeof Button>, "variant" | "size">): JSX.Element;
61
+
62
+ export declare function AlertDialogCancel({ className, variant, size, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Cancel> & Pick<React_2.ComponentProps<typeof Button>, "variant" | "size">): JSX.Element;
63
+
64
+ export declare function AlertDialogContent({ className, size, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Content> & {
65
+ size?: "default" | "sm";
66
+ }): JSX.Element;
67
+
68
+ export declare function AlertDialogDescription({ className, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Description>): JSX.Element;
69
+
70
+ export declare function AlertDialogFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
71
+
72
+ export declare function AlertDialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
73
+
74
+ export declare function AlertDialogMedia({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
75
+
76
+ export declare function AlertDialogOverlay({ className, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Overlay>): JSX.Element;
77
+
78
+ export declare function AlertDialogPortal({ ...props }: React_2.ComponentProps<typeof AlertDialog_2.Portal>): JSX.Element;
79
+
80
+ export declare function AlertDialogTitle({ className, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Title>): JSX.Element;
81
+
82
+ export declare function AlertDialogTrigger({ ...props }: React_2.ComponentProps<typeof AlertDialog_2.Trigger>): JSX.Element;
83
+
84
+ export declare function AlertTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
85
+
86
+ declare const alertVariants: (props?: ({
87
+ variant?: "default" | "destructive" | null | undefined;
88
+ } & ClassProp) | undefined) => string;
89
+
90
+ export declare const AppHeader: default_2.FC<AppHeaderProps>;
91
+
92
+ export declare interface AppHeaderProps {
93
+ hostname: string;
94
+ userProfile: UserProfileProps;
95
+ onHomeClick?: () => void;
96
+ onSettingsClick?: () => void;
97
+ onUserProfileClick?: () => void;
98
+ }
99
+
100
+ export declare const AppLayout: default_2.FC<AppLayoutProps>;
101
+
102
+ export declare interface AppLayoutProps {
103
+ userProfile: {
104
+ name: string;
105
+ avatar?: string;
106
+ };
107
+ hostname: string;
108
+ organization: {
109
+ name: string;
110
+ subtext?: string;
111
+ logo?: default_2.ReactNode;
112
+ };
113
+ children?: default_2.ReactNode;
114
+ }
115
+
116
+ export declare const AppSidebar: default_2.FC<SidebarProps>;
117
+
118
+ export declare interface AreaDataSeries {
119
+ x: number[];
120
+ y: number[];
121
+ name: string;
122
+ color: string;
123
+ fill?: "tozeroy" | "tonexty" | "toself";
124
+ }
125
+
126
+ export declare const AreaGraph: default_2.FC<AreaGraphProps>;
127
+
128
+ export declare interface AreaGraphProps {
129
+ dataSeries: AreaDataSeries[];
130
+ width?: number;
131
+ height?: number;
132
+ xRange?: [number, number];
133
+ yRange?: [number, number];
134
+ variant?: AreaGraphVariant;
135
+ xTitle?: string;
136
+ yTitle?: string;
137
+ title?: string;
138
+ }
139
+
140
+ export declare type AreaGraphVariant = "normal" | "stacked";
141
+
142
+ export declare function AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatio_2.Root>): JSX.Element;
143
+
144
+ export declare const AssistantModal: default_2.FC<AssistantModalProps>;
145
+
146
+ export declare interface AssistantModalProps {
147
+ open: boolean;
148
+ onOpenChange: (open: boolean) => void;
149
+ title: string;
150
+ prompt: string;
151
+ initialCode?: string;
152
+ userQuery?: string;
153
+ onUserQueryChange?: (value: string) => void;
154
+ onCopy: (code: string) => void;
155
+ onLaunch: (code: string) => void;
156
+ onSend: (input: string) => void;
157
+ onCancel?: () => void;
158
+ }
159
+
160
+ export declare function Avatar({ className, size, ...props }: React_2.ComponentProps<typeof Avatar_2.Root> & {
161
+ size?: "default" | "sm" | "lg";
162
+ }): JSX.Element;
163
+
164
+ export declare function AvatarBadge({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
165
+
166
+ export declare function AvatarFallback({ className, ...props }: React_2.ComponentProps<typeof Avatar_2.Fallback>): JSX.Element;
167
+
168
+ export declare function AvatarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
169
+
170
+ export declare function AvatarGroupCount({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
171
+
172
+ export declare function AvatarImage({ className, ...props }: React_2.ComponentProps<typeof Avatar_2.Image>): JSX.Element;
173
+
174
+ export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
175
+ asChild?: boolean;
176
+ }): JSX.Element;
177
+
178
+ export declare const badgeVariants: (props?: ({
179
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
180
+ } & ClassProp) | undefined) => string;
181
+
182
+ export declare interface BarDataSeries {
183
+ x: number[];
184
+ y: number[];
185
+ name: string;
186
+ color: string;
187
+ error_y?: {
188
+ type: "data";
189
+ array: number[];
190
+ visible: boolean;
191
+ };
192
+ }
193
+
194
+ export declare const BarGraph: default_2.FC<BarGraphProps>;
195
+
196
+ export declare interface BarGraphProps {
197
+ dataSeries: BarDataSeries[];
198
+ width?: number;
199
+ height?: number;
200
+ xRange?: [number, number];
201
+ yRange?: [number, number];
202
+ variant?: BarGraphVariant;
203
+ xTitle?: string;
204
+ yTitle?: string;
205
+ title?: string;
206
+ barWidth?: number;
207
+ }
208
+
209
+ export declare type BarGraphVariant = "group" | "stack" | "overlay";
210
+
211
+ /**
212
+ * Baseline correction method
213
+ */
214
+ export declare type BaselineCorrectionMethod = "none" | "linear" | "rolling";
215
+
216
+ /**
217
+ * Global boundary marker style setting
218
+ * - "none": No boundary markers displayed
219
+ * - "enabled": Show boundary markers using per-peak settings (startMarker/endMarker) or defaults
220
+ */
221
+ export declare type BoundaryMarkerStyle = "none" | "enabled";
222
+
223
+ /**
224
+ * Individual boundary marker type for a single boundary point
225
+ */
226
+ declare type BoundaryMarkerType = "none" | "triangle" | "diamond";
227
+
228
+ export declare interface BoxDataSeries {
229
+ y: number[];
230
+ name: string;
231
+ color: string;
232
+ x?: string[] | number[];
233
+ boxpoints?: "all" | "outliers" | "suspectedoutliers" | false;
234
+ jitter?: number;
235
+ pointpos?: number;
236
+ }
237
+
238
+ export declare const Boxplot: default_2.FC<BoxplotProps>;
239
+
240
+ export declare interface BoxplotProps {
241
+ dataSeries: BoxDataSeries[];
242
+ width?: number;
243
+ height?: number;
244
+ xRange?: [number, number];
245
+ yRange?: [number, number];
246
+ xTitle?: string;
247
+ yTitle?: string;
248
+ title?: string;
249
+ showPoints?: boolean;
250
+ }
251
+
252
+ export declare function Breadcrumb({ className, ...props }: React_2.ComponentProps<"nav">): JSX.Element;
253
+
254
+ export declare function BreadcrumbEllipsis({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
255
+
256
+ export declare function BreadcrumbItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
257
+
258
+ export declare function BreadcrumbLink({ asChild, className, ...props }: React_2.ComponentProps<"a"> & {
259
+ asChild?: boolean;
260
+ }): JSX.Element;
261
+
262
+ export declare function BreadcrumbList({ className, ...props }: React_2.ComponentProps<"ol">): JSX.Element;
263
+
264
+ export declare function BreadcrumbPage({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
265
+
266
+ export declare function BreadcrumbSeparator({ children, className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
267
+
268
+ /**
269
+ * Construct a full TDP URL by joining a base URL with a path.
270
+ *
271
+ * @example
272
+ * buildTdpUrl("https://tetrascience.com/my-org", "/file/abc-123")
273
+ * // "https://tetrascience.com/my-org/file/abc-123"
274
+ *
275
+ * @param baseUrl - The TDP base URL (origin + optional org prefix)
276
+ * @param path - The TDP page path (e.g., "/file/abc-123")
277
+ * @returns The full TDP URL, or null if construction fails
278
+ */
279
+ export declare function buildTdpUrl(baseUrl: string, path: string): string | null;
280
+
281
+ export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
282
+ asChild?: boolean;
283
+ }): JSX.Element;
284
+
285
+ export declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): JSX.Element;
286
+
287
+ export declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): JSX.Element;
288
+
289
+ export declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<"div"> & {
290
+ asChild?: boolean;
291
+ }): JSX.Element;
292
+
293
+ export declare const buttonGroupVariants: (props?: ({
294
+ orientation?: "horizontal" | "vertical" | null | undefined;
295
+ } & ClassProp) | undefined) => string;
296
+
297
+ export declare const buttonVariants: (props?: ({
298
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
299
+ size?: "default" | "sm" | "lg" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
300
+ } & ClassProp) | undefined) => string;
301
+
302
+ export declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React_2.ComponentProps<typeof DayPicker> & {
303
+ buttonVariant?: React_2.ComponentProps<typeof Button>["variant"];
304
+ }): JSX.Element;
305
+
306
+ export declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React_2.ComponentProps<typeof DayButton> & {
307
+ locale?: Partial<Locale>;
308
+ }): JSX.Element;
309
+
310
+ export declare function Card({ className, size, ...props }: React_2.ComponentProps<"div"> & {
311
+ size?: "default" | "sm";
312
+ }): JSX.Element;
313
+
314
+ export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
315
+
316
+ export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
317
+
318
+ export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
319
+
320
+ export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
321
+
322
+ export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
323
+
324
+ export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
325
+
326
+ export declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React_2.ComponentProps<"div"> & CarouselProps): JSX.Element;
327
+
328
+ export declare type CarouselApi = UseEmblaCarouselType[1];
329
+
330
+ export declare function CarouselContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
331
+
332
+ declare type CarouselContextProps = {
333
+ carouselRef: ReturnType<typeof default_3>[0];
334
+ api: ReturnType<typeof default_3>[1];
335
+ scrollPrev: () => void;
336
+ scrollNext: () => void;
337
+ canScrollPrev: boolean;
338
+ canScrollNext: boolean;
339
+ } & CarouselProps;
340
+
341
+ export declare function CarouselItem({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
342
+
343
+ export declare function CarouselNext({ className, variant, size, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
344
+
345
+ declare type CarouselOptions = UseCarouselParameters[0];
346
+
347
+ declare type CarouselPlugin = UseCarouselParameters[1];
348
+
349
+ export declare function CarouselPrevious({ className, variant, size, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
350
+
351
+ declare type CarouselProps = {
352
+ opts?: CarouselOptions;
353
+ plugins?: CarouselPlugin;
354
+ orientation?: "horizontal" | "vertical";
355
+ setApi?: (api: CarouselApi) => void;
356
+ };
357
+
358
+ export declare function Checkbox({ className, ...props }: React_2.ComponentProps<typeof Checkbox_2.Root>): JSX.Element;
359
+
360
+ export declare const Chromatogram: default_2.FC<ChromatogramProps>;
361
+
362
+ export declare const ChromatogramChart: default_2.FC<ChromatogramChartProps>;
363
+
364
+ /**
365
+ * Props for ChromatogramChart component
366
+ */
367
+ export declare interface ChromatogramChartProps {
368
+ /** Array of data series to display */
369
+ series: ChromatogramSeries[];
370
+ /** Chart width in pixels */
371
+ width?: number;
372
+ /** Chart height in pixels */
373
+ height?: number;
374
+ /** Chart title */
375
+ title?: string;
376
+ /** X-axis label */
377
+ xAxisTitle?: string;
378
+ /** Y-axis label */
379
+ yAxisTitle?: string;
380
+ /** Peak annotations to display */
381
+ annotations?: PeakAnnotation[];
382
+ /** Fixed x-axis range [min, max] */
383
+ xRange?: [number, number];
384
+ /** Fixed y-axis range [min, max] */
385
+ yRange?: [number, number];
386
+ /** Show legend (default: true) */
387
+ showLegend?: boolean;
388
+ /** Show vertical grid lines (default: true) */
389
+ showGridX?: boolean;
390
+ /** Show horizontal grid lines (default: true) */
391
+ showGridY?: boolean;
392
+ /** Show data point markers (default: false) */
393
+ showMarkers?: boolean;
394
+ /** Marker size when showMarkers is true (default: 4) */
395
+ markerSize?: number;
396
+ /** Show crosshairs on hover (default: false) */
397
+ showCrosshairs?: boolean;
398
+ /** Baseline correction method (default: "none") */
399
+ baselineCorrection?: BaselineCorrectionMethod;
400
+ /** Rolling baseline window size (default: 50) */
401
+ baselineWindowSize?: number;
402
+ /** Peak detection algorithm options - if provided, enables automatic peak detection */
403
+ peakDetectionOptions?: PeakDetectionOptions;
404
+ /** Show peak areas as annotations (default: false) */
405
+ showPeakAreas?: boolean;
406
+ /**
407
+ * Show peak boundary markers (default: "none").
408
+ * - "none": No boundary markers displayed
409
+ * - "enabled": Show boundary markers using per-peak startMarker/endMarker settings
410
+ *
411
+ * Per-peak marker defaults: startMarker="triangle", endMarker="diamond"
412
+ */
413
+ boundaryMarkers?: BoundaryMarkerStyle;
414
+ /**
415
+ * Retention time threshold for grouping overlapping annotations (default: 0.4 minutes).
416
+ * Peaks closer than this threshold will have their annotations staggered to avoid overlap.
417
+ */
418
+ annotationOverlapThreshold?: number;
419
+ /** Show export button in modebar (default: true) */
420
+ showExportButton?: boolean;
421
+ }
422
+
423
+ export declare interface ChromatogramProps {
424
+ data?: PeakData[];
425
+ width?: number;
426
+ height?: number;
427
+ positionInterval?: number;
428
+ colorA?: string;
429
+ colorT?: string;
430
+ colorG?: string;
431
+ colorC?: string;
432
+ }
433
+
434
+ /**
435
+ * Type definitions for ChromatogramChart component
436
+ */
437
+ /**
438
+ * Data series for chromatogram visualization
439
+ */
440
+ export declare interface ChromatogramSeries {
441
+ /** Retention time values (x-axis) */
442
+ x: number[];
443
+ /** Signal intensity values (y-axis) */
444
+ y: number[];
445
+ /** Series label for legend */
446
+ name: string;
447
+ /** Optional color override (auto-assigned from CHART_COLORS if not provided) */
448
+ color?: string;
449
+ /** Optional metadata for the trace (displayed in tooltip on hover) */
450
+ metadata?: Record<string, unknown>;
451
+ }
452
+
453
+ export declare const CodeEditor: default_2.FC<CodeEditorProps>;
454
+
455
+ export declare interface CodeEditorProps {
456
+ value: string;
457
+ onChange: OnChange;
458
+ language?: string;
459
+ theme?: "light" | "dark";
460
+ height?: string | number;
461
+ width?: string | number;
462
+ options?: Record<string, unknown>;
463
+ label?: string;
464
+ onCopy?: (code: string) => void;
465
+ onLaunch?: (code: string) => void;
466
+ disabled?: boolean;
467
+ }
468
+
469
+ /**
470
+ * Renders an 'Edit code' button that opens a modal with a Monaco code editor.
471
+ */
472
+ export declare const CodeScriptEditorButton: ({ initialCode, onCodeSave, language, buttonText, modalTitle, buttonProps, modalProps, disabled, }: CodeScriptEditorButtonProps) => JSX.Element;
473
+
474
+ export declare interface CodeScriptEditorButtonProps {
475
+ initialCode?: string;
476
+ onCodeSave?: (newCode: string) => void;
477
+ language?: string;
478
+ buttonText?: string;
479
+ modalTitle?: string;
480
+ buttonProps?: React.ComponentProps<typeof Button>;
481
+ modalProps?: Omit<React.ComponentProps<typeof Dialog>, "open" | "defaultOpen" | "onOpenChange">;
482
+ disabled?: boolean;
483
+ isEditMode?: boolean;
484
+ }
485
+
486
+ export declare function Collapsible({ ...props }: React.ComponentProps<typeof Collapsible_2.Root>): JSX.Element;
487
+
488
+ export declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof Collapsible_2.CollapsibleContent>): JSX.Element;
489
+
490
+ export declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible_2.CollapsibleTrigger>): JSX.Element;
491
+
492
+ /**
493
+ * Color scale definition for the heatmap visualization mode.
494
+ *
495
+ * Can be:
496
+ * - A named Plotly colorscale (e.g., "Viridis", "Blues", "Hot")
497
+ * - An array of [position, color] tuples where position is 0-1
498
+ *
499
+ * @example
500
+ * // Named colorscale
501
+ * colorScale="Viridis"
502
+ *
503
+ * @example
504
+ * // Custom gradient
505
+ * colorScale={[
506
+ * [0, "#313695"], // Dark blue at min
507
+ * [0.5, "#ffffbf"], // Yellow at midpoint
508
+ * [1, "#a50026"], // Dark red at max
509
+ * ]}
510
+ */
511
+ export declare type ColorScale = string | Array<[number, string]>;
512
+
513
+ export declare const Combobox: typeof Combobox_2.Root;
514
+
515
+ export declare function ComboboxChip({ className, children, showRemove, ...props }: Combobox_2.Chip.Props & {
516
+ showRemove?: boolean;
517
+ }): JSX.Element;
518
+
519
+ export declare function ComboboxChips({ className, ...props }: React_2.ComponentPropsWithRef<typeof Combobox_2.Chips> & Combobox_2.Chips.Props): JSX.Element;
520
+
521
+ export declare function ComboboxChipsInput({ className, ...props }: Combobox_2.Input.Props): JSX.Element;
522
+
523
+ export declare function ComboboxCollection({ ...props }: Combobox_2.Collection.Props): JSX.Element;
524
+
525
+ export declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: Combobox_2.Popup.Props & Pick<Combobox_2.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">): JSX.Element;
526
+
527
+ export declare function ComboboxEmpty({ className, ...props }: Combobox_2.Empty.Props): JSX.Element;
528
+
529
+ export declare function ComboboxGroup({ className, ...props }: Combobox_2.Group.Props): JSX.Element;
530
+
531
+ export declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: Combobox_2.Input.Props & {
532
+ showTrigger?: boolean;
533
+ showClear?: boolean;
534
+ }): JSX.Element;
535
+
536
+ export declare function ComboboxItem({ className, children, ...props }: Combobox_2.Item.Props): JSX.Element;
537
+
538
+ export declare function ComboboxLabel({ className, ...props }: Combobox_2.GroupLabel.Props): JSX.Element;
539
+
540
+ export declare function ComboboxList({ className, ...props }: Combobox_2.List.Props): JSX.Element;
541
+
542
+ export declare function ComboboxSeparator({ className, ...props }: Combobox_2.Separator.Props): JSX.Element;
543
+
544
+ export declare function ComboboxTrigger({ className, children, ...props }: Combobox_2.Trigger.Props): JSX.Element;
545
+
546
+ export declare function ComboboxValue({ ...props }: Combobox_2.Value.Props): JSX.Element;
547
+
548
+ export declare function Command({ className, ...props }: React_2.ComponentProps<typeof Command_2>): JSX.Element;
549
+
550
+ export declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React_2.ComponentProps<typeof Dialog> & {
551
+ title?: string;
552
+ description?: string;
553
+ className?: string;
554
+ showCloseButton?: boolean;
555
+ }): JSX.Element;
556
+
557
+ export declare function CommandEmpty({ className, ...props }: React_2.ComponentProps<typeof Command_2.Empty>): JSX.Element;
558
+
559
+ export declare function CommandGroup({ className, ...props }: React_2.ComponentProps<typeof Command_2.Group>): JSX.Element;
560
+
561
+ export declare function CommandInput({ className, ...props }: React_2.ComponentProps<typeof Command_2.Input>): JSX.Element;
562
+
563
+ export declare function CommandItem({ className, children, ...props }: React_2.ComponentProps<typeof Command_2.Item>): JSX.Element;
564
+
565
+ export declare function CommandList({ className, ...props }: React_2.ComponentProps<typeof Command_2.List>): JSX.Element;
566
+
567
+ export declare function CommandSeparator({ className, ...props }: React_2.ComponentProps<typeof Command_2.Separator>): JSX.Element;
568
+
569
+ export declare function CommandShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
570
+
571
+ /** Common props shared by both search modes */
572
+ declare interface CommonTdpSearchProps {
573
+ /** Default search term (default query) */
574
+ defaultQuery?: string;
575
+ /** Display fields/columns for the results table */
576
+ columns: TdpSearchColumn[];
577
+ /** UI filters displayed as dropdowns (for user selection) */
578
+ filters?: TdpSearchFilter[];
579
+ /** Default sort configuration (sort options) */
580
+ defaultSort?: TdpSearchSort;
581
+ /**
582
+ * Additional search parameters to pass to the SDK's searchEql method.
583
+ * Allows customization of expression, selectedPipelineIds, selectedSourceTypes, etc.
584
+ */
585
+ advancedSearchParams?: Partial<Omit<SearchEqlRequest, "searchTerm" | "from" | "size" | "sort" | "order">>;
586
+ /** Results per page. Defaults to 10 */
587
+ pageSize?: number;
588
+ /** Search input placeholder text */
589
+ searchPlaceholder?: string;
590
+ /** Custom CSS class */
591
+ className?: string;
592
+ /** Callback fired when search is executed with the query and results */
593
+ onSearch?: (query: SearchEqlRequest, results: SearchResult[]) => void;
594
+ /** Replace the entire search bar (input + button) */
595
+ renderSearchBar?: (props: TdpSearchBarRenderProps) => default_2.ReactNode;
596
+ /** Replace the filters row */
597
+ renderFilters?: (props: TdpFiltersRenderProps) => default_2.ReactNode;
598
+ /** Replace the results table (and pagination) */
599
+ renderResults?: (props: TdpResultsRenderProps) => default_2.ReactNode;
600
+ }
601
+
602
+ export declare function ContextMenu({ ...props }: React_2.ComponentProps<typeof ContextMenu_2.Root>): JSX.Element;
603
+
604
+ export declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React_2.ComponentProps<typeof ContextMenu_2.CheckboxItem> & {
605
+ inset?: boolean;
606
+ }): JSX.Element;
607
+
608
+ export declare function ContextMenuContent({ className, ...props }: React_2.ComponentProps<typeof ContextMenu_2.Content> & {
609
+ side?: "top" | "right" | "bottom" | "left";
610
+ }): JSX.Element;
611
+
612
+ export declare function ContextMenuGroup({ ...props }: React_2.ComponentProps<typeof ContextMenu_2.Group>): JSX.Element;
613
+
614
+ export declare function ContextMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof ContextMenu_2.Item> & {
615
+ inset?: boolean;
616
+ variant?: "default" | "destructive";
617
+ }): JSX.Element;
618
+
619
+ export declare function ContextMenuLabel({ className, inset, ...props }: React_2.ComponentProps<typeof ContextMenu_2.Label> & {
620
+ inset?: boolean;
621
+ }): JSX.Element;
622
+
623
+ export declare function ContextMenuPortal({ ...props }: React_2.ComponentProps<typeof ContextMenu_2.Portal>): JSX.Element;
624
+
625
+ export declare function ContextMenuRadioGroup({ ...props }: React_2.ComponentProps<typeof ContextMenu_2.RadioGroup>): JSX.Element;
626
+
627
+ export declare function ContextMenuRadioItem({ className, children, inset, ...props }: React_2.ComponentProps<typeof ContextMenu_2.RadioItem> & {
628
+ inset?: boolean;
629
+ }): JSX.Element;
630
+
631
+ export declare function ContextMenuSeparator({ className, ...props }: React_2.ComponentProps<typeof ContextMenu_2.Separator>): JSX.Element;
632
+
633
+ export declare function ContextMenuShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
634
+
635
+ export declare function ContextMenuSub({ ...props }: React_2.ComponentProps<typeof ContextMenu_2.Sub>): JSX.Element;
636
+
637
+ export declare function ContextMenuSubContent({ className, ...props }: React_2.ComponentProps<typeof ContextMenu_2.SubContent>): JSX.Element;
638
+
639
+ export declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof ContextMenu_2.SubTrigger> & {
640
+ inset?: boolean;
641
+ }): JSX.Element;
642
+
643
+ export declare function ContextMenuTrigger({ className, ...props }: React_2.ComponentProps<typeof ContextMenu_2.Trigger>): JSX.Element;
644
+
645
+ export declare function Dialog({ ...props }: React_2.ComponentProps<typeof Dialog_2.Root>): JSX.Element;
646
+
647
+ export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof Dialog_2.Close>): JSX.Element;
648
+
649
+ export declare function DialogContent({ className, children, showCloseButton, ...props }: React_2.ComponentProps<typeof Dialog_2.Content> & {
650
+ showCloseButton?: boolean;
651
+ }): JSX.Element;
652
+
653
+ export declare function DialogDescription({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Description>): JSX.Element;
654
+
655
+ export declare function DialogFooter({ className, showCloseButton, children, ...props }: React_2.ComponentProps<"div"> & {
656
+ showCloseButton?: boolean;
657
+ }): JSX.Element;
658
+
659
+ export declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
660
+
661
+ export declare function DialogOverlay({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Overlay>): JSX.Element;
662
+
663
+ export declare function DialogPortal({ ...props }: React_2.ComponentProps<typeof Dialog_2.Portal>): JSX.Element;
664
+
665
+ export declare function DialogTitle({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Title>): JSX.Element;
666
+
667
+ export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof Dialog_2.Trigger>): JSX.Element;
668
+
669
+ export declare const DotPlot: default_2.FC<DotPlotProps>;
670
+
671
+ export declare interface DotPlotDataSeries {
672
+ x: number[];
673
+ y: number[];
674
+ name: string;
675
+ color?: string;
676
+ symbol?: MarkerSymbol_2;
677
+ size?: number;
678
+ }
679
+
680
+ export declare type DotPlotProps = {
681
+ dataSeries: DotPlotDataSeries | DotPlotDataSeries[];
682
+ width?: number;
683
+ height?: number;
684
+ title?: string;
685
+ xTitle?: string;
686
+ yTitle?: string;
687
+ variant?: DotPlotVariant;
688
+ markerSize?: number;
689
+ };
690
+
691
+ export declare type DotPlotVariant = "default" | "stacked";
692
+
693
+ export declare function Drawer({ ...props }: React_2.ComponentProps<typeof Drawer_2.Root>): JSX.Element;
694
+
695
+ export declare function DrawerClose({ ...props }: React_2.ComponentProps<typeof Drawer_2.Close>): JSX.Element;
696
+
697
+ export declare function DrawerContent({ className, children, ...props }: React_2.ComponentProps<typeof Drawer_2.Content>): JSX.Element;
698
+
699
+ export declare function DrawerDescription({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Description>): JSX.Element;
700
+
701
+ export declare function DrawerFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
702
+
703
+ export declare function DrawerHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
704
+
705
+ export declare function DrawerOverlay({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Overlay>): JSX.Element;
706
+
707
+ export declare function DrawerPortal({ ...props }: React_2.ComponentProps<typeof Drawer_2.Portal>): JSX.Element;
708
+
709
+ export declare function DrawerTitle({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Title>): JSX.Element;
710
+
711
+ export declare function DrawerTrigger({ ...props }: React_2.ComponentProps<typeof Drawer_2.Trigger>): JSX.Element;
712
+
713
+ export declare function DropdownMenu({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Root>): JSX.Element;
714
+
715
+ export declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.CheckboxItem> & {
716
+ inset?: boolean;
717
+ }): JSX.Element;
718
+
719
+ export declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Content>): JSX.Element;
720
+
721
+ export declare function DropdownMenuGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Group>): JSX.Element;
722
+
723
+ export declare function DropdownMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Item> & {
724
+ inset?: boolean;
725
+ variant?: "default" | "destructive";
726
+ }): JSX.Element;
727
+
728
+ export declare function DropdownMenuLabel({ className, inset, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Label> & {
729
+ inset?: boolean;
730
+ }): JSX.Element;
731
+
732
+ export declare function DropdownMenuPortal({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Portal>): JSX.Element;
733
+
734
+ export declare function DropdownMenuRadioGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.RadioGroup>): JSX.Element;
735
+
736
+ export declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.RadioItem> & {
737
+ inset?: boolean;
738
+ }): JSX.Element;
739
+
740
+ export declare function DropdownMenuSeparator({ className, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Separator>): JSX.Element;
741
+
742
+ export declare function DropdownMenuShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
743
+
744
+ export declare function DropdownMenuSub({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Sub>): JSX.Element;
745
+
746
+ export declare function DropdownMenuSubContent({ className, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.SubContent>): JSX.Element;
747
+
748
+ export declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.SubTrigger> & {
749
+ inset?: boolean;
750
+ }): JSX.Element;
751
+
752
+ export declare function DropdownMenuTrigger({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Trigger>): JSX.Element;
753
+
754
+ export declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): JSX.Element;
755
+
756
+ export declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
757
+
758
+ export declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): JSX.Element;
759
+
760
+ export declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
761
+ errors?: Array<{
762
+ message?: string;
763
+ } | undefined>;
764
+ }): JSX.Element | null;
765
+
766
+ export declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
767
+
768
+ export declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): JSX.Element;
769
+
770
+ export declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
771
+ variant?: "legend" | "label";
772
+ }): JSX.Element;
773
+
774
+ export declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
775
+ children?: React.ReactNode;
776
+ }): JSX.Element;
777
+
778
+ export declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): JSX.Element;
779
+
780
+ export declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
781
+
782
+ declare const fieldVariants: (props?: ({
783
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
784
+ } & ClassProp) | undefined) => string;
785
+
786
+ /**
787
+ * TDP Navigation Utilities
788
+ *
789
+ * Pure utility functions for constructing and navigating to TDP URLs.
790
+ * These work independently of React and can be used in any context.
791
+ *
792
+ * Data apps run inside iframes within TDP. These utilities help resolve
793
+ * the TDP base URL from the iframe context and construct navigation URLs.
794
+ */
795
+ /**
796
+ * Extract the TDP base URL from `document.referrer`.
797
+ *
798
+ * In production, data apps run inside iframes within TDP. The browser
799
+ * provides `document.referrer` containing the parent TDP page URL.
800
+ * This function strips the known route path to get the base URL
801
+ * (origin + org slug path prefix).
802
+ *
803
+ * @example
804
+ * // referrer: "https://tetrascience-uat.com/my-org/data-workspace/abc"
805
+ * getTdpBaseUrlFromReferrer() // "https://tetrascience-uat.com/my-org"
806
+ *
807
+ * @returns The TDP base URL, or null if detection fails
808
+ */
809
+ export declare function getTdpBaseUrlFromReferrer(): string | null;
810
+
811
+ export declare const Heatmap: default_2.FC<HeatmapProps>;
812
+
813
+ /**
814
+ * Props for the Heatmap component
815
+ * @deprecated Use PlateMap component instead. Heatmap is now a wrapper around PlateMap for backward compatibility.
816
+ */
817
+ export declare interface HeatmapProps {
818
+ /** 2D array of numeric values */
819
+ data?: number[][];
820
+ /** Custom x-axis labels (column labels) */
821
+ xLabels?: string[] | number[];
822
+ /** Custom y-axis labels (row labels) */
823
+ yLabels?: string[] | number[];
824
+ /** Chart title */
825
+ title?: string;
826
+ /** X-axis title */
827
+ xTitle?: string;
828
+ /** Y-axis title */
829
+ yTitle?: string;
830
+ /** Color scale - string name or array of [position, color] pairs */
831
+ colorscale?: string | Array<[number, string]>;
832
+ /** Chart width in pixels */
833
+ width?: number;
834
+ /** Chart height in pixels */
835
+ height?: number;
836
+ /** Show color scale legend */
837
+ showScale?: boolean;
838
+ /** Number of decimal places for values */
839
+ precision?: number;
840
+ /** Minimum value for color scale */
841
+ zmin?: number;
842
+ /** Maximum value for color scale */
843
+ zmax?: number;
844
+ /** Value unit suffix */
845
+ valueUnit?: string;
846
+ }
847
+
848
+ export declare const Histogram: default_2.FC<HistogramProps>;
849
+
850
+ export declare interface HistogramDataSeries {
851
+ x: number[];
852
+ name: string;
853
+ color?: string;
854
+ autobinx?: boolean;
855
+ xbins?: {
856
+ start: number;
857
+ end: number;
858
+ size: number;
859
+ };
860
+ opacity?: number;
861
+ showDistributionLine?: boolean;
862
+ lineWidth?: number;
863
+ }
864
+
865
+ export declare type HistogramProps = {
866
+ dataSeries: HistogramDataSeries | HistogramDataSeries[];
867
+ width?: number;
868
+ height?: number;
869
+ title?: string;
870
+ xTitle?: string;
871
+ yTitle?: string;
872
+ bargap?: number;
873
+ showDistributionLine?: boolean;
874
+ };
875
+
876
+ export declare function HoverCard({ ...props }: React_2.ComponentProps<typeof HoverCard_2.Root>): JSX.Element;
877
+
878
+ export declare function HoverCardContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof HoverCard_2.Content>): JSX.Element;
879
+
880
+ export declare function HoverCardTrigger({ ...props }: React_2.ComponentProps<typeof HoverCard_2.Trigger>): JSX.Element;
881
+
882
+ export declare function Input({ className, type, ...props }: React_2.ComponentProps<"input">): JSX.Element;
883
+
884
+ export declare function InputGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
885
+
886
+ export declare function InputGroupAddon({ className, align, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): JSX.Element;
887
+
888
+ declare const inputGroupAddonVariants: (props?: ({
889
+ align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
890
+ } & ClassProp) | undefined) => string;
891
+
892
+ export declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React_2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): JSX.Element;
893
+
894
+ declare const inputGroupButtonVariants: (props?: ({
895
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
896
+ } & ClassProp) | undefined) => string;
897
+
898
+ export declare function InputGroupInput({ className, ...props }: React_2.ComponentProps<"input">): JSX.Element;
899
+
900
+ export declare function InputGroupText({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
901
+
902
+ export declare function InputGroupTextarea({ className, ...props }: React_2.ComponentProps<"textarea">): JSX.Element;
903
+
904
+ export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
905
+ containerClassName?: string;
906
+ }): JSX.Element;
907
+
908
+ export declare function InputOTPGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
909
+
910
+ export declare function InputOTPSeparator({ ...props }: React_2.ComponentProps<"div">): JSX.Element;
911
+
912
+ export declare function InputOTPSlot({ index, className, ...props }: React_2.ComponentProps<"div"> & {
913
+ index: number;
914
+ }): JSX.Element;
915
+
916
+ export declare function Item({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
917
+ asChild?: boolean;
918
+ }): JSX.Element;
919
+
920
+ export declare function ItemActions({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
921
+
922
+ export declare function ItemContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
923
+
924
+ export declare function ItemDescription({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element;
925
+
926
+ export declare function ItemFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
927
+
928
+ export declare function ItemGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
929
+
930
+ export declare function ItemHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
931
+
932
+ export declare function ItemMedia({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): JSX.Element;
933
+
934
+ declare const itemMediaVariants: (props?: ({
935
+ variant?: "image" | "default" | "icon" | null | undefined;
936
+ } & ClassProp) | undefined) => string;
937
+
938
+ export declare function ItemSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
939
+
940
+ export declare function ItemTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
941
+
942
+ declare const itemVariants: (props?: ({
943
+ variant?: "default" | "outline" | "muted" | null | undefined;
944
+ size?: "default" | "sm" | "xs" | null | undefined;
945
+ } & ClassProp) | undefined) => string;
946
+
947
+ export declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): JSX.Element;
948
+
949
+ export declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
950
+
951
+ export declare function Label({ className, ...props }: React_2.ComponentProps<typeof Label_2.Root>): JSX.Element;
952
+
953
+ export declare const LaunchContent: default_2.FC<LaunchContentProps>;
954
+
955
+ export declare interface LaunchContentProps {
956
+ initialCode?: string;
957
+ onDeploy?: () => void;
958
+ versions?: string[];
959
+ currentVersion?: string;
960
+ onVersionChange?: (version: string) => void;
961
+ }
962
+
963
+ /**
964
+ * Configuration for auto-generated layers when using WellData with `values`.
965
+ *
966
+ * When wells have multiple values (via the `values` property), layers are
967
+ * auto-generated from the unique keys. Use LayerConfig to customize the
968
+ * display name, visualization mode, and color scale for each layer.
969
+ *
970
+ * @example
971
+ * // Configure layers for wells with { values: { "Raw": 100, "Normalized": 0.5 } }
972
+ * const layerConfigs: LayerConfig[] = [
973
+ * { id: "Raw", name: "Raw Data", colorScale: "Blues" },
974
+ * { id: "Normalized", name: "Normalized Values", valueMin: 0, valueMax: 1 },
975
+ * ];
976
+ */
977
+ declare interface LayerConfig {
978
+ /** Layer ID (must match a key in WellData.values) */
979
+ id: string;
980
+ /** Display name for the layer (defaults to id if not provided) */
981
+ name?: string;
982
+ /** Visualization mode for this layer */
983
+ visualizationMode?: VisualizationMode;
984
+ /** Color scale for this layer (for heatmap mode) */
985
+ colorScale?: ColorScale;
986
+ /** Minimum value for color scaling */
987
+ valueMin?: number;
988
+ /** Maximum value for color scaling */
989
+ valueMax?: number;
990
+ /** Value unit suffix for tooltips and colorbar (e.g., "RFU", "%"). A space is automatically added before the unit. */
991
+ valueUnit?: string;
992
+ /**
993
+ * Custom colors for categorical visualization mode.
994
+ * Keys are category values (strings from `values`), values are hex colors.
995
+ * Merged with DEFAULT_CATEGORY_COLORS.
996
+ */
997
+ categoryColors?: Record<string, string>;
998
+ }
999
+
1000
+ /**
1001
+ * Configuration for legend styling and positioning.
1002
+ *
1003
+ * @example
1004
+ * // Legend on the bottom with custom styling
1005
+ * legendConfig={{
1006
+ * position: "bottom",
1007
+ * fontSize: 14,
1008
+ * itemSpacing: 12,
1009
+ * swatchSize: 20,
1010
+ * }}
1011
+ */
1012
+ declare interface LegendConfig {
1013
+ /**
1014
+ * Position of the legend relative to the plate.
1015
+ * @default "right"
1016
+ */
1017
+ position?: LegendPosition;
1018
+ /**
1019
+ * Font size for legend labels in pixels.
1020
+ * @default 12
1021
+ */
1022
+ fontSize?: number;
1023
+ /**
1024
+ * Spacing between legend items in pixels.
1025
+ * @default 4
1026
+ */
1027
+ itemSpacing?: number;
1028
+ /**
1029
+ * Size of the color swatch in pixels.
1030
+ * @default 16
1031
+ */
1032
+ swatchSize?: number;
1033
+ /**
1034
+ * Title to display above the legend.
1035
+ */
1036
+ title?: string;
1037
+ }
1038
+
1039
+ /**
1040
+ * Position for the legend display.
1041
+ * - `"right"`: Legend appears to the right of the plate (default)
1042
+ * - `"bottom"`: Legend appears below the plate
1043
+ * - `"left"`: Legend appears to the left of the plate
1044
+ * - `"top"`: Legend appears above the plate
1045
+ */
1046
+ declare type LegendPosition = "right" | "bottom" | "left" | "top";
1047
+
1048
+ export declare interface LineDataSeries {
1049
+ x: number[];
1050
+ y: number[];
1051
+ name: string;
1052
+ color: string;
1053
+ symbol?: MarkerSymbol;
1054
+ error_y?: {
1055
+ type: "data";
1056
+ array: number[];
1057
+ visible: boolean;
1058
+ };
1059
+ }
1060
+
1061
+ export declare const LineGraph: default_2.FC<LineGraphProps>;
1062
+
1063
+ export declare type LineGraphProps = {
1064
+ dataSeries: LineDataSeries[];
1065
+ width?: number;
1066
+ height?: number;
1067
+ xRange?: [number, number];
1068
+ yRange?: [number, number];
1069
+ variant?: LineGraphVariant;
1070
+ xTitle?: string;
1071
+ yTitle?: string;
1072
+ title?: string;
1073
+ };
1074
+
1075
+ export declare type LineGraphVariant = "lines" | "lines+markers" | "lines+markers+error_bars";
1076
+
1077
+ export declare const Main: default_2.FC<MainProps>;
1078
+
1079
+ export declare interface MainProps {
1080
+ userProfile: UserProfileInfo;
1081
+ hostname: string;
1082
+ organization: OrganizationInfo_2;
1083
+ }
1084
+
1085
+ export declare type MarkerSymbol = "circle" | "circle-open" | "circle-dot" | "circle-open-dot" | "square" | "square-open" | "square-dot" | "square-open-dot" | "diamond" | "diamond-open" | "diamond-dot" | "diamond-open-dot" | "cross" | "cross-open" | "cross-dot" | "cross-open-dot" | "x" | "x-open" | "x-dot" | "x-open-dot" | "triangle-up" | "triangle-up-open" | "triangle-up-dot" | "triangle-up-open-dot" | "triangle-down" | "triangle-down-open" | "triangle-down-dot" | "triangle-down-open-dot" | "triangle-left" | "triangle-left-open" | "triangle-left-dot" | "triangle-left-open-dot" | "triangle-right" | "triangle-right-open" | "triangle-right-dot" | "triangle-right-open-dot" | "triangle-ne" | "triangle-ne-open" | "triangle-ne-dot" | "triangle-ne-open-dot" | "triangle-se" | "triangle-se-open" | "triangle-se-dot" | "triangle-se-open-dot" | "triangle-sw" | "triangle-sw-open" | "triangle-sw-dot" | "triangle-sw-open-dot" | "triangle-nw" | "triangle-nw-open" | "triangle-nw-dot" | "triangle-nw-open-dot" | "pentagon" | "pentagon-open" | "pentagon-dot" | "pentagon-open-dot" | "hexagon" | "hexagon-open" | "hexagon-dot" | "hexagon-open-dot" | "hexagon2" | "hexagon2-open" | "hexagon2-dot" | "hexagon2-open-dot" | "octagon" | "octagon-open" | "octagon-dot" | "octagon-open-dot" | "star" | "star-open" | "star-dot" | "star-open-dot" | "hexagram" | "hexagram-open" | "hexagram-dot" | "hexagram-open-dot" | "star-triangle-up" | "star-triangle-up-open" | "star-triangle-up-dot" | "star-triangle-up-open-dot" | "star-triangle-down" | "star-triangle-down-open" | "star-triangle-down-dot" | "star-triangle-down-open-dot" | "star-square" | "star-square-open" | "star-square-dot" | "star-square-open-dot" | "star-diamond" | "star-diamond-open" | "star-diamond-dot" | "star-diamond-open-dot" | "diamond-tall" | "diamond-tall-open" | "diamond-tall-dot" | "diamond-tall-open-dot" | "diamond-wide" | "diamond-wide-open" | "diamond-wide-dot" | "diamond-wide-open-dot" | "hourglass" | "hourglass-open" | "bowtie" | "bowtie-open" | "circle-cross" | "circle-cross-open" | "circle-x" | "circle-x-open" | "square-cross" | "square-cross-open" | "square-x" | "square-x-open" | "diamond-cross" | "diamond-cross-open" | "diamond-x" | "diamond-x-open" | "cross-thin" | "cross-thin-open" | "x-thin" | "x-thin-open" | "asterisk" | "asterisk-open" | "hash" | "hash-open" | "hash-dot" | "hash-open-dot" | "y-up" | "y-up-open" | "y-down" | "y-down-open" | "y-left" | "y-left-open" | "y-right" | "y-right-open" | "line-ew" | "line-ew-open" | "line-ns" | "line-ns-open" | "line-ne" | "line-ne-open" | "line-nw" | "line-nw-open" | "arrow" | "arrow-open" | "arrow-wide" | "arrow-wide-open";
1086
+
1087
+ declare type MarkerSymbol_2 = "circle" | "square" | "diamond" | "triangle-up" | "triangle-down" | "star";
1088
+
1089
+ export declare function Menubar({ className, ...props }: React_2.ComponentProps<typeof Menubar_2.Root>): JSX.Element;
1090
+
1091
+ export declare function MenubarCheckboxItem({ className, children, checked, inset, ...props }: React_2.ComponentProps<typeof Menubar_2.CheckboxItem> & {
1092
+ inset?: boolean;
1093
+ }): JSX.Element;
1094
+
1095
+ export declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React_2.ComponentProps<typeof Menubar_2.Content>): JSX.Element;
1096
+
1097
+ export declare function MenubarGroup({ ...props }: React_2.ComponentProps<typeof Menubar_2.Group>): JSX.Element;
1098
+
1099
+ export declare function MenubarItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof Menubar_2.Item> & {
1100
+ inset?: boolean;
1101
+ variant?: "default" | "destructive";
1102
+ }): JSX.Element;
1103
+
1104
+ export declare function MenubarLabel({ className, inset, ...props }: React_2.ComponentProps<typeof Menubar_2.Label> & {
1105
+ inset?: boolean;
1106
+ }): JSX.Element;
1107
+
1108
+ export declare function MenubarMenu({ ...props }: React_2.ComponentProps<typeof Menubar_2.Menu>): JSX.Element;
1109
+
1110
+ export declare function MenubarPortal({ ...props }: React_2.ComponentProps<typeof Menubar_2.Portal>): JSX.Element;
1111
+
1112
+ export declare function MenubarRadioGroup({ ...props }: React_2.ComponentProps<typeof Menubar_2.RadioGroup>): JSX.Element;
1113
+
1114
+ export declare function MenubarRadioItem({ className, children, inset, ...props }: React_2.ComponentProps<typeof Menubar_2.RadioItem> & {
1115
+ inset?: boolean;
1116
+ }): JSX.Element;
1117
+
1118
+ export declare function MenubarSeparator({ className, ...props }: React_2.ComponentProps<typeof Menubar_2.Separator>): JSX.Element;
1119
+
1120
+ export declare function MenubarShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
1121
+
1122
+ export declare function MenubarSub({ ...props }: React_2.ComponentProps<typeof Menubar_2.Sub>): JSX.Element;
1123
+
1124
+ export declare function MenubarSubContent({ className, ...props }: React_2.ComponentProps<typeof Menubar_2.SubContent>): JSX.Element;
1125
+
1126
+ export declare function MenubarSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof Menubar_2.SubTrigger> & {
1127
+ inset?: boolean;
1128
+ }): JSX.Element;
1129
+
1130
+ export declare function MenubarTrigger({ className, ...props }: React_2.ComponentProps<typeof Menubar_2.Trigger>): JSX.Element;
1131
+
1132
+ export declare const Navbar: default_2.FC<NavbarProps>;
1133
+
1134
+ export declare interface NavbarProps {
1135
+ organization: OrganizationInfo;
1136
+ }
1137
+
1138
+ /**
1139
+ * Navigate to a TDP URL.
1140
+ *
1141
+ * - `{ newTab: true }` opens the URL in a new browser tab.
1142
+ * - Default: sends a `postMessage` to the parent TDP frame (same-tab navigation
1143
+ * when inside an iframe), or navigates the current window (standalone).
1144
+ *
1145
+ * @param url - Full TDP URL to navigate to
1146
+ * @param options - Navigation options
1147
+ */
1148
+ export declare function navigateToTdpUrl(url: string, options?: TdpNavigationOptions): void;
1149
+
1150
+ export declare function NavigationMenu({ className, children, viewport, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.Root> & {
1151
+ viewport?: boolean;
1152
+ }): JSX.Element;
1153
+
1154
+ export declare function NavigationMenuContent({ className, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.Content>): JSX.Element;
1155
+
1156
+ export declare function NavigationMenuIndicator({ className, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.Indicator>): JSX.Element;
1157
+
1158
+ export declare function NavigationMenuItem({ className, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.Item>): JSX.Element;
1159
+
1160
+ export declare function NavigationMenuLink({ className, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.Link>): JSX.Element;
1161
+
1162
+ export declare function NavigationMenuList({ className, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.List>): JSX.Element;
1163
+
1164
+ export declare function NavigationMenuTrigger({ className, children, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.Trigger>): JSX.Element;
1165
+
1166
+ export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string;
1167
+
1168
+ export declare function NavigationMenuViewport({ className, ...props }: React_2.ComponentProps<typeof NavigationMenu_2.Viewport>): JSX.Element;
1169
+
1170
+ declare interface OrganizationInfo {
1171
+ name: string;
1172
+ subtext?: string;
1173
+ logo?: default_2.ReactNode;
1174
+ }
1175
+
1176
+ declare interface OrganizationInfo_2 {
1177
+ name: string;
1178
+ subtext?: string;
1179
+ logo?: default_2.ReactNode;
1180
+ }
1181
+
1182
+ /**
1183
+ * Peak annotation for labeling peaks on the chromatogram.
1184
+ * Used for both user-provided annotations and auto-detected peaks.
1185
+ */
1186
+ export declare interface PeakAnnotation {
1187
+ /** Retention time of the peak (x-axis position) */
1188
+ x: number;
1189
+ /** Signal intensity at peak (y-axis position) */
1190
+ y: number;
1191
+ /** Label text (e.g., compound name). If not provided, auto-generated from computed area. */
1192
+ text?: string;
1193
+ /** Vertical arrow offset in pixels (negative = above peak, default: -30) */
1194
+ ay?: number;
1195
+ /** Horizontal arrow offset in pixels (default: 0) */
1196
+ ax?: number;
1197
+ /** Start retention time for peak boundary */
1198
+ startX?: number;
1199
+ /** End retention time for peak boundary */
1200
+ endX?: number;
1201
+ /** Marker style for start boundary (default: "triangle") */
1202
+ startMarker?: BoundaryMarkerType;
1203
+ /** Marker style for end boundary (default: "diamond") */
1204
+ endMarker?: BoundaryMarkerType;
1205
+ /* Excluded from this release type: _computed */
1206
+ }
1207
+
1208
+ /* Excluded from this release type: PeakComputedFields */
1209
+
1210
+ export declare interface PeakData {
1211
+ position: number;
1212
+ base?: string;
1213
+ peakA: number;
1214
+ peakT: number;
1215
+ peakG: number;
1216
+ peakC: number;
1217
+ }
1218
+
1219
+ /**
1220
+ * Peak detection algorithm options
1221
+ */
1222
+ export declare interface PeakDetectionOptions {
1223
+ /** Minimum peak height threshold (absolute or relative to max, default: 0.05) */
1224
+ minHeight?: number;
1225
+ /** Minimum distance between peaks in data points (default: 5) */
1226
+ minDistance?: number;
1227
+ /** Prominence threshold - how much a peak stands out from neighbors (default: 0.02) */
1228
+ prominence?: number;
1229
+ /** Use relative threshold as percentage of max signal (default: true) */
1230
+ relativeThreshold?: boolean;
1231
+ }
1232
+
1233
+ export declare const PieChart: default_2.FC<PieChartProps>;
1234
+
1235
+ export declare type PieChartProps = {
1236
+ dataSeries: PieDataSeries;
1237
+ width?: number;
1238
+ height?: number;
1239
+ title?: string;
1240
+ textInfo?: PieTextInfo;
1241
+ hole?: number;
1242
+ rotation?: number;
1243
+ };
1244
+
1245
+ export declare interface PieDataSeries {
1246
+ labels: string[];
1247
+ values: number[];
1248
+ name: string;
1249
+ colors?: string[];
1250
+ }
1251
+
1252
+ export declare type PieTextInfo = "none" | "label" | "percent" | "value" | "label+percent" | "label+value" | "value+percent" | "label+value+percent";
1253
+
1254
+ declare const PLATE_FORMAT_1536: "1536";
1255
+
1256
+ declare const PLATE_FORMAT_384: "384";
1257
+
1258
+ /**
1259
+ * Plate format string constants for standard microplate configurations.
1260
+ */
1261
+ declare const PLATE_FORMAT_96: "96";
1262
+
1263
+ declare const PLATE_FORMAT_CUSTOM: "custom";
1264
+
1265
+ /**
1266
+ * Plate format presets for standard microplate configurations.
1267
+ * - `"96"`: 8 rows × 12 columns (wells A1-H12)
1268
+ * - `"384"`: 16 rows × 24 columns (wells A1-P24)
1269
+ * - `"1536"`: 32 rows × 48 columns (wells A1-AF48)
1270
+ * - `"custom"`: User-defined dimensions via `rows` and `columns` props
1271
+ */
1272
+ export declare type PlateFormat = typeof PLATE_FORMAT_96 | typeof PLATE_FORMAT_384 | typeof PLATE_FORMAT_1536 | typeof PLATE_FORMAT_CUSTOM;
1273
+
1274
+ /**
1275
+ * PlateMap component for visualizing well plate data as a heatmap or categorical display.
1276
+ *
1277
+ * **Supported Plate Formats:**
1278
+ * - 96-well (8 rows × 12 columns, wells A1-H12)
1279
+ * - 384-well (16 rows × 24 columns, wells A1-P24)
1280
+ * - 1536-well (32 rows × 48 columns, wells A1-AF48)
1281
+ * - Custom dimensions with user-specified rows/columns
1282
+ *
1283
+ * **Visualization Modes:**
1284
+ * - `"heatmap"`: Continuous color gradient for quantitative values
1285
+ * - `"categorical"`: Discrete colors for well types (sample, control, empty)
1286
+ *
1287
+ * **Features:**
1288
+ * - Multiple data layers with independent visualization settings
1289
+ * - Control region highlighting with borders and fill colors
1290
+ * - Configurable color scales, tooltips, and click interactions
1291
+ * - Support for WellData arrays with multi-layer visualization
1292
+ *
1293
+ * **Data Format:**
1294
+ * - **WellData array**: `[{ wellId: "A1", values: { RFU: 100 }, tooltipData: {...} }, ...]`
1295
+ *
1296
+ */
1297
+ export declare const PlateMap: default_2.FC<PlateMapProps>;
1298
+
1299
+ /**
1300
+ * Props for PlateMap component
1301
+ */
1302
+ export declare interface PlateMapProps {
1303
+ /**
1304
+ * Well data array as WellData objects with wellId and values.
1305
+ *
1306
+ * If wells have multiple values (via `values` property), layers are
1307
+ * auto-generated for each unique key, enabling layer toggling.
1308
+ */
1309
+ data?: WellData[];
1310
+ /**
1311
+ * Configuration for auto-generated layers when using WellData with `values`.
1312
+ * Use this to customize display names, colors, and ranges for each layer.
1313
+ * Only used when `data` contains wells with `values` property.
1314
+ */
1315
+ layerConfigs?: LayerConfig[];
1316
+ /**
1317
+ * Initial layer ID to display when the component mounts.
1318
+ * If not provided, defaults to the first layer.
1319
+ */
1320
+ initialLayerId?: string;
1321
+ /**
1322
+ * Optional callback notified when the active layer changes.
1323
+ * This is purely informational - the component manages layer state internally.
1324
+ * Use this for logging, analytics, or syncing with external state.
1325
+ */
1326
+ onLayerChange?: (layerId: string) => void;
1327
+ /** Plate format preset (default: "96") */
1328
+ plateFormat?: PlateFormat;
1329
+ /** Number of rows for custom format (default: 8 for 96-well, 16 for 384-well) */
1330
+ rows?: number;
1331
+ /** Number of columns for custom format (default: 12 for 96-well, 24 for 384-well) */
1332
+ columns?: number;
1333
+ /**
1334
+ * Visualization mode (default: "heatmap")
1335
+ * - "heatmap": Display quantitative values with color gradient
1336
+ * - "categorical": Display well types with discrete colors
1337
+ */
1338
+ visualizationMode?: VisualizationMode;
1339
+ /**
1340
+ * Custom colors for categorical visualization mode.
1341
+ * Keys are well types, values are hex colors.
1342
+ * Merged with DEFAULT_CATEGORY_COLORS.
1343
+ */
1344
+ categoryColors?: Record<string, string>;
1345
+ /**
1346
+ * Regions to highlight on the plate (e.g., controls, sample areas, empty wells).
1347
+ * Each region can specify wells and styling for visual distinction.
1348
+ */
1349
+ regions?: PlateRegion[];
1350
+ /** Chart title */
1351
+ title?: string;
1352
+ /** X-axis title (e.g., "Columns") */
1353
+ xTitle?: string;
1354
+ /** Y-axis title (e.g., "Rows") */
1355
+ yTitle?: string;
1356
+ /** Custom x-axis labels (overrides auto-generated column numbers) */
1357
+ xLabels?: string[] | number[];
1358
+ /** Custom y-axis labels (overrides auto-generated row letters) */
1359
+ yLabels?: string[] | number[];
1360
+ /** Color scale for the heatmap (only used in heatmap mode) */
1361
+ colorScale?: ColorScale;
1362
+ /** Minimum value for color scale (auto-calculated if not provided) */
1363
+ valueMin?: number;
1364
+ /** Maximum value for color scale (auto-calculated if not provided) */
1365
+ valueMax?: number;
1366
+ /** Color for empty/null wells (default: "#f0f0f0") */
1367
+ emptyWellColor?: string;
1368
+ /** Show color bar legend for heatmap mode (default: true) */
1369
+ showColorBar?: boolean;
1370
+ /** Show categorical legend for categorical mode (default: true) */
1371
+ showLegend?: boolean;
1372
+ /**
1373
+ * Configuration for legend positioning and styling.
1374
+ * Applies to both heatmap colorbar and categorical legend.
1375
+ *
1376
+ * @example
1377
+ * // Position legend at bottom with larger text
1378
+ * legendConfig={{ position: "bottom", fontSize: 14 }}
1379
+ */
1380
+ legendConfig?: LegendConfig;
1381
+ /** Chart width in pixels (default: 800) */
1382
+ width?: number;
1383
+ /** Chart height in pixels (default: 500) */
1384
+ height?: number;
1385
+ /** Number of decimal places for values (default: 0) */
1386
+ precision?: number;
1387
+ /**
1388
+ * Marker shape for wells (default: "circle")
1389
+ * - "circle": Round markers, ideal for plate-based data
1390
+ * - "square": Square markers, ideal for generic heatmaps
1391
+ */
1392
+ markerShape?: "circle" | "square";
1393
+ /**
1394
+ * Callback when a well/cell is clicked.
1395
+ * @param wellData - The full well data object including wellId, values, and tooltipData
1396
+ */
1397
+ onWellClick?: (wellData: WellData) => void;
1398
+ }
1399
+
1400
+ /**
1401
+ * A region to highlight on the plate (e.g., controls, sample areas, empty wells)
1402
+ */
1403
+ declare interface PlateRegion {
1404
+ /** Unique identifier for the region */
1405
+ id: string;
1406
+ /** Display name for the region (shown in legend) */
1407
+ name: string;
1408
+ /**
1409
+ * Wells included in this region using range notation.
1410
+ * Format: "StartWell:EndWell" (e.g., "A1:B6" for a rectangular block from A1 to B6)
1411
+ */
1412
+ wells: string;
1413
+ /** Border color for the region highlight */
1414
+ borderColor?: string;
1415
+ /** Border width in pixels (default: 2) */
1416
+ borderWidth?: number;
1417
+ /** Optional fill color with transparency (e.g., "rgba(255, 0, 0, 0.1)") */
1418
+ fillColor?: string;
1419
+ }
1420
+
1421
+ export declare const ProtocolConfiguration: default_2.FC<ProtocolConfigurationProps>;
1422
+
1423
+ export declare interface ProtocolConfigurationProps {
1424
+ className?: string;
1425
+ }
1426
+
1427
+ export declare const ProtocolYamlCard: default_2.FC<ProtocolYamlCardProps>;
1428
+
1429
+ export declare interface ProtocolYamlCardProps {
1430
+ title: string;
1431
+ newVersionMode: boolean;
1432
+ onToggleNewVersionMode: (checked: boolean) => void;
1433
+ versionOptions: {
1434
+ value: string;
1435
+ label: string;
1436
+ }[];
1437
+ selectedVersion: string;
1438
+ onVersionChange: (value: string) => void;
1439
+ onDeploy: () => void;
1440
+ yaml: string;
1441
+ onYamlChange: (value: string) => void;
1442
+ }
1443
+
1444
+ export declare const PythonEditorModal: default_2.FC<PythonEditorModalProps>;
1445
+
1446
+ export declare interface PythonEditorModalProps {
1447
+ open: boolean;
1448
+ onOpenChange: (open: boolean) => void;
1449
+ initialValue?: string;
1450
+ title?: string;
1451
+ description?: string;
1452
+ onSave: (value: string) => void;
1453
+ onCancel?: () => void;
1454
+ }
1455
+
1456
+ export declare function RadioGroup({ className, ...props }: React_2.ComponentProps<typeof RadioGroup_2.Root>): JSX.Element;
1457
+
1458
+ export declare function RadioGroupItem({ className, ...props }: React_2.ComponentProps<typeof RadioGroup_2.Item>): JSX.Element;
1459
+
1460
+ export declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
1461
+ withHandle?: boolean;
1462
+ }): JSX.Element;
1463
+
1464
+ export declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): JSX.Element;
1465
+
1466
+ export declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): JSX.Element;
1467
+
1468
+ export declare interface ScatterDataPoint {
1469
+ x: number;
1470
+ y: number;
1471
+ additionalInfo?: Record<string, string | number>;
1472
+ }
1473
+
1474
+ export declare interface ScatterDataSeries {
1475
+ x: number[];
1476
+ y: number[];
1477
+ name: string;
1478
+ color: string;
1479
+ }
1480
+
1481
+ export declare const ScatterGraph: default_2.FC<ScatterGraphProps>;
1482
+
1483
+ export declare interface ScatterGraphProps {
1484
+ dataSeries: ScatterDataSeries[];
1485
+ width?: number;
1486
+ height?: number;
1487
+ xRange?: [number, number];
1488
+ yRange?: [number, number];
1489
+ xTitle?: string;
1490
+ yTitle?: string;
1491
+ title?: string;
1492
+ }
1493
+
1494
+ export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollArea_2.Root>): JSX.Element;
1495
+
1496
+ export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollArea_2.ScrollAreaScrollbar>): JSX.Element;
1497
+
1498
+ /** Transformed search result (flattened from Elasticsearch hit format) */
1499
+ export declare interface SearchResult {
1500
+ id: string;
1501
+ _score?: number | null;
1502
+ [key: string]: any;
1503
+ }
1504
+
1505
+ export declare function Select({ ...props }: React_2.ComponentProps<typeof Select_2.Root>): JSX.Element;
1506
+
1507
+ export declare function SelectContent({ className, children, position, align, ...props }: React_2.ComponentProps<typeof Select_2.Content>): JSX.Element;
1508
+
1509
+ export declare function SelectGroup({ className, ...props }: React_2.ComponentProps<typeof Select_2.Group>): JSX.Element;
1510
+
1511
+ export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof Select_2.Item>): JSX.Element;
1512
+
1513
+ export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof Select_2.Label>): JSX.Element;
1514
+
1515
+ export declare function SelectScrollDownButton({ className, ...props }: React_2.ComponentProps<typeof Select_2.ScrollDownButton>): JSX.Element;
1516
+
1517
+ export declare function SelectScrollUpButton({ className, ...props }: React_2.ComponentProps<typeof Select_2.ScrollUpButton>): JSX.Element;
1518
+
1519
+ export declare function SelectSeparator({ className, ...props }: React_2.ComponentProps<typeof Select_2.Separator>): JSX.Element;
1520
+
1521
+ export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof Select_2.Trigger> & {
1522
+ size?: "sm" | "default";
1523
+ }): JSX.Element;
1524
+
1525
+ export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof Select_2.Value>): JSX.Element;
1526
+
1527
+ export declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof Separator_2.Root>): JSX.Element;
1528
+
1529
+ export declare function Sheet({ ...props }: React_2.ComponentProps<typeof Dialog_2.Root>): JSX.Element;
1530
+
1531
+ export declare function SheetClose({ ...props }: React_2.ComponentProps<typeof Dialog_2.Close>): JSX.Element;
1532
+
1533
+ export declare function SheetContent({ className, children, side, showCloseButton, ...props }: React_2.ComponentProps<typeof Dialog_2.Content> & {
1534
+ side?: "top" | "right" | "bottom" | "left";
1535
+ showCloseButton?: boolean;
1536
+ }): JSX.Element;
1537
+
1538
+ export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Description>): JSX.Element;
1539
+
1540
+ export declare function SheetFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1541
+
1542
+ export declare function SheetHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1543
+
1544
+ export declare function SheetTitle({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Title>): JSX.Element;
1545
+
1546
+ export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof Dialog_2.Trigger>): JSX.Element;
1547
+
1548
+ export declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React_2.ComponentProps<"div"> & {
1549
+ side?: "left" | "right";
1550
+ variant?: "sidebar" | "floating" | "inset";
1551
+ collapsible?: "offcanvas" | "icon" | "none";
1552
+ }): JSX.Element;
1553
+
1554
+ export declare function SidebarContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1555
+
1556
+ declare type SidebarContextProps = {
1557
+ state: "expanded" | "collapsed";
1558
+ open: boolean;
1559
+ setOpen: (open: boolean) => void;
1560
+ openMobile: boolean;
1561
+ setOpenMobile: (open: boolean) => void;
1562
+ isMobile: boolean;
1563
+ toggleSidebar: () => void;
1564
+ };
1565
+
1566
+ export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1567
+
1568
+ export declare function SidebarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1569
+
1570
+ export declare function SidebarGroupAction({ className, asChild, ...props }: React_2.ComponentProps<"button"> & {
1571
+ asChild?: boolean;
1572
+ }): JSX.Element;
1573
+
1574
+ export declare function SidebarGroupContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1575
+
1576
+ export declare function SidebarGroupLabel({ className, asChild, ...props }: React_2.ComponentProps<"div"> & {
1577
+ asChild?: boolean;
1578
+ }): JSX.Element;
1579
+
1580
+ export declare function SidebarHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1581
+
1582
+ export declare function SidebarInput({ className, ...props }: React_2.ComponentProps<typeof Input>): JSX.Element;
1583
+
1584
+ export declare function SidebarInset({ className, ...props }: React_2.ComponentProps<"main">): JSX.Element;
1585
+
1586
+ declare interface SidebarItemProps {
1587
+ icon: LucideIcon;
1588
+ label: string;
1589
+ active?: boolean;
1590
+ onClick?: () => void;
1591
+ }
1592
+
1593
+ export declare function SidebarMenu({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
1594
+
1595
+ export declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React_2.ComponentProps<"button"> & {
1596
+ asChild?: boolean;
1597
+ showOnHover?: boolean;
1598
+ }): JSX.Element;
1599
+
1600
+ export declare function SidebarMenuBadge({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
1601
+
1602
+ export declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React_2.ComponentProps<"button"> & {
1603
+ asChild?: boolean;
1604
+ isActive?: boolean;
1605
+ tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
1606
+ } & VariantProps<typeof sidebarMenuButtonVariants>): JSX.Element;
1607
+
1608
+ declare const sidebarMenuButtonVariants: (props?: ({
1609
+ variant?: "default" | "outline" | null | undefined;
1610
+ size?: "default" | "sm" | "lg" | null | undefined;
1611
+ } & ClassProp) | undefined) => string;
1612
+
1613
+ export declare function SidebarMenuItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
1614
+
1615
+ export declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React_2.ComponentProps<"div"> & {
1616
+ showIcon?: boolean;
1617
+ }): JSX.Element;
1618
+
1619
+ export declare function SidebarMenuSub({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
1620
+
1621
+ export declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React_2.ComponentProps<"a"> & {
1622
+ asChild?: boolean;
1623
+ size?: "sm" | "md";
1624
+ isActive?: boolean;
1625
+ }): JSX.Element;
1626
+
1627
+ export declare function SidebarMenuSubItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
1628
+
1629
+ export declare interface SidebarProps {
1630
+ items: SidebarItemProps[];
1631
+ activeItem?: string;
1632
+ onItemClick?: (label: string) => void;
1633
+ }
1634
+
1635
+ export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React_2.ComponentProps<"div"> & {
1636
+ defaultOpen?: boolean;
1637
+ open?: boolean;
1638
+ onOpenChange?: (open: boolean) => void;
1639
+ }): JSX.Element;
1640
+
1641
+ export declare function SidebarRail({ className, ...props }: React_2.ComponentProps<"button">): JSX.Element;
1642
+
1643
+ export declare function SidebarSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
1644
+
1645
+ export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
1646
+
1647
+ export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
1648
+
1649
+ export declare function Slider({ className, defaultValue, value, min, max, ...props }: React_2.ComponentProps<typeof Slider_2.Root>): JSX.Element;
1650
+
1651
+ export declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
1652
+
1653
+ export declare function Switch({ className, size, ...props }: React_2.ComponentProps<typeof Switch_2.Root> & {
1654
+ size?: "sm" | "default";
1655
+ }): JSX.Element;
1656
+
1657
+ export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
1658
+
1659
+ export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
1660
+
1661
+ export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
1662
+
1663
+ export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
1664
+
1665
+ export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
1666
+
1667
+ export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
1668
+
1669
+ export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
1670
+
1671
+ export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
1672
+
1673
+ export declare function Tabs({ className, orientation, ...props }: React_2.ComponentProps<typeof Tabs_2.Root>): JSX.Element;
1674
+
1675
+ export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof Tabs_2.Content>): JSX.Element;
1676
+
1677
+ export declare function TabsList({ className, variant, ...props }: React_2.ComponentProps<typeof Tabs_2.List> & VariantProps<typeof tabsListVariants>): JSX.Element;
1678
+
1679
+ export declare const tabsListVariants: (props?: ({
1680
+ variant?: "line" | "default" | null | undefined;
1681
+ } & ClassProp) | undefined) => string;
1682
+
1683
+ export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof Tabs_2.Trigger>): JSX.Element;
1684
+
1685
+ /** Props passed to the renderFilters render prop */
1686
+ export declare interface TdpFiltersRenderProps {
1687
+ filters: TdpSearchFilter[];
1688
+ filterValues: Record<string, string>;
1689
+ onFilterChange: (key: string, value: string) => void;
1690
+ }
1691
+
1692
+ /**
1693
+ * A link component that navigates to TDP pages.
1694
+ *
1695
+ * Renders a standard `<a>` tag with the correct href for right-click
1696
+ * "Open in new tab" support, accessibility, and SEO.
1697
+ *
1698
+ * Must be used inside a `<TdpNavigationProvider>`.
1699
+ *
1700
+ * @example
1701
+ * ```tsx
1702
+ * import { TDPLink, tdpPaths } from '@tetrascience-npm/tetrascience-react-ui';
1703
+ *
1704
+ * <TDPLink path={tdpPaths.fileDetails("abc-123")}>
1705
+ * View File Details
1706
+ * </TDPLink>
1707
+ *
1708
+ * <TDPLink path="/search?q=test" navigationOptions={{ newTab: false }}>
1709
+ * Search in TDP (same tab)
1710
+ * </TDPLink>
1711
+ * ```
1712
+ */
1713
+ export declare const TDPLink: default_2.FC<TDPLinkProps>;
1714
+
1715
+ /** Props for the TDPLink component */
1716
+ export declare interface TDPLinkProps extends Omit<default_2.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
1717
+ /** TDP page path (e.g., "/file/abc-123" or use tdpPaths helpers) */
1718
+ path: string;
1719
+ /** Navigation behavior. Default: { newTab: true } */
1720
+ navigationOptions?: TdpNavigationOptions;
1721
+ children: default_2.ReactNode;
1722
+ ref?: default_2.Ref<HTMLAnchorElement>;
1723
+ }
1724
+
1725
+ export declare const TdpNavigationContext: default_2.Context<TdpNavigationContextValue | null>;
1726
+
1727
+ export declare interface TdpNavigationContextValue {
1728
+ /** The resolved TDP base URL (origin + org path prefix), or null if not resolved */
1729
+ tdpBaseUrl: string | null;
1730
+ /** Construct a full TDP URL from a path. Returns null if base URL is not resolved. */
1731
+ getTdpUrl: (path: string) => string | null;
1732
+ /** Navigate to a TDP page. */
1733
+ navigateToTdp: (path: string, options?: TdpNavigationOptions) => void;
1734
+ }
1735
+
1736
+ export declare interface TdpNavigationOptions {
1737
+ /** Open in a new tab instead of navigating the parent TDP frame. Default: false */
1738
+ newTab?: boolean;
1739
+ }
1740
+
1741
+ /**
1742
+ * Provider that resolves the TDP base URL and exposes navigation helpers.
1743
+ *
1744
+ * Resolution order:
1745
+ * 1. Explicit `tdpBaseUrl` prop (if provided)
1746
+ * 2. `document.referrer` parsing (production iframe)
1747
+ *
1748
+ * @example
1749
+ * ```tsx
1750
+ * <TdpNavigationProvider tdpBaseUrl="https://tetrascience.com/my-org">
1751
+ * <App />
1752
+ * </TdpNavigationProvider>
1753
+ * ```
1754
+ */
1755
+ export declare const TdpNavigationProvider: default_2.FC<TdpNavigationProviderProps>;
1756
+
1757
+ /** Props for the TdpNavigationProvider component */
1758
+ export declare interface TdpNavigationProviderProps {
1759
+ /**
1760
+ * Explicit TDP base URL override. Skips auto-detection when provided.
1761
+ */
1762
+ tdpBaseUrl?: string;
1763
+ children: default_2.ReactNode;
1764
+ }
1765
+
1766
+ /**
1767
+ * Convenience helpers for constructing common TDP page paths.
1768
+ * Returns path strings for use with `getTdpUrl()` or `buildTdpUrl()`.
1769
+ *
1770
+ * @example
1771
+ * const { getTdpUrl } = useTdpNavigation();
1772
+ * const url = getTdpUrl(tdpPaths.fileDetails("abc-123"));
1773
+ */
1774
+ export declare const tdpPaths: {
1775
+ fileDetails: (fileId: string) => string;
1776
+ pipelineEdit: (pipelineId: string) => string;
1777
+ pipelineDetails: (pipelineId: string) => string;
1778
+ search: (query?: string) => string;
1779
+ dataWorkspace: () => string;
1780
+ dataApps: () => string;
1781
+ artifact: (type: string, namespace: string, slug: string) => string;
1782
+ };
1783
+
1784
+ /** Props passed to the renderResults render prop */
1785
+ export declare interface TdpResultsRenderProps {
1786
+ results: SearchResult[];
1787
+ total: number;
1788
+ currentPage: number;
1789
+ pageSize: number;
1790
+ columns: TdpSearchColumn[];
1791
+ onPageChange: (page: number) => void;
1792
+ sortKey: string | null;
1793
+ sortDirection: "asc" | "desc";
1794
+ onSort: (key: string, direction: "asc" | "desc") => void;
1795
+ }
1796
+
1797
+ /**
1798
+ * TdpSearch Component
1799
+ *
1800
+ * A reusable search component for querying the TDP.
1801
+ *
1802
+ * @example
1803
+ * ```tsx
1804
+ * <TdpSearch
1805
+ * columns={[
1806
+ * { key: "id", header: "ID" },
1807
+ * { key: "filePath", header: "File Path", sortable: true }
1808
+ * ]}
1809
+ * defaultQuery="sample-data"
1810
+ * pageSize={20}
1811
+ * />
1812
+ * ```
1813
+ */
1814
+ export declare const TdpSearch: default_2.FC<TdpSearchProps>;
1815
+
1816
+ /** Props passed to the renderSearchBar render prop */
1817
+ export declare interface TdpSearchBarRenderProps {
1818
+ query: string;
1819
+ setQuery: (query: string) => void;
1820
+ onSearch: () => void;
1821
+ isLoading: boolean;
1822
+ placeholder: string;
1823
+ }
1824
+
1825
+ /** Configuration for column display */
1826
+ export declare interface TdpSearchColumn {
1827
+ key: string;
1828
+ header: string;
1829
+ sortable?: boolean;
1830
+ width?: string;
1831
+ align?: "left" | "center" | "right";
1832
+ render?: (value: any, row: SearchResult, index: number) => default_2.ReactNode;
1833
+ }
1834
+
1835
+ /** Search connection configuration */
1836
+ export declare interface TdpSearchConfig {
1837
+ /**
1838
+ * When true, calls the TDP API directly from the browser
1839
+ * When false/omitted, proxies the request through your backend `apiEndpoint`
1840
+ */
1841
+ standalone?: boolean;
1842
+ /** TDP API base URL (required when standalone is true) */
1843
+ baseUrl?: string;
1844
+ /** Backend API endpoint for search (used when standalone is false). Defaults to '/api/search' */
1845
+ apiEndpoint?: string;
1846
+ /** Common | authentication token */
1847
+ authToken?: string;
1848
+ /** Common | organization slug */
1849
+ orgSlug?: string;
1850
+ }
1851
+
1852
+ /** Configuration for a search filter */
1853
+ export declare interface TdpSearchFilter {
1854
+ key: string;
1855
+ label: string;
1856
+ options: {
1857
+ value: string;
1858
+ label: string;
1859
+ disabled: boolean;
1860
+ }[];
1861
+ }
1862
+
1863
+ export declare type TdpSearchProps = CommonTdpSearchProps & TdpSearchConfig;
1864
+
1865
+ /** Sort configuration */
1866
+ export declare interface TdpSearchSort {
1867
+ field: string;
1868
+ order: "asc" | "desc";
1869
+ }
1870
+
1871
+ export declare const TetraScienceIcon: React_2.ForwardRefExoticComponent<Omit<TetraScienceIconProps, "ref"> & React_2.RefAttributes<SVGSVGElement>>;
1872
+
1873
+ export declare interface TetraScienceIconProps extends React_2.SVGProps<SVGSVGElement> {
1874
+ size?: number | string;
1875
+ }
1876
+
1877
+ export declare function Textarea({ className, ...props }: React_2.ComponentProps<"textarea">): JSX.Element;
1878
+
1879
+ export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
1880
+
1881
+ export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof Toggle_2.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
1882
+
1883
+ export declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React_2.ComponentProps<typeof ToggleGroup_2.Root> & VariantProps<typeof toggleVariants> & {
1884
+ spacing?: number;
1885
+ orientation?: "horizontal" | "vertical";
1886
+ }): JSX.Element;
1887
+
1888
+ export declare function ToggleGroupItem({ className, children, variant, size, ...props }: React_2.ComponentProps<typeof ToggleGroup_2.Item> & VariantProps<typeof toggleVariants>): JSX.Element;
1889
+
1890
+ export declare const toggleVariants: (props?: ({
1891
+ variant?: "default" | "outline" | null | undefined;
1892
+ size?: "default" | "sm" | "lg" | null | undefined;
1893
+ } & ClassProp) | undefined) => string;
1894
+
1895
+ export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof Tooltip_2.Root>): JSX.Element;
1896
+
1897
+ export declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof Tooltip_2.Content>): JSX.Element;
1898
+
1899
+ export declare function TooltipProvider({ delayDuration, ...props }: React_2.ComponentProps<typeof Tooltip_2.Provider>): JSX.Element;
1900
+
1901
+ export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof Tooltip_2.Trigger>): JSX.Element;
1902
+
1903
+ export declare function useCarousel(): CarouselContextProps;
1904
+
1905
+ declare type UseCarouselParameters = Parameters<typeof default_3>;
1906
+
1907
+ export declare function useComboboxAnchor(): React_2.RefObject<HTMLDivElement | null>;
1908
+
1909
+ declare interface UserProfileInfo {
1910
+ name: string;
1911
+ avatar?: string;
1912
+ }
1913
+
1914
+ declare interface UserProfileProps {
1915
+ name: string;
1916
+ avatar?: string;
1917
+ }
1918
+
1919
+ export declare function useSearch(config: UseSearchConfig): UseSearchResult;
1920
+
1921
+ export declare type UseSearchConfig = {
1922
+ pageSize: number;
1923
+ } & TdpSearchConfig;
1924
+
1925
+ export declare interface UseSearchResult {
1926
+ results: SearchResult[];
1927
+ total: number;
1928
+ currentPage: number;
1929
+ isLoading: boolean;
1930
+ error: string | null;
1931
+ executeSearch: (searchRequest: Omit<SearchEqlRequest, "from" | "size">, page?: number) => Promise<SearchResult[]>;
1932
+ }
1933
+
1934
+ export declare function useSidebar(): SidebarContextProps;
1935
+
1936
+ /**
1937
+ * Standalone hook for TDP navigation (no provider required).
1938
+ *
1939
+ * For simple use cases where you don't need a TdpNavigationProvider.
1940
+ * If multiple components need navigation, prefer the provider approach.
1941
+ *
1942
+ * @example
1943
+ * ```tsx
1944
+ * function MyComponent() {
1945
+ * const { getTdpUrl, navigateToTdp } = useTdpNavigation({
1946
+ * tdpBaseUrl: "https://tetrascience.com/my-org",
1947
+ * });
1948
+ *
1949
+ * return (
1950
+ * <a href={getTdpUrl("/file/abc") ?? "#"} target="_blank" rel="noopener noreferrer">
1951
+ * View File
1952
+ * </a>
1953
+ * );
1954
+ * }
1955
+ * ```
1956
+ */
1957
+ export declare function useTdpNavigation(options?: UseTdpNavigationOptions): UseTdpNavigationReturn;
1958
+
1959
+ /**
1960
+ * Access TDP navigation helpers from the nearest TdpNavigationProvider.
1961
+ *
1962
+ * @throws Error if used outside a TdpNavigationProvider
1963
+ *
1964
+ * @example
1965
+ * ```tsx
1966
+ * const { getTdpUrl, navigateToTdp } = useTdpNavigationContext();
1967
+ * ```
1968
+ */
1969
+ export declare function useTdpNavigationContext(): TdpNavigationContextValue;
1970
+
1971
+ export declare interface UseTdpNavigationOptions {
1972
+ /** Explicit TDP base URL override */
1973
+ tdpBaseUrl?: string;
1974
+ }
1975
+
1976
+ export declare interface UseTdpNavigationReturn {
1977
+ /** The resolved TDP base URL, or null */
1978
+ tdpBaseUrl: string | null;
1979
+ /** Construct a full TDP URL from a path */
1980
+ getTdpUrl: (path: string) => string | null;
1981
+ /** Navigate to a TDP page */
1982
+ navigateToTdp: (path: string, options?: TdpNavigationOptions) => void;
1983
+ }
1984
+
1985
+ /**
1986
+ * Visualization mode for the plate map.
1987
+ * - `"heatmap"`: Displays quantitative values as a continuous color gradient.
1988
+ * Use for OD readings, fluorescence intensity, or other numeric measurements.
1989
+ * - `"categorical"`: Displays well types with discrete colors.
1990
+ * Use for showing sample types, control positions, or experimental conditions.
1991
+ */
1992
+ declare type VisualizationMode = "heatmap" | "categorical";
1993
+
1994
+ /**
1995
+ * Well data for individual wells.
1996
+ *
1997
+ * @example
1998
+ * // Well with a single numeric value
1999
+ * { wellId: "A1", values: { "Fluorescence": 1500 } }
2000
+ *
2001
+ * @example
2002
+ * // Well with multiple values (creates multiple layers)
2003
+ * { wellId: "A1", values: { "Raw": 1500, "Normalized": 0.85, "Status": "positive" } }
2004
+ *
2005
+ * @example
2006
+ * // Well with tooltip-only data
2007
+ * { wellId: "A1", values: { "Value": 500 }, tooltipData: { compound: "Drug A", concentration: "10µM" } }
2008
+ */
2009
+ export declare interface WellData {
2010
+ /**
2011
+ * Well identifier in standard microplate notation.
2012
+ * - Single letter + number for 96/384-well: "A1", "H12", "P24"
2013
+ * - Double letter + number for 1536-well: "A1", "AA1", "AF48"
2014
+ * Case-insensitive ("a1" and "A1" are equivalent).
2015
+ */
2016
+ wellId: string;
2017
+ /**
2018
+ * Named values for the well. Each key can become a visualization layer.
2019
+ *
2020
+ * - Numeric values: Displayed using heatmap visualization
2021
+ * - String values: Displayed using categorical visualization
2022
+ * - null: Empty/no data for that property
2023
+ *
2024
+ * All values are shown in the tooltip regardless of which layer is active.
2025
+ *
2026
+ * @example
2027
+ * // Well with multiple measurement values (numeric)
2028
+ * { wellId: "A1", values: { "Raw": 1500, "Normalized": 0.85, "Z-Score": 1.2 } }
2029
+ *
2030
+ * @example
2031
+ * // Well with categorical values (string)
2032
+ * { wellId: "A1", values: { "Status": "positive", "QC": "pass" } }
2033
+ *
2034
+ * @example
2035
+ * // Mixed numeric and categorical
2036
+ * { wellId: "A1", values: { "Fluorescence": 1500, "Status": "positive" } }
2037
+ */
2038
+ values?: Record<string, string | number | null>;
2039
+ /**
2040
+ * Optional data for tooltip display only (not visualized as layers).
2041
+ * Keys become labels, values are displayed.
2042
+ *
2043
+ * @example
2044
+ * { tooltipData: { sampleId: "S001", compound: "Drug A", concentration: "10µM" } }
2045
+ */
2046
+ tooltipData?: Record<string, unknown>;
2047
+ }
2048
+
2049
+ export { }