@ledgerhq/native-ui 0.7.6 → 0.7.7
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.
|
@@ -19,7 +19,7 @@ const ChartCard = ({ Header, Footer, range, isLoading, refreshChart, chartData,
|
|
|
19
19
|
React.createElement(Flex, { mt: 6, height: 100, alignItems: "center", justifyContent: "center" }, chartData && chartData.length > 0 ? (React.createElement(Transitions.Fade, { status: "entering", duration: 400 },
|
|
20
20
|
React.createElement(Chart, { data: chartData, backgroundColor: colors.neutral.c30, color: currencyColor, valueKey: "value", xAxisFormatter: xAxisFormatter, yAxisFormatter: yAxisFormatter, valueFormatter: valueFormatter, disableTooltips: false }))) : (React.createElement(InfiniteLoader, { size: 32 }))),
|
|
21
21
|
React.createElement(Flex, { mt: 70 },
|
|
22
|
-
React.createElement(GraphTabs, { activeIndex: activeRangeIndex, activeBg: "neutral.c30", onChange: setRange, labels: rangesLabels })),
|
|
22
|
+
React.createElement(GraphTabs, { activeIndex: activeRangeIndex, activeBg: currencyColor, activeColor: "neutral.c30", onChange: setRange, labels: rangesLabels })),
|
|
23
23
|
Footer));
|
|
24
24
|
};
|
|
25
25
|
export default ChartCard;
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { FlexBoxProps } from "../../Layout/Flex";
|
|
3
3
|
export interface TagProps extends FlexBoxProps {
|
|
4
4
|
active?: boolean;
|
|
5
|
+
uppercase?: boolean;
|
|
5
6
|
children: React.ReactNode;
|
|
6
7
|
}
|
|
7
|
-
export default function Tag({ active, children, ...props }: TagProps): JSX.Element;
|
|
8
|
+
export default function Tag({ active, uppercase, children, ...props }: TagProps): JSX.Element;
|
|
@@ -13,7 +13,7 @@ import React from "react";
|
|
|
13
13
|
import Flex from "../../Layout/Flex";
|
|
14
14
|
import Text from "../../Text";
|
|
15
15
|
export default function Tag(_a) {
|
|
16
|
-
var { active, children } = _a, props = __rest(_a, ["active", "children"]);
|
|
16
|
+
var { active, uppercase, children } = _a, props = __rest(_a, ["active", "uppercase", "children"]);
|
|
17
17
|
return (React.createElement(Flex, Object.assign({ px: 2, alignItems: "center", justifyContent: "center", borderRadius: 4, borderWidth: 1, borderColor: active ? "primary.c50" : "neutral.c40" }, props),
|
|
18
|
-
React.createElement(Text, { variant: "tiny", fontWeight: "semiBold", lineHeight: "16px",
|
|
18
|
+
React.createElement(Text, { variant: "tiny", fontWeight: "semiBold", lineHeight: "16px", uppercase: uppercase !== false, textAlign: "center", color: active ? "primary.c70" : "neutral.c80" }, children)));
|
|
19
19
|
}
|