meticulous-ui 3.0.3 → 3.0.4
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.
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ERROR as t, SUCCESS as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { WARNING as e, ERROR as t, SUCCESS as n } from "./constants.js";
|
|
3
|
+
import c from "../Icons/Close/Close.js";
|
|
4
|
+
import l from "../Icons/Check/Check.js";
|
|
5
5
|
import u from "../Icons/Info/Info.js";
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/* @__PURE__ */
|
|
6
|
+
import g from "../Icons/WarningTriangleFilled/WarningTriangleFilled.js";
|
|
7
|
+
import C from "../../colors/white.js";
|
|
8
|
+
import { Outer as d, OuterChild as h, LogoContainer as z, Icon as I } from "./styles.js";
|
|
9
|
+
const L = (r, o) => r === t ? /* @__PURE__ */ i(c, { size: 16, color: o }) : r === n ? /* @__PURE__ */ i(l, { size: 18, color: o }) : r === e ? /* @__PURE__ */ i(g, { size: 28, color: C }) : /* @__PURE__ */ i(u, { size: 22, color: o }), R = (r) => r === t ? 1.6 : r === n ? 1.76 : r === e ? 2.8 : 2.08, W = ({ type: r, $main: o, $side: f }) => {
|
|
10
|
+
const m = L(r, o);
|
|
11
|
+
return /* @__PURE__ */ s(d, { "aria-hidden": "true", $side: f, children: [
|
|
12
|
+
/* @__PURE__ */ i(h, { $main: o }),
|
|
13
|
+
r !== e && /* @__PURE__ */ i(z, { $main: o, type: r }),
|
|
14
|
+
/* @__PURE__ */ i(I, { size: R(r), children: m })
|
|
13
15
|
] });
|
|
14
16
|
};
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
W as Logo
|
|
17
19
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import t, { keyframes as
|
|
1
|
+
import t, { keyframes as r } from "styled-components";
|
|
2
2
|
import s from "../../colors/white.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const l = o`
|
|
3
|
+
import n from "../Icons/Close/Close.js";
|
|
4
|
+
import i from "../../colors/grey.js";
|
|
5
|
+
const a = r`
|
|
7
6
|
from { transform: scale(0); }
|
|
8
7
|
to { transform: scale(1); }
|
|
9
|
-
`,
|
|
8
|
+
`, d = r`
|
|
10
9
|
from { transform: translate(-50%, -50%) scale(0); }
|
|
11
10
|
to { transform: translate(-50%, -50%) scale(1); }
|
|
12
|
-
`,
|
|
11
|
+
`, m = r`
|
|
13
12
|
from {
|
|
14
13
|
opacity: 0;
|
|
15
14
|
transform: translateX(100%); /* Start off-screen to the right */
|
|
@@ -18,7 +17,7 @@ const l = o`
|
|
|
18
17
|
opacity: 1;
|
|
19
18
|
transform: translateX(0); /* Move to its final position */
|
|
20
19
|
}
|
|
21
|
-
`,
|
|
20
|
+
`, c = r`
|
|
22
21
|
from {
|
|
23
22
|
opacity: 1;
|
|
24
23
|
transform: translateX(0);
|
|
@@ -27,7 +26,7 @@ const l = o`
|
|
|
27
26
|
opacity: 0;
|
|
28
27
|
transform: translateX(100%); /* Move off-screen to the right */
|
|
29
28
|
}
|
|
30
|
-
`,
|
|
29
|
+
`, u = t.div`
|
|
31
30
|
position: fixed;
|
|
32
31
|
top: 1.6rem;
|
|
33
32
|
right: 1.6rem;
|
|
@@ -36,7 +35,7 @@ const l = o`
|
|
|
36
35
|
display: flex;
|
|
37
36
|
flex-direction: column;
|
|
38
37
|
gap: 1.6rem;
|
|
39
|
-
`,
|
|
38
|
+
`, w = t.div`
|
|
40
39
|
display: flex;
|
|
41
40
|
align-items: center;
|
|
42
41
|
justify-content: space-between;
|
|
@@ -50,12 +49,12 @@ const l = o`
|
|
|
50
49
|
|
|
51
50
|
&.fade-in {
|
|
52
51
|
opacity: 1;
|
|
53
|
-
animation: ${
|
|
52
|
+
animation: ${m} 0.5s ease-out forwards; /* slide down + fade */
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
&.fade-out {
|
|
57
56
|
opacity: 0;
|
|
58
|
-
animation: ${
|
|
57
|
+
animation: ${c} 0.5s ease-in forwards; /* slide right */
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
@media screen and (max-width: 768px) {
|
|
@@ -64,61 +63,42 @@ const l = o`
|
|
|
64
63
|
border-radius: 0.96rem;
|
|
65
64
|
padding: 0.48rem 1.28rem;
|
|
66
65
|
}
|
|
67
|
-
`,
|
|
66
|
+
`, x = t.div`
|
|
68
67
|
position: absolute;
|
|
69
68
|
top: 50%;
|
|
70
69
|
left: 50%;
|
|
71
70
|
transform: translate(-50%, -50%);
|
|
72
71
|
background-color: ${s};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
border-color: ${r} ${r} ${s} ${r};
|
|
77
|
-
border-style: solid;
|
|
78
|
-
border-width: 0 1.44rem 2.24rem 1.44rem;
|
|
79
|
-
height: 0;
|
|
80
|
-
width: 0;
|
|
81
|
-
` : i`
|
|
82
|
-
top: 50%;
|
|
83
|
-
width: 2.88rem;
|
|
84
|
-
height: 2.88rem;
|
|
85
|
-
border-radius: 50%;
|
|
86
|
-
`}
|
|
72
|
+
width: 2.88rem;
|
|
73
|
+
height: 2.88rem;
|
|
74
|
+
border-radius: 50%;
|
|
87
75
|
|
|
88
76
|
@media screen and (max-width: 768px) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
border-color: ${r} ${r} ${s} ${r};
|
|
92
|
-
border-style: solid;
|
|
93
|
-
border-width: 0 1.12rem 1.68rem 1.088rem;
|
|
94
|
-
height: 0;
|
|
95
|
-
width: 0;
|
|
96
|
-
` : i`
|
|
97
|
-
top: 50%;
|
|
98
|
-
width: 2.16rem;
|
|
99
|
-
height: 2.16rem;
|
|
100
|
-
border-radius: 50%;
|
|
101
|
-
`}
|
|
77
|
+
width: 2.16rem;
|
|
78
|
+
height: 2.16rem;
|
|
102
79
|
}
|
|
103
|
-
`,
|
|
80
|
+
`, b = t.div`
|
|
104
81
|
position: relative;
|
|
105
82
|
width: 6.4rem;
|
|
106
83
|
height: 6.4rem;
|
|
107
84
|
border-radius: 50%;
|
|
108
85
|
background-color: ${({ $side: e }) => e};
|
|
109
|
-
animation: ${
|
|
86
|
+
animation: ${a} 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
|
|
110
87
|
|
|
111
88
|
@media screen and (max-width: 768px) {
|
|
112
89
|
width: 4.8rem;
|
|
113
90
|
height: 4.8rem;
|
|
114
91
|
}
|
|
115
|
-
`,
|
|
92
|
+
`, y = t.div`
|
|
116
93
|
position: absolute;
|
|
117
94
|
top: 50%;
|
|
118
95
|
left: 50%;
|
|
119
96
|
transform: translate(-50%, -50%);
|
|
120
97
|
width: ${({ size: e }) => e}rem;
|
|
121
98
|
height: ${({ size: e }) => e}rem;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
122
102
|
|
|
123
103
|
@media screen and (max-width: 768px) {
|
|
124
104
|
top: 42.8%;
|
|
@@ -126,7 +106,7 @@ const l = o`
|
|
|
126
106
|
transform: translate(-42.8%, -42.8%);
|
|
127
107
|
scale: 0.75;
|
|
128
108
|
}
|
|
129
|
-
`,
|
|
109
|
+
`, $ = t.div`
|
|
130
110
|
position: absolute;
|
|
131
111
|
top: 50%;
|
|
132
112
|
left: 50%;
|
|
@@ -135,16 +115,16 @@ const l = o`
|
|
|
135
115
|
height: 4.8rem;
|
|
136
116
|
border-radius: 50%;
|
|
137
117
|
background-color: ${({ $main: e }) => e};
|
|
138
|
-
animation: ${
|
|
118
|
+
animation: ${d} 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
|
|
139
119
|
|
|
140
120
|
@media screen and (max-width: 768px) {
|
|
141
121
|
width: 3.6rem;
|
|
142
122
|
height: 3.6rem;
|
|
143
123
|
}
|
|
144
|
-
`,
|
|
145
|
-
from { stroke-dashoffset: ${
|
|
124
|
+
`, o = 75.4, l = r`
|
|
125
|
+
from { stroke-dashoffset: ${o}; }
|
|
146
126
|
to { stroke-dashoffset: 0; }
|
|
147
|
-
`,
|
|
127
|
+
`, v = t.div`
|
|
148
128
|
position: relative;
|
|
149
129
|
display: inline-flex;
|
|
150
130
|
align-items: center;
|
|
@@ -152,7 +132,7 @@ const l = o`
|
|
|
152
132
|
flex-shrink: 0;
|
|
153
133
|
width: 2.8rem;
|
|
154
134
|
height: 2.8rem;
|
|
155
|
-
`,
|
|
135
|
+
`, k = t.svg`
|
|
156
136
|
position: absolute;
|
|
157
137
|
inset: 0;
|
|
158
138
|
transform: rotate(-90deg);
|
|
@@ -163,7 +143,7 @@ const l = o`
|
|
|
163
143
|
stroke: ${({ $color: e }) => e};
|
|
164
144
|
stroke-width: 2;
|
|
165
145
|
stroke-linecap: round;
|
|
166
|
-
stroke-dasharray: ${
|
|
146
|
+
stroke-dasharray: ${o};
|
|
167
147
|
}
|
|
168
148
|
|
|
169
149
|
circle:first-child {
|
|
@@ -172,17 +152,17 @@ const l = o`
|
|
|
172
152
|
}
|
|
173
153
|
|
|
174
154
|
circle:last-child {
|
|
175
|
-
stroke-dashoffset: ${
|
|
176
|
-
animation: ${
|
|
155
|
+
stroke-dashoffset: ${o};
|
|
156
|
+
animation: ${l} ${({ $duration: e }) => e - 0.5}s linear forwards;
|
|
177
157
|
animation-play-state: ${({ $paused: e }) => e ? "paused" : "running"};
|
|
178
158
|
}
|
|
179
|
-
`,
|
|
159
|
+
`, C = t(n)`
|
|
180
160
|
cursor: pointer;
|
|
181
|
-
`,
|
|
161
|
+
`, R = t.div`
|
|
182
162
|
font-weight: 600;
|
|
183
163
|
font-size: 1.92rem;
|
|
184
|
-
color: ${
|
|
185
|
-
`,
|
|
164
|
+
color: ${i.m800};
|
|
165
|
+
`, z = t.div`
|
|
186
166
|
display: flex;
|
|
187
167
|
flex-direction: column;
|
|
188
168
|
gap: 0.32rem;
|
|
@@ -191,22 +171,22 @@ const l = o`
|
|
|
191
171
|
@media screen and (max-width: 768px) {
|
|
192
172
|
width: 24rem;
|
|
193
173
|
}
|
|
194
|
-
`,
|
|
174
|
+
`, I = t.div`
|
|
195
175
|
font-weight: 400;
|
|
196
176
|
font-size: 1.6rem;
|
|
197
|
-
color: ${
|
|
177
|
+
color: ${i.m700};
|
|
198
178
|
`;
|
|
199
179
|
export {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
180
|
+
v as CloseButtonContainer,
|
|
181
|
+
C as CloseWrapper,
|
|
182
|
+
y as Icon,
|
|
183
|
+
x as LogoContainer,
|
|
184
|
+
z as Message,
|
|
185
|
+
b as Outer,
|
|
186
|
+
$ as OuterChild,
|
|
187
|
+
k as ProgressRing,
|
|
188
|
+
I as Subtitle,
|
|
189
|
+
R as Title,
|
|
190
|
+
w as ToastWrapper,
|
|
191
|
+
u as ToastsContainer
|
|
212
192
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
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",
|