@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";
@@ -0,0 +1,3 @@
1
+ export declare const HeaderLogoSection: ({ logoPath }: {
2
+ logoPath: string;
3
+ }) => import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
- export declare const Link: ({ to, message, className, }: {
1
+ export declare const Link: ({ to, message, className, icon, }: {
2
2
  to: string;
3
3
  message: string;
4
4
  className?: string;
5
+ icon?: string;
5
6
  }) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const MaskIcon: ({ src }: {
2
+ src: string;
3
+ }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.34.0",
3
+ "version": "6.36.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",