@pronto-tools-and-more/components 6.35.0 → 6.37.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -63,7 +63,7 @@ var FooterItemsList = ({
63
63
 
64
64
  // src/parts/HeaderLogo/HeaderLogo.tsx
65
65
  var HeaderLogo = ({ logoPath }) => {
66
- return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogo" }, /* @__PURE__ */ React.createElement("img", { src: logoPath, alt: "" }));
66
+ return /* @__PURE__ */ React.createElement("a", { href: "/", className: "HeaderLogo" }, /* @__PURE__ */ React.createElement("img", { src: logoPath, alt: "" }));
67
67
  };
68
68
 
69
69
  // src/parts/HeaderLogoSection/HeaderLogoSection.tsx
@@ -106,7 +106,7 @@ var Link = ({
106
106
  className,
107
107
  icon
108
108
  }) => {
109
- const fullMessage = icon ? `<span>${message}</span><img src="${icon}" alt=""/>` : message;
109
+ const fullMessage = icon ? `<span class="LinkContent"><span>${message}</span><div class="MaskIcon MaskIcon${icon}"></div>` : `<span class="LinkContent">${message}</span>`;
110
110
  const json = {
111
111
  type: "button",
112
112
  tap: {
@@ -128,6 +128,16 @@ var Login = () => {
128
128
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
129
129
  };
130
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
+
131
141
  // src/parts/PostContentBody/PostContentBody.tsx
132
142
  var PostContentBody = () => {
133
143
  const json = {
@@ -431,6 +441,7 @@ export {
431
441
  JsonComponent,
432
442
  Link,
433
443
  Login,
444
+ MaskIcon,
434
445
  MenuItems,
435
446
  PostContentBody,
436
447
  PublicationToggle,
@@ -9,6 +9,7 @@ export * from "../Heading/Heading.tsx";
9
9
  export * from "../JsonComponent/JsonComponent.tsx";
10
10
  export * from "../Link/Link.tsx";
11
11
  export * from "../Login/Login.tsx";
12
+ export * from "../MaskIcon/MaskIcon.tsx";
12
13
  export * from "../MenuItems/MenuItems.tsx";
13
14
  export * from "../PostContentBody/PostContentBody.tsx";
14
15
  export * from "../PublicationToggle/PublicationToggle.tsx";
@@ -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.35.0",
3
+ "version": "6.37.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",