randmarcomps 1.610.0 → 1.613.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.
@@ -556,6 +556,8 @@ export declare interface GeneralDocumentCardProps {
556
556
  loading?: boolean;
557
557
  }
558
558
 
559
+ export declare function groupSystemLogEntries<TEntry extends SystemLogEntry>(entries: readonly TEntry[]): SystemLogDayGroup<TEntry>[];
560
+
559
561
  export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
560
562
 
561
563
  export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
@@ -713,6 +715,11 @@ export declare interface PageHeaderProps {
713
715
  className?: string;
714
716
  }
715
717
 
718
+ export declare interface ParsedSystemLogEntry<TEntry extends SystemLogEntry = SystemLogEntry> {
719
+ entry: TEntry;
720
+ timestamp: Date;
721
+ }
722
+
716
723
  export declare function PartnerActions(props: PartnerActionsProps): JSX.Element;
717
724
 
718
725
  export declare interface PartnerActionsProps {
@@ -943,11 +950,25 @@ export declare interface ScrollAreaProps extends React_2.ComponentPropsWithoutRe
943
950
 
944
951
  export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
945
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
+
946
967
  /**
947
- * Manages the layout and states of a search results page. It handles loading,
948
- * no results, and a two-column display for search results alongside an AI assistant.
968
+ * Manages the standard search results states while allowing consumers to provide
969
+ * custom header, loading, and empty-state UI.
949
970
  */
950
- export declare const SearchPage: default_2.FC<SearchPageProps>;
971
+ export declare const SearchPage: React_2.FC<SearchPageProps>;
951
972
 
952
973
  /**
953
974
  * A generic, centralized component for displaying grouped search results in a grid.
@@ -974,15 +995,17 @@ declare interface SearchPageGridProps<T> {
974
995
  renderItem: (item: T, index: number) => default_2.ReactNode;
975
996
  }
976
997
 
977
- declare interface SearchPageProps {
978
- /** The search query string. */
998
+ export declare interface SearchPageProps {
979
999
  query: string;
980
- /** The array of search results to display. */
981
1000
  results: unknown[];
982
- /** A flag to indicate when a search is in progress. */
983
1001
  isLoading: boolean;
984
- /** The content to render when results are available, typically the results grid. */
985
- children: default_2.ReactNode;
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;
986
1009
  }
987
1010
 
988
1011
  /**
@@ -993,6 +1016,29 @@ export declare interface SearchPageResultGroup<T> {
993
1016
  gridCols?: ResponsiveCols;
994
1017
  }
995
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
+
996
1042
  export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
997
1043
 
998
1044
  export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
@@ -1190,6 +1236,31 @@ export declare interface SummaryOverviewCardProps extends Omit<React_2.HTMLAttri
1190
1236
 
1191
1237
  export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
1192
1238
 
1239
+ export declare interface SystemLogDayGroup<TEntry extends SystemLogEntry = SystemLogEntry> {
1240
+ dayKey: string;
1241
+ day: Date;
1242
+ entries: ParsedSystemLogEntry<TEntry>[];
1243
+ }
1244
+
1245
+ export declare interface SystemLogEntry {
1246
+ id?: string | number;
1247
+ timestamp: SystemLogTimestamp;
1248
+ payload: string;
1249
+ }
1250
+
1251
+ export declare function SystemLogFeed<TEntry extends SystemLogEntry>({ entries, emptyStateText, getMetadataLine, className, formatDayLabel, formatTimeLabel, }: SystemLogFeedProps<TEntry>): JSX.Element;
1252
+
1253
+ export declare interface SystemLogFeedProps<TEntry extends SystemLogEntry = SystemLogEntry> {
1254
+ entries: readonly TEntry[];
1255
+ emptyStateText?: string;
1256
+ getMetadataLine?: (entry: TEntry) => React_2.ReactNode;
1257
+ className?: string;
1258
+ formatDayLabel?: (day: Date) => string;
1259
+ formatTimeLabel?: (timestamp: Date) => string;
1260
+ }
1261
+
1262
+ export declare type SystemLogTimestamp = Date | string | number;
1263
+
1193
1264
  export declare const Table: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableElement> & React_2.RefAttributes<HTMLTableElement>>;
1194
1265
 
1195
1266
  export declare const TableBody: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableSectionElement> & React_2.RefAttributes<HTMLTableSectionElement>>;