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