@plusrouter/ui 0.0.0-stage → 0.1.8
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/SideNavigation-qz3aib86.js +5974 -0
- package/dist/assets/BASE-LICENSE +25 -0
- package/dist/assets/SpaceGrotesk.LICENSE +93 -0
- package/dist/assets/SpaceGrotesk.ttf +0 -0
- package/dist/assets/UPSTREAM-LICENSE +21 -0
- package/dist/brand.css +204 -0
- package/dist/components.js +3702 -0
- package/dist/index.js +2250 -0
- package/dist/styles.css +20496 -0
- package/dist/tokens.css +179 -0
- package/dist/types/components/Components/AlertDialog/AlertDialog.d.ts +25 -0
- package/dist/types/components/Components/AlertDialog/index.d.ts +1 -0
- package/dist/types/components/Components/AuthCard/AuthCard.d.ts +19 -0
- package/dist/types/components/Components/AuthCard/index.d.ts +1 -0
- package/dist/types/components/Components/BarChart/BarChart.d.ts +7 -0
- package/dist/types/components/Components/BarChart/index.d.ts +1 -0
- package/dist/types/components/Components/Billing/Billing.d.ts +125 -0
- package/dist/types/components/Components/Billing/index.d.ts +1 -0
- package/dist/types/components/Components/Effects/BackgroundCursor.d.ts +16 -0
- package/dist/types/components/Components/Effects/BackgroundDotted.d.ts +2 -0
- package/dist/types/components/Components/Effects/BackgroundLineField.d.ts +9 -0
- package/dist/types/components/Components/Effects/BackgroundPlus.d.ts +8 -0
- package/dist/types/components/Components/Effects/BackgroundSquare.d.ts +6 -0
- package/dist/types/components/Components/Effects/BrandIntro.d.ts +4 -0
- package/dist/types/components/Components/Effects/EffectCard.d.ts +5 -0
- package/dist/types/components/Components/Effects/PlusField.d.ts +4 -0
- package/dist/types/components/Components/Effects/ThemeTransition.d.ts +3 -0
- package/dist/types/components/Components/Effects/blast.d.ts +21 -0
- package/dist/types/components/Components/Effects/useBackgroundField.d.ts +2 -0
- package/dist/types/components/Components/Effects/useLineField.d.ts +2 -0
- package/dist/types/components/Components/Footer/Footer.d.ts +14 -0
- package/dist/types/components/Components/Footer/index.d.ts +1 -0
- package/dist/types/components/Components/Header/Header.d.ts +26 -0
- package/dist/types/components/Components/Header/index.d.ts +2 -0
- package/dist/types/components/Components/Heatmap/Heatmap.d.ts +9 -0
- package/dist/types/components/Components/Heatmap/index.d.ts +1 -0
- package/dist/types/components/Components/MetricStrip/MetricStrip.d.ts +12 -0
- package/dist/types/components/Components/MetricStrip/index.d.ts +1 -0
- package/dist/types/components/Components/Panel/Panel.d.ts +9 -0
- package/dist/types/components/Components/Panel/index.d.ts +1 -0
- package/dist/types/components/Components/Ranking/Ranking.d.ts +15 -0
- package/dist/types/components/Components/Ranking/index.d.ts +1 -0
- package/dist/types/components/Components/RequestTable/RequestTable.d.ts +18 -0
- package/dist/types/components/Components/RequestTable/index.d.ts +1 -0
- package/dist/types/components/Components/SessionShape/SessionShape.d.ts +5 -0
- package/dist/types/components/Components/SessionShape/index.d.ts +1 -0
- package/dist/types/components/Components/Shop/Shop.d.ts +2 -0
- package/dist/types/components/Components/Shop/Shop.types.d.ts +95 -0
- package/dist/types/components/Components/Shop/ShopAccountCard.d.ts +3 -0
- package/dist/types/components/Components/Shop/ShopCard.d.ts +8 -0
- package/dist/types/components/Components/Shop/index.d.ts +4 -0
- package/dist/types/components/Components/Support/Support.d.ts +49 -0
- package/dist/types/components/Components/Support/index.d.ts +2 -0
- package/dist/types/components/Components/UsageList/UsageList.d.ts +5 -0
- package/dist/types/components/Components/UsageList/index.d.ts +1 -0
- package/dist/types/components/Components/Workspace/CustomerDashboard.d.ts +4 -0
- package/dist/types/components/Components/Workspace/Provider.d.ts +24 -0
- package/dist/types/components/Components/Workspace/RouterPlusWorkspace.d.ts +114 -0
- package/dist/types/components/Components/Workspace/WorkspaceIcons.d.ts +248 -0
- package/dist/types/components/Components/index.d.ts +30 -0
- package/dist/types/components/TokensAndAssets/ThemeContext.d.ts +1 -0
- package/dist/types/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/types/components/ui/Accordion/index.d.ts +1 -0
- package/dist/types/components/ui/Avatar/Avatar.d.ts +14 -0
- package/dist/types/components/ui/Avatar/index.d.ts +1 -0
- package/dist/types/components/ui/Badge/Badge.d.ts +7 -0
- package/dist/types/components/ui/Badge/index.d.ts +1 -0
- package/dist/types/components/ui/Brand/Brand.d.ts +6 -0
- package/dist/types/components/ui/Brand/index.d.ts +1 -0
- package/dist/types/components/ui/Button/Button.d.ts +10 -0
- package/dist/types/components/ui/Button/index.d.ts +1 -0
- package/dist/types/components/ui/Card/Card.d.ts +7 -0
- package/dist/types/components/ui/Card/index.d.ts +1 -0
- package/dist/types/components/ui/Checkbox/Checkbox.d.ts +10 -0
- package/dist/types/components/ui/Checkbox/Primitive/Checkbox.d.ts +11 -0
- package/dist/types/components/ui/Checkbox/index.d.ts +1 -0
- package/dist/types/components/ui/Collapsible/Collapsible.d.ts +8 -0
- package/dist/types/components/ui/Collapsible/index.d.ts +1 -0
- package/dist/types/components/ui/ContextMenu/ContextMenu.d.ts +21 -0
- package/dist/types/components/ui/ContextMenu/index.d.ts +1 -0
- package/dist/types/components/ui/Dialog/Dialog.d.ts +33 -0
- package/dist/types/components/ui/Dialog/index.d.ts +1 -0
- package/dist/types/components/ui/Drawer/Drawer.d.ts +11 -0
- package/dist/types/components/ui/Drawer/index.d.ts +1 -0
- package/dist/types/components/ui/DropdownMenu/DropdownMenu.d.ts +21 -0
- package/dist/types/components/ui/DropdownMenu/index.d.ts +1 -0
- package/dist/types/components/ui/EmptyState/EmptyState.d.ts +7 -0
- package/dist/types/components/ui/EmptyState/index.d.ts +1 -0
- package/dist/types/components/ui/Field/Field.d.ts +12 -0
- package/dist/types/components/ui/Field/index.d.ts +1 -0
- package/dist/types/components/ui/FilterSelect/FilterSelect.d.ts +14 -0
- package/dist/types/components/ui/FilterSelect/index.d.ts +1 -0
- package/dist/types/components/ui/Form/Form.d.ts +31 -0
- package/dist/types/components/ui/Form/index.d.ts +1 -0
- package/dist/types/components/ui/HoverCard/HoverCard.d.ts +10 -0
- package/dist/types/components/ui/HoverCard/index.d.ts +1 -0
- package/dist/types/components/ui/Icon/Icon.d.ts +36 -0
- package/dist/types/components/ui/Icon/index.d.ts +1 -0
- package/dist/types/components/ui/InfoHeader/InfoHeader.d.ts +14 -0
- package/dist/types/components/ui/InfoHeader/index.d.ts +1 -0
- package/dist/types/components/ui/InfoTooltip/InfoTooltip.d.ts +5 -0
- package/dist/types/components/ui/InfoTooltip/index.d.ts +1 -0
- package/dist/types/components/ui/Input/Input.d.ts +7 -0
- package/dist/types/components/ui/Input/index.d.ts +1 -0
- package/dist/types/components/ui/InputGroup/InputGroup.d.ts +14 -0
- package/dist/types/components/ui/InputGroup/index.d.ts +1 -0
- package/dist/types/components/ui/Label/Label.d.ts +6 -0
- package/dist/types/components/ui/Label/index.d.ts +1 -0
- package/dist/types/components/ui/LegacySlider/Slider.d.ts +16 -0
- package/dist/types/components/ui/LegacySlider/index.d.ts +1 -0
- package/dist/types/components/ui/LegacyTabs/Tabs.d.ts +16 -0
- package/dist/types/components/ui/LegacyTabs/index.d.ts +1 -0
- package/dist/types/components/ui/LinkCard/LinkCard.d.ts +5 -0
- package/dist/types/components/ui/LinkCard/index.d.ts +1 -0
- package/dist/types/components/ui/Logo/Logo.d.ts +69 -0
- package/dist/types/components/ui/Logo/ProviderLogos.d.ts +69 -0
- package/dist/types/components/ui/Logo/index.d.ts +2 -0
- package/dist/types/components/ui/Menubar/Menubar.d.ts +67 -0
- package/dist/types/components/ui/Menubar/index.d.ts +1 -0
- package/dist/types/components/ui/Modal/Modal.d.ts +10 -0
- package/dist/types/components/ui/Modal/index.d.ts +1 -0
- package/dist/types/components/ui/ModelCard/ModelCard.d.ts +50 -0
- package/dist/types/components/ui/ModelCard/ModelSelector.d.ts +76 -0
- package/dist/types/components/ui/ModelCard/icons.d.ts +20 -0
- package/dist/types/components/ui/ModelCard/index.d.ts +2 -0
- package/dist/types/components/ui/NavigationMenu/NavigationMenu.d.ts +38 -0
- package/dist/types/components/ui/NavigationMenu/index.d.ts +1 -0
- package/dist/types/components/ui/Popover/Popover.d.ts +14 -0
- package/dist/types/components/ui/Popover/index.d.ts +1 -0
- package/dist/types/components/ui/Progress/Progress.d.ts +10 -0
- package/dist/types/components/ui/Progress/index.d.ts +1 -0
- package/dist/types/components/ui/ProgressBar/ProgressBar.d.ts +10 -0
- package/dist/types/components/ui/ProgressBar/index.d.ts +1 -0
- package/dist/types/components/ui/Radio/Radio.d.ts +8 -0
- package/dist/types/components/ui/Radio/RadioGroup.d.ts +3 -0
- package/dist/types/components/ui/RadioGroup/RadioGroup.d.ts +16 -0
- package/dist/types/components/ui/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/ui/ScrollArea/ScrollArea.d.ts +26 -0
- package/dist/types/components/ui/ScrollArea/index.d.ts +1 -0
- package/dist/types/components/ui/SegmentedControl/SegmentedControl.d.ts +14 -0
- package/dist/types/components/ui/SegmentedControl/index.d.ts +1 -0
- package/dist/types/components/ui/Select/Primitive/Select.d.ts +79 -0
- package/dist/types/components/ui/Select/Select.d.ts +29 -0
- package/dist/types/components/ui/Select/index.d.ts +1 -0
- package/dist/types/components/ui/Separator/Separator.d.ts +6 -0
- package/dist/types/components/ui/Separator/index.d.ts +1 -0
- package/dist/types/components/ui/SideNavigation/SideNavigation.d.ts +171 -0
- package/dist/types/components/ui/SideNavigation/index.d.ts +1 -0
- package/dist/types/components/ui/Skeleton/Skeleton.d.ts +4 -0
- package/dist/types/components/ui/Skeleton/index.d.ts +1 -0
- package/dist/types/components/ui/Slider/Slider.d.ts +21 -0
- package/dist/types/components/ui/Slider/index.d.ts +1 -0
- package/dist/types/components/ui/Spinner/Spinner.d.ts +5 -0
- package/dist/types/components/ui/Spinner/index.d.ts +1 -0
- package/dist/types/components/ui/Switch/Primitive/Switch.d.ts +11 -0
- package/dist/types/components/ui/Switch/Switch.d.ts +18 -0
- package/dist/types/components/ui/Switch/index.d.ts +1 -0
- package/dist/types/components/ui/Tabs/Tabs.d.ts +21 -0
- package/dist/types/components/ui/Tabs/index.d.ts +1 -0
- package/dist/types/components/ui/Text/Text.d.ts +16 -0
- package/dist/types/components/ui/Text/text-variants.d.ts +31 -0
- package/dist/types/components/ui/ThemeSwitch/ThemeSwitch.d.ts +9 -0
- package/dist/types/components/ui/ThemeSwitch/index.d.ts +1 -0
- package/dist/types/components/ui/Toast/Toast.d.ts +29 -0
- package/dist/types/components/ui/Toast/index.d.ts +1 -0
- package/dist/types/components/ui/Toggle/Toggle.d.ts +6 -0
- package/dist/types/components/ui/Toggle/index.d.ts +1 -0
- package/dist/types/components/ui/ToggleGroup/ToggleGroup.d.ts +16 -0
- package/dist/types/components/ui/ToggleGroup/index.d.ts +1 -0
- package/dist/types/components/ui/Tooltip/Tooltip.d.ts +27 -0
- package/dist/types/components/ui/Tooltip/index.d.ts +1 -0
- package/dist/types/components/ui/UIProvider/PortalHost.d.ts +1 -0
- package/dist/types/components/ui/UIProvider/UIProvider.d.ts +8 -0
- package/dist/types/components/ui/index.d.ts +56 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/workspace.css +25823 -0
- package/package.json +101 -5
- package/README.md +0 -3
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type ModelCategory = 'all' | 'reasoning' | 'coding' | 'multimodal' | 'speed';
|
|
3
|
+
export type ModelSortOption = 'recommended' | 'price-asc' | 'price-desc' | 'context' | 'speed';
|
|
4
|
+
/** Sorting keys shared by both the subscription and legacy model views. */
|
|
5
|
+
export type ShopSortOption = ModelSortOption;
|
|
6
|
+
export interface ShopCategoryOption {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
export type ShopBadgeVariant = 'accent' | 'neutral' | 'success' | 'warning';
|
|
11
|
+
/**
|
|
12
|
+
* Display-ready description of a credit-based subscription. Names, prices and
|
|
13
|
+
* allowances are supplied by the consumer; the component adds no domain logic.
|
|
14
|
+
*/
|
|
15
|
+
export interface ShopAccount {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
/** Upstream service name, e.g. the provider behind the subscription. */
|
|
19
|
+
provider: string;
|
|
20
|
+
providerIcon?: ReactNode;
|
|
21
|
+
category: string;
|
|
22
|
+
/** Static position price, e.g. "$12 / month". */
|
|
23
|
+
price: string;
|
|
24
|
+
/** Numeric price used only for sorting; defaults to a parse of `price`. */
|
|
25
|
+
priceValue?: number;
|
|
26
|
+
/** Display-ready billing term, e.g. "Monthly". */
|
|
27
|
+
term?: string;
|
|
28
|
+
badge?: string;
|
|
29
|
+
badgeVariant?: ShopBadgeVariant;
|
|
30
|
+
featured?: boolean;
|
|
31
|
+
/** Current subscription: the card offers management instead of purchase. */
|
|
32
|
+
active?: boolean;
|
|
33
|
+
/** Products can be listed but not purchasable yet. Defaults to true. */
|
|
34
|
+
available?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface ShopAccountCardProps {
|
|
37
|
+
account: ShopAccount;
|
|
38
|
+
onSubscribe?: (account: ShopAccount) => void;
|
|
39
|
+
onManage?: (account: ShopAccount) => void;
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ModelPricing {
|
|
43
|
+
input: string;
|
|
44
|
+
output: string;
|
|
45
|
+
unit?: string;
|
|
46
|
+
creditsPer1k?: number | string;
|
|
47
|
+
}
|
|
48
|
+
export interface MarketModel {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
provider: string;
|
|
52
|
+
providerIcon?: ReactNode;
|
|
53
|
+
category: ModelCategory;
|
|
54
|
+
description: string;
|
|
55
|
+
contextWindow: string;
|
|
56
|
+
latency: string;
|
|
57
|
+
pricing: ModelPricing;
|
|
58
|
+
credits?: string;
|
|
59
|
+
badge?: string;
|
|
60
|
+
badgeVariant?: ShopBadgeVariant;
|
|
61
|
+
subscribed?: boolean;
|
|
62
|
+
featured?: boolean;
|
|
63
|
+
popular?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/** Accepts both subscription categories and legacy model categories. */
|
|
66
|
+
export type ShopCategoryChangeHandler = ((category: string) => void) | ((category: ModelCategory) => void);
|
|
67
|
+
export interface ShopProps {
|
|
68
|
+
title?: string;
|
|
69
|
+
/** @deprecated The storefront no longer renders a subtitle. */
|
|
70
|
+
description?: string;
|
|
71
|
+
/** Credit-based subscriptions. When present, the subscription view is used. */
|
|
72
|
+
accounts?: readonly ShopAccount[];
|
|
73
|
+
/** Category tabs for the subscription view. */
|
|
74
|
+
categories?: readonly ShopCategoryOption[];
|
|
75
|
+
selectedCategory?: string;
|
|
76
|
+
onCategoryChange?: ShopCategoryChangeHandler;
|
|
77
|
+
searchQuery?: string;
|
|
78
|
+
onSearchChange?(query: string): void;
|
|
79
|
+
selectedProvider?: string;
|
|
80
|
+
onProviderChange?(provider: string): void;
|
|
81
|
+
sortBy?: ShopSortOption;
|
|
82
|
+
onSortChange?(sort: ShopSortOption): void;
|
|
83
|
+
onSubscribe?(item: ShopAccount | MarketModel): void;
|
|
84
|
+
/** Opens management for a subscription the customer already has. */
|
|
85
|
+
onManage?(account: ShopAccount): void;
|
|
86
|
+
/** @deprecated Money amounts live in the billing panel, not the storefront. */
|
|
87
|
+
balance?: string;
|
|
88
|
+
creditsBalance?: string | number;
|
|
89
|
+
onTopUp?(): void;
|
|
90
|
+
className?: string;
|
|
91
|
+
/** @deprecated Model-catalog view, kept for existing catalog screens. */
|
|
92
|
+
models?: readonly MarketModel[];
|
|
93
|
+
/** @deprecated Use `onManage` in the subscription view. */
|
|
94
|
+
onConfigure?(model: MarketModel): void;
|
|
95
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ShopAccountCardProps } from './Shop.types.js';
|
|
2
|
+
/** UI-only card for a credit-based subscription. Data and actions come from the consumer. */
|
|
3
|
+
export declare const ShopAccountCard: ({ account, onSubscribe, onManage, className, }: ShopAccountCardProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MarketModel } from './Shop.types.js';
|
|
2
|
+
export interface ShopCardProps {
|
|
3
|
+
model: MarketModel;
|
|
4
|
+
onSubscribe?: (model: MarketModel) => void;
|
|
5
|
+
onConfigure?: (model: MarketModel) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ShopCard: ({ model, onSubscribe, onConfigure, className, }: ShopCardProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface SupportMessage {
|
|
3
|
+
id: string;
|
|
4
|
+
author: string;
|
|
5
|
+
role: 'customer' | 'support';
|
|
6
|
+
/** ISO timestamp, used by the semantic time element. */
|
|
7
|
+
createdAt: string;
|
|
8
|
+
/** Display-ready, localized timestamp. */
|
|
9
|
+
timeLabel: string;
|
|
10
|
+
body: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SupportTicket {
|
|
13
|
+
id: string;
|
|
14
|
+
subject: string;
|
|
15
|
+
status: 'active' | 'resolved';
|
|
16
|
+
updatedLabel: string;
|
|
17
|
+
preview: string;
|
|
18
|
+
unread?: boolean;
|
|
19
|
+
context?: string;
|
|
20
|
+
messages: readonly SupportMessage[];
|
|
21
|
+
}
|
|
22
|
+
export interface SupportDraft {
|
|
23
|
+
subject: string;
|
|
24
|
+
message: string;
|
|
25
|
+
}
|
|
26
|
+
export interface SupportProps {
|
|
27
|
+
tickets: readonly SupportTicket[];
|
|
28
|
+
initialView?: 'Active' | 'Archive' | 'New ticket';
|
|
29
|
+
initialTicketId?: string;
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
error?: string;
|
|
32
|
+
/** Resolve only once the service has accepted the request; reject on failure. */
|
|
33
|
+
onCreateTicket?: (draft: SupportDraft) => Promise<void>;
|
|
34
|
+
onReply?: (ticketId: string, message: string) => Promise<void>;
|
|
35
|
+
onRate?: (ticketId: string, rating: number) => Promise<void>;
|
|
36
|
+
onClose?: () => void;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface SupportDialogProps extends SupportProps {
|
|
40
|
+
open?: boolean;
|
|
41
|
+
defaultOpen?: boolean;
|
|
42
|
+
onOpenChange?: (open: boolean) => void;
|
|
43
|
+
trigger?: ReactNode;
|
|
44
|
+
dialogTitle?: string;
|
|
45
|
+
}
|
|
46
|
+
/** A two-pane support inbox. Ticket data and persistence belong to the consumer. */
|
|
47
|
+
export declare function Support({ tickets, initialView, initialTicketId, loading, error, onCreateTicket, onReply, onRate, onClose, className, }: SupportProps): import("react").JSX.Element;
|
|
48
|
+
/** Support inbox presented in the shared Dialog as a bottom-right floating widget. */
|
|
49
|
+
export declare function SupportDialog({ open, defaultOpen, onOpenChange, trigger, dialogTitle, ...supportProps }: SupportDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UsageList.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface ProviderProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
3
|
+
/** Provider display name. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Workspace icon key (see RouterPlusIcon / WorkspaceIcons). */
|
|
6
|
+
icon?: string;
|
|
7
|
+
/** Optional detail shown as the button title. */
|
|
8
|
+
detail?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Single provider tile used in provider selection lists. */
|
|
11
|
+
export declare function Provider({ name, icon, detail, className, type, ...props }: ProviderProps): import("react").JSX.Element;
|
|
12
|
+
export type ProviderLogoSize = 'sm' | 'md' | 'lg';
|
|
13
|
+
export interface ProviderLogoProps extends Omit<ComponentPropsWithoutRef<'span'>, 'children'> {
|
|
14
|
+
/** Provider display name shown beside the logo. */
|
|
15
|
+
name?: string;
|
|
16
|
+
/** Workspace icon key (see RouterPlusIcon / WorkspaceIcons). */
|
|
17
|
+
icon?: string;
|
|
18
|
+
/** Show the icon box before the name. */
|
|
19
|
+
showIcon?: boolean;
|
|
20
|
+
/** Visual size of the logo. */
|
|
21
|
+
size?: ProviderLogoSize;
|
|
22
|
+
}
|
|
23
|
+
/** Provider logo mark with its name alongside it. */
|
|
24
|
+
export declare function ProviderLogo({ name, icon, showIcon, size, className, style, ...props }: ProviderLogoProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
/** Load the scoped workspace.css stylesheet alongside these presentation components. */
|
|
3
|
+
export type RouterPlusPage = 'agents' | 'sessions' | 'library' | 'connection' | 'balance' | 'usage' | 'settings';
|
|
4
|
+
export type RouterPlusLoadState = {
|
|
5
|
+
status?: 'ready' | 'loading' | 'error';
|
|
6
|
+
error?: string;
|
|
7
|
+
onRetry?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type RouterPlusShellProps = {
|
|
10
|
+
page: RouterPlusPage;
|
|
11
|
+
theme?: 'light' | 'dark';
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
onNavigate?: (page: RouterPlusPage) => void;
|
|
14
|
+
onRefresh?: () => void;
|
|
15
|
+
refreshing?: boolean;
|
|
16
|
+
usageSection?: string;
|
|
17
|
+
usageSections?: readonly string[];
|
|
18
|
+
onUsageSectionChange?: (section: string) => void;
|
|
19
|
+
notice?: ReactNode;
|
|
20
|
+
headerActions?: ReactNode;
|
|
21
|
+
sidebarFooter?: ReactNode;
|
|
22
|
+
beforeContent?: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export declare function RouterPlusShell({ page, theme, children, onNavigate, onRefresh, refreshing, usageSection, usageSections, onUsageSectionChange, notice, headerActions, sidebarFooter, beforeContent, }: RouterPlusShellProps): React.JSX.Element;
|
|
25
|
+
export type RouterPlusProvider = {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
icon?: string;
|
|
29
|
+
detail?: string;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type RouterPlusProviderGroup = {
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
35
|
+
hint?: string;
|
|
36
|
+
providers: readonly RouterPlusProvider[];
|
|
37
|
+
};
|
|
38
|
+
export type RouterPlusProviderListProps = RouterPlusLoadState & {
|
|
39
|
+
groups: readonly RouterPlusProviderGroup[];
|
|
40
|
+
query: string;
|
|
41
|
+
onQueryChange: (query: string) => void;
|
|
42
|
+
onSelect?: (provider: RouterPlusProvider) => void;
|
|
43
|
+
onImport?: () => void;
|
|
44
|
+
onCustomProvider?: () => void;
|
|
45
|
+
onPlugins?: () => void;
|
|
46
|
+
hasProviders?: boolean;
|
|
47
|
+
};
|
|
48
|
+
export declare function RouterPlusProviderList({ groups, query, onQueryChange, onSelect, onImport, onCustomProvider, onPlugins, hasProviders, status, error, onRetry, }: RouterPlusProviderListProps): React.JSX.Element;
|
|
49
|
+
export type RouterPlusHarnessField = {
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
value: string;
|
|
53
|
+
options: readonly {
|
|
54
|
+
value: string;
|
|
55
|
+
label: string;
|
|
56
|
+
}[];
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
};
|
|
59
|
+
export type RouterPlusHarness = {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
icon?: string;
|
|
63
|
+
version?: string;
|
|
64
|
+
state: 'missing' | 'needs-connection' | 'disconnected' | 'connected';
|
|
65
|
+
fields?: readonly RouterPlusHarnessField[];
|
|
66
|
+
detail?: string;
|
|
67
|
+
pending?: boolean;
|
|
68
|
+
};
|
|
69
|
+
export type RouterPlusHarnessMappingProps = RouterPlusLoadState & {
|
|
70
|
+
agents: readonly RouterPlusHarness[];
|
|
71
|
+
endpoint?: string;
|
|
72
|
+
onCopyEndpoint?: () => void;
|
|
73
|
+
onOpenConnection?: () => void;
|
|
74
|
+
onToggle?: (agentId: string, connected: boolean) => void;
|
|
75
|
+
onMappingChange?: (agentId: string, fieldId: string, value: string) => void;
|
|
76
|
+
showGuide?: boolean;
|
|
77
|
+
onDismissGuide?: () => void;
|
|
78
|
+
connectionReady?: boolean;
|
|
79
|
+
onSaveProfile?: () => void;
|
|
80
|
+
profileLabel?: string;
|
|
81
|
+
onManage?: () => void;
|
|
82
|
+
onInstall?: () => void;
|
|
83
|
+
installCount?: number;
|
|
84
|
+
};
|
|
85
|
+
export declare function RouterPlusHarnessMapping({ agents, endpoint, onCopyEndpoint, onOpenConnection, onToggle, onMappingChange, showGuide, onDismissGuide, connectionReady, onSaveProfile, profileLabel, onManage, onInstall, installCount, status, error, onRetry, }: RouterPlusHarnessMappingProps): React.JSX.Element;
|
|
86
|
+
export type RouterPlusUsagePeriod = 'Today' | '7 days' | '30 days' | 'All' | 'Custom';
|
|
87
|
+
export type RouterPlusUsageData = {
|
|
88
|
+
calls: number;
|
|
89
|
+
errors: number;
|
|
90
|
+
input: number;
|
|
91
|
+
output: number;
|
|
92
|
+
cost: string;
|
|
93
|
+
series: readonly {
|
|
94
|
+
label: string;
|
|
95
|
+
calls: number;
|
|
96
|
+
}[];
|
|
97
|
+
};
|
|
98
|
+
export type RouterPlusUsageSummaryProps = RouterPlusLoadState & {
|
|
99
|
+
period: RouterPlusUsagePeriod;
|
|
100
|
+
onPeriodChange?: (period: RouterPlusUsagePeriod) => void;
|
|
101
|
+
data: RouterPlusUsageData | null;
|
|
102
|
+
onRefresh?: () => void;
|
|
103
|
+
refreshInterval?: string;
|
|
104
|
+
onRefreshIntervalChange?: (interval: string) => void;
|
|
105
|
+
customRange?: {
|
|
106
|
+
from: string;
|
|
107
|
+
to: string;
|
|
108
|
+
};
|
|
109
|
+
onCustomRangeChange?: (range: {
|
|
110
|
+
from: string;
|
|
111
|
+
to: string;
|
|
112
|
+
}) => void;
|
|
113
|
+
};
|
|
114
|
+
export declare function RouterPlusUsageSummary({ period, onPeriodChange, data, onRefresh, refreshInterval, onRefreshIntervalChange, customRange, onCustomRangeChange, status, error, onRetry, }: RouterPlusUsageSummaryProps): React.JSX.Element;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LucideIcon } from 'lucide-react';
|
|
3
|
+
export declare const icons: {
|
|
4
|
+
'codex-color': {
|
|
5
|
+
url: string;
|
|
6
|
+
mask: boolean;
|
|
7
|
+
};
|
|
8
|
+
zed: {
|
|
9
|
+
url: string;
|
|
10
|
+
mask: boolean;
|
|
11
|
+
};
|
|
12
|
+
omp: {
|
|
13
|
+
url: string;
|
|
14
|
+
mask: boolean;
|
|
15
|
+
};
|
|
16
|
+
raycast: {
|
|
17
|
+
url: string;
|
|
18
|
+
mask: boolean;
|
|
19
|
+
};
|
|
20
|
+
'claudecode-color': {
|
|
21
|
+
url: string;
|
|
22
|
+
mask: boolean;
|
|
23
|
+
};
|
|
24
|
+
'claude-color': {
|
|
25
|
+
url: string;
|
|
26
|
+
mask: boolean;
|
|
27
|
+
};
|
|
28
|
+
openai: {
|
|
29
|
+
url: string;
|
|
30
|
+
mask: boolean;
|
|
31
|
+
};
|
|
32
|
+
githubcopilot: {
|
|
33
|
+
url: string;
|
|
34
|
+
mask: boolean;
|
|
35
|
+
};
|
|
36
|
+
'geminicli-color': {
|
|
37
|
+
url: string;
|
|
38
|
+
mask: boolean;
|
|
39
|
+
};
|
|
40
|
+
'antigravity-color': {
|
|
41
|
+
url: string;
|
|
42
|
+
mask: boolean;
|
|
43
|
+
};
|
|
44
|
+
'gemini-color': {
|
|
45
|
+
url: string;
|
|
46
|
+
mask: boolean;
|
|
47
|
+
};
|
|
48
|
+
'vertexai-color': {
|
|
49
|
+
url: string;
|
|
50
|
+
mask: boolean;
|
|
51
|
+
};
|
|
52
|
+
'deepseek-color': {
|
|
53
|
+
url: string;
|
|
54
|
+
mask: boolean;
|
|
55
|
+
};
|
|
56
|
+
xai: {
|
|
57
|
+
url: string;
|
|
58
|
+
mask: boolean;
|
|
59
|
+
};
|
|
60
|
+
kimi: {
|
|
61
|
+
url: string;
|
|
62
|
+
mask: boolean;
|
|
63
|
+
};
|
|
64
|
+
'zhipu-color': {
|
|
65
|
+
url: string;
|
|
66
|
+
mask: boolean;
|
|
67
|
+
};
|
|
68
|
+
zai: {
|
|
69
|
+
url: string;
|
|
70
|
+
mask: boolean;
|
|
71
|
+
};
|
|
72
|
+
'minimax-color': {
|
|
73
|
+
url: string;
|
|
74
|
+
mask: boolean;
|
|
75
|
+
};
|
|
76
|
+
'stepfun-color': {
|
|
77
|
+
url: string;
|
|
78
|
+
mask: boolean;
|
|
79
|
+
};
|
|
80
|
+
mimocode: {
|
|
81
|
+
url: string;
|
|
82
|
+
mask: boolean;
|
|
83
|
+
};
|
|
84
|
+
longcat: {
|
|
85
|
+
url: string;
|
|
86
|
+
mask: boolean;
|
|
87
|
+
};
|
|
88
|
+
'baiducloud-color': {
|
|
89
|
+
url: string;
|
|
90
|
+
mask: boolean;
|
|
91
|
+
};
|
|
92
|
+
'tencentcloud-color': {
|
|
93
|
+
url: string;
|
|
94
|
+
mask: boolean;
|
|
95
|
+
};
|
|
96
|
+
'huaweicloud-color': {
|
|
97
|
+
url: string;
|
|
98
|
+
mask: boolean;
|
|
99
|
+
};
|
|
100
|
+
'volcengine-color': {
|
|
101
|
+
url: string;
|
|
102
|
+
mask: boolean;
|
|
103
|
+
};
|
|
104
|
+
'qwen-color': {
|
|
105
|
+
url: string;
|
|
106
|
+
mask: boolean;
|
|
107
|
+
};
|
|
108
|
+
'bailian-color': {
|
|
109
|
+
url: string;
|
|
110
|
+
mask: boolean;
|
|
111
|
+
};
|
|
112
|
+
'mistral-color': {
|
|
113
|
+
url: string;
|
|
114
|
+
mask: boolean;
|
|
115
|
+
};
|
|
116
|
+
groq: {
|
|
117
|
+
url: string;
|
|
118
|
+
mask: boolean;
|
|
119
|
+
};
|
|
120
|
+
'bedrock-color': {
|
|
121
|
+
url: string;
|
|
122
|
+
mask: boolean;
|
|
123
|
+
};
|
|
124
|
+
'azure-color': {
|
|
125
|
+
url: string;
|
|
126
|
+
mask: boolean;
|
|
127
|
+
};
|
|
128
|
+
ollama: {
|
|
129
|
+
url: string;
|
|
130
|
+
mask: boolean;
|
|
131
|
+
};
|
|
132
|
+
nousresearch: {
|
|
133
|
+
url: string;
|
|
134
|
+
mask: boolean;
|
|
135
|
+
};
|
|
136
|
+
typesafe: {
|
|
137
|
+
url: string;
|
|
138
|
+
mask: boolean;
|
|
139
|
+
};
|
|
140
|
+
openrouter: {
|
|
141
|
+
url: string;
|
|
142
|
+
mask: boolean;
|
|
143
|
+
};
|
|
144
|
+
opencode: {
|
|
145
|
+
url: string;
|
|
146
|
+
mask: boolean;
|
|
147
|
+
};
|
|
148
|
+
cline: {
|
|
149
|
+
url: string;
|
|
150
|
+
mask: boolean;
|
|
151
|
+
};
|
|
152
|
+
kilo: {
|
|
153
|
+
url: string;
|
|
154
|
+
mask: boolean;
|
|
155
|
+
};
|
|
156
|
+
commandcode: {
|
|
157
|
+
url: string;
|
|
158
|
+
mask: boolean;
|
|
159
|
+
};
|
|
160
|
+
'together-color': {
|
|
161
|
+
url: string;
|
|
162
|
+
mask: boolean;
|
|
163
|
+
};
|
|
164
|
+
'fireworks-color': {
|
|
165
|
+
url: string;
|
|
166
|
+
mask: boolean;
|
|
167
|
+
};
|
|
168
|
+
'siliconcloud-color': {
|
|
169
|
+
url: string;
|
|
170
|
+
mask: boolean;
|
|
171
|
+
};
|
|
172
|
+
'nvidia-color': {
|
|
173
|
+
url: string;
|
|
174
|
+
mask: boolean;
|
|
175
|
+
};
|
|
176
|
+
'modelscope-color': {
|
|
177
|
+
url: string;
|
|
178
|
+
mask: boolean;
|
|
179
|
+
};
|
|
180
|
+
'aihubmix-color': {
|
|
181
|
+
url: string;
|
|
182
|
+
mask: boolean;
|
|
183
|
+
};
|
|
184
|
+
'pipellm-color': {
|
|
185
|
+
url: string;
|
|
186
|
+
mask: boolean;
|
|
187
|
+
};
|
|
188
|
+
'ai302-color': {
|
|
189
|
+
url: string;
|
|
190
|
+
mask: boolean;
|
|
191
|
+
};
|
|
192
|
+
'cherryin-color': {
|
|
193
|
+
url: string;
|
|
194
|
+
mask: boolean;
|
|
195
|
+
};
|
|
196
|
+
yylx: {
|
|
197
|
+
url: string;
|
|
198
|
+
mask: boolean;
|
|
199
|
+
};
|
|
200
|
+
vercel: {
|
|
201
|
+
url: string;
|
|
202
|
+
mask: boolean;
|
|
203
|
+
};
|
|
204
|
+
'cloudflare-color': {
|
|
205
|
+
url: string;
|
|
206
|
+
mask: boolean;
|
|
207
|
+
};
|
|
208
|
+
lmstudio: {
|
|
209
|
+
url: string;
|
|
210
|
+
mask: boolean;
|
|
211
|
+
};
|
|
212
|
+
omlx: {
|
|
213
|
+
url: string;
|
|
214
|
+
mask: boolean;
|
|
215
|
+
};
|
|
216
|
+
'mlx-serve': {
|
|
217
|
+
url: string;
|
|
218
|
+
mask: boolean;
|
|
219
|
+
};
|
|
220
|
+
metamuse: {
|
|
221
|
+
url: string;
|
|
222
|
+
mask: boolean;
|
|
223
|
+
};
|
|
224
|
+
xiaomimimo: {
|
|
225
|
+
url: string;
|
|
226
|
+
mask: boolean;
|
|
227
|
+
};
|
|
228
|
+
'workersai-color': {
|
|
229
|
+
url: string;
|
|
230
|
+
mask: boolean;
|
|
231
|
+
};
|
|
232
|
+
figma: {
|
|
233
|
+
url: string;
|
|
234
|
+
mask: boolean;
|
|
235
|
+
};
|
|
236
|
+
'figma-color': {
|
|
237
|
+
url: string;
|
|
238
|
+
mask: boolean;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
export declare const glyphs: Record<string, LucideIcon>;
|
|
242
|
+
export declare const routerPlusLogo = "data:image/png;base64,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";
|
|
243
|
+
export declare function RouterPlusGlyph({ name }: {
|
|
244
|
+
name: string;
|
|
245
|
+
}): React.JSX.Element | null;
|
|
246
|
+
export declare function RouterPlusIcon({ name }: {
|
|
247
|
+
name?: string;
|
|
248
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export * from './Workspace/CustomerDashboard.js';
|
|
2
|
+
export * from './Workspace/RouterPlusWorkspace.js';
|
|
3
|
+
export * from './Workspace/Provider.js';
|
|
4
|
+
export * from './Workspace/WorkspaceIcons.js';
|
|
5
|
+
export * from './Support/index.js';
|
|
6
|
+
export * from './Billing/index.js';
|
|
7
|
+
export * from './BarChart/index.js';
|
|
8
|
+
export * from './Heatmap/index.js';
|
|
9
|
+
export * from './MetricStrip/index.js';
|
|
10
|
+
export * from './Panel/index.js';
|
|
11
|
+
export * from './Ranking/index.js';
|
|
12
|
+
export * from './RequestTable/index.js';
|
|
13
|
+
export * from './SessionShape/index.js';
|
|
14
|
+
export * from './UsageList/index.js';
|
|
15
|
+
export * from './Effects/BackgroundPlus.js';
|
|
16
|
+
export * from './Effects/PlusField.js';
|
|
17
|
+
export * from './Effects/BackgroundCursor.js';
|
|
18
|
+
export * from './Effects/BackgroundLineField.js';
|
|
19
|
+
export * from './Effects/BackgroundDotted.js';
|
|
20
|
+
export * from './Effects/BackgroundSquare.js';
|
|
21
|
+
export * from './Effects/BrandIntro.js';
|
|
22
|
+
export * from './Effects/EffectCard.js';
|
|
23
|
+
export * from './Effects/ThemeTransition.js';
|
|
24
|
+
export * from './Effects/blast.js';
|
|
25
|
+
export * from './AlertDialog/index.js';
|
|
26
|
+
export * from './Shop/index.js';
|
|
27
|
+
export * from './AuthCard/index.js';
|
|
28
|
+
export * from './Footer/index.js';
|
|
29
|
+
export * from './Header/index.js';
|
|
30
|
+
export * from '../ui/SideNavigation/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ThemeContext: import("react").Context<"light" | "dark">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export type AccordionProps = ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & {
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
/** Vertically stacked disclosure sections. */
|
|
7
|
+
export declare const Accordion: ({ className, ...rest }: AccordionProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const AccordionItem: ({ className, ...rest }: AccordionPrimitive.AccordionItemProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const AccordionHeader: ({ className, ...rest }: AccordionPrimitive.AccordionHeaderProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const AccordionTrigger: ({ className, ...rest }: AccordionPrimitive.AccordionTriggerProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const AccordionContent: ({ className, ...rest }: AccordionPrimitive.AccordionContentProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Accordion.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
export interface AvatarProps extends AvatarPrimitive.AvatarProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface AvatarImageProps extends AvatarPrimitive.AvatarImageProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AvatarFallbackProps extends AvatarPrimitive.AvatarFallbackProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Circular user image with a tokenized fallback while it loads. */
|
|
12
|
+
export declare const Avatar: ({ className, ...rest }: AvatarProps) => import("react").JSX.Element;
|
|
13
|
+
export declare const AvatarImage: ({ className, ...rest }: AvatarImageProps) => import("react").JSX.Element;
|
|
14
|
+
export declare const AvatarFallback: ({ className, ...rest }: AvatarFallbackProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Avatar.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type BadgeVariant = 'accent' | 'neutral' | 'success' | 'warning';
|
|
3
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
variant?: BadgeVariant;
|
|
5
|
+
}
|
|
6
|
+
/** Compact status label. Tints its text from the status hue, never gray. */
|
|
7
|
+
export declare function Badge({ variant, className, children, ...props }: BadgeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge, type BadgeProps, type BadgeVariant } from './Badge.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Brand.js';
|