@wavv/ui 2.4.2 → 2.4.3
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.
|
@@ -44,14 +44,21 @@ const TooltipContent = ({ active, payload, label, legendPostfix })=>active && pa
|
|
|
44
44
|
/*#__PURE__*/ jsxs("div", {
|
|
45
45
|
className: "item-container",
|
|
46
46
|
children: [
|
|
47
|
-
/*#__PURE__*/
|
|
47
|
+
/*#__PURE__*/ jsxs("span", {
|
|
48
48
|
className: "item-name",
|
|
49
|
-
children:
|
|
49
|
+
children: [
|
|
50
|
+
item.name,
|
|
51
|
+
":"
|
|
52
|
+
]
|
|
50
53
|
}),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
' ',
|
|
55
|
+
/*#__PURE__*/ jsxs("span", {
|
|
56
|
+
className: "item-value",
|
|
57
|
+
children: [
|
|
58
|
+
numberWithCommas(item.value || 0),
|
|
59
|
+
legendPostfix
|
|
60
|
+
]
|
|
61
|
+
})
|
|
55
62
|
]
|
|
56
63
|
})
|
|
57
64
|
]
|
|
@@ -107,10 +114,18 @@ const LegendItem = styled.div(({ theme, clickable, inactive })=>({
|
|
|
107
114
|
opacity: inactive ? 0.3 : 1,
|
|
108
115
|
'.item-container': {
|
|
109
116
|
display: 'flex',
|
|
110
|
-
alignItems: 'center'
|
|
117
|
+
alignItems: 'center',
|
|
118
|
+
flexWrap: 'wrap',
|
|
119
|
+
gap: 4,
|
|
120
|
+
wordBreak: 'break-word',
|
|
121
|
+
overflowWrap: 'break-word'
|
|
111
122
|
},
|
|
112
123
|
'.item-name': {
|
|
113
|
-
textTransform: 'capitalize'
|
|
124
|
+
textTransform: 'capitalize',
|
|
125
|
+
whiteSpace: 'nowrap'
|
|
126
|
+
},
|
|
127
|
+
'.item-value': {
|
|
128
|
+
whiteSpace: 'nowrap'
|
|
114
129
|
}
|
|
115
130
|
}));
|
|
116
131
|
const TooltipContainer = styled.div(({ theme })=>({
|