@plusrouter/ui 0.0.0-stage → 0.1.7
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-lxVuUhdx.js +5978 -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 +96 -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,171 @@
|
|
|
1
|
+
import { type CSSProperties, type DragEvent, type MouseEvent, type ReactNode } from 'react';
|
|
2
|
+
export interface SideNavigationProps {
|
|
3
|
+
/** The header, scroll area and footer. Omit when loading. */
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
/** Accessible name of the navigation landmark. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Show the icon-only rail: group names and row text stay in the tree for assistive technology. */
|
|
8
|
+
collapsed?: boolean;
|
|
9
|
+
/** Replace the contents with placeholder rows while the navigation is loading. */
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
/** Controlled width in pixels. Omit to let the sidebar keep its own width. */
|
|
12
|
+
width?: number;
|
|
13
|
+
/** Width used before the reader drags the edge. */
|
|
14
|
+
defaultWidth?: number;
|
|
15
|
+
/** Narrowest width the edge may be dragged to. */
|
|
16
|
+
minWidth?: number;
|
|
17
|
+
/** Widest width the edge may be dragged to. */
|
|
18
|
+
maxWidth?: number;
|
|
19
|
+
/** Let the reader drag the right edge, as a Mac app's sidebar does. */
|
|
20
|
+
resizable?: boolean;
|
|
21
|
+
/** Called as the width changes, including during a drag. */
|
|
22
|
+
onWidthChange?: (width: number) => void;
|
|
23
|
+
/** Called once a drag or keyboard resize has finished. */
|
|
24
|
+
onResizeEnd?: (width: number) => void;
|
|
25
|
+
/** Accessible name of the resize handle. */
|
|
26
|
+
resizerLabel?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: CSSProperties;
|
|
29
|
+
/** Localizable announcement while placeholder rows are shown. */
|
|
30
|
+
loadingLabel?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The application's primary side navigation: grouped pages, an optional
|
|
34
|
+
* sub-navigation for the open page, and a footer for settings. Ported from
|
|
35
|
+
* magpie's source list and expressed with RouterPlus tokens.
|
|
36
|
+
*/
|
|
37
|
+
export declare const SideNavigation: ({ children, label, collapsed, loading, width, defaultWidth, minWidth, maxWidth, resizable, onWidthChange, onResizeEnd, resizerLabel, className, style, loadingLabel, }: SideNavigationProps) => import("react").JSX.Element;
|
|
38
|
+
export interface SideNavigationHeaderProps {
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
/** The bar at the top of the sidebar: the collapse button and the product mark. */
|
|
43
|
+
export declare const SideNavigationHeader: ({ children, className, }: SideNavigationHeaderProps) => import("react").JSX.Element;
|
|
44
|
+
export interface SideNavigationBrandProps {
|
|
45
|
+
/** The product mark, drawn at 18×18. */
|
|
46
|
+
icon?: ReactNode;
|
|
47
|
+
/** The product name, kept for screen readers while the rail is collapsed. */
|
|
48
|
+
name: ReactNode;
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare const SideNavigationBrand: ({ icon, name, className, }: SideNavigationBrandProps) => import("react").JSX.Element;
|
|
52
|
+
export interface SideNavigationToggleProps {
|
|
53
|
+
/** Whether the rail is collapsed now. */
|
|
54
|
+
collapsed: boolean;
|
|
55
|
+
onToggle: () => void;
|
|
56
|
+
className?: string;
|
|
57
|
+
/** Accessible name used while the sidebar is open. */
|
|
58
|
+
collapseLabel?: string;
|
|
59
|
+
/** Accessible name used while the sidebar is collapsed. */
|
|
60
|
+
expandLabel?: string;
|
|
61
|
+
}
|
|
62
|
+
/** The panel button that switches between the full sidebar and the icon rail. */
|
|
63
|
+
export declare const SideNavigationToggle: ({ collapsed, onToggle, className, collapseLabel, expandLabel, }: SideNavigationToggleProps) => import("react").JSX.Element;
|
|
64
|
+
export interface SideNavigationScrollProps {
|
|
65
|
+
children: ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
/** The scrolling region that holds the page groups. */
|
|
69
|
+
export declare const SideNavigationScroll: ({ children, className, }: SideNavigationScrollProps) => import("react").JSX.Element;
|
|
70
|
+
export interface SideNavigationSectionProps {
|
|
71
|
+
/** The quiet name over the group, such as Work or Models. */
|
|
72
|
+
label?: ReactNode;
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
export declare const SideNavigationSection: ({ label, children, className, }: SideNavigationSectionProps) => import("react").JSX.Element;
|
|
77
|
+
export type SideNavigationExpandDirection = 'down' | 'up';
|
|
78
|
+
export interface SideNavigationItemProps {
|
|
79
|
+
/** The row's text; also its accessible name. */
|
|
80
|
+
label: ReactNode;
|
|
81
|
+
/** A 16×16 mark shown before the text. */
|
|
82
|
+
icon?: ReactNode;
|
|
83
|
+
/** A count or short status at the row's end. */
|
|
84
|
+
badge?: ReactNode;
|
|
85
|
+
/** An attention dot at the row's end. */
|
|
86
|
+
dot?: boolean;
|
|
87
|
+
/** What the dot means, announced after the label. */
|
|
88
|
+
dotLabel?: string;
|
|
89
|
+
/** The open page: marked with the card surface and aria-current. */
|
|
90
|
+
current?: boolean;
|
|
91
|
+
disabled?: boolean;
|
|
92
|
+
/** Renders an anchor instead of a button. */
|
|
93
|
+
href?: string;
|
|
94
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
95
|
+
/** The row folds a sub-navigation, so it shows a chevron. */
|
|
96
|
+
expandable?: boolean;
|
|
97
|
+
/** Whether that sub-navigation is showing. */
|
|
98
|
+
expanded?: boolean;
|
|
99
|
+
/** ID of the sub-navigation controlled by this disclosure. */
|
|
100
|
+
controls?: string;
|
|
101
|
+
/** Which way the chevron turns when the list opens. */
|
|
102
|
+
expandDirection?: SideNavigationExpandDirection;
|
|
103
|
+
/** Native tooltip, useful in the collapsed rail. */
|
|
104
|
+
title?: string;
|
|
105
|
+
/** Makes the row a native drag source, as magpie's plugin pages are. */
|
|
106
|
+
draggable?: boolean;
|
|
107
|
+
/** Draws the lifted card while the row is being dragged. */
|
|
108
|
+
dragging?: boolean;
|
|
109
|
+
onDragStart?: (event: DragEvent<HTMLElement>) => void;
|
|
110
|
+
onDragEnd?: (event: DragEvent<HTMLElement>) => void;
|
|
111
|
+
className?: string;
|
|
112
|
+
}
|
|
113
|
+
export declare const SideNavigationItem: ({ label, icon, badge, dot, dotLabel, current, disabled, href, onClick, expandable, expanded, controls, expandDirection, title, draggable, dragging, onDragStart, onDragEnd, className, }: SideNavigationItemProps) => import("react").JSX.Element;
|
|
114
|
+
export interface SideNavigationSubNavProps {
|
|
115
|
+
id?: string;
|
|
116
|
+
/** Accessible name of the list, usually the open page's name. */
|
|
117
|
+
label: string;
|
|
118
|
+
children: ReactNode;
|
|
119
|
+
className?: string;
|
|
120
|
+
}
|
|
121
|
+
/** The open page's own tabs, indented under its row on a thin line. */
|
|
122
|
+
export declare const SideNavigationSubNav: ({ id, label, children, className, }: SideNavigationSubNavProps) => import("react").JSX.Element;
|
|
123
|
+
export interface SideNavigationSubItemProps {
|
|
124
|
+
label: ReactNode;
|
|
125
|
+
icon?: ReactNode;
|
|
126
|
+
/** A count at the row's end. */
|
|
127
|
+
count?: ReactNode;
|
|
128
|
+
/** Colour the count as an update waiting. */
|
|
129
|
+
update?: boolean;
|
|
130
|
+
current?: boolean;
|
|
131
|
+
disabled?: boolean;
|
|
132
|
+
href?: string;
|
|
133
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
134
|
+
className?: string;
|
|
135
|
+
}
|
|
136
|
+
export declare const SideNavigationSubItem: ({ label, icon, count, update, current, disabled, href, onClick, className, }: SideNavigationSubItemProps) => import("react").JSX.Element;
|
|
137
|
+
export interface SideNavigationEmptyProps {
|
|
138
|
+
/** A quiet mark above the message. */
|
|
139
|
+
icon?: ReactNode;
|
|
140
|
+
title: ReactNode;
|
|
141
|
+
description?: ReactNode;
|
|
142
|
+
/** An action such as a button or link. */
|
|
143
|
+
action?: ReactNode;
|
|
144
|
+
className?: string;
|
|
145
|
+
}
|
|
146
|
+
/** What the sidebar shows when there are no pages to list. */
|
|
147
|
+
export declare const SideNavigationEmpty: ({ icon, title, description, action, className, }: SideNavigationEmptyProps) => import("react").JSX.Element;
|
|
148
|
+
export type SideNavigationStatusTone = 'neutral' | 'online' | 'offline' | 'pending';
|
|
149
|
+
export interface SideNavigationStatusProps {
|
|
150
|
+
/** The status line's text, such as a gateway address. */
|
|
151
|
+
label: ReactNode;
|
|
152
|
+
/** The dot's colour: running, stopped, starting or neutral. */
|
|
153
|
+
tone?: SideNavigationStatusTone;
|
|
154
|
+
/** What the dot means, read after the label. */
|
|
155
|
+
statusLabel?: string;
|
|
156
|
+
href?: string;
|
|
157
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
158
|
+
title?: string;
|
|
159
|
+
className?: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A quiet status row for the foot of the sidebar, after magpie's gateway
|
|
163
|
+
* line: a dot and where the service listens.
|
|
164
|
+
*/
|
|
165
|
+
export declare const SideNavigationStatus: ({ label, tone, statusLabel, href, onClick, title, className, }: SideNavigationStatusProps) => import("react").JSX.Element;
|
|
166
|
+
export interface SideNavigationFooterProps {
|
|
167
|
+
children: ReactNode;
|
|
168
|
+
className?: string;
|
|
169
|
+
}
|
|
170
|
+
/** The foot of the sidebar, over a hairline: settings and the open list of them. */
|
|
171
|
+
export declare const SideNavigationFooter: ({ children, className, }: SideNavigationFooterProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SideNavigation.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Skeleton.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
2
|
+
export interface SliderProps extends SliderPrimitive.SliderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SliderTrackProps extends SliderPrimitive.SliderTrackProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SliderRangeProps extends SliderPrimitive.SliderRangeProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SliderThumbProps extends SliderPrimitive.SliderThumbProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Accessible range input built from a track, filled range and thumbs. */
|
|
15
|
+
export declare const Slider: ({ className, ...rest }: SliderProps) => import("react").JSX.Element;
|
|
16
|
+
/** The static groove the thumbs slide along. */
|
|
17
|
+
export declare const SliderTrack: ({ className, ...rest }: SliderTrackProps) => import("react").JSX.Element;
|
|
18
|
+
/** The accent-coloured segment between the current values. */
|
|
19
|
+
export declare const SliderRange: ({ className, ...rest }: SliderRangeProps) => import("react").JSX.Element;
|
|
20
|
+
/** A draggable handle; render one per value. */
|
|
21
|
+
export declare const SliderThumb: ({ className, ...rest }: SliderThumbProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slider.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
2
|
+
export interface SwitchProps extends SwitchPrimitive.SwitchProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SwitchThumbProps extends SwitchPrimitive.SwitchThumbProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/** On/off control built from the accent and surface tokens. */
|
|
9
|
+
export declare const Switch: ({ className, ...rest }: SwitchProps) => import("react").JSX.Element;
|
|
10
|
+
/** Moving knob inside a Switch. */
|
|
11
|
+
export declare const SwitchThumb: ({ className, ...rest }: SwitchThumbProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type SwitchProps as PrimitiveSwitchProps } from './Primitive/Switch.js';
|
|
3
|
+
export type SwitchSize = 'sm' | 'md';
|
|
4
|
+
export interface SwitchProps extends Omit<PrimitiveSwitchProps, 'checked' | 'onCheckedChange' | 'disabled' | 'className'> {
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onCheckedChange: (checked: boolean) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Visible label. Omit it when the switch is named another way, such as an
|
|
9
|
+
* `aria-label` beside a card's title.
|
|
10
|
+
*/
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
/** `md` is the roomier touch size used in cards. */
|
|
15
|
+
size?: SwitchSize;
|
|
16
|
+
}
|
|
17
|
+
/** Labelled switch built on the styled Radix Switch primitive. */
|
|
18
|
+
export declare const Switch: ({ checked, onCheckedChange, label, disabled, className, size, ...rest }: SwitchProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Switch.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
+
export interface TabsProps extends TabsPrimitive.TabsProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TabsListProps extends TabsPrimitive.TabsListProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TabsTriggerProps extends TabsPrimitive.TabsTriggerProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TabsContentProps extends TabsPrimitive.TabsContentProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Tabbed container with a list of triggers and matching panels. */
|
|
15
|
+
export declare const Tabs: ({ className, ...rest }: TabsProps) => import("react").JSX.Element;
|
|
16
|
+
/** Row that groups the tab triggers. */
|
|
17
|
+
export declare const TabsList: ({ className, ...rest }: TabsListProps) => import("react").JSX.Element;
|
|
18
|
+
/** Selectable tab button inside a TabsList. */
|
|
19
|
+
export declare const TabsTrigger: ({ className, ...rest }: TabsTriggerProps) => import("react").JSX.Element;
|
|
20
|
+
/** Panel shown while its matching trigger is active. */
|
|
21
|
+
export declare const TabsContent: ({ className, ...rest }: TabsContentProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonTextVariant } from './text-variants.js';
|
|
3
|
+
export type BaseTextVariant = 'display' | 'heading' | 'body' | 'muted' | 'caption';
|
|
4
|
+
/** Marketing/auth text plus the button-link scale shared with Button. */
|
|
5
|
+
export type TextVariant = BaseTextVariant | ButtonTextVariant;
|
|
6
|
+
type TextProps = HTMLAttributes<HTMLElement> & {
|
|
7
|
+
variant?: TextVariant;
|
|
8
|
+
as?: keyof HTMLElementTagNameMap;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Typography for marketing and auth surfaces. The variant picks the style and
|
|
12
|
+
* the default tag; `as` overrides the tag without changing the look. Button
|
|
13
|
+
* link variants default to a span so they can sit inside inline controls.
|
|
14
|
+
*/
|
|
15
|
+
export declare function Text({ variant, as, className, ...props }: TextProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography variants shared by Text and Button.
|
|
3
|
+
*
|
|
4
|
+
* Enum values are the CSS class suffixes in `text.module.css`, so a variant can
|
|
5
|
+
* be resolved with `styles[\`rp-text-${variant}\`]`. Mirrors the valuevaults
|
|
6
|
+
* `ButtonTextVariant` pattern: the text variant drives both typography and the
|
|
7
|
+
* button's physical size.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum ButtonTextVariant {
|
|
10
|
+
Button_Link_Large_1 = "button-link-large-1",
|
|
11
|
+
Button_Link_Large_2 = "button-link-large-2",
|
|
12
|
+
Button_Link_Medium_1 = "button-link-medium-1",
|
|
13
|
+
Button_Link_Medium_2 = "button-link-medium-2",
|
|
14
|
+
Button_Link_Small_1 = "button-link-small-1",
|
|
15
|
+
Button_Link_Small_2 = "button-link-small-2",
|
|
16
|
+
Button_Link_Extra_Small_1 = "button-link-extra-small-1",
|
|
17
|
+
Button_Link_Extra_Small_2 = "button-link-extra-small-2"
|
|
18
|
+
}
|
|
19
|
+
/** Ordered list for Controls selects and "all variants" stories. */
|
|
20
|
+
export declare const BUTTON_TEXT_VARIANTS: ButtonTextVariant[];
|
|
21
|
+
export declare enum ButtonSize {
|
|
22
|
+
Large = "large",
|
|
23
|
+
Medium = "medium",
|
|
24
|
+
Small = "small",
|
|
25
|
+
Extra_Small = "extra-small"
|
|
26
|
+
}
|
|
27
|
+
export declare enum GapSize {
|
|
28
|
+
Medium = "medium",
|
|
29
|
+
Small = "small"
|
|
30
|
+
}
|
|
31
|
+
export declare function isButtonTextVariant(value: string): value is ButtonTextVariant;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface ThemeSwitchProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'onChange'> {
|
|
3
|
+
/** The application's current theme, independent of the control's surface theme. */
|
|
4
|
+
dark: boolean;
|
|
5
|
+
/** Apply the next theme synchronously so the reveal captures the updated UI. */
|
|
6
|
+
onThemeChange?: (dark: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
/** Theme toggle using the shared page-wide circular theme transition. */
|
|
9
|
+
export declare function ThemeSwitch({ dark, onThemeChange, onClick, ...props }: ThemeSwitchProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeSwitch, type ThemeSwitchProps } from './ThemeSwitch.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
2
|
+
export interface ToastProps extends ToastPrimitive.ToastProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ToastViewportProps extends ToastPrimitive.ToastViewportProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ToastTitleProps extends ToastPrimitive.ToastTitleProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ToastDescriptionProps extends ToastPrimitive.ToastDescriptionProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ToastActionProps extends ToastPrimitive.ToastActionProps {
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ToastCloseProps extends ToastPrimitive.ToastCloseProps {
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Tokenized toast notification with title, description and actions. */
|
|
21
|
+
export declare const Toast: ({ className, ...rest }: ToastProps) => import("react").JSX.Element;
|
|
22
|
+
export declare const ToastViewport: ({ className, ...rest }: ToastViewportProps) => import("react").JSX.Element;
|
|
23
|
+
export declare const ToastTitle: ({ className, ...rest }: ToastTitleProps) => import("react").JSX.Element;
|
|
24
|
+
export declare const ToastDescription: ({ className, ...rest }: ToastDescriptionProps) => import("react").JSX.Element;
|
|
25
|
+
export declare const ToastAction: ({ className, ...rest }: ToastActionProps) => import("react").JSX.Element;
|
|
26
|
+
export declare const ToastClose: ({ className, ...rest }: ToastCloseProps) => import("react").JSX.Element;
|
|
27
|
+
/** Provider has no DOM element of its own, so it is passed through. */
|
|
28
|
+
export declare const ToastProvider: import("react").FC<ToastPrimitive.ToastProviderProps>;
|
|
29
|
+
export type ToastProviderProps = ToastPrimitive.ToastProviderProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toast.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
2
|
+
export interface ToggleProps extends TogglePrimitive.ToggleProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/** Two-state button whose pressed state maps to the accent tokens. */
|
|
6
|
+
export declare const Toggle: ({ className, ...rest }: ToggleProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toggle.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
2
|
+
/**
|
|
3
|
+
* A group is either single- or multi-select, and those two shapes are
|
|
4
|
+
* mutually exclusive in Radix, so the public props are a union rather than
|
|
5
|
+
* a single interface.
|
|
6
|
+
*/
|
|
7
|
+
export type ToggleGroupProps = (ToggleGroupPrimitive.ToggleGroupSingleProps | ToggleGroupPrimitive.ToggleGroupMultipleProps) & {
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export interface ToggleGroupItemProps extends ToggleGroupPrimitive.ToggleGroupItemProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Set of mutually exclusive (or independent) toggle buttons. */
|
|
14
|
+
export declare const ToggleGroup: ({ className, ...rest }: ToggleGroupProps) => import("react").JSX.Element;
|
|
15
|
+
/** Individual toggle button inside a ToggleGroup. */
|
|
16
|
+
export declare const ToggleGroupItem: ({ className, ...rest }: ToggleGroupItemProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ToggleGroup.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
2
|
+
export interface TooltipProps extends TooltipPrimitive.TooltipProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TooltipTriggerProps extends TooltipPrimitive.TooltipTriggerProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TooltipContentProps extends TooltipPrimitive.TooltipContentProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TooltipArrowProps extends TooltipPrimitive.TooltipArrowProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Root that pairs a trigger with its tooltip content. */
|
|
15
|
+
export declare const Tooltip: (props: TooltipProps) => import("react").JSX.Element;
|
|
16
|
+
/** Element that shows the tooltip on hover or focus. */
|
|
17
|
+
export declare const TooltipTrigger: ({ className, ...rest }: TooltipTriggerProps) => import("react").JSX.Element;
|
|
18
|
+
/** Floating panel containing the tooltip message. */
|
|
19
|
+
export declare const TooltipContent: ({ className, ...rest }: TooltipContentProps) => import("react").JSX.Element;
|
|
20
|
+
/** Optional arrow pointing from the content to the trigger. */
|
|
21
|
+
export declare const TooltipArrow: ({ className, ...rest }: TooltipArrowProps) => import("react").JSX.Element;
|
|
22
|
+
export type TooltipProviderProps = TooltipPrimitive.TooltipProviderProps;
|
|
23
|
+
export type TooltipPortalProps = TooltipPrimitive.TooltipPortalProps;
|
|
24
|
+
/** Context provider for tooltip timing; renders no DOM of its own. */
|
|
25
|
+
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
26
|
+
/** Portals content to a container outside the trigger's DOM subtree. */
|
|
27
|
+
export declare const TooltipPortal: import("react").FC<TooltipPrimitive.TooltipPortalProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PortalHost: import("react").Context<HTMLElement | null>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
/** Import @plusrouter/ui/styles.css once. The app's original CSS is scoped here. */
|
|
3
|
+
export declare function UIProvider({ children, theme, className, style, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
theme?: 'light' | 'dark';
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export * from './Accordion/index.js';
|
|
2
|
+
export * from './Avatar/index.js';
|
|
3
|
+
export * from './Badge/index.js';
|
|
4
|
+
export * from './Brand/index.js';
|
|
5
|
+
export * from './Button/index.js';
|
|
6
|
+
export * from './Card/index.js';
|
|
7
|
+
export * from './Checkbox/index.js';
|
|
8
|
+
export * from './Collapsible/index.js';
|
|
9
|
+
export * from './ContextMenu/index.js';
|
|
10
|
+
export * from './Dialog/index.js';
|
|
11
|
+
export * from './Drawer/index.js';
|
|
12
|
+
export * from './DropdownMenu/index.js';
|
|
13
|
+
export * from './EmptyState/index.js';
|
|
14
|
+
export * from './Field/index.js';
|
|
15
|
+
export * from './FilterSelect/index.js';
|
|
16
|
+
export * from './Form/index.js';
|
|
17
|
+
export * from './HoverCard/index.js';
|
|
18
|
+
export * from './InfoHeader/index.js';
|
|
19
|
+
export * from './InfoTooltip/index.js';
|
|
20
|
+
export * from './Icon/index.js';
|
|
21
|
+
export * from './Input/index.js';
|
|
22
|
+
export * from './InputGroup/index.js';
|
|
23
|
+
export * from './Label/index.js';
|
|
24
|
+
export * from './LinkCard/index.js';
|
|
25
|
+
export * from './Logo/index.js';
|
|
26
|
+
export * from './Menubar/index.js';
|
|
27
|
+
export * from './Modal/index.js';
|
|
28
|
+
export * from './ModelCard/index.js';
|
|
29
|
+
export * from './NavigationMenu/index.js';
|
|
30
|
+
export * from './Popover/index.js';
|
|
31
|
+
export * from './Progress/index.js';
|
|
32
|
+
export * from './ProgressBar/index.js';
|
|
33
|
+
export { Radio } from './Radio/Radio.js';
|
|
34
|
+
export * from './RadioGroup/index.js';
|
|
35
|
+
export * from './ScrollArea/index.js';
|
|
36
|
+
export * from './SegmentedControl/index.js';
|
|
37
|
+
export * from './Select/index.js';
|
|
38
|
+
export * from './Separator/index.js';
|
|
39
|
+
export * from './SideNavigation/index.js';
|
|
40
|
+
export * from './Skeleton/index.js';
|
|
41
|
+
export * from './Slider/index.js';
|
|
42
|
+
export * from './Spinner/index.js';
|
|
43
|
+
export * from './Switch/index.js';
|
|
44
|
+
export * from './Tabs/index.js';
|
|
45
|
+
export * from './Text/Text.js';
|
|
46
|
+
export * from './Text/text-variants.js';
|
|
47
|
+
export * from './ThemeSwitch/index.js';
|
|
48
|
+
export * from './Toast/index.js';
|
|
49
|
+
export * from './Toggle/index.js';
|
|
50
|
+
export * from './ToggleGroup/index.js';
|
|
51
|
+
export * from './Tooltip/index.js';
|
|
52
|
+
export * from './UIProvider/UIProvider.js';
|
|
53
|
+
export * from './UIProvider/PortalHost.js';
|
|
54
|
+
export { Tabs as LegacyTabs, type TabItem } from './LegacyTabs/index.js';
|
|
55
|
+
export { Slider as LegacySlider, type SliderProps as LegacySliderProps, type SliderMark, } from './LegacySlider/index.js';
|
|
56
|
+
export { RadioGroup as BaseRadioGroup, type RadioGroupProps as BaseRadioGroupProps, } from './Radio/RadioGroup.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./tokens/tokens.css";
|
|
2
|
+
import "./tokens/fonts.css";
|
|
3
|
+
export * from "./components/ui/index.js";
|
|
4
|
+
export * from "./components/TokensAndAssets/ThemeContext.js";
|
|
5
|
+
export { Shop, type ShopProps, ShopCard, type ShopCardProps, ShopAccountCard, type ShopAccountCardProps, type ShopAccount, type ShopCategoryOption, type ShopSortOption, type MarketModel, type ModelCategory, type ModelPricing, type ModelSortOption, } from "./components/Components/Shop/index.js";
|
|
6
|
+
export { SupportDialog, type SupportDialogProps, type SupportTicket, type SupportMessage, type SupportDraft, } from "./components/Components/Support/index.js";
|