@sudobility/devops-components-rn 1.0.0 → 1.0.2
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/AlertDialog.d.ts.map +1 -1
- package/dist/ApiPlayground.d.ts.map +1 -1
- package/dist/ApiReference.d.ts.map +1 -1
- package/dist/AuditLog.d.ts +26 -4
- package/dist/AuditLog.d.ts.map +1 -1
- package/dist/BodyMetrics.d.ts.map +1 -1
- package/dist/BuildLog.d.ts +16 -5
- package/dist/BuildLog.d.ts.map +1 -1
- package/dist/ChangelogDisplay.d.ts.map +1 -1
- package/dist/CodePlayground.d.ts.map +1 -1
- package/dist/ConflictResolver.d.ts.map +1 -1
- package/dist/DealPipeline.d.ts.map +1 -1
- package/dist/DeploymentStatus.d.ts +11 -4
- package/dist/DeploymentStatus.d.ts.map +1 -1
- package/dist/DriverLog.d.ts.map +1 -1
- package/dist/MemoryUsage.d.ts.map +1 -1
- package/dist/MetricsGrid.d.ts +12 -19
- package/dist/MetricsGrid.d.ts.map +1 -1
- package/dist/PipelineView.d.ts +21 -5
- package/dist/PipelineView.d.ts.map +1 -1
- package/dist/RegressionTest.d.ts.map +1 -1
- package/dist/SystemStatusIndicator.d.ts +9 -8
- package/dist/SystemStatusIndicator.d.ts.map +1 -1
- package/dist/TestResult.d.ts.map +1 -1
- package/dist/TestRunner.d.ts.map +1 -1
- package/dist/WebhookLogger.d.ts.map +1 -1
- package/dist/WorkflowBuilder.d.ts.map +1 -1
- package/dist/WorkflowTemplate.d.ts.map +1 -1
- package/dist/XmlParser.d.ts.map +1 -1
- package/dist/index.cjs +1002 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +6 -27
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1002 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +9 -10
- package/src/AlertDialog.tsx +21 -16
- package/src/ApiPlayground.tsx +7 -3
- package/src/ApiReference.tsx +6 -2
- package/src/AuditLog.tsx +244 -21
- package/src/BodyMetrics.tsx +6 -2
- package/src/BuildLog.tsx +132 -26
- package/src/ChangelogDisplay.tsx +6 -2
- package/src/CodePlayground.tsx +7 -3
- package/src/ConflictResolver.tsx +7 -3
- package/src/DealPipeline.tsx +6 -2
- package/src/DeploymentStatus.tsx +159 -25
- package/src/DriverLog.tsx +4 -2
- package/src/MemoryUsage.tsx +6 -2
- package/src/MetricsGrid.tsx +99 -94
- package/src/PipelineView.tsx +225 -26
- package/src/RegressionTest.tsx +6 -2
- package/src/SystemStatusIndicator.tsx +70 -47
- package/src/TestResult.tsx +6 -2
- package/src/TestRunner.tsx +7 -3
- package/src/WebhookLogger.tsx +6 -2
- package/src/WorkflowBuilder.tsx +7 -3
- package/src/WorkflowTemplate.tsx +7 -3
- package/src/XmlParser.tsx +4 -2
- package/src/index.ts +41 -30
- package/src/nativewind.d.ts +3 -0
- package/dist/index.cjs.js +0 -1593
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -1593
- package/dist/index.esm.js.map +0 -1
package/dist/index.esm.js
DELETED
|
@@ -1,1593 +0,0 @@
|
|
|
1
|
-
import require$$0 from "react";
|
|
2
|
-
import { Modal, View, Text, Pressable, ActivityIndicator, FlatList } from "react-native";
|
|
3
|
-
import { cn } from "@sudobility/components-rn";
|
|
4
|
-
var jsxRuntime = { exports: {} };
|
|
5
|
-
var reactJsxRuntime_production_min = {};
|
|
6
|
-
/**
|
|
7
|
-
* @license React
|
|
8
|
-
* react-jsx-runtime.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
16
|
-
function requireReactJsxRuntime_production_min() {
|
|
17
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
18
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
19
|
-
var f = require$$0, 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 };
|
|
20
|
-
function q(c, a, g) {
|
|
21
|
-
var b, d = {}, e = null, h = null;
|
|
22
|
-
void 0 !== g && (e = "" + g);
|
|
23
|
-
void 0 !== a.key && (e = "" + a.key);
|
|
24
|
-
void 0 !== a.ref && (h = a.ref);
|
|
25
|
-
for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
26
|
-
if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
|
|
27
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
28
|
-
}
|
|
29
|
-
reactJsxRuntime_production_min.Fragment = l;
|
|
30
|
-
reactJsxRuntime_production_min.jsx = q;
|
|
31
|
-
reactJsxRuntime_production_min.jsxs = q;
|
|
32
|
-
return reactJsxRuntime_production_min;
|
|
33
|
-
}
|
|
34
|
-
var reactJsxRuntime_development = {};
|
|
35
|
-
/**
|
|
36
|
-
* @license React
|
|
37
|
-
* react-jsx-runtime.development.js
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/
|
|
44
|
-
var hasRequiredReactJsxRuntime_development;
|
|
45
|
-
function requireReactJsxRuntime_development() {
|
|
46
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
47
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
48
|
-
if (process.env.NODE_ENV !== "production") {
|
|
49
|
-
(function() {
|
|
50
|
-
var React = require$$0;
|
|
51
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
52
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
53
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
54
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
55
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
56
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
57
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
58
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
59
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
60
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
61
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
62
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
63
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
64
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
65
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
66
|
-
function getIteratorFn(maybeIterable) {
|
|
67
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
71
|
-
if (typeof maybeIterator === "function") {
|
|
72
|
-
return maybeIterator;
|
|
73
|
-
}
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
77
|
-
function error(format) {
|
|
78
|
-
{
|
|
79
|
-
{
|
|
80
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
81
|
-
args[_key2 - 1] = arguments[_key2];
|
|
82
|
-
}
|
|
83
|
-
printWarning("error", format, args);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function printWarning(level, format, args) {
|
|
88
|
-
{
|
|
89
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
90
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
91
|
-
if (stack !== "") {
|
|
92
|
-
format += "%s";
|
|
93
|
-
args = args.concat([stack]);
|
|
94
|
-
}
|
|
95
|
-
var argsWithFormat = args.map(function(item) {
|
|
96
|
-
return String(item);
|
|
97
|
-
});
|
|
98
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
99
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
var enableScopeAPI = false;
|
|
103
|
-
var enableCacheElement = false;
|
|
104
|
-
var enableTransitionTracing = false;
|
|
105
|
-
var enableLegacyHidden = false;
|
|
106
|
-
var enableDebugTracing = false;
|
|
107
|
-
var REACT_MODULE_REFERENCE;
|
|
108
|
-
{
|
|
109
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
110
|
-
}
|
|
111
|
-
function isValidElementType(type) {
|
|
112
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
113
|
-
return true;
|
|
114
|
-
}
|
|
115
|
-
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) {
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
if (typeof type === "object" && type !== null) {
|
|
119
|
-
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
|
|
120
|
-
// types supported by any Flight configuration anywhere since
|
|
121
|
-
// we don't know which Flight build this will end up being used
|
|
122
|
-
// with.
|
|
123
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
130
|
-
var displayName = outerType.displayName;
|
|
131
|
-
if (displayName) {
|
|
132
|
-
return displayName;
|
|
133
|
-
}
|
|
134
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
135
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
136
|
-
}
|
|
137
|
-
function getContextName(type) {
|
|
138
|
-
return type.displayName || "Context";
|
|
139
|
-
}
|
|
140
|
-
function getComponentNameFromType(type) {
|
|
141
|
-
if (type == null) {
|
|
142
|
-
return null;
|
|
143
|
-
}
|
|
144
|
-
{
|
|
145
|
-
if (typeof type.tag === "number") {
|
|
146
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (typeof type === "function") {
|
|
150
|
-
return type.displayName || type.name || null;
|
|
151
|
-
}
|
|
152
|
-
if (typeof type === "string") {
|
|
153
|
-
return type;
|
|
154
|
-
}
|
|
155
|
-
switch (type) {
|
|
156
|
-
case REACT_FRAGMENT_TYPE:
|
|
157
|
-
return "Fragment";
|
|
158
|
-
case REACT_PORTAL_TYPE:
|
|
159
|
-
return "Portal";
|
|
160
|
-
case REACT_PROFILER_TYPE:
|
|
161
|
-
return "Profiler";
|
|
162
|
-
case REACT_STRICT_MODE_TYPE:
|
|
163
|
-
return "StrictMode";
|
|
164
|
-
case REACT_SUSPENSE_TYPE:
|
|
165
|
-
return "Suspense";
|
|
166
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
167
|
-
return "SuspenseList";
|
|
168
|
-
}
|
|
169
|
-
if (typeof type === "object") {
|
|
170
|
-
switch (type.$$typeof) {
|
|
171
|
-
case REACT_CONTEXT_TYPE:
|
|
172
|
-
var context = type;
|
|
173
|
-
return getContextName(context) + ".Consumer";
|
|
174
|
-
case REACT_PROVIDER_TYPE:
|
|
175
|
-
var provider = type;
|
|
176
|
-
return getContextName(provider._context) + ".Provider";
|
|
177
|
-
case REACT_FORWARD_REF_TYPE:
|
|
178
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
179
|
-
case REACT_MEMO_TYPE:
|
|
180
|
-
var outerName = type.displayName || null;
|
|
181
|
-
if (outerName !== null) {
|
|
182
|
-
return outerName;
|
|
183
|
-
}
|
|
184
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
185
|
-
case REACT_LAZY_TYPE: {
|
|
186
|
-
var lazyComponent = type;
|
|
187
|
-
var payload = lazyComponent._payload;
|
|
188
|
-
var init = lazyComponent._init;
|
|
189
|
-
try {
|
|
190
|
-
return getComponentNameFromType(init(payload));
|
|
191
|
-
} catch (x) {
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return null;
|
|
198
|
-
}
|
|
199
|
-
var assign = Object.assign;
|
|
200
|
-
var disabledDepth = 0;
|
|
201
|
-
var prevLog;
|
|
202
|
-
var prevInfo;
|
|
203
|
-
var prevWarn;
|
|
204
|
-
var prevError;
|
|
205
|
-
var prevGroup;
|
|
206
|
-
var prevGroupCollapsed;
|
|
207
|
-
var prevGroupEnd;
|
|
208
|
-
function disabledLog() {
|
|
209
|
-
}
|
|
210
|
-
disabledLog.__reactDisabledLog = true;
|
|
211
|
-
function disableLogs() {
|
|
212
|
-
{
|
|
213
|
-
if (disabledDepth === 0) {
|
|
214
|
-
prevLog = console.log;
|
|
215
|
-
prevInfo = console.info;
|
|
216
|
-
prevWarn = console.warn;
|
|
217
|
-
prevError = console.error;
|
|
218
|
-
prevGroup = console.group;
|
|
219
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
220
|
-
prevGroupEnd = console.groupEnd;
|
|
221
|
-
var props = {
|
|
222
|
-
configurable: true,
|
|
223
|
-
enumerable: true,
|
|
224
|
-
value: disabledLog,
|
|
225
|
-
writable: true
|
|
226
|
-
};
|
|
227
|
-
Object.defineProperties(console, {
|
|
228
|
-
info: props,
|
|
229
|
-
log: props,
|
|
230
|
-
warn: props,
|
|
231
|
-
error: props,
|
|
232
|
-
group: props,
|
|
233
|
-
groupCollapsed: props,
|
|
234
|
-
groupEnd: props
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
disabledDepth++;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
function reenableLogs() {
|
|
241
|
-
{
|
|
242
|
-
disabledDepth--;
|
|
243
|
-
if (disabledDepth === 0) {
|
|
244
|
-
var props = {
|
|
245
|
-
configurable: true,
|
|
246
|
-
enumerable: true,
|
|
247
|
-
writable: true
|
|
248
|
-
};
|
|
249
|
-
Object.defineProperties(console, {
|
|
250
|
-
log: assign({}, props, {
|
|
251
|
-
value: prevLog
|
|
252
|
-
}),
|
|
253
|
-
info: assign({}, props, {
|
|
254
|
-
value: prevInfo
|
|
255
|
-
}),
|
|
256
|
-
warn: assign({}, props, {
|
|
257
|
-
value: prevWarn
|
|
258
|
-
}),
|
|
259
|
-
error: assign({}, props, {
|
|
260
|
-
value: prevError
|
|
261
|
-
}),
|
|
262
|
-
group: assign({}, props, {
|
|
263
|
-
value: prevGroup
|
|
264
|
-
}),
|
|
265
|
-
groupCollapsed: assign({}, props, {
|
|
266
|
-
value: prevGroupCollapsed
|
|
267
|
-
}),
|
|
268
|
-
groupEnd: assign({}, props, {
|
|
269
|
-
value: prevGroupEnd
|
|
270
|
-
})
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
if (disabledDepth < 0) {
|
|
274
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
279
|
-
var prefix;
|
|
280
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
281
|
-
{
|
|
282
|
-
if (prefix === void 0) {
|
|
283
|
-
try {
|
|
284
|
-
throw Error();
|
|
285
|
-
} catch (x) {
|
|
286
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
287
|
-
prefix = match && match[1] || "";
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
return "\n" + prefix + name;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
var reentry = false;
|
|
294
|
-
var componentFrameCache;
|
|
295
|
-
{
|
|
296
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
297
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
298
|
-
}
|
|
299
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
300
|
-
if (!fn || reentry) {
|
|
301
|
-
return "";
|
|
302
|
-
}
|
|
303
|
-
{
|
|
304
|
-
var frame = componentFrameCache.get(fn);
|
|
305
|
-
if (frame !== void 0) {
|
|
306
|
-
return frame;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
var control;
|
|
310
|
-
reentry = true;
|
|
311
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
312
|
-
Error.prepareStackTrace = void 0;
|
|
313
|
-
var previousDispatcher;
|
|
314
|
-
{
|
|
315
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
316
|
-
ReactCurrentDispatcher.current = null;
|
|
317
|
-
disableLogs();
|
|
318
|
-
}
|
|
319
|
-
try {
|
|
320
|
-
if (construct) {
|
|
321
|
-
var Fake = function() {
|
|
322
|
-
throw Error();
|
|
323
|
-
};
|
|
324
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
325
|
-
set: function() {
|
|
326
|
-
throw Error();
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
330
|
-
try {
|
|
331
|
-
Reflect.construct(Fake, []);
|
|
332
|
-
} catch (x) {
|
|
333
|
-
control = x;
|
|
334
|
-
}
|
|
335
|
-
Reflect.construct(fn, [], Fake);
|
|
336
|
-
} else {
|
|
337
|
-
try {
|
|
338
|
-
Fake.call();
|
|
339
|
-
} catch (x) {
|
|
340
|
-
control = x;
|
|
341
|
-
}
|
|
342
|
-
fn.call(Fake.prototype);
|
|
343
|
-
}
|
|
344
|
-
} else {
|
|
345
|
-
try {
|
|
346
|
-
throw Error();
|
|
347
|
-
} catch (x) {
|
|
348
|
-
control = x;
|
|
349
|
-
}
|
|
350
|
-
fn();
|
|
351
|
-
}
|
|
352
|
-
} catch (sample) {
|
|
353
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
354
|
-
var sampleLines = sample.stack.split("\n");
|
|
355
|
-
var controlLines = control.stack.split("\n");
|
|
356
|
-
var s = sampleLines.length - 1;
|
|
357
|
-
var c = controlLines.length - 1;
|
|
358
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
359
|
-
c--;
|
|
360
|
-
}
|
|
361
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
362
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
363
|
-
if (s !== 1 || c !== 1) {
|
|
364
|
-
do {
|
|
365
|
-
s--;
|
|
366
|
-
c--;
|
|
367
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
368
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
369
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
370
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
371
|
-
}
|
|
372
|
-
{
|
|
373
|
-
if (typeof fn === "function") {
|
|
374
|
-
componentFrameCache.set(fn, _frame);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
return _frame;
|
|
378
|
-
}
|
|
379
|
-
} while (s >= 1 && c >= 0);
|
|
380
|
-
}
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
} finally {
|
|
386
|
-
reentry = false;
|
|
387
|
-
{
|
|
388
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
389
|
-
reenableLogs();
|
|
390
|
-
}
|
|
391
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
392
|
-
}
|
|
393
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
394
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
395
|
-
{
|
|
396
|
-
if (typeof fn === "function") {
|
|
397
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
return syntheticFrame;
|
|
401
|
-
}
|
|
402
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
403
|
-
{
|
|
404
|
-
return describeNativeComponentFrame(fn, false);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
function shouldConstruct(Component) {
|
|
408
|
-
var prototype = Component.prototype;
|
|
409
|
-
return !!(prototype && prototype.isReactComponent);
|
|
410
|
-
}
|
|
411
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
412
|
-
if (type == null) {
|
|
413
|
-
return "";
|
|
414
|
-
}
|
|
415
|
-
if (typeof type === "function") {
|
|
416
|
-
{
|
|
417
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
if (typeof type === "string") {
|
|
421
|
-
return describeBuiltInComponentFrame(type);
|
|
422
|
-
}
|
|
423
|
-
switch (type) {
|
|
424
|
-
case REACT_SUSPENSE_TYPE:
|
|
425
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
426
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
427
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
428
|
-
}
|
|
429
|
-
if (typeof type === "object") {
|
|
430
|
-
switch (type.$$typeof) {
|
|
431
|
-
case REACT_FORWARD_REF_TYPE:
|
|
432
|
-
return describeFunctionComponentFrame(type.render);
|
|
433
|
-
case REACT_MEMO_TYPE:
|
|
434
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
435
|
-
case REACT_LAZY_TYPE: {
|
|
436
|
-
var lazyComponent = type;
|
|
437
|
-
var payload = lazyComponent._payload;
|
|
438
|
-
var init = lazyComponent._init;
|
|
439
|
-
try {
|
|
440
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
441
|
-
} catch (x) {
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
return "";
|
|
447
|
-
}
|
|
448
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
449
|
-
var loggedTypeFailures = {};
|
|
450
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
451
|
-
function setCurrentlyValidatingElement(element) {
|
|
452
|
-
{
|
|
453
|
-
if (element) {
|
|
454
|
-
var owner = element._owner;
|
|
455
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
456
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
457
|
-
} else {
|
|
458
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
463
|
-
{
|
|
464
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
465
|
-
for (var typeSpecName in typeSpecs) {
|
|
466
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
467
|
-
var error$1 = void 0;
|
|
468
|
-
try {
|
|
469
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
470
|
-
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`.");
|
|
471
|
-
err.name = "Invariant Violation";
|
|
472
|
-
throw err;
|
|
473
|
-
}
|
|
474
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
475
|
-
} catch (ex) {
|
|
476
|
-
error$1 = ex;
|
|
477
|
-
}
|
|
478
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
479
|
-
setCurrentlyValidatingElement(element);
|
|
480
|
-
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);
|
|
481
|
-
setCurrentlyValidatingElement(null);
|
|
482
|
-
}
|
|
483
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
484
|
-
loggedTypeFailures[error$1.message] = true;
|
|
485
|
-
setCurrentlyValidatingElement(element);
|
|
486
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
487
|
-
setCurrentlyValidatingElement(null);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
var isArrayImpl = Array.isArray;
|
|
494
|
-
function isArray(a) {
|
|
495
|
-
return isArrayImpl(a);
|
|
496
|
-
}
|
|
497
|
-
function typeName(value) {
|
|
498
|
-
{
|
|
499
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
500
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
501
|
-
return type;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
function willCoercionThrow(value) {
|
|
505
|
-
{
|
|
506
|
-
try {
|
|
507
|
-
testStringCoercion(value);
|
|
508
|
-
return false;
|
|
509
|
-
} catch (e) {
|
|
510
|
-
return true;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
function testStringCoercion(value) {
|
|
515
|
-
return "" + value;
|
|
516
|
-
}
|
|
517
|
-
function checkKeyStringCoercion(value) {
|
|
518
|
-
{
|
|
519
|
-
if (willCoercionThrow(value)) {
|
|
520
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
521
|
-
return testStringCoercion(value);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
526
|
-
var RESERVED_PROPS = {
|
|
527
|
-
key: true,
|
|
528
|
-
ref: true,
|
|
529
|
-
__self: true,
|
|
530
|
-
__source: true
|
|
531
|
-
};
|
|
532
|
-
var specialPropKeyWarningShown;
|
|
533
|
-
var specialPropRefWarningShown;
|
|
534
|
-
function hasValidRef(config) {
|
|
535
|
-
{
|
|
536
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
537
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
538
|
-
if (getter && getter.isReactWarning) {
|
|
539
|
-
return false;
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
return config.ref !== void 0;
|
|
544
|
-
}
|
|
545
|
-
function hasValidKey(config) {
|
|
546
|
-
{
|
|
547
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
548
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
549
|
-
if (getter && getter.isReactWarning) {
|
|
550
|
-
return false;
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
return config.key !== void 0;
|
|
555
|
-
}
|
|
556
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
557
|
-
{
|
|
558
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self) ;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
562
|
-
{
|
|
563
|
-
var warnAboutAccessingKey = function() {
|
|
564
|
-
if (!specialPropKeyWarningShown) {
|
|
565
|
-
specialPropKeyWarningShown = true;
|
|
566
|
-
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);
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
570
|
-
Object.defineProperty(props, "key", {
|
|
571
|
-
get: warnAboutAccessingKey,
|
|
572
|
-
configurable: true
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
577
|
-
{
|
|
578
|
-
var warnAboutAccessingRef = function() {
|
|
579
|
-
if (!specialPropRefWarningShown) {
|
|
580
|
-
specialPropRefWarningShown = true;
|
|
581
|
-
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);
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
585
|
-
Object.defineProperty(props, "ref", {
|
|
586
|
-
get: warnAboutAccessingRef,
|
|
587
|
-
configurable: true
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
592
|
-
var element = {
|
|
593
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
594
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
595
|
-
// Built-in properties that belong on the element
|
|
596
|
-
type,
|
|
597
|
-
key,
|
|
598
|
-
ref,
|
|
599
|
-
props,
|
|
600
|
-
// Record the component responsible for creating this element.
|
|
601
|
-
_owner: owner
|
|
602
|
-
};
|
|
603
|
-
{
|
|
604
|
-
element._store = {};
|
|
605
|
-
Object.defineProperty(element._store, "validated", {
|
|
606
|
-
configurable: false,
|
|
607
|
-
enumerable: false,
|
|
608
|
-
writable: true,
|
|
609
|
-
value: false
|
|
610
|
-
});
|
|
611
|
-
Object.defineProperty(element, "_self", {
|
|
612
|
-
configurable: false,
|
|
613
|
-
enumerable: false,
|
|
614
|
-
writable: false,
|
|
615
|
-
value: self
|
|
616
|
-
});
|
|
617
|
-
Object.defineProperty(element, "_source", {
|
|
618
|
-
configurable: false,
|
|
619
|
-
enumerable: false,
|
|
620
|
-
writable: false,
|
|
621
|
-
value: source
|
|
622
|
-
});
|
|
623
|
-
if (Object.freeze) {
|
|
624
|
-
Object.freeze(element.props);
|
|
625
|
-
Object.freeze(element);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
return element;
|
|
629
|
-
};
|
|
630
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
631
|
-
{
|
|
632
|
-
var propName;
|
|
633
|
-
var props = {};
|
|
634
|
-
var key = null;
|
|
635
|
-
var ref = null;
|
|
636
|
-
if (maybeKey !== void 0) {
|
|
637
|
-
{
|
|
638
|
-
checkKeyStringCoercion(maybeKey);
|
|
639
|
-
}
|
|
640
|
-
key = "" + maybeKey;
|
|
641
|
-
}
|
|
642
|
-
if (hasValidKey(config)) {
|
|
643
|
-
{
|
|
644
|
-
checkKeyStringCoercion(config.key);
|
|
645
|
-
}
|
|
646
|
-
key = "" + config.key;
|
|
647
|
-
}
|
|
648
|
-
if (hasValidRef(config)) {
|
|
649
|
-
ref = config.ref;
|
|
650
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
651
|
-
}
|
|
652
|
-
for (propName in config) {
|
|
653
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
654
|
-
props[propName] = config[propName];
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
if (type && type.defaultProps) {
|
|
658
|
-
var defaultProps = type.defaultProps;
|
|
659
|
-
for (propName in defaultProps) {
|
|
660
|
-
if (props[propName] === void 0) {
|
|
661
|
-
props[propName] = defaultProps[propName];
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
if (key || ref) {
|
|
666
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
667
|
-
if (key) {
|
|
668
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
669
|
-
}
|
|
670
|
-
if (ref) {
|
|
671
|
-
defineRefPropWarningGetter(props, displayName);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
678
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
679
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
680
|
-
{
|
|
681
|
-
if (element) {
|
|
682
|
-
var owner = element._owner;
|
|
683
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
684
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
685
|
-
} else {
|
|
686
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
var propTypesMisspellWarningShown;
|
|
691
|
-
{
|
|
692
|
-
propTypesMisspellWarningShown = false;
|
|
693
|
-
}
|
|
694
|
-
function isValidElement(object) {
|
|
695
|
-
{
|
|
696
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
function getDeclarationErrorAddendum() {
|
|
700
|
-
{
|
|
701
|
-
if (ReactCurrentOwner$1.current) {
|
|
702
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
703
|
-
if (name) {
|
|
704
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return "";
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
function getSourceInfoErrorAddendum(source) {
|
|
711
|
-
{
|
|
712
|
-
return "";
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
var ownerHasKeyUseWarning = {};
|
|
716
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
717
|
-
{
|
|
718
|
-
var info = getDeclarationErrorAddendum();
|
|
719
|
-
if (!info) {
|
|
720
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
721
|
-
if (parentName) {
|
|
722
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
return info;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
function validateExplicitKey(element, parentType) {
|
|
729
|
-
{
|
|
730
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
731
|
-
return;
|
|
732
|
-
}
|
|
733
|
-
element._store.validated = true;
|
|
734
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
735
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
736
|
-
return;
|
|
737
|
-
}
|
|
738
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
739
|
-
var childOwner = "";
|
|
740
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
741
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
742
|
-
}
|
|
743
|
-
setCurrentlyValidatingElement$1(element);
|
|
744
|
-
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);
|
|
745
|
-
setCurrentlyValidatingElement$1(null);
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
function validateChildKeys(node, parentType) {
|
|
749
|
-
{
|
|
750
|
-
if (typeof node !== "object") {
|
|
751
|
-
return;
|
|
752
|
-
}
|
|
753
|
-
if (isArray(node)) {
|
|
754
|
-
for (var i = 0; i < node.length; i++) {
|
|
755
|
-
var child = node[i];
|
|
756
|
-
if (isValidElement(child)) {
|
|
757
|
-
validateExplicitKey(child, parentType);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
} else if (isValidElement(node)) {
|
|
761
|
-
if (node._store) {
|
|
762
|
-
node._store.validated = true;
|
|
763
|
-
}
|
|
764
|
-
} else if (node) {
|
|
765
|
-
var iteratorFn = getIteratorFn(node);
|
|
766
|
-
if (typeof iteratorFn === "function") {
|
|
767
|
-
if (iteratorFn !== node.entries) {
|
|
768
|
-
var iterator = iteratorFn.call(node);
|
|
769
|
-
var step;
|
|
770
|
-
while (!(step = iterator.next()).done) {
|
|
771
|
-
if (isValidElement(step.value)) {
|
|
772
|
-
validateExplicitKey(step.value, parentType);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
function validatePropTypes(element) {
|
|
781
|
-
{
|
|
782
|
-
var type = element.type;
|
|
783
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
var propTypes;
|
|
787
|
-
if (typeof type === "function") {
|
|
788
|
-
propTypes = type.propTypes;
|
|
789
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
790
|
-
// Inner props are checked in the reconciler.
|
|
791
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
792
|
-
propTypes = type.propTypes;
|
|
793
|
-
} else {
|
|
794
|
-
return;
|
|
795
|
-
}
|
|
796
|
-
if (propTypes) {
|
|
797
|
-
var name = getComponentNameFromType(type);
|
|
798
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
799
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
800
|
-
propTypesMisspellWarningShown = true;
|
|
801
|
-
var _name = getComponentNameFromType(type);
|
|
802
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
803
|
-
}
|
|
804
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
805
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
function validateFragmentProps(fragment) {
|
|
810
|
-
{
|
|
811
|
-
var keys = Object.keys(fragment.props);
|
|
812
|
-
for (var i = 0; i < keys.length; i++) {
|
|
813
|
-
var key = keys[i];
|
|
814
|
-
if (key !== "children" && key !== "key") {
|
|
815
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
816
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
817
|
-
setCurrentlyValidatingElement$1(null);
|
|
818
|
-
break;
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
if (fragment.ref !== null) {
|
|
822
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
823
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
824
|
-
setCurrentlyValidatingElement$1(null);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
var didWarnAboutKeySpread = {};
|
|
829
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
830
|
-
{
|
|
831
|
-
var validType = isValidElementType(type);
|
|
832
|
-
if (!validType) {
|
|
833
|
-
var info = "";
|
|
834
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
835
|
-
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.";
|
|
836
|
-
}
|
|
837
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
838
|
-
if (sourceInfo) {
|
|
839
|
-
info += sourceInfo;
|
|
840
|
-
} else {
|
|
841
|
-
info += getDeclarationErrorAddendum();
|
|
842
|
-
}
|
|
843
|
-
var typeString;
|
|
844
|
-
if (type === null) {
|
|
845
|
-
typeString = "null";
|
|
846
|
-
} else if (isArray(type)) {
|
|
847
|
-
typeString = "array";
|
|
848
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
849
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
850
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
851
|
-
} else {
|
|
852
|
-
typeString = typeof type;
|
|
853
|
-
}
|
|
854
|
-
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);
|
|
855
|
-
}
|
|
856
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
857
|
-
if (element == null) {
|
|
858
|
-
return element;
|
|
859
|
-
}
|
|
860
|
-
if (validType) {
|
|
861
|
-
var children = props.children;
|
|
862
|
-
if (children !== void 0) {
|
|
863
|
-
if (isStaticChildren) {
|
|
864
|
-
if (isArray(children)) {
|
|
865
|
-
for (var i = 0; i < children.length; i++) {
|
|
866
|
-
validateChildKeys(children[i], type);
|
|
867
|
-
}
|
|
868
|
-
if (Object.freeze) {
|
|
869
|
-
Object.freeze(children);
|
|
870
|
-
}
|
|
871
|
-
} else {
|
|
872
|
-
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.");
|
|
873
|
-
}
|
|
874
|
-
} else {
|
|
875
|
-
validateChildKeys(children, type);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
{
|
|
880
|
-
if (hasOwnProperty.call(props, "key")) {
|
|
881
|
-
var componentName = getComponentNameFromType(type);
|
|
882
|
-
var keys = Object.keys(props).filter(function(k) {
|
|
883
|
-
return k !== "key";
|
|
884
|
-
});
|
|
885
|
-
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
886
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
887
|
-
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
888
|
-
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
889
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
894
|
-
validateFragmentProps(element);
|
|
895
|
-
} else {
|
|
896
|
-
validatePropTypes(element);
|
|
897
|
-
}
|
|
898
|
-
return element;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
902
|
-
{
|
|
903
|
-
return jsxWithValidation(type, props, key, true);
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
907
|
-
{
|
|
908
|
-
return jsxWithValidation(type, props, key, false);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
var jsx = jsxWithValidationDynamic;
|
|
912
|
-
var jsxs = jsxWithValidationStatic;
|
|
913
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
914
|
-
reactJsxRuntime_development.jsx = jsx;
|
|
915
|
-
reactJsxRuntime_development.jsxs = jsxs;
|
|
916
|
-
})();
|
|
917
|
-
}
|
|
918
|
-
return reactJsxRuntime_development;
|
|
919
|
-
}
|
|
920
|
-
var hasRequiredJsxRuntime;
|
|
921
|
-
function requireJsxRuntime() {
|
|
922
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
923
|
-
hasRequiredJsxRuntime = 1;
|
|
924
|
-
if (process.env.NODE_ENV === "production") {
|
|
925
|
-
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
926
|
-
} else {
|
|
927
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
928
|
-
}
|
|
929
|
-
return jsxRuntime.exports;
|
|
930
|
-
}
|
|
931
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
932
|
-
const variantClasses = {
|
|
933
|
-
default: {
|
|
934
|
-
iconBg: "bg-blue-100 dark:bg-blue-900/30",
|
|
935
|
-
icon: "text-blue-600 dark:text-blue-400",
|
|
936
|
-
button: "bg-blue-600 active:bg-blue-700"
|
|
937
|
-
},
|
|
938
|
-
danger: {
|
|
939
|
-
iconBg: "bg-red-100 dark:bg-red-900/30",
|
|
940
|
-
icon: "text-red-600 dark:text-red-400",
|
|
941
|
-
button: "bg-red-600 active:bg-red-700"
|
|
942
|
-
},
|
|
943
|
-
warning: {
|
|
944
|
-
iconBg: "bg-yellow-100 dark:bg-yellow-900/30",
|
|
945
|
-
icon: "text-yellow-600 dark:text-yellow-400",
|
|
946
|
-
button: "bg-yellow-600 active:bg-yellow-700"
|
|
947
|
-
},
|
|
948
|
-
success: {
|
|
949
|
-
iconBg: "bg-green-100 dark:bg-green-900/30",
|
|
950
|
-
icon: "text-green-600 dark:text-green-400",
|
|
951
|
-
button: "bg-green-600 active:bg-green-700"
|
|
952
|
-
}
|
|
953
|
-
};
|
|
954
|
-
const variantIcons = {
|
|
955
|
-
default: "ℹ️",
|
|
956
|
-
danger: "⚠️",
|
|
957
|
-
warning: "⚠️",
|
|
958
|
-
success: "✓"
|
|
959
|
-
};
|
|
960
|
-
const AlertDialog = ({
|
|
961
|
-
isOpen,
|
|
962
|
-
onClose,
|
|
963
|
-
title,
|
|
964
|
-
description,
|
|
965
|
-
confirmLabel = "Confirm",
|
|
966
|
-
cancelLabel = "Cancel",
|
|
967
|
-
onConfirm,
|
|
968
|
-
variant = "default",
|
|
969
|
-
showCancel = true,
|
|
970
|
-
confirmDisabled = false,
|
|
971
|
-
loading = false,
|
|
972
|
-
className,
|
|
973
|
-
...props
|
|
974
|
-
}) => {
|
|
975
|
-
const handleConfirm = () => {
|
|
976
|
-
if (!confirmDisabled && !loading) {
|
|
977
|
-
onConfirm();
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
const styles = variantClasses[variant];
|
|
981
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
982
|
-
Modal,
|
|
983
|
-
{
|
|
984
|
-
visible: isOpen,
|
|
985
|
-
transparent: true,
|
|
986
|
-
animationType: "fade",
|
|
987
|
-
onRequestClose: onClose,
|
|
988
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: "flex-1 justify-center items-center bg-black/50 p-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
989
|
-
View,
|
|
990
|
-
{
|
|
991
|
-
className: cn(
|
|
992
|
-
"w-full max-w-md bg-white dark:bg-gray-900 rounded-lg shadow-xl",
|
|
993
|
-
className
|
|
994
|
-
),
|
|
995
|
-
...props,
|
|
996
|
-
children: [
|
|
997
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: "p-6", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row items-start gap-4", children: [
|
|
998
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
999
|
-
View,
|
|
1000
|
-
{
|
|
1001
|
-
className: cn(
|
|
1002
|
-
"w-12 h-12 rounded-full items-center justify-center",
|
|
1003
|
-
styles.iconBg
|
|
1004
|
-
),
|
|
1005
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: cn("text-xl", styles.icon), children: variantIcons[variant] })
|
|
1006
|
-
}
|
|
1007
|
-
),
|
|
1008
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-1", children: [
|
|
1009
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-lg font-semibold text-gray-900 dark:text-white mb-2", children: typeof title === "string" ? title : null }),
|
|
1010
|
-
typeof title !== "string" && title,
|
|
1011
|
-
description && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-sm text-gray-600 dark:text-gray-400", children: typeof description === "string" ? description : null }),
|
|
1012
|
-
typeof description !== "string" && description
|
|
1013
|
-
] })
|
|
1014
|
-
] }) }),
|
|
1015
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row gap-3 px-6 py-4 bg-gray-50 dark:bg-gray-800/50 rounded-b-lg", children: [
|
|
1016
|
-
showCancel && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1017
|
-
Pressable,
|
|
1018
|
-
{
|
|
1019
|
-
onPress: onClose,
|
|
1020
|
-
disabled: loading,
|
|
1021
|
-
accessibilityRole: "button",
|
|
1022
|
-
className: cn(
|
|
1023
|
-
"flex-1 px-4 py-2 rounded-md border",
|
|
1024
|
-
"bg-white dark:bg-gray-700",
|
|
1025
|
-
"border-gray-300 dark:border-gray-600",
|
|
1026
|
-
loading && "opacity-50"
|
|
1027
|
-
),
|
|
1028
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-sm font-medium text-center text-gray-700 dark:text-gray-300", children: cancelLabel })
|
|
1029
|
-
}
|
|
1030
|
-
),
|
|
1031
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1032
|
-
Pressable,
|
|
1033
|
-
{
|
|
1034
|
-
onPress: handleConfirm,
|
|
1035
|
-
disabled: confirmDisabled || loading,
|
|
1036
|
-
accessibilityRole: "button",
|
|
1037
|
-
className: cn(
|
|
1038
|
-
"flex-1 px-4 py-2 rounded-md",
|
|
1039
|
-
styles.button,
|
|
1040
|
-
(confirmDisabled || loading) && "opacity-50"
|
|
1041
|
-
),
|
|
1042
|
-
children: loading ? /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row items-center justify-center gap-2", children: [
|
|
1043
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ActivityIndicator, { size: "small", color: "white" }),
|
|
1044
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-sm font-medium text-white", children: "Loading..." })
|
|
1045
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-sm font-medium text-center text-white", children: confirmLabel })
|
|
1046
|
-
}
|
|
1047
|
-
)
|
|
1048
|
-
] })
|
|
1049
|
-
]
|
|
1050
|
-
}
|
|
1051
|
-
) })
|
|
1052
|
-
}
|
|
1053
|
-
);
|
|
1054
|
-
};
|
|
1055
|
-
const ApiPlayground = ({
|
|
1056
|
-
className,
|
|
1057
|
-
children,
|
|
1058
|
-
disabled = false,
|
|
1059
|
-
onPress,
|
|
1060
|
-
...props
|
|
1061
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1062
|
-
Pressable,
|
|
1063
|
-
{
|
|
1064
|
-
onPress: disabled ? void 0 : onPress,
|
|
1065
|
-
disabled,
|
|
1066
|
-
accessibilityRole: "button",
|
|
1067
|
-
accessibilityLabel: "API Playground",
|
|
1068
|
-
className: cn(
|
|
1069
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1070
|
-
disabled && "opacity-50",
|
|
1071
|
-
className
|
|
1072
|
-
),
|
|
1073
|
-
...props,
|
|
1074
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "ApiPlayground Component" })
|
|
1075
|
-
}
|
|
1076
|
-
);
|
|
1077
|
-
const ApiReference = ({
|
|
1078
|
-
className,
|
|
1079
|
-
children,
|
|
1080
|
-
disabled,
|
|
1081
|
-
...props
|
|
1082
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1083
|
-
View,
|
|
1084
|
-
{
|
|
1085
|
-
className: cn(
|
|
1086
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1087
|
-
disabled && "opacity-50",
|
|
1088
|
-
className
|
|
1089
|
-
),
|
|
1090
|
-
accessibilityLabel: "API Reference",
|
|
1091
|
-
...props,
|
|
1092
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "ApiReference Component" })
|
|
1093
|
-
}
|
|
1094
|
-
);
|
|
1095
|
-
const AuditLog = ({
|
|
1096
|
-
className,
|
|
1097
|
-
children,
|
|
1098
|
-
disabled,
|
|
1099
|
-
...props
|
|
1100
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1101
|
-
View,
|
|
1102
|
-
{
|
|
1103
|
-
className: cn(
|
|
1104
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1105
|
-
disabled && "opacity-50",
|
|
1106
|
-
className
|
|
1107
|
-
),
|
|
1108
|
-
accessibilityLabel: "Audit Log",
|
|
1109
|
-
...props,
|
|
1110
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "AuditLog Component" })
|
|
1111
|
-
}
|
|
1112
|
-
);
|
|
1113
|
-
const BodyMetrics = ({
|
|
1114
|
-
className,
|
|
1115
|
-
children,
|
|
1116
|
-
disabled,
|
|
1117
|
-
...props
|
|
1118
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1119
|
-
View,
|
|
1120
|
-
{
|
|
1121
|
-
className: cn(
|
|
1122
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1123
|
-
disabled && "opacity-50",
|
|
1124
|
-
className
|
|
1125
|
-
),
|
|
1126
|
-
accessibilityLabel: "Body Metrics",
|
|
1127
|
-
...props,
|
|
1128
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "BodyMetrics Component" })
|
|
1129
|
-
}
|
|
1130
|
-
);
|
|
1131
|
-
const BuildLog = ({
|
|
1132
|
-
className,
|
|
1133
|
-
children,
|
|
1134
|
-
disabled = false,
|
|
1135
|
-
onPress,
|
|
1136
|
-
...props
|
|
1137
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1138
|
-
Pressable,
|
|
1139
|
-
{
|
|
1140
|
-
onPress: disabled ? void 0 : onPress,
|
|
1141
|
-
disabled,
|
|
1142
|
-
accessibilityRole: "button",
|
|
1143
|
-
accessibilityLabel: "Build Log",
|
|
1144
|
-
className: cn(
|
|
1145
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1146
|
-
disabled && "opacity-50",
|
|
1147
|
-
className
|
|
1148
|
-
),
|
|
1149
|
-
...props,
|
|
1150
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "BuildLog Component" })
|
|
1151
|
-
}
|
|
1152
|
-
);
|
|
1153
|
-
const ChangelogDisplay = ({
|
|
1154
|
-
className,
|
|
1155
|
-
children,
|
|
1156
|
-
disabled,
|
|
1157
|
-
...props
|
|
1158
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1159
|
-
View,
|
|
1160
|
-
{
|
|
1161
|
-
className: cn(
|
|
1162
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1163
|
-
disabled && "opacity-50",
|
|
1164
|
-
className
|
|
1165
|
-
),
|
|
1166
|
-
accessibilityLabel: "Changelog Display",
|
|
1167
|
-
...props,
|
|
1168
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "ChangelogDisplay Component" })
|
|
1169
|
-
}
|
|
1170
|
-
);
|
|
1171
|
-
const CodePlayground = ({
|
|
1172
|
-
className,
|
|
1173
|
-
children,
|
|
1174
|
-
disabled = false,
|
|
1175
|
-
onPress,
|
|
1176
|
-
...props
|
|
1177
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1178
|
-
Pressable,
|
|
1179
|
-
{
|
|
1180
|
-
onPress: disabled ? void 0 : onPress,
|
|
1181
|
-
disabled,
|
|
1182
|
-
accessibilityRole: "button",
|
|
1183
|
-
accessibilityLabel: "Code Playground",
|
|
1184
|
-
className: cn(
|
|
1185
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1186
|
-
disabled && "opacity-50",
|
|
1187
|
-
className
|
|
1188
|
-
),
|
|
1189
|
-
...props,
|
|
1190
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "CodePlayground Component" })
|
|
1191
|
-
}
|
|
1192
|
-
);
|
|
1193
|
-
const ConflictResolver = ({
|
|
1194
|
-
className,
|
|
1195
|
-
children,
|
|
1196
|
-
disabled = false,
|
|
1197
|
-
onPress,
|
|
1198
|
-
...props
|
|
1199
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1200
|
-
Pressable,
|
|
1201
|
-
{
|
|
1202
|
-
onPress: disabled ? void 0 : onPress,
|
|
1203
|
-
disabled,
|
|
1204
|
-
accessibilityRole: "button",
|
|
1205
|
-
accessibilityLabel: "Conflict Resolver",
|
|
1206
|
-
className: cn(
|
|
1207
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1208
|
-
disabled && "opacity-50",
|
|
1209
|
-
className
|
|
1210
|
-
),
|
|
1211
|
-
...props,
|
|
1212
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "ConflictResolver Component" })
|
|
1213
|
-
}
|
|
1214
|
-
);
|
|
1215
|
-
const DealPipeline = ({
|
|
1216
|
-
className,
|
|
1217
|
-
children,
|
|
1218
|
-
disabled,
|
|
1219
|
-
...props
|
|
1220
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1221
|
-
View,
|
|
1222
|
-
{
|
|
1223
|
-
className: cn(
|
|
1224
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1225
|
-
disabled && "opacity-50",
|
|
1226
|
-
className
|
|
1227
|
-
),
|
|
1228
|
-
accessibilityLabel: "Deal Pipeline",
|
|
1229
|
-
...props,
|
|
1230
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "DealPipeline Component" })
|
|
1231
|
-
}
|
|
1232
|
-
);
|
|
1233
|
-
const DeploymentStatus = ({
|
|
1234
|
-
className,
|
|
1235
|
-
children,
|
|
1236
|
-
disabled = false,
|
|
1237
|
-
onPress,
|
|
1238
|
-
...props
|
|
1239
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1240
|
-
Pressable,
|
|
1241
|
-
{
|
|
1242
|
-
onPress: disabled ? void 0 : onPress,
|
|
1243
|
-
disabled,
|
|
1244
|
-
accessibilityRole: "button",
|
|
1245
|
-
accessibilityLabel: "Deployment Status",
|
|
1246
|
-
className: cn(
|
|
1247
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1248
|
-
disabled && "opacity-50",
|
|
1249
|
-
className
|
|
1250
|
-
),
|
|
1251
|
-
...props,
|
|
1252
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "DeploymentStatus Component" })
|
|
1253
|
-
}
|
|
1254
|
-
);
|
|
1255
|
-
const DriverLog = ({
|
|
1256
|
-
className,
|
|
1257
|
-
children,
|
|
1258
|
-
disabled,
|
|
1259
|
-
...props
|
|
1260
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1261
|
-
View,
|
|
1262
|
-
{
|
|
1263
|
-
className: cn(
|
|
1264
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1265
|
-
disabled && "opacity-50",
|
|
1266
|
-
className
|
|
1267
|
-
),
|
|
1268
|
-
accessibilityLabel: "Driver Log",
|
|
1269
|
-
...props,
|
|
1270
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "DriverLog Component" })
|
|
1271
|
-
}
|
|
1272
|
-
);
|
|
1273
|
-
const MemoryUsage = ({
|
|
1274
|
-
className,
|
|
1275
|
-
children,
|
|
1276
|
-
disabled,
|
|
1277
|
-
...props
|
|
1278
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1279
|
-
View,
|
|
1280
|
-
{
|
|
1281
|
-
className: cn(
|
|
1282
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1283
|
-
disabled && "opacity-50",
|
|
1284
|
-
className
|
|
1285
|
-
),
|
|
1286
|
-
accessibilityLabel: "Memory Usage",
|
|
1287
|
-
...props,
|
|
1288
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "MemoryUsage Component" })
|
|
1289
|
-
}
|
|
1290
|
-
);
|
|
1291
|
-
const colorClasses = {
|
|
1292
|
-
blue: "text-blue-600 dark:text-blue-400",
|
|
1293
|
-
green: "text-green-600 dark:text-green-400",
|
|
1294
|
-
purple: "text-purple-600 dark:text-purple-400",
|
|
1295
|
-
orange: "text-orange-600 dark:text-orange-400",
|
|
1296
|
-
pink: "text-pink-600 dark:text-pink-400",
|
|
1297
|
-
gray: "text-gray-600 dark:text-gray-400"
|
|
1298
|
-
};
|
|
1299
|
-
const MetricCard = ({ metric }) => {
|
|
1300
|
-
const colorClass = metric.color ? colorClasses[metric.color] : colorClasses.blue;
|
|
1301
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 items-center mb-4 mx-2", children: [
|
|
1302
|
-
metric.icon && /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: cn("mb-4", colorClass), children: metric.icon }),
|
|
1303
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "gap-2 items-center", children: [
|
|
1304
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: cn("text-3xl font-bold", colorClass), children: metric.value }),
|
|
1305
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-600 dark:text-gray-400 font-medium", children: metric.label }),
|
|
1306
|
-
metric.trend && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1307
|
-
Text,
|
|
1308
|
-
{
|
|
1309
|
-
className: cn(
|
|
1310
|
-
"text-sm font-semibold",
|
|
1311
|
-
metric.trend.direction === "up" ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"
|
|
1312
|
-
),
|
|
1313
|
-
children: [
|
|
1314
|
-
metric.trend.direction === "up" ? "↑" : "↓",
|
|
1315
|
-
" ",
|
|
1316
|
-
metric.trend.value
|
|
1317
|
-
]
|
|
1318
|
-
}
|
|
1319
|
-
)
|
|
1320
|
-
] })
|
|
1321
|
-
] });
|
|
1322
|
-
};
|
|
1323
|
-
const MetricsGrid = ({
|
|
1324
|
-
title,
|
|
1325
|
-
description,
|
|
1326
|
-
metrics,
|
|
1327
|
-
columns = 2,
|
|
1328
|
-
className,
|
|
1329
|
-
...props
|
|
1330
|
-
}) => {
|
|
1331
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: cn("py-8 px-4", className), ...props, children: [
|
|
1332
|
-
(title || description) && /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "items-center mb-8", children: [
|
|
1333
|
-
title && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-2xl font-bold text-gray-900 dark:text-white mb-4 text-center", children: title }),
|
|
1334
|
-
description && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-lg text-gray-600 dark:text-gray-300 text-center max-w-lg", children: description })
|
|
1335
|
-
] }),
|
|
1336
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1337
|
-
FlatList,
|
|
1338
|
-
{
|
|
1339
|
-
data: metrics,
|
|
1340
|
-
keyExtractor: (_, index) => index.toString(),
|
|
1341
|
-
numColumns: columns > 2 ? 2 : columns,
|
|
1342
|
-
renderItem: ({ item }) => /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: "flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetricCard, { metric: item }) }),
|
|
1343
|
-
scrollEnabled: false
|
|
1344
|
-
}
|
|
1345
|
-
)
|
|
1346
|
-
] });
|
|
1347
|
-
};
|
|
1348
|
-
const PipelineView = ({
|
|
1349
|
-
className,
|
|
1350
|
-
children,
|
|
1351
|
-
disabled = false,
|
|
1352
|
-
onPress,
|
|
1353
|
-
...props
|
|
1354
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1355
|
-
Pressable,
|
|
1356
|
-
{
|
|
1357
|
-
onPress: disabled ? void 0 : onPress,
|
|
1358
|
-
disabled,
|
|
1359
|
-
accessibilityRole: "button",
|
|
1360
|
-
accessibilityLabel: "Pipeline View",
|
|
1361
|
-
className: cn(
|
|
1362
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1363
|
-
disabled && "opacity-50",
|
|
1364
|
-
className
|
|
1365
|
-
),
|
|
1366
|
-
...props,
|
|
1367
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "PipelineView Component" })
|
|
1368
|
-
}
|
|
1369
|
-
);
|
|
1370
|
-
const RegressionTest = ({
|
|
1371
|
-
className,
|
|
1372
|
-
children,
|
|
1373
|
-
disabled,
|
|
1374
|
-
...props
|
|
1375
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1376
|
-
View,
|
|
1377
|
-
{
|
|
1378
|
-
className: cn(
|
|
1379
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1380
|
-
disabled && "opacity-50",
|
|
1381
|
-
className
|
|
1382
|
-
),
|
|
1383
|
-
accessibilityLabel: "Regression Test",
|
|
1384
|
-
...props,
|
|
1385
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "RegressionTest Component" })
|
|
1386
|
-
}
|
|
1387
|
-
);
|
|
1388
|
-
const statusConfig = {
|
|
1389
|
-
operational: {
|
|
1390
|
-
color: "bg-green-500",
|
|
1391
|
-
textColor: "text-green-700 dark:text-green-400",
|
|
1392
|
-
label: "Operational"
|
|
1393
|
-
},
|
|
1394
|
-
degraded: {
|
|
1395
|
-
color: "bg-yellow-500",
|
|
1396
|
-
textColor: "text-yellow-700 dark:text-yellow-400",
|
|
1397
|
-
label: "Degraded Performance"
|
|
1398
|
-
},
|
|
1399
|
-
partial: {
|
|
1400
|
-
color: "bg-orange-500",
|
|
1401
|
-
textColor: "text-orange-700 dark:text-orange-400",
|
|
1402
|
-
label: "Partial Outage"
|
|
1403
|
-
},
|
|
1404
|
-
major: {
|
|
1405
|
-
color: "bg-red-500",
|
|
1406
|
-
textColor: "text-red-700 dark:text-red-400",
|
|
1407
|
-
label: "Major Outage"
|
|
1408
|
-
},
|
|
1409
|
-
maintenance: {
|
|
1410
|
-
color: "bg-blue-500",
|
|
1411
|
-
textColor: "text-blue-700 dark:text-blue-400",
|
|
1412
|
-
label: "Under Maintenance"
|
|
1413
|
-
}
|
|
1414
|
-
};
|
|
1415
|
-
const SystemStatusIndicator = ({
|
|
1416
|
-
status,
|
|
1417
|
-
label,
|
|
1418
|
-
showPulse = true,
|
|
1419
|
-
className,
|
|
1420
|
-
...props
|
|
1421
|
-
}) => {
|
|
1422
|
-
const config = statusConfig[status];
|
|
1423
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1424
|
-
View,
|
|
1425
|
-
{
|
|
1426
|
-
className: cn("flex-row items-center gap-2", className),
|
|
1427
|
-
accessibilityRole: "text",
|
|
1428
|
-
accessibilityLabel: `System status: ${label || config.label}`,
|
|
1429
|
-
...props,
|
|
1430
|
-
children: [
|
|
1431
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "relative", children: [
|
|
1432
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: cn("w-3 h-3 rounded-full", config.color) }),
|
|
1433
|
-
showPulse && status === "operational" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1434
|
-
View,
|
|
1435
|
-
{
|
|
1436
|
-
className: cn(
|
|
1437
|
-
"absolute inset-0 rounded-full opacity-75",
|
|
1438
|
-
config.color
|
|
1439
|
-
)
|
|
1440
|
-
}
|
|
1441
|
-
)
|
|
1442
|
-
] }),
|
|
1443
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: cn("text-sm font-medium", config.textColor), children: label || config.label })
|
|
1444
|
-
]
|
|
1445
|
-
}
|
|
1446
|
-
);
|
|
1447
|
-
};
|
|
1448
|
-
const TestResult = ({
|
|
1449
|
-
className,
|
|
1450
|
-
children,
|
|
1451
|
-
disabled,
|
|
1452
|
-
...props
|
|
1453
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1454
|
-
View,
|
|
1455
|
-
{
|
|
1456
|
-
className: cn(
|
|
1457
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1458
|
-
disabled && "opacity-50",
|
|
1459
|
-
className
|
|
1460
|
-
),
|
|
1461
|
-
accessibilityLabel: "Test Result",
|
|
1462
|
-
...props,
|
|
1463
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "TestResult Component" })
|
|
1464
|
-
}
|
|
1465
|
-
);
|
|
1466
|
-
const TestRunner = ({
|
|
1467
|
-
className,
|
|
1468
|
-
children,
|
|
1469
|
-
disabled = false,
|
|
1470
|
-
onPress,
|
|
1471
|
-
...props
|
|
1472
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1473
|
-
Pressable,
|
|
1474
|
-
{
|
|
1475
|
-
onPress: disabled ? void 0 : onPress,
|
|
1476
|
-
disabled,
|
|
1477
|
-
accessibilityRole: "button",
|
|
1478
|
-
accessibilityLabel: "Test Runner",
|
|
1479
|
-
className: cn(
|
|
1480
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1481
|
-
disabled && "opacity-50",
|
|
1482
|
-
className
|
|
1483
|
-
),
|
|
1484
|
-
...props,
|
|
1485
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "TestRunner Component" })
|
|
1486
|
-
}
|
|
1487
|
-
);
|
|
1488
|
-
const WebhookLogger = ({
|
|
1489
|
-
className,
|
|
1490
|
-
children,
|
|
1491
|
-
disabled,
|
|
1492
|
-
...props
|
|
1493
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1494
|
-
View,
|
|
1495
|
-
{
|
|
1496
|
-
className: cn(
|
|
1497
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1498
|
-
disabled && "opacity-50",
|
|
1499
|
-
className
|
|
1500
|
-
),
|
|
1501
|
-
accessibilityLabel: "Webhook Logger",
|
|
1502
|
-
...props,
|
|
1503
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "WebhookLogger Component" })
|
|
1504
|
-
}
|
|
1505
|
-
);
|
|
1506
|
-
const WorkflowBuilder = ({
|
|
1507
|
-
className,
|
|
1508
|
-
children,
|
|
1509
|
-
disabled = false,
|
|
1510
|
-
onPress,
|
|
1511
|
-
...props
|
|
1512
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1513
|
-
Pressable,
|
|
1514
|
-
{
|
|
1515
|
-
onPress: disabled ? void 0 : onPress,
|
|
1516
|
-
disabled,
|
|
1517
|
-
accessibilityRole: "button",
|
|
1518
|
-
accessibilityLabel: "Workflow Builder",
|
|
1519
|
-
className: cn(
|
|
1520
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1521
|
-
disabled && "opacity-50",
|
|
1522
|
-
className
|
|
1523
|
-
),
|
|
1524
|
-
...props,
|
|
1525
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "WorkflowBuilder Component" })
|
|
1526
|
-
}
|
|
1527
|
-
);
|
|
1528
|
-
const WorkflowTemplate = ({
|
|
1529
|
-
className,
|
|
1530
|
-
children,
|
|
1531
|
-
disabled = false,
|
|
1532
|
-
onPress,
|
|
1533
|
-
...props
|
|
1534
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1535
|
-
Pressable,
|
|
1536
|
-
{
|
|
1537
|
-
onPress: disabled ? void 0 : onPress,
|
|
1538
|
-
disabled,
|
|
1539
|
-
accessibilityRole: "button",
|
|
1540
|
-
accessibilityLabel: "Workflow Template",
|
|
1541
|
-
className: cn(
|
|
1542
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1543
|
-
disabled && "opacity-50",
|
|
1544
|
-
className
|
|
1545
|
-
),
|
|
1546
|
-
...props,
|
|
1547
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "WorkflowTemplate Component" })
|
|
1548
|
-
}
|
|
1549
|
-
);
|
|
1550
|
-
const XmlParser = ({
|
|
1551
|
-
className,
|
|
1552
|
-
children,
|
|
1553
|
-
disabled,
|
|
1554
|
-
...props
|
|
1555
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1556
|
-
View,
|
|
1557
|
-
{
|
|
1558
|
-
className: cn(
|
|
1559
|
-
"p-4 rounded-lg border bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",
|
|
1560
|
-
disabled && "opacity-50",
|
|
1561
|
-
className
|
|
1562
|
-
),
|
|
1563
|
-
accessibilityLabel: "XML Parser",
|
|
1564
|
-
...props,
|
|
1565
|
-
children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "XmlParser Component" })
|
|
1566
|
-
}
|
|
1567
|
-
);
|
|
1568
|
-
export {
|
|
1569
|
-
AlertDialog,
|
|
1570
|
-
ApiPlayground,
|
|
1571
|
-
ApiReference,
|
|
1572
|
-
AuditLog,
|
|
1573
|
-
BodyMetrics,
|
|
1574
|
-
BuildLog,
|
|
1575
|
-
ChangelogDisplay,
|
|
1576
|
-
CodePlayground,
|
|
1577
|
-
ConflictResolver,
|
|
1578
|
-
DealPipeline,
|
|
1579
|
-
DeploymentStatus,
|
|
1580
|
-
DriverLog,
|
|
1581
|
-
MemoryUsage,
|
|
1582
|
-
MetricsGrid,
|
|
1583
|
-
PipelineView,
|
|
1584
|
-
RegressionTest,
|
|
1585
|
-
SystemStatusIndicator,
|
|
1586
|
-
TestResult,
|
|
1587
|
-
TestRunner,
|
|
1588
|
-
WebhookLogger,
|
|
1589
|
-
WorkflowBuilder,
|
|
1590
|
-
WorkflowTemplate,
|
|
1591
|
-
XmlParser
|
|
1592
|
-
};
|
|
1593
|
-
//# sourceMappingURL=index.esm.js.map
|