@nubitio/ui 1.3.0 → 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/README.md +44 -0
- package/dist/index.cjs +686 -159
- package/dist/index.d.cts +207 -240
- package/dist/index.d.mts +207 -240
- package/dist/index.mjs +681 -157
- package/dist/style.css +160 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as 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;
|
|
@@ -200,10 +183,13 @@ interface AppDropdownProps {
|
|
|
200
183
|
menuHeader?: ReactNode;
|
|
201
184
|
menuFooter?: ReactNode;
|
|
202
185
|
onOpenChange?: (open: boolean) => void;
|
|
186
|
+
/**
|
|
187
|
+
* Renders the trigger as this icon alone. The selected label stays available to assistive
|
|
188
|
+
* technology and as the tooltip, so the current choice is never icon-only.
|
|
189
|
+
*/
|
|
190
|
+
triggerIcon?: string;
|
|
203
191
|
}
|
|
204
|
-
declare function AppDropdown({ id: idProp, ariaLabel, label, icon, value, options, onChange, disabled, placeholder, variant, className, showFieldLabel, menuMinWidth, error, helpText, menuHeader, menuFooter, onOpenChange }: AppDropdownProps): import("react").JSX.Element;
|
|
205
|
-
//#endregion
|
|
206
|
-
//#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;
|
|
207
193
|
interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
208
194
|
options?: AppDropdownOption[];
|
|
209
195
|
/** Client-side filter when `onSearch` is not provided. */
|
|
@@ -216,9 +202,7 @@ interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
|
216
202
|
loadingLabel?: string;
|
|
217
203
|
selectedOption?: AppDropdownOption | null;
|
|
218
204
|
}
|
|
219
|
-
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;
|
|
220
|
-
//#endregion
|
|
221
|
-
//#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;
|
|
222
206
|
type Theme = 'light' | 'dark';
|
|
223
207
|
type ThemeMode = 'light' | 'dark' | 'auto';
|
|
224
208
|
interface ThemeContextValue {
|
|
@@ -227,19 +211,17 @@ interface ThemeContextValue {
|
|
|
227
211
|
switchTheme: () => void;
|
|
228
212
|
isLoaded: boolean;
|
|
229
213
|
}
|
|
230
|
-
declare const ThemeContext: React.Context<ThemeContextValue | null>;
|
|
231
|
-
declare function useTheme(): ThemeContextValue;
|
|
214
|
+
export declare const ThemeContext: React$1.Context<ThemeContextValue | null>;
|
|
215
|
+
export declare function useTheme(): ThemeContextValue;
|
|
232
216
|
interface ThemeProviderProps {
|
|
233
217
|
storageKey?: string;
|
|
234
218
|
themePrefix?: string;
|
|
235
219
|
basePath?: string;
|
|
236
220
|
/** Opt-in Figma visual foundation; existing applications keep their current theme. */
|
|
237
221
|
visualStyle?: 'default' | 'nubit';
|
|
238
|
-
children: React.ReactNode;
|
|
222
|
+
children: React$1.ReactNode;
|
|
239
223
|
}
|
|
240
|
-
declare const ThemeProvider: ({ storageKey, themePrefix, basePath, visualStyle, children }: ThemeProviderProps) => React.JSX.Element;
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region packages/ui/theme/ThemeSwitcher.d.ts
|
|
224
|
+
export declare const ThemeProvider: ({ storageKey, themePrefix, basePath, visualStyle, children }: ThemeProviderProps) => React$1.JSX.Element;
|
|
243
225
|
declare const labelByMode: {
|
|
244
226
|
readonly light: "Theme: Light";
|
|
245
227
|
readonly dark: "Theme: Dark";
|
|
@@ -248,42 +230,34 @@ declare const labelByMode: {
|
|
|
248
230
|
interface ThemeSwitcherProps {
|
|
249
231
|
labelByMode?: Partial<Record<keyof typeof labelByMode, string>>;
|
|
250
232
|
}
|
|
251
|
-
declare const ThemeSwitcher: ({ labelByMode: overrides }?: ThemeSwitcherProps) => React.JSX.Element;
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region packages/ui/theme/DensityProvider.d.ts
|
|
233
|
+
export declare const ThemeSwitcher: ({ labelByMode: overrides }?: ThemeSwitcherProps) => React$1.JSX.Element;
|
|
254
234
|
type Density = 'normal' | 'compact';
|
|
255
235
|
interface DensityContextValue {
|
|
256
236
|
density: Density;
|
|
257
237
|
toggleDensity: () => void;
|
|
258
238
|
}
|
|
259
|
-
declare const DensityContext: React.Context<DensityContextValue | null>;
|
|
260
|
-
declare function useDensity(): DensityContextValue;
|
|
261
|
-
declare const DensityProvider: ({ children }: {
|
|
262
|
-
children: React.ReactNode;
|
|
263
|
-
}) => React.JSX.Element;
|
|
264
|
-
//#endregion
|
|
265
|
-
//#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;
|
|
266
244
|
interface AccentPreset {
|
|
267
245
|
label: string;
|
|
268
246
|
value: string;
|
|
269
247
|
}
|
|
270
|
-
declare const ACCENT_PRESETS: AccentPreset[];
|
|
271
|
-
declare function useAccentColor(): {
|
|
248
|
+
export declare const ACCENT_PRESETS: AccentPreset[];
|
|
249
|
+
export declare function useAccentColor(): {
|
|
272
250
|
accent: string;
|
|
273
251
|
changeAccent: (color: string) => void;
|
|
274
252
|
presets: AccentPreset[];
|
|
275
253
|
};
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region packages/ui/SettingsPanel.d.ts
|
|
278
254
|
interface SettingsPanelProps {
|
|
279
255
|
onClose?: () => void;
|
|
280
256
|
}
|
|
281
|
-
declare const SettingsPanel: ({ onClose: _onClose }: SettingsPanelProps) => React.JSX.Element;
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region packages/ui/FeatureGate.d.ts
|
|
257
|
+
export declare const SettingsPanel: ({ onClose: _onClose }: SettingsPanelProps) => React$1.JSX.Element;
|
|
284
258
|
interface FeatureGateProps {
|
|
285
259
|
featureKey: string;
|
|
286
|
-
children: React.ReactNode;
|
|
260
|
+
children: React$1.ReactNode;
|
|
287
261
|
enabled?: boolean;
|
|
288
262
|
behavior?: 'lock' | 'upgrade';
|
|
289
263
|
planBadge?: string;
|
|
@@ -291,9 +265,7 @@ interface FeatureGateProps {
|
|
|
291
265
|
upgradeUrl?: string;
|
|
292
266
|
lockTooltip?: string;
|
|
293
267
|
}
|
|
294
|
-
declare function FeatureGate({ featureKey, children, enabled, behavior, planBadge, upgradeMessage, upgradeUrl, lockTooltip }: FeatureGateProps): React.JSX.Element;
|
|
295
|
-
//#endregion
|
|
296
|
-
//#region packages/ui/Badge.d.ts
|
|
268
|
+
export declare function FeatureGate({ featureKey, children, enabled, behavior, planBadge, upgradeMessage, upgradeUrl, lockTooltip }: FeatureGateProps): React$1.JSX.Element;
|
|
297
269
|
type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
298
270
|
type BadgeSize = 'sm' | 'md';
|
|
299
271
|
interface BadgeProps {
|
|
@@ -310,9 +282,7 @@ interface BadgeProps {
|
|
|
310
282
|
children?: ReactNode;
|
|
311
283
|
className?: string;
|
|
312
284
|
}
|
|
313
|
-
declare const Badge: ({ variant, size, outlined, pill, dot, children, className }: BadgeProps) => import("react").JSX.Element;
|
|
314
|
-
//#endregion
|
|
315
|
-
//#region packages/ui/Skeleton.d.ts
|
|
285
|
+
export declare const Badge: ({ variant, size, outlined, pill, dot, children, className }: BadgeProps) => import("react").JSX.Element;
|
|
316
286
|
interface SkeletonProps {
|
|
317
287
|
/** Rendered shape. */
|
|
318
288
|
variant?: 'text' | 'rect' | 'circle';
|
|
@@ -324,9 +294,7 @@ interface SkeletonProps {
|
|
|
324
294
|
lines?: number;
|
|
325
295
|
className?: string;
|
|
326
296
|
}
|
|
327
|
-
declare const Skeleton: ({ variant, width, height, lines, className }: SkeletonProps) => import("react").JSX.Element;
|
|
328
|
-
//#endregion
|
|
329
|
-
//#region packages/ui/EmptyState.d.ts
|
|
297
|
+
export declare const Skeleton: ({ variant, width, height, lines, className }: SkeletonProps) => import("react").JSX.Element;
|
|
330
298
|
type EmptyStateVariant = 'default' | 'danger' | 'warning' | 'success';
|
|
331
299
|
type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
332
300
|
interface EmptyStateProps {
|
|
@@ -348,9 +316,7 @@ interface EmptyStateProps {
|
|
|
348
316
|
fill?: boolean;
|
|
349
317
|
className?: string;
|
|
350
318
|
}
|
|
351
|
-
declare const EmptyState: ({ icon, illustration, variant, title, description, action, size, fill, className }: EmptyStateProps) => import("react").JSX.Element;
|
|
352
|
-
//#endregion
|
|
353
|
-
//#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;
|
|
354
320
|
interface ChipProps {
|
|
355
321
|
/** Displayed label */
|
|
356
322
|
label: ReactNode;
|
|
@@ -371,15 +337,13 @@ interface ChipProps {
|
|
|
371
337
|
* Pill-shaped filter/tag chip. Stateless — caller controls `active`.
|
|
372
338
|
* Use for category filters, tag lists, and multi-select inputs.
|
|
373
339
|
*/
|
|
374
|
-
declare const Chip: ({ label, active, count, icon, size, disabled, onClick, className }: ChipProps) => React.JSX.Element;
|
|
375
|
-
//#endregion
|
|
376
|
-
//#region packages/ui/Toggle.d.ts
|
|
340
|
+
export declare const Chip: ({ label, active, count, icon, size, disabled, onClick, className }: ChipProps) => React$1.JSX.Element;
|
|
377
341
|
interface ToggleProps {
|
|
378
342
|
/** Controlled checked value */
|
|
379
343
|
checked: boolean;
|
|
380
344
|
onChange: (checked: boolean) => void;
|
|
381
345
|
/** Optional label rendered in a flex row alongside the toggle */
|
|
382
|
-
label?: React.ReactNode;
|
|
346
|
+
label?: React$1.ReactNode;
|
|
383
347
|
/** Size variant */
|
|
384
348
|
size?: 'sm' | 'md';
|
|
385
349
|
disabled?: boolean;
|
|
@@ -394,9 +358,7 @@ interface ToggleProps {
|
|
|
394
358
|
* With `label`: wraps in `.nb-toggle-row` for a label ↔ toggle layout.
|
|
395
359
|
* Without `label`: renders bare `.nb-toggle`.
|
|
396
360
|
*/
|
|
397
|
-
declare const Toggle: ({ checked, onChange, label, size, disabled, "aria-label": ariaLabel, className }: ToggleProps) => React.JSX.Element;
|
|
398
|
-
//#endregion
|
|
399
|
-
//#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;
|
|
400
362
|
interface ContextMenuItem {
|
|
401
363
|
label: string;
|
|
402
364
|
icon?: string;
|
|
@@ -419,9 +381,7 @@ interface ContextMenuProps {
|
|
|
419
381
|
align?: 'right' | 'left';
|
|
420
382
|
className?: string;
|
|
421
383
|
}
|
|
422
|
-
declare const ContextMenu: ({ items, visible, trigger, triggerLabel, align, className }: ContextMenuProps) => React.JSX.Element | null;
|
|
423
|
-
//#endregion
|
|
424
|
-
//#region packages/ui/StatCard.d.ts
|
|
384
|
+
export declare const ContextMenu: ({ items, visible, trigger, triggerLabel, align, className }: ContextMenuProps) => React$1.JSX.Element | null;
|
|
425
385
|
interface StatCardProps {
|
|
426
386
|
title?: string;
|
|
427
387
|
/** Extra content rendered in the header row (e.g. a date-range badge) */
|
|
@@ -440,9 +400,7 @@ interface StatCardProps {
|
|
|
440
400
|
* Replaces the legacy `shared/ui/card-analytics/CardAnalytics` component.
|
|
441
401
|
* Uses `ContextMenu` from `@nubitio/ui` for the overflow menu.
|
|
442
402
|
*/
|
|
443
|
-
declare const StatCard: ({ title, headerExtra, menuVisible, menuItems, isLoading, className, children }: StatCardProps) => React.JSX.Element;
|
|
444
|
-
//#endregion
|
|
445
|
-
//#region packages/ui/KpiMetricRow.d.ts
|
|
403
|
+
export declare const StatCard: ({ title, headerExtra, menuVisible, menuItems, isLoading, className, children }: StatCardProps) => React$1.JSX.Element;
|
|
446
404
|
type KpiMetricTone = 'default' | 'success' | 'warning' | 'danger';
|
|
447
405
|
type KpiMetricLayout = 'cards' | 'strip';
|
|
448
406
|
type KpiMetricDensity = 'default' | 'compact';
|
|
@@ -461,9 +419,7 @@ interface KpiMetricRowProps {
|
|
|
461
419
|
testId?: string;
|
|
462
420
|
loading?: boolean;
|
|
463
421
|
}
|
|
464
|
-
declare function KpiMetricRow({ items, className, layout, density, testId, loading }: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
465
|
-
//#endregion
|
|
466
|
-
//#region packages/ui/SegmentedControl.d.ts
|
|
422
|
+
export declare function KpiMetricRow({ items, className, layout, density, testId, loading }: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
467
423
|
interface SegmentedControlOption<T extends string = string> {
|
|
468
424
|
value: T;
|
|
469
425
|
label: ReactNode;
|
|
@@ -477,9 +433,7 @@ interface SegmentedControlProps<T extends string = string> {
|
|
|
477
433
|
className?: string;
|
|
478
434
|
size?: 'sm' | 'md';
|
|
479
435
|
}
|
|
480
|
-
declare function SegmentedControl<T extends string = string>({ options, value, onChange, ariaLabel, className, size }: SegmentedControlProps<T>): import("react").JSX.Element | null;
|
|
481
|
-
//#endregion
|
|
482
|
-
//#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;
|
|
483
437
|
interface FilterPanelChipOption {
|
|
484
438
|
key: string;
|
|
485
439
|
label: ReactNode;
|
|
@@ -512,9 +466,7 @@ interface FilterPanelProps<T extends string = string> {
|
|
|
512
466
|
className?: string;
|
|
513
467
|
testId?: string;
|
|
514
468
|
}
|
|
515
|
-
declare function FilterPanel<T extends string = string>({ category, status, layout, density, className, testId }: FilterPanelProps<T>): import("react").JSX.Element;
|
|
516
|
-
//#endregion
|
|
517
|
-
//#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;
|
|
518
470
|
interface ScopeTabOption {
|
|
519
471
|
key: string;
|
|
520
472
|
label: ReactNode;
|
|
@@ -534,9 +486,7 @@ interface ScopeTabsProps {
|
|
|
534
486
|
* Pill tabs for scoping a list view (warehouse, branch, period, etc.).
|
|
535
487
|
* Hides itself when there is at most one scope option.
|
|
536
488
|
*/
|
|
537
|
-
declare function ScopeTabs({ options, selectedKey, onChange, allLabel, ariaLabel, density, className, testId }: ScopeTabsProps): import("react").JSX.Element | null;
|
|
538
|
-
//#endregion
|
|
539
|
-
//#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;
|
|
540
490
|
type OperationCardAccent = 'default' | 'in' | 'out' | 'count' | 'adjust' | 'transfer' | 'info' | 'warning' | 'danger';
|
|
541
491
|
interface OperationCardItem {
|
|
542
492
|
key: string;
|
|
@@ -554,9 +504,7 @@ interface OperationCardGridProps {
|
|
|
554
504
|
className?: string;
|
|
555
505
|
testId?: string;
|
|
556
506
|
}
|
|
557
|
-
declare function OperationCardGrid({ title, description, operations, className, testId }: OperationCardGridProps): import("react").JSX.Element;
|
|
558
|
-
//#endregion
|
|
559
|
-
//#region packages/ui/HubPanel.d.ts
|
|
507
|
+
export declare function OperationCardGrid({ title, description, operations, className, testId }: OperationCardGridProps): import("react").JSX.Element;
|
|
560
508
|
type HubPanelVariant = 'card' | 'flush';
|
|
561
509
|
interface HubPanelProps {
|
|
562
510
|
children: ReactNode;
|
|
@@ -568,12 +516,10 @@ interface HubPanelProps {
|
|
|
568
516
|
/**
|
|
569
517
|
* Card shell for feature-hub chrome above a CRUD grid (KPIs, scope tabs, filters).
|
|
570
518
|
*/
|
|
571
|
-
declare function HubPanel({ children, variant, className, testId }: HubPanelProps): import("react").JSX.Element;
|
|
572
|
-
//#endregion
|
|
573
|
-
//#region packages/ui/CollapsibleSection.d.ts
|
|
519
|
+
export declare function HubPanel({ children, variant, className, testId }: HubPanelProps): import("react").JSX.Element;
|
|
574
520
|
interface CollapsibleSectionProps {
|
|
575
521
|
/** Section heading text. */
|
|
576
|
-
label: React.ReactNode;
|
|
522
|
+
label: React$1.ReactNode;
|
|
577
523
|
/** Optional Phosphor icon class string, e.g. "ph ph-chat-circle". */
|
|
578
524
|
icon?: string;
|
|
579
525
|
/** Controlled open state. */
|
|
@@ -581,12 +527,12 @@ interface CollapsibleSectionProps {
|
|
|
581
527
|
/** Called when the header trigger is clicked. */
|
|
582
528
|
onToggle: () => void;
|
|
583
529
|
/** Body content — always mounted, hidden via CSS when collapsed. */
|
|
584
|
-
children: React.ReactNode;
|
|
530
|
+
children: React$1.ReactNode;
|
|
585
531
|
/**
|
|
586
532
|
* Optional trailing slot rendered to the right of the label.
|
|
587
533
|
* Useful for a clear button or indicator badge.
|
|
588
534
|
*/
|
|
589
|
-
trailing?: React.ReactNode;
|
|
535
|
+
trailing?: React$1.ReactNode;
|
|
590
536
|
className?: string;
|
|
591
537
|
/** Additional class applied to the body container. */
|
|
592
538
|
bodyClassName?: string;
|
|
@@ -601,9 +547,7 @@ interface CollapsibleSectionProps {
|
|
|
601
547
|
* heavy children before they are needed. Pass `keepMounted` if you need
|
|
602
548
|
* the body always in the DOM.
|
|
603
549
|
*/
|
|
604
|
-
declare const CollapsibleSection: ({ label, icon, open, onToggle, children, trailing, className, bodyClassName, "data-testid": testId }: CollapsibleSectionProps) => React.JSX.Element;
|
|
605
|
-
//#endregion
|
|
606
|
-
//#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;
|
|
607
551
|
interface DatePickerProps {
|
|
608
552
|
id?: string;
|
|
609
553
|
name?: string;
|
|
@@ -622,11 +566,9 @@ interface DatePickerProps {
|
|
|
622
566
|
className?: string;
|
|
623
567
|
ariaLabel?: string;
|
|
624
568
|
onChange?: (value: string) => void;
|
|
625
|
-
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
569
|
+
onBlur?: React$1.FocusEventHandler<HTMLElement>;
|
|
626
570
|
}
|
|
627
|
-
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
628
|
-
//#endregion
|
|
629
|
-
//#region packages/ui/DateRangePicker.d.ts
|
|
571
|
+
export declare const DatePicker: React$1.ForwardRefExoticComponent<DatePickerProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
630
572
|
interface DateRangePickerProps {
|
|
631
573
|
startValue?: string | null;
|
|
632
574
|
endValue?: string | null;
|
|
@@ -642,11 +584,9 @@ interface DateRangePickerProps {
|
|
|
642
584
|
className?: string;
|
|
643
585
|
ariaLabel?: string;
|
|
644
586
|
onChange?: (startValue: string, endValue: string) => void;
|
|
645
|
-
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
587
|
+
onBlur?: React$1.FocusEventHandler<HTMLElement>;
|
|
646
588
|
}
|
|
647
|
-
declare function DateRangePicker({ startValue, endValue, placeholder, disabled, clearable, readOnly, required, invalid, locale, min, max, className, ariaLabel, onChange, onBlur }: DateRangePickerProps): React.JSX.Element;
|
|
648
|
-
//#endregion
|
|
649
|
-
//#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;
|
|
650
590
|
type PopoverAlign = 'start' | 'end';
|
|
651
591
|
interface PopoverProps {
|
|
652
592
|
/**
|
|
@@ -656,14 +596,14 @@ interface PopoverProps {
|
|
|
656
596
|
trigger: (props: {
|
|
657
597
|
open: boolean;
|
|
658
598
|
toggle: () => void;
|
|
659
|
-
}) => React.ReactNode;
|
|
599
|
+
}) => React$1.ReactNode;
|
|
660
600
|
/**
|
|
661
601
|
* Render prop for the panel content.
|
|
662
602
|
* `close` is a callback to close the popover.
|
|
663
603
|
*/
|
|
664
604
|
panel: (props: {
|
|
665
605
|
close: () => void;
|
|
666
|
-
}) => React.ReactNode;
|
|
606
|
+
}) => React$1.ReactNode;
|
|
667
607
|
/**
|
|
668
608
|
* Horizontal alignment of the panel relative to the container.
|
|
669
609
|
* - 'end' (default): right-aligns the panel (panel right = container right)
|
|
@@ -674,9 +614,7 @@ interface PopoverProps {
|
|
|
674
614
|
ariaLabel?: string;
|
|
675
615
|
className?: string;
|
|
676
616
|
}
|
|
677
|
-
declare const Popover: ({ trigger, panel, align, ariaLabel, className }: PopoverProps) => React.JSX.Element;
|
|
678
|
-
//#endregion
|
|
679
|
-
//#region packages/ui/useFloatingPanel.d.ts
|
|
617
|
+
export declare const Popover: ({ trigger, panel, align, ariaLabel, className }: PopoverProps) => React$1.JSX.Element;
|
|
680
618
|
interface UseFloatingPanelOptions<C extends HTMLElement = HTMLDivElement> {
|
|
681
619
|
/** Called whenever the panel closes (dismiss, Escape or programmatic). */
|
|
682
620
|
onClose?: () => void;
|
|
@@ -709,9 +647,7 @@ interface UseFloatingPanelResult<C extends HTMLElement = HTMLDivElement, P exten
|
|
|
709
647
|
/** Current anchored style; starts hidden until first computed. */
|
|
710
648
|
panelStyle: CSSProperties;
|
|
711
649
|
}
|
|
712
|
-
declare function useFloatingPanel<C extends HTMLElement = HTMLDivElement, P extends HTMLElement = HTMLDivElement>(options?: UseFloatingPanelOptions<C>): UseFloatingPanelResult<C, P>;
|
|
713
|
-
//#endregion
|
|
714
|
-
//#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>;
|
|
715
651
|
type DrawerSide = 'right' | 'left';
|
|
716
652
|
interface DrawerProps {
|
|
717
653
|
/** Controls visibility. The drawer mounts/unmounts with this flag. */
|
|
@@ -721,7 +657,7 @@ interface DrawerProps {
|
|
|
721
657
|
/** Called on Escape, scrim click, or the built-in close button. */
|
|
722
658
|
onClose: () => void;
|
|
723
659
|
/** Optional title rendered in the header. */
|
|
724
|
-
title?: React.ReactNode;
|
|
660
|
+
title?: React$1.ReactNode;
|
|
725
661
|
/** Width of the panel. Accepts any CSS value or a number (px). */
|
|
726
662
|
width?: number | string;
|
|
727
663
|
/** Which side the drawer slides in from. Default: right. */
|
|
@@ -733,9 +669,9 @@ interface DrawerProps {
|
|
|
733
669
|
*/
|
|
734
670
|
scrim?: 'subtle' | 'overlay';
|
|
735
671
|
/** Content rendered inside the scrollable body. */
|
|
736
|
-
children: React.ReactNode;
|
|
672
|
+
children: React$1.ReactNode;
|
|
737
673
|
/** Optional sticky footer (e.g. action buttons). */
|
|
738
|
-
footer?: React.ReactNode;
|
|
674
|
+
footer?: React$1.ReactNode;
|
|
739
675
|
/** Accessible label for the close button. Defaults to UiStrings `close`. */
|
|
740
676
|
closeLabel?: string;
|
|
741
677
|
/** Accessible label for the backdrop scrim. Defaults to UiStrings `closePanel`. */
|
|
@@ -745,9 +681,7 @@ interface DrawerProps {
|
|
|
745
681
|
/** aria-label for the dialog when no title is provided. */
|
|
746
682
|
'aria-label'?: string;
|
|
747
683
|
}
|
|
748
|
-
declare const Drawer: React.FC<DrawerProps>;
|
|
749
|
-
//#endregion
|
|
750
|
-
//#region packages/ui/Timeline.d.ts
|
|
684
|
+
export declare const Drawer: React$1.FC<DrawerProps>;
|
|
751
685
|
type TimelineVariant = 'stepper' | 'log';
|
|
752
686
|
type TimelineOrientation = 'vertical' | 'horizontal';
|
|
753
687
|
type TimelineItemStatus = 'complete' | 'current' | 'pending' | 'error';
|
|
@@ -779,10 +713,8 @@ interface TimelineItemProps {
|
|
|
779
713
|
children?: ReactNode;
|
|
780
714
|
className?: string;
|
|
781
715
|
}
|
|
782
|
-
declare function TimelineItem({ status, title, marker, timestamp, dateTime, tone, children, className }: TimelineItemProps): React.JSX.Element;
|
|
783
|
-
declare function Timeline({ variant, orientation, title, description, children, className, 'aria-label': ariaLabel }: TimelineProps): React.JSX.Element;
|
|
784
|
-
//#endregion
|
|
785
|
-
//#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;
|
|
786
718
|
/**
|
|
787
719
|
* Built-in UI strings for @nubitio/ui components (aria-labels, tooltips).
|
|
788
720
|
*
|
|
@@ -888,24 +820,29 @@ interface UiStrings {
|
|
|
888
820
|
featureRequiresPlan: string;
|
|
889
821
|
/** FeatureGate upgrade prompt: link to the plans page. */
|
|
890
822
|
viewPlans: string;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
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;
|
|
894
835
|
interface UiStringsProviderProps {
|
|
895
836
|
/** Full or partial string set; missing keys fall back to English. */
|
|
896
837
|
strings: Partial<UiStrings>;
|
|
897
|
-
children: React.ReactNode;
|
|
838
|
+
children: React$1.ReactNode;
|
|
898
839
|
}
|
|
899
|
-
declare const UiStringsProvider: React.FC<UiStringsProviderProps>;
|
|
900
|
-
declare const useUiStrings: () => UiStrings;
|
|
901
|
-
//#endregion
|
|
902
|
-
//#region packages/ui/layoutUtils.d.ts
|
|
840
|
+
export declare const UiStringsProvider: React$1.FC<UiStringsProviderProps>;
|
|
841
|
+
export declare const useUiStrings: () => UiStrings;
|
|
903
842
|
type SpaceScale = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
904
843
|
type ColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
905
844
|
type FlexAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
906
845
|
type FlexJustify = 'start' | 'center' | 'end' | 'between' | 'around';
|
|
907
|
-
//#endregion
|
|
908
|
-
//#region packages/ui/Page.d.ts
|
|
909
846
|
interface PageProps extends HTMLAttributes<HTMLDivElement> {
|
|
910
847
|
children: ReactNode;
|
|
911
848
|
/** Stretch to fill the admin shell content area (flex column). */
|
|
@@ -916,9 +853,7 @@ interface PageProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
916
853
|
narrow?: boolean;
|
|
917
854
|
gap?: SpaceScale;
|
|
918
855
|
}
|
|
919
|
-
declare function Page({ children, fill, wide, narrow, gap, className, ...props }: PageProps): import("react").JSX.Element;
|
|
920
|
-
//#endregion
|
|
921
|
-
//#region packages/ui/PageHeader.d.ts
|
|
856
|
+
export declare function Page({ children, fill, wide, narrow, gap, className, ...props }: PageProps): import("react").JSX.Element;
|
|
922
857
|
interface PageHeaderBreadcrumb {
|
|
923
858
|
label: string;
|
|
924
859
|
href: string;
|
|
@@ -939,9 +874,7 @@ interface PageHeaderProps {
|
|
|
939
874
|
actions?: ReactNode;
|
|
940
875
|
className?: string;
|
|
941
876
|
}
|
|
942
|
-
declare function PageHeader({ title, subtitle, metadata, breadcrumb, breadcrumbSlot, badge, actions, className }: PageHeaderProps): import("react").JSX.Element;
|
|
943
|
-
//#endregion
|
|
944
|
-
//#region packages/ui/Stack.d.ts
|
|
877
|
+
export declare function PageHeader({ title, subtitle, metadata, breadcrumb, breadcrumbSlot, badge, actions, className }: PageHeaderProps): import("react").JSX.Element;
|
|
945
878
|
interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
946
879
|
children: ReactNode;
|
|
947
880
|
gap?: SpaceScale;
|
|
@@ -949,9 +882,7 @@ interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
949
882
|
justify?: FlexJustify;
|
|
950
883
|
fill?: boolean;
|
|
951
884
|
}
|
|
952
|
-
declare function Stack({ children, gap, align, justify, fill, className, ...props }: StackProps): import("react").JSX.Element;
|
|
953
|
-
//#endregion
|
|
954
|
-
//#region packages/ui/Row.d.ts
|
|
885
|
+
export declare function Stack({ children, gap, align, justify, fill, className, ...props }: StackProps): import("react").JSX.Element;
|
|
955
886
|
interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
956
887
|
children: ReactNode;
|
|
957
888
|
gap?: SpaceScale;
|
|
@@ -960,17 +891,13 @@ interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
960
891
|
wrap?: boolean;
|
|
961
892
|
fill?: boolean;
|
|
962
893
|
}
|
|
963
|
-
declare function Row({ children, gap, align, justify, wrap, fill, className, ...props }: RowProps): import("react").JSX.Element;
|
|
964
|
-
//#endregion
|
|
965
|
-
//#region packages/ui/Cluster.d.ts
|
|
894
|
+
export declare function Row({ children, gap, align, justify, wrap, fill, className, ...props }: RowProps): import("react").JSX.Element;
|
|
966
895
|
interface ClusterProps extends HTMLAttributes<HTMLDivElement> {
|
|
967
896
|
children: ReactNode;
|
|
968
897
|
gap?: SpaceScale;
|
|
969
898
|
}
|
|
970
899
|
/** Inline flex row that wraps — ideal for button groups and filter actions. */
|
|
971
|
-
declare function Cluster({ children, gap, className, ...props }: ClusterProps): import("react").JSX.Element;
|
|
972
|
-
//#endregion
|
|
973
|
-
//#region packages/ui/Grid.d.ts
|
|
900
|
+
export declare function Cluster({ children, gap, className, ...props }: ClusterProps): import("react").JSX.Element;
|
|
974
901
|
type GridCols = 12 | 'auto' | 1 | 2 | 3 | 4;
|
|
975
902
|
interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
976
903
|
children: ReactNode;
|
|
@@ -981,9 +908,7 @@ interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
981
908
|
minColWidth?: string;
|
|
982
909
|
fill?: boolean;
|
|
983
910
|
}
|
|
984
|
-
declare function Grid({ children, cols, gap, minColWidth, fill, className, style, ...props }: GridProps): import("react").JSX.Element;
|
|
985
|
-
//#endregion
|
|
986
|
-
//#region packages/ui/Col.d.ts
|
|
911
|
+
export declare function Grid({ children, cols, gap, minColWidth, fill, className, style, ...props }: GridProps): import("react").JSX.Element;
|
|
987
912
|
interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
988
913
|
children: ReactNode;
|
|
989
914
|
/** Span at all breakpoints (overrides the mobile full-width default). */
|
|
@@ -994,9 +919,7 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
994
919
|
/** Span all columns in the current row. */
|
|
995
920
|
fullWidth?: boolean;
|
|
996
921
|
}
|
|
997
|
-
declare function Col({ children, span, spanSm, spanMd, spanLg, fullWidth, className, ...props }: ColProps): import("react").JSX.Element;
|
|
998
|
-
//#endregion
|
|
999
|
-
//#region packages/ui/Section.d.ts
|
|
922
|
+
export declare function Col({ children, span, spanSm, spanMd, spanLg, fullWidth, className, ...props }: ColProps): import("react").JSX.Element;
|
|
1000
923
|
interface SectionProps {
|
|
1001
924
|
title: string;
|
|
1002
925
|
children: ReactNode;
|
|
@@ -1004,9 +927,7 @@ interface SectionProps {
|
|
|
1004
927
|
/** Panel titles use sentence case; label preserves the compact group heading. */
|
|
1005
928
|
variant?: 'label' | 'panel';
|
|
1006
929
|
}
|
|
1007
|
-
declare function Section({ title, children, className, variant }: SectionProps): import("react").JSX.Element;
|
|
1008
|
-
//#endregion
|
|
1009
|
-
//#region packages/ui/FormLayout.d.ts
|
|
930
|
+
export declare function Section({ title, children, className, variant }: SectionProps): import("react").JSX.Element;
|
|
1010
931
|
type FormLayoutVariant = 'stack' | 'grid' | 'inline' | 'filter';
|
|
1011
932
|
interface FormLayoutProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
1012
933
|
children: ReactNode;
|
|
@@ -1014,25 +935,19 @@ interface FormLayoutProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
1014
935
|
/** Minimum column width for grid and filter variants. */
|
|
1015
936
|
minColWidth?: string;
|
|
1016
937
|
}
|
|
1017
|
-
declare function FormLayout({ children, variant, minColWidth, className, style, ...props }: FormLayoutProps): import("react").JSX.Element;
|
|
1018
|
-
//#endregion
|
|
1019
|
-
//#region packages/ui/FormActions.d.ts
|
|
938
|
+
export declare function FormLayout({ children, variant, minColWidth, className, style, ...props }: FormLayoutProps): import("react").JSX.Element;
|
|
1020
939
|
interface FormActionsProps {
|
|
1021
940
|
children: ReactNode;
|
|
1022
941
|
className?: string;
|
|
1023
942
|
}
|
|
1024
|
-
declare function FormActions({ children, className }: FormActionsProps): import("react").JSX.Element;
|
|
1025
|
-
//#endregion
|
|
1026
|
-
//#region packages/ui/Alert.d.ts
|
|
943
|
+
export declare function FormActions({ children, className }: FormActionsProps): import("react").JSX.Element;
|
|
1027
944
|
type AlertTone = 'danger' | 'warning' | 'info';
|
|
1028
945
|
interface AlertProps {
|
|
1029
946
|
tone?: AlertTone;
|
|
1030
947
|
children: ReactNode;
|
|
1031
948
|
className?: string;
|
|
1032
949
|
}
|
|
1033
|
-
declare function Alert({ tone, children, className }: AlertProps): import("react").JSX.Element;
|
|
1034
|
-
//#endregion
|
|
1035
|
-
//#region packages/ui/DescriptionList.d.ts
|
|
950
|
+
export declare function Alert({ tone, children, className }: AlertProps): import("react").JSX.Element;
|
|
1036
951
|
interface DescriptionListItem {
|
|
1037
952
|
term: string;
|
|
1038
953
|
value: ReactNode;
|
|
@@ -1041,25 +956,19 @@ interface DescriptionListProps {
|
|
|
1041
956
|
items: DescriptionListItem[];
|
|
1042
957
|
className?: string;
|
|
1043
958
|
}
|
|
1044
|
-
declare function DescriptionList({ items, className }: DescriptionListProps): import("react").JSX.Element;
|
|
1045
|
-
//#endregion
|
|
1046
|
-
//#region packages/ui/Code.d.ts
|
|
959
|
+
export declare function DescriptionList({ items, className }: DescriptionListProps): import("react").JSX.Element;
|
|
1047
960
|
interface CodeProps {
|
|
1048
961
|
children: ReactNode;
|
|
1049
962
|
className?: string;
|
|
1050
963
|
}
|
|
1051
|
-
declare function Code({ children, className }: CodeProps): import("react").JSX.Element;
|
|
1052
|
-
//#endregion
|
|
1053
|
-
//#region packages/ui/Text.d.ts
|
|
964
|
+
export declare function Code({ children, className }: CodeProps): import("react").JSX.Element;
|
|
1054
965
|
type TextTone = 'default' | 'muted';
|
|
1055
966
|
interface TextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1056
967
|
children: ReactNode;
|
|
1057
968
|
tone?: TextTone;
|
|
1058
969
|
as?: 'span' | 'p';
|
|
1059
970
|
}
|
|
1060
|
-
declare function Text({ children, tone, as: Tag, className, ...props }: TextProps): import("react").JSX.Element;
|
|
1061
|
-
//#endregion
|
|
1062
|
-
//#region packages/ui/Pagination.d.ts
|
|
971
|
+
export declare function Text({ children, tone, as: Tag, className, ...props }: TextProps): import("react").JSX.Element;
|
|
1063
972
|
interface PaginationProps {
|
|
1064
973
|
page: number;
|
|
1065
974
|
totalPages: number;
|
|
@@ -1069,9 +978,7 @@ interface PaginationProps {
|
|
|
1069
978
|
maxVisible?: number;
|
|
1070
979
|
className?: string;
|
|
1071
980
|
}
|
|
1072
|
-
declare function Pagination({ page, totalPages, onPageChange, ariaLabel, maxVisible, className }: PaginationProps): import("react").JSX.Element | null;
|
|
1073
|
-
//#endregion
|
|
1074
|
-
//#region packages/ui/DataTable.d.ts
|
|
981
|
+
export declare function Pagination({ page, totalPages, onPageChange, ariaLabel, maxVisible, className }: PaginationProps): import("react").JSX.Element | null;
|
|
1075
982
|
type DataTableColumnAlign = 'left' | 'right' | 'center';
|
|
1076
983
|
interface DataTableColumn<T> {
|
|
1077
984
|
id: string;
|
|
@@ -1099,9 +1006,7 @@ interface DataTableProps<T> {
|
|
|
1099
1006
|
renderActions?: (row: T) => ReactNode;
|
|
1100
1007
|
pagination?: PaginationProps;
|
|
1101
1008
|
}
|
|
1102
|
-
declare function DataTable<T>({ columns, rows, getRowKey, emptyMessage, fill, variant, className, wrapClassName, testId, rowActions, rowActionsLabel, renderActions, pagination }: DataTableProps<T>): import("react").JSX.Element | null;
|
|
1103
|
-
//#endregion
|
|
1104
|
-
//#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;
|
|
1105
1010
|
interface RowActionsProps {
|
|
1106
1011
|
items: ContextMenuItem[];
|
|
1107
1012
|
triggerLabel?: string;
|
|
@@ -1109,9 +1014,7 @@ interface RowActionsProps {
|
|
|
1109
1014
|
className?: string;
|
|
1110
1015
|
}
|
|
1111
1016
|
/** Context menu preset for table row overflow actions. */
|
|
1112
|
-
declare function RowActions({ items, triggerLabel, align, className }: RowActionsProps): import("react").JSX.Element | null;
|
|
1113
|
-
//#endregion
|
|
1114
|
-
//#region packages/ui/useConfirm.d.ts
|
|
1017
|
+
export declare function RowActions({ items, triggerLabel, align, className }: RowActionsProps): import("react").JSX.Element | null;
|
|
1115
1018
|
type ConfirmRequest = {
|
|
1116
1019
|
title: string;
|
|
1117
1020
|
message: string;
|
|
@@ -1119,22 +1022,18 @@ type ConfirmRequest = {
|
|
|
1119
1022
|
confirmLabel?: string;
|
|
1120
1023
|
onConfirm: () => void;
|
|
1121
1024
|
};
|
|
1122
|
-
declare function useConfirm(): {
|
|
1025
|
+
export declare function useConfirm(): {
|
|
1123
1026
|
ask: (request: ConfirmRequest) => void;
|
|
1124
1027
|
dismiss: () => void;
|
|
1125
1028
|
ConfirmHost: () => import("react").JSX.Element;
|
|
1126
1029
|
};
|
|
1127
|
-
//#endregion
|
|
1128
|
-
//#region packages/ui/Checkbox.d.ts
|
|
1129
1030
|
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
1130
1031
|
label?: ReactNode;
|
|
1131
1032
|
indeterminate?: boolean;
|
|
1132
1033
|
invalid?: boolean;
|
|
1133
1034
|
}
|
|
1134
1035
|
/** Native checkbox, including the mixed state used by bulk selection. */
|
|
1135
|
-
declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1136
|
-
//#endregion
|
|
1137
|
-
//#region packages/ui/RadioGroup.d.ts
|
|
1036
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1138
1037
|
interface RadioGroupOption<T extends string = string> {
|
|
1139
1038
|
value: T;
|
|
1140
1039
|
label: ReactNode;
|
|
@@ -1151,9 +1050,7 @@ interface RadioGroupProps<T extends string = string> extends Omit<FieldsetHTMLAt
|
|
|
1151
1050
|
invalid?: boolean;
|
|
1152
1051
|
}
|
|
1153
1052
|
/** Native radios share a name for browser keyboard navigation and form submission. */
|
|
1154
|
-
declare function RadioGroup<T extends string = string>({ label, name, value, options, onChange, orientation, required, invalid, disabled, className, ...props }: RadioGroupProps<T>): import("react").JSX.Element;
|
|
1155
|
-
//#endregion
|
|
1156
|
-
//#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;
|
|
1157
1054
|
interface TabsItem<T extends string = string> {
|
|
1158
1055
|
value: T;
|
|
1159
1056
|
label: ReactNode;
|
|
@@ -1172,24 +1069,18 @@ interface TabsProps<T extends string = string> {
|
|
|
1172
1069
|
keepMounted?: boolean;
|
|
1173
1070
|
className?: string;
|
|
1174
1071
|
}
|
|
1175
|
-
declare function Tabs<T extends string = string>({ items, value, onChange, 'aria-label': ariaLabel, orientation, activationMode, keepMounted, className }: TabsProps<T>): import("react").JSX.Element;
|
|
1176
|
-
//#endregion
|
|
1177
|
-
//#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;
|
|
1178
1073
|
interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
1179
1074
|
/** Localized accessible name. Omit for a decorative indicator. */
|
|
1180
1075
|
label?: string;
|
|
1181
1076
|
size?: 'sm' | 'md' | 'lg';
|
|
1182
1077
|
}
|
|
1183
|
-
declare function Spinner({ label, size, className, ...props }: SpinnerProps): import("react").JSX.Element;
|
|
1184
|
-
//#endregion
|
|
1185
|
-
//#region packages/ui/Progress.d.ts
|
|
1078
|
+
export declare function Spinner({ label, size, className, ...props }: SpinnerProps): import("react").JSX.Element;
|
|
1186
1079
|
interface ProgressProps extends ProgressHTMLAttributes<HTMLProgressElement> {
|
|
1187
1080
|
label?: ReactNode;
|
|
1188
1081
|
}
|
|
1189
1082
|
/** Omit value for indeterminate progress; max defaults to 100. */
|
|
1190
|
-
declare function Progress({ label, id, max, className, ...props }: ProgressProps): import("react").JSX.Element;
|
|
1191
|
-
//#endregion
|
|
1192
|
-
//#region packages/ui/useComboboxOptions.d.ts
|
|
1083
|
+
export declare function Progress({ label, id, max, className, ...props }: ProgressProps): import("react").JSX.Element;
|
|
1193
1084
|
interface ComboboxPage {
|
|
1194
1085
|
options: ComboboxOption[];
|
|
1195
1086
|
nextCursor?: string | number | null;
|
|
@@ -1198,8 +1089,6 @@ type ComboboxLoader = (query: string, context: {
|
|
|
1198
1089
|
signal: AbortSignal;
|
|
1199
1090
|
cursor?: string | number;
|
|
1200
1091
|
}) => Promise<ComboboxPage>;
|
|
1201
|
-
//#endregion
|
|
1202
|
-
//#region packages/ui/Combobox.d.ts
|
|
1203
1092
|
interface ComboboxOption {
|
|
1204
1093
|
value: string;
|
|
1205
1094
|
label: string;
|
|
@@ -1235,10 +1124,8 @@ interface MultiSelectProps extends Omit<ComboboxProps, 'value' | 'onChange'> {
|
|
|
1235
1124
|
selectedLabel?: string;
|
|
1236
1125
|
removeLabel?: (option: ComboboxOption) => string;
|
|
1237
1126
|
}
|
|
1238
|
-
declare const Combobox: React
|
|
1239
|
-
declare const MultiSelect: React
|
|
1240
|
-
//#endregion
|
|
1241
|
-
//#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>>;
|
|
1242
1129
|
interface TooltipProps {
|
|
1243
1130
|
/** A native focusable element or a component that forwards its DOM ref and props. */
|
|
1244
1131
|
children: ReactElement;
|
|
@@ -1249,22 +1136,18 @@ interface TooltipProps {
|
|
|
1249
1136
|
disabled?: boolean;
|
|
1250
1137
|
className?: string;
|
|
1251
1138
|
}
|
|
1252
|
-
declare const TooltipProvider: import("react").FC<import("@base-ui/react").TooltipProviderProps>;
|
|
1139
|
+
export declare const TooltipProvider: import("react").FC<import("@base-ui/react").TooltipProviderProps>;
|
|
1253
1140
|
type TooltipProviderProps = Tooltip$1.Provider.Props;
|
|
1254
1141
|
/** Uses the existing child as the trigger without adding a nested button. */
|
|
1255
|
-
declare function Tooltip({ children, content, side, delay, disabled, className }: TooltipProps): import("react").JSX.Element;
|
|
1256
|
-
|
|
1257
|
-
//#region packages/ui/OverlayContainer.d.ts
|
|
1258
|
-
declare const useOverlayContainer: () => HTMLElement | null;
|
|
1259
|
-
//#endregion
|
|
1260
|
-
//#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;
|
|
1261
1144
|
interface TimePickerProps {
|
|
1262
1145
|
id?: string;
|
|
1263
1146
|
name?: string;
|
|
1264
1147
|
/** Wall-clock time, HH:mm (or HH:mm:ss with second granularity). */
|
|
1265
1148
|
value?: string | null;
|
|
1266
1149
|
onChange?: (value: string) => void;
|
|
1267
|
-
onBlur?: React.FocusEventHandler<Element>;
|
|
1150
|
+
onBlur?: React$1.FocusEventHandler<Element>;
|
|
1268
1151
|
min?: string;
|
|
1269
1152
|
max?: string;
|
|
1270
1153
|
locale?: string;
|
|
@@ -1278,9 +1161,7 @@ interface TimePickerProps {
|
|
|
1278
1161
|
ariaLabel?: string;
|
|
1279
1162
|
}
|
|
1280
1163
|
/** Accessible segmented time entry. Values never pass through Date or a timezone. */
|
|
1281
|
-
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
1282
|
-
//#endregion
|
|
1283
|
-
//#region packages/ui/DetailLayout.d.ts
|
|
1164
|
+
export declare const TimePicker: React$1.ForwardRefExoticComponent<TimePickerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1284
1165
|
interface DetailLayoutProps {
|
|
1285
1166
|
children: ReactNode;
|
|
1286
1167
|
aside: ReactNode;
|
|
@@ -1288,6 +1169,92 @@ interface DetailLayoutProps {
|
|
|
1288
1169
|
className?: string;
|
|
1289
1170
|
}
|
|
1290
1171
|
/** Responsive main/aside composition for record detail pages. */
|
|
1291
|
-
declare function DetailLayout({ children, aside, asideLabel, className }: DetailLayoutProps): import("react").JSX.Element;
|
|
1292
|
-
|
|
1293
|
-
|
|
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 };
|