@paubox/ui 3.0.2 → 3.2.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "3.0.2",
5
+ "version": "3.2.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
package/src/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export * from './lib/RadioButton/RadioButton';
15
15
  export * from './lib/RadioGroup/RadioGroup';
16
16
  export * from './lib/SearchBar/SearchBar';
17
17
  export * from './lib/SearchOmnibox/SearchOmnibox';
18
+ export * from './lib/StatCard/StatCard';
18
19
  export * from './lib/Table/Table';
19
20
  export * from './lib/Toggle/Toggle';
20
21
  export * from './lib/Tooltip/Tooltip';
@@ -1,9 +1,13 @@
1
1
  /**
2
2
  * Identifier for which search bar in the dashboard a request originated from.
3
- * Matches the `SearchBar` enum in pb_search (Rust) so the same string is wire-compatible
4
- * for both `bar=` query params and request bodies.
3
+ * Passed as the `bar` query param / body field to pb_search endpoints.
4
+ *
5
+ * Any string is valid — pb_search accepts arbitrary bar values and uses Redis-only
6
+ * recent-search history for bars it doesn't recognise. Only bars with a corresponding
7
+ * OpenSearch index (mail logs, quarantine, archive) return autocomplete / search results.
8
+ * Pick a descriptive snake_case string for any new bar (e.g. `"email_api_templates"`).
5
9
  */
6
- export type SearchBarKey = 'inbound_mail_log' | 'inbound_quarantine' | 'inbound_quarantine_history' | 'outbound_mail_log' | 'outbound_quarantine' | 'outbound_quarantine_history' | 'outbound_senders_encrypted' | 'outbound_senders_not_encrypted' | 'outbound_senders_inactive' | 'inbound_rulesets' | 'inbound_relays' | 'inbound_execprotect' | 'inbound_execprotect_notifications' | 'inbound_tags' | 'mail_archive' | 'mail_archive_excluded_users' | 'dlp_rules' | 'dlp_excluded_users' | 'email_api_mail_log' | 'email_api_settings' | 'email_api_webhooks' | 'paubox_forms' | 'users';
10
+ export type SearchBarKey = string;
7
11
  export interface SearchOmniboxResult {
8
12
  message_id: string;
9
13
  customer_id: string;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export type StatCardVariant = 'blue' | 'gold' | 'green';
3
+ export interface StatCardProps {
4
+ label: string;
5
+ value: string | number;
6
+ icon: React.ReactNode;
7
+ variant?: StatCardVariant;
8
+ className?: string;
9
+ }
10
+ export declare const StatCard: ({ label, value, icon, variant, className, }: StatCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;