@avalabs/k2-alpine 1.188.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.
Files changed (98) hide show
  1. package/README.md +29 -0
  2. package/dist/components/Accordion/Accordion.d.ts +3 -0
  3. package/dist/components/Accordion/AccordionActions.d.ts +3 -0
  4. package/dist/components/Accordion/AccordionDetails.d.ts +3 -0
  5. package/dist/components/Accordion/AccordionSummary.d.ts +9 -0
  6. package/dist/components/Accordion/Accordions.d.ts +3 -0
  7. package/dist/components/Accordion/index.d.ts +5 -0
  8. package/dist/components/Avatar/Avatar.d.ts +9 -0
  9. package/dist/components/Button/SquareButton.d.ts +6 -0
  10. package/dist/components/CustomDialog/CustomDialog.d.ts +30 -0
  11. package/dist/components/CustomDialog/index.d.ts +1 -0
  12. package/dist/components/Icons/Airdrop.d.ts +2 -0
  13. package/dist/components/Icons/Avalanche.d.ts +9 -0
  14. package/dist/components/Icons/Avatar.d.ts +2 -0
  15. package/dist/components/Icons/Bitcoin.d.ts +9 -0
  16. package/dist/components/Icons/Bridge.d.ts +2 -0
  17. package/dist/components/Icons/CChain.d.ts +2 -0
  18. package/dist/components/Icons/ChevronDown.d.ts +2 -0
  19. package/dist/components/Icons/CloudAlert.d.ts +2 -0
  20. package/dist/components/Icons/CloudDownload.d.ts +2 -0
  21. package/dist/components/Icons/Contacts.d.ts +2 -0
  22. package/dist/components/Icons/Core.d.ts +2 -0
  23. package/dist/components/Icons/DeployedCode.d.ts +2 -0
  24. package/dist/components/Icons/Discover.d.ts +2 -0
  25. package/dist/components/Icons/Encrypted.d.ts +2 -0
  26. package/dist/components/Icons/Ethereum.d.ts +9 -0
  27. package/dist/components/Icons/Explorer.d.ts +2 -0
  28. package/dist/components/Icons/Export.d.ts +2 -0
  29. package/dist/components/Icons/Landscape.d.ts +2 -0
  30. package/dist/components/Icons/LedgerWallet.d.ts +2 -0
  31. package/dist/components/Icons/Monitoring.d.ts +2 -0
  32. package/dist/components/Icons/Outbound.d.ts +2 -0
  33. package/dist/components/Icons/PChainIcon.d.ts +2 -0
  34. package/dist/components/Icons/Portfolio.d.ts +2 -0
  35. package/dist/components/Icons/QrCode.d.ts +2 -0
  36. package/dist/components/Icons/Send.d.ts +2 -0
  37. package/dist/components/Icons/Signature.d.ts +2 -0
  38. package/dist/components/Icons/Solana.d.ts +7 -0
  39. package/dist/components/Icons/Stake.d.ts +2 -0
  40. package/dist/components/Icons/Swap.d.ts +2 -0
  41. package/dist/components/Icons/Tools.d.ts +2 -0
  42. package/dist/components/Icons/TriangleDown.d.ts +2 -0
  43. package/dist/components/Icons/TriangleUp.d.ts +2 -0
  44. package/dist/components/Icons/WalletClosed.d.ts +2 -0
  45. package/dist/components/Icons/WalletOpen.d.ts +2 -0
  46. package/dist/components/Icons/WaterDrop.d.ts +2 -0
  47. package/dist/components/Icons/XChainIcon.d.ts +2 -0
  48. package/dist/components/Icons/XPChain.d.ts +2 -0
  49. package/dist/components/Icons/index.d.ts +146 -0
  50. package/dist/components/Popover/Popover.d.ts +10 -0
  51. package/dist/components/Popover/PopoverContent.d.ts +15 -0
  52. package/dist/components/Popover/PopoverItem.d.ts +40 -0
  53. package/dist/components/Popover/index.d.ts +2 -0
  54. package/dist/components/PopoverItem/PopoverItem.d.ts +40 -0
  55. package/dist/components/PopoverItem/index.d.ts +1 -0
  56. package/dist/components/SearchInput/SearchInput.d.ts +12 -0
  57. package/dist/components/Select/Select.d.ts +7 -0
  58. package/dist/components/StoreButtons/AppStore.d.ts +6 -0
  59. package/dist/components/StoreButtons/ChromeStore.d.ts +6 -0
  60. package/dist/components/StoreButtons/PlayStore.d.ts +6 -0
  61. package/dist/components/StoreButtons/index.d.ts +3 -0
  62. package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -0
  63. package/dist/components/Toast/Toast.d.ts +25 -0
  64. package/dist/components/Toast/index.d.ts +1 -0
  65. package/dist/components/TruncateText/TruncateText.d.ts +30 -0
  66. package/dist/components/Typography/Typography.d.ts +5 -0
  67. package/dist/global.d.ts +181 -0
  68. package/dist/index.cjs +71 -0
  69. package/dist/index.d.ts +24 -0
  70. package/dist/index.js +2704 -0
  71. package/dist/theme/components/alert.d.ts +2 -0
  72. package/dist/theme/components/appBar.d.ts +2 -0
  73. package/dist/theme/components/avatar.d.ts +2 -0
  74. package/dist/theme/components/backdrop.d.ts +2 -0
  75. package/dist/theme/components/button.d.ts +2 -0
  76. package/dist/theme/components/card.d.ts +2 -0
  77. package/dist/theme/components/checkbox.d.ts +2 -0
  78. package/dist/theme/components/container.d.ts +2 -0
  79. package/dist/theme/components/dialog.d.ts +2 -0
  80. package/dist/theme/components/drawer.d.ts +2 -0
  81. package/dist/theme/components/index.d.ts +1404 -0
  82. package/dist/theme/components/progress.d.ts +2 -0
  83. package/dist/theme/components/switch.d.ts +2 -0
  84. package/dist/theme/components/table.d.ts +2 -0
  85. package/dist/theme/components/tabs.d.ts +2 -0
  86. package/dist/theme/components/toolbar.d.ts +2 -0
  87. package/dist/theme/fonts.d.ts +4 -0
  88. package/dist/theme/index.d.ts +1 -0
  89. package/dist/theme/palette.d.ts +4 -0
  90. package/dist/theme/shape.d.ts +2 -0
  91. package/dist/theme/theme.d.ts +4 -0
  92. package/dist/theme/typography.d.ts +2 -0
  93. package/dist/theme/utilities/getComponentStyles.d.ts +3 -0
  94. package/dist/utils/combineSx.d.ts +2 -0
  95. package/dist/utils/getHexAlpha.d.ts +3 -0
  96. package/dist/utils/withSx.d.ts +13 -0
  97. package/dist/vite-env.d.ts +1 -0
  98. package/package.json +56 -0
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export type CoreTheme = 'light' | 'dark' | 'testnet';
3
+ type ThemeProviderProps = {
4
+ theme: CoreTheme;
5
+ };
6
+ export declare const ThemeProvider: import('react').NamedExoticComponent<PropsWithChildren<ThemeProviderProps>>;
7
+ export {};
@@ -0,0 +1,25 @@
1
+ export type ToastType = 'info' | 'success' | 'critical' | 'error' | 'suspicious' | 'scam' | 'custom' | 'basic';
2
+ export type ToastPosition = {
3
+ vertical: 'top' | 'bottom';
4
+ horizontal: 'left' | 'center' | 'right';
5
+ };
6
+ export type ToastOptions = {
7
+ position?: ToastPosition;
8
+ duration?: number;
9
+ showCloseIcon?: boolean;
10
+ type?: ToastType;
11
+ description?: string;
12
+ action?: React.ReactNode;
13
+ };
14
+ export declare const toast: {
15
+ info: (title: string, options?: ToastOptions) => string | number;
16
+ success: (title: string, options?: ToastOptions) => string | number;
17
+ critical: (title: string, options?: ToastOptions) => string | number;
18
+ error: (title: string, options?: ToastOptions) => string | number;
19
+ suspicious: (title: string, options?: ToastOptions) => string | number;
20
+ scam: (title: string, options?: ToastOptions) => string | number;
21
+ show: (title: string, options?: ToastOptions) => string | number;
22
+ dismiss: (id: string) => void;
23
+ dismissAll: () => void;
24
+ };
25
+ export declare const Toaster: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Toast';
@@ -0,0 +1,30 @@
1
+ import { TypographyProps } from '@mui/material';
2
+ import { PropsWithChildren } from 'react';
3
+ export declare const TRUNCATE_TEXT_SIZES: {
4
+ readonly compact: 9;
5
+ readonly medium: 24;
6
+ readonly large: 48;
7
+ };
8
+ export type TruncateTextSize = keyof typeof TRUNCATE_TEXT_SIZES;
9
+ export declare const truncateAddress: (address: string, chars?: number) => string;
10
+ export declare const truncateLabel: (label: string, labelLength: number) => string;
11
+ export interface TruncateTextProps extends Omit<TypographyProps, 'monospace'> {
12
+ label?: string;
13
+ size?: true | number | TruncateTextSize;
14
+ showTooltip?: boolean;
15
+ monospace?: boolean;
16
+ }
17
+ /**
18
+ * TruncateText component for displaying truncated text with optional tooltip
19
+ *
20
+ * @example
21
+ * // Basic usage (compact size)
22
+ * <TruncateText>0x742d35Cc6634C0532925a3b844Bc454e4438f44e</TruncateText>
23
+ *
24
+ * // Medium size truncation
25
+ * <TruncateText size="medium">0x742d35Cc6634C0532925a3b844Bc454e4438f44e</TruncateText>
26
+ *
27
+ * // Label truncation (truncates at the end instead of in the middle)
28
+ * <TruncateText label="This is a very long label" size="medium" />
29
+ */
30
+ export declare const TruncateText: import('react').NamedExoticComponent<PropsWithChildren<TruncateTextProps>>;
@@ -0,0 +1,5 @@
1
+ import { TypographyProps as MuiTypographyProps } from '@mui/material';
2
+ export type TypographyProps = Omit<MuiTypographyProps, 'fontWeight'> & {
3
+ fontWeight?: 'semibold' | MuiTypographyProps['fontWeight'];
4
+ };
5
+ export declare const Typography: import('react').NamedExoticComponent<TypographyProps>;
@@ -0,0 +1,181 @@
1
+ import { CSSProperties } from '@mui/material/styles/createMixins';
2
+ declare module '*.svg' {
3
+ import React = require('react');
4
+ export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>;
5
+ const src: string;
6
+
7
+ export default src;
8
+ }
9
+
10
+ type ThemeComponentStylesOverride<T = CSSProperties> = T | (({ theme }: { theme: Theme }) => T);
11
+
12
+ declare module '@mui/material/styles' {
13
+ interface Theme {
14
+ shape: {
15
+ borderRadius: number | string;
16
+ mediumBorderRadius: number | string;
17
+ largeBorderRadius: number | string;
18
+ xlargeBorderRadius: number | string;
19
+ fullBorderRadius: number | string;
20
+ };
21
+ componentStyles: {
22
+ appBar?: ThemeComponentStylesOverride;
23
+ drawer?: ThemeComponentStylesOverride;
24
+ buttonDisabled?: ThemeComponentStylesOverride;
25
+ tableCell?: ThemeComponentStylesOverride;
26
+ };
27
+ }
28
+
29
+ interface ThemeOptions {
30
+ shape?: {
31
+ borderRadius?: number | string;
32
+ mediumBorderRadius?: number | string;
33
+ largeBorderRadius?: number | string;
34
+ xlargeBorderRadius?: number | string;
35
+ fullBorderRadius?: number | string;
36
+ };
37
+ componentStyles?: {
38
+ appBar?: ThemeComponentStylesOverride;
39
+ drawer?: ThemeComponentStylesOverride;
40
+ buttonDisabled?: ThemeComponentStylesOverride;
41
+ tableCell?: ThemeComponentStylesOverride;
42
+ };
43
+ }
44
+
45
+ interface Typography {
46
+ fontFamilyMonospace: string;
47
+ }
48
+
49
+ interface TypographyOptions {
50
+ fontFamilyMonospace?: string;
51
+ }
52
+
53
+ interface CommonColors {
54
+ white_10_alpha_match: string;
55
+ white_10: string;
56
+ white_30: string;
57
+ white_60: string;
58
+ white_80: string;
59
+ }
60
+
61
+ type PaletteMode = 'light' | 'dark' | 'testnet';
62
+
63
+ interface Palette {
64
+ alphaMatch: {
65
+ paper: string;
66
+ };
67
+ avalanche: {
68
+ main: string;
69
+ };
70
+ green: {
71
+ light: string;
72
+ main: string;
73
+ };
74
+ red: {
75
+ main: string;
76
+ };
77
+ teal: {
78
+ main: string;
79
+ };
80
+ neutral: {
81
+ 50: string;
82
+ 850: string;
83
+ '850_10': string;
84
+ '850_30': string;
85
+ '850_60': string;
86
+ '850_80': string;
87
+ 900: string;
88
+ 950: string;
89
+ };
90
+ glass: {
91
+ light: string;
92
+ light2: string;
93
+ dark: string;
94
+ dark2: string;
95
+ dark3: string;
96
+ };
97
+ surface: {
98
+ primary: string;
99
+ secondary: string;
100
+ tertiary: string;
101
+ };
102
+ gradient: {
103
+ conic1: string;
104
+ conic2: string;
105
+ conic3: string;
106
+ positiveChange: string;
107
+ negativeChange: string;
108
+ };
109
+ }
110
+
111
+ interface PaletteOptions {
112
+ alphaMatch?: {
113
+ paper: string;
114
+ };
115
+ avalanche?: {
116
+ main: string;
117
+ };
118
+ green?: {
119
+ light: string;
120
+ main: string;
121
+ };
122
+ red?: {
123
+ main: string;
124
+ };
125
+ teal?: {
126
+ main: string;
127
+ };
128
+ neutral?: {
129
+ 50?: string;
130
+ 850?: string;
131
+ '850_10'?: string;
132
+ '850_30'?: string;
133
+ '850_60'?: string;
134
+ '850_80'?: string;
135
+ 900?: string;
136
+ 950?: string;
137
+ };
138
+ glass?: {
139
+ light?: string;
140
+ light2?: string;
141
+ dark?: string;
142
+ dark2?: string;
143
+ dark3?: string;
144
+ };
145
+ surface?: {
146
+ primary?: string;
147
+ secondary?: string;
148
+ tertiary?: string;
149
+ };
150
+ gradient?: {
151
+ conic1?: string;
152
+ conic2?: string;
153
+ conic3?: string;
154
+ positiveChange?: string;
155
+ negativeChange?: string;
156
+ };
157
+ }
158
+
159
+ export interface TypeBackground {
160
+ backdrop: string;
161
+ default: string;
162
+ paper: string;
163
+ navBarItem: string;
164
+ switchTrackUnchecked: string;
165
+ icon: string;
166
+ }
167
+
168
+ interface TypographyVariants {
169
+ body3: React.CSSProperties;
170
+ }
171
+
172
+ interface TypographyVariantsOptions {
173
+ body3?: React.CSSProperties;
174
+ }
175
+ }
176
+
177
+ declare module '@mui/material/Typography' {
178
+ interface TypographyPropsVariantOverrides {
179
+ body3: true;
180
+ }
181
+ }