@youversion/design-system-components 0.0.7 → 0.0.9
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 +14 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +32 -0
- package/dist/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/Checkbox/index.d.ts +2 -0
- package/dist/Checkbox/index.d.ts.map +1 -0
- package/dist/IconButton/IconButton.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +544 -499
- package/dist/index.umd.js +10 -10
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import h from "clsx";
|
|
2
|
+
import * as ve from "react";
|
|
3
|
+
import F, { forwardRef as L, createElement as I, useRef as xe, useEffect as he, useMemo as Dt, cloneElement as Vt } from "react";
|
|
4
|
+
const me = (t) => {
|
|
4
5
|
if (t) {
|
|
5
6
|
if (typeof t != "string" && t)
|
|
6
|
-
return
|
|
7
|
+
return h(t.lightMode, t.darkMode);
|
|
7
8
|
if (typeof t == "string")
|
|
8
9
|
return t;
|
|
9
10
|
}
|
|
10
|
-
},
|
|
11
|
+
}, qe = (t) => {
|
|
11
12
|
if (t) {
|
|
12
13
|
if (typeof t != "string" && t)
|
|
13
|
-
return
|
|
14
|
+
return h(t.block, t.blockEnd, t.blockStart, t.inline, t.inlineEnd, t.inlineStart);
|
|
14
15
|
if (typeof t == "string")
|
|
15
16
|
return t;
|
|
16
17
|
}
|
|
17
|
-
},
|
|
18
|
+
}, Wt = ({
|
|
18
19
|
background: t,
|
|
19
20
|
borderColor: o,
|
|
20
21
|
borderRadius: i,
|
|
21
|
-
borderWidth:
|
|
22
|
+
borderWidth: a,
|
|
22
23
|
className: l,
|
|
23
|
-
component:
|
|
24
|
+
component: s = "div",
|
|
24
25
|
color: d,
|
|
25
26
|
elevation: f = 0,
|
|
26
27
|
height: p,
|
|
27
|
-
margin:
|
|
28
|
-
padding:
|
|
29
|
-
width:
|
|
28
|
+
margin: y,
|
|
29
|
+
padding: c,
|
|
30
|
+
width: b,
|
|
30
31
|
...T
|
|
31
32
|
}, B) => {
|
|
32
33
|
const R = {
|
|
@@ -36,27 +37,27 @@ const ge = (t) => {
|
|
|
36
37
|
4: "shadow-light-4 dark:shadow-dark-4",
|
|
37
38
|
8: "shadow-light-8 dark:shadow-dark-8",
|
|
38
39
|
12: "shadow-light-12 dark:shadow-dark-12"
|
|
39
|
-
}, Y =
|
|
40
|
+
}, Y = me(d), V = me(t), P = me(o), E = qe(c), U = qe(y), W = h(
|
|
40
41
|
i,
|
|
41
|
-
|
|
42
|
+
a,
|
|
42
43
|
R[f],
|
|
43
44
|
U,
|
|
44
|
-
|
|
45
|
+
E,
|
|
45
46
|
Y,
|
|
46
47
|
V,
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
P,
|
|
49
|
+
b,
|
|
49
50
|
p,
|
|
50
51
|
l
|
|
51
52
|
);
|
|
52
|
-
return
|
|
53
|
+
return I(s, {
|
|
53
54
|
className: W,
|
|
54
55
|
...T,
|
|
55
56
|
ref: B
|
|
56
57
|
});
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
var G = {},
|
|
58
|
+
}, rt = L(Wt);
|
|
59
|
+
rt.displayName = "Box";
|
|
60
|
+
var G = {}, At = {
|
|
60
61
|
get exports() {
|
|
61
62
|
return G;
|
|
62
63
|
},
|
|
@@ -73,21 +74,21 @@ var G = {}, Wt = {
|
|
|
73
74
|
* This source code is licensed under the MIT license found in the
|
|
74
75
|
* LICENSE file in the root directory of this source tree.
|
|
75
76
|
*/
|
|
76
|
-
var
|
|
77
|
+
var Ke;
|
|
77
78
|
function $t() {
|
|
78
|
-
if (
|
|
79
|
+
if (Ke)
|
|
79
80
|
return J;
|
|
80
|
-
|
|
81
|
-
var t = F, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"),
|
|
82
|
-
function d(f, p,
|
|
83
|
-
var
|
|
84
|
-
|
|
85
|
-
for (
|
|
86
|
-
|
|
81
|
+
Ke = 1;
|
|
82
|
+
var t = F, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
83
|
+
function d(f, p, y) {
|
|
84
|
+
var c, b = {}, T = null, B = null;
|
|
85
|
+
y !== void 0 && (T = "" + y), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (B = p.ref);
|
|
86
|
+
for (c in p)
|
|
87
|
+
a.call(p, c) && !s.hasOwnProperty(c) && (b[c] = p[c]);
|
|
87
88
|
if (f && f.defaultProps)
|
|
88
|
-
for (
|
|
89
|
-
|
|
90
|
-
return { $$typeof: o, type: f, key: T, ref: B, props:
|
|
89
|
+
for (c in p = f.defaultProps, p)
|
|
90
|
+
b[c] === void 0 && (b[c] = p[c]);
|
|
91
|
+
return { $$typeof: o, type: f, key: T, ref: B, props: b, _owner: l.current };
|
|
91
92
|
}
|
|
92
93
|
return J.Fragment = i, J.jsx = d, J.jsxs = d, J;
|
|
93
94
|
}
|
|
@@ -101,91 +102,91 @@ var z = {};
|
|
|
101
102
|
* This source code is licensed under the MIT license found in the
|
|
102
103
|
* LICENSE file in the root directory of this source tree.
|
|
103
104
|
*/
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
return
|
|
107
|
-
var t = F, o = Symbol.for("react.element"), i = Symbol.for("react.portal"),
|
|
105
|
+
var Je;
|
|
106
|
+
function Mt() {
|
|
107
|
+
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
108
|
+
var t = F, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), f = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), R = Symbol.iterator, Y = "@@iterator";
|
|
108
109
|
function V(e) {
|
|
109
110
|
if (e === null || typeof e != "object")
|
|
110
111
|
return null;
|
|
111
112
|
var r = R && e[R] || e[Y];
|
|
112
113
|
return typeof r == "function" ? r : null;
|
|
113
114
|
}
|
|
114
|
-
var
|
|
115
|
-
function
|
|
115
|
+
var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
116
|
+
function E(e) {
|
|
116
117
|
{
|
|
117
|
-
for (var r = arguments.length,
|
|
118
|
-
|
|
119
|
-
U("error", e,
|
|
118
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
119
|
+
n[u - 1] = arguments[u];
|
|
120
|
+
U("error", e, n);
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
|
-
function U(e, r,
|
|
123
|
+
function U(e, r, n) {
|
|
123
124
|
{
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
var k =
|
|
127
|
-
return String(
|
|
125
|
+
var u = P.ReactDebugCurrentFrame, x = u.getStackAddendum();
|
|
126
|
+
x !== "" && (r += "%s", n = n.concat([x]));
|
|
127
|
+
var k = n.map(function(v) {
|
|
128
|
+
return String(v);
|
|
128
129
|
});
|
|
129
130
|
k.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, k);
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
|
-
var W = !1, oe = !1,
|
|
133
|
-
|
|
134
|
-
function
|
|
135
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
133
|
+
var W = !1, oe = !1, A = !1, H = !1, ut = !1, ke;
|
|
134
|
+
ke = Symbol.for("react.module.reference");
|
|
135
|
+
function dt(e) {
|
|
136
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || ut || e === l || e === y || e === c || H || e === B || W || oe || A || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === b || e.$$typeof === d || e.$$typeof === f || e.$$typeof === p || // This needs to include all possible module reference object
|
|
136
137
|
// types supported by any Flight configuration anywhere since
|
|
137
138
|
// we don't know which Flight build this will end up being used
|
|
138
139
|
// with.
|
|
139
|
-
e.$$typeof ===
|
|
140
|
+
e.$$typeof === ke || e.getModuleId !== void 0));
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
-
var
|
|
143
|
-
if (
|
|
144
|
-
return
|
|
145
|
-
var
|
|
146
|
-
return
|
|
142
|
+
function ct(e, r, n) {
|
|
143
|
+
var u = e.displayName;
|
|
144
|
+
if (u)
|
|
145
|
+
return u;
|
|
146
|
+
var x = r.displayName || r.name || "";
|
|
147
|
+
return x !== "" ? n + "(" + x + ")" : n;
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
+
function we(e) {
|
|
149
150
|
return e.displayName || "Context";
|
|
150
151
|
}
|
|
151
152
|
function N(e) {
|
|
152
153
|
if (e == null)
|
|
153
154
|
return null;
|
|
154
|
-
if (typeof e.tag == "number" &&
|
|
155
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
155
156
|
return e.displayName || e.name || null;
|
|
156
157
|
if (typeof e == "string")
|
|
157
158
|
return e;
|
|
158
159
|
switch (e) {
|
|
159
|
-
case
|
|
160
|
+
case a:
|
|
160
161
|
return "Fragment";
|
|
161
162
|
case i:
|
|
162
163
|
return "Portal";
|
|
163
|
-
case
|
|
164
|
+
case s:
|
|
164
165
|
return "Profiler";
|
|
165
166
|
case l:
|
|
166
167
|
return "StrictMode";
|
|
167
|
-
case
|
|
168
|
+
case y:
|
|
168
169
|
return "Suspense";
|
|
169
|
-
case
|
|
170
|
+
case c:
|
|
170
171
|
return "SuspenseList";
|
|
171
172
|
}
|
|
172
173
|
if (typeof e == "object")
|
|
173
174
|
switch (e.$$typeof) {
|
|
174
175
|
case f:
|
|
175
176
|
var r = e;
|
|
176
|
-
return
|
|
177
|
+
return we(r) + ".Consumer";
|
|
177
178
|
case d:
|
|
178
|
-
var
|
|
179
|
-
return
|
|
179
|
+
var n = e;
|
|
180
|
+
return we(n._context) + ".Provider";
|
|
180
181
|
case p:
|
|
181
|
-
return
|
|
182
|
-
case
|
|
183
|
-
var
|
|
184
|
-
return
|
|
182
|
+
return ct(e, e.render, "ForwardRef");
|
|
183
|
+
case b:
|
|
184
|
+
var u = e.displayName || null;
|
|
185
|
+
return u !== null ? u : N(e.type) || "Memo";
|
|
185
186
|
case T: {
|
|
186
|
-
var
|
|
187
|
+
var x = e, k = x._payload, v = x._init;
|
|
187
188
|
try {
|
|
188
|
-
return N(
|
|
189
|
+
return N(v(k));
|
|
189
190
|
} catch {
|
|
190
191
|
return null;
|
|
191
192
|
}
|
|
@@ -193,18 +194,18 @@ function At() {
|
|
|
193
194
|
}
|
|
194
195
|
return null;
|
|
195
196
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
197
|
+
var D = Object.assign, q = 0, Ee, _e, Re, Se, Te, Ce, Oe;
|
|
198
|
+
function Pe() {
|
|
198
199
|
}
|
|
199
|
-
|
|
200
|
-
function
|
|
200
|
+
Pe.__reactDisabledLog = !0;
|
|
201
|
+
function ft() {
|
|
201
202
|
{
|
|
202
203
|
if (q === 0) {
|
|
203
|
-
Ee = console.log,
|
|
204
|
+
Ee = console.log, _e = console.info, Re = console.warn, Se = console.error, Te = console.group, Ce = console.groupCollapsed, Oe = console.groupEnd;
|
|
204
205
|
var e = {
|
|
205
206
|
configurable: !0,
|
|
206
207
|
enumerable: !0,
|
|
207
|
-
value:
|
|
208
|
+
value: Pe,
|
|
208
209
|
writable: !0
|
|
209
210
|
};
|
|
210
211
|
Object.defineProperties(console, {
|
|
@@ -220,7 +221,7 @@ function At() {
|
|
|
220
221
|
q++;
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function pt() {
|
|
224
225
|
{
|
|
225
226
|
if (q--, q === 0) {
|
|
226
227
|
var e = {
|
|
@@ -229,41 +230,41 @@ function At() {
|
|
|
229
230
|
writable: !0
|
|
230
231
|
};
|
|
231
232
|
Object.defineProperties(console, {
|
|
232
|
-
log:
|
|
233
|
+
log: D({}, e, {
|
|
233
234
|
value: Ee
|
|
234
235
|
}),
|
|
235
|
-
info:
|
|
236
|
-
value: we
|
|
237
|
-
}),
|
|
238
|
-
warn: I({}, e, {
|
|
236
|
+
info: D({}, e, {
|
|
239
237
|
value: _e
|
|
240
238
|
}),
|
|
241
|
-
|
|
239
|
+
warn: D({}, e, {
|
|
242
240
|
value: Re
|
|
243
241
|
}),
|
|
244
|
-
|
|
242
|
+
error: D({}, e, {
|
|
245
243
|
value: Se
|
|
246
244
|
}),
|
|
247
|
-
|
|
245
|
+
group: D({}, e, {
|
|
248
246
|
value: Te
|
|
249
247
|
}),
|
|
250
|
-
|
|
248
|
+
groupCollapsed: D({}, e, {
|
|
251
249
|
value: Ce
|
|
250
|
+
}),
|
|
251
|
+
groupEnd: D({}, e, {
|
|
252
|
+
value: Oe
|
|
252
253
|
})
|
|
253
254
|
});
|
|
254
255
|
}
|
|
255
|
-
q < 0 &&
|
|
256
|
+
q < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
|
-
var ie =
|
|
259
|
-
function X(e, r,
|
|
259
|
+
var ie = P.ReactCurrentDispatcher, le;
|
|
260
|
+
function X(e, r, n) {
|
|
260
261
|
{
|
|
261
262
|
if (le === void 0)
|
|
262
263
|
try {
|
|
263
264
|
throw Error();
|
|
264
|
-
} catch (
|
|
265
|
-
var
|
|
266
|
-
le =
|
|
265
|
+
} catch (x) {
|
|
266
|
+
var u = x.stack.trim().match(/\n( *(at )?)/);
|
|
267
|
+
le = u && u[1] || "";
|
|
267
268
|
}
|
|
268
269
|
return `
|
|
269
270
|
` + le + e;
|
|
@@ -271,175 +272,175 @@ function At() {
|
|
|
271
272
|
}
|
|
272
273
|
var se = !1, Z;
|
|
273
274
|
{
|
|
274
|
-
var
|
|
275
|
-
Z = new
|
|
275
|
+
var mt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
276
|
+
Z = new mt();
|
|
276
277
|
}
|
|
277
|
-
function
|
|
278
|
+
function Ne(e, r) {
|
|
278
279
|
if (!e || se)
|
|
279
280
|
return "";
|
|
280
281
|
{
|
|
281
|
-
var
|
|
282
|
-
if (
|
|
283
|
-
return
|
|
282
|
+
var n = Z.get(e);
|
|
283
|
+
if (n !== void 0)
|
|
284
|
+
return n;
|
|
284
285
|
}
|
|
285
|
-
var
|
|
286
|
+
var u;
|
|
286
287
|
se = !0;
|
|
287
|
-
var
|
|
288
|
+
var x = Error.prepareStackTrace;
|
|
288
289
|
Error.prepareStackTrace = void 0;
|
|
289
290
|
var k;
|
|
290
|
-
k = ie.current, ie.current = null,
|
|
291
|
+
k = ie.current, ie.current = null, ft();
|
|
291
292
|
try {
|
|
292
293
|
if (r) {
|
|
293
|
-
var
|
|
294
|
+
var v = function() {
|
|
294
295
|
throw Error();
|
|
295
296
|
};
|
|
296
|
-
if (Object.defineProperty(
|
|
297
|
+
if (Object.defineProperty(v.prototype, "props", {
|
|
297
298
|
set: function() {
|
|
298
299
|
throw Error();
|
|
299
300
|
}
|
|
300
301
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
301
302
|
try {
|
|
302
|
-
Reflect.construct(
|
|
303
|
+
Reflect.construct(v, []);
|
|
303
304
|
} catch (j) {
|
|
304
|
-
|
|
305
|
+
u = j;
|
|
305
306
|
}
|
|
306
|
-
Reflect.construct(e, [],
|
|
307
|
+
Reflect.construct(e, [], v);
|
|
307
308
|
} else {
|
|
308
309
|
try {
|
|
309
|
-
|
|
310
|
+
v.call();
|
|
310
311
|
} catch (j) {
|
|
311
|
-
|
|
312
|
+
u = j;
|
|
312
313
|
}
|
|
313
|
-
e.call(
|
|
314
|
+
e.call(v.prototype);
|
|
314
315
|
}
|
|
315
316
|
} else {
|
|
316
317
|
try {
|
|
317
318
|
throw Error();
|
|
318
319
|
} catch (j) {
|
|
319
|
-
|
|
320
|
+
u = j;
|
|
320
321
|
}
|
|
321
322
|
e();
|
|
322
323
|
}
|
|
323
324
|
} catch (j) {
|
|
324
|
-
if (j &&
|
|
325
|
+
if (j && u && typeof j.stack == "string") {
|
|
325
326
|
for (var g = j.stack.split(`
|
|
326
|
-
`), S =
|
|
327
|
-
`),
|
|
327
|
+
`), S = u.stack.split(`
|
|
328
|
+
`), w = g.length - 1, _ = S.length - 1; w >= 1 && _ >= 0 && g[w] !== S[_]; )
|
|
328
329
|
_--;
|
|
329
|
-
for (;
|
|
330
|
-
if (g[
|
|
331
|
-
if (
|
|
330
|
+
for (; w >= 1 && _ >= 0; w--, _--)
|
|
331
|
+
if (g[w] !== S[_]) {
|
|
332
|
+
if (w !== 1 || _ !== 1)
|
|
332
333
|
do
|
|
333
|
-
if (
|
|
334
|
+
if (w--, _--, _ < 0 || g[w] !== S[_]) {
|
|
334
335
|
var C = `
|
|
335
|
-
` + g[
|
|
336
|
+
` + g[w].replace(" at new ", " at ");
|
|
336
337
|
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, C), C;
|
|
337
338
|
}
|
|
338
|
-
while (
|
|
339
|
+
while (w >= 1 && _ >= 0);
|
|
339
340
|
break;
|
|
340
341
|
}
|
|
341
342
|
}
|
|
342
343
|
} finally {
|
|
343
|
-
se = !1, ie.current = k,
|
|
344
|
+
se = !1, ie.current = k, pt(), Error.prepareStackTrace = x;
|
|
344
345
|
}
|
|
345
|
-
var M = e ? e.displayName || e.name : "",
|
|
346
|
-
return typeof e == "function" && Z.set(e,
|
|
346
|
+
var M = e ? e.displayName || e.name : "", Ue = M ? X(M) : "";
|
|
347
|
+
return typeof e == "function" && Z.set(e, Ue), Ue;
|
|
347
348
|
}
|
|
348
|
-
function gt(e, r,
|
|
349
|
-
return
|
|
349
|
+
function gt(e, r, n) {
|
|
350
|
+
return Ne(e, !1);
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function vt(e) {
|
|
352
353
|
var r = e.prototype;
|
|
353
354
|
return !!(r && r.isReactComponent);
|
|
354
355
|
}
|
|
355
|
-
function Q(e, r,
|
|
356
|
+
function Q(e, r, n) {
|
|
356
357
|
if (e == null)
|
|
357
358
|
return "";
|
|
358
359
|
if (typeof e == "function")
|
|
359
|
-
return
|
|
360
|
+
return Ne(e, vt(e));
|
|
360
361
|
if (typeof e == "string")
|
|
361
362
|
return X(e);
|
|
362
363
|
switch (e) {
|
|
363
|
-
case
|
|
364
|
+
case y:
|
|
364
365
|
return X("Suspense");
|
|
365
|
-
case
|
|
366
|
+
case c:
|
|
366
367
|
return X("SuspenseList");
|
|
367
368
|
}
|
|
368
369
|
if (typeof e == "object")
|
|
369
370
|
switch (e.$$typeof) {
|
|
370
371
|
case p:
|
|
371
372
|
return gt(e.render);
|
|
372
|
-
case
|
|
373
|
-
return Q(e.type, r,
|
|
373
|
+
case b:
|
|
374
|
+
return Q(e.type, r, n);
|
|
374
375
|
case T: {
|
|
375
|
-
var
|
|
376
|
+
var u = e, x = u._payload, k = u._init;
|
|
376
377
|
try {
|
|
377
|
-
return Q(k(
|
|
378
|
+
return Q(k(x), r, n);
|
|
378
379
|
} catch {
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
382
|
}
|
|
382
383
|
return "";
|
|
383
384
|
}
|
|
384
|
-
var ee = Object.prototype.hasOwnProperty,
|
|
385
|
+
var ee = Object.prototype.hasOwnProperty, je = {}, Fe = P.ReactDebugCurrentFrame;
|
|
385
386
|
function te(e) {
|
|
386
387
|
if (e) {
|
|
387
|
-
var r = e._owner,
|
|
388
|
-
|
|
388
|
+
var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
|
|
389
|
+
Fe.setExtraStackFrame(n);
|
|
389
390
|
} else
|
|
390
|
-
|
|
391
|
+
Fe.setExtraStackFrame(null);
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
+
function bt(e, r, n, u, x) {
|
|
393
394
|
{
|
|
394
395
|
var k = Function.call.bind(ee);
|
|
395
|
-
for (var
|
|
396
|
-
if (k(e,
|
|
396
|
+
for (var v in e)
|
|
397
|
+
if (k(e, v)) {
|
|
397
398
|
var g = void 0;
|
|
398
399
|
try {
|
|
399
|
-
if (typeof e[
|
|
400
|
-
var S = Error((
|
|
400
|
+
if (typeof e[v] != "function") {
|
|
401
|
+
var S = Error((u || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
401
402
|
throw S.name = "Invariant Violation", S;
|
|
402
403
|
}
|
|
403
|
-
g = e[
|
|
404
|
-
} catch (
|
|
405
|
-
g =
|
|
404
|
+
g = e[v](r, v, u, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
405
|
+
} catch (w) {
|
|
406
|
+
g = w;
|
|
406
407
|
}
|
|
407
|
-
g && !(g instanceof Error) && (te(
|
|
408
|
+
g && !(g instanceof Error) && (te(x), E("%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).", u || "React class", n, v, typeof g), te(null)), g instanceof Error && !(g.message in je) && (je[g.message] = !0, te(x), E("Failed %s type: %s", n, g.message), te(null));
|
|
408
409
|
}
|
|
409
410
|
}
|
|
410
411
|
}
|
|
411
|
-
var
|
|
412
|
+
var xt = Array.isArray;
|
|
412
413
|
function ue(e) {
|
|
413
|
-
return
|
|
414
|
+
return xt(e);
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
+
function ht(e) {
|
|
416
417
|
{
|
|
417
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
418
|
-
return
|
|
418
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
419
|
+
return n;
|
|
419
420
|
}
|
|
420
421
|
}
|
|
421
422
|
function yt(e) {
|
|
422
423
|
try {
|
|
423
|
-
return
|
|
424
|
+
return Le(e), !1;
|
|
424
425
|
} catch {
|
|
425
426
|
return !0;
|
|
426
427
|
}
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
+
function Le(e) {
|
|
429
430
|
return "" + e;
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
+
function Be(e) {
|
|
432
433
|
if (yt(e))
|
|
433
|
-
return
|
|
434
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ht(e)), Le(e);
|
|
434
435
|
}
|
|
435
|
-
var K =
|
|
436
|
+
var K = P.ReactCurrentOwner, kt = {
|
|
436
437
|
key: !0,
|
|
437
438
|
ref: !0,
|
|
438
439
|
__self: !0,
|
|
439
440
|
__source: !0
|
|
440
|
-
},
|
|
441
|
+
}, Ie, De, de;
|
|
441
442
|
de = {};
|
|
442
|
-
function
|
|
443
|
+
function wt(e) {
|
|
443
444
|
if (ee.call(e, "ref")) {
|
|
444
445
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
445
446
|
if (r && r.isReactWarning)
|
|
@@ -455,43 +456,43 @@ function At() {
|
|
|
455
456
|
}
|
|
456
457
|
return e.key !== void 0;
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function _t(e, r) {
|
|
459
460
|
if (typeof e.ref == "string" && K.current && r && K.current.stateNode !== r) {
|
|
460
|
-
var
|
|
461
|
-
de[
|
|
461
|
+
var n = N(K.current.type);
|
|
462
|
+
de[n] || (E('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', N(K.current.type), e.ref), de[n] = !0);
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function Rt(e, r) {
|
|
465
466
|
{
|
|
466
|
-
var
|
|
467
|
-
|
|
467
|
+
var n = function() {
|
|
468
|
+
Ie || (Ie = !0, E("%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)", r));
|
|
468
469
|
};
|
|
469
|
-
|
|
470
|
-
get:
|
|
470
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
471
|
+
get: n,
|
|
471
472
|
configurable: !0
|
|
472
473
|
});
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
|
-
function
|
|
476
|
+
function St(e, r) {
|
|
476
477
|
{
|
|
477
|
-
var
|
|
478
|
-
De || (De = !0,
|
|
478
|
+
var n = function() {
|
|
479
|
+
De || (De = !0, E("%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)", r));
|
|
479
480
|
};
|
|
480
|
-
|
|
481
|
-
get:
|
|
481
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
482
|
+
get: n,
|
|
482
483
|
configurable: !0
|
|
483
484
|
});
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
|
-
var
|
|
487
|
+
var Tt = function(e, r, n, u, x, k, v) {
|
|
487
488
|
var g = {
|
|
488
489
|
// This tag allows us to uniquely identify this as a React Element
|
|
489
490
|
$$typeof: o,
|
|
490
491
|
// Built-in properties that belong on the element
|
|
491
492
|
type: e,
|
|
492
493
|
key: r,
|
|
493
|
-
ref:
|
|
494
|
-
props:
|
|
494
|
+
ref: n,
|
|
495
|
+
props: v,
|
|
495
496
|
// Record the component responsible for creating this element.
|
|
496
497
|
_owner: k
|
|
497
498
|
};
|
|
@@ -504,46 +505,46 @@ function At() {
|
|
|
504
505
|
configurable: !1,
|
|
505
506
|
enumerable: !1,
|
|
506
507
|
writable: !1,
|
|
507
|
-
value:
|
|
508
|
+
value: u
|
|
508
509
|
}), Object.defineProperty(g, "_source", {
|
|
509
510
|
configurable: !1,
|
|
510
511
|
enumerable: !1,
|
|
511
512
|
writable: !1,
|
|
512
|
-
value:
|
|
513
|
+
value: x
|
|
513
514
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
514
515
|
};
|
|
515
|
-
function
|
|
516
|
+
function Ct(e, r, n, u, x) {
|
|
516
517
|
{
|
|
517
|
-
var k,
|
|
518
|
-
|
|
518
|
+
var k, v = {}, g = null, S = null;
|
|
519
|
+
n !== void 0 && (Be(n), g = "" + n), Et(r) && (Be(r.key), g = "" + r.key), wt(r) && (S = r.ref, _t(r, x));
|
|
519
520
|
for (k in r)
|
|
520
|
-
ee.call(r, k) && !
|
|
521
|
+
ee.call(r, k) && !kt.hasOwnProperty(k) && (v[k] = r[k]);
|
|
521
522
|
if (e && e.defaultProps) {
|
|
522
|
-
var
|
|
523
|
-
for (k in
|
|
524
|
-
|
|
523
|
+
var w = e.defaultProps;
|
|
524
|
+
for (k in w)
|
|
525
|
+
v[k] === void 0 && (v[k] = w[k]);
|
|
525
526
|
}
|
|
526
527
|
if (g || S) {
|
|
527
528
|
var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
528
|
-
g &&
|
|
529
|
+
g && Rt(v, _), S && St(v, _);
|
|
529
530
|
}
|
|
530
|
-
return
|
|
531
|
+
return Tt(e, g, S, x, u, K.current, v);
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
|
-
var ce =
|
|
534
|
-
function
|
|
534
|
+
var ce = P.ReactCurrentOwner, Ve = P.ReactDebugCurrentFrame;
|
|
535
|
+
function $(e) {
|
|
535
536
|
if (e) {
|
|
536
|
-
var r = e._owner,
|
|
537
|
-
|
|
537
|
+
var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
|
|
538
|
+
Ve.setExtraStackFrame(n);
|
|
538
539
|
} else
|
|
539
|
-
|
|
540
|
+
Ve.setExtraStackFrame(null);
|
|
540
541
|
}
|
|
541
542
|
var fe;
|
|
542
543
|
fe = !1;
|
|
543
544
|
function pe(e) {
|
|
544
545
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
545
546
|
}
|
|
546
|
-
function
|
|
547
|
+
function We() {
|
|
547
548
|
{
|
|
548
549
|
if (ce.current) {
|
|
549
550
|
var e = N(ce.current.type);
|
|
@@ -555,26 +556,26 @@ Check the render method of \`` + e + "`.";
|
|
|
555
556
|
return "";
|
|
556
557
|
}
|
|
557
558
|
}
|
|
558
|
-
function
|
|
559
|
+
function Ot(e) {
|
|
559
560
|
{
|
|
560
561
|
if (e !== void 0) {
|
|
561
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""),
|
|
562
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
562
563
|
return `
|
|
563
564
|
|
|
564
|
-
Check your code at ` + r + ":" +
|
|
565
|
+
Check your code at ` + r + ":" + n + ".";
|
|
565
566
|
}
|
|
566
567
|
return "";
|
|
567
568
|
}
|
|
568
569
|
}
|
|
569
|
-
var
|
|
570
|
-
function
|
|
570
|
+
var Ae = {};
|
|
571
|
+
function Pt(e) {
|
|
571
572
|
{
|
|
572
|
-
var r =
|
|
573
|
+
var r = We();
|
|
573
574
|
if (!r) {
|
|
574
|
-
var
|
|
575
|
-
|
|
575
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
576
|
+
n && (r = `
|
|
576
577
|
|
|
577
|
-
Check the top-level render call using <` +
|
|
578
|
+
Check the top-level render call using <` + n + ">.");
|
|
578
579
|
}
|
|
579
580
|
return r;
|
|
580
581
|
}
|
|
@@ -584,114 +585,114 @@ Check the top-level render call using <` + a + ">.");
|
|
|
584
585
|
if (!e._store || e._store.validated || e.key != null)
|
|
585
586
|
return;
|
|
586
587
|
e._store.validated = !0;
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
588
|
+
var n = Pt(r);
|
|
589
|
+
if (Ae[n])
|
|
589
590
|
return;
|
|
590
|
-
|
|
591
|
-
var
|
|
592
|
-
e && e._owner && e._owner !== ce.current && (
|
|
591
|
+
Ae[n] = !0;
|
|
592
|
+
var u = "";
|
|
593
|
+
e && e._owner && e._owner !== ce.current && (u = " It was passed a child from " + N(e._owner.type) + "."), $(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, u), $(null);
|
|
593
594
|
}
|
|
594
595
|
}
|
|
595
|
-
function
|
|
596
|
+
function Me(e, r) {
|
|
596
597
|
{
|
|
597
598
|
if (typeof e != "object")
|
|
598
599
|
return;
|
|
599
600
|
if (ue(e))
|
|
600
|
-
for (var
|
|
601
|
-
var
|
|
602
|
-
pe(
|
|
601
|
+
for (var n = 0; n < e.length; n++) {
|
|
602
|
+
var u = e[n];
|
|
603
|
+
pe(u) && $e(u, r);
|
|
603
604
|
}
|
|
604
605
|
else if (pe(e))
|
|
605
606
|
e._store && (e._store.validated = !0);
|
|
606
607
|
else if (e) {
|
|
607
|
-
var
|
|
608
|
-
if (typeof
|
|
609
|
-
for (var k =
|
|
610
|
-
pe(
|
|
608
|
+
var x = V(e);
|
|
609
|
+
if (typeof x == "function" && x !== e.entries)
|
|
610
|
+
for (var k = x.call(e), v; !(v = k.next()).done; )
|
|
611
|
+
pe(v.value) && $e(v.value, r);
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
+
function Nt(e) {
|
|
615
616
|
{
|
|
616
617
|
var r = e.type;
|
|
617
618
|
if (r == null || typeof r == "string")
|
|
618
619
|
return;
|
|
619
|
-
var
|
|
620
|
+
var n;
|
|
620
621
|
if (typeof r == "function")
|
|
621
|
-
|
|
622
|
+
n = r.propTypes;
|
|
622
623
|
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
623
624
|
// Inner props are checked in the reconciler.
|
|
624
|
-
r.$$typeof ===
|
|
625
|
-
|
|
625
|
+
r.$$typeof === b))
|
|
626
|
+
n = r.propTypes;
|
|
626
627
|
else
|
|
627
628
|
return;
|
|
628
|
-
if (
|
|
629
|
-
var
|
|
630
|
-
|
|
629
|
+
if (n) {
|
|
630
|
+
var u = N(r);
|
|
631
|
+
bt(n, e.props, "prop", u, e);
|
|
631
632
|
} else if (r.PropTypes !== void 0 && !fe) {
|
|
632
633
|
fe = !0;
|
|
633
|
-
var
|
|
634
|
-
|
|
634
|
+
var x = N(r);
|
|
635
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
635
636
|
}
|
|
636
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
637
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
637
638
|
}
|
|
638
639
|
}
|
|
639
|
-
function
|
|
640
|
+
function jt(e) {
|
|
640
641
|
{
|
|
641
|
-
for (var r = Object.keys(e.props),
|
|
642
|
-
var
|
|
643
|
-
if (
|
|
644
|
-
|
|
642
|
+
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
643
|
+
var u = r[n];
|
|
644
|
+
if (u !== "children" && u !== "key") {
|
|
645
|
+
$(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), $(null);
|
|
645
646
|
break;
|
|
646
647
|
}
|
|
647
648
|
}
|
|
648
|
-
e.ref !== null && (
|
|
649
|
+
e.ref !== null && ($(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
649
650
|
}
|
|
650
651
|
}
|
|
651
|
-
function
|
|
652
|
+
function Ye(e, r, n, u, x, k) {
|
|
652
653
|
{
|
|
653
|
-
var
|
|
654
|
-
if (!
|
|
654
|
+
var v = dt(e);
|
|
655
|
+
if (!v) {
|
|
655
656
|
var g = "";
|
|
656
657
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " 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 S =
|
|
658
|
-
S ? g += S : g +=
|
|
659
|
-
var
|
|
660
|
-
e === null ?
|
|
658
|
+
var S = Ot(x);
|
|
659
|
+
S ? g += S : g += We();
|
|
660
|
+
var w;
|
|
661
|
+
e === null ? w = "null" : ue(e) ? w = "array" : e !== void 0 && e.$$typeof === o ? (w = "<" + (N(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, g);
|
|
661
662
|
}
|
|
662
|
-
var _ =
|
|
663
|
+
var _ = Ct(e, r, n, x, k);
|
|
663
664
|
if (_ == null)
|
|
664
665
|
return _;
|
|
665
|
-
if (
|
|
666
|
+
if (v) {
|
|
666
667
|
var C = r.children;
|
|
667
668
|
if (C !== void 0)
|
|
668
|
-
if (
|
|
669
|
+
if (u)
|
|
669
670
|
if (ue(C)) {
|
|
670
671
|
for (var M = 0; M < C.length; M++)
|
|
671
|
-
|
|
672
|
+
Me(C[M], e);
|
|
672
673
|
Object.freeze && Object.freeze(C);
|
|
673
674
|
} else
|
|
674
|
-
|
|
675
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
675
676
|
else
|
|
676
|
-
|
|
677
|
+
Me(C, e);
|
|
677
678
|
}
|
|
678
|
-
return e ===
|
|
679
|
+
return e === a ? jt(_) : Nt(_), _;
|
|
679
680
|
}
|
|
680
681
|
}
|
|
681
|
-
function
|
|
682
|
-
return
|
|
682
|
+
function Ft(e, r, n) {
|
|
683
|
+
return Ye(e, r, n, !0);
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
685
|
+
function Lt(e, r, n) {
|
|
686
|
+
return Ye(e, r, n, !1);
|
|
686
687
|
}
|
|
687
|
-
var
|
|
688
|
-
z.Fragment =
|
|
688
|
+
var Bt = Lt, It = Ft;
|
|
689
|
+
z.Fragment = a, z.jsx = Bt, z.jsxs = It;
|
|
689
690
|
}()), z;
|
|
690
691
|
}
|
|
691
692
|
(function(t) {
|
|
692
|
-
process.env.NODE_ENV === "production" ? t.exports = $t() : t.exports =
|
|
693
|
-
})(
|
|
694
|
-
const
|
|
693
|
+
process.env.NODE_ENV === "production" ? t.exports = $t() : t.exports = Mt();
|
|
694
|
+
})(At);
|
|
695
|
+
const at = G.Fragment, m = G.jsx, O = G.jsxs, ze = {
|
|
695
696
|
base: "font-bold",
|
|
696
697
|
xs: "text-16 md:text-19 leading-default",
|
|
697
698
|
sm: "text-19 md:text-23 leading-default md:leading-comfy",
|
|
@@ -707,87 +708,87 @@ const rt = G.Fragment, v = G.jsx, P = G.jsxs, Je = {
|
|
|
707
708
|
md: "text-16",
|
|
708
709
|
lg: "text-19",
|
|
709
710
|
xl: "text-23 md:text-28 tracking-tight"
|
|
710
|
-
},
|
|
711
|
+
}, ge = {
|
|
711
712
|
...re,
|
|
712
713
|
base: "font-regular leading-loose",
|
|
713
714
|
xl: "text-23 md:text-28"
|
|
714
|
-
},
|
|
715
|
+
}, Ge = {
|
|
715
716
|
base: "font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",
|
|
716
717
|
xs: "text-11",
|
|
717
718
|
sm: "text-13",
|
|
718
719
|
md: "text-16",
|
|
719
720
|
lg: "text-19",
|
|
720
721
|
xl: "text-23"
|
|
721
|
-
},
|
|
722
|
+
}, He = {
|
|
722
723
|
base: "font-regular leading-default text-text-muted-light dark:text-text-muted-dark",
|
|
723
724
|
sm: "text-11",
|
|
724
725
|
md: "text-13",
|
|
725
726
|
lg: "text-16"
|
|
726
|
-
},
|
|
727
|
+
}, Xe = {
|
|
727
728
|
base: "font-bold leading-default",
|
|
728
729
|
xs: "text-11",
|
|
729
730
|
sm: "text-13",
|
|
730
731
|
md: "text-16",
|
|
731
732
|
lg: "text-19"
|
|
732
|
-
},
|
|
733
|
+
}, Ze = {
|
|
733
734
|
base: "font-medium leading-default text-text-muted-light dark:text-text-muted-dark",
|
|
734
735
|
sm: "text-11",
|
|
735
736
|
md: "text-13",
|
|
736
737
|
lg: "text-16"
|
|
737
|
-
},
|
|
738
|
+
}, Qe = {
|
|
738
739
|
base: "font-regular leading-loose",
|
|
739
740
|
md: "text-16",
|
|
740
741
|
lg: "text-19"
|
|
741
|
-
},
|
|
742
|
+
}, Yt = ({ size: t, variant: o }) => {
|
|
742
743
|
switch (o) {
|
|
743
744
|
case "headline":
|
|
744
|
-
return
|
|
745
|
+
return h(ze.base, ze[t]);
|
|
745
746
|
case "label":
|
|
746
|
-
return
|
|
747
|
+
return h(re.base, t ? re[t] : re.default);
|
|
747
748
|
case "paragraph":
|
|
748
|
-
return
|
|
749
|
+
return h(ge.base, t ? ge[t] : ge.default);
|
|
749
750
|
case "eyebrow":
|
|
750
|
-
return
|
|
751
|
+
return h(Ge.base, Ge[t]);
|
|
751
752
|
case "caption":
|
|
752
|
-
return
|
|
753
|
+
return h(He.base, He[t]);
|
|
753
754
|
case "buttonLabel":
|
|
754
|
-
return
|
|
755
|
+
return h(Xe.base, Xe[t]);
|
|
755
756
|
case "fieldLabel":
|
|
756
|
-
return
|
|
757
|
+
return h(Ze.base, Ze[t]);
|
|
757
758
|
case "fieldTextInput":
|
|
758
|
-
return
|
|
759
|
+
return h(Qe.base, Qe[t]);
|
|
759
760
|
default:
|
|
760
761
|
return t;
|
|
761
762
|
}
|
|
762
|
-
},
|
|
763
|
+
}, Ut = {
|
|
763
764
|
primary: "font-aktiv-grotesk",
|
|
764
765
|
secondary: "font-untitled-serif"
|
|
765
|
-
},
|
|
766
|
-
const p = "text-text-light dark:text-text-dark",
|
|
767
|
-
return /* @__PURE__ */
|
|
768
|
-
|
|
766
|
+
}, qt = ({ className: t, component: o = "p", children: i, font: a = "primary", size: l, variant: s, ...d }, f) => {
|
|
767
|
+
const p = "text-text-light dark:text-text-dark", y = Ut[a], c = Yt({ size: l, variant: s });
|
|
768
|
+
return /* @__PURE__ */ m(
|
|
769
|
+
rt,
|
|
769
770
|
{
|
|
770
|
-
className:
|
|
771
|
+
className: h(p, c, y, t),
|
|
771
772
|
component: o,
|
|
772
773
|
ref: f,
|
|
773
774
|
...d,
|
|
774
775
|
children: i
|
|
775
776
|
}
|
|
776
777
|
);
|
|
777
|
-
}, ye = L(
|
|
778
|
+
}, ye = L(qt);
|
|
778
779
|
ye.displayName = "Text";
|
|
779
|
-
const
|
|
780
|
+
const Kt = ({
|
|
780
781
|
children: t,
|
|
781
782
|
component: o = "a",
|
|
782
783
|
className: i,
|
|
783
|
-
active:
|
|
784
|
+
active: a,
|
|
784
785
|
...l
|
|
785
|
-
}) => /* @__PURE__ */
|
|
786
|
+
}) => /* @__PURE__ */ m(
|
|
786
787
|
ye,
|
|
787
788
|
{
|
|
788
|
-
className:
|
|
789
|
+
className: h([
|
|
789
790
|
"font-bold text-gray-50 leading-default",
|
|
790
|
-
|
|
791
|
+
a ? "underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose" : "text-13",
|
|
791
792
|
i
|
|
792
793
|
]),
|
|
793
794
|
component: o,
|
|
@@ -795,58 +796,58 @@ const qt = ({
|
|
|
795
796
|
children: t
|
|
796
797
|
}
|
|
797
798
|
);
|
|
798
|
-
|
|
799
|
-
var
|
|
799
|
+
Kt.displayName = "Breadcrumb";
|
|
800
|
+
var Jt = Object.defineProperty, zt = Object.defineProperties, Gt = Object.getOwnPropertyDescriptors, ae = Object.getOwnPropertySymbols, nt = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable, et = (t, o, i) => o in t ? Jt(t, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[o] = i, Ht = (t, o) => {
|
|
800
801
|
for (var i in o || (o = {}))
|
|
801
|
-
nt.call(o, i) &&
|
|
802
|
-
if (
|
|
803
|
-
for (var i of
|
|
804
|
-
|
|
802
|
+
nt.call(o, i) && et(t, i, o[i]);
|
|
803
|
+
if (ae)
|
|
804
|
+
for (var i of ae(o))
|
|
805
|
+
ot.call(o, i) && et(t, i, o[i]);
|
|
805
806
|
return t;
|
|
806
|
-
},
|
|
807
|
+
}, Xt = (t, o) => zt(t, Gt(o)), Zt = (t, o) => {
|
|
807
808
|
var i = {};
|
|
808
|
-
for (var
|
|
809
|
-
nt.call(t,
|
|
810
|
-
if (t != null &&
|
|
811
|
-
for (var
|
|
812
|
-
o.indexOf(
|
|
809
|
+
for (var a in t)
|
|
810
|
+
nt.call(t, a) && o.indexOf(a) < 0 && (i[a] = t[a]);
|
|
811
|
+
if (t != null && ae)
|
|
812
|
+
for (var a of ae(t))
|
|
813
|
+
o.indexOf(a) < 0 && ot.call(t, a) && (i[a] = t[a]);
|
|
813
814
|
return i;
|
|
814
|
-
},
|
|
815
|
-
var i = t, { title:
|
|
816
|
-
return
|
|
817
|
-
},
|
|
818
|
-
const
|
|
819
|
-
const l = F.Children.toArray(t),
|
|
815
|
+
}, Qt = (t, o) => {
|
|
816
|
+
var i = t, { title: a, titleId: l } = i, s = Zt(i, ["title", "titleId"]);
|
|
817
|
+
return O("svg", Xt(Ht({ width: s.size || "24", height: s.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: o, "aria-labelledby": l }, s), { children: [a ? m("title", { id: l, children: a }) : null, m("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z", fill: "currentColor" })] }));
|
|
818
|
+
}, er = L(Qt), tr = er;
|
|
819
|
+
const rr = ({ children: t, className: o, ...i }, a) => {
|
|
820
|
+
const l = F.Children.toArray(t), s = l.findIndex((d) => {
|
|
820
821
|
var f;
|
|
821
822
|
return F.isValidElement(d) ? (f = d == null ? void 0 : d.props) == null ? void 0 : f.active : !1;
|
|
822
823
|
});
|
|
823
|
-
return /* @__PURE__ */
|
|
824
|
+
return /* @__PURE__ */ m(
|
|
824
825
|
"div",
|
|
825
826
|
{
|
|
826
|
-
className:
|
|
827
|
+
className: h([
|
|
827
828
|
"flex bg-canvas-light dark:bg-canvas-dark py-0.5 flex-row min-h-[48px] rtl:rotate-180",
|
|
828
829
|
o
|
|
829
830
|
]),
|
|
830
|
-
ref:
|
|
831
|
+
ref: a,
|
|
831
832
|
...i,
|
|
832
|
-
children: l.map((d, f) => /* @__PURE__ */
|
|
833
|
-
f ? /* @__PURE__ */
|
|
834
|
-
|
|
833
|
+
children: l.map((d, f) => /* @__PURE__ */ O("div", { className: "flex items-center", children: [
|
|
834
|
+
f ? /* @__PURE__ */ m(
|
|
835
|
+
tr,
|
|
835
836
|
{
|
|
836
|
-
className:
|
|
837
|
+
className: h([
|
|
837
838
|
"mx-1",
|
|
838
|
-
f >
|
|
839
|
-
f <=
|
|
839
|
+
f > s && "text-gray-15",
|
|
840
|
+
f <= s && "text-gray-25"
|
|
840
841
|
]),
|
|
841
842
|
size: "15"
|
|
842
843
|
}
|
|
843
844
|
) : null,
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ m(
|
|
845
846
|
"div",
|
|
846
847
|
{
|
|
847
|
-
className:
|
|
848
|
-
f <
|
|
849
|
-
f >
|
|
848
|
+
className: h([
|
|
849
|
+
f < s ? "bg-gray-10 dark:bg-gray-40 py-1.5 px-3 rounded-3 cursor-pointer" : "px-0.5",
|
|
850
|
+
f > s && "[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium",
|
|
850
851
|
"rtl:rotate-180"
|
|
851
852
|
]),
|
|
852
853
|
children: d
|
|
@@ -855,15 +856,15 @@ const tr = ({ children: t, className: o, ...i }, n) => {
|
|
|
855
856
|
] }, `${f}-${d.toString()}`))
|
|
856
857
|
}
|
|
857
858
|
);
|
|
858
|
-
},
|
|
859
|
-
|
|
860
|
-
const
|
|
859
|
+
}, ar = F.forwardRef(rr);
|
|
860
|
+
ar.displayName = "Breadcrumbs";
|
|
861
|
+
const Cr = {
|
|
861
862
|
lg: "lg",
|
|
862
863
|
md: "md",
|
|
863
864
|
sm: "sm",
|
|
864
865
|
xl: "xl",
|
|
865
866
|
xs: "xs"
|
|
866
|
-
},
|
|
867
|
+
}, it = (t) => {
|
|
867
868
|
switch (t) {
|
|
868
869
|
case "start":
|
|
869
870
|
return {
|
|
@@ -890,13 +891,13 @@ const Rr = {
|
|
|
890
891
|
xs: "rounded-3 text-11 px-2 py-1"
|
|
891
892
|
};
|
|
892
893
|
}
|
|
893
|
-
},
|
|
894
|
+
}, ne = {
|
|
894
895
|
lg: 30,
|
|
895
896
|
md: 24,
|
|
896
897
|
sm: 18,
|
|
897
898
|
xl: 36,
|
|
898
899
|
xs: 12
|
|
899
|
-
},
|
|
900
|
+
}, lt = "items-center leading-default font-bold ease-in-out duration-100 focus:outline-2 focus:outline-info-light dark:focus:outline-info-dark flex w-full max-w-fit", st = {
|
|
900
901
|
// bgColor, outlineColor, disabled, fontColor, hover, pressed, disabled, textTransform
|
|
901
902
|
all_caps: "bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",
|
|
902
903
|
borderless: "bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",
|
|
@@ -905,47 +906,89 @@ const Rr = {
|
|
|
905
906
|
risk: "bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",
|
|
906
907
|
secondary: "bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",
|
|
907
908
|
stroked: "bg-transparent outline outline-2 outline-gray-50 dark:outline-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"
|
|
908
|
-
}, nr = ({
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
909
|
+
}, nr = ({
|
|
910
|
+
className: t,
|
|
911
|
+
children: o,
|
|
912
|
+
disabled: i,
|
|
913
|
+
icon: a,
|
|
914
|
+
iconPosition: l,
|
|
915
|
+
size: s = "md",
|
|
916
|
+
type: d = "button",
|
|
917
|
+
variant: f = "primary",
|
|
918
|
+
...p
|
|
919
|
+
}, y) => {
|
|
920
|
+
const c = it(a !== void 0 ? l : void 0), b = h(lt, st[f], c[s], t);
|
|
921
|
+
return /* @__PURE__ */ O("button", { className: b, disabled: i, ref: y, type: d, ...p, children: [
|
|
922
|
+
l === "start" && a !== void 0 ? I(a, {
|
|
912
923
|
className: "mr-0.5 min-w-min",
|
|
913
|
-
size:
|
|
924
|
+
size: ne[s]
|
|
914
925
|
}) : null,
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
l === "end" &&
|
|
926
|
+
/* @__PURE__ */ m("span", { className: "truncate", children: o }),
|
|
927
|
+
l === "end" && a !== void 0 ? I(a, {
|
|
917
928
|
className: "ml-0.5 min-w-min",
|
|
918
|
-
size:
|
|
929
|
+
size: ne[s]
|
|
919
930
|
}) : null
|
|
920
931
|
] });
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
const
|
|
924
|
-
const
|
|
925
|
-
return
|
|
932
|
+
}, or = L(nr);
|
|
933
|
+
or.displayName = "Button";
|
|
934
|
+
const ir = ({ error: t, className: o, label: i, disabled: a, name: l, ...s }, d) => {
|
|
935
|
+
const f = ve.useId(), p = ve.useMemo(() => `checkbox-label-${f}`, [f]);
|
|
936
|
+
return /* @__PURE__ */ O(
|
|
937
|
+
"div",
|
|
938
|
+
{
|
|
939
|
+
className: h([
|
|
940
|
+
"flex items-baseline rounded-0.5 w-fit 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",
|
|
941
|
+
o
|
|
942
|
+
]),
|
|
943
|
+
children: [
|
|
944
|
+
/* @__PURE__ */ m(
|
|
945
|
+
"input",
|
|
946
|
+
{
|
|
947
|
+
"aria-labelledby": p,
|
|
948
|
+
className: "w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer",
|
|
949
|
+
disabled: a,
|
|
950
|
+
id: l,
|
|
951
|
+
name: l,
|
|
952
|
+
ref: d,
|
|
953
|
+
type: "checkbox",
|
|
954
|
+
...s
|
|
955
|
+
}
|
|
956
|
+
),
|
|
957
|
+
/* @__PURE__ */ O("div", { className: "peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark", children: [
|
|
958
|
+
/* @__PURE__ */ m("label", { htmlFor: l, id: p, children: i }),
|
|
959
|
+
t ? /* @__PURE__ */ m("div", { className: "text-alert-light dark:text-alert-dark text-13", children: t }) : null
|
|
960
|
+
] })
|
|
961
|
+
]
|
|
962
|
+
}
|
|
963
|
+
);
|
|
964
|
+
}, lr = ve.forwardRef(ir);
|
|
965
|
+
lr.displayName = "Checkbox";
|
|
966
|
+
const sr = ({ children: t, autoFocus: o = !0 }) => {
|
|
967
|
+
const i = xe(null);
|
|
968
|
+
return he(() => {
|
|
926
969
|
if (i.current) {
|
|
927
|
-
const
|
|
970
|
+
const a = i.current.querySelectorAll(
|
|
928
971
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
929
972
|
);
|
|
930
973
|
let l = document.activeElement;
|
|
931
|
-
const
|
|
932
|
-
if (
|
|
933
|
-
if (
|
|
934
|
-
if (document.activeElement ===
|
|
935
|
-
|
|
974
|
+
const s = a[0], d = a[a.length - 1], f = (c) => {
|
|
975
|
+
if (c.key === "Tab") {
|
|
976
|
+
if (c.shiftKey) {
|
|
977
|
+
if (document.activeElement === s)
|
|
978
|
+
c.preventDefault(), d.focus(), l = d;
|
|
936
979
|
else
|
|
937
|
-
for (let
|
|
938
|
-
if (
|
|
939
|
-
l =
|
|
980
|
+
for (let b = 0; b < a.length; b++)
|
|
981
|
+
if (a[b] === document.activeElement) {
|
|
982
|
+
l = a[b - 1];
|
|
940
983
|
break;
|
|
941
984
|
}
|
|
942
|
-
} else if (!
|
|
985
|
+
} else if (!c.shiftKey) {
|
|
943
986
|
if (document.activeElement === d)
|
|
944
|
-
|
|
987
|
+
c.preventDefault(), s.focus(), l = s;
|
|
945
988
|
else
|
|
946
|
-
for (let
|
|
947
|
-
if (
|
|
948
|
-
l =
|
|
989
|
+
for (let b = 0; b < a.length; b++)
|
|
990
|
+
if (a[b] === document.activeElement) {
|
|
991
|
+
l = a[b + 1];
|
|
949
992
|
break;
|
|
950
993
|
}
|
|
951
994
|
}
|
|
@@ -953,98 +996,99 @@ const or = ({ children: t, autoFocus: o = !0 }) => {
|
|
|
953
996
|
};
|
|
954
997
|
o && (() => {
|
|
955
998
|
if (i.current) {
|
|
956
|
-
const
|
|
999
|
+
const c = i.current.querySelector(
|
|
957
1000
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
958
1001
|
);
|
|
959
|
-
|
|
1002
|
+
c && c.focus();
|
|
960
1003
|
}
|
|
961
1004
|
})();
|
|
962
|
-
const
|
|
963
|
-
i.current && !i.current.contains(
|
|
1005
|
+
const y = (c) => {
|
|
1006
|
+
i.current && !i.current.contains(c.target) && l.focus();
|
|
964
1007
|
};
|
|
965
|
-
return document.addEventListener("keydown", f), document.addEventListener("click",
|
|
966
|
-
document.removeEventListener("keydown", f), document.removeEventListener("click",
|
|
1008
|
+
return document.addEventListener("keydown", f), document.addEventListener("click", y), () => {
|
|
1009
|
+
document.removeEventListener("keydown", f), document.removeEventListener("click", y);
|
|
967
1010
|
};
|
|
968
1011
|
}
|
|
969
|
-
}, [o]), /* @__PURE__ */
|
|
970
|
-
},
|
|
1012
|
+
}, [o]), /* @__PURE__ */ m("div", { ref: i, children: t });
|
|
1013
|
+
}, ur = ({ children: t, className: o, disabled: i, type: a = "button", ...l }, s) => /* @__PURE__ */ m(
|
|
971
1014
|
"button",
|
|
972
1015
|
{
|
|
973
|
-
className:
|
|
1016
|
+
className: h([
|
|
974
1017
|
"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",
|
|
975
1018
|
o
|
|
976
1019
|
]),
|
|
977
1020
|
disabled: i,
|
|
978
|
-
ref:
|
|
979
|
-
|
|
1021
|
+
ref: s,
|
|
1022
|
+
type: a,
|
|
1023
|
+
...l,
|
|
980
1024
|
children: t
|
|
981
1025
|
}
|
|
982
|
-
),
|
|
983
|
-
|
|
984
|
-
const
|
|
1026
|
+
), be = L(ur);
|
|
1027
|
+
be.displayName = "IconButton";
|
|
1028
|
+
const dr = ({ className: t, children: o, component: i = "a", ...a }, l) => I(
|
|
985
1029
|
i,
|
|
986
1030
|
{
|
|
987
|
-
...
|
|
988
|
-
className:
|
|
1031
|
+
...a,
|
|
1032
|
+
className: h([
|
|
989
1033
|
"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",
|
|
990
1034
|
t
|
|
991
1035
|
]),
|
|
992
1036
|
ref: l
|
|
993
1037
|
},
|
|
994
1038
|
o
|
|
995
|
-
),
|
|
996
|
-
|
|
997
|
-
const
|
|
1039
|
+
), cr = L(dr);
|
|
1040
|
+
cr.displayName = "IconLinkButton";
|
|
1041
|
+
const fr = ({ innerRef: t, forwardedRef: o }) => (he(() => {
|
|
998
1042
|
[t, o].forEach((i) => {
|
|
999
1043
|
i && (typeof i == "function" ? i(t.current || null) : i.current = t.current || null);
|
|
1000
1044
|
});
|
|
1001
|
-
}, [t, o]), t),
|
|
1045
|
+
}, [t, o]), t), pr = ({
|
|
1002
1046
|
className: t,
|
|
1003
1047
|
disabled: o,
|
|
1004
1048
|
endIcon: i,
|
|
1005
|
-
error:
|
|
1049
|
+
error: a,
|
|
1006
1050
|
hint: l,
|
|
1007
|
-
label:
|
|
1051
|
+
label: s,
|
|
1008
1052
|
name: d,
|
|
1009
1053
|
onChange: f,
|
|
1010
1054
|
placeholder: p,
|
|
1011
|
-
startIcon:
|
|
1012
|
-
value:
|
|
1013
|
-
...
|
|
1055
|
+
startIcon: y,
|
|
1056
|
+
value: c,
|
|
1057
|
+
...b
|
|
1014
1058
|
}, T) => {
|
|
1015
|
-
const B =
|
|
1059
|
+
const B = xe(null), R = fr({ forwardedRef: T, innerRef: B }), [Y, V] = F.useState(Boolean(c)), [P, E] = F.useState(!1);
|
|
1016
1060
|
F.useEffect(() => {
|
|
1017
|
-
var
|
|
1018
|
-
V(Boolean((
|
|
1019
|
-
}, [
|
|
1020
|
-
const U = (
|
|
1061
|
+
var A;
|
|
1062
|
+
V(Boolean((A = R == null ? void 0 : R.current) == null ? void 0 : A.value) || Boolean(c || p));
|
|
1063
|
+
}, [c, p, R]);
|
|
1064
|
+
const U = (A) => {
|
|
1021
1065
|
var H;
|
|
1022
|
-
V(Boolean((H = R == null ? void 0 : R.current) == null ? void 0 : H.value) || Boolean(
|
|
1066
|
+
V(Boolean((H = R == null ? void 0 : R.current) == null ? void 0 : H.value) || Boolean(c || p)), f && f(A);
|
|
1023
1067
|
}, W = () => {
|
|
1024
|
-
o || !R.current || (R.current.focus(),
|
|
1068
|
+
o || !R.current || (R.current.focus(), E(!0));
|
|
1025
1069
|
}, oe = () => {
|
|
1026
|
-
|
|
1070
|
+
E(!1);
|
|
1027
1071
|
};
|
|
1028
|
-
return /* @__PURE__ */
|
|
1029
|
-
/* @__PURE__ */
|
|
1072
|
+
return /* @__PURE__ */ O("div", { className: "flex items-start flex-col gap-0.5", children: [
|
|
1073
|
+
/* @__PURE__ */ O(
|
|
1030
1074
|
"div",
|
|
1031
1075
|
{
|
|
1032
|
-
className:
|
|
1076
|
+
className: h([
|
|
1033
1077
|
"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",
|
|
1034
1078
|
o ? "bg-gray-10 dark:bg-gray-40" : null,
|
|
1035
|
-
|
|
1079
|
+
a ? "border-alert dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark"
|
|
1036
1080
|
]),
|
|
1037
1081
|
onClick: W,
|
|
1038
1082
|
onFocus: W,
|
|
1039
1083
|
children: [
|
|
1040
|
-
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */
|
|
1084
|
+
y ? /* @__PURE__ */ m("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: y }) : null,
|
|
1085
|
+
/* @__PURE__ */ O("span", { className: "relative flex flex-1 overflow-hidden", children: [
|
|
1086
|
+
/* @__PURE__ */ m(
|
|
1043
1087
|
"input",
|
|
1044
1088
|
{
|
|
1045
|
-
className:
|
|
1089
|
+
className: h([
|
|
1046
1090
|
"self-stretch bg-transparent flex-auto outline-none overflow-hidden pbs-3 pbe-1",
|
|
1047
|
-
|
|
1091
|
+
y ? "pis-1" : "pis-2",
|
|
1048
1092
|
i ? "pie-1" : "pie-2",
|
|
1049
1093
|
t
|
|
1050
1094
|
]),
|
|
@@ -1054,134 +1098,134 @@ const ur = ({ innerRef: t, forwardedRef: o }) => (xe(() => {
|
|
|
1054
1098
|
onChange: U,
|
|
1055
1099
|
placeholder: p,
|
|
1056
1100
|
ref: R,
|
|
1057
|
-
value:
|
|
1058
|
-
...
|
|
1101
|
+
value: c,
|
|
1102
|
+
...b
|
|
1059
1103
|
}
|
|
1060
1104
|
),
|
|
1061
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ m(
|
|
1062
1106
|
"label",
|
|
1063
1107
|
{
|
|
1064
|
-
className:
|
|
1108
|
+
className: h(
|
|
1065
1109
|
"items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",
|
|
1066
|
-
|
|
1067
|
-
|
|
1110
|
+
y ? "ltr:left-1 rtl:right-1" : "ltr:left-2 rtl:right-2",
|
|
1111
|
+
P || Y ? "text-13 -translate-y-1.5" : "text-16"
|
|
1068
1112
|
),
|
|
1069
1113
|
htmlFor: d,
|
|
1070
|
-
children:
|
|
1114
|
+
children: s
|
|
1071
1115
|
}
|
|
1072
1116
|
)
|
|
1073
1117
|
] }),
|
|
1074
|
-
i ? /* @__PURE__ */
|
|
1118
|
+
i ? /* @__PURE__ */ m("div", { className: "text-text-muted-light dark:text-text-muted-dark pie-1.5", children: i }) : null
|
|
1075
1119
|
]
|
|
1076
1120
|
}
|
|
1077
1121
|
),
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
l ? /* @__PURE__ */
|
|
1122
|
+
a || l ? /* @__PURE__ */ O("div", { className: "flex flex-col", children: [
|
|
1123
|
+
a ? /* @__PURE__ */ m("span", { className: "text-alert dark:text-alert-dark", children: a }) : null,
|
|
1124
|
+
l ? /* @__PURE__ */ m("span", { className: "text-text-muted-light dark:text-text-muted-dark text-13 leading-default", children: l }) : null
|
|
1081
1125
|
] }) : null
|
|
1082
1126
|
] });
|
|
1083
|
-
},
|
|
1084
|
-
|
|
1085
|
-
const
|
|
1127
|
+
}, mr = F.forwardRef(pr);
|
|
1128
|
+
mr.displayName = "Input";
|
|
1129
|
+
const gr = ({
|
|
1086
1130
|
className: t,
|
|
1087
1131
|
children: o,
|
|
1088
1132
|
component: i = "a",
|
|
1089
|
-
icon:
|
|
1133
|
+
icon: a,
|
|
1090
1134
|
iconPosition: l,
|
|
1091
|
-
variant:
|
|
1135
|
+
variant: s = "primary",
|
|
1092
1136
|
size: d = "md",
|
|
1093
1137
|
...f
|
|
1094
1138
|
}, p) => {
|
|
1095
|
-
const
|
|
1096
|
-
return /* @__PURE__ */
|
|
1139
|
+
const y = it(a !== void 0 ? l : void 0);
|
|
1140
|
+
return /* @__PURE__ */ O(({ children: b }) => I(
|
|
1097
1141
|
i,
|
|
1098
1142
|
{
|
|
1099
1143
|
...f,
|
|
1100
|
-
className:
|
|
1144
|
+
className: h([lt, st[s], y[d], t]),
|
|
1101
1145
|
ref: p
|
|
1102
1146
|
},
|
|
1103
|
-
|
|
1147
|
+
b
|
|
1104
1148
|
), { children: [
|
|
1105
|
-
l === "start" &&
|
|
1149
|
+
l === "start" && a !== void 0 ? I(a, {
|
|
1106
1150
|
className: "mr-0.5 min-w-min",
|
|
1107
|
-
size:
|
|
1151
|
+
size: ne[d]
|
|
1108
1152
|
}) : null,
|
|
1109
|
-
|
|
1110
|
-
l === "end" &&
|
|
1153
|
+
I("span", { className: "truncate" }, o),
|
|
1154
|
+
l === "end" && a !== void 0 ? I(a, {
|
|
1111
1155
|
className: "ml-0.5 min-w-min",
|
|
1112
|
-
size:
|
|
1156
|
+
size: ne[d]
|
|
1113
1157
|
}) : null
|
|
1114
1158
|
] });
|
|
1115
|
-
},
|
|
1116
|
-
|
|
1117
|
-
const
|
|
1159
|
+
}, vr = L(gr);
|
|
1160
|
+
vr.displayName = "LinkButton";
|
|
1161
|
+
const br = ({ children: t, className: o, ...i }, a) => /* @__PURE__ */ m(
|
|
1118
1162
|
"ul",
|
|
1119
1163
|
{
|
|
1120
|
-
className:
|
|
1121
|
-
ref:
|
|
1164
|
+
className: h(["w-fit bg-canvas-light dark:bg-canvas-dark rounded-1 py-0.5", o]),
|
|
1165
|
+
ref: a,
|
|
1122
1166
|
...i,
|
|
1123
1167
|
children: t
|
|
1124
1168
|
}
|
|
1125
|
-
),
|
|
1126
|
-
|
|
1127
|
-
const
|
|
1128
|
-
const
|
|
1129
|
-
|
|
1169
|
+
), xr = L(br);
|
|
1170
|
+
xr.displayName = "List";
|
|
1171
|
+
const hr = ({ children: t, className: o, divider: i, endAction: a, endIcon: l, onClick: s, startAction: d, startIcon: f, ...p }, y) => {
|
|
1172
|
+
const c = (b) => {
|
|
1173
|
+
s && (b.code === "Enter" || b.key === " ") && s();
|
|
1130
1174
|
};
|
|
1131
|
-
return /* @__PURE__ */
|
|
1175
|
+
return /* @__PURE__ */ O(
|
|
1132
1176
|
"li",
|
|
1133
1177
|
{
|
|
1134
|
-
className:
|
|
1178
|
+
className: h([
|
|
1135
1179
|
"flex items-center box-border relative",
|
|
1136
1180
|
i ? "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,
|
|
1137
1181
|
o
|
|
1138
1182
|
]),
|
|
1139
|
-
ref:
|
|
1183
|
+
ref: y,
|
|
1140
1184
|
...p,
|
|
1141
1185
|
children: [
|
|
1142
|
-
d ? /* @__PURE__ */
|
|
1143
|
-
/* @__PURE__ */
|
|
1186
|
+
d ? /* @__PURE__ */ m("div", { className: "absolute ltr:left-1 rtl:right-1", onClick: d, children: /* @__PURE__ */ m(be, { children: f }) }) : null,
|
|
1187
|
+
/* @__PURE__ */ O(
|
|
1144
1188
|
"div",
|
|
1145
1189
|
{
|
|
1146
|
-
className:
|
|
1190
|
+
className: h([
|
|
1147
1191
|
"flex flex-1 py-2 gap-x-2",
|
|
1148
1192
|
d ? "pis-4" : "pis-2",
|
|
1149
|
-
|
|
1150
|
-
|
|
1193
|
+
a ? "pie-4" : "pie-2",
|
|
1194
|
+
s ? "cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-40" : void 0
|
|
1151
1195
|
]),
|
|
1152
|
-
onClick:
|
|
1153
|
-
onKeyUp:
|
|
1154
|
-
onTouchEnd:
|
|
1155
|
-
tabIndex:
|
|
1196
|
+
onClick: s,
|
|
1197
|
+
onKeyUp: c,
|
|
1198
|
+
onTouchEnd: s,
|
|
1199
|
+
tabIndex: s ? 0 : void 0,
|
|
1156
1200
|
children: [
|
|
1157
|
-
f && !d ? /* @__PURE__ */
|
|
1158
|
-
/* @__PURE__ */
|
|
1159
|
-
l && !
|
|
1201
|
+
f && !d ? /* @__PURE__ */ m("div", { children: f }) : null,
|
|
1202
|
+
/* @__PURE__ */ m("div", { className: h(["flex-grow", d ? "pis-2" : null, a ? "pie-2" : null]), children: t }),
|
|
1203
|
+
l && !a ? /* @__PURE__ */ m("div", { children: l }) : null
|
|
1160
1204
|
]
|
|
1161
1205
|
}
|
|
1162
1206
|
),
|
|
1163
|
-
|
|
1207
|
+
a ? /* @__PURE__ */ m("div", { className: "absolute ltr:right-1 rtl:left-1", onClick: a, children: /* @__PURE__ */ m(be, { children: l }) }) : null
|
|
1164
1208
|
]
|
|
1165
1209
|
}
|
|
1166
1210
|
);
|
|
1167
|
-
},
|
|
1168
|
-
|
|
1169
|
-
const
|
|
1211
|
+
}, yr = L(hr);
|
|
1212
|
+
yr.displayName = "ListItem";
|
|
1213
|
+
const Or = ({ children: t, className: o, size: i = "sm" }) => /* @__PURE__ */ m(ye, { className: o, size: i, variant: "label", children: t }), Pr = ({ children: t, className: o, ...i }) => /* @__PURE__ */ m("div", { className: h(["relative", o]), ...i, children: t }), kr = {
|
|
1170
1214
|
"no-scrollbar": "_no-scrollbar_1ivfd_1"
|
|
1171
|
-
},
|
|
1215
|
+
}, wr = ({
|
|
1172
1216
|
align: t,
|
|
1173
1217
|
children: o,
|
|
1174
1218
|
className: i,
|
|
1175
|
-
isDismissible:
|
|
1219
|
+
isDismissible: a,
|
|
1176
1220
|
onClose: l,
|
|
1177
|
-
...
|
|
1221
|
+
...s
|
|
1178
1222
|
}) => {
|
|
1179
|
-
const d =
|
|
1180
|
-
|
|
1181
|
-
const p = (
|
|
1182
|
-
switch (
|
|
1223
|
+
const d = xe(null);
|
|
1224
|
+
he(() => {
|
|
1225
|
+
const p = (c) => {
|
|
1226
|
+
switch (c.key) {
|
|
1183
1227
|
case "Escape":
|
|
1184
|
-
|
|
1228
|
+
a && l && l();
|
|
1185
1229
|
break;
|
|
1186
1230
|
case " ":
|
|
1187
1231
|
l && l();
|
|
@@ -1190,88 +1234,89 @@ const Sr = ({ children: t, className: o, size: i = "sm" }) => /* @__PURE__ */ v(
|
|
|
1190
1234
|
l && l();
|
|
1191
1235
|
break;
|
|
1192
1236
|
}
|
|
1193
|
-
},
|
|
1194
|
-
typeof l == "function" && (d.current && !d.current.contains(
|
|
1237
|
+
}, y = (c) => {
|
|
1238
|
+
typeof l == "function" && (d.current && !d.current.contains(c.target) ? a && l() : l());
|
|
1195
1239
|
};
|
|
1196
|
-
return window.addEventListener("click",
|
|
1197
|
-
window.removeEventListener("click",
|
|
1240
|
+
return window.addEventListener("click", y), document.addEventListener("keyup", p), () => {
|
|
1241
|
+
window.removeEventListener("click", y), document.removeEventListener("keyup", p);
|
|
1198
1242
|
};
|
|
1199
|
-
}, [d,
|
|
1243
|
+
}, [d, a, l]);
|
|
1200
1244
|
const f = Dt(() => {
|
|
1201
|
-
const { horizontal: p, vertical:
|
|
1245
|
+
const { horizontal: p, vertical: y } = t, c = {
|
|
1202
1246
|
center: "left-1/2",
|
|
1203
1247
|
end: "inline-end-0",
|
|
1204
1248
|
start: "inline-start-0"
|
|
1205
|
-
},
|
|
1249
|
+
}, b = {
|
|
1206
1250
|
bottom: "",
|
|
1207
1251
|
top: "bottom-full"
|
|
1208
1252
|
};
|
|
1209
|
-
return `${
|
|
1253
|
+
return `${c[p]} ${b[y]}`;
|
|
1210
1254
|
}, [t]);
|
|
1211
|
-
return /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ m(
|
|
1212
1256
|
"div",
|
|
1213
1257
|
{
|
|
1214
|
-
className:
|
|
1258
|
+
className: h([
|
|
1215
1259
|
"absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mb-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px]",
|
|
1216
|
-
|
|
1260
|
+
kr["no-scrollbar"],
|
|
1217
1261
|
f,
|
|
1218
1262
|
i
|
|
1219
1263
|
]),
|
|
1220
1264
|
ref: d,
|
|
1221
|
-
...
|
|
1265
|
+
...s,
|
|
1222
1266
|
children: o
|
|
1223
1267
|
}
|
|
1224
1268
|
);
|
|
1225
|
-
},
|
|
1269
|
+
}, Er = ({ open: t, children: o }) => /* @__PURE__ */ m(at, { children: t ? o : null }), Nr = ({
|
|
1226
1270
|
align: t = { horizontal: "start", vertical: "bottom" },
|
|
1227
1271
|
autoFocus: o = !0,
|
|
1228
1272
|
children: i,
|
|
1229
|
-
className:
|
|
1273
|
+
className: a,
|
|
1230
1274
|
isDismissible: l,
|
|
1231
|
-
isOpen:
|
|
1275
|
+
isOpen: s,
|
|
1232
1276
|
onClose: d,
|
|
1233
1277
|
...f
|
|
1234
|
-
}) => /* @__PURE__ */
|
|
1235
|
-
|
|
1278
|
+
}) => /* @__PURE__ */ m(Er, { open: s, children: /* @__PURE__ */ m(sr, { autoFocus: o, children: /* @__PURE__ */ m(
|
|
1279
|
+
wr,
|
|
1236
1280
|
{
|
|
1237
1281
|
align: t,
|
|
1238
|
-
className:
|
|
1282
|
+
className: a,
|
|
1239
1283
|
isDismissible: l,
|
|
1240
1284
|
onClose: d,
|
|
1241
1285
|
...f,
|
|
1242
1286
|
children: i
|
|
1243
1287
|
}
|
|
1244
|
-
) }) }),
|
|
1245
|
-
const l =
|
|
1246
|
-
|
|
1288
|
+
) }) }), jr = ({ onToggle: t, children: o, disabled: i }) => {
|
|
1289
|
+
const l = Vt(o, { disabled: i, onClick: (s) => {
|
|
1290
|
+
s.stopPropagation(), t();
|
|
1247
1291
|
} });
|
|
1248
|
-
return /* @__PURE__ */
|
|
1249
|
-
},
|
|
1250
|
-
tooltipWrapper:
|
|
1251
|
-
tooltipContent:
|
|
1252
|
-
},
|
|
1292
|
+
return /* @__PURE__ */ m(at, { children: l });
|
|
1293
|
+
}, _r = "_tooltipWrapper_qu88w_1", Rr = "_tooltipContent_qu88w_18", tt = {
|
|
1294
|
+
tooltipWrapper: _r,
|
|
1295
|
+
tooltipContent: Rr
|
|
1296
|
+
}, Fr = ({ content: t, className: o, ...i }) => /* @__PURE__ */ m("div", { className: h(tt.tooltipWrapper, o), ...i, children: /* @__PURE__ */ m("span", { className: tt.tooltipContent, children: t }) });
|
|
1253
1297
|
export {
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1298
|
+
rt as Box,
|
|
1299
|
+
Kt as Breadcrumb,
|
|
1300
|
+
ar as Breadcrumbs,
|
|
1301
|
+
or as Button,
|
|
1258
1302
|
nr as ButtonComponent,
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
cr as
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1303
|
+
lr as Checkbox,
|
|
1304
|
+
sr as FocusTrap,
|
|
1305
|
+
be as IconButton,
|
|
1306
|
+
cr as IconLinkButton,
|
|
1307
|
+
mr as Input,
|
|
1308
|
+
vr as LinkButton,
|
|
1309
|
+
gr as LinkButtonComponent,
|
|
1310
|
+
xr as List,
|
|
1311
|
+
yr as ListItem,
|
|
1312
|
+
Or as ListItemText,
|
|
1313
|
+
Pr as Popover,
|
|
1314
|
+
Nr as PopoverBody,
|
|
1315
|
+
jr as PopoverTrigger,
|
|
1316
|
+
Fr as Tooltip,
|
|
1317
|
+
Cr as buttonSizeOptions,
|
|
1318
|
+
lt as defaultButtonClasses,
|
|
1319
|
+
it as determineSizeClasses,
|
|
1320
|
+
ne as iconSizes,
|
|
1321
|
+
st as variantClasses
|
|
1277
1322
|
};
|