meticulous-ui 2.9.3 → 3.0.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.
- package/components/Button/Button.js +18 -18
- package/components/Button/constants.js +12 -12
- package/components/Button/styles.js +3 -3
- package/components/Dropdown/Dropdown.js +3 -3
- package/components/Dropdown/styles.js +19 -19
- package/components/Input/Checkbox/Checkbox.js +1 -1
- package/components/Input/Checkbox/styles.js +4 -4
- package/components/Input/Input/helpers.js +1 -1
- package/components/Input/Input/styles.js +22 -22
- package/components/Input/Radio/Radio.js +1 -1
- package/components/Input/Radio/styles.js +5 -5
- package/components/Input/RadioGroup/styles.js +1 -1
- package/components/Input/Textarea/styles.js +20 -20
- package/components/Loader/constants.js +3 -3
- package/components/MenuItem/MenuItem.js +2 -2
- package/components/MenuItem/styles.js +3 -3
- package/components/OtpInput/styles.js +6 -6
- package/components/Pagination/Pagination.js +46 -46
- package/components/Pagination/constants.js +9 -9
- package/components/Pagination/styles.js +44 -33
- package/components/RootComponent/RootComponent.js +6 -0
- package/components/RootComponent/index.js +4 -0
- package/components/RootComponent/styles.js +8 -0
- package/components/Selectbox/Selectbox.js +4 -4
- package/components/Selectbox/styles.js +22 -22
- package/components/Shimmer/Shimmer.js +1 -1
- package/components/Spinner/Spinner.js +3 -3
- package/components/Timer/Timer.js +1 -1
- package/components/Toast/Toast.js +34 -30
- package/components/Toast/helpers.js +1 -1
- package/components/Toast/styles.js +30 -30
- package/components/Typography/Headings/H1.js +1 -1
- package/components/Typography/Headings/H2.js +1 -1
- package/components/Typography/Headings/H3.js +1 -1
- package/components/Typography/Headings/H4.js +1 -1
- package/components/Typography/Headings/H5.js +1 -1
- package/components/Typography/Headings/H6.js +1 -1
- package/components/Typography/P/styles.js +1 -1
- package/components/VideoPlayer/components/Volumebar/styles.js +9 -9
- package/index.js +52 -50
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as x } from "react";
|
|
3
3
|
import D from "../Spinner/Spinner.js";
|
|
4
4
|
import I from "../../colors/index.js";
|
|
5
|
-
import
|
|
5
|
+
import C from "../../colors/blue.js";
|
|
6
6
|
import { ButtonWrapper as R, SpinnerWrapper as B, Content as E, ButtonContainer as L } from "./styles.js";
|
|
7
7
|
import S from "../Ripple/Ripple.js";
|
|
8
8
|
import k from "../../colors/white.js";
|
|
@@ -11,26 +11,26 @@ import { MEDIUM as K, SIZE as M } from "./constants.js";
|
|
|
11
11
|
const P = ({ theme: t, children: i }) => /* @__PURE__ */ o(S, { rippleColor: t.m100, children: i }), Q = (t) => {
|
|
12
12
|
const {
|
|
13
13
|
children: i,
|
|
14
|
-
theme: n =
|
|
15
|
-
size:
|
|
16
|
-
width:
|
|
14
|
+
theme: n = C,
|
|
15
|
+
size: u = K,
|
|
16
|
+
width: s,
|
|
17
17
|
leftIcon: W,
|
|
18
18
|
rightIcon: j,
|
|
19
|
-
isLoading:
|
|
20
|
-
textColor:
|
|
19
|
+
isLoading: e,
|
|
20
|
+
textColor: d,
|
|
21
21
|
onKeyDown: l,
|
|
22
22
|
...w
|
|
23
|
-
} = t || {}, m = x(0), $ = (
|
|
24
|
-
if (
|
|
23
|
+
} = t || {}, m = x(0), $ = (r) => {
|
|
24
|
+
if (r.key === "Enter" || r.key === " ") {
|
|
25
25
|
const f = Date.now();
|
|
26
26
|
if (f - m.current < 500) {
|
|
27
|
-
|
|
27
|
+
r.preventDefault(), r.stopPropagation();
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
m.current = f;
|
|
31
31
|
}
|
|
32
|
-
l == null || l(
|
|
33
|
-
}, { m400: g, m500: b, m600: y } = I[n] ??
|
|
32
|
+
l == null || l(r);
|
|
33
|
+
}, { m400: g, m500: b, m600: y } = I[n] ?? C, { height: c, width: h, font: v } = M[u] || {}, p = ["white", "yellow"].includes(n) ? z.m600 : k, a = /* @__PURE__ */ o(
|
|
34
34
|
R,
|
|
35
35
|
{
|
|
36
36
|
...w,
|
|
@@ -39,13 +39,13 @@ const P = ({ theme: t, children: i }) => /* @__PURE__ */ o(S, { rippleColor: t.m
|
|
|
39
39
|
$activeColor: y,
|
|
40
40
|
$selectedColor: g,
|
|
41
41
|
$height: c,
|
|
42
|
-
$width:
|
|
42
|
+
$width: s || h,
|
|
43
43
|
disabled: t.disabled,
|
|
44
|
-
$isLoading:
|
|
45
|
-
children:
|
|
44
|
+
$isLoading: e,
|
|
45
|
+
children: e ? /* @__PURE__ */ o(B, { children: /* @__PURE__ */ o(D, { size: "small", color: d || p }) }) : /* @__PURE__ */ o(
|
|
46
46
|
E,
|
|
47
47
|
{
|
|
48
|
-
$textColor:
|
|
48
|
+
$textColor: d || p,
|
|
49
49
|
$font: v,
|
|
50
50
|
children: i
|
|
51
51
|
}
|
|
@@ -56,10 +56,10 @@ const P = ({ theme: t, children: i }) => /* @__PURE__ */ o(S, { rippleColor: t.m
|
|
|
56
56
|
L,
|
|
57
57
|
{
|
|
58
58
|
$height: c,
|
|
59
|
-
$width:
|
|
59
|
+
$width: s || h,
|
|
60
60
|
disabled: t.disabled,
|
|
61
|
-
$isLoading:
|
|
62
|
-
children:
|
|
61
|
+
$isLoading: e,
|
|
62
|
+
children: e ? a : /* @__PURE__ */ o(P, { theme: n, children: a })
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
const t = "small", h = "medium", o = "large", e = "ex-large", i = {
|
|
2
2
|
[t]: {
|
|
3
|
-
height:
|
|
4
|
-
width:
|
|
5
|
-
font: 1
|
|
3
|
+
height: 4.48,
|
|
4
|
+
width: 8.4,
|
|
5
|
+
font: 1.6
|
|
6
6
|
},
|
|
7
7
|
[h]: {
|
|
8
|
-
height:
|
|
9
|
-
width: 6,
|
|
10
|
-
font: 1.
|
|
8
|
+
height: 5.12,
|
|
9
|
+
width: 9.6,
|
|
10
|
+
font: 1.92
|
|
11
11
|
},
|
|
12
12
|
[o]: {
|
|
13
|
-
height:
|
|
14
|
-
width:
|
|
15
|
-
font:
|
|
13
|
+
height: 5.76,
|
|
14
|
+
width: 10.8,
|
|
15
|
+
font: 2.24
|
|
16
16
|
},
|
|
17
17
|
[e]: {
|
|
18
|
-
height: 4,
|
|
19
|
-
width:
|
|
20
|
-
font:
|
|
18
|
+
height: 6.4,
|
|
19
|
+
width: 12,
|
|
20
|
+
font: 2.56
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
@@ -3,9 +3,9 @@ import i from "../../colors/grey.js";
|
|
|
3
3
|
const d = e.button`
|
|
4
4
|
height: ${({ $height: o }) => o}rem;
|
|
5
5
|
width: ${({ $width: o }) => o}rem;
|
|
6
|
-
border-radius: 0.
|
|
6
|
+
border-radius: 0.96rem;
|
|
7
7
|
border: none;
|
|
8
|
-
padding: 0.
|
|
8
|
+
padding: 0.96rem 0.64rem;
|
|
9
9
|
background-color: ${({ $selectedColor: o, disabled: r }) => r ? i.m500 : o};
|
|
10
10
|
cursor: ${({ disabled: o, $isLoading: r }) => o ? "not-allowed" : r ? "auto" : "pointer"};
|
|
11
11
|
|
|
@@ -37,7 +37,7 @@ const d = e.button`
|
|
|
37
37
|
width: ${({ $width: o }) => o}rem;
|
|
38
38
|
display: inline-block;
|
|
39
39
|
position: relative;
|
|
40
|
-
border-radius: 0.
|
|
40
|
+
border-radius: 0.96rem;
|
|
41
41
|
|
|
42
42
|
${({ disabled: o, $isLoading: r }) => !(o || r) && n`
|
|
43
43
|
box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.2);
|
|
@@ -18,8 +18,8 @@ const Ee = (n) => {
|
|
|
18
18
|
options: n,
|
|
19
19
|
onChange: O,
|
|
20
20
|
value: s,
|
|
21
|
-
width: b = "
|
|
22
|
-
menuHeight: F = "
|
|
21
|
+
width: b = "32rem",
|
|
22
|
+
menuHeight: F = "32rem",
|
|
23
23
|
placeholder: Q,
|
|
24
24
|
theme: U = "blue",
|
|
25
25
|
isLoading: w,
|
|
@@ -195,7 +195,7 @@ const Ee = (n) => {
|
|
|
195
195
|
$border: te,
|
|
196
196
|
$isFocused: N && !r,
|
|
197
197
|
children: [
|
|
198
|
-
/* @__PURE__ */ u(xe, { $width: b, color: s ? E.m700 : E.m500, size: "1.
|
|
198
|
+
/* @__PURE__ */ u(xe, { $width: b, color: s ? E.m700 : E.m500, size: "1.92rem", children: s ? (j = n.find(({ value: e }) => s === e)) == null ? void 0 : j.label : Q }),
|
|
199
199
|
/* @__PURE__ */ u(ge, { color: E.m500, size: 22, $isOpen: r, "aria-hidden": !0 })
|
|
200
200
|
]
|
|
201
201
|
}
|
|
@@ -34,11 +34,11 @@ const l = n`
|
|
|
34
34
|
opacity: 0.7;
|
|
35
35
|
`}
|
|
36
36
|
`, y = e.div`
|
|
37
|
-
height: 2rem;
|
|
37
|
+
height: 3.2rem;
|
|
38
38
|
width: ${({ $width: o }) => o};
|
|
39
|
-
border-radius: 0.
|
|
39
|
+
border-radius: 0.96rem;
|
|
40
40
|
border: ${({ $isOpen: o, $isFocused: i, $border: m }) => o || i ? `2px solid ${m}` : `1px solid ${c}`};
|
|
41
|
-
padding: 0.
|
|
41
|
+
padding: 0.64rem 0.96rem 0.64rem;
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
justify-content: space-between;
|
|
@@ -47,21 +47,21 @@ const l = n`
|
|
|
47
47
|
overflow: hidden;
|
|
48
48
|
white-space: nowrap;
|
|
49
49
|
text-overflow: ellipsis;
|
|
50
|
-
max-width: calc(${({ $width: o }) => o} - 2rem);
|
|
50
|
+
max-width: calc(${({ $width: o }) => o} - 3.2rem);
|
|
51
51
|
pointer-events: none;
|
|
52
52
|
`, k = e(d)`
|
|
53
53
|
animation: ${({ $isOpen: o }) => o ? l : f} 0.15s linear;
|
|
54
54
|
transform: rotate(${({ $isOpen: o }) => o ? 180 : 0}deg);
|
|
55
55
|
`, D = e.div`
|
|
56
56
|
border: 1px solid ${t.m700};
|
|
57
|
-
width: calc(${({ $width: o }) => o} +
|
|
57
|
+
width: calc(${({ $width: o }) => o} + 1.6rem);
|
|
58
58
|
/* Remove overflow: auto from here */
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: column;
|
|
61
61
|
position: absolute;
|
|
62
62
|
z-index: 1000;
|
|
63
63
|
background-color: ${a};
|
|
64
|
-
left: 0.
|
|
64
|
+
left: 0.24rem;
|
|
65
65
|
max-height: 0;
|
|
66
66
|
transition: max-height 0.15s ease-out;
|
|
67
67
|
opacity: 0;
|
|
@@ -75,22 +75,22 @@ const l = n`
|
|
|
75
75
|
${({ $top: o }) => o ? r`
|
|
76
76
|
bottom: 100%;
|
|
77
77
|
flex-direction: column-reverse; /* Search at bottom if menu opens upward */
|
|
78
|
-
border-top-right-radius: 0.
|
|
79
|
-
border-top-left-radius: 0.
|
|
80
|
-
margin-bottom: 0.
|
|
78
|
+
border-top-right-radius: 0.96rem;
|
|
79
|
+
border-top-left-radius: 0.96rem;
|
|
80
|
+
margin-bottom: 0.16rem;
|
|
81
81
|
` : r`
|
|
82
82
|
top: 100%;
|
|
83
|
-
border-bottom-right-radius: 0.
|
|
84
|
-
border-bottom-left-radius: 0.
|
|
85
|
-
margin-top: 0.
|
|
83
|
+
border-bottom-right-radius: 0.96rem;
|
|
84
|
+
border-bottom-left-radius: 0.96rem;
|
|
85
|
+
margin-top: 0.16rem;
|
|
86
86
|
`}
|
|
87
87
|
`, W = e.div`
|
|
88
88
|
overflow-y: auto;
|
|
89
89
|
flex: 1;
|
|
90
90
|
`, z = e.div`
|
|
91
91
|
position: absolute;
|
|
92
|
-
top:
|
|
93
|
-
right: 1.
|
|
92
|
+
top: 1.28rem;
|
|
93
|
+
right: 1.92rem;
|
|
94
94
|
`, C = e.div`
|
|
95
95
|
position: relative;
|
|
96
96
|
display: flex;
|
|
@@ -106,8 +106,8 @@ const l = n`
|
|
|
106
106
|
box-sizing: border-box;
|
|
107
107
|
border: none;
|
|
108
108
|
/* Add left padding to make room for the icon */
|
|
109
|
-
padding: 0.
|
|
110
|
-
font-size: 1.
|
|
109
|
+
padding: 0.8rem 1.2rem 0.8rem 0;
|
|
110
|
+
font-size: 1.92rem;
|
|
111
111
|
color: ${t.m700};
|
|
112
112
|
background: transparent;
|
|
113
113
|
outline: none;
|
|
@@ -116,13 +116,13 @@ const l = n`
|
|
|
116
116
|
color: ${t.m400};
|
|
117
117
|
}
|
|
118
118
|
`, O = e(p)`
|
|
119
|
-
margin: 0
|
|
119
|
+
margin: 0 1.28rem;
|
|
120
120
|
`, R = e.div`
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: center;
|
|
123
123
|
align-items: center;
|
|
124
|
-
padding:
|
|
125
|
-
min-height:
|
|
124
|
+
padding: 1.6rem 0;
|
|
125
|
+
min-height: 1.6rem;
|
|
126
126
|
width: 100%;
|
|
127
127
|
`;
|
|
128
128
|
export {
|
|
@@ -5,7 +5,7 @@ const c = e.div`
|
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
|
-
gap:
|
|
8
|
+
gap: 1.28rem;
|
|
9
9
|
width: max-content;
|
|
10
10
|
position: relative;
|
|
11
11
|
|
|
@@ -14,10 +14,10 @@ const c = e.div`
|
|
|
14
14
|
opacity: 0.4;
|
|
15
15
|
`}
|
|
16
16
|
`, d = e(i)`
|
|
17
|
-
width: 1.
|
|
18
|
-
height: 1.
|
|
17
|
+
width: 1.92rem;
|
|
18
|
+
height: 1.92rem;
|
|
19
19
|
border: 1px solid ${({ $value: r, $outerShade: o }) => r ? o : n.m800};
|
|
20
|
-
border-radius: 0.
|
|
20
|
+
border-radius: 0.32rem;
|
|
21
21
|
background-color: ${({ $value: r, $innerShade: o }) => r ? o : "transparent"};
|
|
22
22
|
transition:
|
|
23
23
|
background-color 0.5s ease,
|
|
@@ -23,7 +23,7 @@ const d = {
|
|
|
23
23
|
teal: c.m500,
|
|
24
24
|
purple: s.m500,
|
|
25
25
|
pink: y.m500
|
|
26
|
-
}, H = (r) => d[r] ?? e.m500, M = ({ $hasError: r, $shade: m, $isFocused: o, value: t, $onlyPh: p }) => r ? typeof t == "string" && !t && !o ? e.m500 : i.m400 : o && !p ? m : e.m500, j = (r) => b[r] ?? null, q = ({ $hasLeftIcon: r, $hasRightIcon: m }) => r && m ? "0
|
|
26
|
+
}, H = (r) => d[r] ?? e.m500, M = ({ $hasError: r, $shade: m, $isFocused: o, value: t, $onlyPh: p }) => r ? typeof t == "string" && !t && !o ? e.m500 : i.m400 : o && !p ? m : e.m500, j = (r) => b[r] ?? null, q = ({ $hasLeftIcon: r, $hasRightIcon: m }) => r && m ? "0 3.84rem" : r ? "0 0.96rem 0 3.84rem" : m ? "0 3.84rem 0 0.96rem" : "0 0.96rem";
|
|
27
27
|
export {
|
|
28
28
|
H as getColor,
|
|
29
29
|
M as getCssShade,
|
|
@@ -4,9 +4,9 @@ import a from "../../../colors/grey.js";
|
|
|
4
4
|
import l from "../../../colors/red.js";
|
|
5
5
|
import { getPadding as p, getCssShade as i } from "./helpers.js";
|
|
6
6
|
const g = e.input`
|
|
7
|
-
height:
|
|
8
|
-
border-radius: 0.
|
|
9
|
-
font-size:
|
|
7
|
+
height: 4.8rem;
|
|
8
|
+
border-radius: 0.64rem;
|
|
9
|
+
font-size: 2.24rem;
|
|
10
10
|
border: 2px solid ${({ $hasError: o }) => o ? l.m400 : m.m200};
|
|
11
11
|
padding: ${p};
|
|
12
12
|
font-weight: 400;
|
|
@@ -26,7 +26,7 @@ const g = e.input`
|
|
|
26
26
|
&::placeholder {
|
|
27
27
|
color: ${a.m500};
|
|
28
28
|
font-weight: 300;
|
|
29
|
-
font-size:
|
|
29
|
+
font-size: 2.24rem;
|
|
30
30
|
background-color: ${({ $background: o }) => o};
|
|
31
31
|
pointer-events: none;
|
|
32
32
|
}
|
|
@@ -37,21 +37,21 @@ const g = e.input`
|
|
|
37
37
|
outline: none;
|
|
38
38
|
}
|
|
39
39
|
`, h = e.p`
|
|
40
|
-
margin-top: 0.
|
|
41
|
-
margin-left: 0.
|
|
42
|
-
font-size:
|
|
40
|
+
margin-top: 0.64rem;
|
|
41
|
+
margin-left: 0.64rem;
|
|
42
|
+
font-size: 1.28rem;
|
|
43
43
|
color: ${i};
|
|
44
44
|
`, v = e.div`
|
|
45
45
|
position: relative;
|
|
46
46
|
width: fit-content;
|
|
47
47
|
`, w = e.div`
|
|
48
48
|
position: absolute;
|
|
49
|
-
top:
|
|
50
|
-
left: 0.
|
|
49
|
+
top: 1.28rem;
|
|
50
|
+
left: 0.96rem;
|
|
51
51
|
`, $ = e.div`
|
|
52
52
|
position: absolute;
|
|
53
|
-
top:
|
|
54
|
-
right: 0.
|
|
53
|
+
top: 1.28rem;
|
|
54
|
+
right: 0.96rem;
|
|
55
55
|
`;
|
|
56
56
|
e.div`
|
|
57
57
|
position: relative;
|
|
@@ -59,26 +59,26 @@ e.div`
|
|
|
59
59
|
`;
|
|
60
60
|
const k = e.div`
|
|
61
61
|
position: absolute;
|
|
62
|
-
top: -0.
|
|
63
|
-
left: 0.
|
|
64
|
-
font-size:
|
|
62
|
+
top: -0.64rem;
|
|
63
|
+
left: 0.8rem;
|
|
64
|
+
font-size: 1.28rem;
|
|
65
65
|
background-color: ${({ $outerBackground: o }) => o};
|
|
66
|
-
border-radius: 0.
|
|
67
|
-
margin: 0 0.
|
|
66
|
+
border-radius: 0.64rem;
|
|
67
|
+
margin: 0 0.64rem;
|
|
68
68
|
transition: 0.25s;
|
|
69
69
|
font-weight: 400;
|
|
70
70
|
pointer-events: none;
|
|
71
71
|
color: ${i};
|
|
72
72
|
|
|
73
73
|
${({ $isFocused: o, value: t, $onlyPh: s }) => !s && (o || t) ? n`
|
|
74
|
-
top: -0.
|
|
75
|
-
left: ${({ $hasLeftIcon: r }) => r ?
|
|
76
|
-
padding: 0 0.
|
|
74
|
+
top: -0.64rem;
|
|
75
|
+
left: ${({ $hasLeftIcon: r }) => r ? 3.52 : 0.8}rem;
|
|
76
|
+
padding: 0 0.64rem;
|
|
77
77
|
margin: 0;
|
|
78
78
|
` : n`
|
|
79
|
-
top:
|
|
80
|
-
left: ${({ $hasLeftIcon: r }) => r ?
|
|
81
|
-
font-size:
|
|
79
|
+
top: 1.28rem;
|
|
80
|
+
left: ${({ $hasLeftIcon: r }) => r ? 3.52 : 0.8}rem;
|
|
81
|
+
font-size: 2.24rem;
|
|
82
82
|
`}
|
|
83
83
|
`;
|
|
84
84
|
export {
|
|
@@ -30,7 +30,7 @@ const C = ({
|
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
32
|
/* @__PURE__ */ n(w, { "aria-hidden": "true", $isSelected: d, $shade: a, children: /* @__PURE__ */ n(x, { $isSelected: d, $shade: o }) }),
|
|
33
|
-
/* @__PURE__ */ n($, { color: f, size: "1.
|
|
33
|
+
/* @__PURE__ */ n($, { color: f, size: "1.92rem", children: s })
|
|
34
34
|
] });
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
@@ -2,8 +2,8 @@ import e, { css as t } from "styled-components";
|
|
|
2
2
|
import i from "../../../colors/grey.js";
|
|
3
3
|
const p = e.div`
|
|
4
4
|
position: absolute;
|
|
5
|
-
width:
|
|
6
|
-
height:
|
|
5
|
+
width: 1.12rem;
|
|
6
|
+
height: 1.12rem;
|
|
7
7
|
border-radius: 50%;
|
|
8
8
|
left: 50%;
|
|
9
9
|
top: 50%;
|
|
@@ -11,8 +11,8 @@ const p = e.div`
|
|
|
11
11
|
background-color: ${({ $isSelected: o, $shade: r }) => o ? r : "transparent"};
|
|
12
12
|
transition: background-color 0.35s ease;
|
|
13
13
|
`, s = e.div`
|
|
14
|
-
width: 1.
|
|
15
|
-
height: 1.
|
|
14
|
+
width: 1.76rem;
|
|
15
|
+
height: 1.76rem;
|
|
16
16
|
border: 1px solid ${({ $isSelected: o, $shade: r }) => o ? r : i.m900};
|
|
17
17
|
border-radius: 50%;
|
|
18
18
|
position: relative;
|
|
@@ -32,7 +32,7 @@ const p = e.div`
|
|
|
32
32
|
`, c = e.label`
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
|
-
gap:
|
|
35
|
+
gap: 1.28rem;
|
|
36
36
|
width: max-content;
|
|
37
37
|
|
|
38
38
|
&:focus-within ${s} {
|
|
@@ -4,15 +4,15 @@ import l from "../../../colors/grey.js";
|
|
|
4
4
|
import s from "../../../colors/red.js";
|
|
5
5
|
import { getCssShade as i } from "./helpers.js";
|
|
6
6
|
const b = o.textarea`
|
|
7
|
-
border-radius: 0.
|
|
8
|
-
font-size:
|
|
7
|
+
border-radius: 0.64rem;
|
|
8
|
+
font-size: 2.24rem;
|
|
9
9
|
border: 2px solid ${({ $hasError: e }) => e ? s.m400 : a.m200};
|
|
10
|
-
padding: 0.
|
|
10
|
+
padding: 0.96rem;
|
|
11
11
|
font-weight: 400;
|
|
12
12
|
transition: border-color 0.3s ease;
|
|
13
13
|
background-color: ${({ $background: e }) => e} !important;
|
|
14
|
-
min-height:
|
|
15
|
-
min-width:
|
|
14
|
+
min-height: 2.24rem;
|
|
15
|
+
min-width: 4.8rem;
|
|
16
16
|
|
|
17
17
|
${({ $isResizeNone: e }) => e && r`
|
|
18
18
|
resize: none;
|
|
@@ -36,7 +36,7 @@ const b = o.textarea`
|
|
|
36
36
|
&::placeholder {
|
|
37
37
|
color: ${l.m500};
|
|
38
38
|
font-weight: 300;
|
|
39
|
-
font-size:
|
|
39
|
+
font-size: 2.24rem;
|
|
40
40
|
background-color: ${({ $background: e }) => e};
|
|
41
41
|
pointer-events: none;
|
|
42
42
|
}
|
|
@@ -47,21 +47,21 @@ const b = o.textarea`
|
|
|
47
47
|
outline: none;
|
|
48
48
|
}
|
|
49
49
|
`, w = o.p`
|
|
50
|
-
margin-top: 0.
|
|
51
|
-
margin-left: 0.
|
|
52
|
-
font-size:
|
|
50
|
+
margin-top: 0.64rem;
|
|
51
|
+
margin-left: 0.64rem;
|
|
52
|
+
font-size: 1.28rem;
|
|
53
53
|
color: ${i};
|
|
54
54
|
`, h = o.div`
|
|
55
55
|
position: relative;
|
|
56
56
|
width: fit-content;
|
|
57
57
|
`, u = o.div`
|
|
58
58
|
position: absolute;
|
|
59
|
-
top: -0.
|
|
60
|
-
left: 0.
|
|
61
|
-
font-size:
|
|
59
|
+
top: -0.64rem;
|
|
60
|
+
left: 0.8rem;
|
|
61
|
+
font-size: 1.28rem;
|
|
62
62
|
background-color: ${({ $outerBackground: e }) => e};
|
|
63
|
-
border-radius: 0.
|
|
64
|
-
margin: 0 0.
|
|
63
|
+
border-radius: 0.64rem;
|
|
64
|
+
margin: 0 0.64rem;
|
|
65
65
|
transition: 0.25s;
|
|
66
66
|
font-weight: 400;
|
|
67
67
|
pointer-events: none;
|
|
@@ -74,14 +74,14 @@ const b = o.textarea`
|
|
|
74
74
|
max-width: stretch; /* Modern Standard */
|
|
75
75
|
|
|
76
76
|
${({ $isFocused: e, $value: t, $onlyPh: n }) => !n && (e || t) ? r`
|
|
77
|
-
top: -0.
|
|
78
|
-
left: 0.
|
|
79
|
-
padding: 0 0.
|
|
77
|
+
top: -0.64rem;
|
|
78
|
+
left: 0.8rem;
|
|
79
|
+
padding: 0 0.64rem;
|
|
80
80
|
margin: 0;
|
|
81
81
|
` : r`
|
|
82
|
-
top:
|
|
83
|
-
left: 0.
|
|
84
|
-
font-size:
|
|
82
|
+
top: 1.28rem;
|
|
83
|
+
left: 0.8rem;
|
|
84
|
+
font-size: 2.24rem;
|
|
85
85
|
`}
|
|
86
86
|
`, g = o.div`
|
|
87
87
|
overflow: hidden;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const m = "small", o = "medium", t = "large", e = {
|
|
2
|
-
[m]: { dot: "0.
|
|
3
|
-
[o]: { dot: "
|
|
4
|
-
[t]: { dot: "
|
|
2
|
+
[m]: { dot: "0.8rem", gap: "0.48rem" },
|
|
3
|
+
[o]: { dot: "1.2rem", gap: "0.8rem" },
|
|
4
|
+
[t]: { dot: "1.6rem", gap: "1.12rem" }
|
|
5
5
|
}, r = "blue", s = ["m200", "m300", "m400", "m600", "m800"], E = [0, 0.17, 0.34, 0.51, 0.68];
|
|
6
6
|
export {
|
|
7
7
|
E as ANIMATION_DELAYS,
|
|
@@ -7,14 +7,14 @@ const w = ({ isSelected: o, isDisabled: e }) => o ? i.m700 : e ? i.m300 : i.m500
|
|
|
7
7
|
id: o,
|
|
8
8
|
value: e,
|
|
9
9
|
label: l,
|
|
10
|
-
width: n = "
|
|
10
|
+
width: n = "32rem",
|
|
11
11
|
isSelected: t,
|
|
12
12
|
defaultColor: p = s,
|
|
13
13
|
selectedColor: a = m.m200,
|
|
14
14
|
hoverColor: d = m.m50,
|
|
15
15
|
activeColor: f = m.m100,
|
|
16
16
|
isHighlighted: h,
|
|
17
|
-
size: $ = "1.
|
|
17
|
+
size: $ = "1.92rem",
|
|
18
18
|
onSelect: u,
|
|
19
19
|
isDisabled: r,
|
|
20
20
|
onMouseEnter: C,
|
|
@@ -11,8 +11,8 @@ const d = t.div`
|
|
|
11
11
|
}) => o ? i : e ? a : r};
|
|
12
12
|
|
|
13
13
|
cursor: ${({ $isSelected: o, $isDisabled: r }) => o ? "auto" : r ? "not-allowed" : "pointer"};
|
|
14
|
-
padding: 0.
|
|
15
|
-
margin-top: 0.
|
|
14
|
+
padding: 0.96rem 0 1.28rem 1.6rem;
|
|
15
|
+
margin-top: 0.16rem;
|
|
16
16
|
pointer-events: ${({ $isDisabled: o }) => o ? "none" : "auto"};
|
|
17
17
|
|
|
18
18
|
&:active {
|
|
@@ -22,7 +22,7 @@ const d = t.div`
|
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
white-space: nowrap;
|
|
24
24
|
text-overflow: ellipsis;
|
|
25
|
-
max-width: calc(${({ $width: o }) => o} - 2rem);
|
|
25
|
+
max-width: calc(${({ $width: o }) => o} - 3.2rem);
|
|
26
26
|
`;
|
|
27
27
|
export {
|
|
28
28
|
m as PWrapper,
|
|
@@ -3,19 +3,19 @@ import e from "../../colors/grey.js";
|
|
|
3
3
|
const m = r.div`
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: center;
|
|
6
|
-
gap: 0.
|
|
6
|
+
gap: 0.64rem;
|
|
7
7
|
|
|
8
8
|
@media screen and (max-width: 768px) {\
|
|
9
|
-
gap: 0.
|
|
9
|
+
gap: 0.32rem;
|
|
10
10
|
}
|
|
11
11
|
`, o = r.input`
|
|
12
|
-
height: 2rem;
|
|
13
|
-
width: 2rem;
|
|
14
|
-
font-size: 1.
|
|
12
|
+
height: 3.2rem;
|
|
13
|
+
width: 3.2rem;
|
|
14
|
+
font-size: 1.92rem;
|
|
15
15
|
text-align: center;
|
|
16
16
|
color: ${e.m600};
|
|
17
17
|
border: 1px solid ${e.m800};
|
|
18
|
-
border-radius: 0.
|
|
18
|
+
border-radius: 0.32rem;
|
|
19
19
|
`;
|
|
20
20
|
export {
|
|
21
21
|
o as Input,
|