pookienav 1.0.7 → 2.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.
- package/dist/pookienav.es.js +17 -627
- package/dist/pookienav.umd.js +1 -14
- package/package.json +8 -2
- package/cacheclear +0 -0
- package/pookienav-1.0.0.tgz +0 -0
- package/src/Hamburger.jsx +0 -45
- package/src/assets/css/Hamburger.css +0 -28
- package/src/assets/css/Hamburger__layout.css +0 -68
- package/src/assets/css/base.css +0 -9
- package/src/assets/css/navmenu__scripts.css +0 -20
- package/src/assets/js/Toggler.js +0 -4
- package/src/index.js +0 -3
- package/vite.config.js +0 -23
package/dist/pookienav.es.js
CHANGED
|
@@ -1,634 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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);
|
|
1
|
+
import { jsxs as l, Fragment as d, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as i } from "react";
|
|
3
|
+
const o = (e, s) => {
|
|
4
|
+
e.current.classList.toggle("show__navmenu"), s.current.classList.toggle("aniamte__hamburger");
|
|
5
|
+
}, v = ({ navitems: e, linkcomponent: s }) => {
|
|
6
|
+
const c = i(null), n = i(null), t = s || "a";
|
|
7
|
+
return /* @__PURE__ */ l(d, { children: [
|
|
8
|
+
/* @__PURE__ */ a("div", { className: "navigation__bar", children: /* @__PURE__ */ l("div", { className: "navigation__contents montserrat", children: [
|
|
9
|
+
/* @__PURE__ */ a("div", { className: "stack0", children: /* @__PURE__ */ a("p", { className: "logo__text", children: " ANNAI" }) }),
|
|
10
|
+
/* @__PURE__ */ a("div", { className: "stack1", children: /* @__PURE__ */ l("div", { ref: n, onClick: () => {
|
|
11
|
+
o(c, n);
|
|
622
12
|
}, className: "hamburger__bars", children: [
|
|
623
|
-
/* @__PURE__ */
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ a("div", { className: "bars" }),
|
|
14
|
+
/* @__PURE__ */ a("div", { className: "bars" }),
|
|
15
|
+
/* @__PURE__ */ a("div", { className: "bars" })
|
|
626
16
|
] }) }),
|
|
627
|
-
/* @__PURE__ */
|
|
17
|
+
/* @__PURE__ */ a("div", { className: "stack2", children: /* @__PURE__ */ a("ul", { ref: c, className: "nav__menus", children: e.map((r, m) => /* @__PURE__ */ a("li", { className: "nav__items", children: /* @__PURE__ */ a(t, { ...s ? { to: r.path } : { href: r.path }, children: r.name }) }, m)) }) })
|
|
628
18
|
] }) }),
|
|
629
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ a("div", { style: { color: "black" } })
|
|
630
20
|
] });
|
|
631
21
|
};
|
|
632
22
|
export {
|
|
633
|
-
|
|
23
|
+
v as default
|
|
634
24
|
};
|
package/dist/pookienav.umd.js
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`+K+e}}var q=!1,M;{var Je=typeof WeakMap=="function"?WeakMap:Map;M=new Je}function ve(e,r){if(!e||q)return"";{var t=M.get(e);if(t!==void 0)return t}var n;q=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=B.current,B.current=null,Me();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"&&M.set(e,_),_}while(u>=1&&l>=0);break}}}finally{q=!1,B.current=s,Ue(),Error.prepareStackTrace=o}var I=e?e.displayName||e.name:"",C=I?$(I):"";return typeof e=="function"&&M.set(e,C),C}function Be(e,r,t){return ve(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Ke(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 Be(e.render);case y:return U(e.type,r,t);case P:{var n=e,o=n._payload,s=n._init;try{return U(s(o),r,t)}catch{}}}return""}var L=Object.prototype.hasOwnProperty,pe={},he=F.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function qe(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)&&(J(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),J(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,J(o),d("Failed %s type: %s",t,a.message),J(null))}}}var Ge=Array.isArray;function G(e){return Ge(e)}function ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function ge(e){if(He(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ze(e)),_e(e)}var me=F.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},be,ye;function Ze(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 Qe(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 er(e,r){typeof e.ref=="string"&&me.current}function rr(e,r){{var t=function(){be||(be=!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 tr(e,r){{var t=function(){ye||(ye=!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 nr=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 ar(e,r,t,n,o){{var s,i={},a=null,v=null;t!==void 0&&(ge(t),a=""+t),Qe(r)&&(ge(r.key),a=""+r.key),Ze(r)&&(v=r.ref,er(r,o));for(s in r)L.call(r,s)&&!Xe.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&&rr(i,l),v&&tr(i,l)}return nr(e,a,v,o,n,me.current,i)}}var z=F.ReactCurrentOwner,Re=F.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var H;H=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===g}function Ee(){{if(z.current){var e=T(z.current.type);if(e)return`
|
|
6
|
-
|
|
7
|
-
Check the render method of \``+e+"`."}return""}}function ir(e){return""}var Te={};function or(e){{var r=Ee();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=or(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+T(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 je(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&xe(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=Fe(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)X(i.value)&&xe(i.value,r)}}}function sr(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===y))t=r.propTypes;else return;if(t){var n=T(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=T(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 ur(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 Oe={};function Pe(e,r,t,n,o,s){{var i=Ve(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=ir();v?a+=v:a+=Ee();var u;e===null?u="null":G(e)?u="array":e!==void 0&&e.$$typeof===g?(u="<"+(T(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=ar(e,r,t,o,s);if(l==null)return l;if(i){var _=r.children;if(_!==void 0)if(n)if(G(_)){for(var I=0;I<_.length;I++)je(_[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 je(_,e)}if(L.call(r,"key")){var C=T(e),p=Object.keys(r).filter(function(pr){return pr!=="key"}),Z=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!Oe[C+Z]){var vr=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} />`,Z,C,vr,C),Oe[C+Z]=!0}}return e===b?ur(l):sr(l),l}}function lr(e,r,t){return Pe(e,r,t,!0)}function cr(e,r,t){return Pe(e,r,t,!1)}var fr=cr,dr=lr;W.Fragment=b,W.jsx=fr,W.jsxs=dr})()),W}var re;function we(){return re||(re=1,process.env.NODE_ENV==="production"?R.exports=Se():R.exports=Ce()),R.exports}var c=we();const ke=(x,g)=>{x.current.classList.toggle("show__navmenu"),g.current.classList.toggle("aniamte__hamburger")};return({navitems:x,linkcomponent:g})=>{const w=m.useRef(null),b=m.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:b,onClick:()=>{ke(w,b)},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:x.map((E,j)=>c.jsx("li",{className:"nav__items",children:c.jsx(k,{...g?{to:E.path}:{href:E.path},children:E.name})},j))})})]})}),c.jsx("div",{style:{color:"black"}})]})}}));
|
|
1
|
+
(function(e,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react"],s):(e=typeof globalThis<"u"?globalThis:e||self,e.PookieNav=s(e.jsxRuntime,e.React))})(this,(function(e,s){"use strict";const i=(r,a)=>{r.current.classList.toggle("show__navmenu"),a.current.classList.toggle("aniamte__hamburger")};return({navitems:r,linkcomponent:a})=>{const n=s.useRef(null),l=s.useRef(null),d=a||"a";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"navigation__bar",children:e.jsxs("div",{className:"navigation__contents montserrat",children:[e.jsx("div",{className:"stack0",children:e.jsx("p",{className:"logo__text",children:" ANNAI"})}),e.jsx("div",{className:"stack1",children:e.jsxs("div",{ref:l,onClick:()=>{i(n,l)},className:"hamburger__bars",children:[e.jsx("div",{className:"bars"}),e.jsx("div",{className:"bars"}),e.jsx("div",{className:"bars"})]})}),e.jsx("div",{className:"stack2",children:e.jsx("ul",{ref:n,className:"nav__menus",children:r.map((c,t)=>e.jsx("li",{className:"nav__items",children:e.jsx(d,{...a?{to:c.path}:{href:c.path},children:c.name})},t))})})]})}),e.jsx("div",{style:{color:"black"}})]})}}));
|
package/package.json
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pookienav",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/pookienav.umd.js",
|
|
5
5
|
"module": "dist/pookienav.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"files": ["dist"],
|
|
7
8
|
"scripts": {
|
|
8
|
-
"build":"vite build"
|
|
9
|
+
"build": "vite build --mode production"
|
|
10
|
+
|
|
9
11
|
},
|
|
10
12
|
"exports": {
|
|
11
13
|
".": {
|
|
12
14
|
"import": "./dist/pookienav.es.js",
|
|
13
15
|
"require": "./dist/pookienav.umd.js"
|
|
14
16
|
}
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"react": ">=18",
|
|
20
|
+
"react-dom": ">=18"
|
|
15
21
|
}
|
|
16
22
|
}
|
package/cacheclear
DELETED
|
File without changes
|
package/pookienav-1.0.0.tgz
DELETED
|
Binary file
|
package/src/Hamburger.jsx
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import './assets/css/Hamburger.css'
|
|
3
|
-
import './assets/css/Hamburger__layout.css'
|
|
4
|
-
import './assets/css/navmenu__scripts.css'
|
|
5
|
-
import { useRef } from 'react'
|
|
6
|
-
import {Toggler} from './assets/js/Toggler.js'
|
|
7
|
-
const Hamburger = ({navitems,linkcomponent}) => {
|
|
8
|
-
const navmenus__ref=useRef(null);
|
|
9
|
-
const ham__ref=useRef(null);
|
|
10
|
-
function Home() {
|
|
11
|
-
return <h1>Home Page</h1>;
|
|
12
|
-
}
|
|
13
|
-
const LinkTag=linkcomponent||"a";
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
<div className='navigation__bar'>
|
|
17
|
-
<div className="navigation__contents montserrat">
|
|
18
|
-
<div className='stack0'>
|
|
19
|
-
<p className="logo__text"> ANNAI</p>
|
|
20
|
-
</div>
|
|
21
|
-
<div className='stack1'>
|
|
22
|
-
<div ref={ham__ref} onClick={()=>{Toggler(navmenus__ref,ham__ref)}} className="hamburger__bars" >
|
|
23
|
-
<div className="bars"></div>
|
|
24
|
-
<div className="bars"></div>
|
|
25
|
-
<div className="bars"></div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
<div className='stack2'>
|
|
29
|
-
<ul ref={navmenus__ref} className="nav__menus">
|
|
30
|
-
{navitems.map((item,index)=>(
|
|
31
|
-
|
|
32
|
-
<li className="nav__items" key={index} ><LinkTag {...(linkcomponent?{to:item.path}:{href:item.path})}>{item.name}</LinkTag></li>
|
|
33
|
-
))}
|
|
34
|
-
</ul>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div style={{color:"black"}}>
|
|
39
|
-
|
|
40
|
-
</div>
|
|
41
|
-
</>
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export default Hamburger
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
:root
|
|
2
|
-
{
|
|
3
|
-
--bars-colorz:white;
|
|
4
|
-
--menu-colorz:white;
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
/* lets define bars our mobile first feDiffuseLighting */
|
|
8
|
-
.bars
|
|
9
|
-
{
|
|
10
|
-
width:27px;
|
|
11
|
-
height: 2px;
|
|
12
|
-
background-color: var(--bars-colorz);
|
|
13
|
-
margin: 5px 0px;
|
|
14
|
-
transition: all 0.2s ease-in-out;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* //tragetting lists */
|
|
19
|
-
.nav__menus li{
|
|
20
|
-
list-style-type: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* targeting anchortags */
|
|
24
|
-
.nav__menus li a
|
|
25
|
-
{
|
|
26
|
-
text-decoration: none;
|
|
27
|
-
color: var(--menu-colorz);
|
|
28
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--nav-backroundcolour: red;
|
|
3
|
-
--navitems-fontcolor: white;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.navigation__bar {
|
|
7
|
-
margin: 0px;
|
|
8
|
-
background-color: var(--nav-backroundcolour);
|
|
9
|
-
color: var(--navitems-fontcolor);
|
|
10
|
-
height: 90px;
|
|
11
|
-
position: sticky;
|
|
12
|
-
top: 0;
|
|
13
|
-
user-select: none;
|
|
14
|
-
z-index: 1000;
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* mobile first */
|
|
19
|
-
.navigation__contents {
|
|
20
|
-
margin: 0px;
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-wrap: wrap;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
user-select: none;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.stack0 {
|
|
34
|
-
width: 90%;
|
|
35
|
-
|
|
36
|
-
background-color: red;
|
|
37
|
-
z-index: 4;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.stack1 {
|
|
43
|
-
margin-top: 10px;
|
|
44
|
-
width: 10%;
|
|
45
|
-
|
|
46
|
-
background-color: red;
|
|
47
|
-
z-index: 3;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.stack2 {
|
|
52
|
-
transition: all 1s ease-in-out;
|
|
53
|
-
flex: 0 0 100%;
|
|
54
|
-
|
|
55
|
-
background-color: red;
|
|
56
|
-
transform: translatey(-100%);
|
|
57
|
-
z-index: 2;
|
|
58
|
-
margin: 0;
|
|
59
|
-
padding: 0;
|
|
60
|
-
width: 100%;
|
|
61
|
-
|
|
62
|
-
/* this linre forces navmenu to enter next line */
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.stack2 ul {
|
|
66
|
-
background-color: red;
|
|
67
|
-
transition: all 0.5s ease-in-out;
|
|
68
|
-
}
|
package/src/assets/css/base.css
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* animate hambars */
|
|
2
|
-
.aniamte__hamburger .bars:nth-child(1){
|
|
3
|
-
transform: translateY(7px) rotate(45deg);
|
|
4
|
-
}
|
|
5
|
-
.aniamte__hamburger .bars:nth-child(2){
|
|
6
|
-
opacity: 0;
|
|
7
|
-
}
|
|
8
|
-
.aniamte__hamburger .bars:nth-child(3){
|
|
9
|
-
transform: translateY(-7px) rotate(-45deg);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* showing navmenus */
|
|
13
|
-
|
|
14
|
-
.show__navmenu{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
transform: translatey(140%);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
package/src/assets/js/Toggler.js
DELETED
package/src/index.js
DELETED
package/vite.config.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
import path from 'path'
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [react()],
|
|
7
|
-
build: {
|
|
8
|
-
lib: {
|
|
9
|
-
entry: path.resolve(__dirname, 'src/index.js'),
|
|
10
|
-
name: 'PookieNav',
|
|
11
|
-
fileName: (format) => `pookienav.${format}.js`
|
|
12
|
-
},
|
|
13
|
-
rollupOptions: {
|
|
14
|
-
external: ['react', 'react-dom'],
|
|
15
|
-
output: {
|
|
16
|
-
globals: {
|
|
17
|
-
react: 'React',
|
|
18
|
-
'react-dom': 'ReactDOM'
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
})
|