@matbea-ui/matbea-ui 0.1.9 → 0.2.0

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.
Files changed (158) hide show
  1. package/dist/matbea-ui.cjs.js +2289 -1
  2. package/dist/matbea-ui.cjs.js.map +1 -0
  3. package/dist/matbea-ui.es.js +2257 -59
  4. package/dist/matbea-ui.es.js.map +1 -0
  5. package/dist/types/index.d.ts +330 -0
  6. package/package.json +23 -13
  7. package/dist/fonts/ProximaNova-Bold.woff2 +0 -0
  8. package/dist/fonts/ProximaNova-RegularIt.woff2 +0 -0
  9. package/dist/fonts/ProximaNova-Semibold.woff2 +0 -0
  10. package/dist/matbea-ui.cjs10.js +0 -1
  11. package/dist/matbea-ui.cjs11.js +0 -1
  12. package/dist/matbea-ui.cjs12.js +0 -1
  13. package/dist/matbea-ui.cjs13.js +0 -1
  14. package/dist/matbea-ui.cjs14.js +0 -1
  15. package/dist/matbea-ui.cjs15.js +0 -1
  16. package/dist/matbea-ui.cjs16.js +0 -1
  17. package/dist/matbea-ui.cjs17.js +0 -1
  18. package/dist/matbea-ui.cjs18.js +0 -1
  19. package/dist/matbea-ui.cjs19.js +0 -1
  20. package/dist/matbea-ui.cjs2.js +0 -1
  21. package/dist/matbea-ui.cjs20.js +0 -1
  22. package/dist/matbea-ui.cjs21.js +0 -1
  23. package/dist/matbea-ui.cjs22.js +0 -1
  24. package/dist/matbea-ui.cjs23.js +0 -1
  25. package/dist/matbea-ui.cjs24.js +0 -1
  26. package/dist/matbea-ui.cjs25.js +0 -1
  27. package/dist/matbea-ui.cjs26.js +0 -1
  28. package/dist/matbea-ui.cjs27.js +0 -1
  29. package/dist/matbea-ui.cjs28.js +0 -1
  30. package/dist/matbea-ui.cjs29.js +0 -1
  31. package/dist/matbea-ui.cjs3.js +0 -1
  32. package/dist/matbea-ui.cjs30.js +0 -1
  33. package/dist/matbea-ui.cjs31.js +0 -1
  34. package/dist/matbea-ui.cjs32.js +0 -63
  35. package/dist/matbea-ui.cjs33.js +0 -34
  36. package/dist/matbea-ui.cjs34.js +0 -44
  37. package/dist/matbea-ui.cjs35.js +0 -1
  38. package/dist/matbea-ui.cjs36.js +0 -11
  39. package/dist/matbea-ui.cjs37.js +0 -71
  40. package/dist/matbea-ui.cjs38.js +0 -14
  41. package/dist/matbea-ui.cjs39.js +0 -11
  42. package/dist/matbea-ui.cjs4.js +0 -1
  43. package/dist/matbea-ui.cjs40.js +0 -1
  44. package/dist/matbea-ui.cjs41.js +0 -1
  45. package/dist/matbea-ui.cjs42.js +0 -37
  46. package/dist/matbea-ui.cjs43.js +0 -62
  47. package/dist/matbea-ui.cjs44.js +0 -102
  48. package/dist/matbea-ui.cjs45.js +0 -103
  49. package/dist/matbea-ui.cjs46.js +0 -7
  50. package/dist/matbea-ui.cjs47.js +0 -1
  51. package/dist/matbea-ui.cjs48.js +0 -1
  52. package/dist/matbea-ui.cjs49.js +0 -55
  53. package/dist/matbea-ui.cjs5.js +0 -1
  54. package/dist/matbea-ui.cjs50.js +0 -23
  55. package/dist/matbea-ui.cjs51.js +0 -38
  56. package/dist/matbea-ui.cjs52.js +0 -51
  57. package/dist/matbea-ui.cjs53.js +0 -1
  58. package/dist/matbea-ui.cjs54.js +0 -1
  59. package/dist/matbea-ui.cjs55.js +0 -27
  60. package/dist/matbea-ui.cjs56.js +0 -48
  61. package/dist/matbea-ui.cjs57.js +0 -1
  62. package/dist/matbea-ui.cjs58.js +0 -1
  63. package/dist/matbea-ui.cjs59.js +0 -1
  64. package/dist/matbea-ui.cjs6.js +0 -1
  65. package/dist/matbea-ui.cjs60.js +0 -34
  66. package/dist/matbea-ui.cjs61.js +0 -11
  67. package/dist/matbea-ui.cjs62.js +0 -24
  68. package/dist/matbea-ui.cjs63.js +0 -27
  69. package/dist/matbea-ui.cjs64.js +0 -29
  70. package/dist/matbea-ui.cjs65.js +0 -1
  71. package/dist/matbea-ui.cjs66.js +0 -20
  72. package/dist/matbea-ui.cjs67.js +0 -1
  73. package/dist/matbea-ui.cjs68.js +0 -1
  74. package/dist/matbea-ui.cjs69.js +0 -1
  75. package/dist/matbea-ui.cjs7.js +0 -1
  76. package/dist/matbea-ui.cjs70.js +0 -6
  77. package/dist/matbea-ui.cjs71.js +0 -6
  78. package/dist/matbea-ui.cjs72.js +0 -1
  79. package/dist/matbea-ui.cjs73.js +0 -1
  80. package/dist/matbea-ui.cjs74.js +0 -1
  81. package/dist/matbea-ui.cjs75.js +0 -1
  82. package/dist/matbea-ui.cjs8.js +0 -1
  83. package/dist/matbea-ui.cjs9.js +0 -1
  84. package/dist/matbea-ui.es10.js +0 -10
  85. package/dist/matbea-ui.es11.js +0 -47
  86. package/dist/matbea-ui.es12.js +0 -178
  87. package/dist/matbea-ui.es13.js +0 -188
  88. package/dist/matbea-ui.es14.js +0 -12
  89. package/dist/matbea-ui.es15.js +0 -31
  90. package/dist/matbea-ui.es16.js +0 -25
  91. package/dist/matbea-ui.es17.js +0 -40
  92. package/dist/matbea-ui.es18.js +0 -43
  93. package/dist/matbea-ui.es19.js +0 -59
  94. package/dist/matbea-ui.es2.js +0 -38
  95. package/dist/matbea-ui.es20.js +0 -25
  96. package/dist/matbea-ui.es21.js +0 -13
  97. package/dist/matbea-ui.es22.js +0 -33
  98. package/dist/matbea-ui.es23.js +0 -16
  99. package/dist/matbea-ui.es24.js +0 -25
  100. package/dist/matbea-ui.es25.js +0 -36
  101. package/dist/matbea-ui.es26.js +0 -29
  102. package/dist/matbea-ui.es27.js +0 -30
  103. package/dist/matbea-ui.es28.js +0 -20
  104. package/dist/matbea-ui.es29.js +0 -13
  105. package/dist/matbea-ui.es3.js +0 -24
  106. package/dist/matbea-ui.es30.js +0 -41
  107. package/dist/matbea-ui.es31.js +0 -5
  108. package/dist/matbea-ui.es32.js +0 -163
  109. package/dist/matbea-ui.es33.js +0 -40
  110. package/dist/matbea-ui.es34.js +0 -330
  111. package/dist/matbea-ui.es35.js +0 -15
  112. package/dist/matbea-ui.es36.js +0 -26
  113. package/dist/matbea-ui.es37.js +0 -85
  114. package/dist/matbea-ui.es38.js +0 -18
  115. package/dist/matbea-ui.es39.js +0 -18
  116. package/dist/matbea-ui.es4.js +0 -31
  117. package/dist/matbea-ui.es40.js +0 -24
  118. package/dist/matbea-ui.es41.js +0 -10
  119. package/dist/matbea-ui.es42.js +0 -42
  120. package/dist/matbea-ui.es43.js +0 -70
  121. package/dist/matbea-ui.es44.js +0 -119
  122. package/dist/matbea-ui.es45.js +0 -131
  123. package/dist/matbea-ui.es46.js +0 -13
  124. package/dist/matbea-ui.es47.js +0 -25
  125. package/dist/matbea-ui.es48.js +0 -34
  126. package/dist/matbea-ui.es49.js +0 -64
  127. package/dist/matbea-ui.es5.js +0 -19
  128. package/dist/matbea-ui.es50.js +0 -39
  129. package/dist/matbea-ui.es51.js +0 -44
  130. package/dist/matbea-ui.es52.js +0 -58
  131. package/dist/matbea-ui.es53.js +0 -17
  132. package/dist/matbea-ui.es54.js +0 -26
  133. package/dist/matbea-ui.es55.js +0 -58
  134. package/dist/matbea-ui.es56.js +0 -62
  135. package/dist/matbea-ui.es57.js +0 -12
  136. package/dist/matbea-ui.es58.js +0 -12
  137. package/dist/matbea-ui.es59.js +0 -15
  138. package/dist/matbea-ui.es6.js +0 -62
  139. package/dist/matbea-ui.es60.js +0 -74
  140. package/dist/matbea-ui.es61.js +0 -17
  141. package/dist/matbea-ui.es62.js +0 -55
  142. package/dist/matbea-ui.es63.js +0 -57
  143. package/dist/matbea-ui.es64.js +0 -59
  144. package/dist/matbea-ui.es65.js +0 -21
  145. package/dist/matbea-ui.es66.js +0 -34
  146. package/dist/matbea-ui.es67.js +0 -10
  147. package/dist/matbea-ui.es68.js +0 -4
  148. package/dist/matbea-ui.es69.js +0 -26
  149. package/dist/matbea-ui.es7.js +0 -5
  150. package/dist/matbea-ui.es70.js +0 -236
  151. package/dist/matbea-ui.es71.js +0 -10
  152. package/dist/matbea-ui.es72.js +0 -9
  153. package/dist/matbea-ui.es73.js +0 -12
  154. package/dist/matbea-ui.es74.js +0 -4
  155. package/dist/matbea-ui.es75.js +0 -4
  156. package/dist/matbea-ui.es8.js +0 -6
  157. package/dist/matbea-ui.es9.js +0 -27
  158. package/dist/vite.svg +0 -1
@@ -1,20 +0,0 @@
1
- const l = (r, e = 4, c = 7) => {
2
- const t = r.trim();
3
- if (!t) return t;
4
- const o = t.lastIndexOf(".");
5
- if (o <= 0 || o === t.length - 1)
6
- return t;
7
- const s = t.slice(o + 1), n = t.slice(0, o).replace(/[@.]/g, "").slice(0, e), a = "*".repeat(c);
8
- return `${n}${a}${s}`;
9
- }, d = (r) => r.toString().padStart(16, "0").replace(/(\d{4})(?=\d)/g, "$1 "), g = async (r) => {
10
- try {
11
- await navigator.clipboard.writeText(r), console.log("Скопировано в буфер обмена");
12
- } catch (e) {
13
- console.error("Ошибка копирования:", e);
14
- }
15
- };
16
- export {
17
- g as copyToClipboard,
18
- d as formatCardNumber,
19
- l as maskEmail
20
- };
@@ -1,13 +0,0 @@
1
- import { colors as m } from "./matbea-ui.es30.js";
2
- const e = {
3
- colors: m,
4
- media: {
5
- maxWidth: {
6
- mobile: "@media (max-width: 375px)",
7
- tablet: "@media (max-width: 834px)"
8
- }
9
- }
10
- };
11
- export {
12
- e as theme
13
- };
@@ -1,24 +0,0 @@
1
- import { j as o } from "./matbea-ui.es31.js";
2
- import { useState as a } from "react";
3
- import { Wrapper as d, Trigger as l, Bubble as m } from "./matbea-ui.es33.js";
4
- const y = ({
5
- label: r,
6
- children: e,
7
- copiedText: i = "Скопировано!",
8
- copyDuration: s = 1500
9
- }) => {
10
- const [p, t] = a(!1), n = async () => {
11
- try {
12
- await navigator.clipboard.writeText(r), t(!0), setTimeout(() => t(!1), s);
13
- } catch (c) {
14
- console.error("Copy failed", c);
15
- }
16
- };
17
- return /* @__PURE__ */ o.jsxs(d, { onClick: n, children: [
18
- e ?? /* @__PURE__ */ o.jsx(l, { type: "button", children: r }),
19
- /* @__PURE__ */ o.jsx(m, { children: p ? i : r })
20
- ] });
21
- };
22
- export {
23
- y as CopyTooltip
24
- };
@@ -1,41 +0,0 @@
1
- const r = {
2
- primary: {
3
- primaryBlue: "#2D58B6",
4
- hoverBlue: "#3163F0",
5
- activeBlue: "#244AB7",
6
- lightBlue2: "#6D93FF",
7
- darkBlue: "#202D52",
8
- darkBlue2: "#1F2635",
9
- darkBlue3: "#131A2A",
10
- white: "#FFFFFF"
11
- },
12
- gray: {
13
- lightGray2: "#D9D9D9",
14
- lightGray3: "#D0D1D8",
15
- darkGray: "#9296A5",
16
- lightGray: "#F3F3F5",
17
- darkGray2: "#5E6F8D",
18
- lightBlueGray: "#EFF2FB",
19
- lightBlueGray2: "#F1F4F9"
20
- },
21
- accent: {
22
- red: "#F84545",
23
- green: "#1CD850",
24
- greenLight: "#A7FFC0",
25
- green2: "#00BC9E",
26
- green2Light: "#00D6B3",
27
- green2Dark: "#009E85",
28
- orange: "#FFA63E",
29
- purple: "#843CF0"
30
- },
31
- icon: {
32
- iconPrimary: "#202D52",
33
- iconSecondary: "#202D52",
34
- iconThirty: "#5E6F8D",
35
- iconFourth: "#FFA63E",
36
- iconFive: "#2D5B86"
37
- }
38
- };
39
- export {
40
- r as colors
41
- };
@@ -1,5 +0,0 @@
1
- import { __require as r } from "./matbea-ui.es67.js";
2
- var i = r();
3
- export {
4
- i as j
5
- };
@@ -1,163 +0,0 @@
1
- import l, { css as i } from "styled-components";
2
- const a = {
3
- default: {
4
- padding: "15px 22px",
5
- minHeight: "48px",
6
- fontSize: "15px",
7
- lineHeight: "18px",
8
- gap: "10px",
9
- iconGap: "6px"
10
- },
11
- medium: {
12
- padding: "12px 16px",
13
- minHeight: "42px",
14
- fontSize: "15px",
15
- lineHeight: "18px",
16
- gap: "10px",
17
- iconGap: "6px"
18
- },
19
- small: {
20
- padding: "10px",
21
- minHeight: "36px",
22
- fontSize: "14px",
23
- lineHeight: "17px",
24
- gap: "4px",
25
- iconGap: "4px"
26
- }
27
- }, p = (e) => ({ theme: t }) => {
28
- const r = t.colors, o = {
29
- primary: {
30
- default: {
31
- bg: r.primary.primaryBlue,
32
- color: r.primary.white,
33
- border: r.primary.primaryBlue
34
- },
35
- hover: {
36
- bg: r.primary.hoverBlue,
37
- color: r.primary.white,
38
- border: r.primary.hoverBlue
39
- },
40
- active: {
41
- bg: r.primary.activeBlue,
42
- color: r.primary.white,
43
- border: r.primary.activeBlue
44
- },
45
- disabled: {
46
- bg: r.gray.lightGray2,
47
- color: r.gray.darkGray,
48
- border: r.gray.lightGray2
49
- }
50
- },
51
- secondary: {
52
- default: {
53
- bg: "transparent",
54
- color: r.primary.primaryBlue,
55
- border: r.primary.primaryBlue
56
- },
57
- hover: {
58
- bg: r.primary.primaryBlue,
59
- color: r.primary.white,
60
- border: r.primary.primaryBlue
61
- },
62
- active: {
63
- bg: r.primary.activeBlue,
64
- color: r.primary.white,
65
- border: r.primary.activeBlue
66
- },
67
- disabled: {
68
- bg: "transparent",
69
- color: r.gray.darkGray,
70
- border: r.gray.lightGray2
71
- }
72
- },
73
- tertiary: {
74
- default: {
75
- bg: "transparent",
76
- color: r.primary.primaryBlue,
77
- border: "transparent"
78
- },
79
- hover: {
80
- bg: r.gray.lightBlueGray,
81
- color: r.primary.primaryBlue,
82
- border: "transparent"
83
- },
84
- active: {
85
- bg: r.gray.lightBlueGray2,
86
- color: r.primary.primaryBlue,
87
- border: "transparent"
88
- },
89
- disabled: {
90
- bg: "transparent",
91
- color: r.gray.darkGray,
92
- border: "transparent"
93
- }
94
- }
95
- }[e];
96
- return i`
97
- background-color: ${o.default.bg};
98
- color: ${o.default.color};
99
- border-color: ${o.default.border};
100
-
101
- &:hover:not(:disabled) {
102
- background-color: ${o.hover.bg};
103
- color: ${o.hover.color};
104
- border-color: ${o.hover.border};
105
- }
106
-
107
- &:active:not(:disabled) {
108
- background-color: ${o.active.bg};
109
- color: ${o.active.color};
110
- border-color: ${o.active.border};
111
- }
112
-
113
- &:disabled {
114
- background-color: ${o.disabled.bg};
115
- color: ${o.disabled.color};
116
- border-color: ${o.disabled.border};
117
- }
118
- `;
119
- }, c = l.button`
120
- display: inline-flex;
121
- align-items: center;
122
- justify-content: center;
123
- border: 1px solid transparent;
124
- border-radius: ${({ $form: e }) => e === "brick-right" ? "0 5px 5px 0" : "5px"};
125
- cursor: pointer;
126
- transition: background-color 0.15s ease, border-color 0.15s ease,
127
- color 0.15s ease, opacity 0.15s ease;
128
- font-weight: 600;
129
-
130
- ${({ $size: e }) => i`
131
- padding: ${a[e].padding};
132
- min-height: ${a[e].minHeight};
133
- font-size: ${a[e].fontSize};
134
- line-height: ${a[e].lineHeight};
135
- `}
136
-
137
- ${({ $hasIcon: e, $iconOnly: t, $size: r }) => i`
138
- gap: ${t ? "0" : e ? a[r].iconGap : a[r].gap};
139
- `}
140
-
141
- ${({ $fullWidth: e }) => e && i`
142
- width: 100%;
143
- `}
144
-
145
- ${({ $variant: e }) => p(e)}
146
-
147
- &:disabled {
148
- cursor: not-allowed;
149
- }
150
- `, g = l.span`
151
- display: inline-flex;
152
- align-items: center;
153
- justify-content: center;
154
- line-height: 0;
155
- ${({ $iconOnly: e }) => e && i`
156
- width: 18px;
157
- height: 18px;
158
- `}
159
- `;
160
- export {
161
- g as IconSlot,
162
- c as StyledButton
163
- };
@@ -1,40 +0,0 @@
1
- import { styled as o } from "styled-components";
2
- const t = o.div`
3
- position: relative;
4
- display: inline-flex;
5
- align-items: center;
6
- cursor: pointer;
7
- `, n = o.button`
8
- border: none;
9
- background: transparent;
10
- padding: 4px 8px;
11
- font: inherit;
12
- color: inherit;
13
- cursor: pointer;
14
- `, e = o.span`
15
- position: absolute;
16
- bottom: 100%;
17
- left: 50%;
18
- transform: translate(-50%, -6px);
19
- white-space: nowrap;
20
- background: rgba(0, 0, 0, 0.85);
21
- color: #fff;
22
- font-size: 12px;
23
- padding: 4px 8px;
24
- border-radius: 4px;
25
- opacity: 0;
26
- pointer-events: none;
27
- transition: opacity 0.15s ease, transform 0.15s ease;
28
-
29
- ${t}:hover &,
30
- ${t}:focus-within &,
31
- ${t}:active & {
32
- opacity: 1;
33
- transform: translate(-50%, -10px);
34
- }
35
- `;
36
- export {
37
- e as Bubble,
38
- n as Trigger,
39
- t as Wrapper
40
- };
@@ -1,330 +0,0 @@
1
- import { css as i, styled as g } from "styled-components";
2
- const e = {
3
- regular: 400,
4
- semibold: 600,
5
- bold: 700
6
- }, h = {
7
- h1: {
8
- mobile: {
9
- fontSize: "26px",
10
- lineHeight: "32px",
11
- fontWeight: e.semibold
12
- },
13
- tablet: {
14
- fontSize: "34px",
15
- lineHeight: "42px",
16
- fontWeight: e.semibold
17
- },
18
- desktop: {
19
- fontSize: "44px",
20
- lineHeight: "54px",
21
- fontWeight: e.semibold,
22
- textTransform: "uppercase"
23
- }
24
- },
25
- h2: {
26
- mobile: {
27
- fontSize: "22px",
28
- lineHeight: "28px",
29
- fontWeight: e.semibold
30
- },
31
- tablet: {
32
- fontSize: "30px",
33
- lineHeight: "37px",
34
- fontWeight: e.semibold
35
- },
36
- desktop: {
37
- fontSize: "32px",
38
- lineHeight: "40px",
39
- fontWeight: e.semibold
40
- }
41
- },
42
- h3: {
43
- mobile: {
44
- fontSize: "20px",
45
- lineHeight: "24px",
46
- fontWeight: e.semibold
47
- },
48
- tablet: {
49
- fontSize: "28px",
50
- lineHeight: "34px",
51
- fontWeight: e.semibold
52
- },
53
- desktop: {
54
- fontSize: "30px",
55
- lineHeight: "38px",
56
- fontWeight: e.semibold
57
- }
58
- },
59
- h4: {
60
- mobile: {
61
- fontSize: "18px",
62
- lineHeight: "22px",
63
- fontWeight: e.semibold
64
- },
65
- tablet: {
66
- fontSize: "24px",
67
- lineHeight: "30px",
68
- fontWeight: e.semibold
69
- },
70
- desktop: {
71
- fontSize: "24px",
72
- lineHeight: "30px",
73
- fontWeight: e.semibold
74
- }
75
- },
76
- h5: {
77
- mobile: {
78
- fontSize: "16px",
79
- lineHeight: "20px",
80
- fontWeight: e.semibold
81
- },
82
- tablet: {
83
- fontSize: "20px",
84
- lineHeight: "24px",
85
- fontWeight: e.semibold
86
- },
87
- desktop: {
88
- fontSize: "20px",
89
- lineHeight: "24px",
90
- fontWeight: e.semibold
91
- }
92
- },
93
- "body-xl-semibold": {
94
- mobile: {
95
- fontSize: "18px",
96
- lineHeight: "22px",
97
- fontWeight: e.semibold
98
- },
99
- tablet: {
100
- fontSize: "22px",
101
- lineHeight: "28px",
102
- fontWeight: e.semibold
103
- },
104
- desktop: {
105
- fontSize: "24px",
106
- lineHeight: "30px",
107
- fontWeight: e.semibold
108
- }
109
- },
110
- "body-xl": {
111
- mobile: {
112
- fontSize: "18px",
113
- lineHeight: "22px",
114
- fontWeight: e.regular
115
- },
116
- tablet: {
117
- fontSize: "22px",
118
- lineHeight: "28px",
119
- fontWeight: e.regular
120
- },
121
- desktop: {
122
- fontSize: "24px",
123
- lineHeight: "30px",
124
- fontWeight: e.regular
125
- }
126
- },
127
- "body-l-semibold": {
128
- mobile: {
129
- fontSize: "16px",
130
- lineHeight: "19px",
131
- fontWeight: e.semibold
132
- },
133
- tablet: {
134
- fontSize: "18px",
135
- lineHeight: "22px",
136
- fontWeight: e.semibold
137
- },
138
- desktop: {
139
- fontSize: "18px",
140
- lineHeight: "22px",
141
- fontWeight: e.semibold
142
- }
143
- },
144
- "body-l": {
145
- mobile: {
146
- fontSize: "16px",
147
- lineHeight: "19px",
148
- fontWeight: e.regular
149
- },
150
- tablet: {
151
- fontSize: "18px",
152
- lineHeight: "22px",
153
- fontWeight: e.regular
154
- },
155
- desktop: {
156
- fontSize: "18px",
157
- lineHeight: "22px",
158
- fontWeight: e.regular
159
- }
160
- },
161
- "body-m-bold": {
162
- mobile: {
163
- fontSize: "14px",
164
- lineHeight: "17px",
165
- fontWeight: e.bold
166
- },
167
- tablet: {
168
- fontSize: "16px",
169
- lineHeight: "20px",
170
- fontWeight: e.bold
171
- },
172
- desktop: {
173
- fontSize: "16px",
174
- lineHeight: "20px",
175
- fontWeight: e.bold
176
- }
177
- },
178
- "body-m-semibold": {
179
- mobile: {
180
- fontSize: "14px",
181
- lineHeight: "17px",
182
- fontWeight: e.semibold
183
- },
184
- tablet: {
185
- fontSize: "16px",
186
- lineHeight: "20px",
187
- fontWeight: e.semibold
188
- },
189
- desktop: {
190
- fontSize: "16px",
191
- lineHeight: "20px",
192
- fontWeight: e.semibold
193
- }
194
- },
195
- "body-m": {
196
- mobile: {
197
- fontSize: "14px",
198
- lineHeight: "17px",
199
- fontWeight: e.regular
200
- },
201
- tablet: {
202
- fontSize: "16px",
203
- lineHeight: "20px",
204
- fontWeight: e.regular
205
- },
206
- desktop: {
207
- fontSize: "16px",
208
- lineHeight: "20px",
209
- fontWeight: e.regular
210
- }
211
- },
212
- "body-s-semibold": {
213
- mobile: {
214
- fontSize: "12px",
215
- lineHeight: "15px",
216
- fontWeight: e.semibold
217
- },
218
- tablet: {
219
- fontSize: "14px",
220
- lineHeight: "17px",
221
- fontWeight: e.semibold
222
- },
223
- desktop: {
224
- fontSize: "14px",
225
- lineHeight: "17px",
226
- fontWeight: e.semibold
227
- }
228
- },
229
- "body-s": {
230
- mobile: {
231
- fontSize: "12px",
232
- lineHeight: "15px",
233
- fontWeight: e.regular
234
- },
235
- tablet: {
236
- fontSize: "14px",
237
- lineHeight: "17px",
238
- fontWeight: e.regular
239
- },
240
- desktop: {
241
- fontSize: "14px",
242
- lineHeight: "17px",
243
- fontWeight: e.regular
244
- }
245
- },
246
- button: {
247
- desktop: {
248
- fontSize: "15px",
249
- lineHeight: "18px",
250
- fontWeight: e.semibold
251
- }
252
- },
253
- "form-input": {
254
- desktop: {
255
- fontSize: "15px",
256
- lineHeight: "18px",
257
- fontWeight: e.regular
258
- }
259
- },
260
- "avatar-basic": {
261
- desktop: {
262
- fontSize: "16px",
263
- lineHeight: "18px",
264
- fontWeight: e.semibold
265
- }
266
- },
267
- "avatar-m": {
268
- desktop: {
269
- fontSize: "14px",
270
- lineHeight: "16px",
271
- fontWeight: e.semibold
272
- }
273
- },
274
- "avatar-s": {
275
- desktop: {
276
- fontSize: "12px",
277
- lineHeight: "14px",
278
- fontWeight: e.semibold
279
- }
280
- }
281
- }, f = (t) => {
282
- const { mobile: o, tablet: n, desktop: l } = h[t];
283
- return i`
284
- ${({ theme: p }) => i`
285
- ${i`
286
- font-size: ${l.fontSize};
287
- font-weight: ${l.fontWeight};
288
- line-height: ${l.lineHeight};
289
- `}
290
-
291
- ${n && i`
292
- ${p.media.maxWidth.tablet} {
293
- font-size: ${n.fontSize};
294
- font-weight: ${n.fontWeight};
295
- line-height: ${n.lineHeight};
296
- }
297
- `}
298
-
299
- ${o && i`
300
- ${p.media.maxWidth.mobile} {
301
- font-size: ${o.fontSize};
302
- font-weight: ${o.fontWeight};
303
- line-height: ${o.lineHeight};
304
- }
305
- `}
306
- `}
307
- `;
308
- }, b = g.span`
309
- margin: 0;
310
- color: ${({ $color: t }) => t ?? "inherit"};
311
- ${({ $variant: t }) => f(t)};
312
- text-align: ${({ $align: t }) => t ?? "inherit"};
313
- ${({ $inline: t }) => t ? i`
314
- display: inline;
315
- ` : i`
316
- display: block;
317
- `};
318
- ${({ $uppercase: t }) => t && i`
319
- text-transform: uppercase;
320
- letter-spacing: 0.04em;
321
- `}
322
- ${({ $truncate: t }) => t && i`
323
- overflow: hidden;
324
- text-overflow: ellipsis;
325
- white-space: nowrap;
326
- `}
327
- `;
328
- export {
329
- b as StyledTypography
330
- };
@@ -1,15 +0,0 @@
1
- import { j as i } from "./matbea-ui.es31.js";
2
- import { Icon as c } from "./matbea-ui.es53.js";
3
- const r = (l) => /* @__PURE__ */ i.jsxs(c, { ...l, viewBox: "0 0 18 18", children: [
4
- /* @__PURE__ */ i.jsx("g", { "clip-path": "url(#clip0_309_1899)", children: /* @__PURE__ */ i.jsx(
5
- "path",
6
- {
7
- d: "M9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9C16.4955 13.1403 13.1403 16.4955 9 16.5ZM3 9.129C3.03549 12.4299 5.73083 15.0822 9.0319 15.0645C12.333 15.0467 14.9997 12.3656 14.9997 9.0645C14.9997 5.76338 12.333 3.08233 9.0319 3.0645C5.73083 3.04684 3.03549 5.69907 3 9V9.129ZM10.5 12.75H8.25V9.75H7.5V8.25H9.75V11.25H10.5V12.75ZM9.75 6.75H8.25V5.25H9.75V6.75Z",
8
- fill: l.color || "#9296A5"
9
- }
10
- ) }),
11
- /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_309_1899", children: /* @__PURE__ */ i.jsx("rect", { width: "18", height: "18", fill: "white" }) }) })
12
- ] });
13
- export {
14
- r as InfoIcon
15
- };
@@ -1,26 +0,0 @@
1
- import { styled as o } from "styled-components";
2
- const t = o.div`
3
- display: grid;
4
- align-items: center;
5
- grid-template-columns: ${({ $icon: e }) => e ? "auto 1fr" : "1fr"};
6
- gap: 12px;
7
- width: 458px;
8
- height: auto;
9
- border-radius: 12px;
10
- padding: 24px;
11
- background-color: ${({ $type: e, theme: r }) => {
12
- switch (e) {
13
- case "success":
14
- return r.colors.accent.green2Light;
15
- case "error":
16
- return r.colors.accent.red;
17
- case "info":
18
- return r.colors.primary.lightBlue2;
19
- case "warning":
20
- return r.colors.accent.orange;
21
- }
22
- }};
23
- `;
24
- export {
25
- t as InformerStyled
26
- };