@pronto-tools-and-more/components 15.30.0 → 15.32.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
@@ -1216,13 +1216,16 @@ var getYoutubeUserUrl = (username) => {
1216
1216
  };
1217
1217
 
1218
1218
  // src/parts/HeaderLogo/HeaderLogo.tsx
1219
- var HeaderLogo = ({ logoPath }) => {
1219
+ var HeaderLogo = ({
1220
+ logoPath,
1221
+ url = "/"
1222
+ }) => {
1220
1223
  const fullMessage = `<img src="${logoPath}" alt="" />`;
1221
1224
  const json = {
1222
1225
  type: "button",
1223
1226
  tap: {
1224
1227
  type: "navigate",
1225
- path: "/"
1228
+ path: url
1226
1229
  },
1227
1230
  message: fullMessage
1228
1231
  };
@@ -1230,8 +1233,11 @@ var HeaderLogo = ({ logoPath }) => {
1230
1233
  };
1231
1234
 
1232
1235
  // src/parts/HeaderLogoSection/HeaderLogoSection.tsx
1233
- var HeaderLogoSection = ({ logoPath }) => {
1234
- return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogoSection" }, /* @__PURE__ */ React.createElement(HeaderLogo, { logoPath }));
1236
+ var HeaderLogoSection = ({
1237
+ logoPath,
1238
+ url
1239
+ }) => {
1240
+ return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogoSection" }, /* @__PURE__ */ React.createElement(HeaderLogo, { logoPath, url }));
1235
1241
  };
1236
1242
 
1237
1243
  // src/parts/HeaderMenuItems/HeaderMenuItems.tsx
@@ -1435,13 +1441,17 @@ var Image = ({
1435
1441
  loading,
1436
1442
  className,
1437
1443
  width,
1438
- resize
1444
+ resize,
1445
+ style
1439
1446
  }) => {
1440
1447
  const webp = webP;
1441
1448
  const actualWidth = width || defaultWidth;
1442
1449
  const resizeString = resize ? JSON.stringify(resize) : void 0;
1443
1450
  const optimizedSrc = `$functions.getOptimizedImageSrc("${src}", ${webp}, ${actualWidth}, ${resizeString})`;
1444
- return /* @__PURE__ */ React.createElement("img", { src: optimizedSrc, alt, loading, className });
1451
+ return (
1452
+ //@ts-ignore
1453
+ /* @__PURE__ */ React.createElement("img", { src: optimizedSrc, alt, loading, className, style })
1454
+ );
1445
1455
  };
1446
1456
 
1447
1457
  // src/parts/Language/Language.ts
@@ -1,3 +1,4 @@
1
- export declare const HeaderLogo: ({ logoPath }: {
1
+ export declare const HeaderLogo: ({ logoPath, url, }: {
2
2
  logoPath: string;
3
+ url?: string;
3
4
  }) => import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
- export declare const HeaderLogoSection: ({ logoPath }: {
1
+ export declare const HeaderLogoSection: ({ logoPath, url, }: {
2
2
  logoPath: string;
3
+ url?: string;
3
4
  }) => import("react").JSX.Element;
@@ -1,8 +1,9 @@
1
- export declare const Image: ({ src, alt, loading, className, width, resize, }: {
1
+ export declare const Image: ({ src, alt, loading, className, width, resize, style, }: {
2
2
  src: string;
3
3
  alt?: string;
4
4
  className?: string;
5
5
  loading?: "lazy";
6
6
  width?: number;
7
7
  resize?: string;
8
+ style?: string;
8
9
  }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "15.30.0",
3
+ "version": "15.32.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",