@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.
Files changed (36) hide show
  1. package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
  2. package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
  3. package/dist/cjs/components/buttons/button/button.variants.cjs +1 -1
  4. package/dist/cjs/components/buttons/tab-button/tab-button.cjs +1 -1
  5. package/dist/cjs/components/client-adapters/index.cjs +1 -1
  6. package/dist/cjs/components/graph/default-config.cjs +1 -1
  7. package/dist/cjs/components/index.cjs +1 -1
  8. package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
  9. package/dist/cjs/components/token-icon/token-icon-source.cjs +1 -1
  10. package/dist/cjs/components/token-icon/token-icon.cjs +1 -1
  11. package/dist/cjs/index.cjs +1 -1
  12. package/dist/esm/components/base/review-button/review-button.js +19 -25
  13. package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +7 -6
  14. package/dist/esm/components/buttons/button/button.variants.js +5 -5
  15. package/dist/esm/components/buttons/tab-button/tab-button.js +12 -9
  16. package/dist/esm/components/client-adapters/index.js +2 -4
  17. package/dist/esm/components/graph/default-config.js +20 -20
  18. package/dist/esm/components/index.js +279 -281
  19. package/dist/esm/components/navbar-logo/navbar-logo.js +10 -13
  20. package/dist/esm/components/rounded-image/rounded-image.js +42 -45
  21. package/dist/esm/components/token-icon/token-icon-source.js +51 -44
  22. package/dist/esm/components/token-icon/token-icon.js +28 -136
  23. package/dist/esm/index.js +327 -329
  24. package/dist/globals.css +1 -1
  25. package/dist/types/components/client-adapters/index.d.ts +0 -1
  26. package/dist/types/components/token-icon/token-icon-source.d.ts +4 -42
  27. package/dist/types/components/token-icon/token-icon.d.ts +6 -17
  28. package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
  29. package/dist/types/types/common.d.ts +1 -1
  30. package/package.json +1 -1
  31. package/dist/cjs/components/client-adapters/styled-button/index.cjs +0 -1
  32. package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +0 -1
  33. package/dist/esm/components/client-adapters/styled-button/index.js +0 -4
  34. package/dist/esm/components/client-adapters/styled-button/styled-button.js +0 -29
  35. package/dist/types/components/client-adapters/styled-button/index.d.ts +0 -1
  36. 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 r = {
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: "#02c39a",
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, n = Math.ceil(l / 2) + 2, b = l + 6, c = 40;
10
- function u() {
11
- const e = o(
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: e
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: e
44
+ textColor: r
45
45
  },
46
46
  layout: {
47
47
  background: {
48
48
  color: i
49
49
  },
50
- textColor: e,
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 f() {
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: r.lineColor,
82
+ lineColor: e,
83
83
  lineWidth: 2,
84
84
  lastValueVisible: !1,
85
85
  priceLineVisible: !1
86
86
  };
87
87
  }
88
- function g() {
88
+ function _() {
89
89
  return {
90
90
  showLabel: !0,
91
- color: r.lineColor,
92
- labelBackgroundColor: r.lineColor,
91
+ color: e,
92
+ labelBackgroundColor: e,
93
93
  width: 2
94
94
  };
95
95
  }
96
96
  export {
97
- n as AXIS_EDGE_LABEL_PADDING_PX,
97
+ b as AXIS_EDGE_LABEL_PADDING_PX,
98
98
  l as AXIS_FONT_SIZE,
99
99
  t as AXIS_TICK_MARK_DENSITY,
100
- c as AXIS_TIME_EDGE_PADDING_PX,
101
- b as AXIS_TOP_LABEL_PADDING_PX,
102
- r as DEFAULT_AREA_SERIES,
103
- u as getDefaultOptions,
104
- f as getDefaultSeries,
105
- g as getDefaultVerticalLine
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
  };