@starasia/table 1.0.1 → 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/table.es.js CHANGED
@@ -1,647 +1,5 @@
1
- import Cr from "react";
2
- var Q = { exports: {} }, I = {};
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 xr;
13
- function de() {
14
- if (xr)
15
- return I;
16
- xr = 1;
17
- var f = Cr, u = Symbol.for("react.element"), d = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, _ = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Y = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function D(T, p, C) {
19
- var h, E = {}, w = null, N = null;
20
- C !== void 0 && (w = "" + C), p.key !== void 0 && (w = "" + p.key), p.ref !== void 0 && (N = p.ref);
21
- for (h in p)
22
- R.call(p, h) && !Y.hasOwnProperty(h) && (E[h] = p[h]);
23
- if (T && T.defaultProps)
24
- for (h in p = T.defaultProps, p)
25
- E[h] === void 0 && (E[h] = p[h]);
26
- return { $$typeof: u, type: T, key: w, ref: N, props: E, _owner: _.current };
27
- }
28
- return I.Fragment = d, I.jsx = D, I.jsxs = D, I;
29
- }
30
- var W = {};
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 Sr;
41
- function ve() {
42
- return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && function() {
43
- var f = Cr, u = Symbol.for("react.element"), d = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), D = Symbol.for("react.provider"), T = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), rr = Symbol.iterator, jr = "@@iterator";
44
- function Pr(r) {
45
- if (r === null || typeof r != "object")
46
- return null;
47
- var e = rr && r[rr] || r[jr];
48
- return typeof e == "function" ? e : null;
49
- }
50
- var j = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function v(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 = j.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, $r = !1, Ir = !1, er;
69
- er = Symbol.for("react.module.reference");
70
- function Wr(r) {
71
- return !!(typeof r == "string" || typeof r == "function" || r === R || r === Y || Ir || r === _ || r === C || r === h || $r || r === N || Dr || Fr || Ar || typeof r == "object" && r !== null && (r.$$typeof === w || r.$$typeof === E || r.$$typeof === D || r.$$typeof === T || r.$$typeof === p || // 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 m(r) {
88
- if (r == null)
89
- return null;
90
- if (typeof r.tag == "number" && v("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 R:
96
- return "Fragment";
97
- case d:
98
- return "Portal";
99
- case Y:
100
- return "Profiler";
101
- case _:
102
- return "StrictMode";
103
- case C:
104
- return "Suspense";
105
- case h:
106
- return "SuspenseList";
107
- }
108
- if (typeof r == "object")
109
- switch (r.$$typeof) {
110
- case T:
111
- var e = r;
112
- return ar(e) + ".Consumer";
113
- case D:
114
- var a = r;
115
- return ar(a._context) + ".Provider";
116
- case p:
117
- return Yr(r, r.render, "ForwardRef");
118
- case E:
119
- var t = r.displayName || null;
120
- return t !== null ? t : m(r.type) || "Memo";
121
- case w: {
122
- var o = r, s = o._payload, i = o._init;
123
- try {
124
- return m(i(s));
125
- } catch {
126
- return null;
127
- }
128
- }
129
- }
130
- return null;
131
- }
132
- var x = Object.assign, F = 0, tr, nr, ir, or, sr, ur, lr;
133
- function cr() {
134
- }
135
- cr.__reactDisabledLog = !0;
136
- function Nr() {
137
- {
138
- if (F === 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
- F++;
157
- }
158
- }
159
- function Lr() {
160
- {
161
- if (F--, F === 0) {
162
- var r = {
163
- configurable: !0,
164
- enumerable: !0,
165
- writable: !0
166
- };
167
- Object.defineProperties(console, {
168
- log: x({}, r, {
169
- value: tr
170
- }),
171
- info: x({}, r, {
172
- value: nr
173
- }),
174
- warn: x({}, r, {
175
- value: ir
176
- }),
177
- error: x({}, r, {
178
- value: or
179
- }),
180
- group: x({}, r, {
181
- value: sr
182
- }),
183
- groupCollapsed: x({}, r, {
184
- value: ur
185
- }),
186
- groupEnd: x({}, r, {
187
- value: lr
188
- })
189
- });
190
- }
191
- F < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
- }
193
- }
194
- var z = j.ReactCurrentDispatcher, q;
195
- function L(r, e, a) {
196
- {
197
- if (q === void 0)
198
- try {
199
- throw Error();
200
- } catch (o) {
201
- var t = o.stack.trim().match(/\n( *(at )?)/);
202
- q = t && t[1] || "";
203
- }
204
- return `
205
- ` + q + r;
206
- }
207
- }
208
- var B = !1, V;
209
- {
210
- var Vr = typeof WeakMap == "function" ? WeakMap : Map;
211
- V = new Vr();
212
- }
213
- function fr(r, e) {
214
- if (!r || B)
215
- return "";
216
- {
217
- var a = V.get(r);
218
- if (a !== void 0)
219
- return a;
220
- }
221
- var t;
222
- B = !0;
223
- var o = Error.prepareStackTrace;
224
- Error.prepareStackTrace = void 0;
225
- var s;
226
- s = z.current, z.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 (g) {
240
- t = g;
241
- }
242
- Reflect.construct(r, [], i);
243
- } else {
244
- try {
245
- i.call();
246
- } catch (g) {
247
- t = g;
248
- }
249
- r.call(i.prototype);
250
- }
251
- } else {
252
- try {
253
- throw Error();
254
- } catch (g) {
255
- t = g;
256
- }
257
- r();
258
- }
259
- } catch (g) {
260
- if (g && t && typeof g.stack == "string") {
261
- for (var n = g.stack.split(`
262
- `), b = t.stack.split(`
263
- `), l = n.length - 1, c = b.length - 1; l >= 1 && c >= 0 && n[l] !== b[c]; )
264
- c--;
265
- for (; l >= 1 && c >= 0; l--, c--)
266
- if (n[l] !== b[c]) {
267
- if (l !== 1 || c !== 1)
268
- do
269
- if (l--, c--, c < 0 || n[l] !== b[c]) {
270
- var y = `
271
- ` + n[l].replace(" at new ", " at ");
272
- return r.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", r.displayName)), typeof r == "function" && V.set(r, y), y;
273
- }
274
- while (l >= 1 && c >= 0);
275
- break;
276
- }
277
- }
278
- } finally {
279
- B = !1, z.current = s, Lr(), Error.prepareStackTrace = o;
280
- }
281
- var k = r ? r.displayName || r.name : "", S = k ? L(k) : "";
282
- return typeof r == "function" && V.set(r, S), S;
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 M(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 L(r);
298
- switch (r) {
299
- case C:
300
- return L("Suspense");
301
- case h:
302
- return L("SuspenseList");
303
- }
304
- if (typeof r == "object")
305
- switch (r.$$typeof) {
306
- case p:
307
- return Mr(r.render);
308
- case E:
309
- return M(r.type, e, a);
310
- case w: {
311
- var t = r, o = t._payload, s = t._init;
312
- try {
313
- return M(s(o), e, a);
314
- } catch {
315
- }
316
- }
317
- }
318
- return "";
319
- }
320
- var A = Object.prototype.hasOwnProperty, dr = {}, vr = j.ReactDebugCurrentFrame;
321
- function U(r) {
322
- if (r) {
323
- var e = r._owner, a = M(r.type, r._source, e ? e.type : null);
324
- vr.setExtraStackFrame(a);
325
- } else
326
- vr.setExtraStackFrame(null);
327
- }
328
- function zr(r, e, a, t, o) {
329
- {
330
- var s = Function.call.bind(A);
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 b = 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 b.name = "Invariant Violation", b;
338
- }
339
- n = r[i](e, i, t, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (l) {
341
- n = l;
342
- }
343
- n && !(n instanceof Error) && (U(o), v("%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), U(null)), n instanceof Error && !(n.message in dr) && (dr[n.message] = !0, U(o), v("Failed %s type: %s", a, n.message), U(null));
344
- }
345
- }
346
- }
347
- var qr = Array.isArray;
348
- function J(r) {
349
- return qr(r);
350
- }
351
- function Br(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 Jr(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 (Jr(r))
369
- return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Br(r)), pr(r);
370
- }
371
- var $ = j.ReactCurrentOwner, Kr = {
372
- key: !0,
373
- ref: !0,
374
- __self: !0,
375
- __source: !0
376
- }, gr, hr, K;
377
- K = {};
378
- function Gr(r) {
379
- if (A.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 (A.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" && $.current && e && $.current.stateNode !== e) {
396
- var a = m($.current.type);
397
- K[a] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', m($.current.type), r.ref), K[a] = !0);
398
- }
399
- }
400
- function Zr(r, e) {
401
- {
402
- var a = function() {
403
- gr || (gr = !0, v("%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
- hr || (hr = !0, v("%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: u,
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, b = null;
454
- a !== void 0 && (br(a), n = "" + a), Xr(e) && (br(e.key), n = "" + e.key), Gr(e) && (b = e.ref, Hr(e, o));
455
- for (s in e)
456
- A.call(e, s) && !Kr.hasOwnProperty(s) && (i[s] = e[s]);
457
- if (r && r.defaultProps) {
458
- var l = r.defaultProps;
459
- for (s in l)
460
- i[s] === void 0 && (i[s] = l[s]);
461
- }
462
- if (n || b) {
463
- var c = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
464
- n && Zr(i, c), b && Qr(i, c);
465
- }
466
- return re(r, n, b, o, t, $.current, i);
467
- }
468
- }
469
- var G = j.ReactCurrentOwner, yr = j.ReactDebugCurrentFrame;
470
- function P(r) {
471
- if (r) {
472
- var e = r._owner, a = M(r.type, r._source, e ? e.type : null);
473
- yr.setExtraStackFrame(a);
474
- } else
475
- yr.setExtraStackFrame(null);
476
- }
477
- var X;
478
- X = !1;
479
- function H(r) {
480
- return typeof r == "object" && r !== null && r.$$typeof === u;
481
- }
482
- function mr() {
483
- {
484
- if (G.current) {
485
- var r = m(G.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 !== G.current && (t = " It was passed a child from " + m(r._owner.type) + "."), P(r), v('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), P(null);
529
- }
530
- }
531
- function _r(r, e) {
532
- {
533
- if (typeof r != "object")
534
- return;
535
- if (J(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 = Pr(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 === p || // Note: Memo only checks outer props here.
559
- // Inner props are checked in the reconciler.
560
- e.$$typeof === E))
561
- a = e.propTypes;
562
- else
563
- return;
564
- if (a) {
565
- var t = m(e);
566
- zr(a, r.props, "prop", t, r);
567
- } else if (e.PropTypes !== void 0 && !X) {
568
- X = !0;
569
- var o = m(e);
570
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
571
- }
572
- typeof e.getDefaultProps == "function" && !e.getDefaultProps.isReactClassApproved && v("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
- P(r), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), P(null);
581
- break;
582
- }
583
- }
584
- r.ref !== null && (P(r), v("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
585
- }
586
- }
587
- var Tr = {};
588
- function wr(r, e, a, t, o, s) {
589
- {
590
- var i = Wr(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 b = ae(o);
595
- b ? n += b : n += mr();
596
- var l;
597
- r === null ? l = "null" : J(r) ? l = "array" : r !== void 0 && r.$$typeof === u ? (l = "<" + (m(r.type) || "Unknown") + " />", n = " Did you accidentally export a JSX literal instead of a component?") : l = typeof r, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, n);
598
- }
599
- var c = ee(r, e, a, o, s);
600
- if (c == null)
601
- return c;
602
- if (i) {
603
- var y = e.children;
604
- if (y !== void 0)
605
- if (t)
606
- if (J(y)) {
607
- for (var k = 0; k < y.length; k++)
608
- _r(y[k], r);
609
- Object.freeze && Object.freeze(y);
610
- } else
611
- v("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 (A.call(e, "key")) {
616
- var S = m(r), g = Object.keys(e).filter(function(fe) {
617
- return fe !== "key";
618
- }), Z = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
619
- if (!Tr[S + Z]) {
620
- var ce = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
621
- v(`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, S, ce, S), Tr[S + Z] = !0;
627
- }
628
- }
629
- return r === R ? ie(c) : ne(c), c;
630
- }
631
- }
632
- function oe(r, e, a) {
633
- return wr(r, e, a, !0);
634
- }
635
- function se(r, e, a) {
636
- return wr(r, e, a, !1);
637
- }
638
- var ue = se, le = oe;
639
- W.Fragment = R, W.jsx = ue, W.jsxs = le;
640
- }()), W;
641
- }
642
- process.env.NODE_ENV === "production" ? Q.exports = de() : Q.exports = ve();
643
- var O = Q.exports;
644
- const pe = `* {
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ const o = `* {
645
3
  margin: 0;
646
4
  padding: 0;
647
5
  box-sizing: border-box !important;
@@ -731,48 +89,48 @@ const pe = `* {
731
89
  .starasia-table-full-width {
732
90
  width: 100%;
733
91
  }
734
- `, Or = "starasia-table-styles", be = (f) => {
735
- if (!document.getElementById(Or)) {
736
- const u = document.createElement("style");
737
- u.id = Or, u.textContent = f, document.head.appendChild(u);
92
+ `, r = "starasia-table-styles", l = (t) => {
93
+ if (!document.getElementById(r)) {
94
+ const a = document.createElement("style");
95
+ a.id = r, a.textContent = t, document.head.appendChild(a);
738
96
  }
739
97
  };
740
- be(pe);
741
- const he = (f) => {
742
- const { children: u, fullWidth: d = !1, variant: R = "unstyled", ..._ } = f;
743
- return /* @__PURE__ */ O.jsx(
98
+ l(o);
99
+ const d = (t) => {
100
+ const { children: a, fullWidth: s = !1, variant: e = "unstyled", ...i } = t;
101
+ return /* @__PURE__ */ n(
744
102
  "table",
745
103
  {
746
- ..._,
747
- className: `starasia-table starasia-table-${R} ${d ? "starasia-table-full-width " : ""} ${_.className}`,
748
- children: u
104
+ ...i,
105
+ className: `starasia-table starasia-table-${e} ${s ? "starasia-table-full-width " : ""} ${i.className}`,
106
+ children: a
749
107
  }
750
108
  );
751
- }, ye = (f) => {
752
- const { children: u, ...d } = f;
753
- return /* @__PURE__ */ O.jsx("thead", { ...d, children: u });
754
- }, me = (f) => {
755
- const { children: u, ...d } = f;
756
- return /* @__PURE__ */ O.jsx("tbody", { ...d, children: u });
757
- }, Ee = (f) => {
758
- const { children: u, ...d } = f;
759
- return /* @__PURE__ */ O.jsx("tfoot", { ...d, children: u });
760
- }, Re = (f) => {
761
- const { children: u, ...d } = f;
762
- return /* @__PURE__ */ O.jsx("tr", { ...d, children: u });
763
- }, _e = (f) => {
764
- const { children: u, ...d } = f;
765
- return /* @__PURE__ */ O.jsx("th", { ...d, className: `starasia-table-th ${d.className}`, children: u });
766
- }, Te = (f) => {
767
- const { children: u, ...d } = f;
768
- return /* @__PURE__ */ O.jsx("td", { ...d, className: `starasia-table-td ${d.className}`, children: u });
109
+ }, c = (t) => {
110
+ const { children: a, ...s } = t;
111
+ return /* @__PURE__ */ n("thead", { ...s, children: a });
112
+ }, b = (t) => {
113
+ const { children: a, ...s } = t;
114
+ return /* @__PURE__ */ n("tbody", { ...s, children: a });
115
+ }, p = (t) => {
116
+ const { children: a, ...s } = t;
117
+ return /* @__PURE__ */ n("tfoot", { ...s, children: a });
118
+ }, g = (t) => {
119
+ const { children: a, ...s } = t;
120
+ return /* @__PURE__ */ n("tr", { ...s, children: a });
121
+ }, h = (t) => {
122
+ const { children: a, ...s } = t;
123
+ return /* @__PURE__ */ n("th", { ...s, className: `starasia-table-th ${s.className}`, children: a });
124
+ }, f = (t) => {
125
+ const { children: a, ...s } = t;
126
+ return /* @__PURE__ */ n("td", { ...s, className: `starasia-table-td ${s.className}`, children: a });
769
127
  };
770
128
  export {
771
- he as Table,
772
- me as Tbody,
773
- Te as Td,
774
- Ee as Tfoot,
775
- _e as Th,
776
- ye as Thead,
777
- Re as Tr
129
+ d as Table,
130
+ b as Tbody,
131
+ f as Td,
132
+ p as Tfoot,
133
+ h as Th,
134
+ c as Thead,
135
+ g as Tr
778
136
  };
package/dist/table.umd.js CHANGED
@@ -1,35 +1,4 @@
1
- (function(h,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],C):(h=typeof globalThis<"u"?globalThis:h||self,C(h.Table={},h.React))})(this,function(h,C){"use strict";var B={exports:{}},A={};/**
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 te;function Pe(){if(te)return A;te=1;var f=C,u=Symbol.for("react.element"),d=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,w=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function W(S,p,P){var y,R={},x=null,M=null;P!==void 0&&(x=""+P),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(M=p.ref);for(y in p)_.call(p,y)&&!L.hasOwnProperty(y)&&(R[y]=p[y]);if(S&&S.defaultProps)for(y in p=S.defaultProps,p)R[y]===void 0&&(R[y]=p[y]);return{$$typeof:u,type:S,key:x,ref:M,props:R,_owner:w.current}}return A.Fragment=d,A.jsx=W,A.jsxs=W,A}var I={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var ae;function ke(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var f=C,u=Symbol.for("react.element"),d=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),S=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ie=Symbol.iterator,Le="@@iterator";function Me(e){if(e===null||typeof e!="object")return null;var r=ie&&e[ie]||e[Le];return typeof r=="function"?r:null}var k=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];Ve("error",e,t)}}function Ve(e,r,t){{var a=k.ReactDebugCurrentFrame,o=a.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ue=!1,ze=!1,qe=!1,Be=!1,Je=!1,oe;oe=Symbol.for("react.module.reference");function Ke(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===L||Je||e===w||e===P||e===y||Be||e===M||Ue||ze||qe||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===R||e.$$typeof===W||e.$$typeof===S||e.$$typeof===p||e.$$typeof===oe||e.getModuleId!==void 0))}function Ge(e,r,t){var a=e.displayName;if(a)return a;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function se(e){return e.displayName||"Context"}function E(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case d:return"Portal";case L:return"Profiler";case w:return"StrictMode";case P:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return se(r)+".Consumer";case W:var t=e;return se(t._context)+".Provider";case p:return Ge(e,e.render,"ForwardRef");case R:var a=e.displayName||null;return a!==null?a:E(e.type)||"Memo";case x:{var o=e,s=o._payload,i=o._init;try{return E(i(s))}catch{return null}}}return null}var O=Object.assign,$=0,ue,le,ce,fe,de,ve,pe;function be(){}be.__reactDisabledLog=!0;function Xe(){{if($===0){ue=console.log,le=console.info,ce=console.warn,fe=console.error,de=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function He(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:ue}),info:O({},e,{value:le}),warn:O({},e,{value:ce}),error:O({},e,{value:fe}),group:O({},e,{value:de}),groupCollapsed:O({},e,{value:ve}),groupEnd:O({},e,{value:pe})})}$<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=k.ReactCurrentDispatcher,K;function V(e,r,t){{if(K===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);K=a&&a[1]||""}return`
18
- `+K+e}}var G=!1,U;{var Ze=typeof WeakMap=="function"?WeakMap:Map;U=new Ze}function ge(e,r){if(!e||G)return"";{var t=U.get(e);if(t!==void 0)return t}var a;G=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=J.current,J.current=null,Xe();try{if(r){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(g){a=g}Reflect.construct(e,[],i)}else{try{i.call()}catch(g){a=g}e.call(i.prototype)}}else{try{throw Error()}catch(g){a=g}e()}}catch(g){if(g&&a&&typeof g.stack=="string"){for(var n=g.stack.split(`
19
- `),b=a.stack.split(`
20
- `),l=n.length-1,c=b.length-1;l>=1&&c>=0&&n[l]!==b[c];)c--;for(;l>=1&&c>=0;l--,c--)if(n[l]!==b[c]){if(l!==1||c!==1)do if(l--,c--,c<0||n[l]!==b[c]){var m=`
21
- `+n[l].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,m),m}while(l>=1&&c>=0);break}}}finally{G=!1,J.current=s,He(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",j=F?V(F):"";return typeof e=="function"&&U.set(e,j),j}function Qe(e,r,t){return ge(e,!1)}function er(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function z(e,r,t){if(e==null)return"";if(typeof e=="function")return ge(e,er(e));if(typeof e=="string")return V(e);switch(e){case P:return V("Suspense");case y:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Qe(e.render);case R:return z(e.type,r,t);case x:{var a=e,o=a._payload,s=a._init;try{return z(s(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,he={},ye=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function rr(e,r,t,a,o){{var s=Function.call.bind(Y);for(var i in e)if(s(e,i)){var n=void 0;try{if(typeof e[i]!="function"){var b=Error((a||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}n=e[i](r,i,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){n=l}n&&!(n instanceof Error)&&(q(o),v("%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).",a||"React class",t,i,typeof n),q(null)),n instanceof Error&&!(n.message in he)&&(he[n.message]=!0,q(o),v("Failed %s type: %s",t,n.message),q(null))}}}var tr=Array.isArray;function X(e){return tr(e)}function ar(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function nr(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function Ee(e){if(nr(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ar(e)),me(e)}var N=k.ReactCurrentOwner,ir={key:!0,ref:!0,__self:!0,__source:!0},Re,_e,H;H={};function or(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function sr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ur(e,r){if(typeof e.ref=="string"&&N.current&&r&&N.current.stateNode!==r){var t=E(N.current.type);H[t]||(v('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',E(N.current.type),e.ref),H[t]=!0)}}function lr(e,r){{var t=function(){Re||(Re=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function cr(e,r){{var t=function(){_e||(_e=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var fr=function(e,r,t,a,o,s,i){var n={$$typeof:u,type:e,key:r,ref:t,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:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function dr(e,r,t,a,o){{var s,i={},n=null,b=null;t!==void 0&&(Ee(t),n=""+t),sr(r)&&(Ee(r.key),n=""+r.key),or(r)&&(b=r.ref,ur(r,o));for(s in r)Y.call(r,s)&&!ir.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(n||b){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&lr(i,c),b&&cr(i,c)}return fr(e,n,b,o,a,N.current,i)}}var Z=k.ReactCurrentOwner,Te=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function we(){{if(Z.current){var e=E(Z.current.type);if(e)return`
22
-
23
- Check the render method of \``+e+"`."}return""}}function vr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
-
25
- Check your code at `+r+":"+t+"."}return""}}var Se={};function pr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
-
27
- Check the top-level render call using <`+t+">.")}return r}}function xe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=pr(r);if(Se[t])return;Se[t]=!0;var a="";e&&e._owner&&e._owner!==Z.current&&(a=" It was passed a child from "+E(e._owner.type)+"."),D(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),D(null)}}function Oe(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var a=e[t];ee(a)&&xe(a,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=Me(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)ee(i.value)&&xe(i.value,r)}}}function br(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===R))t=r.propTypes;else return;if(t){var a=E(r);rr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=E(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){D(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),D(null);break}}e.ref!==null&&(D(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}var je={};function Ce(e,r,t,a,o,s){{var i=Ke(e);if(!i){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).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 b=vr(o);b?n+=b:n+=we();var l;e===null?l="null":X(e)?l="array":e!==void 0&&e.$$typeof===u?(l="<"+(E(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,n)}var c=dr(e,r,t,o,s);if(c==null)return c;if(i){var m=r.children;if(m!==void 0)if(a)if(X(m)){for(var F=0;F<m.length;F++)Oe(m[F],e);Object.freeze&&Object.freeze(m)}else v("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 Oe(m,e)}if(Y.call(r,"key")){var j=E(e),g=Object.keys(r).filter(function(_r){return _r!=="key"}),re=g.length>0?"{key: someKey, "+g.join(": ..., ")+": ...}":"{key: someKey}";if(!je[j+re]){var Rr=g.length>0?"{"+g.join(": ..., ")+": ...}":"{}";v(`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} />`,re,j,Rr,j),je[j+re]=!0}}return e===_?gr(c):br(c),c}}function hr(e,r,t){return Ce(e,r,t,!0)}function yr(e,r,t){return Ce(e,r,t,!1)}var mr=yr,Er=hr;I.Fragment=_,I.jsx=mr,I.jsxs=Er}()),I}process.env.NODE_ENV==="production"?B.exports=Pe():B.exports=ke();var T=B.exports;const De=`* {
1
+ (function(s,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],i):(s=typeof globalThis<"u"?globalThis:s||self,i(s.Table={},s.jsxRuntime))})(this,function(s,i){"use strict";const o=`* {
33
2
  margin: 0;
34
3
  padding: 0;
35
4
  box-sizing: border-box !important;
@@ -119,4 +88,4 @@ React keys must be passed directly to JSX without using spread:
119
88
  .starasia-table-full-width {
120
89
  width: 100%;
121
90
  }
122
- `,ne="starasia-table-styles";(f=>{if(!document.getElementById(ne)){const u=document.createElement("style");u.id=ne,u.textContent=f,document.head.appendChild(u)}})(De);const Fe=f=>{const{children:u,fullWidth:d=!1,variant:_="unstyled",...w}=f;return T.jsx("table",{...w,className:`starasia-table starasia-table-${_} ${d?"starasia-table-full-width ":""} ${w.className}`,children:u})},Ae=f=>{const{children:u,...d}=f;return T.jsx("thead",{...d,children:u})},Ie=f=>{const{children:u,...d}=f;return T.jsx("tbody",{...d,children:u})},We=f=>{const{children:u,...d}=f;return T.jsx("tfoot",{...d,children:u})},$e=f=>{const{children:u,...d}=f;return T.jsx("tr",{...d,children:u})},Ye=f=>{const{children:u,...d}=f;return T.jsx("th",{...d,className:`starasia-table-th ${d.className}`,children:u})},Ne=f=>{const{children:u,...d}=f;return T.jsx("td",{...d,className:`starasia-table-td ${d.className}`,children:u})};h.Table=Fe,h.Tbody=Ie,h.Td=Ne,h.Tfoot=We,h.Th=Ye,h.Thead=Ae,h.Tr=$e,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
91
+ `,r="starasia-table-styles";(t=>{if(!document.getElementById(r)){const a=document.createElement("style");a.id=r,a.textContent=t,document.head.appendChild(a)}})(o);const l=t=>{const{children:a,fullWidth:n=!1,variant:h="unstyled",...e}=t;return i.jsx("table",{...e,className:`starasia-table starasia-table-${h} ${n?"starasia-table-full-width ":""} ${e.className}`,children:a})},d=t=>{const{children:a,...n}=t;return i.jsx("thead",{...n,children:a})},u=t=>{const{children:a,...n}=t;return i.jsx("tbody",{...n,children:a})},c=t=>{const{children:a,...n}=t;return i.jsx("tfoot",{...n,children:a})},b=t=>{const{children:a,...n}=t;return i.jsx("tr",{...n,children:a})},f=t=>{const{children:a,...n}=t;return i.jsx("th",{...n,className:`starasia-table-th ${n.className}`,children:a})},g=t=>{const{children:a,...n}=t;return i.jsx("td",{...n,className:`starasia-table-td ${n.className}`,children:a})};s.Table=l,s.Tbody=u,s.Td=g,s.Tfoot=c,s.Th=f,s.Thead=d,s.Tr=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starasia/table",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "table component for starasia UI",
5
5
  "author": "Prawito Hudoro",
6
6
  "main": "dist/table.umd.js",
@@ -12,10 +12,6 @@
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",
@@ -37,5 +33,9 @@
37
33
  "react-dom": "^18.2.0",
38
34
  "@types/react": "^18.2.55",
39
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"
40
40
  }
41
- }
41
+ }