@aurum-sdk/logos 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.
@@ -0,0 +1,153 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { SVGProps } from 'react';
4
+ import { WalletId, WalletName, BorderRadiusToken, BorderRadiusSizeSlot } from '@aurum-sdk/types';
5
+
6
+ type LogoVariant = 'icon' | 'brand' | 'black' | 'white';
7
+ type AurumLogoVariant = LogoVariant;
8
+
9
+ interface WalletLogoProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {
10
+ /** Wallet ID */
11
+ id?: WalletId;
12
+ /** Wallet Name (alternative to id) */
13
+ name?: WalletName;
14
+ /** Logo variant - defaults to 'icon' */
15
+ variant?: LogoVariant;
16
+ /** Size in pixels (sets width and height) */
17
+ size?: number;
18
+ /** Border radius config token - defaults to 'md' */
19
+ radius?: BorderRadiusToken;
20
+ /** Size slot for border radius scaling (xs, sm, md, lg, xl) */
21
+ sizeSlot?: BorderRadiusSizeSlot;
22
+ /** Accessible title - when provided, removes aria-hidden and adds accessible label */
23
+ title?: string;
24
+ }
25
+ declare function WalletLogo({ id, name, variant, size, width, height, radius, sizeSlot, title, style, ...props }: WalletLogoProps): react_jsx_runtime.JSX.Element | null;
26
+
27
+ interface AurumLogoProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {
28
+ /** Logo variant - 'icon' | 'brand' | 'black' | 'white' */
29
+ variant?: AurumLogoVariant;
30
+ /** Size in pixels (sets width and height) */
31
+ size?: number;
32
+ /** Border radius config token - defaults to 'md' */
33
+ radius?: BorderRadiusToken;
34
+ /** Size slot for border radius scaling (xs, sm, md, lg, xl) */
35
+ sizeSlot?: BorderRadiusSizeSlot;
36
+ /** Accessible title - when provided, removes aria-hidden and adds accessible label */
37
+ title?: string;
38
+ /** Optional color override for the hood path */
39
+ color?: string;
40
+ }
41
+ /**
42
+ * Aurum brand logo component.
43
+ *
44
+ * @example
45
+ * <AurumLogo variant="brand" size={48} />
46
+ * <AurumLogo variant="icon" size={24} radius="lg" />
47
+ */
48
+ declare function AurumLogo({ variant, size, width, height, radius, sizeSlot, title, color, style, ...props }: AurumLogoProps): react_jsx_runtime.JSX.Element | null;
49
+
50
+ /**
51
+ * Gets the border radius for a logo based on the config token and size slot.
52
+ * Uses the shared scale system to ensure consistency with other UI elements.
53
+ *
54
+ * @param token - The border radius config (none, sm, md, lg, xl) - from brandConfig.borderRadius
55
+ * @param slot - The element size slot (xs, sm, md, lg, xl) - defaults to 'sm'
56
+ * @returns The border radius as a CSS string (e.g., "10px")
57
+ *
58
+ * @example
59
+ * getLogoRadius('xl', 'xs') // => "10px" (for ~32px logos)
60
+ * getLogoRadius('xl', 'sm') // => "18px" (for ~54px logos)
61
+ * getLogoRadius('xl', 'md') // => "26px" (for ~80px logos)
62
+ */
63
+ declare function getLogoRadius(token: BorderRadiusToken, slot?: BorderRadiusSizeSlot): string;
64
+
65
+ declare function AppkitBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
66
+
67
+ declare function AppkitBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
68
+
69
+ declare function AppkitIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
70
+
71
+ declare function AppkitWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
72
+
73
+ declare function BraveBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
74
+
75
+ declare function BraveBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
76
+
77
+ declare function BraveIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
78
+
79
+ declare function BraveWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
80
+
81
+ declare function CoinbaseWalletBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
82
+
83
+ declare function CoinbaseWalletBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
84
+
85
+ declare function CoinbaseWalletIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
86
+
87
+ declare function CoinbaseWalletWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
88
+
89
+ declare function LedgerBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
90
+
91
+ declare function LedgerBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
92
+
93
+ declare function LedgerIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
94
+
95
+ declare function LedgerWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
96
+
97
+ declare function MetamaskBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
98
+
99
+ declare function MetamaskBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
100
+
101
+ declare function MetamaskIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
102
+
103
+ declare function MetamaskWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
104
+
105
+ declare function PhantomBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
106
+
107
+ declare function PhantomBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
108
+
109
+ declare function PhantomIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
110
+
111
+ declare function PhantomWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
112
+
113
+ declare function RabbyBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
114
+
115
+ declare function RabbyBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
116
+
117
+ declare function RabbyIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
118
+
119
+ declare function RabbyWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
120
+
121
+ declare function WalletconnectBlack(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
122
+
123
+ declare function WalletconnectBrand(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
124
+
125
+ declare function WalletconnectIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
126
+
127
+ declare function WalletconnectWhite(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
128
+
129
+ interface AurumIconProps extends SVGProps<SVGSVGElement> {
130
+ /** Optional color override for the hood path */
131
+ color?: string;
132
+ }
133
+ declare function AurumIcon({ color, ...props }: AurumIconProps): react_jsx_runtime.JSX.Element;
134
+
135
+ interface AurumBrandProps extends SVGProps<SVGSVGElement> {
136
+ /** Optional color override for the hood path */
137
+ color?: string;
138
+ }
139
+ declare function AurumBrand({ color, ...props }: AurumBrandProps): react_jsx_runtime.JSX.Element;
140
+
141
+ interface AurumBlackProps extends SVGProps<SVGSVGElement> {
142
+ /** Optional color override for the hood path */
143
+ color?: string;
144
+ }
145
+ declare function AurumBlack({ color, ...props }: AurumBlackProps): react_jsx_runtime.JSX.Element;
146
+
147
+ interface AurumWhiteProps extends SVGProps<SVGSVGElement> {
148
+ /** Optional color override for the hood path */
149
+ color?: string;
150
+ }
151
+ declare function AurumWhite({ color, ...props }: AurumWhiteProps): react_jsx_runtime.JSX.Element;
152
+
153
+ export { AppkitBlack, AppkitBrand, AppkitIcon, AppkitWhite, AurumBlack, AurumBrand, AurumIcon, AurumLogo, type AurumLogoProps, type AurumLogoVariant, AurumWhite, BraveBlack, BraveBrand, BraveIcon, BraveWhite, CoinbaseWalletBlack, CoinbaseWalletBrand, CoinbaseWalletIcon, CoinbaseWalletWhite, LedgerBlack, LedgerBrand, LedgerIcon, LedgerWhite, MetamaskBlack, MetamaskBrand, MetamaskIcon, MetamaskWhite, PhantomBlack, PhantomBrand, PhantomIcon, PhantomWhite, RabbyBlack, RabbyBrand, RabbyIcon, RabbyWhite, WalletLogo, type WalletLogoProps, WalletconnectBlack, WalletconnectBrand, WalletconnectIcon, WalletconnectWhite, getLogoRadius };