@skip-go/widget 1.2.6-alpha.0 → 1.2.6
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 +191 -191
- package/build/index.es.js +211 -304
- package/build/index.es.js.map +1 -1
- package/build/ui/AssetSelect/AssetSelectContent.d.ts +0 -5
- package/build/ui/Widget.d.ts +1 -4
- package/build/ui/index.d.ts +1 -4
- package/package.json +3 -4
- package/build/ui/StyledComponents/Buttons.d.ts +0 -3
- package/build/ui/StyledComponents/Input.d.ts +0 -2
- package/build/ui/StyledComponents/Theme.d.ts +0 -3
- package/build/ui/WithStyledShadowDom.d.ts +0 -4
- package/build/ui/theme.d.ts +0 -36
- package/build/utils/withStyledComponent.d.ts +0 -7
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as ScrollArea from '@radix-ui/react-scroll-area';
|
|
3
1
|
import { Asset } from '@skip-go/core';
|
|
4
2
|
interface Props {
|
|
5
3
|
assets?: Asset[];
|
|
@@ -11,6 +9,3 @@ interface Props {
|
|
|
11
9
|
}
|
|
12
10
|
declare function AssetSelectContent({ assets, balances, onChange, onClose, showChainInfo, isBalancesLoading, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export default AssetSelectContent;
|
|
14
|
-
export declare const StyledScrollAreaRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<ScrollArea.ScrollAreaProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
-
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<ScrollArea.ScrollAreaProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
package/build/ui/Widget.d.ts
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type SwapWidgetUIProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'>;
|
|
3
|
-
export declare const SwapWidgetUI: ({ className, style }: SwapWidgetUIProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export {};
|
|
1
|
+
export declare const SwapWidgetUI: ({ className, style, }: Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'>) => import("react/jsx-runtime").JSX.Element;
|
package/build/ui/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SwapWidgetProviderProps } from '../provider';
|
|
3
3
|
import { ConfigureSwapWidgetArgs } from '../store/swap-widget';
|
|
4
|
-
|
|
5
|
-
export type SwapWidgetProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> & ConfigureSwapWidgetArgs & Partial<SwapWidgetProviderProps> & {
|
|
6
|
-
theme?: PartialTheme;
|
|
7
|
-
};
|
|
4
|
+
export type SwapWidgetProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> & ConfigureSwapWidgetArgs & Partial<SwapWidgetProviderProps>;
|
|
8
5
|
export declare const SwapWidget: React.FC<SwapWidgetProps>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "1.2.6
|
|
4
|
+
"version": "1.2.6",
|
|
5
5
|
"repository": "https://github.com/skip-mev/widget",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "17.x || 18.x",
|
|
27
|
-
"react-dom": "17.x || 18.x"
|
|
28
|
-
"styled-components": "^6.0.0",
|
|
29
|
-
"stylis": "^4.0.0"
|
|
27
|
+
"react-dom": "17.x || 18.x"
|
|
30
28
|
},
|
|
31
29
|
"resolutions": {
|
|
32
30
|
"@cosmos-kit/cosmostation-extension": "^2.7.10",
|
|
@@ -74,6 +72,7 @@
|
|
|
74
72
|
"match-sorter": "^6.3.4",
|
|
75
73
|
"react-hot-toast": "^2.4.1",
|
|
76
74
|
"react-icons": "^5.2.1",
|
|
75
|
+
"react-shadow-scope": "^1.0.5",
|
|
77
76
|
"tailwind-merge": "^2.3.0",
|
|
78
77
|
"viem": "2.x",
|
|
79
78
|
"wagmi": "2.x",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledPrimaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
3
|
-
export declare const StyledSecondaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledSearchInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledPrimaryDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const StyledPrimaryBrandDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/build/ui/theme.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import 'styled-components';
|
|
2
|
-
export declare const defaultTheme: {
|
|
3
|
-
primary: {
|
|
4
|
-
backgroundColor: string;
|
|
5
|
-
textColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
brandColor: string;
|
|
8
|
-
};
|
|
9
|
-
secondary: {
|
|
10
|
-
backgroundColor: string;
|
|
11
|
-
textColor: string;
|
|
12
|
-
borderColor: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
type NestedPartial<T> = {
|
|
16
|
-
[K in keyof T]?: Partial<T[K]>;
|
|
17
|
-
};
|
|
18
|
-
export type PartialTheme = NestedPartial<Theme> | undefined;
|
|
19
|
-
export type Theme = {
|
|
20
|
-
primary: {
|
|
21
|
-
backgroundColor: string;
|
|
22
|
-
textColor: string;
|
|
23
|
-
borderColor: string;
|
|
24
|
-
brandColor: string;
|
|
25
|
-
};
|
|
26
|
-
secondary: {
|
|
27
|
-
backgroundColor: string;
|
|
28
|
-
textColor: string;
|
|
29
|
-
borderColor: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
declare module 'styled-components' {
|
|
33
|
-
interface DefaultTheme extends Theme {
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("react").ForwardRefExoticComponent<import("styled-components").ExecutionProps & import("react").RefAttributes<(props: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
theme: any;
|
|
5
|
-
children: any;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null>> & {};
|
|
7
|
-
export default _default;
|