@starasia/progress 1.0.1 → 1.0.3
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/progress.es.js +33 -675
- package/dist/progress.umd.js +4 -35
- package/package.json +1 -1
package/dist/progress.es.js
CHANGED
|
@@ -1,647 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.development.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var Tr;
|
|
13
|
-
function da() {
|
|
14
|
-
return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15
|
-
var m = Sr, b = Symbol.for("react.element"), h = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), E = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), rr = Symbol.iterator, xr = "@@iterator";
|
|
16
|
-
function Pr(r) {
|
|
17
|
-
if (r === null || typeof r != "object")
|
|
18
|
-
return null;
|
|
19
|
-
var a = rr && r[rr] || r[xr];
|
|
20
|
-
return typeof a == "function" ? a : null;
|
|
21
|
-
}
|
|
22
|
-
var S = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
23
|
-
function c(r) {
|
|
24
|
-
{
|
|
25
|
-
for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), e = 1; e < a; e++)
|
|
26
|
-
o[e - 1] = arguments[e];
|
|
27
|
-
jr("error", r, o);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function jr(r, a, o) {
|
|
31
|
-
{
|
|
32
|
-
var e = S.ReactDebugCurrentFrame, t = e.getStackAddendum();
|
|
33
|
-
t !== "" && (a += "%s", o = o.concat([t]));
|
|
34
|
-
var i = o.map(function(s) {
|
|
35
|
-
return String(s);
|
|
36
|
-
});
|
|
37
|
-
i.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, i);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
var Ar = !1, Dr = !1, Fr = !1, Ir = !1, $r = !1, ar;
|
|
41
|
-
ar = Symbol.for("react.module.reference");
|
|
42
|
-
function Wr(r) {
|
|
43
|
-
return !!(typeof r == "string" || typeof r == "function" || r === w || r === Y || $r || r === C || r === O || r === p || Ir || r === L || Ar || Dr || Fr || typeof r == "object" && r !== null && (r.$$typeof === R || r.$$typeof === k || r.$$typeof === j || r.$$typeof === E || r.$$typeof === g || // This needs to include all possible module reference object
|
|
44
|
-
// types supported by any Flight configuration anywhere since
|
|
45
|
-
// we don't know which Flight build this will end up being used
|
|
46
|
-
// with.
|
|
47
|
-
r.$$typeof === ar || r.getModuleId !== void 0));
|
|
48
|
-
}
|
|
49
|
-
function Yr(r, a, o) {
|
|
50
|
-
var e = r.displayName;
|
|
51
|
-
if (e)
|
|
52
|
-
return e;
|
|
53
|
-
var t = a.displayName || a.name || "";
|
|
54
|
-
return t !== "" ? o + "(" + t + ")" : o;
|
|
55
|
-
}
|
|
56
|
-
function or(r) {
|
|
57
|
-
return r.displayName || "Context";
|
|
58
|
-
}
|
|
59
|
-
function y(r) {
|
|
60
|
-
if (r == null)
|
|
61
|
-
return null;
|
|
62
|
-
if (typeof r.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
63
|
-
return r.displayName || r.name || null;
|
|
64
|
-
if (typeof r == "string")
|
|
65
|
-
return r;
|
|
66
|
-
switch (r) {
|
|
67
|
-
case w:
|
|
68
|
-
return "Fragment";
|
|
69
|
-
case h:
|
|
70
|
-
return "Portal";
|
|
71
|
-
case Y:
|
|
72
|
-
return "Profiler";
|
|
73
|
-
case C:
|
|
74
|
-
return "StrictMode";
|
|
75
|
-
case O:
|
|
76
|
-
return "Suspense";
|
|
77
|
-
case p:
|
|
78
|
-
return "SuspenseList";
|
|
79
|
-
}
|
|
80
|
-
if (typeof r == "object")
|
|
81
|
-
switch (r.$$typeof) {
|
|
82
|
-
case E:
|
|
83
|
-
var a = r;
|
|
84
|
-
return or(a) + ".Consumer";
|
|
85
|
-
case j:
|
|
86
|
-
var o = r;
|
|
87
|
-
return or(o._context) + ".Provider";
|
|
88
|
-
case g:
|
|
89
|
-
return Yr(r, r.render, "ForwardRef");
|
|
90
|
-
case k:
|
|
91
|
-
var e = r.displayName || null;
|
|
92
|
-
return e !== null ? e : y(r.type) || "Memo";
|
|
93
|
-
case R: {
|
|
94
|
-
var t = r, i = t._payload, s = t._init;
|
|
95
|
-
try {
|
|
96
|
-
return y(s(i));
|
|
97
|
-
} catch {
|
|
98
|
-
return null;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
var _ = Object.assign, A = 0, er, nr, sr, tr, ir, ur, lr;
|
|
105
|
-
function cr() {
|
|
106
|
-
}
|
|
107
|
-
cr.__reactDisabledLog = !0;
|
|
108
|
-
function Lr() {
|
|
109
|
-
{
|
|
110
|
-
if (A === 0) {
|
|
111
|
-
er = console.log, nr = console.info, sr = console.warn, tr = console.error, ir = console.group, ur = console.groupCollapsed, lr = console.groupEnd;
|
|
112
|
-
var r = {
|
|
113
|
-
configurable: !0,
|
|
114
|
-
enumerable: !0,
|
|
115
|
-
value: cr,
|
|
116
|
-
writable: !0
|
|
117
|
-
};
|
|
118
|
-
Object.defineProperties(console, {
|
|
119
|
-
info: r,
|
|
120
|
-
log: r,
|
|
121
|
-
warn: r,
|
|
122
|
-
error: r,
|
|
123
|
-
group: r,
|
|
124
|
-
groupCollapsed: r,
|
|
125
|
-
groupEnd: r
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
A++;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
function Nr() {
|
|
132
|
-
{
|
|
133
|
-
if (A--, A === 0) {
|
|
134
|
-
var r = {
|
|
135
|
-
configurable: !0,
|
|
136
|
-
enumerable: !0,
|
|
137
|
-
writable: !0
|
|
138
|
-
};
|
|
139
|
-
Object.defineProperties(console, {
|
|
140
|
-
log: _({}, r, {
|
|
141
|
-
value: er
|
|
142
|
-
}),
|
|
143
|
-
info: _({}, r, {
|
|
144
|
-
value: nr
|
|
145
|
-
}),
|
|
146
|
-
warn: _({}, r, {
|
|
147
|
-
value: sr
|
|
148
|
-
}),
|
|
149
|
-
error: _({}, r, {
|
|
150
|
-
value: tr
|
|
151
|
-
}),
|
|
152
|
-
group: _({}, r, {
|
|
153
|
-
value: ir
|
|
154
|
-
}),
|
|
155
|
-
groupCollapsed: _({}, r, {
|
|
156
|
-
value: ur
|
|
157
|
-
}),
|
|
158
|
-
groupEnd: _({}, r, {
|
|
159
|
-
value: lr
|
|
160
|
-
})
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
A < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var B = S.ReactCurrentDispatcher, J;
|
|
167
|
-
function N(r, a, o) {
|
|
168
|
-
{
|
|
169
|
-
if (J === void 0)
|
|
170
|
-
try {
|
|
171
|
-
throw Error();
|
|
172
|
-
} catch (t) {
|
|
173
|
-
var e = t.stack.trim().match(/\n( *(at )?)/);
|
|
174
|
-
J = e && e[1] || "";
|
|
175
|
-
}
|
|
176
|
-
return `
|
|
177
|
-
` + J + r;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
var q = !1, V;
|
|
181
|
-
{
|
|
182
|
-
var Vr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
183
|
-
V = new Vr();
|
|
184
|
-
}
|
|
185
|
-
function gr(r, a) {
|
|
186
|
-
if (!r || q)
|
|
187
|
-
return "";
|
|
188
|
-
{
|
|
189
|
-
var o = V.get(r);
|
|
190
|
-
if (o !== void 0)
|
|
191
|
-
return o;
|
|
192
|
-
}
|
|
193
|
-
var e;
|
|
194
|
-
q = !0;
|
|
195
|
-
var t = Error.prepareStackTrace;
|
|
196
|
-
Error.prepareStackTrace = void 0;
|
|
197
|
-
var i;
|
|
198
|
-
i = B.current, B.current = null, Lr();
|
|
199
|
-
try {
|
|
200
|
-
if (a) {
|
|
201
|
-
var s = function() {
|
|
202
|
-
throw Error();
|
|
203
|
-
};
|
|
204
|
-
if (Object.defineProperty(s.prototype, "props", {
|
|
205
|
-
set: function() {
|
|
206
|
-
throw Error();
|
|
207
|
-
}
|
|
208
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
209
|
-
try {
|
|
210
|
-
Reflect.construct(s, []);
|
|
211
|
-
} catch (f) {
|
|
212
|
-
e = f;
|
|
213
|
-
}
|
|
214
|
-
Reflect.construct(r, [], s);
|
|
215
|
-
} else {
|
|
216
|
-
try {
|
|
217
|
-
s.call();
|
|
218
|
-
} catch (f) {
|
|
219
|
-
e = f;
|
|
220
|
-
}
|
|
221
|
-
r.call(s.prototype);
|
|
222
|
-
}
|
|
223
|
-
} else {
|
|
224
|
-
try {
|
|
225
|
-
throw Error();
|
|
226
|
-
} catch (f) {
|
|
227
|
-
e = f;
|
|
228
|
-
}
|
|
229
|
-
r();
|
|
230
|
-
}
|
|
231
|
-
} catch (f) {
|
|
232
|
-
if (f && e && typeof f.stack == "string") {
|
|
233
|
-
for (var n = f.stack.split(`
|
|
234
|
-
`), d = e.stack.split(`
|
|
235
|
-
`), u = n.length - 1, l = d.length - 1; u >= 1 && l >= 0 && n[u] !== d[l]; )
|
|
236
|
-
l--;
|
|
237
|
-
for (; u >= 1 && l >= 0; u--, l--)
|
|
238
|
-
if (n[u] !== d[l]) {
|
|
239
|
-
if (u !== 1 || l !== 1)
|
|
240
|
-
do
|
|
241
|
-
if (u--, l--, l < 0 || n[u] !== d[l]) {
|
|
242
|
-
var v = `
|
|
243
|
-
` + n[u].replace(" at new ", " at ");
|
|
244
|
-
return r.displayName && v.includes("<anonymous>") && (v = v.replace("<anonymous>", r.displayName)), typeof r == "function" && V.set(r, v), v;
|
|
245
|
-
}
|
|
246
|
-
while (u >= 1 && l >= 0);
|
|
247
|
-
break;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
} finally {
|
|
251
|
-
q = !1, B.current = i, Nr(), Error.prepareStackTrace = t;
|
|
252
|
-
}
|
|
253
|
-
var P = r ? r.displayName || r.name : "", T = P ? N(P) : "";
|
|
254
|
-
return typeof r == "function" && V.set(r, T), T;
|
|
255
|
-
}
|
|
256
|
-
function Mr(r, a, o) {
|
|
257
|
-
return gr(r, !1);
|
|
258
|
-
}
|
|
259
|
-
function Ur(r) {
|
|
260
|
-
var a = r.prototype;
|
|
261
|
-
return !!(a && a.isReactComponent);
|
|
262
|
-
}
|
|
263
|
-
function M(r, a, o) {
|
|
264
|
-
if (r == null)
|
|
265
|
-
return "";
|
|
266
|
-
if (typeof r == "function")
|
|
267
|
-
return gr(r, Ur(r));
|
|
268
|
-
if (typeof r == "string")
|
|
269
|
-
return N(r);
|
|
270
|
-
switch (r) {
|
|
271
|
-
case O:
|
|
272
|
-
return N("Suspense");
|
|
273
|
-
case p:
|
|
274
|
-
return N("SuspenseList");
|
|
275
|
-
}
|
|
276
|
-
if (typeof r == "object")
|
|
277
|
-
switch (r.$$typeof) {
|
|
278
|
-
case g:
|
|
279
|
-
return Mr(r.render);
|
|
280
|
-
case k:
|
|
281
|
-
return M(r.type, a, o);
|
|
282
|
-
case R: {
|
|
283
|
-
var e = r, t = e._payload, i = e._init;
|
|
284
|
-
try {
|
|
285
|
-
return M(i(t), a, o);
|
|
286
|
-
} catch {
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
return "";
|
|
291
|
-
}
|
|
292
|
-
var D = Object.prototype.hasOwnProperty, dr = {}, fr = S.ReactDebugCurrentFrame;
|
|
293
|
-
function U(r) {
|
|
294
|
-
if (r) {
|
|
295
|
-
var a = r._owner, o = M(r.type, r._source, a ? a.type : null);
|
|
296
|
-
fr.setExtraStackFrame(o);
|
|
297
|
-
} else
|
|
298
|
-
fr.setExtraStackFrame(null);
|
|
299
|
-
}
|
|
300
|
-
function Br(r, a, o, e, t) {
|
|
301
|
-
{
|
|
302
|
-
var i = Function.call.bind(D);
|
|
303
|
-
for (var s in r)
|
|
304
|
-
if (i(r, s)) {
|
|
305
|
-
var n = void 0;
|
|
306
|
-
try {
|
|
307
|
-
if (typeof r[s] != "function") {
|
|
308
|
-
var d = Error((e || "React class") + ": " + o + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
309
|
-
throw d.name = "Invariant Violation", d;
|
|
310
|
-
}
|
|
311
|
-
n = r[s](a, s, e, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
312
|
-
} catch (u) {
|
|
313
|
-
n = u;
|
|
314
|
-
}
|
|
315
|
-
n && !(n instanceof Error) && (U(t), c("%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).", e || "React class", o, s, typeof n), U(null)), n instanceof Error && !(n.message in dr) && (dr[n.message] = !0, U(t), c("Failed %s type: %s", o, n.message), U(null));
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
var Jr = Array.isArray;
|
|
320
|
-
function K(r) {
|
|
321
|
-
return Jr(r);
|
|
322
|
-
}
|
|
323
|
-
function qr(r) {
|
|
324
|
-
{
|
|
325
|
-
var a = typeof Symbol == "function" && Symbol.toStringTag, o = a && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
326
|
-
return o;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function Kr(r) {
|
|
330
|
-
try {
|
|
331
|
-
return pr(r), !1;
|
|
332
|
-
} catch {
|
|
333
|
-
return !0;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
function pr(r) {
|
|
337
|
-
return "" + r;
|
|
338
|
-
}
|
|
339
|
-
function br(r) {
|
|
340
|
-
if (Kr(r))
|
|
341
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qr(r)), pr(r);
|
|
342
|
-
}
|
|
343
|
-
var F = S.ReactCurrentOwner, zr = {
|
|
344
|
-
key: !0,
|
|
345
|
-
ref: !0,
|
|
346
|
-
__self: !0,
|
|
347
|
-
__source: !0
|
|
348
|
-
}, vr, yr, z;
|
|
349
|
-
z = {};
|
|
350
|
-
function Gr(r) {
|
|
351
|
-
if (D.call(r, "ref")) {
|
|
352
|
-
var a = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
353
|
-
if (a && a.isReactWarning)
|
|
354
|
-
return !1;
|
|
355
|
-
}
|
|
356
|
-
return r.ref !== void 0;
|
|
357
|
-
}
|
|
358
|
-
function Xr(r) {
|
|
359
|
-
if (D.call(r, "key")) {
|
|
360
|
-
var a = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
361
|
-
if (a && a.isReactWarning)
|
|
362
|
-
return !1;
|
|
363
|
-
}
|
|
364
|
-
return r.key !== void 0;
|
|
365
|
-
}
|
|
366
|
-
function Hr(r, a) {
|
|
367
|
-
if (typeof r.ref == "string" && F.current && a && F.current.stateNode !== a) {
|
|
368
|
-
var o = y(F.current.type);
|
|
369
|
-
z[o] || (c('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', y(F.current.type), r.ref), z[o] = !0);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
function Zr(r, a) {
|
|
373
|
-
{
|
|
374
|
-
var o = function() {
|
|
375
|
-
vr || (vr = !0, c("%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)", a));
|
|
376
|
-
};
|
|
377
|
-
o.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
378
|
-
get: o,
|
|
379
|
-
configurable: !0
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function Qr(r, a) {
|
|
384
|
-
{
|
|
385
|
-
var o = function() {
|
|
386
|
-
yr || (yr = !0, c("%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)", a));
|
|
387
|
-
};
|
|
388
|
-
o.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
389
|
-
get: o,
|
|
390
|
-
configurable: !0
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
var ra = function(r, a, o, e, t, i, s) {
|
|
395
|
-
var n = {
|
|
396
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
397
|
-
$$typeof: b,
|
|
398
|
-
// Built-in properties that belong on the element
|
|
399
|
-
type: r,
|
|
400
|
-
key: a,
|
|
401
|
-
ref: o,
|
|
402
|
-
props: s,
|
|
403
|
-
// Record the component responsible for creating this element.
|
|
404
|
-
_owner: i
|
|
405
|
-
};
|
|
406
|
-
return n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
407
|
-
configurable: !1,
|
|
408
|
-
enumerable: !1,
|
|
409
|
-
writable: !0,
|
|
410
|
-
value: !1
|
|
411
|
-
}), Object.defineProperty(n, "_self", {
|
|
412
|
-
configurable: !1,
|
|
413
|
-
enumerable: !1,
|
|
414
|
-
writable: !1,
|
|
415
|
-
value: e
|
|
416
|
-
}), Object.defineProperty(n, "_source", {
|
|
417
|
-
configurable: !1,
|
|
418
|
-
enumerable: !1,
|
|
419
|
-
writable: !1,
|
|
420
|
-
value: t
|
|
421
|
-
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
422
|
-
};
|
|
423
|
-
function aa(r, a, o, e, t) {
|
|
424
|
-
{
|
|
425
|
-
var i, s = {}, n = null, d = null;
|
|
426
|
-
o !== void 0 && (br(o), n = "" + o), Xr(a) && (br(a.key), n = "" + a.key), Gr(a) && (d = a.ref, Hr(a, t));
|
|
427
|
-
for (i in a)
|
|
428
|
-
D.call(a, i) && !zr.hasOwnProperty(i) && (s[i] = a[i]);
|
|
429
|
-
if (r && r.defaultProps) {
|
|
430
|
-
var u = r.defaultProps;
|
|
431
|
-
for (i in u)
|
|
432
|
-
s[i] === void 0 && (s[i] = u[i]);
|
|
433
|
-
}
|
|
434
|
-
if (n || d) {
|
|
435
|
-
var l = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
436
|
-
n && Zr(s, l), d && Qr(s, l);
|
|
437
|
-
}
|
|
438
|
-
return ra(r, n, d, t, e, F.current, s);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
var G = S.ReactCurrentOwner, mr = S.ReactDebugCurrentFrame;
|
|
442
|
-
function x(r) {
|
|
443
|
-
if (r) {
|
|
444
|
-
var a = r._owner, o = M(r.type, r._source, a ? a.type : null);
|
|
445
|
-
mr.setExtraStackFrame(o);
|
|
446
|
-
} else
|
|
447
|
-
mr.setExtraStackFrame(null);
|
|
448
|
-
}
|
|
449
|
-
var X;
|
|
450
|
-
X = !1;
|
|
451
|
-
function H(r) {
|
|
452
|
-
return typeof r == "object" && r !== null && r.$$typeof === b;
|
|
453
|
-
}
|
|
454
|
-
function kr() {
|
|
455
|
-
{
|
|
456
|
-
if (G.current) {
|
|
457
|
-
var r = y(G.current.type);
|
|
458
|
-
if (r)
|
|
459
|
-
return `
|
|
460
|
-
|
|
461
|
-
Check the render method of \`` + r + "`.";
|
|
462
|
-
}
|
|
463
|
-
return "";
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
function oa(r) {
|
|
467
|
-
{
|
|
468
|
-
if (r !== void 0) {
|
|
469
|
-
var a = r.fileName.replace(/^.*[\\\/]/, ""), o = r.lineNumber;
|
|
470
|
-
return `
|
|
471
|
-
|
|
472
|
-
Check your code at ` + a + ":" + o + ".";
|
|
473
|
-
}
|
|
474
|
-
return "";
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
var hr = {};
|
|
478
|
-
function ea(r) {
|
|
479
|
-
{
|
|
480
|
-
var a = kr();
|
|
481
|
-
if (!a) {
|
|
482
|
-
var o = typeof r == "string" ? r : r.displayName || r.name;
|
|
483
|
-
o && (a = `
|
|
484
|
-
|
|
485
|
-
Check the top-level render call using <` + o + ">.");
|
|
486
|
-
}
|
|
487
|
-
return a;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function wr(r, a) {
|
|
491
|
-
{
|
|
492
|
-
if (!r._store || r._store.validated || r.key != null)
|
|
493
|
-
return;
|
|
494
|
-
r._store.validated = !0;
|
|
495
|
-
var o = ea(a);
|
|
496
|
-
if (hr[o])
|
|
497
|
-
return;
|
|
498
|
-
hr[o] = !0;
|
|
499
|
-
var e = "";
|
|
500
|
-
r && r._owner && r._owner !== G.current && (e = " It was passed a child from " + y(r._owner.type) + "."), x(r), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, e), x(null);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
function Er(r, a) {
|
|
504
|
-
{
|
|
505
|
-
if (typeof r != "object")
|
|
506
|
-
return;
|
|
507
|
-
if (K(r))
|
|
508
|
-
for (var o = 0; o < r.length; o++) {
|
|
509
|
-
var e = r[o];
|
|
510
|
-
H(e) && wr(e, a);
|
|
511
|
-
}
|
|
512
|
-
else if (H(r))
|
|
513
|
-
r._store && (r._store.validated = !0);
|
|
514
|
-
else if (r) {
|
|
515
|
-
var t = Pr(r);
|
|
516
|
-
if (typeof t == "function" && t !== r.entries)
|
|
517
|
-
for (var i = t.call(r), s; !(s = i.next()).done; )
|
|
518
|
-
H(s.value) && wr(s.value, a);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
function na(r) {
|
|
523
|
-
{
|
|
524
|
-
var a = r.type;
|
|
525
|
-
if (a == null || typeof a == "string")
|
|
526
|
-
return;
|
|
527
|
-
var o;
|
|
528
|
-
if (typeof a == "function")
|
|
529
|
-
o = a.propTypes;
|
|
530
|
-
else if (typeof a == "object" && (a.$$typeof === g || // Note: Memo only checks outer props here.
|
|
531
|
-
// Inner props are checked in the reconciler.
|
|
532
|
-
a.$$typeof === k))
|
|
533
|
-
o = a.propTypes;
|
|
534
|
-
else
|
|
535
|
-
return;
|
|
536
|
-
if (o) {
|
|
537
|
-
var e = y(a);
|
|
538
|
-
Br(o, r.props, "prop", e, r);
|
|
539
|
-
} else if (a.PropTypes !== void 0 && !X) {
|
|
540
|
-
X = !0;
|
|
541
|
-
var t = y(a);
|
|
542
|
-
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", t || "Unknown");
|
|
543
|
-
}
|
|
544
|
-
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
function sa(r) {
|
|
548
|
-
{
|
|
549
|
-
for (var a = Object.keys(r.props), o = 0; o < a.length; o++) {
|
|
550
|
-
var e = a[o];
|
|
551
|
-
if (e !== "children" && e !== "key") {
|
|
552
|
-
x(r), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", e), x(null);
|
|
553
|
-
break;
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
r.ref !== null && (x(r), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
var Rr = {};
|
|
560
|
-
function _r(r, a, o, e, t, i) {
|
|
561
|
-
{
|
|
562
|
-
var s = Wr(r);
|
|
563
|
-
if (!s) {
|
|
564
|
-
var n = "";
|
|
565
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (n += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
566
|
-
var d = oa(t);
|
|
567
|
-
d ? n += d : n += kr();
|
|
568
|
-
var u;
|
|
569
|
-
r === null ? u = "null" : K(r) ? u = "array" : r !== void 0 && r.$$typeof === b ? (u = "<" + (y(r.type) || "Unknown") + " />", n = " Did you accidentally export a JSX literal instead of a component?") : u = typeof r, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, n);
|
|
570
|
-
}
|
|
571
|
-
var l = aa(r, a, o, t, i);
|
|
572
|
-
if (l == null)
|
|
573
|
-
return l;
|
|
574
|
-
if (s) {
|
|
575
|
-
var v = a.children;
|
|
576
|
-
if (v !== void 0)
|
|
577
|
-
if (e)
|
|
578
|
-
if (K(v)) {
|
|
579
|
-
for (var P = 0; P < v.length; P++)
|
|
580
|
-
Er(v[P], r);
|
|
581
|
-
Object.freeze && Object.freeze(v);
|
|
582
|
-
} else
|
|
583
|
-
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
584
|
-
else
|
|
585
|
-
Er(v, r);
|
|
586
|
-
}
|
|
587
|
-
if (D.call(a, "key")) {
|
|
588
|
-
var T = y(r), f = Object.keys(a).filter(function(ga) {
|
|
589
|
-
return ga !== "key";
|
|
590
|
-
}), Z = f.length > 0 ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
591
|
-
if (!Rr[T + Z]) {
|
|
592
|
-
var ca = f.length > 0 ? "{" + f.join(": ..., ") + ": ...}" : "{}";
|
|
593
|
-
c(`A props object containing a "key" prop is being spread into JSX:
|
|
594
|
-
let props = %s;
|
|
595
|
-
<%s {...props} />
|
|
596
|
-
React keys must be passed directly to JSX without using spread:
|
|
597
|
-
let props = %s;
|
|
598
|
-
<%s key={someKey} {...props} />`, Z, T, ca, T), Rr[T + Z] = !0;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
return r === w ? sa(l) : na(l), l;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
function ta(r, a, o) {
|
|
605
|
-
return _r(r, a, o, !0);
|
|
606
|
-
}
|
|
607
|
-
function ia(r, a, o) {
|
|
608
|
-
return _r(r, a, o, !1);
|
|
609
|
-
}
|
|
610
|
-
var ua = ia, la = ta;
|
|
611
|
-
I.Fragment = w, I.jsx = ua, I.jsxs = la;
|
|
612
|
-
}()), I;
|
|
613
|
-
}
|
|
614
|
-
var $ = {};
|
|
615
|
-
/**
|
|
616
|
-
* @license React
|
|
617
|
-
* react-jsx-runtime.production.min.js
|
|
618
|
-
*
|
|
619
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
620
|
-
*
|
|
621
|
-
* This source code is licensed under the MIT license found in the
|
|
622
|
-
* LICENSE file in the root directory of this source tree.
|
|
623
|
-
*/
|
|
624
|
-
var Cr;
|
|
625
|
-
function fa() {
|
|
626
|
-
if (Cr)
|
|
627
|
-
return $;
|
|
628
|
-
Cr = 1;
|
|
629
|
-
var m = Sr, b = Symbol.for("react.element"), h = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, C = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
630
|
-
function j(E, g, O) {
|
|
631
|
-
var p, k = {}, R = null, L = null;
|
|
632
|
-
O !== void 0 && (R = "" + O), g.key !== void 0 && (R = "" + g.key), g.ref !== void 0 && (L = g.ref);
|
|
633
|
-
for (p in g)
|
|
634
|
-
w.call(g, p) && !Y.hasOwnProperty(p) && (k[p] = g[p]);
|
|
635
|
-
if (E && E.defaultProps)
|
|
636
|
-
for (p in g = E.defaultProps, g)
|
|
637
|
-
k[p] === void 0 && (k[p] = g[p]);
|
|
638
|
-
return { $$typeof: b, type: E, key: R, ref: L, props: k, _owner: C.current };
|
|
639
|
-
}
|
|
640
|
-
return $.Fragment = h, $.jsx = j, $.jsxs = j, $;
|
|
641
|
-
}
|
|
642
|
-
process.env.NODE_ENV === "production" ? Q.exports = fa() : Q.exports = da();
|
|
643
|
-
var W = Q.exports;
|
|
644
|
-
const pa = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
|
|
1
|
+
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
const l = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
|
|
645
3
|
|
|
646
4
|
:root {
|
|
647
5
|
/* gray */
|
|
@@ -744,7 +102,7 @@ const pa = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@3
|
|
|
744
102
|
}
|
|
745
103
|
|
|
746
104
|
.starasia-progress-border {
|
|
747
|
-
background-color: var(--starasia-ui-
|
|
105
|
+
background-color: var(--starasia-ui-brand-primary-tertiary);
|
|
748
106
|
width: 100%;
|
|
749
107
|
border-radius: var(--starasia-ui-radii-lg);
|
|
750
108
|
overflow: hidden;
|
|
@@ -757,7 +115,7 @@ const pa = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@3
|
|
|
757
115
|
}
|
|
758
116
|
.starasia-progress-value {
|
|
759
117
|
height: 100%;
|
|
760
|
-
background-color: var(--starasia-ui-
|
|
118
|
+
background-color: var(--starasia-ui-brand-primary-default);
|
|
761
119
|
}
|
|
762
120
|
|
|
763
121
|
.starasia-progress-label {
|
|
@@ -1009,49 +367,49 @@ const pa = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@3
|
|
|
1009
367
|
.starasia-progress-background-purple-950 {
|
|
1010
368
|
background-color: var(--starasia-ui-color-purple-950) !important;
|
|
1011
369
|
}
|
|
1012
|
-
`,
|
|
1013
|
-
if (!document.getElementById(
|
|
1014
|
-
const
|
|
1015
|
-
|
|
370
|
+
`, n = "starasia-progress-styles", c = (a) => {
|
|
371
|
+
if (!document.getElementById(n)) {
|
|
372
|
+
const r = document.createElement("style");
|
|
373
|
+
r.id = n, r.textContent = a, document.head.appendChild(r);
|
|
1016
374
|
}
|
|
1017
375
|
};
|
|
1018
|
-
|
|
1019
|
-
const
|
|
1020
|
-
value:
|
|
1021
|
-
labelPosition:
|
|
1022
|
-
label:
|
|
1023
|
-
color:
|
|
1024
|
-
size:
|
|
1025
|
-
}) => /* @__PURE__ */
|
|
1026
|
-
/* @__PURE__ */
|
|
376
|
+
c(l);
|
|
377
|
+
const p = ({
|
|
378
|
+
value: a = "10%",
|
|
379
|
+
labelPosition: r = "left",
|
|
380
|
+
label: o,
|
|
381
|
+
color: i,
|
|
382
|
+
size: e = "md"
|
|
383
|
+
}) => /* @__PURE__ */ t("div", { children: [
|
|
384
|
+
/* @__PURE__ */ s(
|
|
1027
385
|
"div",
|
|
1028
386
|
{
|
|
1029
|
-
className: `starasia-progress-border ${
|
|
1030
|
-
children: /* @__PURE__ */
|
|
387
|
+
className: `starasia-progress-border ${e === "md" ? "starasia-progress-border-md" : "starasia-progress-border-sm"}`,
|
|
388
|
+
children: /* @__PURE__ */ s(
|
|
1031
389
|
"div",
|
|
1032
390
|
{
|
|
1033
|
-
className: `starasia-progress-value starasia-progress-background-${
|
|
1034
|
-
style: { width:
|
|
391
|
+
className: `starasia-progress-value starasia-progress-background-${i}`,
|
|
392
|
+
style: { width: a, backgroundColor: "" }
|
|
1035
393
|
}
|
|
1036
394
|
)
|
|
1037
395
|
}
|
|
1038
396
|
),
|
|
1039
|
-
|
|
397
|
+
o ? typeof o == "string" ? /* @__PURE__ */ s(
|
|
1040
398
|
"p",
|
|
1041
399
|
{
|
|
1042
400
|
className: "starasia-progress-label",
|
|
1043
|
-
style: { textAlign:
|
|
1044
|
-
children:
|
|
401
|
+
style: { textAlign: r },
|
|
402
|
+
children: o
|
|
1045
403
|
}
|
|
1046
|
-
) : /* @__PURE__ */
|
|
404
|
+
) : /* @__PURE__ */ s(
|
|
1047
405
|
"div",
|
|
1048
406
|
{
|
|
1049
407
|
className: "starasia-progress-label",
|
|
1050
|
-
style: { textAlign:
|
|
1051
|
-
children:
|
|
408
|
+
style: { textAlign: r },
|
|
409
|
+
children: o
|
|
1052
410
|
}
|
|
1053
411
|
) : null
|
|
1054
|
-
] }),
|
|
412
|
+
] }), u = [
|
|
1055
413
|
{
|
|
1056
414
|
name: "gray",
|
|
1057
415
|
colors: [
|
|
@@ -1164,11 +522,11 @@ const ma = ({
|
|
|
1164
522
|
"purple-950"
|
|
1165
523
|
]
|
|
1166
524
|
}
|
|
1167
|
-
],
|
|
1168
|
-
(
|
|
525
|
+
], d = u.map(
|
|
526
|
+
(a) => a.colors
|
|
1169
527
|
).flat();
|
|
1170
528
|
export {
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
529
|
+
d as ColorConstProgress,
|
|
530
|
+
u as ColorSchemeGeneratorProgress,
|
|
531
|
+
p as Progress
|
|
1174
532
|
};
|
package/dist/progress.umd.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var or;function jr(){return or||(or=1,process.env.NODE_ENV!=="production"&&function(){var k=S,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),R=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),tr=Symbol.iterator,Wr="@@iterator";function Yr(r){if(r===null||typeof r!="object")return null;var a=tr&&r[tr]||r[Wr];return typeof a=="function"?a:null}var x=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(r){{for(var a=arguments.length,o=new Array(a>1?a-1:0),e=1;e<a;e++)o[e-1]=arguments[e];$r("error",r,o)}}function $r(r,a,o){{var e=x.ReactDebugCurrentFrame,t=e.getStackAddendum();t!==""&&(a+="%s",o=o.concat([t]));var i=o.map(function(s){return String(s)});i.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,i)}}var Lr=!1,Nr=!1,Mr=!1,Vr=!1,Ur=!1,ir;ir=Symbol.for("react.module.reference");function Br(r){return!!(typeof r=="string"||typeof r=="function"||r===E||r===N||Ur||r===P||r===O||r===p||Vr||r===M||Lr||Nr||Mr||typeof r=="object"&&r!==null&&(r.$$typeof===_||r.$$typeof===h||r.$$typeof===W||r.$$typeof===R||r.$$typeof===g||r.$$typeof===ir||r.getModuleId!==void 0))}function Jr(r,a,o){var e=r.displayName;if(e)return e;var t=a.displayName||a.name||"";return t!==""?o+"("+t+")":o}function ur(r){return r.displayName||"Context"}function y(r){if(r==null)return null;if(typeof r.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case w:return"Portal";case N:return"Profiler";case P:return"StrictMode";case O:return"Suspense";case p:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case R:var a=r;return ur(a)+".Consumer";case W:var o=r;return ur(o._context)+".Provider";case g:return Jr(r,r.render,"ForwardRef");case h:var e=r.displayName||null;return e!==null?e:y(r.type)||"Memo";case _:{var t=r,i=t._payload,s=t._init;try{return y(s(i))}catch{return null}}}return null}var T=Object.assign,Y=0,lr,cr,gr,dr,fr,pr,br;function vr(){}vr.__reactDisabledLog=!0;function Gr(){{if(Y===0){lr=console.log,cr=console.info,gr=console.warn,dr=console.error,fr=console.group,pr=console.groupCollapsed,br=console.groupEnd;var r={configurable:!0,enumerable:!0,value:vr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}Y++}}function Kr(){{if(Y--,Y===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},r,{value:lr}),info:T({},r,{value:cr}),warn:T({},r,{value:gr}),error:T({},r,{value:dr}),group:T({},r,{value:fr}),groupCollapsed:T({},r,{value:pr}),groupEnd:T({},r,{value:br})})}Y<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=x.ReactCurrentDispatcher,q;function V(r,a,o){{if(q===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);q=e&&e[1]||""}return`
|
|
10
|
-
`+q+r}}var z=!1,U;{var qr=typeof WeakMap=="function"?WeakMap:Map;U=new qr}function yr(r,a){if(!r||z)return"";{var o=U.get(r);if(o!==void 0)return o}var e;z=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=K.current,K.current=null,Gr();try{if(a){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(f){e=f}Reflect.construct(r,[],s)}else{try{s.call()}catch(f){e=f}r.call(s.prototype)}}else{try{throw Error()}catch(f){e=f}r()}}catch(f){if(f&&e&&typeof f.stack=="string"){for(var n=f.stack.split(`
|
|
11
|
-
`),d=e.stack.split(`
|
|
12
|
-
`),u=n.length-1,l=d.length-1;u>=1&&l>=0&&n[u]!==d[l];)l--;for(;u>=1&&l>=0;u--,l--)if(n[u]!==d[l]){if(u!==1||l!==1)do if(u--,l--,l<0||n[u]!==d[l]){var v=`
|
|
13
|
-
`+n[u].replace(" at new "," at ");return r.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",r.displayName)),typeof r=="function"&&U.set(r,v),v}while(u>=1&&l>=0);break}}}finally{z=!1,K.current=i,Kr(),Error.prepareStackTrace=t}var A=r?r.displayName||r.name:"",C=A?V(A):"";return typeof r=="function"&&U.set(r,C),C}function zr(r,a,o){return yr(r,!1)}function Xr(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function B(r,a,o){if(r==null)return"";if(typeof r=="function")return yr(r,Xr(r));if(typeof r=="string")return V(r);switch(r){case O:return V("Suspense");case p:return V("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case g:return zr(r.render);case h:return B(r.type,a,o);case _:{var e=r,t=e._payload,i=e._init;try{return B(i(t),a,o)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,mr={},kr=x.ReactDebugCurrentFrame;function J(r){if(r){var a=r._owner,o=B(r.type,r._source,a?a.type:null);kr.setExtraStackFrame(o)}else kr.setExtraStackFrame(null)}function Hr(r,a,o,e,t){{var i=Function.call.bind($);for(var s in r)if(i(r,s)){var n=void 0;try{if(typeof r[s]!="function"){var d=Error((e||"React class")+": "+o+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}n=r[s](a,s,e,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){n=u}n&&!(n instanceof Error)&&(J(t),c("%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).",e||"React class",o,s,typeof n),J(null)),n instanceof Error&&!(n.message in mr)&&(mr[n.message]=!0,J(t),c("Failed %s type: %s",o,n.message),J(null))}}}var Zr=Array.isArray;function X(r){return Zr(r)}function Qr(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,o=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return o}}function ra(r){try{return hr(r),!1}catch{return!0}}function hr(r){return""+r}function wr(r){if(ra(r))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qr(r)),hr(r)}var L=x.ReactCurrentOwner,aa={key:!0,ref:!0,__self:!0,__source:!0},Er,Rr,H;H={};function oa(r){if($.call(r,"ref")){var a=Object.getOwnPropertyDescriptor(r,"ref").get;if(a&&a.isReactWarning)return!1}return r.ref!==void 0}function ea(r){if($.call(r,"key")){var a=Object.getOwnPropertyDescriptor(r,"key").get;if(a&&a.isReactWarning)return!1}return r.key!==void 0}function na(r,a){if(typeof r.ref=="string"&&L.current&&a&&L.current.stateNode!==a){var o=y(L.current.type);H[o]||(c('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',y(L.current.type),r.ref),H[o]=!0)}}function sa(r,a){{var o=function(){Er||(Er=!0,c("%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)",a))};o.isReactWarning=!0,Object.defineProperty(r,"key",{get:o,configurable:!0})}}function ta(r,a){{var o=function(){Rr||(Rr=!0,c("%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)",a))};o.isReactWarning=!0,Object.defineProperty(r,"ref",{get:o,configurable:!0})}}var ia=function(r,a,o,e,t,i,s){var n={$$typeof:b,type:r,key:a,ref:o,props:s,_owner:i};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:e}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function ua(r,a,o,e,t){{var i,s={},n=null,d=null;o!==void 0&&(wr(o),n=""+o),ea(a)&&(wr(a.key),n=""+a.key),oa(a)&&(d=a.ref,na(a,t));for(i in a)$.call(a,i)&&!aa.hasOwnProperty(i)&&(s[i]=a[i]);if(r&&r.defaultProps){var u=r.defaultProps;for(i in u)s[i]===void 0&&(s[i]=u[i])}if(n||d){var l=typeof r=="function"?r.displayName||r.name||"Unknown":r;n&&sa(s,l),d&&ta(s,l)}return ia(r,n,d,t,e,L.current,s)}}var Z=x.ReactCurrentOwner,_r=x.ReactDebugCurrentFrame;function j(r){if(r){var a=r._owner,o=B(r.type,r._source,a?a.type:null);_r.setExtraStackFrame(o)}else _r.setExtraStackFrame(null)}var Q;Q=!1;function rr(r){return typeof r=="object"&&r!==null&&r.$$typeof===b}function Tr(){{if(Z.current){var r=y(Z.current.type);if(r)return`
|
|
14
|
-
|
|
15
|
-
Check the render method of \``+r+"`."}return""}}function la(r){{if(r!==void 0){var a=r.fileName.replace(/^.*[\\\/]/,""),o=r.lineNumber;return`
|
|
16
|
-
|
|
17
|
-
Check your code at `+a+":"+o+"."}return""}}var Cr={};function ca(r){{var a=Tr();if(!a){var o=typeof r=="string"?r:r.displayName||r.name;o&&(a=`
|
|
18
|
-
|
|
19
|
-
Check the top-level render call using <`+o+">.")}return a}}function Sr(r,a){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var o=ca(a);if(Cr[o])return;Cr[o]=!0;var e="";r&&r._owner&&r._owner!==Z.current&&(e=" It was passed a child from "+y(r._owner.type)+"."),j(r),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,e),j(null)}}function Pr(r,a){{if(typeof r!="object")return;if(X(r))for(var o=0;o<r.length;o++){var e=r[o];rr(e)&&Sr(e,a)}else if(rr(r))r._store&&(r._store.validated=!0);else if(r){var t=Yr(r);if(typeof t=="function"&&t!==r.entries)for(var i=t.call(r),s;!(s=i.next()).done;)rr(s.value)&&Sr(s.value,a)}}}function ga(r){{var a=r.type;if(a==null||typeof a=="string")return;var o;if(typeof a=="function")o=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===g||a.$$typeof===h))o=a.propTypes;else return;if(o){var e=y(a);Hr(o,r.props,"prop",e,r)}else if(a.PropTypes!==void 0&&!Q){Q=!0;var t=y(a);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",t||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function da(r){{for(var a=Object.keys(r.props),o=0;o<a.length;o++){var e=a[o];if(e!=="children"&&e!=="key"){j(r),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e),j(null);break}}r.ref!==null&&(j(r),c("Invalid attribute `ref` supplied to `React.Fragment`."),j(null))}}var Or={};function xr(r,a,o,e,t,i){{var s=Br(r);if(!s){var n="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=la(t);d?n+=d:n+=Tr();var u;r===null?u="null":X(r)?u="array":r!==void 0&&r.$$typeof===b?(u="<"+(y(r.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,n)}var l=ua(r,a,o,t,i);if(l==null)return l;if(s){var v=a.children;if(v!==void 0)if(e)if(X(v)){for(var A=0;A<v.length;A++)Pr(v[A],r);Object.freeze&&Object.freeze(v)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pr(v,r)}if($.call(a,"key")){var C=y(r),f=Object.keys(a).filter(function(ma){return ma!=="key"}),ar=f.length>0?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}";if(!Or[C+ar]){var ya=f.length>0?"{"+f.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
20
|
-
let props = %s;
|
|
21
|
-
<%s {...props} />
|
|
22
|
-
React keys must be passed directly to JSX without using spread:
|
|
23
|
-
let props = %s;
|
|
24
|
-
<%s key={someKey} {...props} />`,ar,C,ya,C),Or[C+ar]=!0}}return r===E?da(l):ga(l),l}}function fa(r,a,o){return xr(r,a,o,!0)}function pa(r,a,o){return xr(r,a,o,!1)}var ba=pa,va=fa;D.Fragment=E,D.jsx=ba,D.jsxs=va}()),D}var F={};/**
|
|
25
|
-
* @license React
|
|
26
|
-
* react-jsx-runtime.production.min.js
|
|
27
|
-
*
|
|
28
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the MIT license found in the
|
|
31
|
-
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var er;function Ar(){if(er)return F;er=1;var k=S,b=Symbol.for("react.element"),w=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,P=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,N={key:!0,ref:!0,__self:!0,__source:!0};function W(R,g,O){var p,h={},_=null,M=null;O!==void 0&&(_=""+O),g.key!==void 0&&(_=""+g.key),g.ref!==void 0&&(M=g.ref);for(p in g)E.call(g,p)&&!N.hasOwnProperty(p)&&(h[p]=g[p]);if(R&&R.defaultProps)for(p in g=R.defaultProps,g)h[p]===void 0&&(h[p]=g[p]);return{$$typeof:b,type:R,key:_,ref:M,props:h,_owner:P.current}}return F.Fragment=w,F.jsx=W,F.jsxs=W,F}process.env.NODE_ENV==="production"?G.exports=Ar():G.exports=jr();var I=G.exports;const Dr=`@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
|
|
1
|
+
(function(r,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],a):(r=typeof globalThis<"u"?globalThis:r||self,a(r.Progress={},r.jsxRuntime))})(this,function(r,a){"use strict";const t=`@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
|
|
33
2
|
|
|
34
3
|
:root {
|
|
35
4
|
/* gray */
|
|
@@ -132,7 +101,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
132
101
|
}
|
|
133
102
|
|
|
134
103
|
.starasia-progress-border {
|
|
135
|
-
background-color: var(--starasia-ui-
|
|
104
|
+
background-color: var(--starasia-ui-brand-primary-tertiary);
|
|
136
105
|
width: 100%;
|
|
137
106
|
border-radius: var(--starasia-ui-radii-lg);
|
|
138
107
|
overflow: hidden;
|
|
@@ -145,7 +114,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
145
114
|
}
|
|
146
115
|
.starasia-progress-value {
|
|
147
116
|
height: 100%;
|
|
148
|
-
background-color: var(--starasia-ui-
|
|
117
|
+
background-color: var(--starasia-ui-brand-primary-default);
|
|
149
118
|
}
|
|
150
119
|
|
|
151
120
|
.starasia-progress-label {
|
|
@@ -397,4 +366,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
397
366
|
.starasia-progress-background-purple-950 {
|
|
398
367
|
background-color: var(--starasia-ui-color-purple-950) !important;
|
|
399
368
|
}
|
|
400
|
-
`,
|
|
369
|
+
`,e="starasia-progress-styles";(s=>{if(!document.getElementById(e)){const o=document.createElement("style");o.id=e,o.textContent=s,document.head.appendChild(o)}})(t);const l=({value:s="10%",labelPosition:o="left",label:n,color:u,size:g="md"})=>a.jsxs("div",{children:[a.jsx("div",{className:`starasia-progress-border ${g==="md"?"starasia-progress-border-md":"starasia-progress-border-sm"}`,children:a.jsx("div",{className:`starasia-progress-value starasia-progress-background-${u}`,style:{width:s,backgroundColor:""}})}),n?typeof n=="string"?a.jsx("p",{className:"starasia-progress-label",style:{textAlign:o},children:n}):a.jsx("div",{className:"starasia-progress-label",style:{textAlign:o},children:n}):null]}),i=[{name:"gray",colors:["gray-50","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900","gray-950"]},{name:"red",colors:["red-50","red-100","red-200","red-300","red-400","red-500","red-600","red-700","red-800","red-900","red-950"]},{name:"orange",colors:["orange-50","orange-100","orange-200","orange-300","orange-400","orange-500","orange-600","orange-700","orange-800","orange-900","orange-950"]},{name:"yellow",colors:["yellow-50","yellow-100","yellow-200","yellow-300","yellow-400","yellow-500","yellow-600","yellow-700","yellow-800","yellow-900","yellow-950"]},{name:"green",colors:["green-50","green-100","green-200","green-300","green-400","green-500","green-600","green-700","green-800","green-900","green-950"]},{name:"blue",colors:["blue-50","blue-100","blue-200","blue-300","blue-400","blue-500","blue-600","blue-700","blue-800","blue-900","blue-950"]},{name:"purple",colors:["purple-50","purple-100","purple-200","purple-300","purple-400","purple-500","purple-600","purple-700","purple-800","purple-900","purple-950"]}],c=i.map(s=>s.colors).flat();r.ColorConstProgress=c,r.ColorSchemeGeneratorProgress=i,r.Progress=l,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|