tango-ui-cw 0.0.1

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