@gearbox-protocol/ui-kit 4.0.1 → 4.1.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/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.variants.cjs +1 -1
- package/dist/cjs/components/buttons/tab-button/tab-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/index.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon-source.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/base/review-button/review-button.js +19 -25
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +7 -6
- package/dist/esm/components/buttons/button/button.variants.js +5 -5
- package/dist/esm/components/buttons/tab-button/tab-button.js +12 -9
- package/dist/esm/components/client-adapters/index.js +2 -4
- package/dist/esm/components/graph/default-config.js +20 -20
- package/dist/esm/components/index.js +279 -281
- package/dist/esm/components/navbar-logo/navbar-logo.js +10 -13
- package/dist/esm/components/rounded-image/rounded-image.js +42 -45
- package/dist/esm/components/token-icon/token-icon-source.js +51 -44
- package/dist/esm/components/token-icon/token-icon.js +28 -136
- package/dist/esm/index.js +327 -329
- package/dist/globals.css +1 -1
- package/dist/types/components/client-adapters/index.d.ts +0 -1
- package/dist/types/components/token-icon/token-icon-source.d.ts +4 -42
- package/dist/types/components/token-icon/token-icon.d.ts +6 -17
- package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
- package/dist/types/types/common.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/client-adapters/styled-button/index.cjs +0 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +0 -1
- package/dist/esm/components/client-adapters/styled-button/index.js +0 -4
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +0 -29
- package/dist/types/components/client-adapters/styled-button/index.d.ts +0 -1
- package/dist/types/components/client-adapters/styled-button/styled-button.d.ts +0 -18
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { resolveCSSColor as o } from "./colors.js";
|
|
2
|
-
const
|
|
2
|
+
const e = "#02c39a", n = {
|
|
3
3
|
topColor: "rgba(76, 175, 80, 0.56)",
|
|
4
4
|
bottomColor: "rgba(76, 175, 80, 0.04)",
|
|
5
|
-
lineColor:
|
|
5
|
+
lineColor: e,
|
|
6
6
|
lineWidth: 2,
|
|
7
7
|
lastValueVisible: !1,
|
|
8
8
|
priceLineVisible: !1
|
|
9
|
-
}, a = 'Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', l = 14, t = 5,
|
|
10
|
-
function
|
|
11
|
-
const
|
|
9
|
+
}, a = 'Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', l = 14, t = 5, b = Math.ceil(l / 2) + 2, c = l + 6, u = 40;
|
|
10
|
+
function f() {
|
|
11
|
+
const r = o(
|
|
12
12
|
"hsl(var(--muted-foreground))",
|
|
13
13
|
"rgb(163, 163, 163)"
|
|
14
14
|
), i = o("hsl(var(--card))", "rgb(24, 24, 24)");
|
|
@@ -31,7 +31,7 @@ function u() {
|
|
|
31
31
|
borderColor: "rgba(224, 227, 235, 0.1)",
|
|
32
32
|
entireTextOnly: !1,
|
|
33
33
|
tickMarkDensity: t,
|
|
34
|
-
textColor:
|
|
34
|
+
textColor: r
|
|
35
35
|
},
|
|
36
36
|
rightPriceScale: {
|
|
37
37
|
visible: !0,
|
|
@@ -41,13 +41,13 @@ function u() {
|
|
|
41
41
|
borderColor: "rgba(224, 227, 235, 0.1)",
|
|
42
42
|
entireTextOnly: !1,
|
|
43
43
|
tickMarkDensity: t,
|
|
44
|
-
textColor:
|
|
44
|
+
textColor: r
|
|
45
45
|
},
|
|
46
46
|
layout: {
|
|
47
47
|
background: {
|
|
48
48
|
color: i
|
|
49
49
|
},
|
|
50
|
-
textColor:
|
|
50
|
+
textColor: r,
|
|
51
51
|
fontSize: l,
|
|
52
52
|
fontFamily: a
|
|
53
53
|
},
|
|
@@ -75,32 +75,32 @@ function u() {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function g() {
|
|
79
79
|
return {
|
|
80
80
|
topColor: "rgba(76, 175, 80, 0.56)",
|
|
81
81
|
bottomColor: "rgba(76, 175, 80, 0.04)",
|
|
82
|
-
lineColor:
|
|
82
|
+
lineColor: e,
|
|
83
83
|
lineWidth: 2,
|
|
84
84
|
lastValueVisible: !1,
|
|
85
85
|
priceLineVisible: !1
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function _() {
|
|
89
89
|
return {
|
|
90
90
|
showLabel: !0,
|
|
91
|
-
color:
|
|
92
|
-
labelBackgroundColor:
|
|
91
|
+
color: e,
|
|
92
|
+
labelBackgroundColor: e,
|
|
93
93
|
width: 2
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
export {
|
|
97
|
-
|
|
97
|
+
b as AXIS_EDGE_LABEL_PADDING_PX,
|
|
98
98
|
l as AXIS_FONT_SIZE,
|
|
99
99
|
t as AXIS_TICK_MARK_DENSITY,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
u as AXIS_TIME_EDGE_PADDING_PX,
|
|
101
|
+
c as AXIS_TOP_LABEL_PADDING_PX,
|
|
102
|
+
n as DEFAULT_AREA_SERIES,
|
|
103
|
+
f as getDefaultOptions,
|
|
104
|
+
g as getDefaultSeries,
|
|
105
|
+
_ as getDefaultVerticalLine
|
|
106
106
|
};
|