@pronto-tools-and-more/components 6.34.0 → 6.35.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
@@ -66,6 +66,11 @@ var HeaderLogo = ({ logoPath }) => {
|
|
66
66
|
return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogo" }, /* @__PURE__ */ React.createElement("img", { src: logoPath, alt: "" }));
|
67
67
|
};
|
68
68
|
|
69
|
+
// src/parts/HeaderLogoSection/HeaderLogoSection.tsx
|
70
|
+
var HeaderLogoSection = ({ logoPath }) => {
|
71
|
+
return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogoSection" }, /* @__PURE__ */ React.createElement(HeaderLogo, { logoPath }));
|
72
|
+
};
|
73
|
+
|
69
74
|
// src/parts/HeaderMenuItems/HeaderMenuItems.tsx
|
70
75
|
var HeaderMenuItems = ({
|
71
76
|
menuName = ""
|
@@ -98,15 +103,17 @@ var Heading = ({
|
|
98
103
|
var Link = ({
|
99
104
|
to,
|
100
105
|
message,
|
101
|
-
className
|
106
|
+
className,
|
107
|
+
icon
|
102
108
|
}) => {
|
109
|
+
const fullMessage = icon ? `<span>${message}</span><img src="${icon}" alt=""/>` : message;
|
103
110
|
const json = {
|
104
111
|
type: "button",
|
105
112
|
tap: {
|
106
113
|
type: "navigate",
|
107
114
|
path: to
|
108
115
|
},
|
109
|
-
message
|
116
|
+
message: fullMessage
|
110
117
|
};
|
111
118
|
const extraClassname = className || "";
|
112
119
|
const fullClassName = `Link ${extraClassname}`;
|
@@ -418,6 +425,7 @@ export {
|
|
418
425
|
EPaperLink,
|
419
426
|
FooterItemsList,
|
420
427
|
HeaderLogo,
|
428
|
+
HeaderLogoSection,
|
421
429
|
HeaderMenuItems,
|
422
430
|
Heading,
|
423
431
|
JsonComponent,
|
@@ -3,6 +3,7 @@ export * from "../ContentTitle/ContentTitle.tsx";
|
|
3
3
|
export * from "../EPaperLink/EPaperLink.tsx";
|
4
4
|
export * from "../FooterItemsList/FooterItemsList.tsx";
|
5
5
|
export * from "../HeaderLogo/HeaderLogo.tsx";
|
6
|
+
export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
|
6
7
|
export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
|
7
8
|
export * from "../Heading/Heading.tsx";
|
8
9
|
export * from "../JsonComponent/JsonComponent.tsx";
|