@nubitio/ui 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +123 -48
- package/dist/index.d.cts +85 -453
- package/dist/index.d.mts +85 -453
- package/dist/index.mjs +122 -47
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, CSSProperties, FormHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
|
-
|
|
3
2
|
//#region packages/ui/Avatar.d.ts
|
|
4
3
|
type AvatarShape = 'circle' | 'square';
|
|
5
4
|
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -24,14 +23,7 @@ interface AvatarProps {
|
|
|
24
23
|
}
|
|
25
24
|
declare function getAvatarInitials(owner?: string): string;
|
|
26
25
|
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;
|
|
26
|
+
declare const Avatar: ({ owner, size, variant, shape, alt, className }: AvatarProps) => React.JSX.Element;
|
|
35
27
|
//#endregion
|
|
36
28
|
//#region packages/ui/AppDialog.d.ts
|
|
37
29
|
interface AppDialogProps {
|
|
@@ -62,32 +54,7 @@ interface AppDialogProps {
|
|
|
62
54
|
footerClassName?: string;
|
|
63
55
|
role?: string;
|
|
64
56
|
}
|
|
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;
|
|
57
|
+
declare const AppDialog: ({ visible, open, title, onClose, children, footer, width, maxWidth, height, fullScreen, showCloseButton, closeLabel, scrimLabel, closeOnOutsideClick, closeOnEscape, restoreFocus, keepMounted, rootClassName, className, headerClassName, titleClassName, bodyClassName, footerClassName, role }: AppDialogProps) => React.ReactPortal | null;
|
|
91
58
|
//#endregion
|
|
92
59
|
//#region packages/ui/ConfirmDialog.d.ts
|
|
93
60
|
interface ConfirmDialogProps {
|
|
@@ -100,16 +67,7 @@ interface ConfirmDialogProps {
|
|
|
100
67
|
cancelLabel?: string;
|
|
101
68
|
variant?: 'danger' | 'warning' | 'info';
|
|
102
69
|
}
|
|
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;
|
|
70
|
+
declare function ConfirmDialog({ open, title, message, onConfirm, onCancel, confirmLabel, cancelLabel, variant }: ConfirmDialogProps): import("react").JSX.Element;
|
|
113
71
|
//#endregion
|
|
114
72
|
//#region packages/ui/AppToolbar.d.ts
|
|
115
73
|
interface AppToolbarProps {
|
|
@@ -120,15 +78,7 @@ interface AppToolbarProps {
|
|
|
120
78
|
icon?: string;
|
|
121
79
|
refreshLabel?: string;
|
|
122
80
|
}
|
|
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;
|
|
81
|
+
declare const AppToolbar: ({ title, additionalToolbarContent, showRefreshButton, onRefresh, icon, refreshLabel, children }: AppToolbarProps & React.PropsWithChildren) => React.JSX.Element;
|
|
132
82
|
//#endregion
|
|
133
83
|
//#region packages/ui/Button.d.ts
|
|
134
84
|
type ButtonVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'ghost';
|
|
@@ -141,29 +91,13 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
141
91
|
loading?: boolean;
|
|
142
92
|
children?: ReactNode;
|
|
143
93
|
}
|
|
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;
|
|
94
|
+
declare const Button: ({ variant, size, fullWidth, icon, loading, className, children, disabled, ...props }: ButtonProps) => import("react").JSX.Element;
|
|
155
95
|
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
156
96
|
icon: string;
|
|
157
97
|
label: string;
|
|
158
98
|
variant?: 'default' | 'danger';
|
|
159
99
|
}
|
|
160
|
-
declare const IconButton: ({
|
|
161
|
-
icon,
|
|
162
|
-
label,
|
|
163
|
-
variant,
|
|
164
|
-
className,
|
|
165
|
-
...props
|
|
166
|
-
}: IconButtonProps) => import("react").JSX.Element;
|
|
100
|
+
declare const IconButton: ({ icon, label, variant, className, ...props }: IconButtonProps) => import("react").JSX.Element;
|
|
167
101
|
//#endregion
|
|
168
102
|
//#region packages/ui/Card.d.ts
|
|
169
103
|
type CardVariant = 'auth' | 'panel';
|
|
@@ -174,13 +108,7 @@ interface CardProps {
|
|
|
174
108
|
variant?: CardVariant;
|
|
175
109
|
className?: string;
|
|
176
110
|
}
|
|
177
|
-
declare const Card: ({
|
|
178
|
-
title,
|
|
179
|
-
description,
|
|
180
|
-
variant,
|
|
181
|
-
className,
|
|
182
|
-
children
|
|
183
|
-
}: React.PropsWithChildren<CardProps>) => React.JSX.Element;
|
|
111
|
+
declare const Card: ({ title, description, variant, className, children }: React.PropsWithChildren<CardProps>) => React.JSX.Element;
|
|
184
112
|
//#endregion
|
|
185
113
|
//#region packages/ui/FormControls.d.ts
|
|
186
114
|
interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
@@ -189,14 +117,7 @@ interface FormFieldProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
189
117
|
helpText?: ReactNode;
|
|
190
118
|
children: ReactNode;
|
|
191
119
|
}
|
|
192
|
-
declare const FormField: ({
|
|
193
|
-
label,
|
|
194
|
-
error,
|
|
195
|
-
helpText,
|
|
196
|
-
children,
|
|
197
|
-
className,
|
|
198
|
-
...props
|
|
199
|
-
}: FormFieldProps) => import("react").JSX.Element;
|
|
120
|
+
declare const FormField: ({ label, error, helpText, children, className, ...props }: FormFieldProps) => import("react").JSX.Element;
|
|
200
121
|
interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
201
122
|
invalid?: boolean;
|
|
202
123
|
}
|
|
@@ -243,22 +164,7 @@ interface FileDropzoneProps {
|
|
|
243
164
|
onFileSelect: (file: File) => void;
|
|
244
165
|
onClear?: () => void;
|
|
245
166
|
}
|
|
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;
|
|
167
|
+
declare function FileDropzone({ accept, value, image, disabled, readOnly, invalid, uploading, error, labels, inputId, inputLabel, className, onFileSelect, onClear }: FileDropzoneProps): import("react").JSX.Element;
|
|
262
168
|
//#endregion
|
|
263
169
|
//#region packages/ui/AppDropdown.d.ts
|
|
264
170
|
interface AppDropdownOption {
|
|
@@ -289,25 +195,7 @@ interface AppDropdownProps {
|
|
|
289
195
|
menuFooter?: ReactNode;
|
|
290
196
|
onOpenChange?: (open: boolean) => void;
|
|
291
197
|
}
|
|
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;
|
|
198
|
+
declare function AppDropdown({ id: idProp, label, icon, value, options, onChange, disabled, placeholder, variant, className, showFieldLabel, menuMinWidth, error, helpText, menuHeader, menuFooter, onOpenChange }: AppDropdownProps): import("react").JSX.Element;
|
|
311
199
|
//#endregion
|
|
312
200
|
//#region packages/ui/SearchableAppDropdown.d.ts
|
|
313
201
|
interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
@@ -322,21 +210,7 @@ interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
|
322
210
|
loadingLabel?: string;
|
|
323
211
|
selectedOption?: AppDropdownOption | null;
|
|
324
212
|
}
|
|
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;
|
|
213
|
+
declare function SearchableAppDropdown({ options, searchable, searchPlaceholder, onSearch, minSearchLength, emptySearchLabel, loadingLabel, selectedOption, value, onChange, placeholder, disabled, ...rest }: SearchableAppDropdownProps): import("react").JSX.Element;
|
|
340
214
|
//#endregion
|
|
341
215
|
//#region packages/ui/theme/ThemeProvider.d.ts
|
|
342
216
|
type Theme = 'light' | 'dark';
|
|
@@ -355,12 +229,7 @@ interface ThemeProviderProps {
|
|
|
355
229
|
basePath?: string;
|
|
356
230
|
children: React.ReactNode;
|
|
357
231
|
}
|
|
358
|
-
declare const ThemeProvider: ({
|
|
359
|
-
storageKey,
|
|
360
|
-
themePrefix,
|
|
361
|
-
basePath,
|
|
362
|
-
children
|
|
363
|
-
}: ThemeProviderProps) => React.JSX.Element;
|
|
232
|
+
declare const ThemeProvider: ({ storageKey, themePrefix, basePath, children }: ThemeProviderProps) => React.JSX.Element;
|
|
364
233
|
//#endregion
|
|
365
234
|
//#region packages/ui/theme/ThemeSwitcher.d.ts
|
|
366
235
|
declare const labelByMode: {
|
|
@@ -371,9 +240,7 @@ declare const labelByMode: {
|
|
|
371
240
|
interface ThemeSwitcherProps {
|
|
372
241
|
labelByMode?: Partial<Record<keyof typeof labelByMode, string>>;
|
|
373
242
|
}
|
|
374
|
-
declare const ThemeSwitcher: ({
|
|
375
|
-
labelByMode: overrides
|
|
376
|
-
}?: ThemeSwitcherProps) => React.JSX.Element;
|
|
243
|
+
declare const ThemeSwitcher: ({ labelByMode: overrides }?: ThemeSwitcherProps) => React.JSX.Element;
|
|
377
244
|
//#endregion
|
|
378
245
|
//#region packages/ui/theme/DensityProvider.d.ts
|
|
379
246
|
type Density = 'normal' | 'compact';
|
|
@@ -383,9 +250,7 @@ interface DensityContextValue {
|
|
|
383
250
|
}
|
|
384
251
|
declare const DensityContext: React.Context<DensityContextValue | null>;
|
|
385
252
|
declare function useDensity(): DensityContextValue;
|
|
386
|
-
declare const DensityProvider: ({
|
|
387
|
-
children
|
|
388
|
-
}: {
|
|
253
|
+
declare const DensityProvider: ({ children }: {
|
|
389
254
|
children: React.ReactNode;
|
|
390
255
|
}) => React.JSX.Element;
|
|
391
256
|
//#endregion
|
|
@@ -405,9 +270,7 @@ declare function useAccentColor(): {
|
|
|
405
270
|
interface SettingsPanelProps {
|
|
406
271
|
onClose?: () => void;
|
|
407
272
|
}
|
|
408
|
-
declare const SettingsPanel: ({
|
|
409
|
-
onClose: _onClose
|
|
410
|
-
}: SettingsPanelProps) => React.JSX.Element;
|
|
273
|
+
declare const SettingsPanel: ({ onClose: _onClose }: SettingsPanelProps) => React.JSX.Element;
|
|
411
274
|
//#endregion
|
|
412
275
|
//#region packages/ui/FeatureGate.d.ts
|
|
413
276
|
interface FeatureGateProps {
|
|
@@ -420,16 +283,7 @@ interface FeatureGateProps {
|
|
|
420
283
|
upgradeUrl?: string;
|
|
421
284
|
lockTooltip?: string;
|
|
422
285
|
}
|
|
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;
|
|
286
|
+
declare function FeatureGate({ featureKey, children, enabled, behavior, planBadge, upgradeMessage, upgradeUrl, lockTooltip }: FeatureGateProps): React.JSX.Element;
|
|
433
287
|
//#endregion
|
|
434
288
|
//#region packages/ui/Badge.d.ts
|
|
435
289
|
type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
@@ -448,15 +302,7 @@ interface BadgeProps {
|
|
|
448
302
|
children?: ReactNode;
|
|
449
303
|
className?: string;
|
|
450
304
|
}
|
|
451
|
-
declare const Badge: ({
|
|
452
|
-
variant,
|
|
453
|
-
size,
|
|
454
|
-
outlined,
|
|
455
|
-
pill,
|
|
456
|
-
dot,
|
|
457
|
-
children,
|
|
458
|
-
className
|
|
459
|
-
}: BadgeProps) => import("react").JSX.Element;
|
|
305
|
+
declare const Badge: ({ variant, size, outlined, pill, dot, children, className }: BadgeProps) => import("react").JSX.Element;
|
|
460
306
|
//#endregion
|
|
461
307
|
//#region packages/ui/Skeleton.d.ts
|
|
462
308
|
interface SkeletonProps {
|
|
@@ -470,13 +316,7 @@ interface SkeletonProps {
|
|
|
470
316
|
lines?: number;
|
|
471
317
|
className?: string;
|
|
472
318
|
}
|
|
473
|
-
declare const Skeleton: ({
|
|
474
|
-
variant,
|
|
475
|
-
width,
|
|
476
|
-
height,
|
|
477
|
-
lines,
|
|
478
|
-
className
|
|
479
|
-
}: SkeletonProps) => import("react").JSX.Element;
|
|
319
|
+
declare const Skeleton: ({ variant, width, height, lines, className }: SkeletonProps) => import("react").JSX.Element;
|
|
480
320
|
//#endregion
|
|
481
321
|
//#region packages/ui/EmptyState.d.ts
|
|
482
322
|
type EmptyStateVariant = 'default' | 'danger' | 'warning' | 'success';
|
|
@@ -498,16 +338,7 @@ interface EmptyStateProps {
|
|
|
498
338
|
fill?: boolean;
|
|
499
339
|
className?: string;
|
|
500
340
|
}
|
|
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;
|
|
341
|
+
declare const EmptyState: ({ icon, variant, title, description, action, size, fill, className }: EmptyStateProps) => import("react").JSX.Element;
|
|
511
342
|
//#endregion
|
|
512
343
|
//#region packages/ui/Chip.d.ts
|
|
513
344
|
interface ChipProps {
|
|
@@ -530,16 +361,7 @@ interface ChipProps {
|
|
|
530
361
|
* Pill-shaped filter/tag chip. Stateless — caller controls `active`.
|
|
531
362
|
* Use for category filters, tag lists, and multi-select inputs.
|
|
532
363
|
*/
|
|
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;
|
|
364
|
+
declare const Chip: ({ label, active, count, icon, size, disabled, onClick, className }: ChipProps) => React.JSX.Element;
|
|
543
365
|
//#endregion
|
|
544
366
|
//#region packages/ui/Toggle.d.ts
|
|
545
367
|
interface ToggleProps {
|
|
@@ -562,15 +384,7 @@ interface ToggleProps {
|
|
|
562
384
|
* With `label`: wraps in `.nb-toggle-row` for a label ↔ toggle layout.
|
|
563
385
|
* Without `label`: renders bare `.nb-toggle`.
|
|
564
386
|
*/
|
|
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;
|
|
387
|
+
declare const Toggle: ({ checked, onChange, label, size, disabled, "aria-label": ariaLabel, className }: ToggleProps) => React.JSX.Element;
|
|
574
388
|
//#endregion
|
|
575
389
|
//#region packages/ui/ContextMenu.d.ts
|
|
576
390
|
interface ContextMenuItem {
|
|
@@ -608,14 +422,7 @@ interface ContextMenuProps {
|
|
|
608
422
|
* - Click-outside + Escape to close
|
|
609
423
|
* - Portalled dropdown (avoids clip inside scrollable tables)
|
|
610
424
|
*/
|
|
611
|
-
declare const ContextMenu: ({
|
|
612
|
-
items,
|
|
613
|
-
visible,
|
|
614
|
-
trigger,
|
|
615
|
-
triggerLabel,
|
|
616
|
-
align,
|
|
617
|
-
className
|
|
618
|
-
}: ContextMenuProps) => React.JSX.Element | null;
|
|
425
|
+
declare const ContextMenu: ({ items, visible, trigger, triggerLabel, align, className }: ContextMenuProps) => React.JSX.Element | null;
|
|
619
426
|
//#endregion
|
|
620
427
|
//#region packages/ui/StatCard.d.ts
|
|
621
428
|
interface StatCardProps {
|
|
@@ -636,15 +443,7 @@ interface StatCardProps {
|
|
|
636
443
|
* Replaces the legacy `shared/ui/card-analytics/CardAnalytics` component.
|
|
637
444
|
* Uses `ContextMenu` from `@nubitio/ui` for the overflow menu.
|
|
638
445
|
*/
|
|
639
|
-
declare const StatCard: ({
|
|
640
|
-
title,
|
|
641
|
-
headerExtra,
|
|
642
|
-
menuVisible,
|
|
643
|
-
menuItems,
|
|
644
|
-
isLoading,
|
|
645
|
-
className,
|
|
646
|
-
children
|
|
647
|
-
}: StatCardProps) => React.JSX.Element;
|
|
446
|
+
declare const StatCard: ({ title, headerExtra, menuVisible, menuItems, isLoading, className, children }: StatCardProps) => React.JSX.Element;
|
|
648
447
|
//#endregion
|
|
649
448
|
//#region packages/ui/KpiMetricRow.d.ts
|
|
650
449
|
type KpiMetricTone = 'default' | 'success' | 'warning' | 'danger';
|
|
@@ -665,14 +464,7 @@ interface KpiMetricRowProps {
|
|
|
665
464
|
testId?: string;
|
|
666
465
|
loading?: boolean;
|
|
667
466
|
}
|
|
668
|
-
declare function KpiMetricRow({
|
|
669
|
-
items,
|
|
670
|
-
className,
|
|
671
|
-
layout,
|
|
672
|
-
density,
|
|
673
|
-
testId,
|
|
674
|
-
loading
|
|
675
|
-
}: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
467
|
+
declare function KpiMetricRow({ items, className, layout, density, testId, loading }: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
676
468
|
//#endregion
|
|
677
469
|
//#region packages/ui/SegmentedControl.d.ts
|
|
678
470
|
interface SegmentedControlOption<T extends string = string> {
|
|
@@ -688,14 +480,7 @@ interface SegmentedControlProps<T extends string = string> {
|
|
|
688
480
|
className?: string;
|
|
689
481
|
size?: 'sm' | 'md';
|
|
690
482
|
}
|
|
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;
|
|
483
|
+
declare function SegmentedControl<T extends string = string>({ options, value, onChange, ariaLabel, className, size }: SegmentedControlProps<T>): import("react").JSX.Element | null;
|
|
699
484
|
//#endregion
|
|
700
485
|
//#region packages/ui/FilterPanel.d.ts
|
|
701
486
|
interface FilterPanelChipOption {
|
|
@@ -730,14 +515,7 @@ interface FilterPanelProps<T extends string = string> {
|
|
|
730
515
|
className?: string;
|
|
731
516
|
testId?: string;
|
|
732
517
|
}
|
|
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;
|
|
518
|
+
declare function FilterPanel<T extends string = string>({ category, status, layout, density, className, testId }: FilterPanelProps<T>): import("react").JSX.Element;
|
|
741
519
|
//#endregion
|
|
742
520
|
//#region packages/ui/ScopeTabs.d.ts
|
|
743
521
|
interface ScopeTabOption {
|
|
@@ -759,16 +537,7 @@ interface ScopeTabsProps {
|
|
|
759
537
|
* Pill tabs for scoping a list view (warehouse, branch, period, etc.).
|
|
760
538
|
* Hides itself when there is at most one scope option.
|
|
761
539
|
*/
|
|
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;
|
|
540
|
+
declare function ScopeTabs({ options, selectedKey, onChange, allLabel, ariaLabel, density, className, testId }: ScopeTabsProps): import("react").JSX.Element | null;
|
|
772
541
|
//#endregion
|
|
773
542
|
//#region packages/ui/OperationCardGrid.d.ts
|
|
774
543
|
type OperationCardAccent = 'default' | 'in' | 'out' | 'count' | 'adjust' | 'transfer' | 'info' | 'warning' | 'danger';
|
|
@@ -788,13 +557,7 @@ interface OperationCardGridProps {
|
|
|
788
557
|
className?: string;
|
|
789
558
|
testId?: string;
|
|
790
559
|
}
|
|
791
|
-
declare function OperationCardGrid({
|
|
792
|
-
title,
|
|
793
|
-
description,
|
|
794
|
-
operations,
|
|
795
|
-
className,
|
|
796
|
-
testId
|
|
797
|
-
}: OperationCardGridProps): import("react").JSX.Element;
|
|
560
|
+
declare function OperationCardGrid({ title, description, operations, className, testId }: OperationCardGridProps): import("react").JSX.Element;
|
|
798
561
|
//#endregion
|
|
799
562
|
//#region packages/ui/HubPanel.d.ts
|
|
800
563
|
type HubPanelVariant = 'card' | 'flush';
|
|
@@ -808,12 +571,7 @@ interface HubPanelProps {
|
|
|
808
571
|
/**
|
|
809
572
|
* Card shell for feature-hub chrome above a CRUD grid (KPIs, scope tabs, filters).
|
|
810
573
|
*/
|
|
811
|
-
declare function HubPanel({
|
|
812
|
-
children,
|
|
813
|
-
variant,
|
|
814
|
-
className,
|
|
815
|
-
testId
|
|
816
|
-
}: HubPanelProps): import("react").JSX.Element;
|
|
574
|
+
declare function HubPanel({ children, variant, className, testId }: HubPanelProps): import("react").JSX.Element;
|
|
817
575
|
//#endregion
|
|
818
576
|
//#region packages/ui/CollapsibleSection.d.ts
|
|
819
577
|
interface CollapsibleSectionProps {
|
|
@@ -846,17 +604,7 @@ interface CollapsibleSectionProps {
|
|
|
846
604
|
* heavy children before they are needed. Pass `keepMounted` if you need
|
|
847
605
|
* the body always in the DOM.
|
|
848
606
|
*/
|
|
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;
|
|
607
|
+
declare const CollapsibleSection: ({ label, icon, open, onToggle, children, trailing, className, bodyClassName, "data-testid": testId }: CollapsibleSectionProps) => React.JSX.Element;
|
|
860
608
|
//#endregion
|
|
861
609
|
//#region packages/ui/DatePicker.d.ts
|
|
862
610
|
interface DatePickerProps {
|
|
@@ -898,22 +646,7 @@ interface DateRangePickerProps {
|
|
|
898
646
|
onChange?: (startValue: string, endValue: string) => void;
|
|
899
647
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
900
648
|
}
|
|
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;
|
|
649
|
+
declare function DateRangePicker({ startValue, endValue, placeholder, disabled, readOnly, required, invalid, locale, min, max, className, ariaLabel, onChange, onBlur }: DateRangePickerProps): React.JSX.Element;
|
|
917
650
|
//#endregion
|
|
918
651
|
//#region packages/ui/Popover.d.ts
|
|
919
652
|
type PopoverAlign = 'start' | 'end';
|
|
@@ -943,13 +676,7 @@ interface PopoverProps {
|
|
|
943
676
|
ariaLabel?: string;
|
|
944
677
|
className?: string;
|
|
945
678
|
}
|
|
946
|
-
declare const Popover: ({
|
|
947
|
-
trigger,
|
|
948
|
-
panel,
|
|
949
|
-
align,
|
|
950
|
-
ariaLabel,
|
|
951
|
-
className
|
|
952
|
-
}: PopoverProps) => React.JSX.Element;
|
|
679
|
+
declare const Popover: ({ trigger, panel, align, ariaLabel, className }: PopoverProps) => React.JSX.Element;
|
|
953
680
|
//#endregion
|
|
954
681
|
//#region packages/ui/useFloatingPanel.d.ts
|
|
955
682
|
interface UseFloatingPanelOptions<C extends HTMLElement = HTMLDivElement> {
|
|
@@ -1052,25 +779,8 @@ interface TimelineItemProps {
|
|
|
1052
779
|
children?: ReactNode;
|
|
1053
780
|
className?: string;
|
|
1054
781
|
}
|
|
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;
|
|
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;
|
|
1074
784
|
//#endregion
|
|
1075
785
|
//#region packages/ui/UiStrings.d.ts
|
|
1076
786
|
/**
|
|
@@ -1130,6 +840,40 @@ interface UiStrings {
|
|
|
1130
840
|
pages: string;
|
|
1131
841
|
previousPage: string;
|
|
1132
842
|
nextPage: string;
|
|
843
|
+
settingsMenu: string;
|
|
844
|
+
accentColor: string;
|
|
845
|
+
accentColors: string;
|
|
846
|
+
density: string;
|
|
847
|
+
interfaceDensity: string;
|
|
848
|
+
densityNormal: string;
|
|
849
|
+
densityCompact: string;
|
|
850
|
+
mainNavigation: string;
|
|
851
|
+
mainMenu: string;
|
|
852
|
+
closeMenu: string;
|
|
853
|
+
toggleMenu: string;
|
|
854
|
+
mainToolbar: string;
|
|
855
|
+
mainContent: string;
|
|
856
|
+
userMenu: string;
|
|
857
|
+
loadingSession: string;
|
|
858
|
+
textFormatting: string;
|
|
859
|
+
bold: string;
|
|
860
|
+
italic: string;
|
|
861
|
+
strikethrough: string;
|
|
862
|
+
heading2: string;
|
|
863
|
+
heading3: string;
|
|
864
|
+
bulletList: string;
|
|
865
|
+
orderedList: string;
|
|
866
|
+
blockquote: string;
|
|
867
|
+
addLink: string;
|
|
868
|
+
removeLink: string;
|
|
869
|
+
undo: string;
|
|
870
|
+
redo: string;
|
|
871
|
+
/** FeatureGate: tooltip on a feature the current plan does not include. */
|
|
872
|
+
featureUnavailable: string;
|
|
873
|
+
/** FeatureGate upgrade prompt; `{plan}` is replaced with the plan badge. */
|
|
874
|
+
featureRequiresPlan: string;
|
|
875
|
+
/** FeatureGate upgrade prompt: link to the plans page. */
|
|
876
|
+
viewPlans: string;
|
|
1133
877
|
}
|
|
1134
878
|
declare const EN_UI_STRINGS: UiStrings;
|
|
1135
879
|
declare const ES_UI_STRINGS: UiStrings;
|
|
@@ -1158,15 +902,7 @@ interface PageProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1158
902
|
narrow?: boolean;
|
|
1159
903
|
gap?: SpaceScale;
|
|
1160
904
|
}
|
|
1161
|
-
declare function Page({
|
|
1162
|
-
children,
|
|
1163
|
-
fill,
|
|
1164
|
-
wide,
|
|
1165
|
-
narrow,
|
|
1166
|
-
gap,
|
|
1167
|
-
className,
|
|
1168
|
-
...props
|
|
1169
|
-
}: PageProps): import("react").JSX.Element;
|
|
905
|
+
declare function Page({ children, fill, wide, narrow, gap, className, ...props }: PageProps): import("react").JSX.Element;
|
|
1170
906
|
//#endregion
|
|
1171
907
|
//#region packages/ui/PageHeader.d.ts
|
|
1172
908
|
interface PageHeaderBreadcrumb {
|
|
@@ -1187,15 +923,7 @@ interface PageHeaderProps {
|
|
|
1187
923
|
actions?: ReactNode;
|
|
1188
924
|
className?: string;
|
|
1189
925
|
}
|
|
1190
|
-
declare function PageHeader({
|
|
1191
|
-
title,
|
|
1192
|
-
subtitle,
|
|
1193
|
-
breadcrumb,
|
|
1194
|
-
breadcrumbSlot,
|
|
1195
|
-
badge,
|
|
1196
|
-
actions,
|
|
1197
|
-
className
|
|
1198
|
-
}: PageHeaderProps): import("react").JSX.Element;
|
|
926
|
+
declare function PageHeader({ title, subtitle, breadcrumb, breadcrumbSlot, badge, actions, className }: PageHeaderProps): import("react").JSX.Element;
|
|
1199
927
|
//#endregion
|
|
1200
928
|
//#region packages/ui/Stack.d.ts
|
|
1201
929
|
interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1205,15 +933,7 @@ interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1205
933
|
justify?: FlexJustify;
|
|
1206
934
|
fill?: boolean;
|
|
1207
935
|
}
|
|
1208
|
-
declare function Stack({
|
|
1209
|
-
children,
|
|
1210
|
-
gap,
|
|
1211
|
-
align,
|
|
1212
|
-
justify,
|
|
1213
|
-
fill,
|
|
1214
|
-
className,
|
|
1215
|
-
...props
|
|
1216
|
-
}: StackProps): import("react").JSX.Element;
|
|
936
|
+
declare function Stack({ children, gap, align, justify, fill, className, ...props }: StackProps): import("react").JSX.Element;
|
|
1217
937
|
//#endregion
|
|
1218
938
|
//#region packages/ui/Row.d.ts
|
|
1219
939
|
interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1224,16 +944,7 @@ interface RowProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1224
944
|
wrap?: boolean;
|
|
1225
945
|
fill?: boolean;
|
|
1226
946
|
}
|
|
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;
|
|
947
|
+
declare function Row({ children, gap, align, justify, wrap, fill, className, ...props }: RowProps): import("react").JSX.Element;
|
|
1237
948
|
//#endregion
|
|
1238
949
|
//#region packages/ui/Cluster.d.ts
|
|
1239
950
|
interface ClusterProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1241,12 +952,7 @@ interface ClusterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1241
952
|
gap?: SpaceScale;
|
|
1242
953
|
}
|
|
1243
954
|
/** 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;
|
|
955
|
+
declare function Cluster({ children, gap, className, ...props }: ClusterProps): import("react").JSX.Element;
|
|
1250
956
|
//#endregion
|
|
1251
957
|
//#region packages/ui/Grid.d.ts
|
|
1252
958
|
type GridCols = 12 | 'auto' | 1 | 2 | 3 | 4;
|
|
@@ -1259,16 +965,7 @@ interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1259
965
|
minColWidth?: string;
|
|
1260
966
|
fill?: boolean;
|
|
1261
967
|
}
|
|
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;
|
|
968
|
+
declare function Grid({ children, cols, gap, minColWidth, fill, className, style, ...props }: GridProps): import("react").JSX.Element;
|
|
1272
969
|
//#endregion
|
|
1273
970
|
//#region packages/ui/Col.d.ts
|
|
1274
971
|
interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1281,16 +978,7 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1281
978
|
/** Span all columns in the current row. */
|
|
1282
979
|
fullWidth?: boolean;
|
|
1283
980
|
}
|
|
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;
|
|
981
|
+
declare function Col({ children, span, spanSm, spanMd, spanLg, fullWidth, className, ...props }: ColProps): import("react").JSX.Element;
|
|
1294
982
|
//#endregion
|
|
1295
983
|
//#region packages/ui/Section.d.ts
|
|
1296
984
|
interface SectionProps {
|
|
@@ -1298,11 +986,7 @@ interface SectionProps {
|
|
|
1298
986
|
children: ReactNode;
|
|
1299
987
|
className?: string;
|
|
1300
988
|
}
|
|
1301
|
-
declare function Section({
|
|
1302
|
-
title,
|
|
1303
|
-
children,
|
|
1304
|
-
className
|
|
1305
|
-
}: SectionProps): import("react").JSX.Element;
|
|
989
|
+
declare function Section({ title, children, className }: SectionProps): import("react").JSX.Element;
|
|
1306
990
|
//#endregion
|
|
1307
991
|
//#region packages/ui/FormLayout.d.ts
|
|
1308
992
|
type FormLayoutVariant = 'stack' | 'grid' | 'inline' | 'filter';
|
|
@@ -1312,24 +996,14 @@ interface FormLayoutProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
1312
996
|
/** Minimum column width for grid and filter variants. */
|
|
1313
997
|
minColWidth?: string;
|
|
1314
998
|
}
|
|
1315
|
-
declare function FormLayout({
|
|
1316
|
-
children,
|
|
1317
|
-
variant,
|
|
1318
|
-
minColWidth,
|
|
1319
|
-
className,
|
|
1320
|
-
style,
|
|
1321
|
-
...props
|
|
1322
|
-
}: FormLayoutProps): import("react").JSX.Element;
|
|
999
|
+
declare function FormLayout({ children, variant, minColWidth, className, style, ...props }: FormLayoutProps): import("react").JSX.Element;
|
|
1323
1000
|
//#endregion
|
|
1324
1001
|
//#region packages/ui/FormActions.d.ts
|
|
1325
1002
|
interface FormActionsProps {
|
|
1326
1003
|
children: ReactNode;
|
|
1327
1004
|
className?: string;
|
|
1328
1005
|
}
|
|
1329
|
-
declare function FormActions({
|
|
1330
|
-
children,
|
|
1331
|
-
className
|
|
1332
|
-
}: FormActionsProps): import("react").JSX.Element;
|
|
1006
|
+
declare function FormActions({ children, className }: FormActionsProps): import("react").JSX.Element;
|
|
1333
1007
|
//#endregion
|
|
1334
1008
|
//#region packages/ui/Alert.d.ts
|
|
1335
1009
|
type AlertTone = 'danger' | 'warning' | 'info';
|
|
@@ -1338,11 +1012,7 @@ interface AlertProps {
|
|
|
1338
1012
|
children: ReactNode;
|
|
1339
1013
|
className?: string;
|
|
1340
1014
|
}
|
|
1341
|
-
declare function Alert({
|
|
1342
|
-
tone,
|
|
1343
|
-
children,
|
|
1344
|
-
className
|
|
1345
|
-
}: AlertProps): import("react").JSX.Element;
|
|
1015
|
+
declare function Alert({ tone, children, className }: AlertProps): import("react").JSX.Element;
|
|
1346
1016
|
//#endregion
|
|
1347
1017
|
//#region packages/ui/DescriptionList.d.ts
|
|
1348
1018
|
interface DescriptionListItem {
|
|
@@ -1353,20 +1023,14 @@ interface DescriptionListProps {
|
|
|
1353
1023
|
items: DescriptionListItem[];
|
|
1354
1024
|
className?: string;
|
|
1355
1025
|
}
|
|
1356
|
-
declare function DescriptionList({
|
|
1357
|
-
items,
|
|
1358
|
-
className
|
|
1359
|
-
}: DescriptionListProps): import("react").JSX.Element;
|
|
1026
|
+
declare function DescriptionList({ items, className }: DescriptionListProps): import("react").JSX.Element;
|
|
1360
1027
|
//#endregion
|
|
1361
1028
|
//#region packages/ui/Code.d.ts
|
|
1362
1029
|
interface CodeProps {
|
|
1363
1030
|
children: ReactNode;
|
|
1364
1031
|
className?: string;
|
|
1365
1032
|
}
|
|
1366
|
-
declare function Code({
|
|
1367
|
-
children,
|
|
1368
|
-
className
|
|
1369
|
-
}: CodeProps): import("react").JSX.Element;
|
|
1033
|
+
declare function Code({ children, className }: CodeProps): import("react").JSX.Element;
|
|
1370
1034
|
//#endregion
|
|
1371
1035
|
//#region packages/ui/Text.d.ts
|
|
1372
1036
|
type TextTone = 'default' | 'muted';
|
|
@@ -1375,13 +1039,7 @@ interface TextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
1375
1039
|
tone?: TextTone;
|
|
1376
1040
|
as?: 'span' | 'p';
|
|
1377
1041
|
}
|
|
1378
|
-
declare function Text({
|
|
1379
|
-
children,
|
|
1380
|
-
tone,
|
|
1381
|
-
as: Tag,
|
|
1382
|
-
className,
|
|
1383
|
-
...props
|
|
1384
|
-
}: TextProps): import("react").JSX.Element;
|
|
1042
|
+
declare function Text({ children, tone, as: Tag, className, ...props }: TextProps): import("react").JSX.Element;
|
|
1385
1043
|
//#endregion
|
|
1386
1044
|
//#region packages/ui/Pagination.d.ts
|
|
1387
1045
|
interface PaginationProps {
|
|
@@ -1393,14 +1051,7 @@ interface PaginationProps {
|
|
|
1393
1051
|
maxVisible?: number;
|
|
1394
1052
|
className?: string;
|
|
1395
1053
|
}
|
|
1396
|
-
declare function Pagination({
|
|
1397
|
-
page,
|
|
1398
|
-
totalPages,
|
|
1399
|
-
onPageChange,
|
|
1400
|
-
ariaLabel,
|
|
1401
|
-
maxVisible,
|
|
1402
|
-
className
|
|
1403
|
-
}: PaginationProps): import("react").JSX.Element | null;
|
|
1054
|
+
declare function Pagination({ page, totalPages, onPageChange, ariaLabel, maxVisible, className }: PaginationProps): import("react").JSX.Element | null;
|
|
1404
1055
|
//#endregion
|
|
1405
1056
|
//#region packages/ui/DataTable.d.ts
|
|
1406
1057
|
type DataTableColumnAlign = 'left' | 'right' | 'center';
|
|
@@ -1430,21 +1081,7 @@ interface DataTableProps<T> {
|
|
|
1430
1081
|
renderActions?: (row: T) => ReactNode;
|
|
1431
1082
|
pagination?: PaginationProps;
|
|
1432
1083
|
}
|
|
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;
|
|
1084
|
+
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
1085
|
//#endregion
|
|
1449
1086
|
//#region packages/ui/RowActions.d.ts
|
|
1450
1087
|
interface RowActionsProps {
|
|
@@ -1454,12 +1091,7 @@ interface RowActionsProps {
|
|
|
1454
1091
|
className?: string;
|
|
1455
1092
|
}
|
|
1456
1093
|
/** 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;
|
|
1094
|
+
declare function RowActions({ items, triggerLabel, align, className }: RowActionsProps): import("react").JSX.Element | null;
|
|
1463
1095
|
//#endregion
|
|
1464
1096
|
//#region packages/ui/useConfirm.d.ts
|
|
1465
1097
|
type ConfirmRequest = {
|