meticulous-ui 2.9.1 → 2.9.3
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/Timer/Timer.js +31 -31
- package/components/Timer/components/TimerRing/TimerRing.js +23 -23
- package/components/Timer/components/TimerRing/styles.js +3 -5
- package/components/Timer/styles.js +9 -9
- package/components/Toast/Toast.js +41 -33
- package/components/Toast/index.js +2 -0
- package/components/Toast/styles.js +26 -27
- package/index.js +42 -41
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const c = () => {
|
|
|
15
15
|
};
|
|
16
16
|
}, ve = ({
|
|
17
17
|
color: g = "green",
|
|
18
|
-
showTime:
|
|
18
|
+
showTime: I = !0,
|
|
19
19
|
showTimeWithSec: b = !0,
|
|
20
20
|
timeZone: o = "Asia/Kolkata",
|
|
21
21
|
isDigital: f = !0,
|
|
@@ -25,55 +25,55 @@ const c = () => {
|
|
|
25
25
|
onTimerRemove: K = c,
|
|
26
26
|
onTimerPause: q = c,
|
|
27
27
|
onTimerPlay: J = c,
|
|
28
|
-
size:
|
|
28
|
+
size: M = 20,
|
|
29
29
|
...Q
|
|
30
30
|
}) => {
|
|
31
|
-
const [
|
|
31
|
+
const [S, V] = a(/* @__PURE__ */ new Date()), [s, T] = a(0), [m, $] = a(!1), [A, X] = a(Ce(o)), [Y, y] = a(0), [R, D] = a(!1), k = de(m), t = Math.round(M), P = Math.round(14 * M / 20);
|
|
32
32
|
O(() => {
|
|
33
33
|
k.current = m;
|
|
34
34
|
}, [m]);
|
|
35
35
|
const Z = () => {
|
|
36
|
-
|
|
36
|
+
T(r), y(r % 60 * 6), $(!1), u();
|
|
37
37
|
}, ee = () => {
|
|
38
|
-
|
|
38
|
+
D(!0), K();
|
|
39
39
|
}, te = () => {
|
|
40
|
-
|
|
40
|
+
T(0), y(0), D(!1);
|
|
41
41
|
}, re = () => {
|
|
42
|
-
|
|
42
|
+
$(!0), q();
|
|
43
43
|
}, ie = () => {
|
|
44
|
-
|
|
44
|
+
$(!1), J();
|
|
45
45
|
};
|
|
46
46
|
O(() => {
|
|
47
|
-
const
|
|
47
|
+
const N = setInterval(() => {
|
|
48
48
|
const d = /* @__PURE__ */ new Date();
|
|
49
49
|
V(d), X((i) => {
|
|
50
|
-
const ne = d.toLocaleString("en-Us", { hour12: !0, timeZone: o }).split(", ")[1].split(" ")[0], [ae,
|
|
50
|
+
const ne = d.toLocaleString("en-Us", { hour12: !0, timeZone: o }).split(", ")[1].split(" ")[0], [ae, j, x] = ne.split(":").map(Number), oe = x * 6, se = j * 6 + x * 0.1, le = ae % 12 * 30 + j * 0.5, H = (B, E) => {
|
|
51
51
|
const F = B % 360;
|
|
52
52
|
return B - F + E + (E < F ? 360 : 0);
|
|
53
53
|
};
|
|
54
54
|
return {
|
|
55
|
-
second:
|
|
56
|
-
minute:
|
|
57
|
-
hour:
|
|
55
|
+
second: H(i.second, oe),
|
|
56
|
+
minute: H(i.minute, se),
|
|
57
|
+
hour: H(i.hour, le)
|
|
58
58
|
};
|
|
59
|
-
}), k.current || (
|
|
59
|
+
}), k.current || (T((i) => (i - 1 === 0 && (G(), D(!0)), i - 1)), y((i) => i - 6));
|
|
60
60
|
}, 1e3);
|
|
61
|
-
return () => clearInterval(
|
|
61
|
+
return () => clearInterval(N);
|
|
62
62
|
}, []);
|
|
63
|
-
const
|
|
63
|
+
const w = S.toLocaleString("en-Us", { hour12: !0, timeZone: o }).split(", ")[1], C = w.split(" ")[0], W = w.split(" ")[1], z = w.split(":").slice(0, 2).join(":"), l = !(Number.isInteger(s) && s > 0), L = `${b ? C : z} ${W}`;
|
|
64
64
|
return /* @__PURE__ */ n(me, { $color: g, role: "region", "aria-label": "Clock", $size: t, ...Q, children: [
|
|
65
65
|
/* @__PURE__ */ e(ce, { borderRadius: `${ke(16.67)({ $size: t })}rem`, "aria-hidden": "true" }),
|
|
66
|
-
|
|
67
|
-
/* @__PURE__ */ e(he, { "aria-hidden": "true", $size: t, children: /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(ge, { "aria-hidden": "true", children: [...Array(60)].map((
|
|
68
|
-
f ? /* @__PURE__ */ n(U, { as: "time", dateTime:
|
|
69
|
-
/* @__PURE__ */ e(_, { $size: t, "aria-hidden": "true", children: b ? C :
|
|
66
|
+
I && /* @__PURE__ */ n(v, { children: [
|
|
67
|
+
/* @__PURE__ */ e(he, { "aria-hidden": "true", $size: t, children: /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ e(ge, { "aria-hidden": "true", children: [...Array(60)].map((N, d) => /* @__PURE__ */ e(be, { $i: d, $size: t }, d)) }) }) }),
|
|
68
|
+
f ? /* @__PURE__ */ n(U, { as: "time", dateTime: S.toISOString(), "aria-label": L, children: [
|
|
69
|
+
/* @__PURE__ */ e(_, { $size: t, "aria-hidden": "true", children: b ? C : z }),
|
|
70
70
|
/* @__PURE__ */ e(_, { $size: t, "aria-hidden": "true", children: W })
|
|
71
|
-
] }) : /* @__PURE__ */ n(U, { as: "time", dateTime:
|
|
71
|
+
] }) : /* @__PURE__ */ n(U, { as: "time", dateTime: S.toISOString(), "aria-label": L, children: [
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
fe,
|
|
74
74
|
{
|
|
75
75
|
$size: t,
|
|
76
|
-
style: { "--hand-rotate": `${
|
|
76
|
+
style: { "--hand-rotate": `${A.hour}deg` },
|
|
77
77
|
"aria-hidden": "true"
|
|
78
78
|
}
|
|
79
79
|
),
|
|
@@ -81,7 +81,7 @@ const c = () => {
|
|
|
81
81
|
Se,
|
|
82
82
|
{
|
|
83
83
|
$size: t,
|
|
84
|
-
style: { "--hand-rotate": `${
|
|
84
|
+
style: { "--hand-rotate": `${A.minute}deg` },
|
|
85
85
|
"aria-hidden": "true"
|
|
86
86
|
}
|
|
87
87
|
),
|
|
@@ -89,20 +89,20 @@ const c = () => {
|
|
|
89
89
|
Te,
|
|
90
90
|
{
|
|
91
91
|
$size: t,
|
|
92
|
-
style: { "--hand-rotate": `${
|
|
92
|
+
style: { "--hand-rotate": `${A.second}deg` },
|
|
93
93
|
"aria-hidden": "true"
|
|
94
94
|
}
|
|
95
95
|
)
|
|
96
96
|
] })
|
|
97
97
|
] }),
|
|
98
|
-
(!l ||
|
|
98
|
+
(!l || R) && /* @__PURE__ */ n(v, { children: [
|
|
99
99
|
/* @__PURE__ */ e(
|
|
100
100
|
$e,
|
|
101
101
|
{
|
|
102
|
-
$dismissing:
|
|
102
|
+
$dismissing: R,
|
|
103
103
|
onAnimationEnd: te,
|
|
104
104
|
"aria-hidden": "true",
|
|
105
|
-
children: /* @__PURE__ */ e(ue, {
|
|
105
|
+
children: /* @__PURE__ */ e(ue, { progress: s >= 60 ? 1 : s % 60 / 60 })
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
108
|
/* @__PURE__ */ e(
|
|
@@ -110,7 +110,7 @@ const c = () => {
|
|
|
110
110
|
{
|
|
111
111
|
$size: t,
|
|
112
112
|
style: { "--bullet-rotate": `${45 + Y}deg` },
|
|
113
|
-
$dismissing:
|
|
113
|
+
$dismissing: R,
|
|
114
114
|
"aria-hidden": "true",
|
|
115
115
|
children: /* @__PURE__ */ e(ye, { $size: t })
|
|
116
116
|
}
|
|
@@ -140,7 +140,7 @@ const c = () => {
|
|
|
140
140
|
$size: t,
|
|
141
141
|
"aria-label": "Stop timer",
|
|
142
142
|
"aria-disabled": l,
|
|
143
|
-
children: /* @__PURE__ */ e(Pe, { color: h, size:
|
|
143
|
+
children: /* @__PURE__ */ e(Pe, { color: h, size: P, "aria-hidden": "true" })
|
|
144
144
|
}
|
|
145
145
|
),
|
|
146
146
|
l || !m ? /* @__PURE__ */ e(
|
|
@@ -151,9 +151,9 @@ const c = () => {
|
|
|
151
151
|
$size: t,
|
|
152
152
|
"aria-label": "Pause timer",
|
|
153
153
|
"aria-disabled": l,
|
|
154
|
-
children: /* @__PURE__ */ e(we, { color: h, size:
|
|
154
|
+
children: /* @__PURE__ */ e(we, { color: h, size: P, "aria-hidden": "true" })
|
|
155
155
|
}
|
|
156
|
-
) : /* @__PURE__ */ e(p, { type: "button", onClick: ie, "aria-label": "Resume timer", $size: t, children: /* @__PURE__ */ e(He, { color: h, size:
|
|
156
|
+
) : /* @__PURE__ */ e(p, { type: "button", onClick: ie, "aria-label": "Resume timer", $size: t, children: /* @__PURE__ */ e(He, { color: h, size: P, "aria-hidden": "true" }) })
|
|
157
157
|
]
|
|
158
158
|
}
|
|
159
159
|
),
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import { SVG as
|
|
5
|
-
const
|
|
6
|
-
const s =
|
|
7
|
-
return
|
|
8
|
-
const
|
|
9
|
-
s.current.style.strokeDashoffset =
|
|
10
|
-
}, [o]), /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
1
|
+
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as n, useEffect as c } from "react";
|
|
3
|
+
import a from "../../../../colors/white.js";
|
|
4
|
+
import { SVG as l } from "./styles.js";
|
|
5
|
+
const r = 33, e = 2 * Math.PI * r, u = ({ progress: o }) => {
|
|
6
|
+
const s = n(null);
|
|
7
|
+
return c(() => {
|
|
8
|
+
const i = e * (1 - o);
|
|
9
|
+
s.current.style.strokeDashoffset = i;
|
|
10
|
+
}, [o]), /* @__PURE__ */ t(l, { viewBox: "0 0 100 100", width: "100%", height: "100%", children: /* @__PURE__ */ f("g", { transform: "rotate(-90, 50, 48)", children: [
|
|
11
|
+
/* @__PURE__ */ t(
|
|
12
12
|
"circle",
|
|
13
13
|
{
|
|
14
|
-
cx:
|
|
15
|
-
cy:
|
|
16
|
-
r
|
|
14
|
+
cx: 50,
|
|
15
|
+
cy: 48,
|
|
16
|
+
r,
|
|
17
17
|
stroke: "rgba(255,255,255,.2)",
|
|
18
|
-
strokeWidth:
|
|
18
|
+
strokeWidth: 2,
|
|
19
19
|
fill: "none"
|
|
20
20
|
}
|
|
21
21
|
),
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ t(
|
|
23
23
|
"circle",
|
|
24
24
|
{
|
|
25
25
|
ref: s,
|
|
26
|
-
cx:
|
|
27
|
-
cy:
|
|
28
|
-
r
|
|
29
|
-
stroke:
|
|
30
|
-
strokeWidth:
|
|
26
|
+
cx: 50,
|
|
27
|
+
cy: 48,
|
|
28
|
+
r,
|
|
29
|
+
stroke: a,
|
|
30
|
+
strokeWidth: 1,
|
|
31
31
|
fill: "none",
|
|
32
32
|
strokeLinecap: "round",
|
|
33
33
|
strokeDasharray: e,
|
|
@@ -35,8 +35,8 @@ const p = ({ progress: o, size: r }) => {
|
|
|
35
35
|
style: { transition: "stroke-dashoffset 0.2s linear" }
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
|
-
] });
|
|
38
|
+
] }) });
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
u as default
|
|
42
42
|
};
|
|
@@ -8,7 +8,7 @@ import u from "../../colors/black.js";
|
|
|
8
8
|
import b from "../../colors/red.js";
|
|
9
9
|
import { COLOR_MAPPING as $ } from "./constants.js";
|
|
10
10
|
import { getSize as t } from "./helpers.js";
|
|
11
|
-
const
|
|
11
|
+
const s = 1, g = 16.67, a = 1.67, f = 3.404, v = ({ $color: e }) => $[e], n = r`
|
|
12
12
|
position: absolute;
|
|
13
13
|
bottom: 50%;
|
|
14
14
|
transform-origin: bottom;
|
|
@@ -17,16 +17,16 @@ const a = 1, f = 16.67, s = 1.67, g = 3.404, v = ({ $color: e }) => $[e], n = r`
|
|
|
17
17
|
rotate: var(--hand-rotate);
|
|
18
18
|
`, T = o.div`
|
|
19
19
|
position: relative;
|
|
20
|
-
height: ${t(
|
|
21
|
-
width: ${t(
|
|
22
|
-
border-radius: ${t(
|
|
20
|
+
height: ${t(s)}rem;
|
|
21
|
+
width: ${t(s)}rem;
|
|
22
|
+
border-radius: ${t(g)}rem;
|
|
23
23
|
background-color: ${v};
|
|
24
24
|
`, W = o.div`
|
|
25
25
|
position: absolute;
|
|
26
26
|
left: 50%;
|
|
27
27
|
top: 48%;
|
|
28
|
-
width: ${t(
|
|
29
|
-
height: ${t(
|
|
28
|
+
width: ${t(a)}rem;
|
|
29
|
+
height: ${t(a)}rem;
|
|
30
30
|
transform: translate(-50%, -50%);
|
|
31
31
|
border-radius: 50%;
|
|
32
32
|
background-color: rgba(0, 0, 0, 0.16);
|
|
@@ -47,7 +47,7 @@ const a = 1, f = 16.67, s = 1.67, g = 3.404, v = ({ $color: e }) => $[e], n = r`
|
|
|
47
47
|
width: ${t(120)}rem;
|
|
48
48
|
height: ${t(120)}rem;
|
|
49
49
|
background: rgba(255, 255, 255, 0.4);
|
|
50
|
-
transform-origin: ${t(
|
|
50
|
+
transform-origin: ${t(f)}rem;
|
|
51
51
|
border-radius: 2px;
|
|
52
52
|
rotate: ${({ $i: e }) => `${e * 6}deg`};
|
|
53
53
|
|
|
@@ -91,8 +91,8 @@ const a = 1, f = 16.67, s = 1.67, g = 3.404, v = ({ $color: e }) => $[e], n = r`
|
|
|
91
91
|
to { opacity: 0; transform: scale(0.85); }
|
|
92
92
|
`, E = o.div`
|
|
93
93
|
position: absolute;
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
inset: 0;
|
|
95
|
+
pointer-events: none;
|
|
96
96
|
${({ $dismissing: e }) => e && r`
|
|
97
97
|
animation: ${d} 0.4s ease-out forwards;
|
|
98
98
|
`}
|
|
@@ -1,43 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Logo as
|
|
4
|
-
import
|
|
5
|
-
import { COLOR_MAP as
|
|
6
|
-
import { ToastWrapper as
|
|
7
|
-
const
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useEffect as T, createElement as $ } from "react";
|
|
3
|
+
import { Logo as F } from "./helpers.js";
|
|
4
|
+
import L from "../../colors/grey.js";
|
|
5
|
+
import { COLOR_MAP as N, INFO as j, INFO_COLORS as k } from "./constants.js";
|
|
6
|
+
import { ToastWrapper as w, Message as x, Title as A, Subtitle as I, CloseWrapper as M, ToastsContainer as R } from "./styles.js";
|
|
7
|
+
const O = () => {
|
|
8
|
+
}, b = ({ toasts: e, ...o }) => {
|
|
9
|
+
const [t, n] = d(e);
|
|
10
|
+
T(() => {
|
|
11
|
+
n(e);
|
|
12
|
+
}, [e]);
|
|
13
|
+
const m = ({ type: a, id: c, title: i, subtitle: r, onExpire: l = O }, f) => /* @__PURE__ */ $(W, { type: a, title: i, subtitle: r, key: c, onExpire: l });
|
|
14
|
+
return /* @__PURE__ */ s(R, { ...o, children: [...t].reverse().map(m) });
|
|
15
|
+
}, u = (e, o, t) => () => {
|
|
16
|
+
e(!0), setTimeout(() => {
|
|
17
|
+
o(!1), t();
|
|
11
18
|
}, 500);
|
|
12
|
-
},
|
|
13
|
-
type:
|
|
14
|
-
visible:
|
|
19
|
+
}, W = ({
|
|
20
|
+
type: e = j,
|
|
21
|
+
visible: o = !0,
|
|
15
22
|
duration: t = 5,
|
|
16
|
-
onExpire:
|
|
17
|
-
title:
|
|
18
|
-
subtitle:
|
|
19
|
-
...
|
|
23
|
+
onExpire: n = O,
|
|
24
|
+
title: m,
|
|
25
|
+
subtitle: a,
|
|
26
|
+
...c
|
|
20
27
|
}) => {
|
|
21
|
-
const [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
const
|
|
28
|
+
const [i, r] = d(o), [l, f] = d(!1);
|
|
29
|
+
T(() => {
|
|
30
|
+
r(o);
|
|
31
|
+
}, [o]), T(() => {
|
|
32
|
+
const S = setTimeout(u(f, r, n), t * 1e3 - 500);
|
|
26
33
|
return () => {
|
|
27
|
-
clearTimeout(
|
|
34
|
+
clearTimeout(S);
|
|
28
35
|
};
|
|
29
|
-
}, [t,
|
|
30
|
-
const { main:
|
|
31
|
-
if (
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
36
|
+
}, [t, u]);
|
|
37
|
+
const { main: h, side: C, bg: g } = N[e] ?? k;
|
|
38
|
+
if (i)
|
|
39
|
+
return /* @__PURE__ */ p(w, { $bg: g, className: `${l ? "fade-out" : "fade-in"}`, ...c, children: [
|
|
40
|
+
/* @__PURE__ */ s(F, { type: e, $main: h, $side: C }),
|
|
41
|
+
/* @__PURE__ */ p(x, { children: [
|
|
42
|
+
/* @__PURE__ */ s(A, { children: m }),
|
|
43
|
+
a && /* @__PURE__ */ s(I, { children: a })
|
|
37
44
|
] }),
|
|
38
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ s(M, { size: 20, color: L.m600, onClick: u(f, r, n) })
|
|
39
46
|
] });
|
|
40
47
|
};
|
|
41
48
|
export {
|
|
42
|
-
b as
|
|
49
|
+
b as ToastContainer,
|
|
50
|
+
W as default
|
|
43
51
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import r, { keyframes as
|
|
1
|
+
import r, { keyframes as s, css as o } from "styled-components";
|
|
2
2
|
import i from "../../colors/white.js";
|
|
3
3
|
import n from "../Icons/Close/Close.js";
|
|
4
|
-
import
|
|
4
|
+
import d from "../../colors/grey.js";
|
|
5
5
|
import { WARNING as a } from "./constants.js";
|
|
6
|
-
const m =
|
|
6
|
+
const m = s`
|
|
7
7
|
from {
|
|
8
8
|
opacity: 0;
|
|
9
9
|
transform: translateX(100%); /* Start off-screen to the right */
|
|
@@ -12,7 +12,7 @@ const m = d`
|
|
|
12
12
|
opacity: 1;
|
|
13
13
|
transform: translateX(0); /* Move to its final position */
|
|
14
14
|
}
|
|
15
|
-
`, h =
|
|
15
|
+
`, h = s`
|
|
16
16
|
from {
|
|
17
17
|
opacity: 1;
|
|
18
18
|
transform: translateX(0);
|
|
@@ -21,8 +21,7 @@ const m = d`
|
|
|
21
21
|
opacity: 0;
|
|
22
22
|
transform: translateX(100%); /* Move off-screen to the right */
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
r.div`
|
|
24
|
+
`, w = r.div`
|
|
26
25
|
position: fixed;
|
|
27
26
|
top: 1rem;
|
|
28
27
|
right: 1rem;
|
|
@@ -31,8 +30,7 @@ r.div`
|
|
|
31
30
|
display: flex;
|
|
32
31
|
flex-direction: column;
|
|
33
32
|
gap: 1rem;
|
|
34
|
-
|
|
35
|
-
const w = r.div`
|
|
33
|
+
`, x = r.div`
|
|
36
34
|
display: flex;
|
|
37
35
|
align-items: center;
|
|
38
36
|
justify-content: space-between;
|
|
@@ -60,7 +58,7 @@ const w = r.div`
|
|
|
60
58
|
border-radius: 0.6rem;
|
|
61
59
|
padding: 0.3rem 0.8rem;
|
|
62
60
|
}
|
|
63
|
-
`,
|
|
61
|
+
`, b = r.div`
|
|
64
62
|
position: absolute;
|
|
65
63
|
top: 50%;
|
|
66
64
|
left: 50%;
|
|
@@ -96,7 +94,7 @@ const w = r.div`
|
|
|
96
94
|
border-radius: 50%;
|
|
97
95
|
`}
|
|
98
96
|
}
|
|
99
|
-
`,
|
|
97
|
+
`, u = r.div`
|
|
100
98
|
position: relative;
|
|
101
99
|
width: 4rem;
|
|
102
100
|
height: 4rem;
|
|
@@ -107,7 +105,7 @@ const w = r.div`
|
|
|
107
105
|
width: 3rem;
|
|
108
106
|
height: 3rem;
|
|
109
107
|
}
|
|
110
|
-
`,
|
|
108
|
+
`, $ = r.div`
|
|
111
109
|
position: absolute;
|
|
112
110
|
top: 50%;
|
|
113
111
|
left: 50%;
|
|
@@ -121,7 +119,7 @@ const w = r.div`
|
|
|
121
119
|
transform: translate(-42.8%, -42.8%);
|
|
122
120
|
scale: 0.75;
|
|
123
121
|
}
|
|
124
|
-
`,
|
|
122
|
+
`, y = r.div`
|
|
125
123
|
position: absolute;
|
|
126
124
|
top: 50%;
|
|
127
125
|
left: 50%;
|
|
@@ -135,13 +133,13 @@ const w = r.div`
|
|
|
135
133
|
width: 2.25rem;
|
|
136
134
|
height: 2.25rem;
|
|
137
135
|
}
|
|
138
|
-
`,
|
|
136
|
+
`, v = r(n)`
|
|
139
137
|
cursor: pointer;
|
|
140
|
-
`,
|
|
138
|
+
`, k = r.div`
|
|
141
139
|
font-weight: 600;
|
|
142
140
|
font-size: 1.2rem;
|
|
143
|
-
color: ${
|
|
144
|
-
`,
|
|
141
|
+
color: ${d.m800};
|
|
142
|
+
`, C = r.div`
|
|
145
143
|
display: flex;
|
|
146
144
|
flex-direction: column;
|
|
147
145
|
gap: 0.2rem;
|
|
@@ -150,19 +148,20 @@ const w = r.div`
|
|
|
150
148
|
@media screen and (max-width: 768px) {
|
|
151
149
|
width: 15rem;
|
|
152
150
|
}
|
|
153
|
-
`,
|
|
151
|
+
`, X = r.div`
|
|
154
152
|
font-weight: 400;
|
|
155
153
|
font-size: 1rem;
|
|
156
|
-
color: ${
|
|
154
|
+
color: ${d.m700};
|
|
157
155
|
`;
|
|
158
156
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
157
|
+
v as CloseWrapper,
|
|
158
|
+
$ as Icon,
|
|
159
|
+
b as LogoContainer,
|
|
160
|
+
C as Message,
|
|
161
|
+
u as Outer,
|
|
162
|
+
y as OuterChild,
|
|
163
|
+
X as Subtitle,
|
|
164
|
+
k as Title,
|
|
165
|
+
x as ToastWrapper,
|
|
166
|
+
w as ToastsContainer
|
|
168
167
|
};
|
package/index.js
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
import { default as a } from "./components/Pagination/Pagination.js";
|
|
2
|
-
import { default as t } from "./components/Toast/Toast.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
2
|
+
import { default as t, ToastContainer as f } from "./components/Toast/Toast.js";
|
|
3
|
+
import { default as d } from "./components/Spinner/Spinner.js";
|
|
4
|
+
import { default as s } from "./components/Loader/Loader.js";
|
|
5
5
|
import { default as m } from "./components/PageLoader/PageLoader.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
6
|
+
import { default as i } from "./components/OtpInput/OtpInput.js";
|
|
7
|
+
import { default as H } from "./components/Dropdown/Dropdown.js";
|
|
8
|
+
import { default as P } from "./components/Selectbox/Selectbox.js";
|
|
9
9
|
import { default as g } from "./components/Button/Button.js";
|
|
10
10
|
import { default as S } from "./components/Timer/Timer.js";
|
|
11
|
-
import { default as
|
|
11
|
+
import { default as h } from "./components/Shimmer/Shimmer.js";
|
|
12
12
|
import { default as L } from "./components/VideoPlayer/VideoPlayer.js";
|
|
13
13
|
import { default as w } from "./components/Image/Image.js";
|
|
14
14
|
import { default as B } from "./components/Typography/P/P.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
15
|
+
import { default as F } from "./components/Input/Input/Input.js";
|
|
16
|
+
import { default as O } from "./components/Input/Textarea/Textarea.js";
|
|
17
|
+
import { default as U } from "./components/Input/Checkbox/Checkbox.js";
|
|
18
|
+
import { default as j } from "./components/Input/RadioGroup/RadioGroup.js";
|
|
19
|
+
import { default as v } from "./components/Input/FileUploader/FileUploader.js";
|
|
20
|
+
import { default as A } from "./colors/index.js";
|
|
21
|
+
import { default as J } from "./utils/index.js";
|
|
22
|
+
import { default as M } from "./components/Icons/index.js";
|
|
23
|
+
import { default as Q } from "./components/Typography/Headings/H1.js";
|
|
24
|
+
import { default as X } from "./components/Typography/Headings/H2.js";
|
|
25
|
+
import { default as Z } from "./components/Typography/Headings/H3.js";
|
|
26
|
+
import { default as $ } from "./components/Typography/Headings/H4.js";
|
|
27
|
+
import { default as eo } from "./components/Typography/Headings/H5.js";
|
|
28
|
+
import { default as ro } from "./components/Typography/Headings/H6.js";
|
|
29
29
|
export {
|
|
30
30
|
g as Button,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
U as Checkbox,
|
|
32
|
+
H as Dropdown,
|
|
33
|
+
v as FileUploader,
|
|
34
|
+
Q as H1,
|
|
35
|
+
X as H2,
|
|
36
|
+
Z as H3,
|
|
37
|
+
$ as H4,
|
|
38
|
+
eo as H5,
|
|
39
|
+
ro as H6,
|
|
40
40
|
w as Image,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
F as Input,
|
|
42
|
+
s as Loader,
|
|
43
|
+
i as OtpInput,
|
|
44
44
|
B as P,
|
|
45
45
|
m as PageLoader,
|
|
46
46
|
a as Pagination,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
j as RadioGroup,
|
|
48
|
+
P as Selectbox,
|
|
49
|
+
h as Shimmer,
|
|
50
|
+
d as Spinner,
|
|
51
|
+
O as Textarea,
|
|
52
52
|
S as Timer,
|
|
53
53
|
t as Toast,
|
|
54
|
+
f as ToastContainer,
|
|
54
55
|
L as VideoPlayer,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
A as colors,
|
|
57
|
+
M as icons,
|
|
58
|
+
J as utils
|
|
58
59
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A comprehensive React UI component library with a wide range of customizable components, icons, colors, and utilities for building modern web applications.",
|
|
6
6
|
"main": "./index.js",
|