design-system-silkhaus 0.0.3 → 0.0.4
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/dist/index.cjs +940 -14
- package/dist/index.js +940 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,6 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
35
34
|
const React = require("react");
|
|
36
35
|
function _interopNamespaceDefault(e) {
|
|
37
36
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -50,6 +49,933 @@ function _interopNamespaceDefault(e) {
|
|
|
50
49
|
return Object.freeze(n);
|
|
51
50
|
}
|
|
52
51
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
52
|
+
var jsxRuntime = { exports: {} };
|
|
53
|
+
var reactJsxRuntime_development = {};
|
|
54
|
+
/**
|
|
55
|
+
* @license React
|
|
56
|
+
* react-jsx-runtime.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/
|
|
63
|
+
var hasRequiredReactJsxRuntime_development;
|
|
64
|
+
function requireReactJsxRuntime_development() {
|
|
65
|
+
if (hasRequiredReactJsxRuntime_development)
|
|
66
|
+
return reactJsxRuntime_development;
|
|
67
|
+
hasRequiredReactJsxRuntime_development = 1;
|
|
68
|
+
if (process.env.NODE_ENV !== "production") {
|
|
69
|
+
(function() {
|
|
70
|
+
var React$1 = React;
|
|
71
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
72
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
73
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
74
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
75
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
76
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
77
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
78
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
79
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
80
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
81
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
82
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
83
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
84
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
85
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
86
|
+
function getIteratorFn(maybeIterable) {
|
|
87
|
+
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
91
|
+
if (typeof maybeIterator === "function") {
|
|
92
|
+
return maybeIterator;
|
|
93
|
+
}
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
97
|
+
function error(format) {
|
|
98
|
+
{
|
|
99
|
+
{
|
|
100
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
101
|
+
args[_key2 - 1] = arguments[_key2];
|
|
102
|
+
}
|
|
103
|
+
printWarning("error", format, args);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function printWarning(level, format, args) {
|
|
108
|
+
{
|
|
109
|
+
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
110
|
+
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
111
|
+
if (stack !== "") {
|
|
112
|
+
format += "%s";
|
|
113
|
+
args = args.concat([stack]);
|
|
114
|
+
}
|
|
115
|
+
var argsWithFormat = args.map(function(item) {
|
|
116
|
+
return String(item);
|
|
117
|
+
});
|
|
118
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
119
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
var enableScopeAPI = false;
|
|
123
|
+
var enableCacheElement = false;
|
|
124
|
+
var enableTransitionTracing = false;
|
|
125
|
+
var enableLegacyHidden = false;
|
|
126
|
+
var enableDebugTracing = false;
|
|
127
|
+
var REACT_MODULE_REFERENCE;
|
|
128
|
+
{
|
|
129
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
130
|
+
}
|
|
131
|
+
function isValidElementType(type) {
|
|
132
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
if (typeof type === "object" && type !== null) {
|
|
139
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
140
|
+
// types supported by any Flight configuration anywhere since
|
|
141
|
+
// we don't know which Flight build this will end up being used
|
|
142
|
+
// with.
|
|
143
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
150
|
+
var displayName = outerType.displayName;
|
|
151
|
+
if (displayName) {
|
|
152
|
+
return displayName;
|
|
153
|
+
}
|
|
154
|
+
var functionName = innerType.displayName || innerType.name || "";
|
|
155
|
+
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
156
|
+
}
|
|
157
|
+
function getContextName(type) {
|
|
158
|
+
return type.displayName || "Context";
|
|
159
|
+
}
|
|
160
|
+
function getComponentNameFromType(type) {
|
|
161
|
+
if (type == null) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
{
|
|
165
|
+
if (typeof type.tag === "number") {
|
|
166
|
+
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (typeof type === "function") {
|
|
170
|
+
return type.displayName || type.name || null;
|
|
171
|
+
}
|
|
172
|
+
if (typeof type === "string") {
|
|
173
|
+
return type;
|
|
174
|
+
}
|
|
175
|
+
switch (type) {
|
|
176
|
+
case REACT_FRAGMENT_TYPE:
|
|
177
|
+
return "Fragment";
|
|
178
|
+
case REACT_PORTAL_TYPE:
|
|
179
|
+
return "Portal";
|
|
180
|
+
case REACT_PROFILER_TYPE:
|
|
181
|
+
return "Profiler";
|
|
182
|
+
case REACT_STRICT_MODE_TYPE:
|
|
183
|
+
return "StrictMode";
|
|
184
|
+
case REACT_SUSPENSE_TYPE:
|
|
185
|
+
return "Suspense";
|
|
186
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
187
|
+
return "SuspenseList";
|
|
188
|
+
}
|
|
189
|
+
if (typeof type === "object") {
|
|
190
|
+
switch (type.$$typeof) {
|
|
191
|
+
case REACT_CONTEXT_TYPE:
|
|
192
|
+
var context = type;
|
|
193
|
+
return getContextName(context) + ".Consumer";
|
|
194
|
+
case REACT_PROVIDER_TYPE:
|
|
195
|
+
var provider = type;
|
|
196
|
+
return getContextName(provider._context) + ".Provider";
|
|
197
|
+
case REACT_FORWARD_REF_TYPE:
|
|
198
|
+
return getWrappedName(type, type.render, "ForwardRef");
|
|
199
|
+
case REACT_MEMO_TYPE:
|
|
200
|
+
var outerName = type.displayName || null;
|
|
201
|
+
if (outerName !== null) {
|
|
202
|
+
return outerName;
|
|
203
|
+
}
|
|
204
|
+
return getComponentNameFromType(type.type) || "Memo";
|
|
205
|
+
case REACT_LAZY_TYPE: {
|
|
206
|
+
var lazyComponent = type;
|
|
207
|
+
var payload = lazyComponent._payload;
|
|
208
|
+
var init = lazyComponent._init;
|
|
209
|
+
try {
|
|
210
|
+
return getComponentNameFromType(init(payload));
|
|
211
|
+
} catch (x) {
|
|
212
|
+
return null;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
var assign = Object.assign;
|
|
220
|
+
var disabledDepth = 0;
|
|
221
|
+
var prevLog;
|
|
222
|
+
var prevInfo;
|
|
223
|
+
var prevWarn;
|
|
224
|
+
var prevError;
|
|
225
|
+
var prevGroup;
|
|
226
|
+
var prevGroupCollapsed;
|
|
227
|
+
var prevGroupEnd;
|
|
228
|
+
function disabledLog() {
|
|
229
|
+
}
|
|
230
|
+
disabledLog.__reactDisabledLog = true;
|
|
231
|
+
function disableLogs() {
|
|
232
|
+
{
|
|
233
|
+
if (disabledDepth === 0) {
|
|
234
|
+
prevLog = console.log;
|
|
235
|
+
prevInfo = console.info;
|
|
236
|
+
prevWarn = console.warn;
|
|
237
|
+
prevError = console.error;
|
|
238
|
+
prevGroup = console.group;
|
|
239
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
240
|
+
prevGroupEnd = console.groupEnd;
|
|
241
|
+
var props = {
|
|
242
|
+
configurable: true,
|
|
243
|
+
enumerable: true,
|
|
244
|
+
value: disabledLog,
|
|
245
|
+
writable: true
|
|
246
|
+
};
|
|
247
|
+
Object.defineProperties(console, {
|
|
248
|
+
info: props,
|
|
249
|
+
log: props,
|
|
250
|
+
warn: props,
|
|
251
|
+
error: props,
|
|
252
|
+
group: props,
|
|
253
|
+
groupCollapsed: props,
|
|
254
|
+
groupEnd: props
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
disabledDepth++;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function reenableLogs() {
|
|
261
|
+
{
|
|
262
|
+
disabledDepth--;
|
|
263
|
+
if (disabledDepth === 0) {
|
|
264
|
+
var props = {
|
|
265
|
+
configurable: true,
|
|
266
|
+
enumerable: true,
|
|
267
|
+
writable: true
|
|
268
|
+
};
|
|
269
|
+
Object.defineProperties(console, {
|
|
270
|
+
log: assign({}, props, {
|
|
271
|
+
value: prevLog
|
|
272
|
+
}),
|
|
273
|
+
info: assign({}, props, {
|
|
274
|
+
value: prevInfo
|
|
275
|
+
}),
|
|
276
|
+
warn: assign({}, props, {
|
|
277
|
+
value: prevWarn
|
|
278
|
+
}),
|
|
279
|
+
error: assign({}, props, {
|
|
280
|
+
value: prevError
|
|
281
|
+
}),
|
|
282
|
+
group: assign({}, props, {
|
|
283
|
+
value: prevGroup
|
|
284
|
+
}),
|
|
285
|
+
groupCollapsed: assign({}, props, {
|
|
286
|
+
value: prevGroupCollapsed
|
|
287
|
+
}),
|
|
288
|
+
groupEnd: assign({}, props, {
|
|
289
|
+
value: prevGroupEnd
|
|
290
|
+
})
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
if (disabledDepth < 0) {
|
|
294
|
+
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
299
|
+
var prefix;
|
|
300
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
301
|
+
{
|
|
302
|
+
if (prefix === void 0) {
|
|
303
|
+
try {
|
|
304
|
+
throw Error();
|
|
305
|
+
} catch (x) {
|
|
306
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
307
|
+
prefix = match && match[1] || "";
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return "\n" + prefix + name;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
var reentry = false;
|
|
314
|
+
var componentFrameCache;
|
|
315
|
+
{
|
|
316
|
+
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
317
|
+
componentFrameCache = new PossiblyWeakMap();
|
|
318
|
+
}
|
|
319
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
320
|
+
if (!fn || reentry) {
|
|
321
|
+
return "";
|
|
322
|
+
}
|
|
323
|
+
{
|
|
324
|
+
var frame = componentFrameCache.get(fn);
|
|
325
|
+
if (frame !== void 0) {
|
|
326
|
+
return frame;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
var control;
|
|
330
|
+
reentry = true;
|
|
331
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
332
|
+
Error.prepareStackTrace = void 0;
|
|
333
|
+
var previousDispatcher;
|
|
334
|
+
{
|
|
335
|
+
previousDispatcher = ReactCurrentDispatcher.current;
|
|
336
|
+
ReactCurrentDispatcher.current = null;
|
|
337
|
+
disableLogs();
|
|
338
|
+
}
|
|
339
|
+
try {
|
|
340
|
+
if (construct) {
|
|
341
|
+
var Fake = function() {
|
|
342
|
+
throw Error();
|
|
343
|
+
};
|
|
344
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
345
|
+
set: function() {
|
|
346
|
+
throw Error();
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
if (typeof Reflect === "object" && Reflect.construct) {
|
|
350
|
+
try {
|
|
351
|
+
Reflect.construct(Fake, []);
|
|
352
|
+
} catch (x) {
|
|
353
|
+
control = x;
|
|
354
|
+
}
|
|
355
|
+
Reflect.construct(fn, [], Fake);
|
|
356
|
+
} else {
|
|
357
|
+
try {
|
|
358
|
+
Fake.call();
|
|
359
|
+
} catch (x) {
|
|
360
|
+
control = x;
|
|
361
|
+
}
|
|
362
|
+
fn.call(Fake.prototype);
|
|
363
|
+
}
|
|
364
|
+
} else {
|
|
365
|
+
try {
|
|
366
|
+
throw Error();
|
|
367
|
+
} catch (x) {
|
|
368
|
+
control = x;
|
|
369
|
+
}
|
|
370
|
+
fn();
|
|
371
|
+
}
|
|
372
|
+
} catch (sample) {
|
|
373
|
+
if (sample && control && typeof sample.stack === "string") {
|
|
374
|
+
var sampleLines = sample.stack.split("\n");
|
|
375
|
+
var controlLines = control.stack.split("\n");
|
|
376
|
+
var s = sampleLines.length - 1;
|
|
377
|
+
var c = controlLines.length - 1;
|
|
378
|
+
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
379
|
+
c--;
|
|
380
|
+
}
|
|
381
|
+
for (; s >= 1 && c >= 0; s--, c--) {
|
|
382
|
+
if (sampleLines[s] !== controlLines[c]) {
|
|
383
|
+
if (s !== 1 || c !== 1) {
|
|
384
|
+
do {
|
|
385
|
+
s--;
|
|
386
|
+
c--;
|
|
387
|
+
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
388
|
+
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
389
|
+
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
390
|
+
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
391
|
+
}
|
|
392
|
+
{
|
|
393
|
+
if (typeof fn === "function") {
|
|
394
|
+
componentFrameCache.set(fn, _frame);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
return _frame;
|
|
398
|
+
}
|
|
399
|
+
} while (s >= 1 && c >= 0);
|
|
400
|
+
}
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
} finally {
|
|
406
|
+
reentry = false;
|
|
407
|
+
{
|
|
408
|
+
ReactCurrentDispatcher.current = previousDispatcher;
|
|
409
|
+
reenableLogs();
|
|
410
|
+
}
|
|
411
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
412
|
+
}
|
|
413
|
+
var name = fn ? fn.displayName || fn.name : "";
|
|
414
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
415
|
+
{
|
|
416
|
+
if (typeof fn === "function") {
|
|
417
|
+
componentFrameCache.set(fn, syntheticFrame);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return syntheticFrame;
|
|
421
|
+
}
|
|
422
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
423
|
+
{
|
|
424
|
+
return describeNativeComponentFrame(fn, false);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
function shouldConstruct(Component) {
|
|
428
|
+
var prototype = Component.prototype;
|
|
429
|
+
return !!(prototype && prototype.isReactComponent);
|
|
430
|
+
}
|
|
431
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
432
|
+
if (type == null) {
|
|
433
|
+
return "";
|
|
434
|
+
}
|
|
435
|
+
if (typeof type === "function") {
|
|
436
|
+
{
|
|
437
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
if (typeof type === "string") {
|
|
441
|
+
return describeBuiltInComponentFrame(type);
|
|
442
|
+
}
|
|
443
|
+
switch (type) {
|
|
444
|
+
case REACT_SUSPENSE_TYPE:
|
|
445
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
446
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
447
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
448
|
+
}
|
|
449
|
+
if (typeof type === "object") {
|
|
450
|
+
switch (type.$$typeof) {
|
|
451
|
+
case REACT_FORWARD_REF_TYPE:
|
|
452
|
+
return describeFunctionComponentFrame(type.render);
|
|
453
|
+
case REACT_MEMO_TYPE:
|
|
454
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
455
|
+
case REACT_LAZY_TYPE: {
|
|
456
|
+
var lazyComponent = type;
|
|
457
|
+
var payload = lazyComponent._payload;
|
|
458
|
+
var init = lazyComponent._init;
|
|
459
|
+
try {
|
|
460
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
461
|
+
} catch (x) {
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return "";
|
|
467
|
+
}
|
|
468
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
469
|
+
var loggedTypeFailures = {};
|
|
470
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
471
|
+
function setCurrentlyValidatingElement(element) {
|
|
472
|
+
{
|
|
473
|
+
if (element) {
|
|
474
|
+
var owner = element._owner;
|
|
475
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
476
|
+
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
477
|
+
} else {
|
|
478
|
+
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
483
|
+
{
|
|
484
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
485
|
+
for (var typeSpecName in typeSpecs) {
|
|
486
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
487
|
+
var error$1 = void 0;
|
|
488
|
+
try {
|
|
489
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
490
|
+
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
491
|
+
err.name = "Invariant Violation";
|
|
492
|
+
throw err;
|
|
493
|
+
}
|
|
494
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
495
|
+
} catch (ex) {
|
|
496
|
+
error$1 = ex;
|
|
497
|
+
}
|
|
498
|
+
if (error$1 && !(error$1 instanceof Error)) {
|
|
499
|
+
setCurrentlyValidatingElement(element);
|
|
500
|
+
error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
501
|
+
setCurrentlyValidatingElement(null);
|
|
502
|
+
}
|
|
503
|
+
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
504
|
+
loggedTypeFailures[error$1.message] = true;
|
|
505
|
+
setCurrentlyValidatingElement(element);
|
|
506
|
+
error("Failed %s type: %s", location, error$1.message);
|
|
507
|
+
setCurrentlyValidatingElement(null);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
var isArrayImpl = Array.isArray;
|
|
514
|
+
function isArray(a) {
|
|
515
|
+
return isArrayImpl(a);
|
|
516
|
+
}
|
|
517
|
+
function typeName(value) {
|
|
518
|
+
{
|
|
519
|
+
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
520
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
521
|
+
return type;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function willCoercionThrow(value) {
|
|
525
|
+
{
|
|
526
|
+
try {
|
|
527
|
+
testStringCoercion(value);
|
|
528
|
+
return false;
|
|
529
|
+
} catch (e) {
|
|
530
|
+
return true;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
function testStringCoercion(value) {
|
|
535
|
+
return "" + value;
|
|
536
|
+
}
|
|
537
|
+
function checkKeyStringCoercion(value) {
|
|
538
|
+
{
|
|
539
|
+
if (willCoercionThrow(value)) {
|
|
540
|
+
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
541
|
+
return testStringCoercion(value);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
546
|
+
var RESERVED_PROPS = {
|
|
547
|
+
key: true,
|
|
548
|
+
ref: true,
|
|
549
|
+
__self: true,
|
|
550
|
+
__source: true
|
|
551
|
+
};
|
|
552
|
+
var specialPropKeyWarningShown;
|
|
553
|
+
var specialPropRefWarningShown;
|
|
554
|
+
var didWarnAboutStringRefs;
|
|
555
|
+
{
|
|
556
|
+
didWarnAboutStringRefs = {};
|
|
557
|
+
}
|
|
558
|
+
function hasValidRef(config) {
|
|
559
|
+
{
|
|
560
|
+
if (hasOwnProperty.call(config, "ref")) {
|
|
561
|
+
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
562
|
+
if (getter && getter.isReactWarning) {
|
|
563
|
+
return false;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
return config.ref !== void 0;
|
|
568
|
+
}
|
|
569
|
+
function hasValidKey(config) {
|
|
570
|
+
{
|
|
571
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
572
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
573
|
+
if (getter && getter.isReactWarning) {
|
|
574
|
+
return false;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return config.key !== void 0;
|
|
579
|
+
}
|
|
580
|
+
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
581
|
+
{
|
|
582
|
+
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
583
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
584
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
585
|
+
error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
586
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
592
|
+
{
|
|
593
|
+
var warnAboutAccessingKey = function() {
|
|
594
|
+
if (!specialPropKeyWarningShown) {
|
|
595
|
+
specialPropKeyWarningShown = true;
|
|
596
|
+
error("%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)", displayName);
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
600
|
+
Object.defineProperty(props, "key", {
|
|
601
|
+
get: warnAboutAccessingKey,
|
|
602
|
+
configurable: true
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
607
|
+
{
|
|
608
|
+
var warnAboutAccessingRef = function() {
|
|
609
|
+
if (!specialPropRefWarningShown) {
|
|
610
|
+
specialPropRefWarningShown = true;
|
|
611
|
+
error("%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)", displayName);
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
615
|
+
Object.defineProperty(props, "ref", {
|
|
616
|
+
get: warnAboutAccessingRef,
|
|
617
|
+
configurable: true
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
622
|
+
var element = {
|
|
623
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
624
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
625
|
+
// Built-in properties that belong on the element
|
|
626
|
+
type,
|
|
627
|
+
key,
|
|
628
|
+
ref,
|
|
629
|
+
props,
|
|
630
|
+
// Record the component responsible for creating this element.
|
|
631
|
+
_owner: owner
|
|
632
|
+
};
|
|
633
|
+
{
|
|
634
|
+
element._store = {};
|
|
635
|
+
Object.defineProperty(element._store, "validated", {
|
|
636
|
+
configurable: false,
|
|
637
|
+
enumerable: false,
|
|
638
|
+
writable: true,
|
|
639
|
+
value: false
|
|
640
|
+
});
|
|
641
|
+
Object.defineProperty(element, "_self", {
|
|
642
|
+
configurable: false,
|
|
643
|
+
enumerable: false,
|
|
644
|
+
writable: false,
|
|
645
|
+
value: self
|
|
646
|
+
});
|
|
647
|
+
Object.defineProperty(element, "_source", {
|
|
648
|
+
configurable: false,
|
|
649
|
+
enumerable: false,
|
|
650
|
+
writable: false,
|
|
651
|
+
value: source
|
|
652
|
+
});
|
|
653
|
+
if (Object.freeze) {
|
|
654
|
+
Object.freeze(element.props);
|
|
655
|
+
Object.freeze(element);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
return element;
|
|
659
|
+
};
|
|
660
|
+
function jsxDEV(type, config, maybeKey, source, self) {
|
|
661
|
+
{
|
|
662
|
+
var propName;
|
|
663
|
+
var props = {};
|
|
664
|
+
var key = null;
|
|
665
|
+
var ref = null;
|
|
666
|
+
if (maybeKey !== void 0) {
|
|
667
|
+
{
|
|
668
|
+
checkKeyStringCoercion(maybeKey);
|
|
669
|
+
}
|
|
670
|
+
key = "" + maybeKey;
|
|
671
|
+
}
|
|
672
|
+
if (hasValidKey(config)) {
|
|
673
|
+
{
|
|
674
|
+
checkKeyStringCoercion(config.key);
|
|
675
|
+
}
|
|
676
|
+
key = "" + config.key;
|
|
677
|
+
}
|
|
678
|
+
if (hasValidRef(config)) {
|
|
679
|
+
ref = config.ref;
|
|
680
|
+
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
681
|
+
}
|
|
682
|
+
for (propName in config) {
|
|
683
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
684
|
+
props[propName] = config[propName];
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
if (type && type.defaultProps) {
|
|
688
|
+
var defaultProps = type.defaultProps;
|
|
689
|
+
for (propName in defaultProps) {
|
|
690
|
+
if (props[propName] === void 0) {
|
|
691
|
+
props[propName] = defaultProps[propName];
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
if (key || ref) {
|
|
696
|
+
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
697
|
+
if (key) {
|
|
698
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
699
|
+
}
|
|
700
|
+
if (ref) {
|
|
701
|
+
defineRefPropWarningGetter(props, displayName);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
708
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
709
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
710
|
+
{
|
|
711
|
+
if (element) {
|
|
712
|
+
var owner = element._owner;
|
|
713
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
714
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
715
|
+
} else {
|
|
716
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
var propTypesMisspellWarningShown;
|
|
721
|
+
{
|
|
722
|
+
propTypesMisspellWarningShown = false;
|
|
723
|
+
}
|
|
724
|
+
function isValidElement(object) {
|
|
725
|
+
{
|
|
726
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
function getDeclarationErrorAddendum() {
|
|
730
|
+
{
|
|
731
|
+
if (ReactCurrentOwner$1.current) {
|
|
732
|
+
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
733
|
+
if (name) {
|
|
734
|
+
return "\n\nCheck the render method of `" + name + "`.";
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
return "";
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
function getSourceInfoErrorAddendum(source) {
|
|
741
|
+
{
|
|
742
|
+
if (source !== void 0) {
|
|
743
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
744
|
+
var lineNumber = source.lineNumber;
|
|
745
|
+
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
746
|
+
}
|
|
747
|
+
return "";
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
var ownerHasKeyUseWarning = {};
|
|
751
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
752
|
+
{
|
|
753
|
+
var info = getDeclarationErrorAddendum();
|
|
754
|
+
if (!info) {
|
|
755
|
+
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
756
|
+
if (parentName) {
|
|
757
|
+
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
return info;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
function validateExplicitKey(element, parentType) {
|
|
764
|
+
{
|
|
765
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
element._store.validated = true;
|
|
769
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
770
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
774
|
+
var childOwner = "";
|
|
775
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
776
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
777
|
+
}
|
|
778
|
+
setCurrentlyValidatingElement$1(element);
|
|
779
|
+
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
780
|
+
setCurrentlyValidatingElement$1(null);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function validateChildKeys(node, parentType) {
|
|
784
|
+
{
|
|
785
|
+
if (typeof node !== "object") {
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
if (isArray(node)) {
|
|
789
|
+
for (var i = 0; i < node.length; i++) {
|
|
790
|
+
var child = node[i];
|
|
791
|
+
if (isValidElement(child)) {
|
|
792
|
+
validateExplicitKey(child, parentType);
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
} else if (isValidElement(node)) {
|
|
796
|
+
if (node._store) {
|
|
797
|
+
node._store.validated = true;
|
|
798
|
+
}
|
|
799
|
+
} else if (node) {
|
|
800
|
+
var iteratorFn = getIteratorFn(node);
|
|
801
|
+
if (typeof iteratorFn === "function") {
|
|
802
|
+
if (iteratorFn !== node.entries) {
|
|
803
|
+
var iterator = iteratorFn.call(node);
|
|
804
|
+
var step;
|
|
805
|
+
while (!(step = iterator.next()).done) {
|
|
806
|
+
if (isValidElement(step.value)) {
|
|
807
|
+
validateExplicitKey(step.value, parentType);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
function validatePropTypes(element) {
|
|
816
|
+
{
|
|
817
|
+
var type = element.type;
|
|
818
|
+
if (type === null || type === void 0 || typeof type === "string") {
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
var propTypes;
|
|
822
|
+
if (typeof type === "function") {
|
|
823
|
+
propTypes = type.propTypes;
|
|
824
|
+
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
825
|
+
// Inner props are checked in the reconciler.
|
|
826
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
827
|
+
propTypes = type.propTypes;
|
|
828
|
+
} else {
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
if (propTypes) {
|
|
832
|
+
var name = getComponentNameFromType(type);
|
|
833
|
+
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
834
|
+
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
835
|
+
propTypesMisspellWarningShown = true;
|
|
836
|
+
var _name = getComponentNameFromType(type);
|
|
837
|
+
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
838
|
+
}
|
|
839
|
+
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
840
|
+
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
function validateFragmentProps(fragment) {
|
|
845
|
+
{
|
|
846
|
+
var keys = Object.keys(fragment.props);
|
|
847
|
+
for (var i = 0; i < keys.length; i++) {
|
|
848
|
+
var key = keys[i];
|
|
849
|
+
if (key !== "children" && key !== "key") {
|
|
850
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
851
|
+
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
852
|
+
setCurrentlyValidatingElement$1(null);
|
|
853
|
+
break;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
if (fragment.ref !== null) {
|
|
857
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
858
|
+
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
859
|
+
setCurrentlyValidatingElement$1(null);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
864
|
+
{
|
|
865
|
+
var validType = isValidElementType(type);
|
|
866
|
+
if (!validType) {
|
|
867
|
+
var info = "";
|
|
868
|
+
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
869
|
+
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
870
|
+
}
|
|
871
|
+
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
872
|
+
if (sourceInfo) {
|
|
873
|
+
info += sourceInfo;
|
|
874
|
+
} else {
|
|
875
|
+
info += getDeclarationErrorAddendum();
|
|
876
|
+
}
|
|
877
|
+
var typeString;
|
|
878
|
+
if (type === null) {
|
|
879
|
+
typeString = "null";
|
|
880
|
+
} else if (isArray(type)) {
|
|
881
|
+
typeString = "array";
|
|
882
|
+
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
883
|
+
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
884
|
+
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
885
|
+
} else {
|
|
886
|
+
typeString = typeof type;
|
|
887
|
+
}
|
|
888
|
+
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
889
|
+
}
|
|
890
|
+
var element = jsxDEV(type, props, key, source, self);
|
|
891
|
+
if (element == null) {
|
|
892
|
+
return element;
|
|
893
|
+
}
|
|
894
|
+
if (validType) {
|
|
895
|
+
var children = props.children;
|
|
896
|
+
if (children !== void 0) {
|
|
897
|
+
if (isStaticChildren) {
|
|
898
|
+
if (isArray(children)) {
|
|
899
|
+
for (var i = 0; i < children.length; i++) {
|
|
900
|
+
validateChildKeys(children[i], type);
|
|
901
|
+
}
|
|
902
|
+
if (Object.freeze) {
|
|
903
|
+
Object.freeze(children);
|
|
904
|
+
}
|
|
905
|
+
} else {
|
|
906
|
+
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
907
|
+
}
|
|
908
|
+
} else {
|
|
909
|
+
validateChildKeys(children, type);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
914
|
+
validateFragmentProps(element);
|
|
915
|
+
} else {
|
|
916
|
+
validatePropTypes(element);
|
|
917
|
+
}
|
|
918
|
+
return element;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
function jsxWithValidationStatic(type, props, key) {
|
|
922
|
+
{
|
|
923
|
+
return jsxWithValidation(type, props, key, true);
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
function jsxWithValidationDynamic(type, props, key) {
|
|
927
|
+
{
|
|
928
|
+
return jsxWithValidation(type, props, key, false);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
var jsx = jsxWithValidationDynamic;
|
|
932
|
+
var jsxs = jsxWithValidationStatic;
|
|
933
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
934
|
+
reactJsxRuntime_development.jsx = jsx;
|
|
935
|
+
reactJsxRuntime_development.jsxs = jsxs;
|
|
936
|
+
})();
|
|
937
|
+
}
|
|
938
|
+
return reactJsxRuntime_development;
|
|
939
|
+
}
|
|
940
|
+
var reactJsxRuntime_production_min = {};
|
|
941
|
+
/**
|
|
942
|
+
* @license React
|
|
943
|
+
* react-jsx-runtime.production.min.js
|
|
944
|
+
*
|
|
945
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
946
|
+
*
|
|
947
|
+
* This source code is licensed under the MIT license found in the
|
|
948
|
+
* LICENSE file in the root directory of this source tree.
|
|
949
|
+
*/
|
|
950
|
+
var hasRequiredReactJsxRuntime_production_min;
|
|
951
|
+
function requireReactJsxRuntime_production_min() {
|
|
952
|
+
if (hasRequiredReactJsxRuntime_production_min)
|
|
953
|
+
return reactJsxRuntime_production_min;
|
|
954
|
+
hasRequiredReactJsxRuntime_production_min = 1;
|
|
955
|
+
var f = React, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
956
|
+
function q(c, a, g) {
|
|
957
|
+
var b, d = {}, e = null, h = null;
|
|
958
|
+
void 0 !== g && (e = "" + g);
|
|
959
|
+
void 0 !== a.key && (e = "" + a.key);
|
|
960
|
+
void 0 !== a.ref && (h = a.ref);
|
|
961
|
+
for (b in a)
|
|
962
|
+
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
963
|
+
if (c && c.defaultProps)
|
|
964
|
+
for (b in a = c.defaultProps, a)
|
|
965
|
+
void 0 === d[b] && (d[b] = a[b]);
|
|
966
|
+
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
967
|
+
}
|
|
968
|
+
reactJsxRuntime_production_min.Fragment = l;
|
|
969
|
+
reactJsxRuntime_production_min.jsx = q;
|
|
970
|
+
reactJsxRuntime_production_min.jsxs = q;
|
|
971
|
+
return reactJsxRuntime_production_min;
|
|
972
|
+
}
|
|
973
|
+
if (process.env.NODE_ENV === "production") {
|
|
974
|
+
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
975
|
+
} else {
|
|
976
|
+
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
977
|
+
}
|
|
978
|
+
var jsxRuntimeExports = jsxRuntime.exports;
|
|
53
979
|
function r$1(e) {
|
|
54
980
|
var t, f, n = "";
|
|
55
981
|
if ("string" == typeof e || "number" == typeof e)
|
|
@@ -2560,7 +3486,7 @@ const variants$1 = {
|
|
|
2560
3486
|
const Button = React.forwardRef(
|
|
2561
3487
|
(_a, ref) => {
|
|
2562
3488
|
var _b = _a, { color = "primary", size = "small", disabled = false, className } = _b, rest = __objRest(_b, ["color", "size", "disabled", "className"]);
|
|
2563
|
-
return /* @__PURE__ */
|
|
3489
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2564
3490
|
"button",
|
|
2565
3491
|
__spreadValues({
|
|
2566
3492
|
ref,
|
|
@@ -2579,15 +3505,15 @@ const variants = {
|
|
|
2579
3505
|
const Input = React.forwardRef(
|
|
2580
3506
|
(_c, ref) => {
|
|
2581
3507
|
var _d = _c, { color = "primary", disabled = false, textarea = false, label, caption, className } = _d, rest = __objRest(_d, ["color", "disabled", "textarea", "label", "caption", "className"]);
|
|
2582
|
-
return textarea ? /* @__PURE__ */
|
|
3508
|
+
return textarea ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2583
3509
|
"textarea",
|
|
2584
3510
|
__spreadValues({
|
|
2585
3511
|
disabled,
|
|
2586
3512
|
className: twMerge(clsx$1(variants[color], className))
|
|
2587
3513
|
}, rest)
|
|
2588
|
-
) : /* @__PURE__ */
|
|
2589
|
-
label && /* @__PURE__ */
|
|
2590
|
-
/* @__PURE__ */
|
|
3514
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-start", children: [
|
|
3515
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "text-mediumSubHead font-normal", children: label }),
|
|
3516
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2591
3517
|
"input",
|
|
2592
3518
|
__spreadValues({
|
|
2593
3519
|
ref,
|
|
@@ -2595,7 +3521,7 @@ const Input = React.forwardRef(
|
|
|
2595
3521
|
className: twMerge(clsx$1(variants[color], className))
|
|
2596
3522
|
}, rest)
|
|
2597
3523
|
),
|
|
2598
|
-
caption && /* @__PURE__ */
|
|
3524
|
+
caption && /* @__PURE__ */ jsxRuntimeExports.jsx("caption", { className: "text-mediumCaption1 font-normal", children: caption })
|
|
2599
3525
|
] });
|
|
2600
3526
|
}
|
|
2601
3527
|
);
|
|
@@ -2670,7 +3596,7 @@ const cardVariants = cva("border text-text-primary", {
|
|
|
2670
3596
|
const Card = React__namespace.forwardRef(
|
|
2671
3597
|
(_e, ref) => {
|
|
2672
3598
|
var _f = _e, { className, cardType } = _f, props = __objRest(_f, ["className", "cardType"]);
|
|
2673
|
-
return /* @__PURE__ */
|
|
3599
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2674
3600
|
"div",
|
|
2675
3601
|
__spreadValues({
|
|
2676
3602
|
ref,
|
|
@@ -2692,7 +3618,7 @@ Card.displayName = "Card";
|
|
|
2692
3618
|
const CardHeader = React__namespace.forwardRef(
|
|
2693
3619
|
(_g, ref) => {
|
|
2694
3620
|
var _h = _g, { className } = _h, props = __objRest(_h, ["className"]);
|
|
2695
|
-
return /* @__PURE__ */
|
|
3621
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2696
3622
|
"div",
|
|
2697
3623
|
__spreadValues({
|
|
2698
3624
|
ref,
|
|
@@ -2705,7 +3631,7 @@ CardHeader.displayName = "CardHeader";
|
|
|
2705
3631
|
const CardTitle = React__namespace.forwardRef(
|
|
2706
3632
|
(_i, ref) => {
|
|
2707
3633
|
var _j = _i, { className } = _j, props = __objRest(_j, ["className"]);
|
|
2708
|
-
return /* @__PURE__ */
|
|
3634
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2709
3635
|
"div",
|
|
2710
3636
|
__spreadValues({
|
|
2711
3637
|
ref,
|
|
@@ -2718,7 +3644,7 @@ CardTitle.displayName = "Title";
|
|
|
2718
3644
|
const CardDescription = React__namespace.forwardRef(
|
|
2719
3645
|
(_k, ref) => {
|
|
2720
3646
|
var _l = _k, { className } = _l, props = __objRest(_l, ["className"]);
|
|
2721
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2722
3648
|
"div",
|
|
2723
3649
|
__spreadValues({
|
|
2724
3650
|
ref,
|
|
@@ -2731,7 +3657,7 @@ CardDescription.displayName = "Description";
|
|
|
2731
3657
|
const CardContent = React__namespace.forwardRef(
|
|
2732
3658
|
(_m, ref) => {
|
|
2733
3659
|
var _n = _m, { className } = _n, props = __objRest(_n, ["className"]);
|
|
2734
|
-
return /* @__PURE__ */
|
|
3660
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2735
3661
|
"div",
|
|
2736
3662
|
__spreadValues({
|
|
2737
3663
|
ref,
|
|
@@ -2744,7 +3670,7 @@ CardContent.displayName = "Content";
|
|
|
2744
3670
|
const CardFooter = React__namespace.forwardRef(
|
|
2745
3671
|
(_o, ref) => {
|
|
2746
3672
|
var _p = _o, { className } = _p, props = __objRest(_p, ["className"]);
|
|
2747
|
-
return /* @__PURE__ */
|
|
3673
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2748
3674
|
"div",
|
|
2749
3675
|
__spreadValues({
|
|
2750
3676
|
ref,
|
|
@@ -2858,7 +3784,7 @@ const gridVariants = cva(
|
|
|
2858
3784
|
const Grid = React__namespace.forwardRef(
|
|
2859
3785
|
(_q, ref) => {
|
|
2860
3786
|
var _r = _q, { className, children } = _r, props = __objRest(_r, ["className", "children"]);
|
|
2861
|
-
return /* @__PURE__ */
|
|
3787
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2862
3788
|
"div",
|
|
2863
3789
|
__spreadProps(__spreadValues({
|
|
2864
3790
|
className: twMerge(
|