@avalabs/k2-alpine 1.229.1-alpha.3.f032d4884 → 1.246.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/dist/components/AutosizeTextField/AutosizeTextField.d.ts +3 -0
- package/dist/components/AutosizeTextField/types.d.ts +9 -0
- package/dist/components/Button/SquareButton.d.ts +11 -1
- package/dist/components/CurrencyInput/AdornmentWrapper.d.ts +6 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -0
- package/dist/components/CurrencyInput/types.d.ts +24 -0
- package/dist/components/CurrencyInput/utils.d.ts +5 -0
- package/dist/components/CustomDialog/CustomDialog.d.ts +4 -0
- package/dist/components/Glow/Glow.d.ts +4 -2
- package/dist/components/Icons/Arbitrum.d.ts +3 -0
- package/dist/components/Icons/Base.d.ts +3 -0
- package/dist/components/Icons/Optimism.d.ts +3 -0
- package/dist/components/Icons/Sell.d.ts +2 -0
- package/dist/components/Icons/Solana.d.ts +1 -0
- package/dist/components/Icons/Withdraw.d.ts +2 -0
- package/dist/components/Icons/index.d.ts +27 -0
- package/dist/components/Tilt/Tilt.d.ts +5 -1
- package/dist/components/Toast/Toast.d.ts +2 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3441 -3060
- package/dist/index.js.map +1 -1
- package/dist/theme/theme.d.ts +12 -0
- package/dist/utils/getVariableFontSize.d.ts +10 -0
- package/package.json +17 -20
- package/dist/components/SelectCountry/SelectCountry.d.ts +0 -20
- package/dist/components/SelectCountry/index.d.ts +0 -1
package/dist/theme/theme.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare module '@mui/material/styles' {
|
|
|
21
21
|
accountDetails?: ThemeComponentStylesOverride;
|
|
22
22
|
appBar?: ThemeComponentStylesOverride;
|
|
23
23
|
drawer?: ThemeComponentStylesOverride;
|
|
24
|
+
buttonDisconnect?: ThemeComponentStylesOverride;
|
|
24
25
|
buttonDisabled?: ThemeComponentStylesOverride;
|
|
25
26
|
buttonHoverWithBoxShadow?: ThemeComponentStylesOverride;
|
|
26
27
|
buttonFocused?: ThemeComponentStylesOverride;
|
|
@@ -43,6 +44,7 @@ declare module '@mui/material/styles' {
|
|
|
43
44
|
appBar?: ThemeComponentStylesOverride;
|
|
44
45
|
drawer?: ThemeComponentStylesOverride;
|
|
45
46
|
buttonDisabled?: ThemeComponentStylesOverride;
|
|
47
|
+
buttonDisconnect?: ThemeComponentStylesOverride;
|
|
46
48
|
buttonHoverWithBoxShadow?: ThemeComponentStylesOverride;
|
|
47
49
|
buttonFocused?: ThemeComponentStylesOverride;
|
|
48
50
|
tableCell?: ThemeComponentStylesOverride;
|
|
@@ -161,6 +163,11 @@ declare module '@mui/material/styles' {
|
|
|
161
163
|
positiveChange: string;
|
|
162
164
|
negativeChange: string;
|
|
163
165
|
};
|
|
166
|
+
tabs: {
|
|
167
|
+
scrollButton: {
|
|
168
|
+
background: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
164
171
|
}
|
|
165
172
|
interface PaletteOptions {
|
|
166
173
|
alphaMatch?: {
|
|
@@ -243,6 +250,11 @@ declare module '@mui/material/styles' {
|
|
|
243
250
|
positiveChange?: string;
|
|
244
251
|
negativeChange?: string;
|
|
245
252
|
};
|
|
253
|
+
tabs?: {
|
|
254
|
+
scrollButton?: {
|
|
255
|
+
background?: string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
246
258
|
}
|
|
247
259
|
interface TypeBackground {
|
|
248
260
|
backdrop: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type FontSizeStep = {
|
|
2
|
+
readonly fontSize: number;
|
|
3
|
+
readonly length: number;
|
|
4
|
+
};
|
|
5
|
+
export type GetVariableFontSizeParameters = {
|
|
6
|
+
readonly steps: FontSizeStep[];
|
|
7
|
+
readonly currentLength: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const getVariableFontSize: ({ steps, currentLength }: GetVariableFontSizeParameters) => number;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@avalabs/k2-alpine",
|
|
3
3
|
"author": "Ava Labs",
|
|
4
4
|
"license": "Limited Ecosystem License",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.246.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.cjs",
|
|
8
8
|
"module": "dist/index.js",
|
|
@@ -23,15 +23,6 @@
|
|
|
23
23
|
"dist",
|
|
24
24
|
"assets"
|
|
25
25
|
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"dev": "pnpm run storybook",
|
|
28
|
-
"storybook": "storybook dev -p 6006",
|
|
29
|
-
"build:library": "rimraf dist && vite build",
|
|
30
|
-
"build:storybook": "storybook build",
|
|
31
|
-
"prepublishOnly": "node --experimental-strip-types ./scripts/prepublish.ts",
|
|
32
|
-
"postpublish": "node --experimental-strip-types ./scripts/postpublish.ts",
|
|
33
|
-
"typecheck": "tsc --noEmit"
|
|
34
|
-
},
|
|
35
26
|
"dependencies": {
|
|
36
27
|
"@emotion/react": "^11.14.0",
|
|
37
28
|
"@emotion/styled": "^11.14.0",
|
|
@@ -40,7 +31,7 @@
|
|
|
40
31
|
"dayjs": "^1.11.13",
|
|
41
32
|
"lodash-es": "4.17.21",
|
|
42
33
|
"react-country-flag": "3.1.0",
|
|
43
|
-
"react-day-picker": "^9.
|
|
34
|
+
"react-day-picker": "^9.9.0",
|
|
44
35
|
"sonner": "^2.0.3"
|
|
45
36
|
},
|
|
46
37
|
"peerDependencies": {
|
|
@@ -63,19 +54,25 @@
|
|
|
63
54
|
"@storybook/react-vite": "8.6.12",
|
|
64
55
|
"@storybook/test": "8.6.12",
|
|
65
56
|
"@types/lodash-es": "4.17.12",
|
|
66
|
-
"@types/react": "
|
|
67
|
-
"@types/react-dom": "
|
|
68
|
-
"@vitejs/plugin-react": "
|
|
57
|
+
"@types/react": "19.1.8",
|
|
58
|
+
"@types/react-dom": "19.1.6",
|
|
59
|
+
"@vitejs/plugin-react": "4.6.0",
|
|
69
60
|
"motion": "^12.5.0",
|
|
70
|
-
"react": "
|
|
71
|
-
"react-dom": "
|
|
61
|
+
"react": "19.1.0",
|
|
62
|
+
"react-dom": "19.1.0",
|
|
72
63
|
"react-icons": "^5.4.0",
|
|
73
64
|
"rimraf": "^6.0.1",
|
|
74
65
|
"storybook": "8.6.12",
|
|
75
66
|
"storybook-dark-mode": "^4.0.2",
|
|
76
|
-
"typescript": "
|
|
77
|
-
"vite": "
|
|
67
|
+
"typescript": "5.8.3",
|
|
68
|
+
"vite": "7.0.4",
|
|
78
69
|
"vite-plugin-dts": "^4.5.0"
|
|
79
70
|
},
|
|
80
|
-
"
|
|
81
|
-
|
|
71
|
+
"scripts": {
|
|
72
|
+
"dev": "pnpm run storybook",
|
|
73
|
+
"storybook": "storybook dev -p 6006",
|
|
74
|
+
"build:library": "rimraf dist && vite build",
|
|
75
|
+
"build:storybook": "storybook build",
|
|
76
|
+
"typecheck": "tsc --noEmit"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BorderlessSelectProps } from '@avalabs/k2-alpine';
|
|
2
|
-
export interface Country {
|
|
3
|
-
countryCode: string;
|
|
4
|
-
name: string;
|
|
5
|
-
regions?: string[];
|
|
6
|
-
flagImageUrl?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SelectCountryProps extends Omit<BorderlessSelectProps, 'label' | 'children' | 'onChange'> {
|
|
9
|
-
countries: Country[];
|
|
10
|
-
value?: string;
|
|
11
|
-
onChange?: (countryCode: string) => void;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
searchText?: string;
|
|
14
|
-
emptyText?: string;
|
|
15
|
-
label?: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
error?: boolean;
|
|
18
|
-
helperText?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function SelectCountry({ countries, value, onChange, placeholder, searchText, emptyText, label, disabled, error, helperText, ...props }: SelectCountryProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SelectCountry, type SelectCountryProps, type Country } from './SelectCountry';
|