webadwaita 0.0.11 → 0.0.12

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
@@ -2,7 +2,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
2
2
 
3
3
  export declare function Arrow2TopRight(): JSX_2.Element;
4
4
 
5
- export declare function Button({ variant, icon, circle, children, }: {
5
+ export declare function Button({ variant, icon, circle, children, ...rest }: {
6
6
  variant?: string;
7
7
  icon?: React.ReactNode;
8
8
  circle?: boolean;
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import we from "react";
2
- var X = { exports: {} }, z = {};
2
+ var X = { exports: {} }, A = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -12,22 +12,22 @@ var X = { exports: {} }, z = {};
12
12
  var Re;
13
13
  function sr() {
14
14
  if (Re)
15
- return z;
15
+ return A;
16
16
  Re = 1;
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) {
17
+ var f = we, d = Symbol.for("react.element"), R = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, T = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function D(_, v, P) {
19
19
  var m, y = {}, w = null, N = null;
20
- T !== void 0 && (w = "" + T), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (N = v.ref);
20
+ P !== void 0 && (w = "" + P), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (N = v.ref);
21
21
  for (m in v)
22
- g.call(v, m) && !$.hasOwnProperty(m) && (y[m] = v[m]);
22
+ g.call(v, m) && !b.hasOwnProperty(m) && (y[m] = v[m]);
23
23
  if (_ && _.defaultProps)
24
24
  for (m in v = _.defaultProps, v)
25
25
  y[m] === void 0 && (y[m] = v[m]);
26
- return { $$typeof: d, type: _, key: w, ref: N, props: y, _owner: b.current };
26
+ return { $$typeof: d, type: _, key: w, ref: N, props: y, _owner: T.current };
27
27
  }
28
- return z.Fragment = R, z.jsx = S, z.jsxs = S, z;
28
+ return A.Fragment = R, A.jsx = D, A.jsxs = D, A;
29
29
  }
30
- var A = {};
30
+ var $ = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -40,14 +40,14 @@ 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, 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";
43
+ var f = we, d = Symbol.for("react.element"), R = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), D = Symbol.for("react.provider"), _ = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), P = 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;
47
47
  var r = Z && e[Z] || e[ke];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var P = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var O = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
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++)
@@ -57,7 +57,7 @@ function lr() {
57
57
  }
58
58
  function Pe(e, r, t) {
59
59
  {
60
- var a = P.ReactDebugCurrentFrame, s = a.getStackAddendum();
60
+ var a = O.ReactDebugCurrentFrame, s = a.getStackAddendum();
61
61
  s !== "" && (r += "%s", t = t.concat([s]));
62
62
  var l = t.map(function(o) {
63
63
  return String(o);
@@ -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 === v || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === g || e === b || Fe || e === T || e === P || e === m || De || e === N || Oe || Ce || Se || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === D || 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.
@@ -96,11 +96,11 @@ function lr() {
96
96
  return "Fragment";
97
97
  case R:
98
98
  return "Portal";
99
- case $:
100
- return "Profiler";
101
99
  case b:
102
- return "StrictMode";
100
+ return "Profiler";
103
101
  case T:
102
+ return "StrictMode";
103
+ case P:
104
104
  return "Suspense";
105
105
  case m:
106
106
  return "SuspenseList";
@@ -110,7 +110,7 @@ function lr() {
110
110
  case _:
111
111
  var r = e;
112
112
  return ee(r) + ".Consumer";
113
- case S:
113
+ case D:
114
114
  var t = e;
115
115
  return ee(t._context) + ".Provider";
116
116
  case v:
@@ -129,13 +129,13 @@ function lr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var k = Object.assign, D = 0, re, te, ne, ae, ie, oe, se;
132
+ var k = Object.assign, F = 0, re, te, ne, ae, ie, oe, se;
133
133
  function le() {
134
134
  }
135
135
  le.__reactDisabledLog = !0;
136
136
  function $e() {
137
137
  {
138
- if (D === 0) {
138
+ if (F === 0) {
139
139
  re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, se = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
@@ -153,12 +153,12 @@ function lr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- D++;
156
+ F++;
157
157
  }
158
158
  }
159
159
  function Ne() {
160
160
  {
161
- if (D--, D === 0) {
161
+ if (F--, F === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
@@ -188,10 +188,10 @@ function lr() {
188
188
  })
189
189
  });
190
190
  }
191
- D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ F < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var V = P.ReactCurrentDispatcher, U;
194
+ var V = O.ReactCurrentDispatcher, U;
195
195
  function I(e, r, t) {
196
196
  {
197
197
  if (U === void 0)
@@ -278,7 +278,7 @@ function lr() {
278
278
  } finally {
279
279
  B = !1, V.current = l, Ne(), Error.prepareStackTrace = s;
280
280
  }
281
- var C = e ? e.displayName || e.name : "", Ee = C ? I(C) : "";
281
+ var S = e ? e.displayName || e.name : "", Ee = S ? I(S) : "";
282
282
  return typeof e == "function" && W.set(e, Ee), Ee;
283
283
  }
284
284
  function We(e, r, t) {
@@ -296,7 +296,7 @@ function lr() {
296
296
  if (typeof e == "string")
297
297
  return I(e);
298
298
  switch (e) {
299
- case T:
299
+ case P:
300
300
  return I("Suspense");
301
301
  case m:
302
302
  return I("SuspenseList");
@@ -317,7 +317,7 @@ function lr() {
317
317
  }
318
318
  return "";
319
319
  }
320
- var L = Object.prototype.hasOwnProperty, ce = {}, fe = P.ReactDebugCurrentFrame;
320
+ var L = Object.prototype.hasOwnProperty, ce = {}, fe = O.ReactDebugCurrentFrame;
321
321
  function M(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 lr() {
368
368
  if (Ue(e))
369
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
- var F = P.ReactCurrentOwner, Be = {
371
+ var z = O.ReactCurrentOwner, Be = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
@@ -392,9 +392,9 @@ function lr() {
392
392
  return e.key !== void 0;
393
393
  }
394
394
  function Je(e, r) {
395
- if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
396
- var t = j(F.current.type);
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);
395
+ if (typeof e.ref == "string" && z.current && r && z.current.stateNode !== r) {
396
+ var t = j(z.current.type);
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(z.current.type), e.ref), G[t] = !0);
398
398
  }
399
399
  }
400
400
  function He(e, r) {
@@ -463,11 +463,11 @@ function lr() {
463
463
  var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
464
  i && He(o, c), p && Ke(o, c);
465
465
  }
466
- return Xe(e, i, p, s, a, F.current, o);
466
+ return Xe(e, i, p, s, a, z.current, o);
467
467
  }
468
468
  }
469
- var J = P.ReactCurrentOwner, me = P.ReactDebugCurrentFrame;
470
- function O(e) {
469
+ var J = O.ReactCurrentOwner, me = O.ReactDebugCurrentFrame;
470
+ function C(e) {
471
471
  if (e) {
472
472
  var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
473
473
  me.setExtraStackFrame(t);
@@ -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), 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);
528
+ e && e._owner && e._owner !== J.current && (a = " It was passed a child from " + j(e._owner.type) + "."), C(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), C(null);
529
529
  }
530
530
  }
531
531
  function ye(e, r) {
@@ -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), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), O(null);
580
+ C(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), C(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (O(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), O(null));
584
+ e.ref !== null && (C(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
585
585
  }
586
586
  }
587
587
  function je(e, r, t, a, s, l) {
@@ -603,8 +603,8 @@ Check the top-level render call using <` + t + ">.");
603
603
  if (x !== void 0)
604
604
  if (a)
605
605
  if (q(x)) {
606
- for (var C = 0; C < x.length; C++)
607
- ye(x[C], e);
606
+ for (var S = 0; S < x.length; S++)
607
+ ye(x[S], 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.");
@@ -621,8 +621,8 @@ Check the top-level render call using <` + t + ">.");
621
621
  return je(e, r, t, !1);
622
622
  }
623
623
  var ir = ar, or = nr;
624
- A.Fragment = g, A.jsx = ir, A.jsxs = or;
625
- }()), A;
624
+ $.Fragment = g, $.jsx = ir, $.jsxs = or;
625
+ }()), $;
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? X.exports = sr() : X.exports = lr();
628
628
  var n = X.exports;
@@ -662,7 +662,8 @@ function fr({
662
662
  variant: f,
663
663
  icon: d,
664
664
  circle: R,
665
- children: g
665
+ children: g,
666
+ ...T
666
667
  }) {
667
668
  let b = "";
668
669
  switch (f) {
@@ -682,7 +683,7 @@ function fr({
682
683
  ${R ? "rounded-full" : "rounded-md"}`;
683
684
  break;
684
685
  }
685
- return /* @__PURE__ */ n.jsxs("button", { className: b, children: [
686
+ return /* @__PURE__ */ n.jsxs("button", { ...T, className: b, children: [
686
687
  d,
687
688
  g
688
689
  ] });