@pronto-tools-and-more/components 7.0.0 → 7.2.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/main.js CHANGED
@@ -69,9 +69,33 @@ var FooterItemsList = ({
69
69
  return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
70
70
  };
71
71
 
72
+ // src/parts/FooterSocialLink/FooterSocialLink.tsx
73
+ var FooterSocialLink = ({ item }) => {
74
+ const iconClass = `MaskIcon MaskIcon${item.label}`;
75
+ return /* @__PURE__ */ React.createElement("li", { className: "FooterSocialLink" }, /* @__PURE__ */ React.createElement("a", { href: item.url, "aria-label": item.label }, /* @__PURE__ */ React.createElement("div", { className: iconClass })));
76
+ };
77
+
78
+ // src/parts/FooterSocialLinks/FooterSocialLinks.tsx
79
+ var FooterSocialLinks = ({
80
+ items
81
+ }) => {
82
+ return /* @__PURE__ */ React.createElement("ul", { className: "FooterSocialLinks" }, ...items.map((link) => {
83
+ return /* @__PURE__ */ React.createElement(FooterSocialLink, { item: link });
84
+ }));
85
+ };
86
+
72
87
  // src/parts/HeaderLogo/HeaderLogo.tsx
73
88
  var HeaderLogo = ({ logoPath }) => {
74
- return /* @__PURE__ */ React.createElement("a", { href: "/", className: "HeaderLogo" }, /* @__PURE__ */ React.createElement("img", { src: logoPath, alt: "" }));
89
+ const fullMessage = `<img src="${logoPath}" alt="" />`;
90
+ const json = {
91
+ type: "button",
92
+ tap: {
93
+ type: "navigate",
94
+ path: "/"
95
+ },
96
+ message: fullMessage
97
+ };
98
+ return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogo" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
75
99
  };
76
100
 
77
101
  // src/parts/HeaderLogoSection/HeaderLogoSection.tsx
@@ -443,6 +467,8 @@ export {
443
467
  ContentTitle,
444
468
  EPaperLink,
445
469
  FooterItemsList,
470
+ FooterSocialLink,
471
+ FooterSocialLinks,
446
472
  HeaderLogo,
447
473
  HeaderLogoSection,
448
474
  HeaderMenuItems,
@@ -3,10 +3,13 @@ export * from "../ContentBody/ContentBody.tsx";
3
3
  export * from "../ContentTitle/ContentTitle.tsx";
4
4
  export * from "../EPaperLink/EPaperLink.tsx";
5
5
  export * from "../FooterItemsList/FooterItemsList.tsx";
6
+ export * from "../FooterSocialLink/FooterSocialLink.tsx";
7
+ export * from "../FooterSocialLinks/FooterSocialLinks.tsx";
6
8
  export * from "../HeaderLogo/HeaderLogo.tsx";
7
9
  export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
8
10
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
9
11
  export * from "../Heading/Heading.tsx";
12
+ export * from "../IFooterSocialLink/IFooterSocialLink.ts";
10
13
  export * from "../JsonComponent/JsonComponent.tsx";
11
14
  export * from "../Link/Link.tsx";
12
15
  export * from "../Login/Login.tsx";
@@ -0,0 +1,4 @@
1
+ import type { IFooterSocialLink } from "../IFooterSocialLink/IFooterSocialLink.ts";
2
+ export declare const FooterSocialLink: ({ item }: {
3
+ item: IFooterSocialLink;
4
+ }) => import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { IFooterSocialLink } from "../IFooterSocialLink/IFooterSocialLink.ts";
2
+ export declare const FooterSocialLinks: ({ items, }: {
3
+ items: readonly IFooterSocialLink[];
4
+ }) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface IFooterSocialLink {
2
+ readonly image: string;
3
+ readonly label: string;
4
+ readonly url: string;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",