@matbea-ui/matbea-ui 0.2.0-dev.300704 → 0.2.0-dev.341137
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.
- package/dist/matbea-ui.cjs.js +39 -4
- package/dist/matbea-ui.cjs.js.map +1 -1
- package/dist/matbea-ui.es.js +39 -5
- package/dist/matbea-ui.es.js.map +1 -1
- package/dist/types/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/matbea-ui.cjs.js
CHANGED
|
@@ -167,6 +167,7 @@ const StyledButton = styled.button `
|
|
|
167
167
|
const IconSlot = styled.span `
|
|
168
168
|
display: inline-flex;
|
|
169
169
|
align-items: center;
|
|
170
|
+
width: max-content;
|
|
170
171
|
justify-content: center;
|
|
171
172
|
line-height: 0;
|
|
172
173
|
${({ $iconOnly }) => $iconOnly &&
|
|
@@ -575,7 +576,10 @@ const StyledTypography = styled.styled.span `
|
|
|
575
576
|
const Typography = ({ as = "span", forwardedAs, variant = "body-m-semibold", color, align, uppercase = false, truncate = false, inline = false, children, ...rest }) => (jsxRuntime.jsx(StyledTypography, { as: as, forwardedAs: forwardedAs, "$variant": variant, "$color": color, "$align": align, "$uppercase": uppercase, "$truncate": truncate, "$inline": inline, ...rest, children: children }));
|
|
576
577
|
|
|
577
578
|
const Icon = ({ size = 24, children, ...rest }) => {
|
|
578
|
-
return (jsxRuntime.jsx("svg", {
|
|
579
|
+
return (jsxRuntime.jsx("svg", { style: {
|
|
580
|
+
width: size,
|
|
581
|
+
height: size,
|
|
582
|
+
}, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: children }));
|
|
579
583
|
};
|
|
580
584
|
|
|
581
585
|
const LogoAbankIcon = (props) => (jsxRuntime.jsxs(Icon, { ...props, children: [jsxRuntime.jsxs("g", { "clip-path": "url(#clip0_348_2416)", children: [jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "12", fill: "#F5F5F5" }), jsxRuntime.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.2589 7.98674C7.53128 8.31962 6.81257 6.30884 6.3125 3.00224C10.4015 2.97341 12.2754 3.18291 12.1754 5.99132C12.1172 6.06513 12.0622 6.1397 12.0098 6.2162C11.4594 5.19946 10.2518 4.30843 7.75728 3.83024C9.57266 4.44681 10.9399 5.69495 11.3993 7.37362C11.3396 7.57351 11.2938 7.77724 11.2589 7.98674ZM11.6388 9.04691C11.7904 7.71881 12.2529 6.60021 13.4042 5.75569C13.9803 5.33323 14.7726 5.87101 13.9469 6.35919C12.9495 6.94771 11.9955 8.32385 11.8459 9.03922C11.7783 9.05701 11.7076 9.05963 11.6388 9.04691Z", fill: "#007F2D" }), jsxRuntime.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.1018 9.30787C11.3545 9.34554 11.565 9.36169 11.7693 9.35131C11.9775 9.33977 12.1888 9.30057 12.4427 9.2283C13.9274 8.80469 15.8889 9.07146 17.153 9.96942C18.7727 11.1192 19.2064 13.078 18.9161 15.0273C18.5672 17.3706 16.2785 21.9634 13.3339 20.8202C12.9703 20.6795 12.6144 20.5638 12.2178 20.5773C11.803 20.5911 11.6383 20.7249 11.0328 20.8717C7.71099 21.6751 5.31607 17.1969 5.0389 14.5514C4.86058 12.8447 5.28079 11.1964 6.6023 10.1797C7.7513 9.2948 9.69848 8.96729 11.1018 9.30787Z", fill: "#65B32E" })] }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "clip0_348_2416", children: jsxRuntime.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })] }));
|
|
@@ -2161,6 +2165,36 @@ const ButtonSwitcher = ({ active, leftButtonLabel, rightButtonLabel, }) => {
|
|
|
2161
2165
|
return (jsxRuntime.jsxs(ButtonSwitcherStyled, { children: [jsxRuntime.jsx(ButtonSwitcherItem, { "data-active": !active, children: leftButtonLabel }), jsxRuntime.jsx(ButtonSwitcherItem, { "data-active": active, children: rightButtonLabel })] }));
|
|
2162
2166
|
};
|
|
2163
2167
|
|
|
2168
|
+
const AvatarStyled = styled.styled(Typography).attrs({
|
|
2169
|
+
forwardedAs: "div",
|
|
2170
|
+
variant: "avatar-basic",
|
|
2171
|
+
}) `
|
|
2172
|
+
display: flex;
|
|
2173
|
+
align-items: center;
|
|
2174
|
+
justify-content: center;
|
|
2175
|
+
overflow: hidden;
|
|
2176
|
+
user-select: none;
|
|
2177
|
+
width: 40px;
|
|
2178
|
+
height: 40px;
|
|
2179
|
+
border-radius: 50%;
|
|
2180
|
+
color: ${({ theme }) => theme.colors.primary.white};
|
|
2181
|
+
background-color: ${({ theme, $color }) => {
|
|
2182
|
+
if (!$color)
|
|
2183
|
+
return theme.colors.primary.hoverBlue;
|
|
2184
|
+
if ($color in theme.colors.accent) {
|
|
2185
|
+
return theme.colors.accent[$color];
|
|
2186
|
+
}
|
|
2187
|
+
if ($color in theme.colors.primary) {
|
|
2188
|
+
return theme.colors.primary[$color];
|
|
2189
|
+
}
|
|
2190
|
+
return theme.colors.primary.darkBlue;
|
|
2191
|
+
}};
|
|
2192
|
+
`;
|
|
2193
|
+
|
|
2194
|
+
const Avatar = (props) => {
|
|
2195
|
+
return jsxRuntime.jsx(AvatarStyled, { "$color": "hoverBlue", ...props });
|
|
2196
|
+
};
|
|
2197
|
+
|
|
2164
2198
|
const ApplicationDataStyled = styled.styled.div `
|
|
2165
2199
|
display: flex;
|
|
2166
2200
|
column-gap: 10px;
|
|
@@ -2670,9 +2704,9 @@ const StyledProvider = ({ children }) => {
|
|
|
2670
2704
|
|
|
2671
2705
|
const breakpoints = {
|
|
2672
2706
|
mobile: { max: 576, scale: 0.7 },
|
|
2673
|
-
tablet: { min:
|
|
2674
|
-
desktop: { min:
|
|
2675
|
-
wide: { min:
|
|
2707
|
+
tablet: { min: 576, max: 1024, scale: 0.85 },
|
|
2708
|
+
desktop: { min: 1024, max: 1920, scale: 1 },
|
|
2709
|
+
wide: { min: 1920, scale: 1.15 },
|
|
2676
2710
|
};
|
|
2677
2711
|
const GlobalStyles = styled.createGlobalStyle `
|
|
2678
2712
|
:root {
|
|
@@ -2733,6 +2767,7 @@ exports.ApplicationStatus = ApplicationStatus;
|
|
|
2733
2767
|
exports.ArrowIcon = ArrowIcon;
|
|
2734
2768
|
exports.AttachIcon = AttachIcon;
|
|
2735
2769
|
exports.AvalancheIcon = AvalancheIcon;
|
|
2770
|
+
exports.Avatar = Avatar;
|
|
2736
2771
|
exports.BalanceRow = BalanceRow;
|
|
2737
2772
|
exports.BatIcon = BatIcon;
|
|
2738
2773
|
exports.BitcoinIcon = BitcoinIcon;
|