ui-components-evelynt 1.0.1
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/README.md +16 -0
- package/dist/ui-components.css +1 -0
- package/dist/ui-components.es.js +991 -0
- package/dist/ui-components.umd.js +7 -0
- package/package.json +41 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# React + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;color:#000;background-color:#fff;cursor:pointer;transition:all .25s ease;display:inline-flex;align-items:center;justify-content:center;gap:.5em;position:relative;outline:none}.btn-small{width:80px;height:40px;font-size:.875em;padding:.5em 1em}.btn-medium{width:120px;height:40px;font-size:1em;padding:.6em 1.2em}.btn-large{width:180px;height:40px;font-size:1.125em;padding:.75em 1.5em}.enabled{background-color:#72c966;color:#f9f9f9;border-color:#72c966}.enabled:hover:not(:disabled){background-color:#5fb352;border-color:#5fb352;transform:translateY(-1px);box-shadow:0 4px 8px #72c9664d}.enabled:active:not(:disabled){background-color:#4a9e3d;transform:translateY(0);box-shadow:0 2px 4px #72c96633}.enabled:focus-visible{outline:2px solid #72c966;outline-offset:2px}.disabled{background-color:#6e6a6a;color:#888;border-color:#6e6a6a;cursor:not-allowed;opacity:.6}.disabled:hover{background-color:#6e6a6a;transform:none;box-shadow:none}.btn-loading{cursor:wait!important;position:relative;opacity:1!important;background-color:#72c966!important;color:#f9f9f9!important;border-color:#72c966!important}.btn-loading:hover{background-color:#72c966!important;transform:none!important;box-shadow:none!important}.btn-loading .btn-loading-text{opacity:.8;color:#f9f9f9}.btn-spinner{display:inline-block;width:1em;height:1em;min-width:1em;min-height:1em;border:2px solid #f9f9f9;border-right-color:transparent;border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}button[aria-busy=true]{cursor:wait}button:focus-visible{outline:2px solid #72c966;outline-offset:2px}
|
|
@@ -0,0 +1,991 @@
|
|
|
1
|
+
import Me from "react";
|
|
2
|
+
function De(n) {
|
|
3
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4
|
+
}
|
|
5
|
+
var oe = { exports: {} }, ee = {};
|
|
6
|
+
var Ee;
|
|
7
|
+
function Le() {
|
|
8
|
+
if (Ee) return ee;
|
|
9
|
+
Ee = 1;
|
|
10
|
+
var n = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
11
|
+
function S(l, f, u) {
|
|
12
|
+
var T = null;
|
|
13
|
+
if (u !== void 0 && (T = "" + u), f.key !== void 0 && (T = "" + f.key), "key" in f) {
|
|
14
|
+
u = {};
|
|
15
|
+
for (var d in f)
|
|
16
|
+
d !== "key" && (u[d] = f[d]);
|
|
17
|
+
} else u = f;
|
|
18
|
+
return f = u.ref, {
|
|
19
|
+
$$typeof: n,
|
|
20
|
+
type: l,
|
|
21
|
+
key: T,
|
|
22
|
+
ref: f !== void 0 ? f : null,
|
|
23
|
+
props: u
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return ee.Fragment = g, ee.jsx = S, ee.jsxs = S, ee;
|
|
27
|
+
}
|
|
28
|
+
var re = {};
|
|
29
|
+
var be;
|
|
30
|
+
function Ye() {
|
|
31
|
+
return be || (be = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
|
+
function n(e) {
|
|
33
|
+
if (e == null) return null;
|
|
34
|
+
if (typeof e == "function")
|
|
35
|
+
return e.$$typeof === J ? null : e.displayName || e.name || null;
|
|
36
|
+
if (typeof e == "string") return e;
|
|
37
|
+
switch (e) {
|
|
38
|
+
case w:
|
|
39
|
+
return "Fragment";
|
|
40
|
+
case W:
|
|
41
|
+
return "Profiler";
|
|
42
|
+
case N:
|
|
43
|
+
return "StrictMode";
|
|
44
|
+
case q:
|
|
45
|
+
return "Suspense";
|
|
46
|
+
case H:
|
|
47
|
+
return "SuspenseList";
|
|
48
|
+
case K:
|
|
49
|
+
return "Activity";
|
|
50
|
+
}
|
|
51
|
+
if (typeof e == "object")
|
|
52
|
+
switch (typeof e.tag == "number" && console.error(
|
|
53
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
54
|
+
), e.$$typeof) {
|
|
55
|
+
case A:
|
|
56
|
+
return "Portal";
|
|
57
|
+
case I:
|
|
58
|
+
return e.displayName || "Context";
|
|
59
|
+
case j:
|
|
60
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
61
|
+
case a:
|
|
62
|
+
var t = e.render;
|
|
63
|
+
return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
64
|
+
case Q:
|
|
65
|
+
return t = e.displayName || null, t !== null ? t : n(e.type) || "Memo";
|
|
66
|
+
case B:
|
|
67
|
+
t = e._payload, e = e._init;
|
|
68
|
+
try {
|
|
69
|
+
return n(e(t));
|
|
70
|
+
} catch {
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
function g(e) {
|
|
76
|
+
return "" + e;
|
|
77
|
+
}
|
|
78
|
+
function S(e) {
|
|
79
|
+
try {
|
|
80
|
+
g(e);
|
|
81
|
+
var t = !1;
|
|
82
|
+
} catch {
|
|
83
|
+
t = !0;
|
|
84
|
+
}
|
|
85
|
+
if (t) {
|
|
86
|
+
t = console;
|
|
87
|
+
var s = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
88
|
+
return s.call(
|
|
89
|
+
t,
|
|
90
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
91
|
+
i
|
|
92
|
+
), g(e);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function l(e) {
|
|
96
|
+
if (e === w) return "<>";
|
|
97
|
+
if (typeof e == "object" && e !== null && e.$$typeof === B)
|
|
98
|
+
return "<...>";
|
|
99
|
+
try {
|
|
100
|
+
var t = n(e);
|
|
101
|
+
return t ? "<" + t + ">" : "<...>";
|
|
102
|
+
} catch {
|
|
103
|
+
return "<...>";
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function f() {
|
|
107
|
+
var e = z.A;
|
|
108
|
+
return e === null ? null : e.getOwner();
|
|
109
|
+
}
|
|
110
|
+
function u() {
|
|
111
|
+
return Error("react-stack-top-frame");
|
|
112
|
+
}
|
|
113
|
+
function T(e) {
|
|
114
|
+
if (X.call(e, "key")) {
|
|
115
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
116
|
+
if (t && t.isReactWarning) return !1;
|
|
117
|
+
}
|
|
118
|
+
return e.key !== void 0;
|
|
119
|
+
}
|
|
120
|
+
function d(e, t) {
|
|
121
|
+
function s() {
|
|
122
|
+
M || (M = !0, console.error(
|
|
123
|
+
"%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)",
|
|
124
|
+
t
|
|
125
|
+
));
|
|
126
|
+
}
|
|
127
|
+
s.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
128
|
+
get: s,
|
|
129
|
+
configurable: !0
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function P() {
|
|
133
|
+
var e = n(this.type);
|
|
134
|
+
return D[e] || (D[e] = !0, console.error(
|
|
135
|
+
"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."
|
|
136
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
137
|
+
}
|
|
138
|
+
function R(e, t, s, i, y, p) {
|
|
139
|
+
var c = s.ref;
|
|
140
|
+
return e = {
|
|
141
|
+
$$typeof: k,
|
|
142
|
+
type: e,
|
|
143
|
+
key: t,
|
|
144
|
+
props: s,
|
|
145
|
+
_owner: i
|
|
146
|
+
}, (c !== void 0 ? c : null) !== null ? Object.defineProperty(e, "ref", {
|
|
147
|
+
enumerable: !1,
|
|
148
|
+
get: P
|
|
149
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
150
|
+
configurable: !1,
|
|
151
|
+
enumerable: !1,
|
|
152
|
+
writable: !0,
|
|
153
|
+
value: 0
|
|
154
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
155
|
+
configurable: !1,
|
|
156
|
+
enumerable: !1,
|
|
157
|
+
writable: !0,
|
|
158
|
+
value: null
|
|
159
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
160
|
+
configurable: !1,
|
|
161
|
+
enumerable: !1,
|
|
162
|
+
writable: !0,
|
|
163
|
+
value: y
|
|
164
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
165
|
+
configurable: !1,
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: p
|
|
169
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
170
|
+
}
|
|
171
|
+
function E(e, t, s, i, y, p) {
|
|
172
|
+
var c = t.children;
|
|
173
|
+
if (c !== void 0)
|
|
174
|
+
if (i)
|
|
175
|
+
if (F(c)) {
|
|
176
|
+
for (i = 0; i < c.length; i++)
|
|
177
|
+
_(c[i]);
|
|
178
|
+
Object.freeze && Object.freeze(c);
|
|
179
|
+
} else
|
|
180
|
+
console.error(
|
|
181
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
182
|
+
);
|
|
183
|
+
else _(c);
|
|
184
|
+
if (X.call(t, "key")) {
|
|
185
|
+
c = n(e);
|
|
186
|
+
var v = Object.keys(t).filter(function(b) {
|
|
187
|
+
return b !== "key";
|
|
188
|
+
});
|
|
189
|
+
i = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", r[c + i] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
190
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
191
|
+
let props = %s;
|
|
192
|
+
<%s {...props} />
|
|
193
|
+
React keys must be passed directly to JSX without using spread:
|
|
194
|
+
let props = %s;
|
|
195
|
+
<%s key={someKey} {...props} />`,
|
|
196
|
+
i,
|
|
197
|
+
c,
|
|
198
|
+
v,
|
|
199
|
+
c
|
|
200
|
+
), r[c + i] = !0);
|
|
201
|
+
}
|
|
202
|
+
if (c = null, s !== void 0 && (S(s), c = "" + s), T(t) && (S(t.key), c = "" + t.key), "key" in t) {
|
|
203
|
+
s = {};
|
|
204
|
+
for (var m in t)
|
|
205
|
+
m !== "key" && (s[m] = t[m]);
|
|
206
|
+
} else s = t;
|
|
207
|
+
return c && d(
|
|
208
|
+
s,
|
|
209
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
210
|
+
), R(
|
|
211
|
+
e,
|
|
212
|
+
c,
|
|
213
|
+
s,
|
|
214
|
+
f(),
|
|
215
|
+
y,
|
|
216
|
+
p
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
function _(e) {
|
|
220
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === B && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
221
|
+
}
|
|
222
|
+
function x(e) {
|
|
223
|
+
return typeof e == "object" && e !== null && e.$$typeof === k;
|
|
224
|
+
}
|
|
225
|
+
var C = Me, k = /* @__PURE__ */ Symbol.for("react.transitional.element"), A = /* @__PURE__ */ Symbol.for("react.portal"), w = /* @__PURE__ */ Symbol.for("react.fragment"), N = /* @__PURE__ */ Symbol.for("react.strict_mode"), W = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.consumer"), I = /* @__PURE__ */ Symbol.for("react.context"), a = /* @__PURE__ */ Symbol.for("react.forward_ref"), q = /* @__PURE__ */ Symbol.for("react.suspense"), H = /* @__PURE__ */ Symbol.for("react.suspense_list"), Q = /* @__PURE__ */ Symbol.for("react.memo"), B = /* @__PURE__ */ Symbol.for("react.lazy"), K = /* @__PURE__ */ Symbol.for("react.activity"), J = /* @__PURE__ */ Symbol.for("react.client.reference"), z = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, F = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
226
|
+
return null;
|
|
227
|
+
};
|
|
228
|
+
C = {
|
|
229
|
+
react_stack_bottom_frame: function(e) {
|
|
230
|
+
return e();
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
var M, D = {}, V = C.react_stack_bottom_frame.bind(
|
|
234
|
+
C,
|
|
235
|
+
u
|
|
236
|
+
)(), Z = G(l(u)), r = {};
|
|
237
|
+
re.Fragment = w, re.jsx = function(e, t, s) {
|
|
238
|
+
var i = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
239
|
+
return E(
|
|
240
|
+
e,
|
|
241
|
+
t,
|
|
242
|
+
s,
|
|
243
|
+
!1,
|
|
244
|
+
i ? Error("react-stack-top-frame") : V,
|
|
245
|
+
i ? G(l(e)) : Z
|
|
246
|
+
);
|
|
247
|
+
}, re.jsxs = function(e, t, s) {
|
|
248
|
+
var i = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
249
|
+
return E(
|
|
250
|
+
e,
|
|
251
|
+
t,
|
|
252
|
+
s,
|
|
253
|
+
!0,
|
|
254
|
+
i ? Error("react-stack-top-frame") : V,
|
|
255
|
+
i ? G(l(e)) : Z
|
|
256
|
+
);
|
|
257
|
+
};
|
|
258
|
+
})()), re;
|
|
259
|
+
}
|
|
260
|
+
var Te;
|
|
261
|
+
function qe() {
|
|
262
|
+
return Te || (Te = 1, process.env.NODE_ENV === "production" ? oe.exports = Le() : oe.exports = Ye()), oe.exports;
|
|
263
|
+
}
|
|
264
|
+
var te = qe(), ae = { exports: {} }, ie = { exports: {} }, h = {};
|
|
265
|
+
var me;
|
|
266
|
+
function Fe() {
|
|
267
|
+
if (me) return h;
|
|
268
|
+
me = 1;
|
|
269
|
+
var n = typeof Symbol == "function" && Symbol.for, g = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, S = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, l = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, T = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, P = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, R = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, _ = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, C = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, A = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, N = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
270
|
+
function j(a) {
|
|
271
|
+
if (typeof a == "object" && a !== null) {
|
|
272
|
+
var q = a.$$typeof;
|
|
273
|
+
switch (q) {
|
|
274
|
+
case g:
|
|
275
|
+
switch (a = a.type, a) {
|
|
276
|
+
case P:
|
|
277
|
+
case R:
|
|
278
|
+
case l:
|
|
279
|
+
case u:
|
|
280
|
+
case f:
|
|
281
|
+
case _:
|
|
282
|
+
return a;
|
|
283
|
+
default:
|
|
284
|
+
switch (a = a && a.$$typeof, a) {
|
|
285
|
+
case d:
|
|
286
|
+
case E:
|
|
287
|
+
case k:
|
|
288
|
+
case C:
|
|
289
|
+
case T:
|
|
290
|
+
return a;
|
|
291
|
+
default:
|
|
292
|
+
return q;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
case S:
|
|
296
|
+
return q;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
function I(a) {
|
|
301
|
+
return j(a) === R;
|
|
302
|
+
}
|
|
303
|
+
return h.AsyncMode = P, h.ConcurrentMode = R, h.ContextConsumer = d, h.ContextProvider = T, h.Element = g, h.ForwardRef = E, h.Fragment = l, h.Lazy = k, h.Memo = C, h.Portal = S, h.Profiler = u, h.StrictMode = f, h.Suspense = _, h.isAsyncMode = function(a) {
|
|
304
|
+
return I(a) || j(a) === P;
|
|
305
|
+
}, h.isConcurrentMode = I, h.isContextConsumer = function(a) {
|
|
306
|
+
return j(a) === d;
|
|
307
|
+
}, h.isContextProvider = function(a) {
|
|
308
|
+
return j(a) === T;
|
|
309
|
+
}, h.isElement = function(a) {
|
|
310
|
+
return typeof a == "object" && a !== null && a.$$typeof === g;
|
|
311
|
+
}, h.isForwardRef = function(a) {
|
|
312
|
+
return j(a) === E;
|
|
313
|
+
}, h.isFragment = function(a) {
|
|
314
|
+
return j(a) === l;
|
|
315
|
+
}, h.isLazy = function(a) {
|
|
316
|
+
return j(a) === k;
|
|
317
|
+
}, h.isMemo = function(a) {
|
|
318
|
+
return j(a) === C;
|
|
319
|
+
}, h.isPortal = function(a) {
|
|
320
|
+
return j(a) === S;
|
|
321
|
+
}, h.isProfiler = function(a) {
|
|
322
|
+
return j(a) === u;
|
|
323
|
+
}, h.isStrictMode = function(a) {
|
|
324
|
+
return j(a) === f;
|
|
325
|
+
}, h.isSuspense = function(a) {
|
|
326
|
+
return j(a) === _;
|
|
327
|
+
}, h.isValidElementType = function(a) {
|
|
328
|
+
return typeof a == "string" || typeof a == "function" || a === l || a === R || a === u || a === f || a === _ || a === x || typeof a == "object" && a !== null && (a.$$typeof === k || a.$$typeof === C || a.$$typeof === T || a.$$typeof === d || a.$$typeof === E || a.$$typeof === w || a.$$typeof === N || a.$$typeof === W || a.$$typeof === A);
|
|
329
|
+
}, h.typeOf = j, h;
|
|
330
|
+
}
|
|
331
|
+
var O = {};
|
|
332
|
+
var _e;
|
|
333
|
+
function Ue() {
|
|
334
|
+
return _e || (_e = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
335
|
+
var n = typeof Symbol == "function" && Symbol.for, g = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, S = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, l = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, T = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, P = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, R = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, E = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, _ = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, x = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, C = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, A = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, N = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
336
|
+
function j(o) {
|
|
337
|
+
return typeof o == "string" || typeof o == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
338
|
+
o === l || o === R || o === u || o === f || o === _ || o === x || typeof o == "object" && o !== null && (o.$$typeof === k || o.$$typeof === C || o.$$typeof === T || o.$$typeof === d || o.$$typeof === E || o.$$typeof === w || o.$$typeof === N || o.$$typeof === W || o.$$typeof === A);
|
|
339
|
+
}
|
|
340
|
+
function I(o) {
|
|
341
|
+
if (typeof o == "object" && o !== null) {
|
|
342
|
+
var L = o.$$typeof;
|
|
343
|
+
switch (L) {
|
|
344
|
+
case g:
|
|
345
|
+
var ne = o.type;
|
|
346
|
+
switch (ne) {
|
|
347
|
+
case P:
|
|
348
|
+
case R:
|
|
349
|
+
case l:
|
|
350
|
+
case u:
|
|
351
|
+
case f:
|
|
352
|
+
case _:
|
|
353
|
+
return ne;
|
|
354
|
+
default:
|
|
355
|
+
var ye = ne && ne.$$typeof;
|
|
356
|
+
switch (ye) {
|
|
357
|
+
case d:
|
|
358
|
+
case E:
|
|
359
|
+
case k:
|
|
360
|
+
case C:
|
|
361
|
+
case T:
|
|
362
|
+
return ye;
|
|
363
|
+
default:
|
|
364
|
+
return L;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
case S:
|
|
368
|
+
return L;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
var a = P, q = R, H = d, Q = T, B = g, K = E, J = l, z = k, X = C, F = S, G = u, M = f, D = _, V = !1;
|
|
373
|
+
function Z(o) {
|
|
374
|
+
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), r(o) || I(o) === P;
|
|
375
|
+
}
|
|
376
|
+
function r(o) {
|
|
377
|
+
return I(o) === R;
|
|
378
|
+
}
|
|
379
|
+
function e(o) {
|
|
380
|
+
return I(o) === d;
|
|
381
|
+
}
|
|
382
|
+
function t(o) {
|
|
383
|
+
return I(o) === T;
|
|
384
|
+
}
|
|
385
|
+
function s(o) {
|
|
386
|
+
return typeof o == "object" && o !== null && o.$$typeof === g;
|
|
387
|
+
}
|
|
388
|
+
function i(o) {
|
|
389
|
+
return I(o) === E;
|
|
390
|
+
}
|
|
391
|
+
function y(o) {
|
|
392
|
+
return I(o) === l;
|
|
393
|
+
}
|
|
394
|
+
function p(o) {
|
|
395
|
+
return I(o) === k;
|
|
396
|
+
}
|
|
397
|
+
function c(o) {
|
|
398
|
+
return I(o) === C;
|
|
399
|
+
}
|
|
400
|
+
function v(o) {
|
|
401
|
+
return I(o) === S;
|
|
402
|
+
}
|
|
403
|
+
function m(o) {
|
|
404
|
+
return I(o) === u;
|
|
405
|
+
}
|
|
406
|
+
function b(o) {
|
|
407
|
+
return I(o) === f;
|
|
408
|
+
}
|
|
409
|
+
function $(o) {
|
|
410
|
+
return I(o) === _;
|
|
411
|
+
}
|
|
412
|
+
O.AsyncMode = a, O.ConcurrentMode = q, O.ContextConsumer = H, O.ContextProvider = Q, O.Element = B, O.ForwardRef = K, O.Fragment = J, O.Lazy = z, O.Memo = X, O.Portal = F, O.Profiler = G, O.StrictMode = M, O.Suspense = D, O.isAsyncMode = Z, O.isConcurrentMode = r, O.isContextConsumer = e, O.isContextProvider = t, O.isElement = s, O.isForwardRef = i, O.isFragment = y, O.isLazy = p, O.isMemo = c, O.isPortal = v, O.isProfiler = m, O.isStrictMode = b, O.isSuspense = $, O.isValidElementType = j, O.typeOf = I;
|
|
413
|
+
})()), O;
|
|
414
|
+
}
|
|
415
|
+
var Se;
|
|
416
|
+
function Ie() {
|
|
417
|
+
return Se || (Se = 1, process.env.NODE_ENV === "production" ? ie.exports = Fe() : ie.exports = Ue()), ie.exports;
|
|
418
|
+
}
|
|
419
|
+
var ce, Re;
|
|
420
|
+
function We() {
|
|
421
|
+
if (Re) return ce;
|
|
422
|
+
Re = 1;
|
|
423
|
+
var n = Object.getOwnPropertySymbols, g = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
424
|
+
function l(u) {
|
|
425
|
+
if (u == null)
|
|
426
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
427
|
+
return Object(u);
|
|
428
|
+
}
|
|
429
|
+
function f() {
|
|
430
|
+
try {
|
|
431
|
+
if (!Object.assign)
|
|
432
|
+
return !1;
|
|
433
|
+
var u = new String("abc");
|
|
434
|
+
if (u[5] = "de", Object.getOwnPropertyNames(u)[0] === "5")
|
|
435
|
+
return !1;
|
|
436
|
+
for (var T = {}, d = 0; d < 10; d++)
|
|
437
|
+
T["_" + String.fromCharCode(d)] = d;
|
|
438
|
+
var P = Object.getOwnPropertyNames(T).map(function(E) {
|
|
439
|
+
return T[E];
|
|
440
|
+
});
|
|
441
|
+
if (P.join("") !== "0123456789")
|
|
442
|
+
return !1;
|
|
443
|
+
var R = {};
|
|
444
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(E) {
|
|
445
|
+
R[E] = E;
|
|
446
|
+
}), Object.keys(Object.assign({}, R)).join("") === "abcdefghijklmnopqrst";
|
|
447
|
+
} catch {
|
|
448
|
+
return !1;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
return ce = f() ? Object.assign : function(u, T) {
|
|
452
|
+
for (var d, P = l(u), R, E = 1; E < arguments.length; E++) {
|
|
453
|
+
d = Object(arguments[E]);
|
|
454
|
+
for (var _ in d)
|
|
455
|
+
g.call(d, _) && (P[_] = d[_]);
|
|
456
|
+
if (n) {
|
|
457
|
+
R = n(d);
|
|
458
|
+
for (var x = 0; x < R.length; x++)
|
|
459
|
+
S.call(d, R[x]) && (P[R[x]] = d[R[x]]);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
return P;
|
|
463
|
+
}, ce;
|
|
464
|
+
}
|
|
465
|
+
var ue, he;
|
|
466
|
+
function ve() {
|
|
467
|
+
if (he) return ue;
|
|
468
|
+
he = 1;
|
|
469
|
+
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
470
|
+
return ue = n, ue;
|
|
471
|
+
}
|
|
472
|
+
var fe, Oe;
|
|
473
|
+
function je() {
|
|
474
|
+
return Oe || (Oe = 1, fe = Function.call.bind(Object.prototype.hasOwnProperty)), fe;
|
|
475
|
+
}
|
|
476
|
+
var le, ge;
|
|
477
|
+
function Be() {
|
|
478
|
+
if (ge) return le;
|
|
479
|
+
ge = 1;
|
|
480
|
+
var n = function() {
|
|
481
|
+
};
|
|
482
|
+
if (process.env.NODE_ENV !== "production") {
|
|
483
|
+
var g = /* @__PURE__ */ ve(), S = {}, l = /* @__PURE__ */ je();
|
|
484
|
+
n = function(u) {
|
|
485
|
+
var T = "Warning: " + u;
|
|
486
|
+
typeof console < "u" && console.error(T);
|
|
487
|
+
try {
|
|
488
|
+
throw new Error(T);
|
|
489
|
+
} catch {
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
function f(u, T, d, P, R) {
|
|
494
|
+
if (process.env.NODE_ENV !== "production") {
|
|
495
|
+
for (var E in u)
|
|
496
|
+
if (l(u, E)) {
|
|
497
|
+
var _;
|
|
498
|
+
try {
|
|
499
|
+
if (typeof u[E] != "function") {
|
|
500
|
+
var x = Error(
|
|
501
|
+
(P || "React class") + ": " + d + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
502
|
+
);
|
|
503
|
+
throw x.name = "Invariant Violation", x;
|
|
504
|
+
}
|
|
505
|
+
_ = u[E](T, E, P, d, null, g);
|
|
506
|
+
} catch (k) {
|
|
507
|
+
_ = k;
|
|
508
|
+
}
|
|
509
|
+
if (_ && !(_ instanceof Error) && n(
|
|
510
|
+
(P || "React class") + ": type specification of " + d + " `" + E + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof _ + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
511
|
+
), _ instanceof Error && !(_.message in S)) {
|
|
512
|
+
S[_.message] = !0;
|
|
513
|
+
var C = R ? R() : "";
|
|
514
|
+
n(
|
|
515
|
+
"Failed " + d + " type: " + _.message + (C ?? "")
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return f.resetWarningCache = function() {
|
|
522
|
+
process.env.NODE_ENV !== "production" && (S = {});
|
|
523
|
+
}, le = f, le;
|
|
524
|
+
}
|
|
525
|
+
var de, Pe;
|
|
526
|
+
function ze() {
|
|
527
|
+
if (Pe) return de;
|
|
528
|
+
Pe = 1;
|
|
529
|
+
var n = Ie(), g = We(), S = /* @__PURE__ */ ve(), l = /* @__PURE__ */ je(), f = /* @__PURE__ */ Be(), u = function() {
|
|
530
|
+
};
|
|
531
|
+
process.env.NODE_ENV !== "production" && (u = function(d) {
|
|
532
|
+
var P = "Warning: " + d;
|
|
533
|
+
typeof console < "u" && console.error(P);
|
|
534
|
+
try {
|
|
535
|
+
throw new Error(P);
|
|
536
|
+
} catch {
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
function T() {
|
|
540
|
+
return null;
|
|
541
|
+
}
|
|
542
|
+
return de = function(d, P) {
|
|
543
|
+
var R = typeof Symbol == "function" && Symbol.iterator, E = "@@iterator";
|
|
544
|
+
function _(r) {
|
|
545
|
+
var e = r && (R && r[R] || r[E]);
|
|
546
|
+
if (typeof e == "function")
|
|
547
|
+
return e;
|
|
548
|
+
}
|
|
549
|
+
var x = "<<anonymous>>", C = {
|
|
550
|
+
array: N("array"),
|
|
551
|
+
bigint: N("bigint"),
|
|
552
|
+
bool: N("boolean"),
|
|
553
|
+
func: N("function"),
|
|
554
|
+
number: N("number"),
|
|
555
|
+
object: N("object"),
|
|
556
|
+
string: N("string"),
|
|
557
|
+
symbol: N("symbol"),
|
|
558
|
+
any: W(),
|
|
559
|
+
arrayOf: j,
|
|
560
|
+
element: I(),
|
|
561
|
+
elementType: a(),
|
|
562
|
+
instanceOf: q,
|
|
563
|
+
node: K(),
|
|
564
|
+
objectOf: Q,
|
|
565
|
+
oneOf: H,
|
|
566
|
+
oneOfType: B,
|
|
567
|
+
shape: z,
|
|
568
|
+
exact: X
|
|
569
|
+
};
|
|
570
|
+
function k(r, e) {
|
|
571
|
+
return r === e ? r !== 0 || 1 / r === 1 / e : r !== r && e !== e;
|
|
572
|
+
}
|
|
573
|
+
function A(r, e) {
|
|
574
|
+
this.message = r, this.data = e && typeof e == "object" ? e : {}, this.stack = "";
|
|
575
|
+
}
|
|
576
|
+
A.prototype = Error.prototype;
|
|
577
|
+
function w(r) {
|
|
578
|
+
if (process.env.NODE_ENV !== "production")
|
|
579
|
+
var e = {}, t = 0;
|
|
580
|
+
function s(y, p, c, v, m, b, $) {
|
|
581
|
+
if (v = v || x, b = b || c, $ !== S) {
|
|
582
|
+
if (P) {
|
|
583
|
+
var o = new Error(
|
|
584
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
585
|
+
);
|
|
586
|
+
throw o.name = "Invariant Violation", o;
|
|
587
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
588
|
+
var L = v + ":" + c;
|
|
589
|
+
!e[L] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
590
|
+
t < 3 && (u(
|
|
591
|
+
"You are manually calling a React.PropTypes validation function for the `" + b + "` prop on `" + v + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
592
|
+
), e[L] = !0, t++);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return p[c] == null ? y ? p[c] === null ? new A("The " + m + " `" + b + "` is marked as required " + ("in `" + v + "`, but its value is `null`.")) : new A("The " + m + " `" + b + "` is marked as required in " + ("`" + v + "`, but its value is `undefined`.")) : null : r(p, c, v, m, b);
|
|
596
|
+
}
|
|
597
|
+
var i = s.bind(null, !1);
|
|
598
|
+
return i.isRequired = s.bind(null, !0), i;
|
|
599
|
+
}
|
|
600
|
+
function N(r) {
|
|
601
|
+
function e(t, s, i, y, p, c) {
|
|
602
|
+
var v = t[s], m = M(v);
|
|
603
|
+
if (m !== r) {
|
|
604
|
+
var b = D(v);
|
|
605
|
+
return new A(
|
|
606
|
+
"Invalid " + y + " `" + p + "` of type " + ("`" + b + "` supplied to `" + i + "`, expected ") + ("`" + r + "`."),
|
|
607
|
+
{ expectedType: r }
|
|
608
|
+
);
|
|
609
|
+
}
|
|
610
|
+
return null;
|
|
611
|
+
}
|
|
612
|
+
return w(e);
|
|
613
|
+
}
|
|
614
|
+
function W() {
|
|
615
|
+
return w(T);
|
|
616
|
+
}
|
|
617
|
+
function j(r) {
|
|
618
|
+
function e(t, s, i, y, p) {
|
|
619
|
+
if (typeof r != "function")
|
|
620
|
+
return new A("Property `" + p + "` of component `" + i + "` has invalid PropType notation inside arrayOf.");
|
|
621
|
+
var c = t[s];
|
|
622
|
+
if (!Array.isArray(c)) {
|
|
623
|
+
var v = M(c);
|
|
624
|
+
return new A("Invalid " + y + " `" + p + "` of type " + ("`" + v + "` supplied to `" + i + "`, expected an array."));
|
|
625
|
+
}
|
|
626
|
+
for (var m = 0; m < c.length; m++) {
|
|
627
|
+
var b = r(c, m, i, y, p + "[" + m + "]", S);
|
|
628
|
+
if (b instanceof Error)
|
|
629
|
+
return b;
|
|
630
|
+
}
|
|
631
|
+
return null;
|
|
632
|
+
}
|
|
633
|
+
return w(e);
|
|
634
|
+
}
|
|
635
|
+
function I() {
|
|
636
|
+
function r(e, t, s, i, y) {
|
|
637
|
+
var p = e[t];
|
|
638
|
+
if (!d(p)) {
|
|
639
|
+
var c = M(p);
|
|
640
|
+
return new A("Invalid " + i + " `" + y + "` of type " + ("`" + c + "` supplied to `" + s + "`, expected a single ReactElement."));
|
|
641
|
+
}
|
|
642
|
+
return null;
|
|
643
|
+
}
|
|
644
|
+
return w(r);
|
|
645
|
+
}
|
|
646
|
+
function a() {
|
|
647
|
+
function r(e, t, s, i, y) {
|
|
648
|
+
var p = e[t];
|
|
649
|
+
if (!n.isValidElementType(p)) {
|
|
650
|
+
var c = M(p);
|
|
651
|
+
return new A("Invalid " + i + " `" + y + "` of type " + ("`" + c + "` supplied to `" + s + "`, expected a single ReactElement type."));
|
|
652
|
+
}
|
|
653
|
+
return null;
|
|
654
|
+
}
|
|
655
|
+
return w(r);
|
|
656
|
+
}
|
|
657
|
+
function q(r) {
|
|
658
|
+
function e(t, s, i, y, p) {
|
|
659
|
+
if (!(t[s] instanceof r)) {
|
|
660
|
+
var c = r.name || x, v = Z(t[s]);
|
|
661
|
+
return new A("Invalid " + y + " `" + p + "` of type " + ("`" + v + "` supplied to `" + i + "`, expected ") + ("instance of `" + c + "`."));
|
|
662
|
+
}
|
|
663
|
+
return null;
|
|
664
|
+
}
|
|
665
|
+
return w(e);
|
|
666
|
+
}
|
|
667
|
+
function H(r) {
|
|
668
|
+
if (!Array.isArray(r))
|
|
669
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? u(
|
|
670
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
671
|
+
) : u("Invalid argument supplied to oneOf, expected an array.")), T;
|
|
672
|
+
function e(t, s, i, y, p) {
|
|
673
|
+
for (var c = t[s], v = 0; v < r.length; v++)
|
|
674
|
+
if (k(c, r[v]))
|
|
675
|
+
return null;
|
|
676
|
+
var m = JSON.stringify(r, function($, o) {
|
|
677
|
+
var L = D(o);
|
|
678
|
+
return L === "symbol" ? String(o) : o;
|
|
679
|
+
});
|
|
680
|
+
return new A("Invalid " + y + " `" + p + "` of value `" + String(c) + "` " + ("supplied to `" + i + "`, expected one of " + m + "."));
|
|
681
|
+
}
|
|
682
|
+
return w(e);
|
|
683
|
+
}
|
|
684
|
+
function Q(r) {
|
|
685
|
+
function e(t, s, i, y, p) {
|
|
686
|
+
if (typeof r != "function")
|
|
687
|
+
return new A("Property `" + p + "` of component `" + i + "` has invalid PropType notation inside objectOf.");
|
|
688
|
+
var c = t[s], v = M(c);
|
|
689
|
+
if (v !== "object")
|
|
690
|
+
return new A("Invalid " + y + " `" + p + "` of type " + ("`" + v + "` supplied to `" + i + "`, expected an object."));
|
|
691
|
+
for (var m in c)
|
|
692
|
+
if (l(c, m)) {
|
|
693
|
+
var b = r(c, m, i, y, p + "." + m, S);
|
|
694
|
+
if (b instanceof Error)
|
|
695
|
+
return b;
|
|
696
|
+
}
|
|
697
|
+
return null;
|
|
698
|
+
}
|
|
699
|
+
return w(e);
|
|
700
|
+
}
|
|
701
|
+
function B(r) {
|
|
702
|
+
if (!Array.isArray(r))
|
|
703
|
+
return process.env.NODE_ENV !== "production" && u("Invalid argument supplied to oneOfType, expected an instance of array."), T;
|
|
704
|
+
for (var e = 0; e < r.length; e++) {
|
|
705
|
+
var t = r[e];
|
|
706
|
+
if (typeof t != "function")
|
|
707
|
+
return u(
|
|
708
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(t) + " at index " + e + "."
|
|
709
|
+
), T;
|
|
710
|
+
}
|
|
711
|
+
function s(i, y, p, c, v) {
|
|
712
|
+
for (var m = [], b = 0; b < r.length; b++) {
|
|
713
|
+
var $ = r[b], o = $(i, y, p, c, v, S);
|
|
714
|
+
if (o == null)
|
|
715
|
+
return null;
|
|
716
|
+
o.data && l(o.data, "expectedType") && m.push(o.data.expectedType);
|
|
717
|
+
}
|
|
718
|
+
var L = m.length > 0 ? ", expected one of type [" + m.join(", ") + "]" : "";
|
|
719
|
+
return new A("Invalid " + c + " `" + v + "` supplied to " + ("`" + p + "`" + L + "."));
|
|
720
|
+
}
|
|
721
|
+
return w(s);
|
|
722
|
+
}
|
|
723
|
+
function K() {
|
|
724
|
+
function r(e, t, s, i, y) {
|
|
725
|
+
return F(e[t]) ? null : new A("Invalid " + i + " `" + y + "` supplied to " + ("`" + s + "`, expected a ReactNode."));
|
|
726
|
+
}
|
|
727
|
+
return w(r);
|
|
728
|
+
}
|
|
729
|
+
function J(r, e, t, s, i) {
|
|
730
|
+
return new A(
|
|
731
|
+
(r || "React class") + ": " + e + " type `" + t + "." + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + i + "`."
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
function z(r) {
|
|
735
|
+
function e(t, s, i, y, p) {
|
|
736
|
+
var c = t[s], v = M(c);
|
|
737
|
+
if (v !== "object")
|
|
738
|
+
return new A("Invalid " + y + " `" + p + "` of type `" + v + "` " + ("supplied to `" + i + "`, expected `object`."));
|
|
739
|
+
for (var m in r) {
|
|
740
|
+
var b = r[m];
|
|
741
|
+
if (typeof b != "function")
|
|
742
|
+
return J(i, y, p, m, D(b));
|
|
743
|
+
var $ = b(c, m, i, y, p + "." + m, S);
|
|
744
|
+
if ($)
|
|
745
|
+
return $;
|
|
746
|
+
}
|
|
747
|
+
return null;
|
|
748
|
+
}
|
|
749
|
+
return w(e);
|
|
750
|
+
}
|
|
751
|
+
function X(r) {
|
|
752
|
+
function e(t, s, i, y, p) {
|
|
753
|
+
var c = t[s], v = M(c);
|
|
754
|
+
if (v !== "object")
|
|
755
|
+
return new A("Invalid " + y + " `" + p + "` of type `" + v + "` " + ("supplied to `" + i + "`, expected `object`."));
|
|
756
|
+
var m = g({}, t[s], r);
|
|
757
|
+
for (var b in m) {
|
|
758
|
+
var $ = r[b];
|
|
759
|
+
if (l(r, b) && typeof $ != "function")
|
|
760
|
+
return J(i, y, p, b, D($));
|
|
761
|
+
if (!$)
|
|
762
|
+
return new A(
|
|
763
|
+
"Invalid " + y + " `" + p + "` key `" + b + "` supplied to `" + i + "`.\nBad object: " + JSON.stringify(t[s], null, " ") + `
|
|
764
|
+
Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
765
|
+
);
|
|
766
|
+
var o = $(c, b, i, y, p + "." + b, S);
|
|
767
|
+
if (o)
|
|
768
|
+
return o;
|
|
769
|
+
}
|
|
770
|
+
return null;
|
|
771
|
+
}
|
|
772
|
+
return w(e);
|
|
773
|
+
}
|
|
774
|
+
function F(r) {
|
|
775
|
+
switch (typeof r) {
|
|
776
|
+
case "number":
|
|
777
|
+
case "string":
|
|
778
|
+
case "undefined":
|
|
779
|
+
return !0;
|
|
780
|
+
case "boolean":
|
|
781
|
+
return !r;
|
|
782
|
+
case "object":
|
|
783
|
+
if (Array.isArray(r))
|
|
784
|
+
return r.every(F);
|
|
785
|
+
if (r === null || d(r))
|
|
786
|
+
return !0;
|
|
787
|
+
var e = _(r);
|
|
788
|
+
if (e) {
|
|
789
|
+
var t = e.call(r), s;
|
|
790
|
+
if (e !== r.entries) {
|
|
791
|
+
for (; !(s = t.next()).done; )
|
|
792
|
+
if (!F(s.value))
|
|
793
|
+
return !1;
|
|
794
|
+
} else
|
|
795
|
+
for (; !(s = t.next()).done; ) {
|
|
796
|
+
var i = s.value;
|
|
797
|
+
if (i && !F(i[1]))
|
|
798
|
+
return !1;
|
|
799
|
+
}
|
|
800
|
+
} else
|
|
801
|
+
return !1;
|
|
802
|
+
return !0;
|
|
803
|
+
default:
|
|
804
|
+
return !1;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
function G(r, e) {
|
|
808
|
+
return r === "symbol" ? !0 : e ? e["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && e instanceof Symbol : !1;
|
|
809
|
+
}
|
|
810
|
+
function M(r) {
|
|
811
|
+
var e = typeof r;
|
|
812
|
+
return Array.isArray(r) ? "array" : r instanceof RegExp ? "object" : G(e, r) ? "symbol" : e;
|
|
813
|
+
}
|
|
814
|
+
function D(r) {
|
|
815
|
+
if (typeof r > "u" || r === null)
|
|
816
|
+
return "" + r;
|
|
817
|
+
var e = M(r);
|
|
818
|
+
if (e === "object") {
|
|
819
|
+
if (r instanceof Date)
|
|
820
|
+
return "date";
|
|
821
|
+
if (r instanceof RegExp)
|
|
822
|
+
return "regexp";
|
|
823
|
+
}
|
|
824
|
+
return e;
|
|
825
|
+
}
|
|
826
|
+
function V(r) {
|
|
827
|
+
var e = D(r);
|
|
828
|
+
switch (e) {
|
|
829
|
+
case "array":
|
|
830
|
+
case "object":
|
|
831
|
+
return "an " + e;
|
|
832
|
+
case "boolean":
|
|
833
|
+
case "date":
|
|
834
|
+
case "regexp":
|
|
835
|
+
return "a " + e;
|
|
836
|
+
default:
|
|
837
|
+
return e;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
function Z(r) {
|
|
841
|
+
return !r.constructor || !r.constructor.name ? x : r.constructor.name;
|
|
842
|
+
}
|
|
843
|
+
return C.checkPropTypes = f, C.resetWarningCache = f.resetWarningCache, C.PropTypes = C, C;
|
|
844
|
+
}, de;
|
|
845
|
+
}
|
|
846
|
+
var pe, Ae;
|
|
847
|
+
function Ge() {
|
|
848
|
+
if (Ae) return pe;
|
|
849
|
+
Ae = 1;
|
|
850
|
+
var n = /* @__PURE__ */ ve();
|
|
851
|
+
function g() {
|
|
852
|
+
}
|
|
853
|
+
function S() {
|
|
854
|
+
}
|
|
855
|
+
return S.resetWarningCache = g, pe = function() {
|
|
856
|
+
function l(T, d, P, R, E, _) {
|
|
857
|
+
if (_ !== n) {
|
|
858
|
+
var x = new Error(
|
|
859
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
860
|
+
);
|
|
861
|
+
throw x.name = "Invariant Violation", x;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
l.isRequired = l;
|
|
865
|
+
function f() {
|
|
866
|
+
return l;
|
|
867
|
+
}
|
|
868
|
+
var u = {
|
|
869
|
+
array: l,
|
|
870
|
+
bigint: l,
|
|
871
|
+
bool: l,
|
|
872
|
+
func: l,
|
|
873
|
+
number: l,
|
|
874
|
+
object: l,
|
|
875
|
+
string: l,
|
|
876
|
+
symbol: l,
|
|
877
|
+
any: l,
|
|
878
|
+
arrayOf: f,
|
|
879
|
+
element: l,
|
|
880
|
+
elementType: l,
|
|
881
|
+
instanceOf: f,
|
|
882
|
+
node: l,
|
|
883
|
+
objectOf: f,
|
|
884
|
+
oneOf: f,
|
|
885
|
+
oneOfType: f,
|
|
886
|
+
shape: f,
|
|
887
|
+
exact: f,
|
|
888
|
+
checkPropTypes: S,
|
|
889
|
+
resetWarningCache: g
|
|
890
|
+
};
|
|
891
|
+
return u.PropTypes = u, u;
|
|
892
|
+
}, pe;
|
|
893
|
+
}
|
|
894
|
+
var Ce;
|
|
895
|
+
function Ve() {
|
|
896
|
+
if (Ce) return ae.exports;
|
|
897
|
+
if (Ce = 1, process.env.NODE_ENV !== "production") {
|
|
898
|
+
var n = Ie(), g = !0;
|
|
899
|
+
ae.exports = /* @__PURE__ */ ze()(n.isElement, g);
|
|
900
|
+
} else
|
|
901
|
+
ae.exports = /* @__PURE__ */ Ge()();
|
|
902
|
+
return ae.exports;
|
|
903
|
+
}
|
|
904
|
+
var Je = /* @__PURE__ */ Ve();
|
|
905
|
+
const U = /* @__PURE__ */ De(Je), ke = {
|
|
906
|
+
SMALL: "small",
|
|
907
|
+
MEDIUM: "medium",
|
|
908
|
+
LARGE: "large"
|
|
909
|
+
}, Xe = Object.values(ke), xe = {
|
|
910
|
+
ENABLED: "enabled",
|
|
911
|
+
DISABLED: "disabled"
|
|
912
|
+
}, we = {
|
|
913
|
+
FALSE: !1
|
|
914
|
+
}, Ze = {
|
|
915
|
+
EMPTY: ""
|
|
916
|
+
}, He = {
|
|
917
|
+
BUTTON: "button"
|
|
918
|
+
}, Ne = {
|
|
919
|
+
BUTTON: "button",
|
|
920
|
+
SUBMIT: "submit",
|
|
921
|
+
RESET: "reset"
|
|
922
|
+
}, Qe = Object.values(Ne), se = {
|
|
923
|
+
LOADING: "btn-loading",
|
|
924
|
+
SPINNER: "btn-spinner",
|
|
925
|
+
LOADING_TEXT: "btn-loading-text",
|
|
926
|
+
SIZE_PREFIX: "btn-"
|
|
927
|
+
// Prefijo para las clases de tamaño (ej: btn-small)
|
|
928
|
+
}, Y = {
|
|
929
|
+
SIZE: ke.MEDIUM,
|
|
930
|
+
DISABLED: we.FALSE,
|
|
931
|
+
LOADING: we.FALSE,
|
|
932
|
+
TYPE: Ne.BUTTON,
|
|
933
|
+
CLASS_NAME: Ze.EMPTY
|
|
934
|
+
};
|
|
935
|
+
function $e(n) {
|
|
936
|
+
const {
|
|
937
|
+
label: g,
|
|
938
|
+
size: S = Y.SIZE,
|
|
939
|
+
disabled: l = Y.DISABLED,
|
|
940
|
+
loading: f = Y.LOADING,
|
|
941
|
+
onClick: u,
|
|
942
|
+
type: T = Y.TYPE,
|
|
943
|
+
ariaLabel: d,
|
|
944
|
+
className: P = Y.CLASS_NAME,
|
|
945
|
+
...R
|
|
946
|
+
} = n, E = l || f ? xe.DISABLED : xe.ENABLED, _ = `${se.SIZE_PREFIX}${S}`, x = f ? se.LOADING : "", C = `${_} ${E} ${x} ${P}`.trim(), k = (A) => {
|
|
947
|
+
if (l || f) {
|
|
948
|
+
A.preventDefault();
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
951
|
+
u && u(A);
|
|
952
|
+
};
|
|
953
|
+
return /* @__PURE__ */ te.jsx(
|
|
954
|
+
"button",
|
|
955
|
+
{
|
|
956
|
+
type: T,
|
|
957
|
+
className: C,
|
|
958
|
+
disabled: l || f,
|
|
959
|
+
onClick: k,
|
|
960
|
+
"aria-label": d || g,
|
|
961
|
+
"aria-busy": f,
|
|
962
|
+
"aria-disabled": l || f,
|
|
963
|
+
role: He.BUTTON,
|
|
964
|
+
...R,
|
|
965
|
+
children: f ? /* @__PURE__ */ te.jsxs(te.Fragment, { children: [
|
|
966
|
+
/* @__PURE__ */ te.jsx("span", { className: se.SPINNER, "aria-hidden": "true" }),
|
|
967
|
+
/* @__PURE__ */ te.jsx("span", { className: se.LOADING_TEXT, children: g })
|
|
968
|
+
] }) : g
|
|
969
|
+
}
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
$e.propTypes = {
|
|
973
|
+
label: U.string.isRequired,
|
|
974
|
+
size: U.oneOf(Xe),
|
|
975
|
+
disabled: U.bool,
|
|
976
|
+
loading: U.bool,
|
|
977
|
+
onClick: U.func,
|
|
978
|
+
type: U.oneOf(Qe),
|
|
979
|
+
ariaLabel: U.string,
|
|
980
|
+
className: U.string
|
|
981
|
+
};
|
|
982
|
+
$e.defaultProps = {
|
|
983
|
+
size: Y.SIZE,
|
|
984
|
+
disabled: Y.DISABLED,
|
|
985
|
+
loading: Y.LOADING,
|
|
986
|
+
type: Y.TYPE,
|
|
987
|
+
className: Y.CLASS_NAME
|
|
988
|
+
};
|
|
989
|
+
export {
|
|
990
|
+
$e as Button
|
|
991
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
(function(W,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Q):(W=typeof globalThis<"u"?globalThis:W||self,Q(W.UiComponents={},W.React))})(this,(function(W,Q){"use strict";function Le(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ae={exports:{}},K={};var Te;function Ye(){if(Te)return K;Te=1;var n=Symbol.for("react.transitional.element"),g=Symbol.for("react.fragment");function S(l,f,c){var T=null;if(c!==void 0&&(T=""+c),f.key!==void 0&&(T=""+f.key),"key"in f){c={};for(var d in f)d!=="key"&&(c[d]=f[d])}else c=f;return f=c.ref,{$$typeof:n,type:l,key:T,ref:f!==void 0?f:null,props:c}}return K.Fragment=g,K.jsx=S,K.jsxs=S,K}var ee={};var me;function qe(){return me||(me=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===X?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case B:return"Profiler";case N:return"StrictMode";case q:return"Suspense";case te:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case A:return"Portal";case I:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case a:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:n(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function g(e){return""+e}function S(e){try{g(e);var t=!1}catch{t=!0}if(t){t=console;var s=t.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),g(e)}}function l(e){if(e===w)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===z)return"<...>";try{var t=n(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function f(){var e=G.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function T(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function d(e,t){function s(){$||($=!0,console.error("%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)",t))}s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function P(){var e=n(this.type);return L[e]||(L[e]=!0,console.error("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.")),e=this.props.ref,e!==void 0?e:null}function O(e,t,s,i,v,p){var u=s.ref;return e={$$typeof:k,type:e,key:t,props:s,_owner:i},(u!==void 0?u:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:P}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:v}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:p}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function E(e,t,s,i,v,p){var u=t.children;if(u!==void 0)if(i)if(U(u)){for(i=0;i<u.length;i++)_(u[i]);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _(u);if(Z.call(t,"key")){u=n(e);var y=Object.keys(t).filter(function(b){return b!=="key"});i=0<y.length?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}",r[u+i]||(y=0<y.length?"{"+y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,i,u,y,u),r[u+i]=!0)}if(u=null,s!==void 0&&(S(s),u=""+s),T(t)&&(S(t.key),u=""+t.key),"key"in t){s={};for(var m in t)m!=="key"&&(s[m]=t[m])}else s=t;return u&&d(s,typeof e=="function"?e.displayName||e.name||"Unknown":e),O(e,u,s,f(),v,p)}function _(e){x(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===z&&(e._payload.status==="fulfilled"?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===k}var C=Q,k=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),I=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),G=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,U=Array.isArray,V=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(e){return e()}};var $,L={},J=C.react_stack_bottom_frame.bind(C,c)(),H=V(l(c)),r={};ee.Fragment=w,ee.jsx=function(e,t,s){var i=1e4>G.recentlyCreatedOwnerStacks++;return E(e,t,s,!1,i?Error("react-stack-top-frame"):J,i?V(l(e)):H)},ee.jsxs=function(e,t,s){var i=1e4>G.recentlyCreatedOwnerStacks++;return E(e,t,s,!0,i?Error("react-stack-top-frame"):J,i?V(l(e)):H)}})()),ee}var _e;function Fe(){return _e||(_e=1,process.env.NODE_ENV==="production"?ae.exports=Ye():ae.exports=qe()),ae.exports}var re=Fe(),ie={exports:{}},se={exports:{}},R={};var Se;function Ue(){if(Se)return R;Se=1;var n=typeof Symbol=="function"&&Symbol.for,g=n?Symbol.for("react.element"):60103,S=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,f=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,T=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,P=n?Symbol.for("react.async_mode"):60111,O=n?Symbol.for("react.concurrent_mode"):60111,E=n?Symbol.for("react.forward_ref"):60112,_=n?Symbol.for("react.suspense"):60113,x=n?Symbol.for("react.suspense_list"):60120,C=n?Symbol.for("react.memo"):60115,k=n?Symbol.for("react.lazy"):60116,A=n?Symbol.for("react.block"):60121,w=n?Symbol.for("react.fundamental"):60117,N=n?Symbol.for("react.responder"):60118,B=n?Symbol.for("react.scope"):60119;function j(a){if(typeof a=="object"&&a!==null){var q=a.$$typeof;switch(q){case g:switch(a=a.type,a){case P:case O:case l:case c:case f:case _:return a;default:switch(a=a&&a.$$typeof,a){case d:case E:case k:case C:case T:return a;default:return q}}case S:return q}}}function I(a){return j(a)===O}return R.AsyncMode=P,R.ConcurrentMode=O,R.ContextConsumer=d,R.ContextProvider=T,R.Element=g,R.ForwardRef=E,R.Fragment=l,R.Lazy=k,R.Memo=C,R.Portal=S,R.Profiler=c,R.StrictMode=f,R.Suspense=_,R.isAsyncMode=function(a){return I(a)||j(a)===P},R.isConcurrentMode=I,R.isContextConsumer=function(a){return j(a)===d},R.isContextProvider=function(a){return j(a)===T},R.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===g},R.isForwardRef=function(a){return j(a)===E},R.isFragment=function(a){return j(a)===l},R.isLazy=function(a){return j(a)===k},R.isMemo=function(a){return j(a)===C},R.isPortal=function(a){return j(a)===S},R.isProfiler=function(a){return j(a)===c},R.isStrictMode=function(a){return j(a)===f},R.isSuspense=function(a){return j(a)===_},R.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===l||a===O||a===c||a===f||a===_||a===x||typeof a=="object"&&a!==null&&(a.$$typeof===k||a.$$typeof===C||a.$$typeof===T||a.$$typeof===d||a.$$typeof===E||a.$$typeof===w||a.$$typeof===N||a.$$typeof===B||a.$$typeof===A)},R.typeOf=j,R}var h={};var Re;function We(){return Re||(Re=1,process.env.NODE_ENV!=="production"&&(function(){var n=typeof Symbol=="function"&&Symbol.for,g=n?Symbol.for("react.element"):60103,S=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,f=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,T=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,P=n?Symbol.for("react.async_mode"):60111,O=n?Symbol.for("react.concurrent_mode"):60111,E=n?Symbol.for("react.forward_ref"):60112,_=n?Symbol.for("react.suspense"):60113,x=n?Symbol.for("react.suspense_list"):60120,C=n?Symbol.for("react.memo"):60115,k=n?Symbol.for("react.lazy"):60116,A=n?Symbol.for("react.block"):60121,w=n?Symbol.for("react.fundamental"):60117,N=n?Symbol.for("react.responder"):60118,B=n?Symbol.for("react.scope"):60119;function j(o){return typeof o=="string"||typeof o=="function"||o===l||o===O||o===c||o===f||o===_||o===x||typeof o=="object"&&o!==null&&(o.$$typeof===k||o.$$typeof===C||o.$$typeof===T||o.$$typeof===d||o.$$typeof===E||o.$$typeof===w||o.$$typeof===N||o.$$typeof===B||o.$$typeof===A)}function I(o){if(typeof o=="object"&&o!==null){var Y=o.$$typeof;switch(Y){case g:var ce=o.type;switch(ce){case P:case O:case l:case c:case f:case _:return ce;default:var De=ce&&ce.$$typeof;switch(De){case d:case E:case k:case C:case T:return De;default:return Y}}case S:return Y}}}var a=P,q=O,te=d,ne=T,z=g,oe=E,X=l,G=k,Z=C,U=S,V=c,$=f,L=_,J=!1;function H(o){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),r(o)||I(o)===P}function r(o){return I(o)===O}function e(o){return I(o)===d}function t(o){return I(o)===T}function s(o){return typeof o=="object"&&o!==null&&o.$$typeof===g}function i(o){return I(o)===E}function v(o){return I(o)===l}function p(o){return I(o)===k}function u(o){return I(o)===C}function y(o){return I(o)===S}function m(o){return I(o)===c}function b(o){return I(o)===f}function M(o){return I(o)===_}h.AsyncMode=a,h.ConcurrentMode=q,h.ContextConsumer=te,h.ContextProvider=ne,h.Element=z,h.ForwardRef=oe,h.Fragment=X,h.Lazy=G,h.Memo=Z,h.Portal=U,h.Profiler=V,h.StrictMode=$,h.Suspense=L,h.isAsyncMode=H,h.isConcurrentMode=r,h.isContextConsumer=e,h.isContextProvider=t,h.isElement=s,h.isForwardRef=i,h.isFragment=v,h.isLazy=p,h.isMemo=u,h.isPortal=y,h.isProfiler=m,h.isStrictMode=b,h.isSuspense=M,h.isValidElementType=j,h.typeOf=I})()),h}var he;function Oe(){return he||(he=1,process.env.NODE_ENV==="production"?se.exports=Ue():se.exports=We()),se.exports}var fe,ge;function Be(){if(ge)return fe;ge=1;var n=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;function l(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function f(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var T={},d=0;d<10;d++)T["_"+String.fromCharCode(d)]=d;var P=Object.getOwnPropertyNames(T).map(function(E){return T[E]});if(P.join("")!=="0123456789")return!1;var O={};return"abcdefghijklmnopqrst".split("").forEach(function(E){O[E]=E}),Object.keys(Object.assign({},O)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fe=f()?Object.assign:function(c,T){for(var d,P=l(c),O,E=1;E<arguments.length;E++){d=Object(arguments[E]);for(var _ in d)g.call(d,_)&&(P[_]=d[_]);if(n){O=n(d);for(var x=0;x<O.length;x++)S.call(d,O[x])&&(P[O[x]]=d[O[x]])}}return P},fe}var le,Pe;function de(){if(Pe)return le;Pe=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return le=n,le}var pe,Ae;function Ce(){return Ae||(Ae=1,pe=Function.call.bind(Object.prototype.hasOwnProperty)),pe}var ye,xe;function ze(){if(xe)return ye;xe=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var g=de(),S={},l=Ce();n=function(c){var T="Warning: "+c;typeof console<"u"&&console.error(T);try{throw new Error(T)}catch{}}}function f(c,T,d,P,O){if(process.env.NODE_ENV!=="production"){for(var E in c)if(l(c,E)){var _;try{if(typeof c[E]!="function"){var x=Error((P||"React class")+": "+d+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}_=c[E](T,E,P,d,null,g)}catch(k){_=k}if(_&&!(_ instanceof Error)&&n((P||"React class")+": type specification of "+d+" `"+E+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in S)){S[_.message]=!0;var C=O?O():"";n("Failed "+d+" type: "+_.message+(C??""))}}}}return f.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(S={})},ye=f,ye}var ve,we;function Ge(){if(we)return ve;we=1;var n=Oe(),g=Be(),S=de(),l=Ce(),f=ze(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(d){var P="Warning: "+d;typeof console<"u"&&console.error(P);try{throw new Error(P)}catch{}});function T(){return null}return ve=function(d,P){var O=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function _(r){var e=r&&(O&&r[O]||r[E]);if(typeof e=="function")return e}var x="<<anonymous>>",C={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:B(),arrayOf:j,element:I(),elementType:a(),instanceOf:q,node:oe(),objectOf:ne,oneOf:te,oneOfType:z,shape:G,exact:Z};function k(r,e){return r===e?r!==0||1/r===1/e:r!==r&&e!==e}function A(r,e){this.message=r,this.data=e&&typeof e=="object"?e:{},this.stack=""}A.prototype=Error.prototype;function w(r){if(process.env.NODE_ENV!=="production")var e={},t=0;function s(v,p,u,y,m,b,M){if(y=y||x,b=b||u,M!==S){if(P){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=y+":"+u;!e[Y]&&t<3&&(c("You are manually calling a React.PropTypes validation function for the `"+b+"` prop on `"+y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[Y]=!0,t++)}}return p[u]==null?v?p[u]===null?new A("The "+m+" `"+b+"` is marked as required "+("in `"+y+"`, but its value is `null`.")):new A("The "+m+" `"+b+"` is marked as required in "+("`"+y+"`, but its value is `undefined`.")):null:r(p,u,y,m,b)}var i=s.bind(null,!1);return i.isRequired=s.bind(null,!0),i}function N(r){function e(t,s,i,v,p,u){var y=t[s],m=$(y);if(m!==r){var b=L(y);return new A("Invalid "+v+" `"+p+"` of type "+("`"+b+"` supplied to `"+i+"`, expected ")+("`"+r+"`."),{expectedType:r})}return null}return w(e)}function B(){return w(T)}function j(r){function e(t,s,i,v,p){if(typeof r!="function")return new A("Property `"+p+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var u=t[s];if(!Array.isArray(u)){var y=$(u);return new A("Invalid "+v+" `"+p+"` of type "+("`"+y+"` supplied to `"+i+"`, expected an array."))}for(var m=0;m<u.length;m++){var b=r(u,m,i,v,p+"["+m+"]",S);if(b instanceof Error)return b}return null}return w(e)}function I(){function r(e,t,s,i,v){var p=e[t];if(!d(p)){var u=$(p);return new A("Invalid "+i+" `"+v+"` of type "+("`"+u+"` supplied to `"+s+"`, expected a single ReactElement."))}return null}return w(r)}function a(){function r(e,t,s,i,v){var p=e[t];if(!n.isValidElementType(p)){var u=$(p);return new A("Invalid "+i+" `"+v+"` of type "+("`"+u+"` supplied to `"+s+"`, expected a single ReactElement type."))}return null}return w(r)}function q(r){function e(t,s,i,v,p){if(!(t[s]instanceof r)){var u=r.name||x,y=H(t[s]);return new A("Invalid "+v+" `"+p+"` of type "+("`"+y+"` supplied to `"+i+"`, expected ")+("instance of `"+u+"`."))}return null}return w(e)}function te(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array.")),T;function e(t,s,i,v,p){for(var u=t[s],y=0;y<r.length;y++)if(k(u,r[y]))return null;var m=JSON.stringify(r,function(M,o){var Y=L(o);return Y==="symbol"?String(o):o});return new A("Invalid "+v+" `"+p+"` of value `"+String(u)+"` "+("supplied to `"+i+"`, expected one of "+m+"."))}return w(e)}function ne(r){function e(t,s,i,v,p){if(typeof r!="function")return new A("Property `"+p+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=t[s],y=$(u);if(y!=="object")return new A("Invalid "+v+" `"+p+"` of type "+("`"+y+"` supplied to `"+i+"`, expected an object."));for(var m in u)if(l(u,m)){var b=r(u,m,i,v,p+"."+m,S);if(b instanceof Error)return b}return null}return w(e)}function z(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),T;for(var e=0;e<r.length;e++){var t=r[e];if(typeof t!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(t)+" at index "+e+"."),T}function s(i,v,p,u,y){for(var m=[],b=0;b<r.length;b++){var M=r[b],o=M(i,v,p,u,y,S);if(o==null)return null;o.data&&l(o.data,"expectedType")&&m.push(o.data.expectedType)}var Y=m.length>0?", expected one of type ["+m.join(", ")+"]":"";return new A("Invalid "+u+" `"+y+"` supplied to "+("`"+p+"`"+Y+"."))}return w(s)}function oe(){function r(e,t,s,i,v){return U(e[t])?null:new A("Invalid "+i+" `"+v+"` supplied to "+("`"+s+"`, expected a ReactNode."))}return w(r)}function X(r,e,t,s,i){return new A((r||"React class")+": "+e+" type `"+t+"."+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function G(r){function e(t,s,i,v,p){var u=t[s],y=$(u);if(y!=="object")return new A("Invalid "+v+" `"+p+"` of type `"+y+"` "+("supplied to `"+i+"`, expected `object`."));for(var m in r){var b=r[m];if(typeof b!="function")return X(i,v,p,m,L(b));var M=b(u,m,i,v,p+"."+m,S);if(M)return M}return null}return w(e)}function Z(r){function e(t,s,i,v,p){var u=t[s],y=$(u);if(y!=="object")return new A("Invalid "+v+" `"+p+"` of type `"+y+"` "+("supplied to `"+i+"`, expected `object`."));var m=g({},t[s],r);for(var b in m){var M=r[b];if(l(r,b)&&typeof M!="function")return X(i,v,p,b,L(M));if(!M)return new A("Invalid "+v+" `"+p+"` key `"+b+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[s],null," ")+`
|
|
7
|
+
Valid keys: `+JSON.stringify(Object.keys(r),null," "));var o=M(u,b,i,v,p+"."+b,S);if(o)return o}return null}return w(e)}function U(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(U);if(r===null||d(r))return!0;var e=_(r);if(e){var t=e.call(r),s;if(e!==r.entries){for(;!(s=t.next()).done;)if(!U(s.value))return!1}else for(;!(s=t.next()).done;){var i=s.value;if(i&&!U(i[1]))return!1}}else return!1;return!0;default:return!1}}function V(r,e){return r==="symbol"?!0:e?e["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&e instanceof Symbol:!1}function $(r){var e=typeof r;return Array.isArray(r)?"array":r instanceof RegExp?"object":V(e,r)?"symbol":e}function L(r){if(typeof r>"u"||r===null)return""+r;var e=$(r);if(e==="object"){if(r instanceof Date)return"date";if(r instanceof RegExp)return"regexp"}return e}function J(r){var e=L(r);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function H(r){return!r.constructor||!r.constructor.name?x:r.constructor.name}return C.checkPropTypes=f,C.resetWarningCache=f.resetWarningCache,C.PropTypes=C,C},ve}var Ee,Ie;function Ve(){if(Ie)return Ee;Ie=1;var n=de();function g(){}function S(){}return S.resetWarningCache=g,Ee=function(){function l(T,d,P,O,E,_){if(_!==n){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}l.isRequired=l;function f(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:f,element:l,elementType:l,instanceOf:f,node:l,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:S,resetWarningCache:g};return c.PropTypes=c,c},Ee}var je;function Je(){if(je)return ie.exports;if(je=1,process.env.NODE_ENV!=="production"){var n=Oe(),g=!0;ie.exports=Ge()(n.isElement,g)}else ie.exports=Ve()();return ie.exports}var Xe=Je();const F=Le(Xe),ke={SMALL:"small",MEDIUM:"medium",LARGE:"large"},Ze=Object.values(ke),Ne={ENABLED:"enabled",DISABLED:"disabled"},Me={FALSE:!1},He={EMPTY:""},Qe={BUTTON:"button"},$e={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ke=Object.values($e),ue={LOADING:"btn-loading",SPINNER:"btn-spinner",LOADING_TEXT:"btn-loading-text",SIZE_PREFIX:"btn-"},D={SIZE:ke.MEDIUM,DISABLED:Me.FALSE,LOADING:Me.FALSE,TYPE:$e.BUTTON,CLASS_NAME:He.EMPTY};function be(n){const{label:g,size:S=D.SIZE,disabled:l=D.DISABLED,loading:f=D.LOADING,onClick:c,type:T=D.TYPE,ariaLabel:d,className:P=D.CLASS_NAME,...O}=n,E=l||f?Ne.DISABLED:Ne.ENABLED,_=`${ue.SIZE_PREFIX}${S}`,x=f?ue.LOADING:"",C=`${_} ${E} ${x} ${P}`.trim(),k=A=>{if(l||f){A.preventDefault();return}c&&c(A)};return re.jsx("button",{type:T,className:C,disabled:l||f,onClick:k,"aria-label":d||g,"aria-busy":f,"aria-disabled":l||f,role:Qe.BUTTON,...O,children:f?re.jsxs(re.Fragment,{children:[re.jsx("span",{className:ue.SPINNER,"aria-hidden":"true"}),re.jsx("span",{className:ue.LOADING_TEXT,children:g})]}):g})}be.propTypes={label:F.string.isRequired,size:F.oneOf(Ze),disabled:F.bool,loading:F.bool,onClick:F.func,type:F.oneOf(Ke),ariaLabel:F.string,className:F.string},be.defaultProps={size:D.SIZE,disabled:D.DISABLED,loading:D.LOADING,type:D.TYPE,className:D.CLASS_NAME},W.Button=be,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ui-components-evelynt",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/ui-components.umd.js",
|
|
7
|
+
"module": "dist/ui-components.es.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/ui-components.es.js",
|
|
11
|
+
"require": "./dist/ui-components.umd.js",
|
|
12
|
+
"default": "./dist/ui-components.es.js"
|
|
13
|
+
},
|
|
14
|
+
"./global-styles.css": "./dist/ui-components.css"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "vite build",
|
|
19
|
+
"lint": "eslint .",
|
|
20
|
+
"preview": "vite preview"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"prop-types": "^15.8.1",
|
|
27
|
+
"react": "^19.2.0",
|
|
28
|
+
"react-dom": "^19.2.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@eslint/js": "^9.39.1",
|
|
32
|
+
"@types/react": "^19.2.5",
|
|
33
|
+
"@types/react-dom": "^19.2.3",
|
|
34
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
35
|
+
"eslint": "^9.39.1",
|
|
36
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
37
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
38
|
+
"globals": "^16.5.0",
|
|
39
|
+
"vite": "^7.2.4"
|
|
40
|
+
}
|
|
41
|
+
}
|