randmarcomps 1.346.0 → 1.348.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.
@@ -127,10 +127,10 @@ declare interface AssistantChatProps {
127
127
 
128
128
  /**
129
129
  * A component that displays an animated AI icon and placeholder text while
130
- * fetching an insight from the Gemini API. It leverages the useGemini hook
131
- * to manage the entire data fetching and state management lifecycle.
130
+ * fetching an insight from the Gemini API. It can be displayed with or without
131
+ * a surrounding card style.
132
132
  */
133
- export declare function AssistantInsight({ prompt, smartAndSlow, thinkingPlaceholderText, }: AssistantInsightProps): JSX.Element;
133
+ export declare function AssistantInsight({ prompt, smartAndSlow, thinkingPlaceholderText, withCard, }: AssistantInsightProps): JSX.Element;
134
134
 
135
135
  /**
136
136
  * Defines the props for the AssistantInsight component.
@@ -142,6 +142,8 @@ declare interface AssistantInsightProps {
142
142
  smartAndSlow?: boolean;
143
143
  /** Optional placeholder text to display while the AI is generating a response. */
144
144
  thinkingPlaceholderText?: string;
145
+ /** Determines whether the component is wrapped in a styled card. Defaults to true. */
146
+ withCard?: boolean;
145
147
  }
146
148
 
147
149
  export declare const Avatar: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
@@ -753,6 +755,17 @@ declare interface ResellerQualificationsCardProps {
753
755
  loading?: boolean;
754
756
  }
755
757
 
758
+ /**
759
+ * Defines the number of grid columns for responsive breakpoints.
760
+ */
761
+ declare type ResponsiveCols = {
762
+ base?: number;
763
+ sm?: number;
764
+ md?: number;
765
+ lg?: number;
766
+ xl?: number;
767
+ };
768
+
756
769
  export declare function ReturnsTable({ applicationId, returns, loading }: ReturnsTableProps): JSX.Element;
757
770
 
758
771
  declare interface ReturnsTableProps {
@@ -806,6 +819,56 @@ export declare interface ScrollAreaProps extends React_2.ComponentPropsWithoutRe
806
819
 
807
820
  export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
808
821
 
822
+ /**
823
+ * Manages the layout and states of a search results page. It handles loading,
824
+ * no results, and a two-column display for search results alongside an AI assistant.
825
+ */
826
+ export declare const SearchPage: default_2.FC<SearchPageProps>;
827
+
828
+ /**
829
+ * A generic, centralized component for displaying grouped search results in a grid.
830
+ * It display a responsive grid layout and leaves the rendering of individual items
831
+ * to the consuming application via the `renderItem` prop.
832
+ */
833
+ export declare const SearchPageGrid: <T>({ results, groupBy, renderItem, }: SearchPageGridProps<T>) => JSX.Element;
834
+
835
+ declare interface SearchPageGridProps<T> {
836
+ /**
837
+ * The raw array of search result items.
838
+ */
839
+ results: T[];
840
+ /**
841
+ * A function that takes the full results array and returns an object
842
+ * where keys are group titles and values are objects containing the
843
+ * items and an optional grid configuration for that group.
844
+ */
845
+ groupBy: (results: T[]) => Record<string, SearchPageResultGroup<T>>;
846
+ /**
847
+ * A function that receives a single item and its index, and returns
848
+ * the React component to render for that item.
849
+ */
850
+ renderItem: (item: T, index: number) => default_2.ReactNode;
851
+ }
852
+
853
+ declare interface SearchPageProps {
854
+ /** The search query string. */
855
+ query: string;
856
+ /** The array of search results to display. */
857
+ results: unknown[];
858
+ /** A flag to indicate when a search is in progress. */
859
+ isLoading: boolean;
860
+ /** The content to render when results are available, typically the results grid. */
861
+ children: default_2.ReactNode;
862
+ }
863
+
864
+ /**
865
+ * The expected structure for each group returned by the `groupBy` function.
866
+ */
867
+ export declare interface SearchPageResultGroup<T> {
868
+ items: T[];
869
+ gridCols?: ResponsiveCols;
870
+ }
871
+
809
872
  export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
810
873
 
811
874
  export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;