@skip-go/widget 3.11.2 → 3.12.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/build/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ declare type DefaultRouteConfig = {
|
|
|
45
45
|
export declare const defaultTheme: {
|
|
46
46
|
brandColor: string;
|
|
47
47
|
brandTextColor: undefined;
|
|
48
|
+
borderRadius: WidgetBorderRadius;
|
|
48
49
|
primary: {
|
|
49
50
|
background: {
|
|
50
51
|
normal: string;
|
|
@@ -81,6 +82,7 @@ declare type IbcEurekaHighlightedAssets = Record<string, string[] | undefined>;
|
|
|
81
82
|
export declare const lightTheme: {
|
|
82
83
|
brandColor: string;
|
|
83
84
|
brandTextColor: undefined;
|
|
85
|
+
borderRadius: WidgetBorderRadius;
|
|
84
86
|
primary: {
|
|
85
87
|
background: {
|
|
86
88
|
normal: string;
|
|
@@ -206,6 +208,7 @@ declare type SetAssetProps = {
|
|
|
206
208
|
export declare type Theme = {
|
|
207
209
|
brandColor: string;
|
|
208
210
|
brandTextColor?: string;
|
|
211
|
+
borderRadius?: WidgetBorderRadius;
|
|
209
212
|
primary: {
|
|
210
213
|
background: {
|
|
211
214
|
normal: string;
|
|
@@ -244,6 +247,29 @@ declare type WalletConnect = {
|
|
|
244
247
|
|
|
245
248
|
export declare const Widget: (props: WidgetProps) => default_2.JSX.Element;
|
|
246
249
|
|
|
250
|
+
declare type WidgetBorderRadius = {
|
|
251
|
+
/**
|
|
252
|
+
* Border radius for the main container and buttons, used in main pages container and main used in buttons.
|
|
253
|
+
*/
|
|
254
|
+
main?: string | number;
|
|
255
|
+
/**
|
|
256
|
+
* Border radius for the selection button, used in buttons like "Select asset" or "Selector for route preferences and slippage slector button".
|
|
257
|
+
*/
|
|
258
|
+
selectionButton?: string | number;
|
|
259
|
+
/**
|
|
260
|
+
* Border radius for the ghost button, used in buttons like "Max button" or "History button" or "Bottom drawer button".
|
|
261
|
+
*/
|
|
262
|
+
ghostButton?: string | number;
|
|
263
|
+
/**
|
|
264
|
+
* Border radius for the modal container, used in modals like "Asset selector modal" or "History modal" or "Wallet connector modal".
|
|
265
|
+
*/
|
|
266
|
+
modalContainer?: string | number;
|
|
267
|
+
/**
|
|
268
|
+
* Border radius for the row item, used in row items like "History row item" or "Modal row item (Wallet connector or asset selecion)".
|
|
269
|
+
*/
|
|
270
|
+
rowItem?: string | number;
|
|
271
|
+
};
|
|
272
|
+
|
|
247
273
|
export declare type WidgetProps = {
|
|
248
274
|
/**
|
|
249
275
|
* If specified, add a `data-root-id` attribute to all root elements of the widget, including portals.
|
|
@@ -252,6 +278,10 @@ export declare type WidgetProps = {
|
|
|
252
278
|
rootId?: string;
|
|
253
279
|
theme?: PartialTheme | "light" | "dark";
|
|
254
280
|
brandColor?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Customize the corner roundness of widget components
|
|
283
|
+
* @default 25
|
|
284
|
+
*/
|
|
255
285
|
onlyTestnet?: boolean;
|
|
256
286
|
defaultRoute?: DefaultRouteConfig;
|
|
257
287
|
settings?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-
|
|
1
|
+
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-Bm1mrpK6.js";
|
|
2
2
|
import qg, { PROPOSAL_EXPIRY_MESSAGE } from "@walletconnect/sign-client";
|
|
3
3
|
const global = globalThis || void 0 || self;
|
|
4
4
|
var buffer$1 = {};
|
package/build/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.12.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/skip-mev/skip-go",
|
|
7
7
|
"directory": "packages/widget"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@penumbra-zone/transport-dom": "^7.5.0",
|
|
43
43
|
"@r2wc/react-to-web-component": "^2.0.3",
|
|
44
44
|
"@sentry/react": "^8.46.0",
|
|
45
|
-
"@skip-go/client": "1.2.
|
|
45
|
+
"@skip-go/client": "1.2.3",
|
|
46
46
|
"@solana/spl-token": "^0.4.8",
|
|
47
47
|
"@solana/wallet-adapter-backpack": "^0.1.14",
|
|
48
48
|
"@solana/wallet-adapter-coinbase": "^0.1.19",
|