@sportflow/ui 0.0.2 → 0.0.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/dist/index.es.js +150 -149
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +13 -3
package/dist/index.es.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
import J, { createContext as o1, forwardRef as i1, useState as H, useEffect as u1 } from "react";
|
|
3
|
+
var I = { exports: {} }, k = {};
|
|
4
|
+
var t1;
|
|
5
5
|
function m1() {
|
|
6
|
-
if (
|
|
7
|
-
|
|
6
|
+
if (t1) return k;
|
|
7
|
+
t1 = 1;
|
|
8
8
|
var s = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
9
|
-
function i(l, c,
|
|
9
|
+
function i(l, c, f) {
|
|
10
10
|
var p = null;
|
|
11
|
-
if (
|
|
12
|
-
|
|
11
|
+
if (f !== void 0 && (p = "" + f), c.key !== void 0 && (p = "" + c.key), "key" in c) {
|
|
12
|
+
f = {};
|
|
13
13
|
for (var u in c)
|
|
14
|
-
u !== "key" && (
|
|
15
|
-
} else
|
|
16
|
-
return c =
|
|
14
|
+
u !== "key" && (f[u] = c[u]);
|
|
15
|
+
} else f = c;
|
|
16
|
+
return c = f.ref, {
|
|
17
17
|
$$typeof: s,
|
|
18
18
|
type: l,
|
|
19
19
|
key: p,
|
|
20
20
|
ref: c !== void 0 ? c : null,
|
|
21
|
-
props:
|
|
21
|
+
props: f
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
return k.Fragment = n, k.jsx = i, k.jsxs = i, k;
|
|
25
25
|
}
|
|
26
26
|
var S = {};
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
var a1;
|
|
28
|
+
function d1() {
|
|
29
|
+
return a1 || (a1 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
30
|
function s(e) {
|
|
31
31
|
if (e == null) return null;
|
|
32
32
|
if (typeof e == "function")
|
|
33
|
-
return e.$$typeof ===
|
|
33
|
+
return e.$$typeof === R ? null : e.displayName || e.name || null;
|
|
34
34
|
if (typeof e == "string") return e;
|
|
35
35
|
switch (e) {
|
|
36
|
-
case
|
|
36
|
+
case g:
|
|
37
37
|
return "Fragment";
|
|
38
|
-
case
|
|
38
|
+
case j:
|
|
39
39
|
return "Profiler";
|
|
40
|
-
case
|
|
40
|
+
case v:
|
|
41
41
|
return "StrictMode";
|
|
42
|
-
case
|
|
42
|
+
case w:
|
|
43
43
|
return "Suspense";
|
|
44
44
|
case L:
|
|
45
45
|
return "SuspenseList";
|
|
46
|
-
case
|
|
46
|
+
case D:
|
|
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 _:
|
|
54
54
|
return "Portal";
|
|
55
55
|
case P:
|
|
56
56
|
return e.displayName || "Context";
|
|
57
57
|
case O:
|
|
58
58
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
59
|
-
case
|
|
59
|
+
case $:
|
|
60
60
|
var a = e.render;
|
|
61
61
|
return e = e.displayName, e || (e = a.displayName || a.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
62
62
|
case Y:
|
|
@@ -91,7 +91,7 @@ function f1() {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
function l(e) {
|
|
94
|
-
if (e ===
|
|
94
|
+
if (e === g) return "<>";
|
|
95
95
|
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
96
96
|
return "<...>";
|
|
97
97
|
try {
|
|
@@ -102,14 +102,14 @@ function f1() {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
function c() {
|
|
105
|
-
var e =
|
|
105
|
+
var e = W.A;
|
|
106
106
|
return e === null ? null : e.getOwner();
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function f() {
|
|
109
109
|
return Error("react-stack-top-frame");
|
|
110
110
|
}
|
|
111
111
|
function p(e) {
|
|
112
|
-
if (
|
|
112
|
+
if (q.call(e, "key")) {
|
|
113
113
|
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
114
114
|
if (a && a.isReactWarning) return !1;
|
|
115
115
|
}
|
|
@@ -117,7 +117,7 @@ function f1() {
|
|
|
117
117
|
}
|
|
118
118
|
function u(e, a) {
|
|
119
119
|
function o() {
|
|
120
|
-
|
|
120
|
+
G || (G = !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
|
a
|
|
123
123
|
));
|
|
@@ -127,23 +127,23 @@ function f1() {
|
|
|
127
127
|
configurable: !0
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Z() {
|
|
131
131
|
var e = s(this.type);
|
|
132
|
-
return
|
|
132
|
+
return X[e] || (X[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, a, o, m,
|
|
137
|
-
var
|
|
136
|
+
function E(e, a, o, m, z, V) {
|
|
137
|
+
var d = o.ref;
|
|
138
138
|
return e = {
|
|
139
139
|
$$typeof: A,
|
|
140
140
|
type: e,
|
|
141
141
|
key: a,
|
|
142
142
|
props: o,
|
|
143
143
|
_owner: m
|
|
144
|
-
}, (
|
|
144
|
+
}, (d !== void 0 ? d : null) !== null ? Object.defineProperty(e, "ref", {
|
|
145
145
|
enumerable: !1,
|
|
146
|
-
get:
|
|
146
|
+
get: Z
|
|
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,33 +158,33 @@ function f1() {
|
|
|
158
158
|
configurable: !1,
|
|
159
159
|
enumerable: !1,
|
|
160
160
|
writable: !0,
|
|
161
|
-
value:
|
|
161
|
+
value: z
|
|
162
162
|
}), Object.defineProperty(e, "_debugTask", {
|
|
163
163
|
configurable: !1,
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
writable: !0,
|
|
166
|
-
value:
|
|
166
|
+
value: V
|
|
167
167
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
var
|
|
171
|
-
if (
|
|
169
|
+
function C(e, a, o, m, z, V) {
|
|
170
|
+
var d = a.children;
|
|
171
|
+
if (d !== void 0)
|
|
172
172
|
if (m)
|
|
173
|
-
if (s1(
|
|
174
|
-
for (m = 0; m <
|
|
175
|
-
|
|
176
|
-
Object.freeze && Object.freeze(
|
|
173
|
+
if (s1(d)) {
|
|
174
|
+
for (m = 0; m < d.length; m++)
|
|
175
|
+
x(d[m]);
|
|
176
|
+
Object.freeze && Object.freeze(d);
|
|
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
|
|
181
|
+
else x(d);
|
|
182
|
+
if (q.call(a, "key")) {
|
|
183
|
+
d = s(e);
|
|
184
|
+
var y = Object.keys(a).filter(function(c1) {
|
|
185
185
|
return c1 !== "key";
|
|
186
186
|
});
|
|
187
|
-
m = 0 <
|
|
187
|
+
m = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", e1[d + m] || (y = 0 < y.length ? "{" + y.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} />
|
|
@@ -192,89 +192,89 @@ React keys must be passed directly to JSX without using spread:
|
|
|
192
192
|
let props = %s;
|
|
193
193
|
<%s key={someKey} {...props} />`,
|
|
194
194
|
m,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
),
|
|
195
|
+
d,
|
|
196
|
+
y,
|
|
197
|
+
d
|
|
198
|
+
), e1[d + m] = !0);
|
|
199
199
|
}
|
|
200
|
-
if (
|
|
200
|
+
if (d = null, o !== void 0 && (i(o), d = "" + o), p(a) && (i(a.key), d = "" + a.key), "key" in a) {
|
|
201
201
|
o = {};
|
|
202
|
-
for (var
|
|
203
|
-
|
|
202
|
+
for (var B in a)
|
|
203
|
+
B !== "key" && (o[B] = a[B]);
|
|
204
204
|
} else o = a;
|
|
205
|
-
return
|
|
205
|
+
return d && u(
|
|
206
206
|
o,
|
|
207
207
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
208
208
|
), E(
|
|
209
209
|
e,
|
|
210
|
-
|
|
210
|
+
d,
|
|
211
211
|
o,
|
|
212
212
|
c(),
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
z,
|
|
214
|
+
V
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function x(e) {
|
|
218
218
|
h(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (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
221
|
return typeof e == "object" && e !== null && e.$$typeof === A;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var b = J, A = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), P = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), W = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, s1 = Array.isArray, U = console.createTask ? console.createTask : function() {
|
|
224
224
|
return null;
|
|
225
225
|
};
|
|
226
|
-
|
|
226
|
+
b = {
|
|
227
227
|
react_stack_bottom_frame: function(e) {
|
|
228
228
|
return e();
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
)(),
|
|
235
|
-
S.Fragment =
|
|
236
|
-
var m = 1e4 >
|
|
237
|
-
return
|
|
231
|
+
var G, X = {}, Q = b.react_stack_bottom_frame.bind(
|
|
232
|
+
b,
|
|
233
|
+
f
|
|
234
|
+
)(), K = U(l(f)), e1 = {};
|
|
235
|
+
S.Fragment = g, S.jsx = function(e, a, o) {
|
|
236
|
+
var m = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return C(
|
|
238
238
|
e,
|
|
239
239
|
a,
|
|
240
240
|
o,
|
|
241
241
|
!1,
|
|
242
|
-
m ? Error("react-stack-top-frame") :
|
|
243
|
-
m ?
|
|
242
|
+
m ? Error("react-stack-top-frame") : Q,
|
|
243
|
+
m ? U(l(e)) : K
|
|
244
244
|
);
|
|
245
245
|
}, S.jsxs = function(e, a, o) {
|
|
246
|
-
var m = 1e4 >
|
|
247
|
-
return
|
|
246
|
+
var m = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return C(
|
|
248
248
|
e,
|
|
249
249
|
a,
|
|
250
250
|
o,
|
|
251
251
|
!0,
|
|
252
|
-
m ? Error("react-stack-top-frame") :
|
|
253
|
-
m ?
|
|
252
|
+
m ? Error("react-stack-top-frame") : Q,
|
|
253
|
+
m ? U(l(e)) : K
|
|
254
254
|
);
|
|
255
255
|
};
|
|
256
256
|
})()), S;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
260
|
-
return
|
|
258
|
+
var r1;
|
|
259
|
+
function f1() {
|
|
260
|
+
return r1 || (r1 = 1, process.env.NODE_ENV === "production" ? I.exports = m1() : I.exports = d1()), I.exports;
|
|
261
261
|
}
|
|
262
|
-
var r =
|
|
263
|
-
function
|
|
262
|
+
var r = f1();
|
|
263
|
+
function C1({
|
|
264
264
|
text: s,
|
|
265
265
|
icon: n,
|
|
266
266
|
iconPosition: i = "left",
|
|
267
267
|
href: l,
|
|
268
268
|
disabled: c = !1,
|
|
269
|
-
handleOnClick:
|
|
269
|
+
handleOnClick: f,
|
|
270
270
|
btnColor: p,
|
|
271
271
|
textColor: u = "text-black",
|
|
272
|
-
fullWidth:
|
|
272
|
+
fullWidth: Z = !1,
|
|
273
273
|
border: E,
|
|
274
|
-
rounded:
|
|
275
|
-
extraClassName:
|
|
274
|
+
rounded: C = "rounded-none",
|
|
275
|
+
extraClassName: x
|
|
276
276
|
}) {
|
|
277
|
-
const h = (
|
|
277
|
+
const h = (j) => j?.includes("[") && j?.includes("]") || !1, b = [
|
|
278
278
|
"flex",
|
|
279
279
|
"h-12",
|
|
280
280
|
"px-4",
|
|
@@ -286,23 +286,23 @@ function w1({
|
|
|
286
286
|
"items-center",
|
|
287
287
|
"justify-center",
|
|
288
288
|
"transition-colors",
|
|
289
|
-
|
|
289
|
+
Z ? "w-full" : "w-fit",
|
|
290
290
|
c ? "!bg-gray-300 !opacity-40 !cursor-not-allowed shadow-inner" : "cursor-pointer"
|
|
291
291
|
], A = {
|
|
292
292
|
backgroundColor: p || "bg-white",
|
|
293
293
|
borderColor: E,
|
|
294
294
|
textColor: u,
|
|
295
295
|
borderWidth: E ? "border-2" : "",
|
|
296
|
-
rounded:
|
|
297
|
-
},
|
|
298
|
-
...
|
|
296
|
+
rounded: C
|
|
297
|
+
}, _ = [
|
|
298
|
+
...b,
|
|
299
299
|
A.backgroundColor,
|
|
300
300
|
A.borderWidth,
|
|
301
301
|
A.borderColor,
|
|
302
302
|
A.textColor,
|
|
303
303
|
A.rounded,
|
|
304
|
-
|
|
305
|
-
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(),
|
|
304
|
+
x
|
|
305
|
+
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), g = {
|
|
306
306
|
...p && h(p) && {
|
|
307
307
|
backgroundColor: p.match(/\[(.*?)\]/)?.[1]
|
|
308
308
|
},
|
|
@@ -312,18 +312,18 @@ function w1({
|
|
|
312
312
|
...u && h(u) && {
|
|
313
313
|
color: u.match(/\[(.*?)\]/)?.[1]
|
|
314
314
|
}
|
|
315
|
-
},
|
|
315
|
+
}, v = /* @__PURE__ */ r.jsxs(
|
|
316
316
|
"span",
|
|
317
317
|
{
|
|
318
318
|
className: `flex gap-2 justify-center items-center ${h(u) ? "" : u}`,
|
|
319
319
|
style: u && h(u) ? { color: u.match(/\[(.*?)\]/)?.[1] } : {},
|
|
320
320
|
children: [
|
|
321
|
-
n && i === "left" && /* @__PURE__ */ r.jsx("span", { "data-testid": "icon-left", children:
|
|
321
|
+
n && i === "left" && /* @__PURE__ */ r.jsx("span", { "data-testid": "icon-left", children: J.createElement(n, {
|
|
322
322
|
size: 24,
|
|
323
323
|
weight: "bold"
|
|
324
324
|
}) }),
|
|
325
325
|
s,
|
|
326
|
-
n && i === "right" && /* @__PURE__ */ r.jsx("span", { "data-testid": "icon-right", children:
|
|
326
|
+
n && i === "right" && /* @__PURE__ */ r.jsx("span", { "data-testid": "icon-right", children: J.createElement(n, {
|
|
327
327
|
size: 24,
|
|
328
328
|
weight: "bold"
|
|
329
329
|
}) })
|
|
@@ -333,23 +333,23 @@ function w1({
|
|
|
333
333
|
return l && !c ? /* @__PURE__ */ r.jsx(
|
|
334
334
|
"a",
|
|
335
335
|
{
|
|
336
|
-
className:
|
|
337
|
-
style:
|
|
336
|
+
className: _,
|
|
337
|
+
style: g,
|
|
338
338
|
href: l,
|
|
339
339
|
target: "_blank",
|
|
340
340
|
rel: "noopener noreferrer",
|
|
341
|
-
onClick:
|
|
342
|
-
children:
|
|
341
|
+
onClick: f,
|
|
342
|
+
children: v
|
|
343
343
|
}
|
|
344
344
|
) : /* @__PURE__ */ r.jsx(
|
|
345
345
|
"button",
|
|
346
346
|
{
|
|
347
|
-
className:
|
|
348
|
-
style:
|
|
347
|
+
className: _,
|
|
348
|
+
style: g,
|
|
349
349
|
disabled: c,
|
|
350
350
|
type: "button",
|
|
351
|
-
onClick:
|
|
352
|
-
children:
|
|
351
|
+
onClick: f,
|
|
352
|
+
children: v
|
|
353
353
|
}
|
|
354
354
|
);
|
|
355
355
|
}
|
|
@@ -476,16 +476,16 @@ const p1 = /* @__PURE__ */ new Map([
|
|
|
476
476
|
alt: i,
|
|
477
477
|
color: l,
|
|
478
478
|
size: c,
|
|
479
|
-
weight:
|
|
479
|
+
weight: f,
|
|
480
480
|
mirrored: p,
|
|
481
481
|
children: u,
|
|
482
|
-
weights:
|
|
482
|
+
weights: Z,
|
|
483
483
|
...E
|
|
484
484
|
} = s, {
|
|
485
|
-
color:
|
|
486
|
-
size:
|
|
485
|
+
color: C = "currentColor",
|
|
486
|
+
size: x,
|
|
487
487
|
weight: h = "regular",
|
|
488
|
-
mirrored:
|
|
488
|
+
mirrored: b = !1,
|
|
489
489
|
...A
|
|
490
490
|
} = t.useContext(g1);
|
|
491
491
|
return /* @__PURE__ */ t.createElement(
|
|
@@ -493,27 +493,27 @@ const p1 = /* @__PURE__ */ new Map([
|
|
|
493
493
|
{
|
|
494
494
|
ref: n,
|
|
495
495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
496
|
-
width: c ??
|
|
497
|
-
height: c ??
|
|
498
|
-
fill: l ??
|
|
496
|
+
width: c ?? x,
|
|
497
|
+
height: c ?? x,
|
|
498
|
+
fill: l ?? C,
|
|
499
499
|
viewBox: "0 0 256 256",
|
|
500
|
-
transform: p ||
|
|
500
|
+
transform: p || b ? "scale(-1, 1)" : void 0,
|
|
501
501
|
...A,
|
|
502
502
|
...E
|
|
503
503
|
},
|
|
504
504
|
!!i && /* @__PURE__ */ t.createElement("title", null, i),
|
|
505
505
|
u,
|
|
506
|
-
|
|
506
|
+
Z.get(f ?? h)
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
509
|
);
|
|
510
510
|
F.displayName = "IconBase";
|
|
511
511
|
const N = t.forwardRef((s, n) => /* @__PURE__ */ t.createElement(F, { ref: n, ...s, weights: p1 }));
|
|
512
512
|
N.displayName = "CheckCircleIcon";
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
513
|
+
const n1 = t.forwardRef((s, n) => /* @__PURE__ */ t.createElement(F, { ref: n, ...s, weights: h1 }));
|
|
514
|
+
n1.displayName = "EyeIcon";
|
|
515
|
+
const l1 = t.forwardRef((s, n) => /* @__PURE__ */ t.createElement(F, { ref: n, ...s, weights: A1 }));
|
|
516
|
+
l1.displayName = "EyeSlashIcon";
|
|
517
517
|
const M = t.forwardRef((s, n) => /* @__PURE__ */ t.createElement(F, { ref: n, ...s, weights: E1 }));
|
|
518
518
|
M.displayName = "MinusCircleIcon";
|
|
519
519
|
function x1({
|
|
@@ -585,67 +585,68 @@ const Z1 = i1(function({
|
|
|
585
585
|
name: i,
|
|
586
586
|
value: l,
|
|
587
587
|
label: c = "",
|
|
588
|
-
placeholder:
|
|
588
|
+
placeholder: f = "",
|
|
589
589
|
onChange: p,
|
|
590
590
|
error: u,
|
|
591
|
-
inputExtraClassName:
|
|
591
|
+
inputExtraClassName: Z = "",
|
|
592
592
|
labelExtraClassName: E = "",
|
|
593
|
-
fullWidth:
|
|
594
|
-
disabled:
|
|
593
|
+
fullWidth: C = !1,
|
|
594
|
+
disabled: x = !1,
|
|
595
595
|
showRequirements: h = !1,
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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;
|
|
599
600
|
u1(() => {
|
|
600
|
-
|
|
601
|
+
$(l ?? "");
|
|
601
602
|
}, [l]);
|
|
602
|
-
const
|
|
603
|
-
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
},
|
|
607
|
-
|
|
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);
|
|
608
609
|
};
|
|
609
610
|
return /* @__PURE__ */ r.jsxs(
|
|
610
611
|
"div",
|
|
611
612
|
{
|
|
612
|
-
className: `relative min-h-13 min-w-80 ${
|
|
613
|
+
className: `relative min-h-13 min-w-80 ${C ? "w-full" : "w-fit"}`,
|
|
613
614
|
children: [
|
|
614
|
-
|
|
615
|
+
w && h && j ? /* @__PURE__ */ r.jsx(x1, { password: P }) : null,
|
|
615
616
|
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
616
617
|
/* @__PURE__ */ r.jsx(
|
|
617
618
|
"input",
|
|
618
619
|
{
|
|
619
|
-
ref:
|
|
620
|
-
className: `${
|
|
621
|
-
disabled:
|
|
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,
|
|
622
623
|
id: i,
|
|
623
624
|
name: i,
|
|
624
|
-
placeholder:
|
|
625
|
-
type:
|
|
626
|
-
value:
|
|
627
|
-
onBlur:
|
|
628
|
-
onChange:
|
|
629
|
-
onFocus:
|
|
625
|
+
placeholder: f,
|
|
626
|
+
type: L,
|
|
627
|
+
value: P,
|
|
628
|
+
onBlur: T,
|
|
629
|
+
onChange: D,
|
|
630
|
+
onFocus: Y
|
|
630
631
|
}
|
|
631
632
|
),
|
|
632
633
|
/* @__PURE__ */ r.jsx(
|
|
633
634
|
"label",
|
|
634
635
|
{
|
|
635
|
-
className: `${E} absolute left-2 top-2
|
|
636
|
+
className: `${E} absolute left-2 -top-2.5 bg-white px-2 text-sm font-normal text-[#4C4C4C]`,
|
|
636
637
|
htmlFor: i,
|
|
637
638
|
children: c
|
|
638
639
|
}
|
|
639
640
|
),
|
|
640
|
-
|
|
641
|
+
w ? /* @__PURE__ */ r.jsx(
|
|
641
642
|
"button",
|
|
642
643
|
{
|
|
643
|
-
"aria-label":
|
|
644
|
-
className: "absolute cursor-pointer right-3 top-1/2 -translate-y-1/2 transform text-
|
|
645
|
-
disabled:
|
|
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,
|
|
646
647
|
type: "button",
|
|
647
|
-
onClick: () =>
|
|
648
|
-
children:
|
|
648
|
+
onClick: () => v(!g),
|
|
649
|
+
children: g ? /* @__PURE__ */ r.jsx(l1, { size: 24 }) : /* @__PURE__ */ r.jsx(n1, { size: 24 })
|
|
649
650
|
}
|
|
650
651
|
) : null
|
|
651
652
|
] }),
|
|
@@ -655,7 +656,7 @@ const Z1 = i1(function({
|
|
|
655
656
|
);
|
|
656
657
|
});
|
|
657
658
|
export {
|
|
658
|
-
|
|
659
|
+
C1 as Button,
|
|
659
660
|
Z1 as Input,
|
|
660
661
|
x1 as PasswordTooltip
|
|
661
662
|
};
|