@brainfish-ai/components 0.31.0 → 0.31.1

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.d.ts CHANGED
@@ -2444,6 +2444,31 @@ declare type UrlString = string & {
2444
2444
  __url: never;
2445
2445
  };
2446
2446
 
2447
+ /**
2448
+ * Gives an indication of query usage in the platform.
2449
+ *
2450
+ * A pill button for the top navigation bar that shows the team's monthly usage
2451
+ * usage percentage. At ≥80% it renders in warning (yellow) state; at 100% in
2452
+ * reached (red) state. Clicking it opens a dropdown with links to the plan and
2453
+ * billing settings pages.
2454
+ */
2455
+ export declare function UsageIndicatorPill({ percentage, label, status, onViewPlan, onViewBilling, }: UsageIndicatorPillProps): React_2.JSX.Element;
2456
+
2457
+ export declare interface UsageIndicatorPillProps {
2458
+ /** Current usage as a percentage 0–100 */
2459
+ percentage: number;
2460
+ /** Name of the usage metric being displayed */
2461
+ label?: string;
2462
+ /** Visual state of the pill */
2463
+ status: UsageIndicatorStatus;
2464
+ /** Called when the user selects "View plan" */
2465
+ onViewPlan?: () => void;
2466
+ /** Called when the user selects "View billing settings" */
2467
+ onViewBilling?: () => void;
2468
+ }
2469
+
2470
+ export declare type UsageIndicatorStatus = 'warning' | 'reached';
2471
+
2447
2472
  export declare const useChatSearch: () => ChatSearchContextProps;
2448
2473
 
2449
2474
  export declare function useConversation(): ConversationContextValue;