@matbea-ui/matbea-ui 0.1.3 → 0.1.5

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 (147) hide show
  1. package/dist/matbea-ui.cjs.js +1 -1
  2. package/dist/matbea-ui.cjs10.js +1 -1
  3. package/dist/matbea-ui.cjs11.js +1 -1
  4. package/dist/matbea-ui.cjs12.js +1 -1
  5. package/dist/matbea-ui.cjs13.js +1 -1
  6. package/dist/matbea-ui.cjs14.js +1 -1
  7. package/dist/matbea-ui.cjs15.js +1 -1
  8. package/dist/matbea-ui.cjs16.js +1 -1
  9. package/dist/matbea-ui.cjs17.js +1 -1
  10. package/dist/matbea-ui.cjs18.js +1 -1
  11. package/dist/matbea-ui.cjs19.js +1 -1
  12. package/dist/matbea-ui.cjs2.js +1 -1
  13. package/dist/matbea-ui.cjs20.js +1 -1
  14. package/dist/matbea-ui.cjs21.js +1 -1
  15. package/dist/matbea-ui.cjs22.js +1 -1
  16. package/dist/matbea-ui.cjs23.js +1 -1
  17. package/dist/matbea-ui.cjs24.js +1 -1
  18. package/dist/matbea-ui.cjs25.js +1 -1
  19. package/dist/matbea-ui.cjs26.js +1 -1
  20. package/dist/matbea-ui.cjs28.js +1 -1
  21. package/dist/matbea-ui.cjs29.js +1 -63
  22. package/dist/matbea-ui.cjs3.js +1 -1
  23. package/dist/matbea-ui.cjs30.js +1 -34
  24. package/dist/matbea-ui.cjs31.js +61 -42
  25. package/dist/matbea-ui.cjs32.js +34 -1
  26. package/dist/matbea-ui.cjs33.js +44 -11
  27. package/dist/matbea-ui.cjs34.js +1 -71
  28. package/dist/matbea-ui.cjs35.js +11 -14
  29. package/dist/matbea-ui.cjs36.js +68 -8
  30. package/dist/matbea-ui.cjs37.js +14 -1
  31. package/dist/matbea-ui.cjs38.js +11 -1
  32. package/dist/matbea-ui.cjs39.js +1 -37
  33. package/dist/matbea-ui.cjs4.js +1 -1
  34. package/dist/matbea-ui.cjs40.js +1 -62
  35. package/dist/matbea-ui.cjs41.js +31 -96
  36. package/dist/matbea-ui.cjs42.js +57 -98
  37. package/dist/matbea-ui.cjs43.js +100 -5
  38. package/dist/matbea-ui.cjs44.js +103 -1
  39. package/dist/matbea-ui.cjs45.js +7 -1
  40. package/dist/matbea-ui.cjs46.js +1 -55
  41. package/dist/matbea-ui.cjs47.js +1 -23
  42. package/dist/matbea-ui.cjs48.js +44 -27
  43. package/dist/matbea-ui.cjs49.js +23 -51
  44. package/dist/matbea-ui.cjs5.js +1 -1
  45. package/dist/matbea-ui.cjs50.js +38 -1
  46. package/dist/matbea-ui.cjs51.js +50 -26
  47. package/dist/matbea-ui.cjs52.js +1 -48
  48. package/dist/matbea-ui.cjs53.js +27 -1
  49. package/dist/matbea-ui.cjs54.js +48 -1
  50. package/dist/matbea-ui.cjs55.js +1 -1
  51. package/dist/matbea-ui.cjs56.js +1 -34
  52. package/dist/matbea-ui.cjs57.js +1 -11
  53. package/dist/matbea-ui.cjs58.js +32 -22
  54. package/dist/matbea-ui.cjs59.js +11 -27
  55. package/dist/matbea-ui.cjs6.js +1 -1
  56. package/dist/matbea-ui.cjs60.js +21 -26
  57. package/dist/matbea-ui.cjs61.js +27 -1
  58. package/dist/matbea-ui.cjs62.js +26 -17
  59. package/dist/matbea-ui.cjs63.js +1 -1
  60. package/dist/matbea-ui.cjs64.js +20 -1
  61. package/dist/matbea-ui.cjs65.js +1 -1
  62. package/dist/matbea-ui.cjs66.js +1 -6
  63. package/dist/matbea-ui.cjs67.js +1 -6
  64. package/dist/matbea-ui.cjs68.js +6 -1
  65. package/dist/matbea-ui.cjs69.js +6 -1
  66. package/dist/matbea-ui.cjs7.js +1 -1
  67. package/dist/matbea-ui.cjs70.js +1 -1
  68. package/dist/matbea-ui.cjs71.js +1 -1
  69. package/dist/matbea-ui.cjs72.js +1 -1
  70. package/dist/matbea-ui.cjs73.js +1 -0
  71. package/dist/matbea-ui.cjs74.js +1 -0
  72. package/dist/matbea-ui.cjs8.js +1 -1
  73. package/dist/matbea-ui.cjs9.js +1 -1
  74. package/dist/matbea-ui.es.js +9 -7
  75. package/dist/matbea-ui.es10.js +2 -2
  76. package/dist/matbea-ui.es11.js +2 -2
  77. package/dist/matbea-ui.es12.js +2 -2
  78. package/dist/matbea-ui.es13.js +2 -2
  79. package/dist/matbea-ui.es14.js +3 -3
  80. package/dist/matbea-ui.es15.js +3 -3
  81. package/dist/matbea-ui.es16.js +2 -2
  82. package/dist/matbea-ui.es17.js +2 -2
  83. package/dist/matbea-ui.es18.js +2 -2
  84. package/dist/matbea-ui.es19.js +4 -4
  85. package/dist/matbea-ui.es2.js +2 -2
  86. package/dist/matbea-ui.es20.js +2 -2
  87. package/dist/matbea-ui.es21.js +5 -5
  88. package/dist/matbea-ui.es22.js +2 -2
  89. package/dist/matbea-ui.es23.js +2 -2
  90. package/dist/matbea-ui.es24.js +2 -2
  91. package/dist/matbea-ui.es25.js +3 -3
  92. package/dist/matbea-ui.es26.js +4 -4
  93. package/dist/matbea-ui.es28.js +11 -3
  94. package/dist/matbea-ui.es29.js +36 -158
  95. package/dist/matbea-ui.es3.js +2 -2
  96. package/dist/matbea-ui.es30.js +3 -38
  97. package/dist/matbea-ui.es31.js +154 -321
  98. package/dist/matbea-ui.es32.js +38 -13
  99. package/dist/matbea-ui.es33.js +326 -22
  100. package/dist/matbea-ui.es34.js +13 -83
  101. package/dist/matbea-ui.es35.js +22 -14
  102. package/dist/matbea-ui.es36.js +77 -10
  103. package/dist/matbea-ui.es37.js +16 -22
  104. package/dist/matbea-ui.es38.js +16 -8
  105. package/dist/matbea-ui.es39.js +22 -40
  106. package/dist/matbea-ui.es4.js +2 -2
  107. package/dist/matbea-ui.es40.js +8 -68
  108. package/dist/matbea-ui.es41.js +33 -110
  109. package/dist/matbea-ui.es42.js +59 -120
  110. package/dist/matbea-ui.es43.js +113 -7
  111. package/dist/matbea-ui.es44.js +129 -23
  112. package/dist/matbea-ui.es45.js +11 -32
  113. package/dist/matbea-ui.es46.js +21 -60
  114. package/dist/matbea-ui.es47.js +32 -37
  115. package/dist/matbea-ui.es48.js +50 -30
  116. package/dist/matbea-ui.es49.js +37 -56
  117. package/dist/matbea-ui.es5.js +3 -3
  118. package/dist/matbea-ui.es50.js +42 -24
  119. package/dist/matbea-ui.es51.js +54 -54
  120. package/dist/matbea-ui.es52.js +24 -60
  121. package/dist/matbea-ui.es53.js +55 -9
  122. package/dist/matbea-ui.es54.js +60 -10
  123. package/dist/matbea-ui.es55.js +10 -13
  124. package/dist/matbea-ui.es56.js +9 -71
  125. package/dist/matbea-ui.es57.js +13 -15
  126. package/dist/matbea-ui.es58.js +63 -44
  127. package/dist/matbea-ui.es59.js +14 -54
  128. package/dist/matbea-ui.es6.js +2 -2
  129. package/dist/matbea-ui.es60.js +42 -46
  130. package/dist/matbea-ui.es61.js +55 -19
  131. package/dist/matbea-ui.es62.js +52 -27
  132. package/dist/matbea-ui.es63.js +19 -8
  133. package/dist/matbea-ui.es64.js +32 -2
  134. package/dist/matbea-ui.es65.js +7 -23
  135. package/dist/matbea-ui.es66.js +2 -234
  136. package/dist/matbea-ui.es67.js +24 -8
  137. package/dist/matbea-ui.es68.js +234 -7
  138. package/dist/matbea-ui.es69.js +8 -10
  139. package/dist/matbea-ui.es7.js +1 -1
  140. package/dist/matbea-ui.es70.js +7 -2
  141. package/dist/matbea-ui.es71.js +10 -2
  142. package/dist/matbea-ui.es72.js +2 -15
  143. package/dist/matbea-ui.es73.js +4 -0
  144. package/dist/matbea-ui.es74.js +17 -0
  145. package/dist/matbea-ui.es8.js +2 -2
  146. package/dist/matbea-ui.es9.js +3 -3
  147. package/package.json +4 -4
@@ -1,42 +1,24 @@
1
- import { keyframes as t, styled as a } from "styled-components";
2
- const e = t`
3
- 0% {
4
- transform: scale(0.5);
5
- }
6
- 25% {
7
- transform: scale(1);
8
- }
9
- 75% {
10
- transform: scale(0.5);
11
- }
12
- 100% {
13
- transform: scale(0.5);
14
- }
15
- `, n = a.div`
16
- display: flex;
17
- `, s = a.div`
18
- margin: 2px;
19
- width: 6px;
20
- height: 6px;
21
- border-radius: 50%;
22
- background-color: ${({ theme: o }) => o.colors.primary.primaryBlue};
23
- transform: scale(0.5);
24
- animation: ${e} 1.2s ease-out infinite;
25
-
26
- &:nth-of-type(2) {
27
- animation-delay: 0.2s;
28
- }
29
- &:nth-of-type(3) {
30
- animation-delay: 0.3s;
31
- }
32
- &:nth-of-type(4) {
33
- animation-delay: 0.4s;
34
- }
35
- &:nth-of-type(5) {
36
- animation-delay: 0.5s;
37
- }
38
- `;
1
+ import { j as i } from "./matbea-ui.es30.js";
2
+ import { Icon as s } from "./matbea-ui.es74.js";
3
+ const h = (l) => /* @__PURE__ */ i.jsxs(s, { ...l, children: [
4
+ /* @__PURE__ */ i.jsxs("g", { "clip-path": "url(#clip0_487_8651)", children: [
5
+ /* @__PURE__ */ i.jsx(
6
+ "path",
7
+ {
8
+ d: "M4.99543 4.85076C5.38596 4.46024 6.01912 4.46024 6.40965 4.85076L19.265 17.7061C19.6555 18.0966 19.6555 18.7298 19.265 19.1203L19.0937 19.2916C18.7032 19.6821 18.07 19.6821 17.6795 19.2916L4.82414 6.43627C4.43362 6.04574 4.43362 5.41258 4.82414 5.02206L4.99543 4.85076Z",
9
+ fill: "#9296A5"
10
+ }
11
+ ),
12
+ /* @__PURE__ */ i.jsx(
13
+ "path",
14
+ {
15
+ d: "M4.85129 19.1203C4.46077 18.7298 4.46077 18.0966 4.85129 17.7061L17.7066 4.85075C18.0971 4.46023 18.7303 4.46023 19.1208 4.85075L19.2921 5.02205C19.6827 5.41257 19.6827 6.04574 19.2921 6.43626L6.4368 19.2916C6.04627 19.6821 5.41311 19.6821 5.02258 19.2916L4.85129 19.1203Z",
16
+ fill: "#9296A5"
17
+ }
18
+ )
19
+ ] }),
20
+ /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("clipPath", { id: "clip0_487_8651", children: /* @__PURE__ */ i.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
21
+ ] });
39
22
  export {
40
- s as LoaderDot,
41
- n as LoaderDots
23
+ h as CloseIcon
42
24
  };
@@ -1,5 +1,5 @@
1
- import { j as m } from "./matbea-ui.es28.js";
2
- import { StyledTypography as y } from "./matbea-ui.es31.js";
1
+ import { j as m } from "./matbea-ui.es30.js";
2
+ import { StyledTypography as y } from "./matbea-ui.es33.js";
3
3
  const c = ({
4
4
  as: o = "span",
5
5
  forwardedAs: a,
@@ -1,70 +1,10 @@
1
- import { styled as a, css as e } from "styled-components";
2
- import { Typography as n } from "./matbea-ui.es4.js";
3
- const t = a.label`
4
- display: inline-flex;
5
- align-items: center;
6
- gap: 8px;
7
- cursor: ${({ disabled: o }) => o ? "not-allowed" : "pointer"};
8
- `, s = a.input`
9
- position: absolute;
10
- opacity: 0;
11
- pointer-events: none;
12
- `, d = a.span`
13
- width: 16px;
14
- height: 16px;
15
- border-radius: 50%;
16
- border: 2px solid ${({ theme: o }) => o.colors.gray.darkGray2};
17
- background-color: transparent;
18
- transition: border-color 160ms ease, background-color 160ms ease;
19
- position: relative;
20
- display: inline-flex;
21
- justify-content: center;
22
- align-items: center;
23
-
24
- ${({ $checked: o, theme: r }) => o && e`
25
- border-color: ${r.colors.primary.primaryBlue};
26
- &::after {
27
- content: "";
28
- width: 8px;
29
- height: 8px;
30
- border-radius: 50%;
31
- background-color: ${r.colors.primary.primaryBlue};
32
- transition: background-color 160ms ease;
33
- }
34
- `}
35
-
36
- ${({ $checked: o, theme: r }) => !o && e`
37
- &:hover {
38
- border-color: ${r.colors.primary.hoverBlue};
39
- }
40
- `}
41
-
42
- ${({ $checked: o, $disabled: r, theme: i }) => !r && o && e`
43
- &:hover {
44
- border-color: ${i.colors.primary.hoverBlue};
45
- &::after {
46
- background-color: ${i.colors.primary.hoverBlue};
47
- }
48
- }
49
- `}
50
-
51
- ${({ $disabled: o, theme: r }) => o && e`
52
- border-color: ${r.colors.icon.iconSecondary};
53
- background-color: ${r.colors.gray.lightGray2};
54
- &::after {
55
- content: "";
56
- width: 8px;
57
- height: 8px;
58
- border-radius: 50%;
59
- background-color: ${r.colors.icon.iconSecondary};
60
- }
61
- `}
62
- `, p = a(n)`
63
- color: ${({ theme: o }) => o.colors.primary.darkBlue};
64
- `;
1
+ import { j as r } from "./matbea-ui.es30.js";
2
+ import { Icon as i } from "./matbea-ui.es74.js";
3
+ const h = (t) => /* @__PURE__ */ r.jsxs(i, { ...t, children: [
4
+ /* @__PURE__ */ r.jsx("rect", { x: "3", y: "5", width: "18", height: "2", rx: "1", fill: "#9296A5" }),
5
+ /* @__PURE__ */ r.jsx("rect", { x: "3", y: "11", width: "18", height: "2", rx: "1", fill: "#9296A5" }),
6
+ /* @__PURE__ */ r.jsx("rect", { x: "3", y: "17", width: "18", height: "2", rx: "1", fill: "#9296A5" })
7
+ ] });
65
8
  export {
66
- s as HiddenInput,
67
- p as LabelText,
68
- t as RadioLabel,
69
- d as VisualRadio
9
+ h as HamburgerIcon
70
10
  };
@@ -1,119 +1,42 @@
1
- import { styled as r, css as e } from "styled-components";
2
- import { Typography as t } from "./matbea-ui.es4.js";
3
- const l = r.div`
4
- position: relative;
5
- display: flex;
6
- flex-direction: column;
7
- gap: 12px;
8
- width: 100%;
9
- `, s = r(t).attrs({
10
- variant: "form-input",
11
- forwardedAs: "label"
12
- })`
13
- color: ${({ theme: o }) => o.colors.primary.darkBlue};
14
- `, p = r.div`
15
- display: flex;
16
- align-items: center;
17
- gap: 8px;
18
- overflow: hidden;
19
- height: 48px;
20
- padding: 0 12px;
21
- border-radius: 5px;
22
- outline: 1px solid ${({ theme: o }) => o.colors.gray.lightGray2};
23
- outline-offset: -1px;
24
- background: ${({ theme: o }) => o.colors.primary.white};
25
- width: 100%;
26
- box-sizing: border-box;
27
- transition: outline-color 140ms ease;
28
- cursor: pointer;
29
-
30
- ${({ $disabled: o }) => o && e`
31
- opacity: 0.6;
32
- cursor: not-allowed;
33
- `}
34
-
35
- ${({ $hasError: o, theme: i }) => o && e`
36
- outline-color: ${i.colors.accent.red};
37
- `}
38
-
39
- &:hover {
40
- outline-color: ${({ theme: o, $hasError: i }) => i ? o.colors.accent.red : o.colors.primary.lightBlue2};
1
+ import { keyframes as t, styled as a } from "styled-components";
2
+ const e = t`
3
+ 0% {
4
+ transform: scale(0.5);
41
5
  }
42
-
43
- &[data-state="active"] {
44
- outline-color: ${({ theme: o, $hasError: i }) => i ? o.colors.accent.red : o.colors.primary.primaryBlue};
6
+ 25% {
7
+ transform: scale(1);
45
8
  }
46
- `, c = r.span`
47
- display: inline-flex;
48
- width: 24px;
49
- height: 24px;
50
- color: ${({ theme: o }) => o.colors.primary.primaryBlue};
51
- `, d = r.span`
52
- flex: 1;
53
- font-family: "Proxima Nova", sans-serif;
54
- font-size: 15px;
55
- line-height: 18px;
56
- color: ${({ theme: o, $placeholder: i }) => i ? o.colors.gray.darkGray : o.colors.primary.darkBlue};
57
- user-select: none;
58
- `, x = r.input`
59
- position: absolute;
60
- opacity: 0;
61
- pointer-events: none;
62
- `, u = r.span`
63
- font-family: "Proxima Nova", sans-serif;
64
- font-size: 13px;
65
- line-height: 16px;
66
- color: ${({ theme: o }) => o.colors.accent.red};
67
- `, g = r.div`
68
- position: fixed;
69
- top: ${({ $top: o }) => `${o}px`};
70
- left: ${({ $left: o }) => `${o}px`};
71
- width: ${({ $width: o }) => `${o}px`};
72
- z-index: 999;
73
- border-radius: 5px;
74
- border: 1px solid ${({ theme: o }) => o.colors.gray.lightGray2};
75
- background: ${({ theme: o }) => o.colors.primary.white};
76
- box-shadow: 0px 8px 24px rgba(15, 23, 42, 0.12);
77
- display: flex;
78
- flex-direction: column;
79
- max-height: 260px;
80
- overflow-y: auto;
81
- `, y = r.button`
9
+ 75% {
10
+ transform: scale(0.5);
11
+ }
12
+ 100% {
13
+ transform: scale(0.5);
14
+ }
15
+ `, n = a.div`
82
16
  display: flex;
83
- align-items: center;
84
- gap: 10px;
85
- padding: 0 13px;
86
- height: 40px;
87
- border: none;
88
- background: transparent;
89
- width: 100%;
90
- text-align: left;
91
- color: ${({ theme: o }) => o.colors.primary.darkBlue};
92
- cursor: pointer;
93
- transition: background 140ms ease;
17
+ `, s = a.div`
18
+ margin: 2px;
19
+ width: 6px;
20
+ height: 6px;
21
+ border-radius: 50%;
22
+ background-color: ${({ theme: o }) => o.colors.primary.primaryBlue};
23
+ transform: scale(0.5);
24
+ animation: ${e} 1.2s ease-out infinite;
94
25
 
95
- &[data-hovered="true"],
96
- &:hover {
97
- background: ${({ theme: o }) => o.colors.gray.lightBlueGray};
26
+ &:nth-of-type(2) {
27
+ animation-delay: 0.2s;
98
28
  }
99
-
100
- &[data-active="true"] {
101
- background: ${({ theme: o }) => o.colors.gray.lightGray};
29
+ &:nth-of-type(3) {
30
+ animation-delay: 0.3s;
31
+ }
32
+ &:nth-of-type(4) {
33
+ animation-delay: 0.4s;
34
+ }
35
+ &:nth-of-type(5) {
36
+ animation-delay: 0.5s;
102
37
  }
103
- `, h = r.span`
104
- display: inline-flex;
105
- width: 24px;
106
- height: 24px;
107
38
  `;
108
39
  export {
109
- u as ErrorText,
110
- p as FieldContainer,
111
- x as HiddenInput,
112
- s as Label,
113
- c as LeadingIcon,
114
- g as List,
115
- y as Option,
116
- h as OptionIcon,
117
- d as Value,
118
- l as Wrapper
40
+ s as LoaderDot,
41
+ n as LoaderDots
119
42
  };
@@ -1,131 +1,70 @@
1
- import o, { css as r } from "styled-components";
2
- import { Typography as a } from "./matbea-ui.es4.js";
3
- const i = {
4
- top: "translate3d(0, 6px, 0)",
5
- bottom: "translate3d(0, -6px, 0)",
6
- left: "translate3d(6px, 0, 0)",
7
- right: "translate3d(-6px, 0, 0)"
8
- }, s = o.div`
1
+ import { styled as a, css as e } from "styled-components";
2
+ import { Typography as n } from "./matbea-ui.es4.js";
3
+ const t = a.label`
9
4
  display: inline-flex;
5
+ align-items: center;
6
+ gap: 8px;
7
+ cursor: ${({ disabled: o }) => o ? "not-allowed" : "pointer"};
8
+ `, s = a.input`
9
+ position: absolute;
10
+ opacity: 0;
11
+ pointer-events: none;
12
+ `, d = a.span`
13
+ width: 16px;
14
+ height: 16px;
15
+ border-radius: 50%;
16
+ border: 2px solid ${({ theme: o }) => o.colors.gray.darkGray2};
17
+ background-color: transparent;
18
+ transition: border-color 160ms ease, background-color 160ms ease;
10
19
  position: relative;
11
- `, l = o.div`
12
20
  display: inline-flex;
13
- align-items: center;
14
21
  justify-content: center;
15
- cursor: pointer;
16
- outline: none;
17
-
18
- &:focus-visible {
19
- box-shadow: inset 0 0 0 2px rgba(84, 132, 255, 0.65);
20
- border-radius: 6px;
21
- }
22
-
23
- &[data-open="true"] {
24
- cursor: default;
25
- }
26
-
27
- &[data-disabled="true"] {
28
- cursor: not-allowed;
29
- }
30
- `, d = o.div`
31
- position: fixed;
32
- top: -9999px;
33
- left: -9999px;
34
- padding: 10px 14px;
35
- border-radius: 8px;
36
- font-size: 13px;
37
- line-height: 1.35;
38
- max-width: min(320px, calc(100vw - 16px));
39
- box-shadow: 0px 8px 24px 0px #0000001f;
40
- filter: drop-shadow(0px 8px 24px 0px #0000001f);
41
- background: ${({ theme: t }) => t.colors.primary.white};
42
- z-index: 9999;
43
- opacity: ${({ $visible: t }) => t ? 1 : 0};
44
- visibility: ${({ $visible: t }) => t ? "visible" : "hidden"};
45
- transform: ${({ $visible: t, $placement: e }) => t ? "translate3d(0, 0, 0)" : i[e]};
46
- transition: opacity 0.18s ease, transform 0.18s ease;
47
-
48
- pointer-events: ${({ $visible: t, $interactive: e }) => t && e ? "auto" : "none"};
49
-
50
- @media (prefers-reduced-motion: reduce) {
51
- transition: none;
52
- }
53
-
54
- &::after {
55
- content: "";
56
- position: absolute;
57
- inset: 0;
58
- border-radius: inherit;
59
- pointer-events: none;
60
- }
61
-
62
- &[data-placement="top"] {
63
- --tooltip-arrow-x: 0px;
64
- }
22
+ align-items: center;
65
23
 
66
- &[data-placement="bottom"] {
67
- --tooltip-arrow-x: 0px;
68
- }
24
+ ${({ $checked: o, theme: r }) => o && e`
25
+ border-color: ${r.colors.primary.primaryBlue};
26
+ &::after {
27
+ content: "";
28
+ width: 8px;
29
+ height: 8px;
30
+ border-radius: 50%;
31
+ background-color: ${r.colors.primary.primaryBlue};
32
+ transition: background-color 160ms ease;
33
+ }
34
+ `}
69
35
 
70
- &[data-placement="left"] {
71
- --tooltip-arrow-y: 0px;
72
- }
36
+ ${({ $checked: o, theme: r }) => !o && e`
37
+ &:hover {
38
+ border-color: ${r.colors.primary.hoverBlue};
39
+ }
40
+ `}
73
41
 
74
- &[data-placement="right"] {
75
- --tooltip-arrow-y: 0px;
76
- }
77
- `, x = o.span`
78
- position: absolute;
79
- width: 10px;
80
- height: 10px;
81
- background: inherit;
82
- border: inherit;
83
- border-radius: 2px;
84
- transform: rotate(45deg);
85
- pointer-events: none;
42
+ ${({ $checked: o, $disabled: r, theme: i }) => !r && o && e`
43
+ &:hover {
44
+ border-color: ${i.colors.primary.hoverBlue};
45
+ &::after {
46
+ background-color: ${i.colors.primary.hoverBlue};
47
+ }
48
+ }
49
+ `}
86
50
 
87
- ${({ $placement: t }) => {
88
- switch (t) {
89
- case "top":
90
- return r`
91
- bottom: -5px;
92
- left: 50%;
93
- transform: translateX(-50%) translateX(var(--tooltip-arrow-x, 0px))
94
- rotate(45deg);
95
- `;
96
- case "bottom":
97
- return r`
98
- top: -5px;
99
- left: 50%;
100
- transform: translateX(-50%) translateX(var(--tooltip-arrow-x, 0px))
101
- rotate(45deg);
102
- `;
103
- case "left":
104
- return r`
105
- right: -5px;
106
- top: 50%;
107
- transform: translateY(-50%) translateY(var(--tooltip-arrow-y, 0px))
108
- rotate(45deg);
109
- `;
110
- case "right":
111
- default:
112
- return r`
113
- left: -5px;
114
- top: 50%;
115
- transform: translateY(-50%) translateY(var(--tooltip-arrow-y, 0px))
116
- rotate(45deg);
117
- `;
118
- }
119
- }}
120
- `, c = o(a).attrs({
121
- variant: "body-s"
122
- })`
123
- color: ${({ theme: t }) => t.colors.primary.darkBlue};
51
+ ${({ $disabled: o, theme: r }) => o && e`
52
+ border-color: ${r.colors.icon.iconSecondary};
53
+ background-color: ${r.colors.gray.lightGray2};
54
+ &::after {
55
+ content: "";
56
+ width: 8px;
57
+ height: 8px;
58
+ border-radius: 50%;
59
+ background-color: ${r.colors.icon.iconSecondary};
60
+ }
61
+ `}
62
+ `, p = a(n)`
63
+ color: ${({ theme: o }) => o.colors.primary.darkBlue};
124
64
  `;
125
65
  export {
126
- x as TooltipArrow,
127
- d as TooltipBubble,
128
- c as TooltipContentText,
129
- l as TooltipTrigger,
130
- s as TooltipWrapper
66
+ s as HiddenInput,
67
+ p as LabelText,
68
+ t as RadioLabel,
69
+ d as VisualRadio
131
70
  };
@@ -1,13 +1,119 @@
1
- import { styled as o } from "styled-components";
1
+ import { styled as r, css as e } from "styled-components";
2
2
  import { Typography as t } from "./matbea-ui.es4.js";
3
- const p = o.div`
3
+ const l = r.div`
4
+ position: relative;
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: 12px;
8
+ width: 100%;
9
+ `, s = r(t).attrs({
10
+ variant: "form-input",
11
+ forwardedAs: "label"
12
+ })`
13
+ color: ${({ theme: o }) => o.colors.primary.darkBlue};
14
+ `, p = r.div`
15
+ display: flex;
16
+ align-items: center;
17
+ gap: 8px;
18
+ overflow: hidden;
19
+ height: 48px;
20
+ padding: 0 12px;
21
+ border-radius: 5px;
22
+ outline: 1px solid ${({ theme: o }) => o.colors.gray.lightGray2};
23
+ outline-offset: -1px;
24
+ background: ${({ theme: o }) => o.colors.primary.white};
25
+ width: 100%;
26
+ box-sizing: border-box;
27
+ transition: outline-color 140ms ease;
28
+ cursor: pointer;
29
+
30
+ ${({ $disabled: o }) => o && e`
31
+ opacity: 0.6;
32
+ cursor: not-allowed;
33
+ `}
34
+
35
+ ${({ $hasError: o, theme: i }) => o && e`
36
+ outline-color: ${i.colors.accent.red};
37
+ `}
38
+
39
+ &:hover {
40
+ outline-color: ${({ theme: o, $hasError: i }) => i ? o.colors.accent.red : o.colors.primary.lightBlue2};
41
+ }
42
+
43
+ &[data-state="active"] {
44
+ outline-color: ${({ theme: o, $hasError: i }) => i ? o.colors.accent.red : o.colors.primary.primaryBlue};
45
+ }
46
+ `, c = r.span`
47
+ display: inline-flex;
48
+ width: 24px;
49
+ height: 24px;
50
+ color: ${({ theme: o }) => o.colors.primary.primaryBlue};
51
+ `, d = r.span`
52
+ flex: 1;
53
+ font-family: "Proxima Nova", sans-serif;
54
+ font-size: 15px;
55
+ line-height: 18px;
56
+ color: ${({ theme: o, $placeholder: i }) => i ? o.colors.gray.darkGray : o.colors.primary.darkBlue};
57
+ user-select: none;
58
+ `, x = r.input`
59
+ position: absolute;
60
+ opacity: 0;
61
+ pointer-events: none;
62
+ `, u = r.span`
63
+ font-family: "Proxima Nova", sans-serif;
64
+ font-size: 13px;
65
+ line-height: 16px;
66
+ color: ${({ theme: o }) => o.colors.accent.red};
67
+ `, g = r.div`
68
+ position: fixed;
69
+ top: ${({ $top: o }) => `${o}px`};
70
+ left: ${({ $left: o }) => `${o}px`};
71
+ width: ${({ $width: o }) => `${o}px`};
72
+ z-index: 999;
73
+ border-radius: 5px;
74
+ border: 1px solid ${({ theme: o }) => o.colors.gray.lightGray2};
75
+ background: ${({ theme: o }) => o.colors.primary.white};
76
+ box-shadow: 0px 8px 24px rgba(15, 23, 42, 0.12);
77
+ display: flex;
78
+ flex-direction: column;
79
+ max-height: 260px;
80
+ overflow-y: auto;
81
+ `, y = r.button`
4
82
  display: flex;
5
- gap: 10px;
6
83
  align-items: center;
7
- `, l = o(t)`
8
- color: ${({ theme: r }) => r.colors.primary.darkBlue};
84
+ gap: 10px;
85
+ padding: 0 13px;
86
+ height: 40px;
87
+ border: none;
88
+ background: transparent;
89
+ width: 100%;
90
+ text-align: left;
91
+ color: ${({ theme: o }) => o.colors.primary.darkBlue};
92
+ cursor: pointer;
93
+ transition: background 140ms ease;
94
+
95
+ &[data-hovered="true"],
96
+ &:hover {
97
+ background: ${({ theme: o }) => o.colors.gray.lightBlueGray};
98
+ }
99
+
100
+ &[data-active="true"] {
101
+ background: ${({ theme: o }) => o.colors.gray.lightGray};
102
+ }
103
+ `, h = r.span`
104
+ display: inline-flex;
105
+ width: 24px;
106
+ height: 24px;
9
107
  `;
10
108
  export {
11
- p as UserAccountStyled,
12
- l as UserAccountText
109
+ u as ErrorText,
110
+ p as FieldContainer,
111
+ x as HiddenInput,
112
+ s as Label,
113
+ c as LeadingIcon,
114
+ g as List,
115
+ y as Option,
116
+ h as OptionIcon,
117
+ d as Value,
118
+ l as Wrapper
13
119
  };