kaleido-ui 0.1.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/README.md +188 -0
- package/dist/css/kaleido-ui.css +197 -0
- package/dist/native/index.cjs +322 -0
- package/dist/native/index.d.cts +212 -0
- package/dist/native/index.d.ts +212 -0
- package/dist/native/index.js +283 -0
- package/dist/tailwind/index.cjs +235 -0
- package/dist/tailwind/index.d.cts +182 -0
- package/dist/tailwind/index.d.ts +182 -0
- package/dist/tailwind/index.js +212 -0
- package/dist/tokens/index.cjs +132 -0
- package/dist/tokens/index.d.cts +107 -0
- package/dist/tokens/index.d.ts +107 -0
- package/dist/tokens/index.js +99 -0
- package/dist/web/index.cjs +1276 -0
- package/dist/web/index.d.cts +308 -0
- package/dist/web/index.d.ts +308 -0
- package/dist/web/index.js +1191 -0
- package/native/index.d.ts +1 -0
- package/native/index.js +1 -0
- package/package.json +124 -0
- package/tailwind/index.d.ts +1 -0
- package/tailwind/index.js +1 -0
- package/tokens/index.d.ts +1 -0
- package/tokens/index.js +1 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import { HTMLAttributes, ReactNode, Component } from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
9
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
10
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
11
|
+
|
|
12
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
13
|
+
|
|
14
|
+
declare const buttonVariants: (props?: ({
|
|
15
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "glow" | "surface" | "cta" | "cta-gradient" | "danger-subtle" | null | undefined;
|
|
16
|
+
size?: "default" | "cta" | "sm" | "lg" | "xl" | "cta-lg" | "icon" | "icon-lg" | "icon-xl" | null | undefined;
|
|
17
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
|
|
23
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
27
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
|
|
30
|
+
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
31
|
+
}
|
|
32
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
33
|
+
|
|
34
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
35
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
37
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const DialogHeader: {
|
|
41
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
declare const DialogFooter: {
|
|
45
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
49
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
50
|
+
|
|
51
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
|
|
56
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
57
|
+
|
|
58
|
+
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
59
|
+
declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
60
|
+
declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
61
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
62
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
63
|
+
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
64
|
+
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
65
|
+
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
|
|
68
|
+
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
69
|
+
|
|
70
|
+
declare function Toaster(): react_jsx_runtime.JSX.Element;
|
|
71
|
+
|
|
72
|
+
interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
73
|
+
/** Material Symbols icon name (e.g., "home", "settings", "arrow_back") */
|
|
74
|
+
name: string;
|
|
75
|
+
/** Use filled variant of the icon */
|
|
76
|
+
filled?: boolean;
|
|
77
|
+
/** Icon size */
|
|
78
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
79
|
+
}
|
|
80
|
+
declare function Icon({ name, filled, size, className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
81
|
+
/**
|
|
82
|
+
* Convenience components for common icons
|
|
83
|
+
*/
|
|
84
|
+
declare const Icons: {
|
|
85
|
+
ArrowBack: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
86
|
+
ArrowForward: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
Close: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
88
|
+
Menu: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
89
|
+
Send: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
90
|
+
Receive: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
91
|
+
Swap: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
92
|
+
Copy: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
Paste: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
94
|
+
Refresh: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
Share: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
QrCode: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
97
|
+
QrScanner: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
98
|
+
Check: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
99
|
+
CheckCircle: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
100
|
+
Error: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
101
|
+
Warning: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
102
|
+
Info: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
103
|
+
Pending: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
104
|
+
Wallet: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
105
|
+
Activity: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
106
|
+
Settings: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
107
|
+
Lightning: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
108
|
+
Bitcoin: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
109
|
+
Ark: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
110
|
+
Lock: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
111
|
+
Unlock: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
112
|
+
Shield: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
113
|
+
Key: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
114
|
+
Fingerprint: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
115
|
+
Visibility: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
116
|
+
VisibilityOff: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
117
|
+
ExpandMore: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
118
|
+
ExpandLess: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
119
|
+
ChevronRight: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
120
|
+
OpenInNew: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
121
|
+
Search: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
122
|
+
Add: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
123
|
+
Download: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
124
|
+
Upload: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
125
|
+
Edit: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
126
|
+
Delete: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
127
|
+
Timer: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
128
|
+
Person: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
129
|
+
Hub: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
130
|
+
Verified: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
131
|
+
SmartToy: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
132
|
+
Psychology: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
133
|
+
Event: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
PlayArrow: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
135
|
+
ChatBubble: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
136
|
+
Progress: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
type StatusType = 'success' | 'pending' | 'failed' | 'completed' | 'error';
|
|
140
|
+
interface StatusBadgeProps {
|
|
141
|
+
status: StatusType;
|
|
142
|
+
className?: string;
|
|
143
|
+
}
|
|
144
|
+
declare function StatusBadge({ status, className }: StatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
type NetworkType = 'L1' | 'LN' | 'RGB20' | 'RGB21' | 'RGB-L1' | 'RGB-LN' | 'Spark' | 'Arkade';
|
|
147
|
+
interface NetworkBadgeProps {
|
|
148
|
+
network: NetworkType;
|
|
149
|
+
/** Override the icon path (consumer provides asset path) */
|
|
150
|
+
iconBasePath?: string;
|
|
151
|
+
className?: string;
|
|
152
|
+
}
|
|
153
|
+
declare function NetworkBadge({ network, iconBasePath, className }: NetworkBadgeProps): react_jsx_runtime.JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface AssetIconProps {
|
|
156
|
+
ticker: string;
|
|
157
|
+
logoUri?: string;
|
|
158
|
+
/** CDN base URL for icon resolution (defaults to KaleidoSwap CDN) */
|
|
159
|
+
cdnBaseUrl?: string;
|
|
160
|
+
size?: number;
|
|
161
|
+
className?: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Renders a circular asset icon.
|
|
165
|
+
* First checks local SVG map, then tries CDN, then placeholder.
|
|
166
|
+
*/
|
|
167
|
+
declare function AssetIcon({ ticker, logoUri, cdnBaseUrl, size, className }: AssetIconProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
interface AssetCardProps {
|
|
170
|
+
/** Asset ticker symbol (e.g. "BTC", "USDT") */
|
|
171
|
+
ticker: string;
|
|
172
|
+
/** Display name (e.g. "Bitcoin") */
|
|
173
|
+
name: string;
|
|
174
|
+
/** Formatted display balance string */
|
|
175
|
+
displayBalance: string;
|
|
176
|
+
/** Networks this asset is available on */
|
|
177
|
+
networks?: NetworkType[];
|
|
178
|
+
/** Logo URI override */
|
|
179
|
+
logoUri?: string;
|
|
180
|
+
/** Whether balance should be masked */
|
|
181
|
+
balanceVisible?: boolean;
|
|
182
|
+
onClick?: () => void;
|
|
183
|
+
className?: string;
|
|
184
|
+
}
|
|
185
|
+
declare function AssetCard({ ticker, name, displayBalance, networks, logoUri, balanceVisible, onClick, className, }: AssetCardProps): react_jsx_runtime.JSX.Element;
|
|
186
|
+
|
|
187
|
+
interface TransactionCardProps {
|
|
188
|
+
/** Direction of the transaction */
|
|
189
|
+
direction: 'inbound' | 'outbound';
|
|
190
|
+
/** Status of the transaction */
|
|
191
|
+
status: StatusType;
|
|
192
|
+
/** Formatted amount string (e.g. "1,234") */
|
|
193
|
+
displayAmount: string;
|
|
194
|
+
/** Unit label (e.g. "sats", "BTC") */
|
|
195
|
+
unit?: string;
|
|
196
|
+
/** Unix timestamp in seconds */
|
|
197
|
+
timestamp: number;
|
|
198
|
+
onClick?: () => void;
|
|
199
|
+
className?: string;
|
|
200
|
+
}
|
|
201
|
+
declare function TransactionCard({ direction, status, displayAmount, unit, timestamp, onClick, className, }: TransactionCardProps): react_jsx_runtime.JSX.Element;
|
|
202
|
+
|
|
203
|
+
interface PageHeaderProps {
|
|
204
|
+
left?: ReactNode;
|
|
205
|
+
title?: string;
|
|
206
|
+
right?: ReactNode;
|
|
207
|
+
/** Border class for network-aware styling (e.g. "border-network-bitcoin/30") */
|
|
208
|
+
borderClassName?: string;
|
|
209
|
+
}
|
|
210
|
+
declare function PageHeader({ left, title, right, borderClassName }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
211
|
+
|
|
212
|
+
interface SettingItemProps {
|
|
213
|
+
icon?: string;
|
|
214
|
+
iconSrc?: string;
|
|
215
|
+
iconAlt?: string;
|
|
216
|
+
title: string;
|
|
217
|
+
description?: string;
|
|
218
|
+
value?: string | ReactNode;
|
|
219
|
+
onClick?: () => void;
|
|
220
|
+
showChevron?: boolean;
|
|
221
|
+
className?: string;
|
|
222
|
+
iconColor?: string;
|
|
223
|
+
}
|
|
224
|
+
declare function SettingItem({ icon, iconSrc, iconAlt, title, description, value, onClick, showChevron, className, iconColor, }: SettingItemProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
226
|
+
interface SectionLabelProps {
|
|
227
|
+
children: ReactNode;
|
|
228
|
+
className?: string;
|
|
229
|
+
}
|
|
230
|
+
declare function SectionLabel({ children, className }: SectionLabelProps): react_jsx_runtime.JSX.Element;
|
|
231
|
+
|
|
232
|
+
declare const variantStyles: {
|
|
233
|
+
readonly error: {
|
|
234
|
+
readonly container: "bg-red-500/10 border-red-500/20";
|
|
235
|
+
readonly icon: "text-red-400";
|
|
236
|
+
readonly iconName: "error";
|
|
237
|
+
};
|
|
238
|
+
readonly warning: {
|
|
239
|
+
readonly container: "bg-amber-500/10 border-amber-500/20";
|
|
240
|
+
readonly icon: "text-amber-400";
|
|
241
|
+
readonly iconName: "warning";
|
|
242
|
+
};
|
|
243
|
+
readonly info: {
|
|
244
|
+
readonly container: "bg-blue-500/10 border-blue-500/20";
|
|
245
|
+
readonly icon: "text-blue-400";
|
|
246
|
+
readonly iconName: "info";
|
|
247
|
+
};
|
|
248
|
+
readonly success: {
|
|
249
|
+
readonly container: "bg-primary/10 border-primary/20";
|
|
250
|
+
readonly icon: "text-primary";
|
|
251
|
+
readonly iconName: "check_circle";
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
interface AlertBannerProps {
|
|
255
|
+
variant?: keyof typeof variantStyles;
|
|
256
|
+
icon?: string;
|
|
257
|
+
children: ReactNode;
|
|
258
|
+
className?: string;
|
|
259
|
+
}
|
|
260
|
+
declare function AlertBanner({ variant, icon, children, className }: AlertBannerProps): react_jsx_runtime.JSX.Element;
|
|
261
|
+
|
|
262
|
+
interface Props {
|
|
263
|
+
children: ReactNode;
|
|
264
|
+
fallback?: ReactNode;
|
|
265
|
+
onReset?: () => void;
|
|
266
|
+
}
|
|
267
|
+
interface State {
|
|
268
|
+
hasError: boolean;
|
|
269
|
+
error: Error | null;
|
|
270
|
+
}
|
|
271
|
+
declare class ErrorBoundary extends Component<Props, State> {
|
|
272
|
+
constructor(props: Props);
|
|
273
|
+
static getDerivedStateFromError(error: Error): State;
|
|
274
|
+
componentDidCatch(error: Error, info: React.ErrorInfo): void;
|
|
275
|
+
render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
type ToasterToast = ToastProps & {
|
|
279
|
+
id: string;
|
|
280
|
+
title?: React$1.ReactNode;
|
|
281
|
+
description?: React$1.ReactNode;
|
|
282
|
+
action?: ToastActionElement;
|
|
283
|
+
duration?: number;
|
|
284
|
+
};
|
|
285
|
+
interface Toast extends Omit<ToasterToast, 'id'> {
|
|
286
|
+
}
|
|
287
|
+
declare function toast({ duration, ...props }: Toast): {
|
|
288
|
+
id: string;
|
|
289
|
+
dismiss: () => void;
|
|
290
|
+
update: (props: ToasterToast) => void;
|
|
291
|
+
};
|
|
292
|
+
declare function useToast(): {
|
|
293
|
+
toast: typeof toast;
|
|
294
|
+
dismiss: (toastId?: string) => void;
|
|
295
|
+
toasts: ToasterToast[];
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Build the CDN icon URL for a given ticker.
|
|
300
|
+
*/
|
|
301
|
+
declare function getAssetIconUrl(ticker: string, cdnBaseUrl?: string): string;
|
|
302
|
+
declare function getFallbackAssetIconUrl(seed: string): string;
|
|
303
|
+
/**
|
|
304
|
+
* Hook that returns a CDN icon URL for a given asset ticker.
|
|
305
|
+
*/
|
|
306
|
+
declare function useAssetIcon(ticker: string, cdnBaseUrl?: string): string;
|
|
307
|
+
|
|
308
|
+
export { AlertBanner, AssetCard, type AssetCardProps, AssetIcon, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ErrorBoundary, Icon, type IconProps, Icons, Input, type InputProps, Label, NetworkBadge, type NetworkType, PageHeader, type PageHeaderProps, SectionLabel, SettingItem, StatusBadge, type StatusType, Tabs, TabsContent, TabsList, TabsTrigger, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, TransactionCard, type TransactionCardProps, buttonVariants, cn, getAssetIconUrl, getFallbackAssetIconUrl, toast, useAssetIcon, useToast };
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import { HTMLAttributes, ReactNode, Component } from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
9
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
10
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
11
|
+
|
|
12
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
13
|
+
|
|
14
|
+
declare const buttonVariants: (props?: ({
|
|
15
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "glow" | "surface" | "cta" | "cta-gradient" | "danger-subtle" | null | undefined;
|
|
16
|
+
size?: "default" | "cta" | "sm" | "lg" | "xl" | "cta-lg" | "icon" | "icon-lg" | "icon-xl" | null | undefined;
|
|
17
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
|
|
23
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
27
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
|
|
30
|
+
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
31
|
+
}
|
|
32
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
33
|
+
|
|
34
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
35
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
37
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const DialogHeader: {
|
|
41
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
declare const DialogFooter: {
|
|
45
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
49
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
50
|
+
|
|
51
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
|
|
56
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
57
|
+
|
|
58
|
+
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
59
|
+
declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
60
|
+
declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
61
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
62
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
63
|
+
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
64
|
+
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
65
|
+
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
|
|
68
|
+
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
69
|
+
|
|
70
|
+
declare function Toaster(): react_jsx_runtime.JSX.Element;
|
|
71
|
+
|
|
72
|
+
interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
73
|
+
/** Material Symbols icon name (e.g., "home", "settings", "arrow_back") */
|
|
74
|
+
name: string;
|
|
75
|
+
/** Use filled variant of the icon */
|
|
76
|
+
filled?: boolean;
|
|
77
|
+
/** Icon size */
|
|
78
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
79
|
+
}
|
|
80
|
+
declare function Icon({ name, filled, size, className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
81
|
+
/**
|
|
82
|
+
* Convenience components for common icons
|
|
83
|
+
*/
|
|
84
|
+
declare const Icons: {
|
|
85
|
+
ArrowBack: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
86
|
+
ArrowForward: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
Close: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
88
|
+
Menu: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
89
|
+
Send: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
90
|
+
Receive: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
91
|
+
Swap: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
92
|
+
Copy: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
Paste: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
94
|
+
Refresh: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
Share: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
QrCode: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
97
|
+
QrScanner: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
98
|
+
Check: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
99
|
+
CheckCircle: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
100
|
+
Error: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
101
|
+
Warning: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
102
|
+
Info: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
103
|
+
Pending: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
104
|
+
Wallet: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
105
|
+
Activity: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
106
|
+
Settings: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
107
|
+
Lightning: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
108
|
+
Bitcoin: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
109
|
+
Ark: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
110
|
+
Lock: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
111
|
+
Unlock: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
112
|
+
Shield: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
113
|
+
Key: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
114
|
+
Fingerprint: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
115
|
+
Visibility: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
116
|
+
VisibilityOff: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
117
|
+
ExpandMore: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
118
|
+
ExpandLess: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
119
|
+
ChevronRight: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
120
|
+
OpenInNew: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
121
|
+
Search: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
122
|
+
Add: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
123
|
+
Download: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
124
|
+
Upload: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
125
|
+
Edit: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
126
|
+
Delete: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
127
|
+
Timer: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
128
|
+
Person: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
129
|
+
Hub: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
130
|
+
Verified: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
131
|
+
SmartToy: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
132
|
+
Psychology: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
133
|
+
Event: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
PlayArrow: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
135
|
+
ChatBubble: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
136
|
+
Progress: (props: Omit<IconProps, "name">) => react_jsx_runtime.JSX.Element;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
type StatusType = 'success' | 'pending' | 'failed' | 'completed' | 'error';
|
|
140
|
+
interface StatusBadgeProps {
|
|
141
|
+
status: StatusType;
|
|
142
|
+
className?: string;
|
|
143
|
+
}
|
|
144
|
+
declare function StatusBadge({ status, className }: StatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
type NetworkType = 'L1' | 'LN' | 'RGB20' | 'RGB21' | 'RGB-L1' | 'RGB-LN' | 'Spark' | 'Arkade';
|
|
147
|
+
interface NetworkBadgeProps {
|
|
148
|
+
network: NetworkType;
|
|
149
|
+
/** Override the icon path (consumer provides asset path) */
|
|
150
|
+
iconBasePath?: string;
|
|
151
|
+
className?: string;
|
|
152
|
+
}
|
|
153
|
+
declare function NetworkBadge({ network, iconBasePath, className }: NetworkBadgeProps): react_jsx_runtime.JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface AssetIconProps {
|
|
156
|
+
ticker: string;
|
|
157
|
+
logoUri?: string;
|
|
158
|
+
/** CDN base URL for icon resolution (defaults to KaleidoSwap CDN) */
|
|
159
|
+
cdnBaseUrl?: string;
|
|
160
|
+
size?: number;
|
|
161
|
+
className?: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Renders a circular asset icon.
|
|
165
|
+
* First checks local SVG map, then tries CDN, then placeholder.
|
|
166
|
+
*/
|
|
167
|
+
declare function AssetIcon({ ticker, logoUri, cdnBaseUrl, size, className }: AssetIconProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
interface AssetCardProps {
|
|
170
|
+
/** Asset ticker symbol (e.g. "BTC", "USDT") */
|
|
171
|
+
ticker: string;
|
|
172
|
+
/** Display name (e.g. "Bitcoin") */
|
|
173
|
+
name: string;
|
|
174
|
+
/** Formatted display balance string */
|
|
175
|
+
displayBalance: string;
|
|
176
|
+
/** Networks this asset is available on */
|
|
177
|
+
networks?: NetworkType[];
|
|
178
|
+
/** Logo URI override */
|
|
179
|
+
logoUri?: string;
|
|
180
|
+
/** Whether balance should be masked */
|
|
181
|
+
balanceVisible?: boolean;
|
|
182
|
+
onClick?: () => void;
|
|
183
|
+
className?: string;
|
|
184
|
+
}
|
|
185
|
+
declare function AssetCard({ ticker, name, displayBalance, networks, logoUri, balanceVisible, onClick, className, }: AssetCardProps): react_jsx_runtime.JSX.Element;
|
|
186
|
+
|
|
187
|
+
interface TransactionCardProps {
|
|
188
|
+
/** Direction of the transaction */
|
|
189
|
+
direction: 'inbound' | 'outbound';
|
|
190
|
+
/** Status of the transaction */
|
|
191
|
+
status: StatusType;
|
|
192
|
+
/** Formatted amount string (e.g. "1,234") */
|
|
193
|
+
displayAmount: string;
|
|
194
|
+
/** Unit label (e.g. "sats", "BTC") */
|
|
195
|
+
unit?: string;
|
|
196
|
+
/** Unix timestamp in seconds */
|
|
197
|
+
timestamp: number;
|
|
198
|
+
onClick?: () => void;
|
|
199
|
+
className?: string;
|
|
200
|
+
}
|
|
201
|
+
declare function TransactionCard({ direction, status, displayAmount, unit, timestamp, onClick, className, }: TransactionCardProps): react_jsx_runtime.JSX.Element;
|
|
202
|
+
|
|
203
|
+
interface PageHeaderProps {
|
|
204
|
+
left?: ReactNode;
|
|
205
|
+
title?: string;
|
|
206
|
+
right?: ReactNode;
|
|
207
|
+
/** Border class for network-aware styling (e.g. "border-network-bitcoin/30") */
|
|
208
|
+
borderClassName?: string;
|
|
209
|
+
}
|
|
210
|
+
declare function PageHeader({ left, title, right, borderClassName }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
211
|
+
|
|
212
|
+
interface SettingItemProps {
|
|
213
|
+
icon?: string;
|
|
214
|
+
iconSrc?: string;
|
|
215
|
+
iconAlt?: string;
|
|
216
|
+
title: string;
|
|
217
|
+
description?: string;
|
|
218
|
+
value?: string | ReactNode;
|
|
219
|
+
onClick?: () => void;
|
|
220
|
+
showChevron?: boolean;
|
|
221
|
+
className?: string;
|
|
222
|
+
iconColor?: string;
|
|
223
|
+
}
|
|
224
|
+
declare function SettingItem({ icon, iconSrc, iconAlt, title, description, value, onClick, showChevron, className, iconColor, }: SettingItemProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
226
|
+
interface SectionLabelProps {
|
|
227
|
+
children: ReactNode;
|
|
228
|
+
className?: string;
|
|
229
|
+
}
|
|
230
|
+
declare function SectionLabel({ children, className }: SectionLabelProps): react_jsx_runtime.JSX.Element;
|
|
231
|
+
|
|
232
|
+
declare const variantStyles: {
|
|
233
|
+
readonly error: {
|
|
234
|
+
readonly container: "bg-red-500/10 border-red-500/20";
|
|
235
|
+
readonly icon: "text-red-400";
|
|
236
|
+
readonly iconName: "error";
|
|
237
|
+
};
|
|
238
|
+
readonly warning: {
|
|
239
|
+
readonly container: "bg-amber-500/10 border-amber-500/20";
|
|
240
|
+
readonly icon: "text-amber-400";
|
|
241
|
+
readonly iconName: "warning";
|
|
242
|
+
};
|
|
243
|
+
readonly info: {
|
|
244
|
+
readonly container: "bg-blue-500/10 border-blue-500/20";
|
|
245
|
+
readonly icon: "text-blue-400";
|
|
246
|
+
readonly iconName: "info";
|
|
247
|
+
};
|
|
248
|
+
readonly success: {
|
|
249
|
+
readonly container: "bg-primary/10 border-primary/20";
|
|
250
|
+
readonly icon: "text-primary";
|
|
251
|
+
readonly iconName: "check_circle";
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
interface AlertBannerProps {
|
|
255
|
+
variant?: keyof typeof variantStyles;
|
|
256
|
+
icon?: string;
|
|
257
|
+
children: ReactNode;
|
|
258
|
+
className?: string;
|
|
259
|
+
}
|
|
260
|
+
declare function AlertBanner({ variant, icon, children, className }: AlertBannerProps): react_jsx_runtime.JSX.Element;
|
|
261
|
+
|
|
262
|
+
interface Props {
|
|
263
|
+
children: ReactNode;
|
|
264
|
+
fallback?: ReactNode;
|
|
265
|
+
onReset?: () => void;
|
|
266
|
+
}
|
|
267
|
+
interface State {
|
|
268
|
+
hasError: boolean;
|
|
269
|
+
error: Error | null;
|
|
270
|
+
}
|
|
271
|
+
declare class ErrorBoundary extends Component<Props, State> {
|
|
272
|
+
constructor(props: Props);
|
|
273
|
+
static getDerivedStateFromError(error: Error): State;
|
|
274
|
+
componentDidCatch(error: Error, info: React.ErrorInfo): void;
|
|
275
|
+
render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
type ToasterToast = ToastProps & {
|
|
279
|
+
id: string;
|
|
280
|
+
title?: React$1.ReactNode;
|
|
281
|
+
description?: React$1.ReactNode;
|
|
282
|
+
action?: ToastActionElement;
|
|
283
|
+
duration?: number;
|
|
284
|
+
};
|
|
285
|
+
interface Toast extends Omit<ToasterToast, 'id'> {
|
|
286
|
+
}
|
|
287
|
+
declare function toast({ duration, ...props }: Toast): {
|
|
288
|
+
id: string;
|
|
289
|
+
dismiss: () => void;
|
|
290
|
+
update: (props: ToasterToast) => void;
|
|
291
|
+
};
|
|
292
|
+
declare function useToast(): {
|
|
293
|
+
toast: typeof toast;
|
|
294
|
+
dismiss: (toastId?: string) => void;
|
|
295
|
+
toasts: ToasterToast[];
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Build the CDN icon URL for a given ticker.
|
|
300
|
+
*/
|
|
301
|
+
declare function getAssetIconUrl(ticker: string, cdnBaseUrl?: string): string;
|
|
302
|
+
declare function getFallbackAssetIconUrl(seed: string): string;
|
|
303
|
+
/**
|
|
304
|
+
* Hook that returns a CDN icon URL for a given asset ticker.
|
|
305
|
+
*/
|
|
306
|
+
declare function useAssetIcon(ticker: string, cdnBaseUrl?: string): string;
|
|
307
|
+
|
|
308
|
+
export { AlertBanner, AssetCard, type AssetCardProps, AssetIcon, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ErrorBoundary, Icon, type IconProps, Icons, Input, type InputProps, Label, NetworkBadge, type NetworkType, PageHeader, type PageHeaderProps, SectionLabel, SettingItem, StatusBadge, type StatusType, Tabs, TabsContent, TabsList, TabsTrigger, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, TransactionCard, type TransactionCardProps, buttonVariants, cn, getAssetIconUrl, getFallbackAssetIconUrl, toast, useAssetIcon, useToast };
|