randmarcomps 1.611.0 → 1.614.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/randmarcomps.d.ts +49 -11
- package/dist/randmarcomps.js +267 -137
- package/dist/randmarcomps.umd.cjs +14 -14
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -950,11 +950,25 @@ export declare interface ScrollAreaProps extends React_2.ComponentPropsWithoutRe
|
|
|
950
950
|
|
|
951
951
|
export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
952
952
|
|
|
953
|
+
export declare function SearchNoResultsCard({ query, subtitle, tips, onReloadSearch, onAssistantClick, reloadLabel, assistantLabel, icon, className, }: SearchNoResultsCardProps): JSX.Element;
|
|
954
|
+
|
|
955
|
+
export declare interface SearchNoResultsCardProps {
|
|
956
|
+
query: string;
|
|
957
|
+
subtitle?: string;
|
|
958
|
+
tips?: string[];
|
|
959
|
+
onReloadSearch?: () => void;
|
|
960
|
+
onAssistantClick?: () => void;
|
|
961
|
+
reloadLabel?: string;
|
|
962
|
+
assistantLabel?: string;
|
|
963
|
+
icon?: React_2.ReactNode;
|
|
964
|
+
className?: string;
|
|
965
|
+
}
|
|
966
|
+
|
|
953
967
|
/**
|
|
954
|
-
* Manages the
|
|
955
|
-
*
|
|
968
|
+
* Manages the standard search results states while allowing consumers to provide
|
|
969
|
+
* custom header, loading, and empty-state UI.
|
|
956
970
|
*/
|
|
957
|
-
export declare const SearchPage:
|
|
971
|
+
export declare const SearchPage: React_2.FC<SearchPageProps>;
|
|
958
972
|
|
|
959
973
|
/**
|
|
960
974
|
* A generic, centralized component for displaying grouped search results in a grid.
|
|
@@ -981,15 +995,17 @@ declare interface SearchPageGridProps<T> {
|
|
|
981
995
|
renderItem: (item: T, index: number) => default_2.ReactNode;
|
|
982
996
|
}
|
|
983
997
|
|
|
984
|
-
declare interface SearchPageProps {
|
|
985
|
-
/** The search query string. */
|
|
998
|
+
export declare interface SearchPageProps {
|
|
986
999
|
query: string;
|
|
987
|
-
/** The array of search results to display. */
|
|
988
1000
|
results: unknown[];
|
|
989
|
-
/** A flag to indicate when a search is in progress. */
|
|
990
1001
|
isLoading: boolean;
|
|
991
|
-
|
|
992
|
-
|
|
1002
|
+
children: React_2.ReactNode;
|
|
1003
|
+
header?: React_2.ReactNode;
|
|
1004
|
+
loadingState?: React_2.ReactNode;
|
|
1005
|
+
noResultsState?: React_2.ReactNode;
|
|
1006
|
+
initialState?: React_2.ReactNode;
|
|
1007
|
+
className?: string;
|
|
1008
|
+
resultsContainerClassName?: string;
|
|
993
1009
|
}
|
|
994
1010
|
|
|
995
1011
|
/**
|
|
@@ -1000,6 +1016,29 @@ export declare interface SearchPageResultGroup<T> {
|
|
|
1000
1016
|
gridCols?: ResponsiveCols;
|
|
1001
1017
|
}
|
|
1002
1018
|
|
|
1019
|
+
export declare function SearchResultsHeader({ query, title, subtitle, actions, children, className, contentClassName, }: SearchResultsHeaderProps): JSX.Element;
|
|
1020
|
+
|
|
1021
|
+
export declare interface SearchResultsHeaderProps {
|
|
1022
|
+
query?: string;
|
|
1023
|
+
title?: string;
|
|
1024
|
+
subtitle?: string;
|
|
1025
|
+
actions?: React_2.ReactNode;
|
|
1026
|
+
children?: React_2.ReactNode;
|
|
1027
|
+
className?: string;
|
|
1028
|
+
contentClassName?: string;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
export declare function SearchResultsSkeleton({ variant, cardCount, tableRows, className, }: SearchResultsSkeletonProps): JSX.Element;
|
|
1032
|
+
|
|
1033
|
+
export declare interface SearchResultsSkeletonProps {
|
|
1034
|
+
variant?: SearchResultsSkeletonVariant;
|
|
1035
|
+
cardCount?: number;
|
|
1036
|
+
tableRows?: number;
|
|
1037
|
+
className?: string;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
declare type SearchResultsSkeletonVariant = "cards" | "table" | "mixed";
|
|
1041
|
+
|
|
1003
1042
|
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|
|
1004
1043
|
|
|
1005
1044
|
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -1209,12 +1248,11 @@ export declare interface SystemLogEntry {
|
|
|
1209
1248
|
payload: string;
|
|
1210
1249
|
}
|
|
1211
1250
|
|
|
1212
|
-
export declare function SystemLogFeed<TEntry extends SystemLogEntry>({ entries, emptyStateText,
|
|
1251
|
+
export declare function SystemLogFeed<TEntry extends SystemLogEntry>({ entries, emptyStateText, className, formatDayLabel, formatTimeLabel, }: SystemLogFeedProps<TEntry>): JSX.Element;
|
|
1213
1252
|
|
|
1214
1253
|
export declare interface SystemLogFeedProps<TEntry extends SystemLogEntry = SystemLogEntry> {
|
|
1215
1254
|
entries: readonly TEntry[];
|
|
1216
1255
|
emptyStateText?: string;
|
|
1217
|
-
getMetadataLine?: (entry: TEntry) => React_2.ReactNode;
|
|
1218
1256
|
className?: string;
|
|
1219
1257
|
formatDayLabel?: (day: Date) => string;
|
|
1220
1258
|
formatTimeLabel?: (timestamp: Date) => string;
|