@youversion/design-system-components 0.0.1 → 0.0.2
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/CHANGELOG.md +19 -0
- package/dist/index.es.js +626 -386
- package/dist/index.umd.js +10 -10
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,68 +1,69 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
if (
|
|
5
|
-
if (typeof
|
|
6
|
-
return
|
|
7
|
-
if (typeof
|
|
8
|
-
return
|
|
1
|
+
import m from "clsx";
|
|
2
|
+
import W, { forwardRef as B, createElement as Ge, useEffect as Rt, useRef as wt } from "react";
|
|
3
|
+
const fe = (n) => {
|
|
4
|
+
if (n) {
|
|
5
|
+
if (typeof n != "string" && n)
|
|
6
|
+
return m(n.lightMode, n.darkMode);
|
|
7
|
+
if (typeof n == "string")
|
|
8
|
+
return n;
|
|
9
9
|
}
|
|
10
|
-
},
|
|
11
|
-
if (
|
|
12
|
-
if (typeof
|
|
13
|
-
return
|
|
14
|
-
if (typeof
|
|
15
|
-
return
|
|
10
|
+
}, Le = (n) => {
|
|
11
|
+
if (n) {
|
|
12
|
+
if (typeof n != "string" && n)
|
|
13
|
+
return m(n.block, n.blockEnd, n.blockStart, n.inline, n.inlineEnd, n.inlineStart);
|
|
14
|
+
if (typeof n == "string")
|
|
15
|
+
return n;
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
background:
|
|
19
|
-
borderColor:
|
|
20
|
-
borderRadius:
|
|
21
|
-
borderWidth:
|
|
22
|
-
className:
|
|
23
|
-
component:
|
|
24
|
-
color:
|
|
25
|
-
elevation:
|
|
26
|
-
height:
|
|
27
|
-
margin:
|
|
17
|
+
}, Tt = ({
|
|
18
|
+
background: n,
|
|
19
|
+
borderColor: l,
|
|
20
|
+
borderRadius: u,
|
|
21
|
+
borderWidth: f,
|
|
22
|
+
className: h,
|
|
23
|
+
component: w = "div",
|
|
24
|
+
color: k,
|
|
25
|
+
elevation: b = 0,
|
|
26
|
+
height: d,
|
|
27
|
+
margin: y,
|
|
28
28
|
padding: v,
|
|
29
|
-
width:
|
|
30
|
-
...
|
|
31
|
-
},
|
|
32
|
-
const
|
|
29
|
+
width: T,
|
|
30
|
+
...S
|
|
31
|
+
}, N) => {
|
|
32
|
+
const E = {
|
|
33
33
|
0: "",
|
|
34
34
|
1: "shadow-light-1 dark:shadow-dark-1",
|
|
35
35
|
2: "shadow-light-2 dark:shadow-dark-2",
|
|
36
36
|
4: "shadow-light-4 dark:shadow-dark-4",
|
|
37
37
|
8: "shadow-light-8 dark:shadow-dark-8",
|
|
38
38
|
12: "shadow-light-12 dark:shadow-dark-12"
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
}, $ = fe(k), D = fe(n), O = fe(l), g = Le(v), Y = Le(y), I = m(
|
|
40
|
+
u,
|
|
41
|
+
f,
|
|
42
|
+
E[b],
|
|
43
|
+
Y,
|
|
44
|
+
g,
|
|
45
|
+
$,
|
|
46
|
+
D,
|
|
47
|
+
O,
|
|
48
|
+
T,
|
|
44
49
|
d,
|
|
45
|
-
|
|
46
|
-
q,
|
|
47
|
-
w,
|
|
48
|
-
h,
|
|
49
|
-
c,
|
|
50
|
-
S
|
|
50
|
+
h
|
|
51
51
|
);
|
|
52
|
-
return
|
|
53
|
-
className:
|
|
54
|
-
...
|
|
55
|
-
ref:
|
|
52
|
+
return Ge(w, {
|
|
53
|
+
className: I,
|
|
54
|
+
...S,
|
|
55
|
+
ref: N
|
|
56
56
|
});
|
|
57
|
-
},
|
|
58
|
-
|
|
57
|
+
}, He = B(Tt);
|
|
58
|
+
He.displayName = "Box";
|
|
59
|
+
var te = {}, Ct = {
|
|
59
60
|
get exports() {
|
|
60
|
-
return
|
|
61
|
+
return te;
|
|
61
62
|
},
|
|
62
|
-
set exports(
|
|
63
|
-
|
|
63
|
+
set exports(n) {
|
|
64
|
+
te = n;
|
|
64
65
|
}
|
|
65
|
-
},
|
|
66
|
+
}, q = {};
|
|
66
67
|
/**
|
|
67
68
|
* @license React
|
|
68
69
|
* react-jsx-runtime.production.min.js
|
|
@@ -72,25 +73,25 @@ var ne = {}, pr = {
|
|
|
72
73
|
* This source code is licensed under the MIT license found in the
|
|
73
74
|
* LICENSE file in the root directory of this source tree.
|
|
74
75
|
*/
|
|
75
|
-
var
|
|
76
|
-
function
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
79
|
-
|
|
80
|
-
var
|
|
81
|
-
function
|
|
82
|
-
var v,
|
|
83
|
-
|
|
84
|
-
for (v in
|
|
85
|
-
|
|
86
|
-
if (
|
|
87
|
-
for (v in
|
|
88
|
-
|
|
89
|
-
return { $$typeof:
|
|
76
|
+
var Ve;
|
|
77
|
+
function St() {
|
|
78
|
+
if (Ve)
|
|
79
|
+
return q;
|
|
80
|
+
Ve = 1;
|
|
81
|
+
var n = W, l = Symbol.for("react.element"), u = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, h = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
82
|
+
function k(b, d, y) {
|
|
83
|
+
var v, T = {}, S = null, N = null;
|
|
84
|
+
y !== void 0 && (S = "" + y), d.key !== void 0 && (S = "" + d.key), d.ref !== void 0 && (N = d.ref);
|
|
85
|
+
for (v in d)
|
|
86
|
+
f.call(d, v) && !w.hasOwnProperty(v) && (T[v] = d[v]);
|
|
87
|
+
if (b && b.defaultProps)
|
|
88
|
+
for (v in d = b.defaultProps, d)
|
|
89
|
+
T[v] === void 0 && (T[v] = d[v]);
|
|
90
|
+
return { $$typeof: l, type: b, key: S, ref: N, props: T, _owner: h.current };
|
|
90
91
|
}
|
|
91
|
-
return
|
|
92
|
+
return q.Fragment = u, q.jsx = k, q.jsxs = k, q;
|
|
92
93
|
}
|
|
93
|
-
var
|
|
94
|
+
var J = {};
|
|
94
95
|
/**
|
|
95
96
|
* @license React
|
|
96
97
|
* react-jsx-runtime.development.js
|
|
@@ -100,91 +101,91 @@ var I = {};
|
|
|
100
101
|
* This source code is licensed under the MIT license found in the
|
|
101
102
|
* LICENSE file in the root directory of this source tree.
|
|
102
103
|
*/
|
|
103
|
-
var
|
|
104
|
-
function
|
|
105
|
-
return
|
|
106
|
-
var
|
|
107
|
-
function
|
|
104
|
+
var We;
|
|
105
|
+
function Ot() {
|
|
106
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
107
|
+
var n = W, l = Symbol.for("react.element"), u = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), b = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), E = Symbol.iterator, $ = "@@iterator";
|
|
108
|
+
function D(e) {
|
|
108
109
|
if (e === null || typeof e != "object")
|
|
109
110
|
return null;
|
|
110
|
-
var
|
|
111
|
-
return typeof
|
|
111
|
+
var t = E && e[E] || e[$];
|
|
112
|
+
return typeof t == "function" ? t : null;
|
|
112
113
|
}
|
|
113
|
-
var
|
|
114
|
-
function
|
|
114
|
+
var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
115
|
+
function g(e) {
|
|
115
116
|
{
|
|
116
|
-
for (var
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
118
|
+
r[a - 1] = arguments[a];
|
|
119
|
+
Y("error", e, r);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function Y(e, t, r) {
|
|
122
123
|
{
|
|
123
|
-
var
|
|
124
|
-
s !== "" && (
|
|
125
|
-
var
|
|
126
|
-
return String(
|
|
124
|
+
var a = O.ReactDebugCurrentFrame, s = a.getStackAddendum();
|
|
125
|
+
s !== "" && (t += "%s", r = r.concat([s]));
|
|
126
|
+
var c = r.map(function(i) {
|
|
127
|
+
return String(i);
|
|
127
128
|
});
|
|
128
|
-
|
|
129
|
+
c.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, c);
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
var
|
|
132
|
-
|
|
133
|
-
function
|
|
134
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
132
|
+
var I = !1, re = !1, A = !1, H = !1, Xe = !1, ve;
|
|
133
|
+
ve = Symbol.for("react.module.reference");
|
|
134
|
+
function Ze(e) {
|
|
135
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === w || Xe || e === h || e === y || e === v || H || e === N || I || re || A || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === T || e.$$typeof === k || e.$$typeof === b || e.$$typeof === d || // This needs to include all possible module reference object
|
|
135
136
|
// types supported by any Flight configuration anywhere since
|
|
136
137
|
// we don't know which Flight build this will end up being used
|
|
137
138
|
// with.
|
|
138
|
-
e.$$typeof ===
|
|
139
|
+
e.$$typeof === ve || e.getModuleId !== void 0));
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
-
var
|
|
142
|
-
if (
|
|
143
|
-
return
|
|
144
|
-
var s =
|
|
145
|
-
return s !== "" ?
|
|
141
|
+
function Qe(e, t, r) {
|
|
142
|
+
var a = e.displayName;
|
|
143
|
+
if (a)
|
|
144
|
+
return a;
|
|
145
|
+
var s = t.displayName || t.name || "";
|
|
146
|
+
return s !== "" ? r + "(" + s + ")" : r;
|
|
146
147
|
}
|
|
147
|
-
function
|
|
148
|
+
function pe(e) {
|
|
148
149
|
return e.displayName || "Context";
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function P(e) {
|
|
151
152
|
if (e == null)
|
|
152
153
|
return null;
|
|
153
|
-
if (typeof e.tag == "number" &&
|
|
154
|
+
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
154
155
|
return e.displayName || e.name || null;
|
|
155
156
|
if (typeof e == "string")
|
|
156
157
|
return e;
|
|
157
158
|
switch (e) {
|
|
158
|
-
case
|
|
159
|
+
case f:
|
|
159
160
|
return "Fragment";
|
|
160
|
-
case
|
|
161
|
+
case u:
|
|
161
162
|
return "Portal";
|
|
162
|
-
case
|
|
163
|
+
case w:
|
|
163
164
|
return "Profiler";
|
|
164
|
-
case
|
|
165
|
+
case h:
|
|
165
166
|
return "StrictMode";
|
|
166
|
-
case
|
|
167
|
+
case y:
|
|
167
168
|
return "Suspense";
|
|
168
169
|
case v:
|
|
169
170
|
return "SuspenseList";
|
|
170
171
|
}
|
|
171
172
|
if (typeof e == "object")
|
|
172
173
|
switch (e.$$typeof) {
|
|
173
|
-
case
|
|
174
|
-
var r = e;
|
|
175
|
-
return oe(r) + ".Consumer";
|
|
176
|
-
case O:
|
|
174
|
+
case b:
|
|
177
175
|
var t = e;
|
|
178
|
-
return
|
|
179
|
-
case
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
return
|
|
184
|
-
case
|
|
185
|
-
var
|
|
176
|
+
return pe(t) + ".Consumer";
|
|
177
|
+
case k:
|
|
178
|
+
var r = e;
|
|
179
|
+
return pe(r._context) + ".Provider";
|
|
180
|
+
case d:
|
|
181
|
+
return Qe(e, e.render, "ForwardRef");
|
|
182
|
+
case T:
|
|
183
|
+
var a = e.displayName || null;
|
|
184
|
+
return a !== null ? a : P(e.type) || "Memo";
|
|
185
|
+
case S: {
|
|
186
|
+
var s = e, c = s._payload, i = s._init;
|
|
186
187
|
try {
|
|
187
|
-
return
|
|
188
|
+
return P(i(c));
|
|
188
189
|
} catch {
|
|
189
190
|
return null;
|
|
190
191
|
}
|
|
@@ -192,18 +193,18 @@ function hr() {
|
|
|
192
193
|
}
|
|
193
194
|
return null;
|
|
194
195
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
196
|
+
var F = Object.assign, M = 0, me, ge, xe, he, be, ye, Ee;
|
|
197
|
+
function _e() {
|
|
197
198
|
}
|
|
198
|
-
|
|
199
|
-
function
|
|
199
|
+
_e.__reactDisabledLog = !0;
|
|
200
|
+
function ze() {
|
|
200
201
|
{
|
|
201
|
-
if (
|
|
202
|
-
|
|
202
|
+
if (M === 0) {
|
|
203
|
+
me = console.log, ge = console.info, xe = console.warn, he = console.error, be = console.group, ye = console.groupCollapsed, Ee = console.groupEnd;
|
|
203
204
|
var e = {
|
|
204
205
|
configurable: !0,
|
|
205
206
|
enumerable: !0,
|
|
206
|
-
value:
|
|
207
|
+
value: _e,
|
|
207
208
|
writable: !0
|
|
208
209
|
};
|
|
209
210
|
Object.defineProperties(console, {
|
|
@@ -216,336 +217,336 @@ function hr() {
|
|
|
216
217
|
groupEnd: e
|
|
217
218
|
});
|
|
218
219
|
}
|
|
219
|
-
|
|
220
|
+
M++;
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
|
-
function
|
|
223
|
+
function et() {
|
|
223
224
|
{
|
|
224
|
-
if (
|
|
225
|
+
if (M--, M === 0) {
|
|
225
226
|
var e = {
|
|
226
227
|
configurable: !0,
|
|
227
228
|
enumerable: !0,
|
|
228
229
|
writable: !0
|
|
229
230
|
};
|
|
230
231
|
Object.defineProperties(console, {
|
|
231
|
-
log:
|
|
232
|
-
value:
|
|
232
|
+
log: F({}, e, {
|
|
233
|
+
value: me
|
|
233
234
|
}),
|
|
234
|
-
info:
|
|
235
|
-
value:
|
|
235
|
+
info: F({}, e, {
|
|
236
|
+
value: ge
|
|
236
237
|
}),
|
|
237
|
-
warn:
|
|
238
|
-
value:
|
|
238
|
+
warn: F({}, e, {
|
|
239
|
+
value: xe
|
|
239
240
|
}),
|
|
240
|
-
error:
|
|
241
|
-
value:
|
|
241
|
+
error: F({}, e, {
|
|
242
|
+
value: he
|
|
242
243
|
}),
|
|
243
|
-
group:
|
|
244
|
-
value:
|
|
244
|
+
group: F({}, e, {
|
|
245
|
+
value: be
|
|
245
246
|
}),
|
|
246
|
-
groupCollapsed:
|
|
247
|
-
value:
|
|
247
|
+
groupCollapsed: F({}, e, {
|
|
248
|
+
value: ye
|
|
248
249
|
}),
|
|
249
|
-
groupEnd:
|
|
250
|
-
value:
|
|
250
|
+
groupEnd: F({}, e, {
|
|
251
|
+
value: Ee
|
|
251
252
|
})
|
|
252
253
|
});
|
|
253
254
|
}
|
|
254
|
-
|
|
255
|
+
M < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
258
|
+
var ne = O.ReactCurrentDispatcher, ae;
|
|
259
|
+
function K(e, t, r) {
|
|
259
260
|
{
|
|
260
|
-
if (
|
|
261
|
+
if (ae === void 0)
|
|
261
262
|
try {
|
|
262
263
|
throw Error();
|
|
263
264
|
} catch (s) {
|
|
264
|
-
var
|
|
265
|
-
|
|
265
|
+
var a = s.stack.trim().match(/\n( *(at )?)/);
|
|
266
|
+
ae = a && a[1] || "";
|
|
266
267
|
}
|
|
267
268
|
return `
|
|
268
|
-
` +
|
|
269
|
+
` + ae + e;
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
|
-
var
|
|
272
|
+
var oe = !1, X;
|
|
272
273
|
{
|
|
273
|
-
var
|
|
274
|
-
|
|
274
|
+
var tt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
275
|
+
X = new tt();
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
if (!e ||
|
|
277
|
+
function ke(e, t) {
|
|
278
|
+
if (!e || oe)
|
|
278
279
|
return "";
|
|
279
280
|
{
|
|
280
|
-
var
|
|
281
|
-
if (
|
|
282
|
-
return
|
|
281
|
+
var r = X.get(e);
|
|
282
|
+
if (r !== void 0)
|
|
283
|
+
return r;
|
|
283
284
|
}
|
|
284
|
-
var
|
|
285
|
-
|
|
285
|
+
var a;
|
|
286
|
+
oe = !0;
|
|
286
287
|
var s = Error.prepareStackTrace;
|
|
287
288
|
Error.prepareStackTrace = void 0;
|
|
288
|
-
var
|
|
289
|
-
|
|
289
|
+
var c;
|
|
290
|
+
c = ne.current, ne.current = null, ze();
|
|
290
291
|
try {
|
|
291
|
-
if (
|
|
292
|
-
var
|
|
292
|
+
if (t) {
|
|
293
|
+
var i = function() {
|
|
293
294
|
throw Error();
|
|
294
295
|
};
|
|
295
|
-
if (Object.defineProperty(
|
|
296
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
296
297
|
set: function() {
|
|
297
298
|
throw Error();
|
|
298
299
|
}
|
|
299
300
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
300
301
|
try {
|
|
301
|
-
Reflect.construct(
|
|
302
|
-
} catch (
|
|
303
|
-
|
|
302
|
+
Reflect.construct(i, []);
|
|
303
|
+
} catch (j) {
|
|
304
|
+
a = j;
|
|
304
305
|
}
|
|
305
|
-
Reflect.construct(e, [],
|
|
306
|
+
Reflect.construct(e, [], i);
|
|
306
307
|
} else {
|
|
307
308
|
try {
|
|
308
|
-
|
|
309
|
-
} catch (
|
|
310
|
-
|
|
309
|
+
i.call();
|
|
310
|
+
} catch (j) {
|
|
311
|
+
a = j;
|
|
311
312
|
}
|
|
312
|
-
e.call(
|
|
313
|
+
e.call(i.prototype);
|
|
313
314
|
}
|
|
314
315
|
} else {
|
|
315
316
|
try {
|
|
316
317
|
throw Error();
|
|
317
|
-
} catch (
|
|
318
|
-
|
|
318
|
+
} catch (j) {
|
|
319
|
+
a = j;
|
|
319
320
|
}
|
|
320
321
|
e();
|
|
321
322
|
}
|
|
322
|
-
} catch (
|
|
323
|
-
if (
|
|
324
|
-
for (var
|
|
325
|
-
`),
|
|
326
|
-
`),
|
|
327
|
-
|
|
328
|
-
for (;
|
|
329
|
-
if (
|
|
330
|
-
if (
|
|
323
|
+
} catch (j) {
|
|
324
|
+
if (j && a && typeof j.stack == "string") {
|
|
325
|
+
for (var o = j.stack.split(`
|
|
326
|
+
`), _ = a.stack.split(`
|
|
327
|
+
`), p = o.length - 1, x = _.length - 1; p >= 1 && x >= 0 && o[p] !== _[x]; )
|
|
328
|
+
x--;
|
|
329
|
+
for (; p >= 1 && x >= 0; p--, x--)
|
|
330
|
+
if (o[p] !== _[x]) {
|
|
331
|
+
if (p !== 1 || x !== 1)
|
|
331
332
|
do
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
334
|
-
` +
|
|
335
|
-
return e.displayName &&
|
|
333
|
+
if (p--, x--, x < 0 || o[p] !== _[x]) {
|
|
334
|
+
var C = `
|
|
335
|
+
` + o[p].replace(" at new ", " at ");
|
|
336
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, C), C;
|
|
336
337
|
}
|
|
337
|
-
while (
|
|
338
|
+
while (p >= 1 && x >= 0);
|
|
338
339
|
break;
|
|
339
340
|
}
|
|
340
341
|
}
|
|
341
342
|
} finally {
|
|
342
|
-
|
|
343
|
+
oe = !1, ne.current = c, et(), Error.prepareStackTrace = s;
|
|
343
344
|
}
|
|
344
|
-
var
|
|
345
|
-
return typeof e == "function" &&
|
|
345
|
+
var V = e ? e.displayName || e.name : "", Ae = V ? K(V) : "";
|
|
346
|
+
return typeof e == "function" && X.set(e, Ae), Ae;
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
348
|
+
function rt(e, t, r) {
|
|
349
|
+
return ke(e, !1);
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
-
var
|
|
352
|
-
return !!(
|
|
351
|
+
function nt(e) {
|
|
352
|
+
var t = e.prototype;
|
|
353
|
+
return !!(t && t.isReactComponent);
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
+
function Z(e, t, r) {
|
|
355
356
|
if (e == null)
|
|
356
357
|
return "";
|
|
357
358
|
if (typeof e == "function")
|
|
358
|
-
return
|
|
359
|
+
return ke(e, nt(e));
|
|
359
360
|
if (typeof e == "string")
|
|
360
|
-
return
|
|
361
|
+
return K(e);
|
|
361
362
|
switch (e) {
|
|
362
|
-
case
|
|
363
|
-
return
|
|
363
|
+
case y:
|
|
364
|
+
return K("Suspense");
|
|
364
365
|
case v:
|
|
365
|
-
return
|
|
366
|
+
return K("SuspenseList");
|
|
366
367
|
}
|
|
367
368
|
if (typeof e == "object")
|
|
368
369
|
switch (e.$$typeof) {
|
|
369
|
-
case
|
|
370
|
-
return
|
|
371
|
-
case
|
|
372
|
-
return
|
|
373
|
-
case
|
|
374
|
-
var
|
|
370
|
+
case d:
|
|
371
|
+
return rt(e.render);
|
|
372
|
+
case T:
|
|
373
|
+
return Z(e.type, t, r);
|
|
374
|
+
case S: {
|
|
375
|
+
var a = e, s = a._payload, c = a._init;
|
|
375
376
|
try {
|
|
376
|
-
return
|
|
377
|
+
return Z(c(s), t, r);
|
|
377
378
|
} catch {
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
382
|
return "";
|
|
382
383
|
}
|
|
383
|
-
var
|
|
384
|
-
function
|
|
384
|
+
var Q = Object.prototype.hasOwnProperty, Re = {}, we = O.ReactDebugCurrentFrame;
|
|
385
|
+
function z(e) {
|
|
385
386
|
if (e) {
|
|
386
|
-
var
|
|
387
|
-
|
|
387
|
+
var t = e._owner, r = Z(e.type, e._source, t ? t.type : null);
|
|
388
|
+
we.setExtraStackFrame(r);
|
|
388
389
|
} else
|
|
389
|
-
|
|
390
|
+
we.setExtraStackFrame(null);
|
|
390
391
|
}
|
|
391
|
-
function
|
|
392
|
+
function at(e, t, r, a, s) {
|
|
392
393
|
{
|
|
393
|
-
var
|
|
394
|
-
for (var
|
|
395
|
-
if (
|
|
396
|
-
var
|
|
394
|
+
var c = Function.call.bind(Q);
|
|
395
|
+
for (var i in e)
|
|
396
|
+
if (c(e, i)) {
|
|
397
|
+
var o = void 0;
|
|
397
398
|
try {
|
|
398
|
-
if (typeof e[
|
|
399
|
-
var
|
|
400
|
-
throw
|
|
399
|
+
if (typeof e[i] != "function") {
|
|
400
|
+
var _ = Error((a || "React class") + ": " + r + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
401
|
+
throw _.name = "Invariant Violation", _;
|
|
401
402
|
}
|
|
402
|
-
|
|
403
|
-
} catch (
|
|
404
|
-
|
|
403
|
+
o = e[i](t, i, a, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
404
|
+
} catch (p) {
|
|
405
|
+
o = p;
|
|
405
406
|
}
|
|
406
|
-
|
|
407
|
+
o && !(o instanceof Error) && (z(s), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", r, i, typeof o), z(null)), o instanceof Error && !(o.message in Re) && (Re[o.message] = !0, z(s), g("Failed %s type: %s", r, o.message), z(null));
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
}
|
|
410
|
-
var
|
|
411
|
-
function
|
|
412
|
-
return
|
|
411
|
+
var ot = Array.isArray;
|
|
412
|
+
function ie(e) {
|
|
413
|
+
return ot(e);
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
+
function it(e) {
|
|
415
416
|
{
|
|
416
|
-
var
|
|
417
|
-
return
|
|
417
|
+
var t = typeof Symbol == "function" && Symbol.toStringTag, r = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
418
|
+
return r;
|
|
418
419
|
}
|
|
419
420
|
}
|
|
420
|
-
function
|
|
421
|
+
function st(e) {
|
|
421
422
|
try {
|
|
422
|
-
return
|
|
423
|
+
return Te(e), !1;
|
|
423
424
|
} catch {
|
|
424
425
|
return !0;
|
|
425
426
|
}
|
|
426
427
|
}
|
|
427
|
-
function
|
|
428
|
+
function Te(e) {
|
|
428
429
|
return "" + e;
|
|
429
430
|
}
|
|
430
|
-
function
|
|
431
|
-
if (
|
|
432
|
-
return
|
|
431
|
+
function Ce(e) {
|
|
432
|
+
if (st(e))
|
|
433
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(e)), Te(e);
|
|
433
434
|
}
|
|
434
|
-
var
|
|
435
|
+
var U = O.ReactCurrentOwner, lt = {
|
|
435
436
|
key: !0,
|
|
436
437
|
ref: !0,
|
|
437
438
|
__self: !0,
|
|
438
439
|
__source: !0
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
function
|
|
442
|
-
if (
|
|
443
|
-
var
|
|
444
|
-
if (
|
|
440
|
+
}, Se, Oe, se;
|
|
441
|
+
se = {};
|
|
442
|
+
function ut(e) {
|
|
443
|
+
if (Q.call(e, "ref")) {
|
|
444
|
+
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
445
|
+
if (t && t.isReactWarning)
|
|
445
446
|
return !1;
|
|
446
447
|
}
|
|
447
448
|
return e.ref !== void 0;
|
|
448
449
|
}
|
|
449
|
-
function
|
|
450
|
-
if (
|
|
451
|
-
var
|
|
452
|
-
if (
|
|
450
|
+
function ct(e) {
|
|
451
|
+
if (Q.call(e, "key")) {
|
|
452
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
453
|
+
if (t && t.isReactWarning)
|
|
453
454
|
return !1;
|
|
454
455
|
}
|
|
455
456
|
return e.key !== void 0;
|
|
456
457
|
}
|
|
457
|
-
function
|
|
458
|
-
if (typeof e.ref == "string" &&
|
|
459
|
-
var
|
|
460
|
-
|
|
458
|
+
function ft(e, t) {
|
|
459
|
+
if (typeof e.ref == "string" && U.current && t && U.current.stateNode !== t) {
|
|
460
|
+
var r = P(U.current.type);
|
|
461
|
+
se[r] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(U.current.type), e.ref), se[r] = !0);
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
+
function dt(e, t) {
|
|
464
465
|
{
|
|
465
|
-
var
|
|
466
|
-
|
|
466
|
+
var r = function() {
|
|
467
|
+
Se || (Se = !0, g("%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://reactjs.org/link/special-props)", t));
|
|
467
468
|
};
|
|
468
|
-
|
|
469
|
-
get:
|
|
469
|
+
r.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
470
|
+
get: r,
|
|
470
471
|
configurable: !0
|
|
471
472
|
});
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
|
-
function
|
|
475
|
+
function vt(e, t) {
|
|
475
476
|
{
|
|
476
|
-
var
|
|
477
|
-
|
|
477
|
+
var r = function() {
|
|
478
|
+
Oe || (Oe = !0, g("%s: `ref` 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://reactjs.org/link/special-props)", t));
|
|
478
479
|
};
|
|
479
|
-
|
|
480
|
-
get:
|
|
480
|
+
r.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
481
|
+
get: r,
|
|
481
482
|
configurable: !0
|
|
482
483
|
});
|
|
483
484
|
}
|
|
484
485
|
}
|
|
485
|
-
var
|
|
486
|
-
var
|
|
486
|
+
var pt = function(e, t, r, a, s, c, i) {
|
|
487
|
+
var o = {
|
|
487
488
|
// This tag allows us to uniquely identify this as a React Element
|
|
488
|
-
$$typeof:
|
|
489
|
+
$$typeof: l,
|
|
489
490
|
// Built-in properties that belong on the element
|
|
490
491
|
type: e,
|
|
491
|
-
key:
|
|
492
|
-
ref:
|
|
493
|
-
props:
|
|
492
|
+
key: t,
|
|
493
|
+
ref: r,
|
|
494
|
+
props: i,
|
|
494
495
|
// Record the component responsible for creating this element.
|
|
495
|
-
_owner:
|
|
496
|
+
_owner: c
|
|
496
497
|
};
|
|
497
|
-
return
|
|
498
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
498
499
|
configurable: !1,
|
|
499
500
|
enumerable: !1,
|
|
500
501
|
writable: !0,
|
|
501
502
|
value: !1
|
|
502
|
-
}), Object.defineProperty(
|
|
503
|
+
}), Object.defineProperty(o, "_self", {
|
|
503
504
|
configurable: !1,
|
|
504
505
|
enumerable: !1,
|
|
505
506
|
writable: !1,
|
|
506
|
-
value:
|
|
507
|
-
}), Object.defineProperty(
|
|
507
|
+
value: a
|
|
508
|
+
}), Object.defineProperty(o, "_source", {
|
|
508
509
|
configurable: !1,
|
|
509
510
|
enumerable: !1,
|
|
510
511
|
writable: !1,
|
|
511
512
|
value: s
|
|
512
|
-
}), Object.freeze && (Object.freeze(
|
|
513
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
513
514
|
};
|
|
514
|
-
function
|
|
515
|
+
function mt(e, t, r, a, s) {
|
|
515
516
|
{
|
|
516
|
-
var
|
|
517
|
-
|
|
518
|
-
for (
|
|
519
|
-
|
|
517
|
+
var c, i = {}, o = null, _ = null;
|
|
518
|
+
r !== void 0 && (Ce(r), o = "" + r), ct(t) && (Ce(t.key), o = "" + t.key), ut(t) && (_ = t.ref, ft(t, s));
|
|
519
|
+
for (c in t)
|
|
520
|
+
Q.call(t, c) && !lt.hasOwnProperty(c) && (i[c] = t[c]);
|
|
520
521
|
if (e && e.defaultProps) {
|
|
521
|
-
var
|
|
522
|
-
for (
|
|
523
|
-
|
|
522
|
+
var p = e.defaultProps;
|
|
523
|
+
for (c in p)
|
|
524
|
+
i[c] === void 0 && (i[c] = p[c]);
|
|
524
525
|
}
|
|
525
|
-
if (
|
|
526
|
-
var
|
|
527
|
-
|
|
526
|
+
if (o || _) {
|
|
527
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
528
|
+
o && dt(i, x), _ && vt(i, x);
|
|
528
529
|
}
|
|
529
|
-
return
|
|
530
|
+
return pt(e, o, _, s, a, U.current, i);
|
|
530
531
|
}
|
|
531
532
|
}
|
|
532
|
-
var
|
|
533
|
-
function
|
|
533
|
+
var le = O.ReactCurrentOwner, Pe = O.ReactDebugCurrentFrame;
|
|
534
|
+
function L(e) {
|
|
534
535
|
if (e) {
|
|
535
|
-
var
|
|
536
|
-
|
|
536
|
+
var t = e._owner, r = Z(e.type, e._source, t ? t.type : null);
|
|
537
|
+
Pe.setExtraStackFrame(r);
|
|
537
538
|
} else
|
|
538
|
-
|
|
539
|
+
Pe.setExtraStackFrame(null);
|
|
539
540
|
}
|
|
540
|
-
var
|
|
541
|
-
|
|
542
|
-
function
|
|
543
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
541
|
+
var ue;
|
|
542
|
+
ue = !1;
|
|
543
|
+
function ce(e) {
|
|
544
|
+
return typeof e == "object" && e !== null && e.$$typeof === l;
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
+
function je() {
|
|
546
547
|
{
|
|
547
|
-
if (
|
|
548
|
-
var e =
|
|
548
|
+
if (le.current) {
|
|
549
|
+
var e = P(le.current.type);
|
|
549
550
|
if (e)
|
|
550
551
|
return `
|
|
551
552
|
|
|
@@ -554,147 +555,386 @@ Check the render method of \`` + e + "`.";
|
|
|
554
555
|
return "";
|
|
555
556
|
}
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
+
function gt(e) {
|
|
558
559
|
{
|
|
559
560
|
if (e !== void 0) {
|
|
560
|
-
var
|
|
561
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), r = e.lineNumber;
|
|
561
562
|
return `
|
|
562
563
|
|
|
563
|
-
Check your code at ` +
|
|
564
|
+
Check your code at ` + t + ":" + r + ".";
|
|
564
565
|
}
|
|
565
566
|
return "";
|
|
566
567
|
}
|
|
567
568
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
569
|
+
var Ne = {};
|
|
570
|
+
function xt(e) {
|
|
570
571
|
{
|
|
571
|
-
var
|
|
572
|
-
if (!
|
|
573
|
-
var
|
|
574
|
-
|
|
572
|
+
var t = je();
|
|
573
|
+
if (!t) {
|
|
574
|
+
var r = typeof e == "string" ? e : e.displayName || e.name;
|
|
575
|
+
r && (t = `
|
|
575
576
|
|
|
576
|
-
Check the top-level render call using <` +
|
|
577
|
+
Check the top-level render call using <` + r + ">.");
|
|
577
578
|
}
|
|
578
|
-
return
|
|
579
|
+
return t;
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
|
-
function
|
|
582
|
+
function Fe(e, t) {
|
|
582
583
|
{
|
|
583
584
|
if (!e._store || e._store.validated || e.key != null)
|
|
584
585
|
return;
|
|
585
586
|
e._store.validated = !0;
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
587
|
+
var r = xt(t);
|
|
588
|
+
if (Ne[r])
|
|
588
589
|
return;
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
e && e._owner && e._owner !==
|
|
590
|
+
Ne[r] = !0;
|
|
591
|
+
var a = "";
|
|
592
|
+
e && e._owner && e._owner !== le.current && (a = " It was passed a child from " + P(e._owner.type) + "."), L(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), L(null);
|
|
592
593
|
}
|
|
593
594
|
}
|
|
594
|
-
function
|
|
595
|
+
function De(e, t) {
|
|
595
596
|
{
|
|
596
597
|
if (typeof e != "object")
|
|
597
598
|
return;
|
|
598
|
-
if (
|
|
599
|
-
for (var
|
|
600
|
-
var
|
|
601
|
-
|
|
599
|
+
if (ie(e))
|
|
600
|
+
for (var r = 0; r < e.length; r++) {
|
|
601
|
+
var a = e[r];
|
|
602
|
+
ce(a) && Fe(a, t);
|
|
602
603
|
}
|
|
603
|
-
else if (
|
|
604
|
+
else if (ce(e))
|
|
604
605
|
e._store && (e._store.validated = !0);
|
|
605
606
|
else if (e) {
|
|
606
|
-
var s =
|
|
607
|
+
var s = D(e);
|
|
607
608
|
if (typeof s == "function" && s !== e.entries)
|
|
608
|
-
for (var
|
|
609
|
-
|
|
609
|
+
for (var c = s.call(e), i; !(i = c.next()).done; )
|
|
610
|
+
ce(i.value) && Fe(i.value, t);
|
|
610
611
|
}
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
|
-
function
|
|
614
|
+
function ht(e) {
|
|
614
615
|
{
|
|
615
|
-
var
|
|
616
|
-
if (
|
|
616
|
+
var t = e.type;
|
|
617
|
+
if (t == null || typeof t == "string")
|
|
617
618
|
return;
|
|
618
|
-
var
|
|
619
|
-
if (typeof
|
|
620
|
-
|
|
621
|
-
else if (typeof
|
|
619
|
+
var r;
|
|
620
|
+
if (typeof t == "function")
|
|
621
|
+
r = t.propTypes;
|
|
622
|
+
else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
|
|
622
623
|
// Inner props are checked in the reconciler.
|
|
623
|
-
|
|
624
|
-
|
|
624
|
+
t.$$typeof === T))
|
|
625
|
+
r = t.propTypes;
|
|
625
626
|
else
|
|
626
627
|
return;
|
|
627
|
-
if (
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
} else if (
|
|
631
|
-
|
|
632
|
-
var s =
|
|
633
|
-
|
|
628
|
+
if (r) {
|
|
629
|
+
var a = P(t);
|
|
630
|
+
at(r, e.props, "prop", a, e);
|
|
631
|
+
} else if (t.PropTypes !== void 0 && !ue) {
|
|
632
|
+
ue = !0;
|
|
633
|
+
var s = P(t);
|
|
634
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
634
635
|
}
|
|
635
|
-
typeof
|
|
636
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
636
637
|
}
|
|
637
638
|
}
|
|
638
|
-
function
|
|
639
|
+
function bt(e) {
|
|
639
640
|
{
|
|
640
|
-
for (var
|
|
641
|
-
var
|
|
642
|
-
if (
|
|
643
|
-
|
|
641
|
+
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
642
|
+
var a = t[r];
|
|
643
|
+
if (a !== "children" && a !== "key") {
|
|
644
|
+
L(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
|
|
644
645
|
break;
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
|
-
e.ref !== null && (
|
|
648
|
+
e.ref !== null && (L(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
648
649
|
}
|
|
649
650
|
}
|
|
650
|
-
function
|
|
651
|
+
function Ie(e, t, r, a, s, c) {
|
|
651
652
|
{
|
|
652
|
-
var
|
|
653
|
-
if (!
|
|
654
|
-
var
|
|
655
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
656
|
-
var
|
|
657
|
-
|
|
658
|
-
var
|
|
659
|
-
e === null ?
|
|
653
|
+
var i = Ze(e);
|
|
654
|
+
if (!i) {
|
|
655
|
+
var o = "";
|
|
656
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
657
|
+
var _ = gt(s);
|
|
658
|
+
_ ? o += _ : o += je();
|
|
659
|
+
var p;
|
|
660
|
+
e === null ? p = "null" : ie(e) ? p = "array" : e !== void 0 && e.$$typeof === l ? (p = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, o);
|
|
660
661
|
}
|
|
661
|
-
var
|
|
662
|
-
if (
|
|
663
|
-
return
|
|
664
|
-
if (
|
|
665
|
-
var
|
|
666
|
-
if (
|
|
667
|
-
if (
|
|
668
|
-
if (
|
|
669
|
-
for (var
|
|
670
|
-
|
|
671
|
-
Object.freeze && Object.freeze(
|
|
662
|
+
var x = mt(e, t, r, s, c);
|
|
663
|
+
if (x == null)
|
|
664
|
+
return x;
|
|
665
|
+
if (i) {
|
|
666
|
+
var C = t.children;
|
|
667
|
+
if (C !== void 0)
|
|
668
|
+
if (a)
|
|
669
|
+
if (ie(C)) {
|
|
670
|
+
for (var V = 0; V < C.length; V++)
|
|
671
|
+
De(C[V], e);
|
|
672
|
+
Object.freeze && Object.freeze(C);
|
|
672
673
|
} else
|
|
673
|
-
|
|
674
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
674
675
|
else
|
|
675
|
-
|
|
676
|
+
De(C, e);
|
|
676
677
|
}
|
|
677
|
-
return e ===
|
|
678
|
+
return e === f ? bt(x) : ht(x), x;
|
|
678
679
|
}
|
|
679
680
|
}
|
|
680
|
-
function
|
|
681
|
-
return
|
|
681
|
+
function yt(e, t, r) {
|
|
682
|
+
return Ie(e, t, r, !0);
|
|
682
683
|
}
|
|
683
|
-
function
|
|
684
|
-
return
|
|
684
|
+
function Et(e, t, r) {
|
|
685
|
+
return Ie(e, t, r, !1);
|
|
685
686
|
}
|
|
686
|
-
var
|
|
687
|
-
|
|
688
|
-
}()),
|
|
687
|
+
var _t = Et, kt = yt;
|
|
688
|
+
J.Fragment = f, J.jsx = _t, J.jsxs = kt;
|
|
689
|
+
}()), J;
|
|
689
690
|
}
|
|
690
|
-
(function(
|
|
691
|
-
process.env.NODE_ENV === "production" ?
|
|
692
|
-
})(
|
|
693
|
-
const
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
691
|
+
(function(n) {
|
|
692
|
+
process.env.NODE_ENV === "production" ? n.exports = St() : n.exports = Ot();
|
|
693
|
+
})(Ct);
|
|
694
|
+
const R = te.jsx, G = te.jsxs, Pt = ({ children: n, className: l, disabled: u, ...f }, h) => /* @__PURE__ */ R(
|
|
695
|
+
"button",
|
|
696
|
+
{
|
|
697
|
+
className: m([
|
|
698
|
+
"rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0 disabled:text-text-muted-light dark:disabled:text-text-muted-dark",
|
|
699
|
+
l
|
|
700
|
+
]),
|
|
701
|
+
disabled: u,
|
|
702
|
+
ref: h,
|
|
703
|
+
...f,
|
|
704
|
+
children: n
|
|
705
|
+
}
|
|
706
|
+
), jt = B(Pt);
|
|
707
|
+
jt.displayName = "IconButton";
|
|
708
|
+
const Nt = ({ className: n, children: l, component: u = "a", ...f }, h) => Ge(
|
|
709
|
+
u,
|
|
710
|
+
{
|
|
711
|
+
...f,
|
|
712
|
+
className: m([
|
|
713
|
+
"rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0",
|
|
714
|
+
n
|
|
715
|
+
]),
|
|
716
|
+
ref: h
|
|
717
|
+
},
|
|
718
|
+
l
|
|
719
|
+
), Ft = B(Nt);
|
|
720
|
+
Ft.displayName = "IconLinkButton";
|
|
721
|
+
const Dt = ({ innerRef: n, forwardedRef: l }) => (Rt(() => {
|
|
722
|
+
[n, l].forEach((u) => {
|
|
723
|
+
u && (typeof u == "function" ? u(n.current || null) : u.current = n.current || null);
|
|
724
|
+
});
|
|
725
|
+
}, [n, l]), n), It = ({
|
|
726
|
+
className: n,
|
|
727
|
+
disabled: l,
|
|
728
|
+
endIcon: u,
|
|
729
|
+
error: f,
|
|
730
|
+
hint: h,
|
|
731
|
+
label: w,
|
|
732
|
+
name: k,
|
|
733
|
+
onChange: b,
|
|
734
|
+
placeholder: d,
|
|
735
|
+
startIcon: y,
|
|
736
|
+
value: v,
|
|
737
|
+
...T
|
|
738
|
+
}, S) => {
|
|
739
|
+
const N = wt(null), E = Dt({ forwardedRef: S, innerRef: N }), [$, D] = W.useState(Boolean(v)), [O, g] = W.useState(!1);
|
|
740
|
+
W.useEffect(() => {
|
|
741
|
+
var A;
|
|
742
|
+
D(Boolean((A = E == null ? void 0 : E.current) == null ? void 0 : A.value) || Boolean(v || d));
|
|
743
|
+
}, [v, d, E]);
|
|
744
|
+
const Y = (A) => {
|
|
745
|
+
var H;
|
|
746
|
+
D(Boolean((H = E == null ? void 0 : E.current) == null ? void 0 : H.value) || Boolean(v || d)), b && b(A);
|
|
747
|
+
}, I = () => {
|
|
748
|
+
l || !E.current || (E.current.focus(), g(!0));
|
|
749
|
+
}, re = () => {
|
|
750
|
+
g(!1);
|
|
751
|
+
};
|
|
752
|
+
return /* @__PURE__ */ G("div", { className: "flex items-start flex-col gap-0.5", children: [
|
|
753
|
+
/* @__PURE__ */ G(
|
|
754
|
+
"div",
|
|
755
|
+
{
|
|
756
|
+
className: m([
|
|
757
|
+
"items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",
|
|
758
|
+
l ? "bg-gray-10 dark:bg-gray-40" : null,
|
|
759
|
+
f ? "border-alert dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark"
|
|
760
|
+
]),
|
|
761
|
+
onClick: I,
|
|
762
|
+
onFocus: I,
|
|
763
|
+
children: [
|
|
764
|
+
y ? /* @__PURE__ */ R("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: y }) : null,
|
|
765
|
+
/* @__PURE__ */ G("span", { className: "relative flex flex-1 overflow-hidden", children: [
|
|
766
|
+
/* @__PURE__ */ R(
|
|
767
|
+
"input",
|
|
768
|
+
{
|
|
769
|
+
className: m([
|
|
770
|
+
"self-stretch bg-transparent flex-auto outline-none overflow-hidden pbs-3 pbe-1",
|
|
771
|
+
y ? "pis-1" : "pis-2",
|
|
772
|
+
u ? "pie-1" : "pie-2",
|
|
773
|
+
n
|
|
774
|
+
]),
|
|
775
|
+
disabled: l,
|
|
776
|
+
id: k,
|
|
777
|
+
onBlur: re,
|
|
778
|
+
onChange: Y,
|
|
779
|
+
placeholder: d,
|
|
780
|
+
ref: E,
|
|
781
|
+
value: v,
|
|
782
|
+
...T
|
|
783
|
+
}
|
|
784
|
+
),
|
|
785
|
+
/* @__PURE__ */ R(
|
|
786
|
+
"label",
|
|
787
|
+
{
|
|
788
|
+
className: m(
|
|
789
|
+
"items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",
|
|
790
|
+
y ? "left-1 rtl:right-1" : "left-2 rtl:right-2",
|
|
791
|
+
O || $ ? "text-13 -translate-y-1.5" : "text-16"
|
|
792
|
+
),
|
|
793
|
+
htmlFor: k,
|
|
794
|
+
children: w
|
|
795
|
+
}
|
|
796
|
+
)
|
|
797
|
+
] }),
|
|
798
|
+
u ? /* @__PURE__ */ R("div", { className: "text-text-muted-light dark:text-text-muted-dark pie-1.5", children: u }) : null
|
|
799
|
+
]
|
|
800
|
+
}
|
|
801
|
+
),
|
|
802
|
+
f || h ? /* @__PURE__ */ G("div", { className: "flex flex-col", children: [
|
|
803
|
+
f ? /* @__PURE__ */ R("span", { className: "text-alert dark:text-alert-dark", children: f }) : null,
|
|
804
|
+
h ? /* @__PURE__ */ R("span", { className: "text-text-muted-light dark:text-text-muted-dark text-13 leading-default", children: h }) : null
|
|
805
|
+
] }) : null
|
|
806
|
+
] });
|
|
807
|
+
}, At = W.forwardRef(It);
|
|
808
|
+
At.displayName = "Input";
|
|
809
|
+
const Lt = ({ children: n, className: l, ...u }, f) => /* @__PURE__ */ R(
|
|
810
|
+
"ul",
|
|
811
|
+
{
|
|
812
|
+
className: m([
|
|
813
|
+
"w-fit bg-canvas-light dark:bg-canvas-dark shadow-light-8 dark:shadow-dark-8 rounded-1 py-0.5",
|
|
814
|
+
l
|
|
815
|
+
]),
|
|
816
|
+
ref: f,
|
|
817
|
+
...u,
|
|
818
|
+
children: n
|
|
819
|
+
}
|
|
820
|
+
), Vt = B(Lt);
|
|
821
|
+
Vt.displayName = "List";
|
|
822
|
+
const Wt = ({ children: n, className: l, divider: u, endIcon: f, onClick: h, startIcon: w, ...k }, b) => /* @__PURE__ */ G(
|
|
823
|
+
"li",
|
|
824
|
+
{
|
|
825
|
+
className: m([
|
|
826
|
+
"flex items-center gap-x-2 px-2 py-2 box-border relative",
|
|
827
|
+
u ? "after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px" : null,
|
|
828
|
+
h ? "cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-40" : null,
|
|
829
|
+
l
|
|
830
|
+
]),
|
|
831
|
+
onClick: h,
|
|
832
|
+
ref: b,
|
|
833
|
+
...k,
|
|
834
|
+
children: [
|
|
835
|
+
w ? /* @__PURE__ */ R("div", { children: w }) : null,
|
|
836
|
+
n,
|
|
837
|
+
f ? /* @__PURE__ */ R("div", { children: f }) : null
|
|
838
|
+
]
|
|
839
|
+
}
|
|
840
|
+
), Bt = B(Wt);
|
|
841
|
+
Bt.displayName = "ListItem";
|
|
842
|
+
const Be = {
|
|
843
|
+
base: "font-bold",
|
|
844
|
+
xs: "text-16 md:text-19 leading-default",
|
|
845
|
+
sm: "text-19 md:text-23 leading-default md:leading-comfy",
|
|
846
|
+
md: "text-23 md:text-28 leading-comfy",
|
|
847
|
+
lg: "text-28 md:text-33 leading-comfy",
|
|
848
|
+
xl: "text-33 md:text-40 leading-comfy",
|
|
849
|
+
xxl: "text-33 md:text-57 leading-comfy"
|
|
850
|
+
}, ee = {
|
|
851
|
+
base: "font-medium leading-default",
|
|
852
|
+
default: "text-16 md:text-19",
|
|
853
|
+
xs: "text-11",
|
|
854
|
+
sm: "text-13",
|
|
855
|
+
md: "text-16",
|
|
856
|
+
lg: "text-19",
|
|
857
|
+
xl: "text-23 md:text-28 tracking-tight"
|
|
858
|
+
}, de = {
|
|
859
|
+
...ee,
|
|
860
|
+
base: "font-regular leading-loose",
|
|
861
|
+
xl: "text-23 md:text-28"
|
|
862
|
+
}, $e = {
|
|
863
|
+
base: "font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",
|
|
864
|
+
xs: "text-11",
|
|
865
|
+
sm: "text-13",
|
|
866
|
+
md: "text-16",
|
|
867
|
+
lg: "text-19",
|
|
868
|
+
xl: "text-23"
|
|
869
|
+
}, Ye = {
|
|
870
|
+
base: "font-regular leading-default text-text-muted-light dark:text-text-muted-dark",
|
|
871
|
+
sm: "text-11",
|
|
872
|
+
md: "text-13",
|
|
873
|
+
lg: "text-16"
|
|
874
|
+
}, Me = {
|
|
875
|
+
base: "font-bold leading-default",
|
|
876
|
+
xs: "text-11",
|
|
877
|
+
sm: "text-13",
|
|
878
|
+
md: "text-16",
|
|
879
|
+
lg: "text-19"
|
|
880
|
+
}, Ue = {
|
|
881
|
+
base: "font-medium leading-default text-text-muted-light dark:text-text-muted-dark",
|
|
882
|
+
sm: "text-11",
|
|
883
|
+
md: "text-13",
|
|
884
|
+
lg: "text-16"
|
|
885
|
+
}, qe = {
|
|
886
|
+
base: "font-regular leading-loose",
|
|
887
|
+
md: "text-16",
|
|
888
|
+
lg: "text-19"
|
|
889
|
+
}, $t = ({ size: n, variant: l }) => {
|
|
890
|
+
switch (l) {
|
|
891
|
+
case "headline":
|
|
892
|
+
return m(Be.base, Be[n]);
|
|
893
|
+
case "label":
|
|
894
|
+
return m(ee.base, n ? ee[n] : ee.default);
|
|
895
|
+
case "paragraph":
|
|
896
|
+
return m(de.base, n ? de[n] : de.default);
|
|
897
|
+
case "eyebrow":
|
|
898
|
+
return m($e.base, $e[n]);
|
|
899
|
+
case "caption":
|
|
900
|
+
return m(Ye.base, Ye[n]);
|
|
901
|
+
case "buttonLabel":
|
|
902
|
+
return m(Me.base, Me[n]);
|
|
903
|
+
case "fieldLabel":
|
|
904
|
+
return m(Ue.base, Ue[n]);
|
|
905
|
+
case "fieldTextInput":
|
|
906
|
+
return m(qe.base, qe[n]);
|
|
907
|
+
default:
|
|
908
|
+
return n;
|
|
909
|
+
}
|
|
910
|
+
}, Yt = {
|
|
911
|
+
primary: "font-aktiv-grotesk",
|
|
912
|
+
secondary: "font-untitled-serif"
|
|
913
|
+
}, Mt = ({ className: n, component: l = "p", children: u, font: f = "primary", size: h, variant: w, ...k }, b) => {
|
|
914
|
+
const d = "text-text-light dark:text-text-dark", y = Yt[f], v = $t({ size: h, variant: w });
|
|
915
|
+
return /* @__PURE__ */ R(
|
|
916
|
+
He,
|
|
917
|
+
{
|
|
918
|
+
className: m(d, v, y, n),
|
|
919
|
+
component: l,
|
|
920
|
+
ref: b,
|
|
921
|
+
...k,
|
|
922
|
+
children: u
|
|
923
|
+
}
|
|
924
|
+
);
|
|
925
|
+
}, Ke = B(Mt);
|
|
926
|
+
Ke.displayName = "Text";
|
|
927
|
+
const Ht = ({ children: n, className: l, size: u = "sm" }) => /* @__PURE__ */ R(Ke, { className: m(["flex-grow", l]), size: u, variant: "label", children: n }), Ut = "_tooltipWrapper_qu88w_1", qt = "_tooltipContent_qu88w_18", Je = {
|
|
928
|
+
tooltipWrapper: Ut,
|
|
929
|
+
tooltipContent: qt
|
|
930
|
+
}, Kt = ({ content: n, className: l, ...u }) => /* @__PURE__ */ R("div", { className: m(Je.tooltipWrapper, l), ...u, children: /* @__PURE__ */ R("span", { className: Je.tooltipContent, children: n }) });
|
|
697
931
|
export {
|
|
698
|
-
|
|
699
|
-
|
|
932
|
+
He as Box,
|
|
933
|
+
jt as IconButton,
|
|
934
|
+
Ft as IconLinkButton,
|
|
935
|
+
At as Input,
|
|
936
|
+
Vt as List,
|
|
937
|
+
Bt as ListItem,
|
|
938
|
+
Ht as ListItemText,
|
|
939
|
+
Kt as Tooltip
|
|
700
940
|
};
|