@edel-finance/swap-widget 0.0.1 → 0.0.2
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 +175 -0
- package/dist/adapters/angular.d.ts +32 -0
- package/dist/adapters/angular.js +84 -0
- package/dist/adapters/solid.d.ts +56 -0
- package/dist/adapters/solid.js +41 -0
- package/dist/adapters/svelte.d.ts +26 -0
- package/dist/adapters/svelte.js +45 -0
- package/dist/adapters/vue.d.ts +58 -0
- package/dist/adapters/vue.js +124 -0
- package/dist/embed.d.ts +58 -5
- package/dist/embed.js +211 -31
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/logos.d.ts +59 -0
- package/dist/logos.js +161 -0
- package/dist/theme.d.ts +18 -0
- package/dist/theme.js +592 -175
- package/dist/widget.d.ts +26 -2
- package/dist/widget.js +188 -15
- package/package.json +28 -5
package/dist/theme.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Alpine Forest II theme tokens and CSS-isolated style sheet for @edel-finance/swap-widget.
|
|
3
3
|
*
|
|
4
|
+
* Visual tokens, radii, spacing, and typography are lifted directly from
|
|
5
|
+
* edel-markets-frontend's Alpine Forest II Deposit Bridge modal so the embeddable
|
|
6
|
+
* swap widget matches the production trading terminal 1:1.
|
|
7
|
+
*
|
|
4
8
|
* All rules are scoped to `.edel-sw-root` with an explicit reset so the widget
|
|
5
9
|
* never inherits or leaks styles when embedded in SuperNova, Loop, or partner dApps.
|
|
6
10
|
*/
|
|
@@ -8,19 +12,33 @@ export type SwapWidgetTheme = "dark" | "light";
|
|
|
8
12
|
export interface AlpineThemeTokens {
|
|
9
13
|
bg: string;
|
|
10
14
|
cardBg: string;
|
|
15
|
+
panel2: string;
|
|
11
16
|
surfaceBg: string;
|
|
12
17
|
surfaceHover: string;
|
|
18
|
+
surface4: string;
|
|
13
19
|
border: string;
|
|
14
20
|
borderStrong: string;
|
|
21
|
+
textStrong: string;
|
|
15
22
|
text: string;
|
|
23
|
+
text2: string;
|
|
16
24
|
textMuted: string;
|
|
17
25
|
accent: string;
|
|
26
|
+
accentRgb: string;
|
|
27
|
+
tintRgb: string;
|
|
18
28
|
accentHover: string;
|
|
19
29
|
accentText: string;
|
|
30
|
+
buttonPrimaryBg: string;
|
|
31
|
+
buttonPrimaryHover: string;
|
|
32
|
+
buttonPrimaryText: string;
|
|
33
|
+
buttonDisabledBg: string;
|
|
34
|
+
buttonDisabledText: string;
|
|
20
35
|
success: string;
|
|
21
36
|
warning: string;
|
|
22
37
|
danger: string;
|
|
38
|
+
dangerSoft: string;
|
|
39
|
+
dangerLine: string;
|
|
23
40
|
shadow: string;
|
|
41
|
+
shadowPop: string;
|
|
24
42
|
}
|
|
25
43
|
export declare const ALPINE_FOREST_THEMES: Record<SwapWidgetTheme, AlpineThemeTokens>;
|
|
26
44
|
export declare function getIsolatedWidgetCss(theme: SwapWidgetTheme): string;
|