@skip-go/widget 1.3.0 → 2.0.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/README.md +7 -3
- package/build/index.es.js +320 -233
- package/build/index.es.js.map +1 -1
- package/build/provider/index.d.ts +0 -2
- package/build/store/swap-widget.d.ts +0 -9
- package/build/ui/AssetSelect/AssetSelectContent.d.ts +5 -0
- package/build/ui/StyledComponents/Buttons.d.ts +3 -0
- package/build/ui/StyledComponents/Input.d.ts +2 -0
- package/build/ui/StyledComponents/Theme.d.ts +4 -0
- package/build/ui/Widget.d.ts +6 -1
- package/build/ui/WithStyledShadowDom.d.ts +4 -0
- package/build/ui/index.d.ts +5 -1
- package/build/ui/theme.d.ts +20 -0
- package/package.json +4 -3
- package/build/hooks/use-fix-radix-ui-wheel-event.d.ts +0 -1
package/README.md
CHANGED
|
@@ -56,9 +56,6 @@ The `SwapWidget` component accepts the following props:
|
|
|
56
56
|
|
|
57
57
|
````tsx
|
|
58
58
|
interface SwapWidgetProps {
|
|
59
|
-
colors?: {
|
|
60
|
-
primary?: string; // Custom primary color for the widget. Defaults to `#FF486E`.
|
|
61
|
-
};
|
|
62
59
|
defaultRoute?: {
|
|
63
60
|
// Default route for the widget.
|
|
64
61
|
amountIn?: number;
|
|
@@ -129,6 +126,13 @@ interface SwapWidgetProps {
|
|
|
129
126
|
getRestEndpointForChain?: (chainID: string) => Promise<string>;
|
|
130
127
|
};
|
|
131
128
|
apiURL?: string; // Custom API URL to override Skip API endpoint. Defaults to Skip proxied endpoints. Please reach out to us first if you want to be whitelisted.
|
|
129
|
+
theme?: {
|
|
130
|
+
backgroundColor: string; // background color
|
|
131
|
+
textColor: string; // text color
|
|
132
|
+
borderColor: string; // border color
|
|
133
|
+
brandColor: string; // color used for confirmation buttons
|
|
134
|
+
highlightColor: string; // color used when hovering over buttons, and in select chain/asset dropdown
|
|
135
|
+
};
|
|
132
136
|
}
|
|
133
137
|
````
|
|
134
138
|
|