@matbea-ui/matbea-ui 0.2.0-dev.925901 → 0.2.0-dev.937765
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 +176 -23
- package/dist/matbea-ui.cjs.js.map +1 -1
- package/dist/matbea-ui.es.js +177 -23
- package/dist/matbea-ui.es.js.map +1 -1
- package/dist/types/index.d.ts +2 -22
- package/package.json +1 -1
package/dist/matbea-ui.cjs.js
CHANGED
|
@@ -575,11 +575,14 @@ const StyledTypography = styled.styled.span `
|
|
|
575
575
|
|
|
576
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 }));
|
|
577
577
|
|
|
578
|
+
const IconStyled = styled.styled.svg `
|
|
579
|
+
display: inline-flex;
|
|
580
|
+
width: ${({ $width }) => $width}px;
|
|
581
|
+
height: ${({ $height }) => $height}px;
|
|
582
|
+
`;
|
|
583
|
+
|
|
578
584
|
const Icon = ({ size = 24, children, ...rest }) => {
|
|
579
|
-
return (jsxRuntime.jsx("svg",
|
|
580
|
-
width: size,
|
|
581
|
-
height: size,
|
|
582
|
-
}, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: children }));
|
|
585
|
+
return (jsxRuntime.jsx(IconStyled, { "$height": size, "$width": size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: children }));
|
|
583
586
|
};
|
|
584
587
|
|
|
585
588
|
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" }) }) })] }));
|
|
@@ -2701,46 +2704,197 @@ const StyledProvider = ({ children }) => {
|
|
|
2701
2704
|
return (jsxRuntime.jsx(styled.StyleSheetManager, { stylisPlugins: [adaptiveScalePlugin], children: children }));
|
|
2702
2705
|
};
|
|
2703
2706
|
|
|
2704
|
-
const breakpoints = {
|
|
2705
|
-
mobile: { max: 576, scale: 0.7 },
|
|
2706
|
-
tablet: { min: 576, max: 1024, scale: 0.85 },
|
|
2707
|
-
desktop: { min: 1024, max: 1920, scale: 1 },
|
|
2708
|
-
wide: { min: 1920, scale: 1.15 },
|
|
2709
|
-
};
|
|
2710
2707
|
const GlobalStyles = styled.createGlobalStyle `
|
|
2711
2708
|
:root {
|
|
2712
2709
|
--adaptive-scale: 1;
|
|
2713
2710
|
--adaptive-vh: 1vh;
|
|
2714
2711
|
}
|
|
2715
2712
|
|
|
2716
|
-
/*
|
|
2717
|
-
|
|
2713
|
+
/* ============ MOBILE ============ */
|
|
2714
|
+
|
|
2715
|
+
/* Ultra small (iPhone SE 1st gen, старые Android) */
|
|
2716
|
+
@media (max-width: 320px) {
|
|
2717
|
+
:root {
|
|
2718
|
+
--adaptive-scale: 0.75;
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
/* Small mobile */
|
|
2723
|
+
@media (min-width: 321px) and (max-width: 359px) {
|
|
2724
|
+
:root {
|
|
2725
|
+
--adaptive-scale: 0.82;
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
/* Medium mobile */
|
|
2730
|
+
@media (min-width: 360px) and (max-width: 374px) {
|
|
2718
2731
|
:root {
|
|
2719
|
-
--adaptive-scale:
|
|
2732
|
+
--adaptive-scale: 0.9;
|
|
2720
2733
|
}
|
|
2721
2734
|
}
|
|
2722
2735
|
|
|
2723
|
-
/*
|
|
2724
|
-
@media (min-width:
|
|
2736
|
+
/* Mobile base (iPhone X/11/12/13 mini) */
|
|
2737
|
+
@media (min-width: 375px) and (max-width: 389px) {
|
|
2725
2738
|
:root {
|
|
2726
|
-
--adaptive-scale:
|
|
2739
|
+
--adaptive-scale: 1;
|
|
2727
2740
|
}
|
|
2728
2741
|
}
|
|
2729
2742
|
|
|
2730
|
-
/*
|
|
2731
|
-
@media (min-width:
|
|
2743
|
+
/* Large mobile (iPhone 12/13/14/15) */
|
|
2744
|
+
@media (min-width: 390px) and (max-width: 429px) {
|
|
2732
2745
|
:root {
|
|
2733
|
-
--adaptive-scale:
|
|
2746
|
+
--adaptive-scale: 1;
|
|
2734
2747
|
}
|
|
2735
2748
|
}
|
|
2736
2749
|
|
|
2737
|
-
/*
|
|
2738
|
-
@media (min-width:
|
|
2750
|
+
/* Extra large mobile (iPhone 14 Plus/Max) */
|
|
2751
|
+
@media (min-width: 430px) and (max-width: 576px) {
|
|
2739
2752
|
:root {
|
|
2740
|
-
--adaptive-scale:
|
|
2753
|
+
--adaptive-scale: 1;
|
|
2741
2754
|
}
|
|
2742
2755
|
}
|
|
2743
2756
|
|
|
2757
|
+
/* ============ TABLET ============ */
|
|
2758
|
+
|
|
2759
|
+
/* Small tablet / Large phone landscape */
|
|
2760
|
+
@media (min-width: 577px) and (max-width: 639px) {
|
|
2761
|
+
:root {
|
|
2762
|
+
--adaptive-scale: 0.75;
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
/* Medium small tablet */
|
|
2767
|
+
@media (min-width: 640px) and (max-width: 719px) {
|
|
2768
|
+
:root {
|
|
2769
|
+
--adaptive-scale: 0.83;
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
/* Medium tablet */
|
|
2774
|
+
@media (min-width: 720px) and (max-width: 767px) {
|
|
2775
|
+
:root {
|
|
2776
|
+
--adaptive-scale: 0.9;
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
/* Tablet base (iPad Mini/Air portrait) */
|
|
2781
|
+
@media (min-width: 768px) and (max-width: 833px) {
|
|
2782
|
+
:root {
|
|
2783
|
+
--adaptive-scale: 1;
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
/* Large tablet (iPad Pro 11" portrait) */
|
|
2788
|
+
@media (min-width: 834px) and (max-width: 899px) {
|
|
2789
|
+
:root {
|
|
2790
|
+
--adaptive-scale: 1;
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
/* Extra large tablet */
|
|
2795
|
+
@media (min-width: 900px) and (max-width: 1023px) {
|
|
2796
|
+
:root {
|
|
2797
|
+
--adaptive-scale: 1;
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
/* Tablet landscape (iPad Pro landscape) */
|
|
2802
|
+
@media (min-width: 1024px) and (max-width: 1100px) {
|
|
2803
|
+
:root {
|
|
2804
|
+
--adaptive-scale: 0.71;
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/* ============ DESKTOP ============ */
|
|
2809
|
+
|
|
2810
|
+
/* Small desktop / Laptop 13" */
|
|
2811
|
+
@media (min-width: 1101px) and (max-width: 1279px) {
|
|
2812
|
+
:root {
|
|
2813
|
+
--adaptive-scale: 0.77;
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
/* Medium desktop / Laptop 14" */
|
|
2818
|
+
@media (min-width: 1280px) and (max-width: 1365px) {
|
|
2819
|
+
:root {
|
|
2820
|
+
--adaptive-scale: 0.85;
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
/* Large laptop 15" */
|
|
2825
|
+
@media (min-width: 1366px) and (max-width: 1439px) {
|
|
2826
|
+
:root {
|
|
2827
|
+
--adaptive-scale: 0.92;
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
/* Desktop base (MacBook Pro 16", gaming monitors) */
|
|
2832
|
+
@media (min-width: 1440px) and (max-width: 1599px) {
|
|
2833
|
+
:root {
|
|
2834
|
+
--adaptive-scale: 1;
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
/* Large desktop */
|
|
2839
|
+
@media (min-width: 1600px) and (max-width: 1799px) {
|
|
2840
|
+
:root {
|
|
2841
|
+
--adaptive-scale: 1;
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
/* Extra large desktop */
|
|
2846
|
+
@media (min-width: 1800px) and (max-width: 1919px) {
|
|
2847
|
+
:root {
|
|
2848
|
+
--adaptive-scale: 1;
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
/* ============ WIDE (с увеличением) ============ */
|
|
2853
|
+
|
|
2854
|
+
/* Full HD base (1920x1080) */
|
|
2855
|
+
@media (min-width: 1920px) and (max-width: 2047px) {
|
|
2856
|
+
:root {
|
|
2857
|
+
--adaptive-scale: 1;
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
/* 2K */
|
|
2862
|
+
@media (min-width: 2048px) and (max-width: 2559px) {
|
|
2863
|
+
:root {
|
|
2864
|
+
--adaptive-scale: 1.1;
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
/* QHD / 2.5K */
|
|
2869
|
+
@media (min-width: 2560px) and (max-width: 3199px) {
|
|
2870
|
+
:root {
|
|
2871
|
+
--adaptive-scale: 1.25;
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
/* 3K */
|
|
2876
|
+
@media (min-width: 3200px) and (max-width: 3839px) {
|
|
2877
|
+
:root {
|
|
2878
|
+
--adaptive-scale: 1.4;
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
/* 4K (3840x2160) */
|
|
2883
|
+
@media (min-width: 3840px) and (max-width: 5119px) {
|
|
2884
|
+
:root {
|
|
2885
|
+
--adaptive-scale: 1.6;
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
/* 5K и выше */
|
|
2890
|
+
@media (min-width: 5120px) {
|
|
2891
|
+
:root {
|
|
2892
|
+
--adaptive-scale: 2;
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
/* ============ ДОПОЛНИТЕЛЬНО ============ */
|
|
2897
|
+
|
|
2744
2898
|
/* Фикс для мобильных браузеров (100vh с учетом адресной строки) */
|
|
2745
2899
|
@supports (-webkit-touch-callout: none) {
|
|
2746
2900
|
:root {
|
|
@@ -2949,7 +3103,6 @@ exports.ZcashSmallIcon = ZcashSmallIcon;
|
|
|
2949
3103
|
exports.ZilliqaIcon = ZilliqaIcon;
|
|
2950
3104
|
exports.ZrxIcon = ZrxIcon;
|
|
2951
3105
|
exports.adaptiveScalePlugin = adaptiveScalePlugin;
|
|
2952
|
-
exports.breakpoints = breakpoints;
|
|
2953
3106
|
exports.copyToClipboard = copyToClipboard;
|
|
2954
3107
|
exports.createAdaptiveScalePlugin = createAdaptiveScalePlugin;
|
|
2955
3108
|
exports.formatCardNumber = formatCardNumber;
|