sag_components 1.0.968 → 1.0.969

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.
@@ -4,73 +4,24 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.TitleAndValueContainer = exports.Title = exports.OutBanner = exports.Header = exports.FormattedValue = exports.CurrencySign = exports.ControlsContainer = exports.ChartWrapper = exports.ChartInner = void 0;
7
+ exports.TotalValue = exports.Title = exports.CurrencySign = exports.ControlsContainer = exports.CardHeader = void 0;
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- const scrollableStyles = `
10
- overflow-y: auto;
11
-
12
- &::-webkit-scrollbar {
13
- width: 5px;
14
- }
15
-
16
- &::-webkit-scrollbar-track {
17
- background: #E8E8E8;
18
- border-radius: 5px;
19
- }
20
-
21
- &::-webkit-scrollbar-thumb {
22
- background: #D0D0D0;
23
- border-radius: 5px;
24
- }
25
- `;
26
9
  const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
27
- position: relative;
28
10
  font-family: "Poppins", sans-serif;
11
+ position: relative;
12
+ background-color: white;
29
13
  color: ${props => props.textColor};
30
14
  width: ${props => props.width};
31
15
  height: ${props => props.height};
32
- background-color: white;
33
- display: flex;
34
- flex-direction: column;
35
- // justify-content: center;
36
- .top {
37
- text-align: center;
38
- white-space: normal;
39
- &:before {
40
- display: none;
41
- }
42
- }
43
- `;
44
- const ChartWrapper = exports.ChartWrapper = _styledComponents.default.div`
45
- flex-grow: 1;
46
- width: 100%;
47
- ${scrollableStyles}
48
- overflow-x: hidden;
49
- `;
50
- const ChartInner = exports.ChartInner = _styledComponents.default.div`
51
- min-height: 120%;
52
- width: 100%;
53
16
  `;
54
- const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
55
- display: flex;
56
- align-items: baseline;
57
- justify-content: space-between;
17
+ const CardHeader = exports.CardHeader = _styledComponents.default.div`
58
18
  padding: 16px;
19
+ position: sticky;
20
+ top: 0;
21
+ z-index: 10;
22
+ background-color: white;
59
23
  `;
60
- const Header = exports.Header = _styledComponents.default.div``;
61
- const Title = exports.Title = _styledComponents.default.h4`
62
- font-size: 18px;
63
- font-weight: 400;
64
- line-height: 1;
65
- margin: 0 0 8px;
66
- @media (max-width: 1536px) {
67
- font-size: 14px;
68
- }
69
- @media (max-width: 1366px) {
70
- font-size: 12px;
71
- }
72
- `;
73
- const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
24
+ const TotalValue = exports.TotalValue = _styledComponents.default.div`
74
25
  font-weight: 500;
75
26
  font-size: 40px;
76
27
  display: flex;
@@ -83,31 +34,16 @@ const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
83
34
  font-size: 20px;
84
35
  }
85
36
  `;
86
- const OutBanner = exports.OutBanner = _styledComponents.default.div`
87
- display: flex;
88
- gap: 8px;
89
- align-items: baseline;
90
- font-size: 14px;
37
+ const Title = exports.Title = _styledComponents.default.h4`
38
+ font-size: 18px;
91
39
  font-weight: 400;
92
- color: ${props => props.textColor};
93
- cursor: pointer;
40
+ line-height: 1;
41
+ margin: 0 0 8px;
94
42
  @media (max-width: 1536px) {
95
- font-size: 10px;
43
+ font-size: 14px;
96
44
  }
97
45
  @media (max-width: 1366px) {
98
- font-size: 8px;
99
- }
100
- > svg {
101
- width: 14px;
102
- height: 14px;
103
- @media (max-width: 1536px) {
104
- width: 12px;
105
- height: 12px;
106
- }
107
- @media (max-width: 1366px) {
108
- width: 8px;
109
- height: 8px;
110
- }
46
+ font-size: 12px;
111
47
  }
112
48
  `;
113
49
  const CurrencySign = exports.CurrencySign = _styledComponents.default.span`