@sensorario/sg-components 0.0.53 → 0.0.56
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.es.js +32 -18
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
//#region src/components/Footer/Footer.tsx
|
|
4
|
-
var
|
|
4
|
+
var r = ({ copyright: e = "© 2026 My Company", href: r = "#", links: i = [] }) => /* @__PURE__ */ n("footer", {
|
|
5
5
|
className: "footer",
|
|
6
|
-
children: [/* @__PURE__ */
|
|
6
|
+
children: [/* @__PURE__ */ t("span", { children: /* @__PURE__ */ t("a", {
|
|
7
7
|
href: r,
|
|
8
|
-
children:
|
|
9
|
-
}) }), i.length > 0 && /* @__PURE__ */
|
|
8
|
+
children: e
|
|
9
|
+
}) }), i.length > 0 && /* @__PURE__ */ t("nav", { children: i.map(({ label: e, href: n }) => /* @__PURE__ */ t("a", {
|
|
10
10
|
href: n,
|
|
11
11
|
style: { marginLeft: "16px" },
|
|
12
|
-
children:
|
|
12
|
+
children: e
|
|
13
13
|
}, n)) })]
|
|
14
|
-
}),
|
|
14
|
+
}), i = [
|
|
15
15
|
{
|
|
16
16
|
label: "guitar",
|
|
17
17
|
href: "https://guitar.simonegentili.com"
|
|
@@ -32,29 +32,43 @@ var n = ({ copyright: n = "© 2026 My Company", href: r = "#", links: i = [] })
|
|
|
32
32
|
label: "code2image",
|
|
33
33
|
href: "https://code2image.simonegentili.com"
|
|
34
34
|
}
|
|
35
|
-
],
|
|
35
|
+
], a = () => /* @__PURE__ */ t(r, {
|
|
36
36
|
href: "https://simonegentili.com",
|
|
37
37
|
copyright: "© 2026 simonegentili.com",
|
|
38
|
-
links:
|
|
39
|
-
}),
|
|
38
|
+
links: i
|
|
39
|
+
}), o = ({ onNavigate: e, title: n = "Simone Gentili - senior web developer, tech author and chess enthusiast", homePageKey: r = "home" }) => /* @__PURE__ */ t("header", {
|
|
40
40
|
className: "header",
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ t("div", {
|
|
42
42
|
className: "header-container",
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ t("div", {
|
|
44
44
|
className: "logo",
|
|
45
45
|
onClick: () => {
|
|
46
|
-
|
|
46
|
+
e?.(r);
|
|
47
47
|
},
|
|
48
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ t("h1", {
|
|
49
49
|
className: "logo-text",
|
|
50
50
|
children: n
|
|
51
51
|
})
|
|
52
52
|
})
|
|
53
53
|
})
|
|
54
|
-
}),
|
|
55
|
-
onNavigate:
|
|
54
|
+
}), s = ({ onNavigate: e }) => /* @__PURE__ */ t(o, {
|
|
55
|
+
onNavigate: e,
|
|
56
56
|
title: "Simone Gentili - senior web developer, tech author and chess enthusiast",
|
|
57
57
|
homePageKey: "home"
|
|
58
|
-
})
|
|
58
|
+
}), c = ({ isLoggedIn: n, handleLogin: r, handleLogout: i }) => /* @__PURE__ */ t(e, { children: n ? /* @__PURE__ */ t("button", {
|
|
59
|
+
onClick: i,
|
|
60
|
+
style: {
|
|
61
|
+
fontSize: "0.9rem",
|
|
62
|
+
padding: "0.4rem 1rem"
|
|
63
|
+
},
|
|
64
|
+
children: "logout"
|
|
65
|
+
}) : /* @__PURE__ */ t("button", {
|
|
66
|
+
onClick: r,
|
|
67
|
+
style: {
|
|
68
|
+
fontSize: "0.9rem",
|
|
69
|
+
padding: "0.4rem 1rem"
|
|
70
|
+
},
|
|
71
|
+
children: "Login"
|
|
72
|
+
}) });
|
|
59
73
|
//#endregion
|
|
60
|
-
export {
|
|
74
|
+
export { c as Authenticator, r as Footer, o as Header, a as SGFooter, s as SGHeader };
|