@nubitio/ui 0.5.29 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +456 -48
- package/dist/index.d.cts +191 -3
- package/dist/index.d.mts +191 -3
- package/dist/index.mjs +451 -49
- package/dist/style.css +506 -6
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -279,6 +279,9 @@ interface AppDropdownProps {
|
|
|
279
279
|
menuMinWidth?: number;
|
|
280
280
|
error?: ReactNode;
|
|
281
281
|
helpText?: ReactNode;
|
|
282
|
+
menuHeader?: ReactNode;
|
|
283
|
+
menuFooter?: ReactNode;
|
|
284
|
+
onOpenChange?: (open: boolean) => void;
|
|
282
285
|
}
|
|
283
286
|
declare function AppDropdown({
|
|
284
287
|
id: idProp,
|
|
@@ -294,9 +297,41 @@ declare function AppDropdown({
|
|
|
294
297
|
showFieldLabel,
|
|
295
298
|
menuMinWidth,
|
|
296
299
|
error,
|
|
297
|
-
helpText
|
|
300
|
+
helpText,
|
|
301
|
+
menuHeader,
|
|
302
|
+
menuFooter,
|
|
303
|
+
onOpenChange
|
|
298
304
|
}: AppDropdownProps): import("react").JSX.Element;
|
|
299
305
|
//#endregion
|
|
306
|
+
//#region packages/ui/SearchableAppDropdown.d.ts
|
|
307
|
+
interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
308
|
+
options?: AppDropdownOption[];
|
|
309
|
+
/** Client-side filter when `onSearch` is not provided. */
|
|
310
|
+
searchable?: boolean;
|
|
311
|
+
searchPlaceholder?: string;
|
|
312
|
+
/** Async loader for large catalogs. When set, options are fetched on demand. */
|
|
313
|
+
onSearch?: (query: string) => Promise<AppDropdownOption[]>;
|
|
314
|
+
minSearchLength?: number;
|
|
315
|
+
emptySearchLabel?: string;
|
|
316
|
+
loadingLabel?: string;
|
|
317
|
+
selectedOption?: AppDropdownOption | null;
|
|
318
|
+
}
|
|
319
|
+
declare function SearchableAppDropdown({
|
|
320
|
+
options,
|
|
321
|
+
searchable,
|
|
322
|
+
searchPlaceholder,
|
|
323
|
+
onSearch,
|
|
324
|
+
minSearchLength,
|
|
325
|
+
emptySearchLabel,
|
|
326
|
+
loadingLabel,
|
|
327
|
+
selectedOption,
|
|
328
|
+
value,
|
|
329
|
+
onChange,
|
|
330
|
+
placeholder,
|
|
331
|
+
disabled,
|
|
332
|
+
...rest
|
|
333
|
+
}: SearchableAppDropdownProps): import("react").JSX.Element;
|
|
334
|
+
//#endregion
|
|
300
335
|
//#region packages/ui/theme/ThemeProvider.d.ts
|
|
301
336
|
type Theme = 'light' | 'dark';
|
|
302
337
|
type ThemeMode = 'light' | 'dark' | 'auto';
|
|
@@ -606,20 +641,173 @@ declare const StatCard: ({
|
|
|
606
641
|
//#endregion
|
|
607
642
|
//#region packages/ui/KpiMetricRow.d.ts
|
|
608
643
|
type KpiMetricTone = 'default' | 'success' | 'warning' | 'danger';
|
|
644
|
+
type KpiMetricLayout = 'cards' | 'strip';
|
|
645
|
+
type KpiMetricDensity = 'default' | 'compact';
|
|
609
646
|
interface KpiMetricItem {
|
|
610
647
|
label: string;
|
|
611
648
|
value: ReactNode;
|
|
612
649
|
tone?: KpiMetricTone;
|
|
650
|
+
hint?: ReactNode;
|
|
651
|
+
icon?: string;
|
|
613
652
|
}
|
|
614
653
|
interface KpiMetricRowProps {
|
|
615
654
|
items: KpiMetricItem[];
|
|
616
655
|
className?: string;
|
|
656
|
+
layout?: KpiMetricLayout;
|
|
657
|
+
density?: KpiMetricDensity;
|
|
658
|
+
testId?: string;
|
|
659
|
+
loading?: boolean;
|
|
617
660
|
}
|
|
618
661
|
declare function KpiMetricRow({
|
|
619
662
|
items,
|
|
620
|
-
className
|
|
663
|
+
className,
|
|
664
|
+
layout,
|
|
665
|
+
density,
|
|
666
|
+
testId,
|
|
667
|
+
loading
|
|
621
668
|
}: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
622
669
|
//#endregion
|
|
670
|
+
//#region packages/ui/SegmentedControl.d.ts
|
|
671
|
+
interface SegmentedControlOption<T extends string = string> {
|
|
672
|
+
value: T;
|
|
673
|
+
label: ReactNode;
|
|
674
|
+
disabled?: boolean;
|
|
675
|
+
}
|
|
676
|
+
interface SegmentedControlProps<T extends string = string> {
|
|
677
|
+
options: SegmentedControlOption<T>[];
|
|
678
|
+
value: T;
|
|
679
|
+
onChange: (value: T) => void;
|
|
680
|
+
ariaLabel: string;
|
|
681
|
+
className?: string;
|
|
682
|
+
size?: 'sm' | 'md';
|
|
683
|
+
}
|
|
684
|
+
declare function SegmentedControl<T extends string = string>({
|
|
685
|
+
options,
|
|
686
|
+
value,
|
|
687
|
+
onChange,
|
|
688
|
+
ariaLabel,
|
|
689
|
+
className,
|
|
690
|
+
size
|
|
691
|
+
}: SegmentedControlProps<T>): import("react").JSX.Element | null;
|
|
692
|
+
//#endregion
|
|
693
|
+
//#region packages/ui/FilterPanel.d.ts
|
|
694
|
+
interface FilterPanelChipOption {
|
|
695
|
+
key: string;
|
|
696
|
+
label: ReactNode;
|
|
697
|
+
}
|
|
698
|
+
interface FilterPanelCategorySection {
|
|
699
|
+
title: string;
|
|
700
|
+
options: FilterPanelChipOption[];
|
|
701
|
+
selectedKey: string | null;
|
|
702
|
+
onSelect: (key: string | null) => void;
|
|
703
|
+
allLabel?: string;
|
|
704
|
+
searchThreshold?: number;
|
|
705
|
+
searchPlaceholder?: string;
|
|
706
|
+
emptyMessage?: string;
|
|
707
|
+
ariaLabel: string;
|
|
708
|
+
}
|
|
709
|
+
interface FilterPanelStatusSection<T extends string = string> {
|
|
710
|
+
title: string;
|
|
711
|
+
options: SegmentedControlOption<T>[];
|
|
712
|
+
value: T;
|
|
713
|
+
onChange: (value: T) => void;
|
|
714
|
+
ariaLabel: string;
|
|
715
|
+
}
|
|
716
|
+
type FilterPanelLayout = 'stacked' | 'toolbar';
|
|
717
|
+
type FilterPanelDensity = 'default' | 'compact';
|
|
718
|
+
interface FilterPanelProps<T extends string = string> {
|
|
719
|
+
category: FilterPanelCategorySection;
|
|
720
|
+
status?: FilterPanelStatusSection<T>;
|
|
721
|
+
layout?: FilterPanelLayout;
|
|
722
|
+
density?: FilterPanelDensity;
|
|
723
|
+
className?: string;
|
|
724
|
+
testId?: string;
|
|
725
|
+
}
|
|
726
|
+
declare function FilterPanel<T extends string = string>({
|
|
727
|
+
category,
|
|
728
|
+
status,
|
|
729
|
+
layout,
|
|
730
|
+
density,
|
|
731
|
+
className,
|
|
732
|
+
testId
|
|
733
|
+
}: FilterPanelProps<T>): import("react").JSX.Element;
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region packages/ui/ScopeTabs.d.ts
|
|
736
|
+
interface ScopeTabOption {
|
|
737
|
+
key: string;
|
|
738
|
+
label: ReactNode;
|
|
739
|
+
}
|
|
740
|
+
type ScopeTabsDensity = 'default' | 'compact';
|
|
741
|
+
interface ScopeTabsProps {
|
|
742
|
+
options: ScopeTabOption[];
|
|
743
|
+
selectedKey: string | null;
|
|
744
|
+
onChange: (key: string | null) => void;
|
|
745
|
+
allLabel?: string;
|
|
746
|
+
ariaLabel: string;
|
|
747
|
+
density?: ScopeTabsDensity;
|
|
748
|
+
className?: string;
|
|
749
|
+
testId?: string;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Pill tabs for scoping a list view (warehouse, branch, period, etc.).
|
|
753
|
+
* Hides itself when there is at most one scope option.
|
|
754
|
+
*/
|
|
755
|
+
declare function ScopeTabs({
|
|
756
|
+
options,
|
|
757
|
+
selectedKey,
|
|
758
|
+
onChange,
|
|
759
|
+
allLabel,
|
|
760
|
+
ariaLabel,
|
|
761
|
+
density,
|
|
762
|
+
className,
|
|
763
|
+
testId
|
|
764
|
+
}: ScopeTabsProps): import("react").JSX.Element | null;
|
|
765
|
+
//#endregion
|
|
766
|
+
//#region packages/ui/OperationCardGrid.d.ts
|
|
767
|
+
type OperationCardAccent = 'default' | 'in' | 'out' | 'count' | 'adjust' | 'transfer' | 'info' | 'warning' | 'danger';
|
|
768
|
+
interface OperationCardItem {
|
|
769
|
+
key: string;
|
|
770
|
+
title: string;
|
|
771
|
+
description?: string;
|
|
772
|
+
icon: string;
|
|
773
|
+
accent?: OperationCardAccent;
|
|
774
|
+
onClick: () => void;
|
|
775
|
+
testId?: string;
|
|
776
|
+
}
|
|
777
|
+
interface OperationCardGridProps {
|
|
778
|
+
title?: string;
|
|
779
|
+
description?: ReactNode;
|
|
780
|
+
operations: OperationCardItem[];
|
|
781
|
+
className?: string;
|
|
782
|
+
testId?: string;
|
|
783
|
+
}
|
|
784
|
+
declare function OperationCardGrid({
|
|
785
|
+
title,
|
|
786
|
+
description,
|
|
787
|
+
operations,
|
|
788
|
+
className,
|
|
789
|
+
testId
|
|
790
|
+
}: OperationCardGridProps): import("react").JSX.Element;
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region packages/ui/HubPanel.d.ts
|
|
793
|
+
type HubPanelVariant = 'card' | 'flush';
|
|
794
|
+
interface HubPanelProps {
|
|
795
|
+
children: ReactNode;
|
|
796
|
+
/** Flush drops outer chrome — ideal inside SmartCrudPage aboveGrid. */
|
|
797
|
+
variant?: HubPanelVariant;
|
|
798
|
+
className?: string;
|
|
799
|
+
testId?: string;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* Card shell for feature-hub chrome above a CRUD grid (KPIs, scope tabs, filters).
|
|
803
|
+
*/
|
|
804
|
+
declare function HubPanel({
|
|
805
|
+
children,
|
|
806
|
+
variant,
|
|
807
|
+
className,
|
|
808
|
+
testId
|
|
809
|
+
}: HubPanelProps): import("react").JSX.Element;
|
|
810
|
+
//#endregion
|
|
623
811
|
//#region packages/ui/CollapsibleSection.d.ts
|
|
624
812
|
interface CollapsibleSectionProps {
|
|
625
813
|
/** Section heading text. */
|
|
@@ -917,4 +1105,4 @@ interface UiStringsProviderProps {
|
|
|
917
1105
|
declare const UiStringsProvider: React$1.FC<UiStringsProviderProps>;
|
|
918
1106
|
declare const useUiStrings: () => UiStrings;
|
|
919
1107
|
//#endregion
|
|
920
|
-
export { ACCENT_PRESETS, type AccentPreset, 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, Chip, type ChipProps, CollapsibleSection, type CollapsibleSectionProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type Density, DensityContext, type DensityContextValue, DensityProvider, Drawer, type DrawerProps, type DrawerSide, EN_UI_STRINGS, ES_UI_STRINGS, EmptyState, type EmptyStateProps, FeatureGate, type FeatureGateProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, type FileDropzoneValue, FormField, type FormFieldProps, IconButton, type IconButtonProps, type KpiMetricItem, KpiMetricRow, type KpiMetricRowProps, type KpiMetricTone, Popover, type PopoverAlign, type PopoverProps, SelectField, type SelectFieldProps, SettingsPanel, type SettingsPanelProps, Skeleton, type SkeletonProps, StatCard, type StatCardProps, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, type Theme, ThemeContext, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeSwitcher, type ThemeSwitcherProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemStatus, type TimelineItemTone, type TimelineOrientation, type TimelineProps, type TimelineVariant, Toggle, type ToggleProps, type UiStrings, UiStringsProvider, type UiStringsProviderProps, type UseFloatingPanelOptions, type UseFloatingPanelResult, getAvatarHue, getAvatarInitials, useAccentColor, useDensity, useFloatingPanel, useTheme, useUiStrings };
|
|
1108
|
+
export { ACCENT_PRESETS, type AccentPreset, 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, Chip, type ChipProps, CollapsibleSection, type CollapsibleSectionProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type Density, DensityContext, type DensityContextValue, DensityProvider, 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, FormField, type FormFieldProps, HubPanel, type HubPanelProps, type HubPanelVariant, IconButton, type IconButtonProps, type KpiMetricDensity, type KpiMetricItem, type KpiMetricLayout, KpiMetricRow, type KpiMetricRowProps, type KpiMetricTone, type OperationCardAccent, OperationCardGrid, type OperationCardGridProps, type OperationCardItem, Popover, type PopoverAlign, type PopoverProps, type ScopeTabOption, ScopeTabs, type ScopeTabsDensity, type ScopeTabsProps, SearchableAppDropdown, type SearchableAppDropdownProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectField, type SelectFieldProps, SettingsPanel, type SettingsPanelProps, Skeleton, type SkeletonProps, StatCard, type StatCardProps, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, type Theme, ThemeContext, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeSwitcher, type ThemeSwitcherProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemStatus, type TimelineItemTone, type TimelineOrientation, type TimelineProps, type TimelineVariant, Toggle, type ToggleProps, type UiStrings, UiStringsProvider, type UiStringsProviderProps, type UseFloatingPanelOptions, type UseFloatingPanelResult, getAvatarHue, getAvatarInitials, useAccentColor, useDensity, useFloatingPanel, useTheme, useUiStrings };
|
package/dist/index.d.mts
CHANGED
|
@@ -279,6 +279,9 @@ interface AppDropdownProps {
|
|
|
279
279
|
menuMinWidth?: number;
|
|
280
280
|
error?: ReactNode;
|
|
281
281
|
helpText?: ReactNode;
|
|
282
|
+
menuHeader?: ReactNode;
|
|
283
|
+
menuFooter?: ReactNode;
|
|
284
|
+
onOpenChange?: (open: boolean) => void;
|
|
282
285
|
}
|
|
283
286
|
declare function AppDropdown({
|
|
284
287
|
id: idProp,
|
|
@@ -294,9 +297,41 @@ declare function AppDropdown({
|
|
|
294
297
|
showFieldLabel,
|
|
295
298
|
menuMinWidth,
|
|
296
299
|
error,
|
|
297
|
-
helpText
|
|
300
|
+
helpText,
|
|
301
|
+
menuHeader,
|
|
302
|
+
menuFooter,
|
|
303
|
+
onOpenChange
|
|
298
304
|
}: AppDropdownProps): import("react").JSX.Element;
|
|
299
305
|
//#endregion
|
|
306
|
+
//#region packages/ui/SearchableAppDropdown.d.ts
|
|
307
|
+
interface SearchableAppDropdownProps extends Omit<AppDropdownProps, 'options'> {
|
|
308
|
+
options?: AppDropdownOption[];
|
|
309
|
+
/** Client-side filter when `onSearch` is not provided. */
|
|
310
|
+
searchable?: boolean;
|
|
311
|
+
searchPlaceholder?: string;
|
|
312
|
+
/** Async loader for large catalogs. When set, options are fetched on demand. */
|
|
313
|
+
onSearch?: (query: string) => Promise<AppDropdownOption[]>;
|
|
314
|
+
minSearchLength?: number;
|
|
315
|
+
emptySearchLabel?: string;
|
|
316
|
+
loadingLabel?: string;
|
|
317
|
+
selectedOption?: AppDropdownOption | null;
|
|
318
|
+
}
|
|
319
|
+
declare function SearchableAppDropdown({
|
|
320
|
+
options,
|
|
321
|
+
searchable,
|
|
322
|
+
searchPlaceholder,
|
|
323
|
+
onSearch,
|
|
324
|
+
minSearchLength,
|
|
325
|
+
emptySearchLabel,
|
|
326
|
+
loadingLabel,
|
|
327
|
+
selectedOption,
|
|
328
|
+
value,
|
|
329
|
+
onChange,
|
|
330
|
+
placeholder,
|
|
331
|
+
disabled,
|
|
332
|
+
...rest
|
|
333
|
+
}: SearchableAppDropdownProps): import("react").JSX.Element;
|
|
334
|
+
//#endregion
|
|
300
335
|
//#region packages/ui/theme/ThemeProvider.d.ts
|
|
301
336
|
type Theme = 'light' | 'dark';
|
|
302
337
|
type ThemeMode = 'light' | 'dark' | 'auto';
|
|
@@ -606,20 +641,173 @@ declare const StatCard: ({
|
|
|
606
641
|
//#endregion
|
|
607
642
|
//#region packages/ui/KpiMetricRow.d.ts
|
|
608
643
|
type KpiMetricTone = 'default' | 'success' | 'warning' | 'danger';
|
|
644
|
+
type KpiMetricLayout = 'cards' | 'strip';
|
|
645
|
+
type KpiMetricDensity = 'default' | 'compact';
|
|
609
646
|
interface KpiMetricItem {
|
|
610
647
|
label: string;
|
|
611
648
|
value: ReactNode;
|
|
612
649
|
tone?: KpiMetricTone;
|
|
650
|
+
hint?: ReactNode;
|
|
651
|
+
icon?: string;
|
|
613
652
|
}
|
|
614
653
|
interface KpiMetricRowProps {
|
|
615
654
|
items: KpiMetricItem[];
|
|
616
655
|
className?: string;
|
|
656
|
+
layout?: KpiMetricLayout;
|
|
657
|
+
density?: KpiMetricDensity;
|
|
658
|
+
testId?: string;
|
|
659
|
+
loading?: boolean;
|
|
617
660
|
}
|
|
618
661
|
declare function KpiMetricRow({
|
|
619
662
|
items,
|
|
620
|
-
className
|
|
663
|
+
className,
|
|
664
|
+
layout,
|
|
665
|
+
density,
|
|
666
|
+
testId,
|
|
667
|
+
loading
|
|
621
668
|
}: KpiMetricRowProps): import("react").JSX.Element | null;
|
|
622
669
|
//#endregion
|
|
670
|
+
//#region packages/ui/SegmentedControl.d.ts
|
|
671
|
+
interface SegmentedControlOption<T extends string = string> {
|
|
672
|
+
value: T;
|
|
673
|
+
label: ReactNode;
|
|
674
|
+
disabled?: boolean;
|
|
675
|
+
}
|
|
676
|
+
interface SegmentedControlProps<T extends string = string> {
|
|
677
|
+
options: SegmentedControlOption<T>[];
|
|
678
|
+
value: T;
|
|
679
|
+
onChange: (value: T) => void;
|
|
680
|
+
ariaLabel: string;
|
|
681
|
+
className?: string;
|
|
682
|
+
size?: 'sm' | 'md';
|
|
683
|
+
}
|
|
684
|
+
declare function SegmentedControl<T extends string = string>({
|
|
685
|
+
options,
|
|
686
|
+
value,
|
|
687
|
+
onChange,
|
|
688
|
+
ariaLabel,
|
|
689
|
+
className,
|
|
690
|
+
size
|
|
691
|
+
}: SegmentedControlProps<T>): import("react").JSX.Element | null;
|
|
692
|
+
//#endregion
|
|
693
|
+
//#region packages/ui/FilterPanel.d.ts
|
|
694
|
+
interface FilterPanelChipOption {
|
|
695
|
+
key: string;
|
|
696
|
+
label: ReactNode;
|
|
697
|
+
}
|
|
698
|
+
interface FilterPanelCategorySection {
|
|
699
|
+
title: string;
|
|
700
|
+
options: FilterPanelChipOption[];
|
|
701
|
+
selectedKey: string | null;
|
|
702
|
+
onSelect: (key: string | null) => void;
|
|
703
|
+
allLabel?: string;
|
|
704
|
+
searchThreshold?: number;
|
|
705
|
+
searchPlaceholder?: string;
|
|
706
|
+
emptyMessage?: string;
|
|
707
|
+
ariaLabel: string;
|
|
708
|
+
}
|
|
709
|
+
interface FilterPanelStatusSection<T extends string = string> {
|
|
710
|
+
title: string;
|
|
711
|
+
options: SegmentedControlOption<T>[];
|
|
712
|
+
value: T;
|
|
713
|
+
onChange: (value: T) => void;
|
|
714
|
+
ariaLabel: string;
|
|
715
|
+
}
|
|
716
|
+
type FilterPanelLayout = 'stacked' | 'toolbar';
|
|
717
|
+
type FilterPanelDensity = 'default' | 'compact';
|
|
718
|
+
interface FilterPanelProps<T extends string = string> {
|
|
719
|
+
category: FilterPanelCategorySection;
|
|
720
|
+
status?: FilterPanelStatusSection<T>;
|
|
721
|
+
layout?: FilterPanelLayout;
|
|
722
|
+
density?: FilterPanelDensity;
|
|
723
|
+
className?: string;
|
|
724
|
+
testId?: string;
|
|
725
|
+
}
|
|
726
|
+
declare function FilterPanel<T extends string = string>({
|
|
727
|
+
category,
|
|
728
|
+
status,
|
|
729
|
+
layout,
|
|
730
|
+
density,
|
|
731
|
+
className,
|
|
732
|
+
testId
|
|
733
|
+
}: FilterPanelProps<T>): import("react").JSX.Element;
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region packages/ui/ScopeTabs.d.ts
|
|
736
|
+
interface ScopeTabOption {
|
|
737
|
+
key: string;
|
|
738
|
+
label: ReactNode;
|
|
739
|
+
}
|
|
740
|
+
type ScopeTabsDensity = 'default' | 'compact';
|
|
741
|
+
interface ScopeTabsProps {
|
|
742
|
+
options: ScopeTabOption[];
|
|
743
|
+
selectedKey: string | null;
|
|
744
|
+
onChange: (key: string | null) => void;
|
|
745
|
+
allLabel?: string;
|
|
746
|
+
ariaLabel: string;
|
|
747
|
+
density?: ScopeTabsDensity;
|
|
748
|
+
className?: string;
|
|
749
|
+
testId?: string;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Pill tabs for scoping a list view (warehouse, branch, period, etc.).
|
|
753
|
+
* Hides itself when there is at most one scope option.
|
|
754
|
+
*/
|
|
755
|
+
declare function ScopeTabs({
|
|
756
|
+
options,
|
|
757
|
+
selectedKey,
|
|
758
|
+
onChange,
|
|
759
|
+
allLabel,
|
|
760
|
+
ariaLabel,
|
|
761
|
+
density,
|
|
762
|
+
className,
|
|
763
|
+
testId
|
|
764
|
+
}: ScopeTabsProps): import("react").JSX.Element | null;
|
|
765
|
+
//#endregion
|
|
766
|
+
//#region packages/ui/OperationCardGrid.d.ts
|
|
767
|
+
type OperationCardAccent = 'default' | 'in' | 'out' | 'count' | 'adjust' | 'transfer' | 'info' | 'warning' | 'danger';
|
|
768
|
+
interface OperationCardItem {
|
|
769
|
+
key: string;
|
|
770
|
+
title: string;
|
|
771
|
+
description?: string;
|
|
772
|
+
icon: string;
|
|
773
|
+
accent?: OperationCardAccent;
|
|
774
|
+
onClick: () => void;
|
|
775
|
+
testId?: string;
|
|
776
|
+
}
|
|
777
|
+
interface OperationCardGridProps {
|
|
778
|
+
title?: string;
|
|
779
|
+
description?: ReactNode;
|
|
780
|
+
operations: OperationCardItem[];
|
|
781
|
+
className?: string;
|
|
782
|
+
testId?: string;
|
|
783
|
+
}
|
|
784
|
+
declare function OperationCardGrid({
|
|
785
|
+
title,
|
|
786
|
+
description,
|
|
787
|
+
operations,
|
|
788
|
+
className,
|
|
789
|
+
testId
|
|
790
|
+
}: OperationCardGridProps): import("react").JSX.Element;
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region packages/ui/HubPanel.d.ts
|
|
793
|
+
type HubPanelVariant = 'card' | 'flush';
|
|
794
|
+
interface HubPanelProps {
|
|
795
|
+
children: ReactNode;
|
|
796
|
+
/** Flush drops outer chrome — ideal inside SmartCrudPage aboveGrid. */
|
|
797
|
+
variant?: HubPanelVariant;
|
|
798
|
+
className?: string;
|
|
799
|
+
testId?: string;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* Card shell for feature-hub chrome above a CRUD grid (KPIs, scope tabs, filters).
|
|
803
|
+
*/
|
|
804
|
+
declare function HubPanel({
|
|
805
|
+
children,
|
|
806
|
+
variant,
|
|
807
|
+
className,
|
|
808
|
+
testId
|
|
809
|
+
}: HubPanelProps): import("react").JSX.Element;
|
|
810
|
+
//#endregion
|
|
623
811
|
//#region packages/ui/CollapsibleSection.d.ts
|
|
624
812
|
interface CollapsibleSectionProps {
|
|
625
813
|
/** Section heading text. */
|
|
@@ -917,4 +1105,4 @@ interface UiStringsProviderProps {
|
|
|
917
1105
|
declare const UiStringsProvider: React$1.FC<UiStringsProviderProps>;
|
|
918
1106
|
declare const useUiStrings: () => UiStrings;
|
|
919
1107
|
//#endregion
|
|
920
|
-
export { ACCENT_PRESETS, type AccentPreset, 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, Chip, type ChipProps, CollapsibleSection, type CollapsibleSectionProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type Density, DensityContext, type DensityContextValue, DensityProvider, Drawer, type DrawerProps, type DrawerSide, EN_UI_STRINGS, ES_UI_STRINGS, EmptyState, type EmptyStateProps, FeatureGate, type FeatureGateProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, type FileDropzoneValue, FormField, type FormFieldProps, IconButton, type IconButtonProps, type KpiMetricItem, KpiMetricRow, type KpiMetricRowProps, type KpiMetricTone, Popover, type PopoverAlign, type PopoverProps, SelectField, type SelectFieldProps, SettingsPanel, type SettingsPanelProps, Skeleton, type SkeletonProps, StatCard, type StatCardProps, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, type Theme, ThemeContext, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeSwitcher, type ThemeSwitcherProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemStatus, type TimelineItemTone, type TimelineOrientation, type TimelineProps, type TimelineVariant, Toggle, type ToggleProps, type UiStrings, UiStringsProvider, type UiStringsProviderProps, type UseFloatingPanelOptions, type UseFloatingPanelResult, getAvatarHue, getAvatarInitials, useAccentColor, useDensity, useFloatingPanel, useTheme, useUiStrings };
|
|
1108
|
+
export { ACCENT_PRESETS, type AccentPreset, 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, Chip, type ChipProps, CollapsibleSection, type CollapsibleSectionProps, ConfirmDialog, type ConfirmDialogProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, type Density, DensityContext, type DensityContextValue, DensityProvider, 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, FormField, type FormFieldProps, HubPanel, type HubPanelProps, type HubPanelVariant, IconButton, type IconButtonProps, type KpiMetricDensity, type KpiMetricItem, type KpiMetricLayout, KpiMetricRow, type KpiMetricRowProps, type KpiMetricTone, type OperationCardAccent, OperationCardGrid, type OperationCardGridProps, type OperationCardItem, Popover, type PopoverAlign, type PopoverProps, type ScopeTabOption, ScopeTabs, type ScopeTabsDensity, type ScopeTabsProps, SearchableAppDropdown, type SearchableAppDropdownProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectField, type SelectFieldProps, SettingsPanel, type SettingsPanelProps, Skeleton, type SkeletonProps, StatCard, type StatCardProps, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldProps, type Theme, ThemeContext, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeSwitcher, type ThemeSwitcherProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemStatus, type TimelineItemTone, type TimelineOrientation, type TimelineProps, type TimelineVariant, Toggle, type ToggleProps, type UiStrings, UiStringsProvider, type UiStringsProviderProps, type UseFloatingPanelOptions, type UseFloatingPanelResult, getAvatarHue, getAvatarInitials, useAccentColor, useDensity, useFloatingPanel, useTheme, useUiStrings };
|