pookienav 1.0.0

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