webadwaita 0.0.10 → 0.0.11
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/index.d.ts +1 -1
- package/dist/index.es.js +56 -52
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare function Button({ variant, icon, circle, children, }: {
|
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}): JSX_2.Element;
|
|
11
11
|
|
|
12
|
-
export declare function Entry({ placeholder }: {
|
|
12
|
+
export declare function Entry({ placeholder, ...props }: {
|
|
13
13
|
placeholder?: string;
|
|
14
14
|
}): JSX_2.Element;
|
|
15
15
|
|
package/dist/index.es.js
CHANGED
|
@@ -14,16 +14,16 @@ function sr() {
|
|
|
14
14
|
if (Re)
|
|
15
15
|
return z;
|
|
16
16
|
Re = 1;
|
|
17
|
-
var f = we,
|
|
18
|
-
function S(_,
|
|
17
|
+
var f = we, d = Symbol.for("react.element"), R = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, b = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function S(_, v, T) {
|
|
19
19
|
var m, y = {}, w = null, N = null;
|
|
20
|
-
T !== void 0 && (w = "" + T),
|
|
21
|
-
for (m in
|
|
22
|
-
g.call(
|
|
20
|
+
T !== void 0 && (w = "" + T), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (N = v.ref);
|
|
21
|
+
for (m in v)
|
|
22
|
+
g.call(v, m) && !$.hasOwnProperty(m) && (y[m] = v[m]);
|
|
23
23
|
if (_ && _.defaultProps)
|
|
24
|
-
for (m in
|
|
25
|
-
y[m] === void 0 && (y[m] =
|
|
26
|
-
return { $$typeof:
|
|
24
|
+
for (m in v = _.defaultProps, v)
|
|
25
|
+
y[m] === void 0 && (y[m] = v[m]);
|
|
26
|
+
return { $$typeof: d, type: _, key: w, ref: N, props: y, _owner: b.current };
|
|
27
27
|
}
|
|
28
28
|
return z.Fragment = R, z.jsx = S, z.jsxs = S, z;
|
|
29
29
|
}
|
|
@@ -40,7 +40,7 @@ var A = {};
|
|
|
40
40
|
var _e;
|
|
41
41
|
function lr() {
|
|
42
42
|
return _e || (_e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var f = we,
|
|
43
|
+
var f = we, d = Symbol.for("react.element"), R = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), _ = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), Z = Symbol.iterator, ke = "@@iterator";
|
|
44
44
|
function Te(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -48,7 +48,7 @@ function lr() {
|
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var P = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function h(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
54
54
|
t[a - 1] = arguments[a];
|
|
@@ -68,7 +68,7 @@ function lr() {
|
|
|
68
68
|
var Oe = !1, Ce = !1, Se = !1, De = !1, Fe = !1, Q;
|
|
69
69
|
Q = Symbol.for("react.module.reference");
|
|
70
70
|
function ze(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === g || e === $ || Fe || e === b || e === T || e === m || De || e === N || Oe || Ce || Se || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === S || e.$$typeof === _ || e.$$typeof ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === g || e === $ || Fe || e === b || e === T || e === m || De || e === N || Oe || Ce || Se || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === S || e.$$typeof === _ || e.$$typeof === v || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -87,7 +87,7 @@ function lr() {
|
|
|
87
87
|
function j(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
@@ -113,7 +113,7 @@ function lr() {
|
|
|
113
113
|
case S:
|
|
114
114
|
var t = e;
|
|
115
115
|
return ee(t._context) + ".Provider";
|
|
116
|
-
case
|
|
116
|
+
case v:
|
|
117
117
|
return Ae(e, e.render, "ForwardRef");
|
|
118
118
|
case y:
|
|
119
119
|
var a = e.displayName || null;
|
|
@@ -188,7 +188,7 @@ function lr() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
D < 0 &&
|
|
191
|
+
D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var V = P.ReactCurrentDispatcher, U;
|
|
@@ -259,14 +259,14 @@ function lr() {
|
|
|
259
259
|
} catch (E) {
|
|
260
260
|
if (E && a && typeof E.stack == "string") {
|
|
261
261
|
for (var i = E.stack.split(`
|
|
262
|
-
`),
|
|
263
|
-
`), u = i.length - 1, c =
|
|
262
|
+
`), p = a.stack.split(`
|
|
263
|
+
`), u = i.length - 1, c = p.length - 1; u >= 1 && c >= 0 && i[u] !== p[c]; )
|
|
264
264
|
c--;
|
|
265
265
|
for (; u >= 1 && c >= 0; u--, c--)
|
|
266
|
-
if (i[u] !==
|
|
266
|
+
if (i[u] !== p[c]) {
|
|
267
267
|
if (u !== 1 || c !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (u--, c--, c < 0 || i[u] !==
|
|
269
|
+
if (u--, c--, c < 0 || i[u] !== p[c]) {
|
|
270
270
|
var x = `
|
|
271
271
|
` + i[u].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, x), x;
|
|
@@ -303,7 +303,7 @@ function lr() {
|
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case v:
|
|
307
307
|
return We(e.render);
|
|
308
308
|
case y:
|
|
309
309
|
return Y(e.type, r, t);
|
|
@@ -333,14 +333,14 @@ function lr() {
|
|
|
333
333
|
var i = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[o] != "function") {
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
var p = Error((a || "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`.");
|
|
337
|
+
throw p.name = "Invariant Violation", p;
|
|
338
338
|
}
|
|
339
339
|
i = e[o](r, o, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (u) {
|
|
341
341
|
i = u;
|
|
342
342
|
}
|
|
343
|
-
i && !(i instanceof Error) && (M(s),
|
|
343
|
+
i && !(i instanceof Error) && (M(s), h("%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, o, typeof i), M(null)), i instanceof Error && !(i.message in ce) && (ce[i.message] = !0, M(s), h("Failed %s type: %s", t, i.message), M(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,7 +366,7 @@ function lr() {
|
|
|
366
366
|
}
|
|
367
367
|
function ve(e) {
|
|
368
368
|
if (Ue(e))
|
|
369
|
-
return
|
|
369
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), de(e);
|
|
370
370
|
}
|
|
371
371
|
var F = P.ReactCurrentOwner, Be = {
|
|
372
372
|
key: !0,
|
|
@@ -394,13 +394,13 @@ function lr() {
|
|
|
394
394
|
function Je(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
|
|
396
396
|
var t = j(F.current.type);
|
|
397
|
-
G[t] || (
|
|
397
|
+
G[t] || (h('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', j(F.current.type), e.ref), G[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function He(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
he || (he = !0,
|
|
403
|
+
he || (he = !0, h("%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));
|
|
404
404
|
};
|
|
405
405
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: t,
|
|
@@ -411,7 +411,7 @@ function lr() {
|
|
|
411
411
|
function Ke(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
pe || (pe = !0,
|
|
414
|
+
pe || (pe = !0, h("%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));
|
|
415
415
|
};
|
|
416
416
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: t,
|
|
@@ -422,7 +422,7 @@ function lr() {
|
|
|
422
422
|
var Xe = function(e, r, t, a, s, l, o) {
|
|
423
423
|
var i = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: d,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
@@ -450,8 +450,8 @@ function lr() {
|
|
|
450
450
|
};
|
|
451
451
|
function Ze(e, r, t, a, s) {
|
|
452
452
|
{
|
|
453
|
-
var l, o = {}, i = null,
|
|
454
|
-
t !== void 0 && (ve(t), i = "" + t), Ge(r) && (ve(r.key), i = "" + r.key), qe(r) && (
|
|
453
|
+
var l, o = {}, i = null, p = null;
|
|
454
|
+
t !== void 0 && (ve(t), i = "" + t), Ge(r) && (ve(r.key), i = "" + r.key), qe(r) && (p = r.ref, Je(r, s));
|
|
455
455
|
for (l in r)
|
|
456
456
|
L.call(r, l) && !Be.hasOwnProperty(l) && (o[l] = r[l]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
@@ -459,11 +459,11 @@ function lr() {
|
|
|
459
459
|
for (l in u)
|
|
460
460
|
o[l] === void 0 && (o[l] = u[l]);
|
|
461
461
|
}
|
|
462
|
-
if (i ||
|
|
462
|
+
if (i || p) {
|
|
463
463
|
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
i && He(o, c),
|
|
464
|
+
i && He(o, c), p && Ke(o, c);
|
|
465
465
|
}
|
|
466
|
-
return Xe(e, i,
|
|
466
|
+
return Xe(e, i, p, s, a, F.current, o);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var J = P.ReactCurrentOwner, me = P.ReactDebugCurrentFrame;
|
|
@@ -477,7 +477,7 @@ function lr() {
|
|
|
477
477
|
var H;
|
|
478
478
|
H = !1;
|
|
479
479
|
function K(e) {
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === d;
|
|
481
481
|
}
|
|
482
482
|
function xe() {
|
|
483
483
|
{
|
|
@@ -525,7 +525,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
525
525
|
return;
|
|
526
526
|
ge[t] = !0;
|
|
527
527
|
var a = "";
|
|
528
|
-
e && e._owner && e._owner !== J.current && (a = " It was passed a child from " + j(e._owner.type) + "."), O(e),
|
|
528
|
+
e && e._owner && e._owner !== J.current && (a = " It was passed a child from " + j(e._owner.type) + "."), O(e), h('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), O(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function ye(e, r) {
|
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
555
555
|
var t;
|
|
556
556
|
if (typeof r == "function")
|
|
557
557
|
t = r.propTypes;
|
|
558
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
558
|
+
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
560
|
r.$$typeof === y))
|
|
561
561
|
t = r.propTypes;
|
|
@@ -567,9 +567,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !H) {
|
|
568
568
|
H = !0;
|
|
569
569
|
var s = j(r);
|
|
570
|
-
|
|
570
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function tr(e) {
|
|
@@ -577,11 +577,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
577
577
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
578
578
|
var a = r[t];
|
|
579
579
|
if (a !== "children" && a !== "key") {
|
|
580
|
-
O(e),
|
|
580
|
+
O(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), O(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (O(e),
|
|
584
|
+
e.ref !== null && (O(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), O(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
function je(e, r, t, a, s, l) {
|
|
@@ -590,10 +590,10 @@ Check the top-level render call using <` + t + ">.");
|
|
|
590
590
|
if (!o) {
|
|
591
591
|
var i = "";
|
|
592
592
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
-
var
|
|
594
|
-
|
|
593
|
+
var p = Qe(s);
|
|
594
|
+
p ? i += p : i += xe();
|
|
595
595
|
var u;
|
|
596
|
-
e === null ? u = "null" : q(e) ? u = "array" : e !== void 0 && e.$$typeof ===
|
|
596
|
+
e === null ? u = "null" : q(e) ? u = "array" : e !== void 0 && e.$$typeof === d ? (u = "<" + (j(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, i);
|
|
597
597
|
}
|
|
598
598
|
var c = Ze(e, r, t, s, l);
|
|
599
599
|
if (c == null)
|
|
@@ -607,7 +607,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
607
607
|
ye(x[C], e);
|
|
608
608
|
Object.freeze && Object.freeze(x);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
611
|
else
|
|
612
612
|
ye(x, e);
|
|
613
613
|
}
|
|
@@ -660,7 +660,7 @@ function cr() {
|
|
|
660
660
|
}
|
|
661
661
|
function fr({
|
|
662
662
|
variant: f,
|
|
663
|
-
icon:
|
|
663
|
+
icon: d,
|
|
664
664
|
circle: R,
|
|
665
665
|
children: g
|
|
666
666
|
}) {
|
|
@@ -683,14 +683,18 @@ function fr({
|
|
|
683
683
|
break;
|
|
684
684
|
}
|
|
685
685
|
return /* @__PURE__ */ n.jsxs("button", { className: b, children: [
|
|
686
|
-
|
|
686
|
+
d,
|
|
687
687
|
g
|
|
688
688
|
] });
|
|
689
689
|
}
|
|
690
|
-
function dr({
|
|
690
|
+
function dr({
|
|
691
|
+
placeholder: f,
|
|
692
|
+
...d
|
|
693
|
+
}) {
|
|
691
694
|
return /* @__PURE__ */ n.jsx(
|
|
692
695
|
"input",
|
|
693
696
|
{
|
|
697
|
+
...d,
|
|
694
698
|
type: "text",
|
|
695
699
|
placeholder: f,
|
|
696
700
|
className: "rounded-md dark:text-white py-2 px-3 dark:bg-[#3a3a3a]"
|
|
@@ -705,7 +709,7 @@ function hr({ children: f }) {
|
|
|
705
709
|
}
|
|
706
710
|
function pr({
|
|
707
711
|
onClick: f,
|
|
708
|
-
children:
|
|
712
|
+
children: d
|
|
709
713
|
}) {
|
|
710
714
|
return /* @__PURE__ */ n.jsx(
|
|
711
715
|
"div",
|
|
@@ -713,7 +717,7 @@ function pr({
|
|
|
713
717
|
onClick: f,
|
|
714
718
|
className: `flex flex-row gap-2 transition duration-300 justify-between items-center p-4 first:rounded-t-xl last:rounded-b-xl text-white dark:bg-[#363636]
|
|
715
719
|
${f ? "dark:hover:bg-[#3c3c3c]" : ""}`,
|
|
716
|
-
children:
|
|
720
|
+
children: d
|
|
717
721
|
}
|
|
718
722
|
);
|
|
719
723
|
}
|
|
@@ -753,24 +757,24 @@ function mr() {
|
|
|
753
757
|
}
|
|
754
758
|
function xr({
|
|
755
759
|
logo: f,
|
|
756
|
-
title:
|
|
760
|
+
title: d,
|
|
757
761
|
description: R
|
|
758
762
|
}) {
|
|
759
763
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center", children: [
|
|
760
764
|
f,
|
|
761
|
-
/* @__PURE__ */ n.jsx("h1", { className: "text-2xl font-black dark:text-white", children:
|
|
765
|
+
/* @__PURE__ */ n.jsx("h1", { className: "text-2xl font-black dark:text-white", children: d }),
|
|
762
766
|
/* @__PURE__ */ n.jsx("p", { className: "dark:text-white", children: R })
|
|
763
767
|
] });
|
|
764
768
|
}
|
|
765
769
|
function gr({
|
|
766
770
|
center: f,
|
|
767
|
-
children:
|
|
771
|
+
children: d
|
|
768
772
|
}) {
|
|
769
773
|
return /* @__PURE__ */ n.jsx(
|
|
770
774
|
"div",
|
|
771
775
|
{
|
|
772
776
|
className: `${f ? "justify-center" : ""} bg-[#242424] p-3 flex flex-col w-screen h-screen items-center`,
|
|
773
|
-
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-3 max-w-xl w-full", children:
|
|
777
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-3 max-w-xl w-full", children: d })
|
|
774
778
|
}
|
|
775
779
|
);
|
|
776
780
|
}
|