@nubitio/ui 1.1.1 → 1.2.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 +235 -1
- package/dist/index.cjs +1732 -1638
- package/dist/index.d.cts +282 -468
- package/dist/index.d.mts +282 -468
- package/dist/index.mjs +1721 -1639
- package/dist/style.css +853 -593
- package/package.json +4 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ButtonHTMLAttributes, CSSProperties, FormHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
|
-
|
|
1
|
+
import React, { ButtonHTMLAttributes, CSSProperties, FieldsetHTMLAttributes, FormHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ProgressHTMLAttributes, ReactElement, ReactNode, RefObject, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
|
+
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
3
3
|
//#region packages/ui/Avatar.d.ts
|
|
4
4
|
type AvatarShape = 'circle' | 'square';
|
|
5
5
|
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -24,14 +24,7 @@ interface AvatarProps {
|
|
|
24
24
|
}
|
|
25
25
|
declare function getAvatarInitials(owner?: string): string;
|
|
26
26
|
declare function getAvatarHue(owner?: string): number;
|
|
27
|
-
declare const Avatar: ({
|
|
28
|
-
owner,
|
|
29
|
-
size,
|
|
30
|
-
variant,
|
|
31
|
-
shape,
|
|
32
|
-
alt,
|
|
33
|
-
className
|
|
34
|
-
}: AvatarProps) => React.JSX.Element;
|
|
27
|
+
declare const Avatar: ({ owner, size, variant, shape, alt, className }: AvatarProps) => React.JSX.Element;
|
|
35
28
|
//#endregion
|
|
36
29
|
//#region packages/ui/AppDialog.d.ts
|
|
37
30
|
interface AppDialogProps {
|
|
@@ -54,6 +47,8 @@ interface AppDialogProps {
|
|
|
54
47
|
closeOnEscape?: boolean;
|
|
55
48
|
restoreFocus?: boolean;
|
|
56
49
|
keepMounted?: boolean;
|
|
50
|
+
/** Optional focus target when opening; defaults to the first focusable control. */
|
|
51
|
+
initialFocus?: React.RefObject<HTMLElement | null>;
|
|
57
52
|
rootClassName?: string;
|
|
58
53
|
className?: string;
|
|
59
54
|
headerClassName?: string;
|
|
@@ -62,32 +57,7 @@ interface AppDialogProps {
|
|
|
62
57
|
footerClassName?: string;
|
|
63
58
|
role?: string;
|
|
64
59
|
}
|
|
65
|
-
declare const AppDialog: ({
|
|
66
|
-
visible,
|
|
67
|
-
open,
|
|
68
|
-
title,
|
|
69
|
-
onClose,
|
|
70
|
-
children,
|
|
71
|
-
footer,
|
|
72
|
-
width,
|
|
73
|
-
maxWidth,
|
|
74
|
-
height,
|
|
75
|
-
fullScreen,
|
|
76
|
-
showCloseButton,
|
|
77
|
-
closeLabel,
|
|
78
|
-
scrimLabel,
|
|
79
|
-
closeOnOutsideClick,
|
|
80
|
-
closeOnEscape,
|
|
81
|
-
restoreFocus,
|
|
82
|
-
keepMounted,
|
|
83
|
-
rootClassName,
|
|
84
|
-
className,
|
|
85
|
-
headerClassName,
|
|
86
|
-
titleClassName,
|
|
87
|
-
bodyClassName,
|
|
88
|
-
footerClassName,
|
|
89
|
-
role
|
|
90
|
-
}: AppDialogProps) => React.ReactPortal | null;
|
|
60
|
+
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;
|
|
91
61
|
//#endregion
|
|
92
62
|
//#region packages/ui/ConfirmDialog.d.ts
|
|
93
63
|
interface ConfirmDialogProps {
|
|
@@ -100,16 +70,7 @@ interface ConfirmDialogProps {
|
|
|
100
70
|
cancelLabel?: string;
|
|
101
71
|
variant?: 'danger' | 'warning' | 'info';
|
|
102
72
|
}
|
|
103
|
-
declare function ConfirmDialog({
|
|
104
|
-
open,
|
|
105
|
-
title,
|
|
106
|
-
message,
|
|
107
|
-
onConfirm,
|
|
108
|
-
onCancel,
|
|
109
|
-
confirmLabel,
|
|
110
|
-
cancelLabel,
|
|
111
|
-
variant
|
|
112
|
-
}: ConfirmDialogProps): import("react").JSX.Element;
|
|
73
|
+
declare function ConfirmDialog({ open, title, message, onConfirm, onCancel, confirmLabel, cancelLabel, variant }: ConfirmDialogProps): import("react").JSX.Element;
|
|
113
74
|
//#endregion
|
|
114
75
|
//#region packages/ui/AppToolbar.d.ts
|
|
115
76
|
interface AppToolbarProps {
|
|
@@ -120,15 +81,7 @@ interface AppToolbarProps {
|
|
|
120
81
|
icon?: string;
|
|
121
82
|
refreshLabel?: string;
|
|
122
83
|
}
|
|
123
|
-
declare const AppToolbar: ({
|
|
124
|
-
title,
|
|
125
|
-
additionalToolbarContent,
|
|
126
|
-
showRefreshButton,
|
|
127
|
-
onRefresh,
|
|
128
|
-
icon,
|
|
129
|
-
refreshLabel,
|
|
130
|
-
children
|
|
131
|
-
}: AppToolbarProps & React.PropsWithChildren) => React.JSX.Element;
|
|
84
|
+
declare const AppToolbar: ({ title, additionalToolbarContent, showRefreshButton, onRefresh, icon, refreshLabel, children }: AppToolbarProps & React.PropsWithChildren) => React.JSX.Element;
|
|
132
85
|
//#endregion
|
|
133
86
|
//#region packages/ui/Button.d.ts
|
|
134
87
|
type ButtonVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'ghost';
|
|
@@ -141,29 +94,13 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
141
94
|
loading?: boolean;
|
|
142
95
|
children?: ReactNode;
|
|
143
96
|
}
|
|
144
|
-
declare const Button: (
|
|
145
|
-
variant,
|
|
146
|
-
size,
|
|
147
|
-
fullWidth,
|
|
148
|
-
icon,
|
|
149
|
-
loading,
|
|
150
|
-
className,
|
|
151
|
-
children,
|
|
152
|
-
disabled,
|
|
153
|
-
...props
|
|
154
|
-
}: ButtonProps) => import("react").JSX.Element;
|
|
97
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
155
98
|
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
156
99
|
icon: string;
|
|
157
100
|
label: string;
|
|
158
101
|
variant?: 'default' | 'danger';
|
|
159
102
|
}
|
|
160
|
-
declare const IconButton: (
|
|
161
|
-
icon,
|
|
162
|
-
label,
|
|
163
|
-
variant,
|
|
164
|
-
className,
|
|
165
|
-
...props
|
|
166
|
-
}: IconButtonProps) => import("react").JSX.Element;
|
|
103
|
+
declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
167
104
|
//#endregion
|
|
168
105
|
//#region packages/ui/Card.d.ts
|
|
169
106
|
type CardVariant = 'auth' | 'panel';
|
|
@@ -174,13 +111,7 @@ interface CardProps {
|
|
|
174
111
|
variant?: CardVariant;
|
|
175
112
|
className?: string;
|
|
176
113
|
}
|
|
177
|
-
declare const Card: ({
|
|
178
|
-
title,
|
|
179
|
-
description,
|
|
180
|
-
variant,
|
|
181
|
-
className,
|
|
182
|
-
children
|
|
183
|
-
}: React.PropsWithChildren<CardProps>) => React.JSX.Element;
|
|
114
|
+
declare const Card: ({ title, description, variant, className, children }: React.PropsWithChildren<CardProps>) => React.JSX.Element;
|
|
184
115
|
//#endregion
|
|
185
116
|
//#region packages/ui/FormControls.d.ts
|
|
186
117
|
interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
@@ -189,14 +120,7 @@ interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
189
120
|
helpText?: ReactNode;
|
|
190
121
|
children: ReactNode;
|
|
191
122
|
}
|
|
192
|
-
declare const FormField: ({
|
|
193
|
-
label,
|
|
194
|
-
error,
|
|
195
|
-
helpText,
|
|
196
|
-
children,
|
|
197
|
-
className,
|
|
198
|
-
...props
|
|
199
|
-
}: FormFieldProps) => import("react").JSX.Element;
|
|
123
|
+
declare const FormField: ({ label, error, helpText, children, className, ...props }: FormFieldProps) => import("react").JSX.Element;
|
|
200
124
|
interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
201
125
|
invalid?: boolean;
|
|
202
126
|
}
|
|
@@ -217,6 +141,7 @@ interface FileDropzoneValue {
|
|
|
217
141
|
previewUrl?: string | null;
|
|
218
142
|
}
|
|
219
143
|
interface FileDropzoneLabels {
|
|
144
|
+
empty?: string;
|
|
220
145
|
prompt?: string;
|
|
221
146
|
imagePrompt?: string;
|
|
222
147
|
dropPrompt?: string;
|
|
@@ -243,22 +168,7 @@ interface FileDropzoneProps {
|
|
|
243
168
|
onFileSelect: (file: File) => void;
|
|
244
169
|
onClear?: () => void;
|
|
245
170
|
}
|
|
246
|
-
declare function FileDropzone({
|
|
247
|
-
accept,
|
|
248
|
-
value,
|
|
249
|
-
image,
|
|
250
|
-
disabled,
|
|
251
|
-
readOnly,
|
|
252
|
-
invalid,
|
|
253
|
-
uploading,
|
|
254
|
-
error,
|
|
255
|
-
labels,
|
|
256
|
-
inputId,
|
|
257
|
-
inputLabel,
|
|
258
|
-
className,
|
|
259
|
-
onFileSelect,
|
|
260
|
-
onClear
|
|
261
|
-
}: FileDropzoneProps): import("react").JSX.Element;
|
|
171
|
+
declare function FileDropzone({ accept, value, image, disabled, readOnly, invalid, uploading, error, labels, inputId, inputLabel, className, onFileSelect, onClear }: FileDropzoneProps): import("react").JSX.Element;
|
|
262
172
|
//#endregion
|
|
263
173
|
//#region packages/ui/AppDropdown.d.ts
|
|
264
174
|
interface AppDropdownOption {
|
|
@@ -271,6 +181,7 @@ interface AppDropdownOption {
|
|
|
271
181
|
type AppDropdownVariant = 'form' | 'toolbar' | 'compact';
|
|
272
182
|
interface AppDropdownProps {
|
|
273
183
|
id?: string;
|
|
184
|
+
ariaLabel?: string;
|
|
274
185
|
label?: ReactNode;
|
|
275
186
|
icon?: string;
|
|
276
187
|
value: string;
|
|
@@ -289,25 +200,7 @@ interface AppDropdownProps {
|
|
|
289
200
|
menuFooter?: ReactNode;
|
|
290
201
|
onOpenChange?: (open: boolean) => void;
|
|
291
202
|
}
|
|
292
|
-
declare function AppDropdown({
|
|
293
|
-
id: idProp,
|
|
294
|
-
label,
|
|
295
|
-
icon,
|
|
296
|
-
value,
|
|
297
|
-
options,
|
|
298
|
-
onChange,
|
|
299
|
-
disabled,
|
|
300
|
-
placeholder,
|
|
301
|
-
variant,
|
|
302
|
-
className,
|
|
303
|
-
showFieldLabel,
|
|
304
|
-
menuMinWidth,
|
|
305
|
-
error,
|
|
306
|
-
helpText,
|
|
307
|
-
menuHeader,
|
|
308
|
-
menuFooter,
|
|
309
|
-
onOpenChange
|
|
310
|
-
}: AppDropdownProps): import("react").JSX.Element;
|
|
203
|
+
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;
|
|
311
204
|
//#endregion
|
|
312
205
|
//#region packages/ui/SearchableAppDropdown.d.ts
|
|
313
206
|
interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
@@ -322,21 +215,7 @@ interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
|
322
215
|
loadingLabel?: string;
|
|
323
216
|
selectedOption?: AppDropdownOption | null;
|
|
324
217
|
}
|
|
325
|
-
declare function SearchableAppDropdown({
|
|
326
|
-
options,
|
|
327
|
-
searchable,
|
|
328
|
-
searchPlaceholder,
|
|
329
|
-
onSearch,
|
|
330
|
-
minSearchLength,
|
|
331
|
-
emptySearchLabel,
|
|
332
|
-
loadingLabel,
|
|
333
|
-
selectedOption,
|
|
334
|
-
value,
|
|
335
|
-
onChange,
|
|
336
|
-
placeholder,
|
|
337
|
-
disabled,
|
|
338
|
-
...rest
|
|
339
|
-
}: SearchableAppDropdownProps): import("react").JSX.Element;
|
|
218
|
+
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;
|
|
340
219
|
//#endregion
|
|
341
220
|
//#region packages/ui/theme/ThemeProvider.d.ts
|
|
342
221
|
type Theme = 'light' | 'dark';
|
|
@@ -353,14 +232,11 @@ interface ThemeProviderProps {
|
|
|
353
232
|
storageKey?: string;
|
|
354
233
|
themePrefix?: string;
|
|
355
234
|
basePath?: string;
|
|
235
|
+
/** Opt-in Figma visual foundation; existing applications keep their current theme. */
|
|
236
|
+
visualStyle?: 'default' | 'nubit';
|
|
356
237
|
children: React.ReactNode;
|
|
357
238
|
}
|
|
358
|
-
declare const ThemeProvider: ({
|
|
359
|
-
storageKey,
|
|
360
|
-
themePrefix,
|
|
361
|
-
basePath,
|
|
362
|
-
children
|
|
363
|
-
}: ThemeProviderProps) => React.JSX.Element;
|
|
239
|
+
declare const ThemeProvider: ({ storageKey, themePrefix, basePath, visualStyle, children }: ThemeProviderProps) => React.JSX.Element;
|
|
364
240
|
//#endregion
|
|
365
241
|
//#region packages/ui/theme/ThemeSwitcher.d.ts
|
|
366
242
|
declare const labelByMode: {
|
|
@@ -371,9 +247,7 @@ declare const labelByMode: {
|
|
|
371
247
|
interface ThemeSwitcherProps {
|
|
372
248
|
labelByMode?: Partial<Record<keyof typeof labelByMode, string>>;
|
|
373
249
|
}
|
|
374
|
-
declare const ThemeSwitcher: ({
|
|
375
|
-
labelByMode: overrides
|
|
376
|
-
}?: ThemeSwitcherProps) => React.JSX.Element;
|
|
250
|
+
declare const ThemeSwitcher: ({ labelByMode: overrides }?: ThemeSwitcherProps) => React.JSX.Element;
|
|
377
251
|
//#endregion
|
|
378
252
|
//#region packages/ui/theme/DensityProvider.d.ts
|
|
379
253
|
type Density = 'normal' | 'compact';
|
|
@@ -383,9 +257,7 @@ interface DensityContextValue {
|
|
|
383
257
|
}
|
|
384
258
|
declare const DensityContext: React.Context<DensityContextValue | null>;
|
|
385
259
|
declare function useDensity(): DensityContextValue;
|
|
386
|
-
declare const DensityProvider: ({
|
|
387
|
-
children
|
|
388
|
-
}: {
|
|
260
|
+
declare const DensityProvider: ({ children }: {
|
|
389
261
|
children: React.ReactNode;
|
|
390
262
|
}) => React.JSX.Element;
|
|
391
263
|
//#endregion
|
|
@@ -405,9 +277,7 @@ declare function useAccentColor(): {
|
|
|
405
277
|
interface SettingsPanelProps {
|
|
406
278
|
onClose?: () => void;
|
|
407
279
|
}
|
|
408
|
-
declare const SettingsPanel: ({
|
|
409
|
-
onClose: _onClose
|
|
410
|
-
}: SettingsPanelProps) => React.JSX.Element;
|
|
280
|
+
declare const SettingsPanel: ({ onClose: _onClose }: SettingsPanelProps) => React.JSX.Element;
|
|
411
281
|
//#endregion
|
|
412
282
|
//#region packages/ui/FeatureGate.d.ts
|
|
413
283
|
interface FeatureGateProps {
|
|
@@ -420,16 +290,7 @@ interface FeatureGateProps {
|
|
|
420
290
|
upgradeUrl?: string;
|
|
421
291
|
lockTooltip?: string;
|
|
422
292
|
}
|
|
423
|
-
declare function FeatureGate({
|
|
424
|
-
featureKey,
|
|
425
|
-
children,
|
|
426
|
-
enabled,
|
|
427
|
-
behavior,
|
|
428
|
-
planBadge,
|
|
429
|
-
upgradeMessage,
|
|
430
|
-
upgradeUrl,
|
|
431
|
-
lockTooltip
|
|
432
|
-
}: FeatureGateProps): React.JSX.Element;
|
|
293
|
+
declare function FeatureGate({ featureKey, children, enabled, behavior, planBadge, upgradeMessage, upgradeUrl, lockTooltip }: FeatureGateProps): React.JSX.Element;
|
|
433
294
|
//#endregion
|
|
434
295
|
//#region packages/ui/Badge.d.ts
|
|
435
296
|
type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
@@ -448,15 +309,7 @@ interface BadgeProps {
|
|
|
448
309
|
children?: ReactNode;
|
|
449
310
|
className?: string;
|
|
450
311
|
}
|
|
451
|
-
declare const Badge: ({
|
|
452
|
-
variant,
|
|
453
|
-
size,
|
|
454
|
-
outlined,
|
|
455
|
-
pill,
|
|
456
|
-
dot,
|
|
457
|
-
children,
|
|
458
|
-
className
|
|
459
|
-
}: BadgeProps) => import("react").JSX.Element;
|
|
312
|
+
declare const Badge: ({ variant, size, outlined, pill, dot, children, className }: BadgeProps) => import("react").JSX.Element;
|
|
460
313
|
//#endregion
|
|
461
314
|
//#region packages/ui/Skeleton.d.ts
|
|
462
315
|
interface SkeletonProps {
|
|
@@ -470,13 +323,7 @@ interface SkeletonProps {
|
|
|
470
323
|
lines?: number;
|
|
471
324
|
className?: string;
|
|
472
325
|
}
|
|
473
|
-
declare const Skeleton: ({
|
|
474
|
-
variant,
|
|
475
|
-
width,
|
|
476
|
-
height,
|
|
477
|
-
lines,
|
|
478
|
-
className
|
|
479
|
-
}: SkeletonProps) => import("react").JSX.Element;
|
|
326
|
+
declare const Skeleton: ({ variant, width, height, lines, className }: SkeletonProps) => import("react").JSX.Element;
|
|
480
327
|
//#endregion
|
|
481
328
|
//#region packages/ui/EmptyState.d.ts
|
|
482
329
|
type EmptyStateVariant = 'default' | 'danger' | 'warning' | 'success';
|
|
@@ -484,6 +331,8 @@ type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
|
484
331
|
interface EmptyStateProps {
|
|
485
332
|
/** Phosphor icon name without the "ph-" prefix, e.g. "warning" or "folder-open". */
|
|
486
333
|
icon?: string;
|
|
334
|
+
/** Optional local illustration; replaces the default decorative icon. */
|
|
335
|
+
illustration?: ReactNode;
|
|
487
336
|
/** Semantic variant — controls the icon and accent color. */
|
|
488
337
|
variant?: EmptyStateVariant;
|
|
489
338
|
/** Title text — required. */
|
|
@@ -498,16 +347,7 @@ interface EmptyStateProps {
|
|
|
498
347
|
fill?: boolean;
|
|
499
348
|
className?: string;
|
|
500
349
|
}
|
|
501
|
-
declare const EmptyState: ({
|
|
502
|
-
icon,
|
|
503
|
-
variant,
|
|
504
|
-
title,
|
|
505
|
-
description,
|
|
506
|
-
action,
|
|
507
|
-
size,
|
|
508
|
-
fill,
|
|
509
|
-
className
|
|
510
|
-
}: EmptyStateProps) => import("react").JSX.Element;
|
|
350
|
+
declare const EmptyState: ({ icon, illustration, variant, title, description, action, size, fill, className }: EmptyStateProps) => import("react").JSX.Element;
|
|
511
351
|
//#endregion
|
|
512
352
|
//#region packages/ui/Chip.d.ts
|
|
513
353
|
interface ChipProps {
|
|
@@ -530,16 +370,7 @@ interface ChipProps {
|
|
|
530
370
|
* Pill-shaped filter/tag chip. Stateless — caller controls `active`.
|
|
531
371
|
* Use for category filters, tag lists, and multi-select inputs.
|
|
532
372
|
*/
|
|
533
|
-
declare const Chip: ({
|
|
534
|
-
label,
|
|
535
|
-
active,
|
|
536
|
-
count,
|
|
537
|
-
icon,
|
|
538
|
-
size,
|
|
539
|
-
disabled,
|
|
540
|
-
onClick,
|
|
541
|
-
className
|
|
542
|
-
}: ChipProps) => React.JSX.Element;
|
|
373
|
+
declare const Chip: ({ label, active, count, icon, size, disabled, onClick, className }: ChipProps) => React.JSX.Element;
|
|
543
374
|
//#endregion
|
|
544
375
|
//#region packages/ui/Toggle.d.ts
|
|
545
376
|
interface ToggleProps {
|
|
@@ -562,15 +393,7 @@ interface ToggleProps {
|
|
|
562
393
|
* With `label`: wraps in `.nb-toggle-row` for a label ↔ toggle layout.
|
|
563
394
|
* Without `label`: renders bare `.nb-toggle`.
|
|
564
395
|
*/
|
|
565
|
-
declare const Toggle: ({
|
|
566
|
-
checked,
|
|
567
|
-
onChange,
|
|
568
|
-
label,
|
|
569
|
-
size,
|
|
570
|
-
disabled,
|
|
571
|
-
"aria-label": ariaLabel,
|
|
572
|
-
className
|
|
573
|
-
}: ToggleProps) => React.JSX.Element;
|
|
396
|
+
declare const Toggle: ({ checked, onChange, label, size, disabled, "aria-label": ariaLabel, className }: ToggleProps) => React.JSX.Element;
|
|
574
397
|
//#endregion
|
|
575
398
|
//#region packages/ui/ContextMenu.d.ts
|
|
576
399
|
interface ContextMenuItem {
|
|
@@ -595,27 +418,7 @@ interface ContextMenuProps {
|
|
|
595
418
|
align?: 'right' | 'left';
|
|
596
419
|
className?: string;
|
|
597
420
|
}
|
|
598
|
-
|
|
599
|
-
* Three-dot overflow context menu.
|
|
600
|
-
* Replaces the legacy `shared/ui/library/card-menu/CardMenu` component.
|
|
601
|
-
*
|
|
602
|
-
* Features over CardMenu:
|
|
603
|
-
* - `danger` variant items
|
|
604
|
-
* - `separator` support
|
|
605
|
-
* - `icon` per item
|
|
606
|
-
* - Custom trigger slot
|
|
607
|
-
* - Left/right alignment
|
|
608
|
-
* - Click-outside + Escape to close
|
|
609
|
-
* - Portalled dropdown (avoids clip inside scrollable tables)
|
|
610
|
-
*/
|
|
611
|
-
declare const ContextMenu: ({
|
|
612
|
-
items,
|
|
613
|
-
visible,
|
|
614
|
-
trigger,
|
|
615
|
-
triggerLabel,
|
|
616
|
-
align,
|
|
617
|
-
className
|
|
618
|
-
}: ContextMenuProps) => React.JSX.Element | null;
|
|
421
|
+
declare const ContextMenu: ({ items, visible, trigger, triggerLabel, align, className }: ContextMenuProps) => React.JSX.Element | null;
|
|
619
422
|
//#endregion
|
|
620
423
|
//#region packages/ui/StatCard.d.ts
|
|
621
424
|
interface StatCardProps {
|
|
@@ -636,15 +439,7 @@ interface StatCardProps {
|
|
|
636
439
|
* Replaces the legacy `shared/ui/card-analytics/CardAnalytics` component.
|
|
637
440
|
* Uses `ContextMenu` from `@nubitio/ui` for the overflow menu.
|
|
638
441
|
*/
|
|
639
|
-
declare const StatCard: ({
|
|
640
|
-
title,
|
|
641
|
-
headerExtra,
|
|
642
|
-
menuVisible,
|
|
643
|
-
menuItems,
|
|
644
|
-
isLoading,
|
|
645
|
-
className,
|
|
646
|
-
children
|
|
647
|
-
}: StatCardProps) => React.JSX.Element;
|
|
442
|
+
declare const StatCard: ({ title, headerExtra, menuVisible, menuItems, isLoading, className, children }: StatCardProps) => React.JSX.Element;
|
|
648
443
|
//#endregion
|
|
649
444
|
//#region packages/ui/KpiMetricRow.d.ts
|
|
650
445
|
type KpiMetricTone = 'default' | 'success' | 'warning' | 'danger';
|
|
@@ -665,14 +460,7 @@ interface KpiMetricRowProps {
|
|
|
665
460
|
testId?: string;
|
|
666
461
|
loading?: boolean;
|
|
667
462
|
}
|
|
668
|
-
declare function KpiMetricRow({
|
|
669
|
-
items,
|
|
670
|
-
className,
|
|
671
|
-
layout,
|
|
672
|
-
density,
|
|
673
|
-
testId,
|
|
674
|
-
loading
|
|
675
|
-
}: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
463
|
+
declare function KpiMetricRow({ items, className, layout, density, testId, loading }: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
676
464
|
//#endregion
|
|
677
465
|
//#region packages/ui/SegmentedControl.d.ts
|
|
678
466
|
interface SegmentedControlOption<T extends string = string> {
|
|
@@ -688,14 +476,7 @@ interface SegmentedControlProps<T extends string = string> {
|
|
|
688
476
|
className?: string;
|
|
689
477
|
size?: 'sm' | 'md';
|
|
690
478
|
}
|
|
691
|
-
declare function SegmentedControl<T extends string = string>({
|
|
692
|
-
options,
|
|
693
|
-
value,
|
|
694
|
-
onChange,
|
|
695
|
-
ariaLabel,
|
|
696
|
-
className,
|
|
697
|
-
size
|
|
698
|
-
}: SegmentedControlProps<T>): import("react").JSX.Element | null;
|
|
479
|
+
declare function SegmentedControl<T extends string = string>({ options, value, onChange, ariaLabel, className, size }: SegmentedControlProps<T>): import("react").JSX.Element | null;
|
|
699
480
|
//#endregion
|
|
700
481
|
//#region packages/ui/FilterPanel.d.ts
|
|
701
482
|
interface FilterPanelChipOption {
|
|
@@ -730,14 +511,7 @@ interface FilterPanelProps<T extends string = string> {
|
|
|
730
511
|
className?: string;
|
|
731
512
|
testId?: string;
|
|
732
513
|
}
|
|
733
|
-
declare function FilterPanel<T extends string = string>({
|
|
734
|
-
category,
|
|
735
|
-
status,
|
|
736
|
-
layout,
|
|
737
|
-
density,
|
|
738
|
-
className,
|
|
739
|
-
testId
|
|
740
|
-
}: FilterPanelProps<T>): import("react").JSX.Element;
|
|
514
|
+
declare function FilterPanel<T extends string = string>({ category, status, layout, density, className, testId }: FilterPanelProps<T>): import("react").JSX.Element;
|
|
741
515
|
//#endregion
|
|
742
516
|
//#region packages/ui/ScopeTabs.d.ts
|
|
743
517
|
interface ScopeTabOption {
|
|
@@ -759,16 +533,7 @@ interface ScopeTabsProps {
|
|
|
759
533
|
* Pill tabs for scoping a list view (warehouse, branch, period, etc.).
|
|
760
534
|
* Hides itself when there is at most one scope option.
|
|
761
535
|
*/
|
|
762
|
-
declare function ScopeTabs({
|
|
763
|
-
options,
|
|
764
|
-
selectedKey,
|
|
765
|
-
onChange,
|
|
766
|
-
allLabel,
|
|
767
|
-
ariaLabel,
|
|
768
|
-
density,
|
|
769
|
-
className,
|
|
770
|
-
testId
|
|
771
|
-
}: ScopeTabsProps): import("react").JSX.Element | null;
|
|
536
|
+
declare function ScopeTabs({ options, selectedKey, onChange, allLabel, ariaLabel, density, className, testId }: ScopeTabsProps): import("react").JSX.Element | null;
|
|
772
537
|
//#endregion
|
|
773
538
|
//#region packages/ui/OperationCardGrid.d.ts
|
|
774
539
|
type OperationCardAccent = 'default' | 'in' | 'out' | 'count' | 'adjust' | 'transfer' | 'info' | 'warning' | 'danger';
|
|
@@ -788,13 +553,7 @@ interface OperationCardGridProps {
|
|
|
788
553
|
className?: string;
|
|
789
554
|
testId?: string;
|
|
790
555
|
}
|
|
791
|
-
declare function OperationCardGrid({
|
|
792
|
-
title,
|
|
793
|
-
description,
|
|
794
|
-
operations,
|
|
795
|
-
className,
|
|
796
|
-
testId
|
|
797
|
-
}: OperationCardGridProps): import("react").JSX.Element;
|
|
556
|
+
declare function OperationCardGrid({ title, description, operations, className, testId }: OperationCardGridProps): import("react").JSX.Element;
|
|
798
557
|
//#endregion
|
|
799
558
|
//#region packages/ui/HubPanel.d.ts
|
|
800
559
|
type HubPanelVariant = 'card' | 'flush';
|
|
@@ -808,12 +567,7 @@ interface HubPanelProps {
|
|
|
808
567
|
/**
|
|
809
568
|
* Card shell for feature-hub chrome above a CRUD grid (KPIs, scope tabs, filters).
|
|
810
569
|
*/
|
|
811
|
-
declare function HubPanel({
|
|
812
|
-
children,
|
|
813
|
-
variant,
|
|
814
|
-
className,
|
|
815
|
-
testId
|
|
816
|
-
}: HubPanelProps): import("react").JSX.Element;
|
|
570
|
+
declare function HubPanel({ children, variant, className, testId }: HubPanelProps): import("react").JSX.Element;
|
|
817
571
|
//#endregion
|
|
818
572
|
//#region packages/ui/CollapsibleSection.d.ts
|
|
819
573
|
interface CollapsibleSectionProps {
|
|
@@ -846,17 +600,7 @@ interface CollapsibleSectionProps {
|
|
|
846
600
|
* heavy children before they are needed. Pass `keepMounted` if you need
|
|
847
601
|
* the body always in the DOM.
|
|
848
602
|
*/
|
|
849
|
-
declare const CollapsibleSection: ({
|
|
850
|
-
label,
|
|
851
|
-
icon,
|
|
852
|
-
open,
|
|
853
|
-
onToggle,
|
|
854
|
-
children,
|
|
855
|
-
trailing,
|
|
856
|
-
className,
|
|
857
|
-
bodyClassName,
|
|
858
|
-
"data-testid": testId
|
|
859
|
-
}: CollapsibleSectionProps) => React.JSX.Element;
|
|
603
|
+
declare const CollapsibleSection: ({ label, icon, open, onToggle, children, trailing, className, bodyClassName, "data-testid": testId }: CollapsibleSectionProps) => React.JSX.Element;
|
|
860
604
|
//#endregion
|
|
861
605
|
//#region packages/ui/DatePicker.d.ts
|
|
862
606
|
interface DatePickerProps {
|
|
@@ -887,6 +631,7 @@ interface DateRangePickerProps {
|
|
|
887
631
|
endValue?: string | null;
|
|
888
632
|
placeholder?: string;
|
|
889
633
|
disabled?: boolean;
|
|
634
|
+
clearable?: boolean;
|
|
890
635
|
readOnly?: boolean;
|
|
891
636
|
required?: boolean;
|
|
892
637
|
invalid?: boolean;
|
|
@@ -898,22 +643,7 @@ interface DateRangePickerProps {
|
|
|
898
643
|
onChange?: (startValue: string, endValue: string) => void;
|
|
899
644
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
900
645
|
}
|
|
901
|
-
declare function DateRangePicker({
|
|
902
|
-
startValue,
|
|
903
|
-
endValue,
|
|
904
|
-
placeholder,
|
|
905
|
-
disabled,
|
|
906
|
-
readOnly,
|
|
907
|
-
required,
|
|
908
|
-
invalid,
|
|
909
|
-
locale,
|
|
910
|
-
min,
|
|
911
|
-
max,
|
|
912
|
-
className,
|
|
913
|
-
ariaLabel,
|
|
914
|
-
onChange,
|
|
915
|
-
onBlur
|
|
916
|
-
}: DateRangePickerProps): React.JSX.Element;
|
|
646
|
+
declare function DateRangePicker({ startValue, endValue, placeholder, disabled, clearable, readOnly, required, invalid, locale, min, max, className, ariaLabel, onChange, onBlur }: DateRangePickerProps): React.JSX.Element;
|
|
917
647
|
//#endregion
|
|
918
648
|
//#region packages/ui/Popover.d.ts
|
|
919
649
|
type PopoverAlign = 'start' | 'end';
|
|
@@ -943,13 +673,7 @@ interface PopoverProps {
|
|
|
943
673
|
ariaLabel?: string;
|
|
944
674
|
className?: string;
|
|
945
675
|
}
|
|
946
|
-
declare const Popover: ({
|
|
947
|
-
trigger,
|
|
948
|
-
panel,
|
|
949
|
-
align,
|
|
950
|
-
ariaLabel,
|
|
951
|
-
className
|
|
952
|
-
}: PopoverProps) => React.JSX.Element;
|
|
676
|
+
declare const Popover: ({ trigger, panel, align, ariaLabel, className }: PopoverProps) => React.JSX.Element;
|
|
953
677
|
//#endregion
|
|
954
678
|
//#region packages/ui/useFloatingPanel.d.ts
|
|
955
679
|
interface UseFloatingPanelOptions<C extends HTMLElement = HTMLDivElement> {
|
|
@@ -991,6 +715,8 @@ type DrawerSide = 'right' | 'left';
|
|
|
991
715
|
interface DrawerProps {
|
|
992
716
|
/** Controls visibility. The drawer mounts/unmounts with this flag. */
|
|
993
717
|
isOpen: boolean;
|
|
718
|
+
/** Prevent dismissal while an operation is pending. */
|
|
719
|
+
busy?: boolean;
|
|
994
720
|
/** Called on Escape, scrim click, or the built-in close button. */
|
|
995
721
|
onClose: () => void;
|
|
996
722
|
/** Optional title rendered in the header. */
|
|
@@ -1052,25 +778,8 @@ interface TimelineItemProps {
|
|
|
1052
778
|
children?: ReactNode;
|
|
1053
779
|
className?: string;
|
|
1054
780
|
}
|
|
1055
|
-
declare function TimelineItem({
|
|
1056
|
-
|
|
1057
|
-
title,
|
|
1058
|
-
marker,
|
|
1059
|
-
timestamp,
|
|
1060
|
-
dateTime,
|
|
1061
|
-
tone,
|
|
1062
|
-
children,
|
|
1063
|
-
className
|
|
1064
|
-
}: TimelineItemProps): React.JSX.Element;
|
|
1065
|
-
declare function Timeline({
|
|
1066
|
-
variant,
|
|
1067
|
-
orientation,
|
|
1068
|
-
title,
|
|
1069
|
-
description,
|
|
1070
|
-
children,
|
|
1071
|
-
className,
|
|
1072
|
-
'aria-label': ariaLabel
|
|
1073
|
-
}: TimelineProps): React.JSX.Element;
|
|
781
|
+
declare function TimelineItem({ status, title, marker, timestamp, dateTime, tone, children, className }: TimelineItemProps): React.JSX.Element;
|
|
782
|
+
declare function Timeline({ variant, orientation, title, description, children, className, 'aria-label': ariaLabel }: TimelineProps): React.JSX.Element;
|
|
1074
783
|
//#endregion
|
|
1075
784
|
//#region packages/ui/UiStrings.d.ts
|
|
1076
785
|
/**
|
|
@@ -1100,6 +809,9 @@ interface UiStrings {
|
|
|
1100
809
|
selectDate: string;
|
|
1101
810
|
/** DateRangePicker: label for the range text inputs. */
|
|
1102
811
|
selectDateRange: string;
|
|
812
|
+
startDate: string;
|
|
813
|
+
endDate: string;
|
|
814
|
+
selectTime: string;
|
|
1103
815
|
previousMonth: string;
|
|
1104
816
|
nextMonth: string;
|
|
1105
817
|
previousYear: string;
|
|
@@ -1110,6 +822,17 @@ interface UiStrings {
|
|
|
1110
822
|
selectYear: string;
|
|
1111
823
|
/** Date pickers: footer button that clears the value. */
|
|
1112
824
|
clear: string;
|
|
825
|
+
/** Combobox popup trigger and empty results. */
|
|
826
|
+
openOptions: string;
|
|
827
|
+
noOptions: string;
|
|
828
|
+
searching: string;
|
|
829
|
+
searchFailed: string;
|
|
830
|
+
enterSearch: string;
|
|
831
|
+
loadingMore: string;
|
|
832
|
+
loadMore: string;
|
|
833
|
+
retrySearch: string;
|
|
834
|
+
selectedOptions: string;
|
|
835
|
+
removeOption: string;
|
|
1113
836
|
/** Date pickers: footer button that jumps to today. */
|
|
1114
837
|
today: string;
|
|
1115
838
|
/** Generic cancel action. */
|
|
@@ -1130,6 +853,40 @@ interface UiStrings {
|
|
|
1130
853
|
pages: string;
|
|
1131
854
|
previousPage: string;
|
|
1132
855
|
nextPage: string;
|
|
856
|
+
settingsMenu: string;
|
|
857
|
+
accentColor: string;
|
|
858
|
+
accentColors: string;
|
|
859
|
+
density: string;
|
|
860
|
+
interfaceDensity: string;
|
|
861
|
+
densityNormal: string;
|
|
862
|
+
densityCompact: string;
|
|
863
|
+
mainNavigation: string;
|
|
864
|
+
mainMenu: string;
|
|
865
|
+
closeMenu: string;
|
|
866
|
+
toggleMenu: string;
|
|
867
|
+
mainToolbar: string;
|
|
868
|
+
mainContent: string;
|
|
869
|
+
userMenu: string;
|
|
870
|
+
loadingSession: string;
|
|
871
|
+
textFormatting: string;
|
|
872
|
+
bold: string;
|
|
873
|
+
italic: string;
|
|
874
|
+
strikethrough: string;
|
|
875
|
+
heading2: string;
|
|
876
|
+
heading3: string;
|
|
877
|
+
bulletList: string;
|
|
878
|
+
orderedList: string;
|
|
879
|
+
blockquote: string;
|
|
880
|
+
addLink: string;
|
|
881
|
+
removeLink: string;
|
|
882
|
+
undo: string;
|
|
883
|
+
redo: string;
|
|
884
|
+
/** FeatureGate: tooltip on a feature the current plan does not include. */
|
|
885
|
+
featureUnavailable: string;
|
|
886
|
+
/** FeatureGate upgrade prompt; `{plan}` is replaced with the plan badge. */
|
|
887
|
+
featureRequiresPlan: string;
|
|
888
|
+
/** FeatureGate upgrade prompt: link to the plans page. */
|
|
889
|
+
viewPlans: string;
|
|
1133
890
|
}
|
|
1134
891
|
declare const EN_UI_STRINGS: UiStrings;
|
|
1135
892
|
declare const ES_UI_STRINGS: UiStrings;
|
|
@@ -1158,15 +915,7 @@ interface PageProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1158
915
|
narrow?: boolean;
|
|
1159
916
|
gap?: SpaceScale;
|
|
1160
917
|
}
|
|
1161
|
-
declare function Page({
|
|
1162
|
-
children,
|
|
1163
|
-
fill,
|
|
1164
|
-
wide,
|
|
1165
|
-
narrow,
|
|
1166
|
-
gap,
|
|
1167
|
-
className,
|
|
1168
|
-
...props
|
|
1169
|
-
}: PageProps): import("react").JSX.Element;
|
|
918
|
+
declare function Page({ children, fill, wide, narrow, gap, className, ...props }: PageProps): import("react").JSX.Element;
|
|
1170
919
|
//#endregion
|
|
1171
920
|
//#region packages/ui/PageHeader.d.ts
|
|
1172
921
|
interface PageHeaderBreadcrumb {
|
|
@@ -1180,6 +929,8 @@ interface PageHeaderBadge {
|
|
|
1180
929
|
interface PageHeaderProps {
|
|
1181
930
|
title: string;
|
|
1182
931
|
subtitle?: string;
|
|
932
|
+
/** Status badges or other record metadata between title and subtitle. */
|
|
933
|
+
metadata?: ReactNode;
|
|
1183
934
|
breadcrumb?: PageHeaderBreadcrumb;
|
|
1184
935
|
/** Custom breadcrumb node (e.g. react-router Link). Takes precedence over breadcrumb. */
|
|
1185
936
|
breadcrumbSlot?: ReactNode;
|
|
@@ -1187,15 +938,7 @@ interface PageHeaderProps {
|
|
|
1187
938
|
actions?: ReactNode;
|
|
1188
939
|
className?: string;
|
|
1189
940
|
}
|
|
1190
|
-
declare function PageHeader({
|
|
1191
|
-
title,
|
|
1192
|
-
subtitle,
|
|
1193
|
-
breadcrumb,
|
|
1194
|
-
breadcrumbSlot,
|
|
1195
|
-
badge,
|
|
1196
|
-
actions,
|
|
1197
|
-
className
|
|
1198
|
-
}: PageHeaderProps): import("react").JSX.Element;
|
|
941
|
+
declare function PageHeader({ title, subtitle, metadata, breadcrumb, breadcrumbSlot, badge, actions, className }: PageHeaderProps): import("react").JSX.Element;
|
|
1199
942
|
//#endregion
|
|
1200
943
|
//#region packages/ui/Stack.d.ts
|
|
1201
944
|
interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1205,15 +948,7 @@ interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1205
948
|
justify?: FlexJustify;
|
|
1206
949
|
fill?: boolean;
|
|
1207
950
|
}
|
|
1208
|
-
declare function Stack({
|
|
1209
|
-
children,
|
|
1210
|
-
gap,
|
|
1211
|
-
align,
|
|
1212
|
-
justify,
|
|
1213
|
-
fill,
|
|
1214
|
-
className,
|
|
1215
|
-
...props
|
|
1216
|
-
}: StackProps): import("react").JSX.Element;
|
|
951
|
+
declare function Stack({ children, gap, align, justify, fill, className, ...props }: StackProps): import("react").JSX.Element;
|
|
1217
952
|
//#endregion
|
|
1218
953
|
//#region packages/ui/Row.d.ts
|
|
1219
954
|
interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1224,16 +959,7 @@ interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1224
959
|
wrap?: boolean;
|
|
1225
960
|
fill?: boolean;
|
|
1226
961
|
}
|
|
1227
|
-
declare function Row({
|
|
1228
|
-
children,
|
|
1229
|
-
gap,
|
|
1230
|
-
align,
|
|
1231
|
-
justify,
|
|
1232
|
-
wrap,
|
|
1233
|
-
fill,
|
|
1234
|
-
className,
|
|
1235
|
-
...props
|
|
1236
|
-
}: RowProps): import("react").JSX.Element;
|
|
962
|
+
declare function Row({ children, gap, align, justify, wrap, fill, className, ...props }: RowProps): import("react").JSX.Element;
|
|
1237
963
|
//#endregion
|
|
1238
964
|
//#region packages/ui/Cluster.d.ts
|
|
1239
965
|
interface ClusterProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1241,12 +967,7 @@ interface ClusterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1241
967
|
gap?: SpaceScale;
|
|
1242
968
|
}
|
|
1243
969
|
/** Inline flex row that wraps — ideal for button groups and filter actions. */
|
|
1244
|
-
declare function Cluster({
|
|
1245
|
-
children,
|
|
1246
|
-
gap,
|
|
1247
|
-
className,
|
|
1248
|
-
...props
|
|
1249
|
-
}: ClusterProps): import("react").JSX.Element;
|
|
970
|
+
declare function Cluster({ children, gap, className, ...props }: ClusterProps): import("react").JSX.Element;
|
|
1250
971
|
//#endregion
|
|
1251
972
|
//#region packages/ui/Grid.d.ts
|
|
1252
973
|
type GridCols = 12 | 'auto' | 1 | 2 | 3 | 4;
|
|
@@ -1259,16 +980,7 @@ interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1259
980
|
minColWidth?: string;
|
|
1260
981
|
fill?: boolean;
|
|
1261
982
|
}
|
|
1262
|
-
declare function Grid({
|
|
1263
|
-
children,
|
|
1264
|
-
cols,
|
|
1265
|
-
gap,
|
|
1266
|
-
minColWidth,
|
|
1267
|
-
fill,
|
|
1268
|
-
className,
|
|
1269
|
-
style,
|
|
1270
|
-
...props
|
|
1271
|
-
}: GridProps): import("react").JSX.Element;
|
|
983
|
+
declare function Grid({ children, cols, gap, minColWidth, fill, className, style, ...props }: GridProps): import("react").JSX.Element;
|
|
1272
984
|
//#endregion
|
|
1273
985
|
//#region packages/ui/Col.d.ts
|
|
1274
986
|
interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1281,28 +993,17 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1281
993
|
/** Span all columns in the current row. */
|
|
1282
994
|
fullWidth?: boolean;
|
|
1283
995
|
}
|
|
1284
|
-
declare function Col({
|
|
1285
|
-
children,
|
|
1286
|
-
span,
|
|
1287
|
-
spanSm,
|
|
1288
|
-
spanMd,
|
|
1289
|
-
spanLg,
|
|
1290
|
-
fullWidth,
|
|
1291
|
-
className,
|
|
1292
|
-
...props
|
|
1293
|
-
}: ColProps): import("react").JSX.Element;
|
|
996
|
+
declare function Col({ children, span, spanSm, spanMd, spanLg, fullWidth, className, ...props }: ColProps): import("react").JSX.Element;
|
|
1294
997
|
//#endregion
|
|
1295
998
|
//#region packages/ui/Section.d.ts
|
|
1296
999
|
interface SectionProps {
|
|
1297
1000
|
title: string;
|
|
1298
1001
|
children: ReactNode;
|
|
1299
1002
|
className?: string;
|
|
1003
|
+
/** Panel titles use sentence case; label preserves the compact group heading. */
|
|
1004
|
+
variant?: 'label' | 'panel';
|
|
1300
1005
|
}
|
|
1301
|
-
declare function Section({
|
|
1302
|
-
title,
|
|
1303
|
-
children,
|
|
1304
|
-
className
|
|
1305
|
-
}: SectionProps): import("react").JSX.Element;
|
|
1006
|
+
declare function Section({ title, children, className, variant }: SectionProps): import("react").JSX.Element;
|
|
1306
1007
|
//#endregion
|
|
1307
1008
|
//#region packages/ui/FormLayout.d.ts
|
|
1308
1009
|
type FormLayoutVariant = 'stack' | 'grid' | 'inline' | 'filter';
|
|
@@ -1312,24 +1013,14 @@ interface FormLayoutProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
1312
1013
|
/** Minimum column width for grid and filter variants. */
|
|
1313
1014
|
minColWidth?: string;
|
|
1314
1015
|
}
|
|
1315
|
-
declare function FormLayout({
|
|
1316
|
-
children,
|
|
1317
|
-
variant,
|
|
1318
|
-
minColWidth,
|
|
1319
|
-
className,
|
|
1320
|
-
style,
|
|
1321
|
-
...props
|
|
1322
|
-
}: FormLayoutProps): import("react").JSX.Element;
|
|
1016
|
+
declare function FormLayout({ children, variant, minColWidth, className, style, ...props }: FormLayoutProps): import("react").JSX.Element;
|
|
1323
1017
|
//#endregion
|
|
1324
1018
|
//#region packages/ui/FormActions.d.ts
|
|
1325
1019
|
interface FormActionsProps {
|
|
1326
1020
|
children: ReactNode;
|
|
1327
1021
|
className?: string;
|
|
1328
1022
|
}
|
|
1329
|
-
declare function FormActions({
|
|
1330
|
-
children,
|
|
1331
|
-
className
|
|
1332
|
-
}: FormActionsProps): import("react").JSX.Element;
|
|
1023
|
+
declare function FormActions({ children, className }: FormActionsProps): import("react").JSX.Element;
|
|
1333
1024
|
//#endregion
|
|
1334
1025
|
//#region packages/ui/Alert.d.ts
|
|
1335
1026
|
type AlertTone = 'danger' | 'warning' | 'info';
|
|
@@ -1338,11 +1029,7 @@ interface AlertProps {
|
|
|
1338
1029
|
children: ReactNode;
|
|
1339
1030
|
className?: string;
|
|
1340
1031
|
}
|
|
1341
|
-
declare function Alert({
|
|
1342
|
-
tone,
|
|
1343
|
-
children,
|
|
1344
|
-
className
|
|
1345
|
-
}: AlertProps): import("react").JSX.Element;
|
|
1032
|
+
declare function Alert({ tone, children, className }: AlertProps): import("react").JSX.Element;
|
|
1346
1033
|
//#endregion
|
|
1347
1034
|
//#region packages/ui/DescriptionList.d.ts
|
|
1348
1035
|
interface DescriptionListItem {
|
|
@@ -1353,20 +1040,14 @@ interface DescriptionListProps {
|
|
|
1353
1040
|
items: DescriptionListItem[];
|
|
1354
1041
|
className?: string;
|
|
1355
1042
|
}
|
|
1356
|
-
declare function DescriptionList({
|
|
1357
|
-
items,
|
|
1358
|
-
className
|
|
1359
|
-
}: DescriptionListProps): import("react").JSX.Element;
|
|
1043
|
+
declare function DescriptionList({ items, className }: DescriptionListProps): import("react").JSX.Element;
|
|
1360
1044
|
//#endregion
|
|
1361
1045
|
//#region packages/ui/Code.d.ts
|
|
1362
1046
|
interface CodeProps {
|
|
1363
1047
|
children: ReactNode;
|
|
1364
1048
|
className?: string;
|
|
1365
1049
|
}
|
|
1366
|
-
declare function Code({
|
|
1367
|
-
children,
|
|
1368
|
-
className
|
|
1369
|
-
}: CodeProps): import("react").JSX.Element;
|
|
1050
|
+
declare function Code({ children, className }: CodeProps): import("react").JSX.Element;
|
|
1370
1051
|
//#endregion
|
|
1371
1052
|
//#region packages/ui/Text.d.ts
|
|
1372
1053
|
type TextTone = 'default' | 'muted';
|
|
@@ -1375,13 +1056,7 @@ interface TextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
1375
1056
|
tone?: TextTone;
|
|
1376
1057
|
as?: 'span' | 'p';
|
|
1377
1058
|
}
|
|
1378
|
-
declare function Text({
|
|
1379
|
-
children,
|
|
1380
|
-
tone,
|
|
1381
|
-
as: Tag,
|
|
1382
|
-
className,
|
|
1383
|
-
...props
|
|
1384
|
-
}: TextProps): import("react").JSX.Element;
|
|
1059
|
+
declare function Text({ children, tone, as: Tag, className, ...props }: TextProps): import("react").JSX.Element;
|
|
1385
1060
|
//#endregion
|
|
1386
1061
|
//#region packages/ui/Pagination.d.ts
|
|
1387
1062
|
interface PaginationProps {
|
|
@@ -1393,14 +1068,7 @@ interface PaginationProps {
|
|
|
1393
1068
|
maxVisible?: number;
|
|
1394
1069
|
className?: string;
|
|
1395
1070
|
}
|
|
1396
|
-
declare function Pagination({
|
|
1397
|
-
page,
|
|
1398
|
-
totalPages,
|
|
1399
|
-
onPageChange,
|
|
1400
|
-
ariaLabel,
|
|
1401
|
-
maxVisible,
|
|
1402
|
-
className
|
|
1403
|
-
}: PaginationProps): import("react").JSX.Element | null;
|
|
1071
|
+
declare function Pagination({ page, totalPages, onPageChange, ariaLabel, maxVisible, className }: PaginationProps): import("react").JSX.Element | null;
|
|
1404
1072
|
//#endregion
|
|
1405
1073
|
//#region packages/ui/DataTable.d.ts
|
|
1406
1074
|
type DataTableColumnAlign = 'left' | 'right' | 'center';
|
|
@@ -1430,21 +1098,7 @@ interface DataTableProps<T> {
|
|
|
1430
1098
|
renderActions?: (row: T) => ReactNode;
|
|
1431
1099
|
pagination?: PaginationProps;
|
|
1432
1100
|
}
|
|
1433
|
-
declare function DataTable<T>({
|
|
1434
|
-
columns,
|
|
1435
|
-
rows,
|
|
1436
|
-
getRowKey,
|
|
1437
|
-
emptyMessage,
|
|
1438
|
-
fill,
|
|
1439
|
-
variant,
|
|
1440
|
-
className,
|
|
1441
|
-
wrapClassName,
|
|
1442
|
-
testId,
|
|
1443
|
-
rowActions,
|
|
1444
|
-
rowActionsLabel,
|
|
1445
|
-
renderActions,
|
|
1446
|
-
pagination
|
|
1447
|
-
}: DataTableProps<T>): import("react").JSX.Element | null;
|
|
1101
|
+
declare function DataTable<T>({ columns, rows, getRowKey, emptyMessage, fill, variant, className, wrapClassName, testId, rowActions, rowActionsLabel, renderActions, pagination }: DataTableProps<T>): import("react").JSX.Element | null;
|
|
1448
1102
|
//#endregion
|
|
1449
1103
|
//#region packages/ui/RowActions.d.ts
|
|
1450
1104
|
interface RowActionsProps {
|
|
@@ -1454,12 +1108,7 @@ interface RowActionsProps {
|
|
|
1454
1108
|
className?: string;
|
|
1455
1109
|
}
|
|
1456
1110
|
/** Context menu preset for table row overflow actions. */
|
|
1457
|
-
declare function RowActions({
|
|
1458
|
-
items,
|
|
1459
|
-
triggerLabel,
|
|
1460
|
-
align,
|
|
1461
|
-
className
|
|
1462
|
-
}: RowActionsProps): import("react").JSX.Element | null;
|
|
1111
|
+
declare function RowActions({ items, triggerLabel, align, className }: RowActionsProps): import("react").JSX.Element | null;
|
|
1463
1112
|
//#endregion
|
|
1464
1113
|
//#region packages/ui/useConfirm.d.ts
|
|
1465
1114
|
type ConfirmRequest = {
|
|
@@ -1475,4 +1124,169 @@ declare function useConfirm(): {
|
|
|
1475
1124
|
ConfirmHost: () => import("react").JSX.Element;
|
|
1476
1125
|
};
|
|
1477
1126
|
//#endregion
|
|
1478
|
-
|
|
1127
|
+
//#region packages/ui/Checkbox.d.ts
|
|
1128
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
1129
|
+
label?: ReactNode;
|
|
1130
|
+
indeterminate?: boolean;
|
|
1131
|
+
invalid?: boolean;
|
|
1132
|
+
}
|
|
1133
|
+
/** Native checkbox, including the mixed state used by bulk selection. */
|
|
1134
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1135
|
+
//#endregion
|
|
1136
|
+
//#region packages/ui/RadioGroup.d.ts
|
|
1137
|
+
interface RadioGroupOption<T extends string = string> {
|
|
1138
|
+
value: T;
|
|
1139
|
+
label: ReactNode;
|
|
1140
|
+
disabled?: boolean;
|
|
1141
|
+
}
|
|
1142
|
+
interface RadioGroupProps<T extends string = string> extends Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'onChange'> {
|
|
1143
|
+
label?: ReactNode;
|
|
1144
|
+
name?: string;
|
|
1145
|
+
value: T;
|
|
1146
|
+
options: RadioGroupOption<T>[];
|
|
1147
|
+
onChange: (value: T) => void;
|
|
1148
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1149
|
+
required?: boolean;
|
|
1150
|
+
invalid?: boolean;
|
|
1151
|
+
}
|
|
1152
|
+
/** Native radios share a name for browser keyboard navigation and form submission. */
|
|
1153
|
+
declare function RadioGroup<T extends string = string>({ label, name, value, options, onChange, orientation, required, invalid, disabled, className, ...props }: RadioGroupProps<T>): import("react").JSX.Element;
|
|
1154
|
+
//#endregion
|
|
1155
|
+
//#region packages/ui/Tabs.d.ts
|
|
1156
|
+
interface TabsItem<T extends string = string> {
|
|
1157
|
+
value: T;
|
|
1158
|
+
label: ReactNode;
|
|
1159
|
+
content: ReactNode;
|
|
1160
|
+
disabled?: boolean;
|
|
1161
|
+
}
|
|
1162
|
+
interface TabsProps<T extends string = string> {
|
|
1163
|
+
items: TabsItem<T>[];
|
|
1164
|
+
value: T;
|
|
1165
|
+
onChange: (value: T) => void;
|
|
1166
|
+
/** Accessible name of the tab list. */
|
|
1167
|
+
'aria-label': string;
|
|
1168
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1169
|
+
activationMode?: 'automatic' | 'manual';
|
|
1170
|
+
/** Keep inactive panels mounted to preserve local form state. */
|
|
1171
|
+
keepMounted?: boolean;
|
|
1172
|
+
className?: string;
|
|
1173
|
+
}
|
|
1174
|
+
declare function Tabs<T extends string = string>({ items, value, onChange, 'aria-label': ariaLabel, orientation, activationMode, keepMounted, className }: TabsProps<T>): import("react").JSX.Element;
|
|
1175
|
+
//#endregion
|
|
1176
|
+
//#region packages/ui/Spinner.d.ts
|
|
1177
|
+
interface SpinnerProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
1178
|
+
/** Localized accessible name. Omit for a decorative indicator. */
|
|
1179
|
+
label?: string;
|
|
1180
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1181
|
+
}
|
|
1182
|
+
declare function Spinner({ label, size, className, ...props }: SpinnerProps): import("react").JSX.Element;
|
|
1183
|
+
//#endregion
|
|
1184
|
+
//#region packages/ui/Progress.d.ts
|
|
1185
|
+
interface ProgressProps extends ProgressHTMLAttributes<HTMLProgressElement> {
|
|
1186
|
+
label?: ReactNode;
|
|
1187
|
+
}
|
|
1188
|
+
/** Omit value for indeterminate progress; max defaults to 100. */
|
|
1189
|
+
declare function Progress({ label, id, max, className, ...props }: ProgressProps): import("react").JSX.Element;
|
|
1190
|
+
//#endregion
|
|
1191
|
+
//#region packages/ui/useComboboxOptions.d.ts
|
|
1192
|
+
interface ComboboxPage {
|
|
1193
|
+
options: ComboboxOption[];
|
|
1194
|
+
nextCursor?: string | number | null;
|
|
1195
|
+
}
|
|
1196
|
+
type ComboboxLoader = (query: string, context: {
|
|
1197
|
+
signal: AbortSignal;
|
|
1198
|
+
cursor?: string | number;
|
|
1199
|
+
}) => Promise<ComboboxPage>;
|
|
1200
|
+
//#endregion
|
|
1201
|
+
//#region packages/ui/Combobox.d.ts
|
|
1202
|
+
interface ComboboxOption {
|
|
1203
|
+
value: string;
|
|
1204
|
+
label: string;
|
|
1205
|
+
disabled?: boolean;
|
|
1206
|
+
/** Optional rich option content; label remains the plain-text accessible name. */
|
|
1207
|
+
content?: ReactNode;
|
|
1208
|
+
}
|
|
1209
|
+
interface ComboboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'type' | 'children'> {
|
|
1210
|
+
options: ComboboxOption[];
|
|
1211
|
+
value: string | null;
|
|
1212
|
+
onChange: (value: string | null) => void;
|
|
1213
|
+
label?: ReactNode;
|
|
1214
|
+
error?: ReactNode;
|
|
1215
|
+
helpText?: ReactNode;
|
|
1216
|
+
invalid?: boolean;
|
|
1217
|
+
clearable?: boolean;
|
|
1218
|
+
emptyMessage?: ReactNode;
|
|
1219
|
+
openLabel?: string;
|
|
1220
|
+
clearLabel?: string;
|
|
1221
|
+
/** Styles the input independently from the field wrapper. */
|
|
1222
|
+
inputClassName?: string;
|
|
1223
|
+
/** Server filtering/paging. Seed options should include selected records. */
|
|
1224
|
+
loadOptions?: ComboboxLoader;
|
|
1225
|
+
debounceMs?: number;
|
|
1226
|
+
minSearchLength?: number;
|
|
1227
|
+
loadingMessage?: ReactNode;
|
|
1228
|
+
searchErrorMessage?: ReactNode;
|
|
1229
|
+
onOpenChange?: (open: boolean) => void;
|
|
1230
|
+
}
|
|
1231
|
+
interface MultiSelectProps extends Omit<ComboboxProps, 'value' | 'onChange'> {
|
|
1232
|
+
value: string[];
|
|
1233
|
+
onChange: (value: string[]) => void;
|
|
1234
|
+
selectedLabel?: string;
|
|
1235
|
+
removeLabel?: (option: ComboboxOption) => string;
|
|
1236
|
+
}
|
|
1237
|
+
declare const Combobox: import("react").ForwardRefExoticComponent<ComboboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1238
|
+
declare const MultiSelect: import("react").ForwardRefExoticComponent<MultiSelectProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region packages/ui/Tooltip.d.ts
|
|
1241
|
+
interface TooltipProps {
|
|
1242
|
+
/** A native focusable element or a component that forwards its DOM ref and props. */
|
|
1243
|
+
children: ReactElement;
|
|
1244
|
+
/** Non-interactive supplementary text. Essential information should remain visible. */
|
|
1245
|
+
content: ReactNode;
|
|
1246
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
1247
|
+
delay?: number;
|
|
1248
|
+
disabled?: boolean;
|
|
1249
|
+
className?: string;
|
|
1250
|
+
}
|
|
1251
|
+
declare const TooltipProvider: import("react").FC<import("@base-ui/react").TooltipProviderProps>;
|
|
1252
|
+
type TooltipProviderProps = Tooltip$1.Provider.Props;
|
|
1253
|
+
/** Uses the existing child as the trigger without adding a nested button. */
|
|
1254
|
+
declare function Tooltip({ children, content, side, delay, disabled, className }: TooltipProps): import("react").JSX.Element;
|
|
1255
|
+
//#endregion
|
|
1256
|
+
//#region packages/ui/OverlayContainer.d.ts
|
|
1257
|
+
declare const useOverlayContainer: () => HTMLElement | null;
|
|
1258
|
+
//#endregion
|
|
1259
|
+
//#region packages/ui/TimePicker.d.ts
|
|
1260
|
+
interface TimePickerProps {
|
|
1261
|
+
id?: string;
|
|
1262
|
+
name?: string;
|
|
1263
|
+
/** Wall-clock time, HH:mm (or HH:mm:ss with second granularity). */
|
|
1264
|
+
value?: string | null;
|
|
1265
|
+
onChange?: (value: string) => void;
|
|
1266
|
+
onBlur?: React.FocusEventHandler<Element>;
|
|
1267
|
+
min?: string;
|
|
1268
|
+
max?: string;
|
|
1269
|
+
locale?: string;
|
|
1270
|
+
hourCycle?: 12 | 24;
|
|
1271
|
+
granularity?: 'minute' | 'second';
|
|
1272
|
+
disabled?: boolean;
|
|
1273
|
+
readOnly?: boolean;
|
|
1274
|
+
required?: boolean;
|
|
1275
|
+
invalid?: boolean;
|
|
1276
|
+
className?: string;
|
|
1277
|
+
ariaLabel?: string;
|
|
1278
|
+
}
|
|
1279
|
+
/** Accessible segmented time entry. Values never pass through Date or a timezone. */
|
|
1280
|
+
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
1281
|
+
//#endregion
|
|
1282
|
+
//#region packages/ui/DetailLayout.d.ts
|
|
1283
|
+
interface DetailLayoutProps {
|
|
1284
|
+
children: ReactNode;
|
|
1285
|
+
aside: ReactNode;
|
|
1286
|
+
asideLabel?: string;
|
|
1287
|
+
className?: string;
|
|
1288
|
+
}
|
|
1289
|
+
/** Responsive main/aside composition for record detail pages. */
|
|
1290
|
+
declare function DetailLayout({ children, aside, asideLabel, className }: DetailLayoutProps): import("react").JSX.Element;
|
|
1291
|
+
//#endregion
|
|
1292
|
+
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 };
|