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