@pronto-tools-and-more/components 7.1.0 → 7.3.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
@@ -72,7 +72,7 @@ var FooterItemsList = ({
72
72
  // src/parts/FooterSocialLink/FooterSocialLink.tsx
73
73
  var FooterSocialLink = ({ item }) => {
74
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 })));
75
+ return /* @__PURE__ */ React.createElement("li", { className: "FooterSocialLink" }, /* @__PURE__ */ React.createElement("a", { href: item.url, "aria-label": item.label, target: "_blank" }, /* @__PURE__ */ React.createElement("div", { className: iconClass })));
76
76
  };
77
77
 
78
78
  // src/parts/FooterSocialLinks/FooterSocialLinks.tsx
@@ -86,7 +86,16 @@ var FooterSocialLinks = ({
86
86
 
87
87
  // src/parts/HeaderLogo/HeaderLogo.tsx
88
88
  var HeaderLogo = ({ logoPath }) => {
89
- 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 }));
90
99
  };
91
100
 
92
101
  // src/parts/HeaderLogoSection/HeaderLogoSection.tsx
@@ -1,10 +1,4 @@
1
- export declare const Button: ({ message }: {
1
+ export declare const Button: ({ message, to }: {
2
2
  message: string;
3
- }) => {
4
- type: string;
5
- message: string;
6
- tap: {
7
- type: string;
8
- path: string;
9
- };
10
- };
3
+ to: string;
4
+ }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "7.1.0",
3
+ "version": "7.3.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",