@waves.exchange/wx-react-uikit
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -10,4 +10,4 @@ "use strict"; | ||
var icon = _a.icon, label = _a.label; | ||
return (React.createElement(__1.Flex, { key: label, mt: index ? 8 : 0 }, | ||
React.createElement(__1.Flex, { alignItems: "center", justifyContent: "center", size: "16px", borderRadius: "circle", backgroundColor: "darkGrey.$600", flex: "none" }, | ||
return (React.createElement(__1.Flex, { key: label, alignItems: "center", mt: index ? 8 : 0 }, | ||
React.createElement(__1.Flex, { alignItems: "center", justifyContent: "center", size: "16px", borderRadius: "circle", backgroundColor: "darkGrey.$600", flex: "none", mr: "4px" }, | ||
React.createElement(__1.Icon, { icon: icon, size: 10, color: "standard.$0" })), | ||
@@ -14,0 +14,0 @@ React.createElement(__1.Text, { ml: "$10", variant: "body2", sx: { whiteSpace: 'nowrap' } }, label))); |
import * as React from 'react'; | ||
import { Flex, Icon, Text } from '../../..'; | ||
export const TooltipLabel = ({ content }) => { | ||
return (React.createElement(Flex, { flexDirection: "column", borderTop: "4px solid", borderTopColor: "main", backgroundColor: "#4a5060", borderRadius: "$4", py: "8px", px: "12px", color: "standard.$0", maxWidth: "100%", zIndex: 1 }, content.map(({ icon, label }, index) => (React.createElement(Flex, { key: label, mt: index ? 8 : 0 }, | ||
React.createElement(Flex, { alignItems: "center", justifyContent: "center", size: "16px", borderRadius: "circle", backgroundColor: "darkGrey.$600", flex: "none" }, | ||
return (React.createElement(Flex, { flexDirection: "column", borderTop: "4px solid", borderTopColor: "main", backgroundColor: "#4a5060", borderRadius: "$4", py: "8px", px: "12px", color: "standard.$0", maxWidth: "100%", zIndex: 1 }, content.map(({ icon, label }, index) => (React.createElement(Flex, { key: label, alignItems: "center", mt: index ? 8 : 0 }, | ||
React.createElement(Flex, { alignItems: "center", justifyContent: "center", size: "16px", borderRadius: "circle", backgroundColor: "darkGrey.$600", flex: "none", mr: "4px" }, | ||
React.createElement(Icon, { icon: icon, size: 10, color: "standard.$0" })), | ||
@@ -7,0 +7,0 @@ React.createElement(Text, { ml: "$10", variant: "body2", sx: { whiteSpace: 'nowrap' } }, label)))))); |
{ | ||
"name": "@waves.exchange/wx-react-uikit", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1099684
494