@youversion/design-system-components 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.es.js +700 -0
- package/dist/index.umd.js +27 -0
- package/dist/style.css +1 -0
- package/package.json +66 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @youversion/design-system-components
|
|
2
|
+
|
|
3
|
+
## 0.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fce7ae5: Initial release
|
|
8
|
+
- Updated dependencies [fce7ae5]
|
|
9
|
+
- @youversion/design-system-tokens@0.0.1
|
|
10
|
+
- @youversion/design-system-core@0.0.1
|
|
11
|
+
- @youversion/design-system-icons@0.0.1
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
import U from "clsx";
|
|
2
|
+
import Fe, { forwardRef as cr, createElement as dr } from "react";
|
|
3
|
+
const te = (i) => {
|
|
4
|
+
if (i) {
|
|
5
|
+
if (typeof i != "string" && i)
|
|
6
|
+
return U(i.lightMode, i.darkMode);
|
|
7
|
+
if (typeof i == "string")
|
|
8
|
+
return i;
|
|
9
|
+
}
|
|
10
|
+
}, Se = (i) => {
|
|
11
|
+
if (i) {
|
|
12
|
+
if (typeof i != "string" && i)
|
|
13
|
+
return U(i.block, i.blockEnd, i.blockStart, i.inline, i.inlineEnd, i.inlineStart);
|
|
14
|
+
if (typeof i == "string")
|
|
15
|
+
return i;
|
|
16
|
+
}
|
|
17
|
+
}, vr = ({
|
|
18
|
+
background: i,
|
|
19
|
+
borderColor: y,
|
|
20
|
+
borderRadius: C,
|
|
21
|
+
borderWidth: R,
|
|
22
|
+
className: S,
|
|
23
|
+
component: k = "div",
|
|
24
|
+
color: O,
|
|
25
|
+
elevation: E = 0,
|
|
26
|
+
height: c,
|
|
27
|
+
margin: T,
|
|
28
|
+
padding: v,
|
|
29
|
+
width: h,
|
|
30
|
+
..._
|
|
31
|
+
}, x) => {
|
|
32
|
+
const $ = {
|
|
33
|
+
0: "",
|
|
34
|
+
1: "shadow-light-1 dark:shadow-dark-1",
|
|
35
|
+
2: "shadow-light-2 dark:shadow-dark-2",
|
|
36
|
+
4: "shadow-light-4 dark:shadow-dark-4",
|
|
37
|
+
8: "shadow-light-8 dark:shadow-dark-8",
|
|
38
|
+
12: "shadow-light-12 dark:shadow-dark-12"
|
|
39
|
+
}, B = te(O), q = te(i), w = te(y), d = Se(v), J = Se(T), G = U(
|
|
40
|
+
C,
|
|
41
|
+
R,
|
|
42
|
+
$[E],
|
|
43
|
+
J,
|
|
44
|
+
d,
|
|
45
|
+
B,
|
|
46
|
+
q,
|
|
47
|
+
w,
|
|
48
|
+
h,
|
|
49
|
+
c,
|
|
50
|
+
S
|
|
51
|
+
);
|
|
52
|
+
return dr(k, {
|
|
53
|
+
className: G,
|
|
54
|
+
..._,
|
|
55
|
+
ref: x
|
|
56
|
+
});
|
|
57
|
+
}, mr = cr(vr);
|
|
58
|
+
var ne = {}, pr = {
|
|
59
|
+
get exports() {
|
|
60
|
+
return ne;
|
|
61
|
+
},
|
|
62
|
+
set exports(i) {
|
|
63
|
+
ne = i;
|
|
64
|
+
}
|
|
65
|
+
}, W = {};
|
|
66
|
+
/**
|
|
67
|
+
* @license React
|
|
68
|
+
* react-jsx-runtime.production.min.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/
|
|
75
|
+
var ke;
|
|
76
|
+
function gr() {
|
|
77
|
+
if (ke)
|
|
78
|
+
return W;
|
|
79
|
+
ke = 1;
|
|
80
|
+
var i = Fe, y = Symbol.for("react.element"), C = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, S = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
81
|
+
function O(E, c, T) {
|
|
82
|
+
var v, h = {}, _ = null, x = null;
|
|
83
|
+
T !== void 0 && (_ = "" + T), c.key !== void 0 && (_ = "" + c.key), c.ref !== void 0 && (x = c.ref);
|
|
84
|
+
for (v in c)
|
|
85
|
+
R.call(c, v) && !k.hasOwnProperty(v) && (h[v] = c[v]);
|
|
86
|
+
if (E && E.defaultProps)
|
|
87
|
+
for (v in c = E.defaultProps, c)
|
|
88
|
+
h[v] === void 0 && (h[v] = c[v]);
|
|
89
|
+
return { $$typeof: y, type: E, key: _, ref: x, props: h, _owner: S.current };
|
|
90
|
+
}
|
|
91
|
+
return W.Fragment = C, W.jsx = O, W.jsxs = O, W;
|
|
92
|
+
}
|
|
93
|
+
var I = {};
|
|
94
|
+
/**
|
|
95
|
+
* @license React
|
|
96
|
+
* react-jsx-runtime.development.js
|
|
97
|
+
*
|
|
98
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the MIT license found in the
|
|
101
|
+
* LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/
|
|
103
|
+
var xe;
|
|
104
|
+
function hr() {
|
|
105
|
+
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
106
|
+
var i = Fe, y = Symbol.for("react.element"), C = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), E = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), $ = Symbol.iterator, B = "@@iterator";
|
|
107
|
+
function q(e) {
|
|
108
|
+
if (e === null || typeof e != "object")
|
|
109
|
+
return null;
|
|
110
|
+
var r = $ && e[$] || e[B];
|
|
111
|
+
return typeof r == "function" ? r : null;
|
|
112
|
+
}
|
|
113
|
+
var w = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
114
|
+
function d(e) {
|
|
115
|
+
{
|
|
116
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
117
|
+
t[n - 1] = arguments[n];
|
|
118
|
+
J("error", e, t);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function J(e, r, t) {
|
|
122
|
+
{
|
|
123
|
+
var n = w.ReactDebugCurrentFrame, s = n.getStackAddendum();
|
|
124
|
+
s !== "" && (r += "%s", t = t.concat([s]));
|
|
125
|
+
var u = t.map(function(o) {
|
|
126
|
+
return String(o);
|
|
127
|
+
});
|
|
128
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
var G = !1, Ae = !1, We = !1, Ie = !1, $e = !1, ae;
|
|
132
|
+
ae = Symbol.for("react.module.reference");
|
|
133
|
+
function Ye(e) {
|
|
134
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === k || $e || e === S || e === T || e === v || Ie || e === x || G || Ae || We || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === h || e.$$typeof === O || e.$$typeof === E || e.$$typeof === c || // This needs to include all possible module reference object
|
|
135
|
+
// types supported by any Flight configuration anywhere since
|
|
136
|
+
// we don't know which Flight build this will end up being used
|
|
137
|
+
// with.
|
|
138
|
+
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
139
|
+
}
|
|
140
|
+
function Me(e, r, t) {
|
|
141
|
+
var n = e.displayName;
|
|
142
|
+
if (n)
|
|
143
|
+
return n;
|
|
144
|
+
var s = r.displayName || r.name || "";
|
|
145
|
+
return s !== "" ? t + "(" + s + ")" : t;
|
|
146
|
+
}
|
|
147
|
+
function oe(e) {
|
|
148
|
+
return e.displayName || "Context";
|
|
149
|
+
}
|
|
150
|
+
function b(e) {
|
|
151
|
+
if (e == null)
|
|
152
|
+
return null;
|
|
153
|
+
if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
154
|
+
return e.displayName || e.name || null;
|
|
155
|
+
if (typeof e == "string")
|
|
156
|
+
return e;
|
|
157
|
+
switch (e) {
|
|
158
|
+
case R:
|
|
159
|
+
return "Fragment";
|
|
160
|
+
case C:
|
|
161
|
+
return "Portal";
|
|
162
|
+
case k:
|
|
163
|
+
return "Profiler";
|
|
164
|
+
case S:
|
|
165
|
+
return "StrictMode";
|
|
166
|
+
case T:
|
|
167
|
+
return "Suspense";
|
|
168
|
+
case v:
|
|
169
|
+
return "SuspenseList";
|
|
170
|
+
}
|
|
171
|
+
if (typeof e == "object")
|
|
172
|
+
switch (e.$$typeof) {
|
|
173
|
+
case E:
|
|
174
|
+
var r = e;
|
|
175
|
+
return oe(r) + ".Consumer";
|
|
176
|
+
case O:
|
|
177
|
+
var t = e;
|
|
178
|
+
return oe(t._context) + ".Provider";
|
|
179
|
+
case c:
|
|
180
|
+
return Me(e, e.render, "ForwardRef");
|
|
181
|
+
case h:
|
|
182
|
+
var n = e.displayName || null;
|
|
183
|
+
return n !== null ? n : b(e.type) || "Memo";
|
|
184
|
+
case _: {
|
|
185
|
+
var s = e, u = s._payload, o = s._init;
|
|
186
|
+
try {
|
|
187
|
+
return b(o(u));
|
|
188
|
+
} catch {
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
var P = Object.assign, F = 0, ie, se, ue, le, fe, ce, de;
|
|
196
|
+
function ve() {
|
|
197
|
+
}
|
|
198
|
+
ve.__reactDisabledLog = !0;
|
|
199
|
+
function Ne() {
|
|
200
|
+
{
|
|
201
|
+
if (F === 0) {
|
|
202
|
+
ie = console.log, se = console.info, ue = console.warn, le = console.error, fe = console.group, ce = console.groupCollapsed, de = console.groupEnd;
|
|
203
|
+
var e = {
|
|
204
|
+
configurable: !0,
|
|
205
|
+
enumerable: !0,
|
|
206
|
+
value: ve,
|
|
207
|
+
writable: !0
|
|
208
|
+
};
|
|
209
|
+
Object.defineProperties(console, {
|
|
210
|
+
info: e,
|
|
211
|
+
log: e,
|
|
212
|
+
warn: e,
|
|
213
|
+
error: e,
|
|
214
|
+
group: e,
|
|
215
|
+
groupCollapsed: e,
|
|
216
|
+
groupEnd: e
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
F++;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function Le() {
|
|
223
|
+
{
|
|
224
|
+
if (F--, F === 0) {
|
|
225
|
+
var e = {
|
|
226
|
+
configurable: !0,
|
|
227
|
+
enumerable: !0,
|
|
228
|
+
writable: !0
|
|
229
|
+
};
|
|
230
|
+
Object.defineProperties(console, {
|
|
231
|
+
log: P({}, e, {
|
|
232
|
+
value: ie
|
|
233
|
+
}),
|
|
234
|
+
info: P({}, e, {
|
|
235
|
+
value: se
|
|
236
|
+
}),
|
|
237
|
+
warn: P({}, e, {
|
|
238
|
+
value: ue
|
|
239
|
+
}),
|
|
240
|
+
error: P({}, e, {
|
|
241
|
+
value: le
|
|
242
|
+
}),
|
|
243
|
+
group: P({}, e, {
|
|
244
|
+
value: fe
|
|
245
|
+
}),
|
|
246
|
+
groupCollapsed: P({}, e, {
|
|
247
|
+
value: ce
|
|
248
|
+
}),
|
|
249
|
+
groupEnd: P({}, e, {
|
|
250
|
+
value: de
|
|
251
|
+
})
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
F < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
var z = w.ReactCurrentDispatcher, K;
|
|
258
|
+
function Y(e, r, t) {
|
|
259
|
+
{
|
|
260
|
+
if (K === void 0)
|
|
261
|
+
try {
|
|
262
|
+
throw Error();
|
|
263
|
+
} catch (s) {
|
|
264
|
+
var n = s.stack.trim().match(/\n( *(at )?)/);
|
|
265
|
+
K = n && n[1] || "";
|
|
266
|
+
}
|
|
267
|
+
return `
|
|
268
|
+
` + K + e;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
var H = !1, M;
|
|
272
|
+
{
|
|
273
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
274
|
+
M = new Ve();
|
|
275
|
+
}
|
|
276
|
+
function pe(e, r) {
|
|
277
|
+
if (!e || H)
|
|
278
|
+
return "";
|
|
279
|
+
{
|
|
280
|
+
var t = M.get(e);
|
|
281
|
+
if (t !== void 0)
|
|
282
|
+
return t;
|
|
283
|
+
}
|
|
284
|
+
var n;
|
|
285
|
+
H = !0;
|
|
286
|
+
var s = Error.prepareStackTrace;
|
|
287
|
+
Error.prepareStackTrace = void 0;
|
|
288
|
+
var u;
|
|
289
|
+
u = z.current, z.current = null, Ne();
|
|
290
|
+
try {
|
|
291
|
+
if (r) {
|
|
292
|
+
var o = function() {
|
|
293
|
+
throw Error();
|
|
294
|
+
};
|
|
295
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
296
|
+
set: function() {
|
|
297
|
+
throw Error();
|
|
298
|
+
}
|
|
299
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
300
|
+
try {
|
|
301
|
+
Reflect.construct(o, []);
|
|
302
|
+
} catch (m) {
|
|
303
|
+
n = m;
|
|
304
|
+
}
|
|
305
|
+
Reflect.construct(e, [], o);
|
|
306
|
+
} else {
|
|
307
|
+
try {
|
|
308
|
+
o.call();
|
|
309
|
+
} catch (m) {
|
|
310
|
+
n = m;
|
|
311
|
+
}
|
|
312
|
+
e.call(o.prototype);
|
|
313
|
+
}
|
|
314
|
+
} else {
|
|
315
|
+
try {
|
|
316
|
+
throw Error();
|
|
317
|
+
} catch (m) {
|
|
318
|
+
n = m;
|
|
319
|
+
}
|
|
320
|
+
e();
|
|
321
|
+
}
|
|
322
|
+
} catch (m) {
|
|
323
|
+
if (m && n && typeof m.stack == "string") {
|
|
324
|
+
for (var a = m.stack.split(`
|
|
325
|
+
`), p = n.stack.split(`
|
|
326
|
+
`), l = a.length - 1, f = p.length - 1; l >= 1 && f >= 0 && a[l] !== p[f]; )
|
|
327
|
+
f--;
|
|
328
|
+
for (; l >= 1 && f >= 0; l--, f--)
|
|
329
|
+
if (a[l] !== p[f]) {
|
|
330
|
+
if (l !== 1 || f !== 1)
|
|
331
|
+
do
|
|
332
|
+
if (l--, f--, f < 0 || a[l] !== p[f]) {
|
|
333
|
+
var g = `
|
|
334
|
+
` + a[l].replace(" at new ", " at ");
|
|
335
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, g), g;
|
|
336
|
+
}
|
|
337
|
+
while (l >= 1 && f >= 0);
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
} finally {
|
|
342
|
+
H = !1, z.current = u, Le(), Error.prepareStackTrace = s;
|
|
343
|
+
}
|
|
344
|
+
var D = e ? e.displayName || e.name : "", Pe = D ? Y(D) : "";
|
|
345
|
+
return typeof e == "function" && M.set(e, Pe), Pe;
|
|
346
|
+
}
|
|
347
|
+
function Ue(e, r, t) {
|
|
348
|
+
return pe(e, !1);
|
|
349
|
+
}
|
|
350
|
+
function Be(e) {
|
|
351
|
+
var r = e.prototype;
|
|
352
|
+
return !!(r && r.isReactComponent);
|
|
353
|
+
}
|
|
354
|
+
function N(e, r, t) {
|
|
355
|
+
if (e == null)
|
|
356
|
+
return "";
|
|
357
|
+
if (typeof e == "function")
|
|
358
|
+
return pe(e, Be(e));
|
|
359
|
+
if (typeof e == "string")
|
|
360
|
+
return Y(e);
|
|
361
|
+
switch (e) {
|
|
362
|
+
case T:
|
|
363
|
+
return Y("Suspense");
|
|
364
|
+
case v:
|
|
365
|
+
return Y("SuspenseList");
|
|
366
|
+
}
|
|
367
|
+
if (typeof e == "object")
|
|
368
|
+
switch (e.$$typeof) {
|
|
369
|
+
case c:
|
|
370
|
+
return Ue(e.render);
|
|
371
|
+
case h:
|
|
372
|
+
return N(e.type, r, t);
|
|
373
|
+
case _: {
|
|
374
|
+
var n = e, s = n._payload, u = n._init;
|
|
375
|
+
try {
|
|
376
|
+
return N(u(s), r, t);
|
|
377
|
+
} catch {
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return "";
|
|
382
|
+
}
|
|
383
|
+
var L = Object.prototype.hasOwnProperty, ge = {}, he = w.ReactDebugCurrentFrame;
|
|
384
|
+
function V(e) {
|
|
385
|
+
if (e) {
|
|
386
|
+
var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
|
|
387
|
+
he.setExtraStackFrame(t);
|
|
388
|
+
} else
|
|
389
|
+
he.setExtraStackFrame(null);
|
|
390
|
+
}
|
|
391
|
+
function qe(e, r, t, n, s) {
|
|
392
|
+
{
|
|
393
|
+
var u = Function.call.bind(L);
|
|
394
|
+
for (var o in e)
|
|
395
|
+
if (u(e, o)) {
|
|
396
|
+
var a = void 0;
|
|
397
|
+
try {
|
|
398
|
+
if (typeof e[o] != "function") {
|
|
399
|
+
var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
400
|
+
throw p.name = "Invariant Violation", p;
|
|
401
|
+
}
|
|
402
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
403
|
+
} catch (l) {
|
|
404
|
+
a = l;
|
|
405
|
+
}
|
|
406
|
+
a && !(a instanceof Error) && (V(s), d("%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", t, o, typeof a), V(null)), a instanceof Error && !(a.message in ge) && (ge[a.message] = !0, V(s), d("Failed %s type: %s", t, a.message), V(null));
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
var Je = Array.isArray;
|
|
411
|
+
function X(e) {
|
|
412
|
+
return Je(e);
|
|
413
|
+
}
|
|
414
|
+
function Ge(e) {
|
|
415
|
+
{
|
|
416
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
417
|
+
return t;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function ze(e) {
|
|
421
|
+
try {
|
|
422
|
+
return ye(e), !1;
|
|
423
|
+
} catch {
|
|
424
|
+
return !0;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
function ye(e) {
|
|
428
|
+
return "" + e;
|
|
429
|
+
}
|
|
430
|
+
function Ee(e) {
|
|
431
|
+
if (ze(e))
|
|
432
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), ye(e);
|
|
433
|
+
}
|
|
434
|
+
var A = w.ReactCurrentOwner, Ke = {
|
|
435
|
+
key: !0,
|
|
436
|
+
ref: !0,
|
|
437
|
+
__self: !0,
|
|
438
|
+
__source: !0
|
|
439
|
+
}, _e, be, Z;
|
|
440
|
+
Z = {};
|
|
441
|
+
function He(e) {
|
|
442
|
+
if (L.call(e, "ref")) {
|
|
443
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
444
|
+
if (r && r.isReactWarning)
|
|
445
|
+
return !1;
|
|
446
|
+
}
|
|
447
|
+
return e.ref !== void 0;
|
|
448
|
+
}
|
|
449
|
+
function Xe(e) {
|
|
450
|
+
if (L.call(e, "key")) {
|
|
451
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
452
|
+
if (r && r.isReactWarning)
|
|
453
|
+
return !1;
|
|
454
|
+
}
|
|
455
|
+
return e.key !== void 0;
|
|
456
|
+
}
|
|
457
|
+
function Ze(e, r) {
|
|
458
|
+
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
|
|
459
|
+
var t = b(A.current.type);
|
|
460
|
+
Z[t] || (d('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', b(A.current.type), e.ref), Z[t] = !0);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
function Qe(e, r) {
|
|
464
|
+
{
|
|
465
|
+
var t = function() {
|
|
466
|
+
_e || (_e = !0, d("%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));
|
|
467
|
+
};
|
|
468
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
469
|
+
get: t,
|
|
470
|
+
configurable: !0
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
function er(e, r) {
|
|
475
|
+
{
|
|
476
|
+
var t = function() {
|
|
477
|
+
be || (be = !0, d("%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));
|
|
478
|
+
};
|
|
479
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
480
|
+
get: t,
|
|
481
|
+
configurable: !0
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
var rr = function(e, r, t, n, s, u, o) {
|
|
486
|
+
var a = {
|
|
487
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
488
|
+
$$typeof: y,
|
|
489
|
+
// Built-in properties that belong on the element
|
|
490
|
+
type: e,
|
|
491
|
+
key: r,
|
|
492
|
+
ref: t,
|
|
493
|
+
props: o,
|
|
494
|
+
// Record the component responsible for creating this element.
|
|
495
|
+
_owner: u
|
|
496
|
+
};
|
|
497
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
498
|
+
configurable: !1,
|
|
499
|
+
enumerable: !1,
|
|
500
|
+
writable: !0,
|
|
501
|
+
value: !1
|
|
502
|
+
}), Object.defineProperty(a, "_self", {
|
|
503
|
+
configurable: !1,
|
|
504
|
+
enumerable: !1,
|
|
505
|
+
writable: !1,
|
|
506
|
+
value: n
|
|
507
|
+
}), Object.defineProperty(a, "_source", {
|
|
508
|
+
configurable: !1,
|
|
509
|
+
enumerable: !1,
|
|
510
|
+
writable: !1,
|
|
511
|
+
value: s
|
|
512
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
513
|
+
};
|
|
514
|
+
function tr(e, r, t, n, s) {
|
|
515
|
+
{
|
|
516
|
+
var u, o = {}, a = null, p = null;
|
|
517
|
+
t !== void 0 && (Ee(t), a = "" + t), Xe(r) && (Ee(r.key), a = "" + r.key), He(r) && (p = r.ref, Ze(r, s));
|
|
518
|
+
for (u in r)
|
|
519
|
+
L.call(r, u) && !Ke.hasOwnProperty(u) && (o[u] = r[u]);
|
|
520
|
+
if (e && e.defaultProps) {
|
|
521
|
+
var l = e.defaultProps;
|
|
522
|
+
for (u in l)
|
|
523
|
+
o[u] === void 0 && (o[u] = l[u]);
|
|
524
|
+
}
|
|
525
|
+
if (a || p) {
|
|
526
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
527
|
+
a && Qe(o, f), p && er(o, f);
|
|
528
|
+
}
|
|
529
|
+
return rr(e, a, p, s, n, A.current, o);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
var Q = w.ReactCurrentOwner, me = w.ReactDebugCurrentFrame;
|
|
533
|
+
function j(e) {
|
|
534
|
+
if (e) {
|
|
535
|
+
var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
|
|
536
|
+
me.setExtraStackFrame(t);
|
|
537
|
+
} else
|
|
538
|
+
me.setExtraStackFrame(null);
|
|
539
|
+
}
|
|
540
|
+
var ee;
|
|
541
|
+
ee = !1;
|
|
542
|
+
function re(e) {
|
|
543
|
+
return typeof e == "object" && e !== null && e.$$typeof === y;
|
|
544
|
+
}
|
|
545
|
+
function Re() {
|
|
546
|
+
{
|
|
547
|
+
if (Q.current) {
|
|
548
|
+
var e = b(Q.current.type);
|
|
549
|
+
if (e)
|
|
550
|
+
return `
|
|
551
|
+
|
|
552
|
+
Check the render method of \`` + e + "`.";
|
|
553
|
+
}
|
|
554
|
+
return "";
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
function nr(e) {
|
|
558
|
+
{
|
|
559
|
+
if (e !== void 0) {
|
|
560
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
561
|
+
return `
|
|
562
|
+
|
|
563
|
+
Check your code at ` + r + ":" + t + ".";
|
|
564
|
+
}
|
|
565
|
+
return "";
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
var Te = {};
|
|
569
|
+
function ar(e) {
|
|
570
|
+
{
|
|
571
|
+
var r = Re();
|
|
572
|
+
if (!r) {
|
|
573
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
574
|
+
t && (r = `
|
|
575
|
+
|
|
576
|
+
Check the top-level render call using <` + t + ">.");
|
|
577
|
+
}
|
|
578
|
+
return r;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function we(e, r) {
|
|
582
|
+
{
|
|
583
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
584
|
+
return;
|
|
585
|
+
e._store.validated = !0;
|
|
586
|
+
var t = ar(r);
|
|
587
|
+
if (Te[t])
|
|
588
|
+
return;
|
|
589
|
+
Te[t] = !0;
|
|
590
|
+
var n = "";
|
|
591
|
+
e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + b(e._owner.type) + "."), j(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
function Ce(e, r) {
|
|
595
|
+
{
|
|
596
|
+
if (typeof e != "object")
|
|
597
|
+
return;
|
|
598
|
+
if (X(e))
|
|
599
|
+
for (var t = 0; t < e.length; t++) {
|
|
600
|
+
var n = e[t];
|
|
601
|
+
re(n) && we(n, r);
|
|
602
|
+
}
|
|
603
|
+
else if (re(e))
|
|
604
|
+
e._store && (e._store.validated = !0);
|
|
605
|
+
else if (e) {
|
|
606
|
+
var s = q(e);
|
|
607
|
+
if (typeof s == "function" && s !== e.entries)
|
|
608
|
+
for (var u = s.call(e), o; !(o = u.next()).done; )
|
|
609
|
+
re(o.value) && we(o.value, r);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
function or(e) {
|
|
614
|
+
{
|
|
615
|
+
var r = e.type;
|
|
616
|
+
if (r == null || typeof r == "string")
|
|
617
|
+
return;
|
|
618
|
+
var t;
|
|
619
|
+
if (typeof r == "function")
|
|
620
|
+
t = r.propTypes;
|
|
621
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
622
|
+
// Inner props are checked in the reconciler.
|
|
623
|
+
r.$$typeof === h))
|
|
624
|
+
t = r.propTypes;
|
|
625
|
+
else
|
|
626
|
+
return;
|
|
627
|
+
if (t) {
|
|
628
|
+
var n = b(r);
|
|
629
|
+
qe(t, e.props, "prop", n, e);
|
|
630
|
+
} else if (r.PropTypes !== void 0 && !ee) {
|
|
631
|
+
ee = !0;
|
|
632
|
+
var s = b(r);
|
|
633
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
634
|
+
}
|
|
635
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function ir(e) {
|
|
639
|
+
{
|
|
640
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
641
|
+
var n = r[t];
|
|
642
|
+
if (n !== "children" && n !== "key") {
|
|
643
|
+
j(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
|
|
644
|
+
break;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
e.ref !== null && (j(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
function Oe(e, r, t, n, s, u) {
|
|
651
|
+
{
|
|
652
|
+
var o = Ye(e);
|
|
653
|
+
if (!o) {
|
|
654
|
+
var a = "";
|
|
655
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
656
|
+
var p = nr(s);
|
|
657
|
+
p ? a += p : a += Re();
|
|
658
|
+
var l;
|
|
659
|
+
e === null ? l = "null" : X(e) ? l = "array" : e !== void 0 && e.$$typeof === y ? (l = "<" + (b(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
660
|
+
}
|
|
661
|
+
var f = tr(e, r, t, s, u);
|
|
662
|
+
if (f == null)
|
|
663
|
+
return f;
|
|
664
|
+
if (o) {
|
|
665
|
+
var g = r.children;
|
|
666
|
+
if (g !== void 0)
|
|
667
|
+
if (n)
|
|
668
|
+
if (X(g)) {
|
|
669
|
+
for (var D = 0; D < g.length; D++)
|
|
670
|
+
Ce(g[D], e);
|
|
671
|
+
Object.freeze && Object.freeze(g);
|
|
672
|
+
} else
|
|
673
|
+
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
674
|
+
else
|
|
675
|
+
Ce(g, e);
|
|
676
|
+
}
|
|
677
|
+
return e === R ? ir(f) : or(f), f;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
function sr(e, r, t) {
|
|
681
|
+
return Oe(e, r, t, !0);
|
|
682
|
+
}
|
|
683
|
+
function ur(e, r, t) {
|
|
684
|
+
return Oe(e, r, t, !1);
|
|
685
|
+
}
|
|
686
|
+
var lr = ur, fr = sr;
|
|
687
|
+
I.Fragment = R, I.jsx = lr, I.jsxs = fr;
|
|
688
|
+
}()), I;
|
|
689
|
+
}
|
|
690
|
+
(function(i) {
|
|
691
|
+
process.env.NODE_ENV === "production" ? i.exports = gr() : i.exports = hr();
|
|
692
|
+
})(pr);
|
|
693
|
+
const je = ne.jsx, yr = "_tooltipWrapper_qu88w_1", Er = "_tooltipContent_qu88w_18", De = {
|
|
694
|
+
tooltipWrapper: yr,
|
|
695
|
+
tooltipContent: Er
|
|
696
|
+
}, Rr = ({ content: i, className: y, ...C }) => /* @__PURE__ */ je("div", { className: U(De.tooltipWrapper, y), ...C, children: /* @__PURE__ */ je("span", { className: De.tooltipContent, children: i }) });
|
|
697
|
+
export {
|
|
698
|
+
mr as Box,
|
|
699
|
+
Rr as Tooltip
|
|
700
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
(function(y,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("clsx"),require("react")):typeof define=="function"&&define.amd?define(["exports","clsx","react"],T):(y=typeof globalThis<"u"?globalThis:y||self,T(y["design-system-components"]={},y.clsx,y.React))})(this,function(y,T,N){"use strict";const J=i=>{if(i){if(typeof i!="string"&&i)return T(i.lightMode,i.darkMode);if(typeof i=="string")return i}},ie=i=>{if(i){if(typeof i!="string"&&i)return T(i.block,i.blockEnd,i.blockStart,i.inline,i.inlineEnd,i.inlineStart);if(typeof i=="string")return i}},We=({background:i,borderColor:b,borderRadius:S,borderWidth:w,className:x,component:j="div",color:P,elevation:m=0,height:c,margin:C,padding:v,width:h,...E},D)=>{const L={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},z=J(P),K=J(i),O=J(b),d=ie(v),H=ie(C),X=T(S,w,L[m],H,d,z,K,O,h,c,x);return N.createElement(j,{className:X,...E,ref:D})},Ie=N.forwardRef(We);var G={},Ye={get exports(){return G},set exports(i){G=i}},W={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var se;function Me(){if(se)return W;se=1;var i=N,b=Symbol.for("react.element"),S=Symbol.for("react.fragment"),w=Object.prototype.hasOwnProperty,x=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function P(m,c,C){var v,h={},E=null,D=null;C!==void 0&&(E=""+C),c.key!==void 0&&(E=""+c.key),c.ref!==void 0&&(D=c.ref);for(v in c)w.call(c,v)&&!j.hasOwnProperty(v)&&(h[v]=c[v]);if(m&&m.defaultProps)for(v in c=m.defaultProps,c)h[v]===void 0&&(h[v]=c[v]);return{$$typeof:b,type:m,key:E,ref:D,props:h,_owner:x.current}}return W.Fragment=S,W.jsx=P,W.jsxs=P,W}var I={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ue;function Ne(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var i=N,b=Symbol.for("react.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),m=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),L=Symbol.iterator,z="@@iterator";function K(e){if(e===null||typeof e!="object")return null;var r=L&&e[L]||e[z];return typeof r=="function"?r:null}var O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];H("error",e,t)}}function H(e,r,t){{var n=O.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var X=!1,Ve=!1,$e=!1,Ue=!1,Be=!1,ce;ce=Symbol.for("react.module.reference");function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===w||e===j||Be||e===x||e===C||e===v||Ue||e===D||X||Ve||$e||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===h||e.$$typeof===P||e.$$typeof===m||e.$$typeof===c||e.$$typeof===ce||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function de(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case S:return"Portal";case j:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return de(r)+".Consumer";case P:var t=e;return de(t._context)+".Provider";case c:return Je(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case E:{var s=e,u=s._payload,o=s._init;try{return _(o(u))}catch{return null}}}return null}var k=Object.assign,Y=0,ve,pe,ge,he,ye,be,me;function Ee(){}Ee.__reactDisabledLog=!0;function Ge(){{if(Y===0){ve=console.log,pe=console.info,ge=console.warn,he=console.error,ye=console.group,be=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function ze(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ve}),info:k({},e,{value:pe}),warn:k({},e,{value:ge}),error:k({},e,{value:he}),group:k({},e,{value:ye}),groupCollapsed:k({},e,{value:be}),groupEnd:k({},e,{value:me})})}Y<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=O.ReactCurrentDispatcher,Q;function V(e,r,t){{if(Q===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);Q=n&&n[1]||""}return`
|
|
18
|
+
`+Q+e}}var ee=!1,$;{var Ke=typeof WeakMap=="function"?WeakMap:Map;$=new Ke}function _e(e,r){if(!e||ee)return"";{var t=$.get(e);if(t!==void 0)return t}var n;ee=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=Z.current,Z.current=null,Ge();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(R){n=R}Reflect.construct(e,[],o)}else{try{o.call()}catch(R){n=R}e.call(o.prototype)}}else{try{throw Error()}catch(R){n=R}e()}}catch(R){if(R&&n&&typeof R.stack=="string"){for(var a=R.stack.split(`
|
|
19
|
+
`),p=n.stack.split(`
|
|
20
|
+
`),f=a.length-1,l=p.length-1;f>=1&&l>=0&&a[f]!==p[l];)l--;for(;f>=1&&l>=0;f--,l--)if(a[f]!==p[l]){if(f!==1||l!==1)do if(f--,l--,l<0||a[f]!==p[l]){var g=`
|
|
21
|
+
`+a[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,g),g}while(f>=1&&l>=0);break}}}finally{ee=!1,Z.current=u,ze(),Error.prepareStackTrace=s}var A=e?e.displayName||e.name:"",Ae=A?V(A):"";return typeof e=="function"&&$.set(e,Ae),Ae}function He(e,r,t){return _e(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,Xe(e));if(typeof e=="string")return V(e);switch(e){case C:return V("Suspense");case v:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return He(e.render);case h:return U(e.type,r,t);case E:{var n=e,s=n._payload,u=n._init;try{return U(u(s),r,t)}catch{}}}return""}var B=Object.prototype.hasOwnProperty,Re={},Te=O.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}function Ze(e,r,t,n,s){{var u=Function.call.bind(B);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(q(s),d("%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",t,o,typeof a),q(null)),a instanceof Error&&!(a.message in Re)&&(Re[a.message]=!0,q(s),d("Failed %s type: %s",t,a.message),q(null))}}}var Qe=Array.isArray;function re(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Ce(e){if(rr(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),we(e)}var M=O.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,te;te={};function nr(e){if(B.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(B.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&M.current&&r&&M.current.stateNode!==r){var t=_(M.current.type);te[t]||(d('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',_(M.current.type),e.ref),te[t]=!0)}}function ir(e,r){{var t=function(){Oe||(Oe=!0,d("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Se||(Se=!0,d("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,n,s,u,o){var a={$$typeof:b,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function fr(e,r,t,n,s){{var u,o={},a=null,p=null;t!==void 0&&(Ce(t),a=""+t),ar(r)&&(Ce(r.key),a=""+r.key),nr(r)&&(p=r.ref,or(r,s));for(u in r)B.call(r,u)&&!tr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)o[u]===void 0&&(o[u]=f[u])}if(a||p){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(o,l),p&&sr(o,l)}return ur(e,a,p,s,n,M.current,o)}}var ne=O.ReactCurrentOwner,Pe=O.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var ae;ae=!1;function oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function ke(){{if(ne.current){var e=_(ne.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function lr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
|
+
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var xe={};function cr(e){{var r=ke();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
|
+
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(xe[t])return;xe[t]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),F(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),F(null)}}function De(e,r){{if(typeof e!="object")return;if(re(e))for(var t=0;t<e.length;t++){var n=e[t];oe(n)&&je(n,r)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var s=K(e);if(typeof s=="function"&&s!==e.entries)for(var u=s.call(e),o;!(o=u.next()).done;)oe(o.value)&&je(o.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=_(r);Ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ae){ae=!0;var s=_(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){F(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),F(null);break}}e.ref!==null&&(F(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}function Fe(e,r,t,n,s,u){{var o=qe(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var p=lr(s);p?a+=p:a+=ke();var f;e===null?f="null":re(e)?f="array":e!==void 0&&e.$$typeof===b?(f="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var l=fr(e,r,t,s,u);if(l==null)return l;if(o){var g=r.children;if(g!==void 0)if(n)if(re(g)){for(var A=0;A<g.length;A++)De(g[A],e);Object.freeze&&Object.freeze(g)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else De(g,e)}return e===w?vr(l):dr(l),l}}function pr(e,r,t){return Fe(e,r,t,!0)}function gr(e,r,t){return Fe(e,r,t,!1)}var hr=gr,yr=pr;I.Fragment=w,I.jsx=hr,I.jsxs=yr}()),I}(function(i){process.env.NODE_ENV==="production"?i.exports=Me():i.exports=Ne()})(Ye);const fe=G.jsx,le={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Le=({content:i,className:b,...S})=>fe("div",{className:T(le.tooltipWrapper,b),...S,children:fe("span",{className:le.tooltipContent,children:i})});y.Box=Ie,y.Tooltip=Le,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._tooltipWrapper_qu88w_1{background:#fff;border-radius:8px;box-shadow:0 1px 3px #12121226;color:#121212;max-width:460px;padding-block:8px;padding-inline:12px;width:-moz-max-content;width:max-content}html[data-theme=dark] ._tooltipWrapper_qu88w_1{background:#2b3031;box-shadow:0 1px 3px #00000073;color:#fff}._tooltipContent_qu88w_18{font-size:.8125rem;font-style:normal;line-height:1.5}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@youversion/design-system-components",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "./dist/index.umd.js",
|
|
5
|
+
"module": "./dist/index.es.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"generate:css-types": "tcm -p '**/*.module.css' src -c",
|
|
14
|
+
"dev": "yarn generate:css-types -w",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
17
|
+
"lint": "TIMING=1 eslint \"src/**/*.ts*\"",
|
|
18
|
+
"test": "jest",
|
|
19
|
+
"test:watch": "jest --watch",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"validate": "yarn lint && yarn typecheck && yarn test"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@youversion/design-system-core": "0.0.1",
|
|
25
|
+
"@youversion/design-system-icons": "0.0.1",
|
|
26
|
+
"@youversion/design-system-tokens": "0.0.1",
|
|
27
|
+
"clsx": "1.2.1",
|
|
28
|
+
"react": "18.2.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@mdx-js/react": "1.6.22",
|
|
32
|
+
"@storybook/react": "6.5.16",
|
|
33
|
+
"@testing-library/dom": "9.0.0",
|
|
34
|
+
"@testing-library/jest-dom": "5.16.5",
|
|
35
|
+
"@testing-library/react": "14.0.0",
|
|
36
|
+
"@testing-library/user-event": "14.4.3",
|
|
37
|
+
"@types/jest": "29.4.0",
|
|
38
|
+
"@types/node": "18.14.1",
|
|
39
|
+
"@types/react": "17.0.37",
|
|
40
|
+
"@types/react-dom": "17.0.11",
|
|
41
|
+
"@types/testing-library__jest-dom": "5.14.5",
|
|
42
|
+
"@vitejs/plugin-react": "3.1.0",
|
|
43
|
+
"eslint": "7.32.0",
|
|
44
|
+
"identity-obj-proxy": "3.0.0",
|
|
45
|
+
"jest": "29.4.3",
|
|
46
|
+
"jest-environment-jsdom": "29.4.3",
|
|
47
|
+
"postcss-import": "15.1.0",
|
|
48
|
+
"postcss-mixins": "9.0.4",
|
|
49
|
+
"prettier": "2.8.4",
|
|
50
|
+
"tailwindcss": "3.2.7",
|
|
51
|
+
"ts-jest": "29.0.5",
|
|
52
|
+
"ts-node": "10.9.1",
|
|
53
|
+
"typed-css-modules": "0.7.2",
|
|
54
|
+
"typescript": "4.9.3",
|
|
55
|
+
"vite": "4.1.4"
|
|
56
|
+
},
|
|
57
|
+
"exports": {
|
|
58
|
+
".": {
|
|
59
|
+
"import": "./dist/index.es.js",
|
|
60
|
+
"require": "./dist/index.umd.js"
|
|
61
|
+
},
|
|
62
|
+
"./postcss-config": "./postcss.config.cjs",
|
|
63
|
+
"./styles": "./src/styles/index.css",
|
|
64
|
+
"./dist/style.css": "./dist/style.css"
|
|
65
|
+
}
|
|
66
|
+
}
|