@avalabs/k2-alpine 1.229.1-alpha.3.f032d4884 → 1.235.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/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/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/Toast/Toast.d.ts +2 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2733 -2454
- package/dist/index.js.map +1 -1
- package/dist/utils/getVariableFontSize.d.ts +10 -0
- package/package.json +11 -14
- package/dist/components/SelectCountry/SelectCountry.d.ts +0 -20
- package/dist/components/SelectCountry/index.d.ts +0 -1
|
@@ -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.235.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",
|
|
@@ -67,8 +58,8 @@
|
|
|
67
58
|
"@types/react-dom": "^19.1.6",
|
|
68
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",
|
|
@@ -77,5 +68,11 @@
|
|
|
77
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';
|