@sportflow/ui 0.0.4 → 0.0.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.
- package/dist/index.es.js +320 -384
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +7 -18
- package/package.json +7 -3
package/dist/index.es.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
for (var
|
|
14
|
-
|
|
15
|
-
} else
|
|
16
|
-
return
|
|
17
|
-
$$typeof:
|
|
18
|
-
type:
|
|
19
|
-
key:
|
|
20
|
-
ref:
|
|
21
|
-
props:
|
|
2
|
+
import $, { createContext as ce, useMemo as ie } from "react";
|
|
3
|
+
var N = { exports: {} }, x = {};
|
|
4
|
+
var U;
|
|
5
|
+
function ue() {
|
|
6
|
+
if (U) return x;
|
|
7
|
+
U = 1;
|
|
8
|
+
var a = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
9
|
+
function s(p, l, c) {
|
|
10
|
+
var f = null;
|
|
11
|
+
if (c !== void 0 && (f = "" + c), l.key !== void 0 && (f = "" + l.key), "key" in l) {
|
|
12
|
+
c = {};
|
|
13
|
+
for (var i in l)
|
|
14
|
+
i !== "key" && (c[i] = l[i]);
|
|
15
|
+
} else c = l;
|
|
16
|
+
return l = c.ref, {
|
|
17
|
+
$$typeof: a,
|
|
18
|
+
type: p,
|
|
19
|
+
key: f,
|
|
20
|
+
ref: l !== void 0 ? l : null,
|
|
21
|
+
props: c
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return x.Fragment = n, x.jsx = s, x.jsxs = s, x;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
return
|
|
30
|
-
function
|
|
26
|
+
var y = {};
|
|
27
|
+
var q;
|
|
28
|
+
function me() {
|
|
29
|
+
return q || (q = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
+
function a(e) {
|
|
31
31
|
if (e == null) return null;
|
|
32
32
|
if (typeof e == "function")
|
|
33
|
-
return e.$$typeof ===
|
|
33
|
+
return e.$$typeof === le ? null : e.displayName || e.name || null;
|
|
34
34
|
if (typeof e == "string") return e;
|
|
35
35
|
switch (e) {
|
|
36
|
-
case
|
|
36
|
+
case v:
|
|
37
37
|
return "Fragment";
|
|
38
|
-
case
|
|
38
|
+
case Z:
|
|
39
39
|
return "Profiler";
|
|
40
|
-
case
|
|
40
|
+
case j:
|
|
41
41
|
return "StrictMode";
|
|
42
|
-
case
|
|
42
|
+
case te:
|
|
43
43
|
return "Suspense";
|
|
44
|
-
case
|
|
44
|
+
case re:
|
|
45
45
|
return "SuspenseList";
|
|
46
|
-
case
|
|
46
|
+
case ne:
|
|
47
47
|
return "Activity";
|
|
48
48
|
}
|
|
49
49
|
if (typeof e == "object")
|
|
50
50
|
switch (typeof e.tag == "number" && console.error(
|
|
51
51
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
52
52
|
), e.$$typeof) {
|
|
53
|
-
case
|
|
53
|
+
case k:
|
|
54
54
|
return "Portal";
|
|
55
|
-
case
|
|
55
|
+
case K:
|
|
56
56
|
return e.displayName || "Context";
|
|
57
|
-
case
|
|
57
|
+
case Q:
|
|
58
58
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
59
|
-
case
|
|
60
|
-
var
|
|
61
|
-
return e = e.displayName, e || (e =
|
|
62
|
-
case
|
|
63
|
-
return
|
|
64
|
-
case
|
|
65
|
-
|
|
59
|
+
case ee:
|
|
60
|
+
var r = e.render;
|
|
61
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
62
|
+
case ae:
|
|
63
|
+
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
64
|
+
case S:
|
|
65
|
+
r = e._payload, e = e._init;
|
|
66
66
|
try {
|
|
67
|
-
return
|
|
67
|
+
return a(e(r));
|
|
68
68
|
} catch {
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -73,53 +73,53 @@ function d1() {
|
|
|
73
73
|
function n(e) {
|
|
74
74
|
return "" + e;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function s(e) {
|
|
77
77
|
try {
|
|
78
78
|
n(e);
|
|
79
|
-
var
|
|
79
|
+
var r = !1;
|
|
80
80
|
} catch {
|
|
81
|
-
|
|
81
|
+
r = !0;
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
var o =
|
|
83
|
+
if (r) {
|
|
84
|
+
r = console;
|
|
85
|
+
var o = r.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
86
86
|
return o.call(
|
|
87
|
-
|
|
87
|
+
r,
|
|
88
88
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
89
|
-
|
|
89
|
+
u
|
|
90
90
|
), n(e);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
if (e ===
|
|
95
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
93
|
+
function p(e) {
|
|
94
|
+
if (e === v) return "<>";
|
|
95
|
+
if (typeof e == "object" && e !== null && e.$$typeof === S)
|
|
96
96
|
return "<...>";
|
|
97
97
|
try {
|
|
98
|
-
var
|
|
99
|
-
return
|
|
98
|
+
var r = a(e);
|
|
99
|
+
return r ? "<" + r + ">" : "<...>";
|
|
100
100
|
} catch {
|
|
101
101
|
return "<...>";
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
var e =
|
|
104
|
+
function l() {
|
|
105
|
+
var e = O.A;
|
|
106
106
|
return e === null ? null : e.getOwner();
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function c() {
|
|
109
109
|
return Error("react-stack-top-frame");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (
|
|
113
|
-
var
|
|
114
|
-
if (
|
|
111
|
+
function f(e) {
|
|
112
|
+
if (I.call(e, "key")) {
|
|
113
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
114
|
+
if (r && r.isReactWarning) return !1;
|
|
115
115
|
}
|
|
116
116
|
return e.key !== void 0;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function i(e, r) {
|
|
119
119
|
function o() {
|
|
120
|
-
|
|
120
|
+
Y || (Y = !0, console.error(
|
|
121
121
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
122
|
-
|
|
122
|
+
r
|
|
123
123
|
));
|
|
124
124
|
}
|
|
125
125
|
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
@@ -127,23 +127,23 @@ function d1() {
|
|
|
127
127
|
configurable: !0
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
var e =
|
|
132
|
-
return
|
|
130
|
+
function g() {
|
|
131
|
+
var e = a(this.type);
|
|
132
|
+
return z[e] || (z[e] = !0, console.error(
|
|
133
133
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
134
134
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
135
135
|
}
|
|
136
|
-
function E(e,
|
|
137
|
-
var
|
|
136
|
+
function E(e, r, o, u, M, P) {
|
|
137
|
+
var m = o.ref;
|
|
138
138
|
return e = {
|
|
139
|
-
$$typeof:
|
|
139
|
+
$$typeof: b,
|
|
140
140
|
type: e,
|
|
141
|
-
key:
|
|
141
|
+
key: r,
|
|
142
142
|
props: o,
|
|
143
|
-
_owner:
|
|
144
|
-
}, (
|
|
143
|
+
_owner: u
|
|
144
|
+
}, (m !== void 0 ? m : null) !== null ? Object.defineProperty(e, "ref", {
|
|
145
145
|
enumerable: !1,
|
|
146
|
-
get:
|
|
146
|
+
get: g
|
|
147
147
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
148
148
|
configurable: !1,
|
|
149
149
|
enumerable: !1,
|
|
@@ -158,123 +158,123 @@ function d1() {
|
|
|
158
158
|
configurable: !1,
|
|
159
159
|
enumerable: !1,
|
|
160
160
|
writable: !0,
|
|
161
|
-
value:
|
|
161
|
+
value: M
|
|
162
162
|
}), Object.defineProperty(e, "_debugTask", {
|
|
163
163
|
configurable: !1,
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
writable: !0,
|
|
166
|
-
value:
|
|
166
|
+
value: P
|
|
167
167
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
var
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
if (
|
|
174
|
-
for (
|
|
175
|
-
|
|
176
|
-
Object.freeze && Object.freeze(
|
|
169
|
+
function A(e, r, o, u, M, P) {
|
|
170
|
+
var m = r.children;
|
|
171
|
+
if (m !== void 0)
|
|
172
|
+
if (u)
|
|
173
|
+
if (oe(m)) {
|
|
174
|
+
for (u = 0; u < m.length; u++)
|
|
175
|
+
_(m[u]);
|
|
176
|
+
Object.freeze && Object.freeze(m);
|
|
177
177
|
} else
|
|
178
178
|
console.error(
|
|
179
179
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
180
180
|
);
|
|
181
|
-
else
|
|
182
|
-
if (
|
|
183
|
-
|
|
184
|
-
var
|
|
185
|
-
return
|
|
181
|
+
else _(m);
|
|
182
|
+
if (I.call(r, "key")) {
|
|
183
|
+
m = a(e);
|
|
184
|
+
var R = Object.keys(r).filter(function(se) {
|
|
185
|
+
return se !== "key";
|
|
186
186
|
});
|
|
187
|
-
|
|
187
|
+
u = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", W[m + u] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
188
188
|
`A props object containing a "key" prop is being spread into JSX:
|
|
189
189
|
let props = %s;
|
|
190
190
|
<%s {...props} />
|
|
191
191
|
React keys must be passed directly to JSX without using spread:
|
|
192
192
|
let props = %s;
|
|
193
193
|
<%s key={someKey} {...props} />`,
|
|
194
|
+
u,
|
|
194
195
|
m,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
), e1[d + m] = !0);
|
|
196
|
+
R,
|
|
197
|
+
m
|
|
198
|
+
), W[m + u] = !0);
|
|
199
199
|
}
|
|
200
|
-
if (
|
|
200
|
+
if (m = null, o !== void 0 && (s(o), m = "" + o), f(r) && (s(r.key), m = "" + r.key), "key" in r) {
|
|
201
201
|
o = {};
|
|
202
|
-
for (var
|
|
203
|
-
|
|
204
|
-
} else o =
|
|
205
|
-
return
|
|
202
|
+
for (var L in r)
|
|
203
|
+
L !== "key" && (o[L] = r[L]);
|
|
204
|
+
} else o = r;
|
|
205
|
+
return m && i(
|
|
206
206
|
o,
|
|
207
207
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
208
208
|
), E(
|
|
209
209
|
e,
|
|
210
|
-
|
|
210
|
+
m,
|
|
211
211
|
o,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
l(),
|
|
213
|
+
M,
|
|
214
|
+
P
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
h(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof ===
|
|
217
|
+
function _(e) {
|
|
218
|
+
h(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === S && (e._payload.status === "fulfilled" ? h(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
219
219
|
}
|
|
220
220
|
function h(e) {
|
|
221
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
221
|
+
return typeof e == "object" && e !== null && e.$$typeof === b;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var w = $, b = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), K = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), ae = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), le = Symbol.for("react.client.reference"), O = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, oe = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
224
224
|
return null;
|
|
225
225
|
};
|
|
226
|
-
|
|
226
|
+
w = {
|
|
227
227
|
react_stack_bottom_frame: function(e) {
|
|
228
228
|
return e();
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
)(),
|
|
235
|
-
|
|
236
|
-
var
|
|
237
|
-
return
|
|
231
|
+
var Y, z = {}, V = w.react_stack_bottom_frame.bind(
|
|
232
|
+
w,
|
|
233
|
+
c
|
|
234
|
+
)(), D = F(p(c)), W = {};
|
|
235
|
+
y.Fragment = v, y.jsx = function(e, r, o) {
|
|
236
|
+
var u = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return A(
|
|
238
238
|
e,
|
|
239
|
-
|
|
239
|
+
r,
|
|
240
240
|
o,
|
|
241
241
|
!1,
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
u ? Error("react-stack-top-frame") : V,
|
|
243
|
+
u ? F(p(e)) : D
|
|
244
244
|
);
|
|
245
|
-
},
|
|
246
|
-
var
|
|
247
|
-
return
|
|
245
|
+
}, y.jsxs = function(e, r, o) {
|
|
246
|
+
var u = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return A(
|
|
248
248
|
e,
|
|
249
|
-
|
|
249
|
+
r,
|
|
250
250
|
o,
|
|
251
251
|
!0,
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
u ? Error("react-stack-top-frame") : V,
|
|
253
|
+
u ? F(p(e)) : D
|
|
254
254
|
);
|
|
255
255
|
};
|
|
256
|
-
})()),
|
|
256
|
+
})()), y;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
260
|
-
return
|
|
258
|
+
var G;
|
|
259
|
+
function fe() {
|
|
260
|
+
return G || (G = 1, process.env.NODE_ENV === "production" ? N.exports = ue() : N.exports = me()), N.exports;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
263
|
-
function
|
|
264
|
-
text:
|
|
262
|
+
var d = fe();
|
|
263
|
+
function we({
|
|
264
|
+
text: a,
|
|
265
265
|
icon: n,
|
|
266
|
-
iconPosition:
|
|
267
|
-
href:
|
|
268
|
-
disabled:
|
|
269
|
-
handleOnClick:
|
|
270
|
-
btnColor:
|
|
271
|
-
textColor:
|
|
272
|
-
fullWidth:
|
|
266
|
+
iconPosition: s = "left",
|
|
267
|
+
href: p,
|
|
268
|
+
disabled: l = !1,
|
|
269
|
+
handleOnClick: c,
|
|
270
|
+
btnColor: f,
|
|
271
|
+
textColor: i = "text-black",
|
|
272
|
+
fullWidth: g = !1,
|
|
273
273
|
border: E,
|
|
274
|
-
rounded:
|
|
275
|
-
extraClassName:
|
|
274
|
+
rounded: A = "rounded-none",
|
|
275
|
+
extraClassName: _
|
|
276
276
|
}) {
|
|
277
|
-
const h = (
|
|
277
|
+
const h = (Z) => Z?.includes("[") && Z?.includes("]") || !1, w = [
|
|
278
278
|
"flex",
|
|
279
279
|
"h-12",
|
|
280
280
|
"px-4",
|
|
@@ -286,161 +286,149 @@ function C1({
|
|
|
286
286
|
"items-center",
|
|
287
287
|
"justify-center",
|
|
288
288
|
"transition-colors",
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
],
|
|
292
|
-
backgroundColor:
|
|
289
|
+
g ? "w-full" : "w-fit",
|
|
290
|
+
l ? "!bg-gray-300 !opacity-40 !cursor-not-allowed shadow-inner" : "cursor-pointer"
|
|
291
|
+
], b = {
|
|
292
|
+
backgroundColor: f || "bg-white",
|
|
293
293
|
borderColor: E,
|
|
294
|
-
textColor:
|
|
294
|
+
textColor: i,
|
|
295
295
|
borderWidth: E ? "border-2" : "",
|
|
296
|
-
rounded:
|
|
297
|
-
},
|
|
298
|
-
...
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(),
|
|
306
|
-
...
|
|
307
|
-
backgroundColor:
|
|
296
|
+
rounded: A
|
|
297
|
+
}, k = [
|
|
298
|
+
...w,
|
|
299
|
+
b.backgroundColor,
|
|
300
|
+
b.borderWidth,
|
|
301
|
+
b.borderColor,
|
|
302
|
+
b.textColor,
|
|
303
|
+
b.rounded,
|
|
304
|
+
_
|
|
305
|
+
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), v = {
|
|
306
|
+
...f && h(f) && {
|
|
307
|
+
backgroundColor: f.match(/\[(.*?)\]/)?.[1]
|
|
308
308
|
},
|
|
309
309
|
...E && h(E) && {
|
|
310
310
|
borderColor: E.match(/\[(.*?)\]/)?.[1]
|
|
311
311
|
},
|
|
312
|
-
...
|
|
313
|
-
color:
|
|
312
|
+
...i && h(i) && {
|
|
313
|
+
color: i.match(/\[(.*?)\]/)?.[1]
|
|
314
314
|
}
|
|
315
|
-
},
|
|
315
|
+
}, j = /* @__PURE__ */ d.jsxs(
|
|
316
316
|
"span",
|
|
317
317
|
{
|
|
318
|
-
className: `flex gap-2 justify-center items-center ${h(
|
|
319
|
-
style:
|
|
318
|
+
className: `flex gap-2 justify-center items-center ${h(i) ? "" : i}`,
|
|
319
|
+
style: i && h(i) ? { color: i.match(/\[(.*?)\]/)?.[1] } : {},
|
|
320
320
|
children: [
|
|
321
|
-
n &&
|
|
321
|
+
n && s === "left" && /* @__PURE__ */ d.jsx("span", { "data-testid": "icon-left", children: $.createElement(n, {
|
|
322
322
|
size: 24,
|
|
323
323
|
weight: "bold"
|
|
324
324
|
}) }),
|
|
325
|
-
|
|
326
|
-
n &&
|
|
325
|
+
a,
|
|
326
|
+
n && s === "right" && /* @__PURE__ */ d.jsx("span", { "data-testid": "icon-right", children: $.createElement(n, {
|
|
327
327
|
size: 24,
|
|
328
328
|
weight: "bold"
|
|
329
329
|
}) })
|
|
330
330
|
]
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
|
-
return
|
|
333
|
+
return p && !l ? /* @__PURE__ */ d.jsx(
|
|
334
334
|
"a",
|
|
335
335
|
{
|
|
336
|
-
className:
|
|
337
|
-
style:
|
|
338
|
-
href:
|
|
336
|
+
className: k,
|
|
337
|
+
style: v,
|
|
338
|
+
href: p,
|
|
339
339
|
target: "_blank",
|
|
340
340
|
rel: "noopener noreferrer",
|
|
341
|
-
onClick:
|
|
342
|
-
children:
|
|
341
|
+
onClick: c,
|
|
342
|
+
children: j
|
|
343
343
|
}
|
|
344
|
-
) : /* @__PURE__ */
|
|
344
|
+
) : /* @__PURE__ */ d.jsx(
|
|
345
345
|
"button",
|
|
346
346
|
{
|
|
347
|
-
className:
|
|
348
|
-
style:
|
|
349
|
-
disabled:
|
|
347
|
+
className: k,
|
|
348
|
+
style: v,
|
|
349
|
+
disabled: l,
|
|
350
350
|
type: "button",
|
|
351
|
-
onClick:
|
|
352
|
-
children:
|
|
351
|
+
onClick: c,
|
|
352
|
+
children: j
|
|
353
353
|
}
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const de = /* @__PURE__ */ new Map([
|
|
357
357
|
[
|
|
358
358
|
"bold",
|
|
359
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
359
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z" }))
|
|
360
360
|
],
|
|
361
361
|
[
|
|
362
362
|
"duotone",
|
|
363
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
363
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M160,48V208L80,128Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z" }))
|
|
364
364
|
],
|
|
365
365
|
[
|
|
366
366
|
"fill",
|
|
367
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
367
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z" }))
|
|
368
368
|
],
|
|
369
369
|
[
|
|
370
370
|
"light",
|
|
371
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
371
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z" }))
|
|
372
372
|
],
|
|
373
373
|
[
|
|
374
374
|
"regular",
|
|
375
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
375
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z" }))
|
|
376
376
|
],
|
|
377
377
|
[
|
|
378
378
|
"thin",
|
|
379
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
379
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z" }))
|
|
380
380
|
]
|
|
381
|
-
]),
|
|
381
|
+
]), pe = /* @__PURE__ */ new Map([
|
|
382
382
|
[
|
|
383
383
|
"bold",
|
|
384
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
384
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z" }))
|
|
385
385
|
],
|
|
386
386
|
[
|
|
387
387
|
"duotone",
|
|
388
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
389
|
-
"path",
|
|
390
|
-
{
|
|
391
|
-
d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",
|
|
392
|
-
opacity: "0.2"
|
|
393
|
-
}
|
|
394
|
-
), /* @__PURE__ */ t.createElement("path", { d: "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z" }))
|
|
388
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M176,128,96,208V48Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z" }))
|
|
395
389
|
],
|
|
396
390
|
[
|
|
397
391
|
"fill",
|
|
398
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
392
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z" }))
|
|
399
393
|
],
|
|
400
394
|
[
|
|
401
395
|
"light",
|
|
402
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
396
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z" }))
|
|
403
397
|
],
|
|
404
398
|
[
|
|
405
399
|
"regular",
|
|
406
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
400
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" }))
|
|
407
401
|
],
|
|
408
402
|
[
|
|
409
403
|
"thin",
|
|
410
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
404
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z" }))
|
|
411
405
|
]
|
|
412
|
-
]),
|
|
406
|
+
]), Ee = /* @__PURE__ */ new Map([
|
|
413
407
|
[
|
|
414
408
|
"bold",
|
|
415
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
409
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" }))
|
|
416
410
|
],
|
|
417
411
|
[
|
|
418
412
|
"duotone",
|
|
419
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
420
|
-
"path",
|
|
421
|
-
{
|
|
422
|
-
d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",
|
|
423
|
-
opacity: "0.2"
|
|
424
|
-
}
|
|
425
|
-
), /* @__PURE__ */ t.createElement("path", { d: "M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z" }))
|
|
413
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
|
|
426
414
|
],
|
|
427
415
|
[
|
|
428
416
|
"fill",
|
|
429
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
417
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
430
418
|
],
|
|
431
419
|
[
|
|
432
420
|
"light",
|
|
433
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
421
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z" }))
|
|
434
422
|
],
|
|
435
423
|
[
|
|
436
424
|
"regular",
|
|
437
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
425
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }))
|
|
438
426
|
],
|
|
439
427
|
[
|
|
440
428
|
"thin",
|
|
441
|
-
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "
|
|
429
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))
|
|
442
430
|
]
|
|
443
|
-
]),
|
|
431
|
+
]), he = /* @__PURE__ */ new Map([
|
|
444
432
|
[
|
|
445
433
|
"bold",
|
|
446
434
|
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M180,128a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,128Zm56,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" }))
|
|
@@ -465,199 +453,147 @@ const p1 = /* @__PURE__ */ new Map([
|
|
|
465
453
|
"thin",
|
|
466
454
|
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M172,128a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,128Zm56,0A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))
|
|
467
455
|
]
|
|
468
|
-
]),
|
|
456
|
+
]), be = ce({
|
|
469
457
|
color: "currentColor",
|
|
470
458
|
size: "1em",
|
|
471
459
|
weight: "regular",
|
|
472
460
|
mirrored: !1
|
|
473
|
-
}),
|
|
474
|
-
(
|
|
461
|
+
}), T = t.forwardRef(
|
|
462
|
+
(a, n) => {
|
|
475
463
|
const {
|
|
476
|
-
alt:
|
|
477
|
-
color:
|
|
478
|
-
size:
|
|
479
|
-
weight:
|
|
480
|
-
mirrored:
|
|
481
|
-
children:
|
|
482
|
-
weights:
|
|
464
|
+
alt: s,
|
|
465
|
+
color: p,
|
|
466
|
+
size: l,
|
|
467
|
+
weight: c,
|
|
468
|
+
mirrored: f,
|
|
469
|
+
children: i,
|
|
470
|
+
weights: g,
|
|
483
471
|
...E
|
|
484
|
-
} =
|
|
485
|
-
color:
|
|
486
|
-
size:
|
|
472
|
+
} = a, {
|
|
473
|
+
color: A = "currentColor",
|
|
474
|
+
size: _,
|
|
487
475
|
weight: h = "regular",
|
|
488
|
-
mirrored:
|
|
489
|
-
...
|
|
490
|
-
} = t.useContext(
|
|
476
|
+
mirrored: w = !1,
|
|
477
|
+
...b
|
|
478
|
+
} = t.useContext(be);
|
|
491
479
|
return /* @__PURE__ */ t.createElement(
|
|
492
480
|
"svg",
|
|
493
481
|
{
|
|
494
482
|
ref: n,
|
|
495
483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
496
|
-
width:
|
|
497
|
-
height:
|
|
498
|
-
fill:
|
|
484
|
+
width: l ?? _,
|
|
485
|
+
height: l ?? _,
|
|
486
|
+
fill: p ?? A,
|
|
499
487
|
viewBox: "0 0 256 256",
|
|
500
|
-
transform:
|
|
501
|
-
...
|
|
488
|
+
transform: f || w ? "scale(-1, 1)" : void 0,
|
|
489
|
+
...b,
|
|
502
490
|
...E
|
|
503
491
|
},
|
|
504
|
-
!!
|
|
505
|
-
|
|
506
|
-
|
|
492
|
+
!!s && /* @__PURE__ */ t.createElement("title", null, s),
|
|
493
|
+
i,
|
|
494
|
+
g.get(c ?? h)
|
|
507
495
|
);
|
|
508
496
|
}
|
|
509
497
|
);
|
|
510
|
-
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
498
|
+
T.displayName = "IconBase";
|
|
499
|
+
const H = t.forwardRef((a, n) => /* @__PURE__ */ t.createElement(T, { ref: n, ...a, weights: de }));
|
|
500
|
+
H.displayName = "CaretLeftIcon";
|
|
501
|
+
const J = t.forwardRef((a, n) => /* @__PURE__ */ t.createElement(T, { ref: n, ...a, weights: pe }));
|
|
502
|
+
J.displayName = "CaretRightIcon";
|
|
503
|
+
const B = t.forwardRef((a, n) => /* @__PURE__ */ t.createElement(T, { ref: n, ...a, weights: Ee }));
|
|
504
|
+
B.displayName = "CheckCircleIcon";
|
|
505
|
+
const X = t.forwardRef((a, n) => /* @__PURE__ */ t.createElement(T, { ref: n, ...a, weights: he }));
|
|
506
|
+
X.displayName = "MinusCircleIcon";
|
|
507
|
+
const C = {
|
|
508
|
+
number: /\d/,
|
|
509
|
+
lowercase: /[a-z]/,
|
|
510
|
+
uppercase: /[A-Z]/,
|
|
511
|
+
specialChar: /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~`]/
|
|
512
|
+
}, ge = {
|
|
513
|
+
length: "Contiene 8 caracteres",
|
|
514
|
+
number: "Contiene un número",
|
|
515
|
+
lowercase: "Contiene una letra minúscula",
|
|
516
|
+
uppercase: "Contiene una letra mayúscula",
|
|
517
|
+
specialChar: "Contiene un carácter especial"
|
|
518
|
+
};
|
|
519
|
+
function _e({
|
|
520
|
+
password: a,
|
|
521
521
|
color: n = "text-gray-600"
|
|
522
522
|
}) {
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
"p",
|
|
535
|
-
{
|
|
536
|
-
className: `text-sm ${l.length ? "text-green-500" : n}`,
|
|
537
|
-
children: "Contiene 8 caracteres"
|
|
538
|
-
}
|
|
539
|
-
)
|
|
540
|
-
] }),
|
|
541
|
-
/* @__PURE__ */ r.jsxs("div", { className: "mt-1 flex items-center gap-2", children: [
|
|
542
|
-
l.number ? /* @__PURE__ */ r.jsx(N, { className: "text-green-500", size: 20 }) : /* @__PURE__ */ r.jsx(M, { className: n, size: 20 }),
|
|
543
|
-
/* @__PURE__ */ r.jsx(
|
|
544
|
-
"p",
|
|
545
|
-
{
|
|
546
|
-
className: `text-sm ${l.number ? "text-green-500" : n}`,
|
|
547
|
-
children: "Contiene un número"
|
|
548
|
-
}
|
|
549
|
-
)
|
|
550
|
-
] }),
|
|
551
|
-
/* @__PURE__ */ r.jsxs("div", { className: "mt-1 flex items-center gap-2", children: [
|
|
552
|
-
l.lowercase ? /* @__PURE__ */ r.jsx(N, { className: "text-green-500", size: 20 }) : /* @__PURE__ */ r.jsx(M, { className: n, size: 20 }),
|
|
553
|
-
/* @__PURE__ */ r.jsx(
|
|
554
|
-
"p",
|
|
555
|
-
{
|
|
556
|
-
className: `text-sm ${l.lowercase ? "text-green-500" : n}`,
|
|
557
|
-
children: "Contiene una letra minúscula"
|
|
558
|
-
}
|
|
559
|
-
)
|
|
560
|
-
] }),
|
|
561
|
-
/* @__PURE__ */ r.jsxs("div", { className: "mt-1 flex items-center gap-2", children: [
|
|
562
|
-
l.uppercase ? /* @__PURE__ */ r.jsx(N, { className: "text-green-500", size: 20 }) : /* @__PURE__ */ r.jsx(M, { className: n, size: 20 }),
|
|
563
|
-
/* @__PURE__ */ r.jsx(
|
|
564
|
-
"p",
|
|
565
|
-
{
|
|
566
|
-
className: `text-sm ${l.uppercase ? "text-green-500" : n}`,
|
|
567
|
-
children: "Contiene una letra mayúscula"
|
|
568
|
-
}
|
|
569
|
-
)
|
|
570
|
-
] }),
|
|
571
|
-
/* @__PURE__ */ r.jsxs("div", { className: "mt-1 flex items-center gap-2", children: [
|
|
572
|
-
l.specialChar ? /* @__PURE__ */ r.jsx(N, { className: "text-green-500", size: 20 }) : /* @__PURE__ */ r.jsx(M, { className: n, size: 20 }),
|
|
573
|
-
/* @__PURE__ */ r.jsx(
|
|
574
|
-
"p",
|
|
575
|
-
{
|
|
576
|
-
className: `text-sm ${l.specialChar ? "text-green-500" : n}`,
|
|
577
|
-
children: "Contiene un carácter especial"
|
|
578
|
-
}
|
|
579
|
-
)
|
|
580
|
-
] })
|
|
581
|
-
] });
|
|
582
|
-
}
|
|
583
|
-
const Z1 = i1(function({
|
|
584
|
-
type: n = "text",
|
|
585
|
-
name: i,
|
|
586
|
-
value: l,
|
|
587
|
-
label: c = "",
|
|
588
|
-
placeholder: f = "",
|
|
589
|
-
onChange: p,
|
|
590
|
-
error: u,
|
|
591
|
-
inputExtraClassName: Z = "",
|
|
592
|
-
labelExtraClassName: E = "",
|
|
593
|
-
fullWidth: C = !1,
|
|
594
|
-
disabled: x = !1,
|
|
595
|
-
showRequirements: h = !1,
|
|
596
|
-
rounded: b = "rounded-none",
|
|
597
|
-
onBlur: A
|
|
598
|
-
}, _) {
|
|
599
|
-
const [g, v] = H(!1), [j, O] = H(!1), [P, $] = H(l ?? ""), w = n === "password", L = w && g ? "text" : n;
|
|
600
|
-
u1(() => {
|
|
601
|
-
$(l ?? "");
|
|
602
|
-
}, [l]);
|
|
603
|
-
const Y = () => {
|
|
604
|
-
w && h && O(!0);
|
|
605
|
-
}, T = (R) => {
|
|
606
|
-
O(!1), A?.(R);
|
|
607
|
-
}, D = (R) => {
|
|
608
|
-
$(R.target.value), p?.(R);
|
|
609
|
-
};
|
|
610
|
-
return /* @__PURE__ */ r.jsxs(
|
|
523
|
+
const s = String(a), p = ie(
|
|
524
|
+
() => ({
|
|
525
|
+
length: s.length >= 8,
|
|
526
|
+
number: C.number.test(s),
|
|
527
|
+
lowercase: C.lowercase.test(s),
|
|
528
|
+
uppercase: C.uppercase.test(s),
|
|
529
|
+
specialChar: C.specialChar.test(s)
|
|
530
|
+
}),
|
|
531
|
+
[s]
|
|
532
|
+
), l = Object.entries(p);
|
|
533
|
+
return /* @__PURE__ */ d.jsx(
|
|
611
534
|
"div",
|
|
612
535
|
{
|
|
613
|
-
className:
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
ref: _,
|
|
621
|
-
className: `${Z} ${b} block min-h-13 w-full border border-[#4C4C4C] px-4 text-base font-normal text-[#4C4C4C] focus:outline-none focus:ring-0 disabled:opacity-60 disabled:cursor-not-allowed! ${u ? "border-red-500" : ""} ${w ? "pr-10" : ""}`,
|
|
622
|
-
disabled: x,
|
|
623
|
-
id: i,
|
|
624
|
-
name: i,
|
|
625
|
-
placeholder: f,
|
|
626
|
-
type: L,
|
|
627
|
-
value: P,
|
|
628
|
-
onBlur: T,
|
|
629
|
-
onChange: D,
|
|
630
|
-
onFocus: Y
|
|
631
|
-
}
|
|
632
|
-
),
|
|
633
|
-
/* @__PURE__ */ r.jsx(
|
|
634
|
-
"label",
|
|
635
|
-
{
|
|
636
|
-
className: `${E} absolute left-2 -top-2.5 bg-white px-2 text-sm font-normal text-[#4C4C4C]`,
|
|
637
|
-
htmlFor: i,
|
|
638
|
-
children: c
|
|
639
|
-
}
|
|
640
|
-
),
|
|
641
|
-
w ? /* @__PURE__ */ r.jsx(
|
|
642
|
-
"button",
|
|
643
|
-
{
|
|
644
|
-
"aria-label": g ? "Ocultar contraseña" : "Mostrar contraseña",
|
|
645
|
-
className: "absolute cursor-pointer right-3 top-1/2 -translate-y-1/2 transform text-[#4C4C4C] focus:outline-none",
|
|
646
|
-
disabled: x,
|
|
647
|
-
type: "button",
|
|
648
|
-
onClick: () => v(!g),
|
|
649
|
-
children: g ? /* @__PURE__ */ r.jsx(l1, { size: 24 }) : /* @__PURE__ */ r.jsx(n1, { size: 24 })
|
|
650
|
-
}
|
|
651
|
-
) : null
|
|
652
|
-
] }),
|
|
653
|
-
u ? /* @__PURE__ */ r.jsx("p", { className: "ml-1 mt-1 h-3 text-xs text-red-500", children: u }) : null
|
|
654
|
-
]
|
|
536
|
+
className: "absolute bottom-full z-10 mb-2 w-full border border-gray-600 bg-white p-2",
|
|
537
|
+
role: "password-tooltip",
|
|
538
|
+
"aria-label": "Requisitos de contraseña",
|
|
539
|
+
children: l.map(([c, f]) => /* @__PURE__ */ d.jsxs("div", { className: "mt-1 flex items-center gap-2", children: [
|
|
540
|
+
f ? /* @__PURE__ */ d.jsx(B, { className: "text-green-500", size: 20 }) : /* @__PURE__ */ d.jsx(X, { className: n, size: 20 }),
|
|
541
|
+
/* @__PURE__ */ d.jsx("p", { className: `text-sm ${f ? "text-green-500" : n}`, children: ge[c] })
|
|
542
|
+
] }, c))
|
|
655
543
|
}
|
|
656
544
|
);
|
|
657
|
-
}
|
|
545
|
+
}
|
|
546
|
+
function ve({
|
|
547
|
+
currentPage: a,
|
|
548
|
+
totalPages: n,
|
|
549
|
+
onPageChange: s,
|
|
550
|
+
className: p = "",
|
|
551
|
+
disabled: l = !1
|
|
552
|
+
}) {
|
|
553
|
+
const c = a === 0, f = a === n - 1, i = !c && !l, g = !f && !l, E = () => {
|
|
554
|
+
i && s(a - 1);
|
|
555
|
+
}, A = () => {
|
|
556
|
+
g && s(a + 1);
|
|
557
|
+
};
|
|
558
|
+
return /* @__PURE__ */ d.jsxs("div", { className: `flex items-center justify-center ${p}`, children: [
|
|
559
|
+
/* @__PURE__ */ d.jsx(
|
|
560
|
+
"button",
|
|
561
|
+
{
|
|
562
|
+
type: "button",
|
|
563
|
+
onClick: E,
|
|
564
|
+
disabled: !i,
|
|
565
|
+
"aria-label": "Previous",
|
|
566
|
+
className: `
|
|
567
|
+
transition-colors rounded-full
|
|
568
|
+
${i ? "text-black cursor-pointer" : "text-gray-300 cursor-not-allowed"}
|
|
569
|
+
`,
|
|
570
|
+
children: /* @__PURE__ */ d.jsx(H, { size: 16, weight: "bold" })
|
|
571
|
+
}
|
|
572
|
+
),
|
|
573
|
+
n > 1 && /* @__PURE__ */ d.jsxs("span", { className: "text-sm font-bold text-black min-w-12 text-center", children: [
|
|
574
|
+
a + 1,
|
|
575
|
+
" / ",
|
|
576
|
+
n
|
|
577
|
+
] }),
|
|
578
|
+
/* @__PURE__ */ d.jsx(
|
|
579
|
+
"button",
|
|
580
|
+
{
|
|
581
|
+
type: "button",
|
|
582
|
+
onClick: A,
|
|
583
|
+
disabled: !g,
|
|
584
|
+
"aria-label": "Next",
|
|
585
|
+
className: `
|
|
586
|
+
transition-colors rounded-full
|
|
587
|
+
${g ? "text-black cursor-pointer" : "text-gray-300 cursor-not-allowed"}
|
|
588
|
+
`,
|
|
589
|
+
children: /* @__PURE__ */ d.jsx(J, { size: 16, weight: "bold" })
|
|
590
|
+
}
|
|
591
|
+
)
|
|
592
|
+
] });
|
|
593
|
+
}
|
|
658
594
|
export {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
595
|
+
we as Button,
|
|
596
|
+
ve as Navigation,
|
|
597
|
+
_e as PasswordTooltip
|
|
662
598
|
};
|
|
663
599
|
//# sourceMappingURL=index.es.js.map
|