reykit 1.0.195 → 1.0.196

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.js CHANGED
@@ -1,6 +1,6 @@
1
- import { Link as d5, useLocation as p5, useNavigate as m5 } from "react-router-dom";
2
1
  import * as S from "react";
3
- import lm, { useState as Yl, useEffect as kA, createElement as pM, useLayoutEffect as h5, useMemo as g5, createContext as v5, useContext as y5, Fragment as b5, isValidElement as x5 } from "react";
2
+ import lm, { useState as Yl, useEffect as kA, createElement as pM, useLayoutEffect as d5, useMemo as p5, createContext as m5, useContext as h5, Fragment as g5, isValidElement as v5 } from "react";
3
+ import { Link as y5, useLocation as b5, useNavigate as x5 } from "react-router-dom";
4
4
  import * as Zo from "react-dom";
5
5
  import YA from "react-dom";
6
6
  import { cva as Pl } from "class-variance-authority";
@@ -34,10 +34,269 @@ function Z5(a, i) {
34
34
  }
35
35
  return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
36
36
  }
37
- var A1 = { exports: {} }, i0 = {}, D1 = { exports: {} }, BT = {};
37
+ var A1 = { exports: {} }, i0 = {};
38
38
  var hM;
39
39
  function K5() {
40
- return hM || (hM = 1, (function(a) {
40
+ if (hM) return i0;
41
+ hM = 1;
42
+ var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
43
+ function u(d, m, g) {
44
+ var y = null;
45
+ if (g !== void 0 && (y = "" + g), m.key !== void 0 && (y = "" + m.key), "key" in m) {
46
+ g = {};
47
+ for (var b in m)
48
+ b !== "key" && (g[b] = m[b]);
49
+ } else g = m;
50
+ return m = g.ref, {
51
+ $$typeof: a,
52
+ type: d,
53
+ key: y,
54
+ ref: m !== void 0 ? m : null,
55
+ props: g
56
+ };
57
+ }
58
+ return i0.Fragment = i, i0.jsx = u, i0.jsxs = u, i0;
59
+ }
60
+ var r0 = {};
61
+ var gM;
62
+ function $5() {
63
+ return gM || (gM = 1, process.env.NODE_ENV !== "production" && (function() {
64
+ function a(Y) {
65
+ if (Y == null) return null;
66
+ if (typeof Y == "function")
67
+ return Y.$$typeof === W ? null : Y.displayName || Y.name || null;
68
+ if (typeof Y == "string") return Y;
69
+ switch (Y) {
70
+ case D:
71
+ return "Fragment";
72
+ case V:
73
+ return "Profiler";
74
+ case U:
75
+ return "StrictMode";
76
+ case I:
77
+ return "Suspense";
78
+ case Z:
79
+ return "SuspenseList";
80
+ case $:
81
+ return "Activity";
82
+ }
83
+ if (typeof Y == "object")
84
+ switch (typeof Y.tag == "number" && console.error(
85
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
86
+ ), Y.$$typeof) {
87
+ case z:
88
+ return "Portal";
89
+ case H:
90
+ return Y.displayName || "Context";
91
+ case _:
92
+ return (Y._context.displayName || "Context") + ".Consumer";
93
+ case P:
94
+ var ae = Y.render;
95
+ return Y = Y.displayName, Y || (Y = ae.displayName || ae.name || "", Y = Y !== "" ? "ForwardRef(" + Y + ")" : "ForwardRef"), Y;
96
+ case K:
97
+ return ae = Y.displayName || null, ae !== null ? ae : a(Y.type) || "Memo";
98
+ case ne:
99
+ ae = Y._payload, Y = Y._init;
100
+ try {
101
+ return a(Y(ae));
102
+ } catch {
103
+ }
104
+ }
105
+ return null;
106
+ }
107
+ function i(Y) {
108
+ return "" + Y;
109
+ }
110
+ function u(Y) {
111
+ try {
112
+ i(Y);
113
+ var ae = !1;
114
+ } catch {
115
+ ae = !0;
116
+ }
117
+ if (ae) {
118
+ ae = console;
119
+ var G = ae.error, J = typeof Symbol == "function" && Symbol.toStringTag && Y[Symbol.toStringTag] || Y.constructor.name || "Object";
120
+ return G.call(
121
+ ae,
122
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
123
+ J
124
+ ), i(Y);
125
+ }
126
+ }
127
+ function d(Y) {
128
+ if (Y === D) return "<>";
129
+ if (typeof Y == "object" && Y !== null && Y.$$typeof === ne)
130
+ return "<...>";
131
+ try {
132
+ var ae = a(Y);
133
+ return ae ? "<" + ae + ">" : "<...>";
134
+ } catch {
135
+ return "<...>";
136
+ }
137
+ }
138
+ function m() {
139
+ var Y = ee.A;
140
+ return Y === null ? null : Y.getOwner();
141
+ }
142
+ function g() {
143
+ return Error("react-stack-top-frame");
144
+ }
145
+ function y(Y) {
146
+ if (F.call(Y, "key")) {
147
+ var ae = Object.getOwnPropertyDescriptor(Y, "key").get;
148
+ if (ae && ae.isReactWarning) return !1;
149
+ }
150
+ return Y.key !== void 0;
151
+ }
152
+ function b(Y, ae) {
153
+ function G() {
154
+ L || (L = !0, console.error(
155
+ "%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://react.dev/link/special-props)",
156
+ ae
157
+ ));
158
+ }
159
+ G.isReactWarning = !0, Object.defineProperty(Y, "key", {
160
+ get: G,
161
+ configurable: !0
162
+ });
163
+ }
164
+ function C() {
165
+ var Y = a(this.type);
166
+ return q[Y] || (q[Y] = !0, console.error(
167
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
168
+ )), Y = this.props.ref, Y !== void 0 ? Y : null;
169
+ }
170
+ function T(Y, ae, G, J, se, ye) {
171
+ var ve = G.ref;
172
+ return Y = {
173
+ $$typeof: w,
174
+ type: Y,
175
+ key: ae,
176
+ props: G,
177
+ _owner: J
178
+ }, (ve !== void 0 ? ve : null) !== null ? Object.defineProperty(Y, "ref", {
179
+ enumerable: !1,
180
+ get: C
181
+ }) : Object.defineProperty(Y, "ref", { enumerable: !1, value: null }), Y._store = {}, Object.defineProperty(Y._store, "validated", {
182
+ configurable: !1,
183
+ enumerable: !1,
184
+ writable: !0,
185
+ value: 0
186
+ }), Object.defineProperty(Y, "_debugInfo", {
187
+ configurable: !1,
188
+ enumerable: !1,
189
+ writable: !0,
190
+ value: null
191
+ }), Object.defineProperty(Y, "_debugStack", {
192
+ configurable: !1,
193
+ enumerable: !1,
194
+ writable: !0,
195
+ value: se
196
+ }), Object.defineProperty(Y, "_debugTask", {
197
+ configurable: !1,
198
+ enumerable: !1,
199
+ writable: !0,
200
+ value: ye
201
+ }), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
202
+ }
203
+ function R(Y, ae, G, J, se, ye) {
204
+ var ve = ae.children;
205
+ if (ve !== void 0)
206
+ if (J)
207
+ if (re(ve)) {
208
+ for (J = 0; J < ve.length; J++)
209
+ N(ve[J]);
210
+ Object.freeze && Object.freeze(ve);
211
+ } else
212
+ console.error(
213
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
214
+ );
215
+ else N(ve);
216
+ if (F.call(ae, "key")) {
217
+ ve = a(Y);
218
+ var be = Object.keys(ae).filter(function(Ge) {
219
+ return Ge !== "key";
220
+ });
221
+ J = 0 < be.length ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}", le[ve + J] || (be = 0 < be.length ? "{" + be.join(": ..., ") + ": ...}" : "{}", console.error(
222
+ `A props object containing a "key" prop is being spread into JSX:
223
+ let props = %s;
224
+ <%s {...props} />
225
+ React keys must be passed directly to JSX without using spread:
226
+ let props = %s;
227
+ <%s key={someKey} {...props} />`,
228
+ J,
229
+ ve,
230
+ be,
231
+ ve
232
+ ), le[ve + J] = !0);
233
+ }
234
+ if (ve = null, G !== void 0 && (u(G), ve = "" + G), y(ae) && (u(ae.key), ve = "" + ae.key), "key" in ae) {
235
+ G = {};
236
+ for (var Re in ae)
237
+ Re !== "key" && (G[Re] = ae[Re]);
238
+ } else G = ae;
239
+ return ve && b(
240
+ G,
241
+ typeof Y == "function" ? Y.displayName || Y.name || "Unknown" : Y
242
+ ), T(
243
+ Y,
244
+ ve,
245
+ G,
246
+ m(),
247
+ se,
248
+ ye
249
+ );
250
+ }
251
+ function N(Y) {
252
+ A(Y) ? Y._store && (Y._store.validated = 1) : typeof Y == "object" && Y !== null && Y.$$typeof === ne && (Y._payload.status === "fulfilled" ? A(Y._payload.value) && Y._payload.value._store && (Y._payload.value._store.validated = 1) : Y._store && (Y._store.validated = 1));
253
+ }
254
+ function A(Y) {
255
+ return typeof Y == "object" && Y !== null && Y.$$typeof === w;
256
+ }
257
+ var M = lm, w = /* @__PURE__ */ Symbol.for("react.transitional.element"), z = /* @__PURE__ */ Symbol.for("react.portal"), D = /* @__PURE__ */ Symbol.for("react.fragment"), U = /* @__PURE__ */ Symbol.for("react.strict_mode"), V = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.consumer"), H = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), I = /* @__PURE__ */ Symbol.for("react.suspense"), Z = /* @__PURE__ */ Symbol.for("react.suspense_list"), K = /* @__PURE__ */ Symbol.for("react.memo"), ne = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.activity"), W = /* @__PURE__ */ Symbol.for("react.client.reference"), ee = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, re = Array.isArray, te = console.createTask ? console.createTask : function() {
258
+ return null;
259
+ };
260
+ M = {
261
+ react_stack_bottom_frame: function(Y) {
262
+ return Y();
263
+ }
264
+ };
265
+ var L, q = {}, Q = M.react_stack_bottom_frame.bind(
266
+ M,
267
+ g
268
+ )(), oe = te(d(g)), le = {};
269
+ r0.Fragment = D, r0.jsx = function(Y, ae, G) {
270
+ var J = 1e4 > ee.recentlyCreatedOwnerStacks++;
271
+ return R(
272
+ Y,
273
+ ae,
274
+ G,
275
+ !1,
276
+ J ? Error("react-stack-top-frame") : Q,
277
+ J ? te(d(Y)) : oe
278
+ );
279
+ }, r0.jsxs = function(Y, ae, G) {
280
+ var J = 1e4 > ee.recentlyCreatedOwnerStacks++;
281
+ return R(
282
+ Y,
283
+ ae,
284
+ G,
285
+ !0,
286
+ J ? Error("react-stack-top-frame") : Q,
287
+ J ? te(d(Y)) : oe
288
+ );
289
+ };
290
+ })()), r0;
291
+ }
292
+ var vM;
293
+ function F5() {
294
+ return vM || (vM = 1, process.env.NODE_ENV === "production" ? A1.exports = K5() : A1.exports = $5()), A1.exports;
295
+ }
296
+ var E = F5(), D1 = { exports: {} }, s0 = {}, z1 = { exports: {} }, BT = {};
297
+ var yM;
298
+ function J5() {
299
+ return yM || (yM = 1, (function(a) {
41
300
  function i(L, q) {
42
301
  var Q = L.length;
43
302
  L.push(q);
@@ -256,9 +515,9 @@ function K5() {
256
515
  })(BT)), BT;
257
516
  }
258
517
  var LT = {};
259
- var gM;
260
- function $5() {
261
- return gM || (gM = 1, (function(a) {
518
+ var bM;
519
+ function W5() {
520
+ return bM || (bM = 1, (function(a) {
262
521
  process.env.NODE_ENV !== "production" && (function() {
263
522
  function i() {
264
523
  if (P = !1, ne) {
@@ -479,14 +738,14 @@ function $5() {
479
738
  })();
480
739
  })(LT)), LT;
481
740
  }
482
- var vM;
741
+ var xM;
483
742
  function QA() {
484
- return vM || (vM = 1, process.env.NODE_ENV === "production" ? D1.exports = K5() : D1.exports = $5()), D1.exports;
743
+ return xM || (xM = 1, process.env.NODE_ENV === "production" ? z1.exports = J5() : z1.exports = W5()), z1.exports;
485
744
  }
486
- var yM;
487
- function F5() {
488
- if (yM) return i0;
489
- yM = 1;
745
+ var SM;
746
+ function e6() {
747
+ if (SM) return s0;
748
+ SM = 1;
490
749
  var a = QA(), i = lm, u = YA;
491
750
  function d(n) {
492
751
  var l = "https://react.dev/errors/" + n;
@@ -10184,7 +10443,7 @@ Error generating stack: ` + c.message + `
10184
10443
  } catch {
10185
10444
  }
10186
10445
  }
10187
- return i0.createRoot = function(n, l) {
10446
+ return s0.createRoot = function(n, l) {
10188
10447
  if (!m(n)) throw Error(d(299));
10189
10448
  var r = !1, c = "", h = rh, v = hy, j = sh;
10190
10449
  return l != null && (l.unstable_strictMode === !0 && (r = !0), l.identifierPrefix !== void 0 && (c = l.identifierPrefix), l.onUncaughtError !== void 0 && (h = l.onUncaughtError), l.onCaughtError !== void 0 && (v = l.onCaughtError), l.onRecoverableError !== void 0 && (j = l.onRecoverableError)), l = Xh(
@@ -10201,7 +10460,7 @@ Error generating stack: ` + c.message + `
10201
10460
  j,
10202
10461
  pb
10203
10462
  ), n[br] = l.current, ff(n), new Kh(l);
10204
- }, i0.hydrateRoot = function(n, l, r) {
10463
+ }, s0.hydrateRoot = function(n, l, r) {
10205
10464
  if (!m(n)) throw Error(d(299));
10206
10465
  var c = !1, h = "", v = rh, j = hy, X = sh, de = null;
10207
10466
  return r != null && (r.unstable_strictMode === !0 && (c = !0), r.identifierPrefix !== void 0 && (h = r.identifierPrefix), r.onUncaughtError !== void 0 && (v = r.onUncaughtError), r.onCaughtError !== void 0 && (j = r.onCaughtError), r.onRecoverableError !== void 0 && (X = r.onRecoverableError), r.formState !== void 0 && (de = r.formState)), l = Xh(
@@ -10218,12 +10477,12 @@ Error generating stack: ` + c.message + `
10218
10477
  X,
10219
10478
  pb
10220
10479
  ), l.context = Gu(null), r = l.current, c = Yo(), c = bn(c), h = Dr(c), h.callback = null, il(r, h, c), r = c, l.current.lanes = r, Qt(l, r), $i(l), n[br] = l.current, ff(n), new $h(l);
10221
- }, i0.version = "19.2.4", i0;
10480
+ }, s0.version = "19.2.4", s0;
10222
10481
  }
10223
- var r0 = {};
10224
- var bM;
10225
- function J5() {
10226
- return bM || (bM = 1, process.env.NODE_ENV !== "production" && (function() {
10482
+ var u0 = {};
10483
+ var EM;
10484
+ function t6() {
10485
+ return EM || (EM = 1, process.env.NODE_ENV !== "production" && (function() {
10227
10486
  function a(e, t) {
10228
10487
  for (e = e.memoizedState; e !== null && 0 < t; )
10229
10488
  e = e.next, t--;
@@ -27182,7 +27441,7 @@ You might need to use a local HTTP server (instead of file://): https://react.de
27182
27441
  "font-weight:bold"
27183
27442
  );
27184
27443
  }
27185
- r0.createRoot = function(e, t) {
27444
+ u0.createRoot = function(e, t) {
27186
27445
  if (!D(e))
27187
27446
  throw Error("Target container is not a DOM element.");
27188
27447
  ab(e);
@@ -27208,7 +27467,7 @@ You might need to use a local HTTP server (instead of file://): https://react.de
27208
27467
  x,
27209
27468
  ES
27210
27469
  ), e[Yr] = t.current, As(e), new nb(t);
27211
- }, r0.hydrateRoot = function(e, t, o) {
27470
+ }, u0.hydrateRoot = function(e, t, o) {
27212
27471
  if (!D(e))
27213
27472
  throw Error("Target container is not a DOM element.");
27214
27473
  ab(e), t === void 0 && console.error(
@@ -27229,13 +27488,13 @@ You might need to use a local HTTP server (instead of file://): https://react.de
27229
27488
  O,
27230
27489
  ES
27231
27490
  ), t.context = yS(null), o = t.current, s = mo(o), s = bt(s), f = ja(s), f.callback = null, _i(o, f, s), Ai(s, "hydrateRoot()", null), o = s, t.current.lanes = o, Xe(t, o), Io(t), e[Yr] = t.current, As(e), new fi(t);
27232
- }, r0.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
27233
- })()), r0;
27491
+ }, u0.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
27492
+ })()), u0;
27234
27493
  }
27235
- var xM;
27236
- function W5() {
27237
- if (xM) return A1.exports;
27238
- xM = 1;
27494
+ var RM;
27495
+ function n6() {
27496
+ if (RM) return D1.exports;
27497
+ RM = 1;
27239
27498
  function a() {
27240
27499
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
27241
27500
  if (process.env.NODE_ENV !== "production")
@@ -27247,15 +27506,15 @@ function W5() {
27247
27506
  }
27248
27507
  }
27249
27508
  }
27250
- return process.env.NODE_ENV === "production" ? (a(), A1.exports = F5()) : A1.exports = J5(), A1.exports;
27509
+ return process.env.NODE_ENV === "production" ? (a(), D1.exports = e6()) : D1.exports = t6(), D1.exports;
27251
27510
  }
27252
- var e6 = W5();
27253
- const t6 = 768;
27511
+ var a6 = n6();
27512
+ const o6 = 768;
27254
27513
  let IT = null;
27255
- function n6(a, i = "root") {
27514
+ function l6(a, i = "root") {
27256
27515
  const u = document.getElementById(i);
27257
27516
  if (!u) throw new Error(`Element ID '${i}' not found`);
27258
- IT || (IT = e6.createRoot(u)), IT.render(a);
27517
+ IT || (IT = a6.createRoot(u)), IT.render(a);
27259
27518
  }
27260
27519
  function ZA(a = !0) {
27261
27520
  const [i, u] = Yl(a);
@@ -27274,12 +27533,12 @@ function KA(a, i = !0) {
27274
27533
  const u = Object.keys(a).length, [d, m] = BC(0, 1, u - 1, i);
27275
27534
  return [d, m];
27276
27535
  }
27277
- function a6() {
27536
+ function i6() {
27278
27537
  const [, a] = BC();
27279
27538
  return a;
27280
27539
  }
27281
27540
  function A0() {
27282
- const a = `(max-width: ${t6 - 1}px)`, [i, u] = Yl(() => typeof window > "u" ? !1 : window.matchMedia(a).matches);
27541
+ const a = `(max-width: ${o6 - 1}px)`, [i, u] = Yl(() => typeof window > "u" ? !1 : window.matchMedia(a).matches);
27283
27542
  return kA(() => {
27284
27543
  const d = window.matchMedia(a), m = (g) => {
27285
27544
  u(g.matches);
@@ -27290,276 +27549,16 @@ function A0() {
27290
27549
  function $A(a, i) {
27291
27550
  return A0() ? i : a;
27292
27551
  }
27293
- const o6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27552
+ const r6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27294
27553
  __proto__: null,
27295
- renderReact: n6,
27554
+ renderReact: l6,
27296
27555
  useCount: BC,
27297
27556
  useIndex: KA,
27298
27557
  useIsMobile: A0,
27299
27558
  useOpen: ZA,
27300
- useRender: a6,
27559
+ useRender: i6,
27301
27560
  useValueByMobile: $A
27302
27561
  }, Symbol.toStringTag, { value: "Module" }));
27303
- var z1 = { exports: {} }, s0 = {};
27304
- var SM;
27305
- function l6() {
27306
- if (SM) return s0;
27307
- SM = 1;
27308
- var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
27309
- function u(d, m, g) {
27310
- var y = null;
27311
- if (g !== void 0 && (y = "" + g), m.key !== void 0 && (y = "" + m.key), "key" in m) {
27312
- g = {};
27313
- for (var b in m)
27314
- b !== "key" && (g[b] = m[b]);
27315
- } else g = m;
27316
- return m = g.ref, {
27317
- $$typeof: a,
27318
- type: d,
27319
- key: y,
27320
- ref: m !== void 0 ? m : null,
27321
- props: g
27322
- };
27323
- }
27324
- return s0.Fragment = i, s0.jsx = u, s0.jsxs = u, s0;
27325
- }
27326
- var u0 = {};
27327
- var EM;
27328
- function i6() {
27329
- return EM || (EM = 1, process.env.NODE_ENV !== "production" && (function() {
27330
- function a(Y) {
27331
- if (Y == null) return null;
27332
- if (typeof Y == "function")
27333
- return Y.$$typeof === W ? null : Y.displayName || Y.name || null;
27334
- if (typeof Y == "string") return Y;
27335
- switch (Y) {
27336
- case D:
27337
- return "Fragment";
27338
- case V:
27339
- return "Profiler";
27340
- case U:
27341
- return "StrictMode";
27342
- case I:
27343
- return "Suspense";
27344
- case Z:
27345
- return "SuspenseList";
27346
- case $:
27347
- return "Activity";
27348
- }
27349
- if (typeof Y == "object")
27350
- switch (typeof Y.tag == "number" && console.error(
27351
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
27352
- ), Y.$$typeof) {
27353
- case z:
27354
- return "Portal";
27355
- case H:
27356
- return Y.displayName || "Context";
27357
- case _:
27358
- return (Y._context.displayName || "Context") + ".Consumer";
27359
- case P:
27360
- var ae = Y.render;
27361
- return Y = Y.displayName, Y || (Y = ae.displayName || ae.name || "", Y = Y !== "" ? "ForwardRef(" + Y + ")" : "ForwardRef"), Y;
27362
- case K:
27363
- return ae = Y.displayName || null, ae !== null ? ae : a(Y.type) || "Memo";
27364
- case ne:
27365
- ae = Y._payload, Y = Y._init;
27366
- try {
27367
- return a(Y(ae));
27368
- } catch {
27369
- }
27370
- }
27371
- return null;
27372
- }
27373
- function i(Y) {
27374
- return "" + Y;
27375
- }
27376
- function u(Y) {
27377
- try {
27378
- i(Y);
27379
- var ae = !1;
27380
- } catch {
27381
- ae = !0;
27382
- }
27383
- if (ae) {
27384
- ae = console;
27385
- var G = ae.error, J = typeof Symbol == "function" && Symbol.toStringTag && Y[Symbol.toStringTag] || Y.constructor.name || "Object";
27386
- return G.call(
27387
- ae,
27388
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
27389
- J
27390
- ), i(Y);
27391
- }
27392
- }
27393
- function d(Y) {
27394
- if (Y === D) return "<>";
27395
- if (typeof Y == "object" && Y !== null && Y.$$typeof === ne)
27396
- return "<...>";
27397
- try {
27398
- var ae = a(Y);
27399
- return ae ? "<" + ae + ">" : "<...>";
27400
- } catch {
27401
- return "<...>";
27402
- }
27403
- }
27404
- function m() {
27405
- var Y = ee.A;
27406
- return Y === null ? null : Y.getOwner();
27407
- }
27408
- function g() {
27409
- return Error("react-stack-top-frame");
27410
- }
27411
- function y(Y) {
27412
- if (F.call(Y, "key")) {
27413
- var ae = Object.getOwnPropertyDescriptor(Y, "key").get;
27414
- if (ae && ae.isReactWarning) return !1;
27415
- }
27416
- return Y.key !== void 0;
27417
- }
27418
- function b(Y, ae) {
27419
- function G() {
27420
- L || (L = !0, console.error(
27421
- "%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://react.dev/link/special-props)",
27422
- ae
27423
- ));
27424
- }
27425
- G.isReactWarning = !0, Object.defineProperty(Y, "key", {
27426
- get: G,
27427
- configurable: !0
27428
- });
27429
- }
27430
- function C() {
27431
- var Y = a(this.type);
27432
- return q[Y] || (q[Y] = !0, console.error(
27433
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
27434
- )), Y = this.props.ref, Y !== void 0 ? Y : null;
27435
- }
27436
- function T(Y, ae, G, J, se, ye) {
27437
- var ve = G.ref;
27438
- return Y = {
27439
- $$typeof: w,
27440
- type: Y,
27441
- key: ae,
27442
- props: G,
27443
- _owner: J
27444
- }, (ve !== void 0 ? ve : null) !== null ? Object.defineProperty(Y, "ref", {
27445
- enumerable: !1,
27446
- get: C
27447
- }) : Object.defineProperty(Y, "ref", { enumerable: !1, value: null }), Y._store = {}, Object.defineProperty(Y._store, "validated", {
27448
- configurable: !1,
27449
- enumerable: !1,
27450
- writable: !0,
27451
- value: 0
27452
- }), Object.defineProperty(Y, "_debugInfo", {
27453
- configurable: !1,
27454
- enumerable: !1,
27455
- writable: !0,
27456
- value: null
27457
- }), Object.defineProperty(Y, "_debugStack", {
27458
- configurable: !1,
27459
- enumerable: !1,
27460
- writable: !0,
27461
- value: se
27462
- }), Object.defineProperty(Y, "_debugTask", {
27463
- configurable: !1,
27464
- enumerable: !1,
27465
- writable: !0,
27466
- value: ye
27467
- }), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
27468
- }
27469
- function R(Y, ae, G, J, se, ye) {
27470
- var ve = ae.children;
27471
- if (ve !== void 0)
27472
- if (J)
27473
- if (re(ve)) {
27474
- for (J = 0; J < ve.length; J++)
27475
- N(ve[J]);
27476
- Object.freeze && Object.freeze(ve);
27477
- } else
27478
- console.error(
27479
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
27480
- );
27481
- else N(ve);
27482
- if (F.call(ae, "key")) {
27483
- ve = a(Y);
27484
- var be = Object.keys(ae).filter(function(Ge) {
27485
- return Ge !== "key";
27486
- });
27487
- J = 0 < be.length ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}", le[ve + J] || (be = 0 < be.length ? "{" + be.join(": ..., ") + ": ...}" : "{}", console.error(
27488
- `A props object containing a "key" prop is being spread into JSX:
27489
- let props = %s;
27490
- <%s {...props} />
27491
- React keys must be passed directly to JSX without using spread:
27492
- let props = %s;
27493
- <%s key={someKey} {...props} />`,
27494
- J,
27495
- ve,
27496
- be,
27497
- ve
27498
- ), le[ve + J] = !0);
27499
- }
27500
- if (ve = null, G !== void 0 && (u(G), ve = "" + G), y(ae) && (u(ae.key), ve = "" + ae.key), "key" in ae) {
27501
- G = {};
27502
- for (var Re in ae)
27503
- Re !== "key" && (G[Re] = ae[Re]);
27504
- } else G = ae;
27505
- return ve && b(
27506
- G,
27507
- typeof Y == "function" ? Y.displayName || Y.name || "Unknown" : Y
27508
- ), T(
27509
- Y,
27510
- ve,
27511
- G,
27512
- m(),
27513
- se,
27514
- ye
27515
- );
27516
- }
27517
- function N(Y) {
27518
- A(Y) ? Y._store && (Y._store.validated = 1) : typeof Y == "object" && Y !== null && Y.$$typeof === ne && (Y._payload.status === "fulfilled" ? A(Y._payload.value) && Y._payload.value._store && (Y._payload.value._store.validated = 1) : Y._store && (Y._store.validated = 1));
27519
- }
27520
- function A(Y) {
27521
- return typeof Y == "object" && Y !== null && Y.$$typeof === w;
27522
- }
27523
- var M = lm, w = /* @__PURE__ */ Symbol.for("react.transitional.element"), z = /* @__PURE__ */ Symbol.for("react.portal"), D = /* @__PURE__ */ Symbol.for("react.fragment"), U = /* @__PURE__ */ Symbol.for("react.strict_mode"), V = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.consumer"), H = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), I = /* @__PURE__ */ Symbol.for("react.suspense"), Z = /* @__PURE__ */ Symbol.for("react.suspense_list"), K = /* @__PURE__ */ Symbol.for("react.memo"), ne = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.activity"), W = /* @__PURE__ */ Symbol.for("react.client.reference"), ee = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, re = Array.isArray, te = console.createTask ? console.createTask : function() {
27524
- return null;
27525
- };
27526
- M = {
27527
- react_stack_bottom_frame: function(Y) {
27528
- return Y();
27529
- }
27530
- };
27531
- var L, q = {}, Q = M.react_stack_bottom_frame.bind(
27532
- M,
27533
- g
27534
- )(), oe = te(d(g)), le = {};
27535
- u0.Fragment = D, u0.jsx = function(Y, ae, G) {
27536
- var J = 1e4 > ee.recentlyCreatedOwnerStacks++;
27537
- return R(
27538
- Y,
27539
- ae,
27540
- G,
27541
- !1,
27542
- J ? Error("react-stack-top-frame") : Q,
27543
- J ? te(d(Y)) : oe
27544
- );
27545
- }, u0.jsxs = function(Y, ae, G) {
27546
- var J = 1e4 > ee.recentlyCreatedOwnerStacks++;
27547
- return R(
27548
- Y,
27549
- ae,
27550
- G,
27551
- !0,
27552
- J ? Error("react-stack-top-frame") : Q,
27553
- J ? te(d(Y)) : oe
27554
- );
27555
- };
27556
- })()), u0;
27557
- }
27558
- var RM;
27559
- function r6() {
27560
- return RM || (RM = 1, process.env.NODE_ENV === "production" ? z1.exports = l6() : z1.exports = i6()), z1.exports;
27561
- }
27562
- var E = r6();
27563
27562
  function RE() {
27564
27563
  return typeof window < "u";
27565
27564
  }
@@ -35063,7 +35062,7 @@ const UV = vV, VV = yV, HV = mV, BV = xV, LV = hV, IV = bV, kV = (a, i, u) => {
35063
35062
  });
35064
35063
  };
35065
35064
  var YV = typeof document < "u", GV = function() {
35066
- }, eE = YV ? h5 : GV;
35065
+ }, eE = YV ? d5 : GV;
35067
35066
  function mE(a, i) {
35068
35067
  if (a === i)
35069
35068
  return !0;
@@ -48053,7 +48052,7 @@ function dI({
48053
48052
  errors: u,
48054
48053
  ...d
48055
48054
  }) {
48056
- const m = g5(() => {
48055
+ const m = p5(() => {
48057
48056
  if (i)
48058
48057
  return i;
48059
48058
  if (!u?.length)
@@ -48753,7 +48752,12 @@ function Hj() {
48753
48752
  PopupBoxContent: A3
48754
48753
  } : {
48755
48754
  PopupBox: f3,
48756
- PopupBoxTrigger: d3,
48755
+ PopupBoxTrigger: function({
48756
+ nativeButton: d,
48757
+ ...m
48758
+ }) {
48759
+ return /* @__PURE__ */ E.jsx(d3, { ...m });
48760
+ },
48757
48761
  PopupBoxContent: p3
48758
48762
  };
48759
48763
  }
@@ -48917,7 +48921,7 @@ const Bj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
48917
48921
  ItemTitle: eI,
48918
48922
  Kbd: $U,
48919
48923
  Label: _g,
48920
- Link: d5,
48924
+ Link: y5,
48921
48925
  Menubar: N9,
48922
48926
  MenubarCheckboxItem: U9,
48923
48927
  MenubarContent: _9,
@@ -49040,7 +49044,7 @@ const Bj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49040
49044
  useSidebar: rx
49041
49045
  }, Symbol.toStringTag, { value: "Module" }));
49042
49046
  function Lj(a) {
49043
- const i = v5(null);
49047
+ const i = m5(null);
49044
49048
  return [({ children: m }) => {
49045
49049
  const [g, y] = Yl(!1), b = {
49046
49050
  isCovering: g,
@@ -49054,7 +49058,7 @@ function Lj(a) {
49054
49058
  ), children: g && a })
49055
49059
  ] });
49056
49060
  }, () => {
49057
- const m = y5(i);
49061
+ const m = h5(i);
49058
49062
  if (!m) throw new Error("must be used within cover component");
49059
49063
  return {
49060
49064
  ...m,
@@ -49070,9 +49074,9 @@ function Lj(a) {
49070
49074
  }];
49071
49075
  }
49072
49076
  function WI({ dict: a }) {
49073
- const { pathname: i } = p5(), u = a[i] || [];
49077
+ const { pathname: i } = b5(), u = a[i] || [];
49074
49078
  return /* @__PURE__ */ E.jsx(fj, { children: /* @__PURE__ */ E.jsx(dj, { children: u.map(
49075
- (d, m) => /* @__PURE__ */ E.jsxs(b5, { children: [
49079
+ (d, m) => /* @__PURE__ */ E.jsxs(g5, { children: [
49076
49080
  /* @__PURE__ */ E.jsx(pj, { children: d.href ? /* @__PURE__ */ E.jsx(mj, { href: d.href, children: d.label }) : /* @__PURE__ */ E.jsx(hj, { children: d.label }) }),
49077
49081
  m < u.length - 1 && /* @__PURE__ */ E.jsx(gj, { className: "-mx-1 md:mx-0" })
49078
49082
  ] }, m)
@@ -49095,7 +49099,7 @@ function tk({
49095
49099
  onSubmit: u,
49096
49100
  ...d
49097
49101
  }) {
49098
- const m = m5();
49102
+ const m = x5();
49099
49103
  let g = async (y) => {
49100
49104
  if (y.preventDefault(), u && u(y), a) {
49101
49105
  const b = new FormData(y.currentTarget);
@@ -49949,7 +49953,7 @@ function ck({
49949
49953
  ] });
49950
49954
  }
49951
49955
  function IA(a) {
49952
- return x5(a) ? a : a instanceof Date ? a.toLocaleString() : a == null ? "" : typeof a == "object" ? JSON.stringify(a) : String(a);
49956
+ return v5(a) ? a : a instanceof Date ? a.toLocaleString() : a == null ? "" : typeof a == "object" ? JSON.stringify(a) : String(a);
49953
49957
  }
49954
49958
  function fk({
49955
49959
  icon: a,
@@ -50542,7 +50546,7 @@ const Uk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50542
50546
  image: Ck,
50543
50547
  net: wk,
50544
50548
  re: _k,
50545
- react: o6,
50549
+ react: r6,
50546
50550
  time: Uk,
50547
50551
  twc: H6,
50548
50552
  window: Sk
@@ -50556,7 +50560,7 @@ export {
50556
50560
  Ck as image,
50557
50561
  wk as net,
50558
50562
  _k as re,
50559
- o6 as react,
50563
+ r6 as react,
50560
50564
  Uk as time,
50561
50565
  H6 as twc,
50562
50566
  Bj as ui,
@@ -1,4 +1,5 @@
1
1
  import { Link } from 'react-router-dom';
2
+ import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';
2
3
  import { Button, buttonVariants } from './button';
3
4
  import { Badge, badgeVariants } from './badge';
4
5
  import { Label } from './label';
@@ -63,7 +64,9 @@ declare function usePopupBox(): {
63
64
  PopupBoxContent: typeof PopoverContent;
64
65
  } | {
65
66
  PopupBox: typeof HoverCard;
66
- PopupBoxTrigger: typeof HoverCardTrigger;
67
+ PopupBoxTrigger: ({ nativeButton, ...props }: {
68
+ nativeButton?: boolean | undefined;
69
+ } & PreviewCardPrimitive.Trigger.Props) => import("react/jsx-runtime").JSX.Element;
67
70
  PopupBoxContent: typeof HoverCardContent;
68
71
  };
69
72
  export { icon, Link, Button, buttonVariants, Badge, badgeVariants, Label, Input, Textarea, Checkbox, RadioGroup, RadioGroupItem, Switch, Toggle, toggleVariants, Kbd, Progress, Slider, Calendar, Spinner, Separator, Skeleton, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, inputGroupAddonVariants, inputGroupButtonVariants, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, ToggleGroup, ToggleGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Collapsible, CollapsibleContent, CollapsibleTrigger, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, alertVariants, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HoverCard, HoverCardContent, HoverCardTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DialogTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogTitle, AlertDialogTrigger, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toaster, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, ScrollArea, ScrollBar, AspectRatio, ResizableHandle, ResizablePanel, ResizablePanelGroup, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemSeparator, ItemTitle, itemVariants, itemMediaVariants, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, fieldVariants, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, emptyMediaVariants, SidebarProvider, SidebarInset, SidebarTrigger, Sidebar, SidebarRail, SidebarHeader, SidebarContent, SidebarFooter, SidebarSeparator, SidebarInput, SidebarGroup, SidebarGroupLabel, SidebarGroupAction, SidebarGroupContent, SidebarMenu, SidebarMenuSkeleton, SidebarMenuItem, SidebarMenuButton, SidebarMenuAction, SidebarMenuBadge, SidebarMenuSub, SidebarMenuSubItem, SidebarMenuSubButton, sidebarMenuButtonVariants, useSidebar, usePopupBox };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.195",
3
+ "version": "1.0.196",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [