webadwaita 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,9 +4,9 @@ export declare function Heading({ children }: any): JSX_2.Element;
4
4
 
5
5
  export declare function List({ children }: any): JSX_2.Element;
6
6
 
7
- export declare function ListItem({ children, action, }: {
7
+ export declare function ListItem({ onClick, children, }: {
8
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
8
9
  children: React.ReactNode;
9
- action?: React.ReactNode;
10
10
  }): JSX_2.Element;
11
11
 
12
12
  declare function Window_2({ children }: any): JSX_2.Element;
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import we from "react";
2
- var X = { exports: {} }, D = {};
2
+ var X = { exports: {} }, k = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,25 @@ var X = { exports: {} }, D = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var xe;
12
+ var Te;
13
13
  function ur() {
14
- if (xe)
15
- return D;
16
- xe = 1;
14
+ if (Te)
15
+ return k;
16
+ Te = 1;
17
17
  var g = we, E = Symbol.for("react.element"), M = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, A = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function S(y, f, w) {
19
- var v, m = {}, _ = null, N = null;
20
- w !== void 0 && (_ = "" + w), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (N = f.ref);
18
+ function P(y, f, x) {
19
+ var v, b = {}, _ = null, W = null;
20
+ x !== void 0 && (_ = "" + x), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (W = f.ref);
21
21
  for (v in f)
22
- T.call(f, v) && !I.hasOwnProperty(v) && (m[v] = f[v]);
22
+ T.call(f, v) && !I.hasOwnProperty(v) && (b[v] = f[v]);
23
23
  if (y && y.defaultProps)
24
24
  for (v in f = y.defaultProps, f)
25
- m[v] === void 0 && (m[v] = f[v]);
26
- return { $$typeof: E, type: y, key: _, ref: N, props: m, _owner: A.current };
25
+ b[v] === void 0 && (b[v] = f[v]);
26
+ return { $$typeof: E, type: y, key: _, ref: W, props: b, _owner: A.current };
27
27
  }
28
- return D.Fragment = M, D.jsx = S, D.jsxs = S, D;
28
+ return k.Fragment = M, k.jsx = P, k.jsxs = P, k;
29
29
  }
30
- var F = {};
30
+ var D = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,17 +37,17 @@ var F = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Te;
40
+ var xe;
41
41
  function sr() {
42
- return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
43
- var g = we, E = Symbol.for("react.element"), M = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), Z = Symbol.iterator, Oe = "@@iterator";
42
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var g = we, E = Symbol.for("react.element"), M = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Z = Symbol.iterator, Oe = "@@iterator";
44
44
  function Ce(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
47
  var r = Z && e[Z] || e[Oe];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var O = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var w = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function c(e) {
52
52
  {
53
53
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
@@ -57,7 +57,7 @@ function sr() {
57
57
  }
58
58
  function Pe(e, r, t) {
59
59
  {
60
- var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
60
+ var n = w.ReactDebugCurrentFrame, o = n.getStackAddendum();
61
61
  o !== "" && (r += "%s", t = t.concat([o]));
62
62
  var u = t.map(function(i) {
63
63
  return String(i);
@@ -68,7 +68,7 @@ function sr() {
68
68
  var Se = !1, je = !1, ke = !1, De = !1, Fe = !1, Q;
69
69
  Q = Symbol.for("react.module.reference");
70
70
  function Ae(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || Fe || e === A || e === w || e === v || De || e === N || Se || je || ke || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === m || e.$$typeof === S || e.$$typeof === y || e.$$typeof === f || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || Fe || e === A || e === x || e === v || De || e === W || Se || je || ke || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === P || e.$$typeof === y || e.$$typeof === f || // 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.
@@ -84,7 +84,7 @@ function sr() {
84
84
  function ee(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function b(e) {
87
+ function m(e) {
88
88
  if (e == null)
89
89
  return null;
90
90
  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")
@@ -100,7 +100,7 @@ function sr() {
100
100
  return "Profiler";
101
101
  case A:
102
102
  return "StrictMode";
103
- case w:
103
+ case x:
104
104
  return "Suspense";
105
105
  case v:
106
106
  return "SuspenseList";
@@ -110,18 +110,18 @@ function sr() {
110
110
  case y:
111
111
  var r = e;
112
112
  return ee(r) + ".Consumer";
113
- case S:
113
+ case P:
114
114
  var t = e;
115
115
  return ee(t._context) + ".Provider";
116
116
  case f:
117
117
  return Ie(e, e.render, "ForwardRef");
118
- case m:
118
+ case b:
119
119
  var n = e.displayName || null;
120
- return n !== null ? n : b(e.type) || "Memo";
120
+ return n !== null ? n : m(e.type) || "Memo";
121
121
  case _: {
122
122
  var o = e, u = o._payload, i = o._init;
123
123
  try {
124
- return b(i(u));
124
+ return m(i(u));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,13 +129,13 @@ function sr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var R = Object.assign, j = 0, re, te, ne, ae, ie, oe, ue;
132
+ var R = Object.assign, S = 0, re, te, ne, ae, ie, oe, ue;
133
133
  function se() {
134
134
  }
135
135
  se.__reactDisabledLog = !0;
136
- function Ne() {
136
+ function We() {
137
137
  {
138
- if (j === 0) {
138
+ if (S === 0) {
139
139
  re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
@@ -153,12 +153,12 @@ function sr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- j++;
156
+ S++;
157
157
  }
158
158
  }
159
- function We() {
159
+ function $e() {
160
160
  {
161
- if (j--, j === 0) {
161
+ if (S--, S === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
@@ -188,11 +188,11 @@ function sr() {
188
188
  })
189
189
  });
190
190
  }
191
- j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ S < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var U = O.ReactCurrentDispatcher, B;
195
- function W(e, r, t) {
194
+ var U = w.ReactCurrentDispatcher, B;
195
+ function $(e, r, t) {
196
196
  {
197
197
  if (B === void 0)
198
198
  try {
@@ -205,16 +205,16 @@ function sr() {
205
205
  ` + B + e;
206
206
  }
207
207
  }
208
- var q = !1, $;
208
+ var q = !1, N;
209
209
  {
210
- var $e = typeof WeakMap == "function" ? WeakMap : Map;
211
- $ = new $e();
210
+ var Ne = typeof WeakMap == "function" ? WeakMap : Map;
211
+ N = new Ne();
212
212
  }
213
213
  function le(e, r) {
214
214
  if (!e || q)
215
215
  return "";
216
216
  {
217
- var t = $.get(e);
217
+ var t = N.get(e);
218
218
  if (t !== void 0)
219
219
  return t;
220
220
  }
@@ -223,7 +223,7 @@ function sr() {
223
223
  var o = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var u;
226
- u = U.current, U.current = null, Ne();
226
+ u = U.current, U.current = null, We();
227
227
  try {
228
228
  if (r) {
229
229
  var i = function() {
@@ -269,17 +269,17 @@ function sr() {
269
269
  if (s--, l--, l < 0 || a[s] !== d[l]) {
270
270
  var p = `
271
271
  ` + a[s].replace(" at new ", " at ");
272
- return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, p), p;
272
+ return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, p), p;
273
273
  }
274
274
  while (s >= 1 && l >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- q = !1, U.current = u, We(), Error.prepareStackTrace = o;
279
+ q = !1, U.current = u, $e(), Error.prepareStackTrace = o;
280
280
  }
281
- var P = e ? e.displayName || e.name : "", Re = P ? W(P) : "";
282
- return typeof e == "function" && $.set(e, Re), Re;
281
+ var C = e ? e.displayName || e.name : "", Re = C ? $(C) : "";
282
+ return typeof e == "function" && N.set(e, Re), Re;
283
283
  }
284
284
  function Ye(e, r, t) {
285
285
  return le(e, !1);
@@ -294,18 +294,18 @@ function sr() {
294
294
  if (typeof e == "function")
295
295
  return le(e, Le(e));
296
296
  if (typeof e == "string")
297
- return W(e);
297
+ return $(e);
298
298
  switch (e) {
299
- case w:
300
- return W("Suspense");
299
+ case x:
300
+ return $("Suspense");
301
301
  case v:
302
- return W("SuspenseList");
302
+ return $("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case f:
307
307
  return Ye(e.render);
308
- case m:
308
+ case b:
309
309
  return Y(e.type, r, t);
310
310
  case _: {
311
311
  var n = e, o = n._payload, u = n._init;
@@ -317,7 +317,7 @@ function sr() {
317
317
  }
318
318
  return "";
319
319
  }
320
- var L = Object.prototype.hasOwnProperty, fe = {}, ce = O.ReactDebugCurrentFrame;
320
+ var L = Object.prototype.hasOwnProperty, fe = {}, ce = w.ReactDebugCurrentFrame;
321
321
  function V(e) {
322
322
  if (e) {
323
323
  var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
@@ -368,7 +368,7 @@ function sr() {
368
368
  if (Be(e))
369
369
  return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ue(e)), de(e);
370
370
  }
371
- var k = O.ReactCurrentOwner, qe = {
371
+ var j = w.ReactCurrentOwner, qe = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
@@ -392,9 +392,9 @@ function sr() {
392
392
  return e.key !== void 0;
393
393
  }
394
394
  function ze(e, r) {
395
- if (typeof e.ref == "string" && k.current && r && k.current.stateNode !== r) {
396
- var t = b(k.current.type);
397
- G[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', b(k.current.type), e.ref), G[t] = !0);
395
+ if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) {
396
+ var t = m(j.current.type);
397
+ G[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', m(j.current.type), e.ref), G[t] = !0);
398
398
  }
399
399
  }
400
400
  function He(e, r) {
@@ -463,26 +463,26 @@ function sr() {
463
463
  var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
464
  a && He(i, l), d && Ke(i, l);
465
465
  }
466
- return Xe(e, a, d, o, n, k.current, i);
466
+ return Xe(e, a, d, o, n, j.current, i);
467
467
  }
468
468
  }
469
- var z = O.ReactCurrentOwner, me = O.ReactDebugCurrentFrame;
470
- function C(e) {
469
+ var z = w.ReactCurrentOwner, be = w.ReactDebugCurrentFrame;
470
+ function O(e) {
471
471
  if (e) {
472
472
  var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
473
- me.setExtraStackFrame(t);
473
+ be.setExtraStackFrame(t);
474
474
  } else
475
- me.setExtraStackFrame(null);
475
+ be.setExtraStackFrame(null);
476
476
  }
477
477
  var H;
478
478
  H = !1;
479
479
  function K(e) {
480
480
  return typeof e == "object" && e !== null && e.$$typeof === E;
481
481
  }
482
- function be() {
482
+ function me() {
483
483
  {
484
484
  if (z.current) {
485
- var e = b(z.current.type);
485
+ var e = m(z.current.type);
486
486
  if (e)
487
487
  return `
488
488
 
@@ -505,7 +505,7 @@ Check your code at ` + r + ":" + t + ".";
505
505
  var he = {};
506
506
  function er(e) {
507
507
  {
508
- var r = be();
508
+ var r = me();
509
509
  if (!r) {
510
510
  var t = typeof e == "string" ? e : e.displayName || e.name;
511
511
  t && (r = `
@@ -525,7 +525,7 @@ Check the top-level render call using <` + t + ">.");
525
525
  return;
526
526
  he[t] = !0;
527
527
  var n = "";
528
- e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + b(e._owner.type) + "."), C(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), C(null);
528
+ e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + m(e._owner.type) + "."), O(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), O(null);
529
529
  }
530
530
  }
531
531
  function ye(e, r) {
@@ -557,16 +557,16 @@ Check the top-level render call using <` + t + ">.");
557
557
  t = r.propTypes;
558
558
  else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
- r.$$typeof === m))
560
+ r.$$typeof === b))
561
561
  t = r.propTypes;
562
562
  else
563
563
  return;
564
564
  if (t) {
565
- var n = b(r);
565
+ var n = m(r);
566
566
  Ve(t, e.props, "prop", n, e);
567
567
  } else if (r.PropTypes !== void 0 && !H) {
568
568
  H = !0;
569
- var o = b(r);
569
+ var o = m(r);
570
570
  c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
571
571
  }
572
572
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -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 n = r[t];
579
579
  if (n !== "children" && n !== "key") {
580
- C(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
580
+ O(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), O(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
584
+ e.ref !== null && (O(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), O(null));
585
585
  }
586
586
  }
587
587
  function _e(e, r, t, n, o, u) {
@@ -591,9 +591,9 @@ Check the top-level render call using <` + t + ">.");
591
591
  var a = "";
592
592
  (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.");
593
593
  var d = Qe(o);
594
- d ? a += d : a += be();
594
+ d ? a += d : a += me();
595
595
  var s;
596
- e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === E ? (s = "<" + (b(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);
596
+ e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === E ? (s = "<" + (m(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);
597
597
  }
598
598
  var l = Ze(e, r, t, o, u);
599
599
  if (l == null)
@@ -603,8 +603,8 @@ Check the top-level render call using <` + t + ">.");
603
603
  if (p !== void 0)
604
604
  if (n)
605
605
  if (J(p)) {
606
- for (var P = 0; P < p.length; P++)
607
- ye(p[P], e);
606
+ for (var C = 0; C < p.length; C++)
607
+ ye(p[C], e);
608
608
  Object.freeze && Object.freeze(p);
609
609
  } else
610
610
  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.");
@@ -621,28 +621,32 @@ Check the top-level render call using <` + t + ">.");
621
621
  return _e(e, r, t, !1);
622
622
  }
623
623
  var ir = ar, or = nr;
624
- F.Fragment = T, F.jsx = ir, F.jsxs = or;
625
- }()), F;
624
+ D.Fragment = T, D.jsx = ir, D.jsxs = or;
625
+ }()), D;
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? X.exports = ur() : X.exports = sr();
628
- var x = X.exports;
628
+ var F = X.exports;
629
629
  function fr({ children: g }) {
630
- return /* @__PURE__ */ x.jsx("p", { className: "font-bold dark:text-white", children: g });
630
+ return /* @__PURE__ */ F.jsx("p", { className: "font-bold dark:text-white", children: g });
631
631
  }
632
632
  function cr({ children: g }) {
633
- return /* @__PURE__ */ x.jsx("div", { className: "flex flex-col divide-y divide-[#242424]", children: g });
633
+ return /* @__PURE__ */ F.jsx("div", { className: "flex flex-col divide-y divide-[#242424] shadow", children: g });
634
634
  }
635
635
  function dr({
636
- children: g,
637
- action: E
636
+ onClick: g,
637
+ children: E
638
638
  }) {
639
- return /* @__PURE__ */ x.jsxs("div", { className: "flex flex-row gap-2 dark:hover:bg-[#3c3c3c] transition duration-300 justify-between items-center p-4 first:rounded-t-lg last:rounded-b-lg text-white dark:bg-[#363636]", children: [
640
- /* @__PURE__ */ x.jsx("div", { className: "flex flex-col", children: g }),
641
- /* @__PURE__ */ x.jsx("div", { className: "flex flex-row", children: E })
642
- ] });
639
+ return /* @__PURE__ */ F.jsx(
640
+ "div",
641
+ {
642
+ onClick: g,
643
+ className: "flex flex-row gap-2 dark:hover:bg-[#3c3c3c] transition duration-300 justify-between items-center p-4 first:rounded-t-lg last:rounded-b-lg text-white dark:bg-[#363636]",
644
+ children: E
645
+ }
646
+ );
643
647
  }
644
648
  function vr({ children: g }) {
645
- return /* @__PURE__ */ x.jsx("div", { className: "bg-[#242424] p-3 flex flex-col w-screen h-screen items-center", children: /* @__PURE__ */ x.jsx("div", { className: "flex flex-col gap-3 max-w-xl w-full", children: g }) });
649
+ return /* @__PURE__ */ F.jsx("div", { className: "bg-[#242424] p-3 flex flex-col w-screen h-screen items-center", children: /* @__PURE__ */ F.jsx("div", { className: "flex flex-col gap-3 max-w-xl w-full", children: g }) });
646
650
  }
647
651
  export {
648
652
  fr as Heading,