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