@memelabui/ui 0.8.0 → 0.9.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 +427 -429
- package/dist/index.cjs +2426 -959
- package/dist/index.d.cts +273 -26
- package/dist/index.d.ts +273 -26
- package/dist/index.js +2425 -961
- package/dist/styles/index.css +2775 -2496
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MemelabColors, colors } from './tokens/index.cjs';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ReactElement, ComponentType, Component, ErrorInfo } from 'react';
|
|
3
|
+
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ReactElement, ComponentType, ComponentPropsWithoutRef, CSSProperties, Component, ErrorInfo } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
type ClassValue = string | number | null | undefined | boolean | Record<string, boolean | null | undefined> | ClassValue[];
|
|
@@ -162,6 +162,40 @@ declare const SearchInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttribu
|
|
|
162
162
|
label?: string;
|
|
163
163
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
164
164
|
|
|
165
|
+
type DateRangeValue = {
|
|
166
|
+
from: Date | null;
|
|
167
|
+
to: Date | null;
|
|
168
|
+
};
|
|
169
|
+
type DateRangePreset = {
|
|
170
|
+
label: string;
|
|
171
|
+
range: DateRangeValue;
|
|
172
|
+
};
|
|
173
|
+
type DateRangePickerPlaceholder = {
|
|
174
|
+
trigger?: string;
|
|
175
|
+
from?: string;
|
|
176
|
+
to?: string;
|
|
177
|
+
};
|
|
178
|
+
type DateRangePickerProps = {
|
|
179
|
+
value: DateRangeValue;
|
|
180
|
+
onChange: (range: DateRangeValue) => void;
|
|
181
|
+
presets?: DateRangePreset[];
|
|
182
|
+
format?: string;
|
|
183
|
+
placeholder?: string | DateRangePickerPlaceholder;
|
|
184
|
+
min?: Date;
|
|
185
|
+
max?: Date;
|
|
186
|
+
maxRangeDays?: number;
|
|
187
|
+
label?: string;
|
|
188
|
+
helperText?: string;
|
|
189
|
+
clearable?: boolean;
|
|
190
|
+
disabled?: boolean;
|
|
191
|
+
hasError?: boolean;
|
|
192
|
+
error?: string;
|
|
193
|
+
closeOnSelect?: boolean;
|
|
194
|
+
compact?: boolean;
|
|
195
|
+
className?: string;
|
|
196
|
+
};
|
|
197
|
+
declare function DateRangePicker({ value, onChange, presets, format, placeholder, min, max, maxRangeDays, label, helperText, clearable, disabled, hasError, error, closeOnSelect, compact, className, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
|
|
165
199
|
type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
|
|
166
200
|
hasError?: boolean;
|
|
167
201
|
label?: string;
|
|
@@ -199,7 +233,7 @@ type TagInputProps = {
|
|
|
199
233
|
className?: string;
|
|
200
234
|
id?: string;
|
|
201
235
|
};
|
|
202
|
-
declare
|
|
236
|
+
declare const TagInput: react.ForwardRefExoticComponent<TagInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
203
237
|
|
|
204
238
|
type BadgeVariant = 'neutral' | 'primary' | 'success' | 'successSolid' | 'warning' | 'danger' | 'dangerSolid' | 'accent';
|
|
205
239
|
type BadgeSize = 'sm' | 'md';
|
|
@@ -468,51 +502,176 @@ type DividerProps = {
|
|
|
468
502
|
};
|
|
469
503
|
declare function Divider({ orientation, label, className }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
470
504
|
|
|
471
|
-
type TableProps = {
|
|
505
|
+
type TableProps = ComponentPropsWithoutRef<'table'> & {
|
|
472
506
|
children: ReactNode;
|
|
473
|
-
className?: string;
|
|
474
507
|
};
|
|
475
|
-
type TableHeaderProps = {
|
|
508
|
+
type TableHeaderProps = ComponentPropsWithoutRef<'thead'> & {
|
|
476
509
|
children: ReactNode;
|
|
477
|
-
className?: string;
|
|
478
510
|
};
|
|
479
|
-
type TableBodyProps = {
|
|
511
|
+
type TableBodyProps = ComponentPropsWithoutRef<'tbody'> & {
|
|
480
512
|
children: ReactNode;
|
|
481
|
-
className?: string;
|
|
482
513
|
};
|
|
483
|
-
type TableRowProps = {
|
|
514
|
+
type TableRowProps = ComponentPropsWithoutRef<'tr'> & {
|
|
484
515
|
children: ReactNode;
|
|
485
|
-
className?: string;
|
|
486
516
|
hoverable?: boolean;
|
|
487
517
|
};
|
|
488
|
-
type TableHeadProps = {
|
|
518
|
+
type TableHeadProps = ComponentPropsWithoutRef<'th'> & {
|
|
489
519
|
children: ReactNode;
|
|
490
|
-
className?: string;
|
|
491
520
|
};
|
|
492
|
-
type TableCellProps = {
|
|
521
|
+
type TableCellProps = ComponentPropsWithoutRef<'td'> & {
|
|
493
522
|
children: ReactNode;
|
|
494
|
-
className?: string;
|
|
495
523
|
align?: 'left' | 'center' | 'right';
|
|
496
524
|
};
|
|
497
|
-
declare const Table: react.ForwardRefExoticComponent<
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
declare const
|
|
501
|
-
|
|
502
|
-
|
|
525
|
+
declare const Table: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
|
|
526
|
+
children: ReactNode;
|
|
527
|
+
} & react.RefAttributes<HTMLTableElement>>;
|
|
528
|
+
declare const TableHeader: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
529
|
+
children: ReactNode;
|
|
530
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
531
|
+
declare const TableBody: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
|
|
532
|
+
children: ReactNode;
|
|
533
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
534
|
+
declare const TableRow: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
535
|
+
children: ReactNode;
|
|
536
|
+
hoverable?: boolean;
|
|
537
|
+
} & react.RefAttributes<HTMLTableRowElement>>;
|
|
538
|
+
declare const TableHead: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & {
|
|
539
|
+
children: ReactNode;
|
|
540
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
541
|
+
declare const TableCell: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & {
|
|
542
|
+
children: ReactNode;
|
|
543
|
+
align?: "left" | "center" | "right";
|
|
544
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
503
545
|
|
|
546
|
+
type DataTableSort = {
|
|
547
|
+
id: string;
|
|
548
|
+
desc: boolean;
|
|
549
|
+
};
|
|
550
|
+
type DataTableColumnFilterType = 'text' | 'select' | 'boolean' | 'date-range';
|
|
551
|
+
type DataTableFilterOption = {
|
|
552
|
+
label: string;
|
|
553
|
+
value: string;
|
|
554
|
+
};
|
|
555
|
+
type DataTableCellContext<T> = {
|
|
556
|
+
row: T;
|
|
557
|
+
value: unknown;
|
|
558
|
+
rowIndex: number;
|
|
559
|
+
column: DataTableColumnDef<T>;
|
|
560
|
+
};
|
|
561
|
+
type DataTableFilterContext<T> = {
|
|
562
|
+
column: DataTableColumnDef<T>;
|
|
563
|
+
value: unknown;
|
|
564
|
+
onChange: (value: unknown) => void;
|
|
565
|
+
data: T[];
|
|
566
|
+
};
|
|
567
|
+
type DataTableHeaderContext<T> = {
|
|
568
|
+
column: DataTableColumnDef<T>;
|
|
569
|
+
sort: DataTableSort | null;
|
|
570
|
+
};
|
|
571
|
+
type DataTableColumnDef<T> = {
|
|
572
|
+
id: string;
|
|
573
|
+
header: ReactNode | ((context: DataTableHeaderContext<T>) => ReactNode);
|
|
574
|
+
accessorKey?: keyof T;
|
|
575
|
+
accessorFn?: (row: T) => unknown;
|
|
576
|
+
cell?: (context: DataTableCellContext<T>) => ReactNode;
|
|
577
|
+
sortable?: boolean;
|
|
578
|
+
sortDescFirst?: boolean;
|
|
579
|
+
filter?: DataTableColumnFilterType | ((context: DataTableFilterContext<T>) => ReactNode);
|
|
580
|
+
filterOptions?: DataTableFilterOption[];
|
|
581
|
+
filterFn?: (value: unknown, row: T, filterValue: unknown) => boolean;
|
|
582
|
+
searchable?: boolean;
|
|
583
|
+
align?: 'left' | 'center' | 'right';
|
|
584
|
+
width?: CSSProperties['width'];
|
|
585
|
+
minWidth?: CSSProperties['minWidth'];
|
|
586
|
+
hidden?: boolean;
|
|
587
|
+
className?: string;
|
|
588
|
+
headerClassName?: string;
|
|
589
|
+
};
|
|
590
|
+
type DataTableProps<T> = {
|
|
591
|
+
data: T[];
|
|
592
|
+
columns: Array<DataTableColumnDef<T>>;
|
|
593
|
+
caption?: string;
|
|
594
|
+
searchValue?: string;
|
|
595
|
+
defaultSearchValue?: string;
|
|
596
|
+
onSearchValueChange?: (value: string) => void;
|
|
597
|
+
searchPlaceholder?: string;
|
|
598
|
+
enableSearch?: boolean;
|
|
599
|
+
sortBy?: DataTableSort | null;
|
|
600
|
+
defaultSortBy?: DataTableSort | null;
|
|
601
|
+
onSortChange?: (sort: DataTableSort | null) => void;
|
|
602
|
+
filters?: Record<string, unknown>;
|
|
603
|
+
defaultFilters?: Record<string, unknown>;
|
|
604
|
+
onFiltersChange?: (filters: Record<string, unknown>) => void;
|
|
605
|
+
showFilters?: boolean;
|
|
606
|
+
defaultShowFilters?: boolean;
|
|
607
|
+
onShowFiltersChange?: (show: boolean) => void;
|
|
608
|
+
page?: number;
|
|
609
|
+
defaultPage?: number;
|
|
610
|
+
onPageChange?: (page: number) => void;
|
|
611
|
+
pageSize?: number;
|
|
612
|
+
defaultPageSize?: number;
|
|
613
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
614
|
+
pageSizeOptions?: number[];
|
|
615
|
+
totalItems?: number;
|
|
616
|
+
loading?: boolean;
|
|
617
|
+
loadingRows?: number;
|
|
618
|
+
error?: ReactNode;
|
|
619
|
+
onRetry?: () => void;
|
|
620
|
+
emptyState?: ReactNode;
|
|
621
|
+
emptyTitle?: string;
|
|
622
|
+
emptyDescription?: string;
|
|
623
|
+
filterToggleLabel?: string;
|
|
624
|
+
clearFiltersLabel?: string;
|
|
625
|
+
pageSizeLabel?: string;
|
|
626
|
+
resultsLabel?: (meta: {
|
|
627
|
+
from: number;
|
|
628
|
+
to: number;
|
|
629
|
+
total: number;
|
|
630
|
+
}) => ReactNode;
|
|
631
|
+
toolbarActions?: ReactNode;
|
|
632
|
+
stickyHeader?: boolean;
|
|
633
|
+
dense?: boolean;
|
|
634
|
+
className?: string;
|
|
635
|
+
manualSorting?: boolean;
|
|
636
|
+
manualFiltering?: boolean;
|
|
637
|
+
manualPagination?: boolean;
|
|
638
|
+
onRowClick?: (row: T) => void;
|
|
639
|
+
rowHref?: (row: T) => string | undefined;
|
|
640
|
+
getRowId?: (row: T, index: number) => string;
|
|
641
|
+
getRowClassName?: (row: T, index: number) => string | undefined;
|
|
642
|
+
};
|
|
643
|
+
declare function DataTable<T>({ data, columns, caption, searchValue, defaultSearchValue, onSearchValueChange, searchPlaceholder, enableSearch, sortBy, defaultSortBy, onSortChange, filters, defaultFilters, onFiltersChange, showFilters, defaultShowFilters, onShowFiltersChange, page, defaultPage, onPageChange, pageSize, defaultPageSize, onPageSizeChange, pageSizeOptions, totalItems, loading, loadingRows, error, onRetry, emptyState, emptyTitle, emptyDescription, filterToggleLabel, clearFiltersLabel, pageSizeLabel, resultsLabel, toolbarActions, stickyHeader, dense, className, manualSorting, manualFiltering, manualPagination, onRowClick, rowHref, getRowId, getRowClassName, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
644
|
+
|
|
645
|
+
type StatCardSize = 'sm' | 'md' | 'lg';
|
|
646
|
+
type StatCardValueColor = 'default' | 'success' | 'danger' | 'warning' | 'auto';
|
|
504
647
|
type StatCardTrend = {
|
|
505
648
|
value: number;
|
|
649
|
+
percentValue?: number;
|
|
506
650
|
label?: string;
|
|
651
|
+
format?: (trend: {
|
|
652
|
+
value: number;
|
|
653
|
+
percentValue?: number;
|
|
654
|
+
}) => string;
|
|
655
|
+
};
|
|
656
|
+
type StatCardMetric = {
|
|
657
|
+
value: string | number;
|
|
658
|
+
label: string;
|
|
659
|
+
trend?: StatCardTrend;
|
|
507
660
|
};
|
|
508
661
|
type StatCardProps = {
|
|
509
662
|
value: string | number;
|
|
510
663
|
label: string;
|
|
511
664
|
icon?: ReactNode;
|
|
512
665
|
trend?: StatCardTrend;
|
|
666
|
+
size?: StatCardSize;
|
|
667
|
+
valueColor?: StatCardValueColor;
|
|
668
|
+
href?: string;
|
|
669
|
+
onClick?: () => void;
|
|
670
|
+
loading?: boolean;
|
|
671
|
+
secondaryMetric?: StatCardMetric;
|
|
513
672
|
className?: string;
|
|
514
673
|
};
|
|
515
|
-
declare function StatCard({ value, label, icon, trend, className }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
674
|
+
declare function StatCard({ value, label, icon, trend, size, valueColor, href, onClick, loading, secondaryMetric, className, }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
516
675
|
|
|
517
676
|
type PaginationProps = {
|
|
518
677
|
page: number;
|
|
@@ -573,6 +732,39 @@ type DotIndicatorProps = {
|
|
|
573
732
|
};
|
|
574
733
|
declare function DotIndicator({ remaining, max, showLabel, labelFormat, className, }: DotIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
575
734
|
|
|
735
|
+
type TimelineGroupBy = 'day' | 'month' | 'year' | 'none';
|
|
736
|
+
type TimelineVariant = 'default' | 'compact';
|
|
737
|
+
type TimelineLineStyle = 'solid' | 'dashed' | 'none';
|
|
738
|
+
type TimelineOrder = 'asc' | 'desc';
|
|
739
|
+
type TimelineTimestampPosition = 'above' | 'inline' | 'side';
|
|
740
|
+
type TimelineIconTone = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'accent' | string;
|
|
741
|
+
type TimelineEvent = {
|
|
742
|
+
id: string;
|
|
743
|
+
icon?: ReactNode;
|
|
744
|
+
iconColor?: TimelineIconTone;
|
|
745
|
+
title: ReactNode;
|
|
746
|
+
description?: ReactNode;
|
|
747
|
+
timestamp?: Date | string;
|
|
748
|
+
metadata?: Record<string, ReactNode>;
|
|
749
|
+
};
|
|
750
|
+
type TimelineProps = {
|
|
751
|
+
events: TimelineEvent[];
|
|
752
|
+
timestampFormatter?: (value: Date) => ReactNode;
|
|
753
|
+
timestampPosition?: TimelineTimestampPosition;
|
|
754
|
+
groupBy?: TimelineGroupBy;
|
|
755
|
+
groupHeaderFormatter?: (value: Date, groupBy: Exclude<TimelineGroupBy, 'none'>) => ReactNode;
|
|
756
|
+
variant?: TimelineVariant;
|
|
757
|
+
lineStyle?: TimelineLineStyle;
|
|
758
|
+
order?: TimelineOrder;
|
|
759
|
+
maxVisible?: number;
|
|
760
|
+
onLoadMore?: () => void;
|
|
761
|
+
hasMore?: boolean;
|
|
762
|
+
loading?: boolean;
|
|
763
|
+
emptyState?: ReactNode;
|
|
764
|
+
className?: string;
|
|
765
|
+
};
|
|
766
|
+
declare function Timeline({ events, timestampFormatter, timestampPosition, groupBy, groupHeaderFormatter, variant, lineStyle, order, maxVisible, onLoadMore, hasMore, loading, emptyState, className, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
767
|
+
|
|
576
768
|
type FilterPill = {
|
|
577
769
|
key: string;
|
|
578
770
|
label: string;
|
|
@@ -626,15 +818,41 @@ type SidebarProps = {
|
|
|
626
818
|
};
|
|
627
819
|
declare function Sidebar({ children, collapsed, onToggle, className }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
628
820
|
|
|
821
|
+
type DashboardLayoutWidth = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
822
|
+
type DashboardLayoutNavItem = {
|
|
823
|
+
key?: string;
|
|
824
|
+
label: ReactNode;
|
|
825
|
+
icon?: ReactNode;
|
|
826
|
+
href?: string;
|
|
827
|
+
onClick?: () => void;
|
|
828
|
+
active?: boolean;
|
|
829
|
+
disabled?: boolean;
|
|
830
|
+
badge?: ReactNode;
|
|
831
|
+
target?: string;
|
|
832
|
+
rel?: string;
|
|
833
|
+
};
|
|
834
|
+
type DashboardLayoutNavRenderContext = {
|
|
835
|
+
type: 'desktop' | 'mobile';
|
|
836
|
+
className: string;
|
|
837
|
+
};
|
|
629
838
|
type DashboardLayoutProps = {
|
|
630
839
|
children: ReactNode;
|
|
631
840
|
navbar?: ReactNode;
|
|
632
841
|
sidebar?: ReactNode;
|
|
842
|
+
brand?: ReactNode;
|
|
843
|
+
user?: ReactNode;
|
|
844
|
+
headerActions?: ReactNode;
|
|
845
|
+
navItems?: DashboardLayoutNavItem[];
|
|
846
|
+
renderNavItem?: (item: DashboardLayoutNavItem, context: DashboardLayoutNavRenderContext) => ReactNode;
|
|
847
|
+
navigationLabel?: string;
|
|
848
|
+
mobileNavigationLabel?: string;
|
|
849
|
+
shellClassName?: string;
|
|
850
|
+
shellWidth?: DashboardLayoutWidth;
|
|
633
851
|
className?: string;
|
|
634
852
|
mainClassName?: string;
|
|
635
|
-
maxWidth?:
|
|
853
|
+
maxWidth?: DashboardLayoutWidth;
|
|
636
854
|
};
|
|
637
|
-
declare function DashboardLayout({ children, navbar, sidebar, className, mainClassName, maxWidth }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
|
|
855
|
+
declare function DashboardLayout({ children, navbar, sidebar, brand, user, headerActions, navItems, renderNavItem, navigationLabel, mobileNavigationLabel, shellClassName, shellWidth, className, mainClassName, maxWidth, }: DashboardLayoutProps): react_jsx_runtime.JSX.Element;
|
|
638
856
|
|
|
639
857
|
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
640
858
|
type AlertProps = {
|
|
@@ -649,11 +867,16 @@ declare function Alert({ variant, title, children, onDismiss, className }: Alert
|
|
|
649
867
|
type CopyFieldProps = {
|
|
650
868
|
value: string;
|
|
651
869
|
label?: string;
|
|
870
|
+
description?: ReactNode;
|
|
652
871
|
masked?: boolean;
|
|
872
|
+
emptyText?: string;
|
|
873
|
+
rightActions?: ReactNode;
|
|
874
|
+
copyOnClick?: boolean;
|
|
875
|
+
maskFormatter?: (value: string) => string;
|
|
653
876
|
className?: string;
|
|
654
877
|
id?: string;
|
|
655
878
|
};
|
|
656
|
-
declare function CopyField({ value, label, masked, className, id: externalId }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
879
|
+
declare function CopyField({ value, label, description, masked, emptyText, rightActions, copyOnClick, maskFormatter, className, id: externalId, }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
657
880
|
|
|
658
881
|
type ProgressButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon' | 'loading'> & {
|
|
659
882
|
isLoading?: boolean;
|
|
@@ -822,13 +1045,25 @@ type BreadcrumbItem = {
|
|
|
822
1045
|
label: ReactNode;
|
|
823
1046
|
href?: string;
|
|
824
1047
|
onClick?: () => void;
|
|
1048
|
+
icon?: ReactNode;
|
|
1049
|
+
};
|
|
1050
|
+
type BreadcrumbRenderLinkProps = {
|
|
1051
|
+
href: string;
|
|
1052
|
+
onClick?: () => void;
|
|
1053
|
+
className: string;
|
|
1054
|
+
children: ReactNode;
|
|
1055
|
+
item: BreadcrumbItem;
|
|
825
1056
|
};
|
|
826
1057
|
type BreadcrumbsProps = {
|
|
827
1058
|
items: BreadcrumbItem[];
|
|
828
1059
|
separator?: ReactNode;
|
|
1060
|
+
maxItems?: number;
|
|
1061
|
+
itemsBeforeCollapse?: number;
|
|
1062
|
+
itemsAfterCollapse?: number;
|
|
1063
|
+
renderLink?: (props: BreadcrumbRenderLinkProps) => ReactNode;
|
|
829
1064
|
className?: string;
|
|
830
1065
|
};
|
|
831
|
-
declare function Breadcrumbs({ items, separator, className }: BreadcrumbsProps): react_jsx_runtime.JSX.Element | null;
|
|
1066
|
+
declare function Breadcrumbs({ items, separator, maxItems, itemsBeforeCollapse, itemsAfterCollapse, renderLink, className, }: BreadcrumbsProps): react_jsx_runtime.JSX.Element | null;
|
|
832
1067
|
|
|
833
1068
|
type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
834
1069
|
type PopoverProps = {
|
|
@@ -922,10 +1157,21 @@ type VisuallyHiddenProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
922
1157
|
*/
|
|
923
1158
|
declare function VisuallyHidden({ children, as: Tag, style, ...props }: VisuallyHiddenProps): react_jsx_runtime.JSX.Element;
|
|
924
1159
|
|
|
1160
|
+
type ErrorBoundaryActionContext = {
|
|
1161
|
+
error: Error;
|
|
1162
|
+
reset: () => void;
|
|
1163
|
+
};
|
|
925
1164
|
type ErrorBoundaryProps = {
|
|
926
1165
|
children: ReactNode;
|
|
927
1166
|
fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode);
|
|
928
1167
|
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
1168
|
+
resetKey?: string | number | boolean | null;
|
|
1169
|
+
resetKeys?: readonly unknown[];
|
|
1170
|
+
fullScreen?: boolean;
|
|
1171
|
+
title?: ReactNode;
|
|
1172
|
+
description?: ReactNode | ((error: Error) => ReactNode);
|
|
1173
|
+
actionLabel?: ReactNode;
|
|
1174
|
+
onAction?: (context: ErrorBoundaryActionContext) => void;
|
|
929
1175
|
};
|
|
930
1176
|
type State = {
|
|
931
1177
|
error: Error | null;
|
|
@@ -934,6 +1180,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, State> {
|
|
|
934
1180
|
state: State;
|
|
935
1181
|
static getDerivedStateFromError(error: Error): State;
|
|
936
1182
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
1183
|
+
componentDidUpdate(prevProps: ErrorBoundaryProps): void;
|
|
937
1184
|
private reset;
|
|
938
1185
|
render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
939
1186
|
}
|
|
@@ -945,4 +1192,4 @@ type LoadingScreenProps = {
|
|
|
945
1192
|
};
|
|
946
1193
|
declare function LoadingScreen({ message, size, className }: LoadingScreenProps): react_jsx_runtime.JSX.Element;
|
|
947
1194
|
|
|
948
|
-
export { ActiveFilterPills, type ActiveFilterPillsProps, Alert, type AlertProps, type AlertVariant, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardPadding, type CardProps, type CardVariant, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorInput, type ColorInputProps, Combobox, type ComboboxOption, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, CooldownRing, type CooldownRingProps, type CooldownRingSize, CopyField, type CopyFieldProps, DashboardLayout, type DashboardLayoutProps, Divider, type DividerProps, DotIndicator, type DotIndicatorProps, Drawer, type DrawerProps, type DrawerSide, type DrawerSize, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, ErrorBoundary, type ErrorBoundaryProps, type FilterPill, FormField, type FormFieldProps, Heading, type HeadingLevel, type HeadingProps, type HotkeyBinding, type HotkeyModifiers, IconButton, type IconButtonProps, Input, type InputProps, LoadingScreen, type LoadingScreenProps, Modal, type ModalProps, MutationOverlay, type MutationOverlayProps, type MutationOverlayStatus, Navbar, type NavbarProps, NotificationBell, type NotificationBellProps, PageShell, type PageShellProps, type PageShellVariant, Pagination, type PaginationProps, Pill, Popover, type PopoverPlacement, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressBarVariant, ProgressButton, type ProgressButtonProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, SectionCard, type SectionCardProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpinnerSize, Stack, type StackProps, StageProgress, type StageProgressProps, StatCard, type StatCardProps, type StatCardTrend, type Step, Stepper, type StepperProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagInput, type TagInputProps, Text, type TextColor, type TextProps, type TextSize, Textarea, type TextareaProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, type ToggleSize, Tooltip, type TooltipPlacement, type TooltipProps, Transition, type TransitionPreset, type TransitionProps, type UseClipboardReturn, type UseDisclosureReturn, type UseHotkeysOptions, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseSharedNowOptions, VisuallyHidden, type VisuallyHiddenProps, cn, focusSafely, getFocusableElements, useClipboard, useDebounce, useDisclosure, useHotkeys, useIntersectionObserver, useMediaQuery, useScrollLock, useSharedNow, useToast };
|
|
1195
|
+
export { ActiveFilterPills, type ActiveFilterPillsProps, Alert, type AlertProps, type AlertVariant, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, type BreadcrumbItem, type BreadcrumbRenderLinkProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardPadding, type CardProps, type CardVariant, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorInput, type ColorInputProps, Combobox, type ComboboxOption, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, CooldownRing, type CooldownRingProps, type CooldownRingSize, CopyField, type CopyFieldProps, DashboardLayout, type DashboardLayoutNavItem, type DashboardLayoutNavRenderContext, type DashboardLayoutProps, type DashboardLayoutWidth, DataTable, type DataTableCellContext, type DataTableColumnDef, type DataTableColumnFilterType, type DataTableFilterContext, type DataTableFilterOption, type DataTableHeaderContext, type DataTableProps, type DataTableSort, DateRangePicker, type DateRangePickerPlaceholder, type DateRangePickerProps, type DateRangePreset, type DateRangeValue, Divider, type DividerProps, DotIndicator, type DotIndicatorProps, Drawer, type DrawerProps, type DrawerSide, type DrawerSize, DropZone, type DropZoneProps, Dropdown, DropdownItem, type DropdownItemProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, EmptyState, type EmptyStateProps, ErrorBoundary, type ErrorBoundaryActionContext, type ErrorBoundaryProps, type FilterPill, FormField, type FormFieldProps, Heading, type HeadingLevel, type HeadingProps, type HotkeyBinding, type HotkeyModifiers, IconButton, type IconButtonProps, Input, type InputProps, LoadingScreen, type LoadingScreenProps, Modal, type ModalProps, MutationOverlay, type MutationOverlayProps, type MutationOverlayStatus, Navbar, type NavbarProps, NotificationBell, type NotificationBellProps, PageShell, type PageShellProps, type PageShellVariant, Pagination, type PaginationProps, Pill, Popover, type PopoverPlacement, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressBarVariant, ProgressButton, type ProgressButtonProps, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, SectionCard, type SectionCardProps, Select, type SelectProps, Sidebar, type SidebarProps, type Size, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpinnerSize, Stack, type StackProps, StageProgress, type StageProgressProps, StatCard, type StatCardMetric, type StatCardProps, type StatCardSize, type StatCardTrend, type StatCardValueColor, type Step, Stepper, type StepperProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagInput, type TagInputProps, Text, type TextColor, type TextProps, type TextSize, Textarea, type TextareaProps, Timeline, type TimelineEvent, type TimelineGroupBy, type TimelineIconTone, type TimelineLineStyle, type TimelineOrder, type TimelineProps, type TimelineTimestampPosition, type TimelineVariant, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, type ToggleSize, Tooltip, type TooltipPlacement, type TooltipProps, Transition, type TransitionPreset, type TransitionProps, type UseClipboardReturn, type UseDisclosureReturn, type UseHotkeysOptions, type UseIntersectionObserverOptions, type UseIntersectionObserverReturn, type UseSharedNowOptions, VisuallyHidden, type VisuallyHiddenProps, cn, focusSafely, getFocusableElements, useClipboard, useDebounce, useDisclosure, useHotkeys, useIntersectionObserver, useMediaQuery, useScrollLock, useSharedNow, useToast };
|