@nubitio/ui 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
- import * as React$1 from "react";
2
- import React, { ButtonHTMLAttributes, CSSProperties, FieldsetHTMLAttributes, FormHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ProgressHTMLAttributes, ReactElement, ReactNode, RefObject, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
1
+ import * as React from "react";
2
+ import React$1, { ButtonHTMLAttributes, CSSProperties, FieldsetHTMLAttributes, FormHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ProgressHTMLAttributes, ReactElement, ReactNode, RefObject, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
3
3
  import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
4
- //#region packages/ui/Avatar.d.ts
5
4
  type AvatarShape = 'circle' | 'square';
6
5
  type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
6
  interface AvatarProps {
@@ -23,18 +22,16 @@ interface AvatarProps {
23
22
  alt?: string;
24
23
  className?: string;
25
24
  }
26
- declare function getAvatarInitials(owner?: string): string;
27
- declare function getAvatarHue(owner?: string): number;
28
- declare const Avatar: ({ owner, size, variant, shape, alt, className }: AvatarProps) => React.JSX.Element;
29
- //#endregion
30
- //#region packages/ui/AppDialog.d.ts
25
+ export declare function getAvatarInitials(owner?: string): string;
26
+ export declare function getAvatarHue(owner?: string): number;
27
+ export declare const Avatar: ({ owner, size, variant, shape, alt, className }: AvatarProps) => React$1.JSX.Element;
31
28
  interface AppDialogProps {
32
29
  visible?: boolean;
33
30
  open?: boolean;
34
31
  title: string;
35
32
  onClose: () => void;
36
- children: React.ReactNode;
37
- footer?: React.ReactNode;
33
+ children: React$1.ReactNode;
34
+ footer?: React$1.ReactNode;
38
35
  width?: number | string;
39
36
  maxWidth?: number | string;
40
37
  height?: number | string;
@@ -49,7 +46,7 @@ interface AppDialogProps {
49
46
  restoreFocus?: boolean;
50
47
  keepMounted?: boolean;
51
48
  /** Optional focus target when opening; defaults to the first focusable control. */
52
- initialFocus?: React.RefObject<HTMLElement | null>;
49
+ initialFocus?: React$1.RefObject<HTMLElement | null>;
53
50
  rootClassName?: string;
54
51
  className?: string;
55
52
  headerClassName?: string;
@@ -58,9 +55,7 @@ interface AppDialogProps {
58
55
  footerClassName?: string;
59
56
  role?: string;
60
57
  }
61
- declare const AppDialog: ({ visible, open, title, onClose, children, footer, width, maxWidth, height, fullScreen, showCloseButton, closeLabel, scrimLabel, closeOnOutsideClick, closeOnEscape, restoreFocus, keepMounted, initialFocus, rootClassName, className, headerClassName, titleClassName, bodyClassName, footerClassName, role }: AppDialogProps) => React.JSX.Element;
62
- //#endregion
63
- //#region packages/ui/ConfirmDialog.d.ts
58
+ export declare const AppDialog: ({ visible, open, title, onClose, children, footer, width, maxWidth, height, fullScreen, showCloseButton, closeLabel, scrimLabel, closeOnOutsideClick, closeOnEscape, restoreFocus, keepMounted, initialFocus, rootClassName, className, headerClassName, titleClassName, bodyClassName, footerClassName, role }: AppDialogProps) => React$1.JSX.Element;
64
59
  interface ConfirmDialogProps {
65
60
  open: boolean;
66
61
  title: string;
@@ -71,9 +66,7 @@ interface ConfirmDialogProps {
71
66
  cancelLabel?: string;
72
67
  variant?: 'danger' | 'warning' | 'info';
73
68
  }
74
- declare function ConfirmDialog({ open, title, message, onConfirm, onCancel, confirmLabel, cancelLabel, variant }: ConfirmDialogProps): import("react").JSX.Element;
75
- //#endregion
76
- //#region packages/ui/AppToolbar.d.ts
69
+ export declare function ConfirmDialog({ open, title, message, onConfirm, onCancel, confirmLabel, cancelLabel, variant }: ConfirmDialogProps): import("react").JSX.Element;
77
70
  interface AppToolbarProps {
78
71
  title: string;
79
72
  additionalToolbarContent?: ReactNode;
@@ -82,9 +75,7 @@ interface AppToolbarProps {
82
75
  icon?: string;
83
76
  refreshLabel?: string;
84
77
  }
85
- declare const AppToolbar: ({ title, additionalToolbarContent, showRefreshButton, onRefresh, icon, refreshLabel, children }: AppToolbarProps & React.PropsWithChildren) => React.JSX.Element;
86
- //#endregion
87
- //#region packages/ui/Button.d.ts
78
+ export declare const AppToolbar: ({ title, additionalToolbarContent, showRefreshButton, onRefresh, icon, refreshLabel, children }: AppToolbarProps & React$1.PropsWithChildren) => React$1.JSX.Element;
88
79
  type ButtonVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'ghost';
89
80
  type ButtonSize = 'sm' | 'md';
90
81
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
@@ -95,15 +86,13 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
95
86
  loading?: boolean;
96
87
  children?: ReactNode;
97
88
  }
98
- declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
89
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
99
90
  interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
100
91
  icon: string;
101
92
  label: string;
102
93
  variant?: 'default' | 'danger';
103
94
  }
104
- declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
105
- //#endregion
106
- //#region packages/ui/Card.d.ts
95
+ export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
107
96
  type CardVariant = 'auth' | 'panel';
108
97
  interface CardProps {
109
98
  title?: string;
@@ -112,30 +101,26 @@ interface CardProps {
112
101
  variant?: CardVariant;
113
102
  className?: string;
114
103
  }
115
- declare const Card: ({ title, description, variant, className, children }: React.PropsWithChildren<CardProps>) => React.JSX.Element;
116
- //#endregion
117
- //#region packages/ui/FormControls.d.ts
104
+ export declare const Card: ({ title, description, variant, className, children }: React$1.PropsWithChildren<CardProps>) => React$1.JSX.Element;
118
105
  interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
119
106
  label?: ReactNode;
120
107
  error?: ReactNode;
121
108
  helpText?: ReactNode;
122
109
  children: ReactNode;
123
110
  }
124
- declare const FormField: ({ label, error, helpText, children, className, ...props }: FormFieldProps) => import("react").JSX.Element;
111
+ export declare const FormField: ({ label, error, helpText, children, className, ...props }: FormFieldProps) => import("react").JSX.Element;
125
112
  interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
126
113
  invalid?: boolean;
127
114
  }
128
- declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
115
+ export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
129
116
  interface SelectFieldProps extends SelectHTMLAttributes<HTMLSelectElement> {
130
117
  invalid?: boolean;
131
118
  }
132
- declare const SelectField: import("react").ForwardRefExoticComponent<SelectFieldProps & import("react").RefAttributes<HTMLSelectElement>>;
119
+ export declare const SelectField: import("react").ForwardRefExoticComponent<SelectFieldProps & import("react").RefAttributes<HTMLSelectElement>>;
133
120
  interface TextAreaFieldProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
134
121
  invalid?: boolean;
135
122
  }
136
- declare const TextAreaField: import("react").ForwardRefExoticComponent<TextAreaFieldProps & import("react").RefAttributes<HTMLTextAreaElement>>;
137
- //#endregion
138
- //#region packages/ui/FileDropzone.d.ts
123
+ export declare const TextAreaField: import("react").ForwardRefExoticComponent<TextAreaFieldProps & import("react").RefAttributes<HTMLTextAreaElement>>;
139
124
  interface FileDropzoneValue {
140
125
  fileName?: string | null;
141
126
  fileUrl?: string | null;
@@ -169,9 +154,7 @@ interface FileDropzoneProps {
169
154
  onFileSelect: (file: File) => void;
170
155
  onClear?: () => void;
171
156
  }
172
- declare function FileDropzone({ accept, value, image, disabled, readOnly, invalid, uploading, error, labels, inputId, inputLabel, className, onFileSelect, onClear }: FileDropzoneProps): import("react").JSX.Element;
173
- //#endregion
174
- //#region packages/ui/AppDropdown.d.ts
157
+ export declare function FileDropzone({ accept, value, image, disabled, readOnly, invalid, uploading, error, labels, inputId, inputLabel, className, onFileSelect, onClear }: FileDropzoneProps): import("react").JSX.Element;
175
158
  interface AppDropdownOption {
176
159
  value: string;
177
160
  label: string;
@@ -206,9 +189,7 @@ interface AppDropdownProps {
206
189
  */
207
190
  triggerIcon?: string;
208
191
  }
209
- declare function AppDropdown({ id: idProp, ariaLabel, label, icon, value, options, onChange, disabled, placeholder, variant, className, showFieldLabel, menuMinWidth, error, helpText, menuHeader, menuFooter, onOpenChange, triggerIcon }: AppDropdownProps): import("react").JSX.Element;
210
- //#endregion
211
- //#region packages/ui/SearchableAppDropdown.d.ts
192
+ export declare function AppDropdown({ id: idProp, ariaLabel, label, icon, value, options, onChange, disabled, placeholder, variant, className, showFieldLabel, menuMinWidth, error, helpText, menuHeader, menuFooter, onOpenChange, triggerIcon }: AppDropdownProps): import("react").JSX.Element;
212
193
  interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
213
194
  options?: AppDropdownOption[];
214
195
  /** Client-side filter when `onSearch` is not provided. */
@@ -221,9 +202,7 @@ interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
221
202
  loadingLabel?: string;
222
203
  selectedOption?: AppDropdownOption | null;
223
204
  }
224
- declare function SearchableAppDropdown({ options, searchable, searchPlaceholder, onSearch, minSearchLength, emptySearchLabel, loadingLabel, selectedOption, value, onChange, placeholder, disabled, label, showFieldLabel, variant, icon: _icon, menuMinWidth: _menuMinWidth, menuHeader: _header, menuFooter: _footer, ...rest }: SearchableAppDropdownProps): import("react").JSX.Element;
225
- //#endregion
226
- //#region packages/ui/theme/ThemeProvider.d.ts
205
+ export declare function SearchableAppDropdown({ options, searchable, searchPlaceholder, onSearch, minSearchLength, emptySearchLabel, loadingLabel, selectedOption, value, onChange, placeholder, disabled, label, showFieldLabel, variant, icon: _icon, menuMinWidth: _menuMinWidth, menuHeader: _header, menuFooter: _footer, ...rest }: SearchableAppDropdownProps): import("react").JSX.Element;
227
206
  type Theme = 'light' | 'dark';
228
207
  type ThemeMode = 'light' | 'dark' | 'auto';
229
208
  interface ThemeContextValue {
@@ -232,19 +211,17 @@ interface ThemeContextValue {
232
211
  switchTheme: () => void;
233
212
  isLoaded: boolean;
234
213
  }
235
- declare const ThemeContext: React.Context<ThemeContextValue | null>;
236
- declare function useTheme(): ThemeContextValue;
214
+ export declare const ThemeContext: React$1.Context<ThemeContextValue | null>;
215
+ export declare function useTheme(): ThemeContextValue;
237
216
  interface ThemeProviderProps {
238
217
  storageKey?: string;
239
218
  themePrefix?: string;
240
219
  basePath?: string;
241
220
  /** Opt-in Figma visual foundation; existing applications keep their current theme. */
242
221
  visualStyle?: 'default' | 'nubit';
243
- children: React.ReactNode;
222
+ children: React$1.ReactNode;
244
223
  }
245
- declare const ThemeProvider: ({ storageKey, themePrefix, basePath, visualStyle, children }: ThemeProviderProps) => React.JSX.Element;
246
- //#endregion
247
- //#region packages/ui/theme/ThemeSwitcher.d.ts
224
+ export declare const ThemeProvider: ({ storageKey, themePrefix, basePath, visualStyle, children }: ThemeProviderProps) => React$1.JSX.Element;
248
225
  declare const labelByMode: {
249
226
  readonly light: "Theme: Light";
250
227
  readonly dark: "Theme: Dark";
@@ -253,42 +230,34 @@ declare const labelByMode: {
253
230
  interface ThemeSwitcherProps {
254
231
  labelByMode?: Partial<Record<keyof typeof labelByMode, string>>;
255
232
  }
256
- declare const ThemeSwitcher: ({ labelByMode: overrides }?: ThemeSwitcherProps) => React.JSX.Element;
257
- //#endregion
258
- //#region packages/ui/theme/DensityProvider.d.ts
233
+ export declare const ThemeSwitcher: ({ labelByMode: overrides }?: ThemeSwitcherProps) => React$1.JSX.Element;
259
234
  type Density = 'normal' | 'compact';
260
235
  interface DensityContextValue {
261
236
  density: Density;
262
237
  toggleDensity: () => void;
263
238
  }
264
- declare const DensityContext: React.Context<DensityContextValue | null>;
265
- declare function useDensity(): DensityContextValue;
266
- declare const DensityProvider: ({ children }: {
267
- children: React.ReactNode;
268
- }) => React.JSX.Element;
269
- //#endregion
270
- //#region packages/ui/theme/useAccentColor.d.ts
239
+ export declare const DensityContext: React$1.Context<DensityContextValue | null>;
240
+ export declare function useDensity(): DensityContextValue;
241
+ export declare const DensityProvider: ({ children }: {
242
+ children: React$1.ReactNode;
243
+ }) => React$1.JSX.Element;
271
244
  interface AccentPreset {
272
245
  label: string;
273
246
  value: string;
274
247
  }
275
- declare const ACCENT_PRESETS: AccentPreset[];
276
- declare function useAccentColor(): {
248
+ export declare const ACCENT_PRESETS: AccentPreset[];
249
+ export declare function useAccentColor(): {
277
250
  accent: string;
278
251
  changeAccent: (color: string) => void;
279
252
  presets: AccentPreset[];
280
253
  };
281
- //#endregion
282
- //#region packages/ui/SettingsPanel.d.ts
283
254
  interface SettingsPanelProps {
284
255
  onClose?: () => void;
285
256
  }
286
- declare const SettingsPanel: ({ onClose: _onClose }: SettingsPanelProps) => React.JSX.Element;
287
- //#endregion
288
- //#region packages/ui/FeatureGate.d.ts
257
+ export declare const SettingsPanel: ({ onClose: _onClose }: SettingsPanelProps) => React$1.JSX.Element;
289
258
  interface FeatureGateProps {
290
259
  featureKey: string;
291
- children: React.ReactNode;
260
+ children: React$1.ReactNode;
292
261
  enabled?: boolean;
293
262
  behavior?: 'lock' | 'upgrade';
294
263
  planBadge?: string;
@@ -296,9 +265,7 @@ interface FeatureGateProps {
296
265
  upgradeUrl?: string;
297
266
  lockTooltip?: string;
298
267
  }
299
- declare function FeatureGate({ featureKey, children, enabled, behavior, planBadge, upgradeMessage, upgradeUrl, lockTooltip }: FeatureGateProps): React.JSX.Element;
300
- //#endregion
301
- //#region packages/ui/Badge.d.ts
268
+ export declare function FeatureGate({ featureKey, children, enabled, behavior, planBadge, upgradeMessage, upgradeUrl, lockTooltip }: FeatureGateProps): React$1.JSX.Element;
302
269
  type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
303
270
  type BadgeSize = 'sm' | 'md';
304
271
  interface BadgeProps {
@@ -315,9 +282,7 @@ interface BadgeProps {
315
282
  children?: ReactNode;
316
283
  className?: string;
317
284
  }
318
- declare const Badge: ({ variant, size, outlined, pill, dot, children, className }: BadgeProps) => import("react").JSX.Element;
319
- //#endregion
320
- //#region packages/ui/Skeleton.d.ts
285
+ export declare const Badge: ({ variant, size, outlined, pill, dot, children, className }: BadgeProps) => import("react").JSX.Element;
321
286
  interface SkeletonProps {
322
287
  /** Rendered shape. */
323
288
  variant?: 'text' | 'rect' | 'circle';
@@ -329,9 +294,7 @@ interface SkeletonProps {
329
294
  lines?: number;
330
295
  className?: string;
331
296
  }
332
- declare const Skeleton: ({ variant, width, height, lines, className }: SkeletonProps) => import("react").JSX.Element;
333
- //#endregion
334
- //#region packages/ui/EmptyState.d.ts
297
+ export declare const Skeleton: ({ variant, width, height, lines, className }: SkeletonProps) => import("react").JSX.Element;
335
298
  type EmptyStateVariant = 'default' | 'danger' | 'warning' | 'success';
336
299
  type EmptyStateSize = 'sm' | 'md' | 'lg';
337
300
  interface EmptyStateProps {
@@ -353,9 +316,7 @@ interface EmptyStateProps {
353
316
  fill?: boolean;
354
317
  className?: string;
355
318
  }
356
- declare const EmptyState: ({ icon, illustration, variant, title, description, action, size, fill, className }: EmptyStateProps) => import("react").JSX.Element;
357
- //#endregion
358
- //#region packages/ui/Chip.d.ts
319
+ export declare const EmptyState: ({ icon, illustration, variant, title, description, action, size, fill, className }: EmptyStateProps) => import("react").JSX.Element;
359
320
  interface ChipProps {
360
321
  /** Displayed label */
361
322
  label: ReactNode;
@@ -376,15 +337,13 @@ interface ChipProps {
376
337
  * Pill-shaped filter/tag chip. Stateless — caller controls `active`.
377
338
  * Use for category filters, tag lists, and multi-select inputs.
378
339
  */
379
- declare const Chip: ({ label, active, count, icon, size, disabled, onClick, className }: ChipProps) => React.JSX.Element;
380
- //#endregion
381
- //#region packages/ui/Toggle.d.ts
340
+ export declare const Chip: ({ label, active, count, icon, size, disabled, onClick, className }: ChipProps) => React$1.JSX.Element;
382
341
  interface ToggleProps {
383
342
  /** Controlled checked value */
384
343
  checked: boolean;
385
344
  onChange: (checked: boolean) => void;
386
345
  /** Optional label rendered in a flex row alongside the toggle */
387
- label?: React.ReactNode;
346
+ label?: React$1.ReactNode;
388
347
  /** Size variant */
389
348
  size?: 'sm' | 'md';
390
349
  disabled?: boolean;
@@ -399,9 +358,7 @@ interface ToggleProps {
399
358
  * With `label`: wraps in `.nb-toggle-row` for a label ↔ toggle layout.
400
359
  * Without `label`: renders bare `.nb-toggle`.
401
360
  */
402
- declare const Toggle: ({ checked, onChange, label, size, disabled, "aria-label": ariaLabel, className }: ToggleProps) => React.JSX.Element;
403
- //#endregion
404
- //#region packages/ui/ContextMenu.d.ts
361
+ export declare const Toggle: ({ checked, onChange, label, size, disabled, "aria-label": ariaLabel, className }: ToggleProps) => React$1.JSX.Element;
405
362
  interface ContextMenuItem {
406
363
  label: string;
407
364
  icon?: string;
@@ -424,9 +381,7 @@ interface ContextMenuProps {
424
381
  align?: 'right' | 'left';
425
382
  className?: string;
426
383
  }
427
- declare const ContextMenu: ({ items, visible, trigger, triggerLabel, align, className }: ContextMenuProps) => React.JSX.Element | null;
428
- //#endregion
429
- //#region packages/ui/StatCard.d.ts
384
+ export declare const ContextMenu: ({ items, visible, trigger, triggerLabel, align, className }: ContextMenuProps) => React$1.JSX.Element | null;
430
385
  interface StatCardProps {
431
386
  title?: string;
432
387
  /** Extra content rendered in the header row (e.g. a date-range badge) */
@@ -445,9 +400,7 @@ interface StatCardProps {
445
400
  * Replaces the legacy `shared/ui/card-analytics/CardAnalytics` component.
446
401
  * Uses `ContextMenu` from `@nubitio/ui` for the overflow menu.
447
402
  */
448
- declare const StatCard: ({ title, headerExtra, menuVisible, menuItems, isLoading, className, children }: StatCardProps) => React.JSX.Element;
449
- //#endregion
450
- //#region packages/ui/KpiMetricRow.d.ts
403
+ export declare const StatCard: ({ title, headerExtra, menuVisible, menuItems, isLoading, className, children }: StatCardProps) => React$1.JSX.Element;
451
404
  type KpiMetricTone = 'default' | 'success' | 'warning' | 'danger';
452
405
  type KpiMetricLayout = 'cards' | 'strip';
453
406
  type KpiMetricDensity = 'default' | 'compact';
@@ -466,9 +419,7 @@ interface KpiMetricRowProps {
466
419
  testId?: string;
467
420
  loading?: boolean;
468
421
  }
469
- declare function KpiMetricRow({ items, className, layout, density, testId, loading }: KpiMetricRowProps): import("react").JSX.Element | null;
470
- //#endregion
471
- //#region packages/ui/SegmentedControl.d.ts
422
+ export declare function KpiMetricRow({ items, className, layout, density, testId, loading }: KpiMetricRowProps): import("react").JSX.Element | null;
472
423
  interface SegmentedControlOption<T extends string = string> {
473
424
  value: T;
474
425
  label: ReactNode;
@@ -482,9 +433,7 @@ interface SegmentedControlProps<T extends string = string> {
482
433
  className?: string;
483
434
  size?: 'sm' | 'md';
484
435
  }
485
- declare function SegmentedControl<T extends string = string>({ options, value, onChange, ariaLabel, className, size }: SegmentedControlProps<T>): import("react").JSX.Element | null;
486
- //#endregion
487
- //#region packages/ui/FilterPanel.d.ts
436
+ export declare function SegmentedControl<T extends string = string>({ options, value, onChange, ariaLabel, className, size }: SegmentedControlProps<T>): import("react").JSX.Element | null;
488
437
  interface FilterPanelChipOption {
489
438
  key: string;
490
439
  label: ReactNode;
@@ -517,9 +466,7 @@ interface FilterPanelProps<T extends string = string> {
517
466
  className?: string;
518
467
  testId?: string;
519
468
  }
520
- declare function FilterPanel<T extends string = string>({ category, status, layout, density, className, testId }: FilterPanelProps<T>): import("react").JSX.Element;
521
- //#endregion
522
- //#region packages/ui/ScopeTabs.d.ts
469
+ export declare function FilterPanel<T extends string = string>({ category, status, layout, density, className, testId }: FilterPanelProps<T>): import("react").JSX.Element;
523
470
  interface ScopeTabOption {
524
471
  key: string;
525
472
  label: ReactNode;
@@ -539,9 +486,7 @@ interface ScopeTabsProps {
539
486
  * Pill tabs for scoping a list view (warehouse, branch, period, etc.).
540
487
  * Hides itself when there is at most one scope option.
541
488
  */
542
- declare function ScopeTabs({ options, selectedKey, onChange, allLabel, ariaLabel, density, className, testId }: ScopeTabsProps): import("react").JSX.Element | null;
543
- //#endregion
544
- //#region packages/ui/OperationCardGrid.d.ts
489
+ export declare function ScopeTabs({ options, selectedKey, onChange, allLabel, ariaLabel, density, className, testId }: ScopeTabsProps): import("react").JSX.Element | null;
545
490
  type OperationCardAccent = 'default' | 'in' | 'out' | 'count' | 'adjust' | 'transfer' | 'info' | 'warning' | 'danger';
546
491
  interface OperationCardItem {
547
492
  key: string;
@@ -559,9 +504,7 @@ interface OperationCardGridProps {
559
504
  className?: string;
560
505
  testId?: string;
561
506
  }
562
- declare function OperationCardGrid({ title, description, operations, className, testId }: OperationCardGridProps): import("react").JSX.Element;
563
- //#endregion
564
- //#region packages/ui/HubPanel.d.ts
507
+ export declare function OperationCardGrid({ title, description, operations, className, testId }: OperationCardGridProps): import("react").JSX.Element;
565
508
  type HubPanelVariant = 'card' | 'flush';
566
509
  interface HubPanelProps {
567
510
  children: ReactNode;
@@ -573,12 +516,10 @@ interface HubPanelProps {
573
516
  /**
574
517
  * Card shell for feature-hub chrome above a CRUD grid (KPIs, scope tabs, filters).
575
518
  */
576
- declare function HubPanel({ children, variant, className, testId }: HubPanelProps): import("react").JSX.Element;
577
- //#endregion
578
- //#region packages/ui/CollapsibleSection.d.ts
519
+ export declare function HubPanel({ children, variant, className, testId }: HubPanelProps): import("react").JSX.Element;
579
520
  interface CollapsibleSectionProps {
580
521
  /** Section heading text. */
581
- label: React.ReactNode;
522
+ label: React$1.ReactNode;
582
523
  /** Optional Phosphor icon class string, e.g. "ph ph-chat-circle". */
583
524
  icon?: string;
584
525
  /** Controlled open state. */
@@ -586,12 +527,12 @@ interface CollapsibleSectionProps {
586
527
  /** Called when the header trigger is clicked. */
587
528
  onToggle: () => void;
588
529
  /** Body content — always mounted, hidden via CSS when collapsed. */
589
- children: React.ReactNode;
530
+ children: React$1.ReactNode;
590
531
  /**
591
532
  * Optional trailing slot rendered to the right of the label.
592
533
  * Useful for a clear button or indicator badge.
593
534
  */
594
- trailing?: React.ReactNode;
535
+ trailing?: React$1.ReactNode;
595
536
  className?: string;
596
537
  /** Additional class applied to the body container. */
597
538
  bodyClassName?: string;
@@ -606,9 +547,7 @@ interface CollapsibleSectionProps {
606
547
  * heavy children before they are needed. Pass `keepMounted` if you need
607
548
  * the body always in the DOM.
608
549
  */
609
- declare const CollapsibleSection: ({ label, icon, open, onToggle, children, trailing, className, bodyClassName, "data-testid": testId }: CollapsibleSectionProps) => React.JSX.Element;
610
- //#endregion
611
- //#region packages/ui/DatePicker.d.ts
550
+ export declare const CollapsibleSection: ({ label, icon, open, onToggle, children, trailing, className, bodyClassName, "data-testid": testId }: CollapsibleSectionProps) => React$1.JSX.Element;
612
551
  interface DatePickerProps {
613
552
  id?: string;
614
553
  name?: string;
@@ -627,11 +566,9 @@ interface DatePickerProps {
627
566
  className?: string;
628
567
  ariaLabel?: string;
629
568
  onChange?: (value: string) => void;
630
- onBlur?: React.FocusEventHandler<HTMLElement>;
569
+ onBlur?: React$1.FocusEventHandler<HTMLElement>;
631
570
  }
632
- declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
633
- //#endregion
634
- //#region packages/ui/DateRangePicker.d.ts
571
+ export declare const DatePicker: React$1.ForwardRefExoticComponent<DatePickerProps & React$1.RefAttributes<HTMLInputElement>>;
635
572
  interface DateRangePickerProps {
636
573
  startValue?: string | null;
637
574
  endValue?: string | null;
@@ -647,11 +584,9 @@ interface DateRangePickerProps {
647
584
  className?: string;
648
585
  ariaLabel?: string;
649
586
  onChange?: (startValue: string, endValue: string) => void;
650
- onBlur?: React.FocusEventHandler<HTMLElement>;
587
+ onBlur?: React$1.FocusEventHandler<HTMLElement>;
651
588
  }
652
- declare function DateRangePicker({ startValue, endValue, placeholder, disabled, clearable, readOnly, required, invalid, locale, min, max, className, ariaLabel, onChange, onBlur }: DateRangePickerProps): React.JSX.Element;
653
- //#endregion
654
- //#region packages/ui/Popover.d.ts
589
+ export declare function DateRangePicker({ startValue, endValue, placeholder, disabled, clearable, readOnly, required, invalid, locale, min, max, className, ariaLabel, onChange, onBlur }: DateRangePickerProps): React$1.JSX.Element;
655
590
  type PopoverAlign = 'start' | 'end';
656
591
  interface PopoverProps {
657
592
  /**
@@ -661,14 +596,14 @@ interface PopoverProps {
661
596
  trigger: (props: {
662
597
  open: boolean;
663
598
  toggle: () => void;
664
- }) => React.ReactNode;
599
+ }) => React$1.ReactNode;
665
600
  /**
666
601
  * Render prop for the panel content.
667
602
  * `close` is a callback to close the popover.
668
603
  */
669
604
  panel: (props: {
670
605
  close: () => void;
671
- }) => React.ReactNode;
606
+ }) => React$1.ReactNode;
672
607
  /**
673
608
  * Horizontal alignment of the panel relative to the container.
674
609
  * - 'end' (default): right-aligns the panel (panel right = container right)
@@ -679,9 +614,7 @@ interface PopoverProps {
679
614
  ariaLabel?: string;
680
615
  className?: string;
681
616
  }
682
- declare const Popover: ({ trigger, panel, align, ariaLabel, className }: PopoverProps) => React.JSX.Element;
683
- //#endregion
684
- //#region packages/ui/useFloatingPanel.d.ts
617
+ export declare const Popover: ({ trigger, panel, align, ariaLabel, className }: PopoverProps) => React$1.JSX.Element;
685
618
  interface UseFloatingPanelOptions<C extends HTMLElement = HTMLDivElement> {
686
619
  /** Called whenever the panel closes (dismiss, Escape or programmatic). */
687
620
  onClose?: () => void;
@@ -714,9 +647,7 @@ interface UseFloatingPanelResult<C extends HTMLElement = HTMLDivElement, P exten
714
647
  /** Current anchored style; starts hidden until first computed. */
715
648
  panelStyle: CSSProperties;
716
649
  }
717
- declare function useFloatingPanel<C extends HTMLElement = HTMLDivElement, P extends HTMLElement = HTMLDivElement>(options?: UseFloatingPanelOptions<C>): UseFloatingPanelResult<C, P>;
718
- //#endregion
719
- //#region packages/ui/Drawer.d.ts
650
+ export declare function useFloatingPanel<C extends HTMLElement = HTMLDivElement, P extends HTMLElement = HTMLDivElement>(options?: UseFloatingPanelOptions<C>): UseFloatingPanelResult<C, P>;
720
651
  type DrawerSide = 'right' | 'left';
721
652
  interface DrawerProps {
722
653
  /** Controls visibility. The drawer mounts/unmounts with this flag. */
@@ -726,7 +657,7 @@ interface DrawerProps {
726
657
  /** Called on Escape, scrim click, or the built-in close button. */
727
658
  onClose: () => void;
728
659
  /** Optional title rendered in the header. */
729
- title?: React.ReactNode;
660
+ title?: React$1.ReactNode;
730
661
  /** Width of the panel. Accepts any CSS value or a number (px). */
731
662
  width?: number | string;
732
663
  /** Which side the drawer slides in from. Default: right. */
@@ -738,9 +669,9 @@ interface DrawerProps {
738
669
  */
739
670
  scrim?: 'subtle' | 'overlay';
740
671
  /** Content rendered inside the scrollable body. */
741
- children: React.ReactNode;
672
+ children: React$1.ReactNode;
742
673
  /** Optional sticky footer (e.g. action buttons). */
743
- footer?: React.ReactNode;
674
+ footer?: React$1.ReactNode;
744
675
  /** Accessible label for the close button. Defaults to UiStrings `close`. */
745
676
  closeLabel?: string;
746
677
  /** Accessible label for the backdrop scrim. Defaults to UiStrings `closePanel`. */
@@ -750,9 +681,7 @@ interface DrawerProps {
750
681
  /** aria-label for the dialog when no title is provided. */
751
682
  'aria-label'?: string;
752
683
  }
753
- declare const Drawer: React.FC<DrawerProps>;
754
- //#endregion
755
- //#region packages/ui/Timeline.d.ts
684
+ export declare const Drawer: React$1.FC<DrawerProps>;
756
685
  type TimelineVariant = 'stepper' | 'log';
757
686
  type TimelineOrientation = 'vertical' | 'horizontal';
758
687
  type TimelineItemStatus = 'complete' | 'current' | 'pending' | 'error';
@@ -784,10 +713,8 @@ interface TimelineItemProps {
784
713
  children?: ReactNode;
785
714
  className?: string;
786
715
  }
787
- declare function TimelineItem({ status, title, marker, timestamp, dateTime, tone, children, className }: TimelineItemProps): React.JSX.Element;
788
- declare function Timeline({ variant, orientation, title, description, children, className, 'aria-label': ariaLabel }: TimelineProps): React.JSX.Element;
789
- //#endregion
790
- //#region packages/ui/UiStrings.d.ts
716
+ export declare function TimelineItem({ status, title, marker, timestamp, dateTime, tone, children, className }: TimelineItemProps): React$1.JSX.Element;
717
+ export declare function Timeline({ variant, orientation, title, description, children, className, 'aria-label': ariaLabel }: TimelineProps): React$1.JSX.Element;
791
718
  /**
792
719
  * Built-in UI strings for @nubitio/ui components (aria-labels, tooltips).
793
720
  *
@@ -893,24 +820,29 @@ interface UiStrings {
893
820
  featureRequiresPlan: string;
894
821
  /** FeatureGate upgrade prompt: link to the plans page. */
895
822
  viewPlans: string;
896
- }
897
- declare const EN_UI_STRINGS: UiStrings;
898
- declare const ES_UI_STRINGS: UiStrings;
823
+ /** TreeList search field, empty state and tree interaction labels. */
824
+ treeListFilter: string;
825
+ treeListEmpty: string;
826
+ treeListExpand: string;
827
+ treeListCollapse: string;
828
+ treeListSelect: string;
829
+ treeListSelectAll: string;
830
+ treeListEdit: string;
831
+ treeListMoveFailed: string;
832
+ }
833
+ export declare const EN_UI_STRINGS: UiStrings;
834
+ export declare const ES_UI_STRINGS: UiStrings;
899
835
  interface UiStringsProviderProps {
900
836
  /** Full or partial string set; missing keys fall back to English. */
901
837
  strings: Partial<UiStrings>;
902
- children: React.ReactNode;
838
+ children: React$1.ReactNode;
903
839
  }
904
- declare const UiStringsProvider: React.FC<UiStringsProviderProps>;
905
- declare const useUiStrings: () => UiStrings;
906
- //#endregion
907
- //#region packages/ui/layoutUtils.d.ts
840
+ export declare const UiStringsProvider: React$1.FC<UiStringsProviderProps>;
841
+ export declare const useUiStrings: () => UiStrings;
908
842
  type SpaceScale = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
909
843
  type ColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
910
844
  type FlexAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
911
845
  type FlexJustify = 'start' | 'center' | 'end' | 'between' | 'around';
912
- //#endregion
913
- //#region packages/ui/Page.d.ts
914
846
  interface PageProps extends HTMLAttributes<HTMLDivElement> {
915
847
  children: ReactNode;
916
848
  /** Stretch to fill the admin shell content area (flex column). */
@@ -921,9 +853,7 @@ interface PageProps extends HTMLAttributes<HTMLDivElement> {
921
853
  narrow?: boolean;
922
854
  gap?: SpaceScale;
923
855
  }
924
- declare function Page({ children, fill, wide, narrow, gap, className, ...props }: PageProps): import("react").JSX.Element;
925
- //#endregion
926
- //#region packages/ui/PageHeader.d.ts
856
+ export declare function Page({ children, fill, wide, narrow, gap, className, ...props }: PageProps): import("react").JSX.Element;
927
857
  interface PageHeaderBreadcrumb {
928
858
  label: string;
929
859
  href: string;
@@ -944,9 +874,7 @@ interface PageHeaderProps {
944
874
  actions?: ReactNode;
945
875
  className?: string;
946
876
  }
947
- declare function PageHeader({ title, subtitle, metadata, breadcrumb, breadcrumbSlot, badge, actions, className }: PageHeaderProps): import("react").JSX.Element;
948
- //#endregion
949
- //#region packages/ui/Stack.d.ts
877
+ export declare function PageHeader({ title, subtitle, metadata, breadcrumb, breadcrumbSlot, badge, actions, className }: PageHeaderProps): import("react").JSX.Element;
950
878
  interface StackProps extends HTMLAttributes<HTMLDivElement> {
951
879
  children: ReactNode;
952
880
  gap?: SpaceScale;
@@ -954,9 +882,7 @@ interface StackProps extends HTMLAttributes<HTMLDivElement> {
954
882
  justify?: FlexJustify;
955
883
  fill?: boolean;
956
884
  }
957
- declare function Stack({ children, gap, align, justify, fill, className, ...props }: StackProps): import("react").JSX.Element;
958
- //#endregion
959
- //#region packages/ui/Row.d.ts
885
+ export declare function Stack({ children, gap, align, justify, fill, className, ...props }: StackProps): import("react").JSX.Element;
960
886
  interface RowProps extends HTMLAttributes<HTMLDivElement> {
961
887
  children: ReactNode;
962
888
  gap?: SpaceScale;
@@ -965,17 +891,13 @@ interface RowProps extends HTMLAttributes<HTMLDivElement> {
965
891
  wrap?: boolean;
966
892
  fill?: boolean;
967
893
  }
968
- declare function Row({ children, gap, align, justify, wrap, fill, className, ...props }: RowProps): import("react").JSX.Element;
969
- //#endregion
970
- //#region packages/ui/Cluster.d.ts
894
+ export declare function Row({ children, gap, align, justify, wrap, fill, className, ...props }: RowProps): import("react").JSX.Element;
971
895
  interface ClusterProps extends HTMLAttributes<HTMLDivElement> {
972
896
  children: ReactNode;
973
897
  gap?: SpaceScale;
974
898
  }
975
899
  /** Inline flex row that wraps — ideal for button groups and filter actions. */
976
- declare function Cluster({ children, gap, className, ...props }: ClusterProps): import("react").JSX.Element;
977
- //#endregion
978
- //#region packages/ui/Grid.d.ts
900
+ export declare function Cluster({ children, gap, className, ...props }: ClusterProps): import("react").JSX.Element;
979
901
  type GridCols = 12 | 'auto' | 1 | 2 | 3 | 4;
980
902
  interface GridProps extends HTMLAttributes<HTMLDivElement> {
981
903
  children: ReactNode;
@@ -986,9 +908,7 @@ interface GridProps extends HTMLAttributes<HTMLDivElement> {
986
908
  minColWidth?: string;
987
909
  fill?: boolean;
988
910
  }
989
- declare function Grid({ children, cols, gap, minColWidth, fill, className, style, ...props }: GridProps): import("react").JSX.Element;
990
- //#endregion
991
- //#region packages/ui/Col.d.ts
911
+ export declare function Grid({ children, cols, gap, minColWidth, fill, className, style, ...props }: GridProps): import("react").JSX.Element;
992
912
  interface ColProps extends HTMLAttributes<HTMLDivElement> {
993
913
  children: ReactNode;
994
914
  /** Span at all breakpoints (overrides the mobile full-width default). */
@@ -999,9 +919,7 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
999
919
  /** Span all columns in the current row. */
1000
920
  fullWidth?: boolean;
1001
921
  }
1002
- declare function Col({ children, span, spanSm, spanMd, spanLg, fullWidth, className, ...props }: ColProps): import("react").JSX.Element;
1003
- //#endregion
1004
- //#region packages/ui/Section.d.ts
922
+ export declare function Col({ children, span, spanSm, spanMd, spanLg, fullWidth, className, ...props }: ColProps): import("react").JSX.Element;
1005
923
  interface SectionProps {
1006
924
  title: string;
1007
925
  children: ReactNode;
@@ -1009,9 +927,7 @@ interface SectionProps {
1009
927
  /** Panel titles use sentence case; label preserves the compact group heading. */
1010
928
  variant?: 'label' | 'panel';
1011
929
  }
1012
- declare function Section({ title, children, className, variant }: SectionProps): import("react").JSX.Element;
1013
- //#endregion
1014
- //#region packages/ui/FormLayout.d.ts
930
+ export declare function Section({ title, children, className, variant }: SectionProps): import("react").JSX.Element;
1015
931
  type FormLayoutVariant = 'stack' | 'grid' | 'inline' | 'filter';
1016
932
  interface FormLayoutProps extends FormHTMLAttributes<HTMLFormElement> {
1017
933
  children: ReactNode;
@@ -1019,25 +935,19 @@ interface FormLayoutProps extends FormHTMLAttributes<HTMLFormElement> {
1019
935
  /** Minimum column width for grid and filter variants. */
1020
936
  minColWidth?: string;
1021
937
  }
1022
- declare function FormLayout({ children, variant, minColWidth, className, style, ...props }: FormLayoutProps): import("react").JSX.Element;
1023
- //#endregion
1024
- //#region packages/ui/FormActions.d.ts
938
+ export declare function FormLayout({ children, variant, minColWidth, className, style, ...props }: FormLayoutProps): import("react").JSX.Element;
1025
939
  interface FormActionsProps {
1026
940
  children: ReactNode;
1027
941
  className?: string;
1028
942
  }
1029
- declare function FormActions({ children, className }: FormActionsProps): import("react").JSX.Element;
1030
- //#endregion
1031
- //#region packages/ui/Alert.d.ts
943
+ export declare function FormActions({ children, className }: FormActionsProps): import("react").JSX.Element;
1032
944
  type AlertTone = 'danger' | 'warning' | 'info';
1033
945
  interface AlertProps {
1034
946
  tone?: AlertTone;
1035
947
  children: ReactNode;
1036
948
  className?: string;
1037
949
  }
1038
- declare function Alert({ tone, children, className }: AlertProps): import("react").JSX.Element;
1039
- //#endregion
1040
- //#region packages/ui/DescriptionList.d.ts
950
+ export declare function Alert({ tone, children, className }: AlertProps): import("react").JSX.Element;
1041
951
  interface DescriptionListItem {
1042
952
  term: string;
1043
953
  value: ReactNode;
@@ -1046,25 +956,19 @@ interface DescriptionListProps {
1046
956
  items: DescriptionListItem[];
1047
957
  className?: string;
1048
958
  }
1049
- declare function DescriptionList({ items, className }: DescriptionListProps): import("react").JSX.Element;
1050
- //#endregion
1051
- //#region packages/ui/Code.d.ts
959
+ export declare function DescriptionList({ items, className }: DescriptionListProps): import("react").JSX.Element;
1052
960
  interface CodeProps {
1053
961
  children: ReactNode;
1054
962
  className?: string;
1055
963
  }
1056
- declare function Code({ children, className }: CodeProps): import("react").JSX.Element;
1057
- //#endregion
1058
- //#region packages/ui/Text.d.ts
964
+ export declare function Code({ children, className }: CodeProps): import("react").JSX.Element;
1059
965
  type TextTone = 'default' | 'muted';
1060
966
  interface TextProps extends HTMLAttributes<HTMLSpanElement> {
1061
967
  children: ReactNode;
1062
968
  tone?: TextTone;
1063
969
  as?: 'span' | 'p';
1064
970
  }
1065
- declare function Text({ children, tone, as: Tag, className, ...props }: TextProps): import("react").JSX.Element;
1066
- //#endregion
1067
- //#region packages/ui/Pagination.d.ts
971
+ export declare function Text({ children, tone, as: Tag, className, ...props }: TextProps): import("react").JSX.Element;
1068
972
  interface PaginationProps {
1069
973
  page: number;
1070
974
  totalPages: number;
@@ -1074,9 +978,7 @@ interface PaginationProps {
1074
978
  maxVisible?: number;
1075
979
  className?: string;
1076
980
  }
1077
- declare function Pagination({ page, totalPages, onPageChange, ariaLabel, maxVisible, className }: PaginationProps): import("react").JSX.Element | null;
1078
- //#endregion
1079
- //#region packages/ui/DataTable.d.ts
981
+ export declare function Pagination({ page, totalPages, onPageChange, ariaLabel, maxVisible, className }: PaginationProps): import("react").JSX.Element | null;
1080
982
  type DataTableColumnAlign = 'left' | 'right' | 'center';
1081
983
  interface DataTableColumn<T> {
1082
984
  id: string;
@@ -1104,9 +1006,7 @@ interface DataTableProps<T> {
1104
1006
  renderActions?: (row: T) => ReactNode;
1105
1007
  pagination?: PaginationProps;
1106
1008
  }
1107
- declare function DataTable<T>({ columns, rows, getRowKey, emptyMessage, fill, variant, className, wrapClassName, testId, rowActions, rowActionsLabel, renderActions, pagination }: DataTableProps<T>): import("react").JSX.Element | null;
1108
- //#endregion
1109
- //#region packages/ui/RowActions.d.ts
1009
+ export declare function DataTable<T>({ columns, rows, getRowKey, emptyMessage, fill, variant, className, wrapClassName, testId, rowActions, rowActionsLabel, renderActions, pagination }: DataTableProps<T>): import("react").JSX.Element | null;
1110
1010
  interface RowActionsProps {
1111
1011
  items: ContextMenuItem[];
1112
1012
  triggerLabel?: string;
@@ -1114,9 +1014,7 @@ interface RowActionsProps {
1114
1014
  className?: string;
1115
1015
  }
1116
1016
  /** Context menu preset for table row overflow actions. */
1117
- declare function RowActions({ items, triggerLabel, align, className }: RowActionsProps): import("react").JSX.Element | null;
1118
- //#endregion
1119
- //#region packages/ui/useConfirm.d.ts
1017
+ export declare function RowActions({ items, triggerLabel, align, className }: RowActionsProps): import("react").JSX.Element | null;
1120
1018
  type ConfirmRequest = {
1121
1019
  title: string;
1122
1020
  message: string;
@@ -1124,22 +1022,18 @@ type ConfirmRequest = {
1124
1022
  confirmLabel?: string;
1125
1023
  onConfirm: () => void;
1126
1024
  };
1127
- declare function useConfirm(): {
1025
+ export declare function useConfirm(): {
1128
1026
  ask: (request: ConfirmRequest) => void;
1129
1027
  dismiss: () => void;
1130
1028
  ConfirmHost: () => import("react").JSX.Element;
1131
1029
  };
1132
- //#endregion
1133
- //#region packages/ui/Checkbox.d.ts
1134
1030
  interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
1135
1031
  label?: ReactNode;
1136
1032
  indeterminate?: boolean;
1137
1033
  invalid?: boolean;
1138
1034
  }
1139
1035
  /** Native checkbox, including the mixed state used by bulk selection. */
1140
- declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
1141
- //#endregion
1142
- //#region packages/ui/RadioGroup.d.ts
1036
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
1143
1037
  interface RadioGroupOption<T extends string = string> {
1144
1038
  value: T;
1145
1039
  label: ReactNode;
@@ -1156,9 +1050,7 @@ interface RadioGroupProps<T extends string = string> extends Omit<FieldsetHTMLAt
1156
1050
  invalid?: boolean;
1157
1051
  }
1158
1052
  /** Native radios share a name for browser keyboard navigation and form submission. */
1159
- declare function RadioGroup<T extends string = string>({ label, name, value, options, onChange, orientation, required, invalid, disabled, className, ...props }: RadioGroupProps<T>): import("react").JSX.Element;
1160
- //#endregion
1161
- //#region packages/ui/Tabs.d.ts
1053
+ export declare function RadioGroup<T extends string = string>({ label, name, value, options, onChange, orientation, required, invalid, disabled, className, ...props }: RadioGroupProps<T>): import("react").JSX.Element;
1162
1054
  interface TabsItem<T extends string = string> {
1163
1055
  value: T;
1164
1056
  label: ReactNode;
@@ -1177,24 +1069,18 @@ interface TabsProps<T extends string = string> {
1177
1069
  keepMounted?: boolean;
1178
1070
  className?: string;
1179
1071
  }
1180
- declare function Tabs<T extends string = string>({ items, value, onChange, 'aria-label': ariaLabel, orientation, activationMode, keepMounted, className }: TabsProps<T>): import("react").JSX.Element;
1181
- //#endregion
1182
- //#region packages/ui/Spinner.d.ts
1072
+ export declare function Tabs<T extends string = string>({ items, value, onChange, 'aria-label': ariaLabel, orientation, activationMode, keepMounted, className }: TabsProps<T>): import("react").JSX.Element;
1183
1073
  interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
1184
1074
  /** Localized accessible name. Omit for a decorative indicator. */
1185
1075
  label?: string;
1186
1076
  size?: 'sm' | 'md' | 'lg';
1187
1077
  }
1188
- declare function Spinner({ label, size, className, ...props }: SpinnerProps): import("react").JSX.Element;
1189
- //#endregion
1190
- //#region packages/ui/Progress.d.ts
1078
+ export declare function Spinner({ label, size, className, ...props }: SpinnerProps): import("react").JSX.Element;
1191
1079
  interface ProgressProps extends ProgressHTMLAttributes<HTMLProgressElement> {
1192
1080
  label?: ReactNode;
1193
1081
  }
1194
1082
  /** Omit value for indeterminate progress; max defaults to 100. */
1195
- declare function Progress({ label, id, max, className, ...props }: ProgressProps): import("react").JSX.Element;
1196
- //#endregion
1197
- //#region packages/ui/useComboboxOptions.d.ts
1083
+ export declare function Progress({ label, id, max, className, ...props }: ProgressProps): import("react").JSX.Element;
1198
1084
  interface ComboboxPage {
1199
1085
  options: ComboboxOption[];
1200
1086
  nextCursor?: string | number | null;
@@ -1203,8 +1089,6 @@ type ComboboxLoader = (query: string, context: {
1203
1089
  signal: AbortSignal;
1204
1090
  cursor?: string | number;
1205
1091
  }) => Promise<ComboboxPage>;
1206
- //#endregion
1207
- //#region packages/ui/Combobox.d.ts
1208
1092
  interface ComboboxOption {
1209
1093
  value: string;
1210
1094
  label: string;
@@ -1240,10 +1124,8 @@ interface MultiSelectProps extends Omit<ComboboxProps, 'value' | 'onChange'> {
1240
1124
  selectedLabel?: string;
1241
1125
  removeLabel?: (option: ComboboxOption) => string;
1242
1126
  }
1243
- declare const Combobox: React$1.ForwardRefExoticComponent<ComboboxProps & React$1.RefAttributes<HTMLInputElement>>;
1244
- declare const MultiSelect: React$1.ForwardRefExoticComponent<MultiSelectProps & React$1.RefAttributes<HTMLInputElement>>;
1245
- //#endregion
1246
- //#region packages/ui/Tooltip.d.ts
1127
+ export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>;
1128
+ export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLInputElement>>;
1247
1129
  interface TooltipProps {
1248
1130
  /** A native focusable element or a component that forwards its DOM ref and props. */
1249
1131
  children: ReactElement;
@@ -1254,22 +1136,18 @@ interface TooltipProps {
1254
1136
  disabled?: boolean;
1255
1137
  className?: string;
1256
1138
  }
1257
- declare const TooltipProvider: import("react").FC<import("@base-ui/react").TooltipProviderProps>;
1139
+ export declare const TooltipProvider: import("react").FC<import("@base-ui/react").TooltipProviderProps>;
1258
1140
  type TooltipProviderProps = Tooltip$1.Provider.Props;
1259
1141
  /** Uses the existing child as the trigger without adding a nested button. */
1260
- declare function Tooltip({ children, content, side, delay, disabled, className }: TooltipProps): import("react").JSX.Element;
1261
- //#endregion
1262
- //#region packages/ui/OverlayContainer.d.ts
1263
- declare const useOverlayContainer: () => HTMLElement | null;
1264
- //#endregion
1265
- //#region packages/ui/TimePicker.d.ts
1142
+ export declare function Tooltip({ children, content, side, delay, disabled, className }: TooltipProps): import("react").JSX.Element;
1143
+ export declare const useOverlayContainer: () => HTMLElement | null;
1266
1144
  interface TimePickerProps {
1267
1145
  id?: string;
1268
1146
  name?: string;
1269
1147
  /** Wall-clock time, HH:mm (or HH:mm:ss with second granularity). */
1270
1148
  value?: string | null;
1271
1149
  onChange?: (value: string) => void;
1272
- onBlur?: React.FocusEventHandler<Element>;
1150
+ onBlur?: React$1.FocusEventHandler<Element>;
1273
1151
  min?: string;
1274
1152
  max?: string;
1275
1153
  locale?: string;
@@ -1283,9 +1161,7 @@ interface TimePickerProps {
1283
1161
  ariaLabel?: string;
1284
1162
  }
1285
1163
  /** Accessible segmented time entry. Values never pass through Date or a timezone. */
1286
- declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLDivElement>>;
1287
- //#endregion
1288
- //#region packages/ui/DetailLayout.d.ts
1164
+ export declare const TimePicker: React$1.ForwardRefExoticComponent<TimePickerProps & React$1.RefAttributes<HTMLDivElement>>;
1289
1165
  interface DetailLayoutProps {
1290
1166
  children: ReactNode;
1291
1167
  aside: ReactNode;
@@ -1293,6 +1169,92 @@ interface DetailLayoutProps {
1293
1169
  className?: string;
1294
1170
  }
1295
1171
  /** Responsive main/aside composition for record detail pages. */
1296
- declare function DetailLayout({ children, aside, asideLabel, className }: DetailLayoutProps): import("react").JSX.Element;
1297
- //#endregion
1298
- export { ACCENT_PRESETS, type AccentPreset, Alert, type AlertProps, type AlertTone, AppDialog, type AppDialogProps, AppDropdown, type AppDropdownOption, type AppDropdownProps, type AppDropdownVariant, AppToolbar, type AppToolbarProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, Cluster, type ClusterProps, Code, type CodeProps, Col, type ColProps, type ColSpan, CollapsibleSection, type CollapsibleSectionProps, Combobox, type ComboboxLoader, type ComboboxOption, type ComboboxPage, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmRequest, ContextMenu, type ContextMenuItem, type ContextMenuProps, DataTable, type DataTableColumn, type DataTableColumnAlign, type DataTableProps, type DataTableVariant, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type Density, DensityContext, type DensityContextValue, DensityProvider, DescriptionList, type DescriptionListItem, type DescriptionListProps, DetailLayout, type DetailLayoutProps, Drawer, type DrawerProps, type DrawerSide, EN_UI_STRINGS, ES_UI_STRINGS, EmptyState, type EmptyStateProps, FeatureGate, type FeatureGateProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, type FileDropzoneValue, FilterPanel, type FilterPanelCategorySection, type FilterPanelChipOption, type FilterPanelDensity, type FilterPanelLayout, type FilterPanelProps, type FilterPanelStatusSection, type FlexAlign, type FlexJustify, FormActions, type FormActionsProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, type FormLayoutVariant, Grid, type GridCols, type GridProps, HubPanel, type HubPanelProps, type HubPanelVariant, IconButton, type IconButtonProps, type KpiMetricDensity, type KpiMetricItem, type KpiMetricLayout, KpiMetricRow, type KpiMetricRowProps, type KpiMetricTone, MultiSelect, type MultiSelectProps, type OperationCardAccent, OperationCardGrid, type OperationCardGridProps, type OperationCardItem, Page, PageHeader, type PageHeaderBadge, type PageHeaderBreadcrumb, type PageHeaderProps, type PageProps, Pagination, type PaginationProps, Popover, type PopoverAlign, type PopoverProps, Progress, type ProgressProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, Row, RowActions, type RowActionsProps, type RowProps, type ScopeTabOption, ScopeTabs, type ScopeTabsDensity, type ScopeTabsProps, SearchableAppDropdown, type SearchableAppDropdownProps, Section, type SectionProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectField, type SelectFieldProps, SettingsPanel, type SettingsPanelProps, Skeleton, type SkeletonProps, type SpaceScale, Spinner, type SpinnerProps, Stack, type StackProps, StatCard, type StatCardProps, Tabs, type TabsItem, type TabsProps, Text, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, type TextProps, type TextTone, type Theme, ThemeContext, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeSwitcher, type ThemeSwitcherProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemStatus, type TimelineItemTone, type TimelineOrientation, type TimelineProps, type TimelineVariant, Toggle, type ToggleProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, type UiStrings, UiStringsProvider, type UiStringsProviderProps, type UseFloatingPanelOptions, type UseFloatingPanelResult, getAvatarHue, getAvatarInitials, useAccentColor, useConfirm, useDensity, useFloatingPanel, useOverlayContainer, useTheme, useUiStrings };
1172
+ export declare function DetailLayout({ children, aside, asideLabel, className }: DetailLayoutProps): import("react").JSX.Element;
1173
+ type TreeNodeId = string | number;
1174
+ interface TreeNode<T> {
1175
+ id: TreeNodeId;
1176
+ item: T;
1177
+ children: TreeNode<T>[];
1178
+ depth: number;
1179
+ }
1180
+ interface TreeListModelOptions<T> {
1181
+ getId: (item: T) => TreeNodeId;
1182
+ getParentId?: (item: T) => TreeNodeId | null | undefined;
1183
+ getChildren?: (item: T) => readonly T[] | null | undefined;
1184
+ }
1185
+ /**
1186
+ * Normalizes either nested records or a flat parentId collection into a
1187
+ * deterministic tree. A record may not be supplied through both relationships.
1188
+ */
1189
+ export declare function buildTreeListModel<T>(items: readonly T[], options: TreeListModelOptions<T>): TreeNode<T>[];
1190
+ export declare function flattenVisibleTree<T>(roots: readonly TreeNode<T>[], expandedIds: ReadonlySet<TreeNodeId>): TreeNode<T>[];
1191
+ export declare function getDescendantIds<T>(node: TreeNode<T>): TreeNodeId[];
1192
+ interface TreeListColumn<T> {
1193
+ id: string;
1194
+ header: ReactNode;
1195
+ /** Custom cell renderer. */
1196
+ render?: (item: T, context: {
1197
+ depth: number;
1198
+ expanded: boolean;
1199
+ }) => ReactNode;
1200
+ /** Value used by built-in sorting and filtering when `render` is present. */
1201
+ value?: (item: T) => unknown;
1202
+ /** Custom editor renderer used while the cell is being edited. */
1203
+ editor?: (context: {
1204
+ item: T;
1205
+ value: string;
1206
+ onChange: (value: string) => void;
1207
+ }) => ReactNode;
1208
+ editable?: boolean | ((item: T) => boolean);
1209
+ sortable?: boolean;
1210
+ filterable?: boolean;
1211
+ width?: number | string;
1212
+ align?: 'start' | 'center' | 'end';
1213
+ }
1214
+ interface TreeListMoveEvent<T> {
1215
+ item: T;
1216
+ newParent: T | null;
1217
+ index: number;
1218
+ position: 'before' | 'inside' | 'after';
1219
+ }
1220
+ interface TreeListProps<T> extends TreeListModelOptions<T> {
1221
+ /** Flat `parentId` records, nested records, or a mixture of independent roots. */
1222
+ items: readonly T[];
1223
+ columns: readonly TreeListColumn<T>[];
1224
+ /** Optional predicate for nodes whose children have not been loaded yet. */
1225
+ hasChildren?: (item: T) => boolean;
1226
+ /** Fetches direct children when a collapsed, unloaded node is expanded. */
1227
+ loadChildren?: (item: T, options: {
1228
+ signal: AbortSignal;
1229
+ }) => Promise<readonly T[]>;
1230
+ /** Required when loading flat children that do not contain their own parent id. */
1231
+ withParent?: (child: T, parent: T) => T;
1232
+ expandedIds?: ReadonlySet<TreeNodeId>;
1233
+ defaultExpandedIds?: ReadonlySet<TreeNodeId>;
1234
+ onExpandedIdsChange?: (ids: ReadonlySet<TreeNodeId>) => void;
1235
+ selectionMode?: 'none' | 'single' | 'multiple';
1236
+ selectedIds?: ReadonlySet<TreeNodeId>;
1237
+ defaultSelectedIds?: ReadonlySet<TreeNodeId>;
1238
+ onSelectedIdsChange?: (ids: ReadonlySet<TreeNodeId>) => void;
1239
+ onSelectedItemsChange?: (items: readonly T[]) => void;
1240
+ /** Include all currently loaded descendants when toggling a node checkbox. */
1241
+ selectDescendants?: boolean;
1242
+ rowActions?: (item: T) => ContextMenuItem[];
1243
+ onRowActivate?: (item: T) => void;
1244
+ onMove?: (event: TreeListMoveEvent<T>) => void | Promise<void>;
1245
+ /** Inline edit callbacks. Only columns with `editable` and `onEdit` can be changed. */
1246
+ onEdit?: (item: T, columnId: string, value: string) => void | Promise<void>;
1247
+ editable?: (item: T, columnId: string) => boolean;
1248
+ filter?: string;
1249
+ onFilterChange?: (filter: string) => void;
1250
+ filterable?: boolean;
1251
+ loading?: boolean;
1252
+ emptyState?: ReactNode;
1253
+ error?: ReactNode;
1254
+ ariaLabel: string;
1255
+ className?: string;
1256
+ density?: 'compact' | 'comfortable';
1257
+ testId?: string;
1258
+ }
1259
+ export declare function TreeList<T>({ items, columns, getId, getParentId, getChildren, hasChildren, loadChildren, withParent, expandedIds: controlledExpandedIds, defaultExpandedIds, onExpandedIdsChange, selectionMode, selectedIds: controlledSelectedIds, defaultSelectedIds, onSelectedIdsChange, onSelectedItemsChange, selectDescendants, rowActions, onRowActivate, onMove, onEdit, editable, filter: controlledFilter, onFilterChange, filterable, loading, emptyState, error, ariaLabel, className, density, testId }: TreeListProps<T>): React$1.JSX.Element;
1260
+ export type { AccentPreset, AlertProps, AlertTone, AppDialogProps, AppDropdownOption, AppDropdownProps, AppDropdownVariant, AppToolbarProps, AvatarProps, AvatarShape, AvatarSize, BadgeProps, BadgeSize, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CardProps, CardVariant, CheckboxProps, ChipProps, ClusterProps, CodeProps, ColProps, ColSpan, CollapsibleSectionProps, ComboboxLoader, ComboboxOption, ComboboxPage, ComboboxProps, ConfirmDialogProps, ConfirmRequest, ContextMenuItem, ContextMenuProps, DataTableColumn, DataTableColumnAlign, DataTableProps, DataTableVariant, DatePickerProps, DateRangePickerProps, Density, DensityContextValue, DescriptionListItem, DescriptionListProps, DetailLayoutProps, DrawerProps, DrawerSide, EmptyStateProps, FeatureGateProps, FileDropzoneLabels, FileDropzoneProps, FileDropzoneValue, FilterPanelCategorySection, FilterPanelChipOption, FilterPanelDensity, FilterPanelLayout, FilterPanelProps, FilterPanelStatusSection, FlexAlign, FlexJustify, FormActionsProps, FormFieldProps, FormLayoutProps, FormLayoutVariant, GridCols, GridProps, HubPanelProps, HubPanelVariant, IconButtonProps, KpiMetricDensity, KpiMetricItem, KpiMetricLayout, KpiMetricRowProps, KpiMetricTone, MultiSelectProps, OperationCardAccent, OperationCardGridProps, OperationCardItem, PageHeaderBadge, PageHeaderBreadcrumb, PageHeaderProps, PageProps, PaginationProps, PopoverAlign, PopoverProps, ProgressProps, RadioGroupOption, RadioGroupProps, RowActionsProps, RowProps, ScopeTabOption, ScopeTabsDensity, ScopeTabsProps, SearchableAppDropdownProps, SectionProps, SegmentedControlOption, SegmentedControlProps, SelectFieldProps, SettingsPanelProps, SkeletonProps, SpaceScale, SpinnerProps, StackProps, StatCardProps, TabsItem, TabsProps, TextAreaFieldProps, TextFieldProps, TextProps, TextTone, Theme, ThemeContextValue, ThemeMode, ThemeProviderProps, ThemeSwitcherProps, TimePickerProps, TimelineItemProps, TimelineItemStatus, TimelineItemTone, TimelineOrientation, TimelineProps, TimelineVariant, ToggleProps, TooltipProps, TooltipProviderProps, TreeListColumn, TreeListModelOptions, TreeListMoveEvent, TreeListProps, TreeNode, TreeNodeId, UiStrings, UiStringsProviderProps, UseFloatingPanelOptions, UseFloatingPanelResult };