@pronto-tools-and-more/components 6.33.1 → 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
@@ -61,6 +61,16 @@ var FooterItemsList = ({
61
61
  return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
62
62
  };
63
63
 
64
+ // src/parts/HeaderLogo/HeaderLogo.tsx
65
+ var HeaderLogo = ({ logoPath }) => {
66
+ return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogo" }, /* @__PURE__ */ React.createElement("img", { src: logoPath, alt: "" }));
67
+ };
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
+
64
74
  // src/parts/HeaderMenuItems/HeaderMenuItems.tsx
65
75
  var HeaderMenuItems = ({
66
76
  menuName = ""
@@ -69,19 +79,41 @@ var HeaderMenuItems = ({
69
79
  return /* @__PURE__ */ React.createElement("div", { className: fullClassName }, /* @__PURE__ */ React.createElement(MenuItems, { menuName }));
70
80
  };
71
81
 
82
+ // src/parts/Heading/Heading.tsx
83
+ var Heading = ({
84
+ level,
85
+ size,
86
+ text,
87
+ className = ""
88
+ }) => {
89
+ const fullClassName = `Heading Heading${size} ${className}`;
90
+ if (level === 1) {
91
+ return /* @__PURE__ */ React.createElement("h1", { className: fullClassName }, text);
92
+ }
93
+ if (level === 2) {
94
+ return /* @__PURE__ */ React.createElement("h2", { className: fullClassName }, text);
95
+ }
96
+ if (level === 3) {
97
+ return /* @__PURE__ */ React.createElement("h3", { className: fullClassName }, text);
98
+ }
99
+ return /* @__PURE__ */ React.createElement("h4", { className: fullClassName }, text);
100
+ };
101
+
72
102
  // src/parts/Link/Link.tsx
73
103
  var Link = ({
74
104
  to,
75
105
  message,
76
- className
106
+ className,
107
+ icon
77
108
  }) => {
109
+ const fullMessage = icon ? `<span>${message}</span><img src="${icon}" alt=""/>` : message;
78
110
  const json = {
79
111
  type: "button",
80
112
  tap: {
81
113
  type: "navigate",
82
114
  path: to
83
115
  },
84
- message
116
+ message: fullMessage
85
117
  };
86
118
  const extraClassname = className || "";
87
119
  const fullClassName = `Link ${extraClassname}`;
@@ -387,31 +419,13 @@ var SubscriptionLink = ({ message } = {}) => {
387
419
  };
388
420
  return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
389
421
  };
390
-
391
- // src/parts/Heading/Heading.tsx
392
- var Heading = ({
393
- level,
394
- size,
395
- text,
396
- className = ""
397
- }) => {
398
- const fullClassName = `Heading Heading${size} ${className}`;
399
- if (level === 1) {
400
- return /* @__PURE__ */ React.createElement("h1", { className: fullClassName }, text);
401
- }
402
- if (level === 2) {
403
- return /* @__PURE__ */ React.createElement("h2", { className: fullClassName }, text);
404
- }
405
- if (level === 3) {
406
- return /* @__PURE__ */ React.createElement("h3", { className: fullClassName }, text);
407
- }
408
- return /* @__PURE__ */ React.createElement("h4", { className: fullClassName }, text);
409
- };
410
422
  export {
411
423
  ContentBody,
412
424
  ContentTitle,
413
425
  EPaperLink,
414
426
  FooterItemsList,
427
+ HeaderLogo,
428
+ HeaderLogoSection,
415
429
  HeaderMenuItems,
416
430
  Heading,
417
431
  JsonComponent,
@@ -2,7 +2,10 @@ export * from "../ContentBody/ContentBody.tsx";
2
2
  export * from "../ContentTitle/ContentTitle.tsx";
3
3
  export * from "../EPaperLink/EPaperLink.tsx";
4
4
  export * from "../FooterItemsList/FooterItemsList.tsx";
5
+ export * from "../HeaderLogo/HeaderLogo.tsx";
6
+ export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
5
7
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
8
+ export * from "../Heading/Heading.tsx";
6
9
  export * from "../JsonComponent/JsonComponent.tsx";
7
10
  export * from "../Link/Link.tsx";
8
11
  export * from "../Login/Login.tsx";
@@ -13,4 +16,3 @@ export * from "../SearchField/SearchField.tsx";
13
16
  export * from "../SearchLink/SearchLink.tsx";
14
17
  export * from "../SearchResults/SearchResults.tsx";
15
18
  export * from "../SubscriptionLink/SubscriptionLink.tsx";
16
- export * from "../Heading/Heading.tsx";
@@ -0,0 +1,3 @@
1
+ export declare const HeaderLogo: ({ logoPath }: {
2
+ logoPath: string;
3
+ }) => import("react").JSX.Element;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.33.1",
3
+ "version": "6.35.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",