@pronto-tools-and-more/components 6.34.0 → 6.36.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}`;
|
|
@@ -121,6 +128,16 @@ var Login = () => {
|
|
|
121
128
|
return /* @__PURE__ */ React.createElement(JsonComponent, { json });
|
|
122
129
|
};
|
|
123
130
|
|
|
131
|
+
// src/parts/MaskIcon/MaskIcon.tsx
|
|
132
|
+
var MaskIcon = ({ src }) => {
|
|
133
|
+
const json = {
|
|
134
|
+
type: "html",
|
|
135
|
+
tag: "div",
|
|
136
|
+
content: `<div style="mask-image: url('${src}')"></div>`
|
|
137
|
+
};
|
|
138
|
+
return /* @__PURE__ */ React.createElement("div", { className: "MaskIcon" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
|
139
|
+
};
|
|
140
|
+
|
|
124
141
|
// src/parts/PostContentBody/PostContentBody.tsx
|
|
125
142
|
var PostContentBody = () => {
|
|
126
143
|
const json = {
|
|
@@ -418,11 +435,13 @@ export {
|
|
|
418
435
|
EPaperLink,
|
|
419
436
|
FooterItemsList,
|
|
420
437
|
HeaderLogo,
|
|
438
|
+
HeaderLogoSection,
|
|
421
439
|
HeaderMenuItems,
|
|
422
440
|
Heading,
|
|
423
441
|
JsonComponent,
|
|
424
442
|
Link,
|
|
425
443
|
Login,
|
|
444
|
+
MaskIcon,
|
|
426
445
|
MenuItems,
|
|
427
446
|
PostContentBody,
|
|
428
447
|
PublicationToggle,
|
|
@@ -3,11 +3,13 @@ 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";
|
|
9
10
|
export * from "../Link/Link.tsx";
|
|
10
11
|
export * from "../Login/Login.tsx";
|
|
12
|
+
export * from "../MaskIcon/MaskIcon.tsx";
|
|
11
13
|
export * from "../MenuItems/MenuItems.tsx";
|
|
12
14
|
export * from "../PostContentBody/PostContentBody.tsx";
|
|
13
15
|
export * from "../PublicationToggle/PublicationToggle.tsx";
|